ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
21 lines • 1.85 MB
JavaScript
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2023 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/var t={1782:(t,r,o)=>{var c=o(7316),l=o(9762),u=TypeError;t.exports=function(t){if(c(t))return t;throw new u(l(t)+" is not a function")}},7073:(t,r,o)=>{var c=o(1694),l=o(9762),u=TypeError;t.exports=function(t){if(c(t))return t;throw new u(l(t)+" is not a constructor")}},4958:(t,r,o)=>{var c=o(7316),l=String,u=TypeError;t.exports=function(t){if("object"==typeof t||c(t))return t;throw new u("Can't set "+l(t)+" as a prototype")}},5690:(t,r,o)=>{var c=o(23).has;t.exports=function(t){c(t);return t}},5463:(t,r,o)=>{var c=o(2292),l=o(6941),u=o(7744).f,h=c("unscopables"),d=Array.prototype;void 0===d[h]&&u(d,h,{configurable:!0,value:l(null)});t.exports=function(t){d[h][t]=!0}},9047:(t,r,o)=>{var c=o(6819).charAt;t.exports=function(t,r,o){return r+(o?c(t,r).length:1)}},5834:(t,r,o)=>{var c=o(2658),l=TypeError;t.exports=function(t,r){if(c(r,t))return t;throw new l("Incorrect invocation")}},4719:(t,r,o)=>{var c=o(7633),l=String,u=TypeError;t.exports=function(t){if(c(t))return t;throw new u(l(t)+" is not an object")}},5115:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7585:(t,r,o)=>{var c=o(1299),l=o(8374),u=TypeError;t.exports=c(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==l(t))throw new u("ArrayBuffer expected");return t.byteLength}},582:(t,r,o)=>{var c=o(8403),l=o(7585),u=c(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==l(t))return!1;try{u(t,0,0);return!1}catch(t){return!0}}},6944:(t,r,o)=>{var c=o(8154);t.exports=c((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},4358:(t,r,o)=>{var c=o(9298),l=o(8403),u=o(1299),h=o(9548),d=o(582),g=o(7585),y=o(8126),m=o(4837),v=c.structuredClone,_=c.ArrayBuffer,w=c.DataView,k=c.TypeError,x=Math.min,S=_.prototype,C=w.prototype,O=l(S.slice),T=u(S,"resizable","get"),E=u(S,"maxByteLength","get"),j=l(C.getInt8),R=l(C.setInt8);t.exports=(m||y)&&function(t,r,o){var c,l=g(t),u=void 0===r?l:h(r),S=!T||!T(t);if(d(t))throw new k("ArrayBuffer is detached");if(m){t=v(t,{transfer:[t]});if(l===u&&(o||S))return t}if(l>=u&&(!o||S))c=O(t,0,u);else{var C=o&&!S&&E?{maxByteLength:E(t)}:void 0;c=new _(u,C);for(var M=new w(t),L=new w(c),D=x(u,l),N=0;N<D;N++)R(L,N,j(M,N))}m||y(t);return c}},5861:(t,r,o)=>{var c,l,u,h=o(5115),d=o(940),g=o(9298),y=o(7316),m=o(7633),v=o(936),_=o(8329),w=o(9762),k=o(9293),x=o(7041),S=o(9691),C=o(2658),O=o(2176),T=o(9763),E=o(2292),j=o(7561),R=o(1649),M=R.enforce,L=R.get,D=g.Int8Array,N=D&&D.prototype,U=g.Uint8ClampedArray,G=U&&U.prototype,H=D&&O(D),q=N&&O(N),z=Object.prototype,W=g.TypeError,V=E("toStringTag"),X=j("TYPED_ARRAY_TAG"),K="TypedArrayConstructor",Y=h&&!!T&&"Opera"!==_(g.opera),J=!1,$={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Z={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(t){var r=O(t);if(m(r)){var o=L(r);return o&&v(o,K)?o[K]:getTypedArrayConstructor(r)}},isTypedArray=function(t){if(!m(t))return!1;var r=_(t);return v($,r)||v(Z,r)};for(c in $)(u=(l=g[c])&&l.prototype)?M(u)[K]=l:Y=!1;for(c in Z)(u=(l=g[c])&&l.prototype)&&(M(u)[K]=l);if(!Y||!y(H)||H===Function.prototype){H=function TypedArray(){throw new W("Incorrect invocation")};if(Y)for(c in $)g[c]&&T(g[c],H)}if(!Y||!q||q===z){q=H.prototype;if(Y)for(c in $)g[c]&&T(g[c].prototype,q)}Y&&O(G)!==q&&T(G,q);if(d&&!v(q,V)){J=!0;S(q,V,{configurable:!0,get:function(){return m(this)?this[X]:void 0}});for(c in $)g[c]&&k(g[c],X,c)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:Y,TYPED_ARRAY_TAG:J&&X,aTypedArray:function(t){if(isTypedArray(t))return t;throw new W("Target is not a typed array")},aTypedArrayConstructor:function(t){if(y(t)&&(!T||C(H,t)))return t;throw new W(w(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,r,o,c){if(d){if(o)for(var l in $){var u=g[l];if(u&&v(u.prototype,t))try{delete u.prototype[t]}catch(o){try{u.prototype[t]=r}catch(t){}}}q[t]&&!o||x(q,t,o?r:Y&&N[t]||r,c)}},exportTypedArrayStaticMethod:function(t,r,o){var c,l;if(d){if(T){if(o)for(c in $)if((l=g[c])&&v(l,t))try{delete l[t]}catch(t){}if(H[t]&&!o)return;try{return x(H,t,o?r:Y&&H[t]||r)}catch(t){}}for(c in $)!(l=g[c])||l[t]&&!o||x(l,t,r)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(t){if(!m(t))return!1;var r=_(t);return"DataView"===r||v($,r)||v(Z,r)},isTypedArray:isTypedArray,TypedArray:H,TypedArrayPrototype:q}},5050:(t,r,o)=>{var c=o(9298),l=o(8403),u=o(940),h=o(5115),d=o(5145),g=o(9293),y=o(9691),m=o(6880),v=o(8154),_=o(5834),w=o(1003),k=o(8293),x=o(9548),S=o(796),C=o(3106),O=o(2176),T=o(9763),E=o(5455).f,j=o(8041),R=o(6071),M=o(7536),L=o(1649),D=d.PROPER,N=d.CONFIGURABLE,U="ArrayBuffer",G="DataView",H="prototype",q="Wrong index",z=L.getterFor(U),W=L.getterFor(G),V=L.set,X=c[U],K=X,Y=K&&K[H],J=c[G],$=J&&J[H],Z=Object.prototype,Q=c.Array,ee=c.RangeError,te=l(j),re=l([].reverse),ne=C.pack,ae=C.unpack,packInt8=function(t){return[255&t]},packInt16=function(t){return[255&t,t>>8&255]},packInt32=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},unpackInt32=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},packFloat32=function(t){return ne(S(t),23,4)},packFloat64=function(t){return ne(t,52,8)},addGetter=function(t,r,o){y(t[H],r,{configurable:!0,get:function(){return o(this)[r]}})},get=function(t,r,o,c){var l=W(t),u=x(o),h=!!c;if(u+r>l.byteLength)throw new ee(q);var d=l.bytes,g=u+l.byteOffset,y=R(d,g,g+r);return h?y:re(y)},set=function(t,r,o,c,l,u){var h=W(t),d=x(o),g=c(+l),y=!!u;if(d+r>h.byteLength)throw new ee(q);for(var m=h.bytes,v=d+h.byteOffset,_=0;_<r;_++)m[v+_]=g[y?_:r-_-1]};if(h){var ie=D&&X.name!==U;if(v((function(){X(1)}))&&v((function(){new X(-1)}))&&!v((function(){new X;new X(1.5);new X(NaN);return 1!==X.length||ie&&!N})))ie&&N&&g(X,"name",U);else{(K=function ArrayBuffer(t){_(this,Y);return new X(x(t))})[H]=Y;for(var oe,se=E(X),ce=0;se.length>ce;)(oe=se[ce++])in K||g(K,oe,X[oe]);Y.constructor=K}T&&O($)!==Z&&T($,Z);var le=new J(new K(2)),ue=l($.setInt8);le.setInt8(0,2147483648);le.setInt8(1,2147483649);!le.getInt8(0)&&le.getInt8(1)||m($,{setInt8:function setInt8(t,r){ue(this,t,r<<24>>24)},setUint8:function setUint8(t,r){ue(this,t,r<<24>>24)}},{unsafe:!0})}else{Y=(K=function ArrayBuffer(t){_(this,Y);var r=x(t);V(this,{type:U,bytes:te(Q(r),0),byteLength:r});if(!u){this.byteLength=r;this.detached=!1}})[H];$=(J=function DataView(t,r,o){_(this,$);_(t,Y);var c=z(t),l=c.byteLength,h=w(r);if(h<0||h>l)throw new ee("Wrong offset");if(h+(o=void 0===o?l-h:k(o))>l)throw new ee("Wrong length");V(this,{type:G,buffer:t,byteLength:o,byteOffset:h,bytes:c.bytes});if(!u){this.buffer=t;this.byteLength=o;this.byteOffset=h}})[H];if(u){addGetter(K,"byteLength",z);addGetter(J,"buffer",W);addGetter(J,"byteLength",W);addGetter(J,"byteOffset",W)}m($,{getInt8:function getInt8(t){return get(this,1,t)[0]<<24>>24},getUint8:function getUint8(t){return get(this,1,t)[0]},getInt16:function getInt16(t){var r=get(this,2,t,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function getUint16(t){var r=get(this,2,t,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function getInt32(t){return unpackInt32(get(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function getUint32(t){return unpackInt32(get(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function getFloat32(t){return ae(get(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function getFloat64(t){return ae(get(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function setInt8(t,r){set(this,1,t,packInt8,r)},setUint8:function setUint8(t,r){set(this,1,t,packInt8,r)},setInt16:function setInt16(t,r){set(this,2,t,packInt16,r,arguments.length>2&&arguments[2])},setUint16:function setUint16(t,r){set(this,2,t,packInt16,r,arguments.length>2&&arguments[2])},setInt32:function setInt32(t,r){set(this,4,t,packInt32,r,arguments.length>2&&arguments[2])},setUint32:function setUint32(t,r){set(this,4,t,packInt32,r,arguments.length>2&&arguments[2])},setFloat32:function setFloat32(t,r){set(this,4,t,packFloat32,r,arguments.length>2&&arguments[2])},setFloat64:function setFloat64(t,r){set(this,8,t,packFloat64,r,arguments.length>2&&arguments[2])}})}M(K,U);M(J,G);t.exports={ArrayBuffer:K,DataView:J}},1474:(t,r,o)=>{var c=o(2007),l=o(6985),u=o(451),h=o(2322),d=Math.min;t.exports=[].copyWithin||function copyWithin(t,r){var o=c(this),g=u(o),y=l(t,g),m=l(r,g),v=arguments.length>2?arguments[2]:void 0,_=d((void 0===v?g:l(v,g))-m,g-y),w=1;if(m<y&&y<m+_){w=-1;m+=_-1;y+=_-1}for(;_-- >0;){m in o?o[y]=o[m]:h(o,y);y+=w;m+=w}return o}},8041:(t,r,o)=>{var c=o(2007),l=o(6985),u=o(451);t.exports=function fill(t){for(var r=c(this),o=u(r),h=arguments.length,d=l(h>1?arguments[1]:void 0,o),g=h>2?arguments[2]:void 0,y=void 0===g?o:l(g,o);y>d;)r[d++]=t;return r}},8208:(t,r,o)=>{var c=o(2423).forEach,l=o(8321)("forEach");t.exports=l?[].forEach:function forEach(t){return c(this,t,arguments.length>1?arguments[1]:void 0)}},7003:(t,r,o)=>{var c=o(451);t.exports=function(t,r,o){for(var l=0,u=arguments.length>2?o:c(r),h=new t(u);u>l;)h[l]=r[l++];return h}},7609:(t,r,o)=>{var c=o(7789),l=o(2026),u=o(2007),h=o(5723),d=o(5191),g=o(1694),y=o(451),m=o(8947),v=o(7612),_=o(273),w=Array;t.exports=function from(t){var r=u(t),o=g(this),k=arguments.length,x=k>1?arguments[1]:void 0,S=void 0!==x;S&&(x=c(x,k>2?arguments[2]:void 0));var C,O,T,E,j,R,M=_(r),L=0;if(!M||this===w&&d(M)){C=y(r);O=o?new this(C):w(C);for(;C>L;L++){R=S?x(r[L],L):r[L];m(O,L,R)}}else{j=(E=v(r,M)).next;O=o?new this:[];for(;!(T=l(j,E)).done;L++){R=S?h(E,x,[T.value,L],!0):T.value;m(O,L,R)}}O.length=L;return O}},9773:(t,r,o)=>{var c=o(4115),l=o(6985),u=o(451),createMethod=function(t){return function(r,o,h){var d,g=c(r),y=u(g),m=l(h,y);if(t&&o!=o){for(;y>m;)if((d=g[m++])!=d)return!0}else for(;y>m;m++)if((t||m in g)&&g[m]===o)return t||m||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},4026:(t,r,o)=>{var c=o(7789),l=o(3622),u=o(2007),h=o(451),createMethod=function(t){var r=1===t;return function(o,d,g){for(var y,m=u(o),v=l(m),_=h(v),w=c(d,g);_-- >0;)if(w(y=v[_],_,m))switch(t){case 0:return y;case 1:return _}return r?-1:void 0}};t.exports={findLast:createMethod(0),findLastIndex:createMethod(1)}},2423:(t,r,o)=>{var c=o(7789),l=o(8403),u=o(3622),h=o(2007),d=o(451),g=o(8097),y=l([].push),createMethod=function(t){var r=1===t,o=2===t,l=3===t,m=4===t,v=6===t,_=7===t,w=5===t||v;return function(k,x,S,C){for(var O,T,E=h(k),j=u(E),R=d(j),M=c(x,S),L=0,D=C||g,N=r?D(k,R):o||_?D(k,0):void 0;R>L;L++)if(w||L in j){T=M(O=j[L],L,E);if(t)if(r)N[L]=T;else if(T)switch(t){case 3:return!0;case 5:return O;case 6:return L;case 2:y(N,O)}else switch(t){case 4:return!1;case 7:y(N,O)}}return v?-1:l||m?m:N}};t.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},8671:(t,r,o)=>{var c=o(7294),l=o(4115),u=o(1003),h=o(451),d=o(8321),g=Math.min,y=[].lastIndexOf,m=!!y&&1/[1].lastIndexOf(1,-0)<0,v=d("lastIndexOf"),_=m||!v;t.exports=_?function lastIndexOf(t){if(m)return c(y,this,arguments)||0;var r=l(this),o=h(r),d=o-1;arguments.length>1&&(d=g(d,u(arguments[1])));d<0&&(d=o+d);for(;d>=0;d--)if(d in r&&r[d]===t)return d||0;return-1}:y},3577:(t,r,o)=>{var c=o(8154),l=o(2292),u=o(2171),h=l("species");t.exports=function(t){return u>=51||!c((function(){var r=[];(r.constructor={})[h]=function(){return{foo:1}};return 1!==r[t](Boolean).foo}))}},8321:(t,r,o)=>{var c=o(8154);t.exports=function(t,r){var o=[][t];return!!o&&c((function(){o.call(null,r||function(){return 1},1)}))}},2741:(t,r,o)=>{var c=o(1782),l=o(2007),u=o(3622),h=o(451),d=TypeError,createMethod=function(t){return function(r,o,g,y){var m=l(r),v=u(m),_=h(m);c(o);var w=t?_-1:0,k=t?-1:1;if(g<2)for(;;){if(w in v){y=v[w];w+=k;break}w+=k;if(t?w<0:_<=w)throw new d("Reduce of empty array with no initial value")}for(;t?w>=0:_>w;w+=k)w in v&&(y=o(y,v[w],w,m));return y}};t.exports={left:createMethod(!1),right:createMethod(!0)}},6661:(t,r,o)=>{var c=o(940),l=o(6998),u=TypeError,h=Object.getOwnPropertyDescriptor,d=c&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=d?function(t,r){if(l(t)&&!h(t,"length").writable)throw new u("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},6071:(t,r,o)=>{var c=o(6985),l=o(451),u=o(8947),h=Array,d=Math.max;t.exports=function(t,r,o){for(var g=l(t),y=c(r,g),m=c(void 0===o?g:o,g),v=h(d(m-y,0)),_=0;y<m;y++,_++)u(v,_,t[y]);v.length=_;return v}},2251:(t,r,o)=>{var c=o(8403);t.exports=c([].slice)},4689:(t,r,o)=>{var c=o(6071),l=Math.floor,mergeSort=function(t,r){var o=t.length,u=l(o/2);return o<8?insertionSort(t,r):merge(t,mergeSort(c(t,0,u),r),mergeSort(c(t,u),r),r)},insertionSort=function(t,r){for(var o,c,l=t.length,u=1;u<l;){c=u;o=t[u];for(;c&&r(t[c-1],o)>0;)t[c]=t[--c];c!==u++&&(t[c]=o)}return t},merge=function(t,r,o,c){for(var l=r.length,u=o.length,h=0,d=0;h<l||d<u;)t[h+d]=h<l&&d<u?c(r[h],o[d])<=0?r[h++]:o[d++]:h<l?r[h++]:o[d++];return t};t.exports=mergeSort},751:(t,r,o)=>{var c=o(6998),l=o(1694),u=o(7633),h=o(2292)("species"),d=Array;t.exports=function(t){var r;if(c(t)){r=t.constructor;(l(r)&&(r===d||c(r.prototype))||u(r)&&null===(r=r[h]))&&(r=void 0)}return void 0===r?d:r}},8097:(t,r,o)=>{var c=o(751);t.exports=function(t,r){return new(c(t))(0===r?0:r)}},2304:(t,r,o)=>{var c=o(451);t.exports=function(t,r){for(var o=c(t),l=new r(o),u=0;u<o;u++)l[u]=t[o-u-1];return l}},5886:(t,r,o)=>{var c=o(451),l=o(1003),u=RangeError;t.exports=function(t,r,o,h){var d=c(t),g=l(o),y=g<0?d+g:g;if(y>=d||y<0)throw new u("Incorrect index");for(var m=new r(d),v=0;v<d;v++)m[v]=v===y?h:t[v];return m}},5723:(t,r,o)=>{var c=o(4719),l=o(3316);t.exports=function(t,r,o,u){try{return u?r(c(o)[0],o[1]):r(o)}catch(r){l(t,"throw",r)}}},1374:(t,r,o)=>{var c=o(2292)("iterator"),l=!1;try{var u=0,h={next:function(){return{done:!!u++}},return:function(){l=!0}};h[c]=function(){return this};Array.from(h,(function(){throw 2}))}catch(t){}t.exports=function(t,r){try{if(!r&&!l)return!1}catch(t){return!1}var o=!1;try{var u={};u[c]=function(){return{next:function(){return{done:o=!0}}}};t(u)}catch(t){}return o}},8374:(t,r,o)=>{var c=o(8403),l=c({}.toString),u=c("".slice);t.exports=function(t){return u(l(t),8,-1)}},8329:(t,r,o)=>{var c=o(3077),l=o(7316),u=o(8374),h=o(2292)("toStringTag"),d=Object,g="Arguments"===u(function(){return arguments}());t.exports=c?u:function(t){var r,o,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,r){try{return t[r]}catch(t){}}(r=d(t),h))?o:g?u(r):"Object"===(c=u(r))&&l(r.callee)?"Arguments":c}},6122:(t,r,o)=>{var c=o(6941),l=o(9691),u=o(6880),h=o(7789),d=o(5834),g=o(3734),y=o(6837),m=o(7301),v=o(1111),_=o(5963),w=o(940),k=o(4694).fastKey,x=o(1649),S=x.set,C=x.getterFor;t.exports={getConstructor:function(t,r,o,m){var v=t((function(t,l){d(t,_);S(t,{type:r,index:c(null),first:void 0,last:void 0,size:0});w||(t.size=0);g(l)||y(l,t[m],{that:t,AS_ENTRIES:o})})),_=v.prototype,x=C(r),define=function(t,r,o){var c,l,u=x(t),h=getEntry(t,r);if(h)h.value=o;else{u.last=h={index:l=k(r,!0),key:r,value:o,previous:c=u.last,next:void 0,removed:!1};u.first||(u.first=h);c&&(c.next=h);w?u.size++:t.size++;"F"!==l&&(u.index[l]=h)}return t},getEntry=function(t,r){var o,c=x(t),l=k(r);if("F"!==l)return c.index[l];for(o=c.first;o;o=o.next)if(o.key===r)return o};u(_,{clear:function clear(){for(var t=x(this),r=t.index,o=t.first;o;){o.removed=!0;o.previous&&(o.previous=o.previous.next=void 0);delete r[o.index];o=o.next}t.first=t.last=void 0;w?t.size=0:this.size=0},delete:function(t){var r=this,o=x(r),c=getEntry(r,t);if(c){var l=c.next,u=c.previous;delete o.index[c.index];c.removed=!0;u&&(u.next=l);l&&(l.previous=u);o.first===c&&(o.first=l);o.last===c&&(o.last=u);w?o.size--:r.size--}return!!c},forEach:function forEach(t){for(var r,o=x(this),c=h(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:o.first;){c(r.value,r.key,this);for(;r&&r.removed;)r=r.previous}},has:function has(t){return!!getEntry(this,t)}});u(_,o?{get:function get(t){var r=getEntry(this,t);return r&&r.value},set:function set(t,r){return define(this,0===t?0:t,r)}}:{add:function add(t){return define(this,t=0===t?0:t,t)}});w&&l(_,"size",{configurable:!0,get:function(){return x(this).size}});return v},setStrong:function(t,r,o){var c=r+" Iterator",l=C(r),u=C(c);m(t,r,(function(t,r){S(this,{type:c,target:t,state:l(t),kind:r,last:void 0})}),(function(){for(var t=u(this),r=t.kind,o=t.last;o&&o.removed;)o=o.previous;if(!t.target||!(t.last=o=o?o.next:t.state.first)){t.target=void 0;return v(void 0,!0)}return v("keys"===r?o.key:"values"===r?o.value:[o.key,o.value],!1)}),o?"entries":"values",!o,!0);_(r)}}},9609:(t,r,o)=>{var c=o(8403),l=o(6880),u=o(4694).getWeakData,h=o(5834),d=o(4719),g=o(3734),y=o(7633),m=o(6837),v=o(2423),_=o(936),w=o(1649),k=w.set,x=w.getterFor,S=v.find,C=v.findIndex,O=c([].splice),T=0,uncaughtFrozenStore=function(t){return t.frozen||(t.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(t,r){return S(t.entries,(function(t){return t[0]===r}))};UncaughtFrozenStore.prototype={get:function(t){var r=findUncaughtFrozen(this,t);if(r)return r[1]},has:function(t){return!!findUncaughtFrozen(this,t)},set:function(t,r){var o=findUncaughtFrozen(this,t);o?o[1]=r:this.entries.push([t,r])},delete:function(t){var r=C(this.entries,(function(r){return r[0]===t}));~r&&O(this.entries,r,1);return!!~r}};t.exports={getConstructor:function(t,r,o,c){var v=t((function(t,l){h(t,w);k(t,{type:r,id:T++,frozen:void 0});g(l)||m(l,t[c],{that:t,AS_ENTRIES:o})})),w=v.prototype,S=x(r),define=function(t,r,o){var c=S(t),l=u(d(r),!0);!0===l?uncaughtFrozenStore(c).set(r,o):l[c.id]=o;return t};l(w,{delete:function(t){var r=S(this);if(!y(t))return!1;var o=u(t);return!0===o?uncaughtFrozenStore(r).delete(t):o&&_(o,r.id)&&delete o[r.id]},has:function has(t){var r=S(this);if(!y(t))return!1;var o=u(t);return!0===o?uncaughtFrozenStore(r).has(t):o&&_(o,r.id)}});l(w,o?{get:function get(t){var r=S(this);if(y(t)){var o=u(t);return!0===o?uncaughtFrozenStore(r).get(t):o?o[r.id]:void 0}},set:function set(t,r){return define(this,t,r)}}:{add:function add(t){return define(this,t,!0)}});return v}}},4981:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(8403),h=o(7007),d=o(7041),g=o(4694),y=o(6837),m=o(5834),v=o(7316),_=o(3734),w=o(7633),k=o(8154),x=o(1374),S=o(7536),C=o(7523);t.exports=function(t,r,o){var O=-1!==t.indexOf("Map"),T=-1!==t.indexOf("Weak"),E=O?"set":"add",j=l[t],R=j&&j.prototype,M=j,L={},fixMethod=function(t){var r=u(R[t]);d(R,t,"add"===t?function add(t){r(this,0===t?0:t);return this}:"delete"===t?function(t){return!(T&&!w(t))&&r(this,0===t?0:t)}:"get"===t?function get(t){return T&&!w(t)?void 0:r(this,0===t?0:t)}:"has"===t?function has(t){return!(T&&!w(t))&&r(this,0===t?0:t)}:function set(t,o){r(this,0===t?0:t,o);return this})};if(h(t,!v(j)||!(T||R.forEach&&!k((function(){(new j).entries().next()}))))){M=o.getConstructor(r,t,O,E);g.enable()}else if(h(t,!0)){var D=new M,N=D[E](T?{}:-0,1)!==D,U=k((function(){D.has(1)})),G=x((function(t){new j(t)})),H=!T&&k((function(){for(var t=new j,r=5;r--;)t[E](r,r);return!t.has(-0)}));if(!G){(M=r((function(t,r){m(t,R);var o=C(new j,t,M);_(r)||y(r,o[E],{that:o,AS_ENTRIES:O});return o}))).prototype=R;R.constructor=M}if(U||H){fixMethod("delete");fixMethod("has");O&&fixMethod("get")}(H||N)&&fixMethod(E);T&&R.clear&&delete R.clear}L[t]=M;c({global:!0,constructor:!0,forced:M!==j},L);S(M,t);T||o.setStrong(M,t,O);return M}},1425:(t,r,o)=>{var c=o(936),l=o(8953),u=o(5764),h=o(7744);t.exports=function(t,r,o){for(var d=l(r),g=h.f,y=u.f,m=0;m<d.length;m++){var v=d[m];c(t,v)||o&&c(o,v)||g(t,v,y(r,v))}}},2280:(t,r,o)=>{var c=o(2292)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(o){try{r[c]=!1;return"/./"[t](r)}catch(t){}}return!1}},7888:(t,r,o)=>{var c=o(8154);t.exports=!c((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},1111:t=>{t.exports=function(t,r){return{value:t,done:r}}},9293:(t,r,o)=>{var c=o(940),l=o(7744),u=o(1198);t.exports=c?function(t,r,o){return l.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},1198:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},8947:(t,r,o)=>{var c=o(4871),l=o(7744),u=o(1198);t.exports=function(t,r,o){var h=c(r);h in t?l.f(t,h,u(0,o)):t[h]=o}},3612:(t,r,o)=>{var c=o(4719),l=o(2923),u=TypeError;t.exports=function(t){c(this);if("string"===t||"default"===t)t="string";else if("number"!==t)throw new u("Incorrect hint");return l(this,t)}},9691:(t,r,o)=>{var c=o(9687),l=o(7744);t.exports=function(t,r,o){o.get&&c(o.get,r,{getter:!0});o.set&&c(o.set,r,{setter:!0});return l.f(t,r,o)}},7041:(t,r,o)=>{var c=o(7316),l=o(7744),u=o(9687),h=o(6e3);t.exports=function(t,r,o,d){d||(d={});var g=d.enumerable,y=void 0!==d.name?d.name:r;c(o)&&u(o,y,d);if(d.global)g?t[r]=o:h(r,o);else{try{d.unsafe?t[r]&&(g=!0):delete t[r]}catch(t){}g?t[r]=o:l.f(t,r,{value:o,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return t}},6880:(t,r,o)=>{var c=o(7041);t.exports=function(t,r,o){for(var l in r)c(t,l,r[l],o);return t}},6e3:(t,r,o)=>{var c=o(9298),l=Object.defineProperty;t.exports=function(t,r){try{l(c,t,{value:r,configurable:!0,writable:!0})}catch(o){c[t]=r}return r}},2322:(t,r,o)=>{var c=o(9762),l=TypeError;t.exports=function(t,r){if(!delete t[r])throw new l("Cannot delete property "+c(r)+" of "+c(t))}},940:(t,r,o)=>{var c=o(8154);t.exports=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8126:(t,r,o)=>{var c,l,u,h,d=o(9298),g=o(2276),y=o(4837),m=d.structuredClone,v=d.ArrayBuffer,_=d.MessageChannel,w=!1;if(y)w=function(t){m(t,{transfer:[t]})};else if(v)try{_||(c=g("worker_threads"))&&(_=c.MessageChannel);if(_){l=new _;u=new v(2);h=function(t){l.port1.postMessage(null,[t])};if(2===u.byteLength){h(u);0===u.byteLength&&(w=h)}}}catch(t){}t.exports=w},1558:t=>{var r="object"==typeof document&&document.all,o=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:o}},5584:(t,r,o)=>{var c=o(9298),l=o(7633),u=c.document,h=l(u)&&l(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},4287:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},8560:t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},2411:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3942:(t,r,o)=>{var c=o(5584)("span").classList,l=c&&c.constructor&&c.constructor.prototype;t.exports=l===Object.prototype?void 0:l},7614:(t,r,o)=>{var c=o(234).match(/firefox\/(\d+)/i);t.exports=!!c&&+c[1]},3413:(t,r,o)=>{var c=o(8471),l=o(4864);t.exports=!c&&!l&&"object"==typeof window&&"object"==typeof document},8471:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},7463:(t,r,o)=>{var c=o(234);t.exports=/MSIE|Trident/.test(c)},1458:(t,r,o)=>{var c=o(234);t.exports=/ipad|iphone|ipod/i.test(c)&&"undefined"!=typeof Pebble},2589:(t,r,o)=>{var c=o(234);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},4864:(t,r,o)=>{var c=o(9298),l=o(8374);t.exports="process"===l(c.process)},8173:(t,r,o)=>{var c=o(234);t.exports=/web0s(?!.*chrome)/i.test(c)},234:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},2171:(t,r,o)=>{var c,l,u=o(9298),h=o(234),d=u.process,g=u.Deno,y=d&&d.versions||g&&g.version,m=y&&y.v8;m&&(l=(c=m.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1]));!l&&h&&(!(c=h.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=h.match(/Chrome\/(\d+)/))&&(l=+c[1]);t.exports=l},7906:(t,r,o)=>{var c=o(234).match(/AppleWebKit\/(\d+)\./);t.exports=!!c&&+c[1]},298:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},34:(t,r,o)=>{var c=o(8403),l=Error,u=c("".replace),h=String(new l("zxcasd").stack),d=/\n\s*at [^:]*:[^\n]*/,g=d.test(h);t.exports=function(t,r){if(g&&"string"==typeof t&&!l.prepareStackTrace)for(;r--;)t=u(t,d,"");return t}},1931:(t,r,o)=>{var c=o(9293),l=o(34),u=o(3437),h=Error.captureStackTrace;t.exports=function(t,r,o,d){u&&(h?h(t,r):c(t,"stack",l(o,d)))}},3437:(t,r,o)=>{var c=o(8154),l=o(1198);t.exports=!c((function(){var t=new Error("a");if(!("stack"in t))return!0;Object.defineProperty(t,"stack",l(1,7));return 7!==t.stack}))},3522:(t,r,o)=>{var c=o(940),l=o(8154),u=o(4719),h=o(1264),d=Error.prototype.toString,g=l((function(){if(c){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==d.call(t))return!0}return"2: 1"!==d.call({message:1,name:2})||"Error"!==d.call({})}));t.exports=g?function toString(){var t=u(this),r=h(t.name,"Error"),o=h(t.message);return r?o?r+": "+o:r:o}:d},4978:(t,r,o)=>{var c=o(9298),l=o(5764).f,u=o(9293),h=o(7041),d=o(6e3),g=o(1425),y=o(7007);t.exports=function(t,r){var o,m,v,_,w,k=t.target,x=t.global,S=t.stat;if(o=x?c:S?c[k]||d(k,{}):(c[k]||{}).prototype)for(m in r){_=r[m];v=t.dontCallGetSet?(w=l(o,m))&&w.value:o[m];if(!y(x?m:k+(S?".":"#")+m,t.forced)&&void 0!==v){if(typeof _==typeof v)continue;g(_,v)}(t.sham||v&&v.sham)&&u(_,"sham",!0);h(o,m,_,t)}}},8154:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},4629:(t,r,o)=>{o(7942);var c=o(6218),l=o(7041),u=o(2178),h=o(8154),d=o(2292),g=o(9293),y=d("species"),m=RegExp.prototype;t.exports=function(t,r,o,v){var _=d(t),w=!h((function(){var r={};r[_]=function(){return 7};return 7!==""[t](r)})),k=w&&!h((function(){var r=!1,o=/a/;if("split"===t){(o={}).constructor={};o.constructor[y]=function(){return o};o.flags="";o[_]=/./[_]}o.exec=function(){r=!0;return null};o[_]("");return!r}));if(!w||!k||o){var x=c(/./[_]),S=r(_,""[t],(function(t,r,o,l,h){var d=c(t),g=r.exec;return g===u||g===m.exec?w&&!h?{done:!0,value:x(r,o,l)}:{done:!0,value:d(o,r,l)}:{done:!1}}));l(String.prototype,t,S[0]);l(m,_,S[1])}v&&g(m[_],"sham",!0)}},7938:(t,r,o)=>{var c=o(6998),l=o(451),u=o(4287),h=o(7789),flattenIntoArray=function(t,r,o,d,g,y,m,v){for(var _,w,k=g,x=0,S=!!m&&h(m,v);x<d;){if(x in o){_=S?S(o[x],x,r):o[x];if(y>0&&c(_)){w=l(_);k=flattenIntoArray(t,r,_,w,k,y-1)-1}else{u(k+1);t[k]=_}k++}x++}return k};t.exports=flattenIntoArray},7010:(t,r,o)=>{var c=o(8154);t.exports=!c((function(){return Object.isExtensible(Object.preventExtensions({}))}))},7294:(t,r,o)=>{var c=o(2486),l=Function.prototype,u=l.apply,h=l.call;t.exports="object"==typeof Reflect&&Reflect.apply||(c?h.bind(u):function(){return h.apply(u,arguments)})},7789:(t,r,o)=>{var c=o(6218),l=o(1782),u=o(2486),h=c(c.bind);t.exports=function(t,r){l(t);return void 0===r?t:u?h(t,r):function(){return t.apply(r,arguments)}}},2486:(t,r,o)=>{var c=o(8154);t.exports=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6520:(t,r,o)=>{var c=o(8403),l=o(1782),u=o(7633),h=o(936),d=o(2251),g=o(2486),y=Function,m=c([].concat),v=c([].join),_={};t.exports=g?y.bind:function bind(t){var r=l(this),o=r.prototype,c=d(arguments,1),g=function bound(){var o=m(c,d(arguments));return this instanceof g?function(t,r,o){if(!h(_,r)){for(var c=[],l=0;l<r;l++)c[l]="a["+l+"]";_[r]=y("C,a","return new C("+v(c,",")+")")}return _[r](t,o)}(r,o.length,o):r.apply(t,o)};u(o)&&(g.prototype=o);return g}},2026:(t,r,o)=>{var c=o(2486),l=Function.prototype.call;t.exports=c?l.bind(l):function(){return l.apply(l,arguments)}},5145:(t,r,o)=>{var c=o(940),l=o(936),u=Function.prototype,h=c&&Object.getOwnPropertyDescriptor,d=l(u,"name"),g=d&&"something"===function something(){}.name,y=d&&(!c||c&&h(u,"name").configurable);t.exports={EXISTS:d,PROPER:g,CONFIGURABLE:y}},1299:(t,r,o)=>{var c=o(8403),l=o(1782);t.exports=function(t,r,o){try{return c(l(Object.getOwnPropertyDescriptor(t,r)[o]))}catch(t){}}},6218:(t,r,o)=>{var c=o(8374),l=o(8403);t.exports=function(t){if("Function"===c(t))return l(t)}},8403:(t,r,o)=>{var c=o(2486),l=Function.prototype,u=l.call,h=c&&l.bind.bind(u,u);t.exports=c?h:function(t){return function(){return u.apply(t,arguments)}}},7187:(t,r,o)=>{var c=o(9298),l=o(7316);t.exports=function(t,r){return arguments.length<2?(o=c[t],l(o)?o:void 0):c[t]&&c[t][r];var o}},9235:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},273:(t,r,o)=>{var c=o(8329),l=o(8486),u=o(3734),h=o(6596),d=o(2292)("iterator");t.exports=function(t){if(!u(t))return l(t,d)||l(t,"@@iterator")||h[c(t)]}},7612:(t,r,o)=>{var c=o(2026),l=o(1782),u=o(4719),h=o(9762),d=o(273),g=TypeError;t.exports=function(t,r){var o=arguments.length<2?d(t):r;if(l(o))return u(c(o,t));throw new g(h(t)+" is not iterable")}},1801:(t,r,o)=>{var c=o(8403),l=o(6998),u=o(7316),h=o(8374),d=o(5730),g=c([].push);t.exports=function(t){if(u(t))return t;if(l(t)){for(var r=t.length,o=[],c=0;c<r;c++){var y=t[c];"string"==typeof y?g(o,y):"number"!=typeof y&&"Number"!==h(y)&&"String"!==h(y)||g(o,d(y))}var m=o.length,v=!0;return function(t,r){if(v){v=!1;return r}if(l(this))return r;for(var c=0;c<m;c++)if(o[c]===t)return r}}}},8486:(t,r,o)=>{var c=o(1782),l=o(3734);t.exports=function(t,r){var o=t[r];return l(o)?void 0:c(o)}},1096:(t,r,o)=>{var c=o(1782),l=o(4719),u=o(2026),h=o(1003),d=o(9235),g="Invalid size",y=RangeError,m=TypeError,v=Math.max,SetRecord=function(t,r,o,c){this.set=t;this.size=r;this.has=o;this.keys=c};SetRecord.prototype={getIterator:function(){return d(l(u(this.keys,this.set)))},includes:function(t){return u(this.has,this.set,t)}};t.exports=function(t){l(t);var r=+t.size;if(r!=r)throw new m(g);var o=h(r);if(o<0)throw new y(g);return new SetRecord(t,v(o,0),c(t.has),c(t.keys))}},1634:(t,r,o)=>{var c=o(8403),l=o(2007),u=Math.floor,h=c("".charAt),d=c("".replace),g=c("".slice),y=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,m=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,o,c,v,_){var w=o+t.length,k=c.length,x=m;if(void 0!==v){v=l(v);x=y}return d(_,x,(function(l,d){var y;switch(h(d,0)){case"$":return"$";case"&":return t;case"`":return g(r,0,o);case"'":return g(r,w);case"<":y=v[g(d,1,-1)];break;default:var m=+d;if(0===m)return l;if(m>k){var _=u(m/10);return 0===_?l:_<=k?void 0===c[_-1]?h(d,1):c[_-1]+h(d,1):l}y=c[m-1]}return void 0===y?"":y}))}},9298:function(t){var check=function(t){return t&&t.Math===Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()},936:(t,r,o)=>{var c=o(8403),l=o(2007),u=c({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return u(l(t),r)}},6010:t=>{t.exports={}},5285:t=>{t.exports=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}},519:(t,r,o)=>{var c=o(7187);t.exports=c("document","documentElement")},9394:(t,r,o)=>{var c=o(940),l=o(8154),u=o(5584);t.exports=!c&&!l((function(){return 7!==Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},3106:t=>{var r=Array,o=Math.abs,c=Math.pow,l=Math.floor,u=Math.log,h=Math.LN2;t.exports={pack:function(t,d,g){var y,m,v,_=r(g),w=8*g-d-1,k=(1<<w)-1,x=k>>1,S=23===d?c(2,-24)-c(2,-77):0,C=t<0||0===t&&1/t<0?1:0,O=0;if((t=o(t))!=t||t===1/0){m=t!=t?1:0;y=k}else{y=l(u(t)/h);if(t*(v=c(2,-y))<1){y--;v*=2}if((t+=y+x>=1?S/v:S*c(2,1-x))*v>=2){y++;v/=2}if(y+x>=k){m=0;y=k}else if(y+x>=1){m=(t*v-1)*c(2,d);y+=x}else{m=t*c(2,x-1)*c(2,d);y=0}}for(;d>=8;){_[O++]=255&m;m/=256;d-=8}y=y<<d|m;w+=d;for(;w>0;){_[O++]=255&y;y/=256;w-=8}_[--O]|=128*C;return _},unpack:function(t,r){var o,l=t.length,u=8*l-r-1,h=(1<<u)-1,d=h>>1,g=u-7,y=l-1,m=t[y--],v=127&m;m>>=7;for(;g>0;){v=256*v+t[y--];g-=8}o=v&(1<<-g)-1;v>>=-g;g+=r;for(;g>0;){o=256*o+t[y--];g-=8}if(0===v)v=1-d;else{if(v===h)return o?NaN:m?-1/0:1/0;o+=c(2,r);v-=d}return(m?-1:1)*o*c(2,v-r)}}},3622:(t,r,o)=>{var c=o(8403),l=o(8154),u=o(8374),h=Object,d=c("".split);t.exports=l((function(){return!h("z").propertyIsEnumerable(0)}))?function(t){return"String"===u(t)?d(t,""):h(t)}:h},7523:(t,r,o)=>{var c=o(7316),l=o(7633),u=o(9763);t.exports=function(t,r,o){var h,d;u&&c(h=r.constructor)&&h!==o&&l(d=h.prototype)&&d!==o.prototype&&u(t,d);return t}},4993:(t,r,o)=>{var c=o(8403),l=o(7316),u=o(7542),h=c(Function.toString);l(u.inspectSource)||(u.inspectSource=function(t){return h(t)});t.exports=u.inspectSource},8422:(t,r,o)=>{var c=o(7633),l=o(9293);t.exports=function(t,r){c(r)&&"cause"in r&&l(t,"cause",r.cause)}},4694:(t,r,o)=>{var c=o(4978),l=o(8403),u=o(6010),h=o(7633),d=o(936),g=o(7744).f,y=o(5455),m=o(2329),v=o(2191),_=o(7561),w=o(7010),k=!1,x=_("meta"),S=0,setMetadata=function(t){g(t,x,{value:{objectID:"O"+S++,weakData:{}}})},C=t.exports={enable:function(){C.enable=function(){};k=!0;var t=y.f,r=l([].splice),o={};o[x]=1;if(t(o).length){y.f=function(o){for(var c=t(o),l=0,u=c.length;l<u;l++)if(c[l]===x){r(c,l,1);break}return c};c({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:m.f})}},fastKey:function(t,r){if(!h(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!d(t,x)){if(!v(t))return"F";if(!r)return"E";setMetadata(t)}return t[x].objectID},getWeakData:function(t,r){if(!d(t,x)){if(!v(t))return!0;if(!r)return!1;setMetadata(t)}return t[x].weakData},onFreeze:function(t){w&&k&&v(t)&&!d(t,x)&&setMetadata(t);return t}};u[x]=!0},1649:(t,r,o)=>{var c,l,u,h=o(8443),d=o(9298),g=o(7633),y=o(9293),m=o(936),v=o(7542),_=o(3727),w=o(6010),k="Object already initialized",x=d.TypeError,S=d.WeakMap;if(h||v.state){var C=v.state||(v.state=new S);C.get=C.get;C.has=C.has;C.set=C.set;c=function(t,r){if(C.has(t))throw new x(k);r.facade=t;C.set(t,r);return r};l=function(t){return C.get(t)||{}};u=function(t){return C.has(t)}}else{var O=_("state");w[O]=!0;c=function(t,r){if(m(t,O))throw new x(k);r.facade=t;y(t,O,r);return r};l=function(t){return m(t,O)?t[O]:{}};u=function(t){return m(t,O)}}t.exports={set:c,get:l,has:u,enforce:function(t){return u(t)?l(t):c(t,{})},getterFor:function(t){return function(r){var o;if(!g(r)||(o=l(r)).type!==t)throw new x("Incompatible receiver, "+t+" required");return o}}}},5191:(t,r,o)=>{var c=o(2292),l=o(6596),u=c("iterator"),h=Array.prototype;t.exports=function(t){return void 0!==t&&(l.Array===t||h[u]===t)}},6998:(t,r,o)=>{var c=o(8374);t.exports=Array.isArray||function isArray(t){return"Array"===c(t)}},5986:(t,r,o)=>{var c=o(8329);t.exports=function(t){var r=c(t);return"BigInt64Array"===r||"BigUint64Array"===r}},7316:(t,r,o)=>{var c=o(1558),l=c.all;t.exports=c.IS_HTMLDDA?function(t){return"function"==typeof t||t===l}:function(t){return"function"==typeof t}},1694:(t,r,o)=>{var c=o(8403),l=o(8154),u=o(7316),h=o(8329),d=o(7187),g=o(4993),noop=function(){},y=[],m=d("Reflect","construct"),v=/^\s*(?:class|function)\b/,_=c(v.exec),w=!v.test(noop),k=function isConstructor(t){if(!u(t))return!1;try{m(noop,y,t);return!0}catch(t){return!1}},x=function isConstructor(t){if(!u(t))return!1;switch(h(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return w||!!_(v,g(t))}catch(t){return!0}};x.sham=!0;t.exports=!m||l((function(){var t;return k(k.call)||!k(Object)||!k((function(){t=!0}))||t}))?x:k},3374:(t,r,o)=>{var c=o(936);t.exports=function(t){return void 0!==t&&(c(t,"value")||c(t,"writable"))}},7007:(t,r,o)=>{var c=o(8154),l=o(7316),u=/#|\.prototype\./,isForced=function(t,r){var o=d[h(t)];return o===y||o!==g&&(l(r)?c(r):!!r)},h=isForced.normalize=function(t){return String(t).replace(u,".").toLowerCase()},d=isForced.data={},g=isForced.NATIVE="N",y=isForced.POLYFILL="P";t.exports=isForced},987:(t,r,o)=>{var c=o(7633),l=Math.floor;t.exports=Number.isInteger||function isInteger(t){return!c(t)&&isFinite(t)&&l(t)===t}},3734:t=>{t.exports=function(t){return null==t}},7633:(t,r,o)=>{var c=o(7316),l=o(1558),u=l.all;t.exports=l.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:c(t)||t===u}:function(t){return"object"==typeof t?null!==t:c(t)}},2554:t=>{t.exports=!1},6660:(t,r,o)=>{var c=o(7633),l=o(8374),u=o(2292)("match");t.exports=function(t){var r;return c(t)&&(void 0!==(r=t[u])?!!r:"RegExp"===l(t))}},7814:(t,r,o)=>{var c=o(7187),l=o(7316),u=o(2658),h=o(7960),d=Object;t.exports=h?function(t){return"symbol"==typeof t}:function(t){var r=c("Symbol");return l(r)&&u(r.prototype,d(t))}},5504:(t,r,o)=>{var c=o(2026);t.exports=function(t,r,o){for(var l,u,h=o?t:t.iterator,d=t.next;!(l=c(d,h)).done;)if(void 0!==(u=r(l.value)))return u}},6837:(t,r,o)=>{var c=o(7789),l=o(2026),u=o(4719),h=o(9762),d=o(5191),g=o(451),y=o(2658),m=o(7612),v=o(273),_=o(3316),w=TypeError,Result=function(t,r){this.stopped=t;this.result=r},k=Result.prototype;t.exports=function(t,r,o){var x,S,C,O,T,E,j,R=o&&o.that,M=!(!o||!o.AS_ENTRIES),L=!(!o||!o.IS_RECORD),D=!(!o||!o.IS_ITERATOR),N=!(!o||!o.INTERRUPTED),U=c(r,R),stop=function(t){x&&_(x,"normal",t);return new Result(!0,t)},callFn=function(t){if(M){u(t);return N?U(t[0],t[1],stop):U(t[0],t[1])}return N?U(t,stop):U(t)};if(L)x=t.iterator;else if(D)x=t;else{if(!(S=v(t)))throw new w(h(t)+" is not iterable");if(d(S)){for(C=0,O=g(t);O>C;C++)if((T=callFn(t[C]))&&y(k,T))return T;return new Result(!1)}x=m(t,S)}E=L?t.next:x.next;for(;!(j=l(E,x)).done;){try{T=callFn(j.value)}catch(t){_(x,"throw",t)}if("object"==typeof T&&T&&y(k,T))return T}return new Result(!1)}},3316:(t,r,o)=>{var c=o(2026),l=o(4719),u=o(8486);t.exports=function(t,r,o){var h,d;l(t);try{if(!(h=u(t,"return"))){if("throw"===r)throw o;return o}h=c(h,t)}catch(t){d=!0;h=t}if("throw"===r)throw o;if(d)throw h;l(h);return o}},552:(t,r,o)=>{var c=o(5238).IteratorPrototype,l=o(6941),u=o(1198),h=o(7536),d=o(6596),returnThis=function(){return this};t.exports=function(t,r,o,g){var y=r+" Iterator";t.prototype=l(c,{next:u(+!g,o)});h(t,y,!1,!0);d[y]=returnThis;return t}},375:(t,r,o)=>{var c=o(2026),l=o(6941),u=o(9293),h=o(6880),d=o(2292),g=o(1649),y=o(8486),m=o(5238).IteratorPrototype,v=o(1111),_=o(3316),w=d("toStringTag"),k="IteratorHelper",x="WrapForValidIterator",S=g.set,createIteratorProxyPrototype=function(t){var r=g.getterFor(t?x:k);return h(l(m),{next:function next(){var o=r(this);if(t)return o.nextHandler();try{var c=o.done?void 0:o.nextHandler();return v(c,o.done)}catch(t){o.done=!0;throw t}},return:function(){var o=r(this),l=o.iterator;o.done=!0;if(t){var u=y(l,"return");return u?c(u,l):v(void 0,!0)}if(o.inner)try{_(o.inner.iterator,"normal")}catch(t){return _(l,"throw",t)}_(l,"normal");return v(void 0,!0)}})},C=createIteratorProxyPrototype(!0),O=createIteratorProxyPrototype(!1);u(O,w,"Iterator Helper");t.exports=function(t,r){var o=function Iterator(o,c){if(c){c.iterator=o.iterator;c.next=o.next}else c=o;c.type=r?x:k;c.nextHandler=t;c.counter=0;c.done=!1;S(this,c)};o.prototype=r?C:O;return o}},7301:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(2554),h=o(5145),d=o(7316),g=o(552),y=o(2176),m=o(9763),v=o(7536),_=o(9293),w=o(7041),k=o(2292),x=o(6596),S=o(5238),C=h.PROPER,O=h.CONFIGURABLE,T=S.IteratorPrototype,E=S.BUGGY_SAFARI_ITERATORS,j=k("iterator"),R="keys",M="values",L="entries",returnThis=function(){return this};t.exports=function(t,r,o,h,k,S,D){g(o,r,h);var N,U,G,getIterationMethod=function(t){if(t===k&&V)return V;if(!E&&t&&t in z)return z[t];switch(t){case R:return function keys(){return new o(this,t)};case M:return function values(){return new o(this,t)};case L:return function entries(){return new o(this,t)}}return function(){return new o(this)}},H=r+" Iterator",q=!1,z=t.prototype,W=z[j]||z["@@iterator"]||k&&z[k],V=!E&&W||getIterationMethod(k),X="Array"===r&&z.entries||W;if(X&&(N=y(X.call(new t)))!==Object.prototype&&N.next){u||y(N)===T||(m?m(N,T):d(N[j])||w(N,j,returnThis));v(N,H,!0,!0);u&&(x[H]=returnThis)}if(C&&k===M&&W&&W.name!==M)if(!u&&O)_(z,"name",M);else{q=!0;V=function values(){return l(W,this)}}if(k){U={values:getIterationMethod(M),keys:S?V:getIterationMethod(R),entries:getIterationMethod(L)};if(D)for(G in U)(E||q||!(G in z))&&w(z,G,U[G]);else c({target:r,proto:!0,forced:E||q},U)}u&&!D||z[j]===V||w(z,j,V,{name:k});x[r]=V;return U}},8142:(t,r,o)=>{var c=o(2026),l=o(1782),u=o(4719),h=o(9235),d=o(375),g=o(5723),y=d((function(){var t=this.iterator,r=u(c(this.next,t));if(!(this.done=!!r.done))return g(t,this.mapper,[r.value,this.counter++],!0)}));t.exports=function map(t){u(this);l(t);return new y(h(this),{mapper:t})}},5238:(t,r,o)=>{var c,l,u,h=o(8154),d=o(7316),g=o(7633),y=o(6941),m=o(2176),v=o(7041),_=o(2292),w=o(2554),k=_("iterator"),x=!1;[].keys&&("next"in(u=[].keys())?(l=m(m(u)))!==Object.prototype&&(c=l):x=!0);!g(c)||h((function(){var t={};return c[k].call(t)!==t}))?c={}:w&&(c=y(c));d(c[k])||v(c,k,(function(){return this}));t.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:x}},6596:t=>{t.exports={}},451:(t,r,o)=>{var c=o(8293);t.exports=function(t){return c(t.length)}},9687:(t,r,o)=>{var c=o(8403),l=o(8154),u=o(7316),h=o(936),d=o(940),g=o(5145).CONFIGURABLE,y=o(4993),m=o(1649),v=m.enforce,_=m.get,w=String,k=Object.defineProperty,x=c("".slice),S=c("".replace),C=c([].join),O=d&&!l((function(){return 8!==k((function(){}),"length",{value:8}).length})),T=String(String).split("String"),E=t.exports=function(t,r,o){"Symbol("===x(w(r),0,7)&&(r="["+S(w(r),/^Symbol\(([^)]*)\)/,"$1")+"]");o&&o.getter&&(r="get "+r);o&&o.setter&&(r="set "+r);(!h(t,"name")||g&&t.name!==r)&&(d?k(t,"name",{value:r,configurable:!0}):t.name=r);O&&o&&h(o,"arity")&&t.length!==o.arity&&k(t,"length",{value:o.arity});try{o&&h(o,"constructor")&&o.constructor?d&&k(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var c=v(t);h(c,"source")||(c.source=C(T,"string"==typeof r?r:""));return t};Function.prototype.toString=E((function toString(){return u(this)&&_(this).source||y(this)}),"toString")},6336:(t,r,o)=>{var c=o(4875),l=Math.abs,u=2220446049250313e-31,h=1/u;t.exports=function(t,r,o,d){var g=+t,y=l(g),m=c(g);if(y<d)return m*function(t){return t+h-h}(y/d/r)*d*r;var v=(1+r/u)*y,_=v-(v-y);return _>o||_!=_?m*(1/0):m*_}},796:(t,r,o)=>{var c=o(6336);t.exports=Math.fround||function fround(t){return c(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},3081:t=>{var r=Math.log,o=Math.LOG10E;t.exports=Math.log10||function log10(t){return r(t)*o}},4875:t=>{t.exports=Math.sign||function sign(t){var r=+t;return 0===r||r!=r?r:r<0?-1:1}},8537:t=>{var r=Math.ceil,o=Math.floor;t.exports=Math.trunc||function trunc(t){var c=+t;return(c>0?o:r)(c)}},1627:(t,r,o)=>{var c,l,u,h,d,g=o(9298),y=o(7789),m=o(5764).f,v=o(4578).set,_=o(1397),w=o(2589),k=o(1458),x=o(8173),S=o(4864),C=g.MutationObserver||g.WebKitMutationObserver,O=g.document,T=g.process,E=g.Promise,j=m(g,"queueMicrotask"),R=j&&j.value;if(!R){var M=new _,flush=function(){var t,r;S&&(t=T.domain)&&t.exit();for(;r=M.get();)try{r()}catch(t){M.head&&c();throw t}t&&t.enter()};if(w||S||x||!C||!O)if(!k&&E&&E.resolve){(h=E.resolve(void 0)).constructor=E;d=y(h.then,h);c=function(){d(flush)}}else if(S)c=function(){T.nextTick(flush)};else{v=y(v,g);c=function(){v(flush)}}else{l=!0;u=O.createTextNode("");new C(flush).observe(u,{characterData:!0});c=function(){u.data=l=!l}}R=function(t){M.head||c();M.add(t)}}t.exports=R},1880:(t,r,o)=>{var c=o(1782),l=TypeError,PromiseCapability=function(t){var r,o;this.promise=new t((function(t,c){if(void 0!==r||void 0!==o)throw new l("Bad Promise constructor");r=t;o=c}));this.resolve=c(r);this.reject=c(o)};t.exports.f=function(t){return new PromiseCapability(t)}},1264:(t,r,o)=>{var c=o(5730);t.exports=function(t,r){return void 0===t?arguments.length<2?"":r:c(t)}},9578:(t,r,o)=>{var c=o(6660),l=TypeError;t.exports=function(t){if(c(t))throw new l("The method doesn't accept regular expressions");return t}},453:(t,r,o)=>{var c=o(940),l=o(8403),u=o(2026),h=o(8154),d=o(1706),g=o(1963),y=o(1879),m=o(2007),v=o(3622),_=Object.assign,w=Object.defineProperty,k=l([].concat);t.exports=!_||h((function(){if(c&&1!==_({b:1},_(w({},"a",{enumerable:!0,get:function(){w(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},o=Symbol("assign detection"),l="abcdefghijklmnopqrst";t[o]=7;l.split("").forEach((function(t){r[t]=t}));return 7!==_({},t)[o]||d(_({},r)).join("")!==l}))?function assign(t,r){for(var o=m(t),l=arguments.length,h=1,_=g.f,w=y.f;l>h;)for(var x,S=v(arguments[h++]),C=_?k(d(S),_(S)):d(S),O=C.length,T=0;O>T;){x=C[T++];c&&!u(w,S,x)||(o[x]=S[x])}return o}:_},6941:(t,r,o)=>{var c,l=o(4719),u=o(6617),h=o(298),d=o(6010),g=o(519),y=o(5584),m=o(3727),v="prototype",_="script",w=m("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<"+_+">"+t+"</"+_+">"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag(""));t.close();var r=t.parentWindow.Object;t=null;return r},NullProtoObject=function(){try{c=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&c?NullProtoObjectViaActiveX(c):function(){var t,r=y("iframe"),o="java"+_+":";r.style.display="none";g.appendChild(r);r.src=String(o);(t=r.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}():NullProtoObjectViaActiveX(c);for(var t=h.length;t--;)delete NullProtoObject[v][h[t]];return NullProtoObject()};d[w]=!0;t.exports=Object.create||function create(t,r){var o;if(null!==t){EmptyConstructor[v]=l(t);o=new EmptyConstructor;EmptyConstructor[v]=null;o[w]=t}else o=NullProtoObject();return void 0===r?o:u.f(o,r)}},6617:(t,r,o)=>{var c=o(940),l=o(9610),u=o(7744),h=o(4719),d=o(4115),g=o(1706);r.f=c&&!l?Object.defineProperties:function defineProperties(t,r){h(t);for(var o,c=d(r),l=g(r),y=l.length,m=0;y>m;)u.f(t,o=l[m++],c[o]);return t}},7744:(t,r,o)=>{var c=o(940),l=o(9394),u=o(9610),h=o(4719),d=o(4871),g=TypeError,y=Object.defineProperty,m=Object.getOwnPropertyDescriptor,v="enumerable",_="configurable",w="writable";r.f=c?u?function defineProperty(t,r,o){h(t);r=d(r);h(o);if("function"==typeof t&&"prototype"===r&&"value"in o&&w in o&&!o[w]){var c=m(t,r);if(c&&c[w]){t[r]=o.value;o={configurable:_ in o?o[_]:c[_],enumerable:v in o?o[v]:c[v],writable:!1}}}return y(t,r,o)}:y:function defineProperty(t,r,o){h(t);r=d(r);h(o);if(l)try{return y(t,r,o)}catch(t){}if("get"in o||"set"in o)throw new g("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},5764:(t,r,o)=>{var c=o(940),l=o(2026),u=o(1879),h=o(1198),d=o(4115),g=o(4871),y=o(936),m=o(9394),v=Object.getOwnPropertyDescriptor;r.f=c?v:function getOwnPropertyDescriptor(t,r){t=d(t);r=g(r);if(m)try{return v(t,r)}catch(t){}if(y(t,r))return h(!l(u.f,t,r),t[r])}},2329:(t,r,o)=>{var c=o(8374),l=o(4115),u=o(5455).f,h=o(6071),d="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function getOwnPropertyNames(t){return d&&"Window"===c(t)?function(t){try{return u(t)}catch(t){return h(d)}}(t):u(l(t))}},5455:(t,r,o)=>{var c=o(9138),l=o(298).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return c(t,l)}},1963:(t,r)=>{r.f=Object.getOwnPropertySymbols},2176:(t,r,o)=>{var c=o(936),l=o(7316),u=o(2007),h=o(3727),d=o(7888),g=h("IE_PROTO"),y=Object,m=y.prototype;t.exports=d?y.getPrototypeOf:function(t){var r=u(t);if(c(r,g))return r[g];var o=r.constructor;return l(o)&&r instanceof o?o.prototype:r instanceof y?m:null}},2191:(t,r,o)=>{var c=o(8154),l=o(7633),u=o(8374),h=o(6944),d=Object.isExtensible,g=c((function(){d(1)}));t.exports=g||h?function isExtensible(t){return!!l(t)&&((!h||"ArrayBuffer"!==u(t))&&(!d||d(t)))}:d},2658:(t,r,o)=>{var c=o(8403);t.exports=c({}.isPrototypeOf)},9138:(t,r,o)=>{var c=o(8403),l=o(936),u=o(4115),h=o(9773).indexOf,d=o(6010),g=c([].push);t.exports=function(t,r){var o,c=u(t),y=0,m=[];for(o in c)!l(d,o)&&l(c,o)&&g(m,o);for(;r.length>y;)l(c,o=r[y++])&&(~h(m,o)||g(m,o));return m}},1706:(t,r,o)=>{var c=o(9138),l=o(298);t.exports=Object.keys||function keys(t){return c(t,l)}},1879:(t,r)=>{var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,l=c&&!o.call({1:2},1);r.f=l?function propertyIsEnumerable(t){var r=c(this,t);return!!r&&r.enumerable}:o},9763:(t,r,o)=>{var c=o(1299),l=o(4719),u=o(4958);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,o={};try{(t=c(Object.prototype,"__proto__","set"))(o,[]);r=o instanceof Array}catch(t){}return function setPrototypeOf(o,c){l(o);u(c);r?t(o,c):o.__proto__=c;return o}}():void 0)},2492:(t,r,o)=>{var c=o(940),l=o(8154),u=o(8403),h=o(2176),d=o(1706),g=o(4115),y=u(o(1879).f),m=u([].push),v=c&&l((function(){var t=Object.create(null);t[2]=2;return!y(t,2)})),createMethod=function(t){return function(r){for(var o,l=g(r),u=d(l),_=v&&null===h(l),w=u.length,k=0,x=[];w>k;){o=u[k++];c&&!(_?o in l:y(l,o))||m(x,t?[o,l[o]]:l[o])}return x}};t.exports={entries:createMethod(!0),values:createMethod(!1)}},759:(t,r,o)=>{var c=o(3077),l=o(8329);t.exports=c?{}.toString:function toString(){return"[object "+l(this)+"]"}},2923:(t,r,o)=>{var c=o(2026),l=o(7316),u=o(7633),h=TypeError;t.exports=function(t,r){var o,d;if("string"===r&&l(o=t.toString)&&!u(d=c(o,t)))return d;if(l(o=t.valueOf)&&!u(d=c(o,t)))return d;if("string"!==r&&l(o=t.toString)&&!u(d=c(o,t)))return d;throw new h("Can't convert object to primitive value")}},8953:(t,r,o)=>{var c=o(7187),l=o(8403),u=o(5455),h=o(1963),d=o(4719),g=l([].concat);t.exports=c("Reflect","ownKeys")||function ownKeys(t){var r=u.f(d(t)),o=h.f;return o?g(r,o(t)):r}},1021:(t,r,o)=>{var c=o(9298);t.exports=c},1518:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},8308:(t,r,o)=>{var c=o(9298),l=o(6639),u=o(7316),h=o(7007),d=o(4993),g=o(2292),y=o(3413),m=o(8471),v=o(2554),_=o(2171),w=l&&l.prototype,k=g("species"),x=!1,S=u(c.PromiseRejectionEvent),C=h("Promise",(function(){var t=d(l),r=t!==String(l);if(!r&&66===_)return!0;if(v&&(!w.catch||!w.finally))return!0;if(!_||_<51||!/native code/.test(t)){var o=new l((function(t){t(1)})),FakePromise=function(t){t((function(){}),(function(){}))};(o.constructor={})[k]=FakePromise;if(!(x=o.then((function(){}))instanceof FakePromise))return!0}return!r&&(y||m)&&!S}));t.exports={CONSTRUCTOR:C,REJECTION_EVENT:S,SUBCLASSING:x}},6639:(t,r,o)=>{var c=o(9298);t.exports=c.Promise},2506:(t,r,o)=>{var c=o(4719),l=o(7633),u=o(1880);t.exports=function(t,r){c(t);if(l(r)&&r.constructor===t)return r;var o=u.f(t);(0,o.resolve)(r);return o.promise}},3779:(t,r,o)=>{var c=o(6639),l=o(1374),u=o(8308).CONSTRUCTOR;t.exports=u||!l((function(t){c.all(t).then(void 0,(function(){}))}))},6085:(t,r,o)=>{var c=o(7744).f;t.exports=function(t,r,o){o in t||c(t,o,{configurable:!0,get:function(){return r[o]},set:function(t){r[o]=t}})}},1397:t=>{var Queue=function(){this.head=null;this.tail=null};Queue.prototype={add:function(t){var r={item:t,next:null},o=this.tail;o?o.next=r:this.head=r;this.tail=r},get:function(){var t=this.head;if(t){null===(this.head=t.next)&&(this.tail=null);return t.item}}};t.exports=Queue},8986:(t,r,o)=>{var c=o(2026),l=o(4719),u=o(7316),h=o(8374),d=o(2178),g=TypeError;t.exports=function(t,r){var o=t.exec;if(u(o)){var y=c(o,t,r);null!==y&&l(y);return y}if("RegExp"===h(t))return c(d,t,r);throw new g("RegExp#exec called on incompatible receiver")}},2178:(t,r,o)=>{var c=o(2026),l=o(8403),u=o(5730),h=o(9272),d=o(3286),g=o(6807),y=o(6941),m=o(1649).get,v=o(1714),_=o(2513),w=g("native-string-replace",String.prototype.replace),k=RegExp.prototype.exec,x=k,S=l("".charAt),C=l("".indexOf),O=l("".replace),T=l("".slice),E=function(){var t=/a/,r=/b*/g;c(k,t,"a");c(k,r,"a");return 0!==t.lastIndex||0!==r.lastIndex}(),j=d.BROKEN_CARET,R=void 0!==/()??/.exec("")[1];(E||R||j||v||_)&&(x=function exec(t){var r,o,l,d,g,v,_,M=this,L=m(M),D=u(t),N=L.raw;if(N){N.lastIndex=M.lastIndex;r=c(x,N,D);M.lastIndex=N.lastIndex;return r}var U=L.groups,G=j&&M.sticky,H=c(h,M),q=M.source,z=0,W=D;if(G){H=O(H,"y","");-1===C(H,"g")&&(H+="g");W=T(D,M.lastIndex);if(M.lastIndex>0&&(!M.multiline||M.multiline&&"\n"!==S(D,M.lastIndex-1))){q="(?: "+q+")";W=" "+W;z++}o=new RegExp("^(?:"+q+")",H)}R&&(o=new RegExp("^"+q+"$(?!\\s)",H));E&&(l=M.lastIndex);d=c(k,G?o:M,W);if(G)if(d){d.input=T(d.input,z);d[0]=T(d[0],z);d.index=M.lastIndex;M.lastIndex+=d[0].length}else M.lastIndex=0;else E&&d&&(M.lastIndex=M.global?d.index+d[0].length:l);R&&d&&d.length>1&&c(w,d[0],o,(function(){for(g=1;g<arguments.length-2;g++)void 0===arguments[g]&&(d[g]=void 0)}));if(d&&U){d.groups=v=y(null);for(g=0;g<U.length;g++)v[(_=U[g])[0]]=d[_[1]]}return d});t.exports=x},9272:(t,r,o)=>{var c=o(4719);t.exports=function(){var t=c(this),r="";t.hasIndices&&(r+="d");t.global&&(r+="g");t.ignoreCase&&(r+="i");t.multiline&&(r+="m");t.dotAll&&(r+="s");t.unicode&&(r+="u");t.unicodeSets&&(r+="v");t.sticky&&(r+="y");return r}},1043:(t,r,o)=>{var c=o(2026),l=o(936),u=o(2658),h=o(9272),d=RegExp.prototype;t.exports=function(t){var r=t.flags;return void 0!==r||"flags"in d||l(t,"flags")||!u(d,t)?r:c(h,t)}},3286:(t,r,o)=>{var c=o(8154),l=o(9298).RegExp,u=c((function(){var t=l("a","y");t.lastIndex=2;return null!==t.exec("abcd")})),h=u||c((function(){return!l("a","y").sticky})),d=u||c((function(){var t=l("^r","gy");t.lastIndex=2;return null!==t.exec("str")}));t.exports={BROKEN_CARET:d,MISSED_STICKY:h,UNSUPPORTED_Y:u}},1714:(t,r,o)=>{var c=o(8154),l=o(9298).RegExp;t.exports=c((function(){var t=l(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},2513:(t,r,o)=>{var c=o(8154),l=o(9298).RegExp;t.exports=c((function(){var t=l("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},5645:(t,r,o)=>{var c=o(3734),l=TypeError;t.exports=function(t){if(c(t))throw new l("Can't call method on "+t);return t}},4057:(t,r,o)=>{var c=o(23),l=o(8848),u=c.Set,h=c.add;t.exports=function(t){var r=new u;l(t,(function(t){h(r,t)}));return r}},5656:(t,r,o)=>{var c=o(5690),l=o(23),u=o(4057),h=o(6098),d=o(1096),g=o(8848),y=o(5504),m=l.has,v=l.remove;t.exports=function difference(t){var r=c(this),o=d(t),l=u(r);h(r)<=o.size?g(r,(function(t){o.includes(t)&&v(l,t)})):y(o.getIterator(),(function(t){m(r,t)&&v(l,t)}));return l}},23:(t,r,o)=>{var c=o(8403),l=Set.prototype;t.exports={Set:Set,add:c(l.add),has:c(l.has),remove:c(l.delete),proto:l}},8461:(t,r,o)=>{var c=o(5690),l=o(23),u=o(6098),h=o(1096),d=o(8848),g=o(5504),y=l.Set,m=l.add,v=l.has;t.exports=function intersection(t){var r=c(this),o=h(t),l=new y;u(r)>o.size?g(o.getIterator(),(function(t){v(r,t)&&m(l,t)})):d(r,(function(t){o.includes(t)&&m(l,t)}));return l}},8550:(t,r,o)=>{var c=o(5690),l=o(23).has,u=o(6098),h=o(1096),d=o(8848),g=o(5504),y=o(3316);t.exports=function isDisjointFrom(t){var r=c(this),o=h(t);if(u(r)<=o.size)return!1!==d(r,(function(t){if(o.includes(t))return!1}),!0);var m=o.getIterator();return!1!==g(m,(function(t){if(l(r,t))return y(m,"normal",!1)}))}},990:(t,r,o)=>{var c=o(5690),l=o(6098),u=o(8848),h=o(1096);t.exports=function isSubsetOf(t){var r=c(this),o=h(t);return!(l(r)>o.size)&&!1!==u(r,(function(t){if(!o.includes(t))return!1}),!0)}},194:(t,r,o)=>{var c=o(5690),l=o(23).has,u=o(6098),h=o(1096),d=o(5504),g=o(3316);t.exports=function isSupersetOf(t){var r=c(this),o=h(t);if(u(r)<o.size)return!1;var y=o.getIterator();return!1!==d(y,(function(t){if(!l(r,t))return g(y,"normal",!1)}))}},8848:(t,r,o)=>{var c=o(8403),l=o(5504),u=o(23),h=u.Set,d=u.proto,g=c(d.forEach),y=c(d.keys),m=y(new h).next;t.exports=function(t,r,o){return o?l({iterator:y(t),next:m},r):g(t,r)}},507:(t,r,o)=>{var c=o(7187),createSetLike=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var r=c("Set");try{(new r)[t](createSetLike(0));try{(new r)[t](createSetLike(-1));return!1}catch(t){return!0}}catch(t){return!1}}},6098:(t,r,o)=>{var c=o(1299),l=o(23);t.exports=c(l.proto,"size","get")||function(t){return t.size}},5963:(t,r,o)=>{var c=o(7187),l=o(9691),u=o(2292),h=o(940),d=u("species");t.exports=function(t){var r=c(t);h&&r&&!r[d]&&l(r,d,{configurable:!0,get:function(){return this}})}},3194:(t,r,o)=>{var c=o(5690),l=o(23),u=o(4057),h=o(1096),d=o(5504),g=l.add,y=l.has,m=l.remove;t.exports=function symmetricDifference(t){var r=c(this),o=h(t).getIterator(),l=u(r);d(o,(function(t){y(r,t)?m(l,t):g(l,t)}));return l}},7536:(t,r,o)=>{var c=o(7744).f,l=o(936),u=o(2292)("toStringTag");t.exports=function(t,r,o){t&&!o&&(t=t.prototype);t&&!l(t,u)&&c(t,u,{configurable:!0,value:r})}},5703:(t,r,o)=>{var c=o(5690),l=o(23).add,u=o(4057),h=o(1096),d=o(5504);t.exports=function union(t){var r=c(this),o=h(t).getIterator(),g=u(r);d(o,(function(t){l(g,t)}));return g}},3727:(t,r,o)=>{var c=o(6807),l=o(7561),u=c("keys");t.exports=function(t){return u[t]||(u[t]=l(t))}},7542:(t,r,o)=>{var c=o(9298),l=o(6e3),u="__core-js_shared__",h=c[u]||l(u,{});t.exports=h},6807:(t,r,o)=>{var c=o(2554),l=o(7542);(t.exports=function(t,r){return l[t]||(l[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.34.0",mode:c?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8180:(t,r,o)=>{var c=o(4719),l=o(7073),u=o(3734),h=o(2292)("species");t.exports=function(t,r){var o,d=c(t).constructor;return void 0===d||u(o=c(d)[h])?r:l(o)}},6819:(t,r,o)=>{var c=o(8403),l=o(1003),u=o(5730),h=o(5645),d=c("".charAt),g=c("".charCodeAt),y=c("".slice),createMethod=function(t){return function(r,o){var c,m,v=u(h(r)),_=l(o),w=v.length;return _<0||_>=w?t?"":void 0:(c=g(v,_))<55296||c>56319||_+1===w||(m=g(v,_+1))<56320||m>57343?t?d(v,_):c:t?y(v,_,_+2):m-56320+(c-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},4819:(t,r,o)=>{var c=o(234);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(c)},6460:(t,r,o)=>{var c=o(8403),l=o(8293),u=o(5730),h=o(947),d=o(5645),g=c(h),y=c("".slice),m=Math.ceil,createMethod=function(t){return function(r,o,c){var h,v,_=u(d(r)),w=l(o),k=_.length,x=void 0===c?" ":u(c);if(w<=k||""===x)return _;(v=g(x,m((h=w-k)/x.length))).length>h&&(v=y(v,0,h));return t?_+v:v+_}};t.exports={start:createMethod(!1),end:createMethod(!0)}},2897:(t,r,o)=>{var c=o(8403),l=2147483647,u=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,d="Overflow: input needs wider integers to process",g=RangeError,y=c(h.exec),m=Math.floor,v=String.fromCharCode,_=c("".charCodeAt),w=c([].join),k=c([].push),x=c("".replace),S=c("".split),C=c("".toLowerCase),digitToBasic=function(t){return t+22+75*(t<26)},adapt=function(t,r,o){var c=0;t=o?m(t/700):t>>1;t+=m(t/r);for(;t>455;){t=m(t/35);c+=36}return m(c+36*t/(t+38))},encode=function(t){var r=[];t=function(t){for(var r=[],o=0,c=t.length;o<c;){var l=_(t,o++);if(l>=55296&&l<=56319&&o<c){var u=_(t,o++);if(56320==(64512&u))k(r,((1023&l)<<10)+(1023&u)+65536);else{k(r,l);o--}}else k(r,l)}return r}(t);var o,c,u=t.length,h=128,y=0,x=72;for(o=0;o<t.length;o++)(c=t[o])<128&&k(r,v(c));var S=r.length,C=S;S&&k(r,"-");for(;C<u;){var O=l;for(o=0;o<t.length;o++)(c=t[o])>=h&&c<O&&(O=c);var T=C+1;if(O-h>m((l-y)/T))throw new g(d);y+=(O-h)*T;h=O;for(o=0;o<t.length;o++){if((c=t[o])<h&&++y>l)throw new g(d);if(c===h){for(var E=y,j=36;;){var R=j<=x?1:j>=x+26?26:j-x;if(E<R)break;var M=E-R,L=36-R;k(r,v(digitToBasic(R+M%L)));E=m(M/L);j+=36}k(r,v(digitToBasic(E)));x=adapt(y,T,C===S);y=0;C++}}y++;h++}return w(r,"")};t.exports=function(t){var r,o,c=[],l=S(x(C(t),h,"."),".");for(r=0;r<l.length;r++){o=l[r];k(c,y(u,o)?"xn--"+encode(o):o)}return w(c,".")}},947:(t,r,o)=>{var c=o(1003),l=o(5730),u=o(5645),h=RangeError;t.exports=function repeat(t){var r=l(u(this)),o="",d=c(t);if(d<0||d===1/0)throw new h("Wrong number of repetitions");for(;d>0;(d>>>=1)&&(r+=r))1&d&&(o+=r);return o}},8729:(t,r,o)=>{var c=o(5145).PROPER,l=o(8154),u=o(96);t.exports=function(t){return l((function(){return!!u[t]()||"
"!=="
"[t]()||c&&u[t].name!==t}))}},83:(t,r,o)=>{var c=o(8403),l=o(5645),u=o(5730),h=o(96),d=c("".replace),g=RegExp("^["+h+"]+"),y=RegExp("(^|[^"+h+"])["+h+"]+$"),createMethod=function(t){return function(r){var o=u(l(r));1&t&&(o=d(o,g,""));2&t&&(o=d(o,y,"$1"));return o}};t.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},4837:(t,r,o)=>{var c=o(9298),l=o(8154),u=o(2171),h=o(3413),d=o(8471),g=o(4864),y=c.structuredClone;t.exports=!!y&&!l((function(){if(d&&u>92||g&&u>94||h&&u>97)return!1;var t=new ArrayBuffer(8),r=y(t,{transfer:[t]});return 0!==t.byteLength||8!==r.byteLength}))},3663:(t,r,o)=>{var c=o(2171),l=o(8154),u=o(9298).String;t.exports=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&c&&c<41}))},5117:(t,r,o)=>{var c=o(2026),l=o(7187),u=o(2292),h=o(7041);t.exports=function(){var t=l("Symbol"),r=t&&t.prototype,o=r&&r.valueOf,d=u("toPrimitive");r&&!r[d]&&h(r,d,(function(t){return c(o,this)}),{arity:1})}},4186:(t,r,o)=>{var c=o(3663);t.exports=c&&!!Symbol.for&&!!Symbol.keyFor},4578:(t,r,o)=>{var c,l,u,h,d=o(9298),g=o(7294),y=o(7789),m=o(7316),v=o(936),_=o(8154),w=o(519),k=o(2251),x=o(5584),S=o(2743),C=o(2589),O=o(4864),T=d.setImmediate,E=d.clearImmediate,j=d.process,R=d.Dispatch,M=d.Function,L=d.MessageChannel,D=d.String,N=0,U={},G="onreadystatechange";_((function(){c=d.location}));var run=function(t){if(v(U,t)){var r=U[t];delete U[t];r()}},runner=function(t){return function(){run(t)}},eventListener=function(t){run(t.data)},globalPostMessageDefer=function(t){d.postMessage(D(t),c.protocol+"//"+c.host)};if(!T||!E){T=function setImmediate(t){S(arguments.length,1);var r=m(t)?t:M(t),o=k(arguments,1);U[++N]=function(){g(r,void 0,o)};l(N);return N};E=function clearImmediate(t){delete U[t]};if(O)l=function(t){j.nextTick(runner(t))};else if(R&&R.now)l=function(t){R.now(runner(t))};else if(L&&!C){h=(u=new L).port2;u.port1.onmessage=eventListener;l=y(h.postMessage,h)}else if(d.addEventListener&&m(d.postMessage)&&!d.importScripts&&c&&"file:"!==c.protocol&&!_(globalPostMessageDefer)){l=globalPostMessageDefer;d.addEventListener("message",eventListener,!1)}else l=G in x("script")?function(t){w.appendChild(x("script"))[G]=function(){w.removeChild(this);run(t)}}:function(t){setTimeout(runner(t),0)}}t.exports={set:T,clear:E}},3328:(t,r,o)=>{var c=o(8403);t.exports=c(1..valueOf)},6985:(t,r,o)=>{var c=o(1003),l=Math.max,u=Math.min;t.exports=function(t,r){var o=c(t);return o<0?l(o+r,0):u(o,r)}},212:(t,r,o)=>{var c=o(4151),l=TypeError;t.exports=function(t){var r=c(t,"number");if("number"==typeof r)throw new l("Can't convert number to bigint");return BigInt(r)}},9548:(t,r,o)=>{var c=o(1003),l=o(8293),u=RangeError;t.exports=function(t){if(void 0===t)return 0;var r=c(t),o=l(r);if(r!==o)throw new u("Wrong length or index");return o}},4115:(t,r,o)=>{var c=o(3622),l=o(5645);t.exports=function(t){return c(l(t))}},1003:(t,r,o)=>{var c=o(8537);t.exports=function(t){var r=+t;return r!=r||0===r?0:c(r)}},8293:(t,r,o)=>{var c=o(1003),l=Math.min;t.exports=function(t){return t>0?l(c(t),9007199254740991):0}},2007:(t,r,o)=>{var c=o(5645),l=Object;t.exports=function(t){return l(c(t))}},9892:(t,r,o)=>{var c=o(9817),l=RangeError;t.exports=function(t,r){var o=c(t);if(o%r)throw new l("Wrong offset");return o}},9817:(t,r,o)=>{var c=o(1003),l=RangeError;t.exports=function(t){var r=c(t);if(r<0)throw new l("The argument can't be less than 0");return r}},4151:(t,r,o)=>{var c=o(2026),l=o(7633),u=o(7814),h=o(8486),d=o(2923),g=o(2292),y=TypeError,m=g("toPrimitive");t.exports=function(t,r){if(!l(t)||u(t))return t;var o,g=h(t,m);if(g){void 0===r&&(r="default");o=c(g,t,r);if(!l(o)||u(o))return o;throw new y("Can't convert object to primitive value")}void 0===r&&(r="number");return d(t,r)}},4871:(t,r,o)=>{var c=o(4151),l=o(7814);t.exports=function(t){var r=c(t,"string");return l(r)?r:r+""}},3077:(t,r,o)=>{var c={};c[o(2292)("toStringTag")]="z";t.exports="[object z]"===String(c)},5730:(t,r,o)=>{var c=o(8329),l=String;t.exports=function(t){if("Symbol"===c(t))throw new TypeError("Cannot convert a Symbol value to a string");return l(t)}},9671:t=>{var r=Math.round;t.exports=function(t){var o=r(t);return o<0?0:o>255?255:255&o}},2276:(t,r,o)=>{var c=o(4864);t.exports=function(t){try{if(c)return Function('return require("'+t+'")')()}catch(t){}}},9762:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9173:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(2026),h=o(940),d=o(2127),g=o(5861),y=o(5050),m=o(5834),v=o(1198),_=o(9293),w=o(987),k=o(8293),x=o(9548),S=o(9892),C=o(9671),O=o(4871),T=o(936),E=o(8329),j=o(7633),R=o(7814),M=o(6941),L=o(2658),D=o(9763),N=o(5455).f,U=o(1675),G=o(2423).forEach,H=o(5963),q=o(9691),z=o(7744),W=o(5764),V=o(1649),X=o(7523),K=V.get,Y=V.set,J=V.enforce,$=z.f,Z=W.f,Q=l.RangeError,ee=y.ArrayBuffer,te=ee.prototype,re=y.DataView,ne=g.NATIVE_ARRAY_BUFFER_VIEWS,ae=g.TYPED_ARRAY_TAG,ie=g.TypedArray,oe=g.TypedArrayPrototype,se=g.aTypedArrayConstructor,ce=g.isTypedArray,le="BYTES_PER_ELEMENT",ue="Wrong length",fromList=function(t,r){se(t);for(var o=0,c=r.length,l=new t(c);c>o;)l[o]=r[o++];return l},addGetter=function(t,r){q(t,r,{configurable:!0,get:function(){return K(this)[r]}})},isArrayBuffer=function(t){var r;return L(te,t)||"ArrayBuffer"===(r=E(t))||"SharedArrayBuffer"===r},isTypedArrayIndex=function(t,r){return ce(t)&&!R(r)&&r in t&&w(+r)&&r>=0},fe=function getOwnPropertyDescriptor(t,r){r=O(r);return isTypedArrayIndex(t,r)?v(2,t[r]):Z(t,r)},he=function defineProperty(t,r,o){r=O(r);if(isTypedArrayIndex(t,r)&&j(o)&&T(o,"value")&&!T(o,"get")&&!T(o,"set")&&!o.configurable&&(!T(o,"writable")||o.writable)&&(!T(o,"enumerable")||o.enumerable)){t[r]=o.value;return t}return $(t,r,o)};if(h){if(!ne){W.f=fe;z.f=he;addGetter(oe,"buffer");addGetter(oe,"byteOffset");addGetter(oe,"byteLength");addGetter(oe,"length")}c({target:"Object",stat:!0,forced:!ne},{getOwnPropertyDescriptor:fe,defineProperty:he});t.exports=function(t,r,o){var h=t.match(/\d+/)[0]/8,g=t+(o?"Clamped":"")+"Array",y="get"+t,v="set"+t,w=l[g],O=w,T=O&&O.prototype,E={},addElement=function(t,r){$(t,r,{get:function(){return function(t,r){var o=K(t);return o.view[y](r*h+o.byteOffset,!0)}(this,r)},set:function(t){return function(t,r,c){var l=K(t);l.view[v](r*h+l.byteOffset,o?C(c):c,!0)}(this,r,t)},enumerable:!0})};if(ne){if(d){O=r((function(t,r,o,c){m(t,T);return X(j(r)?isArrayBuffer(r)?void 0!==c?new w(r,S(o,h),c):void 0!==o?new w(r,S(o,h)):new w(r):ce(r)?fromList(O,r):u(U,O,r):new w(x(r)),t,O)}));D&&D(O,ie);G(N(w),(function(t){t in O||_(O,t,w[t])}));O.prototype=T}}else{O=r((function(t,r,o,c){m(t,T);var l,d,g,y=0,v=0;if(j(r)){if(!isArrayBuffer(r))return ce(r)?fromList(O,r):u(U,O,r);l=r;v=S(o,h);var _=r.byteLength;if(void 0===c){if(_%h)throw new Q(ue);if((d=_-v)<0)throw new Q(ue)}else if((d=k(c)*h)+v>_)throw new Q(ue);g=d/h}else{g=x(r);l=new ee(d=g*h)}Y(t,{buffer:l,byteOffset:v,byteLength:d,length:g,view:new re(l)});for(;y<g;)addElement(t,y++)}));D&&D(O,ie);T=O.prototype=M(oe)}T.constructor!==O&&_(T,"constructor",O);J(T).TypedArrayConstructor=O;ae&&_(T,ae,g);var R=O!==w;E[g]=O;c({global:!0,constructor:!0,forced:R,sham:!ne},E);le in O||_(O,le,h);le in T||_(T,le,h);H(g)}}else t.exports=function(){}},2127:(t,r,o)=>{var c=o(9298),l=o(8154),u=o(1374),h=o(5861).NATIVE_ARRAY_BUFFER_VIEWS,d=c.ArrayBuffer,g=c.Int8Array;t.exports=!h||!l((function(){g(1)}))||!l((function(){new g(-1)}))||!u((function(t){new g;new g(null);new g(1.5);new g(t)}),!0)||l((function(){return 1!==new g(new d(2),1,void 0).length}))},5306:(t,r,o)=>{var c=o(7003),l=o(6239);t.exports=function(t,r){return c(l(t),r)}},1675:(t,r,o)=>{var c=o(7789),l=o(2026),u=o(7073),h=o(2007),d=o(451),g=o(7612),y=o(273),m=o(5191),v=o(5986),_=o(5861).aTypedArrayConstructor,w=o(212);t.exports=function from(t){var r,o,k,x,S,C,O,T,E=u(this),j=h(t),R=arguments.length,M=R>1?arguments[1]:void 0,L=void 0!==M,D=y(j);if(D&&!m(D)){T=(O=g(j,D)).next;j=[];for(;!(C=l(T,O)).done;)j.push(C.value)}L&&R>2&&(M=c(M,arguments[2]));o=d(j);k=new(_(E))(o);x=v(k);for(r=0;o>r;r++){S=L?M(j[r],r):j[r];k[r]=x?w(S):+S}return k}},6239:(t,r,o)=>{var c=o(5861),l=o(8180),u=c.aTypedArrayConstructor,h=c.getTypedArrayConstructor;t.exports=function(t){return u(l(t,h(t)))}},7561:(t,r,o)=>{var c=o(8403),l=0,u=Math.random(),h=c(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+h(++l+u,36)}},8815:(t,r,o)=>{var c=o(8154),l=o(2292),u=o(940),h=o(2554),d=l("iterator");t.exports=!c((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),c="";t.pathname="c%20d";r.forEach((function(t,o){r.delete("b");c+=o+t}));o.delete("a",2);o.delete("b",void 0);return h&&(!t.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!r.size&&(h||!u)||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[d]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==c||"x"!==new URL("http://x",void 0).host}))},7960:(t,r,o)=>{var c=o(3663);t.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9610:(t,r,o)=>{var c=o(940),l=o(8154);t.exports=c&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2743:t=>{var r=TypeError;t.exports=function(t,o){if(t<o)throw new r("Not enough arguments");return t}},8443:(t,r,o)=>{var c=o(9298),l=o(7316),u=c.WeakMap;t.exports=l(u)&&/native code/.test(String(u))},7120:(t,r,o)=>{var c=o(1021),l=o(936),u=o(8890),h=o(7744).f;t.exports=function(t){var r=c.Symbol||(c.Symbol={});l(r,t)||h(r,t,{value:u.f(t)})}},8890:(t,r,o)=>{var c=o(2292);r.f=c},2292:(t,r,o)=>{var c=o(9298),l=o(6807),u=o(936),h=o(7561),d=o(3663),g=o(7960),y=c.Symbol,m=l("wks"),v=g?y.for||y:y&&y.withoutSetter||h;t.exports=function(t){u(m,t)||(m[t]=d&&u(y,t)?y[t]:v("Symbol."+t));return m[t]}},96:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7342:(t,r,o)=>{var c=o(7187),l=o(936),u=o(9293),h=o(2658),d=o(9763),g=o(1425),y=o(6085),m=o(7523),v=o(1264),_=o(8422),w=o(1931),k=o(940),x=o(2554);t.exports=function(t,r,o,S){var C="stackTraceLimit",O=S?2:1,T=t.split("."),E=T[T.length-1],j=c.apply(null,T);if(j){var R=j.prototype;!x&&l(R,"cause")&&delete R.cause;if(!o)return j;var M=c("Error"),L=r((function(t,r){var o=v(S?r:t,void 0),c=S?new j(t):new j;void 0!==o&&u(c,"message",o);w(c,L,c.stack,2);this&&h(R,this)&&m(c,this,L);arguments.length>O&&_(c,arguments[O]);return c}));L.prototype=R;if("Error"!==E)d?d(L,M):g(L,M,{name:!0});else if(k&&C in j){y(L,j,C);y(L,j,"prepareStackTrace")}g(L,j);if(!x)try{R.name!==E&&u(R,"name",E);R.constructor=L}catch(t){}return L}}},6820:(t,r,o)=>{var c=o(4978),l=o(2007),u=o(451),h=o(1003),d=o(5463);c({target:"Array",proto:!0},{at:function at(t){var r=l(this),o=u(r),c=h(t),d=c>=0?c:o+c;return d<0||d>=o?void 0:r[d]}});d("at")},7874:(t,r,o)=>{var c=o(4978),l=o(8154),u=o(6998),h=o(7633),d=o(2007),g=o(451),y=o(4287),m=o(8947),v=o(8097),_=o(3577),w=o(2292),k=o(2171),x=w("isConcatSpreadable"),S=k>=51||!l((function(){var t=[];t[x]=!1;return t.concat()[0]!==t})),isConcatSpreadable=function(t){if(!h(t))return!1;var r=t[x];return void 0!==r?!!r:u(t)};c({target:"Array",proto:!0,arity:1,forced:!S||!_("concat")},{concat:function concat(t){var r,o,c,l,u,h=d(this),_=v(h,0),w=0;for(r=-1,c=arguments.length;r<c;r++)if(isConcatSpreadable(u=-1===r?h:arguments[r])){l=g(u);y(w+l);for(o=0;o<l;o++,w++)o in u&&m(_,w,u[o])}else{y(w+1);m(_,w++,u)}_.length=w;return _}})},7078:(t,r,o)=>{var c=o(4978),l=o(1474),u=o(5463);c({target:"Array",proto:!0},{copyWithin:l});u("copyWithin")},6394:(t,r,o)=>{var c=o(4978),l=o(8041),u=o(5463);c({target:"Array",proto:!0},{fill:l});u("fill")},1585:(t,r,o)=>{var c=o(4978),l=o(2423).filter;c({target:"Array",proto:!0,forced:!o(3577)("filter")},{filter:function filter(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},5621:(t,r,o)=>{var c=o(4978),l=o(2423).findIndex,u=o(5463),h="findIndex",d=!0;h in[]&&Array(1)[h]((function(){d=!1}));c({target:"Array",proto:!0,forced:d},{findIndex:function findIndex(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}});u(h)},275:(t,r,o)=>{var c=o(4978),l=o(2423).find,u=o(5463),h="find",d=!0;h in[]&&Array(1)[h]((function(){d=!1}));c({target:"Array",proto:!0,forced:d},{find:function find(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}});u(h)},4622:(t,r,o)=>{var c=o(4978),l=o(7938),u=o(2007),h=o(451),d=o(1003),g=o(8097);c({target:"Array",proto:!0},{flat:function flat(){var t=arguments.length?arguments[0]:void 0,r=u(this),o=h(r),c=g(r,0);c.length=l(c,r,r,o,0,void 0===t?1:d(t));return c}})},9593:(t,r,o)=>{var c=o(4978),l=o(7609);c({target:"Array",stat:!0,forced:!o(1374)((function(t){Array.from(t)}))},{from:l})},2796:(t,r,o)=>{var c=o(4978),l=o(9773).includes,u=o(8154),h=o(5463);c({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function includes(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}});h("includes")},8649:(t,r,o)=>{var c=o(4978),l=o(6218),u=o(9773).indexOf,h=o(8321),d=l([].indexOf),g=!!d&&1/d([1],1,-0)<0;c({target:"Array",proto:!0,forced:g||!h("indexOf")},{indexOf:function indexOf(t){var r=arguments.length>1?arguments[1]:void 0;return g?d(this,t,r)||0:u(this,t,r)}})},6180:(t,r,o)=>{var c=o(4115),l=o(5463),u=o(6596),h=o(1649),d=o(7744).f,g=o(7301),y=o(1111),m=o(2554),v=o(940),_="Array Iterator",w=h.set,k=h.getterFor(_);t.exports=g(Array,"Array",(function(t,r){w(this,{type:_,target:c(t),index:0,kind:r})}),(function(){var t=k(this),r=t.target,o=t.index++;if(!r||o>=r.length){t.target=void 0;return y(void 0,!0)}switch(t.kind){case"keys":return y(o,!1);case"values":return y(r[o],!1)}return y([o,r[o]],!1)}),"values");var x=u.Arguments=u.Array;l("keys");l("values");l("entries");if(!m&&v&&"values"!==x.name)try{d(x,"name",{value:"values"})}catch(t){}},5136:(t,r,o)=>{var c=o(4978),l=o(2423).map;c({target:"Array",proto:!0,forced:!o(3577)("map")},{map:function map(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},4226:(t,r,o)=>{var c=o(4978),l=o(2007),u=o(451),h=o(6661),d=o(4287);c({target:"Array",proto:!0,arity:1,forced:o(8154)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function push(t){var r=l(this),o=u(r),c=arguments.length;d(o+c);for(var g=0;g<c;g++){r[o]=arguments[g];o++}h(r,o);return o}})},7620:(t,r,o)=>{var c=o(4978),l=o(2741).left,u=o(8321),h=o(2171);c({target:"Array",proto:!0,forced:!o(4864)&&h>79&&h<83||!u("reduce")},{reduce:function reduce(t){var r=arguments.length;return l(this,t,r,r>1?arguments[1]:void 0)}})},171:(t,r,o)=>{var c=o(4978),l=o(6998),u=o(1694),h=o(7633),d=o(6985),g=o(451),y=o(4115),m=o(8947),v=o(2292),_=o(3577),w=o(2251),k=_("slice"),x=v("species"),S=Array,C=Math.max;c({target:"Array",proto:!0,forced:!k},{slice:function slice(t,r){var o,c,v,_=y(this),k=g(_),O=d(t,k),T=d(void 0===r?k:r,k);if(l(_)){o=_.constructor;(u(o)&&(o===S||l(o.prototype))||h(o)&&null===(o=o[x]))&&(o=void 0);if(o===S||void 0===o)return w(_,O,T)}c=new(void 0===o?S:o)(C(T-O,0));for(v=0;O<T;O++,v++)O in _&&m(c,v,_[O]);c.length=v;return c}})},8301:(t,r,o)=>{var c=o(4978),l=o(8403),u=o(1782),h=o(2007),d=o(451),g=o(2322),y=o(5730),m=o(8154),v=o(4689),_=o(8321),w=o(7614),k=o(7463),x=o(2171),S=o(7906),C=[],O=l(C.sort),T=l(C.push),E=m((function(){C.sort(void 0)})),j=m((function(){C.sort(null)})),R=_("sort"),M=!m((function(){if(x)return x<70;if(!(w&&w>3)){if(k)return!0;if(S)return S<603;var t,r,o,c,l="";for(t=65;t<76;t++){r=String.fromCharCode(t);switch(t){case 66:case 69:case 70:case 72:o=3;break;case 68:case 71:o=4;break;default:o=2}for(c=0;c<47;c++)C.push({k:r+c,v:o})}C.sort((function(t,r){return r.v-t.v}));for(c=0;c<C.length;c++){r=C[c].k.charAt(0);l.charAt(l.length-1)!==r&&(l+=r)}return"DGBEFHACIJK"!==l}}));c({target:"Array",proto:!0,forced:E||!j||!R||!M},{sort:function sort(t){void 0!==t&&u(t);var r=h(this);if(M)return void 0===t?O(r):O(r,t);var o,c,l=[],m=d(r);for(c=0;c<m;c++)c in r&&T(l,r[c]);v(l,function(t){return function(r,o){return void 0===o?-1:void 0===r?1:void 0!==t?+t(r,o)||0:y(r)>y(o)?1:-1}}(t));o=d(l);c=0;for(;c<o;)r[c]=l[c++];for(;c<m;)g(r,c++);return r}})},6302:(t,r,o)=>{var c=o(4978),l=o(2007),u=o(6985),h=o(1003),d=o(451),g=o(6661),y=o(4287),m=o(8097),v=o(8947),_=o(2322),w=o(3577)("splice"),k=Math.max,x=Math.min;c({target:"Array",proto:!0,forced:!w},{splice:function splice(t,r){var o,c,w,S,C,O,T=l(this),E=d(T),j=u(t,E),R=arguments.length;if(0===R)o=c=0;else if(1===R){o=0;c=E-j}else{o=R-2;c=x(k(h(r),0),E-j)}y(E+o-c);w=m(T,c);for(S=0;S<c;S++)(C=j+S)in T&&v(w,S,T[C]);w.length=c;if(o<c){for(S=j;S<E-c;S++){O=S+o;(C=S+c)in T?T[O]=T[C]:_(T,O)}for(S=E;S>E-c+o;S--)_(T,S-1)}else if(o>c)for(S=E-c;S>j;S--){O=S+o-1;(C=S+c-1)in T?T[O]=T[C]:_(T,O)}for(S=0;S<o;S++)T[S+j]=arguments[S+2];g(T,E-c+o);return w}})},3295:(t,r,o)=>{o(5463)("flat")},9779:(t,r,o)=>{var c=o(4978),l=o(2007),u=o(451),h=o(6661),d=o(2322),g=o(4287);c({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function unshift(t){var r=l(this),o=u(r),c=arguments.length;if(c){g(o+c);for(var y=o;y--;){var m=y+c;y in r?r[m]=r[y]:d(r,m)}for(var v=0;v<c;v++)r[v]=arguments[v]}return h(r,o+c)}})},8806:(t,r,o)=>{var c=o(936),l=o(7041),u=o(3612),h=o(2292)("toPrimitive"),d=Date.prototype;c(d,h)||l(d,h,u)},3352:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(7294),h=o(7342),d="WebAssembly",g=l[d],y=7!==new Error("e",{cause:7}).cause,exportGlobalErrorCauseWrapper=function(t,r){var o={};o[t]=h(t,r,y);c({global:!0,constructor:!0,arity:1,forced:y},o)},exportWebAssemblyErrorCauseWrapper=function(t,r){if(g&&g[t]){var o={};o[t]=h(d+"."+t,r,y);c({target:d,stat:!0,constructor:!0,arity:1,forced:y},o)}};exportGlobalErrorCauseWrapper("Error",(function(t){return function Error(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("EvalError",(function(t){return function EvalError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("RangeError",(function(t){return function RangeError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("ReferenceError",(function(t){return function ReferenceError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("SyntaxError",(function(t){return function SyntaxError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("TypeError",(function(t){return function TypeError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("URIError",(function(t){return function URIError(r){return u(t,this,arguments)}}));exportWebAssemblyErrorCauseWrapper("CompileError",(function(t){return function CompileError(r){return u(t,this,arguments)}}));exportWebAssemblyErrorCauseWrapper("LinkError",(function(t){return function LinkError(r){return u(t,this,arguments)}}));exportWebAssemblyErrorCauseWrapper("RuntimeError",(function(t){return function RuntimeError(r){return u(t,this,arguments)}}))},1210:(t,r,o)=>{var c=o(4978),l=o(9298);c({global:!0,forced:l.globalThis!==l},{globalThis:l})},7254:(t,r,o)=>{var c=o(4978),l=o(7187),u=o(7294),h=o(2026),d=o(8403),g=o(8154),y=o(7316),m=o(7814),v=o(2251),_=o(1801),w=o(3663),k=String,x=l("JSON","stringify"),S=d(/./.exec),C=d("".charAt),O=d("".charCodeAt),T=d("".replace),E=d(1..toString),j=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,M=/^[\uDC00-\uDFFF]$/,L=!w||g((function(){var t=l("Symbol")("stringify detection");return"[null]"!==x([t])||"{}"!==x({a:t})||"{}"!==x(Object(t))})),D=g((function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")})),stringifyWithSymbolsFix=function(t,r){var o=v(arguments),c=_(r);if(y(c)||void 0!==t&&!m(t)){o[1]=function(t,r){y(c)&&(r=h(c,this,k(t),r));if(!m(r))return r};return u(x,null,o)}},fixIllFormed=function(t,r,o){var c=C(o,r-1),l=C(o,r+1);return S(R,t)&&!S(M,l)||S(M,t)&&!S(R,c)?"\\u"+E(O(t,0),16):t};x&&c({target:"JSON",stat:!0,arity:3,forced:L||D},{stringify:function stringify(t,r,o){var c=v(arguments),l=u(L?stringifyWithSymbolsFix:x,null,c);return D&&"string"==typeof l?T(l,j,fixIllFormed):l}})},2630:(t,r,o)=>{var c=o(9298);o(7536)(c.JSON,"JSON",!0)},4147:(t,r,o)=>{o(4981)("Map",(function(t){return function Map(){return t(this,arguments.length?arguments[0]:void 0)}}),o(6122))},5548:(t,r,o)=>{o(4147)},3821:(t,r,o)=>{var c=o(4978),l=Math.hypot,u=Math.abs,h=Math.sqrt;c({target:"Math",stat:!0,arity:2,forced:!!l&&l(1/0,NaN)!==1/0},{hypot:function hypot(t,r){for(var o,c,l=0,d=0,g=arguments.length,y=0;d<g;)if(y<(o=u(arguments[d++]))){l=l*(c=y/o)*c+1;y=o}else l+=o>0?(c=o/y)*c:o;return y===1/0?1/0:y*h(l)}})},2466:(t,r,o)=>{o(4978)({target:"Math",stat:!0},{log10:o(3081)})},3764:(t,r,o)=>{var c=o(4978),l=Math.log,u=Math.LN2;c({target:"Math",stat:!0},{log2:function log2(t){return l(t)/u}})},4165:(t,r,o)=>{o(4978)({target:"Math",stat:!0},{sign:o(4875)})},1024:(t,r,o)=>{o(7536)(Math,"Math",!0)},5897:(t,r,o)=>{var c=o(4978),l=o(2554),u=o(940),h=o(9298),d=o(1021),g=o(8403),y=o(7007),m=o(936),v=o(7523),_=o(2658),w=o(7814),k=o(4151),x=o(8154),S=o(5455).f,C=o(5764).f,O=o(7744).f,T=o(3328),E=o(83).trim,j="Number",R=h[j],M=d[j],L=R.prototype,D=h.TypeError,N=g("".slice),U=g("".charCodeAt),toNumber=function(t){var r,o,c,l,u,h,d,g,y=k(t,"number");if(w(y))throw new D("Cannot convert a Symbol value to a number");if("string"==typeof y&&y.length>2){y=E(y);if(43===(r=U(y,0))||45===r){if(88===(o=U(y,2))||120===o)return NaN}else if(48===r){switch(U(y,1)){case 66:case 98:c=2;l=49;break;case 79:case 111:c=8;l=55;break;default:return+y}h=(u=N(y,2)).length;for(d=0;d<h;d++)if((g=U(u,d))<48||g>l)return NaN;return parseInt(u,c)}}return+y},G=y(j,!R(" 0o1")||!R("0b1")||R("+0x1")),H=function Number(t){var r,o=arguments.length<1?0:R(function(t){var r=k(t,"number");return"bigint"==typeof r?r:toNumber(r)}(t));return _(L,r=this)&&x((function(){T(r)}))?v(Object(o),this,H):o};H.prototype=L;G&&!l&&(L.constructor=H);c({global:!0,constructor:!0,wrap:!0,forced:G},{Number:H});var copyConstructorProperties=function(t,r){for(var o,c=u?S(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),l=0;c.length>l;l++)m(r,o=c[l])&&!m(t,o)&&O(t,o,C(r,o))};l&&M&©ConstructorProperties(d[j],M);(G||l)&©ConstructorProperties(d[j],R)},9142:(t,r,o)=>{var c=o(4978),l=o(453);c({target:"Object",stat:!0,arity:2,forced:Object.assign!==l},{assign:l})},2586:(t,r,o)=>{var c=o(4978),l=o(2492).entries;c({target:"Object",stat:!0},{entries:function entries(t){return l(t)}})},4441:(t,r,o)=>{var c=o(4978),l=o(7010),u=o(8154),h=o(7633),d=o(4694).onFreeze,g=Object.freeze;c({target:"Object",stat:!0,forced:u((function(){g(1)})),sham:!l},{freeze:function freeze(t){return g&&h(t)?g(d(t)):t}})},3713:(t,r,o)=>{var c=o(4978),l=o(8154),u=o(4115),h=o(5764).f,d=o(940);c({target:"Object",stat:!0,forced:!d||l((function(){h(1)})),sham:!d},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(t,r){return h(u(t),r)}})},353:(t,r,o)=>{var c=o(4978),l=o(8154),u=o(2329).f;c({target:"Object",stat:!0,forced:l((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:u})},8564:(t,r,o)=>{var c=o(4978),l=o(3663),u=o(8154),h=o(1963),d=o(2007);c({target:"Object",stat:!0,forced:!l||u((function(){h.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){var r=h.f;return r?r(d(t)):[]}})},13:(t,r,o)=>{var c=o(4978),l=o(8154),u=o(2007),h=o(2176),d=o(7888);c({target:"Object",stat:!0,forced:l((function(){h(1)})),sham:!d},{getPrototypeOf:function getPrototypeOf(t){return h(u(t))}})},4668:(t,r,o)=>{var c=o(4978),l=o(2007),u=o(1706);c({target:"Object",stat:!0,forced:o(8154)((function(){u(1)}))},{keys:function keys(t){return u(l(t))}})},895:(t,r,o)=>{var c=o(3077),l=o(7041),u=o(759);c||l(Object.prototype,"toString",u,{unsafe:!0})},9099:(t,r,o)=>{var c=o(4978),l=o(2492).values;c({target:"Object",stat:!0},{values:function values(t){return l(t)}})},4060:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(1782),h=o(1880),d=o(1518),g=o(6837);c({target:"Promise",stat:!0,forced:o(3779)},{allSettled:function allSettled(t){var r=this,o=h.f(r),c=o.resolve,y=o.reject,m=d((function(){var o=u(r.resolve),h=[],d=0,y=1;g(t,(function(t){var u=d++,g=!1;y++;l(o,r,t).then((function(t){if(!g){g=!0;h[u]={status:"fulfilled",value:t};--y||c(h)}}),(function(t){if(!g){g=!0;h[u]={status:"rejected",reason:t};--y||c(h)}}))}));--y||c(h)}));m.error&&y(m.value);return o.promise}})},8392:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(1782),h=o(1880),d=o(1518),g=o(6837);c({target:"Promise",stat:!0,forced:o(3779)},{all:function all(t){var r=this,o=h.f(r),c=o.resolve,y=o.reject,m=d((function(){var o=u(r.resolve),h=[],d=0,m=1;g(t,(function(t){var u=d++,g=!1;m++;l(o,r,t).then((function(t){if(!g){g=!0;h[u]=t;--m||c(h)}}),y)}));--m||c(h)}));m.error&&y(m.value);return o.promise}})},3264:(t,r,o)=>{var c=o(4978),l=o(2554),u=o(8308).CONSTRUCTOR,h=o(6639),d=o(7187),g=o(7316),y=o(7041),m=h&&h.prototype;c({target:"Promise",proto:!0,forced:u,real:!0},{catch:function(t){return this.then(void 0,t)}});if(!l&&g(h)){var v=d("Promise").prototype.catch;m.catch!==v&&y(m,"catch",v,{unsafe:!0})}},7930:(t,r,o)=>{var c,l,u,h=o(4978),d=o(2554),g=o(4864),y=o(9298),m=o(2026),v=o(7041),_=o(9763),w=o(7536),k=o(5963),x=o(1782),S=o(7316),C=o(7633),O=o(5834),T=o(8180),E=o(4578).set,j=o(1627),R=o(5285),M=o(1518),L=o(1397),D=o(1649),N=o(6639),U=o(8308),G=o(1880),H="Promise",q=U.CONSTRUCTOR,z=U.REJECTION_EVENT,W=U.SUBCLASSING,V=D.getterFor(H),X=D.set,K=N&&N.prototype,Y=N,J=K,$=y.TypeError,Z=y.document,Q=y.process,ee=G.f,te=ee,re=!!(Z&&Z.createEvent&&y.dispatchEvent),ne="unhandledrejection",isThenable=function(t){var r;return!(!C(t)||!S(r=t.then))&&r},callReaction=function(t,r){var o,c,l,u=r.value,h=1===r.state,d=h?t.ok:t.fail,g=t.resolve,y=t.reject,v=t.domain;try{if(d){if(!h){2===r.rejection&&onHandleUnhandled(r);r.rejection=1}if(!0===d)o=u;else{v&&v.enter();o=d(u);if(v){v.exit();l=!0}}o===t.promise?y(new $("Promise-chain cycle")):(c=isThenable(o))?m(c,o,g,y):g(o)}else y(u)}catch(t){v&&!l&&v.exit();y(t)}},notify=function(t,r){if(!t.notified){t.notified=!0;j((function(){for(var o,c=t.reactions;o=c.get();)callReaction(o,t);t.notified=!1;r&&!t.rejection&&onUnhandled(t)}))}},dispatchEvent=function(t,r,o){var c,l;if(re){(c=Z.createEvent("Event")).promise=r;c.reason=o;c.initEvent(t,!1,!0);y.dispatchEvent(c)}else c={promise:r,reason:o};!z&&(l=y["on"+t])?l(c):t===ne&&R("Unhandled promise rejection",o)},onUnhandled=function(t){m(E,y,(function(){var r,o=t.facade,c=t.value;if(isUnhandled(t)){r=M((function(){g?Q.emit("unhandledRejection",c,o):dispatchEvent(ne,o,c)}));t.rejection=g||isUnhandled(t)?2:1;if(r.error)throw r.value}}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){m(E,y,(function(){var r=t.facade;g?Q.emit("rejectionHandled",r):dispatchEvent("rejectionhandled",r,t.value)}))},bind=function(t,r,o){return function(c){t(r,c,o)}},internalReject=function(t,r,o){if(!t.done){t.done=!0;o&&(t=o);t.value=r;t.state=2;notify(t,!0)}},internalResolve=function(t,r,o){if(!t.done){t.done=!0;o&&(t=o);try{if(t.facade===r)throw new $("Promise can't be resolved itself");var c=isThenable(r);if(c)j((function(){var o={done:!1};try{m(c,r,bind(internalResolve,o,t),bind(internalReject,o,t))}catch(r){internalReject(o,r,t)}}));else{t.value=r;t.state=1;notify(t,!1)}}catch(r){internalReject({done:!1},r,t)}}};if(q){J=(Y=function Promise(t){O(this,J);x(t);m(c,this);var r=V(this);try{t(bind(internalResolve,r),bind(internalReject,r))}catch(t){internalReject(r,t)}}).prototype;(c=function Promise(t){X(this,{type:H,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=v(J,"then",(function then(t,r){var o=V(this),c=ee(T(this,Y));o.parent=!0;c.ok=!S(t)||t;c.fail=S(r)&&r;c.domain=g?Q.domain:void 0;0===o.state?o.reactions.add(c):j((function(){callReaction(c,o)}));return c.promise}));l=function(){var t=new c,r=V(t);this.promise=t;this.resolve=bind(internalResolve,r);this.reject=bind(internalReject,r)};G.f=ee=function(t){return t===Y||undefined===t?new l(t):te(t)};if(!d&&S(N)&&K!==Object.prototype){u=K.then;W||v(K,"then",(function then(t,r){var o=this;return new Y((function(t,r){m(u,o,t,r)})).then(t,r)}),{unsafe:!0});try{delete K.constructor}catch(t){}_&&_(K,J)}}h({global:!0,constructor:!0,wrap:!0,forced:q},{Promise:Y});w(Y,H,!1,!0);k(H)},4750:(t,r,o)=>{var c=o(4978),l=o(2554),u=o(6639),h=o(8154),d=o(7187),g=o(7316),y=o(8180),m=o(2506),v=o(7041),_=u&&u.prototype;c({target:"Promise",proto:!0,real:!0,forced:!!u&&h((function(){_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=y(this,d("Promise")),o=g(t);return this.then(o?function(o){return m(r,t()).then((function(){return o}))}:t,o?function(o){return m(r,t()).then((function(){throw o}))}:t)}});if(!l&&g(u)){var w=d("Promise").prototype.finally;_.finally!==w&&v(_,"finally",w,{unsafe:!0})}},5666:(t,r,o)=>{o(7930);o(8392);o(3264);o(1078);o(4209);o(935)},1078:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(1782),h=o(1880),d=o(1518),g=o(6837);c({target:"Promise",stat:!0,forced:o(3779)},{race:function race(t){var r=this,o=h.f(r),c=o.reject,y=d((function(){var h=u(r.resolve);g(t,(function(t){l(h,r,t).then(o.resolve,c)}))}));y.error&&c(y.value);return o.promise}})},4209:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(1880);c({target:"Promise",stat:!0,forced:o(8308).CONSTRUCTOR},{reject:function reject(t){var r=u.f(this);l(r.reject,void 0,t);return r.promise}})},935:(t,r,o)=>{var c=o(4978),l=o(7187),u=o(2554),h=o(6639),d=o(8308).CONSTRUCTOR,g=o(2506),y=l("Promise"),m=u&&!d;c({target:"Promise",stat:!0,forced:u||d},{resolve:function resolve(t){return g(m&&this===y?h:this,t)}})},6128:(t,r,o)=>{var c=o(4978),l=o(7187),u=o(7294),h=o(6520),d=o(7073),g=o(4719),y=o(7633),m=o(6941),v=o(8154),_=l("Reflect","construct"),w=Object.prototype,k=[].push,x=v((function(){function F(){}return!(_((function(){}),[],F)instanceof F)})),S=!v((function(){_((function(){}))})),C=x||S;c({target:"Reflect",stat:!0,forced:C,sham:C},{construct:function construct(t,r){d(t);g(r);var o=arguments.length<3?t:d(arguments[2]);if(S&&!x)return _(t,r,o);if(t===o){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var c=[null];u(k,c,r);return new(u(h,t,c))}var l=o.prototype,v=m(y(l)?l:w),C=u(t,v,r);return y(C)?C:v}})},9718:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(7633),h=o(4719),d=o(3374),g=o(5764),y=o(2176);c({target:"Reflect",stat:!0},{get:function get(t,r){var o,c,m=arguments.length<3?t:arguments[2];return h(t)===m?t[r]:(o=g.f(t,r))?d(o)?o.value:void 0===o.get?void 0:l(o.get,m):u(c=y(t))?get(c,r,m):void 0}})},9175:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(7536);c({global:!0},{Reflect:{}});u(l.Reflect,"Reflect",!0)},3032:(t,r,o)=>{var c=o(940),l=o(9298),u=o(8403),h=o(7007),d=o(7523),g=o(9293),y=o(6941),m=o(5455).f,v=o(2658),_=o(6660),w=o(5730),k=o(1043),x=o(3286),S=o(6085),C=o(7041),O=o(8154),T=o(936),E=o(1649).enforce,j=o(5963),R=o(2292),M=o(1714),L=o(2513),D=R("match"),N=l.RegExp,U=N.prototype,G=l.SyntaxError,H=u(U.exec),q=u("".charAt),z=u("".replace),W=u("".indexOf),V=u("".slice),X=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,K=/a/g,Y=/a/g,J=new N(K)!==K,$=x.MISSED_STICKY,Z=x.UNSUPPORTED_Y,Q=c&&(!J||$||M||L||O((function(){Y[D]=!1;return N(K)!==K||N(Y)===Y||"/a/i"!==String(N(K,"i"))})));if(h("RegExp",Q)){for(var ee=function RegExp(t,r){var o,c,l,u,h,m,x=v(U,this),S=_(t),C=void 0===r,O=[],j=t;if(!x&&S&&C&&t.constructor===ee)return t;if(S||v(U,t)){t=t.source;C&&(r=k(j))}t=void 0===t?"":w(t);r=void 0===r?"":w(r);j=t;M&&"dotAll"in K&&(c=!!r&&W(r,"s")>-1)&&(r=z(r,/s/g,""));o=r;$&&"sticky"in K&&(l=!!r&&W(r,"y")>-1)&&Z&&(r=z(r,/y/g,""));if(L){u=function(t){for(var r,o=t.length,c=0,l="",u=[],h=y(null),d=!1,g=!1,m=0,v="";c<=o;c++){if("\\"===(r=q(t,c)))r+=q(t,++c);else if("]"===r)d=!1;else if(!d)switch(!0){case"["===r:d=!0;break;case"("===r:if(H(X,V(t,c+1))){c+=2;g=!0}l+=r;m++;continue;case">"===r&&g:if(""===v||T(h,v))throw new G("Invalid capture group name");h[v]=!0;u[u.length]=[v,m];g=!1;v="";continue}g?v+=r:l+=r}return[l,u]}(t);t=u[0];O=u[1]}h=d(N(t,r),x?this:U,ee);if(c||l||O.length){m=E(h);if(c){m.dotAll=!0;m.raw=ee(function(t){for(var r,o=t.length,c=0,l="",u=!1;c<=o;c++)if("\\"!==(r=q(t,c)))if(u||"."!==r){"["===r?u=!0:"]"===r&&(u=!1);l+=r}else l+="[\\s\\S]";else l+=r+q(t,++c);return l}(t),o)}l&&(m.sticky=!0);O.length&&(m.groups=O)}if(t!==j)try{g(h,"source",""===j?"(?:)":j)}catch(t){}return h},te=m(N),re=0;te.length>re;)S(ee,N,te[re++]);U.constructor=ee;ee.prototype=U;C(l,"RegExp",ee,{constructor:!0})}j("RegExp")},5619:(t,r,o)=>{var c=o(940),l=o(1714),u=o(8374),h=o(9691),d=o(1649).get,g=RegExp.prototype,y=TypeError;c&&l&&h(g,"dotAll",{configurable:!0,get:function dotAll(){if(this!==g){if("RegExp"===u(this))return!!d(this).dotAll;throw new y("Incompatible receiver, RegExp required")}}})},7942:(t,r,o)=>{var c=o(4978),l=o(2178);c({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},2640:(t,r,o)=>{var c=o(9298),l=o(940),u=o(9691),h=o(9272),d=o(8154),g=c.RegExp,y=g.prototype;l&&d((function(){var t=!0;try{g(".","d")}catch(r){t=!1}var r={},o="",c=t?"dgimsy":"gimsy",addGetter=function(t,c){Object.defineProperty(r,t,{get:function(){o+=c;return!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(l.hasIndices="d");for(var u in l)addGetter(u,l[u]);return Object.getOwnPropertyDescriptor(y,"flags").get.call(r)!==c||o!==c}))&&u(y,"flags",{configurable:!0,get:h})},9786:(t,r,o)=>{var c=o(940),l=o(3286).MISSED_STICKY,u=o(8374),h=o(9691),d=o(1649).get,g=RegExp.prototype,y=TypeError;c&&l&&h(g,"sticky",{configurable:!0,get:function sticky(){if(this!==g){if("RegExp"===u(this))return!!d(this).sticky;throw new y("Incompatible receiver, RegExp required")}}})},5776:(t,r,o)=>{o(7942);var c=o(4978),l=o(2026),u=o(7316),h=o(4719),d=o(5730),g=function(){var t=!1,r=/[ac]/;r.exec=function(){t=!0;return/./.exec.apply(this,arguments)};return!0===r.test("abc")&&t}(),y=/./.test;c({target:"RegExp",proto:!0,forced:!g},{test:function(t){var r=h(this),o=d(t),c=r.exec;if(!u(c))return l(y,r,o);var g=l(c,r,o);if(null===g)return!1;h(g);return!0}})},924:(t,r,o)=>{var c=o(5145).PROPER,l=o(7041),u=o(4719),h=o(5730),d=o(8154),g=o(1043),y="toString",m=RegExp.prototype[y],v=d((function(){return"/a/b"!==m.call({source:"a",flags:"b"})})),_=c&&m.name!==y;(v||_)&&l(RegExp.prototype,y,(function toString(){var t=u(this);return"/"+h(t.source)+"/"+h(g(t))}),{unsafe:!0})},3810:(t,r,o)=>{o(4981)("Set",(function(t){return function Set(){return t(this,arguments.length?arguments[0]:void 0)}}),o(6122))},2048:(t,r,o)=>{o(3810)},10:(t,r,o)=>{var c=o(4978),l=o(8403),u=o(5645),h=o(1003),d=o(5730),g=o(8154),y=l("".charAt);c({target:"String",proto:!0,forced:g((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function at(t){var r=d(u(this)),o=r.length,c=h(t),l=c>=0?c:o+c;return l<0||l>=o?void 0:y(r,l)}})},9689:(t,r,o)=>{var c=o(4978),l=o(6819).codeAt;c({target:"String",proto:!0},{codePointAt:function codePointAt(t){return l(this,t)}})},6133:(t,r,o)=>{var c,l=o(4978),u=o(6218),h=o(5764).f,d=o(8293),g=o(5730),y=o(9578),m=o(5645),v=o(2280),_=o(2554),w=u("".endsWith),k=u("".slice),x=Math.min,S=v("endsWith");l({target:"String",proto:!0,forced:!(!_&&!S&&!!(c=h(String.prototype,"endsWith"),c&&!c.writable))&&!S},{endsWith:function endsWith(t){var r=g(m(this));y(t);var o=arguments.length>1?arguments[1]:void 0,c=r.length,l=void 0===o?c:x(d(o),c),u=g(t);return w?w(r,u,l):k(r,l-u.length,l)===u}})},2707:(t,r,o)=>{var c=o(4978),l=o(8403),u=o(6985),h=RangeError,d=String.fromCharCode,g=String.fromCodePoint,y=l([].join);c({target:"String",stat:!0,arity:1,forced:!!g&&1!==g.length},{fromCodePoint:function fromCodePoint(t){for(var r,o=[],c=arguments.length,l=0;c>l;){r=+arguments[l++];if(u(r,1114111)!==r)throw new h(r+" is not a valid code point");o[l]=r<65536?d(r):d(55296+((r-=65536)>>10),r%1024+56320)}return y(o,"")}})},2613:(t,r,o)=>{var c=o(4978),l=o(8403),u=o(9578),h=o(5645),d=o(5730),g=o(2280),y=l("".indexOf);c({target:"String",proto:!0,forced:!g("includes")},{includes:function includes(t){return!!~y(d(h(this)),d(u(t)),arguments.length>1?arguments[1]:void 0)}})},1747:(t,r,o)=>{var c=o(6819).charAt,l=o(5730),u=o(1649),h=o(7301),d=o(1111),g="String Iterator",y=u.set,m=u.getterFor(g);h(String,"String",(function(t){y(this,{type:g,string:l(t),index:0})}),(function next(){var t,r=m(this),o=r.string,l=r.index;if(l>=o.length)return d(void 0,!0);t=c(o,l);r.index+=t.length;return d(t,!1)}))},469:(t,r,o)=>{var c=o(2026),l=o(4629),u=o(4719),h=o(3734),d=o(8293),g=o(5730),y=o(5645),m=o(8486),v=o(9047),_=o(8986);l("match",(function(t,r,o){return[function match(r){var o=y(this),l=h(r)?void 0:m(r,t);return l?c(l,r,o):new RegExp(r)[t](g(o))},function(t){var c=u(this),l=g(t),h=o(r,c,l);if(h.done)return h.value;if(!c.global)return _(c,l);var y=c.unicode;c.lastIndex=0;for(var m,w=[],k=0;null!==(m=_(c,l));){var x=g(m[0]);w[k]=x;""===x&&(c.lastIndex=v(l,d(c.lastIndex),y));k++}return 0===k?null:w}]}))},7230:(t,r,o)=>{var c=o(4978),l=o(6460).start;c({target:"String",proto:!0,forced:o(4819)},{padStart:function padStart(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},5520:(t,r,o)=>{o(4978)({target:"String",proto:!0},{repeat:o(947)})},7600:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(8403),h=o(5645),d=o(7316),g=o(3734),y=o(6660),m=o(5730),v=o(8486),_=o(1043),w=o(1634),k=o(2292),x=o(2554),S=k("replace"),C=TypeError,O=u("".indexOf),T=u("".replace),E=u("".slice),j=Math.max,stringIndexOf=function(t,r,o){return o>t.length?-1:""===r?o:O(t,r,o)};c({target:"String",proto:!0},{replaceAll:function replaceAll(t,r){var o,c,u,k,R,M,L,D,N,U=h(this),G=0,H=0,q="";if(!g(t)){if(o=y(t)){c=m(h(_(t)));if(!~O(c,"g"))throw new C("`.replaceAll` does not allow non-global regexes")}if(u=v(t,S))return l(u,t,U,r);if(x&&o)return T(m(U),t,r)}k=m(U);R=m(t);(M=d(r))||(r=m(r));L=R.length;D=j(1,L);G=stringIndexOf(k,R,0);for(;-1!==G;){N=M?m(r(R,G,k)):w(R,k,G,[],void 0,r);q+=E(k,H,G)+N;H=G+L;G=stringIndexOf(k,R,G+D)}H<k.length&&(q+=E(k,H));return q}})},4711:(t,r,o)=>{var c=o(7294),l=o(2026),u=o(8403),h=o(4629),d=o(8154),g=o(4719),y=o(7316),m=o(3734),v=o(1003),_=o(8293),w=o(5730),k=o(5645),x=o(9047),S=o(8486),C=o(1634),O=o(8986),T=o(2292)("replace"),E=Math.max,j=Math.min,R=u([].concat),M=u([].push),L=u("".indexOf),D=u("".slice),N="$0"==="a".replace(/./,"$0"),U=!!/./[T]&&""===/./[T]("a","$0");h("replace",(function(t,r,o){var u=U?"$":"$0";return[function replace(t,o){var c=k(this),u=m(t)?void 0:S(t,T);return u?l(u,t,c,o):l(r,w(c),t,o)},function(t,l){var h=g(this),d=w(t);if("string"==typeof l&&-1===L(l,u)&&-1===L(l,"$<")){var m=o(r,h,d,l);if(m.done)return m.value}var k=y(l);k||(l=w(l));var S,T=h.global;if(T){S=h.unicode;h.lastIndex=0}for(var N,U=[];null!==(N=O(h,d));){M(U,N);if(!T)break;""===w(N[0])&&(h.lastIndex=x(d,_(h.lastIndex),S))}for(var G,H="",q=0,z=0;z<U.length;z++){for(var W,V=w((N=U[z])[0]),X=E(j(v(N.index),d.length),0),K=[],Y=1;Y<N.length;Y++)M(K,void 0===(G=N[Y])?G:String(G));var J=N.groups;if(k){var $=R([V],K,X,d);void 0!==J&&M($,J);W=w(c(l,void 0,$))}else W=C(V,d,X,K,J,l);if(X>=q){H+=D(d,q,X)+W;q=X+V.length}}return H+D(d,q)}]}),!!d((function(){var t=/./;t.exec=function(){var t=[];t.groups={a:"7"};return t};return"7"!=="".replace(t,"$<a>")}))||!N||U)},4280:(t,r,o)=>{var c=o(7294),l=o(2026),u=o(8403),h=o(4629),d=o(4719),g=o(3734),y=o(6660),m=o(5645),v=o(8180),_=o(9047),w=o(8293),k=o(5730),x=o(8486),S=o(6071),C=o(8986),O=o(2178),T=o(3286),E=o(8154),j=T.UNSUPPORTED_Y,R=4294967295,M=Math.min,L=[].push,D=u(/./.exec),N=u(L),U=u("".slice);h("split",(function(t,r,o){var u;u="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,o){var u=k(m(this)),h=void 0===o?R:o>>>0;if(0===h)return[];if(void 0===t)return[u];if(!y(t))return l(r,u,t,h);for(var d,g,v,_=[],w=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),x=0,C=new RegExp(t.source,w+"g");d=l(O,C,u);){if((g=C.lastIndex)>x){N(_,U(u,x,d.index));d.length>1&&d.index<u.length&&c(L,_,S(d,1));v=d[0].length;x=g;if(_.length>=h)break}C.lastIndex===d.index&&C.lastIndex++}x===u.length?!v&&D(C,"")||N(_,""):N(_,U(u,x));return _.length>h?S(_,0,h):_}:"0".split(void 0,0).length?function(t,o){return void 0===t&&0===o?[]:l(r,this,t,o)}:r;return[function split(r,o){var c=m(this),h=g(r)?void 0:x(r,t);return h?l(h,r,c,o):l(u,k(c),r,o)},function(t,c){var l=d(this),h=k(t),g=o(u,l,h,c,u!==r);if(g.done)return g.value;var y=v(l,RegExp),m=l.unicode,x=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(j?"g":"y"),S=new y(j?"^(?:"+l.source+")":l,x),O=void 0===c?R:c>>>0;if(0===O)return[];if(0===h.length)return null===C(S,h)?[h]:[];for(var T=0,E=0,L=[];E<h.length;){S.lastIndex=j?0:E;var D,G=C(S,j?U(h,E):h);if(null===G||(D=M(w(S.lastIndex+(j?E:0)),h.length))===T)E=_(h,E,m);else{N(L,U(h,T,E));if(L.length===O)return L;for(var H=1;H<=G.length-1;H++){N(L,G[H]);if(L.length===O)return L}E=T=D}}N(L,U(h,T));return L}]}),!!E((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var o="ab".split(t);return 2!==o.length||"a"!==o[0]||"b"!==o[1]})),j)},6421:(t,r,o)=>{var c,l=o(4978),u=o(6218),h=o(5764).f,d=o(8293),g=o(5730),y=o(9578),m=o(5645),v=o(2280),_=o(2554),w=u("".startsWith),k=u("".slice),x=Math.min,S=v("startsWith");l({target:"String",proto:!0,forced:!(!_&&!S&&!!(c=h(String.prototype,"startsWith"),c&&!c.writable))&&!S},{startsWith:function startsWith(t){var r=g(m(this));y(t);var o=d(x(arguments.length>1?arguments[1]:void 0,r.length)),c=g(t);return w?w(r,c,o):k(r,o,o+c.length)===c}})},8341:(t,r,o)=>{var c=o(4978),l=o(83).trim;c({target:"String",proto:!0,forced:o(8729)("trim")},{trim:function trim(){return l(this)}})},1133:(t,r,o)=>{o(7120)("asyncIterator")},1532:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(2026),h=o(8403),d=o(2554),g=o(940),y=o(3663),m=o(8154),v=o(936),_=o(2658),w=o(4719),k=o(4115),x=o(4871),S=o(5730),C=o(1198),O=o(6941),T=o(1706),E=o(5455),j=o(2329),R=o(1963),M=o(5764),L=o(7744),D=o(6617),N=o(1879),U=o(7041),G=o(9691),H=o(6807),q=o(3727),z=o(6010),W=o(7561),V=o(2292),X=o(8890),K=o(7120),Y=o(5117),J=o(7536),$=o(1649),Z=o(2423).forEach,Q=q("hidden"),ee="Symbol",te="prototype",re=$.set,ne=$.getterFor(ee),ae=Object[te],ie=l.Symbol,oe=ie&&ie[te],se=l.RangeError,ce=l.TypeError,le=l.QObject,ue=M.f,fe=L.f,he=j.f,pe=N.f,de=h([].push),ge=H("symbols"),ye=H("op-symbols"),me=H("wks"),ve=!le||!le[te]||!le[te].findChild,fallbackDefineProperty=function(t,r,o){var c=ue(ae,r);c&&delete ae[r];fe(t,r,o);c&&t!==ae&&fe(ae,r,c)},be=g&&m((function(){return 7!==O(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a}))?fallbackDefineProperty:fe,wrap=function(t,r){var o=ge[t]=O(oe);re(o,{type:ee,tag:t,description:r});g||(o.description=r);return o},_e=function defineProperty(t,r,o){t===ae&&_e(ye,r,o);w(t);var c=x(r);w(o);if(v(ge,c)){if(o.enumerable){v(t,Q)&&t[Q][c]&&(t[Q][c]=!1);o=O(o,{enumerable:C(0,!1)})}else{v(t,Q)||fe(t,Q,C(1,{}));t[Q][c]=!0}return be(t,c,o)}return fe(t,c,o)},we=function defineProperties(t,r){w(t);var o=k(r),c=T(o).concat($getOwnPropertySymbols(o));Z(c,(function(r){g&&!u(ke,o,r)||_e(t,r,o[r])}));return t},ke=function propertyIsEnumerable(t){var r=x(t),o=u(pe,this,r);return!(this===ae&&v(ge,r)&&!v(ye,r))&&(!(o||!v(this,r)||!v(ge,r)||v(this,Q)&&this[Q][r])||o)},xe=function getOwnPropertyDescriptor(t,r){var o=k(t),c=x(r);if(o!==ae||!v(ge,c)||v(ye,c)){var l=ue(o,c);!l||!v(ge,c)||v(o,Q)&&o[Q][c]||(l.enumerable=!0);return l}},Se=function getOwnPropertyNames(t){var r=he(k(t)),o=[];Z(r,(function(t){v(ge,t)||v(z,t)||de(o,t)}));return o},$getOwnPropertySymbols=function(t){var r=t===ae,o=he(r?ye:k(t)),c=[];Z(o,(function(t){!v(ge,t)||r&&!v(ae,t)||de(c,ge[t])}));return c};if(!y){U(oe=(ie=function Symbol(){if(_(oe,this))throw new ce("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,r=W(t),setter=function(t){var o=void 0===this?l:this;o===ae&&u(setter,ye,t);v(o,Q)&&v(o[Q],r)&&(o[Q][r]=!1);var c=C(1,t);try{be(o,r,c)}catch(t){if(!(t instanceof se))throw t;fallbackDefineProperty(o,r,c)}};g&&ve&&be(ae,r,{configurable:!0,set:setter});return wrap(r,t)})[te],"toString",(function toString(){return ne(this).tag}));U(ie,"withoutSetter",(function(t){return wrap(W(t),t)}));N.f=ke;L.f=_e;D.f=we;M.f=xe;E.f=j.f=Se;R.f=$getOwnPropertySymbols;X.f=function(t){return wrap(V(t),t)};if(g){G(oe,"description",{configurable:!0,get:function description(){return ne(this).description}});d||U(ae,"propertyIsEnumerable",ke,{unsafe:!0})}}c({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ie});Z(T(me),(function(t){K(t)}));c({target:ee,stat:!0,forced:!y},{useSetter:function(){ve=!0},useSimple:function(){ve=!1}});c({target:"Object",stat:!0,forced:!y,sham:!g},{create:function create(t,r){return void 0===r?O(t):we(O(t),r)},defineProperty:_e,defineProperties:we,getOwnPropertyDescriptor:xe});c({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Se});Y();J(ie,ee);z[Q]=!0},6678:(t,r,o)=>{var c=o(4978),l=o(940),u=o(9298),h=o(8403),d=o(936),g=o(7316),y=o(2658),m=o(5730),v=o(9691),_=o(1425),w=u.Symbol,k=w&&w.prototype;if(l&&g(w)&&(!("description"in k)||void 0!==w().description)){var x={},S=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:m(arguments[0]),r=y(k,this)?new w(t):void 0===t?w():w(t);""===t&&(x[r]=!0);return r};_(S,w);S.prototype=k;k.constructor=S;var C="Symbol(description detection)"===String(w("description detection")),O=h(k.valueOf),T=h(k.toString),E=/^Symbol\((.*)\)[^)]+$/,j=h("".replace),R=h("".slice);v(k,"description",{configurable:!0,get:function description(){var t=O(this);if(d(x,t))return"";var r=T(t),o=C?R(r,7,-1):j(r,E,"$1");return""===o?void 0:o}});c({global:!0,constructor:!0,forced:!0},{Symbol:S})}},2389:(t,r,o)=>{var c=o(4978),l=o(7187),u=o(936),h=o(5730),d=o(6807),g=o(4186),y=d("string-to-symbol-registry"),m=d("symbol-to-string-registry");c({target:"Symbol",stat:!0,forced:!g},{for:function(t){var r=h(t);if(u(y,r))return y[r];var o=l("Symbol")(r);y[r]=o;m[o]=r;return o}})},2926:(t,r,o)=>{o(7120)("iterator")},9366:(t,r,o)=>{o(1532);o(2389);o(5876);o(7254);o(8564)},5876:(t,r,o)=>{var c=o(4978),l=o(936),u=o(7814),h=o(9762),d=o(6807),g=o(4186),y=d("symbol-to-string-registry");c({target:"Symbol",stat:!0,forced:!g},{keyFor:function keyFor(t){if(!u(t))throw new TypeError(h(t)+" is not a symbol");if(l(y,t))return y[t]}})},5598:(t,r,o)=>{var c=o(7120),l=o(5117);c("toPrimitive");l()},2173:(t,r,o)=>{var c=o(7187),l=o(7120),u=o(7536);l("toStringTag");u(c("Symbol"),"Symbol")},739:(t,r,o)=>{var c=o(5861),l=o(451),u=o(1003),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("at",(function at(t){var r=h(this),o=l(r),c=u(t),d=c>=0?c:o+c;return d<0||d>=o?void 0:r[d]}))},4816:(t,r,o)=>{var c=o(8403),l=o(5861),u=c(o(1474)),h=l.aTypedArray;(0,l.exportTypedArrayMethod)("copyWithin",(function copyWithin(t,r){return u(h(this),t,r,arguments.length>2?arguments[2]:void 0)}))},6923:(t,r,o)=>{var c=o(5861),l=o(2423).every,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",(function every(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},6775:(t,r,o)=>{var c=o(5861),l=o(8041),u=o(212),h=o(8329),d=o(2026),g=o(8403),y=o(8154),m=c.aTypedArray,v=c.exportTypedArrayMethod,_=g("".slice);v("fill",(function fill(t){var r=arguments.length;m(this);var o="Big"===_(h(this),0,3)?u(t):+t;return d(l,this,o,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)}),y((function(){var t=0;new Int8Array(2).fill({valueOf:function(){return t++}});return 1!==t})))},6474:(t,r,o)=>{var c=o(5861),l=o(2423).filter,u=o(5306),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",(function filter(t){var r=l(h(this),t,arguments.length>1?arguments[1]:void 0);return u(this,r)}))},1665:(t,r,o)=>{var c=o(5861),l=o(2423).findIndex,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",(function findIndex(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},9803:(t,r,o)=>{var c=o(5861),l=o(4026).findLastIndex,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("findLastIndex",(function findLastIndex(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},8837:(t,r,o)=>{var c=o(5861),l=o(4026).findLast,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("findLast",(function findLast(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},6450:(t,r,o)=>{var c=o(5861),l=o(2423).find,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",(function find(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},6458:(t,r,o)=>{o(9173)("Float32",(function(t){return function Float32Array(r,o,c){return t(this,r,o,c)}}))},8957:(t,r,o)=>{o(9173)("Float64",(function(t){return function Float64Array(r,o,c){return t(this,r,o,c)}}))},1293:(t,r,o)=>{var c=o(5861),l=o(2423).forEach,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",(function forEach(t){l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},1051:(t,r,o)=>{var c=o(5861),l=o(9773).includes,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",(function includes(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},8260:(t,r,o)=>{var c=o(5861),l=o(9773).indexOf,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",(function indexOf(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},2314:(t,r,o)=>{o(9173)("Int16",(function(t){return function Int16Array(r,o,c){return t(this,r,o,c)}}))},8800:(t,r,o)=>{o(9173)("Int32",(function(t){return function Int32Array(r,o,c){return t(this,r,o,c)}}))},8826:(t,r,o)=>{o(9173)("Int8",(function(t){return function Int8Array(r,o,c){return t(this,r,o,c)}}))},5746:(t,r,o)=>{var c=o(9298),l=o(8154),u=o(8403),h=o(5861),d=o(6180),g=o(2292)("iterator"),y=c.Uint8Array,m=u(d.values),v=u(d.keys),_=u(d.entries),w=h.aTypedArray,k=h.exportTypedArrayMethod,x=y&&y.prototype,S=!l((function(){x[g].call([1])})),C=!!x&&x.values&&x[g]===x.values&&"values"===x.values.name,O=function values(){return m(w(this))};k("entries",(function entries(){return _(w(this))}),S);k("keys",(function keys(){return v(w(this))}),S);k("values",O,S||!C,{name:"values"});k(g,O,S||!C,{name:"values"})},202:(t,r,o)=>{var c=o(5861),l=o(8403),u=c.aTypedArray,h=c.exportTypedArrayMethod,d=l([].join);h("join",(function join(t){return d(u(this),t)}))},2138:(t,r,o)=>{var c=o(5861),l=o(7294),u=o(8671),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(t){var r=arguments.length;return l(u,h(this),r>1?[t,arguments[1]]:[t])}))},368:(t,r,o)=>{var c=o(5861),l=o(2423).map,u=o(6239),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",(function map(t){return l(h(this),t,arguments.length>1?arguments[1]:void 0,(function(t,r){return new(u(t))(r)}))}))},917:(t,r,o)=>{var c=o(5861),l=o(2741).right,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",(function reduceRight(t){var r=arguments.length;return l(u(this),t,r,r>1?arguments[1]:void 0)}))},9782:(t,r,o)=>{var c=o(5861),l=o(2741).left,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",(function reduce(t){var r=arguments.length;return l(u(this),t,r,r>1?arguments[1]:void 0)}))},3650:(t,r,o)=>{var c=o(5861),l=c.aTypedArray,u=c.exportTypedArrayMethod,h=Math.floor;u("reverse",(function reverse(){for(var t,r=this,o=l(r).length,c=h(o/2),u=0;u<c;){t=r[u];r[u++]=r[--o];r[o]=t}return r}))},8347:(t,r,o)=>{var c=o(9298),l=o(2026),u=o(5861),h=o(451),d=o(9892),g=o(2007),y=o(8154),m=c.RangeError,v=c.Int8Array,_=v&&v.prototype,w=_&&_.set,k=u.aTypedArray,x=u.exportTypedArrayMethod,S=!y((function(){var t=new Uint8ClampedArray(2);l(w,t,{length:1,0:3},1);return 3!==t[1]})),C=S&&u.NATIVE_ARRAY_BUFFER_VIEWS&&y((function(){var t=new v(2);t.set(1);t.set("2",1);return 0!==t[0]||2!==t[1]}));x("set",(function set(t){k(this);var r=d(arguments.length>1?arguments[1]:void 0,1),o=g(t);if(S)return l(w,this,o,r);var c=this.length,u=h(o),y=0;if(u+r>c)throw new m("Wrong length");for(;y<u;)this[r+y]=o[y++]}),!S||C)},7192:(t,r,o)=>{var c=o(5861),l=o(6239),u=o(8154),h=o(2251),d=c.aTypedArray;(0,c.exportTypedArrayMethod)("slice",(function slice(t,r){for(var o=h(d(this),t,r),c=l(this),u=0,g=o.length,y=new c(g);g>u;)y[u]=o[u++];return y}),u((function(){new Int8Array(1).slice()})))},354:(t,r,o)=>{var c=o(5861),l=o(2423).some,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",(function some(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},9080:(t,r,o)=>{var c=o(9298),l=o(6218),u=o(8154),h=o(1782),d=o(4689),g=o(5861),y=o(7614),m=o(7463),v=o(2171),_=o(7906),w=g.aTypedArray,k=g.exportTypedArrayMethod,x=c.Uint16Array,S=x&&l(x.prototype.sort),C=!(!S||u((function(){S(new x(2),null)}))&&u((function(){S(new x(2),{})}))),O=!!S&&!u((function(){if(v)return v<74;if(y)return y<67;if(m)return!0;if(_)return _<602;var t,r,o=new x(516),c=Array(516);for(t=0;t<516;t++){r=t%4;o[t]=515-t;c[t]=t-2*r+3}S(o,(function(t,r){return(t/4|0)-(r/4|0)}));for(t=0;t<516;t++)if(o[t]!==c[t])return!0}));k("sort",(function sort(t){void 0!==t&&h(t);return O?S(this,t):d(w(this),function(t){return function(r,o){return void 0!==t?+t(r,o)||0:o!=o?-1:r!=r?1:0===r&&0===o?1/r>0&&1/o<0?1:-1:r>o}}(t))}),!O||C)},7238:(t,r,o)=>{var c=o(9298),l=o(7294),u=o(5861),h=o(8154),d=o(2251),g=c.Int8Array,y=u.aTypedArray,m=u.exportTypedArrayMethod,v=[].toLocaleString,_=!!g&&h((function(){v.call(new g(1))}));m("toLocaleString",(function toLocaleString(){return l(v,_?d(y(this)):y(this),d(arguments))}),h((function(){return[1,2].toLocaleString()!==new g([1,2]).toLocaleString()}))||!h((function(){g.prototype.toLocaleString.call([1,2])})))},7995:(t,r,o)=>{var c=o(2304),l=o(5861),u=l.aTypedArray,h=l.exportTypedArrayMethod,d=l.getTypedArrayConstructor;h("toReversed",(function toReversed(){return c(u(this),d(this))}))},62:(t,r,o)=>{var c=o(5861),l=o(8403),u=o(1782),h=o(7003),d=c.aTypedArray,g=c.getTypedArrayConstructor,y=c.exportTypedArrayMethod,m=l(c.TypedArrayPrototype.sort);y("toSorted",(function toSorted(t){void 0!==t&&u(t);var r=d(this),o=h(g(r),r);return m(o,t)}))},6635:(t,r,o)=>{var c=o(5861).exportTypedArrayMethod,l=o(8154),u=o(9298),h=o(8403),d=u.Uint8Array,g=d&&d.prototype||{},y=[].toString,m=h([].join);l((function(){y.call({})}))&&(y=function toString(){return m(this)});var v=g.toString!==y;c("toString",y,v)},2931:(t,r,o)=>{o(9173)("Uint16",(function(t){return function Uint16Array(r,o,c){return t(this,r,o,c)}}))},4624:(t,r,o)=>{o(9173)("Uint32",(function(t){return function Uint32Array(r,o,c){return t(this,r,o,c)}}))},4699:(t,r,o)=>{o(9173)("Uint8",(function(t){return function Uint8Array(r,o,c){return t(this,r,o,c)}}))},312:(t,r,o)=>{o(9173)("Uint8",(function(t){return function Uint8ClampedArray(r,o,c){return t(this,r,o,c)}}),!0)},4602:(t,r,o)=>{var c=o(5886),l=o(5861),u=o(5986),h=o(1003),d=o(212),g=l.aTypedArray,y=l.getTypedArrayConstructor,m=l.exportTypedArrayMethod,v=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();m("with",{with:function(t,r){var o=g(this),l=h(t),m=u(o)?d(r):+r;return c(o,y(o),l,m)}}.with,!v)},4507:(t,r,o)=>{var c,l=o(7010),u=o(9298),h=o(8403),d=o(6880),g=o(4694),y=o(4981),m=o(9609),v=o(7633),_=o(1649).enforce,w=o(8154),k=o(8443),x=Object,S=Array.isArray,C=x.isExtensible,O=x.isFrozen,T=x.isSealed,E=x.freeze,j=x.seal,R={},M={},L=!u.ActiveXObject&&"ActiveXObject"in u,wrapper=function(t){return function WeakMap(){return t(this,arguments.length?arguments[0]:void 0)}},D=y("WeakMap",wrapper,m),N=D.prototype,U=h(N.set);if(k)if(L){c=m.getConstructor(wrapper,"WeakMap",!0);g.enable();var G=h(N.delete),H=h(N.has),q=h(N.get);d(N,{delete:function(t){if(v(t)&&!C(t)){var r=_(this);r.frozen||(r.frozen=new c);return G(this,t)||r.frozen.delete(t)}return G(this,t)},has:function has(t){if(v(t)&&!C(t)){var r=_(this);r.frozen||(r.frozen=new c);return H(this,t)||r.frozen.has(t)}return H(this,t)},get:function get(t){if(v(t)&&!C(t)){var r=_(this);r.frozen||(r.frozen=new c);return H(this,t)?q(this,t):r.frozen.get(t)}return q(this,t)},set:function set(t,r){if(v(t)&&!C(t)){var o=_(this);o.frozen||(o.frozen=new c);H(this,t)?U(this,t,r):o.frozen.set(t,r)}else U(this,t,r);return this}})}else l&&w((function(){var t=E([]);U(new D,t,1);return!O(t)}))&&d(N,{set:function set(t,r){var o;S(t)&&(O(t)?o=R:T(t)&&(o=M));U(this,t,r);o===R&&E(t);o===M&&j(t);return this}})},3766:(t,r,o)=>{o(4507)},5804:(t,r,o)=>{o(4981)("WeakSet",(function(t){return function WeakSet(){return t(this,arguments.length?arguments[0]:void 0)}}),o(9609))},394:(t,r,o)=>{o(5804)},344:(t,r,o)=>{var c=o(940),l=o(9691),u=o(582),h=ArrayBuffer.prototype;c&&!("detached"in h)&&l(h,"detached",{configurable:!0,get:function detached(){return u(this)}})},7583:(t,r,o)=>{var c=o(4978),l=o(4358);l&&c({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function transferToFixedLength(){return l(this,arguments.length?arguments[0]:void 0,!1)}})},4305:(t,r,o)=>{var c=o(4978),l=o(4358);l&&c({target:"ArrayBuffer",proto:!0},{transfer:function transfer(){return l(this,arguments.length?arguments[0]:void 0,!0)}})},7121:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(5834),h=o(4719),d=o(7316),g=o(2176),y=o(9691),m=o(8947),v=o(8154),_=o(936),w=o(2292),k=o(5238).IteratorPrototype,x=o(940),S=o(2554),C="constructor",O="Iterator",T=w("toStringTag"),E=TypeError,j=l[O],R=S||!d(j)||j.prototype!==k||!v((function(){j({})})),M=function Iterator(){u(this,k);if(g(this)===k)throw new E("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(t,r){x?y(k,t,{configurable:!0,get:function(){return r},set:function(r){h(this);if(this===k)throw new E("You can't redefine this property");_(this,t)?this[t]=r:m(this,t,r)}}):k[t]=r};_(k,T)||defineIteratorPrototypeAccessor(T,O);!R&&_(k,C)&&k[C]!==Object||defineIteratorPrototypeAccessor(C,M);M.prototype=k;c({global:!0,constructor:!0,forced:R},{Iterator:M})},385:(t,r,o)=>{var c=o(4978),l=o(6837),u=o(1782),h=o(4719),d=o(9235);c({target:"Iterator",proto:!0,real:!0},{every:function every(t){h(this);u(t);var r=d(this),o=0;return!l(r,(function(r,c){if(!t(r,o++))return c()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2993:(t,r,o)=>{var c=o(4978),l=o(2026),u=o(1782),h=o(4719),d=o(9235),g=o(375),y=o(5723),m=o(2554),v=g((function(){for(var t,r,o=this.iterator,c=this.predicate,u=this.next;;){t=h(l(u,o));if(this.done=!!t.done)return;r=t.value;if(y(o,c,[r,this.counter++],!0))return r}}));c({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function filter(t){h(this);u(t);return new v(d(this),{predicate:t})}})},5252:(t,r,o)=>{var c=o(4978),l=o(6837),u=o(1782),h=o(4719),d=o(9235);c({target:"Iterator",proto:!0,real:!0},{find:function find(t){h(this);u(t);var r=d(this),o=0;return l(r,(function(r,c){if(t(r,o++))return c(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},6770:(t,r,o)=>{var c=o(4978),l=o(6837),u=o(1782),h=o(4719),d=o(9235);c({target:"Iterator",proto:!0,real:!0},{forEach:function forEach(t){h(this);u(t);var r=d(this),o=0;l(r,(function(r){t(r,o++)}),{IS_RECORD:!0})}})},7944:(t,r,o)=>{var c=o(4978),l=o(8142);c({target:"Iterator",proto:!0,real:!0,forced:o(2554)},{map:l})},3371:(t,r,o)=>{var c=o(4978),l=o(6837),u=o(1782),h=o(4719),d=o(9235),g=TypeError;c({target:"Iterator",proto:!0,real:!0},{reduce:function reduce(t){h(this);u(t);var r=d(this),o=arguments.length<2,c=o?void 0:arguments[1],y=0;l(r,(function(r){if(o){o=!1;c=r}else c=t(c,r,y);y++}),{IS_RECORD:!0});if(o)throw new g("Reduce of empty iterator with no initial value");return c}})},8518:(t,r,o)=>{var c=o(4978),l=o(6837),u=o(1782),h=o(4719),d=o(9235);c({target:"Iterator",proto:!0,real:!0},{some:function some(t){h(this);u(t);var r=d(this),o=0;return l(r,(function(r,c){if(t(r,o++))return c()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6771:(t,r,o)=>{var c=o(4978),l=o(4719),u=o(6837),h=o(9235),d=[].push;c({target:"Iterator",proto:!0,real:!0},{toArray:function toArray(){var t=[];u(h(l(this)),d,{that:t,IS_RECORD:!0});return t}})},5561:(t,r,o)=>{var c=o(4978),l=o(5656);c({target:"Set",proto:!0,real:!0,forced:!o(507)("difference")},{difference:l})},8587:(t,r,o)=>{var c=o(4978),l=o(8154),u=o(8461);c({target:"Set",proto:!0,real:!0,forced:!o(507)("intersection")||l((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:u})},3247:(t,r,o)=>{var c=o(4978),l=o(8550);c({target:"Set",proto:!0,real:!0,forced:!o(507)("isDisjointFrom")},{isDisjointFrom:l})},3302:(t,r,o)=>{var c=o(4978),l=o(990);c({target:"Set",proto:!0,real:!0,forced:!o(507)("isSubsetOf")},{isSubsetOf:l})},9490:(t,r,o)=>{var c=o(4978),l=o(194);c({target:"Set",proto:!0,real:!0,forced:!o(507)("isSupersetOf")},{isSupersetOf:l})},5438:(t,r,o)=>{var c=o(4978),l=o(3194);c({target:"Set",proto:!0,real:!0,forced:!o(507)("symmetricDifference")},{symmetricDifference:l})},7914:(t,r,o)=>{var c=o(4978),l=o(5703);c({target:"Set",proto:!0,real:!0,forced:!o(507)("union")},{union:l})},1378:(t,r,o)=>{var c=o(9298),l=o(2411),u=o(3942),h=o(8208),d=o(9293),handlePrototype=function(t){if(t&&t.forEach!==h)try{d(t,"forEach",h)}catch(r){t.forEach=h}};for(var g in l)l[g]&&handlePrototype(c[g]&&c[g].prototype);handlePrototype(u)},2374:(t,r,o)=>{var c=o(9298),l=o(2411),u=o(3942),h=o(6180),d=o(9293),g=o(7536),y=o(2292)("iterator"),m=h.values,handlePrototype=function(t,r){if(t){if(t[y]!==m)try{d(t,y,m)}catch(r){t[y]=m}g(t,r,!0);if(l[r])for(var o in h)if(t[o]!==h[o])try{d(t,o,h[o])}catch(r){t[o]=h[o]}}};for(var v in l)handlePrototype(c[v]&&c[v].prototype,v);handlePrototype(u,"DOMTokenList")},2822:(t,r,o)=>{var c=o(4978),l=o(2276),u=o(7187),h=o(8154),d=o(6941),g=o(1198),y=o(7744).f,m=o(7041),v=o(9691),_=o(936),w=o(5834),k=o(4719),x=o(3522),S=o(1264),C=o(8560),O=o(34),T=o(1649),E=o(940),j=o(2554),R="DOMException",M="DATA_CLONE_ERR",L=u("Error"),D=u(R)||function(){try{(new(u("MessageChannel")||l("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===M&&25===t.code)return t.constructor}}(),N=D&&D.prototype,U=L.prototype,G=T.set,H=T.getterFor(R),q="stack"in new L(R),codeFor=function(t){return _(C,t)&&C[t].m?C[t].c:0},z=function DOMException(){w(this,W);var t=arguments.length,r=S(t<1?void 0:arguments[0]),o=S(t<2?void 0:arguments[1],"Error"),c=codeFor(o);G(this,{type:R,name:o,message:r,code:c});if(!E){this.name=o;this.message=r;this.code=c}if(q){var l=new L(r);l.name=R;y(this,"stack",g(1,O(l.stack,1)))}},W=z.prototype=d(U),createGetterDescriptor=function(t){return{enumerable:!0,configurable:!0,get:t}},getterFor=function(t){return createGetterDescriptor((function(){return H(this)[t]}))};if(E){v(W,"code",getterFor("code"));v(W,"message",getterFor("message"));v(W,"name",getterFor("name"))}y(W,"constructor",g(1,z));var V=h((function(){return!(new D instanceof L)})),X=V||h((function(){return U.toString!==x||"2: 1"!==String(new D(1,2))})),K=V||h((function(){return 25!==new D(1,"DataCloneError").code})),Y=V||25!==D[M]||25!==N[M],J=j?X||K||Y:V;c({global:!0,constructor:!0,forced:J},{DOMException:J?z:D});var $=u(R),Z=$.prototype;X&&(j||D===$)&&m(Z,"toString",x);K&&E&&D===$&&v(Z,"code",createGetterDescriptor((function(){return codeFor(k(this).name)})));for(var Q in C)if(_(C,Q)){var ee=C[Q],te=ee.s,re=g(6,ee.c);_($,te)||y($,te,re);_(Z,te)||y(Z,te,re)}},9709:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(7187),h=o(1198),d=o(7744).f,g=o(936),y=o(5834),m=o(7523),v=o(1264),_=o(8560),w=o(34),k=o(940),x=o(2554),S="DOMException",C=u("Error"),O=u(S),T=function DOMException(){y(this,E);var t=arguments.length,r=v(t<1?void 0:arguments[0]),o=v(t<2?void 0:arguments[1],"Error"),c=new O(r,o),l=new C(r);l.name=S;d(c,"stack",h(1,w(l.stack,1)));m(c,this,T);return c},E=T.prototype=O.prototype,j="stack"in new C(S),R="stack"in new O(1,2),M=O&&k&&Object.getOwnPropertyDescriptor(l,S),L=!(!M||M.writable&&M.configurable),D=j&&!L&&!R;c({global:!0,constructor:!0,forced:x||D},{DOMException:D?T:O});var N=u(S),U=N.prototype;if(U.constructor!==N){x||d(U,"constructor",h(1,N));for(var G in _)if(g(_,G)){var H=_[G],q=H.s;g(N,q)||d(N,q,h(6,H.c))}}},2642:(t,r,o)=>{var c=o(7187),l="DOMException";o(7536)(c(l),l)},5057:(t,r,o)=>{var c=o(4978),l=o(9298),u=o(9691),h=o(940),d=TypeError,g=Object.defineProperty,y=l.self!==l;try{if(h){var m=Object.getOwnPropertyDescriptor(l,"self");!y&&m&&m.get&&m.enumerable||u(l,"self",{get:function self(){return l},set:function self(t){if(this!==l)throw new d("Illegal invocation");g(l,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else c({global:!0,simple:!0,forced:y},{self:l})}catch(t){}},1872:(t,r,o)=>{o(6180);var c=o(4978),l=o(9298),u=o(2026),h=o(8403),d=o(940),g=o(8815),y=o(7041),m=o(9691),v=o(6880),_=o(7536),w=o(552),k=o(1649),x=o(5834),S=o(7316),C=o(936),O=o(7789),T=o(8329),E=o(4719),j=o(7633),R=o(5730),M=o(6941),L=o(1198),D=o(7612),N=o(273),U=o(1111),G=o(2743),H=o(2292),q=o(4689),z=H("iterator"),W="URLSearchParams",V=W+"Iterator",X=k.set,K=k.getterFor(W),Y=k.getterFor(V),J=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(t){if(!d)return l[t];var r=J(l,t);return r&&r.value},$=safeGetBuiltIn("fetch"),Z=safeGetBuiltIn("Request"),Q=safeGetBuiltIn("Headers"),ee=Z&&Z.prototype,te=Q&&Q.prototype,re=l.RegExp,ne=l.TypeError,ae=l.decodeURIComponent,ie=l.encodeURIComponent,oe=h("".charAt),se=h([].join),ce=h([].push),le=h("".replace),ue=h([].shift),fe=h([].splice),he=h("".split),pe=h("".slice),de=/\+/g,ge=Array(4),percentSequence=function(t){return ge[t-1]||(ge[t-1]=re("((?:%[\\da-f]{2}){"+t+"})","gi"))},percentDecode=function(t){try{return ae(t)}catch(r){return t}},deserialize=function(t){var r=le(t,de," "),o=4;try{return ae(r)}catch(t){for(;o;)r=le(r,percentSequence(o--),percentDecode);return r}},ye=/[!'()~]|%20/g,me={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(t){return me[t]},serialize=function(t){return le(ie(t),ye,replacer)},ve=w((function Iterator(t,r){X(this,{type:V,target:K(t).entries,index:0,kind:r})}),W,(function next(){var t=Y(this),r=t.target,o=t.index++;if(!r||o>=r.length){t.target=void 0;return U(void 0,!0)}var c=r[o];switch(t.kind){case"keys":return U(c.key,!1);case"values":return U(c.value,!1)}return U([c.key,c.value],!1)}),!0),URLSearchParamsState=function(t){this.entries=[];this.url=null;void 0!==t&&(j(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===oe(t,0)?pe(t,1):t:R(t)))};URLSearchParamsState.prototype={type:W,bindURL:function(t){this.url=t;this.update()},parseObject:function(t){var r,o,c,l,h,d,g,y=this.entries,m=N(t);if(m){o=(r=D(t,m)).next;for(;!(c=u(o,r)).done;){h=(l=D(E(c.value))).next;if((d=u(h,l)).done||(g=u(h,l)).done||!u(h,l).done)throw new ne("Expected sequence with length 2");ce(y,{key:R(d.value),value:R(g.value)})}}else for(var v in t)C(t,v)&&ce(y,{key:v,value:R(t[v])})},parseQuery:function(t){if(t)for(var r,o,c=this.entries,l=he(t,"&"),u=0;u<l.length;)if((r=l[u++]).length){o=he(r,"=");ce(c,{key:deserialize(ue(o)),value:deserialize(se(o,"="))})}},serialize:function(){for(var t,r=this.entries,o=[],c=0;c<r.length;){t=r[c++];ce(o,serialize(t.key)+"="+serialize(t.value))}return se(o,"&")},update:function(){this.entries.length=0;this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var be=function URLSearchParams(){x(this,_e);var t=X(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));d||(this.size=t.entries.length)},_e=be.prototype;v(_e,{append:function append(t,r){var o=K(this);G(arguments.length,2);ce(o.entries,{key:R(t),value:R(r)});d||this.length++;o.updateURL()},delete:function(t){for(var r=K(this),o=G(arguments.length,1),c=r.entries,l=R(t),u=o<2?void 0:arguments[1],h=void 0===u?u:R(u),g=0;g<c.length;){var y=c[g];if(y.key!==l||void 0!==h&&y.value!==h)g++;else{fe(c,g,1);if(void 0!==h)break}}d||(this.size=c.length);r.updateURL()},get:function get(t){var r=K(this).entries;G(arguments.length,1);for(var o=R(t),c=0;c<r.length;c++)if(r[c].key===o)return r[c].value;return null},getAll:function getAll(t){var r=K(this).entries;G(arguments.length,1);for(var o=R(t),c=[],l=0;l<r.length;l++)r[l].key===o&&ce(c,r[l].value);return c},has:function has(t){for(var r=K(this).entries,o=G(arguments.length,1),c=R(t),l=o<2?void 0:arguments[1],u=void 0===l?l:R(l),h=0;h<r.length;){var d=r[h++];if(d.key===c&&(void 0===u||d.value===u))return!0}return!1},set:function set(t,r){var o=K(this);G(arguments.length,1);for(var c,l=o.entries,u=!1,h=R(t),g=R(r),y=0;y<l.length;y++)if((c=l[y]).key===h)if(u)fe(l,y--,1);else{u=!0;c.value=g}u||ce(l,{key:h,value:g});d||(this.size=l.length);o.updateURL()},sort:function sort(){var t=K(this);q(t.entries,(function(t,r){return t.key>r.key?1:-1}));t.updateURL()},forEach:function forEach(t){for(var r,o=K(this).entries,c=O(t,arguments.length>1?arguments[1]:void 0),l=0;l<o.length;)c((r=o[l++]).value,r.key,this)},keys:function keys(){return new ve(this,"keys")},values:function values(){return new ve(this,"values")},entries:function entries(){return new ve(this,"entries")}},{enumerable:!0});y(_e,z,_e.entries,{name:"entries"});y(_e,"toString",(function toString(){return K(this).serialize()}),{enumerable:!0});d&&m(_e,"size",{get:function size(){return K(this).entries.length},configurable:!0,enumerable:!0});_(be,W);c({global:!0,constructor:!0,forced:!g},{URLSearchParams:be});if(!g&&S(Q)){var we=h(te.has),ke=h(te.set),wrapRequestOptions=function(t){if(j(t)){var r,o=t.body;if(T(o)===W){r=t.headers?new Q(t.headers):new Q;we(r,"content-type")||ke(r,"content-type","application/x-www-form-urlencoded;charset=UTF-8");return M(t,{body:L(0,R(o)),headers:L(0,r)})}}return t};S($)&&c({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function fetch(t){return $(t,arguments.length>1?wrapRequestOptions(arguments[1]):{})}});if(S(Z)){var xe=function Request(t){x(this,ee);return new Z(t,arguments.length>1?wrapRequestOptions(arguments[1]):{})};ee.constructor=xe;xe.prototype=ee;c({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xe})}}t.exports={URLSearchParams:be,getState:K}},3655:(t,r,o)=>{var c=o(7041),l=o(8403),u=o(5730),h=o(2743),d=URLSearchParams,g=d.prototype,y=l(g.append),m=l(g.delete),v=l(g.forEach),_=l([].push),w=new d("a=1&a=2&b=3");w.delete("a",1);w.delete("b",void 0);w+""!="a=2"&&c(g,"delete",(function(t){var r=arguments.length,o=r<2?void 0:arguments[1];if(r&&void 0===o)return m(this,t);var c=[];v(this,(function(t,r){_(c,{key:r,value:t})}));h(r,1);for(var l,d=u(t),g=u(o),w=0,k=0,x=!1,S=c.length;w<S;){l=c[w++];if(x||l.key===d){x=!0;m(this,l.key)}else k++}for(;k<S;)(l=c[k++]).key===d&&l.value===g||y(this,l.key,l.value)}),{enumerable:!0,unsafe:!0})},2555:(t,r,o)=>{var c=o(7041),l=o(8403),u=o(5730),h=o(2743),d=URLSearchParams,g=d.prototype,y=l(g.getAll),m=l(g.has),v=new d("a=1");!v.has("a",2)&&v.has("a",void 0)||c(g,"has",(function has(t){var r=arguments.length,o=r<2?void 0:arguments[1];if(r&&void 0===o)return m(this,t);var c=y(this,t);h(r,1);for(var l=u(o),d=0;d<c.length;)if(c[d++]===l)return!0;return!1}),{enumerable:!0,unsafe:!0})},3757:(t,r,o)=>{o(1872)},2202:(t,r,o)=>{var c=o(940),l=o(8403),u=o(9691),h=URLSearchParams.prototype,d=l(h.forEach);c&&!("size"in h)&&u(h,"size",{get:function size(){var t=0;d(this,(function(){t++}));return t},configurable:!0,enumerable:!0})},9258:(t,r,o)=>{o(1747);var c,l=o(4978),u=o(940),h=o(8815),d=o(9298),g=o(7789),y=o(8403),m=o(7041),v=o(9691),_=o(5834),w=o(936),k=o(453),x=o(7609),S=o(6071),C=o(6819).codeAt,O=o(2897),T=o(5730),E=o(7536),j=o(2743),R=o(1872),M=o(1649),L=M.set,D=M.getterFor("URL"),N=R.URLSearchParams,U=R.getState,G=d.URL,H=d.TypeError,q=d.parseInt,z=Math.floor,W=Math.pow,V=y("".charAt),X=y(/./.exec),K=y([].join),Y=y(1..toString),J=y([].pop),$=y([].push),Z=y("".replace),Q=y([].shift),ee=y("".split),te=y("".slice),re=y("".toLowerCase),ne=y([].unshift),ae="Invalid scheme",ie="Invalid host",oe="Invalid port",se=/[a-z]/i,ce=/[\d+-.a-z]/i,le=/\d/,ue=/^0x/i,fe=/^[0-7]+$/,he=/^\d+$/,pe=/^[\da-f]+$/i,de=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ge=/[\0\t\n\r #/:<>?@[\\\]^|]/,ye=/^[\u0000-\u0020]+/,me=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ve=/[\t\n\r]/g,serializeHost=function(t){var r,o,c,l;if("number"==typeof t){r=[];for(o=0;o<4;o++){ne(r,t%256);t=z(t/256)}return K(r,".")}if("object"==typeof t){r="";c=function(t){for(var r=null,o=1,c=null,l=0,u=0;u<8;u++)if(0!==t[u]){if(l>o){r=c;o=l}c=null;l=0}else{null===c&&(c=u);++l}if(l>o){r=c;o=l}return r}(t);for(o=0;o<8;o++)if(!l||0!==t[o]){l&&(l=!1);if(c===o){r+=o?":":"::";l=!0}else{r+=Y(t[o],16);o<7&&(r+=":")}}return"["+r+"]"}return t},be={},_e=k({},be,{" ":1,'"':1,"<":1,">":1,"`":1}),we=k({},_e,{"#":1,"?":1,"{":1,"}":1}),ke=k({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(t,r){var o=C(t,0);return o>32&&o<127&&!w(r,t)?t:encodeURIComponent(t)},xe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(t,r){var o;return 2===t.length&&X(se,V(t,0))&&(":"===(o=V(t,1))||!r&&"|"===o)},startsWithWindowsDriveLetter=function(t){var r;return t.length>1&&isWindowsDriveLetter(te(t,0,2))&&(2===t.length||"/"===(r=V(t,2))||"\\"===r||"?"===r||"#"===r)},isSingleDot=function(t){return"."===t||"%2e"===re(t)},Se={},Ce={},Ae={},Pe={},Oe={},Ie={},Te={},Fe={},Ee={},je={},Re={},Me={},Le={},Be={},De={},Ne={},Ue={},Ge={},He={},qe={},ze={},URLState=function(t,r,o){var c,l,u,h=T(t);if(r){if(l=this.parse(h))throw new H(l);this.searchParams=null}else{void 0!==o&&(c=new URLState(o,!0));if(l=this.parse(h,null,c))throw new H(l);(u=U(new N)).bindURL(this);this.searchParams=u}};URLState.prototype={type:"URL",parse:function(t,r,o){var l,u,h,d,g,y=this,m=r||Se,v=0,_="",k=!1,C=!1,O=!1;t=T(t);if(!r){y.scheme="";y.username="";y.password="";y.host=null;y.port=null;y.path=[];y.query=null;y.fragment=null;y.cannotBeABaseURL=!1;t=Z(t,ye,"");t=Z(t,me,"$1")}t=Z(t,ve,"");l=x(t);for(;v<=l.length;){u=l[v];switch(m){case Se:if(!u||!X(se,u)){if(r)return ae;m=Ae;continue}_+=re(u);m=Ce;break;case Ce:if(u&&(X(ce,u)||"+"===u||"-"===u||"."===u))_+=re(u);else{if(":"!==u){if(r)return ae;_="";m=Ae;v=0;continue}if(r&&(y.isSpecial()!==w(xe,_)||"file"===_&&(y.includesCredentials()||null!==y.port)||"file"===y.scheme&&!y.host))return;y.scheme=_;if(r){y.isSpecial()&&xe[y.scheme]===y.port&&(y.port=null);return}_="";if("file"===y.scheme)m=Be;else if(y.isSpecial()&&o&&o.scheme===y.scheme)m=Pe;else if(y.isSpecial())m=Fe;else if("/"===l[v+1]){m=Oe;v++}else{y.cannotBeABaseURL=!0;$(y.path,"");m=He}}break;case Ae:if(!o||o.cannotBeABaseURL&&"#"!==u)return ae;if(o.cannotBeABaseURL&&"#"===u){y.scheme=o.scheme;y.path=S(o.path);y.query=o.query;y.fragment="";y.cannotBeABaseURL=!0;m=ze;break}m="file"===o.scheme?Be:Ie;continue;case Pe:if("/"!==u||"/"!==l[v+1]){m=Ie;continue}m=Ee;v++;break;case Oe:if("/"===u){m=je;break}m=Ge;continue;case Ie:y.scheme=o.scheme;if(u===c){y.username=o.username;y.password=o.password;y.host=o.host;y.port=o.port;y.path=S(o.path);y.query=o.query}else if("/"===u||"\\"===u&&y.isSpecial())m=Te;else if("?"===u){y.username=o.username;y.password=o.password;y.host=o.host;y.port=o.port;y.path=S(o.path);y.query="";m=qe}else{if("#"!==u){y.username=o.username;y.password=o.password;y.host=o.host;y.port=o.port;y.path=S(o.path);y.path.length--;m=Ge;continue}y.username=o.username;y.password=o.password;y.host=o.host;y.port=o.port;y.path=S(o.path);y.query=o.query;y.fragment="";m=ze}break;case Te:if(!y.isSpecial()||"/"!==u&&"\\"!==u){if("/"!==u){y.username=o.username;y.password=o.password;y.host=o.host;y.port=o.port;m=Ge;continue}m=je}else m=Ee;break;case Fe:m=Ee;if("/"!==u||"/"!==V(_,v+1))continue;v++;break;case Ee:if("/"!==u&&"\\"!==u){m=je;continue}break;case je:if("@"===u){k&&(_="%40"+_);k=!0;h=x(_);for(var E=0;E<h.length;E++){var j=h[E];if(":"!==j||O){var R=percentEncode(j,ke);O?y.password+=R:y.username+=R}else O=!0}_=""}else if(u===c||"/"===u||"?"===u||"#"===u||"\\"===u&&y.isSpecial()){if(k&&""===_)return"Invalid authority";v-=x(_).length+1;_="";m=Re}else _+=u;break;case Re:case Me:if(r&&"file"===y.scheme){m=Ne;continue}if(":"!==u||C){if(u===c||"/"===u||"?"===u||"#"===u||"\\"===u&&y.isSpecial()){if(y.isSpecial()&&""===_)return ie;if(r&&""===_&&(y.includesCredentials()||null!==y.port))return;if(d=y.parseHost(_))return d;_="";m=Ue;if(r)return;continue}"["===u?C=!0:"]"===u&&(C=!1);_+=u}else{if(""===_)return ie;if(d=y.parseHost(_))return d;_="";m=Le;if(r===Me)return}break;case Le:if(!X(le,u)){if(u===c||"/"===u||"?"===u||"#"===u||"\\"===u&&y.isSpecial()||r){if(""!==_){var M=q(_,10);if(M>65535)return oe;y.port=y.isSpecial()&&M===xe[y.scheme]?null:M;_=""}if(r)return;m=Ue;continue}return oe}_+=u;break;case Be:y.scheme="file";if("/"===u||"\\"===u)m=De;else{if(!o||"file"!==o.scheme){m=Ge;continue}switch(u){case c:y.host=o.host;y.path=S(o.path);y.query=o.query;break;case"?":y.host=o.host;y.path=S(o.path);y.query="";m=qe;break;case"#":y.host=o.host;y.path=S(o.path);y.query=o.query;y.fragment="";m=ze;break;default:if(!startsWithWindowsDriveLetter(K(S(l,v),""))){y.host=o.host;y.path=S(o.path);y.shortenPath()}m=Ge;continue}}break;case De:if("/"===u||"\\"===u){m=Ne;break}o&&"file"===o.scheme&&!startsWithWindowsDriveLetter(K(S(l,v),""))&&(isWindowsDriveLetter(o.path[0],!0)?$(y.path,o.path[0]):y.host=o.host);m=Ge;continue;case Ne:if(u===c||"/"===u||"\\"===u||"?"===u||"#"===u){if(!r&&isWindowsDriveLetter(_))m=Ge;else if(""===_){y.host="";if(r)return;m=Ue}else{if(d=y.parseHost(_))return d;"localhost"===y.host&&(y.host="");if(r)return;_="";m=Ue}continue}_+=u;break;case Ue:if(y.isSpecial()){m=Ge;if("/"!==u&&"\\"!==u)continue}else if(r||"?"!==u)if(r||"#"!==u){if(u!==c){m=Ge;if("/"!==u)continue}}else{y.fragment="";m=ze}else{y.query="";m=qe}break;case Ge:if(u===c||"/"===u||"\\"===u&&y.isSpecial()||!r&&("?"===u||"#"===u)){if(".."===(g=re(g=_))||"%2e."===g||".%2e"===g||"%2e%2e"===g){y.shortenPath();"/"===u||"\\"===u&&y.isSpecial()||$(y.path,"")}else if(isSingleDot(_))"/"===u||"\\"===u&&y.isSpecial()||$(y.path,"");else{if("file"===y.scheme&&!y.path.length&&isWindowsDriveLetter(_)){y.host&&(y.host="");_=V(_,0)+":"}$(y.path,_)}_="";if("file"===y.scheme&&(u===c||"?"===u||"#"===u))for(;y.path.length>1&&""===y.path[0];)Q(y.path);if("?"===u){y.query="";m=qe}else if("#"===u){y.fragment="";m=ze}}else _+=percentEncode(u,we);break;case He:if("?"===u){y.query="";m=qe}else if("#"===u){y.fragment="";m=ze}else u!==c&&(y.path[0]+=percentEncode(u,be));break;case qe:if(r||"#"!==u)u!==c&&("'"===u&&y.isSpecial()?y.query+="%27":y.query+="#"===u?"%23":percentEncode(u,be));else{y.fragment="";m=ze}break;case ze:u!==c&&(y.fragment+=percentEncode(u,_e))}v++}},parseHost:function(t){var r,o,c;if("["===V(t,0)){if("]"!==V(t,t.length-1))return ie;r=function(t){var r,o,c,l,u,h,d,g=[0,0,0,0,0,0,0,0],y=0,m=null,v=0,chr=function(){return V(t,v)};if(":"===chr()){if(":"!==V(t,1))return;v+=2;m=++y}for(;chr();){if(8===y)return;if(":"!==chr()){r=o=0;for(;o<4&&X(pe,chr());){r=16*r+q(chr(),16);v++;o++}if("."===chr()){if(0===o)return;v-=o;if(y>6)return;c=0;for(;chr();){l=null;if(c>0){if(!("."===chr()&&c<4))return;v++}if(!X(le,chr()))return;for(;X(le,chr());){u=q(chr(),10);if(null===l)l=u;else{if(0===l)return;l=10*l+u}if(l>255)return;v++}g[y]=256*g[y]+l;2!=++c&&4!==c||y++}if(4!==c)return;break}if(":"===chr()){v++;if(!chr())return}else if(chr())return;g[y++]=r}else{if(null!==m)return;v++;m=++y}}if(null!==m){h=y-m;y=7;for(;0!==y&&h>0;){d=g[y];g[y--]=g[m+h-1];g[m+--h]=d}}else if(8!==y)return;return g}(te(t,1,-1));if(!r)return ie;this.host=r}else if(this.isSpecial()){t=O(t);if(X(de,t))return ie;r=function(t){var r,o,c,l,u,h,d,g=ee(t,".");g.length&&""===g[g.length-1]&&g.length--;if((r=g.length)>4)return t;o=[];for(c=0;c<r;c++){if(""===(l=g[c]))return t;u=10;if(l.length>1&&"0"===V(l,0)){u=X(ue,l)?16:8;l=te(l,8===u?1:2)}if(""===l)h=0;else{if(!X(10===u?he:8===u?fe:pe,l))return t;h=q(l,u)}$(o,h)}for(c=0;c<r;c++){h=o[c];if(c===r-1){if(h>=W(256,5-r))return null}else if(h>255)return null}d=J(o);for(c=0;c<o.length;c++)d+=o[c]*W(256,3-c);return d}(t);if(null===r)return ie;this.host=r}else{if(X(ge,t))return ie;r="";o=x(t);for(c=0;c<o.length;c++)r+=percentEncode(o[c],be);this.host=r}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return w(xe,this.scheme)},shortenPath:function(){var t=this.path,r=t.length;!r||"file"===this.scheme&&1===r&&isWindowsDriveLetter(t[0],!0)||t.length--},serialize:function(){var t=this,r=t.scheme,o=t.username,c=t.password,l=t.host,u=t.port,h=t.path,d=t.query,g=t.fragment,y=r+":";if(null!==l){y+="//";t.includesCredentials()&&(y+=o+(c?":"+c:"")+"@");y+=serializeHost(l);null!==u&&(y+=":"+u)}else"file"===r&&(y+="//");y+=t.cannotBeABaseURL?h[0]:h.length?"/"+K(h,"/"):"";null!==d&&(y+="?"+d);null!==g&&(y+="#"+g);return y},setHref:function(t){var r=this.parse(t);if(r)throw new H(r);this.searchParams.update()},getOrigin:function(){var t=this.scheme,r=this.port;if("blob"===t)try{return new We(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+serializeHost(this.host)+(null!==r?":"+r:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(T(t)+":",Se)},getUsername:function(){return this.username},setUsername:function(t){var r=x(T(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var o=0;o<r.length;o++)this.username+=percentEncode(r[o],ke)}},getPassword:function(){return this.password},setPassword:function(t){var r=x(T(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var o=0;o<r.length;o++)this.password+=percentEncode(r[o],ke)}},getHost:function(){var t=this.host,r=this.port;return null===t?"":null===r?serializeHost(t):serializeHost(t)+":"+r},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Re)},getHostname:function(){var t=this.host;return null===t?"":serializeHost(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Me)},getPort:function(){var t=this.port;return null===t?"":T(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=T(t))?this.port=null:this.parse(t,Le))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+K(t,"/"):""},setPathname:function(t){if(!this.cannotBeABaseURL){this.path=[];this.parse(t,Ue)}},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){if(""===(t=T(t)))this.query=null;else{"?"===V(t,0)&&(t=te(t,1));this.query="";this.parse(t,qe)}this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){if(""!==(t=T(t))){"#"===V(t,0)&&(t=te(t,1));this.fragment="";this.parse(t,ze)}else this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var We=function URL(t){var r=_(this,Ve),o=j(arguments.length,1)>1?arguments[1]:void 0,c=L(r,new URLState(t,!1,o));if(!u){r.href=c.serialize();r.origin=c.getOrigin();r.protocol=c.getProtocol();r.username=c.getUsername();r.password=c.getPassword();r.host=c.getHost();r.hostname=c.getHostname();r.port=c.getPort();r.pathname=c.getPathname();r.search=c.getSearch();r.searchParams=c.getSearchParams();r.hash=c.getHash()}},Ve=We.prototype,accessorDescriptor=function(t,r){return{get:function(){return D(this)[t]()},set:r&&function(t){return D(this)[r](t)},configurable:!0,enumerable:!0}};if(u){v(Ve,"href",accessorDescriptor("serialize","setHref"));v(Ve,"origin",accessorDescriptor("getOrigin"));v(Ve,"protocol",accessorDescriptor("getProtocol","setProtocol"));v(Ve,"username",accessorDescriptor("getUsername","setUsername"));v(Ve,"password",accessorDescriptor("getPassword","setPassword"));v(Ve,"host",accessorDescriptor("getHost","setHost"));v(Ve,"hostname",accessorDescriptor("getHostname","setHostname"));v(Ve,"port",accessorDescriptor("getPort","setPort"));v(Ve,"pathname",accessorDescriptor("getPathname","setPathname"));v(Ve,"search",accessorDescriptor("getSearch","setSearch"));v(Ve,"searchParams",accessorDescriptor("getSearchParams"));v(Ve,"hash",accessorDescriptor("getHash","setHash"))}m(Ve,"toJSON",(function toJSON(){return D(this).serialize()}),{enumerable:!0});m(Ve,"toString",(function toString(){return D(this).serialize()}),{enumerable:!0});if(G){var Xe=G.createObjectURL,Ke=G.revokeObjectURL;Xe&&m(We,"createObjectURL",g(Xe,G));Ke&&m(We,"revokeObjectURL",g(Ke,G))}E(We,"URL");l({global:!0,constructor:!0,forced:!h,sham:!u},{URL:We})},7529:(t,r,o)=>{o(9258)}},r={};function __webpack_require__(o){var c=r[o];if(void 0!==c)return c.exports;var l=r[o]={exports:{}};t[o].call(l.exports,l,l.exports,__webpack_require__);return l.exports}__webpack_require__.d=(t,r)=>{for(var o in r)__webpack_require__.o(r,o)&&!__webpack_require__.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})};__webpack_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);var o=globalThis.pdfjsWorker={};(()=>{__webpack_require__.d(o,{WorkerMessageHandler:()=>Wb});__webpack_require__(6180),__webpack_require__(895),__webpack_require__(5666),__webpack_require__(4060),__webpack_require__(1747),__webpack_require__(2374),__webpack_require__(5136),__webpack_require__(7944),__webpack_require__(1585),__webpack_require__(7121),__webpack_require__(2993),__webpack_require__(3352),__webpack_require__(4699),__webpack_require__(739),__webpack_require__(4816),__webpack_require__(6923),__webpack_require__(6775),__webpack_require__(6474),__webpack_require__(6450),__webpack_require__(1665),__webpack_require__(8837),__webpack_require__(9803),__webpack_require__(1293),__webpack_require__(1051),__webpack_require__(8260),__webpack_require__(5746),__webpack_require__(202),__webpack_require__(2138),__webpack_require__(368),__webpack_require__(9782),__webpack_require__(917),__webpack_require__(3650),__webpack_require__(8347),__webpack_require__(7192),__webpack_require__(354),__webpack_require__(9080),__webpack_require__(7238),__webpack_require__(7995),__webpack_require__(62),__webpack_require__(6635),__webpack_require__(4602),__webpack_require__(344),__webpack_require__(4305),__webpack_require__(7583),__webpack_require__(2048),__webpack_require__(5561),__webpack_require__(8587),__webpack_require__(3247),__webpack_require__(3302),__webpack_require__(9490),__webpack_require__(5438),__webpack_require__(7914),__webpack_require__(4226),__webpack_require__(924),__webpack_require__(4750),__webpack_require__(4622),__webpack_require__(3295),__webpack_require__(8518),__webpack_require__(6770),__webpack_require__(1378),__webpack_require__(7874),__webpack_require__(5057),__webpack_require__(5598),__webpack_require__(8806),__webpack_require__(9366),__webpack_require__(6678),__webpack_require__(5897),__webpack_require__(2926),__webpack_require__(171),__webpack_require__(9593),__webpack_require__(7942),__webpack_require__(5776),__webpack_require__(1133),__webpack_require__(2173),__webpack_require__(2630),__webpack_require__(1024),__webpack_require__(13),__webpack_require__(1210),__webpack_require__(6421),__webpack_require__(469),__webpack_require__(7529),__webpack_require__(3757),__webpack_require__(3655),__webpack_require__(2555),__webpack_require__(2202),__webpack_require__(4668),__webpack_require__(4624),__webpack_require__(2796),__webpack_require__(2613),__webpack_require__(7230),__webpack_require__(4711),__webpack_require__(7600),__webpack_require__(5548),__webpack_require__(3766),__webpack_require__(9175),__webpack_require__(6128);function _classPrivateFieldInitSpec(t,r,o){!function _checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.set(t,o)}function _classPrivateFieldSet(t,r,o){!function _classApplyDescriptorSet(t,r,o){if(r.set)r.set.call(t,o);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=o}}(t,_classExtractFieldDescriptor(t,r,"set"),o);return o}function _classExtractFieldDescriptor(t,r,o){if(!r.has(t))throw new TypeError("attempted to "+o+" private field on non-instance");return r.get(t)}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,_toPropertyKey(c.key),c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(r)?r:String(r)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}"object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&process.type;var t=[1,0,0,1,0,0],r=[.001,0,0,.001,0,0],c=1.35,l=.35,u=.25925925925925924,h=1,d=2,g=4,y=8,m=16,v=64,_=256,w="pdfjs_internal_editor_",k=3,x=9,S=13,C=15,O={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},T=0,E=4,j=1,R=2,M=3,L=1,D=2,N=3,U=4,G=5,H=6,q=7,z=8,W=9,V=10,X=11,K=12,Y=13,J=14,$=15,Z=16,Q=17,ee=20,te="Group",re="R",ne=1,ae=2,ie=4,oe=16,se=32,ce=128,le=512,ue=1,fe=2,he=4096,pe=8192,de=32768,ge=65536,ye=131072,me=1048576,ve=2097152,be=8388608,_e=16777216,we=1,ke=2,xe=3,Se=4,Ce=5,Ae={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"},Pe={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},Oe={O:"PageOpen",C:"PageClose"},Ie={ERRORS:0,WARNINGS:1,INFOS:5},Te={NONE:0,BINARY:1},Fe=1,Ee=2,je=3,Re=4,Me=5,Le=6,Be=7,De=8,Ne=9,Ue=10,Ge=11,He=12,qe=13,ze=14,We=15,Ve=16,Xe=17,Ke=18,Ye=19,Je=20,$e=21,Ze=22,Qe=23,et=24,tt=25,rt=26,nt=27,it=28,ot=29,st=30,ct=31,lt=32,ut=33,ft=34,ht=35,dt=36,gt=37,yt=38,mt=39,vt=40,bt=41,_t=42,wt=43,kt=44,xt=45,St=46,Ct=47,At=48,Pt=49,Ot=50,It=51,Tt=52,Ft=53,Et=54,jt=55,Rt=56,Mt=57,Lt=58,Bt=59,Dt=60,Nt=61,Ut=62,Gt=63,Ht=64,qt=65,zt=66,Wt=67,Vt=68,Xt=69,Kt=70,Yt=71,Jt=72,$t=73,Zt=74,Qt=75,er=76,tr=77,rr=80,nr=81,ar=83,ir=84,sr=85,cr=86,lr=87,ur=88,fr=89,hr=90,pr=91,dr=1,gr=2,yr=Ie.WARNINGS;function getVerbosityLevel(){return yr}function info(t){yr>=Ie.INFOS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log("Info: ".concat(t)):Window&&globalThis.ngxConsole?globalThis.ngxConsole.log("Info: ".concat(t)):console.log("Info: ".concat(t)))}function warn(t){yr>=Ie.WARNINGS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log("Warning: ".concat(t)):Window&&globalThis.ngxConsole?globalThis.ngxConsole.log("Warning: ".concat(t)):console.log("Warning: ".concat(t)))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}function createValidAbsoluteUrl(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(o&&"string"==typeof t){if(o.addDefaultProtocol&&t.startsWith("www.")){var c=t.match(/\./g);(null==c?void 0:c.length)>=2&&(t="http://".concat(t))}if(o.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}var l=r?new URL(t,r):new URL(t);if(function _isValidProtocol(t){switch(null==t?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":case"capacitor":return!0;default:return!1}}(l))return l}catch(t){}return null}function shadow(t,r,o){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(t,r,{value:o,enumerable:!c,configurable:!0,writable:!1});return o}var mr=function BaseExceptionClosure(){function BaseException(t,r){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=r}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}(),vr=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,o){var c;_classCallCheck(this,PasswordException);(c=r.call(this,t,"PasswordException")).code=o;return c}return _createClass(PasswordException)}(mr),_r=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var c;_classCallCheck(this,UnknownErrorException);(c=r.call(this,t,"UnknownErrorException")).details=o;return c}return _createClass(UnknownErrorException)}(mr),wr=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(t){_classCallCheck(this,InvalidPDFException);return r.call(this,t,"InvalidPDFException")}return _createClass(InvalidPDFException)}(mr),kr=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return _createClass(MissingPDFException)}(mr),xr=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,o){var c;_classCallCheck(this,UnexpectedResponseException);(c=r.call(this,t,"UnexpectedResponseException")).status=o;return c}return _createClass(UnexpectedResponseException)}(mr),Sr=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return _createClass(FormatError)}(mr),Cr=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(t){_classCallCheck(this,AbortException);return r.call(this,t,"AbortException")}return _createClass(AbortException)}(mr);function bytesToString(t){"object"===_typeof(t)&&void 0!==(null==t?void 0:t.length)||unreachable("Invalid argument for bytesToString");var r=t.length,o=8192;if(r<o)return String.fromCharCode.apply(null,t);for(var c=[],l=0;l<r;l+=o){var u=Math.min(l+o,r),h=t.subarray(l,u);c.push(String.fromCharCode.apply(null,h))}return c.join("")}function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),c=0;c<r;++c)o[c]=255&t.charCodeAt(c);return o}function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function objectSize(t){return Object.keys(t).length}var Ar=function(){function FeatureTest(){_classCallCheck(this,FeatureTest)}_createClass(FeatureTest,null,[{key:"isLittleEndian",get:function get(){return shadow(this,"isLittleEndian",function isLittleEndian(){var t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}},{key:"isEvalSupported",get:function get(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function get(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function get(){var t;return"undefined"!=typeof navigator&&"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.platform)?shadow(this,"platform",{isMac:navigator.platform.includes("Mac")}):shadow(this,"platform",{isMac:!1})}},{key:"isCSSRoundSupported",get:function get(){var t,r;return shadow(this,"isCSSRoundSupported",null===(t=globalThis.CSS)||void 0===t||null===(r=t.supports)||void 0===r?void 0:r.call(t,"width: round(1.5px, 1px)"))}}]);return FeatureTest}(),Pr=_toConsumableArray(Array(256).keys()).map((function(t){return t.toString(16).padStart(2,"0")})),Or=function(){function Util(){_classCallCheck(this,Util)}_createClass(Util,null,[{key:"makeHexColor",value:function makeHexColor(t,r,o){return"#".concat(Pr[t]).concat(Pr[r]).concat(Pr[o])}},{key:"scaleMinMax",value:function scaleMinMax(t,r){var o;if(t[0]){if(t[0]<0){o=r[0];r[0]=r[1];r[1]=o}r[0]*=t[0];r[1]*=t[0];if(t[3]<0){o=r[2];r[2]=r[3];r[3]=o}r[2]*=t[3];r[3]*=t[3]}else{o=r[0];r[0]=r[2];r[2]=o;o=r[1];r[1]=r[3];r[3]=o;if(t[1]<0){o=r[2];r[2]=r[3];r[3]=o}r[2]*=t[1];r[3]*=t[1];if(t[2]<0){o=r[0];r[0]=r[1];r[1]=o}r[0]*=t[2];r[1]*=t[2]}r[0]+=t[4];r[1]+=t[4];r[2]+=t[5];r[3]+=t[5]}},{key:"transform",value:function transform(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]}},{key:"applyTransform",value:function applyTransform(t,r){return[t[0]*r[0]+t[1]*r[2]+r[4],t[0]*r[1]+t[1]*r[3]+r[5]]}},{key:"applyInverseTransform",value:function applyInverseTransform(t,r){var o=r[0]*r[3]-r[1]*r[2];return[(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/o,(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/o]}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(t,r){var o=this.applyTransform(t,r),c=this.applyTransform(t.slice(2,4),r),l=this.applyTransform([t[0],t[3]],r),u=this.applyTransform([t[2],t[1]],r);return[Math.min(o[0],c[0],l[0],u[0]),Math.min(o[1],c[1],l[1],u[1]),Math.max(o[0],c[0],l[0],u[0]),Math.max(o[1],c[1],l[1],u[1])]}},{key:"inverseTransform",value:function inverseTransform(t){var r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]}},{key:"singularValueDecompose2dScale",value:function singularValueDecompose2dScale(t){var r=[t[0],t[2],t[1],t[3]],o=t[0]*r[0]+t[1]*r[2],c=t[0]*r[1]+t[1]*r[3],l=t[2]*r[0]+t[3]*r[2],u=t[2]*r[1]+t[3]*r[3],h=(o+u)/2,d=Math.sqrt(Math.pow(o+u,2)-4*(o*u-l*c))/2,g=h+d||1,y=h-d||1;return[Math.sqrt(g),Math.sqrt(y)]}},{key:"normalizeRect",value:function normalizeRect(t){var r=t.slice(0);if(t[0]>t[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){var o=Math.max(Math.min(t[0],t[2]),Math.min(r[0],r[2])),c=Math.min(Math.max(t[0],t[2]),Math.max(r[0],r[2]));if(o>c)return null;var l=Math.max(Math.min(t[1],t[3]),Math.min(r[1],r[3])),u=Math.min(Math.max(t[1],t[3]),Math.max(r[1],r[3]));return l>u?null:[o,l,c,u]}},{key:"bezierBoundingBox",value:function bezierBoundingBox(t,r,o,c,l,u,h,d){for(var g,y,m,v,_,w,k,x,S=[],C=[[],[]],O=0;O<2;++O){if(0===O){y=6*t-12*o+6*l;g=-3*t+9*o-9*l+3*h;m=3*o-3*t}else{y=6*r-12*c+6*u;g=-3*r+9*c-9*u+3*d;m=3*c-3*r}if(Math.abs(g)<1e-12){if(Math.abs(y)<1e-12)continue;0<(v=-m/y)&&v<1&&S.push(v)}else{k=y*y-4*m*g;x=Math.sqrt(k);if(!(k<0)){0<(_=(-y+x)/(2*g))&&_<1&&S.push(_);0<(w=(-y-x)/(2*g))&&w<1&&S.push(w)}}}for(var T,E=S.length,j=E;E--;){T=1-(v=S[E]);C[0][E]=T*T*T*t+3*T*T*v*o+3*T*v*v*l+v*v*v*h;C[1][E]=T*T*T*r+3*T*T*v*c+3*T*v*v*u+v*v*v*d}C[0][j]=t;C[1][j]=r;C[0][j+1]=h;C[1][j+1]=d;C[0].length=C[1].length=j+2;return[Math.min.apply(Math,_toConsumableArray(C[0])),Math.min.apply(Math,_toConsumableArray(C[1])),Math.max.apply(Math,_toConsumableArray(C[0])),Math.max.apply(Math,_toConsumableArray(C[1]))]}}]);return Util}(),Ir=[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 stringToPDFString(t){if(t[0]>="ï"){var r;if("þ"===t[0]&&"ÿ"===t[1]){r="utf-16be";t.length%2==1&&(t=t.slice(0,-1))}else if("ÿ"===t[0]&&"þ"===t[1]){r="utf-16le";t.length%2==1&&(t=t.slice(0,-1))}else"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(r="utf-8");if(r)try{var o=new TextDecoder(r,{fatal:!0}),c=stringToBytes(t),l=o.decode(c);return l.includes("")?l.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,""):l}catch(t){warn('stringToPDFString: "'.concat(t,'".'))}}for(var u=[],h=0,d=t.length;h<d;h++){var g=t.charCodeAt(h);if(27!==g){var y=Ir[g];u.push(y?String.fromCharCode(y):t.charAt(h))}else for(;++h<d&&27!==t.charCodeAt(h););}return u.join("")}function stringToUTF8String(t){return decodeURIComponent(escape(t))}function utf8StringToString(t){return unescape(encodeURIComponent(t))}function isArrayEqual(t,r){if(t.length!==r.length)return!1;for(var o=0,c=t.length;o<c;o++)if(t[o]!==r[o])return!1;return!0}function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")}var Tr=new WeakMap,Fr=function(){function PromiseCapability(){var t=this;_classCallCheck(this,PromiseCapability);_classPrivateFieldInitSpec(this,Tr,{writable:!0,value:!1});this.promise=new Promise((function(r,o){t.resolve=function(o){_classPrivateFieldSet(t,Tr,!0);r(o)};t.reject=function(r){_classPrivateFieldSet(t,Tr,!0);o(r)}}))}_createClass(PromiseCapability,[{key:"settled",get:function get(){return function _classPrivateFieldGet(t,r){return function _classApplyDescriptorGet(t,r){return r.get?r.get.call(t):r.value}(t,_classExtractFieldDescriptor(t,r,"get"))}(this,Tr)}}]);return PromiseCapability}(),Er=null,jr=null;__webpack_require__(3764),__webpack_require__(9689),__webpack_require__(3032),__webpack_require__(5619),__webpack_require__(9786),__webpack_require__(4280),__webpack_require__(9099),__webpack_require__(2586);function primitives_typeof(t){return primitives_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},primitives_typeof(t)}function primitives_slicedToArray(t,r){return function primitives_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function primitives_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||primitives_unsupportedIterableToArray(t,r)||function primitives_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function primitives_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=primitives_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function primitives_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return primitives_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?primitives_arrayLikeToArray(t,r):void 0}}function primitives_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==primitives_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(primitives_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function primitives_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function primitives_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,primitives_toPropertyKey(c.key),c)}}function primitives_createClass(t,r,o){r&&primitives_defineProperties(t.prototype,r);o&&primitives_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function primitives_toPropertyKey(t){var r=function primitives_toPrimitive(t,r){if("object"!=primitives_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=primitives_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==primitives_typeof(r)?r:String(r)}var Rr=Symbol("CIRCULAR_REF"),Mr=Symbol("EOF"),Lr=Object.create(null),Dr=Object.create(null),Nr=Object.create(null);var Ur=function(){function Name(t){primitives_classCallCheck(this,Name);this.name=t}primitives_createClass(Name,null,[{key:"get",value:function get(t){var r;return(r=Dr)[t]||(r[t]=new Name(t))}}]);return Name}(),Gr=function(){function Cmd(t){primitives_classCallCheck(this,Cmd);this.cmd=t}primitives_createClass(Cmd,null,[{key:"get",value:function get(t){var r;return(r=Lr)[t]||(r[t]=new Cmd(t))}}]);return Cmd}(),Hr=function nonSerializableClosure(){return Hr},qr=function(){function Dict(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;primitives_classCallCheck(this,Dict);this._map=Object.create(null);this.xref=t;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=Hr}primitives_createClass(Dict,[{key:"assignXref",value:function assignXref(t){this.xref=t}},{key:"size",get:function get(){return Object.keys(this._map).length}},{key:"get",value:function get(t,r,o){var c=this._map[t];void 0===c&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);return c instanceof zr&&this.xref?this.xref.fetch(c,this.suppressEncryption):c}},{key:"getAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(t,r,o){var c;return _regeneratorRuntime().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:void 0===(c=this._map[t])&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);if(!(c instanceof zr&&this.xref)){l.next=4;break}return l.abrupt("return",this.xref.fetchAsync(c,this.suppressEncryption));case 4:return l.abrupt("return",c);case 5:case"end":return l.stop()}}),_callee,this)}))),function getAsync(r,o,c){return t.apply(this,arguments)})},{key:"getArray",value:function getArray(t,r,o){var c=this._map[t];void 0===c&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);c instanceof zr&&this.xref&&(c=this.xref.fetch(c,this.suppressEncryption));if(Array.isArray(c))for(var l=0,u=(c=c.slice()).length;l<u;l++)c[l]instanceof zr&&this.xref&&(c[l]=this.xref.fetch(c[l],this.suppressEncryption));return c}},{key:"getRaw",value:function getRaw(t){return this._map[t]}},{key:"getKeys",value:function getKeys(){return Object.keys(this._map)}},{key:"getRawValues",value:function getRawValues(){return Object.values(this._map)}},{key:"set",value:function set(t,r){this._map[t]=r}},{key:"has",value:function has(t){return void 0!==this._map[t]}},{key:"forEach",value:function forEach(t){for(var r in this._map)t(r,this.get(r))}},{key:"clone",value:function clone(){var t,r=new Dict(this.xref),o=primitives_createForOfIteratorHelper(this.getKeys());try{for(o.s();!(t=o.n()).done;){var c=t.value;r.set(c,this.getRaw(c))}}catch(t){o.e(t)}finally{o.f()}return r}}],[{key:"empty",get:function get(){var t=new Dict(null);t.set=function(t,r){unreachable("Should not call `set` on the empty dictionary.")};return shadow(this,"empty",t)}},{key:"merge",value:function merge(t){var r,o=t.xref,c=t.dictArray,l=t.mergeSubDicts,u=void 0!==l&&l,h=new Dict(o),d=new Map,g=primitives_createForOfIteratorHelper(c);try{for(g.s();!(r=g.n()).done;){var y=r.value;if(y instanceof Dict)for(var m=0,v=Object.entries(y._map);m<v.length;m++){var _=primitives_slicedToArray(v[m],2),w=_[0],k=_[1],x=d.get(w);if(void 0===x){x=[];d.set(w,x)}else if(!(u&&k instanceof Dict))continue;x.push(k)}}}catch(t){g.e(t)}finally{g.f()}var S,C=primitives_createForOfIteratorHelper(d);try{for(C.s();!(S=C.n()).done;){var O=primitives_slicedToArray(S.value,2),T=O[0],E=O[1];if(1!==E.length&&E[0]instanceof Dict){var j,R=new Dict(o),M=primitives_createForOfIteratorHelper(E);try{for(M.s();!(j=M.n()).done;)for(var L=j.value,D=0,N=Object.entries(L._map);D<N.length;D++){var U=primitives_slicedToArray(N[D],2),G=U[0],H=U[1];void 0===R._map[G]&&(R._map[G]=H)}}catch(t){M.e(t)}finally{M.f()}R.size>0&&(h._map[T]=R)}else h._map[T]=E[0]}}catch(t){C.e(t)}finally{C.f()}d.clear();return h.size>0?h:Dict.empty}}]);var t;return Dict}(),zr=function(){function Ref(t,r){primitives_classCallCheck(this,Ref);this.num=t;this.gen=r}primitives_createClass(Ref,[{key:"toString",value:function toString(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"fromString",value:function fromString(t){var r=Nr[t];if(r)return r;var o=/^(\d+)R(\d*)$/.exec(t);return o&&"0"!==o[1]?Nr[t]=new Ref(parseInt(o[1]),o[2]?parseInt(o[2]):0):null}},{key:"get",value:function get(t,r){var o,c=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r);return(o=Nr)[c]||(o[c]=new Ref(t,r))}}]);return Ref}(),Wr=function(t){function RefSet(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;primitives_classCallCheck(this,RefSet);this._set=new Set(null==t?void 0:t._set)}primitives_createClass(RefSet,[{key:"has",value:function has(t){return this._set.has(t.toString())}},{key:"put",value:function put(t){this._set.add(t.toString())}},{key:"remove",value:function remove(t){this._set.delete(t.toString())}},{key:Symbol.iterator,value:function value(){return this._set.values()}},{key:"clear",value:function clear(){this._set.clear()}}]);return RefSet}(),Vr=function(t){function RefSetCache(){primitives_classCallCheck(this,RefSetCache);this._map=new Map}primitives_createClass(RefSetCache,[{key:"size",get:function get(){return this._map.size}},{key:"get",value:function get(t){return this._map.get(t.toString())}},{key:"has",value:function has(t){return this._map.has(t.toString())}},{key:"put",value:function put(t,r){this._map.set(t.toString(),r)}},{key:"putAlias",value:function putAlias(t,r){this._map.set(t.toString(),this.get(r))}},{key:Symbol.iterator,value:function value(){return this._map.values()}},{key:"clear",value:function clear(){this._map.clear()}}]);return RefSetCache}();function isName(t,r){return t instanceof Ur&&(void 0===r||t.name===r)}function isCmd(t,r){return t instanceof Gr&&(void 0===r||t.cmd===r)}function isRefsEqual(t,r){return t.num===r.num&&t.gen===r.gen}function base_stream_typeof(t){return base_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},base_stream_typeof(t)}function base_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,base_stream_toPropertyKey(c.key),c)}}function base_stream_toPropertyKey(t){var r=function base_stream_toPrimitive(t,r){if("object"!=base_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=base_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==base_stream_typeof(r)?r:String(r)}var Xr=function(){function BaseStream(){!function base_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,BaseStream);this.constructor===BaseStream&&unreachable("Cannot initialize BaseStream.")}!function base_stream_createClass(t,r,o){r&&base_stream_defineProperties(t.prototype,r);o&&base_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(BaseStream,[{key:"length",get:function get(){unreachable("Abstract getter `length` accessed")}},{key:"isEmpty",get:function get(){unreachable("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function get(){return shadow(this,"isDataLoaded",!0)}},{key:"getByte",value:function getByte(){unreachable("Abstract method `getByte` called")}},{key:"getBytes",value:function getBytes(t){unreachable("Abstract method `getBytes` called")}},{key:"peekByte",value:function peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t}},{key:"peekBytes",value:function peekBytes(t){var r=this.getBytes(t);this.pos-=r.length;return r}},{key:"getUint16",value:function getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r}},{key:"getInt32",value:function getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getByteRange",value:function getByteRange(t,r){unreachable("Abstract method `getByteRange` called")}},{key:"getString",value:function getString(t){return bytesToString(this.getBytes(t))}},{key:"skip",value:function skip(t){this.pos+=t||1}},{key:"reset",value:function reset(){unreachable("Abstract method `reset` called")}},{key:"moveStart",value:function moveStart(){unreachable("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function makeSubStream(t,r){unreachable("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function getBaseStreams(){return null}}]);return BaseStream}();function core_utils_typeof(t){return core_utils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},core_utils_typeof(t)}function core_utils_slicedToArray(t,r){return function core_utils_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function core_utils_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||core_utils_unsupportedIterableToArray(t,r)||function core_utils_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function core_utils_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=core_utils_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function core_utils_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return core_utils_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?core_utils_arrayLikeToArray(t,r):void 0}}function core_utils_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function core_utils_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,core_utils_toPropertyKey(c.key),c)}}function core_utils_createClass(t,r,o){r&&core_utils_defineProperties(t.prototype,r);o&&core_utils_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function core_utils_toPropertyKey(t){var r=function core_utils_toPrimitive(t,r){if("object"!=core_utils_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=core_utils_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==core_utils_typeof(r)?r:String(r)}function core_utils_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function core_utils_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&core_utils_setPrototypeOf(t,r)}function core_utils_setPrototypeOf(t,r){core_utils_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return core_utils_setPrototypeOf(t,r)}function core_utils_createSuper(t){var r=function core_utils_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=core_utils_getPrototypeOf(t);if(r){var l=core_utils_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function core_utils_possibleConstructorReturn(t,r){if(r&&("object"===core_utils_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function core_utils_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function core_utils_getPrototypeOf(t){core_utils_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return core_utils_getPrototypeOf(t)}var Kr=/^[1-9]\.\d$/;function getLookupTableFactory(t){var r;return function(){if(t){r=Object.create(null);t(r);t=null}return r}}var Yr=function(t){core_utils_inherits(MissingDataException,t);var r=core_utils_createSuper(MissingDataException);function MissingDataException(t,o){var c;core_utils_classCallCheck(this,MissingDataException);(c=r.call(this,"Missing data [".concat(t,", ").concat(o,")"),"MissingDataException")).begin=t;c.end=o;return c}return core_utils_createClass(MissingDataException)}(mr),Jr=function(t){core_utils_inherits(ParserEOFException,t);var r=core_utils_createSuper(ParserEOFException);function ParserEOFException(t){core_utils_classCallCheck(this,ParserEOFException);return r.call(this,t,"ParserEOFException")}return core_utils_createClass(ParserEOFException)}(mr),$r=function(t){core_utils_inherits(XRefEntryException,t);var r=core_utils_createSuper(XRefEntryException);function XRefEntryException(t){core_utils_classCallCheck(this,XRefEntryException);return r.call(this,t,"XRefEntryException")}return core_utils_createClass(XRefEntryException)}(mr),Zr=function(t){core_utils_inherits(XRefParseException,t);var r=core_utils_createSuper(XRefParseException);function XRefParseException(t){core_utils_classCallCheck(this,XRefParseException);return r.call(this,t,"XRefParseException")}return core_utils_createClass(XRefParseException)}(mr);function arrayBuffersToBytes(t){var r=t.length;if(0===r)return new Uint8Array(0);if(1===r)return new Uint8Array(t[0]);for(var o=0,c=0;c<r;c++)o+=t[c].byteLength;for(var l=new Uint8Array(o),u=0,h=0;h<r;h++){var d=new Uint8Array(t[h]);l.set(d,u);u+=d.byteLength}return l}function getInheritableProperty(t){for(var r,o=t.dict,c=t.key,l=t.getArray,u=void 0!==l&&l,h=t.stopWhenFound,d=void 0===h||h,g=new Wr;o instanceof qr&&(!o.objId||!g.has(o.objId));){o.objId&&g.put(o.objId);var y=u?o.getArray(c):o.get(c);if(void 0!==y){if(d)return y;(r||(r=[])).push(y)}o=o.get("Parent")}return r}var Qr=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function toRomanNumerals(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];assert(Number.isInteger(t)&&t>0,"The number should be a positive integer.");for(var o,c=[];t>=1e3;){t-=1e3;c.push("M")}o=t/100|0;t%=100;c.push(Qr[o]);o=t/10|0;t%=10;c.push(Qr[10+o]);c.push(Qr[20+t]);var l=c.join("");return r?l.toLowerCase():l}function log2(t){return t<=0?0:Math.ceil(Math.log2(t))}function readInt8(t,r){return t[r]<<24>>24}function readUint16(t,r){return t[r]<<8|t[r+1]}function readUint32(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}function isWhiteSpace(t){return 32===t||9===t||13===t||10===t}function parseXFAPath(t){var r=/(.+)\[(\d+)\]$/;return t.split(".").map((function(t){var o=t.match(r);return o?{name:o[1],pos:parseInt(o[2],10)}:{name:t,pos:0}}))}function escapePDFName(t){for(var r=[],o=0,c=0,l=t.length;c<l;c++){var u=t.charCodeAt(c);if(u<33||u>126||35===u||40===u||41===u||60===u||62===u||91===u||93===u||123===u||125===u||47===u||37===u){o<c&&r.push(t.substring(o,c));r.push("#".concat(u.toString(16)));o=c+1}}if(0===r.length)return t;o<t.length&&r.push(t.substring(o,t.length));return r.join("")}function escapeString(t){return t.replaceAll(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))}function _collectJS(t,r,o,c){if(t){var l=null;if(t instanceof zr){if(c.has(t))return;l=t;c.put(l);t=r.fetch(t)}if(Array.isArray(t)){var u,h=core_utils_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){_collectJS(u.value,r,o,c)}}catch(t){h.e(t)}finally{h.f()}}else if(t instanceof qr){if(isName(t.get("S"),"JavaScript")){var d,g=t.get("JS");g instanceof Xr?d=g.getString():"string"==typeof g&&(d=g);d&&(d=stringToPDFString(d).replaceAll("\0",""));d&&o.push(d)}_collectJS(t.getRaw("Next"),r,o,c)}l&&c.remove(l)}}function collectActions(t,r,o){var c=Object.create(null),l=getInheritableProperty({dict:r,key:"AA",stopWhenFound:!1});if(l)for(var u=l.length-1;u>=0;u--){var h=l[u];if(h instanceof qr){var d,g=core_utils_createForOfIteratorHelper(h.getKeys());try{for(g.s();!(d=g.n()).done;){var y=d.value,m=o[y];if(m){var v=h.getRaw(y),_=new Wr,w=[];_collectJS(v,t,w,_);w.length>0&&(c[m]=w)}}}catch(t){g.e(t)}finally{g.f()}}}if(r.has("A")){var k=[];_collectJS(r.get("A"),t,k,new Wr);k.length>0&&(c.Action=k)}return objectSize(c)>0?c:null}var en={60:"<",62:">",38:"&",34:""",39:"'"};function encodeToXmlString(t){for(var r=[],o=0,c=0,l=t.length;c<l;c++){var u=t.codePointAt(c);if(32<=u&&u<=126){var h=en[u];if(h){o<c&&r.push(t.substring(o,c));r.push(h);o=c+1}}else{o<c&&r.push(t.substring(o,c));r.push("&#x".concat(u.toString(16).toUpperCase(),";"));u>55295&&(u<57344||u>65533)&&c++;o=c+1}}if(0===r.length)return t;o<t.length&&r.push(t.substring(o,t.length));return r.join("")}function validateFontName(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=/^("|').*("|')$/.exec(t);if(o&&o[1]===o[2]){if(new RegExp("[^\\\\]".concat(o[1])).test(t.slice(1,-1))){r&&warn("FontFamily contains unescaped ".concat(o[1],": ").concat(t,"."));return!1}}else{var c,l=core_utils_createForOfIteratorHelper(t.split(/[ \t]+/));try{for(l.s();!(c=l.n()).done;){var u=c.value;if(/^(\d|(-(\d|-)))/.test(u)||!/^[\w-\\]+$/.test(u)){r&&warn("FontFamily contains invalid <custom-ident>: ".concat(t,"."));return!1}}}catch(t){l.e(t)}finally{l.f()}}return!0}function validateCSSFont(t){var r=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),o=t.fontFamily,c=t.fontWeight,l=t.italicAngle;if(!validateFontName(o,!0))return!1;var u=c?c.toString():"";t.fontWeight=r.has(u)?u:"400";var h=parseFloat(l);t.italicAngle=isNaN(h)||h<-90||h>90?"14":l.toString();return!0}function recoverJsURL(t){var r=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(t);if(null!=r&&r[2]){var o=r[2],c=!1;"true"===r[3]&&"app.launchURL"===r[1]&&(c=!0);return{url:o,newWindow:c}}return null}function numberToString(t){if(Number.isInteger(t))return t.toString();var r=Math.round(100*t);return r%100==0?(r/100).toString():r%10==0?t.toFixed(1):t.toFixed(2)}function getNewAnnotationsMap(t){if(!t)return null;var r,o=new Map,c=core_utils_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=core_utils_slicedToArray(r.value,2),u=l[0],h=l[1];if(u.startsWith(w)){var d=o.get(h.pageIndex);if(!d){d=[];o.set(h.pageIndex,d)}d.push(h)}}}catch(t){c.e(t)}finally{c.f()}return o.size>0?o:null}function isAscii(t){return/^[\x00-\x7F]*$/.test(t)}function stringToUTF16HexString(t){for(var r=[],o=0,c=t.length;o<c;o++){var l=t.charCodeAt(o);r.push((l>>8&255).toString(16).padStart(2,"0"),(255&l).toString(16).padStart(2,"0"))}return r.join("")}function stringToUTF16String(t){var r=[];arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&r.push("þÿ");for(var o=0,c=t.length;o<c;o++){var l=t.charCodeAt(o);r.push(String.fromCharCode(l>>8&255),String.fromCharCode(255&l))}return r.join("")}function core_utils_getRotationMatrix(t,r,o){switch(t){case 90:return[0,1,-1,0,r,0];case 180:return[-1,0,0,-1,r,o];case 270:return[0,-1,1,0,0,o];default:throw new Error("Invalid rotation")}}__webpack_require__(8301);function stream_typeof(t){return stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},stream_typeof(t)}function stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,stream_toPropertyKey(c.key),c)}}function stream_createClass(t,r,o){r&&stream_defineProperties(t.prototype,r);o&&stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function stream_toPropertyKey(t){var r=function stream_toPrimitive(t,r){if("object"!=stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==stream_typeof(r)?r:String(r)}function stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&stream_setPrototypeOf(t,r)}function stream_setPrototypeOf(t,r){stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return stream_setPrototypeOf(t,r)}function stream_createSuper(t){var r=function stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=stream_getPrototypeOf(t);if(r){var l=stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function stream_possibleConstructorReturn(t,r){if(r&&("object"===stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function stream_getPrototypeOf(t){stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return stream_getPrototypeOf(t)}var tn=function(t){stream_inherits(Stream,t);var r=stream_createSuper(Stream);function Stream(t,o,c,l){var u;stream_classCallCheck(this,Stream);(u=r.call(this)).bytes=t instanceof Uint8Array?t:new Uint8Array(t);u.start=o||0;u.pos=u.start;u.end=o+c||u.bytes.length;u.dict=l;return u}stream_createClass(Stream,[{key:"length",get:function get(){return this.end-this.start}},{key:"isEmpty",get:function get(){return 0===this.length}},{key:"getByte",value:function getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function getBytes(t){var r=this.bytes,o=this.pos,c=this.end;if(!t)return r.subarray(o,c);var l=o+t;l>c&&(l=c);this.pos=l;return r.subarray(o,l)}},{key:"getByteRange",value:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);return this.bytes.subarray(t,r)}},{key:"reset",value:function reset(){this.pos=this.start}},{key:"moveStart",value:function moveStart(){this.start=this.pos}},{key:"makeSubStream",value:function makeSubStream(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Stream(this.bytes.buffer,t,r,o)}}]);return Stream}(Xr),rn=function(t){stream_inherits(StringStream,t);var r=stream_createSuper(StringStream);function StringStream(t){stream_classCallCheck(this,StringStream);return r.call(this,stringToBytes(t))}return stream_createClass(StringStream)}(tn),nn=function(t){stream_inherits(NullStream,t);var r=stream_createSuper(NullStream);function NullStream(){stream_classCallCheck(this,NullStream);return r.call(this,new Uint8Array(0))}return stream_createClass(NullStream)}(tn);function chunked_stream_typeof(t){return chunked_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},chunked_stream_typeof(t)}function chunked_stream_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function chunked_stream_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return chunked_stream_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return chunked_stream_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function chunked_stream_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function chunked_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function chunked_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,chunked_stream_toPropertyKey(c.key),c)}}function chunked_stream_createClass(t,r,o){r&&chunked_stream_defineProperties(t.prototype,r);o&&chunked_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function chunked_stream_toPropertyKey(t){var r=function chunked_stream_toPrimitive(t,r){if("object"!=chunked_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=chunked_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==chunked_stream_typeof(r)?r:String(r)}function chunked_stream_setPrototypeOf(t,r){chunked_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return chunked_stream_setPrototypeOf(t,r)}function chunked_stream_createSuper(t){var r=function chunked_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=chunked_stream_getPrototypeOf(t);if(r){var l=chunked_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function chunked_stream_possibleConstructorReturn(t,r){if(r&&("object"===chunked_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function chunked_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function chunked_stream_getPrototypeOf(t){chunked_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return chunked_stream_getPrototypeOf(t)}var an,sn=function(t){!function chunked_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&chunked_stream_setPrototypeOf(t,r)}(ChunkedStream,t);var r=chunked_stream_createSuper(ChunkedStream);function ChunkedStream(t,o,c){var l;chunked_stream_classCallCheck(this,ChunkedStream);(l=r.call(this,new Uint8Array(t),0,t,null)).chunkSize=o;l._loadedChunks=new Set;l.numChunks=Math.ceil(t/o);l.manager=c;l.progressiveDataLength=0;l.lastSuccessfulEnsureByteChunk=-1;return l}chunked_stream_createClass(ChunkedStream,[{key:"getMissingChunks",value:function getMissingChunks(){for(var t=[],r=0,o=this.numChunks;r<o;++r)this._loadedChunks.has(r)||t.push(r);return t}},{key:"numChunksLoaded",get:function get(){return this._loadedChunks.size}},{key:"isDataLoaded",get:function get(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function onReceiveData(t,r){var o=this.chunkSize;if(t%o!=0)throw new Error("Bad begin offset: ".concat(t));var c=t+r.byteLength;if(c%o!=0&&c!==this.bytes.length)throw new Error("Bad end offset: ".concat(c));this.bytes.set(new Uint8Array(r),t);for(var l=Math.floor(t/o),u=Math.floor((c-1)/o)+1,h=l;h<u;++h)this._loadedChunks.add(h)}},{key:"onReceiveProgressiveData",value:function onReceiveProgressiveData(t){var r=this.progressiveDataLength,o=Math.floor(r/this.chunkSize);this.bytes.set(new Uint8Array(t),r);r+=t.byteLength;this.progressiveDataLength=r;for(var c=r>=this.end?this.numChunks:Math.floor(r/this.chunkSize),l=o;l<c;++l)this._loadedChunks.add(l)}},{key:"ensureByte",value:function ensureByte(t){if(!(t<this.progressiveDataLength)){var r=Math.floor(t/this.chunkSize);if(!(r>this.numChunks)&&r!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(r))throw new Yr(t,t+1);this.lastSuccessfulEnsureByteChunk=r}}}},{key:"ensureRange",value:function ensureRange(t,r){if(!(t>=r||r<=this.progressiveDataLength)){var o=Math.floor(t/this.chunkSize);if(!(o>this.numChunks))for(var c=Math.min(Math.floor((r-1)/this.chunkSize)+1,this.numChunks),l=o;l<c;++l)if(!this._loadedChunks.has(l))throw new Yr(t,r)}}},{key:"nextEmptyChunk",value:function nextEmptyChunk(t){for(var r=this.numChunks,o=0;o<r;++o){var c=(t+o)%r;if(!this._loadedChunks.has(c))return c}return null}},{key:"hasChunk",value:function hasChunk(t){return this._loadedChunks.has(t)}},{key:"getByte",value:function getByte(){var t=this.pos;if(t>=this.end)return-1;t>=this.progressiveDataLength&&this.ensureByte(t);return this.bytes[this.pos++]}},{key:"getBytes",value:function getBytes(t){var r=this.bytes,o=this.pos,c=this.end;if(!t){c>this.progressiveDataLength&&this.ensureRange(o,c);return r.subarray(o,c)}var l=o+t;l>c&&(l=c);l>this.progressiveDataLength&&this.ensureRange(o,l);this.pos=l;return r.subarray(o,l)}},{key:"getByteRange",value:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);r>this.progressiveDataLength&&this.ensureRange(t,r);return this.bytes.subarray(t,r)}},{key:"makeSubStream",value:function makeSubStream(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;r?t+r>this.progressiveDataLength&&this.ensureRange(t,t+r):t>=this.progressiveDataLength&&this.ensureByte(t);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){for(var t=this.chunkSize,r=Math.floor(this.start/t),o=Math.floor((this.end-1)/t)+1,c=[],l=r;l<o;++l)this._loadedChunks.has(l)||c.push(l);return c};Object.defineProperty(ChunkedStreamSubstream.prototype,"isDataLoaded",{get:function get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var c=new ChunkedStreamSubstream;c.pos=c.start=t;c.end=t+r||this.end;c.dict=o;return c}},{key:"getBaseStreams",value:function getBaseStreams(){return[this]}}]);return ChunkedStream}(tn),cn=function(){function ChunkedStreamManager(t,r){chunked_stream_classCallCheck(this,ChunkedStreamManager);this.length=r.length;this.chunkSize=r.rangeChunkSize;this.stream=new sn(this.length,this.chunkSize,this);this.pdfNetworkStream=t;this.disableAutoFetch=r.disableAutoFetch;this.msgHandler=r.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new Map;this._requestsByChunk=new Map;this._promisesByRequest=new Map;this.progressiveDataLength=0;this.aborted=!1;this._loadedStreamCapability=new Fr}chunked_stream_createClass(ChunkedStreamManager,[{key:"sendRequest",value:function sendRequest(t,r){var o=this,c=this.pdfNetworkStream.getRangeReader(t,r);c.isStreamingSupported||(c.onProgress=this.onProgress.bind(this));var l=[],u=0;return new Promise((function(t,r){c.read().then((function readChunk(h){var d=h.value,g=h.done;try{if(g){var y=arrayBuffersToBytes(l);l=null;t(y);return}u+=d.byteLength;c.isStreamingSupported&&o.onProgress({loaded:u});l.push(d);c.read().then(readChunk,r)}catch(t){r(t)}}),r)})).then((function(r){o.aborted||o.onReceiveData({chunk:r,begin:t})}))}},{key:"requestAllChunks",value:function requestAllChunks(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])){var t=this.stream.getMissingChunks();this._requestChunks(t)}return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function _requestChunks(t){var r=this,o=this.currRequestId++,c=new Set;this._chunksNeededByRequest.set(o,c);var l,u=chunked_stream_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var h=l.value;this.stream.hasChunk(h)||c.add(h)}}catch(t){u.e(t)}finally{u.f()}if(0===c.size)return Promise.resolve();var d=new Fr;this._promisesByRequest.set(o,d);var g,y=[],m=chunked_stream_createForOfIteratorHelper(c);try{for(m.s();!(g=m.n()).done;){var v=g.value,_=this._requestsByChunk.get(v);if(!_){_=[];this._requestsByChunk.set(v,_);y.push(v)}_.push(o)}}catch(t){m.e(t)}finally{m.f()}if(y.length>0){var w,k=chunked_stream_createForOfIteratorHelper(this.groupChunks(y));try{for(k.s();!(w=k.n()).done;){var x=w.value,S=x.beginChunk*this.chunkSize,C=Math.min(x.endChunk*this.chunkSize,this.length);this.sendRequest(S,C).catch(d.reject)}}catch(t){k.e(t)}finally{k.f()}}return d.promise.catch((function(t){if(!r.aborted)throw t}))}},{key:"getStream",value:function getStream(){return this.stream}},{key:"requestRange",value:function requestRange(t,r){r=Math.min(r,this.length);for(var o=this.getBeginChunk(t),c=this.getEndChunk(r),l=[],u=o;u<c;++u)l.push(u);return this._requestChunks(l)}},{key:"requestRanges",value:function requestRanges(){var t,r=[],o=chunked_stream_createForOfIteratorHelper(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);try{for(o.s();!(t=o.n()).done;)for(var c=t.value,l=this.getBeginChunk(c.begin),u=this.getEndChunk(c.end),h=l;h<u;++h)r.includes(h)||r.push(h)}catch(t){o.e(t)}finally{o.f()}r.sort((function(t,r){return t-r}));return this._requestChunks(r)}},{key:"groupChunks",value:function groupChunks(t){for(var r=[],o=-1,c=-1,l=0,u=t.length;l<u;++l){var h=t[l];o<0&&(o=h);if(c>=0&&c+1!==h){r.push({beginChunk:o,endChunk:c+1});o=h}l+1===t.length&&r.push({beginChunk:o,endChunk:h+1});c=h}return r}},{key:"onProgress",value:function onProgress(t){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+t.loaded,total:this.length})}},{key:"onReceiveData",value:function onReceiveData(t){var r=t.chunk,o=void 0===t.begin,c=o?this.progressiveDataLength:t.begin,l=c+r.byteLength,u=Math.floor(c/this.chunkSize),h=l<this.length?Math.floor(l/this.chunkSize):Math.ceil(l/this.chunkSize);if(o){this.stream.onReceiveProgressiveData(r);this.progressiveDataLength=l}else this.stream.onReceiveData(c,r);this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var d=[],g=u;g<h;++g){var y=this._requestsByChunk.get(g);if(y){this._requestsByChunk.delete(g);var m,v=chunked_stream_createForOfIteratorHelper(y);try{for(v.s();!(m=v.n()).done;){var _=m.value,w=this._chunksNeededByRequest.get(_);w.has(g)&&w.delete(g);w.size>0||d.push(_)}}catch(t){v.e(t)}finally{v.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var k;if(1===this.stream.numChunksLoaded){var x=this.stream.numChunks-1;this.stream.hasChunk(x)||(k=x)}else k=this.stream.nextEmptyChunk(h);Number.isInteger(k)&&this._requestChunks([k])}for(var S=0,C=d;S<C.length;S++){var O=C[S],T=this._promisesByRequest.get(O);this._promisesByRequest.delete(O);T.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function onError(t){this._loadedStreamCapability.reject(t)}},{key:"getBeginChunk",value:function getBeginChunk(t){return Math.floor(t/this.chunkSize)}},{key:"getEndChunk",value:function getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}},{key:"abort",value:function abort(t){var r;this.aborted=!0;null===(r=this.pdfNetworkStream)||void 0===r||r.cancelAllRequests(t);var o,c=chunked_stream_createForOfIteratorHelper(this._promisesByRequest.values());try{for(c.s();!(o=c.n()).done;){o.value.reject(t)}}catch(t){c.e(t)}finally{c.f()}}}]);return ChunkedStreamManager}();__webpack_require__(5621),__webpack_require__(6302),__webpack_require__(385),__webpack_require__(9142),__webpack_require__(6820),__webpack_require__(10),__webpack_require__(394),__webpack_require__(312),__webpack_require__(2640),__webpack_require__(9779),__webpack_require__(8341),__webpack_require__(275),__webpack_require__(5252),__webpack_require__(7620),__webpack_require__(3371),__webpack_require__(9718),__webpack_require__(3713),__webpack_require__(3821),__webpack_require__(2931),__webpack_require__(6458);function colorspace_typeof(t){return colorspace_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},colorspace_typeof(t)}function _classStaticPrivateFieldSpecGet(t,r,o){!function _classCheckPrivateStaticAccess(t,r){if(t!==r)throw new TypeError("Private static access of wrong provenance")}(t,r);!function _classCheckPrivateStaticFieldDescriptor(t,r){if(void 0===t)throw new TypeError("attempted to "+r+" private static field before its declaration")}(o,"get");return function colorspace_classApplyDescriptorGet(t,r){if(r.get)return r.get.call(t);return r.value}(t,o)}function colorspace_slicedToArray(t,r){return function colorspace_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function colorspace_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||function colorspace_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return colorspace_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return colorspace_arrayLikeToArray(t,r)}(t,r)||function colorspace_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function colorspace_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _classPrivateMethodInitSpec(t,r){!function colorspace_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function _classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}function colorspace_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&colorspace_setPrototypeOf(t,r)}function colorspace_setPrototypeOf(t,r){colorspace_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return colorspace_setPrototypeOf(t,r)}function colorspace_createSuper(t){var r=function colorspace_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=colorspace_getPrototypeOf(t);if(r){var l=colorspace_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function colorspace_possibleConstructorReturn(t,r){if(r&&("object"===colorspace_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return colorspace_assertThisInitialized(t)}(this,o)}}function colorspace_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function colorspace_getPrototypeOf(t){colorspace_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return colorspace_getPrototypeOf(t)}function colorspace_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */colorspace_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==colorspace_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(colorspace_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function colorspace_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function colorspace_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function colorspace_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,colorspace_toPropertyKey(c.key),c)}}function colorspace_createClass(t,r,o){r&&colorspace_defineProperties(t.prototype,r);o&&colorspace_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function colorspace_toPropertyKey(t){var r=function colorspace_toPrimitive(t,r){if("object"!=colorspace_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=colorspace_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==colorspace_typeof(r)?r:String(r)}var ln=function(){function ColorSpace(t,r){colorspace_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&unreachable("Cannot initialize ColorSpace.");this.name=t;this.numComps=r}colorspace_createClass(ColorSpace,[{key:"getRgb",value:function getRgb(t,r){var o=new Uint8ClampedArray(3);this.getRgbItem(t,r,o,0);return o}},{key:"getRgbItem",value:function getRgbItem(t,r,o,c){unreachable("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){unreachable("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function getOutputLength(t,r){unreachable("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function isPassthrough(t){return!1}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return ColorSpace.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function fillRgb(t,r,o,c,l,u,h,d,g){var y=r*o,m=null,v=1<<h,_=o!==l||r!==c;if(this.isPassthrough(h))m=d;else if(1===this.numComps&&y>v&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var w=h<=8?new Uint8Array(v):new Uint16Array(v),k=0;k<v;k++)w[k]=k;var x=new Uint8ClampedArray(3*v);this.getRgbBuffer(w,0,v,x,0,h,0);if(_){m=new Uint8Array(3*y);for(var S=0,C=0;C<y;++C){var O=3*d[C];m[S++]=x[O];m[S++]=x[O+1];m[S++]=x[O+2]}}else for(var T=0,E=0;E<y;++E){var j=3*d[E];t[T++]=x[j];t[T++]=x[j+1];t[T++]=x[j+2];T+=g}}else if(_){m=new Uint8ClampedArray(3*y);this.getRgbBuffer(d,0,y,m,0,h,0)}else this.getRgbBuffer(d,0,c*u,t,0,h,g);if(m)if(_)!function resizeRgbImage(t,r,o,c,l,u,h){h=1!==h?0:h;for(var d,g=o/l,y=c/u,m=0,v=new Uint16Array(l),_=3*o,w=0;w<l;w++)v[w]=3*Math.floor(w*g);for(var k=0;k<u;k++)for(var x=Math.floor(k*y)*_,S=0;S<l;S++){d=x+v[S];r[m++]=t[d++];r[m++]=t[d++];r[m++]=t[d++];m+=h}}(m,t,r,o,c,l,g);else for(var R=0,M=0,L=0,D=c*u;L<D;L++){t[R++]=m[M++];t[R++]=m[M++];t[R++]=m[M++];R+=g}}},{key:"usesZeroToOneRange",get:function get(){return shadow(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function _cache(t,r,o,c){if(!o)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!c)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var l,u;if(t instanceof zr){u=t;t=r.fetch(t)}t instanceof Ur&&(l=t.name);(l||u)&&o.set(l,u,c)}},{key:"getCached",value:function getCached(t,r,o){if(!o)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(t instanceof zr){var c=o.getByRef(t);if(c)return c;try{t=r.fetch(t)}catch(t){if(t instanceof Yr)throw t}}if(t instanceof Ur){var l=o.getByName(t.name);if(l)return l}return null}},{key:"parseAsync",value:(t=function colorspace_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){colorspace_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){colorspace_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(colorspace_regeneratorRuntime().mark((function _callee(t){var r,o,c,l,u,h,d;return colorspace_regeneratorRuntime().wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:r=t.cs,o=t.xref,c=t.resources,l=void 0===c?null:c,u=t.pdfFunctionFactory,h=t.localColorSpaceCache;d=this._parse(r,o,l,u);this._cache(r,o,h,d);return g.abrupt("return",d);case 4:case"end":return g.stop()}}),_callee,this)}))),function parseAsync(r){return t.apply(this,arguments)})},{key:"parse",value:function parse(t){var r=t.cs,o=t.xref,c=t.resources,l=void 0===c?null:c,u=t.pdfFunctionFactory,h=t.localColorSpaceCache,d=this.getCached(r,o,h);if(d)return d;var g=this._parse(r,o,l,u);this._cache(r,o,h,g);return g}},{key:"_parse",value:function _parse(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3?arguments[3]:void 0;if((t=r.fetchIfRef(t))instanceof Ur)switch(t.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new fn(null);default:if(o instanceof qr){var l=o.get("ColorSpace");if(l instanceof qr){var u=l.get(t.name);if(u){if(u instanceof Ur)return this._parse(u,r,o,c);t=u;break}}}throw new Sr("Unrecognized ColorSpace: ".concat(t.name))}if(Array.isArray(t)){var h,d,g,y,m,v,_=r.fetchIfRef(t[0]).name;switch(_){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":y=(h=r.fetchIfRef(t[1])).getArray("WhitePoint");m=h.getArray("BlackPoint");v=h.get("Gamma");return new vn(y,m,v);case"CalRGB":y=(h=r.fetchIfRef(t[1])).getArray("WhitePoint");m=h.getArray("BlackPoint");v=h.getArray("Gamma");var w=h.getArray("Matrix");return new In(y,m,v,w);case"ICCBased":var k=r.fetchIfRef(t[1]).dict;d=k.get("N");var x=k.get("Alternate");if(x){var S=this._parse(x,r,o,c);if(S.numComps===d)return S;warn("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===d)return this.singletons.gray;if(3===d)return this.singletons.rgb;if(4===d)return this.singletons.cmyk;break;case"Pattern":(g=t[1]||null)&&(g=this._parse(g,r,o,c));return new fn(g);case"I":case"Indexed":g=this._parse(t[1],r,o,c);var C=r.fetchIfRef(t[2])+1,O=r.fetchIfRef(t[3]);return new hn(g,C,O);case"Separation":case"DeviceN":var T=r.fetchIfRef(t[1]);d=Array.isArray(T)?T.length:1;g=this._parse(t[2],r,o,c);var E=c.create(t[3]);return new un(d,g,E);case"Lab":y=(h=r.fetchIfRef(t[1])).getArray("WhitePoint");m=h.getArray("BlackPoint");var j=h.getArray("Range");return new Gn(y,m,j);default:throw new Sr("Unimplemented ColorSpace object: ".concat(_))}}throw new Sr("Unrecognized ColorSpace object: ".concat(t))}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2*r!==t.length){warn("The decode map is not the correct length");return!0}for(var o=0,c=t.length;o<c;o+=2)if(0!==t[o]||1!==t[o+1])return!1;return!0}},{key:"singletons",get:function get(){return shadow(this,"singletons",{get gray(){return shadow(this,"gray",new pn)},get rgb(){return shadow(this,"rgb",new dn)},get cmyk(){return shadow(this,"cmyk",new yn)}})}}]);var t;return ColorSpace}(),un=function(t){colorspace_inherits(AlternateCS,t);var r=colorspace_createSuper(AlternateCS);function AlternateCS(t,o,c){var l;colorspace_classCallCheck(this,AlternateCS);(l=r.call(this,"Alternate",t)).base=o;l.tintFn=c;l.tmpBuf=new Float32Array(o.numComps);return l}colorspace_createClass(AlternateCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){var l=this.tmpBuf;this.tintFn(t,r,l,0);this.base.getRgbItem(l,0,o,c)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){var d,g,y=this.tintFn,m=this.base,v=1/((1<<u)-1),_=m.numComps,w=m.usesZeroToOneRange,k=(m.isPassthrough(8)||!w)&&0===h,x=k?l:0,S=k?c:new Uint8ClampedArray(_*o),C=this.numComps,O=new Float32Array(C),T=new Float32Array(_);for(d=0;d<o;d++){for(g=0;g<C;g++)O[g]=t[r++]*v;y(O,0,T,0);if(w)for(g=0;g<_;g++)S[x++]=255*T[g];else{m.getRgbItem(T,0,S,x);x+=_}}k||m.getRgbBuffer(S,0,o,c,l,8,h)}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps/this.numComps,r)}}]);return AlternateCS}(ln),fn=function(t){colorspace_inherits(PatternCS,t);var r=colorspace_createSuper(PatternCS);function PatternCS(t){var o;colorspace_classCallCheck(this,PatternCS);(o=r.call(this,"Pattern",null)).base=t;return o}colorspace_createClass(PatternCS,[{key:"isDefaultDecode",value:function isDefaultDecode(t,r){unreachable("Should not call PatternCS.isDefaultDecode")}}]);return PatternCS}(ln),hn=function(t){colorspace_inherits(IndexedCS,t);var r=colorspace_createSuper(IndexedCS);function IndexedCS(t,o,c){var l;colorspace_classCallCheck(this,IndexedCS);(l=r.call(this,"Indexed",1)).base=t;l.highVal=o;var u=t.numComps*o;l.lookup=new Uint8Array(u);if(c instanceof Xr){var h=c.getBytes(u);l.lookup.set(h)}else{if("string"!=typeof c)throw new Sr("IndexedCS - unrecognized lookup table: ".concat(c));for(var d=0;d<u;++d)l.lookup[d]=255&c.charCodeAt(d)}return l}colorspace_createClass(IndexedCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){var l=this.base.numComps,u=t[r]*l;this.base.getRgbBuffer(this.lookup,u,1,o,c,8,0)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=this.base,g=d.numComps,y=d.getOutputLength(g,h),m=this.lookup,v=0;v<o;++v){var _=t[r++]*g;d.getRgbBuffer(m,_,1,c,l,8,h);l+=y}}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps,r)}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2!==t.length){warn("Decode map length is not correct");return!0}if(!Number.isInteger(r)||r<1){warn("Bits per component is not correct");return!0}return 0===t[0]&&t[1]===(1<<r)-1}}]);return IndexedCS}(ln),pn=function(t){colorspace_inherits(DeviceGrayCS,t);var r=colorspace_createSuper(DeviceGrayCS);function DeviceGrayCS(){colorspace_classCallCheck(this,DeviceGrayCS);return r.call(this,"DeviceGray",1)}colorspace_createClass(DeviceGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){var l=255*t[r];o[c]=o[c+1]=o[c+2]=l}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=255/((1<<u)-1),g=r,y=l,m=0;m<o;++m){var v=d*t[g++];c[y++]=v;c[y++]=v;c[y++]=v;y+=h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return DeviceGrayCS}(ln),dn=function(t){colorspace_inherits(DeviceRgbCS,t);var r=colorspace_createSuper(DeviceRgbCS);function DeviceRgbCS(){colorspace_classCallCheck(this,DeviceRgbCS);return r.call(this,"DeviceRGB",3)}colorspace_createClass(DeviceRgbCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){o[c]=255*t[r];o[c+1]=255*t[r+1];o[c+2]=255*t[r+2]}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){if(8!==u||0!==h)for(var d=255/((1<<u)-1),g=r,y=l,m=0;m<o;++m){c[y++]=d*t[g++];c[y++]=d*t[g++];c[y++]=d*t[g++];y+=h}else c.set(t.subarray(r,r+3*o),l)}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isPassthrough",value:function isPassthrough(t){return 8===t}}]);return DeviceRgbCS}(ln),gn=new WeakSet,yn=function(t){colorspace_inherits(DeviceCmykCS,t);var r=colorspace_createSuper(DeviceCmykCS);function DeviceCmykCS(){var t;colorspace_classCallCheck(this,DeviceCmykCS);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(t=r.call(this,"DeviceCMYK",4)),gn);return t}colorspace_createClass(DeviceCmykCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){_classPrivateMethodGet(this,gn,_toRgb2).call(this,t,r,1,o,c)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=1/((1<<u)-1),g=0;g<o;g++){_classPrivateMethodGet(this,gn,_toRgb2).call(this,t,r,d,c,l);r+=4;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t/4*(3+r)|0}}]);return DeviceCmykCS}(ln);function _toRgb2(t,r,o,c,l){var u=t[r]*o,h=t[r+1]*o,d=t[r+2]*o,g=t[r+3]*o;c[l]=255+u*(-4.387332384609988*u+54.48615194189176*h+18.82290502165302*d+212.25662451639585*g-285.2331026137004)+h*(1.7149763477362134*h-5.6096736904047315*d+-17.873870861415444*g-5.497006427196366)+d*(-2.5217340131683033*d-21.248923337353073*g+17.5119270841813)+g*(-21.86122147463605*g-189.48180835922747);c[l+1]=255+u*(8.841041422036149*u+60.118027045597366*h+6.871425592049007*d+31.159100130055922*g-79.2970844816548)+h*(-15.310361306967817*h+17.575251261109482*d+131.35250912493976*g-190.9453302588951)+d*(4.444339102852739*d+9.8632861493405*g-24.86741582555878)+g*(-20.737325471181034*g-187.80453709719578);c[l+2]=255+u*(.8842522430003296*u+8.078677503112928*h+30.89978309703729*d-.23883238689178934*g-14.183576799673286)+h*(10.49593273432072*h+63.02378494754052*d+50.606957656360734*g-112.23884253719248)+d*(.03296041114873217*d+115.60384449646641*g-193.58209356861505)+g*(-22.33816807309886*g-180.12613974708367)}var mn=new WeakSet,vn=function(t){colorspace_inherits(CalGrayCS,t);var r=colorspace_createSuper(CalGrayCS);function CalGrayCS(t,o,c){var l;colorspace_classCallCheck(this,CalGrayCS);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(l=r.call(this,"CalGray",1)),mn);if(!t)throw new Sr("WhitePoint missing - required for color space CalGray");var u=colorspace_slicedToArray(t,3);l.XW=u[0];l.YW=u[1];l.ZW=u[2];var h=colorspace_slicedToArray(o||[0,0,0],3);l.XB=h[0];l.YB=h[1];l.ZB=h[2];l.G=c||1;if(l.XW<0||l.ZW<0||1!==l.YW)throw new Sr("Invalid WhitePoint components for ".concat(l.name,", no fallback available"));if(l.XB<0||l.YB<0||l.ZB<0){info("Invalid BlackPoint for ".concat(l.name,", falling back to default."));l.XB=l.YB=l.ZB=0}0===l.XB&&0===l.YB&&0===l.ZB||warn("".concat(l.name,", BlackPoint: XB: ").concat(l.XB,", YB: ").concat(l.YB,", ")+"ZB: ".concat(l.ZB,", only default values are supported."));if(l.G<1){info("Invalid Gamma: ".concat(l.G," for ").concat(l.name,", falling back to default."));l.G=1}return l}colorspace_createClass(CalGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){_classPrivateMethodGet(this,mn,_toRgb4).call(this,t,r,o,c,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=1/((1<<u)-1),g=0;g<o;++g){_classPrivateMethodGet(this,mn,_toRgb4).call(this,t,r,c,l,d);r+=1;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return CalGrayCS}(ln);function _toRgb4(t,r,o,c,l){var u=t[r]*l,h=Math.pow(u,this.G),d=this.YW*h,g=Math.max(295.8*Math.pow(d,.3333333333333333)-40.8,0);o[c]=g;o[c+1]=g;o[c+2]=g}var bn=new WeakSet,_n=new WeakSet,wn=new WeakSet,kn=new WeakSet,xn=new WeakSet,Sn=new WeakSet,Cn=new WeakSet,An=new WeakSet,Pn=new WeakSet,On=new WeakSet,In=function(t){colorspace_inherits(CalRGBCS,t);var r=colorspace_createSuper(CalRGBCS);function CalRGBCS(t,o,c,l){var u;colorspace_classCallCheck(this,CalRGBCS);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u=r.call(this,"CalRGB",3)),On);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),Pn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),An);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),Cn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),Sn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),xn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),kn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),wn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),_n);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(u),bn);if(!t)throw new Sr("WhitePoint missing - required for color space CalRGB");var h=colorspace_slicedToArray(u.whitePoint=t,3),d=h[0],g=h[1],y=h[2],m=colorspace_slicedToArray(u.blackPoint=o||new Float32Array(3),3),v=m[0],_=m[1],w=m[2],k=colorspace_slicedToArray(c||new Float32Array([1,1,1]),3);u.GR=k[0];u.GG=k[1];u.GB=k[2];var x=colorspace_slicedToArray(l||new Float32Array([1,0,0,0,1,0,0,0,1]),9);u.MXA=x[0];u.MYA=x[1];u.MZA=x[2];u.MXB=x[3];u.MYB=x[4];u.MZB=x[5];u.MXC=x[6];u.MYC=x[7];u.MZC=x[8];if(d<0||y<0||1!==g)throw new Sr("Invalid WhitePoint components for ".concat(u.name,", no fallback available"));if(v<0||_<0||w<0){info("Invalid BlackPoint for ".concat(u.name," [").concat(v,", ").concat(_,", ").concat(w,"], ")+"falling back to default.");u.blackPoint=new Float32Array(3)}if(u.GR<0||u.GG<0||u.GB<0){info("Invalid Gamma [".concat(u.GR,", ").concat(u.GG,", ").concat(u.GB,"] for ")+"".concat(u.name,", falling back to default."));u.GR=u.GG=u.GB=1}return u}colorspace_createClass(CalRGBCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){_classPrivateMethodGet(this,On,_toRgb6).call(this,t,r,o,c,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=1/((1<<u)-1),g=0;g<o;++g){_classPrivateMethodGet(this,On,_toRgb6).call(this,t,r,c,l,d);r+=3;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}}]);return CalRGBCS}(ln);an=In;function _matrixProduct2(t,r,o){o[0]=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];o[1]=t[3]*r[0]+t[4]*r[1]+t[5]*r[2];o[2]=t[6]*r[0]+t[7]*r[1]+t[8]*r[2]}function _toFlat2(t,r,o){o[0]=1*r[0]/t[0];o[1]=1*r[1]/t[1];o[2]=1*r[2]/t[2]}function _toD2(t,r,o){o[0]=.95047*r[0]/t[0];o[1]=1*r[1]/t[1];o[2]=1.08883*r[2]/t[2]}function _sRGBTransferFunction2(t){return t<=.0031308?_classPrivateMethodGet(this,xn,_adjustToRange2).call(this,0,1,12.92*t):t>=.99554525?1:_classPrivateMethodGet(this,xn,_adjustToRange2).call(this,0,1,1.055*Math.pow(t,1/2.4)-.055)}function _adjustToRange2(t,r,o){return Math.max(t,Math.min(r,o))}function _decodeL2(t){return t<0?-_classPrivateMethodGet(this,Sn,_decodeL2).call(this,-t):t>8?Math.pow((t+16)/116,3):t*_classStaticPrivateFieldSpecGet(an,an,Bn)}function _compensateBlackPoint2(t,r,o){if(0!==t[0]||0!==t[1]||0!==t[2]){var c=_classPrivateMethodGet(this,Sn,_decodeL2).call(this,0),l=(1-c)/(1-_classPrivateMethodGet(this,Sn,_decodeL2).call(this,t[0])),u=1-l,h=(1-c)/(1-_classPrivateMethodGet(this,Sn,_decodeL2).call(this,t[1])),d=1-h,g=(1-c)/(1-_classPrivateMethodGet(this,Sn,_decodeL2).call(this,t[2])),y=1-g;o[0]=r[0]*l+u;o[1]=r[1]*h+d;o[2]=r[2]*g+y}else{o[0]=r[0];o[1]=r[1];o[2]=r[2]}}function _normalizeWhitePointToFlat2(t,r,o){if(1!==t[0]||1!==t[2]){var c=o;_classPrivateMethodGet(this,bn,_matrixProduct2).call(this,_classStaticPrivateFieldSpecGet(an,an,Tn),r,c);var l=_classStaticPrivateFieldSpecGet(an,an,Rn);_classPrivateMethodGet(this,_n,_toFlat2).call(this,t,c,l);_classPrivateMethodGet(this,bn,_matrixProduct2).call(this,_classStaticPrivateFieldSpecGet(an,an,Fn),l,o)}else{o[0]=r[0];o[1]=r[1];o[2]=r[2]}}function _normalizeWhitePointToD2(t,r,o){var c=o;_classPrivateMethodGet(this,bn,_matrixProduct2).call(this,_classStaticPrivateFieldSpecGet(an,an,Tn),r,c);var l=_classStaticPrivateFieldSpecGet(an,an,Rn);_classPrivateMethodGet(this,wn,_toD2).call(this,t,c,l);_classPrivateMethodGet(this,bn,_matrixProduct2).call(this,_classStaticPrivateFieldSpecGet(an,an,Fn),l,o)}function _toRgb6(t,r,o,c,l){var u=_classPrivateMethodGet(this,xn,_adjustToRange2).call(this,0,1,t[r]*l),h=_classPrivateMethodGet(this,xn,_adjustToRange2).call(this,0,1,t[r+1]*l),d=_classPrivateMethodGet(this,xn,_adjustToRange2).call(this,0,1,t[r+2]*l),g=1===u?1:Math.pow(u,this.GR),y=1===h?1:Math.pow(h,this.GG),m=1===d?1:Math.pow(d,this.GB),v=this.MXA*g+this.MXB*y+this.MXC*m,_=this.MYA*g+this.MYB*y+this.MYC*m,w=this.MZA*g+this.MZB*y+this.MZC*m,k=_classStaticPrivateFieldSpecGet(an,an,Mn);k[0]=v;k[1]=_;k[2]=w;var x=_classStaticPrivateFieldSpecGet(an,an,Ln);_classPrivateMethodGet(this,An,_normalizeWhitePointToFlat2).call(this,this.whitePoint,k,x);var S=_classStaticPrivateFieldSpecGet(an,an,Mn);_classPrivateMethodGet(this,Cn,_compensateBlackPoint2).call(this,this.blackPoint,x,S);var C=_classStaticPrivateFieldSpecGet(an,an,Ln);_classPrivateMethodGet(this,Pn,_normalizeWhitePointToD2).call(this,_classStaticPrivateFieldSpecGet(an,an,jn),S,C);var O=_classStaticPrivateFieldSpecGet(an,an,Mn);_classPrivateMethodGet(this,bn,_matrixProduct2).call(this,_classStaticPrivateFieldSpecGet(an,an,En),C,O);o[c]=255*_classPrivateMethodGet(this,kn,_sRGBTransferFunction2).call(this,O[0]);o[c+1]=255*_classPrivateMethodGet(this,kn,_sRGBTransferFunction2).call(this,O[1]);o[c+2]=255*_classPrivateMethodGet(this,kn,_sRGBTransferFunction2).call(this,O[2])}var Tn={writable:!0,value:new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])},Fn={writable:!0,value:new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])},En={writable:!0,value:new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])},jn={writable:!0,value:new Float32Array([1,1,1])},Rn={writable:!0,value:new Float32Array(3)},Mn={writable:!0,value:new Float32Array(3)},Ln={writable:!0,value:new Float32Array(3)},Bn={writable:!0,value:Math.pow(24/116,3)/8},Dn=new WeakSet,Nn=new WeakSet,Un=new WeakSet,Gn=function(t){colorspace_inherits(LabCS,t);var r=colorspace_createSuper(LabCS);function LabCS(t,o,c){var l;colorspace_classCallCheck(this,LabCS);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(l=r.call(this,"Lab",3)),Un);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(l),Nn);_classPrivateMethodInitSpec(colorspace_assertThisInitialized(l),Dn);if(!t)throw new Sr("WhitePoint missing - required for color space Lab");var u=colorspace_slicedToArray(t,3);l.XW=u[0];l.YW=u[1];l.ZW=u[2];var h=colorspace_slicedToArray(c||[-100,100,-100,100],4);l.amin=h[0];l.amax=h[1];l.bmin=h[2];l.bmax=h[3];var d=colorspace_slicedToArray(o||[0,0,0],3);l.XB=d[0];l.YB=d[1];l.ZB=d[2];if(l.XW<0||l.ZW<0||1!==l.YW)throw new Sr("Invalid WhitePoint components, no fallback available");if(l.XB<0||l.YB<0||l.ZB<0){info("Invalid BlackPoint, falling back to default");l.XB=l.YB=l.ZB=0}if(l.amin>l.amax||l.bmin>l.bmax){info("Invalid Range, falling back to defaults");l.amin=-100;l.amax=100;l.bmin=-100;l.bmax=100}return l}colorspace_createClass(LabCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){_classPrivateMethodGet(this,Un,_toRgb8).call(this,t,r,!1,o,c)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=(1<<u)-1,g=0;g<o;g++){_classPrivateMethodGet(this,Un,_toRgb8).call(this,t,r,d,c,l);r+=3;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return!0}},{key:"usesZeroToOneRange",get:function get(){return shadow(this,"usesZeroToOneRange",!1)}}]);return LabCS}(ln);function _fn_g2(t){return t>=6/29?Math.pow(t,3):108/841*(t-4/29)}function _decode2(t,r,o,c){return o+t*(c-o)/r}function _toRgb8(t,r,o,c,l){var u=t[r],h=t[r+1],d=t[r+2];if(!1!==o){u=_classPrivateMethodGet(this,Nn,_decode2).call(this,u,o,0,100);h=_classPrivateMethodGet(this,Nn,_decode2).call(this,h,o,this.amin,this.amax);d=_classPrivateMethodGet(this,Nn,_decode2).call(this,d,o,this.bmin,this.bmax)}h>this.amax?h=this.amax:h<this.amin&&(h=this.amin);d>this.bmax?d=this.bmax:d<this.bmin&&(d=this.bmin);var g,y,m,v=(u+16)/116,_=v+h/500,w=v-d/200,k=this.XW*_classPrivateMethodGet(this,Dn,_fn_g2).call(this,_),x=this.YW*_classPrivateMethodGet(this,Dn,_fn_g2).call(this,v),S=this.ZW*_classPrivateMethodGet(this,Dn,_fn_g2).call(this,w);if(this.ZW<1){g=3.1339*k+-1.617*x+-.4906*S;y=-.9785*k+1.916*x+.0333*S;m=.072*k+-.229*x+1.4057*S}else{g=3.2406*k+-1.5372*x+-.4986*S;y=-.9689*k+1.8758*x+.0415*S;m=.0557*k+-.204*x+1.057*S}c[l]=255*Math.sqrt(g);c[l+1]=255*Math.sqrt(y);c[l+2]=255*Math.sqrt(m)}__webpack_require__(4441),__webpack_require__(4165),__webpack_require__(2707),__webpack_require__(6394),__webpack_require__(8649);function binary_cmap_typeof(t){return binary_cmap_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},binary_cmap_typeof(t)}function binary_cmap_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */binary_cmap_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==binary_cmap_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(binary_cmap_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function binary_cmap_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function binary_cmap_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function binary_cmap_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,binary_cmap_toPropertyKey(c.key),c)}}function binary_cmap_createClass(t,r,o){r&&binary_cmap_defineProperties(t.prototype,r);o&&binary_cmap_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function binary_cmap_toPropertyKey(t){var r=function binary_cmap_toPrimitive(t,r){if("object"!=binary_cmap_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=binary_cmap_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==binary_cmap_typeof(r)?r:String(r)}function binary_cmap_toConsumableArray(t){return function binary_cmap_arrayWithoutHoles(t){if(Array.isArray(t))return binary_cmap_arrayLikeToArray(t)}(t)||function binary_cmap_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function binary_cmap_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return binary_cmap_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return binary_cmap_arrayLikeToArray(t,r)}(t)||function binary_cmap_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function binary_cmap_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function hexToInt(t,r){for(var o=0,c=0;c<=r;c++)o=o<<8|t[c];return o>>>0}function hexToStr(t,r){return 1===r?String.fromCharCode(t[0],t[1]):3===r?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode.apply(String,binary_cmap_toConsumableArray(t.subarray(0,r+1)))}function addHex(t,r,o){for(var c=0,l=o;l>=0;l--){c+=t[l]+r[l];t[l]=255&c;c>>=8}}function incHex(t,r){for(var o=1,c=r;c>=0&&o>0;c--){o+=t[c];t[c]=255&o;o>>=8}}var Hn=16,qn=function(){function BinaryCMapStream(t){binary_cmap_classCallCheck(this,BinaryCMapStream);this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(19)}binary_cmap_createClass(BinaryCMapStream,[{key:"readByte",value:function readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function readNumber(){var t,r=0;do{var o=this.readByte();if(o<0)throw new Sr("unexpected EOF in bcmap");t=!(128&o);r=r<<7|127&o}while(!t);return r}},{key:"readSigned",value:function readSigned(){var t=this.readNumber();return 1&t?~(t>>>1):t>>>1}},{key:"readHex",value:function readHex(t,r){t.set(this.buffer.subarray(this.pos,this.pos+r+1));this.pos+=r+1}},{key:"readHexNumber",value:function readHexNumber(t,r){var o,c=this.tmpBuf,l=0;do{var u=this.readByte();if(u<0)throw new Sr("unexpected EOF in bcmap");o=!(128&u);c[l++]=127&u}while(!o);for(var h=r,d=0,g=0;h>=0;){for(;g<8&&c.length>0;){d|=c[--l]<<g;g+=7}t[h]=255&d;h--;d>>=8;g-=8}}},{key:"readHexSigned",value:function readHexSigned(t,r){this.readHexNumber(t,r);for(var o=1&t[r]?255:0,c=0,l=0;l<=r;l++){c=(1&c)<<8|t[l];t[l]=c>>1^o}}},{key:"readString",value:function readString(){for(var t=this.readNumber(),r=new Array(t),o=0;o<t;o++)r[o]=this.readNumber();return String.fromCharCode.apply(String,r)}}]);return BinaryCMapStream}(),zn=function(){function BinaryCMapReader(){binary_cmap_classCallCheck(this,BinaryCMapReader)}binary_cmap_createClass(BinaryCMapReader,[{key:"process",value:(t=function binary_cmap_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){binary_cmap_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){binary_cmap_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(binary_cmap_regeneratorRuntime().mark((function _callee(t,r,o){var c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M;return binary_cmap_regeneratorRuntime().wrap((function _callee$(L){for(;;)switch(L.prev=L.next){case 0:c=new qn(t);l=c.readByte();r.vertical=!!(1&l);u=null;h=new Uint8Array(Hn);d=new Uint8Array(Hn);g=new Uint8Array(Hn);y=new Uint8Array(Hn);m=new Uint8Array(Hn);case 9:if(!((_=c.readByte())>=0)){L.next=68;break}if(7!=(w=_>>5)){L.next=20;break}L.t0=31&_;L.next=0===L.t0?15:1===L.t0?17:19;break;case 15:c.readString();return L.abrupt("break",19);case 17:u=c.readString();return L.abrupt("break",19);case 19:return L.abrupt("continue",9);case 20:k=!!(16&_);if(!(1+(x=15&_)>Hn)){L.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:S=1;C=c.readNumber();L.t1=w;L.next=0===L.t1?29:1===L.t1?35:2===L.t1?41:3===L.t1?46:4===L.t1?53:5===L.t1?58:65;break;case 29:c.readHex(h,x);c.readHexNumber(d,x);addHex(d,h,x);r.addCodespaceRange(x+1,hexToInt(h,x),hexToInt(d,x));for(O=1;O<C;O++){incHex(d,x);c.readHexNumber(h,x);addHex(h,d,x);c.readHexNumber(d,x);addHex(d,h,x);r.addCodespaceRange(x+1,hexToInt(h,x),hexToInt(d,x))}return L.abrupt("break",66);case 35:c.readHex(h,x);c.readHexNumber(d,x);addHex(d,h,x);c.readNumber();for(T=1;T<C;T++){incHex(d,x);c.readHexNumber(h,x);addHex(h,d,x);c.readHexNumber(d,x);addHex(d,h,x);c.readNumber()}return L.abrupt("break",66);case 41:c.readHex(g,x);v=c.readNumber();r.mapOne(hexToInt(g,x),v);for(E=1;E<C;E++){incHex(g,x);if(!k){c.readHexNumber(m,x);addHex(g,m,x)}v=c.readSigned()+(v+1);r.mapOne(hexToInt(g,x),v)}return L.abrupt("break",66);case 46:c.readHex(h,x);c.readHexNumber(d,x);addHex(d,h,x);v=c.readNumber();r.mapCidRange(hexToInt(h,x),hexToInt(d,x),v);for(j=1;j<C;j++){incHex(d,x);if(k)h.set(d);else{c.readHexNumber(h,x);addHex(h,d,x)}c.readHexNumber(d,x);addHex(d,h,x);v=c.readNumber();r.mapCidRange(hexToInt(h,x),hexToInt(d,x),v)}return L.abrupt("break",66);case 53:c.readHex(g,S);c.readHex(y,x);r.mapOne(hexToInt(g,S),hexToStr(y,x));for(R=1;R<C;R++){incHex(g,S);if(!k){c.readHexNumber(m,S);addHex(g,m,S)}incHex(y,x);c.readHexSigned(m,x);addHex(y,m,x);r.mapOne(hexToInt(g,S),hexToStr(y,x))}return L.abrupt("break",66);case 58:c.readHex(h,S);c.readHexNumber(d,S);addHex(d,h,S);c.readHex(y,x);r.mapBfRange(hexToInt(h,S),hexToInt(d,S),hexToStr(y,x));for(M=1;M<C;M++){incHex(d,S);if(k)h.set(d);else{c.readHexNumber(h,S);addHex(h,d,S)}c.readHexNumber(d,S);addHex(d,h,S);c.readHex(y,x);r.mapBfRange(hexToInt(h,S),hexToInt(d,S),hexToStr(y,x))}return L.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(w));case 66:L.next=9;break;case 68:if(!u){L.next=70;break}return L.abrupt("return",o(u));case 70:return L.abrupt("return",r);case 71:case"end":return L.stop()}}),_callee)}))),function process(r,o,c){return t.apply(this,arguments)})}]);var t;return BinaryCMapReader}();function decode_stream_typeof(t){return decode_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},decode_stream_typeof(t)}function decode_stream_toConsumableArray(t){return function decode_stream_arrayWithoutHoles(t){if(Array.isArray(t))return decode_stream_arrayLikeToArray(t)}(t)||function decode_stream_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||decode_stream_unsupportedIterableToArray(t)||function decode_stream_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function decode_stream_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=decode_stream_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function decode_stream_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return decode_stream_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?decode_stream_arrayLikeToArray(t,r):void 0}}function decode_stream_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function decode_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function decode_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,decode_stream_toPropertyKey(c.key),c)}}function decode_stream_createClass(t,r,o){r&&decode_stream_defineProperties(t.prototype,r);o&&decode_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function decode_stream_toPropertyKey(t){var r=function decode_stream_toPrimitive(t,r){if("object"!=decode_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=decode_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==decode_stream_typeof(r)?r:String(r)}function decode_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&decode_stream_setPrototypeOf(t,r)}function decode_stream_setPrototypeOf(t,r){decode_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return decode_stream_setPrototypeOf(t,r)}function decode_stream_createSuper(t){var r=function decode_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=decode_stream_getPrototypeOf(t);if(r){var l=decode_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function decode_stream_possibleConstructorReturn(t,r){if(r&&("object"===decode_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function decode_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function decode_stream_getPrototypeOf(t){decode_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return decode_stream_getPrototypeOf(t)}var Wn=new Uint8Array(0),Vn=function(t){decode_stream_inherits(DecodeStream,t);var r=decode_stream_createSuper(DecodeStream);function DecodeStream(t){var o;decode_stream_classCallCheck(this,DecodeStream);(o=r.call(this))._rawMinBufferLength=t||0;o.pos=0;o.bufferLength=0;o.eof=!1;o.buffer=Wn;o.minBufferLength=512;if(t)for(;o.minBufferLength<t;)o.minBufferLength*=2;return o}decode_stream_createClass(DecodeStream,[{key:"isEmpty",get:function get(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}},{key:"ensureBuffer",value:function ensureBuffer(t){var r=this.buffer;if(t<=r.byteLength)return r;for(var o=this.minBufferLength;o<t;)o*=2;var c=new Uint8Array(o);c.set(r);return this.buffer=c}},{key:"getByte",value:function getByte(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}},{key:"getBytes",value:function getBytes(t){var r,o=this.pos;if(t){this.ensureBuffer(o+t);r=o+t;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var c=this.bufferLength;r>c&&(r=c)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;return this.buffer.subarray(o,r)}},{key:"reset",value:function reset(){this.pos=0}},{key:"makeSubStream",value:function makeSubStream(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===r)for(;!this.eof;)this.readBlock();else for(var c=t+r;this.bufferLength<=c&&!this.eof;)this.readBlock();return new tn(this.buffer,t,r,o)}},{key:"getBaseStreams",value:function getBaseStreams(){return this.str?this.str.getBaseStreams():null}}]);return DecodeStream}(Xr),Xn=function(t){decode_stream_inherits(StreamsSequenceStream,t);var r=decode_stream_createSuper(StreamsSequenceStream);function StreamsSequenceStream(t){var o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;decode_stream_classCallCheck(this,StreamsSequenceStream);var l,u=0,h=decode_stream_createForOfIteratorHelper(t);try{for(h.s();!(l=h.n()).done;){var d=l.value;u+=d instanceof Vn?d._rawMinBufferLength:d.length}}catch(t){h.e(t)}finally{h.f()}(o=r.call(this,u)).streams=t;o._onError=c;return o}decode_stream_createClass(StreamsSequenceStream,[{key:"readBlock",value:function readBlock(){var t=this.streams;if(0!==t.length){var r,o=t.shift();try{r=o.getBytes()}catch(t){if(this._onError){var c;this._onError(t,null===(c=o.dict)||void 0===c?void 0:c.objId);return}throw t}var l=this.bufferLength,u=l+r.length;this.ensureBuffer(u).set(r,l);this.bufferLength=u}else this.eof=!0}},{key:"getBaseStreams",value:function getBaseStreams(){var t,r=[],o=decode_stream_createForOfIteratorHelper(this.streams);try{for(o.s();!(t=o.n()).done;){var c=t.value.getBaseStreams();c&&r.push.apply(r,decode_stream_toConsumableArray(c))}}catch(t){o.e(t)}finally{o.f()}return r.length>0?r:null}}]);return StreamsSequenceStream}(Vn);function ascii_85_stream_typeof(t){return ascii_85_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ascii_85_stream_typeof(t)}function ascii_85_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,ascii_85_stream_toPropertyKey(c.key),c)}}function ascii_85_stream_toPropertyKey(t){var r=function ascii_85_stream_toPrimitive(t,r){if("object"!=ascii_85_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=ascii_85_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ascii_85_stream_typeof(r)?r:String(r)}function ascii_85_stream_setPrototypeOf(t,r){ascii_85_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return ascii_85_stream_setPrototypeOf(t,r)}function ascii_85_stream_createSuper(t){var r=function ascii_85_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=ascii_85_stream_getPrototypeOf(t);if(r){var l=ascii_85_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function ascii_85_stream_possibleConstructorReturn(t,r){if(r&&("object"===ascii_85_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function ascii_85_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function ascii_85_stream_getPrototypeOf(t){ascii_85_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return ascii_85_stream_getPrototypeOf(t)}var Kn=function(t){!function ascii_85_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&ascii_85_stream_setPrototypeOf(t,r)}(Ascii85Stream,t);var r=ascii_85_stream_createSuper(Ascii85Stream);function Ascii85Stream(t,o){var c;!function ascii_85_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Ascii85Stream);o&&(o*=.8);(c=r.call(this,o)).str=t;c.dict=t.dict;c.input=new Uint8Array(5);return c}!function ascii_85_stream_createClass(t,r,o){r&&ascii_85_stream_defineProperties(t.prototype,r);o&&ascii_85_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Ascii85Stream,[{key:"readBlock",value:function readBlock(){for(var t=this.str,r=t.getByte();isWhiteSpace(r);)r=t.getByte();if(-1!==r&&126!==r){var o,c,l=this.bufferLength;if(122===r){o=this.ensureBuffer(l+4);for(c=0;c<4;++c)o[l+c]=0;this.bufferLength+=4}else{var u=this.input;u[0]=r;for(c=1;c<5;++c){r=t.getByte();for(;isWhiteSpace(r);)r=t.getByte();u[c]=r;if(-1===r||126===r)break}o=this.ensureBuffer(l+c-1);this.bufferLength+=c-1;if(c<5){for(;c<5;++c)u[c]=117;this.eof=!0}var h=0;for(c=0;c<5;++c)h=85*h+(u[c]-33);for(c=3;c>=0;--c){o[l+c]=255&h;h>>=8}}}else this.eof=!0}}]);return Ascii85Stream}(Vn);function ascii_hex_stream_typeof(t){return ascii_hex_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ascii_hex_stream_typeof(t)}function ascii_hex_stream_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function ascii_hex_stream_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return ascii_hex_stream_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ascii_hex_stream_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function ascii_hex_stream_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function ascii_hex_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,ascii_hex_stream_toPropertyKey(c.key),c)}}function ascii_hex_stream_toPropertyKey(t){var r=function ascii_hex_stream_toPrimitive(t,r){if("object"!=ascii_hex_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=ascii_hex_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ascii_hex_stream_typeof(r)?r:String(r)}function ascii_hex_stream_setPrototypeOf(t,r){ascii_hex_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return ascii_hex_stream_setPrototypeOf(t,r)}function ascii_hex_stream_createSuper(t){var r=function ascii_hex_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=ascii_hex_stream_getPrototypeOf(t);if(r){var l=ascii_hex_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function ascii_hex_stream_possibleConstructorReturn(t,r){if(r&&("object"===ascii_hex_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function ascii_hex_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function ascii_hex_stream_getPrototypeOf(t){ascii_hex_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return ascii_hex_stream_getPrototypeOf(t)}var Yn=function(t){!function ascii_hex_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&ascii_hex_stream_setPrototypeOf(t,r)}(AsciiHexStream,t);var r=ascii_hex_stream_createSuper(AsciiHexStream);function AsciiHexStream(t,o){var c;!function ascii_hex_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,AsciiHexStream);o&&(o*=.5);(c=r.call(this,o)).str=t;c.dict=t.dict;c.firstDigit=-1;return c}!function ascii_hex_stream_createClass(t,r,o){r&&ascii_hex_stream_defineProperties(t.prototype,r);o&&ascii_hex_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(AsciiHexStream,[{key:"readBlock",value:function readBlock(){var t=this.str.getBytes(8e3);if(t.length){var r,o=t.length+1>>1,c=this.ensureBuffer(this.bufferLength+o),l=this.bufferLength,u=this.firstDigit,h=ascii_hex_stream_createForOfIteratorHelper(t);try{for(h.s();!(r=h.n()).done;){var d=r.value,g=void 0;if(d>=48&&d<=57)g=15&d;else{if(!(d>=65&&d<=70||d>=97&&d<=102)){if(62===d){this.eof=!0;break}continue}g=9+(15&d)}if(u<0)u=g;else{c[l++]=u<<4|g;u=-1}}}catch(t){h.e(t)}finally{h.f()}if(u>=0&&this.eof){c[l++]=u<<4;u=-1}this.firstDigit=u;this.bufferLength=l}else this.eof=!0}}]);return AsciiHexStream}(Vn);function ccitt_typeof(t){return ccitt_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ccitt_typeof(t)}function ccitt_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,ccitt_toPropertyKey(c.key),c)}}function ccitt_toPropertyKey(t){var r=function ccitt_toPrimitive(t,r){if("object"!=ccitt_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=ccitt_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ccitt_typeof(r)?r:String(r)}var Jn=-1,$n=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],Zn=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],Qn=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],ea=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],ta=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],ra=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]],na=function(){function CCITTFaxDecoder(t){var r,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function ccitt_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,CCITTFaxDecoder);if(!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t;this.eof=!1;this.encoding=c.K||0;this.eoline=c.EndOfLine||!1;this.byteAlign=c.EncodedByteAlign||!1;this.columns=c.Columns||1728;this.rows=c.Rows||0;this.eoblock=null===(r=c.EndOfBlock)||void 0===r||r;this.black=c.BlackIs1||!1;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=!1;for(;0===(o=this._lookBits(12));)this._eatBits(1);1===o&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}!function ccitt_createClass(t,r,o){r&&ccitt_defineProperties(t.prototype,r);o&&ccitt_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(CCITTFaxDecoder,[{key:"readNextChar",value:function readNextChar(){if(this.eof)return-1;var t,r,o,c,l,u=this.refLine,h=this.codingLine,d=this.columns;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var g,y,m;if(this.nextLine2D){for(c=0;h[c]<d;++c)u[c]=h[c];u[c++]=d;u[c]=d;h[0]=0;this.codingPos=0;t=0;r=0;for(;h[this.codingPos]<d;)switch(g=this._getTwoDimCode()){case 0:this._addPixels(u[t+1],r);u[t+1]<d&&(t+=2);break;case 1:g=y=0;if(r){do{g+=m=this._getBlackCode()}while(m>=64);do{y+=m=this._getWhiteCode()}while(m>=64)}else{do{g+=m=this._getWhiteCode()}while(m>=64);do{y+=m=this._getBlackCode()}while(m>=64)}this._addPixels(h[this.codingPos]+g,r);h[this.codingPos]<d&&this._addPixels(h[this.codingPos]+y,1^r);for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2;break;case 7:this._addPixels(u[t]+3,r);r^=1;if(h[this.codingPos]<d){++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case 5:this._addPixels(u[t]+2,r);r^=1;if(h[this.codingPos]<d){++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case 3:this._addPixels(u[t]+1,r);r^=1;if(h[this.codingPos]<d){++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case 2:this._addPixels(u[t],r);r^=1;if(h[this.codingPos]<d){++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case 8:this._addPixelsNeg(u[t]-3,r);r^=1;if(h[this.codingPos]<d){t>0?--t:++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case 6:this._addPixelsNeg(u[t]-2,r);r^=1;if(h[this.codingPos]<d){t>0?--t:++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case 4:this._addPixelsNeg(u[t]-1,r);r^=1;if(h[this.codingPos]<d){t>0?--t:++t;for(;u[t]<=h[this.codingPos]&&u[t]<d;)t+=2}break;case Jn:this._addPixels(d,0);this.eof=!0;break;default:info("bad 2d code");this._addPixels(d,0);this.err=!0}}else{h[0]=0;this.codingPos=0;r=0;for(;h[this.codingPos]<d;){g=0;if(r)do{g+=m=this._getBlackCode()}while(m>=64);else do{g+=m=this._getWhiteCode()}while(m>=64);this._addPixels(h[this.codingPos]+g,r);r^=1}}var v=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){g=this._lookBits(12);if(this.eoline)for(;g!==Jn&&1!==g;){this._eatBits(1);g=this._lookBits(12)}else for(;0===g;){this._eatBits(1);g=this._lookBits(12)}if(1===g){this._eatBits(12);v=!0}else g===Jn&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&v&&this.byteAlign){if(1===(g=this._lookBits(12))){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0)for(c=0;c<4;++c){1!==(g=this._lookBits(12))&&info("bad rtc code: "+g);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((g=this._lookBits(13))===Jn){this.eof=!0;return-1}if(g>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&g)}}this.outputBits=h[0]>0?h[this.codingPos=0]:h[this.codingPos=1];this.row++}if(this.outputBits>=8){l=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&h[this.codingPos]<d){this.codingPos++;this.outputBits=h[this.codingPos]-h[this.codingPos-1]}}else{o=8;l=0;do{if("number"!=typeof this.outputBits)throw new Sr('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');if(this.outputBits>o){l<<=o;1&this.codingPos||(l|=255>>8-o);this.outputBits-=o;o=0}else{l<<=this.outputBits;1&this.codingPos||(l|=255>>8-this.outputBits);o-=this.outputBits;this.outputBits=0;if(h[this.codingPos]<d){this.codingPos++;this.outputBits=h[this.codingPos]-h[this.codingPos-1]}else if(o>0){l<<=o;o=0}}}while(o)}this.black&&(l^=255);return l}},{key:"_addPixels",value:function _addPixels(t,r){var o=this.codingLine,c=this.codingPos;if(t>o[c]){if(t>this.columns){info("row is wrong length");this.err=!0;t=this.columns}1&c^r&&++c;o[c]=t}this.codingPos=c}},{key:"_addPixelsNeg",value:function _addPixelsNeg(t,r){var o=this.codingLine,c=this.codingPos;if(t>o[c]){if(t>this.columns){info("row is wrong length");this.err=!0;t=this.columns}1&c^r&&++c;o[c]=t}else if(t<o[c]){if(t<0){info("invalid code");this.err=!0;t=0}for(;c>0&&t<o[c-1];)--c;o[c]=t}this.codingPos=c}},{key:"_findTableCode",value:function _findTableCode(t,r,o,c){for(var l=c||0,u=t;u<=r;++u){var h=this._lookBits(u);if(h===Jn)return[!0,1,!1];u<r&&(h<<=r-u);if(!l||h>=l){var d=o[h-l];if(d[0]===u){this._eatBits(u);return[!0,d[1],!0]}}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function _getTwoDimCode(){var t,r=0;if(this.eoblock){var o;r=this._lookBits(7);if((null===(o=t=$n[r])||void 0===o?void 0:o[0])>0){this._eatBits(t[0]);return t[1]}}else{var c=this._findTableCode(1,7,$n);if(c[0]&&c[2])return c[1]}info("Bad two dim code");return Jn}},{key:"_getWhiteCode",value:function _getWhiteCode(){var t,r=0;if(this.eoblock){if((r=this._lookBits(12))===Jn)return 1;if((t=r>>5==0?Zn[r]:Qn[r>>3])[0]>0){this._eatBits(t[0]);return t[1]}}else{var o=this._findTableCode(1,9,Qn);if(o[0])return o[1];if((o=this._findTableCode(11,12,Zn))[0])return o[1]}info("bad white code");this._eatBits(1);return 1}},{key:"_getBlackCode",value:function _getBlackCode(){var t,r;if(this.eoblock){if((t=this._lookBits(13))===Jn)return 1;if((r=t>>7==0?ea[t]:t>>9==0&&t>>7!=0?ta[(t>>1)-64]:ra[t>>7])[0]>0){this._eatBits(r[0]);return r[1]}}else{var o=this._findTableCode(2,6,ra);if(o[0])return o[1];if((o=this._findTableCode(7,12,ta,64))[0])return o[1];if((o=this._findTableCode(10,13,ea))[0])return o[1]}info("bad black code");this._eatBits(1);return 1}},{key:"_lookBits",value:function _lookBits(t){for(var r;this.inputBits<t;){if(-1===(r=this.source.next()))return 0===this.inputBits?Jn:this.inputBuf<<t-this.inputBits&65535>>16-t;this.inputBuf=this.inputBuf<<8|r;this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}},{key:"_eatBits",value:function _eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}}]);return CCITTFaxDecoder}();function ccitt_stream_typeof(t){return ccitt_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ccitt_stream_typeof(t)}function ccitt_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,ccitt_stream_toPropertyKey(c.key),c)}}function ccitt_stream_toPropertyKey(t){var r=function ccitt_stream_toPrimitive(t,r){if("object"!=ccitt_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=ccitt_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ccitt_stream_typeof(r)?r:String(r)}function ccitt_stream_setPrototypeOf(t,r){ccitt_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return ccitt_stream_setPrototypeOf(t,r)}function ccitt_stream_createSuper(t){var r=function ccitt_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=ccitt_stream_getPrototypeOf(t);if(r){var l=ccitt_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function ccitt_stream_possibleConstructorReturn(t,r){if(r&&("object"===ccitt_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function ccitt_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function ccitt_stream_getPrototypeOf(t){ccitt_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return ccitt_stream_getPrototypeOf(t)}var aa=function(t){!function ccitt_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&ccitt_stream_setPrototypeOf(t,r)}(CCITTFaxStream,t);var r=ccitt_stream_createSuper(CCITTFaxStream);function CCITTFaxStream(t,o,c){var l;!function ccitt_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,CCITTFaxStream);(l=r.call(this,o)).str=t;l.dict=t.dict;c instanceof qr||(c=qr.empty);var u={next:function next(){return t.getByte()}};l.ccittFaxDecoder=new na(u,{K:c.get("K"),EndOfLine:c.get("EndOfLine"),EncodedByteAlign:c.get("EncodedByteAlign"),Columns:c.get("Columns"),Rows:c.get("Rows"),EndOfBlock:c.get("EndOfBlock"),BlackIs1:c.get("BlackIs1")});return l}!function ccitt_stream_createClass(t,r,o){r&&ccitt_stream_defineProperties(t.prototype,r);o&&ccitt_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(CCITTFaxStream,[{key:"readBlock",value:function readBlock(){for(;!this.eof;){var t=this.ccittFaxDecoder.readNextChar();if(-1===t){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=t}}}]);return CCITTFaxStream}(Vn);__webpack_require__(8800);function flate_stream_typeof(t){return flate_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},flate_stream_typeof(t)}function flate_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,flate_stream_toPropertyKey(c.key),c)}}function flate_stream_toPropertyKey(t){var r=function flate_stream_toPrimitive(t,r){if("object"!=flate_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=flate_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==flate_stream_typeof(r)?r:String(r)}function flate_stream_setPrototypeOf(t,r){flate_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return flate_stream_setPrototypeOf(t,r)}function flate_stream_createSuper(t){var r=function flate_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=flate_stream_getPrototypeOf(t);if(r){var l=flate_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function flate_stream_possibleConstructorReturn(t,r){if(r&&("object"===flate_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return flate_stream_assertThisInitialized(t)}(this,o)}}function flate_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function flate_stream_getPrototypeOf(t){flate_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return flate_stream_getPrototypeOf(t)}function flate_stream_classPrivateMethodInitSpec(t,r){!function flate_stream_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function flate_stream_classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}var ia=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oa=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),sa=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),ca=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],la=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],ua=new WeakSet,fa=function(t){!function flate_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&flate_stream_setPrototypeOf(t,r)}(FlateStream,t);var r=flate_stream_createSuper(FlateStream);function FlateStream(t,o){var c;!function flate_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FlateStream);flate_stream_classPrivateMethodInitSpec(flate_stream_assertThisInitialized(c=r.call(this,o)),ua);c.str=t;c.dict=t.dict;var l=t.getByte(),u=t.getByte();if(-1===l||-1===u)throw new Sr("Invalid header in flate stream: ".concat(l,", ").concat(u));if(8!=(15&l))throw new Sr("Unknown compression method in flate stream: ".concat(l,", ").concat(u));if(((l<<8)+u)%31!=0)throw new Sr("Bad FCHECK in flate stream: ".concat(l,", ").concat(u));if(32&u)throw new Sr("FDICT bit set in flate stream: ".concat(l,", ").concat(u));c.codeSize=0;c.codeBuf=0;return c}!function flate_stream_createClass(t,r,o){r&&flate_stream_defineProperties(t.prototype,r);o&&flate_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(FlateStream,[{key:"getBits",value:function getBits(t){for(var r,o=this.str,c=this.codeSize,l=this.codeBuf;c<t;){if(-1===(r=o.getByte()))throw new Sr("Bad encoding in flate stream");l|=r<<c;c+=8}r=l&(1<<t)-1;this.codeBuf=l>>t;this.codeSize=c-=t;return r}},{key:"getCode",value:function getCode(t){for(var r,o=this.str,c=t[0],l=t[1],u=this.codeSize,h=this.codeBuf;u<l&&-1!==(r=o.getByte());){h|=r<<u;u+=8}var d=c[h&(1<<l)-1],g=d>>16,y=65535&d;if(g<1||u<g)throw new Sr("Bad encoding in flate stream");this.codeBuf=h>>g;this.codeSize=u-g;return y}},{key:"generateHuffmanTable",value:function generateHuffmanTable(t){var r,o=t.length,c=0;for(r=0;r<o;++r)t[r]>c&&(c=t[r]);for(var l=1<<c,u=new Int32Array(l),h=1,d=0,g=2;h<=c;++h,d<<=1,g<<=1)for(var y=0;y<o;++y)if(t[y]===h){var m=0,v=d;for(r=0;r<h;++r){m=m<<1|1&v;v>>=1}for(r=m;r<l;r+=g)u[r]=h<<16|y;++d}return[u,c]}},{key:"readBlock",value:function readBlock(){var t,r,o=this.str,c=this.getBits(3);1&c&&(this.eof=!0);if(0!==(c>>=1)){var l,u;if(1===c){l=ca;u=la}else{if(2!==c)throw new Sr("Unknown block type in flate stream");var h,d=this.getBits(5)+257,g=this.getBits(5)+1,y=this.getBits(4)+4,m=new Uint8Array(ia.length);for(h=0;h<y;++h)m[ia[h]]=this.getBits(3);var v=this.generateHuffmanTable(m);r=0;h=0;for(var _,w,k,x=d+g,S=new Uint8Array(x);h<x;){var C=this.getCode(v);if(16===C){_=2;w=3;k=r}else if(17===C){_=3;w=3;k=r=0}else{if(18!==C){S[h++]=r=C;continue}_=7;w=11;k=r=0}for(var O=this.getBits(_)+w;O-- >0;)S[h++]=k}l=this.generateHuffmanTable(S.subarray(0,d));u=this.generateHuffmanTable(S.subarray(d,x))}for(var T=(t=this.buffer)?t.length:0,E=this.bufferLength;;){var j=this.getCode(l);if(j<256){E+1>=T&&(T=(t=this.ensureBuffer(E+1)).length);t[E++]=j}else{if(256===j){this.bufferLength=E;return}var R=(j=oa[j-=257])>>16;R>0&&(R=this.getBits(R));r=(65535&j)+R;j=this.getCode(u);(R=(j=sa[j])>>16)>0&&(R=this.getBits(R));var M=(65535&j)+R;E+r>=T&&(T=(t=this.ensureBuffer(E+r)).length);for(var L=0;L<r;++L,++E)t[E]=t[E-M]}}}else{var D;if(-1===(D=o.getByte())){flate_stream_classPrivateMethodGet(this,ua,_endsStreamOnError2).call(this,"Bad block header in flate stream");return}var N=D;if(-1===(D=o.getByte())){flate_stream_classPrivateMethodGet(this,ua,_endsStreamOnError2).call(this,"Bad block header in flate stream");return}N|=D<<8;if(-1===(D=o.getByte())){flate_stream_classPrivateMethodGet(this,ua,_endsStreamOnError2).call(this,"Bad block header in flate stream");return}var U=D;if(-1===(D=o.getByte())){flate_stream_classPrivateMethodGet(this,ua,_endsStreamOnError2).call(this,"Bad block header in flate stream");return}if((U|=D<<8)!==(65535&~N)&&(0!==N||0!==U))throw new Sr("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;var G=this.bufferLength,H=G+N;t=this.ensureBuffer(H);this.bufferLength=H;if(0===N)-1===o.peekByte()&&(this.eof=!0);else{var q=o.getBytes(N);t.set(q,G);q.length<N&&(this.eof=!0)}}}}]);return FlateStream}(Vn);function _endsStreamOnError2(t){info(t);this.eof=!0}__webpack_require__(8826);function arithmetic_decoder_typeof(t){return arithmetic_decoder_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},arithmetic_decoder_typeof(t)}function arithmetic_decoder_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,arithmetic_decoder_toPropertyKey(c.key),c)}}function arithmetic_decoder_toPropertyKey(t){var r=function arithmetic_decoder_toPrimitive(t,r){if("object"!=arithmetic_decoder_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=arithmetic_decoder_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==arithmetic_decoder_typeof(r)?r:String(r)}var ha=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],pa=function(){function ArithmeticDecoder(t,r,o){!function arithmetic_decoder_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ArithmeticDecoder);this.data=t;this.bp=r;this.dataEnd=o;this.chigh=t[r];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}!function arithmetic_decoder_createClass(t,r,o){r&&arithmetic_decoder_defineProperties(t.prototype,r);o&&arithmetic_decoder_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(ArithmeticDecoder,[{key:"byteIn",value:function byteIn(){var t=this.data,r=this.bp;if(255===t[r])if(t[r+1]>143){this.clow+=65280;this.ct=8}else{r++;this.clow+=t[r]<<9;this.ct=7;this.bp=r}else{r++;this.clow+=r<this.dataEnd?t[r]<<8:65280;this.ct=8;this.bp=r}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535}}},{key:"readBit",value:function readBit(t,r){var o,c=t[r]>>1,l=1&t[r],u=ha[c],h=u.qe,d=this.a-h;if(this.chigh<h)if(d<h){d=h;o=l;c=u.nmps}else{d=h;o=1^l;1===u.switchFlag&&(l=o);c=u.nlps}else{this.chigh-=h;if(0!=(32768&d)){this.a=d;return l}if(d<h){o=1^l;1===u.switchFlag&&(l=o);c=u.nlps}else{o=l;c=u.nmps}}do{0===this.ct&&this.byteIn();d<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&d));this.a=d;t[r]=c<<1|l;return o}}]);return ArithmeticDecoder}();function jbig2_typeof(t){return jbig2_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jbig2_typeof(t)}function jbig2_toConsumableArray(t){return function jbig2_arrayWithoutHoles(t){if(Array.isArray(t))return jbig2_arrayLikeToArray(t)}(t)||function jbig2_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||jbig2_unsupportedIterableToArray(t)||function jbig2_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jbig2_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=jbig2_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function jbig2_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return jbig2_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?jbig2_arrayLikeToArray(t,r):void 0}}function jbig2_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function jbig2_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,jbig2_toPropertyKey(c.key),c)}}function jbig2_createClass(t,r,o){r&&jbig2_defineProperties(t.prototype,r);o&&jbig2_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function jbig2_toPropertyKey(t){var r=function jbig2_toPrimitive(t,r){if("object"!=jbig2_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=jbig2_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==jbig2_typeof(r)?r:String(r)}function jbig2_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function jbig2_setPrototypeOf(t,r){jbig2_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return jbig2_setPrototypeOf(t,r)}function jbig2_createSuper(t){var r=function jbig2_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=jbig2_getPrototypeOf(t);if(r){var l=jbig2_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function jbig2_possibleConstructorReturn(t,r){if(r&&("object"===jbig2_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function jbig2_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function jbig2_getPrototypeOf(t){jbig2_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return jbig2_getPrototypeOf(t)}var da=function(t){!function jbig2_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&jbig2_setPrototypeOf(t,r)}(Jbig2Error,t);var r=jbig2_createSuper(Jbig2Error);function Jbig2Error(t){jbig2_classCallCheck(this,Jbig2Error);return r.call(this,"JBIG2 error: ".concat(t),"Jbig2Error")}return jbig2_createClass(Jbig2Error)}(mr),ga=function(){function ContextCache(){jbig2_classCallCheck(this,ContextCache)}jbig2_createClass(ContextCache,[{key:"getContexts",value:function getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}}]);return ContextCache}(),ya=function(){function DecodingContext(t,r,o){jbig2_classCallCheck(this,DecodingContext);this.data=t;this.start=r;this.end=o}jbig2_createClass(DecodingContext,[{key:"decoder",get:function get(){return shadow(this,"decoder",new pa(this.data,this.start,this.end))}},{key:"contextCache",get:function get(){return shadow(this,"contextCache",new ga)}}]);return DecodingContext}(),ma=Math.pow(2,31)-1,va=-Math.pow(2,31);function decodeInteger(t,r,o){var c=t.getContexts(r),l=1;function readBits(t){for(var r=0,u=0;u<t;u++){var h=o.readBit(c,l);l=l<256?l<<1|h:511&(l<<1|h)|256;r=r<<1|h}return r>>>0}var u,h=readBits(1),d=readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(32)+4436:readBits(12)+340:readBits(8)+84:readBits(6)+20:readBits(4)+4:readBits(2);0===h?u=d:d>0&&(u=-d);return u>=va&&u<=ma?u:null}function decodeIAID(t,r,o){for(var c=t.getContexts("IAID"),l=1,u=0;u<o;u++){l=l<<1|r.readBit(c,l)}return o<31?l&(1<<o)-1:2147483647&l}var ba=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],_a=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],wa=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],ka=[39717,1941,229,405],xa=[32,8];function decodeBitmap(t,r,o,c,l,u,h,d){if(t){return decodeMMRBitmap(new Ta(d.data,d.start,d.end),r,o,!1)}if(0===c&&!u&&!l&&4===h.length&&3===h[0].x&&-1===h[0].y&&-3===h[1].x&&-1===h[1].y&&2===h[2].x&&-2===h[2].y&&-2===h[3].x&&-2===h[3].y)return function decodeBitmapTemplate0(t,r,o){var c,l,u,h,d,g,y,m=o.decoder,v=o.contextCache.getContexts("GB"),_=[];for(l=0;l<r;l++){d=_[l]=new Uint8Array(t);g=l<1?d:_[l-1];c=(y=l<2?d:_[l-2])[0]<<13|y[1]<<12|y[2]<<11|g[0]<<7|g[1]<<6|g[2]<<5|g[3]<<4;for(u=0;u<t;u++){d[u]=h=m.readBit(v,c);c=(31735&c)<<1|(u+3<t?y[u+3]<<11:0)|(u+4<t?g[u+4]<<4:0)|h}}return _}(r,o,d);var g=!!u,y=_a[c].concat(h);y.sort((function(t,r){return t.y-r.y||t.x-r.x}));var m,v,_=y.length,w=new Int8Array(_),k=new Int8Array(_),x=[],S=0,C=0,O=0,T=0;for(v=0;v<_;v++){w[v]=y[v].x;k[v]=y[v].y;C=Math.min(C,y[v].x);O=Math.max(O,y[v].x);T=Math.min(T,y[v].y);v<_-1&&y[v].y===y[v+1].y&&y[v].x===y[v+1].x-1?S|=1<<_-1-v:x.push(v)}var E=x.length,j=new Int8Array(E),R=new Int8Array(E),M=new Uint16Array(E);for(m=0;m<E;m++){v=x[m];j[m]=y[v].x;R[m]=y[v].y;M[m]=1<<_-1-v}for(var L,D,N,U,G,H=-C,q=-T,z=r-O,W=ka[c],V=new Uint8Array(r),X=[],K=d.decoder,Y=d.contextCache.getContexts("GB"),J=0,$=0,Z=0;Z<o;Z++){if(l){if(J^=K.readBit(Y,W)){X.push(V);continue}}V=new Uint8Array(V);X.push(V);for(L=0;L<r;L++)if(g&&u[Z][L])V[L]=0;else{if(L>=H&&L<z&&Z>=q){$=$<<1&S;for(v=0;v<E;v++){D=Z+R[v];N=L+j[v];(U=X[D][N])&&($|=U=M[v])}}else{$=0;G=_-1;for(v=0;v<_;v++,G--)(N=L+w[v])>=0&&N<r&&(D=Z+k[v])>=0&&(U=X[D][N])&&($|=U<<G)}var Q=K.readBit(Y,$);V[L]=Q}}return X}function decodeRefinement(t,r,o,c,l,u,h,d,g){var y=wa[o].coding;0===o&&(y=y.concat([d[0]]));var m,v=y.length,_=new Int32Array(v),w=new Int32Array(v);for(m=0;m<v;m++){_[m]=y[m].x;w[m]=y[m].y}var k=wa[o].reference;0===o&&(k=k.concat([d[1]]));var x=k.length,S=new Int32Array(x),C=new Int32Array(x);for(m=0;m<x;m++){S[m]=k[m].x;C[m]=k[m].y}for(var O=c[0].length,T=c.length,E=xa[o],j=[],R=g.decoder,M=g.contextCache.getContexts("GR"),L=0,D=0;D<r;D++){if(h){if(L^=R.readBit(M,E))throw new da("prediction is not supported")}var N=new Uint8Array(t);j.push(N);for(var U=0;U<t;U++){var G=void 0,H=void 0,q=0;for(m=0;m<v;m++){G=D+w[m];H=U+_[m];G<0||H<0||H>=t?q<<=1:q=q<<1|j[G][H]}for(m=0;m<x;m++){G=D+C[m]-u;H=U+S[m]-l;G<0||G>=T||H<0||H>=O?q<<=1:q=q<<1|c[G][H]}var z=R.readBit(M,q);N[U]=z}}return j}function decodeTextRegion(t,r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O){if(t&&r)throw new da("refinement with Huffman is not supported");var T,E,j=[];for(T=0;T<c;T++){E=new Uint8Array(o);if(l)for(var R=0;R<o;R++)E[R]=l;j.push(E)}var M=S.decoder,L=S.contextCache,D=t?-w.tableDeltaT.decode(O):-decodeInteger(L,"IADT",M),N=0;T=0;for(;T<u;){D+=t?w.tableDeltaT.decode(O):decodeInteger(L,"IADT",M);for(var U=N+=t?w.tableFirstS.decode(O):decodeInteger(L,"IAFS",M);;){var G=0;h>1&&(G=t?O.readBits(C):decodeInteger(L,"IAIT",M));var H=h*D+G,q=t?w.symbolIDTable.decode(O):decodeIAID(L,M,g),z=r&&(t?O.readBit():decodeInteger(L,"IARI",M)),W=d[q],V=W[0].length,X=W.length;if(z){var K=decodeInteger(L,"IARDW",M),Y=decodeInteger(L,"IARDH",M);W=decodeRefinement(V+=K,X+=Y,k,W,(K>>1)+decodeInteger(L,"IARDX",M),(Y>>1)+decodeInteger(L,"IARDY",M),!1,x,S)}var J=H-(1&v?0:X-1),$=U-(2&v?V-1:0),Z=void 0,Q=void 0,ee=void 0;if(y){for(Z=0;Z<X;Z++)if(E=j[$+Z]){ee=W[Z];var te=Math.min(o-J,V);switch(_){case 0:for(Q=0;Q<te;Q++)E[J+Q]|=ee[Q];break;case 2:for(Q=0;Q<te;Q++)E[J+Q]^=ee[Q];break;default:throw new da("operator ".concat(_," is not supported"))}}U+=X-1}else{for(Q=0;Q<X;Q++)if(E=j[J+Q]){ee=W[Q];switch(_){case 0:for(Z=0;Z<V;Z++)E[$+Z]|=ee[Z];break;case 2:for(Z=0;Z<V;Z++)E[$+Z]^=ee[Z];break;default:throw new da("operator ".concat(_," is not supported"))}}U+=V-1}T++;var re=t?w.tableDeltaS.decode(O):decodeInteger(L,"IADS",M);if(null===re)break;U+=re+m}}return j}function readSegmentHeader(t,r){var o={};o.number=readUint32(t,r);var c=t[r+4],l=63&c;if(!ba[l])throw new da("invalid segment type: "+l);o.type=l;o.typeName=ba[l];o.deferredNonRetain=!!(128&c);var u=!!(64&c),h=t[r+5],d=h>>5&7,g=[31&h],y=r+6;if(7===h){d=536870911&readUint32(t,y-1);y+=3;var m=d+7>>3;g[0]=t[y++];for(;--m>0;)g.push(t[y++])}else if(5===h||6===h)throw new da("invalid referred-to flags");o.retainBits=g;var v=4;o.number<=256?v=1:o.number<=65536&&(v=2);var _,w,k=[];for(_=0;_<d;_++){var x=void 0;x=1===v?t[y]:2===v?readUint16(t,y):readUint32(t,y);k.push(x);y+=v}o.referredTo=k;if(u){o.pageAssociation=readUint32(t,y);y+=4}else o.pageAssociation=t[y++];o.length=readUint32(t,y);y+=4;if(4294967295===o.length){if(38!==l)throw new da("invalid unknown segment length");var S=readRegionSegmentInformation(t,y),C=!!(1&t[y+Sa]),O=new Uint8Array(6);if(!C){O[0]=255;O[1]=172}O[2]=S.height>>>24&255;O[3]=S.height>>16&255;O[4]=S.height>>8&255;O[5]=255&S.height;for(_=y,w=t.length;_<w;_++){for(var T=0;T<6&&O[T]===t[_+T];)T++;if(6===T){o.length=_+6;break}}if(4294967295===o.length)throw new da("segment end was not found")}o.headerEnd=y;return o}function readSegments(t,r,o,c){for(var l=[],u=o;u<c;){var h=readSegmentHeader(r,u);u=h.headerEnd;var d={header:h,data:r};if(!t.randomAccess){d.start=u;u+=h.length;d.end=u}l.push(d);if(51===h.type)break}if(t.randomAccess)for(var g=0,y=l.length;g<y;g++){l[g].start=u;u+=l[g].header.length;l[g].end=u}return l}function readRegionSegmentInformation(t,r){return{width:readUint32(t,r),height:readUint32(t,r+4),x:readUint32(t,r+8),y:readUint32(t,r+12),combinationOperator:7&t[r+16]}}var Sa=17;function processSegment(t,r){var o,c,l,u,h=t.header,d=t.data,g=t.end,y=t.start;switch(h.type){case 0:var m={},v=readUint16(d,y);m.huffman=!!(1&v);m.refinement=!!(2&v);m.huffmanDHSelector=v>>2&3;m.huffmanDWSelector=v>>4&3;m.bitmapSizeSelector=v>>6&1;m.aggregationInstancesSelector=v>>7&1;m.bitmapCodingContextUsed=!!(256&v);m.bitmapCodingContextRetained=!!(512&v);m.template=v>>10&3;m.refinementTemplate=v>>12&1;y+=2;if(!m.huffman){u=0===m.template?4:1;c=[];for(l=0;l<u;l++){c.push({x:readInt8(d,y),y:readInt8(d,y+1)});y+=2}m.at=c}if(m.refinement&&!m.refinementTemplate){c=[];for(l=0;l<2;l++){c.push({x:readInt8(d,y),y:readInt8(d,y+1)});y+=2}m.refinementAt=c}m.numberOfExportedSymbols=readUint32(d,y);y+=4;m.numberOfNewSymbols=readUint32(d,y);y+=4;o=[m,h.number,h.referredTo,d,y,g];break;case 6:case 7:var _={};_.info=readRegionSegmentInformation(d,y);var w=readUint16(d,y+=Sa);y+=2;_.huffman=!!(1&w);_.refinement=!!(2&w);_.logStripSize=w>>2&3;_.stripSize=1<<_.logStripSize;_.referenceCorner=w>>4&3;_.transposed=!!(64&w);_.combinationOperator=w>>7&3;_.defaultPixelValue=w>>9&1;_.dsOffset=w<<17>>27;_.refinementTemplate=w>>15&1;if(_.huffman){var k=readUint16(d,y);y+=2;_.huffmanFS=3&k;_.huffmanDS=k>>2&3;_.huffmanDT=k>>4&3;_.huffmanRefinementDW=k>>6&3;_.huffmanRefinementDH=k>>8&3;_.huffmanRefinementDX=k>>10&3;_.huffmanRefinementDY=k>>12&3;_.huffmanRefinementSizeSelector=!!(16384&k)}if(_.refinement&&!_.refinementTemplate){c=[];for(l=0;l<2;l++){c.push({x:readInt8(d,y),y:readInt8(d,y+1)});y+=2}_.refinementAt=c}_.numberOfSymbolInstances=readUint32(d,y);y+=4;o=[_,h.referredTo,d,y,g];break;case 16:var x={},S=d[y++];x.mmr=!!(1&S);x.template=S>>1&3;x.patternWidth=d[y++];x.patternHeight=d[y++];x.maxPatternIndex=readUint32(d,y);y+=4;o=[x,h.number,d,y,g];break;case 22:case 23:var C={};C.info=readRegionSegmentInformation(d,y);y+=Sa;var O=d[y++];C.mmr=!!(1&O);C.template=O>>1&3;C.enableSkip=!!(8&O);C.combinationOperator=O>>4&7;C.defaultPixelValue=O>>7&1;C.gridWidth=readUint32(d,y);y+=4;C.gridHeight=readUint32(d,y);y+=4;C.gridOffsetX=4294967295&readUint32(d,y);y+=4;C.gridOffsetY=4294967295&readUint32(d,y);y+=4;C.gridVectorX=readUint16(d,y);y+=2;C.gridVectorY=readUint16(d,y);y+=2;o=[C,h.referredTo,d,y,g];break;case 38:case 39:var T={};T.info=readRegionSegmentInformation(d,y);y+=Sa;var E=d[y++];T.mmr=!!(1&E);T.template=E>>1&3;T.prediction=!!(8&E);if(!T.mmr){u=0===T.template?4:1;c=[];for(l=0;l<u;l++){c.push({x:readInt8(d,y),y:readInt8(d,y+1)});y+=2}T.at=c}o=[T,d,y,g];break;case 48:var j={width:readUint32(d,y),height:readUint32(d,y+4),resolutionX:readUint32(d,y+8),resolutionY:readUint32(d,y+12)};4294967295===j.height&&delete j.height;var R=d[y+16];readUint16(d,y+17);j.lossless=!!(1&R);j.refinement=!!(2&R);j.defaultPixelValue=R>>2&1;j.combinationOperator=R>>3&3;j.requiresBuffer=!!(32&R);j.combinationOperatorOverride=!!(64&R);o=[j];break;case 49:case 50:case 51:case 62:break;case 53:o=[h.number,d,y,g];break;default:throw new da("segment type ".concat(h.typeName,"(").concat(h.type,") is not implemented"))}var M="on"+h.typeName;M in r&&r[M].apply(r,o)}function processSegments(t,r){for(var o=0,c=t.length;o<c;o++)processSegment(t[o],r)}var Ca=function(){function SimpleSegmentVisitor(){jbig2_classCallCheck(this,SimpleSegmentVisitor)}jbig2_createClass(SimpleSegmentVisitor,[{key:"onPageInformation",value:function onPageInformation(t){this.currentPageInfo=t;var r=t.width+7>>3,o=new Uint8ClampedArray(r*t.height);t.defaultPixelValue&&o.fill(255);this.buffer=o}},{key:"drawBitmap",value:function drawBitmap(t,r){var o,c,l,u,h=this.currentPageInfo,d=t.width,g=t.height,y=h.width+7>>3,m=h.combinationOperatorOverride?t.combinationOperator:h.combinationOperator,v=this.buffer,_=128>>(7&t.x),w=t.y*y+(t.x>>3);switch(m){case 0:for(o=0;o<g;o++){l=_;u=w;for(c=0;c<d;c++){r[o][c]&&(v[u]|=l);if(!(l>>=1)){l=128;u++}}w+=y}break;case 2:for(o=0;o<g;o++){l=_;u=w;for(c=0;c<d;c++){r[o][c]&&(v[u]^=l);if(!(l>>=1)){l=128;u++}}w+=y}break;default:throw new da("operator ".concat(m," is not supported"))}}},{key:"onImmediateGenericRegion",value:function onImmediateGenericRegion(t,r,o,c){var l=t.info,u=new ya(r,o,c),h=decodeBitmap(t.mmr,l.width,l.height,t.template,t.prediction,null,t.at,u);this.drawBitmap(l,h)}},{key:"onImmediateLosslessGenericRegion",value:function onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function onSymbolDictionary(t,r,o,c,l,u){var h,d;if(t.huffman){h=function getSymbolDictionaryHuffmanTables(t,r,o){var c,l,u,h,d=0;switch(t.huffmanDHSelector){case 0:case 1:c=getStandardTable(t.huffmanDHSelector+4);break;case 3:c=getCustomHuffmanTable(d,r,o);d++;break;default:throw new da("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:l=getStandardTable(t.huffmanDWSelector+2);break;case 3:l=getCustomHuffmanTable(d,r,o);d++;break;default:throw new da("invalid Huffman DW selector")}if(t.bitmapSizeSelector){u=getCustomHuffmanTable(d,r,o);d++}else u=getStandardTable(1);h=t.aggregationInstancesSelector?getCustomHuffmanTable(d,r,o):getStandardTable(1);return{tableDeltaHeight:c,tableDeltaWidth:l,tableBitmapSize:u,tableAggregateInstances:h}}(t,o,this.customTables);d=new Ta(c,l,u)}var g=this.symbols;g||(this.symbols=g={});var y,m=[],v=jbig2_createForOfIteratorHelper(o);try{for(v.s();!(y=v.n()).done;){var _=g[y.value];_&&m.push.apply(m,jbig2_toConsumableArray(_))}}catch(t){v.e(t)}finally{v.f()}var w=new ya(c,l,u);g[r]=function decodeSymbolDictionary(t,r,o,c,l,u,h,d,g,y,m,v){if(t&&r)throw new da("symbol refinement with Huffman is not supported");var _,w,k=[],x=0,S=log2(o.length+c),C=m.decoder,O=m.contextCache;if(t){_=getStandardTable(1);w=[];S=Math.max(S,1)}for(;k.length<c;){x+=t?u.tableDeltaHeight.decode(v):decodeInteger(O,"IADH",C);for(var T=0,E=0,j=t?w.length:0;;){var R=t?u.tableDeltaWidth.decode(v):decodeInteger(O,"IADW",C);if(null===R)break;E+=T+=R;var M=void 0;if(r){var L=decodeInteger(O,"IAAI",C);if(L>1)M=decodeTextRegion(t,r,T,x,0,L,1,o.concat(k),S,0,0,1,0,u,g,y,m,0,v);else{var D=decodeIAID(O,C,S),N=decodeInteger(O,"IARDX",C),U=decodeInteger(O,"IARDY",C);M=decodeRefinement(T,x,g,D<o.length?o[D]:k[D-o.length],N,U,!1,y,m)}k.push(M)}else if(t)w.push(T);else{M=decodeBitmap(!1,T,x,h,!1,null,d,m);k.push(M)}}if(t&&!r){var G=u.tableBitmapSize.decode(v);v.byteAlign();var H=void 0;if(0===G)H=readUncompressedBitmap(v,E,x);else{var q=v.end,z=v.position+G;v.end=z;H=decodeMMRBitmap(v,E,x,!1);v.end=q;v.position=z}var W=w.length;if(j===W-1)k.push(H);else{var V=void 0,X=void 0,K=0,Y=void 0,J=void 0;for(V=j;V<W;V++){Y=K+w[V];J=[];for(X=0;X<x;X++)J.push(H[X].subarray(K,Y));k.push(J);K=Y}}}}for(var $,Z,Q=[],ee=[],te=!1,re=o.length+c;ee.length<re;){for(var ne=t?_.decode(v):decodeInteger(O,"IAEX",C);ne--;)ee.push(te);te=!te}for($=0,Z=o.length;$<Z;$++)ee[$]&&Q.push(o[$]);for(var ae=0;ae<c;$++,ae++)ee[$]&&Q.push(k[ae]);return Q}(t.huffman,t.refinement,m,t.numberOfNewSymbols,t.numberOfExportedSymbols,h,t.template,t.at,t.refinementTemplate,t.refinementAt,w,d)}},{key:"onImmediateTextRegion",value:function onImmediateTextRegion(t,r,o,c,l){var u,h,d,g=t.info,y=this.symbols,m=[],v=jbig2_createForOfIteratorHelper(r);try{for(v.s();!(d=v.n()).done;){var _=y[d.value];_&&m.push.apply(m,jbig2_toConsumableArray(_))}}catch(t){v.e(t)}finally{v.f()}var w=log2(m.length);if(t.huffman){h=new Ta(o,c,l);u=function getTextRegionHuffmanTables(t,r,o,c,l){for(var u=[],h=0;h<=34;h++){var d=l.readBits(4);u.push(new Aa([h,d,0,0]))}var g=new Oa(u,!1);u.length=0;for(var y=0;y<c;){var m=g.decode(l);if(m>=32){var v=void 0,_=void 0,w=void 0;switch(m){case 32:if(0===y)throw new da("no previous value in symbol ID table");_=l.readBits(2)+3;v=u[y-1].prefixLength;break;case 33:_=l.readBits(3)+3;v=0;break;case 34:_=l.readBits(7)+11;v=0;break;default:throw new da("invalid code length in symbol ID table")}for(w=0;w<_;w++){u.push(new Aa([y,v,0,0]));y++}}else{u.push(new Aa([y,m,0,0]));y++}}l.byteAlign();var k,x,S,C=new Oa(u,!1),O=0;switch(t.huffmanFS){case 0:case 1:k=getStandardTable(t.huffmanFS+6);break;case 3:k=getCustomHuffmanTable(O,r,o);O++;break;default:throw new da("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:x=getStandardTable(t.huffmanDS+8);break;case 3:x=getCustomHuffmanTable(O,r,o);O++;break;default:throw new da("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:S=getStandardTable(t.huffmanDT+11);break;case 3:S=getCustomHuffmanTable(O,r,o);O++;break;default:throw new da("invalid Huffman DT selector")}if(t.refinement)throw new da("refinement with Huffman is not supported");return{symbolIDTable:C,tableFirstS:k,tableDeltaS:x,tableDeltaT:S}}(t,r,this.customTables,m.length,h)}var k=new ya(o,c,l),x=decodeTextRegion(t.huffman,t.refinement,g.width,g.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,m,w,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,u,t.refinementTemplate,t.refinementAt,k,t.logStripSize,h);this.drawBitmap(g,x)}},{key:"onImmediateLosslessTextRegion",value:function onImmediateLosslessTextRegion(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function onPatternDictionary(t,r,o,c,l){var u=this.patterns;u||(this.patterns=u={});var h=new ya(o,c,l);u[r]=function decodePatternDictionary(t,r,o,c,l,u){var h=[];if(!t){h.push({x:-r,y:0});0===l&&h.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}for(var d=decodeBitmap(t,(c+1)*r,o,l,!1,null,h,u),g=[],y=0;y<=c;y++){for(var m=[],v=r*y,_=v+r,w=0;w<o;w++)m.push(d[w].subarray(v,_));g.push(m)}return g}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,h)}},{key:"onImmediateHalftoneRegion",value:function onImmediateHalftoneRegion(t,r,o,c,l){var u=this.patterns[r[0]],h=t.info,d=new ya(o,c,l),g=function decodeHalftoneRegion(t,r,o,c,l,u,h,d,g,y,m,v,_,w,k){if(h)throw new da("skip is not supported");if(0!==d)throw new da('operator "'.concat(d,'" is not supported in halftone region'));var x,S,C,O=[];for(x=0;x<l;x++){C=new Uint8Array(c);if(u)for(S=0;S<c;S++)C[S]=u;O.push(C)}var T=r.length,E=r[0],j=E[0].length,R=E.length,M=log2(T),L=[];if(!t){L.push({x:o<=1?3:2,y:-1});0===o&&L.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}var D,N,U,G,H,q,z,W,V,X,K,Y=[];t&&(D=new Ta(k.data,k.start,k.end));for(x=M-1;x>=0;x--){N=t?decodeMMRBitmap(D,g,y,!0):decodeBitmap(!1,g,y,o,!1,null,L,k);Y[x]=N}for(U=0;U<y;U++)for(G=0;G<g;G++){H=0;q=0;for(S=M-1;S>=0;S--)q|=(H^=Y[S][U][G])<<S;z=r[q];V=v+U*_-G*w>>8;if((W=m+U*w+G*_>>8)>=0&&W+j<=c&&V>=0&&V+R<=l)for(x=0;x<R;x++){K=O[V+x];X=z[x];for(S=0;S<j;S++)K[W+S]|=X[S]}else{var J=void 0,$=void 0;for(x=0;x<R;x++)if(!(($=V+x)<0||$>=l)){K=O[$];X=z[x];for(S=0;S<j;S++)(J=W+S)>=0&&J<c&&(K[J]|=X[S])}}}return O}(t.mmr,u,t.template,h.width,h.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,d);this.drawBitmap(h,g)}},{key:"onImmediateLosslessHalftoneRegion",value:function onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function onTables(t,r,o,c){var l=this.customTables;l||(this.customTables=l={});l[t]=function decodeTablesSegment(t,r,o){var c,l,u=t[r],h=4294967295&readUint32(t,r+1),d=4294967295&readUint32(t,r+5),g=new Ta(t,r+9,o),y=1+(u>>1&7),m=1+(u>>4&7),v=[],_=h;do{c=g.readBits(y);l=g.readBits(m);v.push(new Aa([_,c,l,0]));_+=1<<l}while(_<d);c=g.readBits(y);v.push(new Aa([h-1,c,32,0,"lower"]));c=g.readBits(y);v.push(new Aa([d,c,32,0]));if(1&u){c=g.readBits(y);v.push(new Aa([c,0]))}return new Oa(v,!1)}(r,o,c)}}]);return SimpleSegmentVisitor}(),Aa=jbig2_createClass((function HuffmanLine(t){jbig2_classCallCheck(this,HuffmanLine);if(2===t.length){this.isOOB=!0;this.rangeLow=0;this.prefixLength=t[0];this.rangeLength=0;this.prefixCode=t[1];this.isLowerRange=!1}else{this.isOOB=!1;this.rangeLow=t[0];this.prefixLength=t[1];this.rangeLength=t[2];this.prefixCode=t[3];this.isLowerRange="lower"===t[4]}})),Pa=function(){function HuffmanTreeNode(t){jbig2_classCallCheck(this,HuffmanTreeNode);this.children=[];if(t){this.isLeaf=!0;this.rangeLength=t.rangeLength;this.rangeLow=t.rangeLow;this.isLowerRange=t.isLowerRange;this.isOOB=t.isOOB}else this.isLeaf=!1}jbig2_createClass(HuffmanTreeNode,[{key:"buildTree",value:function buildTree(t,r){var o=t.prefixCode>>r&1;if(r<=0)this.children[o]=new HuffmanTreeNode(t);else{var c=this.children[o];c||(this.children[o]=c=new HuffmanTreeNode(null));c.buildTree(t,r-1)}}},{key:"decodeNode",value:function decodeNode(t){if(this.isLeaf){if(this.isOOB)return null;var r=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-r:r)}var o=this.children[t.readBit()];if(!o)throw new da("invalid Huffman data");return o.decodeNode(t)}}]);return HuffmanTreeNode}(),Oa=function(){function HuffmanTable(t,r){jbig2_classCallCheck(this,HuffmanTable);r||this.assignPrefixCodes(t);this.rootNode=new Pa(null);for(var o=0,c=t.length;o<c;o++){var l=t[o];l.prefixLength>0&&this.rootNode.buildTree(l,l.prefixLength-1)}}jbig2_createClass(HuffmanTable,[{key:"decode",value:function decode(t){return this.rootNode.decodeNode(t)}},{key:"assignPrefixCodes",value:function assignPrefixCodes(t){for(var r=t.length,o=0,c=0;c<r;c++)o=Math.max(o,t[c].prefixLength);for(var l=new Uint32Array(o+1),u=0;u<r;u++)l[t[u].prefixLength]++;var h,d,g,y=1,m=0;l[0]=0;for(;y<=o;){h=m=m+l[y-1]<<1;d=0;for(;d<r;){if((g=t[d]).prefixLength===y){g.prefixCode=h;h++}d++}y++}}}]);return HuffmanTable}();var Ia={};function getStandardTable(t){var r,o=Ia[t];if(o)return o;switch(t){case 1:r=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:r=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:r=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:r=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:r=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:r=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:r=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:r=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:r=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:r=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:r=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:r=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:r=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:r=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:r=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new da("standard table B.".concat(t," does not exist"))}for(var c=0,l=r.length;c<l;c++)r[c]=new Aa(r[c]);o=new Oa(r,!0);Ia[t]=o;return o}var Ta=function(){function Reader(t,r,o){jbig2_classCallCheck(this,Reader);this.data=t;this.start=r;this.end=o;this.position=r;this.shift=-1;this.currentByte=0}jbig2_createClass(Reader,[{key:"readBit",value:function readBit(){if(this.shift<0){if(this.position>=this.end)throw new da("end of data while reading bit");this.currentByte=this.data[this.position++];this.shift=7}var t=this.currentByte>>this.shift&1;this.shift--;return t}},{key:"readBits",value:function readBits(t){var r,o=0;for(r=t-1;r>=0;r--)o|=this.readBit()<<r;return o}},{key:"byteAlign",value:function byteAlign(){this.shift=-1}},{key:"next",value:function next(){return this.position>=this.end?-1:this.data[this.position++]}}]);return Reader}();function getCustomHuffmanTable(t,r,o){for(var c=0,l=0,u=r.length;l<u;l++){var h=o[r[l]];if(h){if(t===c)return h;c++}}throw new da("can't find custom Huffman table")}function readUncompressedBitmap(t,r,o){for(var c=[],l=0;l<o;l++){var u=new Uint8Array(r);c.push(u);for(var h=0;h<r;h++)u[h]=t.readBit();t.byteAlign()}return c}function decodeMMRBitmap(t,r,o,c){for(var l,u=new na(t,{K:-1,Columns:r,Rows:o,BlackIs1:!0,EndOfBlock:c}),h=[],d=!1,g=0;g<o;g++){var y=new Uint8Array(r);h.push(y);for(var m=-1,v=0;v<r;v++){if(m<0){if(-1===(l=u.readNextChar())){l=0;d=!0}m=7}y[v]=l>>m&1;m--}}if(c&&!d)for(var _=0;_<5&&-1!==u.readNextChar();_++);return h}var Fa=function(){function Jbig2Image(){jbig2_classCallCheck(this,Jbig2Image)}jbig2_createClass(Jbig2Image,[{key:"parseChunks",value:function parseChunks(t){return function parseJbig2Chunks(t){for(var r=new Ca,o=0,c=t.length;o<c;o++){var l=t[o];processSegments(readSegments({},l.data,l.start,l.end),r)}return r.buffer}(t)}},{key:"parse",value:function parse(t){throw new Error("Not implemented: Jbig2Image.parse")}}]);return Jbig2Image}();function jbig2_stream_typeof(t){return jbig2_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jbig2_stream_typeof(t)}function jbig2_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,jbig2_stream_toPropertyKey(c.key),c)}}function jbig2_stream_toPropertyKey(t){var r=function jbig2_stream_toPrimitive(t,r){if("object"!=jbig2_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=jbig2_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==jbig2_stream_typeof(r)?r:String(r)}function jbig2_stream_setPrototypeOf(t,r){jbig2_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return jbig2_stream_setPrototypeOf(t,r)}function jbig2_stream_createSuper(t){var r=function jbig2_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=jbig2_stream_getPrototypeOf(t);if(r){var l=jbig2_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function jbig2_stream_possibleConstructorReturn(t,r){if(r&&("object"===jbig2_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function jbig2_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function jbig2_stream_getPrototypeOf(t){jbig2_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return jbig2_stream_getPrototypeOf(t)}var Ea=function(t){!function jbig2_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&jbig2_stream_setPrototypeOf(t,r)}(Jbig2Stream,t);var r=jbig2_stream_createSuper(Jbig2Stream);function Jbig2Stream(t,o,c){var l;!function jbig2_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Jbig2Stream);(l=r.call(this,o)).stream=t;l.dict=t.dict;l.maybeLength=o;l.params=c;return l}!function jbig2_stream_createClass(t,r,o){r&&jbig2_stream_defineProperties(t.prototype,r);o&&jbig2_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Jbig2Stream,[{key:"bytes",get:function get(){return shadow(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function ensureBuffer(t){}},{key:"readBlock",value:function readBlock(){if(!this.eof){var t=new Fa,r=[];if(this.params instanceof qr){var o=this.params.get("JBIG2Globals");if(o instanceof Xr){var c=o.getBytes();r.push({data:c,start:0,end:c.length})}}r.push({data:this.bytes,start:0,end:this.bytes.length});for(var l=t.parseChunks(r),u=l.length,h=0;h<u;h++)l[h]^=255;this.buffer=l;this.bufferLength=u;this.eof=!0}}}]);return Jbig2Stream}(Vn);__webpack_require__(2314);function image_utils_slicedToArray(t,r){return function image_utils_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function image_utils_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||function image_utils_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return image_utils_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return image_utils_arrayLikeToArray(t,r)}(t,r)||function image_utils_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function image_utils_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function convertToRGBA(t){switch(t.kind){case j:return convertBlackAndWhiteToRGBA(t);case R:return function convertRGBToRGBA(t){var r=t.src,o=t.srcPos,c=void 0===o?0:o,l=t.dest,u=t.destPos,h=void 0===u?0:u,d=(t.width,t.height,0),g=r.length>>2,y=new Uint32Array(r.buffer,c,g);if(Ar.isLittleEndian){for(;d<g-2;d+=3,h+=4){var m=y[d],v=y[d+1],_=y[d+2];l[h]=4278190080|m;l[h+1]=m>>>24|v<<8|4278190080;l[h+2]=v>>>16|_<<16|4278190080;l[h+3]=_>>>8|4278190080}for(var w=4*d,k=r.length;w<k;w+=3)l[h++]=r[w]|r[w+1]<<8|r[w+2]<<16|4278190080}else{for(;d<g-2;d+=3,h+=4){var x=y[d],S=y[d+1],C=y[d+2];l[h]=255|x;l[h+1]=x<<24|S>>>8|255;l[h+2]=S<<16|C>>>16|255;l[h+3]=C<<8|255}for(var O=4*d,T=r.length;O<T;O+=3)l[h++]=r[O]<<24|r[O+1]<<16|r[O+2]<<8|255}return{srcPos:c,destPos:h}}(t)}return null}function convertBlackAndWhiteToRGBA(t){var r=t.src,o=t.srcPos,c=void 0===o?0:o,l=t.dest,u=t.width,h=t.height,d=t.nonBlackColor,g=void 0===d?4294967295:d,y=t.inverseDecode,m=void 0!==y&&y,v=Ar.isLittleEndian?4278190080:255,_=image_utils_slicedToArray(m?[g,v]:[v,g],2),w=_[0],k=_[1],x=u>>3,S=7&u,C=r.length;l=new Uint32Array(l.buffer);for(var O=0,T=0;T<h;T++){for(var E=c+x;c<E;c++){var j=c<C?r[c]:255;l[O++]=128&j?k:w;l[O++]=64&j?k:w;l[O++]=32&j?k:w;l[O++]=16&j?k:w;l[O++]=8&j?k:w;l[O++]=4&j?k:w;l[O++]=2&j?k:w;l[O++]=1&j?k:w}if(0!==S)for(var R=c<C?r[c++]:255,M=0;M<S;M++)l[O++]=R&1<<7-M?k:w}return{srcPos:c,destPos:O}}function jpg_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function jpg_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return jpg_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return jpg_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function jpg_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function jpg_typeof(t){return jpg_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jpg_typeof(t)}function jpg_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,jpg_toPropertyKey(c.key),c)}}function jpg_createClass(t,r,o){r&&jpg_defineProperties(t.prototype,r);o&&jpg_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function jpg_toPropertyKey(t){var r=function jpg_toPrimitive(t,r){if("object"!=jpg_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=jpg_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==jpg_typeof(r)?r:String(r)}function jpg_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function jpg_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&jpg_setPrototypeOf(t,r)}function jpg_setPrototypeOf(t,r){jpg_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return jpg_setPrototypeOf(t,r)}function jpg_createSuper(t){var r=function jpg_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=jpg_getPrototypeOf(t);if(r){var l=jpg_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function jpg_possibleConstructorReturn(t,r){if(r&&("object"===jpg_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function jpg_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function jpg_getPrototypeOf(t){jpg_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return jpg_getPrototypeOf(t)}var ja=function(t){jpg_inherits(JpegError,t);var r=jpg_createSuper(JpegError);function JpegError(t){jpg_classCallCheck(this,JpegError);return r.call(this,"JPEG error: ".concat(t),"JpegError")}return jpg_createClass(JpegError)}(mr),Ra=function(t){jpg_inherits(DNLMarkerError,t);var r=jpg_createSuper(DNLMarkerError);function DNLMarkerError(t,o){var c;jpg_classCallCheck(this,DNLMarkerError);(c=r.call(this,t,"DNLMarkerError")).scanLines=o;return c}return jpg_createClass(DNLMarkerError)}(mr),Ma=function(t){jpg_inherits(EOIMarkerError,t);var r=jpg_createSuper(EOIMarkerError);function EOIMarkerError(t){jpg_classCallCheck(this,EOIMarkerError);return r.call(this,t,"EOIMarkerError")}return jpg_createClass(EOIMarkerError)}(mr),La=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),Ba=4017,Da=799,Na=3406,Ua=2276,Ga=1567,Ha=3784,qa=5793,za=2896;function buildHuffmanTable(t,r){for(var o,c,l=0,u=16;u>0&&!t[u-1];)u--;var h,d=[{children:[],index:0}],g=d[0];for(o=0;o<u;o++){for(c=0;c<t[o];c++){(g=d.pop()).children[g.index]=r[l];for(;g.index>0;)g=d.pop();g.index++;d.push(g);for(;d.length<=o;){d.push(h={children:[],index:0});g.children[g.index]=h.children;g=h}l++}if(o+1<u){d.push(h={children:[],index:0});g.children[g.index]=h.children;g=h}}return d[0].children}function getBlockBufferOffset(t,r,o){return 64*((t.blocksPerLine+1)*r+o)}function decodeScan(t,r,o,c,l,u,h,d,g){var y=arguments.length>9&&void 0!==arguments[9]&&arguments[9],m=o.mcusPerLine,v=o.progressive,_=r,w=0,k=0;function readBit(){if(k>0){k--;return w>>k&1}if(255===(w=t[r++])){var c=t[r++];if(c){if(220===c&&y){var l=readUint16(t,r+=2);r+=2;if(l>0&&l!==o.scanLines)throw new Ra("Found DNL marker (0xFFDC) while parsing scan data",l)}else if(217===c){if(y){var u=O*(8===o.precision?8:0);if(u>0&&Math.round(o.scanLines/u)>=5)throw new Ra("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",u)}throw new Ma("Found EOI marker (0xFFD9) while parsing scan data")}throw new ja("unexpected marker ".concat((w<<8|c).toString(16)))}}k=7;return w>>>7}function decodeHuffman(t){for(var r=t;;){switch(jpg_typeof(r=r[readBit()])){case"number":return r;case"object":continue}throw new ja("invalid huffman sequence")}}function receive(t){for(var r=0;t>0;){r=r<<1|readBit();t--}return r}function receiveAndExtend(t){if(1===t)return 1===readBit()?1:-1;var r=receive(t);return r>=1<<t-1?r:r+(-1<<t)+1}var x=0;var S,C=0;var O=0;function decodeMcu(t,r,o,c,l){var u=o%m;O=(o/m|0)*t.v+c;var h=u*t.h+l;r(t,getBlockBufferOffset(t,O,h))}function decodeBlock(t,r,o){O=o/t.blocksPerLine|0;var c=o%t.blocksPerLine;r(t,getBlockBufferOffset(t,O,c))}var T,E,j,R,M,L,D=c.length;L=v?0===u?0===d?function decodeDCFirst(t,r){var o=decodeHuffman(t.huffmanTableDC),c=0===o?0:receiveAndExtend(o)<<g;t.blockData[r]=t.pred+=c}:function decodeDCSuccessive(t,r){t.blockData[r]|=readBit()<<g}:0===d?function decodeACFirst(t,r){if(x>0)x--;else for(var o=u,c=h;o<=c;){var l=decodeHuffman(t.huffmanTableAC),d=15&l,y=l>>4;if(0!==d){var m=La[o+=y];t.blockData[r+m]=receiveAndExtend(d)*(1<<g);o++}else{if(y<15){x=receive(y)+(1<<y)-1;break}o+=16}}}:function decodeACSuccessive(t,r){for(var o,c,l=u,d=h,y=0;l<=d;){var m=r+La[l],v=t.blockData[m]<0?-1:1;switch(C){case 0:y=(c=decodeHuffman(t.huffmanTableAC))>>4;if(0==(o=15&c))if(y<15){x=receive(y)+(1<<y);C=4}else{y=16;C=1}else{if(1!==o)throw new ja("invalid ACn encoding");S=receiveAndExtend(o);C=y?2:3}continue;case 1:case 2:t.blockData[m]?t.blockData[m]+=v*(readBit()<<g):0==--y&&(C=2===C?3:0);break;case 3:if(t.blockData[m])t.blockData[m]+=v*(readBit()<<g);else{t.blockData[m]=S<<g;C=0}break;case 4:t.blockData[m]&&(t.blockData[m]+=v*(readBit()<<g))}l++}4===C&&0==--x&&(C=0)}:function decodeBaseline(t,r){var o=decodeHuffman(t.huffmanTableDC),c=0===o?0:receiveAndExtend(o);t.blockData[r]=t.pred+=c;for(var l=1;l<64;){var u=decodeHuffman(t.huffmanTableAC),h=15&u,d=u>>4;if(0!==h){var g=La[l+=d];t.blockData[r+g]=receiveAndExtend(h);l++}else{if(d<15)break;l+=16}}};for(var N,U,G,H=0,q=1===D?c[0].blocksPerLine*c[0].blocksPerColumn:m*o.mcusPerColumn;H<=q;){var z=l?Math.min(q-H,l):q;if(z>0){for(E=0;E<D;E++)c[E].pred=0;x=0;if(1===D){T=c[0];for(M=0;M<z;M++){decodeBlock(T,L,H);H++}}else for(M=0;M<z;M++){for(E=0;E<D;E++){U=(T=c[E]).h;G=T.v;for(j=0;j<G;j++)for(R=0;R<U;R++)decodeMcu(T,L,H,j,R)}H++}}k=0;if(!(N=findNextFileMarker(t,r)))break;if(N.invalid){warn("decodeScan - ".concat(z>0?"unexpected":"excessive"," MCU data, current marker is: ").concat(N.invalid));r=N.offset}if(!(N.marker>=65488&&N.marker<=65495))break;r+=2}return r-_}function quantizeAndInverse(t,r,o){var c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E=t.quantizationTable,j=t.blockData;if(!E)throw new ja("missing required Quantization Table.");for(var R=0;R<64;R+=8){v=j[r+R];_=j[r+R+1];w=j[r+R+2];k=j[r+R+3];x=j[r+R+4];S=j[r+R+5];C=j[r+R+6];O=j[r+R+7];v*=E[R];if(0!=(_|w|k|x|S|C|O)){_*=E[R+1];w*=E[R+2];k*=E[R+3];x*=E[R+4];S*=E[R+5];C*=E[R+6];O*=E[R+7];l=(c=(c=qa*v+128>>8)+(l=qa*x+128>>8)+1>>1)-l;T=(u=w)*Ha+(h=C)*Ga+128>>8;u=u*Ga-h*Ha+128>>8;y=(d=(d=za*(_-O)+128>>8)+(y=S<<4)+1>>1)-y;g=(m=(m=za*(_+O)+128>>8)+(g=k<<4)+1>>1)-g;h=(c=c+(h=T)+1>>1)-h;u=(l=l+u+1>>1)-u;T=d*Ua+m*Na+2048>>12;d=d*Na-m*Ua+2048>>12;m=T;T=g*Da+y*Ba+2048>>12;g=g*Ba-y*Da+2048>>12;y=T;o[R]=c+m;o[R+7]=c-m;o[R+1]=l+y;o[R+6]=l-y;o[R+2]=u+g;o[R+5]=u-g;o[R+3]=h+d;o[R+4]=h-d}else{T=qa*v+512>>10;o[R]=T;o[R+1]=T;o[R+2]=T;o[R+3]=T;o[R+4]=T;o[R+5]=T;o[R+6]=T;o[R+7]=T}}for(var M=0;M<8;++M){v=o[M];if(0!=((_=o[M+8])|(w=o[M+16])|(k=o[M+24])|(x=o[M+32])|(S=o[M+40])|(C=o[M+48])|(O=o[M+56]))){l=(c=4112+((c=qa*v+2048>>12)+(l=qa*x+2048>>12)+1>>1))-l;T=(u=w)*Ha+(h=C)*Ga+2048>>12;u=u*Ga-h*Ha+2048>>12;h=T;y=(d=(d=za*(_-O)+2048>>12)+(y=S)+1>>1)-y;g=(m=(m=za*(_+O)+2048>>12)+(g=k)+1>>1)-g;T=d*Ua+m*Na+2048>>12;d=d*Na-m*Ua+2048>>12;m=T;T=g*Da+y*Ba+2048>>12;g=g*Ba-y*Da+2048>>12;(v=(c=c+h+1>>1)+m)<16?v=0:v>=4080?v=255:v>>=4;(_=(l=l+u+1>>1)+(y=T))<16?_=0:_>=4080?_=255:_>>=4;(w=(u=l-u)+g)<16?w=0:w>=4080?w=255:w>>=4;(k=(h=c-h)+d)<16?k=0:k>=4080?k=255:k>>=4;(x=h-d)<16?x=0:x>=4080?x=255:x>>=4;(S=u-g)<16?S=0:S>=4080?S=255:S>>=4;(C=l-y)<16?C=0:C>=4080?C=255:C>>=4;(O=c-m)<16?O=0:O>=4080?O=255:O>>=4;j[r+M]=v;j[r+M+8]=_;j[r+M+16]=w;j[r+M+24]=k;j[r+M+32]=x;j[r+M+40]=S;j[r+M+48]=C;j[r+M+56]=O}else{T=(T=qa*v+8192>>14)<-2040?0:T>=2024?255:T+2056>>4;j[r+M]=T;j[r+M+8]=T;j[r+M+16]=T;j[r+M+24]=T;j[r+M+32]=T;j[r+M+40]=T;j[r+M+48]=T;j[r+M+56]=T}}}function buildComponentData(t,r){for(var o=r.blocksPerLine,c=r.blocksPerColumn,l=new Int16Array(64),u=0;u<c;u++)for(var h=0;h<o;h++){quantizeAndInverse(r,getBlockBufferOffset(r,u,h),l)}return r.blockData}function findNextFileMarker(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,c=t.length-1,l=o<r?o:r;if(r>=c)return null;var u=readUint16(t,r);if(u>=65472&&u<=65534)return{invalid:null,marker:u,offset:r};for(var h=readUint16(t,l);!(h>=65472&&h<=65534);){if(++l>=c)return null;h=readUint16(t,l)}return{invalid:u.toString(16),marker:h,offset:l}}var Wa=function(){function JpegImage(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,o=void 0===r?null:r,c=t.colorTransform,l=void 0===c?-1:c;jpg_classCallCheck(this,JpegImage);this._decodeTransform=o;this._colorTransform=l}jpg_createClass(JpegImage,[{key:"parse",value:function parse(t){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dnlScanLines,o=void 0===r?null:r;function readDataBlock(){var r=readUint16(t,u),o=(u+=2)+r-2,c=findNextFileMarker(t,o,u);if(null!=c&&c.invalid){warn("readDataBlock - incorrect length, current marker is: "+c.invalid);o=c.offset}var l=t.subarray(u,o);u+=l.length;return l}function prepareComponents(t){var r,o=Math.ceil(t.samplesPerLine/8/t.maxH),c=Math.ceil(t.scanLines/8/t.maxV),l=jpg_createForOfIteratorHelper(t.components);try{for(l.s();!(r=l.n()).done;){var u=r.value,h=Math.ceil(Math.ceil(t.samplesPerLine/8)*u.h/t.maxH),d=Math.ceil(Math.ceil(t.scanLines/8)*u.v/t.maxV),g=o*u.h,y=64*(c*u.v)*(g+1);u.blockData=new Int16Array(y);u.blocksPerLine=h;u.blocksPerColumn=d}}catch(t){l.e(t)}finally{l.f()}t.mcusPerLine=o;t.mcusPerColumn=c}var c,l,u=0,h=null,d=null,g=0,y=[],m=[],v=[],_=readUint16(t,u);u+=2;if(65496!==_)throw new ja("SOI not found");_=readUint16(t,u);u+=2;e:for(;65497!==_;){var w=void 0,k=void 0,x=void 0;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var S=readDataBlock();65504===_&&74===S[0]&&70===S[1]&&73===S[2]&&70===S[3]&&0===S[4]&&(h={version:{major:S[5],minor:S[6]},densityUnits:S[7],xDensity:S[8]<<8|S[9],yDensity:S[10]<<8|S[11],thumbWidth:S[12],thumbHeight:S[13],thumbData:S.subarray(14,14+3*S[12]*S[13])});65518===_&&65===S[0]&&100===S[1]&&111===S[2]&&98===S[3]&&101===S[4]&&(d={version:S[5]<<8|S[6],flags0:S[7]<<8|S[8],flags1:S[9]<<8|S[10],transformCode:S[11]});break;case 65499:for(var C=readUint16(t,u)+(u+=2)-2;u<C;){var O=t[u++],T=new Uint16Array(64);if(O>>4==0)for(k=0;k<64;k++)T[La[k]]=t[u++];else{if(O>>4!=1)throw new ja("DQT - invalid table spec");for(k=0;k<64;k++){T[La[k]]=readUint16(t,u);u+=2}}y[15&O]=T}break;case 65472:case 65473:case 65474:if(c)throw new ja("Only single frame JPEGs supported");u+=2;(c={}).extended=65473===_;c.progressive=65474===_;c.precision=t[u++];var E=readUint16(t,u);u+=2;c.scanLines=o||E;c.samplesPerLine=readUint16(t,u);u+=2;c.components=[];c.componentIds={};var j=t[u++],R=0,M=0;for(w=0;w<j;w++){var L=t[u],D=t[u+1]>>4,N=15&t[u+1];R<D&&(R=D);M<N&&(M=N);var U=t[u+2];x=c.components.push({h:D,v:N,quantizationId:U,quantizationTable:null});c.componentIds[L]=x-1;u+=3}c.maxH=R;c.maxV=M;prepareComponents(c);break;case 65476:var G=readUint16(t,u);u+=2;for(w=2;w<G;){var H=t[u++],q=new Uint8Array(16),z=0;for(k=0;k<16;k++,u++)z+=q[k]=t[u];var W=new Uint8Array(z);for(k=0;k<z;k++,u++)W[k]=t[u];w+=17+z;(H>>4==0?v:m)[15&H]=buildHuffmanTable(q,W)}break;case 65501:l=readUint16(t,u+=2);u+=2;break;case 65498:var V=1==++g&&!o;u+=2;var X=t[u++],K=[];for(w=0;w<X;w++){var Y=t[u++],J=c.componentIds[Y],$=c.components[J];$.index=Y;var Z=t[u++];$.huffmanTableDC=v[Z>>4];$.huffmanTableAC=m[15&Z];K.push($)}var Q=t[u++],ee=t[u++],te=t[u++];try{var re=decodeScan(t,u,c,K,l,Q,ee,te>>4,15&te,V);u+=re}catch(r){if(r instanceof Ra){warn("".concat(r.message," -- attempting to re-parse the JPEG image."));return this.parse(t,{dnlScanLines:r.scanLines})}if(r instanceof Ma){warn("".concat(r.message," -- ignoring the rest of the image data."));break e}throw r}break;case 65500:u+=4;break;case 65535:255!==t[u]&&u--;break;default:var ne=findNextFileMarker(t,u-2,u-3);if(null!=ne&&ne.invalid){warn("JpegImage.parse - unexpected data, current marker is: "+ne.invalid);u=ne.offset;break}if(!ne||u>=t.length-1){warn("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new ja("JpegImage.parse - unknown marker: "+_.toString(16))}_=readUint16(t,u);u+=2}if(!c)throw new ja("JpegImage.parse - no frame data found.");this.width=c.samplesPerLine;this.height=c.scanLines;this.jfif=h;this.adobe=d;this.components=[];var ae,ie=jpg_createForOfIteratorHelper(c.components);try{for(ie.s();!(ae=ie.n()).done;){var oe=ae.value,se=y[oe.quantizationId];se&&(oe.quantizationTable=se);this.components.push({index:oe.index,output:buildComponentData(0,oe),scaleX:oe.h/c.maxH,scaleY:oe.v/c.maxV,blocksPerLine:oe.blocksPerLine,blocksPerColumn:oe.blocksPerColumn})}}catch(t){ie.e(t)}finally{ie.f()}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function _getLinearizedBlockData(t,r){var o,c,l,u,h,d,g,y,m,v,_,w,k=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=this.width/t,S=this.height/r,C=0,O=this.components.length,T=t*r*O,E=new Uint8ClampedArray(T),j=new Uint32Array(t),R=4294967288;for(g=0;g<O;g++){c=(o=this.components[g]).scaleX*x;l=o.scaleY*S;C=g;_=o.output;u=o.blocksPerLine+1<<3;if(c!==w){for(h=0;h<t;h++){y=0|h*c;j[h]=(y&R)<<3|7&y}w=c}for(d=0;d<r;d++){v=u*((y=0|d*l)&R)|(7&y)<<3;for(h=0;h<t;h++){E[C]=_[v+j[h]];C+=O}}}var M=this._decodeTransform;k||4!==O||M||(M=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(M)for(g=0;g<T;)for(y=0,m=0;y<O;y++,g++,m+=2)E[g]=(E[g]*M[m]>>8)+M[m+1];return E}},{key:"_isColorConversionNeeded",get:function get(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function _convertYccToRgb(t){for(var r,o,c,l=0,u=t.length;l<u;l+=3){r=t[l];o=t[l+1];c=t[l+2];t[l]=r-179.456+1.402*c;t[l+1]=r+135.459-.344*o-.714*c;t[l+2]=r-226.816+1.772*o}return t}},{key:"_convertYccToRgba",value:function _convertYccToRgba(t,r){for(var o=0,c=0,l=t.length;o<l;o+=3,c+=4){var u=t[o],h=t[o+1],d=t[o+2];r[c]=u-179.456+1.402*d;r[c+1]=u+135.459-.344*h-.714*d;r[c+2]=u-226.816+1.772*h;r[c+3]=255}return r}},{key:"_convertYcckToRgb",value:function _convertYcckToRgb(t){for(var r,o,c,l,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];c=t[h+2];l=t[h+3];t[u++]=o*(-660635669420364e-19*o+.000437130475926232*c-54080610064599e-18*r+.00048449797120281*l-.154362151871126)-122.67195406894+c*(-.000957964378445773*c+.000817076911346625*r-.00477271405408747*l+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*l+.48357088451265)+l*(-.000336197177618394*l+.484791561490776);t[u++]=107.268039397724+o*(219927104525741e-19*o-.000640992018297945*c+.000659397001245577*r+.000426105652938837*l-.176491792462875)+c*(-.000778269941513683*c+.00130872261408275*r+.000770482631801132*l-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*l+.25802910206845)+l*(-.000318913117588328*l-.213742400323665);t[u++]=o*(-.000570115196973677*o-263409051004589e-19*c+.0020741088115012*r-.00288260236853442*l+.814272968359295)-20.810012546947+c*(-153496057440975e-19*c-.000132689043961446*r+.000560833691242812*l-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*l+.116935020465145)+l*(-.000343531996510555*l+.24165260232407)}return t.subarray(0,u)}},{key:"_convertYcckToRgba",value:function _convertYcckToRgba(t){for(var r=0,o=t.length;r<o;r+=4){var c=t[r],l=t[r+1],u=t[r+2],h=t[r+3];t[r]=l*(-660635669420364e-19*l+.000437130475926232*u-54080610064599e-18*c+.00048449797120281*h-.154362151871126)-122.67195406894+u*(-.000957964378445773*u+.000817076911346625*c-.00477271405408747*h+1.53380253221734)+c*(.000961250184130688*c-.00266257332283933*h+.48357088451265)+h*(-.000336197177618394*h+.484791561490776);t[r+1]=107.268039397724+l*(219927104525741e-19*l-.000640992018297945*u+.000659397001245577*c+.000426105652938837*h-.176491792462875)+u*(-.000778269941513683*u+.00130872261408275*c+.000770482631801132*h-.151051492775562)+c*(.00126935368114843*c-.00265090189010898*h+.25802910206845)+h*(-.000318913117588328*h-.213742400323665);t[r+2]=l*(-.000570115196973677*l-263409051004589e-19*u+.0020741088115012*c-.00288260236853442*h+.814272968359295)-20.810012546947+u*(-153496057440975e-19*u-.000132689043961446*c+.000560833691242812*h-.195152027534049)+c*(.00174418132927582*c-.00255243321439347*h+.116935020465145)+h*(-.000343531996510555*h+.24165260232407);t[r+3]=255}return t}},{key:"_convertYcckToCmyk",value:function _convertYcckToCmyk(t){for(var r,o,c,l=0,u=t.length;l<u;l+=4){r=t[l];o=t[l+1];c=t[l+2];t[l]=434.456-r-1.402*c;t[l+1]=119.541-r+.344*o+.714*c;t[l+2]=481.816-r-1.772*o}return t}},{key:"_convertCmykToRgb",value:function _convertCmykToRgb(t){for(var r,o,c,l,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];c=t[h+2];l=t[h+3];t[u++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*o+.0002894718188643294*c+.003264231057537806*l-1.1185611867203937)+o*(26374107616089405e-21*o-8626949158638572e-20*c-.0002748769067499491*l-.02155688794978967)+c*(-3878099212869363e-20*c-.0003267808279485286*l+.0686742238595345)-l*(.0003361971776183937*l+.7430659151342254);t[u++]=255+r*(.00013596372813588848*r+.000924537132573585*o+.00010567359618683593*c+.0004791864687436512*l-.3109689587515875)+o*(-.00023545346108370344*o+.0002702845253534714*c+.0020200308977307156*l-.7488052167015494)+c*(6834815998235662e-20*c+.00015168452363460973*l-.09751927774728933)-l*(.0003189131175883281*l+.7364883807733168);t[u++]=255+r*(13598650411385307e-21*r+.00012423956175490851*o+.0004751985097583589*c-36729317476630422e-22*l-.05562186980264034)+o*(.00016141380598724676*o+.0009692239130725186*c+.0007782692450036253*l-.44015232367526463)+c*(5.068882914068769e-7*c+.0017778369011375071*l-.7591454649749609)-l*(.0003435319965105553*l+.7063770186160144)}return t.subarray(0,u)}},{key:"_convertCmykToRgba",value:function _convertCmykToRgba(t){for(var r=0,o=t.length;r<o;r+=4){var c=t[r],l=t[r+1],u=t[r+2],h=t[r+3];t[r]=255+c*(-6747147073602441e-20*c+.0008379262121013727*l+.0002894718188643294*u+.003264231057537806*h-1.1185611867203937)+l*(26374107616089405e-21*l-8626949158638572e-20*u-.0002748769067499491*h-.02155688794978967)+u*(-3878099212869363e-20*u-.0003267808279485286*h+.0686742238595345)-h*(.0003361971776183937*h+.7430659151342254);t[r+1]=255+c*(.00013596372813588848*c+.000924537132573585*l+.00010567359618683593*u+.0004791864687436512*h-.3109689587515875)+l*(-.00023545346108370344*l+.0002702845253534714*u+.0020200308977307156*h-.7488052167015494)+u*(6834815998235662e-20*u+.00015168452363460973*h-.09751927774728933)-h*(.0003189131175883281*h+.7364883807733168);t[r+2]=255+c*(13598650411385307e-21*c+.00012423956175490851*l+.0004751985097583589*u-36729317476630422e-22*h-.05562186980264034)+l*(.00016141380598724676*l+.0009692239130725186*u+.0007782692450036253*h-.44015232367526463)+u*(5.068882914068769e-7*u+.0017778369011375071*h-.7591454649749609)-h*(.0003435319965105553*h+.7063770186160144);t[r+3]=255}return t}},{key:"getData",value:function getData(t){var r=t.width,o=t.height,c=t.forceRGBA,l=void 0!==c&&c,u=t.forceRGB,h=void 0!==u&&u,d=t.isSourcePDF,g=void 0!==d&&d;if(this.numComponents>4)throw new ja("Unsupported color mode");var y=this._getLinearizedBlockData(r,o,g);if(1===this.numComponents&&(l||h)){var m=y.length*(l?4:3),v=new Uint8ClampedArray(m),_=0;if(l)!function grayToRGBA(t,r){if(Ar.isLittleEndian)for(var o=0,c=t.length;o<c;o++)r[o]=65793*t[o]|4278190080;else for(var l=0,u=t.length;l<u;l++)r[l]=16843008*t[l]|255}(y,new Uint32Array(v.buffer));else{var w,k=jpg_createForOfIteratorHelper(y);try{for(k.s();!(w=k.n()).done;){var x=w.value;v[_++]=x;v[_++]=x;v[_++]=x}}catch(t){k.e(t)}finally{k.f()}}return v}if(3===this.numComponents&&this._isColorConversionNeeded){if(l){var S=new Uint8ClampedArray(y.length/3*4);return this._convertYccToRgba(y,S)}return this._convertYccToRgb(y)}if(4===this.numComponents){if(this._isColorConversionNeeded)return l?this._convertYcckToRgba(y):h?this._convertYcckToRgb(y):this._convertYcckToCmyk(y);if(l)return this._convertCmykToRgba(y);if(h)return this._convertCmykToRgb(y)}return y}}]);return JpegImage}();function jpeg_stream_typeof(t){return jpeg_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jpeg_stream_typeof(t)}function jpeg_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,jpeg_stream_toPropertyKey(c.key),c)}}function jpeg_stream_toPropertyKey(t){var r=function jpeg_stream_toPrimitive(t,r){if("object"!=jpeg_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=jpeg_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==jpeg_stream_typeof(r)?r:String(r)}function jpeg_stream_setPrototypeOf(t,r){jpeg_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return jpeg_stream_setPrototypeOf(t,r)}function jpeg_stream_createSuper(t){var r=function jpeg_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=jpeg_stream_getPrototypeOf(t);if(r){var l=jpeg_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function jpeg_stream_possibleConstructorReturn(t,r){if(r&&("object"===jpeg_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function jpeg_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function jpeg_stream_getPrototypeOf(t){jpeg_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return jpeg_stream_getPrototypeOf(t)}var Va=function(t){!function jpeg_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&jpeg_stream_setPrototypeOf(t,r)}(JpegStream,t);var r=jpeg_stream_createSuper(JpegStream);function JpegStream(t,o,c){var l,u;!function jpeg_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpegStream);for(;-1!==(u=t.getByte());)if(255===u){t.skip(-1);break}(l=r.call(this,o)).stream=t;l.dict=t.dict;l.maybeLength=o;l.params=c;return l}!function jpeg_stream_createClass(t,r,o){r&&jpeg_stream_defineProperties(t.prototype,r);o&&jpeg_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(JpegStream,[{key:"bytes",get:function get(){return shadow(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function ensureBuffer(t){}},{key:"readBlock",value:function readBlock(){if(!this.eof){var t={decodeTransform:void 0,colorTransform:void 0},r=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(r)){for(var o=this.dict.get("BPC","BitsPerComponent")||8,c=r.length,l=new Int32Array(c),u=!1,h=(1<<o)-1,d=0;d<c;d+=2){l[d]=256*(r[d+1]-r[d])|0;l[d+1]=r[d]*h|0;256===l[d]&&0===l[d+1]||(u=!0)}u&&(t.decodeTransform=l)}if(this.params instanceof qr){var g=this.params.get("ColorTransform");Number.isInteger(g)&&(t.colorTransform=g)}var y=new Wa(t);y.parse(this.bytes);var m=y.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=m;this.bufferLength=m.length;this.eof=!0}}}]);return JpegStream}(Vn);function jpx_typeof(t){return jpx_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jpx_typeof(t)}function _defineProperty(t,r,o){(r=jpx_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function jpx_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,jpx_toPropertyKey(c.key),c)}}function jpx_createClass(t,r,o){r&&jpx_defineProperties(t.prototype,r);o&&jpx_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function jpx_toPropertyKey(t){var r=function jpx_toPrimitive(t,r){if("object"!=jpx_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=jpx_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==jpx_typeof(r)?r:String(r)}function jpx_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function jpx_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&jpx_setPrototypeOf(t,r)}function jpx_setPrototypeOf(t,r){jpx_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return jpx_setPrototypeOf(t,r)}function jpx_createSuper(t){var r=function jpx_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=jpx_getPrototypeOf(t);if(r){var l=jpx_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function jpx_possibleConstructorReturn(t,r){if(r&&("object"===jpx_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function jpx_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function jpx_getPrototypeOf(t){jpx_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return jpx_getPrototypeOf(t)}var Xa=function(t){jpx_inherits(JpxError,t);var r=jpx_createSuper(JpxError);function JpxError(t){jpx_classCallCheck(this,JpxError);return r.call(this,"JPX error: ".concat(t),"JpxError")}return jpx_createClass(JpxError)}(mr),Ka={LL:0,LH:1,HL:1,HH:2},Ya=function(){function JpxImage(){jpx_classCallCheck(this,JpxImage);this.failOnCorruptedImage=!1}jpx_createClass(JpxImage,[{key:"parse",value:function parse(t){if(65359!==readUint16(t,0))for(var r=t.length,o=0;o<r;){var c=8,l=readUint32(t,o),u=readUint32(t,o+4);o+=c;if(1===l){l=4294967296*readUint32(t,o)+readUint32(t,o+4);o+=8;c+=8}0===l&&(l=r-o+c);if(l<c)throw new Xa("Invalid box field size");var h=l-c,d=!0;switch(u){case 1785737832:d=!1;break;case 1668246642:var g=t[o];if(1===g){var y=readUint32(t,o+3);switch(y){case 16:case 17:case 18:break;default:warn("Unknown colorspace "+y)}}else 2===g&&info("ICC profile not supported");break;case 1785737827:this.parseCodestream(t,o,o+h);break;case 1783636e3:218793738!==readUint32(t,o)&&warn("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var m=String.fromCharCode(u>>24&255,u>>16&255,u>>8&255,255&u);warn("Unsupported header type ".concat(u," (").concat(m,")."))}d&&(o+=h)}else this.parseCodestream(t,0,t.length)}},{key:"parseImageProperties",value:function parseImageProperties(t){for(var r=t.getByte();r>=0;){if(65361===(r<<8|(r=t.getByte()))){t.skip(4);var o=t.getInt32()>>>0,c=t.getInt32()>>>0,l=t.getInt32()>>>0,u=t.getInt32()>>>0;t.skip(16);var h=t.getUint16();this.width=o-l;this.height=c-u;this.componentsCount=h;this.bitsPerComponent=8;return}}throw new Xa("No size marker found in JPX stream")}},{key:"parseCodestream",value:function parseCodestream(t,r,o){var c={},l=!1;try{for(var u=r;u+1<o;){var h=readUint16(t,u);u+=2;var d=0,g=void 0,y=void 0,m=void 0,v=void 0,_=void 0,w=void 0;switch(h){case 65359:c.mainHeader=!0;break;case 65497:break;case 65361:d=readUint16(t,u);var k={};k.Xsiz=readUint32(t,u+4);k.Ysiz=readUint32(t,u+8);k.XOsiz=readUint32(t,u+12);k.YOsiz=readUint32(t,u+16);k.XTsiz=readUint32(t,u+20);k.YTsiz=readUint32(t,u+24);k.XTOsiz=readUint32(t,u+28);k.YTOsiz=readUint32(t,u+32);var x=readUint16(t,u+36);k.Csiz=x;var S=[];g=u+38;for(var C=0;C<x;C++){var O={precision:1+(127&t[g]),isSigned:!!(128&t[g]),XRsiz:t[g+1],YRsiz:t[g+2]};g+=3;calculateComponentDimensions(O,k);S.push(O)}c.SIZ=k;c.components=S;calculateTileGrids(c,S);c.QCC=[];c.COC=[];break;case 65372:d=readUint16(t,u);var T={};g=u+2;switch(31&(y=t[g++])){case 0:v=8;_=!0;break;case 1:v=16;_=!1;break;case 2:v=16;_=!0;break;default:throw new Error("Invalid SQcd value "+y)}T.noQuantization=8===v;T.scalarExpounded=_;T.guardBits=y>>5;m=[];for(;g<d+u;){var E={};if(8===v){E.epsilon=t[g++]>>3;E.mu=0}else{E.epsilon=t[g]>>3;E.mu=(7&t[g])<<8|t[g+1];g+=2}m.push(E)}T.SPqcds=m;if(c.mainHeader)c.QCD=T;else{c.currentTile.QCD=T;c.currentTile.QCC=[]}break;case 65373:d=readUint16(t,u);var j={};g=u+2;var R=void 0;if(c.SIZ.Csiz<257)R=t[g++];else{R=readUint16(t,g);g+=2}switch(31&(y=t[g++])){case 0:v=8;_=!0;break;case 1:v=16;_=!1;break;case 2:v=16;_=!0;break;default:throw new Error("Invalid SQcd value "+y)}j.noQuantization=8===v;j.scalarExpounded=_;j.guardBits=y>>5;m=[];for(;g<d+u;){var M={};if(8===v){M.epsilon=t[g++]>>3;M.mu=0}else{M.epsilon=t[g]>>3;M.mu=(7&t[g])<<8|t[g+1];g+=2}m.push(M)}j.SPqcds=m;c.mainHeader?c.QCC[R]=j:c.currentTile.QCC[R]=j;break;case 65362:d=readUint16(t,u);var L={};g=u+2;var D=t[g++];L.entropyCoderWithCustomPrecincts=!!(1&D);L.sopMarkerUsed=!!(2&D);L.ephMarkerUsed=!!(4&D);L.progressionOrder=t[g++];L.layersCount=readUint16(t,g);g+=2;L.multipleComponentTransform=t[g++];L.decompositionLevelsCount=t[g++];L.xcb=2+(15&t[g++]);L.ycb=2+(15&t[g++]);var N=t[g++];L.selectiveArithmeticCodingBypass=!!(1&N);L.resetContextProbabilities=!!(2&N);L.terminationOnEachCodingPass=!!(4&N);L.verticallyStripe=!!(8&N);L.predictableTermination=!!(16&N);L.segmentationSymbolUsed=!!(32&N);L.reversibleTransformation=t[g++];if(L.entropyCoderWithCustomPrecincts){for(var U=[];g<d+u;){var G=t[g++];U.push({PPx:15&G,PPy:G>>4})}L.precinctsSizes=U}var H=[];L.selectiveArithmeticCodingBypass&&H.push("selectiveArithmeticCodingBypass");L.terminationOnEachCodingPass&&H.push("terminationOnEachCodingPass");L.verticallyStripe&&H.push("verticallyStripe");L.predictableTermination&&H.push("predictableTermination");if(H.length>0){l=!0;warn("JPX: Unsupported COD options (".concat(H.join(", "),")."))}if(c.mainHeader)c.COD=L;else{c.currentTile.COD=L;c.currentTile.COC=[]}break;case 65424:d=readUint16(t,u);(w={}).index=readUint16(t,u+2);w.length=readUint32(t,u+4);w.dataEnd=w.length+u-2;w.partIndex=t[u+8];w.partsCount=t[u+9];c.mainHeader=!1;if(0===w.partIndex){w.COD=c.COD;w.COC=c.COC.slice(0);w.QCD=c.QCD;w.QCC=c.QCC.slice(0)}c.currentTile=w;break;case 65427:if(0===(w=c.currentTile).partIndex){initializeTile(c,w.index);buildPackets(c)}parseTilePackets(c,t,u,d=w.dataEnd-u);break;case 65363:warn("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:d=readUint16(t,u);break;default:throw new Error("Unknown codestream code: "+h.toString(16))}u+=d}}catch(t){if(l||this.failOnCorruptedImage)throw new Xa(t.message);warn('JPX: Trying to recover from: "'.concat(t.message,'".'))}this.tiles=function transformComponents(t){for(var r=t.SIZ,o=t.components,c=r.Csiz,l=[],u=0,h=t.tiles.length;u<h;u++){for(var d=t.tiles[u],g=[],y=0;y<c;y++)g[y]=transformTile(t,d,y);var m=g[0],v=new Uint8ClampedArray(m.items.length*c),_={left:m.left,top:m.top,width:m.width,height:m.height,items:v},w=void 0,k=void 0,x=0,S=void 0,C=void 0,O=void 0,T=void 0,E=void 0;if(d.codingStyleDefaultParameters.multipleComponentTransform){var j=4===c,R=g[0].items,M=g[1].items,L=g[2].items,D=j?g[3].items:null;k=.5+(128<<(w=o[0].precision-8));var N=d.components[0],U=c-3;C=R.length;if(N.codingStyleParameters.reversibleTransformation)for(S=0;S<C;S++,x+=U){O=R[S]+k;T=M[S];var G=O-((E=L[S])+T>>2);v[x++]=G+E>>w;v[x++]=G>>w;v[x++]=G+T>>w}else for(S=0;S<C;S++,x+=U){O=R[S]+k;T=M[S];E=L[S];v[x++]=O+1.402*E>>w;v[x++]=O-.34413*T-.71414*E>>w;v[x++]=O+1.772*T>>w}if(j)for(S=0,x=3;S<C;S++,x+=4)v[x]=D[S]+k>>w}else for(var H=0;H<c;H++){var q=g[H].items;k=.5+(128<<(w=o[H].precision-8));for(x=H,S=0,C=q.length;S<C;S++){v[x]=q[S]+k>>w;x+=c}}l.push(_)}return l}(c);this.width=c.SIZ.Xsiz-c.SIZ.XOsiz;this.height=c.SIZ.Ysiz-c.SIZ.YOsiz;this.componentsCount=c.SIZ.Csiz}}]);return JpxImage}();function calculateComponentDimensions(t,r){t.x0=Math.ceil(r.XOsiz/t.XRsiz);t.x1=Math.ceil(r.Xsiz/t.XRsiz);t.y0=Math.ceil(r.YOsiz/t.YRsiz);t.y1=Math.ceil(r.Ysiz/t.YRsiz);t.width=t.x1-t.x0;t.height=t.y1-t.y0}function calculateTileGrids(t,r){for(var o,c=t.SIZ,l=[],u=Math.ceil((c.Xsiz-c.XTOsiz)/c.XTsiz),h=Math.ceil((c.Ysiz-c.YTOsiz)/c.YTsiz),d=0;d<h;d++)for(var g=0;g<u;g++){(o={}).tx0=Math.max(c.XTOsiz+g*c.XTsiz,c.XOsiz);o.ty0=Math.max(c.YTOsiz+d*c.YTsiz,c.YOsiz);o.tx1=Math.min(c.XTOsiz+(g+1)*c.XTsiz,c.Xsiz);o.ty1=Math.min(c.YTOsiz+(d+1)*c.YTsiz,c.Ysiz);o.width=o.tx1-o.tx0;o.height=o.ty1-o.ty0;o.components=[];l.push(o)}t.tiles=l;for(var y=0,m=c.Csiz;y<m;y++)for(var v=r[y],_=0,w=l.length;_<w;_++){var k={};o=l[_];k.tcx0=Math.ceil(o.tx0/v.XRsiz);k.tcy0=Math.ceil(o.ty0/v.YRsiz);k.tcx1=Math.ceil(o.tx1/v.XRsiz);k.tcy1=Math.ceil(o.ty1/v.YRsiz);k.width=k.tcx1-k.tcx0;k.height=k.tcy1-k.tcy0;o.components[y]=k}}function getBlocksDimensions(t,r,o){var c=r.codingStyleParameters,l={};if(c.entropyCoderWithCustomPrecincts){l.PPx=c.precinctsSizes[o].PPx;l.PPy=c.precinctsSizes[o].PPy}else{l.PPx=15;l.PPy=15}l.xcb_=o>0?Math.min(c.xcb,l.PPx-1):Math.min(c.xcb,l.PPx);l.ycb_=o>0?Math.min(c.ycb,l.PPy-1):Math.min(c.ycb,l.PPy);return l}function buildPrecincts(t,r,o){var c=1<<o.PPx,l=1<<o.PPy,u=0===r.resLevel,h=1<<o.PPx+(u?0:-1),d=1<<o.PPy+(u?0:-1),g=r.trx1>r.trx0?Math.ceil(r.trx1/c)-Math.floor(r.trx0/c):0,y=r.try1>r.try0?Math.ceil(r.try1/l)-Math.floor(r.try0/l):0,m=g*y;r.precinctParameters={precinctWidth:c,precinctHeight:l,numprecinctswide:g,numprecinctshigh:y,numprecincts:m,precinctWidthInSubband:h,precinctHeightInSubband:d}}function buildCodeblocks(t,r,o){var c,l,u,h,d=o.xcb_,g=o.ycb_,y=1<<d,m=1<<g,v=r.tbx0>>d,_=r.tby0>>g,w=r.tbx1+y-1>>d,k=r.tby1+m-1>>g,x=r.resolution.precinctParameters,S=[],C=[];for(l=_;l<k;l++)for(c=v;c<w;c++){(u={cbx:c,cby:l,tbx0:y*c,tby0:m*l,tbx1:y*(c+1),tby1:m*(l+1)}).tbx0_=Math.max(r.tbx0,u.tbx0);u.tby0_=Math.max(r.tby0,u.tby0);u.tbx1_=Math.min(r.tbx1,u.tbx1);u.tby1_=Math.min(r.tby1,u.tby1);h=Math.floor((u.tbx0_-r.tbx0)/x.precinctWidthInSubband)+Math.floor((u.tby0_-r.tby0)/x.precinctHeightInSubband)*x.numprecinctswide;u.precinctNumber=h;u.subbandType=r.type;u.Lblock=3;if(!(u.tbx1_<=u.tbx0_||u.tby1_<=u.tby0_)){S.push(u);var O=C[h];if(void 0!==O){c<O.cbxMin?O.cbxMin=c:c>O.cbxMax&&(O.cbxMax=c);l<O.cbyMin?O.cbxMin=l:l>O.cbyMax&&(O.cbyMax=l)}else C[h]=O={cbxMin:c,cbyMin:l,cbxMax:c,cbyMax:l};u.precinct=O}}r.codeblockParameters={codeblockWidth:d,codeblockHeight:g,numcodeblockwide:w-v+1,numcodeblockhigh:k-_+1};r.codeblocks=S;r.precincts=C}function createPacket(t,r,o){for(var c=[],l=t.subbands,u=0,h=l.length;u<h;u++)for(var d=l[u].codeblocks,g=0,y=d.length;g<y;g++){var m=d[g];m.precinctNumber===r&&c.push(m)}return{layerNumber:o,codeblocks:c}}function LayerResolutionComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,h=0,d=0;d<u;d++)h=Math.max(h,c.components[d].codingStyleParameters.decompositionLevelsCount);var g=0,y=0,m=0,v=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<l;g++){for(;y<=h;y++){for(;m<u;m++){var t=c.components[m];if(!(y>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[y],o=r.precinctParameters.numprecincts;v<o;){var d=createPacket(r,v,g);v++;return d}v=0}}m=0}y=0}throw new Xa("Out of packets")}}function ResolutionLayerComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,h=0,d=0;d<u;d++)h=Math.max(h,c.components[d].codingStyleParameters.decompositionLevelsCount);var g=0,y=0,m=0,v=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<=h;g++){for(;y<l;y++){for(;m<u;m++){var t=c.components[m];if(!(g>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[g],o=r.precinctParameters.numprecincts;v<o;){var d=createPacket(r,v,y);v++;return d}v=0}}m=0}y=0}throw new Xa("Out of packets")}}function ResolutionPositionComponentLayerIterator(t){var r,o,c,l,u=t.SIZ,h=t.currentTile.index,d=t.tiles[h],g=d.codingStyleDefaultParameters.layersCount,y=u.Csiz,m=0;for(c=0;c<y;c++){var v=d.components[c];m=Math.max(m,v.codingStyleParameters.decompositionLevelsCount)}var _=new Int32Array(m+1);for(o=0;o<=m;++o){var w=0;for(c=0;c<y;++c){var k=d.components[c].resolutions;o<k.length&&(w=Math.max(w,k[o].precinctParameters.numprecincts))}_[o]=w}r=0;o=0;c=0;l=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=m;o++){for(;l<_[o];l++){for(;c<y;c++){var t=d.components[c];if(!(o>t.codingStyleParameters.decompositionLevelsCount)){var u=t.resolutions[o],h=u.precinctParameters.numprecincts;if(!(l>=h)){for(;r<g;){var v=createPacket(u,l,r);r++;return v}r=0}}}c=0}l=0}throw new Xa("Out of packets")}}function PositionComponentResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,h=getPrecinctSizesInImageScale(c),d=h,g=0,y=0,m=0,v=0,_=0;this.nextPacket=function JpxImage_nextPacket(){for(;_<d.maxNumHigh;_++){for(;v<d.maxNumWide;v++){for(;m<u;m++){for(var t=c.components[m],r=t.codingStyleParameters.decompositionLevelsCount;y<=r;y++){var o=t.resolutions[y],w=h.components[m].resolutions[y],k=getPrecinctIndexIfExist(v,_,w,d,o);if(null!==k){for(;g<l;){var x=createPacket(o,k,g);g++;return x}g=0}}y=0}m=0}v=0}throw new Xa("Out of packets")}}function ComponentPositionResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,h=getPrecinctSizesInImageScale(c),d=0,g=0,y=0,m=0,v=0;this.nextPacket=function JpxImage_nextPacket(){for(;y<u;++y){for(var t=c.components[y],r=h.components[y],o=t.codingStyleParameters.decompositionLevelsCount;v<r.maxNumHigh;v++){for(;m<r.maxNumWide;m++){for(;g<=o;g++){var _=t.resolutions[g],w=r.resolutions[g],k=getPrecinctIndexIfExist(m,v,w,r,_);if(null!==k){for(;d<l;){var x=createPacket(_,k,d);d++;return x}d=0}}g=0}m=0}v=0}throw new Xa("Out of packets")}}function getPrecinctIndexIfExist(t,r,o,c,l){var u=t*c.minWidth,h=r*c.minHeight;if(u%o.width!=0||h%o.height!=0)return null;var d=h/o.width*l.precinctParameters.numprecinctswide;return u/o.height+d}function getPrecinctSizesInImageScale(t){for(var r=t.components.length,o=Number.MAX_VALUE,c=Number.MAX_VALUE,l=0,u=0,h=new Array(r),d=0;d<r;d++){for(var g=t.components[d],y=g.codingStyleParameters.decompositionLevelsCount,m=new Array(y+1),v=Number.MAX_VALUE,_=Number.MAX_VALUE,w=0,k=0,x=1,S=y;S>=0;--S){var C=g.resolutions[S],O=x*C.precinctParameters.precinctWidth,T=x*C.precinctParameters.precinctHeight;v=Math.min(v,O);_=Math.min(_,T);w=Math.max(w,C.precinctParameters.numprecinctswide);k=Math.max(k,C.precinctParameters.numprecinctshigh);m[S]={width:O,height:T};x<<=1}o=Math.min(o,v);c=Math.min(c,_);l=Math.max(l,w);u=Math.max(u,k);h[d]={resolutions:m,minWidth:v,minHeight:_,maxNumWide:w,maxNumHigh:k}}return{components:h,minWidth:o,minHeight:c,maxNumWide:l,maxNumHigh:u}}function buildPackets(t){for(var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=r.Csiz,u=0;u<l;u++){for(var h=c.components[u],d=h.codingStyleParameters.decompositionLevelsCount,g=[],y=[],m=0;m<=d;m++){var v=getBlocksDimensions(0,h,m),_={},w=1<<d-m;_.trx0=Math.ceil(h.tcx0/w);_.try0=Math.ceil(h.tcy0/w);_.trx1=Math.ceil(h.tcx1/w);_.try1=Math.ceil(h.tcy1/w);_.resLevel=m;buildPrecincts(0,_,v);g.push(_);var k=void 0;if(0===m){(k={}).type="LL";k.tbx0=Math.ceil(h.tcx0/w);k.tby0=Math.ceil(h.tcy0/w);k.tbx1=Math.ceil(h.tcx1/w);k.tby1=Math.ceil(h.tcy1/w);k.resolution=_;buildCodeblocks(0,k,v);y.push(k);_.subbands=[k]}else{var x=1<<d-m+1,S=[];(k={}).type="HL";k.tbx0=Math.ceil(h.tcx0/x-.5);k.tby0=Math.ceil(h.tcy0/x);k.tbx1=Math.ceil(h.tcx1/x-.5);k.tby1=Math.ceil(h.tcy1/x);k.resolution=_;buildCodeblocks(0,k,v);y.push(k);S.push(k);(k={}).type="LH";k.tbx0=Math.ceil(h.tcx0/x);k.tby0=Math.ceil(h.tcy0/x-.5);k.tbx1=Math.ceil(h.tcx1/x);k.tby1=Math.ceil(h.tcy1/x-.5);k.resolution=_;buildCodeblocks(0,k,v);y.push(k);S.push(k);(k={}).type="HH";k.tbx0=Math.ceil(h.tcx0/x-.5);k.tby0=Math.ceil(h.tcy0/x-.5);k.tbx1=Math.ceil(h.tcx1/x-.5);k.tby1=Math.ceil(h.tcy1/x-.5);k.resolution=_;buildCodeblocks(0,k,v);y.push(k);S.push(k);_.subbands=S}}h.resolutions=g;h.subbands=y}var C=c.codingStyleDefaultParameters.progressionOrder;switch(C){case 0:c.packetsIterator=new LayerResolutionComponentPositionIterator(t);break;case 1:c.packetsIterator=new ResolutionLayerComponentPositionIterator(t);break;case 2:c.packetsIterator=new ResolutionPositionComponentLayerIterator(t);break;case 3:c.packetsIterator=new PositionComponentResolutionLayerIterator(t);break;case 4:c.packetsIterator=new ComponentPositionResolutionLayerIterator(t);break;default:throw new Xa("Unsupported progression order ".concat(C))}}function parseTilePackets(t,r,o,c){var l,u=0,h=0,d=!1;function readBits(t){for(;h<t;){var c=r[o+u];u++;if(d){l=l<<7|c;h+=7;d=!1}else{l=l<<8|c;h+=8}255===c&&(d=!0)}return l>>>(h-=t)&(1<<t)-1}function skipMarkerIfEqual(t){if(255===r[o+u-1]&&r[o+u]===t){skipBytes(1);return!0}if(255===r[o+u]&&r[o+u+1]===t){skipBytes(2);return!0}return!1}function skipBytes(t){u+=t}function alignToByte(){h=0;if(d){u++;d=!1}}function readCodingpasses(){if(0===readBits(1))return 1;if(0===readBits(1))return 2;var t=readBits(2);return t<3?t+3:(t=readBits(5))<31?t+6:(t=readBits(7))+37}for(var g=t.currentTile.index,y=t.tiles[g],m=t.COD.sopMarkerUsed,v=t.COD.ephMarkerUsed,_=y.packetsIterator;u<c;){alignToByte();m&&skipMarkerIfEqual(145)&&skipBytes(4);var w=_.nextPacket();if(readBits(1)){for(var k=w.layerNumber,x=[],S=void 0,C=0,O=w.codeblocks.length;C<O;C++){var T=(S=w.codeblocks[C]).precinct,E=S.cbx-T.cbxMin,j=S.cby-T.cbyMin,R=!1,M=!1,L=void 0;if(void 0!==S.included)R=!!readBits(1);else{var D=void 0;if(void 0!==(T=S.precinct).inclusionTree)D=T.inclusionTree;else{var N=T.cbxMax-T.cbxMin+1,U=T.cbyMax-T.cbyMin+1;D=new $a(N,U,k);L=new Ja(N,U);T.inclusionTree=D;T.zeroBitPlanesTree=L;for(var G=0;G<k;G++)if(0!==readBits(1))throw new Xa("Invalid tag tree")}if(D.reset(E,j,k))for(;;){if(!readBits(1)){D.incrementValue(k);break}if(!D.nextLevel()){S.included=!0;R=M=!0;break}}}if(R){if(M){(L=T.zeroBitPlanesTree).reset(E,j);for(;;)if(readBits(1)){if(!L.nextLevel())break}else L.incrementValue();S.zeroBitPlanes=L.value}for(var H=readCodingpasses();readBits(1);)S.Lblock++;var q=log2(H),z=readBits((H<1<<q?q-1:q)+S.Lblock);x.push({codeblock:S,codingpasses:H,dataLength:z})}}alignToByte();v&&skipMarkerIfEqual(146);for(;x.length>0;){var W=x.shift();void 0===(S=W.codeblock).data&&(S.data=[]);S.data.push({data:r,start:o+u,end:o+u+W.dataLength,codingpasses:W.codingpasses});u+=W.dataLength}}}return u}function copyCoefficients(t,r,o,c,l,u,h,d,g){for(var y=c.tbx0,m=c.tby0,v=c.tbx1-c.tbx0,_=c.codeblocks,w="H"===c.type.charAt(0)?1:0,k="H"===c.type.charAt(1)?r:0,x=0,S=_.length;x<S;++x){var C=_[x],O=C.tbx1_-C.tbx0_,T=C.tby1_-C.tby0_;if(0!==O&&0!==T&&void 0!==C.data){var E=new Za(O,T,C.subbandType,C.zeroBitPlanes,u),j=2,R=C.data,M=0,L=0,D=void 0,N=void 0,U=void 0;for(D=0,N=R.length;D<N;D++){M+=(U=R[D]).end-U.start;L+=U.codingpasses}var G=new Uint8Array(M),H=0;for(D=0,N=R.length;D<N;D++){var q=(U=R[D]).data.subarray(U.start,U.end);G.set(q,H);H+=q.length}var z=new pa(G,0,M);E.setDecoder(z);for(D=0;D<L;D++){switch(j){case 0:E.runSignificancePropagationPass();break;case 1:E.runMagnitudeRefinementPass();break;case 2:E.runCleanupPass();d&&E.checkSegmentationSymbol()}g&&E.reset();j=(j+1)%3}var W=C.tbx0_-y+(C.tby0_-m)*v,V=E.coefficentsSign,X=E.coefficentsMagnitude,K=E.bitsDecoded,Y=h?0:.5,J=void 0,$=void 0,Z=void 0;H=0;var Q="LL"!==c.type;for(D=0;D<T;D++){var ee=2*(W/v|0)*(r-v)+w+k;for(J=0;J<O;J++){if(0!==($=X[H])){$=($+Y)*l;0!==V[H]&&($=-$);Z=K[H];t[Q?ee+(W<<1):W]=h&&Z>=u?$:$*(1<<u-Z)}W++;H++}W+=v-O}}}}function transformTile(t,r,o){for(var c=r.components[o],l=c.codingStyleParameters,u=c.quantizationParameters,h=l.decompositionLevelsCount,d=u.SPqcds,g=u.scalarExpounded,y=u.guardBits,m=l.segmentationSymbolUsed,v=l.resetContextProbabilities,_=t.components[o].precision,w=l.reversibleTransformation,k=w?new ti:new ei,x=[],S=0,C=0;C<=h;C++){for(var O=c.resolutions[C],T=O.trx1-O.trx0,E=O.try1-O.try0,j=new Float32Array(T*E),R=0,M=O.subbands.length;R<M;R++){var L=void 0,D=void 0;if(g){L=d[S].mu;D=d[S].epsilon;S++}else{L=d[0].mu;D=d[0].epsilon+(C>0?1-C:0)}var N=O.subbands[R],U=Ka[N.type];copyCoefficients(j,T,0,N,w?1:Math.pow(2,_+U-D)*(1+L/2048),y+D-1,w,m,v)}x.push({width:T,height:E,items:j})}var G=k.calculate(x,c.tcx0,c.tcy0);return{left:c.tcx0,top:c.tcy0,width:G.width,height:G.height,items:G.items}}function initializeTile(t,r){for(var o=t.SIZ.Csiz,c=t.tiles[r],l=0;l<o;l++){var u=c.components[l],h=void 0!==t.currentTile.QCC[l]?t.currentTile.QCC[l]:t.currentTile.QCD;u.quantizationParameters=h;var d=void 0!==t.currentTile.COC[l]?t.currentTile.COC[l]:t.currentTile.COD;u.codingStyleParameters=d}c.codingStyleDefaultParameters=t.currentTile.COD}var Ja=function(){function TagTree(t,r){jpx_classCallCheck(this,TagTree);var o=log2(Math.max(t,r))+1;this.levels=[];for(var c=0;c<o;c++){var l={width:t,height:r,items:[]};this.levels.push(l);t=Math.ceil(t/2);r=Math.ceil(r/2)}}jpx_createClass(TagTree,[{key:"reset",value:function reset(t,r){for(var o,c=0,l=0;c<this.levels.length;){var u=t+r*(o=this.levels[c]).width;if(void 0!==o.items[u]){l=o.items[u];break}o.index=u;t>>=1;r>>=1;c++}c--;(o=this.levels[c]).items[o.index]=l;this.currentLevel=c;delete this.value}},{key:"incrementValue",value:function incrementValue(){var t=this.levels[this.currentLevel];t.items[t.index]++}},{key:"nextLevel",value:function nextLevel(){var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];if(--t<0){this.value=o;return!1}this.currentLevel=t;(r=this.levels[t]).items[r.index]=o;return!0}}]);return TagTree}(),$a=function(){function InclusionTree(t,r,o){jpx_classCallCheck(this,InclusionTree);var c=log2(Math.max(t,r))+1;this.levels=[];for(var l=0;l<c;l++){for(var u=new Uint8Array(t*r),h=0,d=u.length;h<d;h++)u[h]=o;var g={width:t,height:r,items:u};this.levels.push(g);t=Math.ceil(t/2);r=Math.ceil(r/2)}}jpx_createClass(InclusionTree,[{key:"reset",value:function reset(t,r,o){for(var c=0;c<this.levels.length;){var l=this.levels[c],u=t+r*l.width;l.index=u;var h=l.items[u];if(255===h)break;if(h>o){this.currentLevel=c;this.propagateValues();return!1}t>>=1;r>>=1;c++}this.currentLevel=c-1;return!0}},{key:"incrementValue",value:function incrementValue(t){var r=this.levels[this.currentLevel];r.items[r.index]=t+1;this.propagateValues()}},{key:"propagateValues",value:function propagateValues(){for(var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];--t>=0;)(r=this.levels[t]).items[r.index]=o}},{key:"nextLevel",value:function nextLevel(){var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];r.items[r.index]=255;if(--t<0)return!1;this.currentLevel=t;(r=this.levels[t]).items[r.index]=o;return!0}}]);return InclusionTree}(),Za=function(){function BitModel(t,r,o,c,l){jpx_classCallCheck(this,BitModel);this.width=t;this.height=r;var u;u="HH"===o?BitModel.HHContextLabel:"HL"===o?BitModel.HLContextLabel:BitModel.LLAndLHContextsLabel;this.contextLabelTable=u;var h,d=t*r;this.neighborsSignificance=new Uint8Array(d);this.coefficentsSign=new Uint8Array(d);h=l>14?new Uint32Array(d):l>6?new Uint16Array(d):new Uint8Array(d);this.coefficentsMagnitude=h;this.processingFlags=new Uint8Array(d);var g=new Uint8Array(d);if(0!==c)for(var y=0;y<d;y++)g[y]=c;this.bitsDecoded=g;this.reset()}jpx_createClass(BitModel,[{key:"setDecoder",value:function setDecoder(t){this.decoder=t}},{key:"reset",value:function reset(){this.contexts=new Int8Array(19);this.contexts[0]=8;this.contexts[BitModel.UNIFORM_CONTEXT]=92;this.contexts[BitModel.RUNLENGTH_CONTEXT]=6}},{key:"setNeighborsSignificance",value:function setNeighborsSignificance(t,r,o){var c,l=this.neighborsSignificance,u=this.width,h=this.height,d=r>0,g=r+1<u;if(t>0){c=o-u;d&&(l[c-1]+=16);g&&(l[c+1]+=16);l[c]+=4}if(t+1<h){c=o+u;d&&(l[c-1]+=16);g&&(l[c+1]+=16);l[c]+=4}d&&(l[o-1]+=1);g&&(l[o+1]+=1);l[o]|=128}},{key:"runSignificancePropagationPass",value:function runSignificancePropagationPass(){for(var t=this.decoder,r=this.width,o=this.height,c=this.coefficentsMagnitude,l=this.coefficentsSign,u=this.neighborsSignificance,h=this.processingFlags,d=this.contexts,g=this.contextLabelTable,y=this.bitsDecoded,m=0;m<o;m+=4)for(var v=0;v<r;v++)for(var _=m*r+v,w=0;w<4;w++,_+=r){var k=m+w;if(k>=o)break;h[_]&=-2;if(!c[_]&&u[_]){var x=g[u[_]];if(t.readBit(d,x)){var S=this.decodeSignBit(k,v,_);l[_]=S;c[_]=1;this.setNeighborsSignificance(k,v,_);h[_]|=2}y[_]++;h[_]|=1}}}},{key:"decodeSignBit",value:function decodeSignBit(t,r,o){var c,l,u,h,d,g,y=this.width,m=this.height,v=this.coefficentsMagnitude,_=this.coefficentsSign;h=r>0&&0!==v[o-1];if(r+1<y&&0!==v[o+1]){u=_[o+1];c=h?1-u-(l=_[o-1]):1-u-u}else c=h?1-(l=_[o-1])-l:0;var w=3*c;h=t>0&&0!==v[o-y];if(t+1<m&&0!==v[o+y]){u=_[o+y];c=h?1-u-(l=_[o-y])+w:1-u-u+w}else c=h?1-(l=_[o-y])-l+w:w;if(c>=0){d=9+c;g=this.decoder.readBit(this.contexts,d)}else{d=9-c;g=1^this.decoder.readBit(this.contexts,d)}return g}},{key:"runMagnitudeRefinementPass",value:function runMagnitudeRefinementPass(){for(var t,r=this.decoder,o=this.width,c=this.height,l=this.coefficentsMagnitude,u=this.neighborsSignificance,h=this.contexts,d=this.bitsDecoded,g=this.processingFlags,y=o*c,m=4*o,v=0;v<y;v=t){t=Math.min(y,v+m);for(var _=0;_<o;_++)for(var w=v+_;w<t;w+=o)if(l[w]&&0==(1&g[w])){var k=16;if(0!=(2&g[w])){g[w]^=2;k=0===(127&u[w])?15:14}var x=r.readBit(h,k);l[w]=l[w]<<1|x;d[w]++;g[w]|=1}}}},{key:"runCleanupPass",value:function runCleanupPass(){for(var t,r=this.decoder,o=this.width,c=this.height,l=this.neighborsSignificance,u=this.coefficentsMagnitude,h=this.coefficentsSign,d=this.contexts,g=this.contextLabelTable,y=this.bitsDecoded,m=this.processingFlags,v=o,_=2*o,w=3*o,k=0;k<c;k=t){t=Math.min(k+4,c);for(var x=k*o,S=k+3<c,C=0;C<o;C++){var O=x+C,T=0,E=O,j=k,R=void 0;if(S&&0===m[O]&&0===m[O+v]&&0===m[O+_]&&0===m[O+w]&&0===l[O]&&0===l[O+v]&&0===l[O+_]&&0===l[O+w]){if(!r.readBit(d,BitModel.RUNLENGTH_CONTEXT)){y[O]++;y[O+v]++;y[O+_]++;y[O+w]++;continue}if(0!==(T=r.readBit(d,BitModel.UNIFORM_CONTEXT)<<1|r.readBit(d,BitModel.UNIFORM_CONTEXT))){j=k+T;E+=T*o}R=this.decodeSignBit(j,C,E);h[E]=R;u[E]=1;this.setNeighborsSignificance(j,C,E);m[E]|=2;E=O;for(var M=k;M<=j;M++,E+=o)y[E]++;T++}for(j=k+T;j<t;j++,E+=o)if(!u[E]&&0==(1&m[E])){var L=g[l[E]];if(1===r.readBit(d,L)){R=this.decodeSignBit(j,C,E);h[E]=R;u[E]=1;this.setNeighborsSignificance(j,C,E);m[E]|=2}y[E]++}}}}},{key:"checkSegmentationSymbol",value:function checkSegmentationSymbol(){var t=this.decoder,r=this.contexts;if(10!==(t.readBit(r,BitModel.UNIFORM_CONTEXT)<<3|t.readBit(r,BitModel.UNIFORM_CONTEXT)<<2|t.readBit(r,BitModel.UNIFORM_CONTEXT)<<1|t.readBit(r,BitModel.UNIFORM_CONTEXT)))throw new Xa("Invalid segmentation symbol")}}]);return BitModel}();_defineProperty(Za,"UNIFORM_CONTEXT",17);_defineProperty(Za,"RUNLENGTH_CONTEXT",18);_defineProperty(Za,"LLAndLHContextsLabel",new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]));_defineProperty(Za,"HLContextLabel",new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]));_defineProperty(Za,"HHContextLabel",new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]));var Qa=function(){function Transform(){jpx_classCallCheck(this,Transform);this.constructor===Transform&&unreachable("Cannot initialize Transform.")}jpx_createClass(Transform,[{key:"calculate",value:function calculate(t,r,o){for(var c=t[0],l=1,u=t.length;l<u;l++)c=this.iterate(c,t[l],r,o);return c}},{key:"extend",value:function extend(t,r,o){var c=r-1,l=r+1,u=r+o-2,h=r+o;t[c--]=t[l++];t[h++]=t[u--];t[c--]=t[l++];t[h++]=t[u--];t[c--]=t[l++];t[h++]=t[u--];t[c]=t[l];t[h]=t[u]}},{key:"filter",value:function filter(t,r,o){unreachable("Abstract method `filter` called")}},{key:"iterate",value:function iterate(t,r,o,c){var l,u,h,d,g,y,m=t.width,v=t.height,_=t.items,w=r.width,k=r.height,x=r.items;for(h=0,l=0;l<v;l++){d=2*l*w;for(u=0;u<m;u++,h++,d+=2)x[d]=_[h]}_=t.items=null;var S=new Float32Array(w+8);if(1===w){if(0!=(1&o))for(y=0,h=0;y<k;y++,h+=w)x[h]*=.5}else for(y=0,h=0;y<k;y++,h+=w){S.set(x.subarray(h,h+w),4);this.extend(S,4,w);this.filter(S,4,w);x.set(S.subarray(4,4+w),h)}var C=16,O=[];for(l=0;l<C;l++)O.push(new Float32Array(k+8));var T,E=0;t=4+k;if(1===k){if(0!=(1&c))for(g=0;g<w;g++)x[g]*=.5}else for(g=0;g<w;g++){if(0===E){C=Math.min(w-g,C);for(h=g,d=4;d<t;h+=w,d++)for(T=0;T<C;T++)O[T][d]=x[h+T];E=C}var j=O[--E];this.extend(j,4,k);this.filter(j,4,k);if(0===E){h=g-C+1;for(d=4;d<t;h+=w,d++)for(T=0;T<C;T++)x[h+T]=O[T][d]}}return{width:w,height:k,items:x}}}]);return Transform}(),ei=function(t){jpx_inherits(IrreversibleTransform,t);var r=jpx_createSuper(IrreversibleTransform);function IrreversibleTransform(){jpx_classCallCheck(this,IrreversibleTransform);return r.apply(this,arguments)}jpx_createClass(IrreversibleTransform,[{key:"filter",value:function filter(t,r,o){var c,l,u,h,d=o>>1,g=-1.586134342059924,y=-.052980118572961,m=.882911075530934,v=.443506852043971,_=1.230174104914001;c=(r|=0)-3;for(l=d+4;l--;c+=2)t[c]*=.8128930661159609;u=v*t[(c=r-2)-1];for(l=d+3;l--;c+=2){h=v*t[c+1];t[c]=_*t[c]-u-h;if(!l--)break;u=v*t[(c+=2)+1];t[c]=_*t[c]-u-h}u=m*t[(c=r-1)-1];for(l=d+2;l--;c+=2){h=m*t[c+1];t[c]-=u+h;if(!l--)break;u=m*t[(c+=2)+1];t[c]-=u+h}u=y*t[(c=r)-1];for(l=d+1;l--;c+=2){h=y*t[c+1];t[c]-=u+h;if(!l--)break;u=y*t[(c+=2)+1];t[c]-=u+h}if(0!==d){u=g*t[(c=r+1)-1];for(l=d;l--;c+=2){h=g*t[c+1];t[c]-=u+h;if(!l--)break;u=g*t[(c+=2)+1];t[c]-=u+h}}}}]);return IrreversibleTransform}(Qa),ti=function(t){jpx_inherits(ReversibleTransform,t);var r=jpx_createSuper(ReversibleTransform);function ReversibleTransform(){jpx_classCallCheck(this,ReversibleTransform);return r.apply(this,arguments)}jpx_createClass(ReversibleTransform,[{key:"filter",value:function filter(t,r,o){var c,l,u=o>>1;for(c=r|=0,l=u+1;l--;c+=2)t[c]-=t[c-1]+t[c+1]+2>>2;for(c=r+1,l=u;l--;c+=2)t[c]+=t[c-1]+t[c+1]>>1}}]);return ReversibleTransform}(Qa);function jpx_stream_typeof(t){return jpx_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jpx_stream_typeof(t)}function jpx_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,jpx_stream_toPropertyKey(c.key),c)}}function jpx_stream_toPropertyKey(t){var r=function jpx_stream_toPrimitive(t,r){if("object"!=jpx_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=jpx_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==jpx_stream_typeof(r)?r:String(r)}function jpx_stream_setPrototypeOf(t,r){jpx_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return jpx_stream_setPrototypeOf(t,r)}function jpx_stream_createSuper(t){var r=function jpx_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=jpx_stream_getPrototypeOf(t);if(r){var l=jpx_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function jpx_stream_possibleConstructorReturn(t,r){if(r&&("object"===jpx_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function jpx_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function jpx_stream_getPrototypeOf(t){jpx_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return jpx_stream_getPrototypeOf(t)}var ri=function(t){!function jpx_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&jpx_stream_setPrototypeOf(t,r)}(JpxStream,t);var r=jpx_stream_createSuper(JpxStream);function JpxStream(t,o,c){var l;!function jpx_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpxStream);(l=r.call(this,o)).stream=t;l.dict=t.dict;l.maybeLength=o;l.params=c;return l}!function jpx_stream_createClass(t,r,o){r&&jpx_stream_defineProperties(t.prototype,r);o&&jpx_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(JpxStream,[{key:"bytes",get:function get(){return shadow(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function ensureBuffer(t){}},{key:"readBlock",value:function readBlock(){if(!this.eof){var t=new Ya;t.parse(this.bytes);var r=t.width,o=t.height,c=t.componentsCount,l=t.tiles.length;if(1===l)this.buffer=t.tiles[0].items;else{for(var u=new Uint8ClampedArray(r*o*c),h=0;h<l;h++)for(var d=t.tiles[h],g=d.width,y=d.height,m=d.left,v=d.top,_=d.items,w=0,k=(r*v+m)*c,x=r*c,S=g*c,C=0;C<y;C++){var O=_.subarray(w,w+S);u.set(O,k);w+=S;k+=x}this.buffer=u}this.bufferLength=this.buffer.length;this.eof=!0}}}]);return JpxStream}(Vn);function lzw_stream_typeof(t){return lzw_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lzw_stream_typeof(t)}function lzw_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,lzw_stream_toPropertyKey(c.key),c)}}function lzw_stream_toPropertyKey(t){var r=function lzw_stream_toPrimitive(t,r){if("object"!=lzw_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=lzw_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==lzw_stream_typeof(r)?r:String(r)}function lzw_stream_setPrototypeOf(t,r){lzw_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return lzw_stream_setPrototypeOf(t,r)}function lzw_stream_createSuper(t){var r=function lzw_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=lzw_stream_getPrototypeOf(t);if(r){var l=lzw_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function lzw_stream_possibleConstructorReturn(t,r){if(r&&("object"===lzw_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function lzw_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function lzw_stream_getPrototypeOf(t){lzw_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return lzw_stream_getPrototypeOf(t)}var ni=function(t){!function lzw_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&lzw_stream_setPrototypeOf(t,r)}(LZWStream,t);var r=lzw_stream_createSuper(LZWStream);function LZWStream(t,o,c){var l;!function lzw_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,LZWStream);(l=r.call(this,o)).str=t;l.dict=t.dict;l.cachedData=0;l.bitsCached=0;for(var u=4096,h={earlyChange:c,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(u),dictionaryLengths:new Uint16Array(u),dictionaryPrevCodes:new Uint16Array(u),currentSequence:new Uint8Array(u),currentSequenceLength:0},d=0;d<256;++d){h.dictionaryValues[d]=d;h.dictionaryLengths[d]=1}l.lzwState=h;return l}!function lzw_stream_createClass(t,r,o){r&&lzw_stream_defineProperties(t.prototype,r);o&&lzw_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(LZWStream,[{key:"readBits",value:function readBits(t){for(var r=this.bitsCached,o=this.cachedData;r<t;){var c=this.str.getByte();if(-1===c){this.eof=!0;return null}o=o<<8|c;r+=8}this.bitsCached=r-=t;this.cachedData=o;this.lastCode=null;return o>>>r&(1<<t)-1}},{key:"readBlock",value:function readBlock(){var t,r,o,c=1024,l=this.lzwState;if(l){var u=l.earlyChange,h=l.nextCode,d=l.dictionaryValues,g=l.dictionaryLengths,y=l.dictionaryPrevCodes,m=l.codeLength,v=l.prevCode,_=l.currentSequence,w=l.currentSequenceLength,k=0,x=this.bufferLength,S=this.ensureBuffer(this.bufferLength+c);for(t=0;t<512;t++){var C=this.readBits(m),O=w>0;if(C<256){_[0]=C;w=1}else{if(!(C>=258)){if(256===C){m=9;h=258;w=0;continue}this.eof=!0;delete this.lzwState;break}if(C<h)for(r=(w=g[C])-1,o=C;r>=0;r--){_[r]=d[o];o=y[o]}else _[w++]=_[0]}if(O){y[h]=v;g[h]=g[v]+1;d[h]=_[0];m=++h+u&h+u-1?m:0|Math.min(Math.log(h+u)/.6931471805599453+1,12)}v=C;if(c<(k+=w)){do{c+=512}while(c<k);S=this.ensureBuffer(this.bufferLength+c)}for(r=0;r<w;r++)S[x++]=_[r]}l.nextCode=h;l.codeLength=m;l.prevCode=v;l.currentSequenceLength=w;this.bufferLength=x}}}]);return LZWStream}(Vn);function predictor_stream_typeof(t){return predictor_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},predictor_stream_typeof(t)}function predictor_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,predictor_stream_toPropertyKey(c.key),c)}}function predictor_stream_toPropertyKey(t){var r=function predictor_stream_toPrimitive(t,r){if("object"!=predictor_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=predictor_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==predictor_stream_typeof(r)?r:String(r)}function predictor_stream_setPrototypeOf(t,r){predictor_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return predictor_stream_setPrototypeOf(t,r)}function predictor_stream_createSuper(t){var r=function predictor_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=predictor_stream_getPrototypeOf(t);if(r){var l=predictor_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return predictor_stream_possibleConstructorReturn(this,o)}}function predictor_stream_possibleConstructorReturn(t,r){if(r&&("object"===predictor_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return predictor_stream_assertThisInitialized(t)}function predictor_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function predictor_stream_getPrototypeOf(t){predictor_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return predictor_stream_getPrototypeOf(t)}var ai=function(t){!function predictor_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&predictor_stream_setPrototypeOf(t,r)}(PredictorStream,t);var r=predictor_stream_createSuper(PredictorStream);function PredictorStream(t,o,c){var l;!function predictor_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PredictorStream);l=r.call(this,o);if(!(c instanceof qr))return predictor_stream_possibleConstructorReturn(l,t);var u=l.predictor=c.get("Predictor")||1;if(u<=1)return predictor_stream_possibleConstructorReturn(l,t);if(2!==u&&(u<10||u>15))throw new Sr("Unsupported predictor: ".concat(u));l.readBlock=2===u?l.readBlockTiff:l.readBlockPng;l.str=t;l.dict=t.dict;var h=l.colors=c.get("Colors")||1,d=l.bits=c.get("BPC","BitsPerComponent")||8,g=l.columns=c.get("Columns")||1;l.pixBytes=h*d+7>>3;l.rowBytes=g*h*d+7>>3;return predictor_stream_possibleConstructorReturn(l,predictor_stream_assertThisInitialized(l))}!function predictor_stream_createClass(t,r,o){r&&predictor_stream_defineProperties(t.prototype,r);o&&predictor_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(PredictorStream,[{key:"readBlockTiff",value:function readBlockTiff(){var t=this.rowBytes,r=this.bufferLength,o=this.ensureBuffer(r+t),c=this.bits,l=this.colors,u=this.str.getBytes(t);this.eof=!u.length;if(!this.eof){var h,d=0,g=0,y=0,m=0,v=r;if(1===c&&1===l)for(h=0;h<t;++h){var _=u[h]^d;_^=_>>1;_^=_>>2;d=(1&(_^=_>>4))<<7;o[v++]=_}else if(8===c){for(h=0;h<l;++h)o[v++]=u[h];for(;h<t;++h){o[v]=o[v-l]+u[h];v++}}else if(16===c){var w=2*l;for(h=0;h<w;++h)o[v++]=u[h];for(;h<t;h+=2){var k=((255&u[h])<<8)+(255&u[h+1])+((255&o[v-w])<<8)+(255&o[v-w+1]);o[v++]=k>>8&255;o[v++]=255&k}}else{var x=new Uint8Array(l+1),S=(1<<c)-1,C=0,O=r,T=this.columns;for(h=0;h<T;++h)for(var E=0;E<l;++E){if(y<c){d=d<<8|255&u[C++];y+=8}x[E]=x[E]+(d>>y-c)&S;y-=c;g=g<<c|x[E];if((m+=c)>=8){o[O++]=g>>m-8&255;m-=8}}m>0&&(o[O++]=(g<<8-m)+(d&(1<<8-m)-1))}this.bufferLength+=t}}},{key:"readBlockPng",value:function readBlockPng(){var t=this.rowBytes,r=this.pixBytes,o=this.str.getByte(),c=this.str.getBytes(t);this.eof=!c.length;if(!this.eof){var l=this.bufferLength,u=this.ensureBuffer(l+t),h=u.subarray(l-t,l);0===h.length&&(h=new Uint8Array(t));var d,g,y,m=l;switch(o){case 0:for(d=0;d<t;++d)u[m++]=c[d];break;case 1:for(d=0;d<r;++d)u[m++]=c[d];for(;d<t;++d){u[m]=u[m-r]+c[d]&255;m++}break;case 2:for(d=0;d<t;++d)u[m++]=h[d]+c[d]&255;break;case 3:for(d=0;d<r;++d)u[m++]=(h[d]>>1)+c[d];for(;d<t;++d){u[m]=(h[d]+u[m-r]>>1)+c[d]&255;m++}break;case 4:for(d=0;d<r;++d){g=h[d];y=c[d];u[m++]=g+y}for(;d<t;++d){g=h[d];var v=h[d-r],_=u[m-r],w=_+g-v,k=w-_;k<0&&(k=-k);var x=w-g;x<0&&(x=-x);var S=w-v;S<0&&(S=-S);y=c[d];u[m++]=k<=x&&k<=S?_+y:x<=S?g+y:v+y}break;default:throw new Sr("Unsupported predictor: ".concat(o))}this.bufferLength+=t}}}]);return PredictorStream}(Vn);function run_length_stream_typeof(t){return run_length_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},run_length_stream_typeof(t)}function run_length_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,run_length_stream_toPropertyKey(c.key),c)}}function run_length_stream_toPropertyKey(t){var r=function run_length_stream_toPrimitive(t,r){if("object"!=run_length_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=run_length_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==run_length_stream_typeof(r)?r:String(r)}function run_length_stream_setPrototypeOf(t,r){run_length_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return run_length_stream_setPrototypeOf(t,r)}function run_length_stream_createSuper(t){var r=function run_length_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=run_length_stream_getPrototypeOf(t);if(r){var l=run_length_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function run_length_stream_possibleConstructorReturn(t,r){if(r&&("object"===run_length_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function run_length_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function run_length_stream_getPrototypeOf(t){run_length_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return run_length_stream_getPrototypeOf(t)}var ii=function(t){!function run_length_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&run_length_stream_setPrototypeOf(t,r)}(RunLengthStream,t);var r=run_length_stream_createSuper(RunLengthStream);function RunLengthStream(t,o){var c;!function run_length_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,RunLengthStream);(c=r.call(this,o)).str=t;c.dict=t.dict;return c}!function run_length_stream_createClass(t,r,o){r&&run_length_stream_defineProperties(t.prototype,r);o&&run_length_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(RunLengthStream,[{key:"readBlock",value:function readBlock(){var t=this.str.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var r,o=this.bufferLength,c=t[0];if(c<128){(r=this.ensureBuffer(o+c+1))[o++]=t[1];if(c>0){var l=this.str.getBytes(c);r.set(l,o);o+=c}}else{c=257-c;var u=t[1];r=this.ensureBuffer(o+c+1);for(var h=0;h<c;h++)r[o++]=u}this.bufferLength=o}}}]);return RunLengthStream}(Vn);function parser_typeof(t){return parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},parser_typeof(t)}function parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,parser_toPropertyKey(c.key),c)}}function parser_createClass(t,r,o){r&&parser_defineProperties(t.prototype,r);o&&parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function parser_toPropertyKey(t){var r=function parser_toPrimitive(t,r){if("object"!=parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==parser_typeof(r)?r:String(r)}var oi=function(){function Parser(t){var r=t.lexer,o=t.xref,c=t.allowStreams,l=void 0!==c&&c,u=t.recoveryMode,h=void 0!==u&&u;parser_classCallCheck(this,Parser);this.lexer=r;this.xref=o;this.allowStreams=l;this.recoveryMode=h;this.imageCache=Object.create(null);this._imageId=0;this.refill()}parser_createClass(Parser,[{key:"refill",value:function refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}},{key:"shift",value:function shift(){if(this.buf2 instanceof Gr&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}},{key:"tryShift",value:function tryShift(){try{this.shift();return!0}catch(t){if(t instanceof Yr)throw t;return!1}}},{key:"getObj",value:function getObj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=this.buf1;this.shift();if(r instanceof Gr)switch(r.cmd){case"BI":return this.makeInlineImage(t);case"[":for(var o=[];!isCmd(this.buf1,"]")&&this.buf1!==Mr;)o.push(this.getObj(t));if(this.buf1===Mr){if(this.recoveryMode)return o;throw new Jr("End of file inside array.")}this.shift();return o;case"<<":for(var c=new qr(this.xref);!isCmd(this.buf1,">>")&&this.buf1!==Mr;)if(this.buf1 instanceof Ur){var l=this.buf1.name;this.shift();if(this.buf1===Mr)break;c.set(l,this.getObj(t))}else{info("Malformed dictionary: key must be a name object");this.shift()}if(this.buf1===Mr){if(this.recoveryMode)return c;throw new Jr("End of file inside dictionary.")}if(isCmd(this.buf2,"stream"))return this.allowStreams?this.makeStream(c,t):c;this.shift();return c;default:return r}if(Number.isInteger(r)){if(Number.isInteger(this.buf1)&&isCmd(this.buf2,"R")){var u=zr.get(r,this.buf1);this.shift();this.shift();return u}return r}return"string"==typeof r&&t?t.decryptString(r):r}},{key:"findDefaultInlineStreamEnd",value:function findDefaultInlineStreamEnd(t){for(var r,o,c=this.lexer.knownCommands,l=t.pos,u=0;-1!==(r=t.getByte());)if(0===u)u=69===r?1:0;else if(1===u)u=73===r?2:0;else if(32===r||10===r||13===r){o=t.pos;var h=t.peekBytes(15),d=h.length;if(0===d)break;for(var g=0;g<d;g++)if((0!==(r=h[g])||0===h[g+1])&&10!==r&&13!==r&&(r<32||r>127)){u=0;break}if(2!==u)continue;if(!c){warn("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}var y=new ci(new tn(h.slice()),c);y._hexStringWarn=function(){};for(var m=0;;){var v=y.getObj();if(v===Mr){u=0;break}if(v instanceof Gr){var _=c[v.cmd];if(!_){u=0;break}if(_.variableArgs?m<=_.numArgs:m===_.numArgs)break;m=0}else m++}if(2===u)break}else u=0;if(-1===r){warn("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(o){warn('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-o))}}var w=4;t.skip(-w);r=t.peekByte();t.skip(w);isWhiteSpace(r)||w--;return t.pos-w-l}},{key:"findDCTDecodeInlineStreamEnd",value:function findDCTDecodeInlineStreamEnd(t){for(var r,o,c=t.pos,l=!1;-1!==(r=t.getByte());)if(255===r){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:l=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(o=t.getUint16())>2?t.skip(o-2):t.skip(-2)}if(l)break}var u=t.pos-c;if(-1===r){warn("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");t.skip(-u);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return u}},{key:"findASCII85DecodeInlineStreamEnd",value:function findASCII85DecodeInlineStreamEnd(t){for(var r,o=t.pos;-1!==(r=t.getByte());)if(126===r){var c=t.pos;r=t.peekByte();for(;isWhiteSpace(r);){t.skip();r=t.peekByte()}if(62===r){t.skip();break}if(t.pos>c){var l=t.peekBytes(2);if(69===l[0]&&73===l[1])break}}var u=t.pos-o;if(-1===r){warn("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-u);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return u}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function findASCIIHexDecodeInlineStreamEnd(t){for(var r,o=t.pos;-1!==(r=t.getByte())&&62!==r;);var c=t.pos-o;if(-1===r){warn("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-c);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return c}},{key:"inlineStreamSkipEI",value:function inlineStreamSkipEI(t){for(var r,o=0;-1!==(r=t.getByte());)if(0===o)o=69===r?1:0;else if(1===o)o=73===r?2:0;else if(2===o)break}},{key:"makeInlineImage",value:function makeInlineImage(t){for(var r,o=this.lexer,c=o.stream,l=Object.create(null);!isCmd(this.buf1,"ID")&&this.buf1!==Mr;){if(!(this.buf1 instanceof Ur))throw new Sr("Dictionary key must be a name object");var u=this.buf1.name;this.shift();if(this.buf1===Mr)break;l[u]=this.getObj(t)}-1!==o.beginInlineImagePos&&(r=c.pos-o.beginInlineImagePos);var h,d=this.xref.fetchIfRef(l.F||l.Filter);if(d instanceof Ur)h=d.name;else if(Array.isArray(d)){var g=this.xref.fetchIfRef(d[0]);g instanceof Ur&&(h=g.name)}var y,m,v=c.pos;switch(h){case"DCT":case"DCTDecode":y=this.findDCTDecodeInlineStreamEnd(c);break;case"A85":case"ASCII85Decode":y=this.findASCII85DecodeInlineStreamEnd(c);break;case"AHx":case"ASCIIHexDecode":y=this.findASCIIHexDecodeInlineStreamEnd(c);break;default:y=this.findDefaultInlineStreamEnd(c)}if(y<1e3&&r>0){var _=c.pos;c.pos=o.beginInlineImagePos;m=function getInlineImageCacheKey(t){for(var r=[],o=t.length,c=0;c<o-1;)r.push(t[c++]<<8|t[c++]);c<o&&r.push(t[c]);return o+"_"+String.fromCharCode.apply(null,r)}(c.getBytes(r+y));c.pos=_;var w=this.imageCache[m];if(void 0!==w){this.buf2=Gr.get("EI");this.shift();w.reset();return w}}var k=new qr(this.xref);for(var x in l)k.set(x,l[x]);var S=c.makeSubStream(v,y,k);t&&(S=t.createStream(S,y));(S=this.filter(S,k,y)).dict=k;if(void 0!==m){S.cacheKey="inline_img_".concat(++this._imageId);this.imageCache[m]=S}this.buf2=Gr.get("EI");this.shift();return S}},{key:"_findStreamLength",value:function _findStreamLength(t,r){var o=this.lexer.stream;o.pos=t;for(var c=r.length;o.pos<o.end;){var l=o.peekBytes(2048),u=l.length-c;if(u<=0)break;for(var h=0;h<u;){for(var d=0;d<c&&l[h+d]===r[d];)d++;if(d>=c){o.pos+=h;return o.pos-t}h++}o.pos+=u}return-1}},{key:"makeStream",value:function makeStream(t,r){var o=this.lexer,c=o.stream;o.skipToNextLine();var l=c.pos-1,u=t.get("Length");if(!Number.isInteger(u)){info('Bad length "'.concat(u&&u.toString(),'" in stream.'));u=0}c.pos=l+u;o.nextChar();if(this.tryShift()&&isCmd(this.buf2,"endstream"))this.shift();else{var h=new Uint8Array([101,110,100,115,116,114,101,97,109]),d=this._findStreamLength(l,h);if(d<0){for(var g=1;g<=1;g++){var y=h.length-g,m=h.slice(0,y),v=this._findStreamLength(l,m);if(v>=0){if(!isWhiteSpace(c.peekBytes(y+1)[y]))break;info('Found "'.concat(bytesToString(m),'" when ')+"searching for endstream command.");d=v;break}}if(d<0)throw new Sr("Missing endstream command.")}u=d;o.nextChar();this.shift();this.shift()}this.shift();c=c.makeSubStream(l,u,t);r&&(c=r.createStream(c,u));(c=this.filter(c,t,u)).dict=t;return c}},{key:"filter",value:function filter(t,r,o){var filter=r.get("F","Filter"),c=r.get("DP","DecodeParms");if(filter instanceof Ur){Array.isArray(c)&&warn("/DecodeParms should not be an Array, when /Filter is a Name.");return this.makeFilter(t,filter.name,o,c)}var l=o;if(Array.isArray(filter))for(var u=filter,h=c,d=0,g=u.length;d<g;++d){filter=this.xref.fetchIfRef(u[d]);if(!(filter instanceof Ur))throw new Sr('Bad filter name "'.concat(filter,'"'));c=null;Array.isArray(h)&&d in h&&(c=this.xref.fetchIfRef(h[d]));t=this.makeFilter(t,filter.name,l,c);l=null}return t}},{key:"makeFilter",value:function makeFilter(t,r,o,c){if(0===o){warn('Empty "'.concat(r,'" stream.'));return new nn}try{switch(r){case"Fl":case"FlateDecode":return c?new ai(new fa(t,o),o,c):new fa(t,o);case"LZW":case"LZWDecode":var l=1;if(c){c.has("EarlyChange")&&(l=c.get("EarlyChange"));return new ai(new ni(t,o,l),o,c)}return new ni(t,o,l);case"DCT":case"DCTDecode":return new Va(t,o,c);case"JPX":case"JPXDecode":return new ri(t,o,c);case"A85":case"ASCII85Decode":return new Kn(t,o);case"AHx":case"ASCIIHexDecode":return new Yn(t,o);case"CCF":case"CCITTFaxDecode":return new aa(t,o,c);case"RL":case"RunLengthDecode":return new ii(t,o);case"JBIG2Decode":return new Ea(t,o,c)}warn('Filter "'.concat(r,'" is not supported.'));return t}catch(t){if(t instanceof Yr)throw t;warn('Invalid stream: "'.concat(t,'"'));return new nn}}}]);return Parser}(),si=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function toHexDigit(t){return t>=48&&t<=57?15&t:t>=65&&t<=70||t>=97&&t<=102?9+(15&t):-1}var ci=function(){function Lexer(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;parser_classCallCheck(this,Lexer);this.stream=t;this.nextChar();this.strBuf=[];this.knownCommands=r;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}parser_createClass(Lexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function peekChar(){return this.stream.peekByte()}},{key:"getNumber",value:function getNumber(){var t=this.currentChar,r=!1,o=0,c=1;if(45===t){c=-1;45===(t=this.nextChar())&&(t=this.nextChar())}else 43===t&&(t=this.nextChar());if(10===t||13===t)do{t=this.nextChar()}while(10===t||13===t);if(46===t){o=10;t=this.nextChar()}if(t<48||t>57){var l="Invalid number: ".concat(String.fromCharCode(t)," (charCode ").concat(t,")");if(isWhiteSpace(t)||-1===t){info('Lexer.getNumber - "'.concat(l,'".'));return 0}throw new Sr(l)}for(var u=t-48,h=0,d=1;(t=this.nextChar())>=0;)if(t>=48&&t<=57){var g=t-48;if(r)h=10*h+g;else{0!==o&&(o*=10);u=10*u+g}}else if(46===t){if(0!==o)break;o=1}else if(45===t)warn("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t){d=45===t?-1:1;this.nextChar()}else if(t<48||t>57)break;r=!0}0!==o&&(u/=o);r&&(u*=Math.pow(10,d*h));return c*u}},{key:"getString",value:function getString(){var t=1,r=!1,o=this.strBuf;o.length=0;for(var c=this.nextChar();;){var l=!1;switch(0|c){case-1:warn("Unterminated string");r=!0;break;case 40:++t;o.push("(");break;case 41:if(0==--t){this.nextChar();r=!0}else o.push(")");break;case 92:switch(c=this.nextChar()){case-1:warn("Unterminated string");r=!0;break;case 110:o.push("\n");break;case 114:o.push("\r");break;case 116:o.push("\t");break;case 98:o.push("\b");break;case 102:o.push("\f");break;case 92:case 40:case 41:o.push(String.fromCharCode(c));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var u=15&c;l=!0;if((c=this.nextChar())>=48&&c<=55){u=(u<<3)+(15&c);if((c=this.nextChar())>=48&&c<=55){l=!1;u=(u<<3)+(15&c)}}o.push(String.fromCharCode(u));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:o.push(String.fromCharCode(c))}break;default:o.push(String.fromCharCode(c))}if(r)break;l||(c=this.nextChar())}return o.join("")}},{key:"getName",value:function getName(){var t,r,o=this.strBuf;o.length=0;for(;(t=this.nextChar())>=0&&!si[t];)if(35===t){t=this.nextChar();if(si[t]){warn("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");o.push("#");break}var c=toHexDigit(t);if(-1!==c){r=t;var l=toHexDigit(t=this.nextChar());if(-1===l){warn("Lexer_getName: Illegal digit (".concat(String.fromCharCode(t),") ")+"in hexadecimal number.");o.push("#",String.fromCharCode(r));if(si[t])break;o.push(String.fromCharCode(t));continue}o.push(String.fromCharCode(c<<4|l))}else o.push("#",String.fromCharCode(t))}else o.push(String.fromCharCode(t));o.length>127&&warn("Name token is longer than allowed by the spec: ".concat(o.length));return Ur.get(o.join(""))}},{key:"_hexStringWarn",value:function _hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||warn("getHexString - ignoring invalid character: ".concat(t)):warn("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function getHexString(){var t=this.strBuf;t.length=0;var r,o,c=this.currentChar,l=!0;this._hexStringNumWarn=0;for(;;){if(c<0){warn("Unterminated hex string");break}if(62===c){this.nextChar();break}if(1!==si[c]){if(l){if(-1===(r=toHexDigit(c))){this._hexStringWarn(c);c=this.nextChar();continue}}else{if(-1===(o=toHexDigit(c))){this._hexStringWarn(c);c=this.nextChar();continue}t.push(String.fromCharCode(r<<4|o))}l=!l;c=this.nextChar()}else c=this.nextChar()}return t.join("")}},{key:"getObj",value:function getObj(){for(var t=!1,r=this.currentChar;;){if(r<0)return Mr;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(1!==si[r])break;r=this.nextChar()}switch(0|r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return Gr.get("[");case 93:this.nextChar();return Gr.get("]");case 60:if(60===(r=this.nextChar())){this.nextChar();return Gr.get("<<")}return this.getHexString();case 62:if(62===(r=this.nextChar())){this.nextChar();return Gr.get(">>")}return Gr.get(">");case 123:this.nextChar();return Gr.get("{");case 125:this.nextChar();return Gr.get("}");case 41:this.nextChar();throw new Sr("Illegal character: ".concat(r))}var o=String.fromCharCode(r);if(r<32||r>127){var c=this.peekChar();if(c>=32&&c<=127){this.nextChar();return Gr.get(o)}}for(var l=this.knownCommands,u=void 0!==(null==l?void 0:l[o]);(r=this.nextChar())>=0&&!si[r];){var h=o+String.fromCharCode(r);if(u&&void 0===l[h])break;if(128===o.length)throw new Sr("Command token too long: ".concat(o.length));o=h;u=void 0!==(null==l?void 0:l[o])}if("true"===o)return!0;if("false"===o)return!1;if("null"===o)return null;"BI"===o&&(this.beginInlineImagePos=this.stream.pos);return Gr.get(o)}},{key:"skipToNextLine",value:function skipToNextLine(){for(var t=this.currentChar;t>=0;){if(13===t){10===(t=this.nextChar())&&this.nextChar();break}if(10===t){this.nextChar();break}t=this.nextChar()}}}]);return Lexer}(),fi=function(){function Linearization(){parser_classCallCheck(this,Linearization)}parser_createClass(Linearization,null,[{key:"create",value:function create(t){function getInt(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=t.get(r);if(Number.isInteger(c)&&(o?c>=0:c>0))return c;throw new Error('The "'.concat(r,'" parameter in the linearization ')+"dictionary is invalid.")}var r,o,c=new oi({lexer:new ci(t),xref:null}),l=c.getObj(),u=c.getObj(),h=c.getObj(),d=c.getObj();if(!(Number.isInteger(l)&&Number.isInteger(u)&&isCmd(h,"obj")&&d instanceof qr&&"number"==typeof(r=d.get("Linearized"))&&r>0))return null;if((o=getInt(d,"L"))!==t.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:o,hints:function getHints(t){var r,o=t.get("H");if(Array.isArray(o)&&(2===(r=o.length)||4===r)){for(var c=0;c<r;c++){var l=o[c];if(!(Number.isInteger(l)&&l>0))throw new Error("Hint (".concat(c,") in the linearization dictionary is invalid."))}return o}throw new Error("Hint array in the linearization dictionary is invalid.")}(d),objectNumberFirst:getInt(d,"O"),endFirst:getInt(d,"E"),numPages:getInt(d,"N"),mainXRefEntriesOffset:getInt(d,"T"),pageFirst:d.has("P")?getInt(d,"P",!0):0}}}]);return Linearization}();function cmap_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */cmap_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==cmap_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(cmap_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function cmap_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function cmap_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){cmap_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){cmap_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function cmap_setPrototypeOf(t,r){cmap_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return cmap_setPrototypeOf(t,r)}function cmap_createSuper(t){var r=function cmap_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=cmap_getPrototypeOf(t);if(r){var l=cmap_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function cmap_possibleConstructorReturn(t,r){if(r&&("object"===cmap_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function cmap_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function cmap_getPrototypeOf(t){cmap_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return cmap_getPrototypeOf(t)}function cmap_typeof(t){return cmap_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cmap_typeof(t)}function cmap_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function cmap_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,cmap_toPropertyKey(c.key),c)}}function cmap_createClass(t,r,o){r&&cmap_defineProperties(t.prototype,r);o&&cmap_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function cmap_toPropertyKey(t){var r=function cmap_toPrimitive(t,r){if("object"!=cmap_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=cmap_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==cmap_typeof(r)?r:String(r)}var hi=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],pi=Math.pow(2,24)-1,di=function(){function CMap(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];cmap_classCallCheck(this,CMap);this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=!1;this.useCMap=null;this.builtInCMap=t}cmap_createClass(CMap,[{key:"addCodespaceRange",value:function addCodespaceRange(t,r,o){this.codespaceRanges[t-1].push(r,o);this.numCodespaceRanges++}},{key:"mapCidRange",value:function mapCidRange(t,r,o){if(r-t>pi)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=r;)this._map[t++]=o++}},{key:"mapBfRange",value:function mapBfRange(t,r,o){if(r-t>pi)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var c=o.length-1;t<=r;){this._map[t++]=o;var l=o.charCodeAt(c)+1;l>255?o=o.substring(0,c-1)+String.fromCharCode(o.charCodeAt(c-1)+1)+"\0":o=o.substring(0,c)+String.fromCharCode(l)}}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){if(r-t>pi)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var c=o.length,l=0;t<=r&&l<c;){this._map[t]=o[l++];++t}}},{key:"mapOne",value:function mapOne(t,r){this._map[t]=r}},{key:"lookup",value:function lookup(t){return this._map[t]}},{key:"contains",value:function contains(t){return void 0!==this._map[t]}},{key:"forEach",value:function forEach(t){var r=this._map,o=r.length;if(o<=65536)for(var c=0;c<o;c++)void 0!==r[c]&&t(c,r[c]);else for(var l in r)t(l,r[l])}},{key:"charCodeOf",value:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var o in r)if(r[o]===t)return 0|o;return-1}},{key:"getMap",value:function getMap(){return this._map}},{key:"readCharCode",value:function readCharCode(t,r,o){for(var c=0,l=this.codespaceRanges,u=0,h=l.length;u<h;u++){c=(c<<8|t.charCodeAt(r+u))>>>0;for(var d=l[u],g=0,y=d.length;g<y;){var m=d[g++],v=d[g++];if(c>=m&&c<=v){o.charcode=c;o.length=u+1;return}}}o.charcode=0;o.length=1}},{key:"getCharCodeLength",value:function getCharCodeLength(t){for(var r=this.codespaceRanges,o=0,c=r.length;o<c;o++)for(var l=r[o],u=0,h=l.length;u<h;){var d=l[u++],g=l[u++];if(t>=d&&t<=g)return o+1}return 1}},{key:"length",get:function get(){return this._map.length}},{key:"isIdentityCMap",get:function get(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var t=0;t<65536;t++)if(this._map[t]!==t)return!1;return!0}}]);return CMap}(),gi=function(t){!function cmap_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&cmap_setPrototypeOf(t,r)}(IdentityCMap,t);var r=cmap_createSuper(IdentityCMap);function IdentityCMap(t,o){var c;cmap_classCallCheck(this,IdentityCMap);(c=r.call(this)).vertical=t;c.addCodespaceRange(o,0,65535);return c}cmap_createClass(IdentityCMap,[{key:"mapCidRange",value:function mapCidRange(t,r,o){unreachable("should not call mapCidRange")}},{key:"mapBfRange",value:function mapBfRange(t,r,o){unreachable("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){unreachable("should not call mapBfRangeToArray")}},{key:"mapOne",value:function mapOne(t,r){unreachable("should not call mapCidOne")}},{key:"lookup",value:function lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}},{key:"contains",value:function contains(t){return Number.isInteger(t)&&t<=65535}},{key:"forEach",value:function forEach(t){for(var r=0;r<=65535;r++)t(r,r)}},{key:"charCodeOf",value:function charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}},{key:"getMap",value:function getMap(){for(var t=new Array(65536),r=0;r<=65535;r++)t[r]=r;return t}},{key:"length",get:function get(){return 65536}},{key:"isIdentityCMap",get:function get(){unreachable("should not access .isIdentityCMap")}}]);return IdentityCMap}(di);function strToInt(t){for(var r=0,o=0;o<t.length;o++)r=r<<8|t.charCodeAt(o);return r>>>0}function expectString(t){if("string"!=typeof t)throw new Sr("Malformed CMap: expected string.")}function expectInt(t){if(!Number.isInteger(t))throw new Sr("Malformed CMap: expected int.")}function parseBfChar(t,r){for(;;){var o=r.getObj();if(o===Mr)break;if(isCmd(o,"endbfchar"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var l=o;t.mapOne(c,l)}}function parseBfRange(t,r){for(;;){var o=r.getObj();if(o===Mr)break;if(isCmd(o,"endbfrange"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var l=strToInt(o);o=r.getObj();if(Number.isInteger(o)||"string"==typeof o){var u=Number.isInteger(o)?String.fromCharCode(o):o;t.mapBfRange(c,l,u)}else{if(!isCmd(o,"["))break;o=r.getObj();for(var h=[];!isCmd(o,"]")&&o!==Mr;){h.push(o);o=r.getObj()}t.mapBfRangeToArray(c,l,h)}}throw new Sr("Invalid bf range.")}function parseCidChar(t,r){for(;;){var o=r.getObj();if(o===Mr)break;if(isCmd(o,"endcidchar"))return;expectString(o);var c=strToInt(o);expectInt(o=r.getObj());var l=o;t.mapOne(c,l)}}function parseCidRange(t,r){for(;;){var o=r.getObj();if(o===Mr)break;if(isCmd(o,"endcidrange"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var l=strToInt(o);expectInt(o=r.getObj());var u=o;t.mapCidRange(c,l,u)}}function parseCodespaceRange(t,r){for(;;){var o=r.getObj();if(o===Mr)break;if(isCmd(o,"endcodespacerange"))return;if("string"!=typeof o)break;var c=strToInt(o);if("string"!=typeof(o=r.getObj()))break;var l=strToInt(o);t.addCodespaceRange(o.length,c,l)}throw new Sr("Invalid codespace range.")}function parseWMode(t,r){var o=r.getObj();Number.isInteger(o)&&(t.vertical=!!o)}function parseCMapName(t,r){var o=r.getObj();o instanceof Ur&&(t.name=o.name)}function parseCMap(t,r,o,c){return _parseCMap.apply(this,arguments)}function _parseCMap(){return(_parseCMap=cmap_asyncToGenerator(cmap_regeneratorRuntime().mark((function _callee2(t,r,o,c){var l,u,h;return cmap_regeneratorRuntime().wrap((function _callee2$(d){for(;;)switch(d.prev=d.next){case 0:0;d.prev=1;if((h=r.getObj())!==Mr){d.next=7;break}return d.abrupt("break",39);case 7:if(!(h instanceof Ur)){d.next=12;break}"WMode"===h.name?parseWMode(t,r):"CMapName"===h.name&&parseCMapName(t,r);l=h;d.next=29;break;case 12:if(!(h instanceof Gr)){d.next=29;break}d.t0=h.cmd;d.next="endcmap"===d.t0?16:"usecmap"===d.t0?17:"begincodespacerange"===d.t0?19:"beginbfchar"===d.t0?21:"begincidchar"===d.t0?23:"beginbfrange"===d.t0?25:"begincidrange"===d.t0?27:29;break;case 16:return d.abrupt("break",39);case 17:l instanceof Ur&&(u=l.name);return d.abrupt("break",29);case 19:parseCodespaceRange(t,r);return d.abrupt("break",29);case 21:parseBfChar(t,r);return d.abrupt("break",29);case 23:parseCidChar(t,r);return d.abrupt("break",29);case 25:parseBfRange(t,r);return d.abrupt("break",29);case 27:parseCidRange(t,r);return d.abrupt("break",29);case 29:d.next=37;break;case 31:d.prev=31;d.t1=d.catch(1);if(!(d.t1 instanceof Yr)){d.next=35;break}throw d.t1;case 35:warn("Invalid cMap data: "+d.t1);return d.abrupt("continue",0);case 37:d.next=0;break;case 39:!c&&u&&(c=u);if(!c){d.next=42;break}return d.abrupt("return",extendCMap(t,o,c));case 42:return d.abrupt("return",t);case 43:case"end":return d.stop()}}),_callee2,null,[[1,31]])})))).apply(this,arguments)}function extendCMap(t,r,o){return _extendCMap.apply(this,arguments)}function _extendCMap(){return(_extendCMap=cmap_asyncToGenerator(cmap_regeneratorRuntime().mark((function _callee3(t,r,o){var c,l;return cmap_regeneratorRuntime().wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:u.next=2;return createBuiltInCMap(o,r);case 2:t.useCMap=u.sent;if(0===t.numCodespaceRanges){c=t.useCMap.codespaceRanges;for(l=0;l<c.length;l++)t.codespaceRanges[l]=c[l].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(r,o){t.contains(r)||t.mapOne(r,t.useCMap.lookup(r))}));return u.abrupt("return",t);case 6:case"end":return u.stop()}}),_callee3)})))).apply(this,arguments)}function createBuiltInCMap(t,r){return _createBuiltInCMap.apply(this,arguments)}function _createBuiltInCMap(){return(_createBuiltInCMap=cmap_asyncToGenerator(cmap_regeneratorRuntime().mark((function _callee4(t,r){var o,c,l,u,h;return cmap_regeneratorRuntime().wrap((function _callee4$(d){for(;;)switch(d.prev=d.next){case 0:if("Identity-H"!==t){d.next=4;break}return d.abrupt("return",new gi(!1,2));case 4:if("Identity-V"!==t){d.next=6;break}return d.abrupt("return",new gi(!0,2));case 6:if(hi.includes(t)){d.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){d.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:d.next=12;return r(t);case 12:o=d.sent;c=o.cMapData;l=o.compressionType;u=new di(!0);if(l!==Te.BINARY){d.next=18;break}return d.abrupt("return",(new zn).process(c,u,(function(t){return extendCMap(u,r,t)})));case 18:if(l!==Te.NONE){d.next=21;break}h=new ci(new tn(c));return d.abrupt("return",parseCMap(u,h,r,null));case 21:throw new Error('Invalid CMap "compressionType" value: '.concat(l));case 22:case"end":return d.stop()}}),_callee4)})))).apply(this,arguments)}var yi=function(){function CMapFactory(){cmap_classCallCheck(this,CMapFactory)}cmap_createClass(CMapFactory,null,[{key:"create",value:(t=cmap_asyncToGenerator(cmap_regeneratorRuntime().mark((function _callee(t){var r,o,c,l;return cmap_regeneratorRuntime().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:r=t.encoding,o=t.fetchBuiltInCMap,c=t.useCMap;if(!(r instanceof Ur)){u.next=5;break}return u.abrupt("return",createBuiltInCMap(r.name,o));case 5:if(!(r instanceof Xr)){u.next=12;break}u.next=8;return parseCMap(new di,new ci(r),o,c);case 8:if(!(l=u.sent).isIdentityCMap){u.next=11;break}return u.abrupt("return",createBuiltInCMap(l.name,o));case 11:return u.abrupt("return",l);case 12:throw new Error("Encoding required.");case 13:case"end":return u.stop()}}),_callee)}))),function create(r){return t.apply(this,arguments)})}]);var t;return CMapFactory}(),mi=(__webpack_require__(6771),__webpack_require__(7078),[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"]),vi=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],bi=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],_i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],wi=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],ki=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"],xi=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""],Si=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"],Ci=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""],Ai=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];function getEncoding(t){switch(t){case"WinAnsiEncoding":return Si;case"StandardEncoding":return xi;case"MacRomanEncoding":return ki;case"SymbolSetEncoding":return Ci;case"ZapfDingbatsEncoding":return Ai;case"ExpertEncoding":return _i;case"MacExpertEncoding":return wi;default:return null}}function cff_parser_toConsumableArray(t){return function cff_parser_arrayWithoutHoles(t){if(Array.isArray(t))return cff_parser_arrayLikeToArray(t)}(t)||function cff_parser_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||cff_parser_unsupportedIterableToArray(t)||function cff_parser_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cff_parser_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&cff_parser_setPrototypeOf(t,r)}function cff_parser_setPrototypeOf(t,r){cff_parser_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return cff_parser_setPrototypeOf(t,r)}function cff_parser_createSuper(t){var r=function cff_parser_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=cff_parser_getPrototypeOf(t);if(r){var l=cff_parser_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function cff_parser_possibleConstructorReturn(t,r){if(r&&("object"===cff_parser_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function cff_parser_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function cff_parser_getPrototypeOf(t){cff_parser_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return cff_parser_getPrototypeOf(t)}function cff_parser_typeof(t){return cff_parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cff_parser_typeof(t)}function cff_parser_slicedToArray(t,r){return function cff_parser_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function cff_parser_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||cff_parser_unsupportedIterableToArray(t,r)||function cff_parser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cff_parser_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=cff_parser_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function cff_parser_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return cff_parser_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?cff_parser_arrayLikeToArray(t,r):void 0}}function cff_parser_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function cff_parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function cff_parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,cff_parser_toPropertyKey(c.key),c)}}function cff_parser_createClass(t,r,o){r&&cff_parser_defineProperties(t.prototype,r);o&&cff_parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function cff_parser_toPropertyKey(t){var r=function cff_parser_toPrimitive(t,r){if("object"!=cff_parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=cff_parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==cff_parser_typeof(r)?r:String(r)}var Pi=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],Oi=391,Ii=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],Ti=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function stackFn(t,r){t[r-2]=t[r-2]+t[r-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function stackFn(t,r){t[r-2]=t[r-2]-t[r-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function stackFn(t,r){t[r-2]=t[r-2]/t[r-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function stackFn(t,r){t[r-1]=-t[r-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function stackFn(t,r){t[r-2]=t[r-2]*t[r-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],Fi=function(){function CFFParser(t,r,o){cff_parser_classCallCheck(this,CFFParser);this.bytes=t.getBytes();this.properties=r;this.seacAnalysisEnabled=!!o}cff_parser_createClass(CFFParser,[{key:"parse",value:function parse(){var t=this.properties,r=new Ei;this.cff=r;var o=this.parseHeader(),c=this.parseIndex(o.endPos),l=this.parseIndex(c.endPos),u=this.parseIndex(l.endPos),h=this.parseIndex(u.endPos),d=this.parseDict(l.obj.get(0)),g=this.createDict(Ni,d,r.strings);r.header=o.obj;r.names=this.parseNameIndex(c.obj);r.strings=this.parseStringIndex(u.obj);r.topDict=g;r.globalSubrIndex=h.obj;this.parsePrivateDict(r.topDict);r.isCIDFont=g.hasName("ROS");var y=g.getByName("CharStrings"),m=this.parseIndex(y).obj,v=g.getByName("FontMatrix");v&&(t.fontMatrix=v);var _,w,k=g.getByName("FontBBox");if(k){t.ascent=Math.max(k[3],k[1]);t.descent=Math.min(k[1],k[3]);t.ascentScaled=!0}if(r.isCIDFont){for(var x=this.parseIndex(g.getByName("FDArray")).obj,S=0,C=x.count;S<C;++S){var O=x.get(S),T=this.createDict(Ni,this.parseDict(O),r.strings);this.parsePrivateDict(T);r.fdArray.push(T)}w=null;_=this.parseCharsets(g.getByName("charset"),m.count,r.strings,!0);r.fdSelect=this.parseFDSelect(g.getByName("FDSelect"),m.count)}else{_=this.parseCharsets(g.getByName("charset"),m.count,r.strings,!1);w=this.parseEncoding(g.getByName("Encoding"),t,r.strings,_.charset)}r.charset=_;r.encoding=w;var E=this.parseCharStrings({charStrings:m,localSubrIndex:g.privateDict.subrsIndex,globalSubrIndex:h.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:g.privateDict});r.charStrings=E.charStrings;r.seacs=E.seacs;r.widths=E.widths;return r}},{key:"parseHeader",value:function parseHeader(){for(var t=this.bytes,r=t.length,o=0;o<r&&1!==t[o];)++o;if(o>=r)throw new Sr("Invalid CFF header");if(0!==o){info("cff data is shifted");t=t.subarray(o);this.bytes=t}var c=t[0],l=t[1],u=t[2],h=t[3];return{obj:new ji(c,l,u,h),endPos:u}}},{key:"parseDict",value:function parseDict(t){var r=0;function parseOperand(){var o=t[r++];if(30===o)return function parseFloatOperand(){var o="",c=15,l=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],u=t.length;for(;r<u;){var h=t[r++],d=h>>4,g=15&h;if(d===c)break;o+=l[d];if(g===c)break;o+=l[g]}return parseFloat(o)}();if(28===o)return o=((o=t[r++])<<24|t[r++]<<16)>>16;if(29===o)return o=(o=(o=(o=t[r++])<<8|t[r++])<<8|t[r++])<<8|t[r++];if(o>=32&&o<=246)return o-139;if(o>=247&&o<=250)return 256*(o-247)+t[r++]+108;if(o>=251&&o<=254)return-256*(o-251)-t[r++]-108;warn('CFFParser_parseDict: "'+o+'" is a reserved command.');return NaN}var o=[],c=[];r=0;for(var l=t.length;r<l;){var u=t[r];if(u<=21){12===u&&(u=u<<8|t[++r]);c.push([u,o]);o=[];++r}else o.push(parseOperand())}return c}},{key:"parseIndex",value:function parseIndex(t){var r,o,c=new Mi,l=this.bytes,u=l[t++]<<8|l[t++],h=[],d=t;if(0!==u){var g=l[t++],y=t+(u+1)*g-1;for(r=0,o=u+1;r<o;++r){for(var m=0,v=0;v<g;++v){m<<=8;m+=l[t++]}h.push(y+m)}d=h[u]}for(r=0,o=h.length-1;r<o;++r){var _=h[r],w=h[r+1];c.add(l.subarray(_,w))}return{obj:c,endPos:d}}},{key:"parseNameIndex",value:function parseNameIndex(t){for(var r=[],o=0,c=t.count;o<c;++o){var l=t.get(o);r.push(bytesToString(l))}return r}},{key:"parseStringIndex",value:function parseStringIndex(t){for(var r=new Ri,o=0,c=t.count;o<c;++o){var l=t.get(o);r.add(bytesToString(l))}return r}},{key:"createDict",value:function createDict(t,r,o){var c,l=new t(o),u=cff_parser_createForOfIteratorHelper(r);try{for(u.s();!(c=u.n()).done;){var h=cff_parser_slicedToArray(c.value,2),d=h[0],g=h[1];l.setByKey(d,g)}}catch(t){u.e(t)}finally{u.f()}return l}},{key:"parseCharString",value:function parseCharString(t,r,o,c){if(!r||t.callDepth>10)return!1;for(var l=t.stackSize,u=t.stack,h=r.length,d=0;d<h;){var g=r[d++],y=null;if(12===g){var m=r[d++];if(0===m){r[d-2]=139;r[d-1]=22;l=0}else y=Ti[m]}else if(28===g){u[l]=(r[d]<<24|r[d+1]<<16)>>16;d+=2;l++}else if(14===g){if(l>=4){l-=4;if(this.seacAnalysisEnabled){t.seac=u.slice(l,l+4);return!1}}y=Ii[g]}else if(g>=32&&g<=246){u[l]=g-139;l++}else if(g>=247&&g<=254){u[l]=g<251?(g-247<<8)+r[d]+108:-(g-251<<8)-r[d]-108;d++;l++}else if(255===g){u[l]=(r[d]<<24|r[d+1]<<16|r[d+2]<<8|r[d+3])/65536;d+=4;l++}else if(19===g||20===g){t.hints+=l>>1;if(0===t.hints){r.copyWithin(d-1,d,-1);d-=1;h-=1;continue}d+=t.hints+7>>3;l%=2;y=Ii[g]}else{if(10===g||29===g){var v=10===g?o:c;if(!v){warn("Missing subrsIndex for "+(y=Ii[g]).id);return!1}var _=32768;v.count<1240?_=107:v.count<33900&&(_=1131);var w=u[--l]+_;if(w<0||w>=v.count||isNaN(w)){warn("Out of bounds subrIndex for "+(y=Ii[g]).id);return!1}t.stackSize=l;t.callDepth++;if(!this.parseCharString(t,v.get(w),o,c))return!1;t.callDepth--;l=t.stackSize;continue}if(11===g){t.stackSize=l;return!0}if(0===g&&d===r.length){r[d-1]=14;y=Ii[14]}else{if(9===g){r.copyWithin(d-1,d,-1);d-=1;h-=1;continue}y=Ii[g]}}if(y){if(y.stem){t.hints+=l>>1;if(3===g||23===g)t.hasVStems=!0;else if(t.hasVStems&&(1===g||18===g)){warn("CFF stem hints are in wrong order");r[d-1]=1===g?3:23}}if("min"in y&&!t.undefStack&&l<y.min){warn("Not enough parameters for "+y.id+"; actual: "+l+", expected: "+y.min);if(0===l){r[d-1]=14;return!0}return!1}if(t.firstStackClearing&&y.stackClearing){t.firstStackClearing=!1;(l-=y.min)>=2&&y.stem?l%=2:l>1&&warn("Found too many parameters for stack-clearing command");l>0&&(t.width=u[l-1])}if("stackDelta"in y){"stackFn"in y&&y.stackFn(u,l);l+=y.stackDelta}else if(y.stackClearing)l=0;else if(y.resetStack){l=0;t.undefStack=!1}else if(y.undefStack){l=0;t.undefStack=!0;t.firstStackClearing=!1}}}h<r.length&&r.fill(14,h);t.stackSize=l;return!0}},{key:"parseCharStrings",value:function parseCharStrings(t){for(var r=t.charStrings,o=t.localSubrIndex,c=t.globalSubrIndex,l=t.fdSelect,u=t.fdArray,h=t.privateDict,d=[],g=[],y=r.count,m=0;m<y;m++){var v=r.get(m),_={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},w=!0,k=null,x=h;if(l&&u.length){var S=l.getFDIndex(m);if(-1===S){warn("Glyph index is not in fd select.");w=!1}if(S>=u.length){warn("Invalid fd index for glyph index.");w=!1}w&&(k=(x=u[S].privateDict).subrsIndex)}else o&&(k=o);w&&(w=this.parseCharString(_,v,k,c));if(null!==_.width){var C=x.getByName("nominalWidthX");g[m]=C+_.width}else{var O=x.getByName("defaultWidthX");g[m]=O}null!==_.seac&&(d[m]=_.seac);w||r.set(m,new Uint8Array([14]))}return{charStrings:r,seacs:d,widths:g}}},{key:"emptyPrivateDictionary",value:function emptyPrivateDictionary(t){var r=this.createDict(Hi,[],t.strings);t.setByKey(18,[0,0]);t.privateDict=r}},{key:"parsePrivateDict",value:function parsePrivateDict(t){if(t.hasName("Private")){var r=t.getByName("Private");if(Array.isArray(r)&&2===r.length){var o=r[0],c=r[1];if(0===o||c>=this.bytes.length)this.emptyPrivateDictionary(t);else{var l=c+o,u=this.bytes.subarray(c,l),h=this.parseDict(u),d=this.createDict(Hi,h,t.strings);t.privateDict=d;0===d.getByName("ExpansionFactor")&&d.setByName("ExpansionFactor",.06);if(d.getByName("Subrs")){var g=d.getByName("Subrs"),y=c+g;if(0===g||y>=this.bytes.length)this.emptyPrivateDictionary(t);else{var m=this.parseIndex(y);d.subrsIndex=m.obj}}}}else t.removeByName("Private")}else this.emptyPrivateDictionary(t)}},{key:"parseCharsets",value:function parseCharsets(t,r,o,c){if(0===t)return new zi(!0,qi.ISO_ADOBE,mi);if(1===t)return new zi(!0,qi.EXPERT,vi);if(2===t)return new zi(!0,qi.EXPERT_SUBSET,bi);var l,u,h,d=this.bytes,g=t,y=d[t++],m=[c?0:".notdef"];r-=1;switch(y){case 0:for(h=0;h<r;h++){l=d[t++]<<8|d[t++];m.push(c?l:o.get(l))}break;case 1:for(;m.length<=r;){l=d[t++]<<8|d[t++];u=d[t++];for(h=0;h<=u;h++)m.push(c?l++:o.get(l++))}break;case 2:for(;m.length<=r;){l=d[t++]<<8|d[t++];u=d[t++]<<8|d[t++];for(h=0;h<=u;h++)m.push(c?l++:o.get(l++))}break;default:throw new Sr("Unknown charset format")}var v=t,_=d.subarray(g,v);return new zi(!1,y,m,_)}},{key:"parseEncoding",value:function parseEncoding(t,r,o,c){var l,u,h,d=Object.create(null),g=this.bytes,y=!1,m=null;if(0===t||1===t){y=!0;l=t;var v=t?_i:xi;for(u=0,h=c.length;u<h;u++){var _=v.indexOf(c[u]);-1!==_&&(d[_]=u)}}else{var w=t;switch(127&(l=g[t++])){case 0:var k=g[t++];for(u=1;u<=k;u++)d[g[t++]]=u;break;case 1:var x=g[t++],S=1;for(u=0;u<x;u++)for(var C=g[t++],O=g[t++],T=C;T<=C+O;T++)d[T]=S++;break;default:throw new Sr("Unknown encoding format: ".concat(l," in CFF"))}var E=t;if(128&l){g[w]&=127;!function readSupplement(){var r=g[t++];for(u=0;u<r;u++){var l=g[t++],h=(g[t++]<<8)+(255&g[t++]);d[l]=c.indexOf(o.get(h))}}()}m=g.subarray(w,E)}return new Wi(y,l&=127,d,m)}},{key:"parseFDSelect",value:function parseFDSelect(t,r){var o,c=this.bytes,l=c[t++],u=[];switch(l){case 0:for(o=0;o<r;++o){var h=c[t++];u.push(h)}break;case 3:var d=c[t++]<<8|c[t++];for(o=0;o<d;++o){var g=c[t++]<<8|c[t++];if(0===o&&0!==g){warn("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");g=0}for(var y=c[t++],m=c[t]<<8|c[t+1],v=g;v<m;++v)u.push(y)}t+=2;break;default:throw new Sr('parseFDSelect: Unknown format "'.concat(l,'".'))}if(u.length!==r)throw new Sr("parseFDSelect: Invalid font data.");return new Vi(l,u)}}]);return CFFParser}(),Ei=function(){function CFF(){cff_parser_classCallCheck(this,CFF);this.header=null;this.names=[];this.topDict=null;this.strings=new Ri;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}cff_parser_createClass(CFF,[{key:"duplicateFirstGlyph",value:function duplicateFirstGlyph(){if(this.charStrings.count>=65535)warn("Not enough space in charstrings to duplicate first glyph.");else{var t=this.charStrings.get(0);this.charStrings.add(t);this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function hasGlyphId(t){return!(t<0||t>=this.charStrings.count)&&this.charStrings.get(t).length>0}}]);return CFF}(),ji=cff_parser_createClass((function CFFHeader(t,r,o,c){cff_parser_classCallCheck(this,CFFHeader);this.major=t;this.minor=r;this.hdrSize=o;this.offSize=c})),Ri=function(){function CFFStrings(){cff_parser_classCallCheck(this,CFFStrings);this.strings=[]}cff_parser_createClass(CFFStrings,[{key:"get",value:function get(t){return t>=0&&t<=390?Pi[t]:t-Oi<=this.strings.length?this.strings[t-Oi]:Pi[0]}},{key:"getSID",value:function getSID(t){var r=Pi.indexOf(t);return-1!==r?r:-1!==(r=this.strings.indexOf(t))?r+Oi:-1}},{key:"add",value:function add(t){this.strings.push(t)}},{key:"count",get:function get(){return this.strings.length}}]);return CFFStrings}(),Mi=function(){function CFFIndex(){cff_parser_classCallCheck(this,CFFIndex);this.objects=[];this.length=0}cff_parser_createClass(CFFIndex,[{key:"add",value:function add(t){this.length+=t.length;this.objects.push(t)}},{key:"set",value:function set(t,r){this.length+=r.length-this.objects[t].length;this.objects[t]=r}},{key:"get",value:function get(t){return this.objects[t]}},{key:"count",get:function get(){return this.objects.length}}]);return CFFIndex}(),Bi=function(){function CFFDict(t,r){cff_parser_classCallCheck(this,CFFDict);this.keyToNameMap=t.keyToNameMap;this.nameToKeyMap=t.nameToKeyMap;this.defaults=t.defaults;this.types=t.types;this.opcodes=t.opcodes;this.order=t.order;this.strings=r;this.values=Object.create(null)}cff_parser_createClass(CFFDict,[{key:"setByKey",value:function setByKey(t,r){if(!(t in this.keyToNameMap))return!1;if(0===r.length)return!0;var o,c=cff_parser_createForOfIteratorHelper(r);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(isNaN(l)){warn('Invalid CFFDict value: "'.concat(r,'" for key "').concat(t,'".'));return!0}}}catch(t){c.e(t)}finally{c.f()}var u=this.types[t];"num"!==u&&"sid"!==u&&"offset"!==u||(r=r[0]);this.values[t]=r;return!0}},{key:"setByName",value:function setByName(t,r){if(!(t in this.nameToKeyMap))throw new Sr('Invalid dictionary name "'.concat(t,'"'));this.values[this.nameToKeyMap[t]]=r}},{key:"hasName",value:function hasName(t){return this.nameToKeyMap[t]in this.values}},{key:"getByName",value:function getByName(t){if(!(t in this.nameToKeyMap))throw new Sr("Invalid dictionary name ".concat(t,'"'));var r=this.nameToKeyMap[t];return r in this.values?this.values[r]:this.defaults[r]}},{key:"removeByName",value:function removeByName(t){delete this.values[this.nameToKeyMap[t]]}}],[{key:"createTables",value:function createTables(t){var r,o={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},c=cff_parser_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value,u=Array.isArray(l[0])?(l[0][0]<<8)+l[0][1]:l[0];o.keyToNameMap[u]=l[1];o.nameToKeyMap[l[1]]=u;o.types[u]=l[2];o.defaults[u]=l[3];o.opcodes[u]=Array.isArray(l[0])?l[0]:[l[0]];o.order.push(u)}}catch(t){c.e(t)}finally{c.f()}return o}}]);return CFFDict}(),Di=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],Ni=function(t){cff_parser_inherits(CFFTopDict,t);var r=cff_parser_createSuper(CFFTopDict);function CFFTopDict(t){var o;cff_parser_classCallCheck(this,CFFTopDict);(o=r.call(this,CFFTopDict.tables,t)).privateDict=null;return o}cff_parser_createClass(CFFTopDict,null,[{key:"tables",get:function get(){return shadow(this,"tables",this.createTables(Di))}}]);return CFFTopDict}(Bi),Gi=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],Hi=function(t){cff_parser_inherits(CFFPrivateDict,t);var r=cff_parser_createSuper(CFFPrivateDict);function CFFPrivateDict(t){var o;cff_parser_classCallCheck(this,CFFPrivateDict);(o=r.call(this,CFFPrivateDict.tables,t)).subrsIndex=null;return o}cff_parser_createClass(CFFPrivateDict,null,[{key:"tables",get:function get(){return shadow(this,"tables",this.createTables(Gi))}}]);return CFFPrivateDict}(Bi),qi={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},zi=cff_parser_createClass((function CFFCharset(t,r,o,c){cff_parser_classCallCheck(this,CFFCharset);this.predefined=t;this.format=r;this.charset=o;this.raw=c})),Wi=cff_parser_createClass((function CFFEncoding(t,r,o,c){cff_parser_classCallCheck(this,CFFEncoding);this.predefined=t;this.format=r;this.encoding=o;this.raw=c})),Vi=function(){function CFFFDSelect(t,r){cff_parser_classCallCheck(this,CFFFDSelect);this.format=t;this.fdSelect=r}cff_parser_createClass(CFFFDSelect,[{key:"getFDIndex",value:function getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}}]);return CFFFDSelect}(),Xi=function(){function CFFOffsetTracker(){cff_parser_classCallCheck(this,CFFOffsetTracker);this.offsets=Object.create(null)}cff_parser_createClass(CFFOffsetTracker,[{key:"isTracking",value:function isTracking(t){return t in this.offsets}},{key:"track",value:function track(t,r){if(t in this.offsets)throw new Sr("Already tracking location of ".concat(t));this.offsets[t]=r}},{key:"offset",value:function offset(t){for(var r in this.offsets)this.offsets[r]+=t}},{key:"setEntryLocation",value:function setEntryLocation(t,r,o){if(!(t in this.offsets))throw new Sr("Not tracking location of ".concat(t));for(var c=o.data,l=this.offsets[t],u=0,h=r.length;u<h;++u){var d=5*u+l,g=d+1,y=d+2,m=d+3,v=d+4;if(29!==c[d]||0!==c[g]||0!==c[y]||0!==c[m]||0!==c[v])throw new Sr("writing to an offset that is not empty");var _=r[u];c[d]=29;c[g]=_>>24&255;c[y]=_>>16&255;c[m]=_>>8&255;c[v]=255&_}}}]);return CFFOffsetTracker}(),Ki=function(){function CFFCompiler(t){cff_parser_classCallCheck(this,CFFCompiler);this.cff=t}cff_parser_createClass(CFFCompiler,[{key:"compile",value:function compile(){var t=this.cff,r={data:[],length:0,add:function add(t){try{var r;(r=this.data).push.apply(r,cff_parser_toConsumableArray(t))}catch(r){this.data=this.data.concat(t)}this.length=this.data.length}},o=this.compileHeader(t.header);r.add(o);var c=this.compileNameIndex(t.names);r.add(c);if(t.isCIDFont&&t.topDict.hasName("FontMatrix")){var l=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");var u,h=cff_parser_createForOfIteratorHelper(t.fdArray);try{for(h.s();!(u=h.n()).done;){var d=u.value,g=l.slice(0);d.hasName("FontMatrix")&&(g=Or.transform(g,d.getByName("FontMatrix")));d.setByName("FontMatrix",g)}}catch(t){h.e(t)}finally{h.f()}}var y=t.topDict.getByName("XUID");(null==y?void 0:y.length)>16&&t.topDict.removeByName("XUID");t.topDict.setByName("charset",0);var m=this.compileTopDicts([t.topDict],r.length,t.isCIDFont);r.add(m.output);var v=m.trackers[0],_=this.compileStringIndex(t.strings.strings);r.add(_);var w=this.compileIndex(t.globalSubrIndex);r.add(w);if(t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)v.setEntryLocation("Encoding",[t.encoding.format],r);else{var k=this.compileEncoding(t.encoding);v.setEntryLocation("Encoding",[r.length],r);r.add(k)}var x=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);v.setEntryLocation("charset",[r.length],r);r.add(x);var S=this.compileCharStrings(t.charStrings);v.setEntryLocation("CharStrings",[r.length],r);r.add(S);if(t.isCIDFont){v.setEntryLocation("FDSelect",[r.length],r);var C=this.compileFDSelect(t.fdSelect);r.add(C);m=this.compileTopDicts(t.fdArray,r.length,!0);v.setEntryLocation("FDArray",[r.length],r);r.add(m.output);var O=m.trackers;this.compilePrivateDicts(t.fdArray,O,r)}this.compilePrivateDicts([t.topDict],[v],r);r.add([0]);return r.data}},{key:"encodeNumber",value:function encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}},{key:"encodeFloat",value:function encodeFloat(t){var r=t.toString(),o=CFFCompiler.EncodeFloatRegExp.exec(r);if(o){var c=parseFloat("1e"+((o[2]?+o[2]:0)+o[1].length));r=(Math.round(t*c)/c).toString()}var l,u,h="";for(l=0,u=r.length;l<u;++l){var d=r[l];h+="e"===d?"-"===r[++l]?"c":"b":"."===d?"a":"-"===d?"e":d}var g=[30];for(l=0,u=(h+=1&h.length?"f":"ff").length;l<u;l+=2)g.push(parseInt(h.substring(l,l+2),16));return g}},{key:"encodeInteger",value:function encodeInteger(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?[28,t>>8&255,255&t]:[29,t>>24&255,t>>16&255,t>>8&255,255&t]}},{key:"compileHeader",value:function compileHeader(t){return[t.major,t.minor,4,t.offSize]}},{key:"compileNameIndex",value:function compileNameIndex(t){var r,o=new Mi,c=cff_parser_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){for(var l=r.value,u=Math.min(l.length,127),h=new Array(u),d=0;d<u;d++){var g=l[d];(g<"!"||g>"~"||"["===g||"]"===g||"("===g||")"===g||"{"===g||"}"===g||"<"===g||">"===g||"/"===g||"%"===g)&&(g="_");h[d]=g}""===(h=h.join(""))&&(h="Bad_Font_Name");o.add(stringToBytes(h))}}catch(t){c.e(t)}finally{c.f()}return this.compileIndex(o)}},{key:"compileTopDicts",value:function compileTopDicts(t,r,o){var c,l=[],u=new Mi,h=cff_parser_createForOfIteratorHelper(t);try{for(h.s();!(c=h.n()).done;){var d=c.value;if(o){d.removeByName("CIDFontVersion");d.removeByName("CIDFontRevision");d.removeByName("CIDFontType");d.removeByName("CIDCount");d.removeByName("UIDBase")}var g=new Xi,y=this.compileDict(d,g);l.push(g);u.add(y);g.offset(r)}}catch(t){h.e(t)}finally{h.f()}return{trackers:l,output:u=this.compileIndex(u,l)}}},{key:"compilePrivateDicts",value:function compilePrivateDicts(t,r,o){for(var c=0,l=t.length;c<l;++c){var u=t[c],h=u.privateDict;if(!h||!u.hasName("Private"))throw new Sr("There must be a private dictionary.");var d=new Xi,g=this.compileDict(h,d),y=o.length;d.offset(y);g.length||(y=0);r[c].setEntryLocation("Private",[g.length,y],o);o.add(g);if(h.subrsIndex&&h.hasName("Subrs")){var m=this.compileIndex(h.subrsIndex);d.setEntryLocation("Subrs",[g.length],o);o.add(m)}}}},{key:"compileDict",value:function compileDict(t,r){var o,c=[],l=cff_parser_createForOfIteratorHelper(t.order);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(u in t.values){var h=t.values[u],d=t.types[u];Array.isArray(d)||(d=[d]);Array.isArray(h)||(h=[h]);if(0!==h.length){for(var g=0,y=d.length;g<y;++g){var m=d[g],v=h[g];switch(m){case"num":case"sid":c.push.apply(c,cff_parser_toConsumableArray(this.encodeNumber(v)));break;case"offset":var _=t.keyToNameMap[u];r.isTracking(_)||r.track(_,c.length);c.push(29,0,0,0,0);break;case"array":case"delta":c.push.apply(c,cff_parser_toConsumableArray(this.encodeNumber(v)));for(var w=1,k=h.length;w<k;++w)c.push.apply(c,cff_parser_toConsumableArray(this.encodeNumber(h[w])));break;default:throw new Sr("Unknown data type of ".concat(m))}}c.push.apply(c,cff_parser_toConsumableArray(t.opcodes[u]))}}}}catch(t){l.e(t)}finally{l.f()}return c}},{key:"compileStringIndex",value:function compileStringIndex(t){var r,o=new Mi,c=cff_parser_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value;o.add(stringToBytes(l))}}catch(t){c.e(t)}finally{c.f()}return this.compileIndex(o)}},{key:"compileCharStrings",value:function compileCharStrings(t){for(var r=new Mi,o=0;o<t.count;o++){var c=t.get(o);0!==c.length?r.add(c):r.add(new Uint8Array([139,14]))}return this.compileIndex(r)}},{key:"compileCharset",value:function compileCharset(t,r,o,c){var l,u=r-1;if(c)l=new Uint8Array([2,0,0,u>>8&255,255&u]);else{(l=new Uint8Array(1+2*u))[0]=0;for(var h=0,d=t.charset.length,g=!1,y=1;y<l.length;y+=2){var m=0;if(h<d){var v=t.charset[h++];if(-1===(m=o.getSID(v))){m=0;if(!g){g=!0;warn("Couldn't find ".concat(v," in CFF strings"))}}}l[y]=m>>8&255;l[y+1]=255&m}}return this.compileTypedArray(l)}},{key:"compileEncoding",value:function compileEncoding(t){return this.compileTypedArray(t.raw)}},{key:"compileFDSelect",value:function compileFDSelect(t){var r,o,c=t.format;switch(c){case 0:(r=new Uint8Array(1+t.fdSelect.length))[0]=c;for(o=0;o<t.fdSelect.length;o++)r[o+1]=t.fdSelect[o];break;case 3:var l=t.fdSelect[0],u=[c,0,0,0,0,l];for(o=1;o<t.fdSelect.length;o++){var h=t.fdSelect[o];if(h!==l){u.push(o>>8&255,255&o,h);l=h}}var d=(u.length-3)/3;u[1]=d>>8&255;u[2]=255&d;u.push(o>>8&255,255&o);r=new Uint8Array(u)}return this.compileTypedArray(r)}},{key:"compileTypedArray",value:function compileTypedArray(t){return Array.from(t)}},{key:"compileIndex",value:function compileIndex(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=t.objects,c=o.length;if(0===c)return[0,0];var l,u,h=[c>>8&255,255&c],d=1;for(l=0;l<c;++l)d+=o[l].length;u=d<256?1:d<65536?2:d<16777216?3:4;h.push(u);var g=1;for(l=0;l<c+1;l++){1===u?h.push(255&g):2===u?h.push(g>>8&255,255&g):3===u?h.push(g>>16&255,g>>8&255,255&g):h.push(g>>>24&255,g>>16&255,g>>8&255,255&g);o[l]&&(g+=o[l].length)}for(l=0;l<c;l++){r[l]&&r[l].offset(h.length);h.push.apply(h,cff_parser_toConsumableArray(o[l]))}return h}}],[{key:"EncodeFloatRegExp",get:function get(){return shadow(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]);return CFFCompiler}(),Yi=getLookupTableFactory((function(t){t.A=65;t.AE=198;t.AEacute=508;t.AEmacron=482;t.AEsmall=63462;t.Aacute=193;t.Aacutesmall=63457;t.Abreve=258;t.Abreveacute=7854;t.Abrevecyrillic=1232;t.Abrevedotbelow=7862;t.Abrevegrave=7856;t.Abrevehookabove=7858;t.Abrevetilde=7860;t.Acaron=461;t.Acircle=9398;t.Acircumflex=194;t.Acircumflexacute=7844;t.Acircumflexdotbelow=7852;t.Acircumflexgrave=7846;t.Acircumflexhookabove=7848;t.Acircumflexsmall=63458;t.Acircumflextilde=7850;t.Acute=63177;t.Acutesmall=63412;t.Acyrillic=1040;t.Adblgrave=512;t.Adieresis=196;t.Adieresiscyrillic=1234;t.Adieresismacron=478;t.Adieresissmall=63460;t.Adotbelow=7840;t.Adotmacron=480;t.Agrave=192;t.Agravesmall=63456;t.Ahookabove=7842;t.Aiecyrillic=1236;t.Ainvertedbreve=514;t.Alpha=913;t.Alphatonos=902;t.Amacron=256;t.Amonospace=65313;t.Aogonek=260;t.Aring=197;t.Aringacute=506;t.Aringbelow=7680;t.Aringsmall=63461;t.Asmall=63329;t.Atilde=195;t.Atildesmall=63459;t.Aybarmenian=1329;t.B=66;t.Bcircle=9399;t.Bdotaccent=7682;t.Bdotbelow=7684;t.Becyrillic=1041;t.Benarmenian=1330;t.Beta=914;t.Bhook=385;t.Blinebelow=7686;t.Bmonospace=65314;t.Brevesmall=63220;t.Bsmall=63330;t.Btopbar=386;t.C=67;t.Caarmenian=1342;t.Cacute=262;t.Caron=63178;t.Caronsmall=63221;t.Ccaron=268;t.Ccedilla=199;t.Ccedillaacute=7688;t.Ccedillasmall=63463;t.Ccircle=9400;t.Ccircumflex=264;t.Cdot=266;t.Cdotaccent=266;t.Cedillasmall=63416;t.Chaarmenian=1353;t.Cheabkhasiancyrillic=1212;t.Checyrillic=1063;t.Chedescenderabkhasiancyrillic=1214;t.Chedescendercyrillic=1206;t.Chedieresiscyrillic=1268;t.Cheharmenian=1347;t.Chekhakassiancyrillic=1227;t.Cheverticalstrokecyrillic=1208;t.Chi=935;t.Chook=391;t.Circumflexsmall=63222;t.Cmonospace=65315;t.Coarmenian=1361;t.Csmall=63331;t.D=68;t.DZ=497;t.DZcaron=452;t.Daarmenian=1332;t.Dafrican=393;t.Dcaron=270;t.Dcedilla=7696;t.Dcircle=9401;t.Dcircumflexbelow=7698;t.Dcroat=272;t.Ddotaccent=7690;t.Ddotbelow=7692;t.Decyrillic=1044;t.Deicoptic=1006;t.Delta=8710;t.Deltagreek=916;t.Dhook=394;t.Dieresis=63179;t.DieresisAcute=63180;t.DieresisGrave=63181;t.Dieresissmall=63400;t.Digammagreek=988;t.Djecyrillic=1026;t.Dlinebelow=7694;t.Dmonospace=65316;t.Dotaccentsmall=63223;t.Dslash=272;t.Dsmall=63332;t.Dtopbar=395;t.Dz=498;t.Dzcaron=453;t.Dzeabkhasiancyrillic=1248;t.Dzecyrillic=1029;t.Dzhecyrillic=1039;t.E=69;t.Eacute=201;t.Eacutesmall=63465;t.Ebreve=276;t.Ecaron=282;t.Ecedillabreve=7708;t.Echarmenian=1333;t.Ecircle=9402;t.Ecircumflex=202;t.Ecircumflexacute=7870;t.Ecircumflexbelow=7704;t.Ecircumflexdotbelow=7878;t.Ecircumflexgrave=7872;t.Ecircumflexhookabove=7874;t.Ecircumflexsmall=63466;t.Ecircumflextilde=7876;t.Ecyrillic=1028;t.Edblgrave=516;t.Edieresis=203;t.Edieresissmall=63467;t.Edot=278;t.Edotaccent=278;t.Edotbelow=7864;t.Efcyrillic=1060;t.Egrave=200;t.Egravesmall=63464;t.Eharmenian=1335;t.Ehookabove=7866;t.Eightroman=8551;t.Einvertedbreve=518;t.Eiotifiedcyrillic=1124;t.Elcyrillic=1051;t.Elevenroman=8554;t.Emacron=274;t.Emacronacute=7702;t.Emacrongrave=7700;t.Emcyrillic=1052;t.Emonospace=65317;t.Encyrillic=1053;t.Endescendercyrillic=1186;t.Eng=330;t.Enghecyrillic=1188;t.Enhookcyrillic=1223;t.Eogonek=280;t.Eopen=400;t.Epsilon=917;t.Epsilontonos=904;t.Ercyrillic=1056;t.Ereversed=398;t.Ereversedcyrillic=1069;t.Escyrillic=1057;t.Esdescendercyrillic=1194;t.Esh=425;t.Esmall=63333;t.Eta=919;t.Etarmenian=1336;t.Etatonos=905;t.Eth=208;t.Ethsmall=63472;t.Etilde=7868;t.Etildebelow=7706;t.Euro=8364;t.Ezh=439;t.Ezhcaron=494;t.Ezhreversed=440;t.F=70;t.Fcircle=9403;t.Fdotaccent=7710;t.Feharmenian=1366;t.Feicoptic=996;t.Fhook=401;t.Fitacyrillic=1138;t.Fiveroman=8548;t.Fmonospace=65318;t.Fourroman=8547;t.Fsmall=63334;t.G=71;t.GBsquare=13191;t.Gacute=500;t.Gamma=915;t.Gammaafrican=404;t.Gangiacoptic=1002;t.Gbreve=286;t.Gcaron=486;t.Gcedilla=290;t.Gcircle=9404;t.Gcircumflex=284;t.Gcommaaccent=290;t.Gdot=288;t.Gdotaccent=288;t.Gecyrillic=1043;t.Ghadarmenian=1346;t.Ghemiddlehookcyrillic=1172;t.Ghestrokecyrillic=1170;t.Gheupturncyrillic=1168;t.Ghook=403;t.Gimarmenian=1331;t.Gjecyrillic=1027;t.Gmacron=7712;t.Gmonospace=65319;t.Grave=63182;t.Gravesmall=63328;t.Gsmall=63335;t.Gsmallhook=667;t.Gstroke=484;t.H=72;t.H18533=9679;t.H18543=9642;t.H18551=9643;t.H22073=9633;t.HPsquare=13259;t.Haabkhasiancyrillic=1192;t.Hadescendercyrillic=1202;t.Hardsigncyrillic=1066;t.Hbar=294;t.Hbrevebelow=7722;t.Hcedilla=7720;t.Hcircle=9405;t.Hcircumflex=292;t.Hdieresis=7718;t.Hdotaccent=7714;t.Hdotbelow=7716;t.Hmonospace=65320;t.Hoarmenian=1344;t.Horicoptic=1e3;t.Hsmall=63336;t.Hungarumlaut=63183;t.Hungarumlautsmall=63224;t.Hzsquare=13200;t.I=73;t.IAcyrillic=1071;t.IJ=306;t.IUcyrillic=1070;t.Iacute=205;t.Iacutesmall=63469;t.Ibreve=300;t.Icaron=463;t.Icircle=9406;t.Icircumflex=206;t.Icircumflexsmall=63470;t.Icyrillic=1030;t.Idblgrave=520;t.Idieresis=207;t.Idieresisacute=7726;t.Idieresiscyrillic=1252;t.Idieresissmall=63471;t.Idot=304;t.Idotaccent=304;t.Idotbelow=7882;t.Iebrevecyrillic=1238;t.Iecyrillic=1045;t.Ifraktur=8465;t.Igrave=204;t.Igravesmall=63468;t.Ihookabove=7880;t.Iicyrillic=1048;t.Iinvertedbreve=522;t.Iishortcyrillic=1049;t.Imacron=298;t.Imacroncyrillic=1250;t.Imonospace=65321;t.Iniarmenian=1339;t.Iocyrillic=1025;t.Iogonek=302;t.Iota=921;t.Iotaafrican=406;t.Iotadieresis=938;t.Iotatonos=906;t.Ismall=63337;t.Istroke=407;t.Itilde=296;t.Itildebelow=7724;t.Izhitsacyrillic=1140;t.Izhitsadblgravecyrillic=1142;t.J=74;t.Jaarmenian=1345;t.Jcircle=9407;t.Jcircumflex=308;t.Jecyrillic=1032;t.Jheharmenian=1355;t.Jmonospace=65322;t.Jsmall=63338;t.K=75;t.KBsquare=13189;t.KKsquare=13261;t.Kabashkircyrillic=1184;t.Kacute=7728;t.Kacyrillic=1050;t.Kadescendercyrillic=1178;t.Kahookcyrillic=1219;t.Kappa=922;t.Kastrokecyrillic=1182;t.Kaverticalstrokecyrillic=1180;t.Kcaron=488;t.Kcedilla=310;t.Kcircle=9408;t.Kcommaaccent=310;t.Kdotbelow=7730;t.Keharmenian=1364;t.Kenarmenian=1343;t.Khacyrillic=1061;t.Kheicoptic=998;t.Khook=408;t.Kjecyrillic=1036;t.Klinebelow=7732;t.Kmonospace=65323;t.Koppacyrillic=1152;t.Koppagreek=990;t.Ksicyrillic=1134;t.Ksmall=63339;t.L=76;t.LJ=455;t.LL=63167;t.Lacute=313;t.Lambda=923;t.Lcaron=317;t.Lcedilla=315;t.Lcircle=9409;t.Lcircumflexbelow=7740;t.Lcommaaccent=315;t.Ldot=319;t.Ldotaccent=319;t.Ldotbelow=7734;t.Ldotbelowmacron=7736;t.Liwnarmenian=1340;t.Lj=456;t.Ljecyrillic=1033;t.Llinebelow=7738;t.Lmonospace=65324;t.Lslash=321;t.Lslashsmall=63225;t.Lsmall=63340;t.M=77;t.MBsquare=13190;t.Macron=63184;t.Macronsmall=63407;t.Macute=7742;t.Mcircle=9410;t.Mdotaccent=7744;t.Mdotbelow=7746;t.Menarmenian=1348;t.Mmonospace=65325;t.Msmall=63341;t.Mturned=412;t.Mu=924;t.N=78;t.NJ=458;t.Nacute=323;t.Ncaron=327;t.Ncedilla=325;t.Ncircle=9411;t.Ncircumflexbelow=7754;t.Ncommaaccent=325;t.Ndotaccent=7748;t.Ndotbelow=7750;t.Nhookleft=413;t.Nineroman=8552;t.Nj=459;t.Njecyrillic=1034;t.Nlinebelow=7752;t.Nmonospace=65326;t.Nowarmenian=1350;t.Nsmall=63342;t.Ntilde=209;t.Ntildesmall=63473;t.Nu=925;t.O=79;t.OE=338;t.OEsmall=63226;t.Oacute=211;t.Oacutesmall=63475;t.Obarredcyrillic=1256;t.Obarreddieresiscyrillic=1258;t.Obreve=334;t.Ocaron=465;t.Ocenteredtilde=415;t.Ocircle=9412;t.Ocircumflex=212;t.Ocircumflexacute=7888;t.Ocircumflexdotbelow=7896;t.Ocircumflexgrave=7890;t.Ocircumflexhookabove=7892;t.Ocircumflexsmall=63476;t.Ocircumflextilde=7894;t.Ocyrillic=1054;t.Odblacute=336;t.Odblgrave=524;t.Odieresis=214;t.Odieresiscyrillic=1254;t.Odieresissmall=63478;t.Odotbelow=7884;t.Ogoneksmall=63227;t.Ograve=210;t.Ogravesmall=63474;t.Oharmenian=1365;t.Ohm=8486;t.Ohookabove=7886;t.Ohorn=416;t.Ohornacute=7898;t.Ohorndotbelow=7906;t.Ohorngrave=7900;t.Ohornhookabove=7902;t.Ohorntilde=7904;t.Ohungarumlaut=336;t.Oi=418;t.Oinvertedbreve=526;t.Omacron=332;t.Omacronacute=7762;t.Omacrongrave=7760;t.Omega=8486;t.Omegacyrillic=1120;t.Omegagreek=937;t.Omegaroundcyrillic=1146;t.Omegatitlocyrillic=1148;t.Omegatonos=911;t.Omicron=927;t.Omicrontonos=908;t.Omonospace=65327;t.Oneroman=8544;t.Oogonek=490;t.Oogonekmacron=492;t.Oopen=390;t.Oslash=216;t.Oslashacute=510;t.Oslashsmall=63480;t.Osmall=63343;t.Ostrokeacute=510;t.Otcyrillic=1150;t.Otilde=213;t.Otildeacute=7756;t.Otildedieresis=7758;t.Otildesmall=63477;t.P=80;t.Pacute=7764;t.Pcircle=9413;t.Pdotaccent=7766;t.Pecyrillic=1055;t.Peharmenian=1354;t.Pemiddlehookcyrillic=1190;t.Phi=934;t.Phook=420;t.Pi=928;t.Piwrarmenian=1363;t.Pmonospace=65328;t.Psi=936;t.Psicyrillic=1136;t.Psmall=63344;t.Q=81;t.Qcircle=9414;t.Qmonospace=65329;t.Qsmall=63345;t.R=82;t.Raarmenian=1356;t.Racute=340;t.Rcaron=344;t.Rcedilla=342;t.Rcircle=9415;t.Rcommaaccent=342;t.Rdblgrave=528;t.Rdotaccent=7768;t.Rdotbelow=7770;t.Rdotbelowmacron=7772;t.Reharmenian=1360;t.Rfraktur=8476;t.Rho=929;t.Ringsmall=63228;t.Rinvertedbreve=530;t.Rlinebelow=7774;t.Rmonospace=65330;t.Rsmall=63346;t.Rsmallinverted=641;t.Rsmallinvertedsuperior=694;t.S=83;t.SF010000=9484;t.SF020000=9492;t.SF030000=9488;t.SF040000=9496;t.SF050000=9532;t.SF060000=9516;t.SF070000=9524;t.SF080000=9500;t.SF090000=9508;t.SF100000=9472;t.SF110000=9474;t.SF190000=9569;t.SF200000=9570;t.SF210000=9558;t.SF220000=9557;t.SF230000=9571;t.SF240000=9553;t.SF250000=9559;t.SF260000=9565;t.SF270000=9564;t.SF280000=9563;t.SF360000=9566;t.SF370000=9567;t.SF380000=9562;t.SF390000=9556;t.SF400000=9577;t.SF410000=9574;t.SF420000=9568;t.SF430000=9552;t.SF440000=9580;t.SF450000=9575;t.SF460000=9576;t.SF470000=9572;t.SF480000=9573;t.SF490000=9561;t.SF500000=9560;t.SF510000=9554;t.SF520000=9555;t.SF530000=9579;t.SF540000=9578;t.Sacute=346;t.Sacutedotaccent=7780;t.Sampigreek=992;t.Scaron=352;t.Scarondotaccent=7782;t.Scaronsmall=63229;t.Scedilla=350;t.Schwa=399;t.Schwacyrillic=1240;t.Schwadieresiscyrillic=1242;t.Scircle=9416;t.Scircumflex=348;t.Scommaaccent=536;t.Sdotaccent=7776;t.Sdotbelow=7778;t.Sdotbelowdotaccent=7784;t.Seharmenian=1357;t.Sevenroman=8550;t.Shaarmenian=1351;t.Shacyrillic=1064;t.Shchacyrillic=1065;t.Sheicoptic=994;t.Shhacyrillic=1210;t.Shimacoptic=1004;t.Sigma=931;t.Sixroman=8549;t.Smonospace=65331;t.Softsigncyrillic=1068;t.Ssmall=63347;t.Stigmagreek=986;t.T=84;t.Tau=932;t.Tbar=358;t.Tcaron=356;t.Tcedilla=354;t.Tcircle=9417;t.Tcircumflexbelow=7792;t.Tcommaaccent=354;t.Tdotaccent=7786;t.Tdotbelow=7788;t.Tecyrillic=1058;t.Tedescendercyrillic=1196;t.Tenroman=8553;t.Tetsecyrillic=1204;t.Theta=920;t.Thook=428;t.Thorn=222;t.Thornsmall=63486;t.Threeroman=8546;t.Tildesmall=63230;t.Tiwnarmenian=1359;t.Tlinebelow=7790;t.Tmonospace=65332;t.Toarmenian=1337;t.Tonefive=444;t.Tonesix=388;t.Tonetwo=423;t.Tretroflexhook=430;t.Tsecyrillic=1062;t.Tshecyrillic=1035;t.Tsmall=63348;t.Twelveroman=8555;t.Tworoman=8545;t.U=85;t.Uacute=218;t.Uacutesmall=63482;t.Ubreve=364;t.Ucaron=467;t.Ucircle=9418;t.Ucircumflex=219;t.Ucircumflexbelow=7798;t.Ucircumflexsmall=63483;t.Ucyrillic=1059;t.Udblacute=368;t.Udblgrave=532;t.Udieresis=220;t.Udieresisacute=471;t.Udieresisbelow=7794;t.Udieresiscaron=473;t.Udieresiscyrillic=1264;t.Udieresisgrave=475;t.Udieresismacron=469;t.Udieresissmall=63484;t.Udotbelow=7908;t.Ugrave=217;t.Ugravesmall=63481;t.Uhookabove=7910;t.Uhorn=431;t.Uhornacute=7912;t.Uhorndotbelow=7920;t.Uhorngrave=7914;t.Uhornhookabove=7916;t.Uhorntilde=7918;t.Uhungarumlaut=368;t.Uhungarumlautcyrillic=1266;t.Uinvertedbreve=534;t.Ukcyrillic=1144;t.Umacron=362;t.Umacroncyrillic=1262;t.Umacrondieresis=7802;t.Umonospace=65333;t.Uogonek=370;t.Upsilon=933;t.Upsilon1=978;t.Upsilonacutehooksymbolgreek=979;t.Upsilonafrican=433;t.Upsilondieresis=939;t.Upsilondieresishooksymbolgreek=980;t.Upsilonhooksymbol=978;t.Upsilontonos=910;t.Uring=366;t.Ushortcyrillic=1038;t.Usmall=63349;t.Ustraightcyrillic=1198;t.Ustraightstrokecyrillic=1200;t.Utilde=360;t.Utildeacute=7800;t.Utildebelow=7796;t.V=86;t.Vcircle=9419;t.Vdotbelow=7806;t.Vecyrillic=1042;t.Vewarmenian=1358;t.Vhook=434;t.Vmonospace=65334;t.Voarmenian=1352;t.Vsmall=63350;t.Vtilde=7804;t.W=87;t.Wacute=7810;t.Wcircle=9420;t.Wcircumflex=372;t.Wdieresis=7812;t.Wdotaccent=7814;t.Wdotbelow=7816;t.Wgrave=7808;t.Wmonospace=65335;t.Wsmall=63351;t.X=88;t.Xcircle=9421;t.Xdieresis=7820;t.Xdotaccent=7818;t.Xeharmenian=1341;t.Xi=926;t.Xmonospace=65336;t.Xsmall=63352;t.Y=89;t.Yacute=221;t.Yacutesmall=63485;t.Yatcyrillic=1122;t.Ycircle=9422;t.Ycircumflex=374;t.Ydieresis=376;t.Ydieresissmall=63487;t.Ydotaccent=7822;t.Ydotbelow=7924;t.Yericyrillic=1067;t.Yerudieresiscyrillic=1272;t.Ygrave=7922;t.Yhook=435;t.Yhookabove=7926;t.Yiarmenian=1349;t.Yicyrillic=1031;t.Yiwnarmenian=1362;t.Ymonospace=65337;t.Ysmall=63353;t.Ytilde=7928;t.Yusbigcyrillic=1130;t.Yusbigiotifiedcyrillic=1132;t.Yuslittlecyrillic=1126;t.Yuslittleiotifiedcyrillic=1128;t.Z=90;t.Zaarmenian=1334;t.Zacute=377;t.Zcaron=381;t.Zcaronsmall=63231;t.Zcircle=9423;t.Zcircumflex=7824;t.Zdot=379;t.Zdotaccent=379;t.Zdotbelow=7826;t.Zecyrillic=1047;t.Zedescendercyrillic=1176;t.Zedieresiscyrillic=1246;t.Zeta=918;t.Zhearmenian=1338;t.Zhebrevecyrillic=1217;t.Zhecyrillic=1046;t.Zhedescendercyrillic=1174;t.Zhedieresiscyrillic=1244;t.Zlinebelow=7828;t.Zmonospace=65338;t.Zsmall=63354;t.Zstroke=437;t.a=97;t.aabengali=2438;t.aacute=225;t.aadeva=2310;t.aagujarati=2694;t.aagurmukhi=2566;t.aamatragurmukhi=2622;t.aarusquare=13059;t.aavowelsignbengali=2494;t.aavowelsigndeva=2366;t.aavowelsigngujarati=2750;t.abbreviationmarkarmenian=1375;t.abbreviationsigndeva=2416;t.abengali=2437;t.abopomofo=12570;t.abreve=259;t.abreveacute=7855;t.abrevecyrillic=1233;t.abrevedotbelow=7863;t.abrevegrave=7857;t.abrevehookabove=7859;t.abrevetilde=7861;t.acaron=462;t.acircle=9424;t.acircumflex=226;t.acircumflexacute=7845;t.acircumflexdotbelow=7853;t.acircumflexgrave=7847;t.acircumflexhookabove=7849;t.acircumflextilde=7851;t.acute=180;t.acutebelowcmb=791;t.acutecmb=769;t.acutecomb=769;t.acutedeva=2388;t.acutelowmod=719;t.acutetonecmb=833;t.acyrillic=1072;t.adblgrave=513;t.addakgurmukhi=2673;t.adeva=2309;t.adieresis=228;t.adieresiscyrillic=1235;t.adieresismacron=479;t.adotbelow=7841;t.adotmacron=481;t.ae=230;t.aeacute=509;t.aekorean=12624;t.aemacron=483;t.afii00208=8213;t.afii08941=8356;t.afii10017=1040;t.afii10018=1041;t.afii10019=1042;t.afii10020=1043;t.afii10021=1044;t.afii10022=1045;t.afii10023=1025;t.afii10024=1046;t.afii10025=1047;t.afii10026=1048;t.afii10027=1049;t.afii10028=1050;t.afii10029=1051;t.afii10030=1052;t.afii10031=1053;t.afii10032=1054;t.afii10033=1055;t.afii10034=1056;t.afii10035=1057;t.afii10036=1058;t.afii10037=1059;t.afii10038=1060;t.afii10039=1061;t.afii10040=1062;t.afii10041=1063;t.afii10042=1064;t.afii10043=1065;t.afii10044=1066;t.afii10045=1067;t.afii10046=1068;t.afii10047=1069;t.afii10048=1070;t.afii10049=1071;t.afii10050=1168;t.afii10051=1026;t.afii10052=1027;t.afii10053=1028;t.afii10054=1029;t.afii10055=1030;t.afii10056=1031;t.afii10057=1032;t.afii10058=1033;t.afii10059=1034;t.afii10060=1035;t.afii10061=1036;t.afii10062=1038;t.afii10063=63172;t.afii10064=63173;t.afii10065=1072;t.afii10066=1073;t.afii10067=1074;t.afii10068=1075;t.afii10069=1076;t.afii10070=1077;t.afii10071=1105;t.afii10072=1078;t.afii10073=1079;t.afii10074=1080;t.afii10075=1081;t.afii10076=1082;t.afii10077=1083;t.afii10078=1084;t.afii10079=1085;t.afii10080=1086;t.afii10081=1087;t.afii10082=1088;t.afii10083=1089;t.afii10084=1090;t.afii10085=1091;t.afii10086=1092;t.afii10087=1093;t.afii10088=1094;t.afii10089=1095;t.afii10090=1096;t.afii10091=1097;t.afii10092=1098;t.afii10093=1099;t.afii10094=1100;t.afii10095=1101;t.afii10096=1102;t.afii10097=1103;t.afii10098=1169;t.afii10099=1106;t.afii10100=1107;t.afii10101=1108;t.afii10102=1109;t.afii10103=1110;t.afii10104=1111;t.afii10105=1112;t.afii10106=1113;t.afii10107=1114;t.afii10108=1115;t.afii10109=1116;t.afii10110=1118;t.afii10145=1039;t.afii10146=1122;t.afii10147=1138;t.afii10148=1140;t.afii10192=63174;t.afii10193=1119;t.afii10194=1123;t.afii10195=1139;t.afii10196=1141;t.afii10831=63175;t.afii10832=63176;t.afii10846=1241;t.afii299=8206;t.afii300=8207;t.afii301=8205;t.afii57381=1642;t.afii57388=1548;t.afii57392=1632;t.afii57393=1633;t.afii57394=1634;t.afii57395=1635;t.afii57396=1636;t.afii57397=1637;t.afii57398=1638;t.afii57399=1639;t.afii57400=1640;t.afii57401=1641;t.afii57403=1563;t.afii57407=1567;t.afii57409=1569;t.afii57410=1570;t.afii57411=1571;t.afii57412=1572;t.afii57413=1573;t.afii57414=1574;t.afii57415=1575;t.afii57416=1576;t.afii57417=1577;t.afii57418=1578;t.afii57419=1579;t.afii57420=1580;t.afii57421=1581;t.afii57422=1582;t.afii57423=1583;t.afii57424=1584;t.afii57425=1585;t.afii57426=1586;t.afii57427=1587;t.afii57428=1588;t.afii57429=1589;t.afii57430=1590;t.afii57431=1591;t.afii57432=1592;t.afii57433=1593;t.afii57434=1594;t.afii57440=1600;t.afii57441=1601;t.afii57442=1602;t.afii57443=1603;t.afii57444=1604;t.afii57445=1605;t.afii57446=1606;t.afii57448=1608;t.afii57449=1609;t.afii57450=1610;t.afii57451=1611;t.afii57452=1612;t.afii57453=1613;t.afii57454=1614;t.afii57455=1615;t.afii57456=1616;t.afii57457=1617;t.afii57458=1618;t.afii57470=1607;t.afii57505=1700;t.afii57506=1662;t.afii57507=1670;t.afii57508=1688;t.afii57509=1711;t.afii57511=1657;t.afii57512=1672;t.afii57513=1681;t.afii57514=1722;t.afii57519=1746;t.afii57534=1749;t.afii57636=8362;t.afii57645=1470;t.afii57658=1475;t.afii57664=1488;t.afii57665=1489;t.afii57666=1490;t.afii57667=1491;t.afii57668=1492;t.afii57669=1493;t.afii57670=1494;t.afii57671=1495;t.afii57672=1496;t.afii57673=1497;t.afii57674=1498;t.afii57675=1499;t.afii57676=1500;t.afii57677=1501;t.afii57678=1502;t.afii57679=1503;t.afii57680=1504;t.afii57681=1505;t.afii57682=1506;t.afii57683=1507;t.afii57684=1508;t.afii57685=1509;t.afii57686=1510;t.afii57687=1511;t.afii57688=1512;t.afii57689=1513;t.afii57690=1514;t.afii57694=64298;t.afii57695=64299;t.afii57700=64331;t.afii57705=64287;t.afii57716=1520;t.afii57717=1521;t.afii57718=1522;t.afii57723=64309;t.afii57793=1460;t.afii57794=1461;t.afii57795=1462;t.afii57796=1467;t.afii57797=1464;t.afii57798=1463;t.afii57799=1456;t.afii57800=1458;t.afii57801=1457;t.afii57802=1459;t.afii57803=1474;t.afii57804=1473;t.afii57806=1465;t.afii57807=1468;t.afii57839=1469;t.afii57841=1471;t.afii57842=1472;t.afii57929=700;t.afii61248=8453;t.afii61289=8467;t.afii61352=8470;t.afii61573=8236;t.afii61574=8237;t.afii61575=8238;t.afii61664=8204;t.afii63167=1645;t.afii64937=701;t.agrave=224;t.agujarati=2693;t.agurmukhi=2565;t.ahiragana=12354;t.ahookabove=7843;t.aibengali=2448;t.aibopomofo=12574;t.aideva=2320;t.aiecyrillic=1237;t.aigujarati=2704;t.aigurmukhi=2576;t.aimatragurmukhi=2632;t.ainarabic=1593;t.ainfinalarabic=65226;t.aininitialarabic=65227;t.ainmedialarabic=65228;t.ainvertedbreve=515;t.aivowelsignbengali=2504;t.aivowelsigndeva=2376;t.aivowelsigngujarati=2760;t.akatakana=12450;t.akatakanahalfwidth=65393;t.akorean=12623;t.alef=1488;t.alefarabic=1575;t.alefdageshhebrew=64304;t.aleffinalarabic=65166;t.alefhamzaabovearabic=1571;t.alefhamzaabovefinalarabic=65156;t.alefhamzabelowarabic=1573;t.alefhamzabelowfinalarabic=65160;t.alefhebrew=1488;t.aleflamedhebrew=64335;t.alefmaddaabovearabic=1570;t.alefmaddaabovefinalarabic=65154;t.alefmaksuraarabic=1609;t.alefmaksurafinalarabic=65264;t.alefmaksurainitialarabic=65267;t.alefmaksuramedialarabic=65268;t.alefpatahhebrew=64302;t.alefqamatshebrew=64303;t.aleph=8501;t.allequal=8780;t.alpha=945;t.alphatonos=940;t.amacron=257;t.amonospace=65345;t.ampersand=38;t.ampersandmonospace=65286;t.ampersandsmall=63270;t.amsquare=13250;t.anbopomofo=12578;t.angbopomofo=12580;t.angbracketleft=12296;t.angbracketright=12297;t.angkhankhuthai=3674;t.angle=8736;t.anglebracketleft=12296;t.anglebracketleftvertical=65087;t.anglebracketright=12297;t.anglebracketrightvertical=65088;t.angleleft=9001;t.angleright=9002;t.angstrom=8491;t.anoteleia=903;t.anudattadeva=2386;t.anusvarabengali=2434;t.anusvaradeva=2306;t.anusvaragujarati=2690;t.aogonek=261;t.apaatosquare=13056;t.aparen=9372;t.apostrophearmenian=1370;t.apostrophemod=700;t.apple=63743;t.approaches=8784;t.approxequal=8776;t.approxequalorimage=8786;t.approximatelyequal=8773;t.araeaekorean=12686;t.araeakorean=12685;t.arc=8978;t.arighthalfring=7834;t.aring=229;t.aringacute=507;t.aringbelow=7681;t.arrowboth=8596;t.arrowdashdown=8675;t.arrowdashleft=8672;t.arrowdashright=8674;t.arrowdashup=8673;t.arrowdblboth=8660;t.arrowdbldown=8659;t.arrowdblleft=8656;t.arrowdblright=8658;t.arrowdblup=8657;t.arrowdown=8595;t.arrowdownleft=8601;t.arrowdownright=8600;t.arrowdownwhite=8681;t.arrowheaddownmod=709;t.arrowheadleftmod=706;t.arrowheadrightmod=707;t.arrowheadupmod=708;t.arrowhorizex=63719;t.arrowleft=8592;t.arrowleftdbl=8656;t.arrowleftdblstroke=8653;t.arrowleftoverright=8646;t.arrowleftwhite=8678;t.arrowright=8594;t.arrowrightdblstroke=8655;t.arrowrightheavy=10142;t.arrowrightoverleft=8644;t.arrowrightwhite=8680;t.arrowtableft=8676;t.arrowtabright=8677;t.arrowup=8593;t.arrowupdn=8597;t.arrowupdnbse=8616;t.arrowupdownbase=8616;t.arrowupleft=8598;t.arrowupleftofdown=8645;t.arrowupright=8599;t.arrowupwhite=8679;t.arrowvertex=63718;t.asciicircum=94;t.asciicircummonospace=65342;t.asciitilde=126;t.asciitildemonospace=65374;t.ascript=593;t.ascriptturned=594;t.asmallhiragana=12353;t.asmallkatakana=12449;t.asmallkatakanahalfwidth=65383;t.asterisk=42;t.asteriskaltonearabic=1645;t.asteriskarabic=1645;t.asteriskmath=8727;t.asteriskmonospace=65290;t.asterisksmall=65121;t.asterism=8258;t.asuperior=63209;t.asymptoticallyequal=8771;t.at=64;t.atilde=227;t.atmonospace=65312;t.atsmall=65131;t.aturned=592;t.aubengali=2452;t.aubopomofo=12576;t.audeva=2324;t.augujarati=2708;t.augurmukhi=2580;t.aulengthmarkbengali=2519;t.aumatragurmukhi=2636;t.auvowelsignbengali=2508;t.auvowelsigndeva=2380;t.auvowelsigngujarati=2764;t.avagrahadeva=2365;t.aybarmenian=1377;t.ayin=1506;t.ayinaltonehebrew=64288;t.ayinhebrew=1506;t.b=98;t.babengali=2476;t.backslash=92;t.backslashmonospace=65340;t.badeva=2348;t.bagujarati=2732;t.bagurmukhi=2604;t.bahiragana=12400;t.bahtthai=3647;t.bakatakana=12496;t.bar=124;t.barmonospace=65372;t.bbopomofo=12549;t.bcircle=9425;t.bdotaccent=7683;t.bdotbelow=7685;t.beamedsixteenthnotes=9836;t.because=8757;t.becyrillic=1073;t.beharabic=1576;t.behfinalarabic=65168;t.behinitialarabic=65169;t.behiragana=12409;t.behmedialarabic=65170;t.behmeeminitialarabic=64671;t.behmeemisolatedarabic=64520;t.behnoonfinalarabic=64621;t.bekatakana=12505;t.benarmenian=1378;t.bet=1489;t.beta=946;t.betasymbolgreek=976;t.betdagesh=64305;t.betdageshhebrew=64305;t.bethebrew=1489;t.betrafehebrew=64332;t.bhabengali=2477;t.bhadeva=2349;t.bhagujarati=2733;t.bhagurmukhi=2605;t.bhook=595;t.bihiragana=12403;t.bikatakana=12499;t.bilabialclick=664;t.bindigurmukhi=2562;t.birusquare=13105;t.blackcircle=9679;t.blackdiamond=9670;t.blackdownpointingtriangle=9660;t.blackleftpointingpointer=9668;t.blackleftpointingtriangle=9664;t.blacklenticularbracketleft=12304;t.blacklenticularbracketleftvertical=65083;t.blacklenticularbracketright=12305;t.blacklenticularbracketrightvertical=65084;t.blacklowerlefttriangle=9699;t.blacklowerrighttriangle=9698;t.blackrectangle=9644;t.blackrightpointingpointer=9658;t.blackrightpointingtriangle=9654;t.blacksmallsquare=9642;t.blacksmilingface=9787;t.blacksquare=9632;t.blackstar=9733;t.blackupperlefttriangle=9700;t.blackupperrighttriangle=9701;t.blackuppointingsmalltriangle=9652;t.blackuppointingtriangle=9650;t.blank=9251;t.blinebelow=7687;t.block=9608;t.bmonospace=65346;t.bobaimaithai=3610;t.bohiragana=12412;t.bokatakana=12508;t.bparen=9373;t.bqsquare=13251;t.braceex=63732;t.braceleft=123;t.braceleftbt=63731;t.braceleftmid=63730;t.braceleftmonospace=65371;t.braceleftsmall=65115;t.bracelefttp=63729;t.braceleftvertical=65079;t.braceright=125;t.bracerightbt=63742;t.bracerightmid=63741;t.bracerightmonospace=65373;t.bracerightsmall=65116;t.bracerighttp=63740;t.bracerightvertical=65080;t.bracketleft=91;t.bracketleftbt=63728;t.bracketleftex=63727;t.bracketleftmonospace=65339;t.bracketlefttp=63726;t.bracketright=93;t.bracketrightbt=63739;t.bracketrightex=63738;t.bracketrightmonospace=65341;t.bracketrighttp=63737;t.breve=728;t.brevebelowcmb=814;t.brevecmb=774;t.breveinvertedbelowcmb=815;t.breveinvertedcmb=785;t.breveinverteddoublecmb=865;t.bridgebelowcmb=810;t.bridgeinvertedbelowcmb=826;t.brokenbar=166;t.bstroke=384;t.bsuperior=63210;t.btopbar=387;t.buhiragana=12406;t.bukatakana=12502;t.bullet=8226;t.bulletinverse=9688;t.bulletoperator=8729;t.bullseye=9678;t.c=99;t.caarmenian=1390;t.cabengali=2458;t.cacute=263;t.cadeva=2330;t.cagujarati=2714;t.cagurmukhi=2586;t.calsquare=13192;t.candrabindubengali=2433;t.candrabinducmb=784;t.candrabindudeva=2305;t.candrabindugujarati=2689;t.capslock=8682;t.careof=8453;t.caron=711;t.caronbelowcmb=812;t.caroncmb=780;t.carriagereturn=8629;t.cbopomofo=12568;t.ccaron=269;t.ccedilla=231;t.ccedillaacute=7689;t.ccircle=9426;t.ccircumflex=265;t.ccurl=597;t.cdot=267;t.cdotaccent=267;t.cdsquare=13253;t.cedilla=184;t.cedillacmb=807;t.cent=162;t.centigrade=8451;t.centinferior=63199;t.centmonospace=65504;t.centoldstyle=63394;t.centsuperior=63200;t.chaarmenian=1401;t.chabengali=2459;t.chadeva=2331;t.chagujarati=2715;t.chagurmukhi=2587;t.chbopomofo=12564;t.cheabkhasiancyrillic=1213;t.checkmark=10003;t.checyrillic=1095;t.chedescenderabkhasiancyrillic=1215;t.chedescendercyrillic=1207;t.chedieresiscyrillic=1269;t.cheharmenian=1395;t.chekhakassiancyrillic=1228;t.cheverticalstrokecyrillic=1209;t.chi=967;t.chieuchacirclekorean=12919;t.chieuchaparenkorean=12823;t.chieuchcirclekorean=12905;t.chieuchkorean=12618;t.chieuchparenkorean=12809;t.chochangthai=3594;t.chochanthai=3592;t.chochingthai=3593;t.chochoethai=3596;t.chook=392;t.cieucacirclekorean=12918;t.cieucaparenkorean=12822;t.cieuccirclekorean=12904;t.cieuckorean=12616;t.cieucparenkorean=12808;t.cieucuparenkorean=12828;t.circle=9675;t.circlecopyrt=169;t.circlemultiply=8855;t.circleot=8857;t.circleplus=8853;t.circlepostalmark=12342;t.circlewithlefthalfblack=9680;t.circlewithrighthalfblack=9681;t.circumflex=710;t.circumflexbelowcmb=813;t.circumflexcmb=770;t.clear=8999;t.clickalveolar=450;t.clickdental=448;t.clicklateral=449;t.clickretroflex=451;t.club=9827;t.clubsuitblack=9827;t.clubsuitwhite=9831;t.cmcubedsquare=13220;t.cmonospace=65347;t.cmsquaredsquare=13216;t.coarmenian=1409;t.colon=58;t.colonmonetary=8353;t.colonmonospace=65306;t.colonsign=8353;t.colonsmall=65109;t.colontriangularhalfmod=721;t.colontriangularmod=720;t.comma=44;t.commaabovecmb=787;t.commaaboverightcmb=789;t.commaaccent=63171;t.commaarabic=1548;t.commaarmenian=1373;t.commainferior=63201;t.commamonospace=65292;t.commareversedabovecmb=788;t.commareversedmod=701;t.commasmall=65104;t.commasuperior=63202;t.commaturnedabovecmb=786;t.commaturnedmod=699;t.compass=9788;t.congruent=8773;t.contourintegral=8750;t.control=8963;t.controlACK=6;t.controlBEL=7;t.controlBS=8;t.controlCAN=24;t.controlCR=13;t.controlDC1=17;t.controlDC2=18;t.controlDC3=19;t.controlDC4=20;t.controlDEL=127;t.controlDLE=16;t.controlEM=25;t.controlENQ=5;t.controlEOT=4;t.controlESC=27;t.controlETB=23;t.controlETX=3;t.controlFF=12;t.controlFS=28;t.controlGS=29;t.controlHT=9;t.controlLF=10;t.controlNAK=21;t.controlNULL=0;t.controlRS=30;t.controlSI=15;t.controlSO=14;t.controlSOT=2;t.controlSTX=1;t.controlSUB=26;t.controlSYN=22;t.controlUS=31;t.controlVT=11;t.copyright=169;t.copyrightsans=63721;t.copyrightserif=63193;t.cornerbracketleft=12300;t.cornerbracketlefthalfwidth=65378;t.cornerbracketleftvertical=65089;t.cornerbracketright=12301;t.cornerbracketrighthalfwidth=65379;t.cornerbracketrightvertical=65090;t.corporationsquare=13183;t.cosquare=13255;t.coverkgsquare=13254;t.cparen=9374;t.cruzeiro=8354;t.cstretched=663;t.curlyand=8911;t.curlyor=8910;t.currency=164;t.cyrBreve=63185;t.cyrFlex=63186;t.cyrbreve=63188;t.cyrflex=63189;t.d=100;t.daarmenian=1380;t.dabengali=2470;t.dadarabic=1590;t.dadeva=2342;t.dadfinalarabic=65214;t.dadinitialarabic=65215;t.dadmedialarabic=65216;t.dagesh=1468;t.dageshhebrew=1468;t.dagger=8224;t.daggerdbl=8225;t.dagujarati=2726;t.dagurmukhi=2598;t.dahiragana=12384;t.dakatakana=12480;t.dalarabic=1583;t.dalet=1491;t.daletdagesh=64307;t.daletdageshhebrew=64307;t.dalethebrew=1491;t.dalfinalarabic=65194;t.dammaarabic=1615;t.dammalowarabic=1615;t.dammatanaltonearabic=1612;t.dammatanarabic=1612;t.danda=2404;t.dargahebrew=1447;t.dargalefthebrew=1447;t.dasiapneumatacyrilliccmb=1157;t.dblGrave=63187;t.dblanglebracketleft=12298;t.dblanglebracketleftvertical=65085;t.dblanglebracketright=12299;t.dblanglebracketrightvertical=65086;t.dblarchinvertedbelowcmb=811;t.dblarrowleft=8660;t.dblarrowright=8658;t.dbldanda=2405;t.dblgrave=63190;t.dblgravecmb=783;t.dblintegral=8748;t.dbllowline=8215;t.dbllowlinecmb=819;t.dbloverlinecmb=831;t.dblprimemod=698;t.dblverticalbar=8214;t.dblverticallineabovecmb=782;t.dbopomofo=12553;t.dbsquare=13256;t.dcaron=271;t.dcedilla=7697;t.dcircle=9427;t.dcircumflexbelow=7699;t.dcroat=273;t.ddabengali=2465;t.ddadeva=2337;t.ddagujarati=2721;t.ddagurmukhi=2593;t.ddalarabic=1672;t.ddalfinalarabic=64393;t.dddhadeva=2396;t.ddhabengali=2466;t.ddhadeva=2338;t.ddhagujarati=2722;t.ddhagurmukhi=2594;t.ddotaccent=7691;t.ddotbelow=7693;t.decimalseparatorarabic=1643;t.decimalseparatorpersian=1643;t.decyrillic=1076;t.degree=176;t.dehihebrew=1453;t.dehiragana=12391;t.deicoptic=1007;t.dekatakana=12487;t.deleteleft=9003;t.deleteright=8998;t.delta=948;t.deltaturned=397;t.denominatorminusonenumeratorbengali=2552;t.dezh=676;t.dhabengali=2471;t.dhadeva=2343;t.dhagujarati=2727;t.dhagurmukhi=2599;t.dhook=599;t.dialytikatonos=901;t.dialytikatonoscmb=836;t.diamond=9830;t.diamondsuitwhite=9826;t.dieresis=168;t.dieresisacute=63191;t.dieresisbelowcmb=804;t.dieresiscmb=776;t.dieresisgrave=63192;t.dieresistonos=901;t.dihiragana=12386;t.dikatakana=12482;t.dittomark=12291;t.divide=247;t.divides=8739;t.divisionslash=8725;t.djecyrillic=1106;t.dkshade=9619;t.dlinebelow=7695;t.dlsquare=13207;t.dmacron=273;t.dmonospace=65348;t.dnblock=9604;t.dochadathai=3598;t.dodekthai=3604;t.dohiragana=12393;t.dokatakana=12489;t.dollar=36;t.dollarinferior=63203;t.dollarmonospace=65284;t.dollaroldstyle=63268;t.dollarsmall=65129;t.dollarsuperior=63204;t.dong=8363;t.dorusquare=13094;t.dotaccent=729;t.dotaccentcmb=775;t.dotbelowcmb=803;t.dotbelowcomb=803;t.dotkatakana=12539;t.dotlessi=305;t.dotlessj=63166;t.dotlessjstrokehook=644;t.dotmath=8901;t.dottedcircle=9676;t.doubleyodpatah=64287;t.doubleyodpatahhebrew=64287;t.downtackbelowcmb=798;t.downtackmod=725;t.dparen=9375;t.dsuperior=63211;t.dtail=598;t.dtopbar=396;t.duhiragana=12389;t.dukatakana=12485;t.dz=499;t.dzaltone=675;t.dzcaron=454;t.dzcurl=677;t.dzeabkhasiancyrillic=1249;t.dzecyrillic=1109;t.dzhecyrillic=1119;t.e=101;t.eacute=233;t.earth=9793;t.ebengali=2447;t.ebopomofo=12572;t.ebreve=277;t.ecandradeva=2317;t.ecandragujarati=2701;t.ecandravowelsigndeva=2373;t.ecandravowelsigngujarati=2757;t.ecaron=283;t.ecedillabreve=7709;t.echarmenian=1381;t.echyiwnarmenian=1415;t.ecircle=9428;t.ecircumflex=234;t.ecircumflexacute=7871;t.ecircumflexbelow=7705;t.ecircumflexdotbelow=7879;t.ecircumflexgrave=7873;t.ecircumflexhookabove=7875;t.ecircumflextilde=7877;t.ecyrillic=1108;t.edblgrave=517;t.edeva=2319;t.edieresis=235;t.edot=279;t.edotaccent=279;t.edotbelow=7865;t.eegurmukhi=2575;t.eematragurmukhi=2631;t.efcyrillic=1092;t.egrave=232;t.egujarati=2703;t.eharmenian=1383;t.ehbopomofo=12573;t.ehiragana=12360;t.ehookabove=7867;t.eibopomofo=12575;t.eight=56;t.eightarabic=1640;t.eightbengali=2542;t.eightcircle=9319;t.eightcircleinversesansserif=10129;t.eightdeva=2414;t.eighteencircle=9329;t.eighteenparen=9349;t.eighteenperiod=9369;t.eightgujarati=2798;t.eightgurmukhi=2670;t.eighthackarabic=1640;t.eighthangzhou=12328;t.eighthnotebeamed=9835;t.eightideographicparen=12839;t.eightinferior=8328;t.eightmonospace=65304;t.eightoldstyle=63288;t.eightparen=9339;t.eightperiod=9359;t.eightpersian=1784;t.eightroman=8567;t.eightsuperior=8312;t.eightthai=3672;t.einvertedbreve=519;t.eiotifiedcyrillic=1125;t.ekatakana=12456;t.ekatakanahalfwidth=65396;t.ekonkargurmukhi=2676;t.ekorean=12628;t.elcyrillic=1083;t.element=8712;t.elevencircle=9322;t.elevenparen=9342;t.elevenperiod=9362;t.elevenroman=8570;t.ellipsis=8230;t.ellipsisvertical=8942;t.emacron=275;t.emacronacute=7703;t.emacrongrave=7701;t.emcyrillic=1084;t.emdash=8212;t.emdashvertical=65073;t.emonospace=65349;t.emphasismarkarmenian=1371;t.emptyset=8709;t.enbopomofo=12579;t.encyrillic=1085;t.endash=8211;t.endashvertical=65074;t.endescendercyrillic=1187;t.eng=331;t.engbopomofo=12581;t.enghecyrillic=1189;t.enhookcyrillic=1224;t.enspace=8194;t.eogonek=281;t.eokorean=12627;t.eopen=603;t.eopenclosed=666;t.eopenreversed=604;t.eopenreversedclosed=606;t.eopenreversedhook=605;t.eparen=9376;t.epsilon=949;t.epsilontonos=941;t.equal=61;t.equalmonospace=65309;t.equalsmall=65126;t.equalsuperior=8316;t.equivalence=8801;t.erbopomofo=12582;t.ercyrillic=1088;t.ereversed=600;t.ereversedcyrillic=1101;t.escyrillic=1089;t.esdescendercyrillic=1195;t.esh=643;t.eshcurl=646;t.eshortdeva=2318;t.eshortvowelsigndeva=2374;t.eshreversedloop=426;t.eshsquatreversed=645;t.esmallhiragana=12359;t.esmallkatakana=12455;t.esmallkatakanahalfwidth=65386;t.estimated=8494;t.esuperior=63212;t.eta=951;t.etarmenian=1384;t.etatonos=942;t.eth=240;t.etilde=7869;t.etildebelow=7707;t.etnahtafoukhhebrew=1425;t.etnahtafoukhlefthebrew=1425;t.etnahtahebrew=1425;t.etnahtalefthebrew=1425;t.eturned=477;t.eukorean=12641;t.euro=8364;t.evowelsignbengali=2503;t.evowelsigndeva=2375;t.evowelsigngujarati=2759;t.exclam=33;t.exclamarmenian=1372;t.exclamdbl=8252;t.exclamdown=161;t.exclamdownsmall=63393;t.exclammonospace=65281;t.exclamsmall=63265;t.existential=8707;t.ezh=658;t.ezhcaron=495;t.ezhcurl=659;t.ezhreversed=441;t.ezhtail=442;t.f=102;t.fadeva=2398;t.fagurmukhi=2654;t.fahrenheit=8457;t.fathaarabic=1614;t.fathalowarabic=1614;t.fathatanarabic=1611;t.fbopomofo=12552;t.fcircle=9429;t.fdotaccent=7711;t.feharabic=1601;t.feharmenian=1414;t.fehfinalarabic=65234;t.fehinitialarabic=65235;t.fehmedialarabic=65236;t.feicoptic=997;t.female=9792;t.ff=64256;t.f_f=64256;t.ffi=64259;t.f_f_i=64259;t.ffl=64260;t.f_f_l=64260;t.fi=64257;t.f_i=64257;t.fifteencircle=9326;t.fifteenparen=9346;t.fifteenperiod=9366;t.figuredash=8210;t.filledbox=9632;t.filledrect=9644;t.finalkaf=1498;t.finalkafdagesh=64314;t.finalkafdageshhebrew=64314;t.finalkafhebrew=1498;t.finalmem=1501;t.finalmemhebrew=1501;t.finalnun=1503;t.finalnunhebrew=1503;t.finalpe=1507;t.finalpehebrew=1507;t.finaltsadi=1509;t.finaltsadihebrew=1509;t.firsttonechinese=713;t.fisheye=9673;t.fitacyrillic=1139;t.five=53;t.fivearabic=1637;t.fivebengali=2539;t.fivecircle=9316;t.fivecircleinversesansserif=10126;t.fivedeva=2411;t.fiveeighths=8541;t.fivegujarati=2795;t.fivegurmukhi=2667;t.fivehackarabic=1637;t.fivehangzhou=12325;t.fiveideographicparen=12836;t.fiveinferior=8325;t.fivemonospace=65301;t.fiveoldstyle=63285;t.fiveparen=9336;t.fiveperiod=9356;t.fivepersian=1781;t.fiveroman=8564;t.fivesuperior=8309;t.fivethai=3669;t.fl=64258;t.f_l=64258;t.florin=402;t.fmonospace=65350;t.fmsquare=13209;t.fofanthai=3615;t.fofathai=3613;t.fongmanthai=3663;t.forall=8704;t.four=52;t.fourarabic=1636;t.fourbengali=2538;t.fourcircle=9315;t.fourcircleinversesansserif=10125;t.fourdeva=2410;t.fourgujarati=2794;t.fourgurmukhi=2666;t.fourhackarabic=1636;t.fourhangzhou=12324;t.fourideographicparen=12835;t.fourinferior=8324;t.fourmonospace=65300;t.fournumeratorbengali=2551;t.fouroldstyle=63284;t.fourparen=9335;t.fourperiod=9355;t.fourpersian=1780;t.fourroman=8563;t.foursuperior=8308;t.fourteencircle=9325;t.fourteenparen=9345;t.fourteenperiod=9365;t.fourthai=3668;t.fourthtonechinese=715;t.fparen=9377;t.fraction=8260;t.franc=8355;t.g=103;t.gabengali=2455;t.gacute=501;t.gadeva=2327;t.gafarabic=1711;t.gaffinalarabic=64403;t.gafinitialarabic=64404;t.gafmedialarabic=64405;t.gagujarati=2711;t.gagurmukhi=2583;t.gahiragana=12364;t.gakatakana=12460;t.gamma=947;t.gammalatinsmall=611;t.gammasuperior=736;t.gangiacoptic=1003;t.gbopomofo=12557;t.gbreve=287;t.gcaron=487;t.gcedilla=291;t.gcircle=9430;t.gcircumflex=285;t.gcommaaccent=291;t.gdot=289;t.gdotaccent=289;t.gecyrillic=1075;t.gehiragana=12370;t.gekatakana=12466;t.geometricallyequal=8785;t.gereshaccenthebrew=1436;t.gereshhebrew=1523;t.gereshmuqdamhebrew=1437;t.germandbls=223;t.gershayimaccenthebrew=1438;t.gershayimhebrew=1524;t.getamark=12307;t.ghabengali=2456;t.ghadarmenian=1394;t.ghadeva=2328;t.ghagujarati=2712;t.ghagurmukhi=2584;t.ghainarabic=1594;t.ghainfinalarabic=65230;t.ghaininitialarabic=65231;t.ghainmedialarabic=65232;t.ghemiddlehookcyrillic=1173;t.ghestrokecyrillic=1171;t.gheupturncyrillic=1169;t.ghhadeva=2394;t.ghhagurmukhi=2650;t.ghook=608;t.ghzsquare=13203;t.gihiragana=12366;t.gikatakana=12462;t.gimarmenian=1379;t.gimel=1490;t.gimeldagesh=64306;t.gimeldageshhebrew=64306;t.gimelhebrew=1490;t.gjecyrillic=1107;t.glottalinvertedstroke=446;t.glottalstop=660;t.glottalstopinverted=662;t.glottalstopmod=704;t.glottalstopreversed=661;t.glottalstopreversedmod=705;t.glottalstopreversedsuperior=740;t.glottalstopstroke=673;t.glottalstopstrokereversed=674;t.gmacron=7713;t.gmonospace=65351;t.gohiragana=12372;t.gokatakana=12468;t.gparen=9378;t.gpasquare=13228;t.gradient=8711;t.grave=96;t.gravebelowcmb=790;t.gravecmb=768;t.gravecomb=768;t.gravedeva=2387;t.gravelowmod=718;t.gravemonospace=65344;t.gravetonecmb=832;t.greater=62;t.greaterequal=8805;t.greaterequalorless=8923;t.greatermonospace=65310;t.greaterorequivalent=8819;t.greaterorless=8823;t.greateroverequal=8807;t.greatersmall=65125;t.gscript=609;t.gstroke=485;t.guhiragana=12368;t.guillemotleft=171;t.guillemotright=187;t.guilsinglleft=8249;t.guilsinglright=8250;t.gukatakana=12464;t.guramusquare=13080;t.gysquare=13257;t.h=104;t.haabkhasiancyrillic=1193;t.haaltonearabic=1729;t.habengali=2489;t.hadescendercyrillic=1203;t.hadeva=2361;t.hagujarati=2745;t.hagurmukhi=2617;t.haharabic=1581;t.hahfinalarabic=65186;t.hahinitialarabic=65187;t.hahiragana=12399;t.hahmedialarabic=65188;t.haitusquare=13098;t.hakatakana=12495;t.hakatakanahalfwidth=65418;t.halantgurmukhi=2637;t.hamzaarabic=1569;t.hamzalowarabic=1569;t.hangulfiller=12644;t.hardsigncyrillic=1098;t.harpoonleftbarbup=8636;t.harpoonrightbarbup=8640;t.hasquare=13258;t.hatafpatah=1458;t.hatafpatah16=1458;t.hatafpatah23=1458;t.hatafpatah2f=1458;t.hatafpatahhebrew=1458;t.hatafpatahnarrowhebrew=1458;t.hatafpatahquarterhebrew=1458;t.hatafpatahwidehebrew=1458;t.hatafqamats=1459;t.hatafqamats1b=1459;t.hatafqamats28=1459;t.hatafqamats34=1459;t.hatafqamatshebrew=1459;t.hatafqamatsnarrowhebrew=1459;t.hatafqamatsquarterhebrew=1459;t.hatafqamatswidehebrew=1459;t.hatafsegol=1457;t.hatafsegol17=1457;t.hatafsegol24=1457;t.hatafsegol30=1457;t.hatafsegolhebrew=1457;t.hatafsegolnarrowhebrew=1457;t.hatafsegolquarterhebrew=1457;t.hatafsegolwidehebrew=1457;t.hbar=295;t.hbopomofo=12559;t.hbrevebelow=7723;t.hcedilla=7721;t.hcircle=9431;t.hcircumflex=293;t.hdieresis=7719;t.hdotaccent=7715;t.hdotbelow=7717;t.he=1492;t.heart=9829;t.heartsuitblack=9829;t.heartsuitwhite=9825;t.hedagesh=64308;t.hedageshhebrew=64308;t.hehaltonearabic=1729;t.heharabic=1607;t.hehebrew=1492;t.hehfinalaltonearabic=64423;t.hehfinalalttwoarabic=65258;t.hehfinalarabic=65258;t.hehhamzaabovefinalarabic=64421;t.hehhamzaaboveisolatedarabic=64420;t.hehinitialaltonearabic=64424;t.hehinitialarabic=65259;t.hehiragana=12408;t.hehmedialaltonearabic=64425;t.hehmedialarabic=65260;t.heiseierasquare=13179;t.hekatakana=12504;t.hekatakanahalfwidth=65421;t.hekutaarusquare=13110;t.henghook=615;t.herutusquare=13113;t.het=1495;t.hethebrew=1495;t.hhook=614;t.hhooksuperior=689;t.hieuhacirclekorean=12923;t.hieuhaparenkorean=12827;t.hieuhcirclekorean=12909;t.hieuhkorean=12622;t.hieuhparenkorean=12813;t.hihiragana=12402;t.hikatakana=12498;t.hikatakanahalfwidth=65419;t.hiriq=1460;t.hiriq14=1460;t.hiriq21=1460;t.hiriq2d=1460;t.hiriqhebrew=1460;t.hiriqnarrowhebrew=1460;t.hiriqquarterhebrew=1460;t.hiriqwidehebrew=1460;t.hlinebelow=7830;t.hmonospace=65352;t.hoarmenian=1392;t.hohipthai=3627;t.hohiragana=12411;t.hokatakana=12507;t.hokatakanahalfwidth=65422;t.holam=1465;t.holam19=1465;t.holam26=1465;t.holam32=1465;t.holamhebrew=1465;t.holamnarrowhebrew=1465;t.holamquarterhebrew=1465;t.holamwidehebrew=1465;t.honokhukthai=3630;t.hookabovecomb=777;t.hookcmb=777;t.hookpalatalizedbelowcmb=801;t.hookretroflexbelowcmb=802;t.hoonsquare=13122;t.horicoptic=1001;t.horizontalbar=8213;t.horncmb=795;t.hotsprings=9832;t.house=8962;t.hparen=9379;t.hsuperior=688;t.hturned=613;t.huhiragana=12405;t.huiitosquare=13107;t.hukatakana=12501;t.hukatakanahalfwidth=65420;t.hungarumlaut=733;t.hungarumlautcmb=779;t.hv=405;t.hyphen=45;t.hypheninferior=63205;t.hyphenmonospace=65293;t.hyphensmall=65123;t.hyphensuperior=63206;t.hyphentwo=8208;t.i=105;t.iacute=237;t.iacyrillic=1103;t.ibengali=2439;t.ibopomofo=12583;t.ibreve=301;t.icaron=464;t.icircle=9432;t.icircumflex=238;t.icyrillic=1110;t.idblgrave=521;t.ideographearthcircle=12943;t.ideographfirecircle=12939;t.ideographicallianceparen=12863;t.ideographiccallparen=12858;t.ideographiccentrecircle=12965;t.ideographicclose=12294;t.ideographiccomma=12289;t.ideographiccommaleft=65380;t.ideographiccongratulationparen=12855;t.ideographiccorrectcircle=12963;t.ideographicearthparen=12847;t.ideographicenterpriseparen=12861;t.ideographicexcellentcircle=12957;t.ideographicfestivalparen=12864;t.ideographicfinancialcircle=12950;t.ideographicfinancialparen=12854;t.ideographicfireparen=12843;t.ideographichaveparen=12850;t.ideographichighcircle=12964;t.ideographiciterationmark=12293;t.ideographiclaborcircle=12952;t.ideographiclaborparen=12856;t.ideographicleftcircle=12967;t.ideographiclowcircle=12966;t.ideographicmedicinecircle=12969;t.ideographicmetalparen=12846;t.ideographicmoonparen=12842;t.ideographicnameparen=12852;t.ideographicperiod=12290;t.ideographicprintcircle=12958;t.ideographicreachparen=12867;t.ideographicrepresentparen=12857;t.ideographicresourceparen=12862;t.ideographicrightcircle=12968;t.ideographicsecretcircle=12953;t.ideographicselfparen=12866;t.ideographicsocietyparen=12851;t.ideographicspace=12288;t.ideographicspecialparen=12853;t.ideographicstockparen=12849;t.ideographicstudyparen=12859;t.ideographicsunparen=12848;t.ideographicsuperviseparen=12860;t.ideographicwaterparen=12844;t.ideographicwoodparen=12845;t.ideographiczero=12295;t.ideographmetalcircle=12942;t.ideographmooncircle=12938;t.ideographnamecircle=12948;t.ideographsuncircle=12944;t.ideographwatercircle=12940;t.ideographwoodcircle=12941;t.ideva=2311;t.idieresis=239;t.idieresisacute=7727;t.idieresiscyrillic=1253;t.idotbelow=7883;t.iebrevecyrillic=1239;t.iecyrillic=1077;t.ieungacirclekorean=12917;t.ieungaparenkorean=12821;t.ieungcirclekorean=12903;t.ieungkorean=12615;t.ieungparenkorean=12807;t.igrave=236;t.igujarati=2695;t.igurmukhi=2567;t.ihiragana=12356;t.ihookabove=7881;t.iibengali=2440;t.iicyrillic=1080;t.iideva=2312;t.iigujarati=2696;t.iigurmukhi=2568;t.iimatragurmukhi=2624;t.iinvertedbreve=523;t.iishortcyrillic=1081;t.iivowelsignbengali=2496;t.iivowelsigndeva=2368;t.iivowelsigngujarati=2752;t.ij=307;t.ikatakana=12452;t.ikatakanahalfwidth=65394;t.ikorean=12643;t.ilde=732;t.iluyhebrew=1452;t.imacron=299;t.imacroncyrillic=1251;t.imageorapproximatelyequal=8787;t.imatragurmukhi=2623;t.imonospace=65353;t.increment=8710;t.infinity=8734;t.iniarmenian=1387;t.integral=8747;t.integralbottom=8993;t.integralbt=8993;t.integralex=63733;t.integraltop=8992;t.integraltp=8992;t.intersection=8745;t.intisquare=13061;t.invbullet=9688;t.invcircle=9689;t.invsmileface=9787;t.iocyrillic=1105;t.iogonek=303;t.iota=953;t.iotadieresis=970;t.iotadieresistonos=912;t.iotalatin=617;t.iotatonos=943;t.iparen=9380;t.irigurmukhi=2674;t.ismallhiragana=12355;t.ismallkatakana=12451;t.ismallkatakanahalfwidth=65384;t.issharbengali=2554;t.istroke=616;t.isuperior=63213;t.iterationhiragana=12445;t.iterationkatakana=12541;t.itilde=297;t.itildebelow=7725;t.iubopomofo=12585;t.iucyrillic=1102;t.ivowelsignbengali=2495;t.ivowelsigndeva=2367;t.ivowelsigngujarati=2751;t.izhitsacyrillic=1141;t.izhitsadblgravecyrillic=1143;t.j=106;t.jaarmenian=1393;t.jabengali=2460;t.jadeva=2332;t.jagujarati=2716;t.jagurmukhi=2588;t.jbopomofo=12560;t.jcaron=496;t.jcircle=9433;t.jcircumflex=309;t.jcrossedtail=669;t.jdotlessstroke=607;t.jecyrillic=1112;t.jeemarabic=1580;t.jeemfinalarabic=65182;t.jeeminitialarabic=65183;t.jeemmedialarabic=65184;t.jeharabic=1688;t.jehfinalarabic=64395;t.jhabengali=2461;t.jhadeva=2333;t.jhagujarati=2717;t.jhagurmukhi=2589;t.jheharmenian=1403;t.jis=12292;t.jmonospace=65354;t.jparen=9381;t.jsuperior=690;t.k=107;t.kabashkircyrillic=1185;t.kabengali=2453;t.kacute=7729;t.kacyrillic=1082;t.kadescendercyrillic=1179;t.kadeva=2325;t.kaf=1499;t.kafarabic=1603;t.kafdagesh=64315;t.kafdageshhebrew=64315;t.kaffinalarabic=65242;t.kafhebrew=1499;t.kafinitialarabic=65243;t.kafmedialarabic=65244;t.kafrafehebrew=64333;t.kagujarati=2709;t.kagurmukhi=2581;t.kahiragana=12363;t.kahookcyrillic=1220;t.kakatakana=12459;t.kakatakanahalfwidth=65398;t.kappa=954;t.kappasymbolgreek=1008;t.kapyeounmieumkorean=12657;t.kapyeounphieuphkorean=12676;t.kapyeounpieupkorean=12664;t.kapyeounssangpieupkorean=12665;t.karoriisquare=13069;t.kashidaautoarabic=1600;t.kashidaautonosidebearingarabic=1600;t.kasmallkatakana=12533;t.kasquare=13188;t.kasraarabic=1616;t.kasratanarabic=1613;t.kastrokecyrillic=1183;t.katahiraprolongmarkhalfwidth=65392;t.kaverticalstrokecyrillic=1181;t.kbopomofo=12558;t.kcalsquare=13193;t.kcaron=489;t.kcedilla=311;t.kcircle=9434;t.kcommaaccent=311;t.kdotbelow=7731;t.keharmenian=1412;t.kehiragana=12369;t.kekatakana=12465;t.kekatakanahalfwidth=65401;t.kenarmenian=1391;t.kesmallkatakana=12534;t.kgreenlandic=312;t.khabengali=2454;t.khacyrillic=1093;t.khadeva=2326;t.khagujarati=2710;t.khagurmukhi=2582;t.khaharabic=1582;t.khahfinalarabic=65190;t.khahinitialarabic=65191;t.khahmedialarabic=65192;t.kheicoptic=999;t.khhadeva=2393;t.khhagurmukhi=2649;t.khieukhacirclekorean=12920;t.khieukhaparenkorean=12824;t.khieukhcirclekorean=12906;t.khieukhkorean=12619;t.khieukhparenkorean=12810;t.khokhaithai=3586;t.khokhonthai=3589;t.khokhuatthai=3587;t.khokhwaithai=3588;t.khomutthai=3675;t.khook=409;t.khorakhangthai=3590;t.khzsquare=13201;t.kihiragana=12365;t.kikatakana=12461;t.kikatakanahalfwidth=65399;t.kiroguramusquare=13077;t.kiromeetorusquare=13078;t.kirosquare=13076;t.kiyeokacirclekorean=12910;t.kiyeokaparenkorean=12814;t.kiyeokcirclekorean=12896;t.kiyeokkorean=12593;t.kiyeokparenkorean=12800;t.kiyeoksioskorean=12595;t.kjecyrillic=1116;t.klinebelow=7733;t.klsquare=13208;t.kmcubedsquare=13222;t.kmonospace=65355;t.kmsquaredsquare=13218;t.kohiragana=12371;t.kohmsquare=13248;t.kokaithai=3585;t.kokatakana=12467;t.kokatakanahalfwidth=65402;t.kooposquare=13086;t.koppacyrillic=1153;t.koreanstandardsymbol=12927;t.koroniscmb=835;t.kparen=9382;t.kpasquare=13226;t.ksicyrillic=1135;t.ktsquare=13263;t.kturned=670;t.kuhiragana=12367;t.kukatakana=12463;t.kukatakanahalfwidth=65400;t.kvsquare=13240;t.kwsquare=13246;t.l=108;t.labengali=2482;t.lacute=314;t.ladeva=2354;t.lagujarati=2738;t.lagurmukhi=2610;t.lakkhangyaothai=3653;t.lamaleffinalarabic=65276;t.lamalefhamzaabovefinalarabic=65272;t.lamalefhamzaaboveisolatedarabic=65271;t.lamalefhamzabelowfinalarabic=65274;t.lamalefhamzabelowisolatedarabic=65273;t.lamalefisolatedarabic=65275;t.lamalefmaddaabovefinalarabic=65270;t.lamalefmaddaaboveisolatedarabic=65269;t.lamarabic=1604;t.lambda=955;t.lambdastroke=411;t.lamed=1500;t.lameddagesh=64316;t.lameddageshhebrew=64316;t.lamedhebrew=1500;t.lamfinalarabic=65246;t.lamhahinitialarabic=64714;t.laminitialarabic=65247;t.lamjeeminitialarabic=64713;t.lamkhahinitialarabic=64715;t.lamlamhehisolatedarabic=65010;t.lammedialarabic=65248;t.lammeemhahinitialarabic=64904;t.lammeeminitialarabic=64716;t.largecircle=9711;t.lbar=410;t.lbelt=620;t.lbopomofo=12556;t.lcaron=318;t.lcedilla=316;t.lcircle=9435;t.lcircumflexbelow=7741;t.lcommaaccent=316;t.ldot=320;t.ldotaccent=320;t.ldotbelow=7735;t.ldotbelowmacron=7737;t.leftangleabovecmb=794;t.lefttackbelowcmb=792;t.less=60;t.lessequal=8804;t.lessequalorgreater=8922;t.lessmonospace=65308;t.lessorequivalent=8818;t.lessorgreater=8822;t.lessoverequal=8806;t.lesssmall=65124;t.lezh=622;t.lfblock=9612;t.lhookretroflex=621;t.lira=8356;t.liwnarmenian=1388;t.lj=457;t.ljecyrillic=1113;t.ll=63168;t.lladeva=2355;t.llagujarati=2739;t.llinebelow=7739;t.llladeva=2356;t.llvocalicbengali=2529;t.llvocalicdeva=2401;t.llvocalicvowelsignbengali=2531;t.llvocalicvowelsigndeva=2403;t.lmiddletilde=619;t.lmonospace=65356;t.lmsquare=13264;t.lochulathai=3628;t.logicaland=8743;t.logicalnot=172;t.logicalnotreversed=8976;t.logicalor=8744;t.lolingthai=3621;t.longs=383;t.lowlinecenterline=65102;t.lowlinecmb=818;t.lowlinedashed=65101;t.lozenge=9674;t.lparen=9383;t.lslash=322;t.lsquare=8467;t.lsuperior=63214;t.ltshade=9617;t.luthai=3622;t.lvocalicbengali=2444;t.lvocalicdeva=2316;t.lvocalicvowelsignbengali=2530;t.lvocalicvowelsigndeva=2402;t.lxsquare=13267;t.m=109;t.mabengali=2478;t.macron=175;t.macronbelowcmb=817;t.macroncmb=772;t.macronlowmod=717;t.macronmonospace=65507;t.macute=7743;t.madeva=2350;t.magujarati=2734;t.magurmukhi=2606;t.mahapakhhebrew=1444;t.mahapakhlefthebrew=1444;t.mahiragana=12414;t.maichattawalowleftthai=63637;t.maichattawalowrightthai=63636;t.maichattawathai=3659;t.maichattawaupperleftthai=63635;t.maieklowleftthai=63628;t.maieklowrightthai=63627;t.maiekthai=3656;t.maiekupperleftthai=63626;t.maihanakatleftthai=63620;t.maihanakatthai=3633;t.maitaikhuleftthai=63625;t.maitaikhuthai=3655;t.maitholowleftthai=63631;t.maitholowrightthai=63630;t.maithothai=3657;t.maithoupperleftthai=63629;t.maitrilowleftthai=63634;t.maitrilowrightthai=63633;t.maitrithai=3658;t.maitriupperleftthai=63632;t.maiyamokthai=3654;t.makatakana=12510;t.makatakanahalfwidth=65423;t.male=9794;t.mansyonsquare=13127;t.maqafhebrew=1470;t.mars=9794;t.masoracirclehebrew=1455;t.masquare=13187;t.mbopomofo=12551;t.mbsquare=13268;t.mcircle=9436;t.mcubedsquare=13221;t.mdotaccent=7745;t.mdotbelow=7747;t.meemarabic=1605;t.meemfinalarabic=65250;t.meeminitialarabic=65251;t.meemmedialarabic=65252;t.meemmeeminitialarabic=64721;t.meemmeemisolatedarabic=64584;t.meetorusquare=13133;t.mehiragana=12417;t.meizierasquare=13182;t.mekatakana=12513;t.mekatakanahalfwidth=65426;t.mem=1502;t.memdagesh=64318;t.memdageshhebrew=64318;t.memhebrew=1502;t.menarmenian=1396;t.merkhahebrew=1445;t.merkhakefulahebrew=1446;t.merkhakefulalefthebrew=1446;t.merkhalefthebrew=1445;t.mhook=625;t.mhzsquare=13202;t.middledotkatakanahalfwidth=65381;t.middot=183;t.mieumacirclekorean=12914;t.mieumaparenkorean=12818;t.mieumcirclekorean=12900;t.mieumkorean=12609;t.mieumpansioskorean=12656;t.mieumparenkorean=12804;t.mieumpieupkorean=12654;t.mieumsioskorean=12655;t.mihiragana=12415;t.mikatakana=12511;t.mikatakanahalfwidth=65424;t.minus=8722;t.minusbelowcmb=800;t.minuscircle=8854;t.minusmod=727;t.minusplus=8723;t.minute=8242;t.miribaarusquare=13130;t.mirisquare=13129;t.mlonglegturned=624;t.mlsquare=13206;t.mmcubedsquare=13219;t.mmonospace=65357;t.mmsquaredsquare=13215;t.mohiragana=12418;t.mohmsquare=13249;t.mokatakana=12514;t.mokatakanahalfwidth=65427;t.molsquare=13270;t.momathai=3617;t.moverssquare=13223;t.moverssquaredsquare=13224;t.mparen=9384;t.mpasquare=13227;t.mssquare=13235;t.msuperior=63215;t.mturned=623;t.mu=181;t.mu1=181;t.muasquare=13186;t.muchgreater=8811;t.muchless=8810;t.mufsquare=13196;t.mugreek=956;t.mugsquare=13197;t.muhiragana=12416;t.mukatakana=12512;t.mukatakanahalfwidth=65425;t.mulsquare=13205;t.multiply=215;t.mumsquare=13211;t.munahhebrew=1443;t.munahlefthebrew=1443;t.musicalnote=9834;t.musicalnotedbl=9835;t.musicflatsign=9837;t.musicsharpsign=9839;t.mussquare=13234;t.muvsquare=13238;t.muwsquare=13244;t.mvmegasquare=13241;t.mvsquare=13239;t.mwmegasquare=13247;t.mwsquare=13245;t.n=110;t.nabengali=2472;t.nabla=8711;t.nacute=324;t.nadeva=2344;t.nagujarati=2728;t.nagurmukhi=2600;t.nahiragana=12394;t.nakatakana=12490;t.nakatakanahalfwidth=65413;t.napostrophe=329;t.nasquare=13185;t.nbopomofo=12555;t.nbspace=160;t.ncaron=328;t.ncedilla=326;t.ncircle=9437;t.ncircumflexbelow=7755;t.ncommaaccent=326;t.ndotaccent=7749;t.ndotbelow=7751;t.nehiragana=12397;t.nekatakana=12493;t.nekatakanahalfwidth=65416;t.newsheqelsign=8362;t.nfsquare=13195;t.ngabengali=2457;t.ngadeva=2329;t.ngagujarati=2713;t.ngagurmukhi=2585;t.ngonguthai=3591;t.nhiragana=12435;t.nhookleft=626;t.nhookretroflex=627;t.nieunacirclekorean=12911;t.nieunaparenkorean=12815;t.nieuncieuckorean=12597;t.nieuncirclekorean=12897;t.nieunhieuhkorean=12598;t.nieunkorean=12596;t.nieunpansioskorean=12648;t.nieunparenkorean=12801;t.nieunsioskorean=12647;t.nieuntikeutkorean=12646;t.nihiragana=12395;t.nikatakana=12491;t.nikatakanahalfwidth=65414;t.nikhahitleftthai=63641;t.nikhahitthai=3661;t.nine=57;t.ninearabic=1641;t.ninebengali=2543;t.ninecircle=9320;t.ninecircleinversesansserif=10130;t.ninedeva=2415;t.ninegujarati=2799;t.ninegurmukhi=2671;t.ninehackarabic=1641;t.ninehangzhou=12329;t.nineideographicparen=12840;t.nineinferior=8329;t.ninemonospace=65305;t.nineoldstyle=63289;t.nineparen=9340;t.nineperiod=9360;t.ninepersian=1785;t.nineroman=8568;t.ninesuperior=8313;t.nineteencircle=9330;t.nineteenparen=9350;t.nineteenperiod=9370;t.ninethai=3673;t.nj=460;t.njecyrillic=1114;t.nkatakana=12531;t.nkatakanahalfwidth=65437;t.nlegrightlong=414;t.nlinebelow=7753;t.nmonospace=65358;t.nmsquare=13210;t.nnabengali=2467;t.nnadeva=2339;t.nnagujarati=2723;t.nnagurmukhi=2595;t.nnnadeva=2345;t.nohiragana=12398;t.nokatakana=12494;t.nokatakanahalfwidth=65417;t.nonbreakingspace=160;t.nonenthai=3603;t.nonuthai=3609;t.noonarabic=1606;t.noonfinalarabic=65254;t.noonghunnaarabic=1722;t.noonghunnafinalarabic=64415;t.nooninitialarabic=65255;t.noonjeeminitialarabic=64722;t.noonjeemisolatedarabic=64587;t.noonmedialarabic=65256;t.noonmeeminitialarabic=64725;t.noonmeemisolatedarabic=64590;t.noonnoonfinalarabic=64653;t.notcontains=8716;t.notelement=8713;t.notelementof=8713;t.notequal=8800;t.notgreater=8815;t.notgreaternorequal=8817;t.notgreaternorless=8825;t.notidentical=8802;t.notless=8814;t.notlessnorequal=8816;t.notparallel=8742;t.notprecedes=8832;t.notsubset=8836;t.notsucceeds=8833;t.notsuperset=8837;t.nowarmenian=1398;t.nparen=9385;t.nssquare=13233;t.nsuperior=8319;t.ntilde=241;t.nu=957;t.nuhiragana=12396;t.nukatakana=12492;t.nukatakanahalfwidth=65415;t.nuktabengali=2492;t.nuktadeva=2364;t.nuktagujarati=2748;t.nuktagurmukhi=2620;t.numbersign=35;t.numbersignmonospace=65283;t.numbersignsmall=65119;t.numeralsigngreek=884;t.numeralsignlowergreek=885;t.numero=8470;t.nun=1504;t.nundagesh=64320;t.nundageshhebrew=64320;t.nunhebrew=1504;t.nvsquare=13237;t.nwsquare=13243;t.nyabengali=2462;t.nyadeva=2334;t.nyagujarati=2718;t.nyagurmukhi=2590;t.o=111;t.oacute=243;t.oangthai=3629;t.obarred=629;t.obarredcyrillic=1257;t.obarreddieresiscyrillic=1259;t.obengali=2451;t.obopomofo=12571;t.obreve=335;t.ocandradeva=2321;t.ocandragujarati=2705;t.ocandravowelsigndeva=2377;t.ocandravowelsigngujarati=2761;t.ocaron=466;t.ocircle=9438;t.ocircumflex=244;t.ocircumflexacute=7889;t.ocircumflexdotbelow=7897;t.ocircumflexgrave=7891;t.ocircumflexhookabove=7893;t.ocircumflextilde=7895;t.ocyrillic=1086;t.odblacute=337;t.odblgrave=525;t.odeva=2323;t.odieresis=246;t.odieresiscyrillic=1255;t.odotbelow=7885;t.oe=339;t.oekorean=12634;t.ogonek=731;t.ogonekcmb=808;t.ograve=242;t.ogujarati=2707;t.oharmenian=1413;t.ohiragana=12362;t.ohookabove=7887;t.ohorn=417;t.ohornacute=7899;t.ohorndotbelow=7907;t.ohorngrave=7901;t.ohornhookabove=7903;t.ohorntilde=7905;t.ohungarumlaut=337;t.oi=419;t.oinvertedbreve=527;t.okatakana=12458;t.okatakanahalfwidth=65397;t.okorean=12631;t.olehebrew=1451;t.omacron=333;t.omacronacute=7763;t.omacrongrave=7761;t.omdeva=2384;t.omega=969;t.omega1=982;t.omegacyrillic=1121;t.omegalatinclosed=631;t.omegaroundcyrillic=1147;t.omegatitlocyrillic=1149;t.omegatonos=974;t.omgujarati=2768;t.omicron=959;t.omicrontonos=972;t.omonospace=65359;t.one=49;t.onearabic=1633;t.onebengali=2535;t.onecircle=9312;t.onecircleinversesansserif=10122;t.onedeva=2407;t.onedotenleader=8228;t.oneeighth=8539;t.onefitted=63196;t.onegujarati=2791;t.onegurmukhi=2663;t.onehackarabic=1633;t.onehalf=189;t.onehangzhou=12321;t.oneideographicparen=12832;t.oneinferior=8321;t.onemonospace=65297;t.onenumeratorbengali=2548;t.oneoldstyle=63281;t.oneparen=9332;t.oneperiod=9352;t.onepersian=1777;t.onequarter=188;t.oneroman=8560;t.onesuperior=185;t.onethai=3665;t.onethird=8531;t.oogonek=491;t.oogonekmacron=493;t.oogurmukhi=2579;t.oomatragurmukhi=2635;t.oopen=596;t.oparen=9386;t.openbullet=9702;t.option=8997;t.ordfeminine=170;t.ordmasculine=186;t.orthogonal=8735;t.oshortdeva=2322;t.oshortvowelsigndeva=2378;t.oslash=248;t.oslashacute=511;t.osmallhiragana=12361;t.osmallkatakana=12457;t.osmallkatakanahalfwidth=65387;t.ostrokeacute=511;t.osuperior=63216;t.otcyrillic=1151;t.otilde=245;t.otildeacute=7757;t.otildedieresis=7759;t.oubopomofo=12577;t.overline=8254;t.overlinecenterline=65098;t.overlinecmb=773;t.overlinedashed=65097;t.overlinedblwavy=65100;t.overlinewavy=65099;t.overscore=175;t.ovowelsignbengali=2507;t.ovowelsigndeva=2379;t.ovowelsigngujarati=2763;t.p=112;t.paampssquare=13184;t.paasentosquare=13099;t.pabengali=2474;t.pacute=7765;t.padeva=2346;t.pagedown=8671;t.pageup=8670;t.pagujarati=2730;t.pagurmukhi=2602;t.pahiragana=12401;t.paiyannoithai=3631;t.pakatakana=12497;t.palatalizationcyrilliccmb=1156;t.palochkacyrillic=1216;t.pansioskorean=12671;t.paragraph=182;t.parallel=8741;t.parenleft=40;t.parenleftaltonearabic=64830;t.parenleftbt=63725;t.parenleftex=63724;t.parenleftinferior=8333;t.parenleftmonospace=65288;t.parenleftsmall=65113;t.parenleftsuperior=8317;t.parenlefttp=63723;t.parenleftvertical=65077;t.parenright=41;t.parenrightaltonearabic=64831;t.parenrightbt=63736;t.parenrightex=63735;t.parenrightinferior=8334;t.parenrightmonospace=65289;t.parenrightsmall=65114;t.parenrightsuperior=8318;t.parenrighttp=63734;t.parenrightvertical=65078;t.partialdiff=8706;t.paseqhebrew=1472;t.pashtahebrew=1433;t.pasquare=13225;t.patah=1463;t.patah11=1463;t.patah1d=1463;t.patah2a=1463;t.patahhebrew=1463;t.patahnarrowhebrew=1463;t.patahquarterhebrew=1463;t.patahwidehebrew=1463;t.pazerhebrew=1441;t.pbopomofo=12550;t.pcircle=9439;t.pdotaccent=7767;t.pe=1508;t.pecyrillic=1087;t.pedagesh=64324;t.pedageshhebrew=64324;t.peezisquare=13115;t.pefinaldageshhebrew=64323;t.peharabic=1662;t.peharmenian=1402;t.pehebrew=1508;t.pehfinalarabic=64343;t.pehinitialarabic=64344;t.pehiragana=12410;t.pehmedialarabic=64345;t.pekatakana=12506;t.pemiddlehookcyrillic=1191;t.perafehebrew=64334;t.percent=37;t.percentarabic=1642;t.percentmonospace=65285;t.percentsmall=65130;t.period=46;t.periodarmenian=1417;t.periodcentered=183;t.periodhalfwidth=65377;t.periodinferior=63207;t.periodmonospace=65294;t.periodsmall=65106;t.periodsuperior=63208;t.perispomenigreekcmb=834;t.perpendicular=8869;t.perthousand=8240;t.peseta=8359;t.pfsquare=13194;t.phabengali=2475;t.phadeva=2347;t.phagujarati=2731;t.phagurmukhi=2603;t.phi=966;t.phi1=981;t.phieuphacirclekorean=12922;t.phieuphaparenkorean=12826;t.phieuphcirclekorean=12908;t.phieuphkorean=12621;t.phieuphparenkorean=12812;t.philatin=632;t.phinthuthai=3642;t.phisymbolgreek=981;t.phook=421;t.phophanthai=3614;t.phophungthai=3612;t.phosamphaothai=3616;t.pi=960;t.pieupacirclekorean=12915;t.pieupaparenkorean=12819;t.pieupcieuckorean=12662;t.pieupcirclekorean=12901;t.pieupkiyeokkorean=12658;t.pieupkorean=12610;t.pieupparenkorean=12805;t.pieupsioskiyeokkorean=12660;t.pieupsioskorean=12612;t.pieupsiostikeutkorean=12661;t.pieupthieuthkorean=12663;t.pieuptikeutkorean=12659;t.pihiragana=12404;t.pikatakana=12500;t.pisymbolgreek=982;t.piwrarmenian=1411;t.planckover2pi=8463;t.planckover2pi1=8463;t.plus=43;t.plusbelowcmb=799;t.pluscircle=8853;t.plusminus=177;t.plusmod=726;t.plusmonospace=65291;t.plussmall=65122;t.plussuperior=8314;t.pmonospace=65360;t.pmsquare=13272;t.pohiragana=12413;t.pointingindexdownwhite=9759;t.pointingindexleftwhite=9756;t.pointingindexrightwhite=9758;t.pointingindexupwhite=9757;t.pokatakana=12509;t.poplathai=3611;t.postalmark=12306;t.postalmarkface=12320;t.pparen=9387;t.precedes=8826;t.prescription=8478;t.primemod=697;t.primereversed=8245;t.product=8719;t.projective=8965;t.prolongedkana=12540;t.propellor=8984;t.propersubset=8834;t.propersuperset=8835;t.proportion=8759;t.proportional=8733;t.psi=968;t.psicyrillic=1137;t.psilipneumatacyrilliccmb=1158;t.pssquare=13232;t.puhiragana=12407;t.pukatakana=12503;t.pvsquare=13236;t.pwsquare=13242;t.q=113;t.qadeva=2392;t.qadmahebrew=1448;t.qafarabic=1602;t.qaffinalarabic=65238;t.qafinitialarabic=65239;t.qafmedialarabic=65240;t.qamats=1464;t.qamats10=1464;t.qamats1a=1464;t.qamats1c=1464;t.qamats27=1464;t.qamats29=1464;t.qamats33=1464;t.qamatsde=1464;t.qamatshebrew=1464;t.qamatsnarrowhebrew=1464;t.qamatsqatanhebrew=1464;t.qamatsqatannarrowhebrew=1464;t.qamatsqatanquarterhebrew=1464;t.qamatsqatanwidehebrew=1464;t.qamatsquarterhebrew=1464;t.qamatswidehebrew=1464;t.qarneyparahebrew=1439;t.qbopomofo=12561;t.qcircle=9440;t.qhook=672;t.qmonospace=65361;t.qof=1511;t.qofdagesh=64327;t.qofdageshhebrew=64327;t.qofhebrew=1511;t.qparen=9388;t.quarternote=9833;t.qubuts=1467;t.qubuts18=1467;t.qubuts25=1467;t.qubuts31=1467;t.qubutshebrew=1467;t.qubutsnarrowhebrew=1467;t.qubutsquarterhebrew=1467;t.qubutswidehebrew=1467;t.question=63;t.questionarabic=1567;t.questionarmenian=1374;t.questiondown=191;t.questiondownsmall=63423;t.questiongreek=894;t.questionmonospace=65311;t.questionsmall=63295;t.quotedbl=34;t.quotedblbase=8222;t.quotedblleft=8220;t.quotedblmonospace=65282;t.quotedblprime=12318;t.quotedblprimereversed=12317;t.quotedblright=8221;t.quoteleft=8216;t.quoteleftreversed=8219;t.quotereversed=8219;t.quoteright=8217;t.quoterightn=329;t.quotesinglbase=8218;t.quotesingle=39;t.quotesinglemonospace=65287;t.r=114;t.raarmenian=1404;t.rabengali=2480;t.racute=341;t.radeva=2352;t.radical=8730;t.radicalex=63717;t.radoverssquare=13230;t.radoverssquaredsquare=13231;t.radsquare=13229;t.rafe=1471;t.rafehebrew=1471;t.ragujarati=2736;t.ragurmukhi=2608;t.rahiragana=12425;t.rakatakana=12521;t.rakatakanahalfwidth=65431;t.ralowerdiagonalbengali=2545;t.ramiddlediagonalbengali=2544;t.ramshorn=612;t.ratio=8758;t.rbopomofo=12566;t.rcaron=345;t.rcedilla=343;t.rcircle=9441;t.rcommaaccent=343;t.rdblgrave=529;t.rdotaccent=7769;t.rdotbelow=7771;t.rdotbelowmacron=7773;t.referencemark=8251;t.reflexsubset=8838;t.reflexsuperset=8839;t.registered=174;t.registersans=63720;t.registerserif=63194;t.reharabic=1585;t.reharmenian=1408;t.rehfinalarabic=65198;t.rehiragana=12428;t.rekatakana=12524;t.rekatakanahalfwidth=65434;t.resh=1512;t.reshdageshhebrew=64328;t.reshhebrew=1512;t.reversedtilde=8765;t.reviahebrew=1431;t.reviamugrashhebrew=1431;t.revlogicalnot=8976;t.rfishhook=638;t.rfishhookreversed=639;t.rhabengali=2525;t.rhadeva=2397;t.rho=961;t.rhook=637;t.rhookturned=635;t.rhookturnedsuperior=693;t.rhosymbolgreek=1009;t.rhotichookmod=734;t.rieulacirclekorean=12913;t.rieulaparenkorean=12817;t.rieulcirclekorean=12899;t.rieulhieuhkorean=12608;t.rieulkiyeokkorean=12602;t.rieulkiyeoksioskorean=12649;t.rieulkorean=12601;t.rieulmieumkorean=12603;t.rieulpansioskorean=12652;t.rieulparenkorean=12803;t.rieulphieuphkorean=12607;t.rieulpieupkorean=12604;t.rieulpieupsioskorean=12651;t.rieulsioskorean=12605;t.rieulthieuthkorean=12606;t.rieultikeutkorean=12650;t.rieulyeorinhieuhkorean=12653;t.rightangle=8735;t.righttackbelowcmb=793;t.righttriangle=8895;t.rihiragana=12426;t.rikatakana=12522;t.rikatakanahalfwidth=65432;t.ring=730;t.ringbelowcmb=805;t.ringcmb=778;t.ringhalfleft=703;t.ringhalfleftarmenian=1369;t.ringhalfleftbelowcmb=796;t.ringhalfleftcentered=723;t.ringhalfright=702;t.ringhalfrightbelowcmb=825;t.ringhalfrightcentered=722;t.rinvertedbreve=531;t.rittorusquare=13137;t.rlinebelow=7775;t.rlongleg=636;t.rlonglegturned=634;t.rmonospace=65362;t.rohiragana=12429;t.rokatakana=12525;t.rokatakanahalfwidth=65435;t.roruathai=3619;t.rparen=9389;t.rrabengali=2524;t.rradeva=2353;t.rragurmukhi=2652;t.rreharabic=1681;t.rrehfinalarabic=64397;t.rrvocalicbengali=2528;t.rrvocalicdeva=2400;t.rrvocalicgujarati=2784;t.rrvocalicvowelsignbengali=2500;t.rrvocalicvowelsigndeva=2372;t.rrvocalicvowelsigngujarati=2756;t.rsuperior=63217;t.rtblock=9616;t.rturned=633;t.rturnedsuperior=692;t.ruhiragana=12427;t.rukatakana=12523;t.rukatakanahalfwidth=65433;t.rupeemarkbengali=2546;t.rupeesignbengali=2547;t.rupiah=63197;t.ruthai=3620;t.rvocalicbengali=2443;t.rvocalicdeva=2315;t.rvocalicgujarati=2699;t.rvocalicvowelsignbengali=2499;t.rvocalicvowelsigndeva=2371;t.rvocalicvowelsigngujarati=2755;t.s=115;t.sabengali=2488;t.sacute=347;t.sacutedotaccent=7781;t.sadarabic=1589;t.sadeva=2360;t.sadfinalarabic=65210;t.sadinitialarabic=65211;t.sadmedialarabic=65212;t.sagujarati=2744;t.sagurmukhi=2616;t.sahiragana=12373;t.sakatakana=12469;t.sakatakanahalfwidth=65403;t.sallallahoualayhewasallamarabic=65018;t.samekh=1505;t.samekhdagesh=64321;t.samekhdageshhebrew=64321;t.samekhhebrew=1505;t.saraaathai=3634;t.saraaethai=3649;t.saraaimaimalaithai=3652;t.saraaimaimuanthai=3651;t.saraamthai=3635;t.saraathai=3632;t.saraethai=3648;t.saraiileftthai=63622;t.saraiithai=3637;t.saraileftthai=63621;t.saraithai=3636;t.saraothai=3650;t.saraueeleftthai=63624;t.saraueethai=3639;t.saraueleftthai=63623;t.sarauethai=3638;t.sarauthai=3640;t.sarauuthai=3641;t.sbopomofo=12569;t.scaron=353;t.scarondotaccent=7783;t.scedilla=351;t.schwa=601;t.schwacyrillic=1241;t.schwadieresiscyrillic=1243;t.schwahook=602;t.scircle=9442;t.scircumflex=349;t.scommaaccent=537;t.sdotaccent=7777;t.sdotbelow=7779;t.sdotbelowdotaccent=7785;t.seagullbelowcmb=828;t.second=8243;t.secondtonechinese=714;t.section=167;t.seenarabic=1587;t.seenfinalarabic=65202;t.seeninitialarabic=65203;t.seenmedialarabic=65204;t.segol=1462;t.segol13=1462;t.segol1f=1462;t.segol2c=1462;t.segolhebrew=1462;t.segolnarrowhebrew=1462;t.segolquarterhebrew=1462;t.segoltahebrew=1426;t.segolwidehebrew=1462;t.seharmenian=1405;t.sehiragana=12379;t.sekatakana=12475;t.sekatakanahalfwidth=65406;t.semicolon=59;t.semicolonarabic=1563;t.semicolonmonospace=65307;t.semicolonsmall=65108;t.semivoicedmarkkana=12444;t.semivoicedmarkkanahalfwidth=65439;t.sentisquare=13090;t.sentosquare=13091;t.seven=55;t.sevenarabic=1639;t.sevenbengali=2541;t.sevencircle=9318;t.sevencircleinversesansserif=10128;t.sevendeva=2413;t.seveneighths=8542;t.sevengujarati=2797;t.sevengurmukhi=2669;t.sevenhackarabic=1639;t.sevenhangzhou=12327;t.sevenideographicparen=12838;t.seveninferior=8327;t.sevenmonospace=65303;t.sevenoldstyle=63287;t.sevenparen=9338;t.sevenperiod=9358;t.sevenpersian=1783;t.sevenroman=8566;t.sevensuperior=8311;t.seventeencircle=9328;t.seventeenparen=9348;t.seventeenperiod=9368;t.seventhai=3671;t.sfthyphen=173;t.shaarmenian=1399;t.shabengali=2486;t.shacyrillic=1096;t.shaddaarabic=1617;t.shaddadammaarabic=64609;t.shaddadammatanarabic=64606;t.shaddafathaarabic=64608;t.shaddakasraarabic=64610;t.shaddakasratanarabic=64607;t.shade=9618;t.shadedark=9619;t.shadelight=9617;t.shademedium=9618;t.shadeva=2358;t.shagujarati=2742;t.shagurmukhi=2614;t.shalshelethebrew=1427;t.shbopomofo=12565;t.shchacyrillic=1097;t.sheenarabic=1588;t.sheenfinalarabic=65206;t.sheeninitialarabic=65207;t.sheenmedialarabic=65208;t.sheicoptic=995;t.sheqel=8362;t.sheqelhebrew=8362;t.sheva=1456;t.sheva115=1456;t.sheva15=1456;t.sheva22=1456;t.sheva2e=1456;t.shevahebrew=1456;t.shevanarrowhebrew=1456;t.shevaquarterhebrew=1456;t.shevawidehebrew=1456;t.shhacyrillic=1211;t.shimacoptic=1005;t.shin=1513;t.shindagesh=64329;t.shindageshhebrew=64329;t.shindageshshindot=64300;t.shindageshshindothebrew=64300;t.shindageshsindot=64301;t.shindageshsindothebrew=64301;t.shindothebrew=1473;t.shinhebrew=1513;t.shinshindot=64298;t.shinshindothebrew=64298;t.shinsindot=64299;t.shinsindothebrew=64299;t.shook=642;t.sigma=963;t.sigma1=962;t.sigmafinal=962;t.sigmalunatesymbolgreek=1010;t.sihiragana=12375;t.sikatakana=12471;t.sikatakanahalfwidth=65404;t.siluqhebrew=1469;t.siluqlefthebrew=1469;t.similar=8764;t.sindothebrew=1474;t.siosacirclekorean=12916;t.siosaparenkorean=12820;t.sioscieuckorean=12670;t.sioscirclekorean=12902;t.sioskiyeokkorean=12666;t.sioskorean=12613;t.siosnieunkorean=12667;t.siosparenkorean=12806;t.siospieupkorean=12669;t.siostikeutkorean=12668;t.six=54;t.sixarabic=1638;t.sixbengali=2540;t.sixcircle=9317;t.sixcircleinversesansserif=10127;t.sixdeva=2412;t.sixgujarati=2796;t.sixgurmukhi=2668;t.sixhackarabic=1638;t.sixhangzhou=12326;t.sixideographicparen=12837;t.sixinferior=8326;t.sixmonospace=65302;t.sixoldstyle=63286;t.sixparen=9337;t.sixperiod=9357;t.sixpersian=1782;t.sixroman=8565;t.sixsuperior=8310;t.sixteencircle=9327;t.sixteencurrencydenominatorbengali=2553;t.sixteenparen=9347;t.sixteenperiod=9367;t.sixthai=3670;t.slash=47;t.slashmonospace=65295;t.slong=383;t.slongdotaccent=7835;t.smileface=9786;t.smonospace=65363;t.sofpasuqhebrew=1475;t.softhyphen=173;t.softsigncyrillic=1100;t.sohiragana=12381;t.sokatakana=12477;t.sokatakanahalfwidth=65407;t.soliduslongoverlaycmb=824;t.solidusshortoverlaycmb=823;t.sorusithai=3625;t.sosalathai=3624;t.sosothai=3595;t.sosuathai=3626;t.space=32;t.spacehackarabic=32;t.spade=9824;t.spadesuitblack=9824;t.spadesuitwhite=9828;t.sparen=9390;t.squarebelowcmb=827;t.squarecc=13252;t.squarecm=13213;t.squarediagonalcrosshatchfill=9641;t.squarehorizontalfill=9636;t.squarekg=13199;t.squarekm=13214;t.squarekmcapital=13262;t.squareln=13265;t.squarelog=13266;t.squaremg=13198;t.squaremil=13269;t.squaremm=13212;t.squaremsquared=13217;t.squareorthogonalcrosshatchfill=9638;t.squareupperlefttolowerrightfill=9639;t.squareupperrighttolowerleftfill=9640;t.squareverticalfill=9637;t.squarewhitewithsmallblack=9635;t.srsquare=13275;t.ssabengali=2487;t.ssadeva=2359;t.ssagujarati=2743;t.ssangcieuckorean=12617;t.ssanghieuhkorean=12677;t.ssangieungkorean=12672;t.ssangkiyeokkorean=12594;t.ssangnieunkorean=12645;t.ssangpieupkorean=12611;t.ssangsioskorean=12614;t.ssangtikeutkorean=12600;t.ssuperior=63218;t.sterling=163;t.sterlingmonospace=65505;t.strokelongoverlaycmb=822;t.strokeshortoverlaycmb=821;t.subset=8834;t.subsetnotequal=8842;t.subsetorequal=8838;t.succeeds=8827;t.suchthat=8715;t.suhiragana=12377;t.sukatakana=12473;t.sukatakanahalfwidth=65405;t.sukunarabic=1618;t.summation=8721;t.sun=9788;t.superset=8835;t.supersetnotequal=8843;t.supersetorequal=8839;t.svsquare=13276;t.syouwaerasquare=13180;t.t=116;t.tabengali=2468;t.tackdown=8868;t.tackleft=8867;t.tadeva=2340;t.tagujarati=2724;t.tagurmukhi=2596;t.taharabic=1591;t.tahfinalarabic=65218;t.tahinitialarabic=65219;t.tahiragana=12383;t.tahmedialarabic=65220;t.taisyouerasquare=13181;t.takatakana=12479;t.takatakanahalfwidth=65408;t.tatweelarabic=1600;t.tau=964;t.tav=1514;t.tavdages=64330;t.tavdagesh=64330;t.tavdageshhebrew=64330;t.tavhebrew=1514;t.tbar=359;t.tbopomofo=12554;t.tcaron=357;t.tccurl=680;t.tcedilla=355;t.tcheharabic=1670;t.tchehfinalarabic=64379;t.tchehinitialarabic=64380;t.tchehmedialarabic=64381;t.tcircle=9443;t.tcircumflexbelow=7793;t.tcommaaccent=355;t.tdieresis=7831;t.tdotaccent=7787;t.tdotbelow=7789;t.tecyrillic=1090;t.tedescendercyrillic=1197;t.teharabic=1578;t.tehfinalarabic=65174;t.tehhahinitialarabic=64674;t.tehhahisolatedarabic=64524;t.tehinitialarabic=65175;t.tehiragana=12390;t.tehjeeminitialarabic=64673;t.tehjeemisolatedarabic=64523;t.tehmarbutaarabic=1577;t.tehmarbutafinalarabic=65172;t.tehmedialarabic=65176;t.tehmeeminitialarabic=64676;t.tehmeemisolatedarabic=64526;t.tehnoonfinalarabic=64627;t.tekatakana=12486;t.tekatakanahalfwidth=65411;t.telephone=8481;t.telephoneblack=9742;t.telishagedolahebrew=1440;t.telishaqetanahebrew=1449;t.tencircle=9321;t.tenideographicparen=12841;t.tenparen=9341;t.tenperiod=9361;t.tenroman=8569;t.tesh=679;t.tet=1496;t.tetdagesh=64312;t.tetdageshhebrew=64312;t.tethebrew=1496;t.tetsecyrillic=1205;t.tevirhebrew=1435;t.tevirlefthebrew=1435;t.thabengali=2469;t.thadeva=2341;t.thagujarati=2725;t.thagurmukhi=2597;t.thalarabic=1584;t.thalfinalarabic=65196;t.thanthakhatlowleftthai=63640;t.thanthakhatlowrightthai=63639;t.thanthakhatthai=3660;t.thanthakhatupperleftthai=63638;t.theharabic=1579;t.thehfinalarabic=65178;t.thehinitialarabic=65179;t.thehmedialarabic=65180;t.thereexists=8707;t.therefore=8756;t.theta=952;t.theta1=977;t.thetasymbolgreek=977;t.thieuthacirclekorean=12921;t.thieuthaparenkorean=12825;t.thieuthcirclekorean=12907;t.thieuthkorean=12620;t.thieuthparenkorean=12811;t.thirteencircle=9324;t.thirteenparen=9344;t.thirteenperiod=9364;t.thonangmonthothai=3601;t.thook=429;t.thophuthaothai=3602;t.thorn=254;t.thothahanthai=3607;t.thothanthai=3600;t.thothongthai=3608;t.thothungthai=3606;t.thousandcyrillic=1154;t.thousandsseparatorarabic=1644;t.thousandsseparatorpersian=1644;t.three=51;t.threearabic=1635;t.threebengali=2537;t.threecircle=9314;t.threecircleinversesansserif=10124;t.threedeva=2409;t.threeeighths=8540;t.threegujarati=2793;t.threegurmukhi=2665;t.threehackarabic=1635;t.threehangzhou=12323;t.threeideographicparen=12834;t.threeinferior=8323;t.threemonospace=65299;t.threenumeratorbengali=2550;t.threeoldstyle=63283;t.threeparen=9334;t.threeperiod=9354;t.threepersian=1779;t.threequarters=190;t.threequartersemdash=63198;t.threeroman=8562;t.threesuperior=179;t.threethai=3667;t.thzsquare=13204;t.tihiragana=12385;t.tikatakana=12481;t.tikatakanahalfwidth=65409;t.tikeutacirclekorean=12912;t.tikeutaparenkorean=12816;t.tikeutcirclekorean=12898;t.tikeutkorean=12599;t.tikeutparenkorean=12802;t.tilde=732;t.tildebelowcmb=816;t.tildecmb=771;t.tildecomb=771;t.tildedoublecmb=864;t.tildeoperator=8764;t.tildeoverlaycmb=820;t.tildeverticalcmb=830;t.timescircle=8855;t.tipehahebrew=1430;t.tipehalefthebrew=1430;t.tippigurmukhi=2672;t.titlocyrilliccmb=1155;t.tiwnarmenian=1407;t.tlinebelow=7791;t.tmonospace=65364;t.toarmenian=1385;t.tohiragana=12392;t.tokatakana=12488;t.tokatakanahalfwidth=65412;t.tonebarextrahighmod=741;t.tonebarextralowmod=745;t.tonebarhighmod=742;t.tonebarlowmod=744;t.tonebarmidmod=743;t.tonefive=445;t.tonesix=389;t.tonetwo=424;t.tonos=900;t.tonsquare=13095;t.topatakthai=3599;t.tortoiseshellbracketleft=12308;t.tortoiseshellbracketleftsmall=65117;t.tortoiseshellbracketleftvertical=65081;t.tortoiseshellbracketright=12309;t.tortoiseshellbracketrightsmall=65118;t.tortoiseshellbracketrightvertical=65082;t.totaothai=3605;t.tpalatalhook=427;t.tparen=9391;t.trademark=8482;t.trademarksans=63722;t.trademarkserif=63195;t.tretroflexhook=648;t.triagdn=9660;t.triaglf=9668;t.triagrt=9658;t.triagup=9650;t.ts=678;t.tsadi=1510;t.tsadidagesh=64326;t.tsadidageshhebrew=64326;t.tsadihebrew=1510;t.tsecyrillic=1094;t.tsere=1461;t.tsere12=1461;t.tsere1e=1461;t.tsere2b=1461;t.tserehebrew=1461;t.tserenarrowhebrew=1461;t.tserequarterhebrew=1461;t.tserewidehebrew=1461;t.tshecyrillic=1115;t.tsuperior=63219;t.ttabengali=2463;t.ttadeva=2335;t.ttagujarati=2719;t.ttagurmukhi=2591;t.tteharabic=1657;t.ttehfinalarabic=64359;t.ttehinitialarabic=64360;t.ttehmedialarabic=64361;t.tthabengali=2464;t.tthadeva=2336;t.tthagujarati=2720;t.tthagurmukhi=2592;t.tturned=647;t.tuhiragana=12388;t.tukatakana=12484;t.tukatakanahalfwidth=65410;t.tusmallhiragana=12387;t.tusmallkatakana=12483;t.tusmallkatakanahalfwidth=65391;t.twelvecircle=9323;t.twelveparen=9343;t.twelveperiod=9363;t.twelveroman=8571;t.twentycircle=9331;t.twentyhangzhou=21316;t.twentyparen=9351;t.twentyperiod=9371;t.two=50;t.twoarabic=1634;t.twobengali=2536;t.twocircle=9313;t.twocircleinversesansserif=10123;t.twodeva=2408;t.twodotenleader=8229;t.twodotleader=8229;t.twodotleadervertical=65072;t.twogujarati=2792;t.twogurmukhi=2664;t.twohackarabic=1634;t.twohangzhou=12322;t.twoideographicparen=12833;t.twoinferior=8322;t.twomonospace=65298;t.twonumeratorbengali=2549;t.twooldstyle=63282;t.twoparen=9333;t.twoperiod=9353;t.twopersian=1778;t.tworoman=8561;t.twostroke=443;t.twosuperior=178;t.twothai=3666;t.twothirds=8532;t.u=117;t.uacute=250;t.ubar=649;t.ubengali=2441;t.ubopomofo=12584;t.ubreve=365;t.ucaron=468;t.ucircle=9444;t.ucircumflex=251;t.ucircumflexbelow=7799;t.ucyrillic=1091;t.udattadeva=2385;t.udblacute=369;t.udblgrave=533;t.udeva=2313;t.udieresis=252;t.udieresisacute=472;t.udieresisbelow=7795;t.udieresiscaron=474;t.udieresiscyrillic=1265;t.udieresisgrave=476;t.udieresismacron=470;t.udotbelow=7909;t.ugrave=249;t.ugujarati=2697;t.ugurmukhi=2569;t.uhiragana=12358;t.uhookabove=7911;t.uhorn=432;t.uhornacute=7913;t.uhorndotbelow=7921;t.uhorngrave=7915;t.uhornhookabove=7917;t.uhorntilde=7919;t.uhungarumlaut=369;t.uhungarumlautcyrillic=1267;t.uinvertedbreve=535;t.ukatakana=12454;t.ukatakanahalfwidth=65395;t.ukcyrillic=1145;t.ukorean=12636;t.umacron=363;t.umacroncyrillic=1263;t.umacrondieresis=7803;t.umatragurmukhi=2625;t.umonospace=65365;t.underscore=95;t.underscoredbl=8215;t.underscoremonospace=65343;t.underscorevertical=65075;t.underscorewavy=65103;t.union=8746;t.universal=8704;t.uogonek=371;t.uparen=9392;t.upblock=9600;t.upperdothebrew=1476;t.upsilon=965;t.upsilondieresis=971;t.upsilondieresistonos=944;t.upsilonlatin=650;t.upsilontonos=973;t.uptackbelowcmb=797;t.uptackmod=724;t.uragurmukhi=2675;t.uring=367;t.ushortcyrillic=1118;t.usmallhiragana=12357;t.usmallkatakana=12453;t.usmallkatakanahalfwidth=65385;t.ustraightcyrillic=1199;t.ustraightstrokecyrillic=1201;t.utilde=361;t.utildeacute=7801;t.utildebelow=7797;t.uubengali=2442;t.uudeva=2314;t.uugujarati=2698;t.uugurmukhi=2570;t.uumatragurmukhi=2626;t.uuvowelsignbengali=2498;t.uuvowelsigndeva=2370;t.uuvowelsigngujarati=2754;t.uvowelsignbengali=2497;t.uvowelsigndeva=2369;t.uvowelsigngujarati=2753;t.v=118;t.vadeva=2357;t.vagujarati=2741;t.vagurmukhi=2613;t.vakatakana=12535;t.vav=1493;t.vavdagesh=64309;t.vavdagesh65=64309;t.vavdageshhebrew=64309;t.vavhebrew=1493;t.vavholam=64331;t.vavholamhebrew=64331;t.vavvavhebrew=1520;t.vavyodhebrew=1521;t.vcircle=9445;t.vdotbelow=7807;t.vecyrillic=1074;t.veharabic=1700;t.vehfinalarabic=64363;t.vehinitialarabic=64364;t.vehmedialarabic=64365;t.vekatakana=12537;t.venus=9792;t.verticalbar=124;t.verticallineabovecmb=781;t.verticallinebelowcmb=809;t.verticallinelowmod=716;t.verticallinemod=712;t.vewarmenian=1406;t.vhook=651;t.vikatakana=12536;t.viramabengali=2509;t.viramadeva=2381;t.viramagujarati=2765;t.visargabengali=2435;t.visargadeva=2307;t.visargagujarati=2691;t.vmonospace=65366;t.voarmenian=1400;t.voicediterationhiragana=12446;t.voicediterationkatakana=12542;t.voicedmarkkana=12443;t.voicedmarkkanahalfwidth=65438;t.vokatakana=12538;t.vparen=9393;t.vtilde=7805;t.vturned=652;t.vuhiragana=12436;t.vukatakana=12532;t.w=119;t.wacute=7811;t.waekorean=12633;t.wahiragana=12431;t.wakatakana=12527;t.wakatakanahalfwidth=65436;t.wakorean=12632;t.wasmallhiragana=12430;t.wasmallkatakana=12526;t.wattosquare=13143;t.wavedash=12316;t.wavyunderscorevertical=65076;t.wawarabic=1608;t.wawfinalarabic=65262;t.wawhamzaabovearabic=1572;t.wawhamzaabovefinalarabic=65158;t.wbsquare=13277;t.wcircle=9446;t.wcircumflex=373;t.wdieresis=7813;t.wdotaccent=7815;t.wdotbelow=7817;t.wehiragana=12433;t.weierstrass=8472;t.wekatakana=12529;t.wekorean=12638;t.weokorean=12637;t.wgrave=7809;t.whitebullet=9702;t.whitecircle=9675;t.whitecircleinverse=9689;t.whitecornerbracketleft=12302;t.whitecornerbracketleftvertical=65091;t.whitecornerbracketright=12303;t.whitecornerbracketrightvertical=65092;t.whitediamond=9671;t.whitediamondcontainingblacksmalldiamond=9672;t.whitedownpointingsmalltriangle=9663;t.whitedownpointingtriangle=9661;t.whiteleftpointingsmalltriangle=9667;t.whiteleftpointingtriangle=9665;t.whitelenticularbracketleft=12310;t.whitelenticularbracketright=12311;t.whiterightpointingsmalltriangle=9657;t.whiterightpointingtriangle=9655;t.whitesmallsquare=9643;t.whitesmilingface=9786;t.whitesquare=9633;t.whitestar=9734;t.whitetelephone=9743;t.whitetortoiseshellbracketleft=12312;t.whitetortoiseshellbracketright=12313;t.whiteuppointingsmalltriangle=9653;t.whiteuppointingtriangle=9651;t.wihiragana=12432;t.wikatakana=12528;t.wikorean=12639;t.wmonospace=65367;t.wohiragana=12434;t.wokatakana=12530;t.wokatakanahalfwidth=65382;t.won=8361;t.wonmonospace=65510;t.wowaenthai=3623;t.wparen=9394;t.wring=7832;t.wsuperior=695;t.wturned=653;t.wynn=447;t.x=120;t.xabovecmb=829;t.xbopomofo=12562;t.xcircle=9447;t.xdieresis=7821;t.xdotaccent=7819;t.xeharmenian=1389;t.xi=958;t.xmonospace=65368;t.xparen=9395;t.xsuperior=739;t.y=121;t.yaadosquare=13134;t.yabengali=2479;t.yacute=253;t.yadeva=2351;t.yaekorean=12626;t.yagujarati=2735;t.yagurmukhi=2607;t.yahiragana=12420;t.yakatakana=12516;t.yakatakanahalfwidth=65428;t.yakorean=12625;t.yamakkanthai=3662;t.yasmallhiragana=12419;t.yasmallkatakana=12515;t.yasmallkatakanahalfwidth=65388;t.yatcyrillic=1123;t.ycircle=9448;t.ycircumflex=375;t.ydieresis=255;t.ydotaccent=7823;t.ydotbelow=7925;t.yeharabic=1610;t.yehbarreearabic=1746;t.yehbarreefinalarabic=64431;t.yehfinalarabic=65266;t.yehhamzaabovearabic=1574;t.yehhamzaabovefinalarabic=65162;t.yehhamzaaboveinitialarabic=65163;t.yehhamzaabovemedialarabic=65164;t.yehinitialarabic=65267;t.yehmedialarabic=65268;t.yehmeeminitialarabic=64733;t.yehmeemisolatedarabic=64600;t.yehnoonfinalarabic=64660;t.yehthreedotsbelowarabic=1745;t.yekorean=12630;t.yen=165;t.yenmonospace=65509;t.yeokorean=12629;t.yeorinhieuhkorean=12678;t.yerahbenyomohebrew=1450;t.yerahbenyomolefthebrew=1450;t.yericyrillic=1099;t.yerudieresiscyrillic=1273;t.yesieungkorean=12673;t.yesieungpansioskorean=12675;t.yesieungsioskorean=12674;t.yetivhebrew=1434;t.ygrave=7923;t.yhook=436;t.yhookabove=7927;t.yiarmenian=1397;t.yicyrillic=1111;t.yikorean=12642;t.yinyang=9775;t.yiwnarmenian=1410;t.ymonospace=65369;t.yod=1497;t.yoddagesh=64313;t.yoddageshhebrew=64313;t.yodhebrew=1497;t.yodyodhebrew=1522;t.yodyodpatahhebrew=64287;t.yohiragana=12424;t.yoikorean=12681;t.yokatakana=12520;t.yokatakanahalfwidth=65430;t.yokorean=12635;t.yosmallhiragana=12423;t.yosmallkatakana=12519;t.yosmallkatakanahalfwidth=65390;t.yotgreek=1011;t.yoyaekorean=12680;t.yoyakorean=12679;t.yoyakthai=3618;t.yoyingthai=3597;t.yparen=9396;t.ypogegrammeni=890;t.ypogegrammenigreekcmb=837;t.yr=422;t.yring=7833;t.ysuperior=696;t.ytilde=7929;t.yturned=654;t.yuhiragana=12422;t.yuikorean=12684;t.yukatakana=12518;t.yukatakanahalfwidth=65429;t.yukorean=12640;t.yusbigcyrillic=1131;t.yusbigiotifiedcyrillic=1133;t.yuslittlecyrillic=1127;t.yuslittleiotifiedcyrillic=1129;t.yusmallhiragana=12421;t.yusmallkatakana=12517;t.yusmallkatakanahalfwidth=65389;t.yuyekorean=12683;t.yuyeokorean=12682;t.yyabengali=2527;t.yyadeva=2399;t.z=122;t.zaarmenian=1382;t.zacute=378;t.zadeva=2395;t.zagurmukhi=2651;t.zaharabic=1592;t.zahfinalarabic=65222;t.zahinitialarabic=65223;t.zahiragana=12374;t.zahmedialarabic=65224;t.zainarabic=1586;t.zainfinalarabic=65200;t.zakatakana=12470;t.zaqefgadolhebrew=1429;t.zaqefqatanhebrew=1428;t.zarqahebrew=1432;t.zayin=1494;t.zayindagesh=64310;t.zayindageshhebrew=64310;t.zayinhebrew=1494;t.zbopomofo=12567;t.zcaron=382;t.zcircle=9449;t.zcircumflex=7825;t.zcurl=657;t.zdot=380;t.zdotaccent=380;t.zdotbelow=7827;t.zecyrillic=1079;t.zedescendercyrillic=1177;t.zedieresiscyrillic=1247;t.zehiragana=12380;t.zekatakana=12476;t.zero=48;t.zeroarabic=1632;t.zerobengali=2534;t.zerodeva=2406;t.zerogujarati=2790;t.zerogurmukhi=2662;t.zerohackarabic=1632;t.zeroinferior=8320;t.zeromonospace=65296;t.zerooldstyle=63280;t.zeropersian=1776;t.zerosuperior=8304;t.zerothai=3664;t.zerowidthjoiner=65279;t.zerowidthnonjoiner=8204;t.zerowidthspace=8203;t.zeta=950;t.zhbopomofo=12563;t.zhearmenian=1386;t.zhebrevecyrillic=1218;t.zhecyrillic=1078;t.zhedescendercyrillic=1175;t.zhedieresiscyrillic=1245;t.zihiragana=12376;t.zikatakana=12472;t.zinorhebrew=1454;t.zlinebelow=7829;t.zmonospace=65370;t.zohiragana=12382;t.zokatakana=12478;t.zparen=9397;t.zretroflexhook=656;t.zstroke=438;t.zuhiragana=12378;t.zukatakana=12474;t[".notdef"]=0;t.angbracketleftbig=9001;t.angbracketleftBig=9001;t.angbracketleftbigg=9001;t.angbracketleftBigg=9001;t.angbracketrightBig=9002;t.angbracketrightbig=9002;t.angbracketrightBigg=9002;t.angbracketrightbigg=9002;t.arrowhookleft=8618;t.arrowhookright=8617;t.arrowlefttophalf=8636;t.arrowleftbothalf=8637;t.arrownortheast=8599;t.arrownorthwest=8598;t.arrowrighttophalf=8640;t.arrowrightbothalf=8641;t.arrowsoutheast=8600;t.arrowsouthwest=8601;t.backslashbig=8726;t.backslashBig=8726;t.backslashBigg=8726;t.backslashbigg=8726;t.bardbl=8214;t.bracehtipdownleft=65079;t.bracehtipdownright=65079;t.bracehtipupleft=65080;t.bracehtipupright=65080;t.braceleftBig=123;t.braceleftbig=123;t.braceleftbigg=123;t.braceleftBigg=123;t.bracerightBig=125;t.bracerightbig=125;t.bracerightbigg=125;t.bracerightBigg=125;t.bracketleftbig=91;t.bracketleftBig=91;t.bracketleftbigg=91;t.bracketleftBigg=91;t.bracketrightBig=93;t.bracketrightbig=93;t.bracketrightbigg=93;t.bracketrightBigg=93;t.ceilingleftbig=8968;t.ceilingleftBig=8968;t.ceilingleftBigg=8968;t.ceilingleftbigg=8968;t.ceilingrightbig=8969;t.ceilingrightBig=8969;t.ceilingrightbigg=8969;t.ceilingrightBigg=8969;t.circledotdisplay=8857;t.circledottext=8857;t.circlemultiplydisplay=8855;t.circlemultiplytext=8855;t.circleplusdisplay=8853;t.circleplustext=8853;t.contintegraldisplay=8750;t.contintegraltext=8750;t.coproductdisplay=8720;t.coproducttext=8720;t.floorleftBig=8970;t.floorleftbig=8970;t.floorleftbigg=8970;t.floorleftBigg=8970;t.floorrightbig=8971;t.floorrightBig=8971;t.floorrightBigg=8971;t.floorrightbigg=8971;t.hatwide=770;t.hatwider=770;t.hatwidest=770;t.intercal=7488;t.integraldisplay=8747;t.integraltext=8747;t.intersectiondisplay=8898;t.intersectiontext=8898;t.logicalanddisplay=8743;t.logicalandtext=8743;t.logicalordisplay=8744;t.logicalortext=8744;t.parenleftBig=40;t.parenleftbig=40;t.parenleftBigg=40;t.parenleftbigg=40;t.parenrightBig=41;t.parenrightbig=41;t.parenrightBigg=41;t.parenrightbigg=41;t.prime=8242;t.productdisplay=8719;t.producttext=8719;t.radicalbig=8730;t.radicalBig=8730;t.radicalBigg=8730;t.radicalbigg=8730;t.radicalbt=8730;t.radicaltp=8730;t.radicalvertex=8730;t.slashbig=47;t.slashBig=47;t.slashBigg=47;t.slashbigg=47;t.summationdisplay=8721;t.summationtext=8721;t.tildewide=732;t.tildewider=732;t.tildewidest=732;t.uniondisplay=8899;t.unionmultidisplay=8846;t.unionmultitext=8846;t.unionsqdisplay=8852;t.unionsqtext=8852;t.uniontext=8899;t.vextenddouble=8741;t.vextendsingle=8739})),Ji=getLookupTableFactory((function(t){t.space=32;t.a1=9985;t.a2=9986;t.a202=9987;t.a3=9988;t.a4=9742;t.a5=9990;t.a119=9991;t.a118=9992;t.a117=9993;t.a11=9755;t.a12=9758;t.a13=9996;t.a14=9997;t.a15=9998;t.a16=9999;t.a105=1e4;t.a17=10001;t.a18=10002;t.a19=10003;t.a20=10004;t.a21=10005;t.a22=10006;t.a23=10007;t.a24=10008;t.a25=10009;t.a26=10010;t.a27=10011;t.a28=10012;t.a6=10013;t.a7=10014;t.a8=10015;t.a9=10016;t.a10=10017;t.a29=10018;t.a30=10019;t.a31=10020;t.a32=10021;t.a33=10022;t.a34=10023;t.a35=9733;t.a36=10025;t.a37=10026;t.a38=10027;t.a39=10028;t.a40=10029;t.a41=10030;t.a42=10031;t.a43=10032;t.a44=10033;t.a45=10034;t.a46=10035;t.a47=10036;t.a48=10037;t.a49=10038;t.a50=10039;t.a51=10040;t.a52=10041;t.a53=10042;t.a54=10043;t.a55=10044;t.a56=10045;t.a57=10046;t.a58=10047;t.a59=10048;t.a60=10049;t.a61=10050;t.a62=10051;t.a63=10052;t.a64=10053;t.a65=10054;t.a66=10055;t.a67=10056;t.a68=10057;t.a69=10058;t.a70=10059;t.a71=9679;t.a72=10061;t.a73=9632;t.a74=10063;t.a203=10064;t.a75=10065;t.a204=10066;t.a76=9650;t.a77=9660;t.a78=9670;t.a79=10070;t.a81=9687;t.a82=10072;t.a83=10073;t.a84=10074;t.a97=10075;t.a98=10076;t.a99=10077;t.a100=10078;t.a101=10081;t.a102=10082;t.a103=10083;t.a104=10084;t.a106=10085;t.a107=10086;t.a108=10087;t.a112=9827;t.a111=9830;t.a110=9829;t.a109=9824;t.a120=9312;t.a121=9313;t.a122=9314;t.a123=9315;t.a124=9316;t.a125=9317;t.a126=9318;t.a127=9319;t.a128=9320;t.a129=9321;t.a130=10102;t.a131=10103;t.a132=10104;t.a133=10105;t.a134=10106;t.a135=10107;t.a136=10108;t.a137=10109;t.a138=10110;t.a139=10111;t.a140=10112;t.a141=10113;t.a142=10114;t.a143=10115;t.a144=10116;t.a145=10117;t.a146=10118;t.a147=10119;t.a148=10120;t.a149=10121;t.a150=10122;t.a151=10123;t.a152=10124;t.a153=10125;t.a154=10126;t.a155=10127;t.a156=10128;t.a157=10129;t.a158=10130;t.a159=10131;t.a160=10132;t.a161=8594;t.a163=8596;t.a164=8597;t.a196=10136;t.a165=10137;t.a192=10138;t.a166=10139;t.a167=10140;t.a168=10141;t.a169=10142;t.a170=10143;t.a171=10144;t.a172=10145;t.a173=10146;t.a162=10147;t.a174=10148;t.a175=10149;t.a176=10150;t.a177=10151;t.a178=10152;t.a179=10153;t.a193=10154;t.a180=10155;t.a199=10156;t.a181=10157;t.a200=10158;t.a182=10159;t.a201=10161;t.a183=10162;t.a184=10163;t.a197=10164;t.a185=10165;t.a194=10166;t.a198=10167;t.a186=10168;t.a195=10169;t.a187=10170;t.a188=10171;t.a189=10172;t.a190=10173;t.a191=10174;t.a89=10088;t.a90=10089;t.a93=10090;t.a94=10091;t.a91=10092;t.a92=10093;t.a205=10094;t.a85=10095;t.a206=10096;t.a86=10097;t.a87=10098;t.a88=10099;t.a95=10100;t.a96=10101;t[".notdef"]=0})),$i=getLookupTableFactory((function(t){t[63721]=169;t[63193]=169;t[63720]=174;t[63194]=174;t[63722]=8482;t[63195]=8482;t[63729]=9127;t[63730]=9128;t[63731]=9129;t[63740]=9131;t[63741]=9132;t[63742]=9133;t[63726]=9121;t[63727]=9122;t[63728]=9123;t[63737]=9124;t[63738]=9125;t[63739]=9126;t[63723]=9115;t[63724]=9116;t[63725]=9117;t[63734]=9118;t[63735]=9119;t[63736]=9120}));function getUnicodeForGlyph(t,r){var o=r[t];if(void 0!==o)return o;if(!t)return-1;if("u"===t[0]){var c,l=t.length;if(7===l&&"n"===t[1]&&"i"===t[2])c=t.substring(3);else{if(!(l>=5&&l<=7))return-1;c=t.substring(1)}if(c===c.toUpperCase()&&(o=parseInt(c,16))>=0)return o}return-1}var Zi=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function getUnicodeRangeFor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(-1!==r)for(var o=Zi[r],c=0,l=o.length;c<l;c+=2)if(t>=o[c]&&t<=o[c+1])return r;for(var u=0,h=Zi.length;u<h;u++)for(var d=Zi[u],g=0,y=d.length;g<y;g+=2)if(t>=d[g]&&t<=d[g+1])return u;return-1}var Qi=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),eo=new Map;var ro=!0,no=1,ao=2,io=4,oo=32,so=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function recoverGlyphName(t,r){if(void 0!==r[t])return t;var o=getUnicodeForGlyph(t,r);if(-1!==o)for(var c in r)if(r[c]===o)return c;info("Unable to recover a standard glyph name for: "+t);return t}function type1FontGlyphMapping(t,r,o){var c,l,u,h=Object.create(null),d=!!(t.flags&io);if(t.isInternalFont){u=r;for(l=0;l<u.length;l++){c=o.indexOf(u[l]);h[l]=c>=0?c:0}}else if(t.baseEncodingName){u=getEncoding(t.baseEncodingName);for(l=0;l<u.length;l++){c=o.indexOf(u[l]);h[l]=c>=0?c:0}}else if(d)for(l in r)h[l]=r[l];else{u=xi;for(l=0;l<u.length;l++){c=o.indexOf(u[l]);h[l]=c>=0?c:0}}var g,y=t.differences;if(y)for(l in y){var m=y[l];if(-1===(c=o.indexOf(m))){g||(g=Yi());var v=recoverGlyphName(m,g);v!==m&&(c=o.indexOf(v))}h[l]=c>=0?c:0}return h}function normalizeFontName(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}var co=getLookupTableFactory((function(t){t["Times-Roman"]="Times-Roman";t.Helvetica="Helvetica";t.Courier="Courier";t.Symbol="Symbol";t["Times-Bold"]="Times-Bold";t["Helvetica-Bold"]="Helvetica-Bold";t["Courier-Bold"]="Courier-Bold";t.ZapfDingbats="ZapfDingbats";t["Times-Italic"]="Times-Italic";t["Helvetica-Oblique"]="Helvetica-Oblique";t["Courier-Oblique"]="Courier-Oblique";t["Times-BoldItalic"]="Times-BoldItalic";t["Helvetica-BoldOblique"]="Helvetica-BoldOblique";t["Courier-BoldOblique"]="Courier-BoldOblique";t.ArialNarrow="Helvetica";t["ArialNarrow-Bold"]="Helvetica-Bold";t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";t["ArialNarrow-Italic"]="Helvetica-Oblique";t.ArialBlack="Helvetica";t["ArialBlack-Bold"]="Helvetica-Bold";t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";t["ArialBlack-Italic"]="Helvetica-Oblique";t["Arial-Black"]="Helvetica";t["Arial-Black-Bold"]="Helvetica-Bold";t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Black-Italic"]="Helvetica-Oblique";t.Arial="Helvetica";t["Arial-Bold"]="Helvetica-Bold";t["Arial-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Italic"]="Helvetica-Oblique";t.ArialMT="Helvetica";t["Arial-BoldItalicMT"]="Helvetica-BoldOblique";t["Arial-BoldMT"]="Helvetica-Bold";t["Arial-ItalicMT"]="Helvetica-Oblique";t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique";t["Arial-BoldMT-Bold"]="Helvetica-Bold";t["Arial-ItalicMT-Italic"]="Helvetica-Oblique";t.ArialUnicodeMS="Helvetica";t["ArialUnicodeMS-Bold"]="Helvetica-Bold";t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique";t["ArialUnicodeMS-Italic"]="Helvetica-Oblique";t["Courier-BoldItalic"]="Courier-BoldOblique";t["Courier-Italic"]="Courier-Oblique";t.CourierNew="Courier";t["CourierNew-Bold"]="Courier-Bold";t["CourierNew-BoldItalic"]="Courier-BoldOblique";t["CourierNew-Italic"]="Courier-Oblique";t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";t["CourierNewPS-BoldMT"]="Courier-Bold";t["CourierNewPS-ItalicMT"]="Courier-Oblique";t.CourierNewPSMT="Courier";t["Helvetica-BoldItalic"]="Helvetica-BoldOblique";t["Helvetica-Italic"]="Helvetica-Oblique";t["Symbol-Bold"]="Symbol";t["Symbol-BoldItalic"]="Symbol";t["Symbol-Italic"]="Symbol";t.TimesNewRoman="Times-Roman";t["TimesNewRoman-Bold"]="Times-Bold";t["TimesNewRoman-BoldItalic"]="Times-BoldItalic";t["TimesNewRoman-Italic"]="Times-Italic";t.TimesNewRomanPS="Times-Roman";t["TimesNewRomanPS-Bold"]="Times-Bold";t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";t["TimesNewRomanPS-BoldMT"]="Times-Bold";t["TimesNewRomanPS-Italic"]="Times-Italic";t["TimesNewRomanPS-ItalicMT"]="Times-Italic";t.TimesNewRomanPSMT="Times-Roman";t["TimesNewRomanPSMT-Bold"]="Times-Bold";t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPSMT-Italic"]="Times-Italic"})),lo=getLookupTableFactory((function(t){t.Courier="FoxitFixed.pfb";t["Courier-Bold"]="FoxitFixedBold.pfb";t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb";t["Courier-Oblique"]="FoxitFixedItalic.pfb";t.Helvetica="LiberationSans-Regular.ttf";t["Helvetica-Bold"]="LiberationSans-Bold.ttf";t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf";t["Helvetica-Oblique"]="LiberationSans-Italic.ttf";t["Times-Roman"]="FoxitSerif.pfb";t["Times-Bold"]="FoxitSerifBold.pfb";t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb";t["Times-Italic"]="FoxitSerifItalic.pfb";t.Symbol="FoxitSymbol.pfb";t.ZapfDingbats="FoxitDingbats.pfb";t["LiberationSans-Regular"]="LiberationSans-Regular.ttf";t["LiberationSans-Bold"]="LiberationSans-Bold.ttf";t["LiberationSans-Italic"]="LiberationSans-Italic.ttf";t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"})),uo=getLookupTableFactory((function(t){t.Calibri="Helvetica";t["Calibri-Bold"]="Helvetica-Bold";t["Calibri-BoldItalic"]="Helvetica-BoldOblique";t["Calibri-Italic"]="Helvetica-Oblique";t.CenturyGothic="Helvetica";t["CenturyGothic-Bold"]="Helvetica-Bold";t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";t["CenturyGothic-Italic"]="Helvetica-Oblique";t.ComicSansMS="Comic Sans MS";t["ComicSansMS-Bold"]="Comic Sans MS-Bold";t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";t["ComicSansMS-Italic"]="Comic Sans MS-Italic";t.Impact="Helvetica";t["ItcSymbol-Bold"]="Helvetica-Bold";t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique";t["ItcSymbol-Book"]="Helvetica";t["ItcSymbol-BookItalic"]="Helvetica-Oblique";t["ItcSymbol-Medium"]="Helvetica";t["ItcSymbol-MediumItalic"]="Helvetica-Oblique";t.LucidaConsole="Courier";t["LucidaConsole-Bold"]="Courier-Bold";t["LucidaConsole-BoldItalic"]="Courier-BoldOblique";t["LucidaConsole-Italic"]="Courier-Oblique";t["LucidaSans-Demi"]="Helvetica-Bold";t["MS-Gothic"]="MS Gothic";t["MS-Gothic-Bold"]="MS Gothic-Bold";t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";t["MS-Gothic-Italic"]="MS Gothic-Italic";t["MS-Mincho"]="MS Mincho";t["MS-Mincho-Bold"]="MS Mincho-Bold";t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";t["MS-Mincho-Italic"]="MS Mincho-Italic";t["MS-PGothic"]="MS PGothic";t["MS-PGothic-Bold"]="MS PGothic-Bold";t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";t["MS-PGothic-Italic"]="MS PGothic-Italic";t["MS-PMincho"]="MS PMincho";t["MS-PMincho-Bold"]="MS PMincho-Bold";t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";t["MS-PMincho-Italic"]="MS PMincho-Italic";t.NuptialScript="Times-Italic";t.SegoeUISymbol="Helvetica"})),fo=getLookupTableFactory((function(t){t["Adobe Jenson"]=!0;t["Adobe Text"]=!0;t.Albertus=!0;t.Aldus=!0;t.Alexandria=!0;t.Algerian=!0;t["American Typewriter"]=!0;t.Antiqua=!0;t.Apex=!0;t.Arno=!0;t.Aster=!0;t.Aurora=!0;t.Baskerville=!0;t.Bell=!0;t.Bembo=!0;t["Bembo Schoolbook"]=!0;t.Benguiat=!0;t["Berkeley Old Style"]=!0;t["Bernhard Modern"]=!0;t["Berthold City"]=!0;t.Bodoni=!0;t["Bauer Bodoni"]=!0;t["Book Antiqua"]=!0;t.Bookman=!0;t["Bordeaux Roman"]=!0;t["Californian FB"]=!0;t.Calisto=!0;t.Calvert=!0;t.Capitals=!0;t.Cambria=!0;t.Cartier=!0;t.Caslon=!0;t.Catull=!0;t.Centaur=!0;t["Century Old Style"]=!0;t["Century Schoolbook"]=!0;t.Chaparral=!0;t["Charis SIL"]=!0;t.Cheltenham=!0;t["Cholla Slab"]=!0;t.Clarendon=!0;t.Clearface=!0;t.Cochin=!0;t.Colonna=!0;t["Computer Modern"]=!0;t["Concrete Roman"]=!0;t.Constantia=!0;t["Cooper Black"]=!0;t.Corona=!0;t.Ecotype=!0;t.Egyptienne=!0;t.Elephant=!0;t.Excelsior=!0;t.Fairfield=!0;t["FF Scala"]=!0;t.Folkard=!0;t.Footlight=!0;t.FreeSerif=!0;t["Friz Quadrata"]=!0;t.Garamond=!0;t.Gentium=!0;t.Georgia=!0;t.Gloucester=!0;t["Goudy Old Style"]=!0;t["Goudy Schoolbook"]=!0;t["Goudy Pro Font"]=!0;t.Granjon=!0;t["Guardian Egyptian"]=!0;t.Heather=!0;t.Hercules=!0;t["High Tower Text"]=!0;t.Hiroshige=!0;t["Hoefler Text"]=!0;t["Humana Serif"]=!0;t.Imprint=!0;t["Ionic No. 5"]=!0;t.Janson=!0;t.Joanna=!0;t.Korinna=!0;t.Lexicon=!0;t.LiberationSerif=!0;t["Liberation Serif"]=!0;t["Linux Libertine"]=!0;t.Literaturnaya=!0;t.Lucida=!0;t["Lucida Bright"]=!0;t.Melior=!0;t.Memphis=!0;t.Miller=!0;t.Minion=!0;t.Modern=!0;t["Mona Lisa"]=!0;t["Mrs Eaves"]=!0;t["MS Serif"]=!0;t["Museo Slab"]=!0;t["New York"]=!0;t["Nimbus Roman"]=!0;t["NPS Rawlinson Roadway"]=!0;t.NuptialScript=!0;t.Palatino=!0;t.Perpetua=!0;t.Plantin=!0;t["Plantin Schoolbook"]=!0;t.Playbill=!0;t["Poor Richard"]=!0;t["Rawlinson Roadway"]=!0;t.Renault=!0;t.Requiem=!0;t.Rockwell=!0;t.Roman=!0;t["Rotis Serif"]=!0;t.Sabon=!0;t.Scala=!0;t.Seagull=!0;t.Sistina=!0;t.Souvenir=!0;t.STIX=!0;t["Stone Informal"]=!0;t["Stone Serif"]=!0;t.Sylfaen=!0;t.Times=!0;t.Trajan=!0;t["Trinité"]=!0;t["Trump Mediaeval"]=!0;t.Utopia=!0;t["Vale Type"]=!0;t["Bitstream Vera"]=!0;t["Vera Serif"]=!0;t.Versailles=!0;t.Wanted=!0;t.Weiss=!0;t["Wide Latin"]=!0;t.Windsor=!0;t.XITS=!0})),ho=getLookupTableFactory((function(t){t.Dingbats=!0;t.Symbol=!0;t.ZapfDingbats=!0;t.Wingdings=!0;t["Wingdings-Bold"]=!0;t["Wingdings-Regular"]=!0})),po=getLookupTableFactory((function(t){t[2]=10;t[3]=32;t[4]=33;t[5]=34;t[6]=35;t[7]=36;t[8]=37;t[9]=38;t[10]=39;t[11]=40;t[12]=41;t[13]=42;t[14]=43;t[15]=44;t[16]=45;t[17]=46;t[18]=47;t[19]=48;t[20]=49;t[21]=50;t[22]=51;t[23]=52;t[24]=53;t[25]=54;t[26]=55;t[27]=56;t[28]=57;t[29]=58;t[30]=894;t[31]=60;t[32]=61;t[33]=62;t[34]=63;t[35]=64;t[36]=65;t[37]=66;t[38]=67;t[39]=68;t[40]=69;t[41]=70;t[42]=71;t[43]=72;t[44]=73;t[45]=74;t[46]=75;t[47]=76;t[48]=77;t[49]=78;t[50]=79;t[51]=80;t[52]=81;t[53]=82;t[54]=83;t[55]=84;t[56]=85;t[57]=86;t[58]=87;t[59]=88;t[60]=89;t[61]=90;t[62]=91;t[63]=92;t[64]=93;t[65]=94;t[66]=95;t[67]=96;t[68]=97;t[69]=98;t[70]=99;t[71]=100;t[72]=101;t[73]=102;t[74]=103;t[75]=104;t[76]=105;t[77]=106;t[78]=107;t[79]=108;t[80]=109;t[81]=110;t[82]=111;t[83]=112;t[84]=113;t[85]=114;t[86]=115;t[87]=116;t[88]=117;t[89]=118;t[90]=119;t[91]=120;t[92]=121;t[93]=122;t[94]=123;t[95]=124;t[96]=125;t[97]=126;t[98]=196;t[99]=197;t[100]=199;t[101]=201;t[102]=209;t[103]=214;t[104]=220;t[105]=225;t[106]=224;t[107]=226;t[108]=228;t[109]=227;t[110]=229;t[111]=231;t[112]=233;t[113]=232;t[114]=234;t[115]=235;t[116]=237;t[117]=236;t[118]=238;t[119]=239;t[120]=241;t[121]=243;t[122]=242;t[123]=244;t[124]=246;t[125]=245;t[126]=250;t[127]=249;t[128]=251;t[129]=252;t[130]=8224;t[131]=176;t[132]=162;t[133]=163;t[134]=167;t[135]=8226;t[136]=182;t[137]=223;t[138]=174;t[139]=169;t[140]=8482;t[141]=180;t[142]=168;t[143]=8800;t[144]=198;t[145]=216;t[146]=8734;t[147]=177;t[148]=8804;t[149]=8805;t[150]=165;t[151]=181;t[152]=8706;t[153]=8721;t[154]=8719;t[156]=8747;t[157]=170;t[158]=186;t[159]=8486;t[160]=230;t[161]=248;t[162]=191;t[163]=161;t[164]=172;t[165]=8730;t[166]=402;t[167]=8776;t[168]=8710;t[169]=171;t[170]=187;t[171]=8230;t[179]=8220;t[180]=8221;t[181]=8216;t[182]=8217;t[200]=193;t[203]=205;t[207]=211;t[210]=218;t[223]=711;t[224]=321;t[225]=322;t[226]=352;t[227]=353;t[228]=381;t[229]=382;t[233]=221;t[234]=253;t[252]=263;t[253]=268;t[254]=269;t[258]=258;t[260]=260;t[261]=261;t[265]=280;t[266]=281;t[267]=282;t[268]=283;t[269]=313;t[275]=323;t[276]=324;t[278]=328;t[283]=344;t[284]=345;t[285]=346;t[286]=347;t[292]=367;t[295]=377;t[296]=378;t[298]=380;t[305]=963;t[306]=964;t[307]=966;t[308]=8215;t[309]=8252;t[310]=8319;t[311]=8359;t[312]=8592;t[313]=8593;t[337]=9552;t[493]=1039;t[494]=1040;t[672]=1488;t[673]=1489;t[674]=1490;t[675]=1491;t[676]=1492;t[677]=1493;t[678]=1494;t[679]=1495;t[680]=1496;t[681]=1497;t[682]=1498;t[683]=1499;t[684]=1500;t[685]=1501;t[686]=1502;t[687]=1503;t[688]=1504;t[689]=1505;t[690]=1506;t[691]=1507;t[692]=1508;t[693]=1509;t[694]=1510;t[695]=1511;t[696]=1512;t[697]=1513;t[698]=1514;t[705]=1524;t[706]=8362;t[710]=64288;t[711]=64298;t[759]=1617;t[761]=1776;t[763]=1778;t[775]=1652;t[777]=1764;t[778]=1780;t[779]=1781;t[780]=1782;t[782]=771;t[783]=64726;t[786]=8363;t[788]=8532;t[790]=768;t[791]=769;t[792]=768;t[795]=803;t[797]=64336;t[798]=64337;t[799]=64342;t[800]=64343;t[801]=64344;t[802]=64345;t[803]=64362;t[804]=64363;t[805]=64364;t[2424]=7821;t[2425]=7822;t[2426]=7823;t[2427]=7824;t[2428]=7825;t[2429]=7826;t[2430]=7827;t[2433]=7682;t[2678]=8045;t[2679]=8046;t[2830]=1552;t[2838]=686;t[2840]=751;t[2842]=753;t[2843]=754;t[2844]=755;t[2846]=757;t[2856]=767;t[2857]=848;t[2858]=849;t[2862]=853;t[2863]=854;t[2864]=855;t[2865]=861;t[2866]=862;t[2906]=7460;t[2908]=7462;t[2909]=7463;t[2910]=7464;t[2912]=7466;t[2913]=7467;t[2914]=7468;t[2916]=7470;t[2917]=7471;t[2918]=7472;t[2920]=7474;t[2921]=7475;t[2922]=7476;t[2924]=7478;t[2925]=7479;t[2926]=7480;t[2928]=7482;t[2929]=7483;t[2930]=7484;t[2932]=7486;t[2933]=7487;t[2934]=7488;t[2936]=7490;t[2937]=7491;t[2938]=7492;t[2940]=7494;t[2941]=7495;t[2942]=7496;t[2944]=7498;t[2946]=7500;t[2948]=7502;t[2950]=7504;t[2951]=7505;t[2952]=7506;t[2954]=7508;t[2955]=7509;t[2956]=7510;t[2958]=7512;t[2959]=7513;t[2960]=7514;t[2962]=7516;t[2963]=7517;t[2964]=7518;t[2966]=7520;t[2967]=7521;t[2968]=7522;t[2970]=7524;t[2971]=7525;t[2972]=7526;t[2974]=7528;t[2975]=7529;t[2976]=7530;t[2978]=1537;t[2979]=1538;t[2980]=1539;t[2982]=1549;t[2983]=1551;t[2984]=1552;t[2986]=1554;t[2987]=1555;t[2988]=1556;t[2990]=1623;t[2991]=1624;t[2995]=1775;t[2999]=1791;t[3002]=64290;t[3003]=64291;t[3004]=64292;t[3006]=64294;t[3007]=64295;t[3008]=64296;t[3011]=1900;t[3014]=8223;t[3015]=8244;t[3017]=7532;t[3018]=7533;t[3019]=7534;t[3075]=7590;t[3076]=7591;t[3079]=7594;t[3080]=7595;t[3083]=7598;t[3084]=7599;t[3087]=7602;t[3088]=7603;t[3091]=7606;t[3092]=7607;t[3095]=7610;t[3096]=7611;t[3099]=7614;t[3100]=7615;t[3103]=7618;t[3104]=7619;t[3107]=8337;t[3108]=8338;t[3116]=1884;t[3119]=1885;t[3120]=1885;t[3123]=1886;t[3124]=1886;t[3127]=1887;t[3128]=1887;t[3131]=1888;t[3132]=1888;t[3135]=1889;t[3136]=1889;t[3139]=1890;t[3140]=1890;t[3143]=1891;t[3144]=1891;t[3147]=1892;t[3148]=1892;t[3153]=580;t[3154]=581;t[3157]=584;t[3158]=585;t[3161]=588;t[3162]=589;t[3165]=891;t[3166]=892;t[3169]=1274;t[3170]=1275;t[3173]=1278;t[3174]=1279;t[3181]=7622;t[3182]=7623;t[3282]=11799;t[3316]=578;t[3379]=42785;t[3393]=1159;t[3416]=8377})),go=getLookupTableFactory((function(t){t[227]=322;t[264]=261;t[291]=346})),yo=getLookupTableFactory((function(t){t[1]=32;t[4]=65;t[5]=192;t[6]=193;t[9]=196;t[17]=66;t[18]=67;t[21]=268;t[24]=68;t[28]=69;t[29]=200;t[30]=201;t[32]=282;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[48]=204;t[49]=205;t[58]=74;t[60]=75;t[62]=76;t[68]=77;t[69]=78;t[75]=79;t[76]=210;t[80]=214;t[87]=80;t[89]=81;t[90]=82;t[92]=344;t[94]=83;t[97]=352;t[100]=84;t[104]=85;t[109]=220;t[115]=86;t[116]=87;t[121]=88;t[122]=89;t[124]=221;t[127]=90;t[129]=381;t[258]=97;t[259]=224;t[260]=225;t[263]=228;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[275]=269;t[282]=100;t[286]=101;t[287]=232;t[288]=233;t[290]=283;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[350]=236;t[351]=237;t[361]=106;t[364]=107;t[367]=108;t[371]=322;t[373]=109;t[374]=110;t[381]=111;t[382]=242;t[383]=243;t[386]=246;t[393]=112;t[395]=113;t[396]=114;t[398]=345;t[400]=115;t[401]=347;t[403]=353;t[410]=116;t[437]=117;t[442]=252;t[448]=118;t[449]=119;t[454]=120;t[455]=121;t[457]=253;t[460]=122;t[462]=382;t[463]=380;t[853]=44;t[855]=58;t[856]=46;t[876]=47;t[878]=45;t[882]=45;t[894]=40;t[895]=41;t[896]=91;t[897]=93;t[923]=64;t[1004]=48;t[1005]=49;t[1006]=50;t[1007]=51;t[1008]=52;t[1009]=53;t[1010]=54;t[1011]=55;t[1012]=56;t[1013]=57;t[1081]=37;t[1085]=43;t[1086]=45}));function getStandardFontName(t){var r=normalizeFontName(t);return co()[r]}function isKnownFontName(t){var r=normalizeFontName(t);return!!(co()[r]||uo()[r]||fo()[r]||ho()[r])}function to_unicode_map_typeof(t){return to_unicode_map_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to_unicode_map_typeof(t)}function to_unicode_map_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function to_unicode_map_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,to_unicode_map_toPropertyKey(c.key),c)}}function to_unicode_map_createClass(t,r,o){r&&to_unicode_map_defineProperties(t.prototype,r);o&&to_unicode_map_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function to_unicode_map_toPropertyKey(t){var r=function to_unicode_map_toPrimitive(t,r){if("object"!=to_unicode_map_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=to_unicode_map_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==to_unicode_map_typeof(r)?r:String(r)}var mo=function(){function ToUnicodeMap(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];to_unicode_map_classCallCheck(this,ToUnicodeMap);this._map=t}to_unicode_map_createClass(ToUnicodeMap,[{key:"length",get:function get(){return this._map.length}},{key:"forEach",value:function forEach(t){for(var r in this._map)t(r,this._map[r].charCodeAt(0))}},{key:"has",value:function has(t){return void 0!==this._map[t]}},{key:"get",value:function get(t){return this._map[t]}},{key:"charCodeOf",value:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var o in r)if(r[o]===t)return 0|o;return-1}},{key:"amend",value:function amend(t){for(var r in t)this._map[r]=t[r]}}]);return ToUnicodeMap}(),vo=function(){function IdentityToUnicodeMap(t,r){to_unicode_map_classCallCheck(this,IdentityToUnicodeMap);this.firstChar=t;this.lastChar=r}to_unicode_map_createClass(IdentityToUnicodeMap,[{key:"length",get:function get(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function forEach(t){for(var r=this.firstChar,o=this.lastChar;r<=o;r++)t(r,r)}},{key:"has",value:function has(t){return this.firstChar<=t&&t<=this.lastChar}},{key:"get",value:function get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)}},{key:"charCodeOf",value:function charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}},{key:"amend",value:function amend(t){unreachable("Should not call amend()")}}]);return IdentityToUnicodeMap}();function cff_font_typeof(t){return cff_font_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cff_font_typeof(t)}function cff_font_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,cff_font_toPropertyKey(c.key),c)}}function cff_font_toPropertyKey(t){var r=function cff_font_toPrimitive(t,r){if("object"!=cff_font_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=cff_font_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==cff_font_typeof(r)?r:String(r)}var bo=function(){function CFFFont(t,r){!function cff_font_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,CFFFont);this.properties=r;var o=new Fi(t,r,ro);this.cff=o.parse();this.cff.duplicateFirstGlyph();var c=new Ki(this.cff);this.seacs=this.cff.seacs;try{this.data=c.compile()}catch(o){warn("Failed to compile font "+r.loadedName);this.data=t}this._createBuiltInEncoding()}!function cff_font_createClass(t,r,o){r&&cff_font_defineProperties(t.prototype,r);o&&cff_font_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(CFFFont,[{key:"numGlyphs",get:function get(){return this.cff.charStrings.count}},{key:"getCharset",value:function getCharset(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function getGlyphMapping(){var t,r,o=this.cff,c=this.properties,l=c.cidToGidMap,u=c.cMap,h=o.charset.charset;if(c.composite){var d,g;if((null==l?void 0:l.length)>0){d=Object.create(null);for(var y=0,m=l.length;y<m;y++){var v=l[y];void 0!==v&&(d[v]=y)}}t=Object.create(null);if(o.isCIDFont)for(r=0;r<h.length;r++){var _,w=h[r];g=u.charCodeOf(w);void 0!==(null===(_=d)||void 0===_?void 0:_[g])&&(g=d[g]);t[g]=r}else for(r=0;r<o.charStrings.count;r++)t[g=u.charCodeOf(r)]=r;return t}var k=o.encoding?o.encoding.encoding:null;c.isInternalFont&&(k=c.defaultEncoding);return t=type1FontGlyphMapping(c,k,h)}},{key:"hasGlyphId",value:function hasGlyphId(t){return this.cff.hasGlyphId(t)}},{key:"_createBuiltInEncoding",value:function _createBuiltInEncoding(){var t=this.cff,r=t.charset,o=t.encoding;if(r&&o){var c=r.charset,l=o.encoding,u=[];for(var h in l){var d=l[h];if(d>=0){var g=c[d];g&&(u[h]=g)}}u.length>0&&(this.properties.builtInEncoding=u)}}}]);return CFFFont}();function font_renderer_typeof(t){return font_renderer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},font_renderer_typeof(t)}function font_renderer_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&font_renderer_setPrototypeOf(t,r)}function font_renderer_setPrototypeOf(t,r){font_renderer_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return font_renderer_setPrototypeOf(t,r)}function font_renderer_createSuper(t){var r=function font_renderer_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=font_renderer_getPrototypeOf(t);if(r){var l=font_renderer_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function font_renderer_possibleConstructorReturn(t,r){if(r&&("object"===font_renderer_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function font_renderer_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function font_renderer_getPrototypeOf(t){font_renderer_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return font_renderer_getPrototypeOf(t)}function font_renderer_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function font_renderer_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,font_renderer_toPropertyKey(c.key),c)}}function font_renderer_createClass(t,r,o){r&&font_renderer_defineProperties(t.prototype,r);o&&font_renderer_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function font_renderer_toPropertyKey(t){var r=function font_renderer_toPrimitive(t,r){if("object"!=font_renderer_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=font_renderer_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==font_renderer_typeof(r)?r:String(r)}function getUint32(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}function getUint16(t,r){return t[r]<<8|t[r+1]}function getInt16(t,r){return(t[r]<<24|t[r+1]<<16)>>16}function getInt8(t,r){return t[r]<<24>>24}function getFloat214(t,r){return getInt16(t,r)/16384}function getSubroutineBias(t){var r=t.length,o=32768;r<1240?o=107:r<33900&&(o=1131);return o}function parseCmap(t,r,o){var c,l,u,h=1===getUint16(t,r+2)?getUint32(t,r+8):getUint32(t,r+16),d=getUint16(t,r+h);if(4===d){getUint16(t,r+h+2);var g=getUint16(t,r+h+6)>>1;l=r+h+14;c=[];for(u=0;u<g;u++,l+=2)c[u]={end:getUint16(t,l)};l+=2;for(u=0;u<g;u++,l+=2)c[u].start=getUint16(t,l);for(u=0;u<g;u++,l+=2)c[u].idDelta=getUint16(t,l);for(u=0;u<g;u++,l+=2){var y=getUint16(t,l);if(0!==y){c[u].ids=[];for(var m=0,v=c[u].end-c[u].start+1;m<v;m++){c[u].ids[m]=getUint16(t,l+y);y+=2}}}return c}if(12===d){var _=getUint32(t,r+h+12);l=r+h+16;c=[];for(u=0;u<_;u++){r=getUint32(t,l);c.push({start:r,end:getUint32(t,l+4),idDelta:getUint32(t,l+8)-r});l+=12}return c}throw new Sr("unsupported cmap: ".concat(d))}function parseCff(t,r,o,c){var l,u,h=new Fi(new tn(t,r,o-r),{},c).parse();return{glyphs:h.charStrings.objects,subrs:null===(l=h.topDict.privateDict)||void 0===l||null===(l=l.subrsIndex)||void 0===l?void 0:l.objects,gsubrs:null===(u=h.globalSubrIndex)||void 0===u?void 0:u.objects,isCFFCIDFont:h.isCIDFont,fdSelect:h.fdSelect,fdArray:h.fdArray}}function lookupCmap(t,r){for(var o=r.codePointAt(0),c=0,l=0,u=t.length-1;l<u;){var h=l+u+1>>1;o<t[h].start?u=h-1:l=h}t[l].start<=o&&o<=t[l].end&&(c=t[l].idDelta+(t[l].ids?t[l].ids[o-t[l].start]:o)&65535);return{charCode:o,glyphId:c}}function compileGlyf(t,r,o){function moveTo(t,o){r.push({cmd:"moveTo",args:[t,o]})}function lineTo(t,o){r.push({cmd:"lineTo",args:[t,o]})}function quadraticCurveTo(t,o,c,l){r.push({cmd:"quadraticCurveTo",args:[t,o,c,l]})}var c,l=0,u=getInt16(t,l),h=0,d=0;l+=10;if(u<0)do{c=getUint16(t,l);var g=getUint16(t,l+2);l+=4;var y=void 0,m=void 0;if(1&c){if(2&c){y=getInt16(t,l);m=getInt16(t,l+2)}else{y=getUint16(t,l);m=getUint16(t,l+2)}l+=4}else if(2&c){y=getInt8(t,l++);m=getInt8(t,l++)}else{y=t[l++];m=t[l++]}if(2&c){h=y;d=m}else{h=0;d=0}var v=1,_=1,w=0,k=0;if(8&c){v=_=getFloat214(t,l);l+=2}else if(64&c){v=getFloat214(t,l);_=getFloat214(t,l+2);l+=4}else if(128&c){v=getFloat214(t,l);w=getFloat214(t,l+2);k=getFloat214(t,l+4);_=getFloat214(t,l+6);l+=8}var x=o.glyphs[g];if(x){r.push({cmd:"save"},{cmd:"transform",args:[v,w,k,_,h,d]});compileGlyf(x,r,o);r.push({cmd:"restore"})}}while(32&c);else{var S,C,O=[];for(S=0;S<u;S++){O.push(getUint16(t,l));l+=2}l+=2+getUint16(t,l);for(var T=O.at(-1)+1,E=[];E.length<T;){var j=1;8&(c=t[l++])&&(j+=t[l++]);for(;j-- >0;)E.push({flags:c})}for(S=0;S<T;S++){switch(18&E[S].flags){case 0:h+=getInt16(t,l);l+=2;break;case 2:h-=t[l++];break;case 18:h+=t[l++]}E[S].x=h}for(S=0;S<T;S++){switch(36&E[S].flags){case 0:d+=getInt16(t,l);l+=2;break;case 4:d-=t[l++];break;case 36:d+=t[l++]}E[S].y=d}var R=0;for(l=0;l<u;l++){var M=O[l],L=E.slice(R,M+1);if(1&L[0].flags)L.push(L[0]);else if(1&L.at(-1).flags)L.unshift(L.at(-1));else{var D={flags:1,x:(L[0].x+L.at(-1).x)/2,y:(L[0].y+L.at(-1).y)/2};L.unshift(D);L.push(D)}moveTo(L[0].x,L[0].y);for(S=1,C=L.length;S<C;S++)if(1&L[S].flags)lineTo(L[S].x,L[S].y);else if(1&L[S+1].flags){quadraticCurveTo(L[S].x,L[S].y,L[S+1].x,L[S+1].y);S++}else quadraticCurveTo(L[S].x,L[S].y,(L[S].x+L[S+1].x)/2,(L[S].y+L[S+1].y)/2);R=M+1}}}function compileCharString(t,r,o,c){function moveTo(t,o){r.push({cmd:"moveTo",args:[t,o]})}function lineTo(t,o){r.push({cmd:"lineTo",args:[t,o]})}function bezierCurveTo(t,o,c,l,u,h){r.push({cmd:"bezierCurveTo",args:[t,o,c,l,u,h]})}var l=[],u=0,h=0,d=0;!function parse(t){for(var g=0;g<t.length;){var y=!1,m=t[g++],v=void 0,_=void 0,w=void 0,k=void 0,x=void 0,S=void 0,C=void 0,O=void 0;switch(m){case 1:case 3:case 18:case 23:d+=l.length>>1;y=!0;break;case 4:h+=l.pop();moveTo(u,h);y=!0;break;case 5:for(;l.length>0;){u+=l.shift();h+=l.shift();lineTo(u,h)}break;case 6:for(;l.length>0;){lineTo(u+=l.shift(),h);if(0===l.length)break;h+=l.shift();lineTo(u,h)}break;case 7:for(;l.length>0;){h+=l.shift();lineTo(u,h);if(0===l.length)break;lineTo(u+=l.shift(),h)}break;case 8:for(;l.length>0;){v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u,h)}break;case 10:C=l.pop();O=null;if(o.isCFFCIDFont){var T=o.fdSelect.getFDIndex(c);if(T>=0&&T<o.fdArray.length){var E,j=o.fdArray[T],R=void 0;null!==(E=j.privateDict)&&void 0!==E&&E.subrsIndex&&(R=j.privateDict.subrsIndex.objects);R&&(O=R[C+=getSubroutineBias(R)])}else warn("Invalid fd index for glyph index.")}else O=o.subrs[C+o.subrsBias];O&&parse(O);break;case 11:return;case 12:switch(m=t[g++]){case 34:_=(v=u+l.shift())+l.shift();x=h+l.shift();u=_+l.shift();bezierCurveTo(v,h,_,x,u,x);_=(v=u+l.shift())+l.shift();u=_+l.shift();bezierCurveTo(v,x,_,h,u,h);break;case 35:v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u,h);v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u,h);l.pop();break;case 36:bezierCurveTo(v=u+l.shift(),x=h+l.shift(),_=v+l.shift(),S=x+l.shift(),u=_+l.shift(),S);bezierCurveTo(v=u+l.shift(),S,_=v+l.shift(),S+l.shift(),u=_+l.shift(),h);break;case 37:var M=u,L=h;v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u,h);v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_;h=k;Math.abs(u-M)>Math.abs(h-L)?u+=l.shift():h+=l.shift();bezierCurveTo(v,w,_,k,u,h);break;default:throw new Sr("unknown operator: 12 ".concat(m))}break;case 14:if(l.length>=4){var D=l.pop(),N=l.pop();h=l.pop();u=l.pop();r.push({cmd:"save"},{cmd:"translate",args:[u,h]});var U=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[xi[D]]));compileCharString(o.glyphs[U.glyphId],r,o,U.glyphId);r.push({cmd:"restore"});U=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[xi[N]]));compileCharString(o.glyphs[U.glyphId],r,o,U.glyphId)}return;case 19:case 20:g+=(d+=l.length>>1)+7>>3;y=!0;break;case 21:h+=l.pop();moveTo(u+=l.pop(),h);y=!0;break;case 22:moveTo(u+=l.pop(),h);y=!0;break;case 24:for(;l.length>2;){v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u,h)}u+=l.shift();h+=l.shift();lineTo(u,h);break;case 25:for(;l.length>6;){u+=l.shift();h+=l.shift();lineTo(u,h)}v=u+l.shift();w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u,h);break;case 26:l.length%2&&(u+=l.shift());for(;l.length>0;){v=u;w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_;h=k+l.shift();bezierCurveTo(v,w,_,k,u,h)}break;case 27:l.length%2&&(h+=l.shift());for(;l.length>0;)bezierCurveTo(v=u+l.shift(),w=h,_=v+l.shift(),k=w+l.shift(),u=_+l.shift(),h=k);break;case 28:l.push((t[g]<<24|t[g+1]<<16)>>16);g+=2;break;case 29:C=l.pop()+o.gsubrsBias;(O=o.gsubrs[C])&&parse(O);break;case 30:for(;l.length>0;){v=u;w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+(1===l.length?l.shift():0);bezierCurveTo(v,w,_,k,u,h);if(0===l.length)break;v=u+l.shift();w=h;_=v+l.shift();k=w+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u=_+(1===l.length?l.shift():0),h)}break;case 31:for(;l.length>0;){v=u+l.shift();w=h;_=v+l.shift();k=w+l.shift();h=k+l.shift();bezierCurveTo(v,w,_,k,u=_+(1===l.length?l.shift():0),h);if(0===l.length)break;v=u;w=h+l.shift();_=v+l.shift();k=w+l.shift();u=_+l.shift();h=k+(1===l.length?l.shift():0);bezierCurveTo(v,w,_,k,u,h)}break;default:if(m<32)throw new Sr("unknown operator: ".concat(m));if(m<247)l.push(m-139);else if(m<251)l.push(256*(m-247)+t[g++]+108);else if(m<255)l.push(256*-(m-251)-t[g++]-108);else{l.push((t[g]<<24|t[g+1]<<16|t[g+2]<<8|t[g+3])/65536);g+=4}}y&&(l.length=0)}}(t)}var _o=[],wo=function(){function CompiledFont(t){font_renderer_classCallCheck(this,CompiledFont);this.constructor===CompiledFont&&unreachable("Cannot initialize CompiledFont.");this.fontMatrix=t;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}font_renderer_createClass(CompiledFont,[{key:"getPathJs",value:function getPathJs(t){var r=lookupCmap(this.cmap,t),o=r.charCode,c=r.glyphId,l=this.compiledGlyphs[c];if(!l)try{l=this.compileGlyph(this.glyphs[c],c);this.compiledGlyphs[c]=l}catch(t){this.compiledGlyphs[c]=_o;void 0===this.compiledCharCodeToGlyphId[o]&&(this.compiledCharCodeToGlyphId[o]=c);throw t}void 0===this.compiledCharCodeToGlyphId[o]&&(this.compiledCharCodeToGlyphId[o]=c);return l}},{key:"compileGlyph",value:function compileGlyph(t,o){if(!t||0===t.length||14===t[0])return _o;var c=this.fontMatrix;if(this.isCFFCIDFont){var l=this.fdSelect.getFDIndex(o);if(l>=0&&l<this.fdArray.length){c=this.fdArray[l].getByName("FontMatrix")||r}else warn("Invalid fd index for glyph index.")}var u=[{cmd:"save"},{cmd:"transform",args:c.slice()},{cmd:"scale",args:["size","-size"]}];this.compileGlyphImpl(t,u,o);u.push({cmd:"restore"});return u}},{key:"compileGlyphImpl",value:function compileGlyphImpl(){unreachable("Children classes should implement this.")}},{key:"hasBuiltPath",value:function hasBuiltPath(t){var r=lookupCmap(this.cmap,t),o=r.charCode,c=r.glyphId;return void 0!==this.compiledGlyphs[c]&&void 0!==this.compiledCharCodeToGlyphId[o]}}]);return CompiledFont}(),ko=function(t){font_renderer_inherits(TrueTypeCompiled,t);var r=font_renderer_createSuper(TrueTypeCompiled);function TrueTypeCompiled(t,o,c){var l;font_renderer_classCallCheck(this,TrueTypeCompiled);(l=r.call(this,c||[488e-6,0,0,488e-6,0,0])).glyphs=t;l.cmap=o;return l}font_renderer_createClass(TrueTypeCompiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r){compileGlyf(t,r,this)}}]);return TrueTypeCompiled}(wo),xo=function(t){font_renderer_inherits(Type2Compiled,t);var r=font_renderer_createSuper(Type2Compiled);function Type2Compiled(t,o,c,l){var u;font_renderer_classCallCheck(this,Type2Compiled);(u=r.call(this,c||[.001,0,0,.001,0,0])).glyphs=t.glyphs;u.gsubrs=t.gsubrs||[];u.subrs=t.subrs||[];u.cmap=o;u.glyphNameMap=l||Yi();u.gsubrsBias=getSubroutineBias(u.gsubrs);u.subrsBias=getSubroutineBias(u.subrs);u.isCFFCIDFont=t.isCFFCIDFont;u.fdSelect=t.fdSelect;u.fdArray=t.fdArray;return u}font_renderer_createClass(Type2Compiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r,o){compileCharString(t,r,this,o)}}]);return Type2Compiled}(wo),So=function(){function FontRendererFactory(){font_renderer_classCallCheck(this,FontRendererFactory)}font_renderer_createClass(FontRendererFactory,null,[{key:"create",value:function create(t,r){for(var o,c,l,u,h,d,g=new Uint8Array(t.data),y=getUint16(g,4),m=0,v=12;m<y;m++,v+=16){var _=bytesToString(g.subarray(v,v+4)),w=getUint32(g,v+8),k=getUint32(g,v+12);switch(_){case"cmap":o=parseCmap(g,w);break;case"glyf":c=g.subarray(w,w+k);break;case"loca":l=g.subarray(w,w+k);break;case"head":d=getUint16(g,w+18);h=getUint16(g,w+50);break;case"CFF ":u=parseCff(g,w,w+k,r)}}if(c){var x=d?[1/d,0,0,1/d,0,0]:t.fontMatrix;return new ko(function parseGlyfTable(t,r,o){var c,l;if(o){c=4;l=getUint32}else{c=2;l=function itemDecode(t,r){return 2*getUint16(t,r)}}for(var u=[],h=l(r,0),d=c;d<r.length;d+=c){var g=l(r,d);u.push(t.subarray(h,g));h=g}return u}(c,l,h),o,x)}return new xo(u,o,t.fontMatrix,t.glyphNameMap)}}]);return FontRendererFactory}(),Co=getLookupTableFactory((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=getLookupTableFactory((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Bold"]=getLookupTableFactory((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-BoldOblique"]=getLookupTableFactory((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Oblique"]=getLookupTableFactory((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t.Symbol=getLookupTableFactory((function(t){t.space=250;t.exclam=333;t.universal=713;t.numbersign=500;t.existential=549;t.percent=833;t.ampersand=778;t.suchthat=439;t.parenleft=333;t.parenright=333;t.asteriskmath=500;t.plus=549;t.comma=250;t.minus=549;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=549;t.equal=549;t.greater=549;t.question=444;t.congruent=549;t.Alpha=722;t.Beta=667;t.Chi=722;t.Delta=612;t.Epsilon=611;t.Phi=763;t.Gamma=603;t.Eta=722;t.Iota=333;t.theta1=631;t.Kappa=722;t.Lambda=686;t.Mu=889;t.Nu=722;t.Omicron=722;t.Pi=768;t.Theta=741;t.Rho=556;t.Sigma=592;t.Tau=611;t.Upsilon=690;t.sigma1=439;t.Omega=768;t.Xi=645;t.Psi=795;t.Zeta=611;t.bracketleft=333;t.therefore=863;t.bracketright=333;t.perpendicular=658;t.underscore=500;t.radicalex=500;t.alpha=631;t.beta=549;t.chi=549;t.delta=494;t.epsilon=439;t.phi=521;t.gamma=411;t.eta=603;t.iota=329;t.phi1=603;t.kappa=549;t.lambda=549;t.mu=576;t.nu=521;t.omicron=549;t.pi=549;t.theta=521;t.rho=549;t.sigma=603;t.tau=439;t.upsilon=576;t.omega1=713;t.omega=686;t.xi=493;t.psi=686;t.zeta=494;t.braceleft=480;t.bar=200;t.braceright=480;t.similar=549;t.Euro=750;t.Upsilon1=620;t.minute=247;t.lessequal=549;t.fraction=167;t.infinity=713;t.florin=500;t.club=753;t.diamond=753;t.heart=753;t.spade=753;t.arrowboth=1042;t.arrowleft=987;t.arrowup=603;t.arrowright=987;t.arrowdown=603;t.degree=400;t.plusminus=549;t.second=411;t.greaterequal=549;t.multiply=549;t.proportional=713;t.partialdiff=494;t.bullet=460;t.divide=549;t.notequal=549;t.equivalence=549;t.approxequal=549;t.ellipsis=1e3;t.arrowvertex=603;t.arrowhorizex=1e3;t.carriagereturn=658;t.aleph=823;t.Ifraktur=686;t.Rfraktur=795;t.weierstrass=987;t.circlemultiply=768;t.circleplus=768;t.emptyset=823;t.intersection=768;t.union=768;t.propersuperset=713;t.reflexsuperset=713;t.notsubset=713;t.propersubset=713;t.reflexsubset=713;t.element=713;t.notelement=713;t.angle=768;t.gradient=713;t.registerserif=790;t.copyrightserif=790;t.trademarkserif=890;t.product=823;t.radical=549;t.dotmath=250;t.logicalnot=713;t.logicaland=603;t.logicalor=603;t.arrowdblboth=1042;t.arrowdblleft=987;t.arrowdblup=603;t.arrowdblright=987;t.arrowdbldown=603;t.lozenge=494;t.angleleft=329;t.registersans=790;t.copyrightsans=790;t.trademarksans=786;t.summation=713;t.parenlefttp=384;t.parenleftex=384;t.parenleftbt=384;t.bracketlefttp=384;t.bracketleftex=384;t.bracketleftbt=384;t.bracelefttp=494;t.braceleftmid=494;t.braceleftbt=494;t.braceex=494;t.angleright=329;t.integral=274;t.integraltp=686;t.integralex=686;t.integralbt=686;t.parenrighttp=384;t.parenrightex=384;t.parenrightbt=384;t.bracketrighttp=384;t.bracketrightex=384;t.bracketrightbt=384;t.bracerighttp=494;t.bracerightmid=494;t.bracerightbt=494;t.apple=790}));t["Times-Roman"]=getLookupTableFactory((function(t){t.space=250;t.exclam=333;t.quotedbl=408;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=564;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=564;t.equal=564;t.greater=564;t.question=444;t.at=921;t.A=722;t.B=667;t.C=667;t.D=722;t.E=611;t.F=556;t.G=722;t.H=722;t.I=333;t.J=389;t.K=722;t.L=611;t.M=889;t.N=722;t.O=722;t.P=556;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=722;t.W=944;t.X=722;t.Y=722;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=469;t.underscore=500;t.quoteleft=333;t.a=444;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=500;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=500;t.o=500;t.p=500;t.q=500;t.r=333;t.s=389;t.t=278;t.u=500;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=480;t.bar=200;t.braceright=480;t.asciitilde=541;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=180;t.quotedblleft=444;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=453;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=444;t.quotedblright=444;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=444;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=889;t.ordfeminine=276;t.Lslash=611;t.Oslash=722;t.OE=889;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=444;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=722;t.divide=564;t.Yacute=722;t.Acircumflex=722;t.aacute=444;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=444;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=444;t.Ncommaaccent=722;t.lacute=278;t.agrave=444;t.Tcommaaccent=611;t.Cacute=667;t.atilde=444;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=444;t.Amacron=722;t.rcaron=333;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=556;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=588;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=722;t.Abreve=722;t.multiply=564;t.uacute=500;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=444;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=722;t.Iacute=333;t.plusminus=564;t.brokenbar=200;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=333;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=326;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=444;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=344;t.Kcommaaccent=722;t.Lacute=611;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=722;t.zdotaccent=444;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=500;t.minus=564;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=564;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Bold"]=getLookupTableFactory((function(t){t.space=250;t.exclam=333;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=1e3;t.ampersand=833;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=930;t.A=722;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=778;t.I=389;t.J=500;t.K=778;t.L=667;t.M=944;t.N=722;t.O=778;t.P=611;t.Q=778;t.R=722;t.S=556;t.T=667;t.U=722;t.V=722;t.W=1e3;t.X=722;t.Y=722;t.Z=667;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=581;t.underscore=500;t.quoteleft=333;t.a=500;t.b=556;t.c=444;t.d=556;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=333;t.k=556;t.l=278;t.m=833;t.n=556;t.o=500;t.p=556;t.q=556;t.r=444;t.s=389;t.t=333;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=394;t.bar=220;t.braceright=394;t.asciitilde=520;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=540;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=300;t.Lslash=667;t.Oslash=778;t.OE=1e3;t.ordmasculine=330;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=556;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=722;t.divide=570;t.Yacute=722;t.Acircumflex=722;t.aacute=500;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=667;t.Cacute=722;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=500;t.Amacron=722;t.rcaron=444;t.ccedilla=444;t.Zdotaccent=667;t.Thorn=611;t.Omacron=778;t.Racute=722;t.Sacute=556;t.dcaron=672;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=570;t.uacute=556;t.Tcaron=667;t.partialdiff=494;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=778;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=444;t.omacron=500;t.Zacute=667;t.Zcaron=667;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=416;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=778;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=300;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=556;t.threequarters=750;t.Scedilla=556;t.lcaron=394;t.Kcommaaccent=778;t.Lacute=667;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=667;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=778;t.degree=400;t.ograve=500;t.Ccaron=722;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=444;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=722;t.Lcommaaccent=667;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=444;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=556;t.minus=570;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=333;t.logicalnot=570;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-BoldItalic"]=getLookupTableFactory((function(t){t.space=250;t.exclam=389;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=832;t.A=667;t.B=667;t.C=667;t.D=722;t.E=667;t.F=667;t.G=722;t.H=778;t.I=389;t.J=500;t.K=667;t.L=611;t.M=889;t.N=722;t.O=722;t.P=611;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=667;t.W=889;t.X=667;t.Y=611;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=570;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=556;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=556;t.v=444;t.w=667;t.x=500;t.y=444;t.z=389;t.braceleft=348;t.bar=220;t.braceright=348;t.asciitilde=570;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=500;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=944;t.ordfeminine=266;t.Lslash=611;t.Oslash=722;t.OE=944;t.ordmasculine=300;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=611;t.divide=570;t.Yacute=611;t.Acircumflex=667;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=611;t.Cacute=667;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=556;t.acircumflex=500;t.Amacron=667;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=611;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=608;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=722;t.Agrave=667;t.Abreve=667;t.multiply=570;t.uacute=556;t.Tcaron=611;t.partialdiff=494;t.ydieresis=444;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=722;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=366;t.eogonek=444;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=576;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=382;t.Kcommaaccent=667;t.Lacute=611;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=722;t.zdotaccent=389;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=500;t.minus=606;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=606;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Italic"]=getLookupTableFactory((function(t){t.space=250;t.exclam=333;t.quotedbl=420;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=675;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=675;t.equal=675;t.greater=675;t.question=500;t.at=920;t.A=611;t.B=611;t.C=667;t.D=722;t.E=611;t.F=611;t.G=722;t.H=722;t.I=333;t.J=444;t.K=667;t.L=556;t.M=833;t.N=667;t.O=722;t.P=611;t.Q=722;t.R=611;t.S=500;t.T=556;t.U=722;t.V=611;t.W=833;t.X=611;t.Y=556;t.Z=556;t.bracketleft=389;t.backslash=278;t.bracketright=389;t.asciicircum=422;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=278;t.g=500;t.h=500;t.i=278;t.j=278;t.k=444;t.l=278;t.m=722;t.n=500;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=500;t.v=444;t.w=667;t.x=444;t.y=444;t.z=389;t.braceleft=400;t.bar=275;t.braceright=400;t.asciitilde=541;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=214;t.quotedblleft=556;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=523;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=556;t.quotedblright=556;t.guillemotright=500;t.ellipsis=889;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=889;t.AE=889;t.ordfeminine=276;t.Lslash=556;t.Oslash=722;t.OE=944;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=667;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=500;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=556;t.divide=675;t.Yacute=556;t.Acircumflex=611;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=500;t.Ncommaaccent=667;t.lacute=278;t.agrave=500;t.Tcommaaccent=556;t.Cacute=667;t.atilde=500;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=611;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=500;t.Amacron=611;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=556;t.Thorn=611;t.Omacron=722;t.Racute=611;t.Sacute=500;t.dcaron=544;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=611;t.Abreve=611;t.multiply=675;t.uacute=500;t.Tcaron=556;t.partialdiff=476;t.ydieresis=444;t.Nacute=667;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=667;t.Iacute=333;t.plusminus=675;t.brokenbar=275;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=389;t.omacron=500;t.Zacute=556;t.Zcaron=556;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=300;t.eogonek=444;t.Uogonek=722;t.Aacute=611;t.Adieresis=611;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=500;t.lcaron=300;t.Kcommaaccent=667;t.Lacute=556;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=500;t.Scommaaccent=500;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=667;t.otilde=500;t.Rcommaaccent=611;t.Lcommaaccent=556;t.Atilde=611;t.Aogonek=611;t.Aring=611;t.Otilde=722;t.zdotaccent=389;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=444;t.minus=675;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=675;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t.ZapfDingbats=getLookupTableFactory((function(t){t.space=278;t.a1=974;t.a2=961;t.a202=974;t.a3=980;t.a4=719;t.a5=789;t.a119=790;t.a118=791;t.a117=690;t.a11=960;t.a12=939;t.a13=549;t.a14=855;t.a15=911;t.a16=933;t.a105=911;t.a17=945;t.a18=974;t.a19=755;t.a20=846;t.a21=762;t.a22=761;t.a23=571;t.a24=677;t.a25=763;t.a26=760;t.a27=759;t.a28=754;t.a6=494;t.a7=552;t.a8=537;t.a9=577;t.a10=692;t.a29=786;t.a30=788;t.a31=788;t.a32=790;t.a33=793;t.a34=794;t.a35=816;t.a36=823;t.a37=789;t.a38=841;t.a39=823;t.a40=833;t.a41=816;t.a42=831;t.a43=923;t.a44=744;t.a45=723;t.a46=749;t.a47=790;t.a48=792;t.a49=695;t.a50=776;t.a51=768;t.a52=792;t.a53=759;t.a54=707;t.a55=708;t.a56=682;t.a57=701;t.a58=826;t.a59=815;t.a60=789;t.a61=789;t.a62=707;t.a63=687;t.a64=696;t.a65=689;t.a66=786;t.a67=787;t.a68=713;t.a69=791;t.a70=785;t.a71=791;t.a72=873;t.a73=761;t.a74=762;t.a203=762;t.a75=759;t.a204=759;t.a76=892;t.a77=892;t.a78=788;t.a79=784;t.a81=438;t.a82=138;t.a83=277;t.a84=415;t.a97=392;t.a98=392;t.a99=668;t.a100=668;t.a89=390;t.a90=390;t.a93=317;t.a94=317;t.a91=276;t.a92=276;t.a205=509;t.a85=509;t.a206=410;t.a86=410;t.a87=234;t.a88=234;t.a95=334;t.a96=334;t.a101=732;t.a102=544;t.a103=544;t.a104=910;t.a106=667;t.a107=760;t.a108=760;t.a112=776;t.a111=595;t.a110=694;t.a109=626;t.a120=788;t.a121=788;t.a122=788;t.a123=788;t.a124=788;t.a125=788;t.a126=788;t.a127=788;t.a128=788;t.a129=788;t.a130=788;t.a131=788;t.a132=788;t.a133=788;t.a134=788;t.a135=788;t.a136=788;t.a137=788;t.a138=788;t.a139=788;t.a140=788;t.a141=788;t.a142=788;t.a143=788;t.a144=788;t.a145=788;t.a146=788;t.a147=788;t.a148=788;t.a149=788;t.a150=788;t.a151=788;t.a152=788;t.a153=788;t.a154=788;t.a155=788;t.a156=788;t.a157=788;t.a158=788;t.a159=788;t.a160=894;t.a161=838;t.a163=1016;t.a164=458;t.a196=748;t.a165=924;t.a192=748;t.a166=918;t.a167=927;t.a168=928;t.a169=928;t.a170=834;t.a171=873;t.a172=828;t.a173=924;t.a162=924;t.a174=917;t.a175=930;t.a176=931;t.a177=463;t.a178=883;t.a179=836;t.a193=836;t.a180=867;t.a199=867;t.a181=696;t.a200=696;t.a182=874;t.a201=874;t.a183=760;t.a184=946;t.a197=771;t.a185=865;t.a194=771;t.a198=888;t.a186=967;t.a195=888;t.a187=831;t.a188=873;t.a189=927;t.a190=970;t.a191=918}))})),Ao=getLookupTableFactory((function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439};t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450};t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461};t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441};t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462};t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));function glyf_slicedToArray(t,r){return function glyf_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function glyf_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||glyf_unsupportedIterableToArray(t,r)||function glyf_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function glyf_typeof(t){return glyf_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},glyf_typeof(t)}function glyf_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=glyf_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function glyf_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return glyf_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?glyf_arrayLikeToArray(t,r):void 0}}function glyf_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function glyf_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function glyf_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,glyf_toPropertyKey(c.key),c)}}function glyf_createClass(t,r,o){r&&glyf_defineProperties(t.prototype,r);o&&glyf_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function glyf_toPropertyKey(t){var r=function glyf_toPrimitive(t,r){if("object"!=glyf_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=glyf_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==glyf_typeof(r)?r:String(r)}var Po=function(){function GlyfTable(t){var r=t.glyfTable,o=t.isGlyphLocationsLong,c=t.locaTable,l=t.numGlyphs;glyf_classCallCheck(this,GlyfTable);this.glyphs=[];for(var u=new DataView(c.buffer,c.byteOffset,c.byteLength),h=new DataView(r.buffer,r.byteOffset,r.byteLength),d=o?4:2,g=o?u.getUint32(0):2*u.getUint16(0),y=0,m=0;m<l;m++){y+=d;var v=o?u.getUint32(y):2*u.getUint16(y);if(v!==g){var _=Oo.parse(g,h);this.glyphs.push(_);g=v}else this.glyphs.push(new Oo({}))}}glyf_createClass(GlyfTable,[{key:"getSize",value:function getSize(){return this.glyphs.reduce((function(t,r){return t+(r.getSize()+3&-4)}),0)}},{key:"write",value:function write(){var t=this.getSize(),r=new DataView(new ArrayBuffer(t)),o=t>131070,c=o?4:2,l=new DataView(new ArrayBuffer((this.glyphs.length+1)*c));o?l.setUint32(0,0):l.setUint16(0,0);var u,h=0,d=0,g=glyf_createForOfIteratorHelper(this.glyphs);try{for(g.s();!(u=g.n()).done;){h=(h+=u.value.write(h,r))+3&-4;d+=c;o?l.setUint32(d,h):l.setUint16(d,h>>1)}}catch(t){g.e(t)}finally{g.f()}return{isLocationLong:o,loca:new Uint8Array(l.buffer),glyf:new Uint8Array(r.buffer)}}},{key:"scale",value:function scale(t){for(var r=0,o=this.glyphs.length;r<o;r++)this.glyphs[r].scale(t[r])}}]);return GlyfTable}(),Oo=function(){function Glyph(t){var r=t.header,o=void 0===r?null:r,c=t.simple,l=void 0===c?null:c,u=t.composites,h=void 0===u?null:u;glyf_classCallCheck(this,Glyph);this.header=o;this.simple=l;this.composites=h}glyf_createClass(Glyph,[{key:"getSize",value:function getSize(){if(!this.header)return 0;var t=this.simple?this.simple.getSize():this.composites.reduce((function(t,r){return t+r.getSize()}),0);return this.header.getSize()+t}},{key:"write",value:function write(t,r){if(!this.header)return 0;var o=t;t+=this.header.write(t,r);if(this.simple)t+=this.simple.write(t,r);else{var c,l=glyf_createForOfIteratorHelper(this.composites);try{for(l.s();!(c=l.n()).done;){t+=c.value.write(t,r)}}catch(t){l.e(t)}finally{l.f()}}return t-o}},{key:"scale",value:function scale(t){if(this.header){var r=(this.header.xMin+this.header.xMax)/2;this.header.scale(r,t);if(this.simple)this.simple.scale(r,t);else{var o,c=glyf_createForOfIteratorHelper(this.composites);try{for(c.s();!(o=c.n()).done;){o.value.scale(r,t)}}catch(t){c.e(t)}finally{c.f()}}}}}],[{key:"parse",value:function parse(t,r){var o=glyf_slicedToArray(Io.parse(t,r),2),c=o[0],l=o[1];t+=c;if(l.numberOfContours<0){for(var u=[];;){var h=glyf_slicedToArray(jo.parse(t,r),2),d=h[0],g=h[1];t+=d;u.push(g);if(!(32&g.flags))break}return new Glyph({header:l,composites:u})}return new Glyph({header:l,simple:Eo.parse(t,r,l.numberOfContours)})}}]);return Glyph}(),Io=function(){function GlyphHeader(t){var r=t.numberOfContours,o=t.xMin,c=t.yMin,l=t.xMax,u=t.yMax;glyf_classCallCheck(this,GlyphHeader);this.numberOfContours=r;this.xMin=o;this.yMin=c;this.xMax=l;this.yMax=u}glyf_createClass(GlyphHeader,[{key:"getSize",value:function getSize(){return 10}},{key:"write",value:function write(t,r){r.setInt16(t,this.numberOfContours);r.setInt16(t+2,this.xMin);r.setInt16(t+4,this.yMin);r.setInt16(t+6,this.xMax);r.setInt16(t+8,this.yMax);return 10}},{key:"scale",value:function scale(t,r){this.xMin=Math.round(t+(this.xMin-t)*r);this.xMax=Math.round(t+(this.xMax-t)*r)}}],[{key:"parse",value:function parse(t,r){return[10,new GlyphHeader({numberOfContours:r.getInt16(t),xMin:r.getInt16(t+2),yMin:r.getInt16(t+4),xMax:r.getInt16(t+6),yMax:r.getInt16(t+8)})]}}]);return GlyphHeader}(),Fo=glyf_createClass((function Contour(t){var r=t.flags,o=t.xCoordinates,c=t.yCoordinates;glyf_classCallCheck(this,Contour);this.xCoordinates=o;this.yCoordinates=c;this.flags=r})),Eo=function(){function SimpleGlyph(t){var r=t.contours,o=t.instructions;glyf_classCallCheck(this,SimpleGlyph);this.contours=r;this.instructions=o}glyf_createClass(SimpleGlyph,[{key:"getSize",value:function getSize(){var t,r=2*this.contours.length+2+this.instructions.length,o=0,c=0,l=glyf_createForOfIteratorHelper(this.contours);try{for(l.s();!(t=l.n()).done;){var u=t.value;r+=u.flags.length;for(var h=0,d=u.xCoordinates.length;h<d;h++){var g=u.xCoordinates[h],y=u.yCoordinates[h],m=Math.abs(g-o);m>255?r+=2:m>0&&(r+=1);o=g;(m=Math.abs(y-c))>255?r+=2:m>0&&(r+=1);c=y}}}catch(t){l.e(t)}finally{l.f()}return r}},{key:"write",value:function write(t,r){var o,c=t,l=[],u=[],h=[],d=0,g=0,y=glyf_createForOfIteratorHelper(this.contours);try{for(y.s();!(o=y.n()).done;){for(var m=o.value,v=0,_=m.xCoordinates.length;v<_;v++){var w=m.flags[v],k=m.xCoordinates[v],x=k-d;if(0===x){w|=16;l.push(0)}else{var S=Math.abs(x);if(S<=255){w|=x>=0?18:2;l.push(S)}else l.push(x)}d=k;var C=m.yCoordinates[v];if(0===(x=C-g)){w|=32;u.push(0)}else{var O=Math.abs(x);if(O<=255){w|=x>=0?36:4;u.push(O)}else u.push(x)}g=C;h.push(w)}r.setUint16(t,l.length-1);t+=2}}catch(t){y.e(t)}finally{y.f()}r.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}for(var T=0,E=h;T<E.length;T++){var j=E[T];r.setUint8(t++,j)}for(var R=0,M=l.length;R<M;R++){var L=l[R],D=h[R];if(2&D)r.setUint8(t++,L);else if(!(16&D)){r.setInt16(t,L);t+=2}}for(var N=0,U=u.length;N<U;N++){var G=u[N],H=h[N];if(4&H)r.setUint8(t++,G);else if(!(32&H)){r.setInt16(t,G);t+=2}}return t-c}},{key:"scale",value:function scale(t,r){var o,c=glyf_createForOfIteratorHelper(this.contours);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(0!==l.xCoordinates.length)for(var u=0,h=l.xCoordinates.length;u<h;u++)l.xCoordinates[u]=Math.round(t+(l.xCoordinates[u]-t)*r)}}catch(t){c.e(t)}finally{c.f()}}}],[{key:"parse",value:function parse(t,r,o){for(var c=[],l=0;l<o;l++){var u=r.getUint16(t);t+=2;c.push(u)}var h=c[o-1]+1,d=r.getUint16(t);t+=2;var g=new Uint8Array(r).slice(t,t+d);t+=d;for(var y=[],m=0;m<h;t++,m++){var v=r.getUint8(t);y.push(v);if(8&v){var _=r.getUint8(++t);v^=8;for(var w=0;w<_;w++)y.push(v);m+=_}}for(var k=[],x=[],S=[],C=[],O=[],T=0,E=0,j=0;j<h;j++){var R=y[j];if(2&R){var M=r.getUint8(t++);E+=16&R?M:-M;x.push(E)}else if(16&R)x.push(E);else{E+=r.getInt16(t);t+=2;x.push(E)}if(c[T]===j){T++;k.push(x);x=[]}}E=0;T=0;for(var L=0;L<h;L++){var D=y[L];if(4&D){var N=r.getUint8(t++);E+=32&D?N:-N;S.push(E)}else if(32&D)S.push(E);else{E+=r.getInt16(t);t+=2;S.push(E)}C.push(1&D|64&D);if(c[T]===L){x=k[T];T++;O.push(new Fo({flags:C,xCoordinates:x,yCoordinates:S}));S=[];C=[]}}return new SimpleGlyph({contours:O,instructions:g})}}]);return SimpleGlyph}(),jo=function(){function CompositeGlyph(t){var r=t.flags,o=t.glyphIndex,c=t.argument1,l=t.argument2,u=t.transf,h=t.instructions;glyf_classCallCheck(this,CompositeGlyph);this.flags=r;this.glyphIndex=o;this.argument1=c;this.argument2=l;this.transf=u;this.instructions=h}glyf_createClass(CompositeGlyph,[{key:"getSize",value:function getSize(){var t=4+2*this.transf.length;256&this.flags&&(t+=2+this.instructions.length);t+=2;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(t+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(t+=2);return t}},{key:"write",value:function write(t,r){var o=t;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1);r.setUint16(t,this.flags);r.setUint16(t+2,this.glyphIndex);t+=4;if(1&this.flags){if(2&this.flags){r.setInt16(t,this.argument1);r.setInt16(t+2,this.argument2)}else{r.setUint16(t,this.argument1);r.setUint16(t+2,this.argument2)}t+=4}else{r.setUint8(t,this.argument1);r.setUint8(t+1,this.argument2);t+=2}if(256&this.flags){r.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}}return t-o}},{key:"scale",value:function scale(t,r){}}],[{key:"parse",value:function parse(t,r){var o,c,l=t,u=[],h=r.getUint16(t),d=r.getUint16(t+2);t+=4;if(1&h){if(2&h){o=r.getInt16(t);c=r.getInt16(t+2)}else{o=r.getUint16(t);c=r.getUint16(t+2)}t+=4;h^=1}else{if(2&h){o=r.getInt8(t);c=r.getInt8(t+1)}else{o=r.getUint8(t);c=r.getUint8(t+1)}t+=2}if(8&h){u.push(r.getUint16(t));t+=2}else if(64&h){u.push(r.getUint16(t),r.getUint16(t+2));t+=4}else if(128&h){u.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6));t+=8}var g=null;if(256&h){var y=r.getUint16(t);t+=2;g=new Uint8Array(r).slice(t,t+y);t+=y}return[t-l,new CompositeGlyph({flags:h,glyphIndex:d,argument1:o,argument2:c,transf:u,instructions:g})]}}]);return CompositeGlyph}();function opentype_file_builder_typeof(t){return opentype_file_builder_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},opentype_file_builder_typeof(t)}function opentype_file_builder_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,opentype_file_builder_toPropertyKey(c.key),c)}}function opentype_file_builder_toPropertyKey(t){var r=function opentype_file_builder_toPrimitive(t,r){if("object"!=opentype_file_builder_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=opentype_file_builder_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==opentype_file_builder_typeof(r)?r:String(r)}function opentype_file_builder_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function opentype_file_builder_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return opentype_file_builder_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return opentype_file_builder_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function opentype_file_builder_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function writeInt16(t,r,o){t[r]=o>>8&255;t[r+1]=255&o}function writeInt32(t,r,o){t[r]=o>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}function writeData(t,r,o){if(o instanceof Uint8Array)t.set(o,r);else if("string"==typeof o)for(var c=0,l=o.length;c<l;c++)t[r++]=255&o.charCodeAt(c);else{var u,h=opentype_file_builder_createForOfIteratorHelper(o);try{for(h.s();!(u=h.n()).done;){var d=u.value;t[r++]=255&d}}catch(t){h.e(t)}finally{h.f()}}}var Ro=function(){function OpenTypeFileBuilder(t){!function opentype_file_builder_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,OpenTypeFileBuilder);this.sfnt=t;this.tables=Object.create(null)}!function opentype_file_builder_createClass(t,r,o){r&&opentype_file_builder_defineProperties(t.prototype,r);o&&opentype_file_builder_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(OpenTypeFileBuilder,[{key:"toArray",value:function toArray(){var t=this.sfnt,r=this.tables,o=Object.keys(r);o.sort();var c,l,u,h,d,g=o.length,y=12+16*g,m=[y];for(c=0;c<g;c++){y+=((h=r[o[c]]).length+3&-4)>>>0;m.push(y)}var v=new Uint8Array(y);for(c=0;c<g;c++){h=r[o[c]];writeData(v,m[c],h)}"true"===t&&(t=string32(65536));v[0]=255&t.charCodeAt(0);v[1]=255&t.charCodeAt(1);v[2]=255&t.charCodeAt(2);v[3]=255&t.charCodeAt(3);writeInt16(v,4,g);var _=OpenTypeFileBuilder.getSearchParams(g,16);writeInt16(v,6,_.range);writeInt16(v,8,_.entry);writeInt16(v,10,_.rangeShift);y=12;for(c=0;c<g;c++){d=o[c];v[y]=255&d.charCodeAt(0);v[y+1]=255&d.charCodeAt(1);v[y+2]=255&d.charCodeAt(2);v[y+3]=255&d.charCodeAt(3);var w=0;for(l=m[c],u=m[c+1];l<u;l+=4){w=w+readUint32(v,l)>>>0}writeInt32(v,y+4,w);writeInt32(v,y+8,m[c]);writeInt32(v,y+12,r[d].length);y+=16}return v}},{key:"addTable",value:function addTable(t,r){if(t in this.tables)throw new Error("Table "+t+" already exists");this.tables[t]=r}}],[{key:"getSearchParams",value:function getSearchParams(t,r){for(var o=1,c=0;(o^t)>o;){o<<=1;c++}var l=o*r;return{range:l,entry:c,rangeShift:r*t-l}}}]);return OpenTypeFileBuilder}();function type1_parser_typeof(t){return type1_parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},type1_parser_typeof(t)}function type1_parser_toConsumableArray(t){return function type1_parser_arrayWithoutHoles(t){if(Array.isArray(t))return type1_parser_arrayLikeToArray(t)}(t)||function type1_parser_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function type1_parser_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return type1_parser_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return type1_parser_arrayLikeToArray(t,r)}(t)||function type1_parser_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function type1_parser_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function type1_parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function type1_parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,type1_parser_toPropertyKey(c.key),c)}}function type1_parser_createClass(t,r,o){r&&type1_parser_defineProperties(t.prototype,r);o&&type1_parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function type1_parser_toPropertyKey(t){var r=function type1_parser_toPrimitive(t,r){if("object"!=type1_parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=type1_parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==type1_parser_typeof(r)?r:String(r)}var Mo=[4],Lo=[5],Bo=[6],Do=[7],No=[8],Uo=[12,35],Go=[14],Ho=[21],qo=[22],zo=[30],Wo=[31],Vo=function(){function Type1CharString(){type1_parser_classCallCheck(this,Type1CharString);this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}type1_parser_createClass(Type1CharString,[{key:"convert",value:function convert(t,r,o){for(var c,l,u,h=t.length,d=!1,g=0;g<h;g++){var y=t[g];if(y<32){12===y&&(y=(y<<8)+t[++g]);switch(y){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){d=!0;break}var m=this.stack.pop();this.stack.push(0,m);break}d=this.executeCommand(1,Mo);break;case 5:d=this.executeCommand(2,Lo);break;case 6:d=this.executeCommand(1,Bo);break;case 7:d=this.executeCommand(1,Do);break;case 8:d=this.executeCommand(6,No);break;case 10:if(this.stack.length<1){d=!0;break}if(!r[u=this.stack.pop()]){d=!0;break}d=this.convert(r[u],r,o);break;case 11:return d;case 13:if(this.stack.length<2){d=!0;break}c=this.stack.pop();l=this.stack.pop();this.lsb=l;this.width=c;this.stack.push(c,l);d=this.executeCommand(2,qo);break;case 14:this.output.push(Go[0]);break;case 21:if(this.flexing)break;d=this.executeCommand(2,Ho);break;case 22:if(this.flexing){this.stack.push(0);break}d=this.executeCommand(1,qo);break;case 30:d=this.executeCommand(4,zo);break;case 31:d=this.executeCommand(4,Wo);break;case 3078:if(o){var v=this.stack.at(-5);this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-v;d=this.executeCommand(0,Go)}else d=this.executeCommand(4,Go);break;case 3079:if(this.stack.length<4){d=!0;break}this.stack.pop();c=this.stack.pop();var _=this.stack.pop();l=this.stack.pop();this.lsb=l;this.width=c;this.stack.push(c,l,_);d=this.executeCommand(3,Ho);break;case 3084:if(this.stack.length<2){d=!0;break}var w=this.stack.pop(),k=this.stack.pop();this.stack.push(k/w);break;case 3088:if(this.stack.length<2){d=!0;break}u=this.stack.pop();var x=this.stack.pop();if(0===u&&3===x){var S=this.stack.splice(-17,17);this.stack.push(S[2]+S[0],S[3]+S[1],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14]);d=this.executeCommand(13,Uo,!0);this.flexing=!1;this.stack.push(S[15],S[16])}else 1===u&&0===x&&(this.flexing=!0);break;case 3089:break;default:warn('Unknown type 1 charstring command of "'+y+'"')}if(d)break}else{y<=246?y-=139:y=y<=250?256*(y-247)+t[++g]+108:y<=254?-256*(y-251)-t[++g]-108:(255&t[++g])<<24|(255&t[++g])<<16|(255&t[++g])<<8|(255&t[++g])<<0;this.stack.push(y)}}return d}},{key:"executeCommand",value:function executeCommand(t,r,o){var c,l=this.stack.length;if(t>l)return!0;for(var u=l-t,h=u;h<l;h++){var d=this.stack[h];if(Number.isInteger(d))this.output.push(28,d>>8&255,255&d);else{d=65536*d|0;this.output.push(255,d>>24&255,d>>16&255,d>>8&255,255&d)}}(c=this.output).push.apply(c,type1_parser_toConsumableArray(r));o?this.stack.splice(u,t):this.stack.length=0;return!1}}]);return Type1CharString}();function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function decrypt(t,r,o){if(o>=t.length)return new Uint8Array(0);var c,l,u=0|r;for(c=0;c<o;c++)u=52845*(t[c]+u)+22719&65535;var h=t.length-o,d=new Uint8Array(h);for(c=o,l=0;l<h;c++,l++){var g=t[c];d[l]=g^u>>8;u=52845*(g+u)+22719&65535}return d}function isSpecial(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}var Xo=function(){function Type1Parser(t,r,o){type1_parser_classCallCheck(this,Type1Parser);if(r){var c=t.getBytes(),l=!((isHexDigit(c[0])||isWhiteSpace(c[0]))&&isHexDigit(c[1])&&isHexDigit(c[2])&&isHexDigit(c[3])&&isHexDigit(c[4])&&isHexDigit(c[5])&&isHexDigit(c[6])&&isHexDigit(c[7]));t=new tn(l?decrypt(c,55665,4):function decryptAscii(t,r,o){var c,l,u=0|r,h=t.length,d=new Uint8Array(h>>>1);for(c=0,l=0;c<h;c++){var g=t[c];if(isHexDigit(g)){c++;for(var y=void 0;c<h&&!isHexDigit(y=t[c]);)c++;if(c<h){var m=parseInt(String.fromCharCode(g,y),16);d[l++]=m^u>>8;u=52845*(m+u)+22719&65535}}}return d.slice(o,l)}(c,55665,4))}this.seacAnalysisEnabled=!!o;this.stream=t;this.nextChar()}type1_parser_createClass(Type1Parser,[{key:"readNumberArray",value:function readNumberArray(){this.getToken();for(var t=[];;){var r=this.getToken();if(null===r||"]"===r||"}"===r)break;t.push(parseFloat(r||0))}return t}},{key:"readNumber",value:function readNumber(){var t=this.getToken();return parseFloat(t||0)}},{key:"readInt",value:function readInt(){var t=this.getToken();return 0|parseInt(t||0,10)}},{key:"readBoolean",value:function readBoolean(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"prevChar",value:function prevChar(){this.stream.skip(-2);return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function getToken(){for(var t=!1,r=this.currentChar;;){if(-1===r)return null;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!isWhiteSpace(r))break;r=this.nextChar()}if(isSpecial(r)){this.nextChar();return String.fromCharCode(r)}var o="";do{o+=String.fromCharCode(r);r=this.nextChar()}while(r>=0&&!isWhiteSpace(r)&&!isSpecial(r));return o}},{key:"readCharStrings",value:function readCharStrings(t,r){return-1===r?t:decrypt(t,4330,r)}},{key:"extractFontProgram",value:function extractFontProgram(t){var r=this.stream,o=[],c=[],l=Object.create(null);l.lenIV=4;for(var u,h,d,g,y={subrs:[],charstrings:[],properties:{privateData:l}};null!==(u=this.getToken());)if("/"===u)switch(u=this.getToken()){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;null!==(u=this.getToken())&&"end"!==u;)if("/"===u){var m=this.getToken();h=this.readInt();this.getToken();d=h>0?r.getBytes(h):new Uint8Array(0);g=y.properties.privateData.lenIV;var v=this.readCharStrings(d,g);this.nextChar();"noaccess"===(u=this.getToken())?this.getToken():"/"===u&&this.prevChar();c.push({glyph:m,encoded:v})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){var _=this.readInt();h=this.readInt();this.getToken();d=h>0?r.getBytes(h):new Uint8Array(0);g=y.properties.privateData.lenIV;var w=this.readCharStrings(d,g);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();o[_]=w}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var k=this.readNumberArray();k.length>0&&k.length,0;break;case"StemSnapH":case"StemSnapV":y.properties.privateData[u]=this.readNumberArray();break;case"StdHW":case"StdVW":y.properties.privateData[u]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":y.properties.privateData[u]=this.readNumber();break;case"ExpansionFactor":y.properties.privateData[u]=this.readNumber()||.06;break;case"ForceBold":y.properties.privateData[u]=this.readBoolean()}for(var x=0,S=c;x<S.length;x++){var C=S[x],O=C.encoded,T=C.glyph,E=new Vo,j=E.convert(O,o,this.seacAnalysisEnabled),R=E.output;j&&(R=[14]);var M={glyphName:T,charstring:R,width:E.width,lsb:E.lsb,seac:E.seac};".notdef"===T?y.charstrings.unshift(M):y.charstrings.push(M);if(t.builtInEncoding){var L=t.builtInEncoding.indexOf(T);L>-1&&void 0===t.widths[L]&&L>=t.firstChar&&L<=t.lastChar&&(t.widths[L]=E.width)}}return y}},{key:"extractFontHeader",value:function extractFontHeader(t){for(var r;null!==(r=this.getToken());)if("/"===r)switch(r=this.getToken()){case"FontMatrix":var o=this.readNumberArray();t.fontMatrix=o;break;case"Encoding":var c=this.getToken(),l=void 0;if(/^\d+$/.test(c)){l=[];var u=0|parseInt(c,10);this.getToken();for(var h=0;h<u;h++){r=this.getToken();for(;"dup"!==r&&"def"!==r;)if(null===(r=this.getToken()))return;if("def"===r)break;var d=this.readInt();this.getToken();var g=this.getToken();l[d]=g;this.getToken()}}else l=getEncoding(c);t.builtInEncoding=l;break;case"FontBBox":var y=this.readNumberArray();t.ascent=Math.max(y[3],y[1]);t.descent=Math.min(y[1],y[3]);t.ascentScaled=!0}}}]);return Type1Parser}();function type1_font_typeof(t){return type1_font_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},type1_font_typeof(t)}function type1_font_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function type1_font_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return type1_font_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return type1_font_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function type1_font_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function type1_font_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,type1_font_toPropertyKey(c.key),c)}}function type1_font_toPropertyKey(t){var r=function type1_font_toPrimitive(t,r){if("object"!=type1_font_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=type1_font_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==type1_font_typeof(r)?r:String(r)}function findBlock(t,r,o){for(var c=t.length,l=r.length,u=c-l,h=o,d=!1;h<u;){for(var g=0;g<l&&t[h+g]===r[g];)g++;if(g>=l){h+=g;for(;h<c&&isWhiteSpace(t[h]);)h++;d=!0;break}h++}return{found:d,length:h}}var Ko=function(){function Type1Font(t,r,o){!function type1_font_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Type1Font);var c=o.length1,l=(o.length2,r.peekBytes(6)),u=128===l[0]&&1===l[1];if(u){r.skip(6);c=l[5]<<24|l[4]<<16|l[3]<<8|l[2]}var h=function getHeaderBlock(t,r){var o,c,l,u,h=[101,101,120,101,99],d=t.pos;try{c=(o=t.getBytes(r)).length}catch(t){}if(c===r&&(l=findBlock(o,h,r-2*h.length)).found&&l.length===r)return{stream:new tn(o),length:r};warn('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=d;for(;0!==(l=findBlock(t.peekBytes(2048),h,0)).length;){t.pos+=l.length;if(l.found){u=t.pos-d;break}}t.pos=d;if(u)return{stream:new tn(t.getBytes(u)),length:u};warn('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new tn(t.getBytes(r)),length:r}}(r,c);new Xo(h.stream,!1,ro).extractFontHeader(o);u&&(l=r.getBytes(6))[5]<<24|l[4]<<16|l[3]<<8|l[2];var d=function getEexecBlock(t,r){var o=t.getBytes();if(0===o.length)throw new Sr("getEexecBlock - no font program found.");return{stream:new tn(o),length:o.length}}(r),g=new Xo(d.stream,!0,ro).extractFontProgram(o);for(var y in g.properties)o[y]=g.properties[y];var m=g.charstrings,v=this.getType2Charstrings(m),_=this.getType2Subrs(g.subrs);this.charstrings=m;this.data=this.wrap(t,v,this.charstrings,_,o);this.seacs=this.getSeacs(g.charstrings)}!function type1_font_createClass(t,r,o){r&&type1_font_defineProperties(t.prototype,r);o&&type1_font_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Type1Font,[{key:"numGlyphs",get:function get(){return this.charstrings.length+1}},{key:"getCharset",value:function getCharset(){var t,r=[".notdef"],o=type1_font_createForOfIteratorHelper(this.charstrings);try{for(o.s();!(t=o.n()).done;){var c=t.value.glyphName;r.push(c)}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"getGlyphMapping",value:function getGlyphMapping(t){var r=this.charstrings;if(t.composite){for(var o=Object.create(null),c=0,l=r.length;c<l;c++){o[t.cMap.charCodeOf(c)]=c+1}return o}var u,h,d=[".notdef"];for(h=0;h<r.length;h++)d.push(r[h].glyphName);var g=t.builtInEncoding;if(g){u=Object.create(null);for(var y in g)(h=d.indexOf(g[y]))>=0&&(u[y]=h)}return type1FontGlyphMapping(t,u,d)}},{key:"hasGlyphId",value:function hasGlyphId(t){return!(t<0||t>=this.numGlyphs)&&(0===t||this.charstrings[t-1].charstring.length>0)}},{key:"getSeacs",value:function getSeacs(t){for(var r=[],o=0,c=t.length;o<c;o++){var l=t[o];l.seac&&(r[o+1]=l.seac)}return r}},{key:"getType2Charstrings",value:function getType2Charstrings(t){var r,o=[],c=type1_font_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value;o.push(l.charstring)}}catch(t){c.e(t)}finally{c.f()}return o}},{key:"getType2Subrs",value:function getType2Subrs(t){var r=0,o=t.length;r=o<1133?107:o<33769?1131:32768;var c,l=[];for(c=0;c<r;c++)l.push([11]);for(c=0;c<o;c++)l.push(t[c]);return l}},{key:"wrap",value:function wrap(t,r,o,c,l){var u=new Ei;u.header=new ji(1,0,4,4);u.names=[t];var h=new Ni;h.setByName("version",391);h.setByName("Notice",392);h.setByName("FullName",393);h.setByName("FamilyName",394);h.setByName("Weight",395);h.setByName("Encoding",null);h.setByName("FontMatrix",l.fontMatrix);h.setByName("FontBBox",l.bbox);h.setByName("charset",null);h.setByName("CharStrings",null);h.setByName("Private",null);u.topDict=h;var d=new Ri;d.add("Version 0.11");d.add("See original notice");d.add(t);d.add(t);d.add("Medium");u.strings=d;u.globalSubrIndex=new Mi;var g,y,m=r.length,v=[".notdef"];for(g=0;g<m;g++){var _=o[g].glyphName;-1===Pi.indexOf(_)&&d.add(_);v.push(_)}u.charset=new zi(!1,0,v);var w=new Mi;w.add([139,14]);for(g=0;g<m;g++)w.add(r[g]);u.charStrings=w;var k=new Hi;k.setByName("Subrs",null);var x=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(g=0,y=x.length;g<y;g++){var S=x[g];if(S in l.privateData){var C=l.privateData[S];if(Array.isArray(C))for(var O=C.length-1;O>0;O--)C[O]-=C[O-1];k.setByName(S,C)}}u.topDict.privateDict=k;var T=new Mi;for(g=0,y=c.length;g<y;g++)T.add(c[g]);k.subrsIndex=T;return new Ki(u).compile()}}]);return Type1Font}();function fonts_typeof(t){return fonts_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fonts_typeof(t)}function fonts_slicedToArray(t,r){return function fonts_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function fonts_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||fonts_unsupportedIterableToArray(t,r)||function fonts_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fonts_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function fonts_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,fonts_toPropertyKey(c.key),c)}}function fonts_createClass(t,r,o){r&&fonts_defineProperties(t.prototype,r);o&&fonts_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function fonts_toPropertyKey(t){var r=function fonts_toPrimitive(t,r){if("object"!=fonts_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=fonts_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==fonts_typeof(r)?r:String(r)}function fonts_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=fonts_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function fonts_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return fonts_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?fonts_arrayLikeToArray(t,r):void 0}}function fonts_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var Yo=[[57344,63743],[1048576,1114109]],Jo=1e3,$o=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"],Zo=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function adjustWidths(t){if(t.fontMatrix&&t.fontMatrix[0]!==r[0]){var o=.001/t.fontMatrix[0],c=t.widths;for(var l in c)c[l]*=o;t.defaultWidth*=o}}function amendFallbackToUnicode(t){if(t.fallbackToUnicode&&!(t.toUnicode instanceof vo)){var r=[];for(var o in t.fallbackToUnicode)t.toUnicode.has(o)||(r[o]=t.fallbackToUnicode[o]);r.length>0&&t.toUnicode.amend(r)}}var Qo=function(){function Glyph(t,r,o,c,l,u,h,d,g){fonts_classCallCheck(this,Glyph);this.originalCharCode=t;this.fontChar=r;this.unicode=o;this.accent=c;this.width=l;this.vmetric=u;this.operatorListId=h;this.isSpace=d;this.isInFont=g}fonts_createClass(Glyph,[{key:"category",get:function get(){return shadow(this,"category",function getCharUnicodeCategory(t){var r=eo.get(t);if(r)return r;var o=t.match(Qi),c={isWhitespace:!(null==o||!o[1]),isZeroWidthDiacritic:!(null==o||!o[2]),isInvisibleFormatMark:!(null==o||!o[3])};eo.set(t,c);return c}(this.unicode),!0)}}]);return Glyph}();function int16(t,r){return(t<<8)+r}function writeSignedInt16(t,r,o){t[r+1]=o;t[r]=o>>>8}function signedInt16(t,r){var o=(t<<8)+r;return 32768&o?o-65536:o}function string16(t){return String.fromCharCode(t>>8&255,255&t)}function safeString16(t){t>32767?t=32767:t<-32768&&(t=-32768);return String.fromCharCode(t>>8&255,255&t)}function isTrueTypeCollectionFile(t){return"ttcf"===bytesToString(t.peekBytes(4))}function getFontFileType(t,r){var o,c,l=r.type,u=r.subtype,h=r.composite;if(function isTrueTypeFile(t){var r=t.peekBytes(4);return 65536===readUint32(r,0)||"true"===bytesToString(r)}(t)||isTrueTypeCollectionFile(t))o=h?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(t){return"OTTO"===bytesToString(t.peekBytes(4))}(t))o=h?"CIDFontType2":"OpenType";else if(function isType1File(t){var r=t.peekBytes(2);return 37===r[0]&&33===r[1]||128===r[0]&&1===r[1]}(t))o=h?"CIDFontType0":"MMType1"===l?"MMType1":"Type1";else if(function isCFFFile(t){var r=t.peekBytes(4);return r[0]>=1&&r[3]>=1&&r[3]<=4}(t))if(h){o="CIDFontType0";c="CIDFontType0C"}else{o="MMType1"===l?"MMType1":"Type1";c="Type1C"}else{warn("getFontFileType: Unable to detect correct font file Type/Subtype.");o=l;c=u}return[o,c]}function applyStandardFontGlyphMap(t,r){for(var o in r)t[+o]=r[o]}function buildToFontChar(t,r,o){for(var c,l=[],u=0,h=t.length;u<h;u++)-1!==(c=getUnicodeForGlyph(t[u],r))&&(l[u]=c);for(var d in o)-1!==(c=getUnicodeForGlyph(o[d],r))&&(l[+d]=c);return l}function isMacNameRecord(t){return 1===t.platform&&0===t.encoding&&0===t.language}function isWinNameRecord(t){return 3===t.platform&&1===t.encoding&&1033===t.language}function convertCidString(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(r.length){case 1:return r.charCodeAt(0);case 2:return r.charCodeAt(0)<<8|r.charCodeAt(1)}var c="Unsupported CID string (charCode ".concat(t,'): "').concat(r,'".');if(o)throw new Sr(c);warn(c);return r}function adjustMapping(t,r,o,c){var l=Object.create(null),u=new Map,h=[],d=new Set,g=0,y=Yo[g][0],m=Yo[g][1],v=function isInPrivateArea(t){return Yo[0][0]<=t&&t<=Yo[0][1]||Yo[1][0]<=t&&t<=Yo[1][1]};for(var _ in t){var w=t[_|=0];if(r(w)){if(y>m){if(++g>=Yo.length){warn("Ran out of space in font private use area.");break}y=Yo[g][0];m=Yo[g][1]}var k=y++;0===w&&(w=o);var x=c.get(_);"string"==typeof x&&(x=x.codePointAt(0));if(x&&!v(x)&&!d.has(w)){u.set(x,w);d.add(w)}l[k]=w;h[_]=k}}return{toFontChar:h,charCodeToGlyphId:l,toUnicodeExtraMap:u,nextAvailableFontCharCode:y}}function createCmapTable(t,r,o){var c,l,u,h,d=function getRanges(t,r,o){var c=[];for(var l in t)t[l]>=o||c.push({fontCharCode:0|l,glyphId:t[l]});if(r){var u,h=fonts_createForOfIteratorHelper(r);try{for(h.s();!(u=h.n()).done;){var d=fonts_slicedToArray(u.value,2),g=d[0],y=d[1];y>=o||c.push({fontCharCode:g,glyphId:y})}}catch(t){h.e(t)}finally{h.f()}}0===c.length&&c.push({fontCharCode:0,glyphId:0});c.sort((function fontGetRangesSort(t,r){return t.fontCharCode-r.fontCharCode}));for(var m=[],v=c.length,_=0;_<v;){var w=c[_].fontCharCode,k=[c[_].glyphId];++_;for(var x=w;_<v&&x+1===c[_].fontCharCode;){k.push(c[_].glyphId);++_;if(65535==++x)break}m.push([w,x,k])}return m}(t,r,o),g=d.at(-1)[1]>65535?2:1,y="\0\0"+string16(g)+"\0\0"+string32(4+8*g);for(c=d.length-1;c>=0&&!(d[c][0]<=65535);--c);var m=c+1;d[c][0]<65535&&65535===d[c][1]&&(d[c][1]=65534);var v,_,w,k,x=d[c][1]<65535?1:0,S=m+x,C=Ro.getSearchParams(S,2),O="",T="",E="",j="",R="",M=0;for(c=0,l=m;c<l;c++){_=(v=d[c])[0];w=v[1];O+=string16(_);T+=string16(w);var L=!0;for(u=1,h=(k=v[2]).length;u<h;++u)if(k[u]!==k[u-1]+1){L=!1;break}if(L){E+=string16(k[0]-_&65535);j+=string16(0)}else{var D=2*(S-c)+2*M;M+=w-_+1;E+=string16(0);j+=string16(D);for(u=0,h=k.length;u<h;++u)R+=string16(k[u])}}if(x>0){T+="ÿÿ";O+="ÿÿ";E+="\0";j+="\0\0"}var N="\0\0"+string16(2*S)+string16(C.range)+string16(C.entry)+string16(C.rangeShift)+T+"\0\0"+O+E+j+R,U="",G="";if(g>1){y+="\0\0\n"+string32(4+8*g+4+N.length);U="";for(c=0,l=d.length;c<l;c++){_=(v=d[c])[0];var H=(k=v[2])[0];for(u=1,h=k.length;u<h;++u)if(k[u]!==k[u-1]+1){w=v[0]+u-1;U+=string32(_)+string32(w)+string32(H);_=w+1;H=k[u]}U+=string32(_)+string32(v[1])+string32(H)}G="\0\f\0\0"+string32(U.length+16)+"\0\0\0\0"+string32(U.length/12)}return y+"\0"+string16(N.length+4)+N+G+U}function createOS2Table(t,o,c){c||(c={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0});var l=0,u=0,h=0,d=0,g=null,y=0,m=-1;if(o){for(var v in o){(g>(v|=0)||!g)&&(g=v);y<v&&(y=v);if((m=getUnicodeRangeFor(v,m))<32)l|=1<<m;else if(m<64)u|=1<<m-32;else if(m<96)h|=1<<m-64;else{if(!(m<123))throw new Sr("Unicode ranges Bits > 123 are reserved for internal usage");d|=1<<m-96}}y>65535&&(y=65535)}else{g=0;y=255}var _=t.bbox||[0,0,0,0],w=c.unitsPerEm||1/(t.fontMatrix||r)[0],k=t.ascentScaled?1:w/Jo,x=c.ascent||Math.round(k*(t.ascent||_[3])),S=c.descent||Math.round(k*(t.descent||_[1]));S>0&&t.descent>0&&_[1]<0&&(S=-S);var C=c.yMax||x,O=-c.yMin||-S;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(t.fixedPitch?9:0)+"\0\0\0\0\0\0"+string32(l)+string32(u)+string32(h)+string32(d)+"*21*"+string16(t.italicAngle?1:0)+string16(g||t.firstChar)+string16(y||t.lastChar)+string16(x)+string16(S)+"\0d"+string16(C)+string16(O)+"\0\0\0\0\0\0\0\0"+string16(t.xHeight)+string16(t.capHeight)+string16(0)+string16(g||t.firstChar)+"\0"}function createPostTable(t){return"\0\0\0"+string32(Math.floor(t.italicAngle*Math.pow(2,16)))+"\0\0\0\0"+string32(t.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function createPostscriptName(t){return t.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function createNameTable(t,r){r||(r=[[],[]]);var o,c,l,u,h,d=[r[0][0]||"Original licence",r[0][1]||t,r[0][2]||"Unknown",r[0][3]||"uniqueID",r[0][4]||t,r[0][5]||"Version 0.11",r[0][6]||createPostscriptName(t),r[0][7]||"Unknown",r[0][8]||"Unknown",r[0][9]||"Unknown"],g=[];for(o=0,c=d.length;o<c;o++){var y=[];for(l=0,u=(h=r[1][o]||d[o]).length;l<u;l++)y.push(string16(h.charCodeAt(l)));g.push(y.join(""))}var m=[d,g],v=["\0","\0"],_=["\0\0","\0"],w=["\0\0","\t"],k=d.length*v.length,x="\0\0"+string16(k)+string16(12*k+6),S=0;for(o=0,c=v.length;o<c;o++){var C=m[o];for(l=0,u=C.length;l<u;l++){h=C[l];x+=v[o]+_[o]+w[o]+string16(l)+string16(h.length)+string16(S);S+=h.length}}return x+=d.join("")+g.join("")}var es=function(){function Font(t,r,o){var c;fonts_classCallCheck(this,Font);this.name=t;this.psName=null;this.mimetype=null;this.disableFontFace=!1;this.loadedName=o.loadedName;this.isType3Font=o.isType3Font;this.missingFile=!1;this.cssFontInfo=o.cssFontInfo;this._charsCache=Object.create(null);this._glyphCache=Object.create(null);var l=!!(o.flags&ao);if(!l&&!o.isSimulatedFlags){var u,h=t.replaceAll(/[,_]/g,"-").split("-")[0],d=fo(),g=fonts_createForOfIteratorHelper(h.split("+"));try{for(g.s();!(u=g.n()).done;){if(d[u.value]){l=!0;break}}}catch(t){g.e(t)}finally{g.f()}}this.isSerifFont=l;this.isSymbolicFont=!!(o.flags&io);this.isMonospace=!!(o.flags&no);var y=o.type,m=o.subtype;this.type=y;this.subtype=m;this.systemFontInfo=o.systemFontInfo;var v=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);this.isInvalidPDFjsFont=!!v;this.isInvalidPDFjsFont?this.fallbackName=v[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif";if(null!==(c=this.systemFontInfo)&&void 0!==c&&c.guessFallback){this.systemFontInfo.guessFallback=!1;this.systemFontInfo.css+=",".concat(this.fallbackName)}this.differences=o.differences;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.composite=o.composite;this.cMap=o.cMap;this.capHeight=o.capHeight/Jo;this.ascent=o.ascent/Jo;this.descent=o.descent/Jo;this.lineHeight=this.ascent-this.descent;this.fontMatrix=o.fontMatrix;this.bbox=o.bbox;this.defaultEncoding=o.defaultEncoding;this.toUnicode=o.toUnicode;this.toFontChar=[];if("Type3"!==o.type){this.cidEncoding=o.cidEncoding||"";this.vertical=!!o.vertical;if(this.vertical){this.vmetrics=o.vmetrics;this.defaultVMetrics=o.defaultVMetrics}if(r&&!r.isEmpty){var _,w=fonts_slicedToArray(getFontFileType(r,o),2);y=w[0];m=w[1];y===this.type&&m===this.subtype||info("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(y,"/").concat(m,"."));try{switch(y){case"MMType1":info("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var k="Type1C"===m||"CIDFontType0C"===m?new bo(r,o):new Ko(t,r,o);adjustWidths(o);_=this.convert(t,k,o);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";_=this.checkAndRepair(t,r,o);if(this.isOpenType){adjustWidths(o);y="OpenType"}break;default:throw new Sr("Font ".concat(y," is not supported"))}}catch(t){warn(t);this.fallbackToSystemFont(o);return}amendFallbackToUnicode(o);this.data=_;this.type=y;this.subtype=m;this.fontMatrix=o.fontMatrix;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.toUnicode=o.toUnicode;this.seacMap=o.seacMap}else{r&&warn('Font file is empty in "'+t+'" ('+this.loadedName+")");this.fallbackToSystemFont(o)}}else for(var x=0;x<256;x++)this.toFontChar[x]=this.differences[x]||o.defaultEncoding[x]}fonts_createClass(Font,[{key:"renderer",get:function get(){return shadow(this,"renderer",So.create(this,ro))}},{key:"exportData",value:function exportData(){var t,r,o,c=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?[].concat($o,Zo):$o,l=Object.create(null),u=fonts_createForOfIteratorHelper(c);try{for(u.s();!(o=u.n()).done;)void 0!==(r=this[t=o.value])&&(l[t]=r)}catch(t){u.e(t)}finally{u.f()}return l}},{key:"fallbackToSystemFont",value:function fallbackToSystemFont(t){var r=this;this.missingFile=!0;var o=this.name,c=this.type,l=normalizeFontName(o),u=co(),h=uo(),d=!!u[l],g=!(!h[l]||!u[h[l]]);l=u[l]||h[l]||l;var y=Ao()[l];if(y){isNaN(this.ascent)&&(this.ascent=y.ascent/Jo);isNaN(this.descent)&&(this.descent=y.descent/Jo);isNaN(this.capHeight)&&(this.capHeight=y.capHeight/Jo)}this.bold=/bold/gi.test(l);this.italic=/oblique|italic/gi.test(l);this.black=/Black/g.test(o);var m=/Narrow/g.test(o);this.remeasure=(!d||m)&&Object.keys(this.widths).length>0;if((d||g)&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var v=t.cidToGidMap,_=[];applyStandardFontGlyphMap(_,po());/Arial-?Black/i.test(o)?applyStandardFontGlyphMap(_,go()):/Calibri/i.test(o)&&applyStandardFontGlyphMap(_,yo());if(v){for(var w in _){var k=_[w];void 0!==v[k]&&(_[+w]=v[k])}v.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof vo&&this.toUnicode.forEach((function(t,r){var o=_[t];void 0===v[o]&&(_[+t]=r)}))}this.toUnicode instanceof vo||this.toUnicode.forEach((function(t,r){_[+t]=r}));this.toFontChar=_;this.toUnicode=new mo(_)}else if(/Symbol/i.test(l))this.toFontChar=buildToFontChar(Ci,Yi(),this.differences);else if(/Dingbats/i.test(l))this.toFontChar=buildToFontChar(Ai,Ji(),this.differences);else if(d){var x=buildToFontChar(this.defaultEncoding,Yi(),this.differences);"CIDFontType2"!==c||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof vo||this.toUnicode.forEach((function(t,r){x[+t]=r}));this.toFontChar=x}else{var S=Yi(),C=[];this.toUnicode.forEach((function(t,o){if(!r.composite){var c=getUnicodeForGlyph(r.differences[t]||r.defaultEncoding[t],S);-1!==c&&(o=c)}C[+t]=o}));this.composite&&this.toUnicode instanceof vo&&/Tahoma|Verdana/i.test(o)&&applyStandardFontGlyphMap(C,po());this.toFontChar=C}amendFallbackToUnicode(t);this.loadedName=l.split("-")[0]}},{key:"checkAndRepair",value:function checkAndRepair(t,r,o){var c,l,u=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(t,r){var o=Object.create(null);o["OS/2"]=null;o.cmap=null;o.head=null;o.hhea=null;o.hmtx=null;o.maxp=null;o.name=null;o.post=null;for(var c=0;c<r;c++){var l=readTableEntry(t);u.includes(l.tag)&&(0!==l.length&&(o[l.tag]=l))}return o}function readTableEntry(t){var r=t.getString(4),o=t.getInt32()>>>0,c=t.getInt32()>>>0,l=t.getInt32()>>>0,u=t.pos;t.pos=t.start||0;t.skip(c);var h=t.getBytes(l);t.pos=u;if("head"===r){h[8]=h[9]=h[10]=h[11]=0;h[17]|=32}return{tag:r,checksum:o,length:l,offset:c,data:h}}function readOpenTypeHeader(t){return{version:t.getString(4),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function sanitizeGlyph(t,r,o,c,l,u){var h={length:0,sizeOfInstructions:0};if(r<0||r>=t.length||o>t.length||o-r<=12)return h;var d=t.subarray(r,o),g=signedInt16(d[2],d[3]),y=signedInt16(d[4],d[5]),m=signedInt16(d[6],d[7]),v=signedInt16(d[8],d[9]);if(g>m){writeSignedInt16(d,2,m);writeSignedInt16(d,6,g)}if(y>v){writeSignedInt16(d,4,v);writeSignedInt16(d,8,y)}var _=signedInt16(d[0],d[1]);if(_<0){if(_<-1)return h;c.set(d,l);h.length=d.length;return h}var w,k=10,x=0;for(w=0;w<_;w++){x=(d[k]<<8|d[k+1])+1;k+=2}var S=k,C=d[k]<<8|d[k+1];h.sizeOfInstructions=C;var O=k+=2+C,T=0;for(w=0;w<x;w++){var E=d[k++];192&E&&(d[k-1]=63&E);var j=2;2&E?j=1:16&E&&(j=0);var R=2;4&E?R=1:32&E&&(R=0);var M=j+R;T+=M;if(8&E){var L=d[k++];0===L&&(d[k-1]^=8);w+=L;T+=L*M}}if(0===T)return h;var D=k+T;if(D>d.length)return h;if(!u&&C>0){c.set(d.subarray(0,S),l);c.set([0,0],l+S);c.set(d.subarray(O,D),l+S+2);D-=C;d.length-D>3&&(D=D+3&-4);h.length=D;return h}if(d.length-D>3){D=D+3&-4;c.set(d.subarray(0,D),l);h.length=D;return h}c.set(d,l);h.length=d.length;return h}function readNameTable(t){var o=(r.start||0)+t.offset;r.pos=o;var c=[[],[]],l=[],u=t.length,h=o+u;if(0!==r.getUint16()||u<6)return[c,l];var d,g,y=r.getUint16(),m=r.getUint16();for(d=0;d<y&&r.pos+12<=h;d++){var v={platform:r.getUint16(),encoding:r.getUint16(),language:r.getUint16(),name:r.getUint16(),length:r.getUint16(),offset:r.getUint16()};(isMacNameRecord(v)||isWinNameRecord(v))&&l.push(v)}for(d=0,g=l.length;d<g;d++){var _=l[d];if(!(_.length<=0)){var w=o+m+_.offset;if(!(w+_.length>h)){r.pos=w;var k=_.name;if(_.encoding){for(var x="",S=0,C=_.length;S<C;S+=2)x+=String.fromCharCode(r.getUint16());c[1][k]=x}else c[0][k]=r.getString(_.length)}}}return[c,l]}var h,d,g,y,m=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function sanitizeTTProgram(t,r){for(var o,c,l,u,h,d=t.data,g=0,y=0,v=0,_=[],w=[],k=[],x=r.tooComplexToFollowFunctions,S=!1,C=0,O=0,T=d.length;g<T;){var E=d[g++];if(64===E){c=d[g++];if(S||O)g+=c;else for(o=0;o<c;o++)_.push(d[g++])}else if(65===E){c=d[g++];if(S||O)g+=2*c;else for(o=0;o<c;o++){l=d[g++];_.push(l<<8|d[g++])}}else if(176==(248&E)){c=E-176+1;if(S||O)g+=c;else for(o=0;o<c;o++)_.push(d[g++])}else if(184==(248&E)){c=E-184+1;if(S||O)g+=2*c;else for(o=0;o<c;o++){l=d[g++];_.push(l<<8|d[g++])}}else if(43!==E||x)if(44!==E||x){if(45===E)if(S){S=!1;y=g}else{if(!(h=w.pop())){warn("TT: ENDF bad stack");r.hintsValid=!1;return}u=k.pop();d=h.data;g=h.i;r.functionsStackDeltas[u]=_.length-h.stackTop}else if(137===E){if(S||O){warn("TT: nested IDEFs not allowed");x=!0}S=!0;v=g}else if(88===E)++C;else if(27===E)O=C;else if(89===E){O===C&&(O=0);--C}else if(28===E&&!S&&!O){var j=_.at(-1);j>0&&(g+=j-1)}}else{if(S||O){warn("TT: nested FDEFs not allowed");x=!0}S=!0;v=g;u=_.pop();r.functionsDefined[u]={data:d,i:g}}else if(!S&&!O){u=_.at(-1);if(isNaN(u))info("TT: CALL empty stack (or invalid entry).");else{r.functionsUsed[u]=!0;if(u in r.functionsStackDeltas){var R=_.length+r.functionsStackDeltas[u];if(R<0){warn("TT: CALL invalid functions stack delta.");r.hintsValid=!1;return}_.length=R}else if(u in r.functionsDefined&&!k.includes(u)){w.push({data:d,i:g,stackTop:_.length-1});k.push(u);if(!(h=r.functionsDefined[u])){warn("TT: CALL non-existent function");r.hintsValid=!1;return}d=h.data;g=h.i}}}if(!S&&!O){var M=0;E<=142?M=m[E]:E>=192&&E<=223?M=-1:E>=224&&(M=-2);if(E>=113&&E<=117){c=_.pop();isNaN(c)||(M=2*-c)}for(;M<0&&_.length>0;){_.pop();M++}for(;M>0;){_.push(NaN);M--}}}r.tooComplexToFollowFunctions=x;var L=[d];g>d.length&&L.push(new Uint8Array(g-d.length));if(v>y){warn("TT: complementing a missing function tail");L.push(new Uint8Array([34,45]))}!function foldTTTable(t,r){if(r.length>1){var o,c,l=0;for(o=0,c=r.length;o<c;o++)l+=r[o].length;l=l+3&-4;var u=new Uint8Array(l),h=0;for(o=0,c=r.length;o<c;o++){u.set(r[o],h);h+=r[o].length}t.data=u;t.length=l}}(t,L)}if(isTrueTypeCollectionFile(r=new tn(new Uint8Array(r.getBytes())))){var v=function readTrueTypeCollectionData(t,r){for(var o,c=function readTrueTypeCollectionHeader(t){var r=t.getString(4);assert("ttcf"===r,"Must be a TrueType Collection font.");for(var o=t.getUint16(),c=t.getUint16(),l=t.getInt32()>>>0,u=[],h=0;h<l;h++)u.push(t.getInt32()>>>0);var d={ttcTag:r,majorVersion:o,minorVersion:c,numFonts:l,offsetTable:u};switch(o){case 1:return d;case 2:d.dsigTag=t.getInt32()>>>0;d.dsigLength=t.getInt32()>>>0;d.dsigOffset=t.getInt32()>>>0;return d}throw new Sr("Invalid TrueType Collection majorVersion: ".concat(o,"."))}(t),l=c.numFonts,u=c.offsetTable,h=r.split("+"),d=0;d<l;d++){t.pos=(t.start||0)+u[d];var g=readOpenTypeHeader(t),y=readTables(t,g.numTables);if(!y.name)throw new Sr('TrueType Collection font must contain a "name" table.');for(var m=fonts_slicedToArray(readNameTable(y.name),1)[0],v=0,_=m.length;v<_;v++)for(var w=0,k=m[v].length;w<k;w++){var x,S=null===(x=m[v][w])||void 0===x?void 0:x.replaceAll(/\s/g,"");if(S){if(S===r)return{header:g,tables:y};if(!(h.length<2)){var C,O=fonts_createForOfIteratorHelper(h);try{for(O.s();!(C=O.n()).done;){var T=C.value;S===T&&(o={name:T,header:g,tables:y})}}catch(t){O.e(t)}finally{O.f()}}}}}if(o){warn('TrueType Collection does not contain "'.concat(r,'" font, ')+'falling back to "'.concat(o.name,'" font instead.'));return{header:o.header,tables:o.tables}}throw new Sr('TrueType Collection does not contain "'.concat(r,'" font.'))}(r,this.name);h=v.header;d=v.tables}else{h=readOpenTypeHeader(r);d=readTables(r,h.numTables)}var _=!d["CFF "];if(_){if(!d.loca)throw new Sr('Required "loca" table is not found');if(!d.glyf){warn('Required "glyf" table is not found -- trying to recover.');d.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{var w,k=o.composite&&((null===(w=o.cidToGidMap)||void 0===w?void 0:w.length)>0||!(o.cMap instanceof gi));if("OTTO"===h.version&&!k||!d.head||!d.hhea||!d.maxp||!d.post){y=new tn(d["CFF "].data);g=new bo(y,o);adjustWidths(o);return this.convert(t,g,o)}delete d.glyf;delete d.loca;delete d.fpgm;delete d.prep;delete d["cvt "];this.isOpenType=!0}if(!d.maxp)throw new Sr('Required "maxp" table is not found');r.pos=(r.start||0)+d.maxp.offset;var x=r.getInt32(),S=r.getUint16();if(65536!==x&&20480!==x){if(6===d.maxp.length)x=20480;else{if(!(d.maxp.length>=32))throw new Sr('"maxp" table has a wrong version number');x=65536}!function writeUint32(t,r,o){t[r+3]=255&o;t[r+2]=o>>>8;t[r+1]=o>>>16;t[r]=o>>>24}(d.maxp.data,0,x)}if((null===(c=o.scaleFactors)||void 0===c?void 0:c.length)===S&&_){var C=o.scaleFactors,O=int16(d.head.data[50],d.head.data[51]),T=new Po({glyfTable:d.glyf.data,isGlyphLocationsLong:O,locaTable:d.loca.data,numGlyphs:S});T.scale(C);var E=T.write(),j=E.glyf,R=E.loca,M=E.isLocationLong;d.glyf.data=j;d.loca.data=R;if(M!==!!O){d.head.data[50]=0;d.head.data[51]=M?1:0}for(var L=d.hmtx.data,D=0;D<S;D++){var N=4*D,U=Math.round(C[D]*int16(L[N],L[N+1]));L[N]=U>>8&255;L[N+1]=255&U;writeSignedInt16(L,N+2,Math.round(C[D]*signedInt16(L[N+2],L[N+3])))}}var G=S+1,H=!0;if(G>65535){H=!1;G=S;warn("Not enough space in glyfs to duplicate first glyph.")}var q=0,z=0;if(x>=65536&&d.maxp.length>=32){r.pos+=8;if(r.getUint16()>2){d.maxp.data[14]=0;d.maxp.data[15]=2}r.pos+=4;q=r.getUint16();r.pos+=4;z=r.getUint16()}d.maxp.data[4]=G>>8;d.maxp.data[5]=255&G;var W=function sanitizeTTPrograms(t,r,o,c){var l={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};t&&sanitizeTTProgram(t,l);r&&sanitizeTTProgram(r,l);t&&function checkInvalidFunctions(t,r){if(!t.tooComplexToFollowFunctions)if(t.functionsDefined.length>r){warn("TT: more functions defined than expected");t.hintsValid=!1}else for(var o=0,c=t.functionsUsed.length;o<c;o++){if(o>r){warn("TT: invalid function id: "+o);t.hintsValid=!1;return}if(t.functionsUsed[o]&&!t.functionsDefined[o]){warn("TT: undefined function: "+o);t.hintsValid=!1;return}}}(l,c);if(o&&1&o.length){var u=new Uint8Array(o.length+1);u.set(o.data);o.data=u}return l.hintsValid}(d.fpgm,d.prep,d["cvt "],q);if(!W){delete d.fpgm;delete d.prep;delete d["cvt "]}!function sanitizeMetrics(t,r,o,c,l,u){if(r){t.pos=(t.start||0)+r.offset;t.pos+=4;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;var h=t.getUint16();t.pos+=8;t.pos+=2;var d=t.getUint16();if(0!==h){if(!(2&int16(c.data[44],c.data[45]))){r.data[22]=0;r.data[23]=0}}if(d>l){info("The numOfMetrics (".concat(d,") should not be ")+"greater than the numGlyphs (".concat(l,")."));d=l;r.data[34]=(65280&d)>>8;r.data[35]=255&d}var g=l-d-(o.length-4*d>>1);if(g>0){var y=new Uint8Array(o.length+2*g);y.set(o.data);if(u){y[o.length]=o.data[2];y[o.length+1]=o.data[3]}o.data=y}}else o&&(o.data=null)}(r,d.hhea,d.hmtx,d.head,G,H);if(!d.head)throw new Sr('Required "head" table is not found');!function sanitizeHead(t,r,o){var c=t.data,l=function int32(t,r,o,c){return(t<<24)+(r<<16)+(o<<8)+c}(c[0],c[1],c[2],c[3]);if(l>>16!=1){info("Attempting to fix invalid version in head table: "+l);c[0]=0;c[1]=1;c[2]=0;c[3]=0}var u=int16(c[50],c[51]);if(u<0||u>1){info("Attempting to fix invalid indexToLocFormat in head table: "+u);var h=r+1;if(o===h<<1){c[50]=0;c[51]=0}else{if(o!==h<<2)throw new Sr("Could not fix indexToLocFormat: "+u);c[50]=0;c[51]=1}}}(d.head,S,_?d.loca.length:0);var V=Object.create(null);if(_){var X=int16(d.head.data[50],d.head.data[51]),K=function sanitizeGlyphLocations(t,r,o,c,l,u,h){var d,g,y;if(c){d=4;g=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};y=function fontItemEncodeLong(t,r,o){t[r]=o>>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}}else{d=2;g=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1};y=function fontItemEncode(t,r,o){t[r]=o>>9&255;t[r+1]=o>>1&255}}var m=u?o+1:o,v=d*(1+m),_=new Uint8Array(v);_.set(t.data.subarray(0,v));t.data=_;var w,k,x=r.data,S=x.length,C=new Uint8Array(S),O=[];for(w=0,k=0;w<o+1;w++,k+=d){var T=g(_,k);T>S&&(T=S);O.push({index:w,offset:T,endOffset:0})}O.sort((function(t,r){return t.offset-r.offset}));for(w=0;w<o;w++)O[w].endOffset=O[w+1].offset;O.sort((function(t,r){return t.index-r.index}));for(w=0;w<o;w++){var E=O[w],j=E.offset,R=E.endOffset;if(0!==j||0!==R)break;var M=O[w+1].offset;if(0!==M){O[w].endOffset=M;break}}var L=Object.create(null),D=0;y(_,0,D);for(w=0,k=d;w<o;w++,k+=d){var N=sanitizeGlyph(x,O[w].offset,O[w].endOffset,C,D,l),U=N.length;0===U&&(L[w]=!0);N.sizeOfInstructions>h&&(h=N.sizeOfInstructions);y(_,k,D+=U)}if(0===D){var G=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(w=0,k=d;w<m;w++,k+=d)y(_,k,G.length);r.data=G}else if(u){var H=g(_,d);if(C.length>H+D)r.data=C.subarray(0,H+D);else{r.data=new Uint8Array(H+D);r.data.set(C.subarray(0,D))}r.data.set(C.subarray(0,H),D);y(t.data,_.length-d,D+H)}else r.data=C.subarray(0,D);return{missingGlyphs:L,maxSizeOfInstructions:h}}(d.loca,d.glyf,S,X,W,H,z);V=K.missingGlyphs;if(x>=65536&&d.maxp.length>=32){d.maxp.data[26]=K.maxSizeOfInstructions>>8;d.maxp.data[27]=255&K.maxSizeOfInstructions}}if(!d.hhea)throw new Sr('Required "hhea" table is not found');if(0===d.hhea.data[10]&&0===d.hhea.data[11]){d.hhea.data[10]=255;d.hhea.data[11]=255}var Y={unitsPerEm:int16(d.head.data[18],d.head.data[19]),yMax:signedInt16(d.head.data[42],d.head.data[43]),yMin:signedInt16(d.head.data[38],d.head.data[39]),ascent:signedInt16(d.hhea.data[4],d.hhea.data[5]),descent:signedInt16(d.hhea.data[6],d.hhea.data[7]),lineGap:signedInt16(d.hhea.data[8],d.hhea.data[9])};this.ascent=Y.ascent/Y.unitsPerEm;this.descent=Y.descent/Y.unitsPerEm;this.lineGap=Y.lineGap/Y.unitsPerEm;if(null!==(l=this.cssFontInfo)&&void 0!==l&&l.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else this.lineHeight=this.ascent-this.descent+this.lineGap;d.post&&function readPostScriptTable(t,o,c){var l=(r.start||0)+t.offset;r.pos=l;var u,h=l+t.length,d=r.getInt32();r.skip(28);var g,y=!0;switch(d){case 65536:u=so;break;case 131072:var m=r.getUint16();if(m!==c){y=!1;break}var v=[];for(g=0;g<m;++g){var _=r.getUint16();if(_>=32768){y=!1;break}v.push(_)}if(!y)break;for(var w=[],k=[];r.pos<h;){var x=r.getByte();k.length=x;for(g=0;g<x;++g)k[g]=String.fromCharCode(r.getByte());w.push(k.join(""))}u=[];for(g=0;g<m;++g){var S=v[g];S<258?u.push(so[S]):u.push(w[S-258])}break;case 196608:break;default:warn("Unknown/unsupported post table version "+d);y=!1;o.defaultEncoding&&(u=o.defaultEncoding)}o.glyphNames=u;return y}(d.post,o,S);d.post={tag:"post",data:createPostTable(o)};var J=[];function hasGlyph(t){return!V[t]}if(o.composite){var $=o.cidToGidMap||[],Z=0===$.length;o.cMap.forEach((function(t,r){"string"==typeof r&&(r=convertCidString(t,r,!0));if(r>65535)throw new Sr("Max size of CID is 65,535");var o=-1;Z?o=r:void 0!==$[r]&&(o=$[r]);o>=0&&o<S&&hasGlyph(o)&&(J[t]=o)}))}else{var Q=function readCmapTable(t,r,o,c){if(!t){warn("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var l,u=(r.start||0)+t.offset;r.pos=u;r.skip(2);for(var h,d=r.getUint16(),g=!1,y=0;y<d;y++){var m,v,_=r.getUint16(),w=r.getUint16(),k=r.getInt32()>>>0,x=!1;if((null===(m=h)||void 0===m?void 0:m.platformId)!==_||(null===(v=h)||void 0===v?void 0:v.encodingId)!==w){if(0!==_||0!==w&&1!==w&&3!==w)if(1===_&&0===w)x=!0;else if(3!==_||1!==w||!c&&h){if(o&&3===_&&0===w){x=!0;var S=!0;if(y<d-1){var C=r.peekBytes(2);int16(C[0],C[1])<_&&(S=!1)}S&&(g=!0)}}else{x=!0;o||(g=!0)}else x=!0;x&&(h={platformId:_,encodingId:w,offset:k});if(g)break}}h&&(r.pos=u+h.offset);if(!h||-1===r.peekByte()){warn("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var O,T,E=r.getUint16(),j=!1,R=[];if(0===E){r.skip(4);for(O=0;O<256;O++){var M=r.getByte();M&&R.push({charCode:O,glyphId:M})}j=!0}else if(2===E){r.skip(4);for(var L=[],D=0,N=0;N<256;N++){var U=r.getUint16()>>3;L.push(U);D=Math.max(U,D)}for(var G=[],H=0;H<=D;H++)G.push({firstCode:r.getUint16(),entryCount:r.getUint16(),idDelta:signedInt16(r.getByte(),r.getByte()),idRangePos:r.pos+r.getUint16()});for(var q=0;q<256;q++)if(0===L[q]){r.pos=G[0].idRangePos+2*q;T=r.getUint16();R.push({charCode:q,glyphId:T})}else{var z=G[L[q]];for(O=0;O<z.entryCount;O++){var W=(q<<8)+O+z.firstCode;r.pos=z.idRangePos+2*O;0!==(T=r.getUint16())&&(T=(T+z.idDelta)%65536);R.push({charCode:W,glyphId:T})}}}else if(4===E){r.skip(4);var V=r.getUint16()>>1;r.skip(6);var X,K=[];for(X=0;X<V;X++)K.push({end:r.getUint16()});r.skip(2);for(X=0;X<V;X++)K[X].start=r.getUint16();for(X=0;X<V;X++)K[X].delta=r.getUint16();var Y,J=0;for(X=0;X<V;X++){l=K[X];var $=r.getUint16();if($){Y=($>>1)-(V-X);l.offsetIndex=Y;J=Math.max(J,Y+l.end-l.start+1)}else l.offsetIndex=-1}var Z=[];for(O=0;O<J;O++)Z.push(r.getUint16());for(X=0;X<V;X++){u=(l=K[X]).start;var Q=l.end,ee=l.delta;Y=l.offsetIndex;for(O=u;O<=Q;O++)if(65535!==O){T=(T=Y<0?O:Z[Y+O-u])+ee&65535;R.push({charCode:O,glyphId:T})}}}else if(6===E){r.skip(4);var te=r.getUint16(),re=r.getUint16();for(O=0;O<re;O++){T=r.getUint16();var ne=te+O;R.push({charCode:ne,glyphId:T})}}else{if(12!==E){warn("cmap table has unsupported format: "+E);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}r.skip(10);var ae=r.getInt32()>>>0;for(O=0;O<ae;O++)for(var ie=r.getInt32()>>>0,oe=r.getInt32()>>>0,se=r.getInt32()>>>0,ce=ie;ce<=oe;ce++)R.push({charCode:ce,glyphId:se++})}R.sort((function(t,r){return t.charCode-r.charCode}));for(var le=1;le<R.length;le++)if(R[le-1].charCode===R[le].charCode){R.splice(le,1);le--}return{platformId:h.platformId,encodingId:h.encodingId,mappings:R,hasShortCmap:j}}(d.cmap,r,this.isSymbolicFont,o.hasEncoding),ee=Q.platformId,te=Q.encodingId,re=Q.mappings,ne=[],ae=!1;!o.hasEncoding||"MacRomanEncoding"!==o.baseEncodingName&&"WinAnsiEncoding"!==o.baseEncodingName||(ne=getEncoding(o.baseEncodingName));if(o.hasEncoding&&!this.isSymbolicFont&&(3===ee&&1===te||1===ee&&0===te))for(var ie=Yi(),oe=0;oe<256;oe++){var se=void 0;if(se=void 0!==this.differences[oe]?this.differences[oe]:ne.length&&""!==ne[oe]?ne[oe]:xi[oe]){var ce=recoverGlyphName(se,ie),le=void 0;3===ee&&1===te?le=ie[ce]:1===ee&&0===te&&(le=ki.indexOf(ce));if(void 0===le){if(!o.glyphNames&&o.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof vo)){var ue=this.toUnicode.get(oe);ue&&(le=ue.codePointAt(0))}if(void 0===le)continue}var fe,he=fonts_createForOfIteratorHelper(re);try{for(he.s();!(fe=he.n()).done;){var pe=fe.value;if(pe.charCode===le){J[oe]=pe.glyphId;break}}}catch(t){he.e(t)}finally{he.f()}}}else if(0===ee){var de,ge=fonts_createForOfIteratorHelper(re);try{for(ge.s();!(de=ge.n()).done;){var ye=de.value;J[ye.charCode]=ye.glyphId}}catch(t){ge.e(t)}finally{ge.f()}ae=!0}else{var me,ve=fonts_createForOfIteratorHelper(re);try{for(ve.s();!(me=ve.n()).done;){var be=me.value,_e=be.charCode;3===ee&&_e>=61440&&_e<=61695&&(_e&=255);J[_e]=be.glyphId}}catch(t){ve.e(t)}finally{ve.f()}}if(o.glyphNames&&(ne.length||this.differences.length))for(var we=0;we<256;++we)if(ae||void 0===J[we]){var ke=this.differences[we]||ne[we];if(ke){var xe=o.glyphNames.indexOf(ke);xe>0&&hasGlyph(xe)&&(J[we]=xe)}}}0===J.length&&(J[0]=0);var Se=G-1;H||(Se=0);if(!o.cssFontInfo){var Ce=adjustMapping(J,hasGlyph,Se,this.toUnicode);this.toFontChar=Ce.toFontChar;d.cmap={tag:"cmap",data:createCmapTable(Ce.charCodeToGlyphId,Ce.toUnicodeExtraMap,G)};d["OS/2"]&&function validateOS2Table(t,r){r.pos=(r.start||0)+t.offset;var o=r.getUint16();r.skip(60);var c=r.getUint16();if(o<4&&768&c)return!1;if(r.getUint16()>r.getUint16())return!1;r.skip(6);if(0===r.getUint16())return!1;t.data[8]=t.data[9]=0;return!0}(d["OS/2"],r)||(d["OS/2"]={tag:"OS/2",data:createOS2Table(o,Ce.charCodeToGlyphId,Y)})}if(!_)try{y=new tn(d["CFF "].data);(g=new Fi(y,o,ro).parse()).duplicateFirstGlyph();var Ae=new Ki(g);d["CFF "].data=Ae.compile()}catch(t){warn("Failed to compile font "+o.loadedName)}if(d.name){var Pe=fonts_slicedToArray(readNameTable(d.name),2),Oe=Pe[0],Ie=Pe[1];d.name.data=createNameTable(t,Oe);this.psName=Oe[0][6]||null;o.composite||function adjustTrueTypeToUnicode(t,r,o){if(!t.isInternalFont&&!t.hasIncludedToUnicodeMap&&!t.hasEncoding&&!(t.toUnicode instanceof vo)&&r&&0!==o.length&&t.defaultEncoding!==Si){var c,l=fonts_createForOfIteratorHelper(o);try{for(l.s();!(c=l.n()).done;)if(!isWinNameRecord(c.value))return}catch(t){l.e(t)}finally{l.f()}var u=Si,h=[],d=Yi();for(var g in u){var y=u[g];if(""!==y){var m=d[y];void 0!==m&&(h[g]=String.fromCharCode(m))}}h.length>0&&t.toUnicode.amend(h)}}(o,this.isSymbolicFont,Ie)}else d.name={tag:"name",data:createNameTable(this.name)};var Te=new Ro(h.version);for(var Fe in d)Te.addTable(Fe,d[Fe].data);return Te.toArray()}},{key:"convert",value:function convert(t,o,c){c.fixedPitch=!1;c.builtInEncoding&&function adjustType1ToUnicode(t,r){if(!t.isInternalFont&&!(t.hasIncludedToUnicodeMap||r===t.defaultEncoding||t.toUnicode instanceof vo)){var o=[],c=Yi();for(var l in r)if(!t.hasEncoding||!t.baseEncodingName&&void 0===t.differences[l]){var u=getUnicodeForGlyph(r[l],c);-1!==u&&(o[l]=String.fromCharCode(u))}o.length>0&&t.toUnicode.amend(o)}}(c,c.builtInEncoding);var l=1;o instanceof bo&&(l=o.numGlyphs-1);var u=o.getGlyphMapping(c),h=null,d=u,g=null;if(!c.cssFontInfo){h=adjustMapping(u,o.hasGlyphId.bind(o),l,this.toUnicode);this.toFontChar=h.toFontChar;d=h.charCodeToGlyphId;g=h.toUnicodeExtraMap}var y=o.numGlyphs;function getCharCodes(t,r){var o=null;for(var c in t)r===t[c]&&(o||(o=[])).push(0|c);return o}function createCharCode(t,r){for(var o in t)if(r===t[o])return 0|o;h.charCodeToGlyphId[h.nextAvailableFontCharCode]=r;return h.nextAvailableFontCharCode++}var m=o.seacs;if(h&&null!=m&&m.length){var v=c.fontMatrix||r,_=o.getCharset(),w=Object.create(null);for(var k in m){var x=m[k|=0],S=xi[x[2]],C=xi[x[3]],O=_.indexOf(S),T=_.indexOf(C);if(!(O<0||T<0)){var E={x:x[0]*v[0]+x[1]*v[2]+v[4],y:x[0]*v[1]+x[1]*v[3]+v[5]},j=getCharCodes(u,k);if(j){var R,M=fonts_createForOfIteratorHelper(j);try{for(M.s();!(R=M.n()).done;){var L=R.value,D=h.charCodeToGlyphId,N=createCharCode(D,O),U=createCharCode(D,T);w[L]={baseFontCharCode:N,accentFontCharCode:U,accentOffset:E}}}catch(t){M.e(t)}finally{M.f()}}}}c.seacMap=w}var G=1/(c.fontMatrix||r)[0],H=new Ro("OTTO");H.addTable("CFF ",o.data);H.addTable("OS/2",createOS2Table(c,d));H.addTable("cmap",createCmapTable(d,g,y));H.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(G)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+safeString16(c.descent)+"ÿ"+safeString16(c.ascent)+string16(c.italicAngle?2:0)+"\0\0\0\0\0\0\0");H.addTable("hhea","\0\0\0"+safeString16(c.ascent)+safeString16(c.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+safeString16(c.capHeight)+safeString16(Math.tan(c.italicAngle)*c.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+string16(y));H.addTable("hmtx",function fontFieldsHmtx(){for(var t=o.charstrings,r=o.cff?o.cff.widths:null,c="\0\0\0\0",l=1,u=y;l<u;l++){var h=0;if(t){var d=t[l-1];h="width"in d?d.width:0}else r&&(h=Math.ceil(r[l]||0));c+=string16(h)+string16(0)}return c}());H.addTable("maxp","\0\0P\0"+string16(y));H.addTable("name",createNameTable(t));H.addTable("post",createPostTable(c));return H.toArray()}},{key:"spaceWidth",get:function get(){for(var t,r=0,o=["space","minus","one","i","I"];r<o.length;r++){var c=o[r];if(c in this.widths){t=this.widths[c];break}var l=Yi()[c],u=0;this.composite&&this.cMap.contains(l)&&"string"==typeof(u=this.cMap.lookup(l))&&(u=convertCidString(l,u));!u&&this.toUnicode&&(u=this.toUnicode.charCodeOf(l));u<=0&&(u=l);if(t=this.widths[u])break}return shadow(this,"spaceWidth",t||this.defaultWidth)}},{key:"_charToGlyph",value:function _charToGlyph(t){var r,o,c,l,u,h,d,g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],y=this._glyphCache[t];if((null===(r=y)||void 0===r?void 0:r.isSpace)===g)return y;var m=t;null!==(o=this.cMap)&&void 0!==o&&o.contains(t)&&"string"==typeof(m=this.cMap.lookup(t))&&(m=convertCidString(t,m));"number"!=typeof(h=this.widths[m])&&(h=this.defaultWidth);var v=null===(c=this.vmetrics)||void 0===c?void 0:c[m],_=this.toUnicode.get(t)||t;"number"==typeof _&&(_=String.fromCharCode(_));var w=void 0!==this.toFontChar[t];u=this.toFontChar[t]||t;if(this.missingFile){var k=this.differences[t]||this.defaultEncoding[t];".notdef"!==k&&""!==k||"Type1"!==this.type||(u=32);u=function mapSpecialUnicodeValues(t){return t>=65520&&t<=65535?0:t>=62976&&t<=63743?$i()[t]||t:173===t?45:t}(u)}this.isType3Font&&(d=u);var x=null;if(null!==(l=this.seacMap)&&void 0!==l&&l[t]){w=!0;var S=this.seacMap[t];u=S.baseFontCharCode;x={fontChar:String.fromCodePoint(S.accentFontCharCode),offset:S.accentOffset}}var C="";"number"==typeof u&&(u<=1114111?C=String.fromCodePoint(u):warn("charToGlyph - invalid fontCharCode: ".concat(u)));y=new Qo(t,C,_,x,h,v,d,g,w);return this._glyphCache[t]=y}},{key:"charsToGlyphs",value:function charsToGlyphs(t){var r=this._charsCache[t];if(r)return r;r=[];if(this.cMap)for(var o=Object.create(null),c=t.length,l=0;l<c;){this.cMap.readCharCode(t,l,o);var u=o.charcode,h=o.length;l+=h;var d=this._charToGlyph(u,1===h&&32===t.charCodeAt(l-1));r.push(d)}else for(var g=0,y=t.length;g<y;++g){var m=t.charCodeAt(g),v=this._charToGlyph(m,32===m);r.push(v)}return this._charsCache[t]=r}},{key:"getCharPositions",value:function getCharPositions(t){var r=[];if(this.cMap)for(var o=Object.create(null),c=0;c<t.length;){this.cMap.readCharCode(t,c,o);var l=o.length;r.push([c,c+l]);c+=l}else for(var u=0,h=t.length;u<h;++u)r.push([u,u+1]);return r}},{key:"glyphCacheValues",get:function get(){return Object.values(this._glyphCache)}},{key:"encodeString",value:function encodeString(t){for(var r=this,o=[],c=[],l=function hasCurrentBufErrors(){return o.length%2==1},u=this.toUnicode instanceof vo?function(t){return r.toUnicode.charCodeOf(t)}:function(t){return r.toUnicode.charCodeOf(String.fromCodePoint(t))},h=0,d=t.length;h<d;h++){var g=t.codePointAt(h);g>55295&&(g<57344||g>65533)&&h++;if(this.toUnicode){var y=u(g);if(-1!==y){if(l()){o.push(c.join(""));c.length=0}for(var m=(this.cMap?this.cMap.getCharCodeLength(y):1)-1;m>=0;m--)c.push(String.fromCharCode(y>>8*m&255));continue}}if(!l()){o.push(c.join(""));c.length=0}c.push(String.fromCodePoint(g))}o.push(c.join(""));return o}}]);return Font}(),ts=function(){function ErrorFont(t){fonts_classCallCheck(this,ErrorFont);this.error=t;this.loadedName="g_font_error";this.missingFile=!0}fonts_createClass(ErrorFont,[{key:"charsToGlyphs",value:function charsToGlyphs(){return[]}},{key:"encodeString",value:function encodeString(t){return[t]}},{key:"exportData",value:function exportData(){return{error:this.error}}}]);return ErrorFont}();function pattern_slicedToArray(t,r){return function pattern_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function pattern_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||function pattern_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return pattern_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return pattern_arrayLikeToArray(t,r)}(t,r)||function pattern_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pattern_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function pattern_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&pattern_setPrototypeOf(t,r)}function pattern_setPrototypeOf(t,r){pattern_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return pattern_setPrototypeOf(t,r)}function pattern_createSuper(t){var r=function pattern_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=pattern_getPrototypeOf(t);if(r){var l=pattern_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return pattern_possibleConstructorReturn(this,o)}}function pattern_possibleConstructorReturn(t,r){if(r&&("object"===pattern_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function pattern_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function pattern_getPrototypeOf(t){pattern_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return pattern_getPrototypeOf(t)}function pattern_defineProperty(t,r,o){(r=pattern_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function pattern_typeof(t){return pattern_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pattern_typeof(t)}function pattern_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function pattern_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,pattern_toPropertyKey(c.key),c)}}function pattern_createClass(t,r,o){r&&pattern_defineProperties(t.prototype,r);o&&pattern_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function pattern_toPropertyKey(t){var r=function pattern_toPrimitive(t,r){if("object"!=pattern_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=pattern_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==pattern_typeof(r)?r:String(r)}var rs=2,ns=3,as=4,is=5,os=6,ss=7,cs=function(){function Pattern(){pattern_classCallCheck(this,Pattern);unreachable("Cannot initialize Pattern.")}pattern_createClass(Pattern,null,[{key:"parseShading",value:function parseShading(t,r,o,c,l){var u=t instanceof Xr?t.dict:t,h=u.get("ShadingType");try{switch(h){case rs:case ns:return new us(u,r,o,c,l);case as:case is:case os:case ss:return new ds(t,r,o,c,l);default:throw new Sr("Unsupported ShadingType: "+h)}}catch(t){if(t instanceof Yr)throw t;warn(t);return new gs}}}]);return Pattern}(),ls=function(){function BaseShading(){pattern_classCallCheck(this,BaseShading);this.constructor===BaseShading&&unreachable("Cannot initialize BaseShading.")}pattern_createClass(BaseShading,[{key:"getIR",value:function getIR(){unreachable("Abstract method `getIR` called.")}}]);return BaseShading}();pattern_defineProperty(ls,"SMALL_NUMBER",1e-6);var us=function(t){pattern_inherits(RadialAxialShading,t);var r=pattern_createSuper(RadialAxialShading);function RadialAxialShading(t,o,c,l,u){var h;pattern_classCallCheck(this,RadialAxialShading);(h=r.call(this)).coordsArr=t.getArray("Coords");h.shadingType=t.get("ShadingType");var d=ln.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:o,resources:c,pdfFunctionFactory:l,localColorSpaceCache:u}),g=t.getArray("BBox");h.bbox=Array.isArray(g)&&4===g.length?Or.normalizeRect(g):null;var y=0,m=1;if(t.has("Domain")){var v=t.getArray("Domain");y=v[0];m=v[1]}var _=!1,w=!1;if(t.has("Extend")){var k=t.getArray("Extend");_=k[0];w=k[1]}if(!(h.shadingType!==ns||_&&w)){var x=pattern_slicedToArray(h.coordsArr,6),S=x[0],C=x[1],O=x[2],T=x[3],E=x[4],j=x[5],R=Math.hypot(S-T,C-E);O<=j+R&&j<=O+R&&warn("Unsupported radial gradient.")}h.extendStart=_;h.extendEnd=w;var M=t.getRaw("Function"),L=l.createFromArray(M),D=(m-y)/840,N=h.colorStops=[];if(y>=m||D<=0){info("Bad shading domain.");return pattern_possibleConstructorReturn(h)}var U,G=new Float32Array(d.numComps),H=new Float32Array(1),q=0;H[0]=y;L(H,0,G,0);var z=d.getRgb(G,0),W=Or.makeHexColor(z[0],z[1],z[2]);N.push([0,W]);var V=1;H[0]=y+D;L(H,0,G,0);for(var X=d.getRgb(G,0),K=X[0]-z[0]+1,Y=X[1]-z[1]+1,J=X[2]-z[2]+1,$=X[0]-z[0]-1,Z=X[1]-z[1]-1,Q=X[2]-z[2]-1,ee=2;ee<840;ee++){H[0]=y+ee*D;L(H,0,G,0);U=d.getRgb(G,0);var te=ee-q;K=Math.min(K,(U[0]-z[0]+1)/te);Y=Math.min(Y,(U[1]-z[1]+1)/te);J=Math.min(J,(U[2]-z[2]+1)/te);$=Math.max($,(U[0]-z[0]-1)/te);Z=Math.max(Z,(U[1]-z[1]-1)/te);Q=Math.max(Q,(U[2]-z[2]-1)/te);if(!($<=K&&Z<=Y&&Q<=J)){var re=Or.makeHexColor(X[0],X[1],X[2]);N.push([V/840,re]);K=U[0]-X[0]+1;Y=U[1]-X[1]+1;J=U[2]-X[2]+1;$=U[0]-X[0]-1;Z=U[1]-X[1]-1;Q=U[2]-X[2]-1;q=V;z=X}V=ee;X=U}var ne=Or.makeHexColor(X[0],X[1],X[2]);N.push([1,ne]);var ae="transparent";if(t.has("Background")){U=d.getRgb(t.get("Background"),0);ae=Or.makeHexColor(U[0],U[1],U[2])}if(!_){N.unshift([0,ae]);N[1][0]+=ls.SMALL_NUMBER}if(!w){N.at(-1)[0]-=ls.SMALL_NUMBER;N.push([1,ae])}h.colorStops=N;return h}pattern_createClass(RadialAxialShading,[{key:"getIR",value:function getIR(){var t,r,o,c,l,u=this.coordsArr,h=this.shadingType;if(h===rs){r=[u[0],u[1]];o=[u[2],u[3]];c=null;l=null;t="axial"}else if(h===ns){r=[u[0],u[1]];o=[u[3],u[4]];c=u[2];l=u[5];t="radial"}else unreachable("getPattern type unknown: ".concat(h));return["RadialAxial",t,this.bbox,this.colorStops,r,o,c,l]}}]);return RadialAxialShading}(ls),fs=function(){function MeshStreamReader(t,r){pattern_classCallCheck(this,MeshStreamReader);this.stream=t;this.context=r;this.buffer=0;this.bufferLength=0;var o=r.numComps;this.tmpCompsBuf=new Float32Array(o);var c=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(c):this.tmpCompsBuf}pattern_createClass(MeshStreamReader,[{key:"hasData",get:function get(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var t=this.stream.getByte();if(t<0)return!1;this.buffer=t;this.bufferLength=8;return!0}},{key:"readBits",value:function readBits(t){var r=this.buffer,o=this.bufferLength;if(32===t){if(0===o)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;r=r<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var c=this.stream.getByte();this.buffer=c&(1<<o)-1;return(r<<8-o|(255&c)>>o)>>>0}if(8===t&&0===o)return this.stream.getByte();for(;o<t;){r=r<<8|this.stream.getByte();o+=8}o-=t;this.bufferLength=o;this.buffer=r&(1<<o)-1;return r>>o}},{key:"align",value:function align(){this.buffer=0;this.bufferLength=0}},{key:"readFlag",value:function readFlag(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function readCoordinate(){var t=this.context.bitsPerCoordinate,r=this.readBits(t),o=this.readBits(t),c=this.context.decode,l=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[r*l*(c[1]-c[0])+c[0],o*l*(c[3]-c[2])+c[2]]}},{key:"readComponents",value:function readComponents(){for(var t=this.context.numComps,r=this.context.bitsPerComponent,o=r<32?1/((1<<r)-1):2.3283064365386963e-10,c=this.context.decode,l=this.tmpCompsBuf,u=0,h=4;u<t;u++,h+=2){var d=this.readBits(r);l[u]=d*o*(c[h+1]-c[h])+c[h]}var g=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(l,0,g,0);return this.context.colorSpace.getRgb(g,0)}}]);return MeshStreamReader}(),hs=Object.create(null);function getB(t){var r;return(r=hs)[t]||(r[t]=function buildB(t){for(var r=[],o=0;o<=t;o++){var c=o/t,l=1-c;r.push(new Float32Array([Math.pow(l,3),3*c*Math.pow(l,2),3*Math.pow(c,2)*l,Math.pow(c,3)]))}return r}(t))}var ds=function(t){pattern_inherits(MeshShading,t);var r=pattern_createSuper(MeshShading);function MeshShading(t,o,c,l,u){var h;pattern_classCallCheck(this,MeshShading);h=r.call(this);if(!(t instanceof Xr))throw new Sr("Mesh data is not a stream");var d=t.dict;h.shadingType=d.get("ShadingType");var g=d.getArray("BBox");h.bbox=Array.isArray(g)&&4===g.length?Or.normalizeRect(g):null;var y=ln.parse({cs:d.getRaw("CS")||d.getRaw("ColorSpace"),xref:o,resources:c,pdfFunctionFactory:l,localColorSpaceCache:u});h.background=d.has("Background")?y.getRgb(d.get("Background"),0):null;var m=d.getRaw("Function"),v=m?l.createFromArray(m):null;h.coords=[];h.colors=[];h.figures=[];var _={bitsPerCoordinate:d.get("BitsPerCoordinate"),bitsPerComponent:d.get("BitsPerComponent"),bitsPerFlag:d.get("BitsPerFlag"),decode:d.getArray("Decode"),colorFn:v,colorSpace:y,numComps:v?1:y.numComps},w=new fs(t,_),k=!1;switch(h.shadingType){case as:h._decodeType4Shading(w);break;case is:var x=0|d.get("VerticesPerRow");if(x<2)throw new Sr("Invalid VerticesPerRow");h._decodeType5Shading(w,x);break;case os:h._decodeType6Shading(w);k=!0;break;case ss:h._decodeType7Shading(w);k=!0;break;default:unreachable("Unsupported mesh type.")}if(k){h._updateBounds();for(var S=0,C=h.figures.length;S<C;S++)h._buildFigureFromPatch(S)}h._updateBounds();h._packData();return h}pattern_createClass(MeshShading,[{key:"_decodeType4Shading",value:function _decodeType4Shading(t){for(var r=this.coords,o=this.colors,c=[],l=[],u=0;t.hasData;){var h=t.readFlag(),d=t.readCoordinate(),g=t.readComponents();if(0===u){if(!(0<=h&&h<=2))throw new Sr("Unknown type4 flag");switch(h){case 0:u=3;break;case 1:l.push(l.at(-2),l.at(-1));u=1;break;case 2:l.push(l.at(-3),l.at(-1));u=1}c.push(h)}l.push(r.length);r.push(d);o.push(g);u--;t.align()}this.figures.push({type:"triangles",coords:new Int32Array(l),colors:new Int32Array(l)})}},{key:"_decodeType5Shading",value:function _decodeType5Shading(t,r){for(var o=this.coords,c=this.colors,l=[];t.hasData;){var u=t.readCoordinate(),h=t.readComponents();l.push(o.length);o.push(u);c.push(h)}this.figures.push({type:"lattice",coords:new Int32Array(l),colors:new Int32Array(l),verticesPerRow:r})}},{key:"_decodeType6Shading",value:function _decodeType6Shading(t){for(var r=this.coords,o=this.colors,c=new Int32Array(16),l=new Int32Array(4);t.hasData;){var u=t.readFlag();if(!(0<=u&&u<=3))throw new Sr("Unknown type6 flag");for(var h=r.length,d=0,g=0!==u?8:12;d<g;d++)r.push(t.readCoordinate());for(var y=o.length,m=0,v=0!==u?2:4;m<v;m++)o.push(t.readComponents());var _=void 0,w=void 0,k=void 0,x=void 0;switch(u){case 0:c[12]=h+3;c[13]=h+4;c[14]=h+5;c[15]=h+6;c[8]=h+2;c[11]=h+7;c[4]=h+1;c[7]=h+8;c[0]=h;c[1]=h+11;c[2]=h+10;c[3]=h+9;l[2]=y+1;l[3]=y+2;l[0]=y;l[1]=y+3;break;case 1:_=c[12];w=c[13];k=c[14];x=c[15];c[12]=x;c[13]=h+0;c[14]=h+1;c[15]=h+2;c[8]=k;c[11]=h+3;c[4]=w;c[7]=h+4;c[0]=_;c[1]=h+7;c[2]=h+6;c[3]=h+5;_=l[2];w=l[3];l[2]=w;l[3]=y;l[0]=_;l[1]=y+1;break;case 2:_=c[15];w=c[11];c[12]=c[3];c[13]=h+0;c[14]=h+1;c[15]=h+2;c[8]=c[7];c[11]=h+3;c[4]=w;c[7]=h+4;c[0]=_;c[1]=h+7;c[2]=h+6;c[3]=h+5;_=l[3];l[2]=l[1];l[3]=y;l[0]=_;l[1]=y+1;break;case 3:c[12]=c[0];c[13]=h+0;c[14]=h+1;c[15]=h+2;c[8]=c[1];c[11]=h+3;c[4]=c[2];c[7]=h+4;c[0]=c[3];c[1]=h+7;c[2]=h+6;c[3]=h+5;l[2]=l[0];l[3]=y;l[0]=l[1];l[1]=y+1}c[5]=r.length;r.push([(-4*r[c[0]][0]-r[c[15]][0]+6*(r[c[4]][0]+r[c[1]][0])-2*(r[c[12]][0]+r[c[3]][0])+3*(r[c[13]][0]+r[c[7]][0]))/9,(-4*r[c[0]][1]-r[c[15]][1]+6*(r[c[4]][1]+r[c[1]][1])-2*(r[c[12]][1]+r[c[3]][1])+3*(r[c[13]][1]+r[c[7]][1]))/9]);c[6]=r.length;r.push([(-4*r[c[3]][0]-r[c[12]][0]+6*(r[c[2]][0]+r[c[7]][0])-2*(r[c[0]][0]+r[c[15]][0])+3*(r[c[4]][0]+r[c[14]][0]))/9,(-4*r[c[3]][1]-r[c[12]][1]+6*(r[c[2]][1]+r[c[7]][1])-2*(r[c[0]][1]+r[c[15]][1])+3*(r[c[4]][1]+r[c[14]][1]))/9]);c[9]=r.length;r.push([(-4*r[c[12]][0]-r[c[3]][0]+6*(r[c[8]][0]+r[c[13]][0])-2*(r[c[0]][0]+r[c[15]][0])+3*(r[c[11]][0]+r[c[1]][0]))/9,(-4*r[c[12]][1]-r[c[3]][1]+6*(r[c[8]][1]+r[c[13]][1])-2*(r[c[0]][1]+r[c[15]][1])+3*(r[c[11]][1]+r[c[1]][1]))/9]);c[10]=r.length;r.push([(-4*r[c[15]][0]-r[c[0]][0]+6*(r[c[11]][0]+r[c[14]][0])-2*(r[c[12]][0]+r[c[3]][0])+3*(r[c[2]][0]+r[c[8]][0]))/9,(-4*r[c[15]][1]-r[c[0]][1]+6*(r[c[11]][1]+r[c[14]][1])-2*(r[c[12]][1]+r[c[3]][1])+3*(r[c[2]][1]+r[c[8]][1]))/9]);this.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(l)})}}},{key:"_decodeType7Shading",value:function _decodeType7Shading(t){for(var r=this.coords,o=this.colors,c=new Int32Array(16),l=new Int32Array(4);t.hasData;){var u=t.readFlag();if(!(0<=u&&u<=3))throw new Sr("Unknown type7 flag");for(var h=r.length,d=0,g=0!==u?12:16;d<g;d++)r.push(t.readCoordinate());for(var y=o.length,m=0,v=0!==u?2:4;m<v;m++)o.push(t.readComponents());var _=void 0,w=void 0,k=void 0,x=void 0;switch(u){case 0:c[12]=h+3;c[13]=h+4;c[14]=h+5;c[15]=h+6;c[8]=h+2;c[9]=h+13;c[10]=h+14;c[11]=h+7;c[4]=h+1;c[5]=h+12;c[6]=h+15;c[7]=h+8;c[0]=h;c[1]=h+11;c[2]=h+10;c[3]=h+9;l[2]=y+1;l[3]=y+2;l[0]=y;l[1]=y+3;break;case 1:_=c[12];w=c[13];k=c[14];x=c[15];c[12]=x;c[13]=h+0;c[14]=h+1;c[15]=h+2;c[8]=k;c[9]=h+9;c[10]=h+10;c[11]=h+3;c[4]=w;c[5]=h+8;c[6]=h+11;c[7]=h+4;c[0]=_;c[1]=h+7;c[2]=h+6;c[3]=h+5;_=l[2];w=l[3];l[2]=w;l[3]=y;l[0]=_;l[1]=y+1;break;case 2:_=c[15];w=c[11];c[12]=c[3];c[13]=h+0;c[14]=h+1;c[15]=h+2;c[8]=c[7];c[9]=h+9;c[10]=h+10;c[11]=h+3;c[4]=w;c[5]=h+8;c[6]=h+11;c[7]=h+4;c[0]=_;c[1]=h+7;c[2]=h+6;c[3]=h+5;_=l[3];l[2]=l[1];l[3]=y;l[0]=_;l[1]=y+1;break;case 3:c[12]=c[0];c[13]=h+0;c[14]=h+1;c[15]=h+2;c[8]=c[1];c[9]=h+9;c[10]=h+10;c[11]=h+3;c[4]=c[2];c[5]=h+8;c[6]=h+11;c[7]=h+4;c[0]=c[3];c[1]=h+7;c[2]=h+6;c[3]=h+5;l[2]=l[0];l[3]=y;l[0]=l[1];l[1]=y+1}this.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(l)})}}},{key:"_buildFigureFromPatch",value:function _buildFigureFromPatch(t){var r=this.figures[t];assert("patch"===r.type,"Unexpected patch mesh figure");var o=this.coords,c=this.colors,l=r.coords,u=r.colors,h=Math.min(o[l[0]][0],o[l[3]][0],o[l[12]][0],o[l[15]][0]),d=Math.min(o[l[0]][1],o[l[3]][1],o[l[12]][1],o[l[15]][1]),g=Math.max(o[l[0]][0],o[l[3]][0],o[l[12]][0],o[l[15]][0]),y=Math.max(o[l[0]][1],o[l[3]][1],o[l[12]][1],o[l[15]][1]),m=Math.ceil((g-h)*MeshShading.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));m=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,m));var v=Math.ceil((y-d)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));v=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,v));for(var _=m+1,w=new Int32Array((v+1)*_),k=new Int32Array((v+1)*_),x=0,S=new Uint8Array(3),C=new Uint8Array(3),O=c[u[0]],T=c[u[1]],E=c[u[2]],j=c[u[3]],R=getB(v),M=getB(m),L=0;L<=v;L++){S[0]=(O[0]*(v-L)+E[0]*L)/v|0;S[1]=(O[1]*(v-L)+E[1]*L)/v|0;S[2]=(O[2]*(v-L)+E[2]*L)/v|0;C[0]=(T[0]*(v-L)+j[0]*L)/v|0;C[1]=(T[1]*(v-L)+j[1]*L)/v|0;C[2]=(T[2]*(v-L)+j[2]*L)/v|0;for(var D=0;D<=m;D++,x++)if(0!==L&&L!==v||0!==D&&D!==m){for(var N=0,U=0,G=0,H=0;H<=3;H++)for(var q=0;q<=3;q++,G++){var z=R[L][H]*M[D][q];N+=o[l[G]][0]*z;U+=o[l[G]][1]*z}w[x]=o.length;o.push([N,U]);k[x]=c.length;var W=new Uint8Array(3);W[0]=(S[0]*(m-D)+C[0]*D)/m|0;W[1]=(S[1]*(m-D)+C[1]*D)/m|0;W[2]=(S[2]*(m-D)+C[2]*D)/m|0;c.push(W)}}w[0]=l[0];k[0]=u[0];w[m]=l[3];k[m]=u[1];w[_*v]=l[12];k[_*v]=u[2];w[_*v+m]=l[15];k[_*v+m]=u[3];this.figures[t]={type:"lattice",coords:w,colors:k,verticesPerRow:_}}},{key:"_updateBounds",value:function _updateBounds(){for(var t=this.coords[0][0],r=this.coords[0][1],o=t,c=r,l=1,u=this.coords.length;l<u;l++){var h=this.coords[l][0],d=this.coords[l][1];t=t>h?h:t;r=r>d?d:r;o=o<h?h:o;c=c<d?d:c}this.bounds=[t,r,o,c]}},{key:"_packData",value:function _packData(){var t,r,o,c,l=this.coords,u=new Float32Array(2*l.length);for(t=0,o=0,r=l.length;t<r;t++){var h=l[t];u[o++]=h[0];u[o++]=h[1]}this.coords=u;var d=this.colors,g=new Uint8Array(3*d.length);for(t=0,o=0,r=d.length;t<r;t++){var y=d[t];g[o++]=y[0];g[o++]=y[1];g[o++]=y[2]}this.colors=g;var m=this.figures;for(t=0,r=m.length;t<r;t++){var v=m[t],_=v.coords,w=v.colors;for(o=0,c=_.length;o<c;o++){_[o]*=2;w[o]*=3}}}},{key:"getIR",value:function getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}]);return MeshShading}(ls);pattern_defineProperty(ds,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3);pattern_defineProperty(ds,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20);pattern_defineProperty(ds,"TRIANGLE_DENSITY",20);var gs=function(t){pattern_inherits(DummyShading,t);var r=pattern_createSuper(DummyShading);function DummyShading(){pattern_classCallCheck(this,DummyShading);return r.apply(this,arguments)}pattern_createClass(DummyShading,[{key:"getIR",value:function getIR(){return["Dummy"]}}]);return DummyShading}(ls);function getTilingPatternIR(t,r,o){var c=r.getArray("Matrix"),l=Or.normalizeRect(r.getArray("BBox")),u=r.get("XStep"),h=r.get("YStep"),d=r.get("PaintType"),g=r.get("TilingType");if(l[2]-l[0]==0||l[3]-l[1]==0)throw new Sr("Invalid getTilingPatternIR /BBox array: [".concat(l,"]."));return["TilingPattern",o,t,c,l,u,h,d,g]}var ys=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],ms={lineHeight:1.2207,lineGap:.2207},vs=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],bs={lineHeight:1.2207,lineGap:.2207},_s=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],ws={lineHeight:1.2207,lineGap:.2207},ks=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],xs={lineHeight:1.2207,lineGap:.2207},Ss=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],Cs={lineHeight:1.2,lineGap:.2},As=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],Os={lineHeight:1.35,lineGap:.2},Is=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],Ts={lineHeight:1.35,lineGap:.2},Fs=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Es={lineHeight:1.2,lineGap:.2},js=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Rs=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ms=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Ls=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Bs=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Ds=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ns=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Us=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Gs=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Hs={lineHeight:1.2,lineGap:.2},qs=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],zs={lineHeight:1.2,lineGap:.2},Ws=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Vs={lineHeight:1.2,lineGap:.2},Xs=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Ks={lineHeight:1.2,lineGap:.2},Ys=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Js={lineHeight:1.33008,lineGap:0},$s=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Zs={lineHeight:1.33008,lineGap:0},Qs=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],ec={lineHeight:1.33008,lineGap:0},tc=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],rc={lineHeight:1.33008,lineGap:0};function xfa_fonts_slicedToArray(t,r){return function xfa_fonts_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function xfa_fonts_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||xfa_fonts_unsupportedIterableToArray(t,r)||function xfa_fonts_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xfa_fonts_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return xfa_fonts_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?xfa_fonts_arrayLikeToArray(t,r):void 0}}function xfa_fonts_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var nc=getLookupTableFactory((function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:Xs,baseWidths:Ns,baseMapping:Us,metrics:Ks};t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:Gs,baseWidths:js,baseMapping:Rs,metrics:Hs};t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:Ws,baseWidths:Bs,baseMapping:Ds,metrics:Vs};t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:qs,baseWidths:Ms,baseMapping:Ls,metrics:zs};t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:Ns,baseMapping:Us};t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:js,baseMapping:Rs};t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:Bs,baseMapping:Ds};t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:Ms,baseMapping:Ls};t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:ks,baseWidths:Ns,baseMapping:Us,metrics:xs};t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:ys,baseWidths:js,baseMapping:Rs,metrics:ms};t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:_s,baseWidths:Bs,baseMapping:Ds,metrics:ws};t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:vs,baseWidths:Ms,baseMapping:Ls,metrics:bs};t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:tc,baseWidths:Ns,baseMapping:Us,metrics:rc};t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:Ys,baseWidths:js,baseMapping:Rs,metrics:Js};t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:Qs,baseWidths:Bs,baseMapping:Ds,metrics:ec};t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:$s,baseWidths:Ms,baseMapping:Ls,metrics:Zs};t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:Fs,baseWidths:Ns,baseMapping:Us,metrics:Es};t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:Ss,baseWidths:js,baseMapping:Rs,metrics:Cs};t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:Is,baseWidths:Bs,baseMapping:Ds,metrics:Ts};t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:As,baseWidths:Ms,baseMapping:Ls,metrics:Os}}));function getXfaFontName(t){var r=normalizeFontName(t);return nc()[r]}function getXfaFontWidths(t){var r=getXfaFontName(t);if(!r)return null;var o,c,l=r.baseWidths,u=r.baseMapping,h=r.factors,d=h?l.map((function(t,r){return t*h[r]})):l,g=-2,y=[],m=function xfa_fonts_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=xfa_fonts_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(u.map((function(t,r){return[t,r]})).sort((function(t,r){return xfa_fonts_slicedToArray(t,1)[0]-xfa_fonts_slicedToArray(r,1)[0]})));try{for(m.s();!(c=m.n()).done;){var v=xfa_fonts_slicedToArray(c.value,2),_=v[0],w=v[1];if(-1!==_)if(_===g+1){o.push(d[w]);g+=1}else{g=_;o=[d[w]];y.push(_,o)}}}catch(t){m.e(t)}finally{m.f()}return y}function getXfaFontDict(t){var r=getXfaFontWidths(t),o=new qr(null);o.set("BaseFont",Ur.get(t));o.set("Type",Ur.get("Font"));o.set("Subtype",Ur.get("CIDFontType2"));o.set("Encoding",Ur.get("Identity-H"));o.set("CIDToGIDMap",Ur.get("Identity"));o.set("W",r);o.set("FirstChar",r[0]);o.set("LastChar",r.at(-2)+r.at(-1).length-1);var c=new qr(null);o.set("FontDescriptor",c);var l=new qr(null);l.set("Ordering","Identity");l.set("Registry","Adobe");l.set("Supplement",0);o.set("CIDSystemInfo",l);return o}__webpack_require__(8957),__webpack_require__(2466);function ps_parser_typeof(t){return ps_parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ps_parser_typeof(t)}function ps_parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function ps_parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,ps_parser_toPropertyKey(c.key),c)}}function ps_parser_createClass(t,r,o){r&&ps_parser_defineProperties(t.prototype,r);o&&ps_parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function ps_parser_toPropertyKey(t){var r=function ps_parser_toPrimitive(t,r){if("object"!=ps_parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=ps_parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ps_parser_typeof(r)?r:String(r)}var ac=function(){function PostScriptParser(t){ps_parser_classCallCheck(this,PostScriptParser);this.lexer=t;this.operators=[];this.token=null;this.prev=null}ps_parser_createClass(PostScriptParser,[{key:"nextToken",value:function nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}},{key:"accept",value:function accept(t){if(this.token.type===t){this.nextToken();return!0}return!1}},{key:"expect",value:function expect(t){if(this.accept(t))return!0;throw new Sr("Unexpected symbol: found ".concat(this.token.type," expected ").concat(t,"."))}},{key:"parse",value:function parse(){this.nextToken();this.expect(ic.LBRACE);this.parseBlock();this.expect(ic.RBRACE);return this.operators}},{key:"parseBlock",value:function parseBlock(){for(;;)if(this.accept(ic.NUMBER))this.operators.push(this.prev.value);else if(this.accept(ic.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(ic.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function parseCondition(){var t=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(ic.RBRACE);if(this.accept(ic.IF)){this.operators[t]=this.operators.length;this.operators[t+1]="jz"}else{if(!this.accept(ic.LBRACE))throw new Sr("PS Function: error parsing conditional.");var r=this.operators.length;this.operators.push(null,null);var o=this.operators.length;this.parseBlock();this.expect(ic.RBRACE);this.expect(ic.IFELSE);this.operators[r]=this.operators.length;this.operators[r+1]="j";this.operators[t]=o;this.operators[t+1]="jz"}}}]);return PostScriptParser}(),ic={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},oc=function(){function PostScriptToken(t,r){ps_parser_classCallCheck(this,PostScriptToken);this.type=t;this.value=r}ps_parser_createClass(PostScriptToken,null,[{key:"opCache",get:function get(){return shadow(this,"opCache",Object.create(null))}},{key:"getOperator",value:function getOperator(t){var r;return(r=PostScriptToken.opCache)[t]||(r[t]=new PostScriptToken(ic.OPERATOR,t))}},{key:"LBRACE",get:function get(){return shadow(this,"LBRACE",new PostScriptToken(ic.LBRACE,"{"))}},{key:"RBRACE",get:function get(){return shadow(this,"RBRACE",new PostScriptToken(ic.RBRACE,"}"))}},{key:"IF",get:function get(){return shadow(this,"IF",new PostScriptToken(ic.IF,"IF"))}},{key:"IFELSE",get:function get(){return shadow(this,"IFELSE",new PostScriptToken(ic.IFELSE,"IFELSE"))}}]);return PostScriptToken}(),sc=function(){function PostScriptLexer(t){ps_parser_classCallCheck(this,PostScriptLexer);this.stream=t;this.nextChar();this.strBuf=[]}ps_parser_createClass(PostScriptLexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function getToken(){for(var t=!1,r=this.currentChar;;){if(r<0)return Mr;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!isWhiteSpace(r))break;r=this.nextChar()}switch(0|r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new oc(ic.NUMBER,this.getNumber());case 123:this.nextChar();return oc.LBRACE;case 125:this.nextChar();return oc.RBRACE}var o=this.strBuf;o.length=0;o[0]=String.fromCharCode(r);for(;(r=this.nextChar())>=0&&(r>=65&&r<=90||r>=97&&r<=122);)o.push(String.fromCharCode(r));var c=o.join("");switch(c.toLowerCase()){case"if":return oc.IF;case"ifelse":return oc.IFELSE;default:return oc.getOperator(c)}}},{key:"getNumber",value:function getNumber(){var t=this.currentChar,r=this.strBuf;r.length=0;r[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=48&&t<=57||45===t||46===t);)r.push(String.fromCharCode(t));var o=parseFloat(r.join(""));if(isNaN(o))throw new Sr("Invalid floating point number: ".concat(o));return o}}]);return PostScriptLexer}();function image_utils_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function core_image_utils_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return core_image_utils_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return core_image_utils_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function core_image_utils_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function image_utils_defineProperty(t,r,o){(r=image_utils_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function image_utils_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&image_utils_setPrototypeOf(t,r)}function image_utils_setPrototypeOf(t,r){image_utils_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return image_utils_setPrototypeOf(t,r)}function image_utils_createSuper(t){var r=function image_utils_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=image_utils_getPrototypeOf(t);if(r){var l=image_utils_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function image_utils_possibleConstructorReturn(t,r){if(r&&("object"===image_utils_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function image_utils_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function image_utils_getPrototypeOf(t){image_utils_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return image_utils_getPrototypeOf(t)}function image_utils_typeof(t){return image_utils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},image_utils_typeof(t)}function image_utils_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function image_utils_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,image_utils_toPropertyKey(c.key),c)}}function image_utils_createClass(t,r,o){r&&image_utils_defineProperties(t.prototype,r);o&&image_utils_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function image_utils_toPropertyKey(t){var r=function image_utils_toPrimitive(t,r){if("object"!=image_utils_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=image_utils_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==image_utils_typeof(r)?r:String(r)}var cc=function(){function BaseLocalCache(t){image_utils_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&unreachable("Cannot initialize BaseLocalCache.");this._onlyRefs=!0===(null==t?void 0:t.onlyRefs);if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new Vr}image_utils_createClass(BaseLocalCache,[{key:"getByName",value:function getByName(t){this._onlyRefs&&unreachable("Should not call `getByName` method.");var r=this._nameRefMap.get(t);return r?this.getByRef(r):this._imageMap.get(t)||null}},{key:"getByRef",value:function getByRef(t){return this._imageCache.get(t)||null}},{key:"set",value:function set(t,r,o){unreachable("Abstract method `set` called.")}}]);return BaseLocalCache}(),lc=function(t){image_utils_inherits(LocalImageCache,t);var r=image_utils_createSuper(LocalImageCache);function LocalImageCache(){image_utils_classCallCheck(this,LocalImageCache);return r.apply(this,arguments)}image_utils_createClass(LocalImageCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof t)throw new Error('LocalImageCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalImageCache}(cc),uc=function(t){image_utils_inherits(LocalColorSpaceCache,t);var r=image_utils_createSuper(LocalColorSpaceCache);function LocalColorSpaceCache(){image_utils_classCallCheck(this,LocalColorSpaceCache);return r.apply(this,arguments)}image_utils_createClass(LocalColorSpaceCache,[{key:"set",value:function set(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof t&&!r)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(r){if(this._imageCache.has(r))return;null!==t&&this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalColorSpaceCache}(cc),fc=function(t){image_utils_inherits(LocalFunctionCache,t);var r=image_utils_createSuper(LocalFunctionCache);function LocalFunctionCache(t){image_utils_classCallCheck(this,LocalFunctionCache);return r.call(this,{onlyRefs:!0})}image_utils_createClass(LocalFunctionCache,[{key:"set",value:function set(){var t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return LocalFunctionCache}(cc),hc=function(t){image_utils_inherits(LocalGStateCache,t);var r=image_utils_createSuper(LocalGStateCache);function LocalGStateCache(){image_utils_classCallCheck(this,LocalGStateCache);return r.apply(this,arguments)}image_utils_createClass(LocalGStateCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof t)throw new Error('LocalGStateCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalGStateCache}(cc),pc=function(t){image_utils_inherits(LocalTilingPatternCache,t);var r=image_utils_createSuper(LocalTilingPatternCache);function LocalTilingPatternCache(t){image_utils_classCallCheck(this,LocalTilingPatternCache);return r.call(this,{onlyRefs:!0})}image_utils_createClass(LocalTilingPatternCache,[{key:"set",value:function set(){var t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return LocalTilingPatternCache}(cc),dc=function(t){image_utils_inherits(RegionalImageCache,t);var r=image_utils_createSuper(RegionalImageCache);function RegionalImageCache(t){image_utils_classCallCheck(this,RegionalImageCache);return r.call(this,{onlyRefs:!0})}image_utils_createClass(RegionalImageCache,[{key:"set",value:function set(){var t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return RegionalImageCache}(cc),gc=function(){function GlobalImageCache(){image_utils_classCallCheck(this,GlobalImageCache);this._refCache=new Vr;this._imageCache=new Vr}image_utils_createClass(GlobalImageCache,[{key:"_byteSize",get:function get(){var t,r=0,o=image_utils_createForOfIteratorHelper(this._imageCache);try{for(o.s();!(t=o.n()).done;){r+=t.value.byteSize}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"_cacheLimitReached",get:function get(){return!(this._imageCache.size<GlobalImageCache.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<GlobalImageCache.MAX_BYTE_SIZE)}},{key:"shouldCache",value:function shouldCache(t,r){var o=this._refCache.get(t);if(!o){o=new Set;this._refCache.put(t,o)}o.add(r);return!(o.size<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this._cacheLimitReached)}},{key:"addByteSize",value:function addByteSize(t,r){var o=this._imageCache.get(t);o&&(o.byteSize||(o.byteSize=r))}},{key:"getData",value:function getData(t,r){var o=this._refCache.get(t);if(!o)return null;if(o.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;var c=this._imageCache.get(t);if(!c)return null;o.add(r);return c}},{key:"setData",value:function setData(t,r){if(!this._refCache.has(t))throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');this._imageCache.has(t)||(this._cacheLimitReached?warn("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(t,r))}},{key:"clear",value:function clear(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear();this._imageCache.clear()}}]);return GlobalImageCache}();image_utils_defineProperty(gc,"NUM_PAGES_THRESHOLD",2);image_utils_defineProperty(gc,"MIN_IMAGES_TO_CACHE",10);image_utils_defineProperty(gc,"MAX_BYTE_SIZE",5e7);function function_toConsumableArray(t){return function function_arrayWithoutHoles(t){if(Array.isArray(t))return function_arrayLikeToArray(t)}(t)||function function_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function_unsupportedIterableToArray(t)||function function_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function function_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&function_setPrototypeOf(t,r)}function function_setPrototypeOf(t,r){function_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return function_setPrototypeOf(t,r)}function function_createSuper(t){var r=function function_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=function_getPrototypeOf(t);if(r){var l=function_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function function_possibleConstructorReturn(t,r){if(r&&("object"===function_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function function_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function function_getPrototypeOf(t){function_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return function_getPrototypeOf(t)}function function_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function function_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return function_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?function_arrayLikeToArray(t,r):void 0}}function function_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function function_typeof(t){return function_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},function_typeof(t)}function function_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function function_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,function_toPropertyKey(c.key),c)}}function function_createClass(t,r,o){r&&function_defineProperties(t.prototype,r);o&&function_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function function_toPropertyKey(t){var r=function function_toPrimitive(t,r){if("object"!=function_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=function_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==function_typeof(r)?r:String(r)}var yc=function(){function PDFFunctionFactory(t){var r=t.xref,o=t.isEvalSupported,c=void 0===o||o;function_classCallCheck(this,PDFFunctionFactory);this.xref=r;this.isEvalSupported=!1!==c}function_createClass(PDFFunctionFactory,[{key:"create",value:function create(t){var r=this.getCached(t);if(r)return r;var o=mc.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:t instanceof zr?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"createFromArray",value:function createFromArray(t){var r=this.getCached(t);if(r)return r;var o=mc.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:t instanceof zr?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"getCached",value:function getCached(t){var r;if(t instanceof zr)r=t;else if(t instanceof qr)r=t.objId;else if(t instanceof Xr){var o;r=null===(o=t.dict)||void 0===o?void 0:o.objId}if(r){var c=this._localFunctionCache.getByRef(r);if(c)return c}return null}},{key:"_cache",value:function _cache(t,r){if(!r)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var o;if(t instanceof zr)o=t;else if(t instanceof qr)o=t.objId;else if(t instanceof Xr){var c;o=null===(c=t.dict)||void 0===c?void 0:c.objId}o&&this._localFunctionCache.set(null,o,r)}},{key:"_localFunctionCache",get:function get(){return shadow(this,"_localFunctionCache",new fc)}}]);return PDFFunctionFactory}();function toNumberArray(t){if(!Array.isArray(t))return null;for(var r=t.length,o=0;o<r;o++)if("number"!=typeof t[o]){for(var c=new Array(r),l=0;l<r;l++)c[l]=+t[l];return c}return t}var mc=function(){function PDFFunction(){function_classCallCheck(this,PDFFunction)}function_createClass(PDFFunction,null,[{key:"getSampleArray",value:function getSampleArray(t,r,o,c){var l,u,h=1;for(l=0,u=t.length;l<u;l++)h*=t[l];h*=r;var d=new Array(h),g=0,y=0,m=1/(Math.pow(2,o)-1),v=c.getBytes((h*o+7)/8),_=0;for(l=0;l<h;l++){for(;g<o;){y<<=8;y|=v[_++];g+=8}g-=o;d[l]=(y>>g)*m;y&=(1<<g)-1}return d}},{key:"parse",value:function parse(t){var r=t.xref,o=t.isEvalSupported,c=t.fn,l=c.dict||c;switch(l.get("FunctionType")){case 0:return this.constructSampled({xref:r,isEvalSupported:o,fn:c,dict:l});case 1:break;case 2:return this.constructInterpolated({xref:r,isEvalSupported:o,dict:l});case 3:return this.constructStiched({xref:r,isEvalSupported:o,dict:l});case 4:return this.constructPostScript({xref:r,isEvalSupported:o,fn:c,dict:l})}throw new Sr("Unknown type of function")}},{key:"parseArray",value:function parseArray(t){var r=t.xref,o=t.isEvalSupported,c=t.fnObj;if(!Array.isArray(c))return this.parse({xref:r,isEvalSupported:o,fn:c});var l,u=[],h=function_createForOfIteratorHelper(c);try{for(h.s();!(l=h.n()).done;){var d=l.value;u.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(d)}))}}catch(t){h.e(t)}finally{h.f()}return function(t,r,o,c){for(var l=0,h=u.length;l<h;l++)u[l](t,r,o,c+l)}}},{key:"constructSampled",value:function constructSampled(t){t.xref,t.isEvalSupported;var r=t.fn,o=t.dict;function toMultiArray(t){for(var r=t.length,o=[],c=0,l=0;l<r;l+=2)o[c++]=[t[l],t[l+1]];return o}function interpolate(t,r,o,c,l){return c+(l-c)/(o-r)*(t-r)}var c=toNumberArray(o.getArray("Domain")),l=toNumberArray(o.getArray("Range"));if(!c||!l)throw new Sr("No domain or range");var u=c.length/2,h=l.length/2;c=toMultiArray(c);l=toMultiArray(l);var d=toNumberArray(o.getArray("Size")),g=o.get("BitsPerSample"),y=o.get("Order")||1;1!==y&&info("No support for cubic spline interpolation: "+y);var m=toNumberArray(o.getArray("Encode"));if(m)m=toMultiArray(m);else{m=[];for(var v=0;v<u;++v)m.push([0,d[v]-1])}var _=toNumberArray(o.getArray("Decode"));_=_?toMultiArray(_):l;var w=this.getSampleArray(d,h,g,r);return function constructSampledFn(t,r,o,g){var y,v,k=1<<u,x=new Float64Array(k),S=new Uint32Array(k);for(v=0;v<k;v++)x[v]=1;var C=h,O=1;for(y=0;y<u;++y){var T=c[y][0],E=c[y][1],j=interpolate(Math.min(Math.max(t[r+y],T),E),T,E,m[y][0],m[y][1]),R=d[y],M=(j=Math.min(Math.max(j,0),R-1))<R-1?Math.floor(j):j-1,L=M+1-j,D=j-M,N=M*C,U=N+C;for(v=0;v<k;v++)if(v&O){x[v]*=D;S[v]+=U}else{x[v]*=L;S[v]+=N}C*=R;O<<=1}for(v=0;v<h;++v){var G=0;for(y=0;y<k;y++)G+=w[S[y]+v]*x[y];G=interpolate(G,0,1,_[v][0],_[v][1]);o[g+v]=Math.min(Math.max(G,l[v][0]),l[v][1])}}}},{key:"constructInterpolated",value:function constructInterpolated(t){t.xref,t.isEvalSupported;for(var r=t.dict,o=toNumberArray(r.getArray("C0"))||[0],c=toNumberArray(r.getArray("C1"))||[1],l=r.get("N"),u=[],h=0,d=o.length;h<d;++h)u.push(c[h]-o[h]);var g=u.length;return function constructInterpolatedFn(t,r,c,h){for(var d=1===l?t[r]:Math.pow(t[r],l),y=0;y<g;++y)c[h+y]=o[y]+d*u[y]}}},{key:"constructStiched",value:function constructStiched(t){var r=t.xref,o=t.isEvalSupported,c=t.dict,l=toNumberArray(c.getArray("Domain"));if(!l)throw new Sr("No domain");if(1!==l.length/2)throw new Sr("Bad domain for stiched function");var u,h=[],d=function_createForOfIteratorHelper(c.get("Functions"));try{for(d.s();!(u=d.n()).done;){var g=u.value;h.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(g)}))}}catch(t){d.e(t)}finally{d.f()}var y=toNumberArray(c.getArray("Bounds")),m=toNumberArray(c.getArray("Encode")),v=new Float32Array(1);return function constructStichedFn(t,r,o,c){var u,d=function constructStichedFromIRClip(t,r,o){t>o?t=o:t<r&&(t=r);return t}(t[r],l[0],l[1]),g=y.length;for(u=0;u<g&&!(d<y[u]);++u);var _=l[0];u>0&&(_=y[u-1]);var w=l[1];u<y.length&&(w=y[u]);var k=m[2*u],x=m[2*u+1];v[0]=_===w?k:k+(d-_)*(x-k)/(w-_);h[u](v,0,o,c)}}},{key:"constructPostScript",value:function constructPostScript(t){t.xref;var r=t.isEvalSupported,o=t.fn,c=t.dict,l=toNumberArray(c.getArray("Domain")),u=toNumberArray(c.getArray("Range"));if(!l)throw new Sr("No domain.");if(!u)throw new Sr("No range.");var h=new sc(o),d=new ac(h).parse();if(r&&Ar.isEvalSupported){var g=(new Oc).compile(d,l,u);if(g)return new Function("src","srcOffset","dest","destOffset",g)}info("Unable to compile PS function");var y=u.length>>1,m=l.length>>1,v=new bc(d),_=Object.create(null),w=8192,k=new Float32Array(m);return function constructPostScriptFn(t,r,o,c){var l,h,d="",g=k;for(l=0;l<m;l++){h=t[r+l];g[l]=h;d+=h+"_"}var x=_[d];if(void 0===x){var S=new Float32Array(y),C=v.execute(g),O=C.length-y;for(l=0;l<y;l++){h=C[O+l];var T=u[2*l];(h<T||h>(T=u[2*l+1]))&&(h=T);S[l]=h}if(w>0){w--;_[d]=S}o.set(S,c)}else o.set(x,c)}}}]);return PDFFunction}();function isPDFFunction(t){var r;if(t instanceof qr)r=t;else{if(!(t instanceof Xr))return!1;r=t.dict}return r.has("FunctionType")}var vc=function(){function PostScriptStack(t){function_classCallCheck(this,PostScriptStack);this.stack=t?Array.from(t):[]}function_createClass(PostScriptStack,[{key:"push",value:function push(t){if(this.stack.length>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function copy(t){if(this.stack.length+t>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,o=r.length-t,c=t-1;c>=0;c--,o++)r.push(r[o])}},{key:"index",value:function index(t){this.push(this.stack[this.stack.length-t-1])}},{key:"roll",value:function roll(t,r){for(var o=this.stack,c=o.length-t,l=o.length-1,u=c+(r-Math.floor(r/t)*t),h=c,d=l;h<d;h++,d--){var g=o[h];o[h]=o[d];o[d]=g}for(var y=c,m=u-1;y<m;y++,m--){var v=o[y];o[y]=o[m];o[m]=v}for(var _=u,w=l;_<w;_++,w--){var k=o[_];o[_]=o[w];o[w]=k}}}]);return PostScriptStack}();!function function_defineProperty(t,r,o){(r=function_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}(vc,"MAX_STACK_SIZE",100);var bc=function(){function PostScriptEvaluator(t){function_classCallCheck(this,PostScriptEvaluator);this.operators=t}function_createClass(PostScriptEvaluator,[{key:"execute",value:function execute(t){for(var r,o,c,l=new vc(t),u=0,h=this.operators,d=h.length;u<d;)if("number"!=typeof(r=h[u++]))switch(r){case"jz":c=l.pop();(o=l.pop())||(u=c);break;case"j":u=o=l.pop();break;case"abs":o=l.pop();l.push(Math.abs(o));break;case"add":c=l.pop();o=l.pop();l.push(o+c);break;case"and":c=l.pop();"boolean"==typeof(o=l.pop())&&"boolean"==typeof c?l.push(o&&c):l.push(o&c);break;case"atan":c=l.pop();o=l.pop();(o=Math.atan2(o,c)/Math.PI*180)<0&&(o+=360);l.push(o);break;case"bitshift":c=l.pop();(o=l.pop())>0?l.push(o<<c):l.push(o>>c);break;case"ceiling":o=l.pop();l.push(Math.ceil(o));break;case"copy":o=l.pop();l.copy(o);break;case"cos":o=l.pop();l.push(Math.cos(o%360/180*Math.PI));break;case"cvi":o=0|l.pop();l.push(o);break;case"cvr":break;case"div":c=l.pop();o=l.pop();l.push(o/c);break;case"dup":l.copy(1);break;case"eq":c=l.pop();o=l.pop();l.push(o===c);break;case"exch":l.roll(2,1);break;case"exp":c=l.pop();o=l.pop();l.push(Math.pow(o,c));break;case"false":l.push(!1);break;case"floor":o=l.pop();l.push(Math.floor(o));break;case"ge":c=l.pop();o=l.pop();l.push(o>=c);break;case"gt":c=l.pop();o=l.pop();l.push(o>c);break;case"idiv":c=l.pop();o=l.pop();l.push(o/c|0);break;case"index":o=l.pop();l.index(o);break;case"le":c=l.pop();o=l.pop();l.push(o<=c);break;case"ln":o=l.pop();l.push(Math.log(o));break;case"log":o=l.pop();l.push(Math.log10(o));break;case"lt":c=l.pop();o=l.pop();l.push(o<c);break;case"mod":c=l.pop();o=l.pop();l.push(o%c);break;case"mul":c=l.pop();o=l.pop();l.push(o*c);break;case"ne":c=l.pop();o=l.pop();l.push(o!==c);break;case"neg":o=l.pop();l.push(-o);break;case"not":"boolean"==typeof(o=l.pop())?l.push(!o):l.push(~o);break;case"or":c=l.pop();"boolean"==typeof(o=l.pop())&&"boolean"==typeof c?l.push(o||c):l.push(o|c);break;case"pop":l.pop();break;case"roll":c=l.pop();o=l.pop();l.roll(o,c);break;case"round":o=l.pop();l.push(Math.round(o));break;case"sin":o=l.pop();l.push(Math.sin(o%360/180*Math.PI));break;case"sqrt":o=l.pop();l.push(Math.sqrt(o));break;case"sub":c=l.pop();o=l.pop();l.push(o-c);break;case"true":l.push(!0);break;case"truncate":o=(o=l.pop())<0?Math.ceil(o):Math.floor(o);l.push(o);break;case"xor":c=l.pop();"boolean"==typeof(o=l.pop())&&"boolean"==typeof c?l.push(o!==c):l.push(o^c);break;default:throw new Sr("Unknown operator ".concat(r))}else l.push(r);return l.stack}}]);return PostScriptEvaluator}(),_c=function(){function AstNode(t){function_classCallCheck(this,AstNode);this.type=t}function_createClass(AstNode,[{key:"visit",value:function visit(t){unreachable("abstract method")}}]);return AstNode}(),wc=function(t){function_inherits(AstArgument,t);var r=function_createSuper(AstArgument);function AstArgument(t,o,c){var l;function_classCallCheck(this,AstArgument);(l=r.call(this,"args")).index=t;l.min=o;l.max=c;return l}function_createClass(AstArgument,[{key:"visit",value:function visit(t){t.visitArgument(this)}}]);return AstArgument}(_c),kc=function(t){function_inherits(AstLiteral,t);var r=function_createSuper(AstLiteral);function AstLiteral(t){var o;function_classCallCheck(this,AstLiteral);(o=r.call(this,"literal")).number=t;o.min=t;o.max=t;return o}function_createClass(AstLiteral,[{key:"visit",value:function visit(t){t.visitLiteral(this)}}]);return AstLiteral}(_c),xc=function(t){function_inherits(AstBinaryOperation,t);var r=function_createSuper(AstBinaryOperation);function AstBinaryOperation(t,o,c,l,u){var h;function_classCallCheck(this,AstBinaryOperation);(h=r.call(this,"binary")).op=t;h.arg1=o;h.arg2=c;h.min=l;h.max=u;return h}function_createClass(AstBinaryOperation,[{key:"visit",value:function visit(t){t.visitBinaryOperation(this)}}]);return AstBinaryOperation}(_c),Sc=function(t){function_inherits(AstMin,t);var r=function_createSuper(AstMin);function AstMin(t,o){var c;function_classCallCheck(this,AstMin);(c=r.call(this,"max")).arg=t;c.min=t.min;c.max=o;return c}function_createClass(AstMin,[{key:"visit",value:function visit(t){t.visitMin(this)}}]);return AstMin}(_c),Cc=function(t){function_inherits(AstVariable,t);var r=function_createSuper(AstVariable);function AstVariable(t,o,c){var l;function_classCallCheck(this,AstVariable);(l=r.call(this,"var")).index=t;l.min=o;l.max=c;return l}function_createClass(AstVariable,[{key:"visit",value:function visit(t){t.visitVariable(this)}}]);return AstVariable}(_c),Ac=function(t){function_inherits(AstVariableDefinition,t);var r=function_createSuper(AstVariableDefinition);function AstVariableDefinition(t,o){var c;function_classCallCheck(this,AstVariableDefinition);(c=r.call(this,"definition")).variable=t;c.arg=o;return c}function_createClass(AstVariableDefinition,[{key:"visit",value:function visit(t){t.visitVariableDefinition(this)}}]);return AstVariableDefinition}(_c),Pc=function(){function ExpressionBuilderVisitor(){function_classCallCheck(this,ExpressionBuilderVisitor);this.parts=[]}function_createClass(ExpressionBuilderVisitor,[{key:"visitArgument",value:function visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}},{key:"visitVariable",value:function visitVariable(t){this.parts.push("v",t.index)}},{key:"visitLiteral",value:function visitLiteral(t){this.parts.push(t.number)}},{key:"visitBinaryOperation",value:function visitBinaryOperation(t){this.parts.push("(");t.arg1.visit(this);this.parts.push(" ",t.op," ");t.arg2.visit(this);this.parts.push(")")}},{key:"visitVariableDefinition",value:function visitVariableDefinition(t){this.parts.push("var ");t.variable.visit(this);this.parts.push(" = ");t.arg.visit(this);this.parts.push(";")}},{key:"visitMin",value:function visitMin(t){this.parts.push("Math.min(");t.arg.visit(this);this.parts.push(", ",t.max,")")}},{key:"toString",value:function toString(){return this.parts.join("")}}]);return ExpressionBuilderVisitor}();function buildAddOperation(t,r){return"literal"===r.type&&0===r.number?t:"literal"===t.type&&0===t.number?r:"literal"===r.type&&"literal"===t.type?new kc(t.number+r.number):new xc("+",t,r,t.min+r.min,t.max+r.max)}function buildMulOperation(t,r){if("literal"===r.type){if(0===r.number)return new kc(0);if(1===r.number)return t;if("literal"===t.type)return new kc(t.number*r.number)}if("literal"===t.type){if(0===t.number)return new kc(0);if(1===t.number)return r}var o=Math.min(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max),c=Math.max(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max);return new xc("*",t,r,o,c)}function buildSubOperation(t,r){if("literal"===r.type){if(0===r.number)return t;if("literal"===t.type)return new kc(t.number-r.number)}return"binary"===r.type&&"-"===r.op&&"literal"===t.type&&1===t.number&&"literal"===r.arg1.type&&1===r.arg1.number?r.arg2:new xc("-",t,r,t.min-r.max,t.max-r.min)}function buildMinOperation(t,r){return t.min>=r?new kc(r):t.max<=r?t:new Sc(t,r)}var Oc=function(){function PostScriptCompiler(){function_classCallCheck(this,PostScriptCompiler)}function_createClass(PostScriptCompiler,[{key:"compile",value:function compile(t,r,o){for(var c,l,u,h,d,g,y,m,v=[],_=[],w=r.length>>1,k=o.length>>1,x=0,S=0;S<w;S++)v.push(new wc(S,r[2*S],r[2*S+1]));for(var C=0,O=t.length;C<O;C++)if("number"!=typeof(m=t[C]))switch(m){case"add":if(v.length<2)return null;h=v.pop();u=v.pop();v.push(buildAddOperation(u,h));break;case"cvr":if(v.length<1)return null;break;case"mul":if(v.length<2)return null;h=v.pop();u=v.pop();v.push(buildMulOperation(u,h));break;case"sub":if(v.length<2)return null;h=v.pop();u=v.pop();v.push(buildSubOperation(u,h));break;case"exch":if(v.length<2)return null;d=v.pop();g=v.pop();v.push(d,g);break;case"pop":if(v.length<1)return null;v.pop();break;case"index":if(v.length<1)return null;if("literal"!==(u=v.pop()).type)return null;if((c=u.number)<0||!Number.isInteger(c)||v.length<c)return null;if("literal"===(d=v[v.length-c-1]).type||"var"===d.type){v.push(d);break}y=new Cc(x++,d.min,d.max);v[v.length-c-1]=y;v.push(y);_.push(new Ac(y,d));break;case"dup":if(v.length<1)return null;if("number"==typeof t[C+1]&&"gt"===t[C+2]&&t[C+3]===C+7&&"jz"===t[C+4]&&"pop"===t[C+5]&&t[C+6]===t[C+1]){u=v.pop();v.push(buildMinOperation(u,t[C+1]));C+=6;break}if("literal"===(d=v.at(-1)).type||"var"===d.type){v.push(d);break}y=new Cc(x++,d.min,d.max);v[v.length-1]=y;v.push(y);_.push(new Ac(y,d));break;case"roll":if(v.length<2)return null;h=v.pop();u=v.pop();if("literal"!==h.type||"literal"!==u.type)return null;l=h.number;if((c=u.number)<=0||!Number.isInteger(c)||!Number.isInteger(l)||v.length<c)return null;if(0===(l=(l%c+c)%c))break;v.push.apply(v,function_toConsumableArray(v.splice(v.length-c,c-l)));break;default:return null}else v.push(new kc(m));if(v.length!==k)return null;for(var T=[],E=0,j=_;E<j.length;E++){var R=j[E],M=new Pc;R.visit(M);T.push(M.toString())}for(var L=0,D=v.length;L<D;L++){var N=v[L],U=new Pc;N.visit(U);var G=o[2*L],H=o[2*L+1],q=[U.toString()];if(G>N.min){q.unshift("Math.max(",G,", ");q.push(")")}if(H<N.max){q.unshift("Math.min(",H,", ");q.push(")")}q.unshift("dest[destOffset + ",L,"] = ");q.push(";");T.push(q.join(""))}return T.join("\n")}}]);return PostScriptCompiler}(),Ic=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],Tc=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function isOdd(t){return 0!=(1&t)}function isEven(t){return 0==(1&t)}function findUnequal(t,r,o){var c,l;for(c=r,l=t.length;c<l;++c)if(t[c]!==o)return c;return c}function setValues(t,r,o,c){for(var l=r;l<o;++l)t[l]=c}function reverseValues(t,r,o){for(var c=r,l=o-1;c<l;++c,--l){var u=t[c];t[c]=t[l];t[l]=u}}function createBidiText(t,r){var o="ltr";arguments.length>2&&void 0!==arguments[2]&&arguments[2]?o="ttb":r||(o="rtl");return{str:t,dir:o}}var Fc=[],Ec=[];function bidi(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=!0,l=t.length;if(0===l||o)return createBidiText(t,c,o);Fc.length=l;Ec.length=l;var u,h,d=0;for(u=0;u<l;++u){Fc[u]=t.charAt(u);var g=t.charCodeAt(u),y="L";g<=255?y=Ic[g]:1424<=g&&g<=1524?y="R":1536<=g&&g<=1791?(y=Tc[255&g])||warn("Bidi: invalid Unicode character "+g.toString(16)):(1792<=g&&g<=2220||64336<=g&&g<=65023||65136<=g&&g<=65279)&&(y="AL");"R"!==y&&"AL"!==y&&"AN"!==y||d++;Ec[u]=y}if(0===d)return createBidiText(t,c=!0);if(-1===r)if(d/l<.3&&l>4){c=!0;r=0}else{c=!1;r=1}var m=[];for(u=0;u<l;++u)m[u]=r;var v,_=isOdd(r)?"R":"L",w=_,k=w,x=w;for(u=0;u<l;++u)"NSM"===Ec[u]?Ec[u]=x:x=Ec[u];x=w;for(u=0;u<l;++u)"EN"===(v=Ec[u])?Ec[u]="AL"===x?"AN":"EN":"R"!==v&&"L"!==v&&"AL"!==v||(x=v);for(u=0;u<l;++u)"AL"===(v=Ec[u])&&(Ec[u]="R");for(u=1;u<l-1;++u){"ES"===Ec[u]&&"EN"===Ec[u-1]&&"EN"===Ec[u+1]&&(Ec[u]="EN");"CS"!==Ec[u]||"EN"!==Ec[u-1]&&"AN"!==Ec[u-1]||Ec[u+1]!==Ec[u-1]||(Ec[u]=Ec[u-1])}for(u=0;u<l;++u)if("EN"===Ec[u]){for(var S=u-1;S>=0&&"ET"===Ec[S];--S)Ec[S]="EN";for(var C=u+1;C<l&&"ET"===Ec[C];++C)Ec[C]="EN"}for(u=0;u<l;++u)"WS"!==(v=Ec[u])&&"ES"!==v&&"ET"!==v&&"CS"!==v||(Ec[u]="ON");x=w;for(u=0;u<l;++u)"EN"===(v=Ec[u])?Ec[u]="L"===x?"L":"EN":"R"!==v&&"L"!==v||(x=v);for(u=0;u<l;++u)if("ON"===Ec[u]){var O=findUnequal(Ec,u+1,"ON"),T=w;u>0&&(T=Ec[u-1]);var E=k;O+1<l&&(E=Ec[O+1]);"L"!==T&&(T="R");"L"!==E&&(E="R");T===E&&setValues(Ec,u,O,T);u=O-1}for(u=0;u<l;++u)"ON"===Ec[u]&&(Ec[u]=_);for(u=0;u<l;++u){v=Ec[u];isEven(m[u])?"R"===v?m[u]+=1:"AN"!==v&&"EN"!==v||(m[u]+=2):"L"!==v&&"AN"!==v&&"EN"!==v||(m[u]+=1)}var j,R=-1,M=99;for(u=0,h=m.length;u<h;++u){R<(j=m[u])&&(R=j);M>j&&isOdd(j)&&(M=j)}for(j=R;j>=M;--j){var L=-1;for(u=0,h=m.length;u<h;++u)if(m[u]<j){if(L>=0){reverseValues(Fc,L,u);L=-1}}else L<0&&(L=u);L>=0&&reverseValues(Fc,L,m.length)}for(u=0,h=Fc.length;u<h;++u){var D=Fc[u];"<"!==D&&">"!==D||(Fc[u]="")}return createBidiText(Fc.join(""),c)}function font_substitutions_slicedToArray(t,r){return function font_substitutions_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function font_substitutions_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||font_substitutions_unsupportedIterableToArray(t,r)||function font_substitutions_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function font_substitutions_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=font_substitutions_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function font_substitutions_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return font_substitutions_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?font_substitutions_arrayLikeToArray(t,r):void 0}}function font_substitutions_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var jc={style:"normal",weight:"normal"},Rc={style:"normal",weight:"bold"},Mc={style:"italic",weight:"normal"},Lc={style:"italic",weight:"bold"},Bc=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:jc,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:Rc,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:Mc,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:Lc,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:jc,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:Rc,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:Mc,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:Lc,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:jc,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:Rc,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:Mc,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:Lc,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:jc,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:Rc,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:Mc,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:Lc,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:jc,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:Rc,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:Mc,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:Lc,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:jc}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),Dc=new Map([["Arial-Black","ArialBlack"]]);function generateFont(t,r,o){var c=t.alias,l=t.local,u=t.path,h=t.fallback,d=t.style,g=t.ultimate,y=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],m=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",_={style:null,ultimate:null};if(l){var w,k=v?" ".concat(v):"",x=font_substitutions_createForOfIteratorHelper(l);try{for(x.s();!(w=x.n()).done;){var S=w.value;r.push("local(".concat(S).concat(k,")"))}}catch(t){x.e(t)}finally{x.f()}}if(c){var C=Bc.get(c),O=v||function getStyleToAppend(t){switch(t){case Rc:return"Bold";case Mc:return"Italic";case Lc:return"Bold Italic";default:if("bold"===(null==t?void 0:t.weight))return"Bold";if("italic"===(null==t?void 0:t.style))return"Italic"}return""}(d);Object.assign(_,generateFont(C,r,o,y&&!h,m&&!u,O))}d&&(_.style=d);g&&(_.ultimate=g);if(y&&h){var T=generateFont(Bc.get(h),r,o,y,m&&!u,v).ultimate;_.ultimate||(_.ultimate=T)}m&&u&&o&&r.push("url(".concat(o).concat(u,")"));return _}function getFontSubstitution(t,r,o,c,l){if(c.startsWith("InvalidPDFjsFont_"))return null;var u=c=normalizeFontName(c),h=t.get(u);if(h)return h;var d=Bc.get(c);if(!d){var g,y=font_substitutions_createForOfIteratorHelper(Dc);try{for(y.s();!(g=y.n()).done;){var m=font_substitutions_slicedToArray(g.value,2),v=m[0],_=m[1];if(c.startsWith(v)){c="".concat(_).concat(c.substring(v.length));d=Bc.get(c);break}}}catch(t){y.e(t)}finally{y.f()}}var w=!1;if(!d){d=Bc.get(l);w=!0}var k="".concat(r.getDocId(),"_s").concat(r.createFontId());if(!d){if(!validateFontName(c)){t.set(u,null);return null}var x=/bold/gi.test(c),S=/oblique|italic/gi.test(c),C=x&&S&&Lc||x&&Rc||S&&Mc||jc;h={css:k,guessFallback:!0,loadedName:k,baseFontName:c,src:"local(".concat(c,")"),style:C};t.set(u,h);return h}var O=[];w&&validateFontName(c)&&O.push("local(".concat(c,")"));var T=generateFont(d,O,o),E=T.style,j=T.ultimate,R=null===j,M=R?"":",".concat(j);h={css:"".concat(k).concat(M),guessFallback:R,loadedName:k,baseFontName:c,src:O.join(","),style:E};t.set(u,h);return h}function image_resizer_typeof(t){return image_resizer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},image_resizer_typeof(t)}function image_resizer_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */image_resizer_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==image_resizer_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(image_resizer_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function image_resizer_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function image_resizer_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return image_resizer_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return image_resizer_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function image_resizer_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function image_resizer_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function image_resizer_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){image_resizer_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){image_resizer_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function image_resizer_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,image_resizer_toPropertyKey(c.key),c)}}function image_resizer_toPropertyKey(t){var r=function image_resizer_toPrimitive(t,r){if("object"!=image_resizer_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=image_resizer_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==image_resizer_typeof(r)?r:String(r)}var Nc=function(){function ImageResizer(t,r){!function image_resizer_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ImageResizer);this._imgData=t;this._isMask=r}!function image_resizer_createClass(t,r,o){r&&image_resizer_defineProperties(t.prototype,r);o&&image_resizer_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(ImageResizer,[{key:"_createImage",value:(r=image_resizer_asyncToGenerator(image_resizer_regeneratorRuntime().mark((function _callee(){var t,r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j;return image_resizer_regeneratorRuntime().wrap((function _callee$(R){for(;;)switch(R.prev=R.next){case 0:t=this._encodeBMP();r=new Blob([t.buffer],{type:"image/bmp"});o=createImageBitmap(r);c=ImageResizer.MAX_AREA,l=ImageResizer.MAX_DIM;u=this._imgData;h=u.width,d=u.height;g=Math.max(h/l,d/l,Math.sqrt(h*d/c));y=Math.max(g,2);m=Math.round(10*(g+1.25))/10/y;v=Math.floor(Math.log2(m));(_=new Array(v+2).fill(2))[0]=y;_.splice(-1,1,m/(1<<v));w=h;k=d;R.next=17;return o;case 17:x=R.sent;S=image_resizer_createForOfIteratorHelper(_);try{for(S.s();!(C=S.n()).done;){O=C.value;T=w;E=k;w=Math.floor(w/O)-1;k=Math.floor(k/O)-1;(j=new OffscreenCanvas(w,k)).getContext("2d").drawImage(x,0,0,T,E,0,0,w,k);x=j.transferToImageBitmap()}}catch(t){S.e(t)}finally{S.f()}u.data=null;u.bitmap=x;u.width=w;u.height=k;return R.abrupt("return",u);case 25:case"end":return R.stop()}}),_callee,this)}))),function _createImage(){return r.apply(this,arguments)})},{key:"_encodeBMP",value:function _encodeBMP(){var t,r=this._imgData,o=r.width,c=r.height,l=r.kind,u=this._imgData.data,h=new Uint8Array(0),d=h,g=0;switch(l){case j:t=1;h=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);var y=o+7>>3,m=y+3&-4;if(y!==m){for(var v=new Uint8Array(m*c),_=0,w=0,k=c*y;w<k;w+=y,_+=m)v.set(u.subarray(w,w+y),_);u=v}break;case R:t=24;if(3&o){for(var x=3*o,S=x+3&-4,C=S-x,O=new Uint8Array(S*c),T=0,E=0,L=c*x;E<L;E+=x){for(var D=u.subarray(E,E+x),N=0;N<x;N+=3){O[T++]=D[N+2];O[T++]=D[N+1];O[T++]=D[N]}T+=C}u=O}else for(var U=0,G=u.length;U<G;U+=3){var H=u[U];u[U]=u[U+2];u[U+2]=H}break;case M:t=32;g=3;d=new Uint8Array(68);var q=new DataView(d.buffer);if(Ar.isLittleEndian){q.setUint32(0,255,!0);q.setUint32(4,65280,!0);q.setUint32(8,16711680,!0);q.setUint32(12,4278190080,!0)}else{q.setUint32(0,4278190080,!0);q.setUint32(4,16711680,!0);q.setUint32(8,65280,!0);q.setUint32(12,255,!0)}break;default:throw new Error("invalid format")}var z=0,W=40+d.length,V=14+W+h.length+u.length,X=new Uint8Array(V),K=new DataView(X.buffer);K.setUint16(z,19778,!0);z+=2;K.setUint32(z,V,!0);z+=4;K.setUint32(z,0,!0);z+=4;K.setUint32(z,14+W+h.length,!0);z+=4;K.setUint32(z,W,!0);z+=4;K.setInt32(z,o,!0);z+=4;K.setInt32(z,-c,!0);z+=4;K.setUint16(z,1,!0);z+=2;K.setUint16(z,t,!0);z+=2;K.setUint32(z,g,!0);z+=4;K.setUint32(z,0,!0);z+=4;K.setInt32(z,0,!0);z+=4;K.setInt32(z,0,!0);z+=4;K.setUint32(z,h.length/4,!0);z+=4;K.setUint32(z,0,!0);z+=4;X.set(d,z);z+=d.length;X.set(h,z);z+=h.length;X.set(u,z);return X}}],[{key:"needsToBeResized",value:function needsToBeResized(t,r){if(t<=this._goodSquareLength&&r<=this._goodSquareLength)return!1;var o=this.MAX_DIM;if(t>o||r>o)return!0;var c=t*r;if(this._hasMaxArea)return c>this.MAX_AREA;if(c<Math.pow(this._goodSquareLength,2))return!1;if(this._areGoodDims(t,r)){this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(t*r)));return!1}this._goodSquareLength=this._guessMax(this._goodSquareLength,o,128,0);return c>(this.MAX_AREA=Math.pow(this._goodSquareLength,2))}},{key:"MAX_DIM",get:function get(){return shadow(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}},{key:"MAX_AREA",get:function get(){this._hasMaxArea=!0;return shadow(this,"MAX_AREA",Math.pow(this._guessMax(ImageResizer._goodSquareLength,this.MAX_DIM,128,0),2))},set:function set(t){if(t>=0){this._hasMaxArea=!0;shadow(this,"MAX_AREA",t)}}},{key:"setMaxArea",value:function setMaxArea(t){this._hasMaxArea||(this.MAX_AREA=t>>2)}},{key:"_areGoodDims",value:function _areGoodDims(t,r){try{var o=new OffscreenCanvas(t,r),c=o.getContext("2d");c.fillRect(0,0,1,1);var l=c.getImageData(0,0,1,1).data[3];o.width=o.height=1;return 0!==l}catch(t){return!1}}},{key:"_guessMax",value:function _guessMax(t,r,o,c){for(;t+o+1<r;){var l=Math.floor((t+r)/2),u=c||l;this._areGoodDims(l,u)?t=l:r=l}return t}},{key:"createImage",value:(t=image_resizer_asyncToGenerator(image_resizer_regeneratorRuntime().mark((function _callee2(t){var r,o=arguments;return image_resizer_regeneratorRuntime().wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:r=o.length>1&&void 0!==o[1]&&o[1];return c.abrupt("return",new ImageResizer(t,r)._createImage());case 2:case"end":return c.stop()}}),_callee2)}))),function createImage(r){return t.apply(this,arguments)})}]);var t,r;return ImageResizer}();Nc._goodSquareLength=2048;function murmurhash3_typeof(t){return murmurhash3_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},murmurhash3_typeof(t)}function murmurhash3_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,murmurhash3_toPropertyKey(c.key),c)}}function murmurhash3_toPropertyKey(t){var r=function murmurhash3_toPrimitive(t,r){if("object"!=murmurhash3_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=murmurhash3_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==murmurhash3_typeof(r)?r:String(r)}var Uc,Gc=3285377520,Hc=4294901760,qc=65535,zc=function(){function MurmurHash3_64(t){!function murmurhash3_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MurmurHash3_64);this.h1=t?4294967295&t:Gc;this.h2=t?4294967295&t:Gc}!function murmurhash3_createClass(t,r,o){r&&murmurhash3_defineProperties(t.prototype,r);o&&murmurhash3_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(MurmurHash3_64,[{key:"update",value:function update(t){var r,o;if("string"==typeof t){r=new Uint8Array(2*t.length);o=0;for(var c=0,l=t.length;c<l;c++){var u=t.charCodeAt(c);if(u<=255)r[o++]=u;else{r[o++]=u>>>8;r[o++]=255&u}}}else{if(!function isArrayBuffer(t){return"object"===_typeof(t)&&void 0!==(null==t?void 0:t.byteLength)}(t))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");o=(r=t.slice()).byteLength}for(var h=o>>2,d=o-4*h,g=new Uint32Array(r.buffer,0,h),y=0,m=0,v=this.h1,_=this.h2,w=3432918353,k=461845907,x=11601,S=13715,C=0;C<h;C++)1&C?v=5*(v=(v^=y=(y=(y=(y=g[C])*w&Hc|y*x&qc)<<15|y>>>17)*k&Hc|y*S&qc)<<13|v>>>19)+3864292196:_=5*(_=(_^=m=(m=(m=(m=g[C])*w&Hc|m*x&qc)<<15|m>>>17)*k&Hc|m*S&qc)<<13|_>>>19)+3864292196;y=0;switch(d){case 3:y^=r[4*h+2]<<16;case 2:y^=r[4*h+1]<<8;case 1:y=(y=(y=(y^=r[4*h])*w&Hc|y*x&qc)<<15|y>>>17)*k&Hc|y*S&qc;1&h?v^=y:_^=y}this.h1=v;this.h2=_}},{key:"hexdigest",value:function hexdigest(){var t=this.h1,r=this.h2;t=3981806797*(t^=r>>>1)&Hc|36045*t&qc;t=444984403*(t^=(r=4283543511*r&Hc|(2950163797*(r<<16|t>>>16)&Hc)>>>16)>>>1)&Hc|60499*t&qc;return((t^=(r=3301882366*r&Hc|(3120437893*(r<<16|t>>>16)&Hc)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}]);return MurmurHash3_64}();function operator_list_typeof(t){return operator_list_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},operator_list_typeof(t)}function operator_list_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function operator_list_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return operator_list_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return operator_list_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function operator_list_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function operator_list_defineProperty(t,r,o){(r=operator_list_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function operator_list_setPrototypeOf(t,r){operator_list_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return operator_list_setPrototypeOf(t,r)}function operator_list_createSuper(t){var r=function operator_list_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=operator_list_getPrototypeOf(t);if(r){var l=operator_list_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function operator_list_possibleConstructorReturn(t,r){if(r&&("object"===operator_list_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function operator_list_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function operator_list_getPrototypeOf(t){operator_list_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return operator_list_getPrototypeOf(t)}function operator_list_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function operator_list_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,operator_list_toPropertyKey(c.key),c)}}function operator_list_createClass(t,r,o){r&&operator_list_defineProperties(t.prototype,r);o&&operator_list_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function operator_list_toPropertyKey(t){var r=function operator_list_toPrimitive(t,r){if("object"!=operator_list_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=operator_list_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==operator_list_typeof(r)?r:String(r)}function addState(t,r,o,c,l){for(var u=t,h=0,d=r.length-1;h<d;h++){var g,y=r[h];u=(g=u)[y]||(g[y]=[])}u[r.at(-1)]={checkFn:o,iterateFn:c,processFn:l}}var Wc=[];addState(Wc,[Ue,He,cr,Ge],null,(function iterateInlineImageGroup(t,r){var o=t.fnArray,c=(r-(t.iCurr-3))%4;switch(c){case 0:return o[r]===Ue;case 1:return o[r]===He;case 2:return o[r]===cr;case 3:return o[r]===Ge}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(c))}),(function foundInlineImageGroup(t,r){var o=t.fnArray,c=t.argsArray,l=t.iCurr,u=l-3,h=l-2,d=l-1,g=Math.min(Math.floor((r-u)/4),200);if(g<10)return r-(r-u)%4;for(var y=0,m=[],v=0,_=1,w=1,k=0;k<g;k++){var x=c[h+(k<<2)],S=c[d+(k<<2)][0];if(_+S.width>1e3){y=Math.max(y,_);w+=v+2;_=0;v=0}m.push({transform:x,x:_,y:w,w:S.width,h:S.height});_+=S.width+2;v=Math.max(v,S.height)}for(var C=Math.max(y,_)+1,O=w+v+1,T=new Uint8Array(C*O*4),E=C<<2,j=0;j<g;j++){var R=c[d+(j<<2)][0].data,L=m[j].w<<2,D=0,N=m[j].x+m[j].y*C<<2;T.set(R.subarray(0,L),N-E);for(var U=0,G=m[j].h;U<G;U++){T.set(R.subarray(D,D+L),N);D+=L;N+=E}T.set(R.subarray(D-L,D),N);for(;N>=0;){R[N-4]=R[N];R[N-3]=R[N+1];R[N-2]=R[N+2];R[N-1]=R[N+3];R[N+L]=R[N+L-4];R[N+L+1]=R[N+L-3];R[N+L+2]=R[N+L-2];R[N+L+3]=R[N+L-1];N-=E}}var H={width:C,height:O};if(t.isOffscreenCanvasSupported){var q=new OffscreenCanvas(C,O);q.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(T.buffer),C,O),0,0);H.bitmap=q.transferToImageBitmap();H.data=null}else{H.kind=M;H.data=T}o.splice(u,4*g,lr);c.splice(u,4*g,[H,m]);return u+1}));addState(Wc,[Ue,He,ar,Ge],null,(function iterateImageMaskGroup(t,r){var o=t.fnArray,c=(r-(t.iCurr-3))%4;switch(c){case 0:return o[r]===Ue;case 1:return o[r]===He;case 2:return o[r]===ar;case 3:return o[r]===Ge}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(c))}),(function foundImageMaskGroup(t,r){var o=t.fnArray,c=t.argsArray,l=t.iCurr,u=l-3,h=l-2,d=l-1,g=Math.floor((r-u)/4);if(g<10)return r-(r-u)%4;var y,m,v=!1,_=c[d][0],w=c[h][0],k=c[h][1],x=c[h][2],S=c[h][3];if(k===x){v=!0;y=h+4;for(var C=d+4,O=1;O<g;O++,y+=4,C+=4){m=c[y];if(c[C][0]!==_||m[0]!==w||m[1]!==k||m[2]!==x||m[3]!==S){O<10?v=!1:g=O;break}}}if(v){g=Math.min(g,1e3);var T=new Float32Array(2*g);y=h;for(var E=0;E<g;E++,y+=4){m=c[y];T[E<<1]=m[4];T[1+(E<<1)]=m[5]}o.splice(u,4*g,fr);c.splice(u,4*g,[_,w,k,x,S,T])}else{g=Math.min(g,100);for(var j=[],R=0;R<g;R++){m=c[h+(R<<2)];var M=c[d+(R<<2)][0];j.push({data:M.data,width:M.width,height:M.height,interpolate:M.interpolate,count:M.count,transform:m})}o.splice(u,4*g,ir);c.splice(u,4*g,[j])}return u+1}));addState(Wc,[Ue,He,sr,Ge],(function(t){var r=t.argsArray,o=t.iCurr-2;return 0===r[o][1]&&0===r[o][2]}),(function iterateImageGroup(t,r){var o=t.fnArray,c=t.argsArray,l=(r-(t.iCurr-3))%4;switch(l){case 0:return o[r]===Ue;case 1:if(o[r]!==He)return!1;var u=t.iCurr-2,h=c[u][0],d=c[u][3];return c[r][0]===h&&0===c[r][1]&&0===c[r][2]&&c[r][3]===d;case 2:if(o[r]!==sr)return!1;var g=c[t.iCurr-1][0];return c[r][0]===g;case 3:return o[r]===Ge}throw new Error("iterateImageGroup - invalid pos: ".concat(l))}),(function(t,r){var o=t.fnArray,c=t.argsArray,l=t.iCurr,u=l-3,h=l-2,d=c[l-1][0],g=c[h][0],y=c[h][3],m=Math.min(Math.floor((r-u)/4),1e3);if(m<3)return r-(r-u)%4;for(var v=new Float32Array(2*m),_=h,w=0;w<m;w++,_+=4){var k=c[_];v[w<<1]=k[4];v[1+(w<<1)]=k[5]}var x=[d,g,y,v];o.splice(u,4*m,ur);c.splice(u,4*m,x);return u+1}));addState(Wc,[ct,gt,_t,kt,lt],null,(function iterateShowTextGroup(t,r){var o=t.fnArray,c=t.argsArray,l=(r-(t.iCurr-4))%5;switch(l){case 0:return o[r]===ct;case 1:return o[r]===gt;case 2:return o[r]===_t;case 3:if(o[r]!==kt)return!1;var u=t.iCurr-3,h=c[u][0],d=c[u][1];return c[r][0]===h&&c[r][1]===d;case 4:return o[r]===lt}throw new Error("iterateShowTextGroup - invalid pos: ".concat(l))}),(function(t,r){var o=t.fnArray,c=t.argsArray,l=t.iCurr,u=l-4,h=l-3,d=l-2,g=l-1,y=l,m=c[h][0],v=c[h][1],_=Math.min(Math.floor((r-u)/5),1e3);if(_<3)return r-(r-u)%5;var w=u;if(u>=4&&o[u-4]===o[h]&&o[u-3]===o[d]&&o[u-2]===o[g]&&o[u-1]===o[y]&&c[u-4][0]===m&&c[u-4][1]===v){_++;w-=5}for(var k=w+4,x=1;x<_;x++){o.splice(k,3);c.splice(k,3);k+=2}return k+1}));var Vc=function(){function NullOptimizer(t){operator_list_classCallCheck(this,NullOptimizer);this.queue=t}operator_list_createClass(NullOptimizer,[{key:"_optimize",value:function _optimize(){}},{key:"push",value:function push(t,r){this.queue.fnArray.push(t);this.queue.argsArray.push(r);this._optimize()}},{key:"flush",value:function flush(){}},{key:"reset",value:function reset(){}}]);return NullOptimizer}(),Xc=function(t){!function operator_list_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&operator_list_setPrototypeOf(t,r)}(QueueOptimizer,t);var r=operator_list_createSuper(QueueOptimizer);function QueueOptimizer(t){var o;operator_list_classCallCheck(this,QueueOptimizer);(o=r.call(this,t)).state=null;o.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:!1};o.match=null;o.lastProcessed=0;return o}operator_list_createClass(QueueOptimizer,[{key:"isOffscreenCanvasSupported",set:function set(t){this.context.isOffscreenCanvasSupported=t}},{key:"_optimize",value:function _optimize(){var t=this.queue.fnArray,r=this.lastProcessed,o=t.length,c=this.state,l=this.match;if(c||l||r+1!==o||Wc[t[r]]){for(var u=this.context;r<o;){if(l){if((0,l.iterateFn)(u,r)){r++;continue}r=(0,l.processFn)(u,r+1);l=null;c=null;if(r>=(o=t.length))break}if((c=(c||Wc)[t[r]])&&!Array.isArray(c)){u.iCurr=r;r++;if(!c.checkFn||(0,c.checkFn)(u)){l=c;c=null}else c=null}else r++}this.state=c;this.match=l;this.lastProcessed=r}else this.lastProcessed=o}},{key:"flush",value:function flush(){for(;this.match;){var t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t);this.match=null;this.state=null;this._optimize()}}},{key:"reset",value:function reset(){this.state=null;this.match=null;this.lastProcessed=0}}]);return QueueOptimizer}(Vc),Kc=function(){function OperatorList(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;operator_list_classCallCheck(this,OperatorList);this._streamSink=r;this.fnArray=[];this.argsArray=[];this.optimizer=!r||t&_?new Vc(this):new Xc(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=r?null:Promise.resolve()}operator_list_createClass(OperatorList,[{key:"isOffscreenCanvasSupported",set:function set(t){this.optimizer.isOffscreenCanvasSupported=t}},{key:"length",get:function get(){return this.argsArray.length}},{key:"ready",get:function get(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function get(){return this._totalLength+this.length}},{key:"addOp",value:function addOp(t,r){this.optimizer.push(t,r);this.weight++;this._streamSink&&(this.weight>=OperatorList.CHUNK_SIZE||this.weight>=OperatorList.CHUNK_SIZE_ABOUT&&(t===Ge||t===lt))&&this.flush()}},{key:"addImageOps",value:function addImageOps(t,r,o){void 0!==o&&this.addOp(Kt,["OC",o]);this.addOp(t,r);void 0!==o&&this.addOp(Yt,[])}},{key:"addDependency",value:function addDependency(t){if(!this.dependencies.has(t)){this.dependencies.add(t);this.addOp(Fe,[t])}}},{key:"addDependencies",value:function addDependencies(t){var r,o=operator_list_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var c=r.value;this.addDependency(c)}}catch(t){o.e(t)}finally{o.f()}}},{key:"addOpList",value:function addOpList(t){if(t instanceof OperatorList){var r,o=operator_list_createForOfIteratorHelper(t.dependencies);try{for(o.s();!(r=o.n()).done;){var c=r.value;this.dependencies.add(c)}}catch(t){o.e(t)}finally{o.f()}for(var l=0,u=t.length;l<u;l++)this.addOp(t.fnArray[l],t.argsArray[l])}else warn('addOpList - ignoring invalid "opList" parameter.')}},{key:"getIR",value:function getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}},{key:"_transfers",get:function get(){for(var t,r=[],o=this.fnArray,c=this.argsArray,l=this.length,u=0;u<l;u++)switch(o[u]){case cr:case lr:case ar:var h=c[u][0];!h.cached&&(null===(t=h.data)||void 0===t?void 0:t.buffer)instanceof ArrayBuffer&&r.push(h.data.buffer)}return r}},{key:"flush",value:function flush(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var o=this.length;this._totalLength+=o;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:r,length:o},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}}]);return OperatorList}();Uc=Kc;operator_list_defineProperty(Kc,"CHUNK_SIZE",1e3);operator_list_defineProperty(Kc,"CHUNK_SIZE_ABOUT",Uc.CHUNK_SIZE-5);function image_typeof(t){return image_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},image_typeof(t)}function image_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */image_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==image_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(image_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function image_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function image_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){image_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){image_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function image_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,image_toPropertyKey(c.key),c)}}function image_toPropertyKey(t){var r=function image_toPrimitive(t,r){if("object"!=image_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=image_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==image_typeof(r)?r:String(r)}function decodeAndClamp(t,r,o,c){(t=r+t*o)<0?t=0:t>c&&(t=c);return t}function resizeImageMask(t,r,o,c,l,u){var h,d=l*u;h=r<=8?new Uint8Array(d):r<=16?new Uint16Array(d):new Uint32Array(d);var g,y,m,v,_=o/l,w=c/u,k=0,x=new Uint16Array(l),S=o;for(g=0;g<l;g++)x[g]=Math.floor(g*_);for(g=0;g<u;g++){m=Math.floor(g*w)*S;for(y=0;y<l;y++){v=m+x[y];h[k++]=t[v]}}return h}var Yc=function(){function PDFImage(t){var r=t.xref,o=t.res,c=t.image,l=t.isInline,u=void 0!==l&&l,h=t.smask,d=void 0===h?null:h,g=t.mask,y=void 0===g?null:g,m=t.isMask,v=void 0!==m&&m,_=t.pdfFunctionFactory,w=t.localColorSpaceCache;!function image_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PDFImage);this.image=c;var k,x=c.dict,S=x.get("F","Filter");if(S instanceof Ur)k=S.name;else if(Array.isArray(S)){var C=r.fetchIfRef(S[0]);C instanceof Ur&&(k=C.name)}switch(k){case"JPXDecode":var O=new Ya;O.parseImageProperties(c.stream);c.stream.reset();c.width=O.width;c.height=O.height;c.bitsPerComponent=O.bitsPerComponent;c.numComps=O.componentsCount;break;case"JBIG2Decode":c.bitsPerComponent=1;c.numComps=1}var T=x.get("W","Width"),E=x.get("H","Height");if(Number.isInteger(c.width)&&c.width>0&&Number.isInteger(c.height)&&c.height>0&&(c.width!==T||c.height!==E)){warn("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");T=c.width;E=c.height}if(T<1||E<1)throw new Sr("Invalid image width: ".concat(T," or height: ").concat(E));this.width=T;this.height=E;this.interpolate=x.get("I","Interpolate");this.imageMask=x.get("IM","ImageMask")||!1;this.matte=x.get("Matte")||!1;var j=c.bitsPerComponent;if(!j&&!(j=x.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new Sr("Bits per component missing in image: ".concat(this.imageMask));j=1}this.bpc=j;if(!this.imageMask){var R=x.getRaw("CS")||x.getRaw("ColorSpace");if(!R){info("JPX images (which do not require color spaces)");switch(c.numComps){case 1:R=Ur.get("DeviceGray");break;case 3:R=Ur.get("DeviceRGB");break;case 4:R=Ur.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(c.numComps," color components not supported."))}}this.colorSpace=ln.parse({cs:R,xref:r,resources:u?o:null,pdfFunctionFactory:_,localColorSpaceCache:w});this.numComps=this.colorSpace.numComps}this.decode=x.getArray("D","Decode");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,j)||v&&!ln.isDefaultDecode(this.decode,1))){var M;this.needsDecode=!0;var L=(1<<j)-1;this.decodeCoefficients=[];this.decodeAddends=[];for(var D="Indexed"===(null===(M=this.colorSpace)||void 0===M?void 0:M.name),N=0,U=0;N<this.decode.length;N+=2,++U){var G=this.decode[N],H=this.decode[N+1];this.decodeCoefficients[U]=D?(H-G)/L:H-G;this.decodeAddends[U]=D?G:L*G}}if(d)this.smask=new PDFImage({xref:r,res:o,image:d,isInline:u,pdfFunctionFactory:_,localColorSpaceCache:w});else if(y)if(y instanceof Xr){y.dict.get("IM","ImageMask")?this.mask=new PDFImage({xref:r,res:o,image:y,isInline:u,isMask:!0,pdfFunctionFactory:_,localColorSpaceCache:w}):warn("Ignoring /Mask in image without /ImageMask.")}else this.mask=y}!function image_createClass(t,r,o){r&&image_defineProperties(t.prototype,r);o&&image_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(PDFImage,[{key:"drawWidth",get:function get(){var t,r;return Math.max(this.width,(null===(t=this.smask)||void 0===t?void 0:t.width)||0,(null===(r=this.mask)||void 0===r?void 0:r.width)||0)}},{key:"drawHeight",get:function get(){var t,r;return Math.max(this.height,(null===(t=this.smask)||void 0===t?void 0:t.height)||0,(null===(r=this.mask)||void 0===r?void 0:r.height)||0)}},{key:"decodeBuffer",value:function decodeBuffer(t){var r,o,c=this.bpc,l=this.numComps,u=this.decodeAddends,h=this.decodeCoefficients,d=(1<<c)-1;if(1!==c){var g=0;for(r=0,o=this.width*this.height;r<o;r++)for(var y=0;y<l;y++){t[g]=decodeAndClamp(t[g],u[y],h[y],d);g++}}else for(r=0,o=t.length;r<o;r++)t[r]=+!t[r]}},{key:"getComponents",value:function getComponents(t){var r=this.bpc;if(8===r)return t;var o,c=this.width,l=this.height,u=this.numComps,h=c*l*u,d=0;o=r<=8?new Uint8Array(h):r<=16?new Uint16Array(h):new Uint32Array(h);var g,y,m=c*u,v=(1<<r)-1,_=0;if(1===r)for(var w,k,x,S=0;S<l;S++){k=_+(-8&m);x=_+m;for(;_<k;){y=t[d++];o[_]=y>>7&1;o[_+1]=y>>6&1;o[_+2]=y>>5&1;o[_+3]=y>>4&1;o[_+4]=y>>3&1;o[_+5]=y>>2&1;o[_+6]=y>>1&1;o[_+7]=1&y;_+=8}if(_<x){y=t[d++];w=128;for(;_<x;){o[_++]=+!!(y&w);w>>=1}}}else{var C=0;y=0;for(_=0,g=h;_<g;++_){if(_%m==0){y=0;C=0}for(;C<r;){y=y<<8|t[d++];C+=8}var O=C-r,T=y>>O;T<0?T=0:T>v&&(T=v);o[_]=T;y&=(1<<O)-1;C=O}}return o}},{key:"fillOpacity",value:function fillOpacity(t,r,o,c,l){var u,h,d,g,y,m,v=this.smask,_=this.mask;if(v){h=v.width;d=v.height;u=new Uint8ClampedArray(h*d);v.fillGrayBuffer(u);h===r&&d===o||(u=resizeImageMask(u,v.bpc,h,d,r,o))}else if(_)if(_ instanceof PDFImage){h=_.width;d=_.height;u=new Uint8ClampedArray(h*d);_.numComps=1;_.fillGrayBuffer(u);for(g=0,y=h*d;g<y;++g)u[g]=255-u[g];h===r&&d===o||(u=resizeImageMask(u,_.bpc,h,d,r,o))}else{if(!Array.isArray(_))throw new Sr("Unknown mask format.");u=new Uint8ClampedArray(r*o);var w=this.numComps;for(g=0,y=r*o;g<y;++g){var k=0,x=g*w;for(m=0;m<w;++m){var S=l[x+m],C=2*m;if(S<_[C]||S>_[C+1]){k=255;break}}u[g]=k}}if(u)for(g=0,m=3,y=r*c;g<y;++g,m+=4)t[m]=u[g];else for(g=0,m=3,y=r*c;g<y;++g,m+=4)t[m]=255}},{key:"undoPreblend",value:function undoPreblend(t,r,o){var c,l=null===(c=this.smask)||void 0===c?void 0:c.matte;if(l)for(var u=this.colorSpace.getRgb(l,0),h=u[0],d=u[1],g=u[2],y=r*o*4,m=0;m<y;m+=4){var v=t[m+3];if(0!==v){var _=255/v;t[m]=(t[m]-h)*_+h;t[m+1]=(t[m+1]-d)*_+d;t[m+2]=(t[m+2]-g)*_+g}else{t[m]=255;t[m+1]=255;t[m+2]=255}}}},{key:"createImageData",value:(o=image_asyncToGenerator(image_regeneratorRuntime().mark((function _callee(){var t,r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,L,D,N,U,G,H,q,z,W=arguments;return image_regeneratorRuntime().wrap((function _callee$(V){for(;;)switch(V.prev=V.next){case 0:t=W.length>0&&void 0!==W[0]&&W[0];r=W.length>1&&void 0!==W[1]&&W[1];o=this.drawWidth;c=this.drawHeight;l={width:o,height:c,interpolate:this.interpolate,kind:0,data:null};u=this.numComps;h=this.width;d=this.height;g=this.bpc;y=h*u*g+7>>3;m=r&&Nc.needsToBeResized(o,c);if(t){V.next=52;break}"DeviceGray"===this.colorSpace.name&&1===g?v=j:"DeviceRGB"!==this.colorSpace.name||8!==g||this.needsDecode||(v=R);if(!v||this.smask||this.mask||o!==h||c!==d){V.next=23;break}_=this.getImageBytes(d*y,{});if(!r){V.next=19;break}if(!m){V.next=18;break}return V.abrupt("return",Nc.createImage({data:_,kind:v,width:o,height:c,interpolate:this.interpolate},this.needsDecode));case 18:return V.abrupt("return",this.createBitmap(v,h,d,_));case 19:l.kind=v;l.data=_;if(this.needsDecode){assert(v===j,"PDFImage.createImageData: The image must be grayscale.");w=l.data;for(k=0,x=w.length;k<x;k++)w[k]^=255}return V.abrupt("return",l);case 23:if(!(this.image instanceof Va)||this.smask||this.mask||this.needsDecode){V.next=52;break}S=d*y;if(!r||m){V.next=43;break}C=!1;V.t0=this.colorSpace.name;V.next="DeviceGray"===V.t0?30:"DeviceRGB"===V.t0?33:"DeviceCMYK"===V.t0?36:38;break;case 30:S*=4;C=!0;return V.abrupt("break",38);case 33:S=S/3*4;C=!0;return V.abrupt("break",38);case 36:C=!0;return V.abrupt("break",38);case 38:if(!C){V.next=41;break}O=this.getImageBytes(S,{drawWidth:o,drawHeight:c,forceRGBA:!0});return V.abrupt("return",this.createBitmap(M,o,c,O));case 41:V.next=52;break;case 43:V.t1=this.colorSpace.name;V.next="DeviceGray"===V.t1?46:"DeviceRGB"===V.t1||"DeviceCMYK"===V.t1?47:52;break;case 46:S*=3;case 47:l.kind=R;l.data=this.getImageBytes(S,{drawWidth:o,drawHeight:c,forceRGB:!0});if(!m){V.next=51;break}return V.abrupt("return",Nc.createImage(l));case 51:return V.abrupt("return",l);case 52:T=this.getImageBytes(d*y,{internal:!0});E=0|T.length/y*c/d;L=this.getComponents(T);if(r&&!m){U=new OffscreenCanvas(o,c);G=U.getContext("2d");H=G.createImageData(o,c);q=H.data}l.kind=M;if(t||this.smask||this.mask){r&&!m||(q=new Uint8ClampedArray(o*c*4));D=1;N=!0;this.fillOpacity(q,o,c,E,L)}else{if(!r||m){l.kind=R;q=new Uint8ClampedArray(o*c*3);D=0}else{new Uint32Array(q.buffer).fill(Ar.isLittleEndian?4278190080:255);D=1}N=!1}this.needsDecode&&this.decodeBuffer(L);this.colorSpace.fillRgb(q,h,d,o,c,E,g,L,D);N&&this.undoPreblend(q,o,E);if(!r||m){V.next=65;break}G.putImageData(H,0,0);z=U.transferToImageBitmap();return V.abrupt("return",{data:null,width:o,height:c,bitmap:z,interpolate:this.interpolate});case 65:l.data=q;if(!m){V.next=68;break}return V.abrupt("return",Nc.createImage(l));case 68:return V.abrupt("return",l);case 69:case"end":return V.stop()}}),_callee,this)}))),function createImageData(){return o.apply(this,arguments)})},{key:"fillGrayBuffer",value:function fillGrayBuffer(t){var r=this.numComps;if(1!==r)throw new Sr("Reading gray scale from a color image: ".concat(r));var o,c,l=this.width,u=this.height,h=this.bpc,d=l*r*h+7>>3,g=this.getImageBytes(u*d,{internal:!0}),y=this.getComponents(g);if(1!==h){this.needsDecode&&this.decodeBuffer(y);c=l*u;var m=255/((1<<h)-1);for(o=0;o<c;++o)t[o]=m*y[o]}else{c=l*u;if(this.needsDecode)for(o=0;o<c;++o)t[o]=y[o]-1&255;else for(o=0;o<c;++o)t[o]=255&-y[o]}}},{key:"createBitmap",value:function createBitmap(t,r,o,c){var l,u=new OffscreenCanvas(r,o),h=u.getContext("2d");if(t===M)l=new ImageData(c,r,o);else{l=h.createImageData(r,o);convertToRGBA({kind:t,src:c,dest:new Uint32Array(l.data.buffer),width:r,height:o,inverseDecode:this.needsDecode})}h.putImageData(l,0,0);return{data:null,width:r,height:o,bitmap:u.transferToImageBitmap(),interpolate:this.interpolate}}},{key:"getImageBytes",value:function getImageBytes(t,r){var o=r.drawWidth,c=r.drawHeight,l=r.forceRGBA,u=void 0!==l&&l,h=r.forceRGB,d=void 0!==h&&h,g=r.internal,y=void 0!==g&&g;this.image.reset();this.image.drawWidth=o||this.width;this.image.drawHeight=c||this.height;this.image.forceRGBA=!!u;this.image.forceRGB=!!d;var m=this.image.getBytes(t);if(y||this.image instanceof Vn)return m;assert(m instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.');return new Uint8Array(m)}}],[{key:"buildImage",value:(r=image_asyncToGenerator(image_regeneratorRuntime().mark((function _callee2(t){var r,o,c,l,u,h,d,g,y,m,v,_;return image_regeneratorRuntime().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:r=t.xref,o=t.res,c=t.image,l=t.isInline,u=void 0!==l&&l,h=t.pdfFunctionFactory,d=t.localColorSpaceCache;g=c;y=null;m=null;v=c.dict.get("SMask");_=c.dict.get("Mask");v?v instanceof Xr?y=v:warn("Unsupported /SMask format."):_&&(_ instanceof Xr||Array.isArray(_)?m=_:warn("Unsupported /Mask format."));return w.abrupt("return",new PDFImage({xref:r,res:o,image:g,isInline:u,smask:y,mask:m,pdfFunctionFactory:h,localColorSpaceCache:d}));case 8:case"end":return w.stop()}}),_callee2)}))),function buildImage(t){return r.apply(this,arguments)})},{key:"createRawMask",value:function createRawMask(t){var r,o,c=t.imgArray,l=t.width,u=t.height,h=t.imageIsFromDecodeStream,d=t.inverseDecode,g=t.interpolate,y=(l+7>>3)*u,m=c.byteLength;if(!h||d&&!(y===m))if(d){(r=new Uint8Array(y)).set(c);r.fill(255,m)}else r=new Uint8Array(c);else r=c;if(d)for(o=0;o<m;o++)r[o]^=255;return{data:r,width:l,height:u,interpolate:g}}},{key:"createMask",value:(t=image_asyncToGenerator(image_regeneratorRuntime().mark((function _callee3(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k;return image_regeneratorRuntime().wrap((function _callee3$(x){for(;;)switch(x.prev=x.next){case 0:r=t.imgArray,o=t.width,c=t.height,l=t.imageIsFromDecodeStream,u=t.inverseDecode,h=t.interpolate,d=t.isOffscreenCanvasSupported,g=void 0!==d&&d;if(!(y=1===o&&1===c&&u===(0===r.length||!!(128&r[0])))){x.next=4;break}return x.abrupt("return",{isSingleOpaquePixel:y});case 4:if(!g){x.next=16;break}if(!Nc.needsToBeResized(o,c)){x.next=9;break}m=new Uint8ClampedArray(o*c*4);convertBlackAndWhiteToRGBA({src:r,dest:m,width:o,height:c,nonBlackColor:0,inverseDecode:u});return x.abrupt("return",Nc.createImage({kind:M,data:m,width:o,height:c,interpolate:h}));case 9:v=new OffscreenCanvas(o,c);_=v.getContext("2d");w=_.createImageData(o,c);convertBlackAndWhiteToRGBA({src:r,dest:w.data,width:o,height:c,nonBlackColor:0,inverseDecode:u});_.putImageData(w,0,0);k=v.transferToImageBitmap();return x.abrupt("return",{data:null,width:o,height:c,interpolate:h,bitmap:k});case 16:return x.abrupt("return",this.createRawMask({imgArray:r,width:o,height:c,inverseDecode:u,imageIsFromDecodeStream:l,interpolate:h}));case 17:case"end":return x.stop()}}),_callee3,this)}))),function createMask(r){return t.apply(this,arguments)})}]);var t,r,o;return PDFImage}();function evaluator_typeof(t){return evaluator_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},evaluator_typeof(t)}function evaluator_slicedToArray(t,r){return function evaluator_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function evaluator_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||evaluator_unsupportedIterableToArray(t,r)||function evaluator_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function evaluator_toConsumableArray(t){return function evaluator_arrayWithoutHoles(t){if(Array.isArray(t))return evaluator_arrayLikeToArray(t)}(t)||function evaluator_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||evaluator_unsupportedIterableToArray(t)||function evaluator_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function evaluator_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */evaluator_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==evaluator_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(evaluator_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function evaluator_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function evaluator_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){evaluator_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){evaluator_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function evaluator_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function evaluator_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,evaluator_toPropertyKey(c.key),c)}}function evaluator_createClass(t,r,o){r&&evaluator_defineProperties(t.prototype,r);o&&evaluator_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function evaluator_defineProperty(t,r,o){(r=evaluator_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function evaluator_toPropertyKey(t){var r=function evaluator_toPrimitive(t,r){if("object"!=evaluator_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=evaluator_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==evaluator_typeof(r)?r:String(r)}function evaluator_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=evaluator_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function evaluator_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return evaluator_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?evaluator_arrayLikeToArray(t,r):void 0}}function evaluator_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var Jc=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),$c=1,Zc=2,Qc=Promise.resolve();function normalizeBlendMode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)){var o,c=evaluator_createForOfIteratorHelper(t);try{for(c.s();!(o=c.n()).done;){var l=normalizeBlendMode(o.value,!0);if(l)return l}}catch(t){c.e(t)}finally{c.f()}warn("Unsupported blend mode Array: ".concat(t));return"source-over"}if(!(t instanceof Ur))return r?null:"source-over";switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(r)return null;warn("Unsupported blend mode: ".concat(t.name));return"source-over"}function incrementCachedImageMaskCount(t){var r;t.fn===ar&&(null===(r=t.args[0])||void 0===r?void 0:r.count)>0&&t.args[0].count++}var el=function(){function TimeSlotManager(){evaluator_classCallCheck(this,TimeSlotManager);this.reset()}evaluator_createClass(TimeSlotManager,[{key:"check",value:function check(){if(++this.checked<TimeSlotManager.CHECK_TIME_EVERY)return!1;this.checked=0;return this.endTime<=Date.now()}},{key:"reset",value:function reset(){this.endTime=Date.now()+TimeSlotManager.TIME_SLOT_DURATION_MS;this.checked=0}}]);return TimeSlotManager}();evaluator_defineProperty(el,"TIME_SLOT_DURATION_MS",20);evaluator_defineProperty(el,"CHECK_TIME_EVERY",100);var tl=function(){function PartialEvaluator(t){var r=t.xref,o=t.handler,c=t.pageIndex,l=t.idFactory,u=t.fontCache,h=t.builtInCMapCache,d=t.standardFontDataCache,g=t.globalImageCache,y=t.systemFontCache,m=t.options,v=void 0===m?null:m;evaluator_classCallCheck(this,PartialEvaluator);this.xref=r;this.handler=o;this.pageIndex=c;this.idFactory=l;this.fontCache=u;this.builtInCMapCache=h;this.standardFontDataCache=d;this.globalImageCache=g;this.systemFontCache=y;this.options=v||Jc;this.parsingType3Font=!1;this._regionalImageCache=new dc;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this);Nc.setMaxArea(this.options.canvasMaxAreaInBytes)}evaluator_createClass(PartialEvaluator,[{key:"_pdfFunctionFactory",get:function get(){return shadow(this,"_pdfFunctionFactory",new yc({xref:this.xref,isEvalSupported:this.options.isEvalSupported}))}},{key:"clone",value:function clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.create(this);r.options=Object.assign(Object.create(null),this.options,t);return r}},{key:"hasBlendModes",value:function hasBlendModes(t,r){if(!(t instanceof qr))return!1;if(t.objId&&r.has(t.objId))return!1;var o=new Wr(r);t.objId&&o.put(t.objId);for(var c=[t],l=this.xref;c.length;){var u=c.shift(),h=u.get("ExtGState");if(h instanceof qr){var d,g=evaluator_createForOfIteratorHelper(h.getRawValues());try{for(g.s();!(d=g.n()).done;){var y=d.value;if(y instanceof zr){if(o.has(y))continue;try{y=l.fetch(y)}catch(t){o.put(y);info('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(y instanceof qr){y.objId&&o.put(y.objId);var m=y.get("BM");if(m instanceof Ur){if("Normal"!==m.name)return!0}else if(void 0!==m&&Array.isArray(m)){var v,_=evaluator_createForOfIteratorHelper(m);try{for(_.s();!(v=_.n()).done;){var w=v.value;if(w instanceof Ur&&"Normal"!==w.name)return!0}}catch(t){_.e(t)}finally{_.f()}}}}}catch(t){g.e(t)}finally{g.f()}}var k=u.get("XObject");if(k instanceof qr){var x,S=evaluator_createForOfIteratorHelper(k.getRawValues());try{for(S.s();!(x=S.n()).done;){var C=x.value;if(C instanceof zr){if(o.has(C))continue;try{C=l.fetch(C)}catch(t){o.put(C);info('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if(C instanceof Xr){C.dict.objId&&o.put(C.dict.objId);var O=C.dict.get("Resources");if(O instanceof qr&&(!O.objId||!o.has(O.objId))){c.push(O);O.objId&&o.put(O.objId)}}}}catch(t){S.e(t)}finally{S.f()}}}var T,E=evaluator_createForOfIteratorHelper(o);try{for(E.s();!(T=E.n()).done;){var j=T.value;r.put(j)}}catch(t){E.e(t)}finally{E.f()}return!1}},{key:"fetchBuiltInCMap",value:(y=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee(t){var r,o,c,l,u,h;return evaluator_regeneratorRuntime().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!(o=this.builtInCMapCache.get(t))){d.next=3;break}return d.abrupt("return",o);case 3:l=this.options.cMapUrl;"Function"===(null===(r=l)||void 0===r?void 0:r.constructor.name)&&(l=l());if(null===l){d.next=21;break}u="".concat(l).concat(t,".bcmap");d.next=9;return fetch(u);case 9:if((h=d.sent).ok){d.next=12;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(u,'" with "').concat(h.statusText,'".'));case 12:d.t0=Uint8Array;d.next=15;return h.arrayBuffer();case 15:d.t1=d.sent;d.t2=new d.t0(d.t1);d.t3=Te.BINARY;c={cMapData:d.t2,compressionType:d.t3};d.next=24;break;case 21:d.next=23;return this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 23:c=d.sent;case 24:c.compressionType!==Te.NONE&&this.builtInCMapCache.set(t,c);return d.abrupt("return",c);case 26:case"end":return d.stop()}}),_callee,this)}))),function fetchBuiltInCMap(t){return y.apply(this,arguments)})},{key:"fetchStandardFontData",value:(g=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee2(t){var r,o,c,l,u,h;return evaluator_regeneratorRuntime().wrap((function _callee2$(d){for(;;)switch(d.prev=d.next){case 0:if(!(r=this.standardFontDataCache.get(t))){d.next=3;break}return d.abrupt("return",new tn(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){d.next=5;break}return d.abrupt("return",null);case 5:o=lo(),c=o[t];if(null===this.options.standardFontDataUrl){d.next=22;break}u="".concat(this.options.standardFontDataUrl).concat(c);d.next=10;return fetch(u);case 10:if((h=d.sent).ok){d.next=15;break}warn('fetchStandardFontData: failed to fetch file "'.concat(u,'" with "').concat(h.statusText,'".'));d.next=20;break;case 15:d.t0=Uint8Array;d.next=18;return h.arrayBuffer();case 18:d.t1=d.sent;l=new d.t0(d.t1);case 20:d.next=31;break;case 22:d.prev=22;d.next=25;return this.handler.sendWithPromise("FetchStandardFontData",{filename:c});case 25:l=d.sent;d.next=31;break;case 28:d.prev=28;d.t2=d.catch(22);warn('fetchStandardFontData: failed to fetch file "'.concat(c,'" with "').concat(d.t2,'".'));case 31:if(l){d.next=33;break}return d.abrupt("return",null);case 33:this.standardFontDataCache.set(t,l);return d.abrupt("return",new tn(l));case 35:case"end":return d.stop()}}),_callee2,this,[[22,28]])}))),function fetchStandardFontData(t){return g.apply(this,arguments)})},{key:"buildFormXObject",value:(d=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee3(t,r,o,c,l,u,h){var d,g,y,m,v,_,w,k,x,S,C;return evaluator_regeneratorRuntime().wrap((function _callee3$(O){for(;;)switch(O.prev=O.next){case 0:d=r.dict;g=d.getArray("Matrix");y=d.getArray("BBox");y=Array.isArray(y)&&4===y.length?Or.normalizeRect(y):null;if(!d.has("OC")){O.next=8;break}O.next=7;return this.parseMarkedContentProps(d.get("OC"),t);case 7:m=O.sent;case 8:void 0!==m&&c.addOp(Kt,["OC",m]);if(!(_=d.get("Group"))){O.next=29;break}v={matrix:g,bbox:y,smask:o,isolated:!1,knockout:!1};w=_.get("S");k=null;if(!isName(w,"Transparency")){O.next=27;break}v.isolated=_.get("I")||!1;v.knockout=_.get("K")||!1;if(!_.has("CS")){O.next=27;break}x=_.getRaw("CS");if(!(S=ln.getCached(x,this.xref,h))){O.next=24;break}k=S;O.next=27;break;case 24:O.next=26;return this.parseColorSpace({cs:x,resources:t,localColorSpaceCache:h});case 26:k=O.sent;case 27:if(null!=o&&o.backdrop){k||(k=ln.singletons.rgb);o.backdrop=k.getRgb(o.backdrop,0)}c.addOp(er,[v]);case 29:C=_?[g,null]:[g,y];c.addOp(Zt,C);return O.abrupt("return",this.getOperatorList({stream:r,task:l,resources:d.get("Resources")||t,operatorList:c,initialState:u}).then((function(){c.addOp(Qt,[]);_&&c.addOp(tr,[v]);void 0!==m&&c.addOp(Yt,[])})));case 32:case"end":return O.stop()}}),_callee3,this)}))),function buildFormXObject(t,r,o,c,l,u,h){return d.apply(this,arguments)})},{key:"_sendImgData",value:function _sendImgData(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=r?[r.bitmap||r.data.buffer]:null;return this.parsingType3Font||o?this.handler.send("commonobj",[t,"Image",r],c):this.handler.send("obj",[t,this.pageIndex,"Image",r],c)}},{key:"buildPaintImageXObject",value:(h=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee5(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z=this;return evaluator_regeneratorRuntime().wrap((function _callee5$(W){for(;;)switch(W.prev=W.next){case 0:r=t.resources,o=t.image,c=t.isInline,l=void 0!==c&&c,u=t.operatorList,h=t.cacheKey,d=t.localImageCache,g=t.localColorSpaceCache;y=o.dict;m=y.objId;v=y.get("W","Width");_=y.get("H","Height");if(v&&"number"==typeof v&&_&&"number"==typeof _){W.next=8;break}warn("Image dimensions are missing, or not numbers.");return W.abrupt("return");case 8:if(!(-1!==(w=this.options.maxImageSize)&&v*_>w)){W.next=15;break}k="Image exceeded maximum allowed size and was removed.";if(!this.options.ignoreErrors){W.next=14;break}warn(k);return W.abrupt("return");case 14:throw new Error(k);case 15:if(!y.has("OC")){W.next=19;break}W.next=18;return this.parseMarkedContentProps(y.get("OC"),r);case 18:x=W.sent;case 19:if(!y.get("IM","ImageMask")){W.next=47;break}O=y.get("I","Interpolate");T=v+7>>3;E=o.getBytes(T*_);j=y.getArray("D","Decode");if(!this.parsingType3Font){W.next=32;break}(S=Yc.createRawMask({imgArray:E,width:v,height:_,imageIsFromDecodeStream:o instanceof Vn,inverseDecode:(null==j?void 0:j[0])>0,interpolate:O})).cached=!!h;C=[S];u.addImageOps(ar,C,x);if(h){R={fn:ar,args:C,optionalContent:x};d.set(h,m,R);m&&this._regionalImageCache.set(null,m,R)}return W.abrupt("return");case 32:W.next=34;return Yc.createMask({imgArray:E,width:v,height:_,imageIsFromDecodeStream:o instanceof Vn,inverseDecode:(null==j?void 0:j[0])>0,interpolate:O,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});case 34:if(!(S=W.sent).isSingleOpaquePixel){W.next=39;break}u.addImageOps(hr,[],x);if(h){M={fn:hr,args:[],optionalContent:x};d.set(h,m,M);m&&this._regionalImageCache.set(null,m,M)}return W.abrupt("return");case 39:L="mask_".concat(this.idFactory.createObjId());u.addDependency(L);S.dataLen=S.bitmap?S.width*S.height*4:S.data.length;this._sendImgData(L,S);C=[{data:L,width:S.width,height:S.height,interpolate:S.interpolate,count:1}];u.addImageOps(ar,C,x);if(h){D={fn:ar,args:C,optionalContent:x};d.set(h,m,D);m&&this._regionalImageCache.set(null,m,D)}return W.abrupt("return");case 47:if(!l||y.has("SMask")||y.has("Mask")||!(v+_<200)){W.next=56;break}N=new Yc({xref:this.xref,res:r,image:o,isInline:l,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:g});W.next=52;return N.createImageData(!0,!1);case 52:S=W.sent;u.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported;u.addImageOps(cr,[S],x);return W.abrupt("return");case 56:U="img_".concat(this.idFactory.createObjId()),G=!1;if(this.parsingType3Font)U="".concat(this.idFactory.getDocId(),"_type3_").concat(U);else if(h&&m&&(G=this.globalImageCache.shouldCache(m,this.pageIndex))){assert(!l,"Cannot cache an inline image globally.");U="".concat(this.idFactory.getDocId(),"_").concat(U)}u.addDependency(U);C=[U,v,_];u.addImageOps(sr,C,x);if(!(G&&v*_>25e4)){W.next=69;break}W.next=64;return this.handler.sendWithPromise("commonobj",[U,"CopyLocalImage",{imageRef:m}]);case 64:if(!(H=W.sent)){W.next=69;break}this.globalImageCache.setData(m,{objId:U,fn:sr,args:C,optionalContent:x,byteSize:0});this.globalImageCache.addByteSize(m,H);return W.abrupt("return");case 69:Yc.buildImage({xref:this.xref,res:r,image:o,isInline:l,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:g}).then(function(){var t=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee4(t){return evaluator_regeneratorRuntime().wrap((function _callee4$(r){for(;;)switch(r.prev=r.next){case 0:r.next=2;return t.createImageData(!1,z.options.isOffscreenCanvasSupported);case 2:(S=r.sent).dataLen=S.bitmap?S.width*S.height*4:S.data.length;S.ref=m;G&&z.globalImageCache.addByteSize(m,S.dataLen);return r.abrupt("return",z._sendImgData(U,S,G));case 7:case"end":return r.stop()}}),_callee4)})));return function(r){return t.apply(this,arguments)}}()).catch((function(t){warn('Unable to decode image "'.concat(U,'": "').concat(t,'".'));return z._sendImgData(U,null,G)}));if(h){q={fn:sr,args:C,optionalContent:x};d.set(h,m,q);if(m){this._regionalImageCache.set(null,m,q);G&&this.globalImageCache.setData(m,{objId:U,fn:sr,args:C,optionalContent:x,byteSize:0})}}case 71:case"end":return W.stop()}}),_callee5,this)}))),function buildPaintImageXObject(t){return h.apply(this,arguments)})},{key:"handleSMask",value:function handleSMask(t,r,o,c,l,u){var h=t.get("G"),d={subtype:t.get("S").name,backdrop:t.get("BC")},g=t.get("TR");if(isPDFFunction(g)){for(var y=this._pdfFunctionFactory.create(g),m=new Uint8Array(256),v=new Float32Array(1),_=0;_<256;_++){v[0]=_/255;y(v,0,v,0);m[_]=255*v[0]|0}d.transferMap=m}return this.buildFormXObject(r,h,d,o,c,l.state.clone(),u)}},{key:"handleTransferFunction",value:function handleTransferFunction(t){var r;if(Array.isArray(t))r=t;else{if(!isPDFFunction(t))return null;r=[t]}var o,c=[],l=0,u=0,h=evaluator_createForOfIteratorHelper(r);try{for(h.s();!(o=h.n()).done;){var d=o.value,g=this.xref.fetchIfRef(d);l++;if(isName(g,"Identity"))c.push(null);else{if(!isPDFFunction(g))return null;for(var y=this._pdfFunctionFactory.create(g),m=new Uint8Array(256),v=new Float32Array(1),_=0;_<256;_++){v[0]=_/255;y(v,0,v,0);m[_]=255*v[0]|0}c.push(m);u++}}}catch(t){h.e(t)}finally{h.f()}return 1!==l&&4!==l||0===u?null:c}},{key:"handleTilingType",value:function handleTilingType(t,r,o,c,l,u,h,d){var g=this,y=new Kc,m=qr.merge({xref:this.xref,dictArray:[l.get("Resources"),o]});return this.getOperatorList({stream:c,task:h,resources:m,operatorList:y}).then((function(){var o=y.getIR(),c=getTilingPatternIR(o,l,r);u.addDependencies(y.dependencies);u.addOp(t,c);l.objId&&d.set(null,l.objId,{operatorListIR:o,dict:l})})).catch((function(t){if(!(t instanceof Cr)){if(!g.options.ignoreErrors)throw t;warn('handleTilingType - ignoring pattern: "'.concat(t,'".'))}}))}},{key:"handleSetFont",value:function handleSetFont(t,r,o,c,l,u){var h=this,d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,g=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,y=(null==r?void 0:r[0])instanceof Ur?r[0].name:null;return this.loadFont(y,o,t,d,g).then((function(r){return r.font.isType3Font?r.loadType3Data(h,t,l).then((function(){c.addDependencies(r.type3Dependencies);return r})).catch((function(t){return new rl({loadedName:"g_font_error",font:new ts("Type3 font load error: ".concat(t)),dict:r.font,evaluatorOptions:h.options})})):r})).then((function(t){u.font=t.font;t.send(h.handler);return t.loadedName}))}},{key:"handleText",value:function handleText(t,r){var o=r.font,c=o.charsToGlyphs(t);if(o.data){(!!(r.textRenderingMode&E)||"Pattern"===r.fillColorSpace.name||o.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(o,c,this.handler,this.options)}return c}},{key:"ensureStateFont",value:function ensureStateFont(t){if(!t.font){var r=new Sr("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw r;warn('ensureStateFont: "'.concat(r,'".'))}}},{key:"setGState",value:(u=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee6(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S=this;return evaluator_regeneratorRuntime().wrap((function _callee6$(C){for(;;)switch(C.prev=C.next){case 0:r=t.resources,o=t.gState,c=t.operatorList,l=t.cacheKey,u=t.task,h=t.stateManager,d=t.localGStateCache,g=t.localColorSpaceCache;y=o.objId;m=!0;v=[];_=Promise.resolve();w=evaluator_createForOfIteratorHelper(o.getKeys());C.prev=6;x=evaluator_regeneratorRuntime().mark((function _loop(){var t,l,d;return evaluator_regeneratorRuntime().wrap((function _loop$(y){for(;;)switch(y.prev=y.next){case 0:t=k.value;l=o.get(t);y.t0=t;y.next="Type"===y.t0?5:"LW"===y.t0||"LC"===y.t0||"LJ"===y.t0||"ML"===y.t0||"D"===y.t0||"RI"===y.t0||"FL"===y.t0||"CA"===y.t0||"ca"===y.t0?6:"Font"===y.t0?8:"BM"===y.t0?11:"SMask"===y.t0?13:"TR"===y.t0?18:"OP"===y.t0||"op"===y.t0||"OPM"===y.t0||"BG"===y.t0||"BG2"===y.t0||"UCR"===y.t0||"UCR2"===y.t0||"TR2"===y.t0||"HT"===y.t0||"SM"===y.t0||"SA"===y.t0||"AIS"===y.t0||"TK"===y.t0?21:23;break;case 5:return y.abrupt("break",25);case 6:v.push([t,l]);return y.abrupt("break",25);case 8:m=!1;_=_.then((function(){return S.handleSetFont(r,null,l[0],c,u,h.state).then((function(r){c.addDependency(r);v.push([t,[r,l[1]]])}))}));return y.abrupt("break",25);case 11:v.push([t,normalizeBlendMode(l)]);return y.abrupt("break",25);case 13:if(!isName(l,"None")){y.next=16;break}v.push([t,!1]);return y.abrupt("break",25);case 16:if(l instanceof qr){m=!1;_=_.then((function(){return S.handleSMask(l,r,c,u,h,g)}));v.push([t,!0])}else warn("Unsupported SMask type");return y.abrupt("break",25);case 18:d=S.handleTransferFunction(l);v.push([t,d]);return y.abrupt("break",25);case 21:info("graphic state operator "+t);return y.abrupt("break",25);case 23:info("Unknown graphic state operator "+t);return y.abrupt("break",25);case 25:case"end":return y.stop()}}),_loop)}));w.s();case 9:if((k=w.n()).done){C.next=13;break}return C.delegateYield(x(),"t0",11);case 11:C.next=9;break;case 13:C.next=18;break;case 15:C.prev=15;C.t1=C.catch(6);w.e(C.t1);case 18:C.prev=18;w.f();return C.finish(18);case 21:return C.abrupt("return",_.then((function(){v.length>0&&c.addOp(Ne,[v]);m&&d.set(l,y,v)})));case 22:case"end":return C.stop()}}),_callee6,null,[[6,15,18,21]])}))),function setGState(t){return u.apply(this,arguments)})},{key:"loadFont",value:function loadFont(t,r,o){var c,l,u=this,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,g=function(){var o=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee7(){return evaluator_regeneratorRuntime().wrap((function _callee7$(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new rl({loadedName:"g_font_error",font:new ts('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:u.options}));case 1:case"end":return o.stop()}}),_callee7)})));return function errorFont(){return o.apply(this,arguments)}}();if(r)r instanceof zr&&(l=r);else{var y=o.get("Font");y&&(l=y.getRaw(t))}if(l){if(this.parsingType3Font&&this.type3FontRefs.has(l))return g();if(this.fontCache.has(l))return this.fontCache.get(l);r=this.xref.fetchIfRef(l)}if(!(r instanceof qr)){if(!this.options.ignoreErrors&&!this.parsingType3Font){warn('Font "'.concat(t,'" is not available.'));return g()}warn('Font "'.concat(t,'" is not available -- attempting to fallback to a default font.'));r=h||PartialEvaluator.fallbackFontDict}if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var m,v=new Fr;try{(m=this.preEvaluateFont(r)).cssFontInfo=d}catch(t){warn('loadFont - preEvaluateFont failed: "'.concat(t,'".'));return g()}var _,w=m,k=w.descriptor,x=w.hash,S=l instanceof zr;if(x&&k instanceof qr){var C=k.fontAliases||(k.fontAliases=Object.create(null));if(C[x]){var O=C[x].aliasRef;if(S&&O&&this.fontCache.has(O)){this.fontCache.putAlias(l,O);return this.fontCache.get(l)}}else C[x]={fontID:this.idFactory.createFontId()};S&&(C[x].aliasRef=l);_=C[x].fontID}else _=this.idFactory.createFontId();assert(null===(c=_)||void 0===c?void 0:c.startsWith("f"),'The "fontID" must be (correctly) defined.');if(S)this.fontCache.put(l,v.promise);else{r.cacheKey="cacheKey_".concat(_);this.fontCache.put(r.cacheKey,v.promise)}r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(_);this.translateFont(m).then((function(t){v.resolve(new rl({loadedName:r.loadedName,font:t,dict:r,evaluatorOptions:u.options}))})).catch((function(t){warn('loadFont - translateFont failed: "'.concat(t,'".'));v.resolve(new rl({loadedName:r.loadedName,font:new ts(t instanceof Error?t.message:t),dict:r,evaluatorOptions:u.options}))}));return v.promise}},{key:"buildPath",value:function buildPath(t,r,o){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=t.length-1;o||(o=[]);if(l<0||t.fnArray[l]!==pr){if(c){warn('Encountered path operator "'.concat(r,'" inside of a text object.'));t.addOp(Ue,null)}var u;switch(r){case Ye:var h=o[0]+o[2],d=o[1]+o[3];u=[Math.min(o[0],h),Math.max(o[0],h),Math.min(o[1],d),Math.max(o[1],d)];break;case qe:case ze:u=[o[0],o[0],o[1],o[1]];break;default:u=[1/0,-1/0,1/0,-1/0]}t.addOp(pr,[[r],o,u]);c&&t.addOp(Ge,null)}else{var g,y=t.argsArray[l];y[0].push(r);(g=y[1]).push.apply(g,evaluator_toConsumableArray(o));var m=y[2];switch(r){case Ye:var v=o[0]+o[2],_=o[1]+o[3];m[0]=Math.min(m[0],o[0],v);m[1]=Math.max(m[1],o[0],v);m[2]=Math.min(m[2],o[1],_);m[3]=Math.max(m[3],o[1],_);break;case qe:case ze:m[0]=Math.min(m[0],o[0]);m[1]=Math.max(m[1],o[0]);m[2]=Math.min(m[2],o[1]);m[3]=Math.max(m[3],o[1])}}}},{key:"parseColorSpace",value:function parseColorSpace(t){var r=this,o=t.cs,c=t.resources,l=t.localColorSpaceCache;return ln.parseAsync({cs:o,xref:this.xref,resources:c,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}).catch((function(t){if(t instanceof Cr)return null;if(r.options.ignoreErrors){warn('parseColorSpace - ignoring ColorSpace: "'.concat(t,'".'));return null}throw t}))}},{key:"parseShading",value:function parseShading(t){var r=t.shading,o=t.resources,c=t.localColorSpaceCache,l=t.localShadingPatternCache,u=l.get(r);if(!u){var h=cs.parseShading(r,this.xref,o,this._pdfFunctionFactory,c).getIR();u="pattern_".concat(this.idFactory.createObjId());this.parsingType3Font&&(u="".concat(this.idFactory.getDocId(),"_type3_").concat(u));l.set(r,u);this.parsingType3Font?this.handler.send("commonobj",[u,"Pattern",h]):this.handler.send("obj",[u,this.pageIndex,"Pattern",h])}return u}},{key:"handleColorN",value:function handleColorN(t,r,o,c,l,u,h,d,g,y){var m=o.pop();if(m instanceof Ur){var v=l.getRaw(m.name),_=v instanceof zr&&g.getByRef(v);if(_)try{var w=c.base?c.base.getRgb(o,0):null,k=getTilingPatternIR(_.operatorListIR,_.dict,w);t.addOp(r,k);return}catch(t){}var x=this.xref.fetchIfRef(v);if(x){var S=x instanceof Xr?x.dict:x,C=S.get("PatternType");if(C===$c){var O=c.base?c.base.getRgb(o,0):null;return this.handleTilingType(r,O,u,x,S,t,h,g)}if(C===Zc){var T=S.get("Shading"),E=S.getArray("Matrix"),j=this.parseShading({shading:T,resources:u,localColorSpaceCache:d,localShadingPatternCache:y});t.addOp(r,["Shading",j,E]);return}throw new Sr("Unknown PatternType: ".concat(C))}}throw new Sr("Unknown PatternName: ".concat(m))}},{key:"_parseVisibilityExpression",value:function _parseVisibilityExpression(t,r,o){if(++r>10)warn("Visibility expression is too deeply nested");else{var c=t.length,l=this.xref.fetchIfRef(t[0]);if(!(c<2)&&l instanceof Ur){switch(l.name){case"And":case"Or":case"Not":o.push(l.name);break;default:warn("Invalid operator ".concat(l.name," in visibility expression"));return}for(var u=1;u<c;u++){var h=t[u],d=this.xref.fetchIfRef(h);if(Array.isArray(d)){var g=[];o.push(g);this._parseVisibilityExpression(d,r,g)}else h instanceof zr&&o.push(h.toString())}}else warn("Invalid visibility expression")}}},{key:"parseMarkedContentProps",value:(l=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee8(t,r){var o,c,l,u,h,d,g,y,m,v,_;return evaluator_regeneratorRuntime().wrap((function _callee8$(w){for(;;)switch(w.prev=w.next){case 0:if(!(t instanceof Ur)){w.next=5;break}l=r.get("Properties");c=l.get(t.name);w.next=10;break;case 5:if(!(t instanceof qr)){w.next=9;break}c=t;w.next=10;break;case 9:throw new Sr("Optional content properties malformed.");case 10:if("OCG"!==(u=null===(o=c.get("Type"))||void 0===o?void 0:o.name)){w.next=15;break}return w.abrupt("return",{type:u,id:c.objId});case 15:if("OCMD"!==u){w.next=31;break}h=c.get("VE");if(!Array.isArray(h)){w.next=22;break}d=[];this._parseVisibilityExpression(h,0,d);if(!(d.length>0)){w.next=22;break}return w.abrupt("return",{type:"OCMD",expression:d});case 22:g=c.get("OCGs");if(!(Array.isArray(g)||g instanceof qr)){w.next=29;break}y=[];if(Array.isArray(g)){m=evaluator_createForOfIteratorHelper(g);try{for(m.s();!(v=m.n()).done;){_=v.value;y.push(_.toString())}}catch(t){m.e(t)}finally{m.f()}}else y.push(g.objId);return w.abrupt("return",{type:u,ids:y,policy:c.get("P")instanceof Ur?c.get("P").name:null,expression:null});case 29:if(!(g instanceof zr)){w.next=31;break}return w.abrupt("return",{type:u,id:g.toString()});case 31:return w.abrupt("return",null);case 32:case"end":return w.stop()}}),_callee8,this)}))),function parseMarkedContentProps(t,r){return l.apply(this,arguments)})},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.stream,c=t.task,l=t.resources,u=t.operatorList,h=t.initialState,d=void 0===h?null:h,g=t.fallbackFontDict,y=void 0===g?null:g;l||(l=qr.empty);d||(d=new il);if(!u)throw new Error('getOperatorList: missing "operatorList" parameter');var m=this,v=this.xref,_=!1,w=new lc,k=new uc,x=new hc,S=new pc,C=new Map,O=l.get("XObject")||qr.empty,T=l.get("Pattern")||qr.empty,E=new nl(d),j=new sl(o,v,E),R=new el;function closePendingRestoreOPS(t){for(var r=0,o=j.savedStatesDepth;r<o;r++)u.addOp(Ge,[])}return new Promise((function promiseBody(t,r){var o=function next(o){Promise.all([o,u.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};c.ensureNotTerminated();R.reset();for(var h,d,g,M,L,D,N={};!(h=R.check());){N.args=null;if(!j.read(N))break;var U=N.args,G=N.fn;switch(0|G){case zt:D=U[0]instanceof Ur;L=U[0].name;if(D){var H=w.getByName(L);if(H){u.addImageOps(H.fn,H.args,H.optionalContent);incrementCachedImageMaskCount(H);U=null;continue}}o(new Promise((function(t,r){if(!D)throw new Sr("XObject must be referred to by name.");var o=O.getRaw(L);if(o instanceof zr){var h=w.getByRef(o)||m._regionalImageCache.getByRef(o);if(h){u.addImageOps(h.fn,h.args,h.optionalContent);incrementCachedImageMaskCount(h);t();return}var d=m.globalImageCache.getData(o,m.pageIndex);if(d){u.addDependency(d.objId);u.addImageOps(d.fn,d.args,d.optionalContent);t();return}o=v.fetch(o)}if(!(o instanceof Xr))throw new Sr("XObject should be a stream");var g=o.dict.get("Subtype");if(!(g instanceof Ur))throw new Sr("XObject should have a Name subtype");if("Form"!==g.name)if("Image"!==g.name){if("PS"!==g.name)throw new Sr("Unhandled XObject subtype ".concat(g.name));info("Ignored XObject subtype PS");t()}else m.buildPaintImageXObject({resources:l,image:o,operatorList:u,cacheKey:L,localImageCache:w,localColorSpaceCache:k}).then(t,r);else{E.save();m.buildFormXObject(l,o,null,u,c,E.state.clone(),k).then((function(){E.restore();t()}),r)}})).catch((function(t){if(!(t instanceof Cr)){if(!m.options.ignoreErrors)throw t;warn('getOperatorList - ignoring XObject: "'.concat(t,'".'))}})));return;case gt:var q=U[1];o(m.handleSetFont(l,U,null,u,c,E.state,y).then((function(t){u.addDependency(t);u.addOp(gt,[t,q])})));return;case ct:_=!0;break;case lt:_=!1;break;case qt:var z=U[0].cacheKey;if(z){var W=w.getByName(z);if(W){u.addImageOps(W.fn,W.args,W.optionalContent);incrementCachedImageMaskCount(W);U=null;continue}}o(m.buildPaintImageXObject({resources:l,image:U[0],isInline:!0,operatorList:u,cacheKey:z,localImageCache:w,localColorSpaceCache:k}));return;case kt:if(!E.state.font){m.ensureStateFont(E.state);continue}U[0]=m.handleText(U[0],E.state);break;case xt:if(!E.state.font){m.ensureStateFont(E.state);continue}var V,X=[],K=E.state,Y=evaluator_createForOfIteratorHelper(U[0]);try{for(Y.s();!(V=Y.n()).done;){var J=V.value;if("string"==typeof J){var $;($=X).push.apply($,evaluator_toConsumableArray(m.handleText(J,K)))}else"number"==typeof J&&X.push(J)}}catch(t){Y.e(t)}finally{Y.f()}U[0]=X;G=kt;break;case St:if(!E.state.font){m.ensureStateFont(E.state);continue}u.addOp(wt);U[0]=m.handleText(U[0],E.state);G=kt;break;case Ct:if(!E.state.font){m.ensureStateFont(E.state);continue}u.addOp(wt);u.addOp(ft,[U.shift()]);u.addOp(ut,[U.shift()]);U[0]=m.handleText(U[0],E.state);G=kt;break;case yt:E.state.textRenderingMode=U[0];break;case It:var Z=ln.getCached(U[0],v,k);if(Z){E.state.fillColorSpace=Z;continue}o(m.parseColorSpace({cs:U[0],resources:l,localColorSpaceCache:k}).then((function(t){t&&(E.state.fillColorSpace=t)})));return;case Ot:var Q=ln.getCached(U[0],v,k);if(Q){E.state.strokeColorSpace=Q;continue}o(m.parseColorSpace({cs:U[0],resources:l,localColorSpaceCache:k}).then((function(t){t&&(E.state.strokeColorSpace=t)})));return;case Et:U=(M=E.state.fillColorSpace).getRgb(U,0);G=Bt;break;case Tt:U=(M=E.state.strokeColorSpace).getRgb(U,0);G=Lt;break;case Mt:E.state.fillColorSpace=ln.singletons.gray;U=ln.singletons.gray.getRgb(U,0);G=Bt;break;case Rt:E.state.strokeColorSpace=ln.singletons.gray;U=ln.singletons.gray.getRgb(U,0);G=Lt;break;case Nt:E.state.fillColorSpace=ln.singletons.cmyk;U=ln.singletons.cmyk.getRgb(U,0);G=Bt;break;case Dt:E.state.strokeColorSpace=ln.singletons.cmyk;U=ln.singletons.cmyk.getRgb(U,0);G=Lt;break;case Bt:E.state.fillColorSpace=ln.singletons.rgb;U=ln.singletons.rgb.getRgb(U,0);break;case Lt:E.state.strokeColorSpace=ln.singletons.rgb;U=ln.singletons.rgb.getRgb(U,0);break;case jt:if("Pattern"===(M=E.state.fillColorSpace).name){o(m.handleColorN(u,jt,U,M,T,l,c,k,S,C));return}U=M.getRgb(U,0);G=Bt;break;case Ft:if("Pattern"===(M=E.state.strokeColorSpace).name){o(m.handleColorN(u,Ft,U,M,T,l,c,k,S,C));return}U=M.getRgb(U,0);G=Lt;break;case Ut:var ee=l.get("Shading");if(!ee)throw new Sr("No shading resource found");var te=ee.get(U[0].name);if(!te)throw new Sr("No shading object found");U=[m.parseShading({shading:te,resources:l,localColorSpaceCache:k,localShadingPatternCache:C})];G=Ut;break;case Ne:D=U[0]instanceof Ur;L=U[0].name;if(D){var re=x.getByName(L);if(re){re.length>0&&u.addOp(Ne,[re]);U=null;continue}}o(new Promise((function(t,r){if(!D)throw new Sr("GState must be referred to by name.");var o=l.get("ExtGState");if(!(o instanceof qr))throw new Sr("ExtGState should be a dictionary.");var h=o.get(L);if(!(h instanceof qr))throw new Sr("GState should be a dictionary.");m.setGState({resources:l,gState:h,operatorList:u,cacheKey:L,task:c,stateManager:E,localGStateCache:x,localColorSpaceCache:k}).then(t,r)})).catch((function(t){if(!(t instanceof Cr)){if(!m.options.ignoreErrors)throw t;warn('getOperatorList - ignoring ExtGState: "'.concat(t,'".'))}})));return;case qe:case ze:case We:case Ve:case Xe:case Ke:case Ye:m.buildPath(u,G,U,_);continue;case Wt:case Vt:case Jt:case $t:continue;case Kt:if(!(U[0]instanceof Ur)){warn("Expected name for beginMarkedContentProps arg0=".concat(U[0]));continue}if("OC"===U[0].name){o(m.parseMarkedContentProps(U[1],l).then((function(t){u.addOp(Kt,["OC",t])})).catch((function(t){if(!(t instanceof Cr)){if(!m.options.ignoreErrors)throw t;warn('getOperatorList - ignoring beginMarkedContentProps: "'.concat(t,'".'))}})));return}U=[U[0].name,U[1]instanceof qr?U[1].get("MCID"):null];break;default:if(null!==U){for(d=0,g=U.length;d<g&&!(U[d]instanceof qr);d++);if(d<g){warn("getOperatorList - ignoring operator: "+G);continue}}}u.addOp(G,U)}if(h)o(Qc);else{closePendingRestoreOPS();t()}})).catch((function(t){if(!(t instanceof Cr)){if(!r.options.ignoreErrors)throw t;warn('getOperatorList - ignoring errors during "'.concat(c.name,'" ')+'task: "'.concat(t,'".'));closePendingRestoreOPS()}}))}},{key:"getTextContent",value:function getTextContent(o){var c=this,l=o.stream,u=o.task,h=o.resources,d=o.stateManager,g=void 0===d?null:d,y=o.includeMarkedContent,m=void 0!==y&&y,v=o.sink,_=o.seenStyles,w=void 0===_?new Set:_,k=o.viewBox,x=o.markedContentData,S=void 0===x?null:x,C=o.disableNormalization,O=void 0!==C&&C;h||(h=qr.empty);g||(g=new nl(new al));m&&(S||(S={level:0}));var T={items:[],styles:Object.create(null)},E={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},j=[" "," "],R=0;function saveLastChar(t){var r=(R+1)%2,o=" "!==j[R]&&" "===j[r];j[R]=t;R=r;return o}function shouldAddWhitepsace(){return" "!==j[R]&&" "===j[(R+1)%2]}function resetLastChars(){j[0]=j[1]=" ";R=0}var M,L=.102,D=.03,N=-.2,U=.102,G=.6,H=.25,q=this,z=this.xref,W=[],V=null,X=new lc,K=new hc,Y=new sl(l,z,g);function pushWhitespace(t){var r=t.width,o=void 0===r?0:r,c=t.height,l=void 0===c?0:c,u=t.transform,h=void 0===u?E.prevTransform:u,d=t.fontName,g=void 0===d?E.fontName:d;T.items.push({str:" ",dir:"ltr",width:o,height:l,transform:h,fontName:g,hasEOL:!1})}function getCurrentTextTransform(){var t=M.font,o=[M.fontSize*M.textHScale,0,0,M.fontSize,0,M.textRise];if(t.isType3Font&&(M.fontSize<=1||t.isCharBBox)&&!isArrayEqual(M.fontMatrix,r)){var c=t.bbox[3]-t.bbox[1];c>0&&(o[3]*=c*M.fontMatrix[3])}return Or.transform(M.ctm,Or.transform(M.textMatrix,o))}function ensureTextContentItem(){if(E.initialized)return E;var t=M,r=t.font,o=t.loadedName;if(!w.has(o)){w.add(o);T.styles[o]={fontFamily:r.fallbackName,ascent:r.ascent,descent:r.descent,vertical:r.vertical};if(q.options.fontExtraProperties&&r.systemFontInfo){var c=T.styles[o];c.fontSubstitution=r.systemFontInfo.css;c.fontSubstitutionLoadedName=r.systemFontInfo.loadedName}}E.fontName=o;var l=E.transform=getCurrentTextTransform();if(r.vertical){E.width=E.totalWidth=Math.hypot(l[0],l[1]);E.height=E.totalHeight=0;E.vertical=!0}else{E.width=E.totalWidth=0;E.height=E.totalHeight=Math.hypot(l[2],l[3]);E.vertical=!1}var u=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),h=Math.hypot(M.ctm[0],M.ctm[1]);E.textAdvanceScale=h*u;var d=M.fontSize;E.trackingSpaceMin=d*L;E.notASpace=d*D;E.negativeSpaceMax=d*N;E.spaceInFlowMin=d*U;E.spaceInFlowMax=d*G;E.hasEOL=!1;E.initialized=!0;return E}function updateAdvanceScale(){if(E.initialized){var t=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),r=Math.hypot(M.ctm[0],M.ctm[1])*t;if(r!==E.textAdvanceScale){if(E.vertical){E.totalHeight+=E.height*E.textAdvanceScale;E.height=0}else{E.totalWidth+=E.width*E.textAdvanceScale;E.width=0}E.textAdvanceScale=r}}}function runBidiTransform(t){var r=t.str.join("");O||(r=function normalizeUnicode(t){if(!Er){Er=/([\xA0\xB5\u037E\u0EB3\u2000-\u200A\u202F\u2126\uFB00-\uFB04\uFB06\uFB20-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBA1\uFBA4-\uFBA9\uFBAE-\uFBB1\uFBD3-\uFBDC\uFBDE-\uFBE7\uFBEA-\uFBF8\uFBFC\uFBFD\uFC00-\uFC5D\uFC64-\uFCF1\uFCF5-\uFD3D\uFD88\uFDF4\uFDFA\uFDFB\uFE71\uFE77\uFE79\uFE7B\uFE7D]+)|(\uFB05+)/g;jr=new Map([["ſt","ſt"]])}return t.replaceAll(Er,(function(t,r,o){return r?r.normalize("NFKC"):jr.get(o)}))}(r));var o=bidi(r,-1,t.vertical);return{str:o.str,dir:o.dir,width:Math.abs(t.totalWidth),height:Math.abs(t.totalHeight),transform:t.transform,fontName:t.fontName,hasEOL:t.hasEOL}}function handleSetFont(t,o){return q.loadFont(t,o,h).then((function(t){return t.font.isType3Font?t.loadType3Data(q,h,u).catch((function(){})).then((function(){return t})):t})).then((function(t){M.loadedName=t.loadedName;M.font=t.font;M.fontMatrix=t.font.fontMatrix||r}))}function applyInverseRotation(t,r,o){var c=Math.hypot(o[0],o[1]);return[(o[0]*t+o[1]*r)/c,(o[2]*t+o[3]*r)/c]}function compareWithLastPosition(t){var r,o=getCurrentTextTransform(),c=o[4],l=o[5];if(null!==(r=M.font)&&void 0!==r&&r.vertical){if(c<k[0]||c>k[2]||l+t<k[1]||l>k[3])return!1}else if(c+t<k[0]||c>k[2]||l<k[1]||l>k[3])return!1;if(!M.font||!E.prevTransform)return!0;var u=E.prevTransform[4],h=E.prevTransform[5];if(u===c&&h===l)return!0;var d=-1;o[0]&&0===o[1]&&0===o[2]?d=o[0]>0?0:180:o[1]&&0===o[0]&&0===o[3]&&(d=o[1]>0?90:270);switch(d){case 0:break;case 90:var g=[l,c];c=g[0];l=g[1];var y=[h,u];u=y[0];h=y[1];break;case 180:var m=[-c,-l,-u,-h];c=m[0];l=m[1];u=m[2];h=m[3];break;case 270:var v=[-l,-c];c=v[0];l=v[1];var _=[-h,-u];u=_[0];h=_[1];break;default:var w=evaluator_slicedToArray(applyInverseRotation(c,l,o),2);c=w[0];l=w[1];var x=evaluator_slicedToArray(applyInverseRotation(u,h,E.prevTransform),2);u=x[0];h=x[1]}if(M.font.vertical){var S=(h-l)/E.textAdvanceScale,C=c-u,O=Math.sign(E.height);if(S<O*E.negativeSpaceMax){if(Math.abs(C)>.5*E.width){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(C)>E.width){appendEOL();return!0}S<=O*E.notASpace&&resetLastChars();if(S<=O*E.trackingSpaceMin)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({height:Math.abs(S)})}else E.height+=S;else if(!addFakeSpaces(S,E.prevTransform,O))if(0===E.str.length){resetLastChars();pushWhitespace({height:Math.abs(S)})}else E.height+=S;Math.abs(C)>E.width*H&&flushTextContentItem();return!0}var T=(c-u)/E.textAdvanceScale,j=l-h,R=Math.sign(E.width);if(T<R*E.negativeSpaceMax){if(Math.abs(j)>.5*E.height){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(j)>E.height){appendEOL();return!0}T<=R*E.notASpace&&resetLastChars();if(T<=R*E.trackingSpaceMin)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({width:Math.abs(T)})}else E.width+=T;else if(!addFakeSpaces(T,E.prevTransform,R))if(0===E.str.length){resetLastChars();pushWhitespace({width:Math.abs(T)})}else E.width+=T;Math.abs(j)>E.height*H&&flushTextContentItem();return!0}function buildTextContentItem(t){var r=t.chars,o=t.extraSpacing,c=M.font;if(r)for(var l=c.charsToGlyphs(r),u=M.fontMatrix[0]*M.fontSize,h=0,d=l.length;h<d;h++){var g=l[h],y=g.category;if(!y.isInvisibleFormatMark){var m=M.charSpacing+(h+1===d?o:0),v=g.width;c.vertical&&(v=g.vmetric?g.vmetric[0]:-v);var _=v*u;if(y.isWhitespace){if(c.vertical){m+=-_+M.wordSpacing;M.translateTextMatrix(0,-m)}else{m+=_+M.wordSpacing;M.translateTextMatrix(m*M.textHScale,0)}saveLastChar(" ")}else if(y.isZeroWidthDiacritic||compareWithLastPosition(_)){var w=ensureTextContentItem();y.isZeroWidthDiacritic&&(_=0);if(c.vertical){M.translateTextMatrix(0,_);_=Math.abs(_);w.height+=_}else{_*=M.textHScale;M.translateTextMatrix(_,0);w.width+=_}_&&(w.prevTransform=getCurrentTextTransform());var k=g.unicode;saveLastChar(k)&&w.str.push(" ");w.str.push(k);m&&(c.vertical?M.translateTextMatrix(0,-m):M.translateTextMatrix(m*M.textHScale,0))}else c.vertical?M.translateTextMatrix(0,_):M.translateTextMatrix(_*M.textHScale,0)}}else{var x=M.charSpacing+o;x&&(c.vertical?M.translateTextMatrix(0,-x):M.translateTextMatrix(x*M.textHScale,0))}}function appendEOL(){resetLastChars();if(E.initialized){E.hasEOL=!0;flushTextContentItem()}else T.items.push({str:"",dir:"ltr",width:0,height:0,transform:getCurrentTextTransform(),fontName:M.loadedName,hasEOL:!0})}function addFakeSpaces(t,r,o){if(o*E.spaceInFlowMin<=t&&t<=o*E.spaceInFlowMax){if(E.initialized){resetLastChars();E.str.push(" ")}return!1}var c=E.fontName,l=0;if(E.vertical){l=t;t=0}flushTextContentItem();resetLastChars();pushWhitespace({width:Math.abs(t),height:Math.abs(l),transform:r||getCurrentTextTransform(),fontName:c});return!0}function flushTextContentItem(){if(E.initialized&&E.str){E.vertical?E.totalHeight+=E.height*E.textAdvanceScale:E.totalWidth+=E.width*E.textAdvanceScale;T.items.push(runBidiTransform(E));E.initialized=!1;E.str.length=0}}function enqueueChunk(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=T.items.length;if(0!==r&&!(t&&r<10)){v.enqueue(T,r);T.items=[];T.styles=Object.create(null)}}var J=new el;return new Promise((function promiseBody(r,o){var c=function next(t){enqueueChunk(!0);Promise.all([t,v.ready]).then((function(){try{promiseBody(r,o)}catch(t){o(t)}}),o)};u.ensureNotTerminated();J.reset();for(var l,d={},y=[];!(l=J.check());){y.length=0;d.args=y;if(!Y.read(d))break;var _=M;M=g.state;var x=d.fn;y=d.args;switch(0|x){case gt:var C=y[0].name,E=y[1];if(M.font&&C===M.fontName&&E===M.fontSize)break;flushTextContentItem();M.fontName=C;M.fontSize=E;c(handleSetFont(C,null));return;case mt:M.textRise=y[0];break;case ht:M.textHScale=y[0]/100;break;case dt:M.leading=y[0];break;case vt:M.translateTextLineMatrix(y[0],y[1]);M.textMatrix=M.textLineMatrix.slice();break;case bt:M.leading=-y[1];M.translateTextLineMatrix(y[0],y[1]);M.textMatrix=M.textLineMatrix.slice();break;case wt:M.carriageReturn();break;case _t:M.setTextMatrix(y[0],y[1],y[2],y[3],y[4],y[5]);M.setTextLineMatrix(y[0],y[1],y[2],y[3],y[4],y[5]);updateAdvanceScale();break;case ut:M.charSpacing=y[0];break;case ft:M.wordSpacing=y[0];break;case ct:M.textMatrix=t.slice();M.textLineMatrix=t.slice();break;case xt:if(!g.state.font){q.ensureStateFont(g.state);continue}for(var j=(M.font.vertical?1:-1)*M.fontSize/1e3,R=y[0],L=0,D=R.length;L<D;L++){var N=R[L];if("string"==typeof N)W.push(N);else if("number"==typeof N&&0!==N){var U=W.join("");W.length=0;buildTextContentItem({chars:U,extraSpacing:N*j})}}if(W.length>0){var G=W.join("");W.length=0;buildTextContentItem({chars:G,extraSpacing:0})}break;case kt:if(!g.state.font){q.ensureStateFont(g.state);continue}buildTextContentItem({chars:y[0],extraSpacing:0});break;case St:if(!g.state.font){q.ensureStateFont(g.state);continue}M.carriageReturn();buildTextContentItem({chars:y[0],extraSpacing:0});break;case Ct:if(!g.state.font){q.ensureStateFont(g.state);continue}M.wordSpacing=y[0];M.charSpacing=y[1];M.carriageReturn();buildTextContentItem({chars:y[2],extraSpacing:0});break;case zt:flushTextContentItem();V||(V=h.get("XObject")||qr.empty);var H=y[0]instanceof Ur,$=y[0].name;if(H&&X.getByName($))break;c(new Promise((function(t,r){if(!H)throw new Sr("XObject must be referred to by name.");var o=V.getRaw($);if(o instanceof zr){if(X.getByRef(o)){t();return}if(q.globalImageCache.getData(o,q.pageIndex)){t();return}o=z.fetch(o)}if(!(o instanceof Xr))throw new Sr("XObject should be a stream");var c=o.dict.get("Subtype");if(!(c instanceof Ur))throw new Sr("XObject should have a Name subtype");if("Form"===c.name){var l=g.state.clone(),d=new nl(l),y=o.dict.getArray("Matrix");Array.isArray(y)&&6===y.length&&d.transform(y);enqueueChunk();var _={enqueueInvoked:!1,enqueue:function enqueue(t,r){this.enqueueInvoked=!0;v.enqueue(t,r)},get desiredSize(){return v.desiredSize},get ready(){return v.ready}};q.getTextContent({stream:o,task:u,resources:o.dict.get("Resources")||h,stateManager:d,includeMarkedContent:m,sink:_,seenStyles:w,viewBox:k,markedContentData:S,disableNormalization:O}).then((function(){_.enqueueInvoked||X.set($,o.dict.objId,!0);t()}),r)}else{X.set($,o.dict.objId,!0);t()}})).catch((function(t){if(!(t instanceof Cr)){if(!q.options.ignoreErrors)throw t;warn('getTextContent - ignoring XObject: "'.concat(t,'".'))}})));return;case Ne:H=y[0]instanceof Ur;$=y[0].name;if(H&&K.getByName($))break;c(new Promise((function(t,r){if(!H)throw new Sr("GState must be referred to by name.");var o=h.get("ExtGState");if(!(o instanceof qr))throw new Sr("ExtGState should be a dictionary.");var c=o.get($);if(!(c instanceof qr))throw new Sr("GState should be a dictionary.");var l=c.get("Font");if(l){flushTextContentItem();M.fontName=null;M.fontSize=l[1];handleSetFont(null,l[0]).then(t,r)}else{K.set($,c.objId,!0);t()}})).catch((function(t){if(!(t instanceof Cr)){if(!q.options.ignoreErrors)throw t;warn('getTextContent - ignoring ExtGState: "'.concat(t,'".'))}})));return;case Xt:flushTextContentItem();if(m){S.level++;T.items.push({type:"beginMarkedContent",tag:y[0]instanceof Ur?y[0].name:null})}break;case Kt:flushTextContentItem();if(m){S.level++;var Z=null;y[1]instanceof qr&&(Z=y[1].get("MCID"));T.items.push({type:"beginMarkedContentProps",id:Number.isInteger(Z)?"".concat(q.idFactory.getPageObjId(),"_mc").concat(Z):null,tag:y[0]instanceof Ur?y[0].name:null})}break;case Yt:flushTextContentItem();if(m){if(0===S.level)break;S.level--;T.items.push({type:"endMarkedContent"})}break;case Ge:!_||_.font===M.font&&_.fontSize===M.fontSize&&_.fontName===M.fontName||flushTextContentItem()}if(T.items.length>=v.desiredSize){l=!0;break}}if(l)c(Qc);else{flushTextContentItem();enqueueChunk();r()}})).catch((function(t){if(!(t instanceof Cr)){if(!c.options.ignoreErrors)throw t;warn('getTextContent - ignoring errors during "'.concat(u.name,'" ')+'task: "'.concat(t,'".'));flushTextContentItem();enqueueChunk()}}))}},{key:"extractDataStructures",value:function extractDataStructures(t,r,o){var c,l=this,u=this.xref,h=this.readToUnicode(o.toUnicode||t.get("ToUnicode")||r.get("ToUnicode"));if(o.composite){var d=t.get("CIDSystemInfo");d instanceof qr&&(o.cidSystemInfo={registry:stringToPDFString(d.get("Registry")),ordering:stringToPDFString(d.get("Ordering")),supplement:d.get("Supplement")});try{var g=t.get("CIDToGIDMap");g instanceof Xr&&(c=g.getBytes())}catch(t){if(!this.options.ignoreErrors)throw t;warn('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(t,'".'))}}var y,m=[],v=null;if(t.has("Encoding")){if((y=t.get("Encoding"))instanceof qr){v=(v=y.get("BaseEncoding"))instanceof Ur?v.name:null;if(y.has("Differences")){var _,w=0,k=evaluator_createForOfIteratorHelper(y.get("Differences"));try{for(k.s();!(_=k.n()).done;){var x=_.value,S=u.fetchIfRef(x);if("number"==typeof S)w=S;else{if(!(S instanceof Ur))throw new Sr("Invalid entry in 'Differences' array: ".concat(S));m[w++]=S.name}}}catch(t){k.e(t)}finally{k.f()}}}else if(y instanceof Ur)v=y.name;else{var C="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new Sr(C);warn(C)}"MacRomanEncoding"!==v&&"MacExpertEncoding"!==v&&"WinAnsiEncoding"!==v&&(v=null)}var O=!o.file||o.isInternalFont,T=ho()[o.name];v&&O&&T&&(v=null);if(v)o.defaultEncoding=getEncoding(v);else{var E=!!(o.flags&io),j=!!(o.flags&oo);y=xi;"TrueType"!==o.type||j||(y=Si);if(E||T){y=ki;O&&(/Symbol/i.test(o.name)?y=Ci:/Dingbats/i.test(o.name)?y=Ai:/Wingdings/i.test(o.name)&&(y=Si))}o.defaultEncoding=y}o.differences=m;o.baseEncodingName=v;o.hasEncoding=!!v||m.length>0;o.dict=t;return h.then((function(t){o.toUnicode=t;return l.buildToUnicode(o)})).then((function(t){o.toUnicode=t;c&&(o.cidToGidMap=l.readCidToGidMap(c,t));return o}))}},{key:"_simpleFontToUnicode",value:function _simpleFontToUnicode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];assert(!t.composite,"Must be a simple font.");var o=[],c=t.defaultEncoding.slice(),l=t.baseEncodingName,u=t.differences;for(var h in u){var d=u[h];".notdef"!==d&&(c[h]=d)}var g=Yi();for(var y in c){var m=c[y];if(""!==m){var v=g[m];if(void 0===v){var _=0;switch(m[0]){case"G":3===m.length&&(_=parseInt(m.substring(1),16));break;case"g":5===m.length&&(_=parseInt(m.substring(1),16));break;case"C":case"c":if(m.length>=3&&m.length<=4){var w=m.substring(1);if(r){_=parseInt(w,16);break}_=+w;if(Number.isNaN(_)&&Number.isInteger(parseInt(w,16)))return this._simpleFontToUnicode(t,!0)}break;case"u":-1!==(v=getUnicodeForGlyph(m,g))&&(_=v);break;default:switch(m){case"f_h":case"f_t":case"T_h":o[y]=m.replaceAll("_","");continue}}if(_>0&&_<=1114111&&Number.isInteger(_)){if(l&&_===+y){var k=getEncoding(l);if(k&&(m=k[y])){o[y]=String.fromCharCode(g[m]);continue}}o[y]=String.fromCodePoint(_)}}else o[y]=String.fromCharCode(v)}}return o}},{key:"buildToUnicode",value:(c=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee9(t){var r,o,c,l,u,h,d,g;return evaluator_regeneratorRuntime().wrap((function _callee9$(y){for(;;)switch(y.prev=y.next){case 0:t.hasIncludedToUnicodeMap=(null===(r=t.toUnicode)||void 0===r?void 0:r.length)>0;if(!t.hasIncludedToUnicodeMap){y.next=4;break}!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t));return y.abrupt("return",t.toUnicode);case 4:if(t.composite){y.next=6;break}return y.abrupt("return",new mo(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof gi)&&("Adobe"!==t.cidSystemInfo.registry||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){y.next=15;break}o=t.cidSystemInfo,c=o.registry,l=o.ordering;u=Ur.get("".concat(c,"-").concat(l,"-UCS2"));y.next=11;return yi.create({encoding:u,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:h=y.sent;d=[],g=[];t.cMap.forEach((function(t,r){if(r>65535)throw new Sr("Max size of CID is 65,535");var o=h.lookup(r);if(o){g.length=0;for(var c=0,l=o.length;c<l;c+=2)g.push((o.charCodeAt(c)<<8)+o.charCodeAt(c+1));d[t]=String.fromCharCode.apply(String,g)}}));return y.abrupt("return",new mo(d));case 15:return y.abrupt("return",new vo(t.firstChar,t.lastChar));case 16:case"end":return y.stop()}}),_callee9,this)}))),function buildToUnicode(t){return c.apply(this,arguments)})},{key:"readToUnicode",value:function readToUnicode(t){var r=this;return t?t instanceof Ur?yi.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){return t instanceof gi?new vo(0,65535):new mo(t.getMap())})):t instanceof Xr?yi.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof gi)return new vo(0,65535);var r=new Array(t.length);t.forEach((function(t,o){if("number"!=typeof o){for(var c=[],l=0;l<o.length;l+=2){var u=o.charCodeAt(l)<<8|o.charCodeAt(l+1);if(55296==(63488&u)){l+=2;var h=o.charCodeAt(l)<<8|o.charCodeAt(l+1);c.push(((1023&u)<<10)+(1023&h)+65536)}else c.push(u)}r[t]=String.fromCodePoint.apply(String,c)}else r[t]=String.fromCodePoint(o)}));return new mo(r)}),(function(t){if(t instanceof Cr)return null;if(r.options.ignoreErrors){warn('readToUnicode - ignoring ToUnicode data: "'.concat(t,'".'));return null}throw t})):Promise.resolve(null):Promise.resolve(null)}},{key:"readCidToGidMap",value:function readCidToGidMap(t,r){for(var o=[],c=0,l=t.length;c<l;c++){var u=t[c++]<<8|t[c],h=c>>1;(0!==u||r.has(h))&&(o[h]=u)}return o}},{key:"extractWidths",value:function extractWidths(t,r,o){var c,l,u,h,d,g,y,m,v=this.xref,_=[],w=0,k=[];if(o.composite){w=t.has("DW")?t.get("DW"):1e3;if(m=t.get("W"))for(l=0,u=m.length;l<u;l++){g=v.fetchIfRef(m[l++]);y=v.fetchIfRef(m[l]);if(Array.isArray(y))for(h=0,d=y.length;h<d;h++)_[g++]=v.fetchIfRef(y[h]);else{var x=v.fetchIfRef(m[++l]);for(h=g;h<=y;h++)_[h]=x}}if(o.vertical){var S=t.getArray("DW2")||[880,-1e3];c=[S[1],.5*w,S[0]];if(S=t.get("W2"))for(l=0,u=S.length;l<u;l++){g=v.fetchIfRef(S[l++]);y=v.fetchIfRef(S[l]);if(Array.isArray(y))for(h=0,d=y.length;h<d;h++)k[g++]=[v.fetchIfRef(y[h++]),v.fetchIfRef(y[h++]),v.fetchIfRef(y[h])];else{var C=[v.fetchIfRef(S[++l]),v.fetchIfRef(S[++l]),v.fetchIfRef(S[++l])];for(h=g;h<=y;h++)k[h]=C}}}}else{var O=o.firstChar;if(m=t.get("Widths")){h=O;for(l=0,u=m.length;l<u;l++)_[h++]=v.fetchIfRef(m[l]);w=parseFloat(r.get("MissingWidth"))||0}else{var T=t.get("BaseFont");if(T instanceof Ur){var E=this.getBaseFontMetrics(T.name);_=this.buildCharCodeToWidth(E.widths,o);w=E.defaultWidth}}}var j=!0,R=w;for(var M in _){var L=_[M];if(L)if(R){if(R!==L){j=!1;break}}else R=L}j?o.flags|=no:o.flags&=~no;o.defaultWidth=w;o.widths=_;o.defaultVMetrics=c;o.vmetrics=k}},{key:"isSerifFont",value:function isSerifFont(t){var r=t.split("-")[0];return r in fo()||/serif/gi.test(r)}},{key:"getBaseFontMetrics",value:function getBaseFontMetrics(t){var r=0,o=Object.create(null),c=!1,l=co()[t]||t,u=Co();l in u||(l=this.isSerifFont(t)?"Times-Roman":"Helvetica");var h=u[l];if("number"==typeof h){r=h;c=!0}else o=h();return{defaultWidth:r,monospace:c,widths:o}}},{key:"buildCharCodeToWidth",value:function buildCharCodeToWidth(t,r){for(var o=Object.create(null),c=r.differences,l=r.defaultEncoding,u=0;u<256;u++)u in c&&t[c[u]]?o[u]=t[c[u]]:u in l&&t[l[u]]&&(o[u]=t[l[u]]);return o}},{key:"preEvaluateFont",value:function preEvaluateFont(t){var r=t,o=t.get("Subtype");if(!(o instanceof Ur))throw new Sr("invalid font Subtype");var c,l,u=!1;if("Type0"===o.name){var h=t.get("DescendantFonts");if(!h)throw new Sr("Descendant fonts are not specified");if(!((t=Array.isArray(h)?this.xref.fetchIfRef(h[0]):h)instanceof qr))throw new Sr("Descendant font is not a dictionary.");if(!((o=t.get("Subtype"))instanceof Ur))throw new Sr("invalid font Subtype");u=!0}var d=t.get("FirstChar")||0,g=t.get("LastChar")||(u?65535:255),y=t.get("FontDescriptor");if(y){c=new zc;var m=r.getRaw("Encoding");if(m instanceof Ur)c.update(m.name);else if(m instanceof zr)c.update(m.toString());else if(m instanceof qr){var v,_=evaluator_createForOfIteratorHelper(m.getRawValues());try{for(_.s();!(v=_.n()).done;){var w=v.value;if(w instanceof Ur)c.update(w.name);else if(w instanceof zr)c.update(w.toString());else if(Array.isArray(w)){for(var k=w.length,x=new Array(k),S=0;S<k;S++){var C=w[S];C instanceof Ur?x[S]=C.name:("number"==typeof C||C instanceof zr)&&(x[S]=C.toString())}c.update(x.join())}}}catch(t){_.e(t)}finally{_.f()}}c.update("".concat(d,"-").concat(g));if((l=t.get("ToUnicode")||r.get("ToUnicode"))instanceof Xr){var O=l.str||l,T=O.buffer?new Uint8Array(O.buffer.buffer,0,O.bufferLength):new Uint8Array(O.bytes.buffer,O.start,O.end-O.start);c.update(T)}else l instanceof Ur&&c.update(l.name);var E=t.get("Widths")||r.get("Widths");if(Array.isArray(E)){var j,R=[],M=evaluator_createForOfIteratorHelper(E);try{for(M.s();!(j=M.n()).done;){var L=j.value;("number"==typeof L||L instanceof zr)&&R.push(L.toString())}}catch(t){M.e(t)}finally{M.f()}c.update(R.join())}if(u){c.update("compositeFont");var D=t.get("W")||r.get("W");if(Array.isArray(D)){var N,U=[],G=evaluator_createForOfIteratorHelper(D);try{for(G.s();!(N=G.n()).done;){var H=N.value;if("number"==typeof H||H instanceof zr)U.push(H.toString());else if(Array.isArray(H)){var q,z=[],W=evaluator_createForOfIteratorHelper(H);try{for(W.s();!(q=W.n()).done;){var V=q.value;("number"==typeof V||V instanceof zr)&&z.push(V.toString())}}catch(t){W.e(t)}finally{W.f()}U.push("[".concat(z.join(),"]"))}}}catch(t){G.e(t)}finally{G.f()}c.update(U.join())}var X=t.getRaw("CIDToGIDMap")||r.getRaw("CIDToGIDMap");X instanceof Ur?c.update(X.name):X instanceof zr?c.update(X.toString()):X instanceof Xr&&c.update(X.peekBytes())}}return{descriptor:y,dict:t,baseDict:r,composite:u,type:o.name,firstChar:d,lastChar:g,toUnicode:l,hash:c?c.hexdigest():""}}},{key:"translateFont",value:(o=evaluator_asyncToGenerator(evaluator_regeneratorRuntime().mark((function _callee10(t){var o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K,Y,J,$,Z=this;return evaluator_regeneratorRuntime().wrap((function _callee10$(Q){for(;;)switch(Q.prev=Q.next){case 0:l=t.descriptor,u=t.dict,h=t.baseDict,d=t.composite,g=t.type,y=t.firstChar,m=t.lastChar,v=t.toUnicode,_=t.cssFontInfo;w="Type3"===g;if(l){Q.next=27;break}if(!w){Q.next=9;break}(l=new qr(null)).set("FontName",Ur.get(g));l.set("FontBBox",u.getArray("FontBBox")||[0,0,0,0]);Q.next=27;break;case 9:if((x=u.get("BaseFont"))instanceof Ur){Q.next=12;break}throw new Sr("Base font is not specified");case 12:x=x.name.replaceAll(/[,_]/g,"-");S=this.getBaseFontMetrics(x);C=x.split("-")[0];O=(this.isSerifFont(C)?ao:0)|(S.monospace?no:0)|(ho()[C]?io:oo);k={type:g,name:x,loadedName:h.loadedName,systemFontInfo:null,widths:S.widths,defaultWidth:S.defaultWidth,isSimulatedFlags:!0,flags:O,firstChar:y,lastChar:m,toUnicode:v,xHeight:0,capHeight:0,italicAngle:0,isType3Font:w};T=u.get("Widths");E=getStandardFontName(x);j=null;if(!E){Q.next=25;break}Q.next=23;return this.fetchStandardFontData(E);case 23:j=Q.sent;k.isInternalFont=!!j;case 25:!k.isInternalFont&&this.options.useSystemFonts&&(k.systemFontInfo=getFontSubstitution(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,x,E));return Q.abrupt("return",this.extractDataStructures(u,u,k).then((function(t){if(T){var r,o=[],c=y,l=evaluator_createForOfIteratorHelper(T);try{for(l.s();!(r=l.n()).done;){var u=r.value;o[c++]=Z.xref.fetchIfRef(u)}}catch(t){l.e(t)}finally{l.f()}t.widths=o}else t.widths=Z.buildCharCodeToWidth(S.widths,t);return new es(x,j,t)})));case 27:R=l.get("FontName");M=u.get("BaseFont");"string"==typeof R&&(R=Ur.get(R));"string"==typeof M&&(M=Ur.get(M));L=null===(o=R)||void 0===o?void 0:o.name;D=null===(c=M)||void 0===c?void 0:c.name;if(!w&&L!==D){info("The FontDescriptor's FontName is \"".concat(L,'" but ')+"should be the same as the Font's BaseFont \"".concat(D,'".'));L&&D&&(D.startsWith(L)||!isKnownFontName(L)&&isKnownFontName(D))&&(R=null)}R||(R=M);if(R instanceof Ur){Q.next=37;break}throw new Sr("invalid font name");case 37:Q.prev=37;N=l.get("FontFile","FontFile2","FontFile3");Q.next=47;break;case 41:Q.prev=41;Q.t0=Q.catch(37);if(this.options.ignoreErrors){Q.next=45;break}throw Q.t0;case 45:warn('translateFont - fetching "'.concat(R.name,'" font file: "').concat(Q.t0,'".'));N=new nn;case 47:z=!1;W=null;V=null;if(!N){Q.next=54;break}if(N.dict){(X=N.dict.get("Subtype"))instanceof Ur&&(U=X.name);G=N.dict.get("Length1");H=N.dict.get("Length2");q=N.dict.get("Length3")}Q.next=76;break;case 54:if(!_){Q.next=68;break}if(!(K=getXfaFontName(R.name))){Q.next=66;break}_.fontFamily="".concat(_.fontFamily,"-PdfJS-XFA");_.metrics=K.metrics||null;W=K.factors||null;Q.next=62;return this.fetchStandardFontData(K.name);case 62:N=Q.sent;z=!!N;h=u=getXfaFontDict(R.name);d=!0;case 66:Q.next=76;break;case 68:if(w){Q.next=76;break}if(!(Y=getStandardFontName(R.name))){Q.next=75;break}Q.next=73;return this.fetchStandardFontData(Y);case 73:N=Q.sent;z=!!N;case 75:!z&&this.options.useSystemFonts&&(V=getFontSubstitution(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,R.name,Y));case 76:k={type:g,name:R.name,subtype:U,file:N,length1:G,length2:H,length3:q,isInternalFont:z,loadedName:h.loadedName,composite:d,fixedPitch:!1,fontMatrix:u.getArray("FontMatrix")||r,firstChar:y,lastChar:m,toUnicode:v,bbox:l.getArray("FontBBox")||u.getArray("FontBBox"),ascent:l.get("Ascent"),descent:l.get("Descent"),xHeight:l.get("XHeight")||0,capHeight:l.get("CapHeight")||0,flags:l.get("Flags"),italicAngle:l.get("ItalicAngle")||0,isType3Font:w,cssFontInfo:_,scaleFactors:W,systemFontInfo:V};if(!d){Q.next=85;break}(J=h.get("Encoding"))instanceof Ur&&(k.cidEncoding=J.name);Q.next=82;return yi.create({encoding:J,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 82:$=Q.sent;k.cMap=$;k.vertical=k.cMap.vertical;case 85:return Q.abrupt("return",this.extractDataStructures(u,h,k).then((function(t){Z.extractWidths(u,l,t);return new es(R.name,N,t)})));case 86:case"end":return Q.stop()}}),_callee10,this,[[37,41]])}))),function translateFont(t){return o.apply(this,arguments)})}],[{key:"buildFontPaths",value:function buildFontPaths(t,r,o,c){function buildPath(r){var l="".concat(t.loadedName,"_path_").concat(r);try{if(t.renderer.hasBuiltPath(r))return;o.send("commonobj",[l,"FontPath",t.renderer.getPathJs(r)])}catch(t){if(c.ignoreErrors){warn("buildFontPaths - ignoring ".concat(l,' glyph: "').concat(t,'".'));return}throw t}}var l,u=evaluator_createForOfIteratorHelper(r);try{for(u.s();!(l=u.n()).done;){var h=l.value;buildPath(h.fontChar);var d=h.accent;null!=d&&d.fontChar&&buildPath(d.fontChar)}}catch(t){u.e(t)}finally{u.f()}}},{key:"fallbackFontDict",get:function get(){var t=new qr;t.set("BaseFont",Ur.get("Helvetica"));t.set("Type",Ur.get("FallbackType"));t.set("Subtype",Ur.get("FallbackType"));t.set("Encoding",Ur.get("WinAnsiEncoding"));return shadow(this,"fallbackFontDict",t)}}]);var o,c,l,u,h,d,g,y;return PartialEvaluator}(),rl=function(){function TranslatedFont(t){var r=t.loadedName,o=t.font,c=t.dict,l=t.evaluatorOptions;evaluator_classCallCheck(this,TranslatedFont);this.loadedName=r;this.font=o;this.dict=c;this._evaluatorOptions=l||Jc;this.type3Loaded=null;this.type3Dependencies=o.isType3Font?new Set:null;this.sent=!1}evaluator_createClass(TranslatedFont,[{key:"send",value:function send(t){if(!this.sent){this.sent=!0;t.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)])}}},{key:"fallback",value:function fallback(t){if(this.font.data){this.font.disableFontFace=!0;tl.buildFontPaths(this.font,this.font.glyphCacheValues,t,this._evaluatorOptions)}}},{key:"loadType3Data",value:function loadType3Data(t,r,o){var c=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var l=t.clone({ignoreErrors:!1});l.parsingType3Font=!0;var u=new Wr(t.type3FontRefs);this.dict.objId&&!u.has(this.dict.objId)&&u.put(this.dict.objId);l.type3FontRefs=u;var h,d=this.font,g=this.type3Dependencies,y=Promise.resolve(),m=this.dict.get("CharProcs"),v=this.dict.get("Resources")||r,_=Object.create(null),w=Or.normalizeRect(d.bbox||[0,0,0,0]),k=w[2]-w[0],x=w[3]-w[1],S=Math.hypot(k,x),C=evaluator_createForOfIteratorHelper(m.getKeys());try{var O=function _loop2(){var t=h.value;y=y.then((function(){var r=m.get(t),u=new Kc;return l.getOperatorList({stream:r,task:o,resources:v,operatorList:u}).then((function(){u.fnArray[0]===Pt&&c._removeType3ColorOperators(u,S);_[t]=u.getIR();var r,o=evaluator_createForOfIteratorHelper(u.dependencies);try{for(o.s();!(r=o.n()).done;){var l=r.value;g.add(l)}}catch(t){o.e(t)}finally{o.f()}})).catch((function(r){warn('Type3 font resource "'.concat(t,'" is not available.'));var o=new Kc;_[t]=o.getIR()}))}))};for(C.s();!(h=C.n()).done;)O()}catch(t){C.e(t)}finally{C.f()}this.type3Loaded=y.then((function(){d.charProcOperatorList=_;if(c._bbox){d.isCharBBox=!0;d.bbox=c._bbox}}));return this.type3Loaded}},{key:"_removeType3ColorOperators",value:function _removeType3ColorOperators(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,o=Or.normalizeRect(t.argsArray[0].slice(2)),c=o[2]-o[0],l=o[3]-o[1],u=Math.hypot(c,l);if(0===c||0===l){t.fnArray.splice(0,1);t.argsArray.splice(0,1)}else if(0===r||Math.round(u/r)>=10){this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]);this._bbox[0]=Math.min(this._bbox[0],o[0]);this._bbox[1]=Math.min(this._bbox[1],o[1]);this._bbox[2]=Math.max(this._bbox[2],o[2]);this._bbox[3]=Math.max(this._bbox[3],o[3])}for(var h=0,d=t.length;h<d;){switch(t.fnArray[h]){case Pt:break;case Ot:case It:case Tt:case Ft:case Et:case jt:case Rt:case Mt:case Lt:case Bt:case Dt:case Nt:case Ut:case Be:t.fnArray.splice(h,1);t.argsArray.splice(h,1);d--;continue;case Ne:for(var g=evaluator_slicedToArray(t.argsArray[h],1)[0],y=0,m=g.length;y<m;){switch(evaluator_slicedToArray(g[y],1)[0]){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":g.splice(y,1);m--;continue}y++}}h++}}}]);return TranslatedFont}(),nl=function(){function StateManager(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new il;evaluator_classCallCheck(this,StateManager);this.state=t;this.stateStack=[]}evaluator_createClass(StateManager,[{key:"save",value:function save(){var t=this.state;this.stateStack.push(this.state);this.state=t.clone()}},{key:"restore",value:function restore(){var t=this.stateStack.pop();t&&(this.state=t)}},{key:"transform",value:function transform(t){this.state.ctm=Or.transform(this.state.ctm,t)}}]);return StateManager}(),al=function(){function TextState(){evaluator_classCallCheck(this,TextState);this.ctm=new Float32Array(t);this.fontName=null;this.fontSize=0;this.loadedName=null;this.font=null;this.fontMatrix=r;this.textMatrix=t.slice();this.textLineMatrix=t.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}evaluator_createClass(TextState,[{key:"setTextMatrix",value:function setTextMatrix(t,r,o,c,l,u){var h=this.textMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=c;h[4]=l;h[5]=u}},{key:"setTextLineMatrix",value:function setTextLineMatrix(t,r,o,c,l,u){var h=this.textLineMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=c;h[4]=l;h[5]=u}},{key:"translateTextMatrix",value:function translateTextMatrix(t,r){var o=this.textMatrix;o[4]=o[0]*t+o[2]*r+o[4];o[5]=o[1]*t+o[3]*r+o[5]}},{key:"translateTextLineMatrix",value:function translateTextLineMatrix(t,r){var o=this.textLineMatrix;o[4]=o[0]*t+o[2]*r+o[4];o[5]=o[1]*t+o[3]*r+o[5]}},{key:"carriageReturn",value:function carriageReturn(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function clone(){var clone=Object.create(this);clone.textMatrix=this.textMatrix.slice();clone.textLineMatrix=this.textLineMatrix.slice();clone.fontMatrix=this.fontMatrix.slice();return clone}}]);return TextState}(),il=function(){function EvalState(){evaluator_classCallCheck(this,EvalState);this.ctm=new Float32Array(t);this.font=null;this.textRenderingMode=T;this.fillColorSpace=ln.singletons.gray;this.strokeColorSpace=ln.singletons.gray}evaluator_createClass(EvalState,[{key:"clone",value:function clone(){return Object.create(this)}}]);return EvalState}(),sl=function(){function EvaluatorPreprocessor(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new nl;evaluator_classCallCheck(this,EvaluatorPreprocessor);this.parser=new oi({lexer:new ci(t,EvaluatorPreprocessor.opMap),xref:r});this.stateManager=o;this.nonProcessedArgs=[];this._isPathOp=!1;this._numInvalidPathOPS=0}evaluator_createClass(EvaluatorPreprocessor,[{key:"savedStatesDepth",get:function get(){return this.stateManager.stateStack.length}},{key:"read",value:function read(t){for(var r=t.args;;){var o=this.parser.getObj();if(o instanceof Gr){var c=o.cmd,l=EvaluatorPreprocessor.opMap[c];if(!l){warn('Unknown command "'.concat(c,'".'));continue}var u=l.id,h=l.numArgs,d=null!==r?r.length:0;this._isPathOp||(this._numInvalidPathOPS=0);this._isPathOp=u>=qe&&u<=it;if(l.variableArgs)d>h&&info("Command ".concat(c,": expected [0, ").concat(h,"] args, ")+"but received ".concat(d," args."));else{if(d!==h){for(var g=this.nonProcessedArgs;d>h;){g.push(r.shift());d--}for(;d<h&&0!==g.length;){null===r&&(r=[]);r.unshift(g.pop());d++}}if(d<h){var y="command ".concat(c,": expected ").concat(h," args, ")+"but received ".concat(d," args.");if(this._isPathOp&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new Sr("Invalid ".concat(y));warn("Skipping ".concat(y));null!==r&&(r.length=0);continue}}this.preprocessCommand(u,r);t.fn=u;t.args=r;return!0}if(o===Mr)return!1;if(null!==o){null===r&&(r=[]);r.push(o);if(r.length>33)throw new Sr("Too many arguments")}}}},{key:"preprocessCommand",value:function preprocessCommand(t,r){switch(0|t){case Ue:this.stateManager.save();break;case Ge:this.stateManager.restore();break;case He:this.stateManager.transform(r)}}}],[{key:"opMap",get:function get(){return shadow(this,"opMap",{w:{id:Ee,numArgs:1,variableArgs:!1},J:{id:je,numArgs:1,variableArgs:!1},j:{id:Re,numArgs:1,variableArgs:!1},M:{id:Me,numArgs:1,variableArgs:!1},d:{id:Le,numArgs:2,variableArgs:!1},ri:{id:Be,numArgs:1,variableArgs:!1},i:{id:De,numArgs:1,variableArgs:!1},gs:{id:Ne,numArgs:1,variableArgs:!1},q:{id:Ue,numArgs:0,variableArgs:!1},Q:{id:Ge,numArgs:0,variableArgs:!1},cm:{id:He,numArgs:6,variableArgs:!1},m:{id:qe,numArgs:2,variableArgs:!1},l:{id:ze,numArgs:2,variableArgs:!1},c:{id:We,numArgs:6,variableArgs:!1},v:{id:Ve,numArgs:4,variableArgs:!1},y:{id:Xe,numArgs:4,variableArgs:!1},h:{id:Ke,numArgs:0,variableArgs:!1},re:{id:Ye,numArgs:4,variableArgs:!1},S:{id:Je,numArgs:0,variableArgs:!1},s:{id:$e,numArgs:0,variableArgs:!1},f:{id:Ze,numArgs:0,variableArgs:!1},F:{id:Ze,numArgs:0,variableArgs:!1},"f*":{id:Qe,numArgs:0,variableArgs:!1},B:{id:et,numArgs:0,variableArgs:!1},"B*":{id:tt,numArgs:0,variableArgs:!1},b:{id:rt,numArgs:0,variableArgs:!1},"b*":{id:nt,numArgs:0,variableArgs:!1},n:{id:it,numArgs:0,variableArgs:!1},W:{id:ot,numArgs:0,variableArgs:!1},"W*":{id:st,numArgs:0,variableArgs:!1},BT:{id:ct,numArgs:0,variableArgs:!1},ET:{id:lt,numArgs:0,variableArgs:!1},Tc:{id:ut,numArgs:1,variableArgs:!1},Tw:{id:ft,numArgs:1,variableArgs:!1},Tz:{id:ht,numArgs:1,variableArgs:!1},TL:{id:dt,numArgs:1,variableArgs:!1},Tf:{id:gt,numArgs:2,variableArgs:!1},Tr:{id:yt,numArgs:1,variableArgs:!1},Ts:{id:mt,numArgs:1,variableArgs:!1},Td:{id:vt,numArgs:2,variableArgs:!1},TD:{id:bt,numArgs:2,variableArgs:!1},Tm:{id:_t,numArgs:6,variableArgs:!1},"T*":{id:wt,numArgs:0,variableArgs:!1},Tj:{id:kt,numArgs:1,variableArgs:!1},TJ:{id:xt,numArgs:1,variableArgs:!1},"'":{id:St,numArgs:1,variableArgs:!1},'"':{id:Ct,numArgs:3,variableArgs:!1},d0:{id:At,numArgs:2,variableArgs:!1},d1:{id:Pt,numArgs:6,variableArgs:!1},CS:{id:Ot,numArgs:1,variableArgs:!1},cs:{id:It,numArgs:1,variableArgs:!1},SC:{id:Tt,numArgs:4,variableArgs:!0},SCN:{id:Ft,numArgs:33,variableArgs:!0},sc:{id:Et,numArgs:4,variableArgs:!0},scn:{id:jt,numArgs:33,variableArgs:!0},G:{id:Rt,numArgs:1,variableArgs:!1},g:{id:Mt,numArgs:1,variableArgs:!1},RG:{id:Lt,numArgs:3,variableArgs:!1},rg:{id:Bt,numArgs:3,variableArgs:!1},K:{id:Dt,numArgs:4,variableArgs:!1},k:{id:Nt,numArgs:4,variableArgs:!1},sh:{id:Ut,numArgs:1,variableArgs:!1},BI:{id:Gt,numArgs:0,variableArgs:!1},ID:{id:Ht,numArgs:0,variableArgs:!1},EI:{id:qt,numArgs:1,variableArgs:!1},Do:{id:zt,numArgs:1,variableArgs:!1},MP:{id:Wt,numArgs:1,variableArgs:!1},DP:{id:Vt,numArgs:2,variableArgs:!1},BMC:{id:Xt,numArgs:1,variableArgs:!1},BDC:{id:Kt,numArgs:2,variableArgs:!1},EMC:{id:Yt,numArgs:0,variableArgs:!1},BX:{id:Jt,numArgs:0,variableArgs:!1},EX:{id:$t,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null})}}]);return EvaluatorPreprocessor}();evaluator_defineProperty(sl,"MAX_INVALID_PATH_OPS",10);function default_appearance_typeof(t){return default_appearance_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},default_appearance_typeof(t)}function default_appearance_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=default_appearance_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function default_appearance_toConsumableArray(t){return function default_appearance_arrayWithoutHoles(t){if(Array.isArray(t))return default_appearance_arrayLikeToArray(t)}(t)||function default_appearance_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||default_appearance_unsupportedIterableToArray(t)||function default_appearance_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function default_appearance_slicedToArray(t,r){return function default_appearance_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function default_appearance_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||default_appearance_unsupportedIterableToArray(t,r)||function default_appearance_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function default_appearance_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return default_appearance_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?default_appearance_arrayLikeToArray(t,r):void 0}}function default_appearance_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function default_appearance_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function default_appearance_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,default_appearance_toPropertyKey(c.key),c)}}function default_appearance_createClass(t,r,o){r&&default_appearance_defineProperties(t.prototype,r);o&&default_appearance_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function default_appearance_toPropertyKey(t){var r=function default_appearance_toPrimitive(t,r){if("object"!=default_appearance_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=default_appearance_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==default_appearance_typeof(r)?r:String(r)}function default_appearance_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&default_appearance_setPrototypeOf(t,r)}function default_appearance_setPrototypeOf(t,r){default_appearance_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return default_appearance_setPrototypeOf(t,r)}function default_appearance_createSuper(t){var r=function default_appearance_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=default_appearance_getPrototypeOf(t);if(r){var l=default_appearance_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function default_appearance_possibleConstructorReturn(t,r){if(r&&("object"===default_appearance_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function default_appearance_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function default_appearance_getPrototypeOf(t){default_appearance_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return default_appearance_getPrototypeOf(t)}var cl=function(t){default_appearance_inherits(DefaultAppearanceEvaluator,t);var r=default_appearance_createSuper(DefaultAppearanceEvaluator);function DefaultAppearanceEvaluator(t){default_appearance_classCallCheck(this,DefaultAppearanceEvaluator);return r.call(this,new rn(t))}default_appearance_createClass(DefaultAppearanceEvaluator,[{key:"parse",value:function parse(){var t={fn:0,args:[]},r={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){t.args.length=0;if(!this.read(t))break;if(0===this.savedStatesDepth){var o=t.fn,c=t.args;switch(0|o){case gt:var l=default_appearance_slicedToArray(c,2),u=l[0],h=l[1];u instanceof Ur&&(r.fontName=u.name);"number"==typeof h&&h>0&&(r.fontSize=h);break;case Bt:ln.singletons.rgb.getRgbItem(c,0,r.fontColor,0);break;case Mt:ln.singletons.gray.getRgbItem(c,0,r.fontColor,0);break;case Nt:ln.singletons.cmyk.getRgbItem(c,0,r.fontColor,0)}}}}catch(t){warn('parseDefaultAppearance - ignoring errors: "'.concat(t,'".'))}return r}}]);return DefaultAppearanceEvaluator}(sl);function parseDefaultAppearance(t){return new cl(t).parse()}var ll=function(t){default_appearance_inherits(AppearanceStreamEvaluator,t);var r=default_appearance_createSuper(AppearanceStreamEvaluator);function AppearanceStreamEvaluator(t,o,c){var l,u;default_appearance_classCallCheck(this,AppearanceStreamEvaluator);(u=r.call(this,t)).stream=t;u.evaluatorOptions=o;u.xref=c;u.resources=null===(l=t.dict)||void 0===l?void 0:l.get("Resources");return u}default_appearance_createClass(AppearanceStreamEvaluator,[{key:"parse",value:function parse(){var t={fn:0,args:[]},r={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:ln.singletons.gray},o=!1,c=[];try{for(;;){t.args.length=0;if(o||!this.read(t))break;var l=t.fn,u=t.args;switch(0|l){case Ue:c.push({scaleFactor:r.scaleFactor,fontSize:r.fontSize,fontName:r.fontName,fontColor:r.fontColor.slice(),fillColorSpace:r.fillColorSpace});break;case Ge:r=c.pop()||r;break;case _t:r.scaleFactor*=Math.hypot(u[0],u[1]);break;case gt:var h=default_appearance_slicedToArray(u,2),d=h[0],g=h[1];d instanceof Ur&&(r.fontName=d.name);"number"==typeof g&&g>0&&(r.fontSize=g*r.scaleFactor);break;case It:r.fillColorSpace=ln.parse({cs:u[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case Et:r.fillColorSpace.getRgbItem(u,0,r.fontColor,0);break;case Bt:ln.singletons.rgb.getRgbItem(u,0,r.fontColor,0);break;case Mt:ln.singletons.gray.getRgbItem(u,0,r.fontColor,0);break;case Nt:ln.singletons.cmyk.getRgbItem(u,0,r.fontColor,0);break;case kt:case xt:case St:case Ct:o=!0}}}catch(t){warn('parseAppearanceStream - ignoring errors: "'.concat(t,'".'))}this.stream.reset();delete r.scaleFactor;delete r.fillColorSpace;return r}},{key:"_localColorSpaceCache",get:function get(){return shadow(this,"_localColorSpaceCache",new uc)}},{key:"_pdfFunctionFactory",get:function get(){return shadow(this,"_pdfFunctionFactory",new yc({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}}]);return AppearanceStreamEvaluator}(sl);function getPdfColor(t,r){if(t[0]===t[1]&&t[1]===t[2]){var o=t[0]/255;return"".concat(numberToString(o)," ").concat(r?"g":"G")}return Array.from(t,(function(t){return numberToString(t/255)})).join(" ")+" ".concat(r?"rg":"RG")}var fl=function(){function FakeUnicodeFont(t,r){default_appearance_classCallCheck(this,FakeUnicodeFont);this.xref=t;this.widths=null;this.firstChar=1/0;this.lastChar=-1/0;this.fontFamily=r;var o=new OffscreenCanvas(1,1);this.ctxMeasure=o.getContext("2d");FakeUnicodeFont._fontNameId||(FakeUnicodeFont._fontNameId=1);this.fontName=Ur.get("InvalidPDFjsFont_".concat(r,"_").concat(FakeUnicodeFont._fontNameId++))}default_appearance_createClass(FakeUnicodeFont,[{key:"toUnicodeRef",get:function get(){if(!FakeUnicodeFont._toUnicodeRef){var t="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> <FFFF>\nendcodespacerange\n1 beginbfrange\n<0000> <FFFF> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end",r=FakeUnicodeFont.toUnicodeStream=new rn(t),o=new qr(this.xref);r.dict=o;o.set("Length",346);FakeUnicodeFont._toUnicodeRef=this.xref.getNewPersistentRef(r)}return FakeUnicodeFont._toUnicodeRef}},{key:"fontDescriptorRef",get:function get(){if(!FakeUnicodeFont._fontDescriptorRef){var t=new qr(this.xref);t.set("Type",Ur.get("FontDescriptor"));t.set("FontName",this.fontName);t.set("FontFamily","MyriadPro Regular");t.set("FontBBox",[0,0,0,0]);t.set("FontStretch",Ur.get("Normal"));t.set("FontWeight",400);t.set("ItalicAngle",0);FakeUnicodeFont._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return FakeUnicodeFont._fontDescriptorRef}},{key:"descendantFontRef",get:function get(){var t=new qr(this.xref);t.set("BaseFont",this.fontName);t.set("Type",Ur.get("Font"));t.set("Subtype",Ur.get("CIDFontType0"));t.set("CIDToGIDMap",Ur.get("Identity"));t.set("FirstChar",this.firstChar);t.set("LastChar",this.lastChar);t.set("FontDescriptor",this.fontDescriptorRef);t.set("DW",1e3);var r,o=[],c=null,l=null,u=default_appearance_createForOfIteratorHelper(default_appearance_toConsumableArray(this.widths.entries()).sort());try{for(u.s();!(r=u.n()).done;){var h=default_appearance_slicedToArray(r.value,2),d=h[0],g=h[1];if(c)if(d===c+l.length)l.push(g);else{o.push(c,l);c=d;l=[g]}else{c=d;l=[g]}}}catch(t){u.e(t)}finally{u.f()}c&&o.push(c,l);t.set("W",o);var y=new qr(this.xref);y.set("Ordering","Identity");y.set("Registry","Adobe");y.set("Supplement",0);t.set("CIDSystemInfo",y);return this.xref.getNewPersistentRef(t)}},{key:"baseFontRef",get:function get(){var t=new qr(this.xref);t.set("BaseFont",this.fontName);t.set("Type",Ur.get("Font"));t.set("Subtype",Ur.get("Type0"));t.set("Encoding",Ur.get("Identity-H"));t.set("DescendantFonts",[this.descendantFontRef]);t.set("ToUnicode",this.toUnicodeRef);return this.xref.getNewPersistentRef(t)}},{key:"resources",get:function get(){var t=new qr(this.xref),r=new qr(this.xref);r.set(this.fontName.name,this.baseFontRef);t.set("Font",r);return t}},{key:"_createContext",value:function _createContext(){this.widths=new Map;this.ctxMeasure.font="1000px ".concat(this.fontFamily);return this.ctxMeasure}},{key:"createFontResources",value:function createFontResources(t){var r,o=this._createContext(),c=default_appearance_createForOfIteratorHelper(t.split(/\r\n?|\n/));try{for(c.s();!(r=c.n()).done;){var l,u=default_appearance_createForOfIteratorHelper(r.value.split(""));try{for(u.s();!(l=u.n()).done;){var h=l.value,d=h.charCodeAt(0);if(!this.widths.has(d)){var g=o.measureText(h),y=Math.ceil(g.width);this.widths.set(d,y);this.firstChar=Math.min(d,this.firstChar);this.lastChar=Math.max(d,this.lastChar)}}}catch(t){u.e(t)}finally{u.f()}}}catch(t){c.e(t)}finally{c.f()}return this.resources}},{key:"createAppearance",value:function createAppearance(t,r,o,u,h,d){var g,y=this._createContext(),m=[],v=-1/0,_=default_appearance_createForOfIteratorHelper(t.split(/\r\n?|\n/));try{for(_.s();!(g=_.n()).done;){var w=g.value;m.push(w);var k=y.measureText(w).width;v=Math.max(v,k);var x,S=default_appearance_createForOfIteratorHelper(w.split(""));try{for(S.s();!(x=S.n()).done;){var C=x.value,O=C.charCodeAt(0),T=this.widths.get(O);if(void 0===T){var E=y.measureText(C);T=Math.ceil(E.width);this.widths.set(O,T);this.firstChar=Math.min(O,this.firstChar);this.lastChar=Math.max(O,this.lastChar)}}}catch(t){S.e(t)}finally{S.f()}}}catch(t){_.e(t)}finally{_.f()}v*=u/1e3;var j=default_appearance_slicedToArray(r,4),R=j[0],M=j[1],L=j[2]-R,D=j[3]-M;if(o%180!=0){var N=[D,L];L=N[0];D=N[1]}var U=1;v>L&&(U=L/v);var G=1,H=c*u,q=l*u,z=H*m.length;z>D&&(G=D/z);var W=u*Math.min(U,G),V=["q","0 0 ".concat(numberToString(L)," ").concat(numberToString(D)," re W n"),"BT","1 0 0 1 0 ".concat(numberToString(D+q)," Tm 0 Tc ").concat(getPdfColor(h,!0)),"/".concat(this.fontName.name," ").concat(numberToString(W)," Tf")],X=this.resources;if(1!==(d="number"==typeof d&&d>=0&&d<=1?d:1)){V.push("/R0 gs");var K=new qr(this.xref),Y=new qr(this.xref);Y.set("ca",d);Y.set("CA",d);Y.set("Type",Ur.get("ExtGState"));K.set("R0",Y);X.set("ExtGState",K)}for(var J=numberToString(H),$=0,Z=m;$<Z.length;$++){var Q=Z[$];V.push("0 -".concat(J," Td <").concat(stringToUTF16HexString(Q),"> Tj"))}V.push("ET","Q");var ee=V.join("\n"),te=new qr(this.xref);te.set("Subtype",Ur.get("Form"));te.set("Type",Ur.get("XObject"));te.set("BBox",[0,0,L,D]);te.set("Length",ee.length);te.set("Resources",X);if(o){var re=core_utils_getRotationMatrix(o,L,D);te.set("Matrix",re)}var ne=new rn(ee);ne.dict=te;return ne}}]);return FakeUnicodeFont}();__webpack_require__(7254),__webpack_require__(5520);function name_number_tree_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&name_number_tree_setPrototypeOf(t,r)}function name_number_tree_setPrototypeOf(t,r){name_number_tree_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return name_number_tree_setPrototypeOf(t,r)}function name_number_tree_createSuper(t){var r=function name_number_tree_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=name_number_tree_getPrototypeOf(t);if(r){var l=name_number_tree_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function name_number_tree_possibleConstructorReturn(t,r){if(r&&("object"===name_number_tree_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function name_number_tree_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function name_number_tree_getPrototypeOf(t){name_number_tree_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return name_number_tree_getPrototypeOf(t)}function name_number_tree_typeof(t){return name_number_tree_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},name_number_tree_typeof(t)}function name_number_tree_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function name_number_tree_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return name_number_tree_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return name_number_tree_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function name_number_tree_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function name_number_tree_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function name_number_tree_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,name_number_tree_toPropertyKey(c.key),c)}}function name_number_tree_createClass(t,r,o){r&&name_number_tree_defineProperties(t.prototype,r);o&&name_number_tree_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function name_number_tree_toPropertyKey(t){var r=function name_number_tree_toPrimitive(t,r){if("object"!=name_number_tree_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=name_number_tree_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==name_number_tree_typeof(r)?r:String(r)}var hl=function(){function NameOrNumberTree(t,r,o){name_number_tree_classCallCheck(this,NameOrNumberTree);this.constructor===NameOrNumberTree&&unreachable("Cannot initialize NameOrNumberTree.");this.root=t;this.xref=r;this._type=o}name_number_tree_createClass(NameOrNumberTree,[{key:"getAll",value:function getAll(){var t=new Map;if(!this.root)return t;var r=this.xref,o=new Wr;o.put(this.root);for(var c=[this.root];c.length>0;){var l=r.fetchIfRef(c.shift());if(l instanceof qr)if(l.has("Kids")){var u=l.get("Kids");if(!Array.isArray(u))continue;var h,d=name_number_tree_createForOfIteratorHelper(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;if(o.has(g))throw new Sr('Duplicate entry in "'.concat(this._type,'" tree.'));c.push(g);o.put(g)}}catch(t){d.e(t)}finally{d.f()}}else{var y=l.get(this._type);if(Array.isArray(y))for(var m=0,v=y.length;m<v;m+=2)t.set(r.fetchIfRef(y[m]),r.fetchIfRef(y[m+1]))}}return t}},{key:"get",value:function get(t){if(!this.root)return null;for(var r=this.xref,o=r.fetchIfRef(this.root),c=0;o.has("Kids");){if(++c>10){warn('Search depth limit reached for "'.concat(this._type,'" tree.'));return null}var l=o.get("Kids");if(!Array.isArray(l))return null;for(var u=0,h=l.length-1;u<=h;){var d=u+h>>1,g=r.fetchIfRef(l[d]),y=g.get("Limits");if(t<r.fetchIfRef(y[0]))h=d-1;else{if(!(t>r.fetchIfRef(y[1]))){o=g;break}u=d+1}}if(u>h)return null}var m=o.get(this._type);if(Array.isArray(m))for(var v=0,_=m.length-2;v<=_;){var w=v+_>>1,k=w+(1&w),x=r.fetchIfRef(m[k]);if(t<x)_=k-2;else{if(!(t>x))return r.fetchIfRef(m[k+1]);v=k+2}}return null}}]);return NameOrNumberTree}(),pl=function(t){name_number_tree_inherits(NameTree,t);var r=name_number_tree_createSuper(NameTree);function NameTree(t,o){name_number_tree_classCallCheck(this,NameTree);return r.call(this,t,o,"Names")}return name_number_tree_createClass(NameTree)}(hl),dl=function(t){name_number_tree_inherits(NumberTree,t);var r=name_number_tree_createSuper(NumberTree);function NumberTree(t,o){name_number_tree_classCallCheck(this,NumberTree);return r.call(this,t,o,"Nums")}return name_number_tree_createClass(NumberTree)}(hl);function clearGlobalCaches(){!function clearPatternCaches(){hs=Object.create(null)}();!function clearPrimitiveCaches(){Lr=Object.create(null);Dr=Object.create(null);Nr=Object.create(null)}();!function clearUnicodeCaches(){eo.clear()}()}function file_spec_typeof(t){return file_spec_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},file_spec_typeof(t)}function file_spec_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,file_spec_toPropertyKey(c.key),c)}}function file_spec_toPropertyKey(t){var r=function file_spec_toPrimitive(t,r){if("object"!=file_spec_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=file_spec_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==file_spec_typeof(r)?r:String(r)}function pickPlatformItem(t){return t.has("UF")?t.get("UF"):t.has("F")?t.get("F"):t.has("Unix")?t.get("Unix"):t.has("Mac")?t.get("Mac"):t.has("DOS")?t.get("DOS"):null}var gl=function(){function FileSpec(t,r){!function file_spec_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FileSpec);if(t instanceof qr){this.xref=r;this.root=t;t.has("FS")&&(this.fs=t.get("FS"));this.description=t.has("Desc")?stringToPDFString(t.get("Desc")):"";t.has("RF")&&warn("Related file specifications are not supported");this.contentAvailable=!0;if(!t.has("EF")){this.contentAvailable=!1;warn("Non-embedded file specifications are not supported")}}}!function file_spec_createClass(t,r,o){r&&file_spec_defineProperties(t.prototype,r);o&&file_spec_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(FileSpec,[{key:"filename",get:function get(){if(!this._filename&&this.root){var t=pickPlatformItem(this.root)||"unnamed";this._filename=stringToPDFString(t).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}},{key:"content",get:function get(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=pickPlatformItem(this.root.get("EF")));var t=null;if(this.contentRef){var r=this.xref.fetchIfRef(this.contentRef);r instanceof Xr?t=r.getBytes():warn("Embedded file specification points to non-existing/invalid content")}else warn("Embedded file specification does not have a content");return t}},{key:"serializable",get:function get(){return{filename:this.filename,content:this.content}}}]);return FileSpec}();function xml_parser_setPrototypeOf(t,r){xml_parser_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return xml_parser_setPrototypeOf(t,r)}function xml_parser_createSuper(t){var r=function xml_parser_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=xml_parser_getPrototypeOf(t);if(r){var l=xml_parser_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function xml_parser_possibleConstructorReturn(t,r){if(r&&("object"===xml_parser_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function xml_parser_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function xml_parser_getPrototypeOf(t){xml_parser_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return xml_parser_getPrototypeOf(t)}function xml_parser_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=xml_parser_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function xml_parser_slicedToArray(t,r){return function xml_parser_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function xml_parser_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||xml_parser_unsupportedIterableToArray(t,r)||function xml_parser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xml_parser_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return xml_parser_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?xml_parser_arrayLikeToArray(t,r):void 0}}function xml_parser_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function xml_parser_typeof(t){return xml_parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xml_parser_typeof(t)}function xml_parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function xml_parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xml_parser_toPropertyKey(c.key),c)}}function xml_parser_createClass(t,r,o){r&&xml_parser_defineProperties(t.prototype,r);o&&xml_parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function xml_parser_toPropertyKey(t){var r=function xml_parser_toPrimitive(t,r){if("object"!=xml_parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xml_parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xml_parser_typeof(r)?r:String(r)}var yl=0,ml=-2,vl=-3,bl=-4,_l=-5,wl=-6,kl=-9;function isWhitespace(t,r){var o=t[r];return" "===o||"\n"===o||"\r"===o||"\t"===o}var xl=function(){function XMLParserBase(){xml_parser_classCallCheck(this,XMLParserBase)}xml_parser_createClass(XMLParserBase,[{key:"_resolveEntities",value:function _resolveEntities(t){var r=this;return t.replaceAll(/&([^;]+);/g,(function(t,o){if("#x"===o.substring(0,2))return String.fromCodePoint(parseInt(o.substring(2),16));if("#"===o.substring(0,1))return String.fromCodePoint(parseInt(o.substring(1),10));switch(o){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return r.onResolveEntity(o)}))}},{key:"_parseContent",value:function _parseContent(t,r){var o=[],c=r;function skipWs(){for(;c<t.length&&isWhitespace(t,c);)++c}for(;c<t.length&&!isWhitespace(t,c)&&">"!==t[c]&&"/"!==t[c];)++c;var l=t.substring(r,c);skipWs();for(;c<t.length&&">"!==t[c]&&"/"!==t[c]&&"?"!==t[c];){skipWs();for(var u,h="";c<t.length&&!isWhitespace(t,c)&&"="!==t[c];){h+=t[c];++c}skipWs();if("="!==t[c])return null;++c;skipWs();var d=t[c];if('"'!==d&&"'"!==d)return null;var g=t.indexOf(d,++c);if(g<0)return null;u=t.substring(c,g);o.push({name:h,value:this._resolveEntities(u)});c=g+1;skipWs()}return{name:l,attributes:o,parsed:c-r}}},{key:"_parseProcessingInstruction",value:function _parseProcessingInstruction(t,r){var o=r;for(;o<t.length&&!isWhitespace(t,o)&&">"!==t[o]&&"?"!==t[o]&&"/"!==t[o];)++o;var c=t.substring(r,o);!function skipWs(){for(;o<t.length&&isWhitespace(t,o);)++o}();for(var l=o;o<t.length&&("?"!==t[o]||">"!==t[o+1]);)++o;return{name:c,value:t.substring(l,o),parsed:o-r}}},{key:"parseXml",value:function parseXml(t){for(var r=0;r<t.length;){var o=r;if("<"===t[r]){var c=void 0;switch(t[++o]){case"/":++o;if((c=t.indexOf(">",o))<0){this.onError(kl);return}this.onEndElement(t.substring(o,c));o=c+1;break;case"?":++o;var l=this._parseProcessingInstruction(t,o);if("?>"!==t.substring(o+l.parsed,o+l.parsed+2)){this.onError(vl);return}this.onPi(l.name,l.value);o+=l.parsed+2;break;case"!":if("--"===t.substring(o+1,o+3)){if((c=t.indexOf("--\x3e",o+3))<0){this.onError(_l);return}this.onComment(t.substring(o+3,c));o=c+3}else if("[CDATA["===t.substring(o+1,o+8)){if((c=t.indexOf("]]>",o+8))<0){this.onError(ml);return}this.onCdata(t.substring(o+8,c));o=c+3}else{if("DOCTYPE"!==t.substring(o+1,o+8)){this.onError(wl);return}var u=t.indexOf("[",o+8),h=!1;if((c=t.indexOf(">",o+8))<0){this.onError(bl);return}if(u>0&&c>u){if((c=t.indexOf("]>",o+8))<0){this.onError(bl);return}h=!0}var d=t.substring(o+8,c+(h?1:0));this.onDoctype(d);o=c+(h?2:1)}break;default:var g=this._parseContent(t,o);if(null===g){this.onError(wl);return}var y=!1;if("/>"===t.substring(o+g.parsed,o+g.parsed+2))y=!0;else if(">"!==t.substring(o+g.parsed,o+g.parsed+1)){this.onError(kl);return}this.onBeginElement(g.name,g.attributes,y);o+=g.parsed+(y?2:1)}}else{for(;o<t.length&&"<"!==t[o];)o++;var m=t.substring(r,o);this.onText(this._resolveEntities(m))}r=o}}},{key:"onResolveEntity",value:function onResolveEntity(t){return"&".concat(t,";")}},{key:"onPi",value:function onPi(t,r){}},{key:"onComment",value:function onComment(t){}},{key:"onCdata",value:function onCdata(t){}},{key:"onDoctype",value:function onDoctype(t){}},{key:"onText",value:function onText(t){}},{key:"onBeginElement",value:function onBeginElement(t,r,o){}},{key:"onEndElement",value:function onEndElement(t){}},{key:"onError",value:function onError(t){}}]);return XMLParserBase}(),Sl=function(){function SimpleDOMNode(t,r){xml_parser_classCallCheck(this,SimpleDOMNode);this.nodeName=t;this.nodeValue=r;Object.defineProperty(this,"parentNode",{value:null,writable:!0})}xml_parser_createClass(SimpleDOMNode,[{key:"firstChild",get:function get(){var t;return null===(t=this.childNodes)||void 0===t?void 0:t[0]}},{key:"nextSibling",get:function get(){var t=this.parentNode.childNodes;if(t){var r=t.indexOf(this);if(-1!==r)return t[r+1]}}},{key:"textContent",get:function get(){return this.childNodes?this.childNodes.map((function(t){return t.textContent})).join(""):this.nodeValue||""}},{key:"children",get:function get(){return this.childNodes||[]}},{key:"hasChildNodes",value:function hasChildNodes(){var t;return(null===(t=this.childNodes)||void 0===t?void 0:t.length)>0}},{key:"searchNode",value:function searchNode(t,r){if(r>=t.length)return this;var o=t[r];if(o.name.startsWith("#")&&r<t.length-1)return this.searchNode(t,r+1);for(var c=[],l=this;;){var u;if(o.name===l.nodeName){if(0!==o.pos){if(0===c.length)return null;var h,d=0,g=xml_parser_createForOfIteratorHelper(xml_parser_slicedToArray(c.pop(),1)[0].childNodes);try{for(g.s();!(h=g.n()).done;){var y=h.value;if(o.name===y.nodeName){if(d===o.pos)return y.searchNode(t,r+1);d++}}}catch(t){g.e(t)}finally{g.f()}return l.searchNode(t,r+1)}var m=l.searchNode(t,r+1);if(null!==m)return m}if((null===(u=l.childNodes)||void 0===u?void 0:u.length)>0){c.push([l,0]);l=l.childNodes[0]}else{if(0===c.length)return null;for(;0!==c.length;){var v=xml_parser_slicedToArray(c.pop(),2),_=v[0],w=v[1]+1;if(w<_.childNodes.length){c.push([_,w]);l=_.childNodes[w];break}}if(0===c.length)return null}}}},{key:"dump",value:function dump(t){if("#text"!==this.nodeName){t.push("<".concat(this.nodeName));if(this.attributes){var r,o=xml_parser_createForOfIteratorHelper(this.attributes);try{for(o.s();!(r=o.n()).done;){var c=r.value;t.push(" ".concat(c.name,'="').concat(encodeToXmlString(c.value),'"'))}}catch(t){o.e(t)}finally{o.f()}}if(this.hasChildNodes()){t.push(">");var l,u=xml_parser_createForOfIteratorHelper(this.childNodes);try{for(u.s();!(l=u.n()).done;){l.value.dump(t)}}catch(t){u.e(t)}finally{u.f()}t.push("</".concat(this.nodeName,">"))}else this.nodeValue?t.push(">".concat(encodeToXmlString(this.nodeValue),"</").concat(this.nodeName,">")):t.push("/>")}else t.push(encodeToXmlString(this.nodeValue))}}]);return SimpleDOMNode}(),Cl=function(t){!function xml_parser_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&xml_parser_setPrototypeOf(t,r)}(SimpleXMLParser,t);var r=xml_parser_createSuper(SimpleXMLParser);function SimpleXMLParser(t){var o,c=t.hasAttributes,l=void 0!==c&&c,u=t.lowerCaseName,h=void 0!==u&&u;xml_parser_classCallCheck(this,SimpleXMLParser);(o=r.call(this))._currentFragment=null;o._stack=null;o._errorCode=yl;o._hasAttributes=l;o._lowerCaseName=h;return o}xml_parser_createClass(SimpleXMLParser,[{key:"parseFromString",value:function parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=yl;this.parseXml(t);if(this._errorCode===yl){var r=xml_parser_slicedToArray(this._currentFragment,1)[0];if(r)return{documentElement:r}}}},{key:"onText",value:function onText(t){if(!function isWhitespaceString(t){for(var r=0,o=t.length;r<o;r++)if(!isWhitespace(t,r))return!1;return!0}(t)){var r=new Sl("#text",t);this._currentFragment.push(r)}}},{key:"onCdata",value:function onCdata(t){var r=new Sl("#text",t);this._currentFragment.push(r)}},{key:"onBeginElement",value:function onBeginElement(t,r,o){this._lowerCaseName&&(t=t.toLowerCase());var c=new Sl(t);c.childNodes=[];this._hasAttributes&&(c.attributes=r);this._currentFragment.push(c);if(!o){this._stack.push(this._currentFragment);this._currentFragment=c.childNodes}}},{key:"onEndElement",value:function onEndElement(t){this._currentFragment=this._stack.pop()||[];var r=this._currentFragment.at(-1);if(!r)return null;var o,c=xml_parser_createForOfIteratorHelper(r.childNodes);try{for(c.s();!(o=c.n()).done;){o.value.parentNode=r}}catch(t){c.e(t)}finally{c.f()}return r}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return SimpleXMLParser}(xl);function metadata_parser_typeof(t){return metadata_parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},metadata_parser_typeof(t)}function metadata_parser_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=metadata_parser_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function metadata_parser_slicedToArray(t,r){return function metadata_parser_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function metadata_parser_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||metadata_parser_unsupportedIterableToArray(t,r)||function metadata_parser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function metadata_parser_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return metadata_parser_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?metadata_parser_arrayLikeToArray(t,r):void 0}}function metadata_parser_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function metadata_parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,metadata_parser_toPropertyKey(c.key),c)}}function metadata_parser_toPropertyKey(t){var r=function metadata_parser_toPrimitive(t,r){if("object"!=metadata_parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=metadata_parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==metadata_parser_typeof(r)?r:String(r)}var Al=function(){function MetadataParser(t){!function metadata_parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MetadataParser);t=this._repair(t);var r=new Cl({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map;this._data=t;r&&this._parse(r)}!function metadata_parser_createClass(t,r,o){r&&metadata_parser_defineProperties(t.prototype,r);o&&metadata_parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(MetadataParser,[{key:"_repair",value:function _repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(t,r){for(var o=r.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(t,r,o,c){return String.fromCharCode(64*r+8*o+1*c)})).replaceAll(/&(amp|apos|gt|lt|quot);/g,(function(t,r){switch(r){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(r," isn't defined."))})),c=[">"],l=0,u=o.length;l<u;l+=2){var h=256*o.charCodeAt(l)+o.charCodeAt(l+1);h>=32&&h<127&&60!==h&&62!==h&&38!==h?c.push(String.fromCharCode(h)):c.push("&#x"+(65536+h).toString(16).substring(1)+";")}return c.join("")}))}},{key:"_getSequence",value:function _getSequence(t){var r=t.nodeName;return"rdf:bag"!==r&&"rdf:seq"!==r&&"rdf:alt"!==r?null:t.childNodes.filter((function(t){return"rdf:li"===t.nodeName}))}},{key:"_parseArray",value:function _parseArray(t){if(t.hasChildNodes()){var r=metadata_parser_slicedToArray(t.childNodes,1)[0],o=this._getSequence(r)||[];this._metadataMap.set(t.nodeName,o.map((function(t){return t.textContent.trim()})))}}},{key:"_parse",value:function _parse(t){var r=t.documentElement;if("rdf:rdf"!==r.nodeName){r=r.firstChild;for(;r&&"rdf:rdf"!==r.nodeName;)r=r.nextSibling}if(r&&"rdf:rdf"===r.nodeName&&r.hasChildNodes()){var o,c=metadata_parser_createForOfIteratorHelper(r.childNodes);try{for(c.s();!(o=c.n()).done;){var l=o.value;if("rdf:description"===l.nodeName){var u,h=metadata_parser_createForOfIteratorHelper(l.childNodes);try{for(h.s();!(u=h.n()).done;){var d=u.value,g=d.nodeName;switch(g){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(d);continue}this._metadataMap.set(g,d.textContent.trim())}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){c.e(t)}finally{c.f()}}}},{key:"serializable",get:function get(){return{parsedData:this._metadataMap,rawData:this._data}}}]);return MetadataParser}();function decrypt_stream_typeof(t){return decrypt_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},decrypt_stream_typeof(t)}function decrypt_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,decrypt_stream_toPropertyKey(c.key),c)}}function decrypt_stream_toPropertyKey(t){var r=function decrypt_stream_toPrimitive(t,r){if("object"!=decrypt_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=decrypt_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==decrypt_stream_typeof(r)?r:String(r)}function decrypt_stream_setPrototypeOf(t,r){decrypt_stream_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return decrypt_stream_setPrototypeOf(t,r)}function decrypt_stream_createSuper(t){var r=function decrypt_stream_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=decrypt_stream_getPrototypeOf(t);if(r){var l=decrypt_stream_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function decrypt_stream_possibleConstructorReturn(t,r){if(r&&("object"===decrypt_stream_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function decrypt_stream_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function decrypt_stream_getPrototypeOf(t){decrypt_stream_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return decrypt_stream_getPrototypeOf(t)}var Pl,Il=function(t){!function decrypt_stream_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&decrypt_stream_setPrototypeOf(t,r)}(DecryptStream,t);var r=decrypt_stream_createSuper(DecryptStream);function DecryptStream(t,o,c){var l;!function decrypt_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DecryptStream);(l=r.call(this,o)).str=t;l.dict=t.dict;l.decrypt=c;l.nextChunk=null;l.initialized=!1;return l}!function decrypt_stream_createClass(t,r,o){r&&decrypt_stream_defineProperties(t.prototype,r);o&&decrypt_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(DecryptStream,[{key:"readBlock",value:function readBlock(){var t,r;if(this.initialized)r=this.nextChunk;else{r=this.str.getBytes(512);this.initialized=!0}if(r&&0!==r.length){this.nextChunk=this.str.getBytes(512);var o=(null===(t=this.nextChunk)||void 0===t?void 0:t.length)>0;r=(0,this.decrypt)(r,!o);var c=this.bufferLength,l=c+r.length;this.ensureBuffer(l).set(r,c);this.bufferLength=l}else this.eof=!0}}]);return DecryptStream}(Vn);function crypto_classPrivateMethodInitSpec(t,r){!function crypto_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function crypto_classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}function crypto_classStaticPrivateFieldSpecGet(t,r,o){!function crypto_classCheckPrivateStaticAccess(t,r){if(t!==r)throw new TypeError("Private static access of wrong provenance")}(t,r);!function crypto_classCheckPrivateStaticFieldDescriptor(t,r){if(void 0===t)throw new TypeError("attempted to "+r+" private static field before its declaration")}(o,"get");return function crypto_classApplyDescriptorGet(t,r){if(r.get)return r.get.call(t);return r.value}(t,o)}function crypto_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&crypto_setPrototypeOf(t,r)}function crypto_setPrototypeOf(t,r){crypto_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return crypto_setPrototypeOf(t,r)}function crypto_createSuper(t){var r=function crypto_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=crypto_getPrototypeOf(t);if(r){var l=crypto_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function crypto_possibleConstructorReturn(t,r){if(r&&("object"===crypto_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function crypto_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function crypto_getPrototypeOf(t){crypto_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return crypto_getPrototypeOf(t)}function crypto_typeof(t){return crypto_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},crypto_typeof(t)}function crypto_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function crypto_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,crypto_toPropertyKey(c.key),c)}}function crypto_createClass(t,r,o){r&&crypto_defineProperties(t.prototype,r);o&&crypto_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function crypto_toPropertyKey(t){var r=function crypto_toPrimitive(t,r){if("object"!=crypto_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=crypto_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==crypto_typeof(r)?r:String(r)}var Tl=function(){function ARCFourCipher(t){crypto_classCallCheck(this,ARCFourCipher);this.a=0;this.b=0;for(var r=new Uint8Array(256),o=t.length,c=0;c<256;++c)r[c]=c;for(var l=0,u=0;l<256;++l){var h=r[l];u=u+h+t[l%o]&255;r[l]=r[u];r[u]=h}this.s=r}crypto_createClass(ARCFourCipher,[{key:"encryptBlock",value:function encryptBlock(t){for(var r=this.a,o=this.b,c=this.s,l=t.length,u=new Uint8Array(l),h=0;h<l;++h){var d=c[r=r+1&255],g=c[o=o+d&255];c[r]=g;c[o]=d;u[h]=t[h]^c[d+g&255]}this.a=r;this.b=o;return u}},{key:"decryptBlock",value:function decryptBlock(t){return this.encryptBlock(t)}},{key:"encrypt",value:function encrypt(t){return this.encryptBlock(t)}}]);return ARCFourCipher}(),Fl=function calculateMD5Closure(){var t=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),r=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function hash(o,c,l){var u,h,d=1732584193,g=-271733879,y=-1732584194,m=271733878,v=l+72&-64,_=new Uint8Array(v);for(u=0;u<l;++u)_[u]=o[c++];_[u++]=128;for(var w=v-8;u<w;)_[u++]=0;_[u++]=l<<3&255;_[u++]=l>>5&255;_[u++]=l>>13&255;_[u++]=l>>21&255;_[u++]=l>>>29&255;_[u++]=0;_[u++]=0;_[u++]=0;var k=new Int32Array(16);for(u=0;u<v;){for(h=0;h<16;++h,u+=4)k[h]=_[u]|_[u+1]<<8|_[u+2]<<16|_[u+3]<<24;var x=d,S=g,C=y,O=m,T=void 0,E=void 0;for(h=0;h<64;++h){if(h<16){T=S&C|~S&O;E=h}else if(h<32){T=O&S|~O&C;E=5*h+1&15}else if(h<48){T=S^C^O;E=3*h+5&15}else{T=C^(S|~O);E=7*h&15}var j=O,R=x+T+r[h]+k[E]|0,M=t[h];O=C;C=S;S=S+(R<<M|R>>>32-M)|0;x=j}d=d+x|0;g=g+S|0;y=y+C|0;m=m+O|0}return new Uint8Array([255&d,d>>8&255,d>>16&255,d>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255,255&y,y>>8&255,y>>16&255,y>>>24&255,255&m,m>>8&255,m>>16&255,m>>>24&255])}}(),El=function(){function Word64(t,r){crypto_classCallCheck(this,Word64);this.high=0|t;this.low=0|r}crypto_createClass(Word64,[{key:"and",value:function and(t){this.high&=t.high;this.low&=t.low}},{key:"xor",value:function xor(t){this.high^=t.high;this.low^=t.low}},{key:"or",value:function or(t){this.high|=t.high;this.low|=t.low}},{key:"shiftRight",value:function shiftRight(t){if(t>=32){this.low=this.high>>>t-32|0;this.high=0}else{this.low=this.low>>>t|this.high<<32-t;this.high=this.high>>>t|0}}},{key:"shiftLeft",value:function shiftLeft(t){if(t>=32){this.high=this.low<<t-32;this.low=0}else{this.high=this.high<<t|this.low>>>32-t;this.low<<=t}}},{key:"rotateRight",value:function rotateRight(t){var r,o;if(32&t){o=this.low;r=this.high}else{r=this.low;o=this.high}t&=31;this.low=r>>>t|o<<32-t;this.high=o>>>t|r<<32-t}},{key:"not",value:function not(){this.high=~this.high;this.low=~this.low}},{key:"add",value:function add(t){var r=(this.low>>>0)+(t.low>>>0),o=(this.high>>>0)+(t.high>>>0);r>4294967295&&(o+=1);this.low=0|r;this.high=0|o}},{key:"copyTo",value:function copyTo(t,r){t[r]=this.high>>>24&255;t[r+1]=this.high>>16&255;t[r+2]=this.high>>8&255;t[r+3]=255&this.high;t[r+4]=this.low>>>24&255;t[r+5]=this.low>>16&255;t[r+6]=this.low>>8&255;t[r+7]=255&this.low}},{key:"assign",value:function assign(t){this.high=t.high;this.low=t.low}}]);return Word64}(),jl=function calculateSHA256Closure(){function rotr(t,r){return t>>>r|t<<32-r}function ch(t,r,o){return t&r^~t&o}function maj(t,r,o){return t&r^t&o^r&o}function sigma(t){return rotr(t,2)^rotr(t,13)^rotr(t,22)}function sigmaPrime(t){return rotr(t,6)^rotr(t,11)^rotr(t,25)}function littleSigma(t){return rotr(t,7)^rotr(t,18)^t>>>3}var t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function hash(r,o,c){var l,u,h=1779033703,d=3144134277,g=1013904242,y=2773480762,m=1359893119,v=2600822924,_=528734635,w=1541459225,k=64*Math.ceil((c+9)/64),x=new Uint8Array(k);for(l=0;l<c;++l)x[l]=r[o++];x[l++]=128;for(var S=k-8;l<S;)x[l++]=0;x[l++]=0;x[l++]=0;x[l++]=0;x[l++]=c>>>29&255;x[l++]=c>>21&255;x[l++]=c>>13&255;x[l++]=c>>5&255;x[l++]=c<<3&255;var C,O=new Uint32Array(64);for(l=0;l<k;){for(u=0;u<16;++u){O[u]=x[l]<<24|x[l+1]<<16|x[l+2]<<8|x[l+3];l+=4}for(u=16;u<64;++u)O[u]=(rotr(C=O[u-2],17)^rotr(C,19)^C>>>10)+O[u-7]+littleSigma(O[u-15])+O[u-16]|0;var T=h,E=d,j=g,R=y,M=m,L=v,D=_,N=w,U=void 0,G=void 0;for(u=0;u<64;++u){U=N+sigmaPrime(M)+ch(M,L,D)+t[u]+O[u];G=sigma(T)+maj(T,E,j);N=D;D=L;L=M;M=R+U|0;R=j;j=E;E=T;T=U+G|0}h=h+T|0;d=d+E|0;g=g+j|0;y=y+R|0;m=m+M|0;v=v+L|0;_=_+D|0;w=w+N|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,g>>24&255,g>>16&255,g>>8&255,255&g,y>>24&255,y>>16&255,y>>8&255,255&y,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w])}}(),Rl=function calculateSHA512Closure(){function ch(t,r,o,c,l){t.assign(r);t.and(o);l.assign(r);l.not();l.and(c);t.xor(l)}function maj(t,r,o,c,l){t.assign(r);t.and(o);l.assign(r);l.and(c);t.xor(l);l.assign(o);l.and(c);t.xor(l)}function sigma(t,r,o){t.assign(r);t.rotateRight(28);o.assign(r);o.rotateRight(34);t.xor(o);o.assign(r);o.rotateRight(39);t.xor(o)}function sigmaPrime(t,r,o){t.assign(r);t.rotateRight(14);o.assign(r);o.rotateRight(18);t.xor(o);o.assign(r);o.rotateRight(41);t.xor(o)}function littleSigma(t,r,o){t.assign(r);t.rotateRight(1);o.assign(r);o.rotateRight(8);t.xor(o);o.assign(r);o.shiftRight(7);t.xor(o)}function littleSigmaPrime(t,r,o){t.assign(r);t.rotateRight(19);o.assign(r);o.rotateRight(61);t.xor(o);o.assign(r);o.shiftRight(6);t.xor(o)}var t=[new El(1116352408,3609767458),new El(1899447441,602891725),new El(3049323471,3964484399),new El(3921009573,2173295548),new El(961987163,4081628472),new El(1508970993,3053834265),new El(2453635748,2937671579),new El(2870763221,3664609560),new El(3624381080,2734883394),new El(310598401,1164996542),new El(607225278,1323610764),new El(1426881987,3590304994),new El(1925078388,4068182383),new El(2162078206,991336113),new El(2614888103,633803317),new El(3248222580,3479774868),new El(3835390401,2666613458),new El(4022224774,944711139),new El(264347078,2341262773),new El(604807628,2007800933),new El(770255983,1495990901),new El(1249150122,1856431235),new El(1555081692,3175218132),new El(1996064986,2198950837),new El(2554220882,3999719339),new El(2821834349,766784016),new El(2952996808,2566594879),new El(3210313671,3203337956),new El(3336571891,1034457026),new El(3584528711,2466948901),new El(113926993,3758326383),new El(338241895,168717936),new El(666307205,1188179964),new El(773529912,1546045734),new El(1294757372,1522805485),new El(1396182291,2643833823),new El(1695183700,2343527390),new El(1986661051,1014477480),new El(2177026350,1206759142),new El(2456956037,344077627),new El(2730485921,1290863460),new El(2820302411,3158454273),new El(3259730800,3505952657),new El(3345764771,106217008),new El(3516065817,3606008344),new El(3600352804,1432725776),new El(4094571909,1467031594),new El(275423344,851169720),new El(430227734,3100823752),new El(506948616,1363258195),new El(659060556,3750685593),new El(883997877,3785050280),new El(958139571,3318307427),new El(1322822218,3812723403),new El(1537002063,2003034995),new El(1747873779,3602036899),new El(1955562222,1575990012),new El(2024104815,1125592928),new El(2227730452,2716904306),new El(2361852424,442776044),new El(2428436474,593698344),new El(2756734187,3733110249),new El(3204031479,2999351573),new El(3329325298,3815920427),new El(3391569614,3928383900),new El(3515267271,566280711),new El(3940187606,3454069534),new El(4118630271,4000239992),new El(116418474,1914138554),new El(174292421,2731055270),new El(289380356,3203993006),new El(460393269,320620315),new El(685471733,587496836),new El(852142971,1086792851),new El(1017036298,365543100),new El(1126000580,2618297676),new El(1288033470,3409855158),new El(1501505948,4234509866),new El(1607167915,987167468),new El(1816402316,1246189591)];return function hash(r,o,c){var l,u,h,d,g,y,m,v,_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(_){l=new El(3418070365,3238371032);u=new El(1654270250,914150663);h=new El(2438529370,812702999);d=new El(355462360,4144912697);g=new El(1731405415,4290775857);y=new El(2394180231,1750603025);m=new El(3675008525,1694076839);v=new El(1203062813,3204075428)}else{l=new El(1779033703,4089235720);u=new El(3144134277,2227873595);h=new El(1013904242,4271175723);d=new El(2773480762,1595750129);g=new El(1359893119,2917565137);y=new El(2600822924,725511199);m=new El(528734635,4215389547);v=new El(1541459225,327033209)}var w,k,x=128*Math.ceil((c+17)/128),S=new Uint8Array(x);for(w=0;w<c;++w)S[w]=r[o++];S[w++]=128;for(var C=x-16;w<C;)S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=0;S[w++]=c>>>29&255;S[w++]=c>>21&255;S[w++]=c>>13&255;S[w++]=c>>5&255;S[w++]=c<<3&255;var O=new Array(80);for(w=0;w<80;w++)O[w]=new El(0,0);var T,E,j=new El(0,0),R=new El(0,0),M=new El(0,0),L=new El(0,0),D=new El(0,0),N=new El(0,0),U=new El(0,0),G=new El(0,0),H=new El(0,0),q=new El(0,0),z=new El(0,0),W=new El(0,0);for(w=0;w<x;){for(k=0;k<16;++k){O[k].high=S[w]<<24|S[w+1]<<16|S[w+2]<<8|S[w+3];O[k].low=S[w+4]<<24|S[w+5]<<16|S[w+6]<<8|S[w+7];w+=8}for(k=16;k<80;++k){littleSigmaPrime(T=O[k],O[k-2],W);T.add(O[k-7]);littleSigma(z,O[k-15],W);T.add(z);T.add(O[k-16])}j.assign(l);R.assign(u);M.assign(h);L.assign(d);D.assign(g);N.assign(y);U.assign(m);G.assign(v);for(k=0;k<80;++k){H.assign(G);sigmaPrime(z,D,W);H.add(z);ch(z,D,N,U,W);H.add(z);H.add(t[k]);H.add(O[k]);sigma(q,j,W);maj(z,j,R,M,W);q.add(z);T=G;G=U;U=N;N=D;L.add(H);D=L;L=M;M=R;R=j;T.assign(H);T.add(q);j=T}l.add(j);u.add(R);h.add(M);d.add(L);g.add(D);y.add(N);m.add(U);v.add(G)}if(_){E=new Uint8Array(48);l.copyTo(E,0);u.copyTo(E,8);h.copyTo(E,16);d.copyTo(E,24);g.copyTo(E,32);y.copyTo(E,40)}else{E=new Uint8Array(64);l.copyTo(E,0);u.copyTo(E,8);h.copyTo(E,16);d.copyTo(E,24);g.copyTo(E,32);y.copyTo(E,40);m.copyTo(E,48);v.copyTo(E,56)}return E}}();var Ml=function(){function NullCipher(){crypto_classCallCheck(this,NullCipher)}crypto_createClass(NullCipher,[{key:"decryptBlock",value:function decryptBlock(t){return t}},{key:"encrypt",value:function encrypt(t){return t}}]);return NullCipher}(),Ll=function(){function AESBaseCipher(){crypto_classCallCheck(this,AESBaseCipher);this.constructor===AESBaseCipher&&unreachable("Cannot initialize AESBaseCipher.");this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);this._mixCol=new Uint8Array(256);for(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16);this.bufferPosition=0}crypto_createClass(AESBaseCipher,[{key:"_expandKey",value:function _expandKey(t){unreachable("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function _decrypt(t,r){var o,c,l,u=new Uint8Array(16);u.set(t);for(var h=0,d=this._keySize;h<16;++h,++d)u[h]^=r[d];for(var g=this._cyclesOfRepetition-1;g>=1;--g){o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];c=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=c;o=u[15];c=u[11];l=u[7];u[15]=u[3];u[11]=o;u[7]=c;u[3]=l;for(var y=0;y<16;++y)u[y]=this._inv_s[u[y]];for(var m=0,v=16*g;m<16;++m,++v)u[m]^=r[v];for(var _=0;_<16;_+=4){var w=this._mix[u[_]],k=this._mix[u[_+1]],x=this._mix[u[_+2]],S=this._mix[u[_+3]];o=w^k>>>8^k<<24^x>>>16^x<<16^S>>>24^S<<8;u[_]=o>>>24&255;u[_+1]=o>>16&255;u[_+2]=o>>8&255;u[_+3]=255&o}}o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];c=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=c;o=u[15];c=u[11];l=u[7];u[15]=u[3];u[11]=o;u[7]=c;u[3]=l;for(var C=0;C<16;++C){u[C]=this._inv_s[u[C]];u[C]^=r[C]}return u}},{key:"_encrypt",value:function _encrypt(t,r){var o,c,l,u=this._s,h=new Uint8Array(16);h.set(t);for(var d=0;d<16;++d)h[d]^=r[d];for(var g=1;g<this._cyclesOfRepetition;g++){for(var y=0;y<16;++y)h[y]=u[h[y]];l=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=l;l=h[2];c=h[6];h[2]=h[10];h[6]=h[14];h[10]=l;h[14]=c;l=h[3];c=h[7];o=h[11];h[3]=h[15];h[7]=l;h[11]=c;h[15]=o;for(var m=0;m<16;m+=4){var v=h[m+0],_=h[m+1],w=h[m+2],k=h[m+3];o=v^_^w^k;h[m+0]^=o^this._mixCol[v^_];h[m+1]^=o^this._mixCol[_^w];h[m+2]^=o^this._mixCol[w^k];h[m+3]^=o^this._mixCol[k^v]}for(var x=0,S=16*g;x<16;++x,++S)h[x]^=r[S]}for(var C=0;C<16;++C)h[C]=u[h[C]];l=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=l;l=h[2];c=h[6];h[2]=h[10];h[6]=h[14];h[10]=l;h[14]=c;l=h[3];c=h[7];o=h[11];h[3]=h[15];h[7]=l;h[11]=c;h[15]=o;for(var O=0,T=this._keySize;O<16;++O,++T)h[O]^=r[T];return h}},{key:"_decryptBlock2",value:function _decryptBlock2(t,r){for(var o=t.length,c=this.buffer,l=this.bufferPosition,u=[],h=this.iv,d=0;d<o;++d){c[l]=t[d];if(!(++l<16)){for(var g=this._decrypt(c,this._key),y=0;y<16;++y)g[y]^=h[y];h=c;u.push(g);c=new Uint8Array(16);l=0}}this.buffer=c;this.bufferLength=l;this.iv=h;if(0===u.length)return new Uint8Array(0);var m=16*u.length;if(r){var v=u.at(-1),_=v[15];if(_<=16){for(var w=15,k=16-_;w>=k;--w)if(v[w]!==_){_=0;break}m-=_;u[u.length-1]=v.subarray(0,16-_)}}for(var x=new Uint8Array(m),S=0,C=0,O=u.length;S<O;++S,C+=16)x.set(u[S],C);return x}},{key:"decryptBlock",value:function decryptBlock(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=t.length,l=this.buffer,u=this.bufferPosition;if(o)this.iv=o;else{for(var h=0;u<16&&h<c;++h,++u)l[u]=t[h];if(u<16){this.bufferLength=u;return new Uint8Array(0)}this.iv=l;t=t.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(t,r)}},{key:"encrypt",value:function encrypt(t,r){var o=t.length,c=this.buffer,l=this.bufferPosition,u=[];r||(r=new Uint8Array(16));for(var h=0;h<o;++h){c[l]=t[h];if(!(++l<16)){for(var d=0;d<16;++d)c[d]^=r[d];var g=this._encrypt(c,this._key);r=g;u.push(g);c=new Uint8Array(16);l=0}}this.buffer=c;this.bufferLength=l;this.iv=r;if(0===u.length)return new Uint8Array(0);for(var y=16*u.length,m=new Uint8Array(y),v=0,_=0,w=u.length;v<w;++v,_+=16)m.set(u[v],_);return m}}]);return AESBaseCipher}(),Bl=function(t){crypto_inherits(AES128Cipher,t);var r=crypto_createSuper(AES128Cipher);function AES128Cipher(t){var o;crypto_classCallCheck(this,AES128Cipher);(o=r.call(this))._cyclesOfRepetition=10;o._keySize=160;o._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);o._key=o._expandKey(t);return o}crypto_createClass(AES128Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,o=this._rcon,c=new Uint8Array(176);c.set(t);for(var l=16,u=1;l<176;++u){var h=c[l-3],d=c[l-2],g=c[l-1],y=c[l-4];h=r[h];d=r[d];g=r[g];y=r[y];h^=o[u];for(var m=0;m<4;++m){c[l]=h^=c[l-16];c[++l]=d^=c[l-16];c[++l]=g^=c[l-16];c[++l]=y^=c[l-16];l++}}return c}}]);return AES128Cipher}(Ll),Dl=function(t){crypto_inherits(AES256Cipher,t);var r=crypto_createSuper(AES256Cipher);function AES256Cipher(t){var o;crypto_classCallCheck(this,AES256Cipher);(o=r.call(this))._cyclesOfRepetition=14;o._keySize=224;o._key=o._expandKey(t);return o}crypto_createClass(AES256Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,o=new Uint8Array(240);o.set(t);for(var c,l,u,h,d=1,g=32,y=1;g<240;++y){if(g%32==16){c=r[c];l=r[l];u=r[u];h=r[h]}else if(g%32==0){c=o[g-3];l=o[g-2];u=o[g-1];h=o[g-4];c=r[c];l=r[l];u=r[u];h=r[h];c^=d;(d<<=1)>=256&&(d=255&(27^d))}for(var m=0;m<4;++m){o[g]=c^=o[g-32];o[++g]=l^=o[g-32];o[++g]=u^=o[g-32];o[++g]=h^=o[g-32];g++}}return o}}]);return AES256Cipher}(Ll),Nl=function(){function PDF17(){crypto_classCallCheck(this,PDF17)}crypto_createClass(PDF17,[{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,c){var l=new Uint8Array(t.length+56);l.set(t,0);l.set(r,t.length);l.set(o,t.length+r.length);return isArrayEqual(jl(l,0,l.length),c)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);return isArrayEqual(jl(c,0,c.length),o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,c){var l=new Uint8Array(t.length+56);l.set(t,0);l.set(r,t.length);l.set(o,t.length+r.length);var u=jl(l,0,l.length);return new Dl(u).decryptBlock(c,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var l=jl(c,0,c.length);return new Dl(l).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF17}(),Gl=function(){function PDF20(){crypto_classCallCheck(this,PDF20)}crypto_createClass(PDF20,[{key:"_hash",value:function _hash(t,r,o){for(var c,l,u,h=jl(r,0,r.length).subarray(0,32),d=[0],g=0;g<64||d.at(-1)>g-32;){var y=t.length+h.length+o.length,m=new Uint8Array(y),v=0;m.set(t,v);v+=t.length;m.set(h,v);v+=h.length;m.set(o,v);for(var _=new Uint8Array(64*y),w=0,k=0;w<64;w++,k+=y)_.set(m,k);var x=(d=new Bl(h.subarray(0,16)).encrypt(_,h.subarray(16,32))).slice(0,16).reduce((function(t,r){return t+r}),0)%3;0===x?h=jl(d,0,d.length):1===x?h=(c=d,l=0,u=d.length,Rl(c,l,u,!0)):2===x&&(h=Rl(d,0,d.length));g++}return h.subarray(0,32)}},{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,c){var l=new Uint8Array(t.length+56);l.set(t,0);l.set(r,t.length);l.set(o,t.length+r.length);return isArrayEqual(this._hash(t,l,o),c)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);return isArrayEqual(this._hash(t,c,[]),o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,c){var l=new Uint8Array(t.length+56);l.set(t,0);l.set(r,t.length);l.set(o,t.length+r.length);var u=this._hash(t,l,o);return new Dl(u).decryptBlock(c,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var l=this._hash(t,c,[]);return new Dl(l).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF20}(),Hl=function(){function CipherTransform(t,r){crypto_classCallCheck(this,CipherTransform);this.StringCipherConstructor=t;this.StreamCipherConstructor=r}crypto_createClass(CipherTransform,[{key:"createStream",value:function createStream(t,r){var o=new this.StreamCipherConstructor;return new Il(t,r,(function cipherTransformDecryptStream(t,r){return o.decryptBlock(t,r)}))}},{key:"decryptString",value:function decryptString(t){var r=new this.StringCipherConstructor,o=stringToBytes(t);return bytesToString(o=r.decryptBlock(o,!0))}},{key:"encryptString",value:function encryptString(t){var r=new this.StringCipherConstructor;if(r instanceof Ll){var o=16-t.length%16;t+=String.fromCharCode(o).repeat(o);var c=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(c);else for(var l=0;l<16;l++)c[l]=Math.floor(256*Math.random());var u=stringToBytes(t);u=r.encrypt(u,c);var h=new Uint8Array(16+u.length);h.set(c);h.set(u,16);return bytesToString(h)}var d=stringToBytes(t);return bytesToString(d=r.encrypt(d))}}]);return CipherTransform}(),ql=new WeakSet,zl=new WeakSet,Wl=new WeakSet,Vl=new WeakSet,Xl=new WeakSet,Kl=function(){function CipherTransformFactory(t,r,o){crypto_classCallCheck(this,CipherTransformFactory);crypto_classPrivateMethodInitSpec(this,Xl);crypto_classPrivateMethodInitSpec(this,Vl);crypto_classPrivateMethodInitSpec(this,Wl);crypto_classPrivateMethodInitSpec(this,zl);crypto_classPrivateMethodInitSpec(this,ql);var c=t.get("Filter");if(!isName(c,"Standard"))throw new Sr("unknown encryption method");this.filterName=c.name;this.dict=t;var l=t.get("V");if(!Number.isInteger(l)||1!==l&&2!==l&&4!==l&&5!==l)throw new Sr("unsupported encryption algorithm");this.algorithm=l;var u=t.get("Length");if(!u)if(l<=3)u=40;else{var h=t.get("CF"),d=t.get("StmF");if(h instanceof qr&&d instanceof Ur){h.suppressEncryption=!0;var g=h.get(d.name);(u=(null==g?void 0:g.get("Length"))||128)<40&&(u<<=3)}}if(!Number.isInteger(u)||u<40||u%8!=0)throw new Sr("invalid key length");var y=stringToBytes(t.get("O")),m=stringToBytes(t.get("U")),v=y.subarray(0,32),_=m.subarray(0,32),w=t.get("P"),k=t.get("R"),x=(4===l||5===l)&&!1!==t.get("EncryptMetadata");this.encryptMetadata=x;var S,C,O=stringToBytes(r);if(o){if(6===k)try{o=utf8StringToString(o)}catch(t){warn("CipherTransformFactory: Unable to convert UTF8 encoded password.")}S=stringToBytes(o)}if(5!==l)C=crypto_classPrivateMethodGet(this,zl,_prepareKeyData2).call(this,O,S,v,_,w,k,u,x);else{var T=y.subarray(32,40),E=y.subarray(40,48),j=m.subarray(0,48),R=m.subarray(32,40),M=m.subarray(40,48),L=stringToBytes(t.get("OE")),D=stringToBytes(t.get("UE")),N=stringToBytes(t.get("Perms"));C=crypto_classPrivateMethodGet(this,ql,_createEncryptionKey2).call(this,k,S,v,T,E,j,_,R,M,L,D,N)}if(!C&&!o)throw new vr("No password given",dr);if(!C&&o){var U=crypto_classPrivateMethodGet(this,Wl,_decodeUserPassword2).call(this,S,v,k,u);C=crypto_classPrivateMethodGet(this,zl,_prepareKeyData2).call(this,O,U,v,_,w,k,u,x)}if(!C)throw new vr("Incorrect Password",gr);this.encryptionKey=C;if(l>=4){var G=t.get("CF");G instanceof qr&&(G.suppressEncryption=!0);this.cf=G;this.stmf=t.get("StmF")||Ur.get("Identity");this.strf=t.get("StrF")||Ur.get("Identity");this.eff=t.get("EFF")||this.stmf}}crypto_createClass(CipherTransformFactory,[{key:"createCipherTransform",value:function createCipherTransform(t,r){if(4===this.algorithm||5===this.algorithm)return new Hl(crypto_classPrivateMethodGet(this,Xl,_buildCipherConstructor2).call(this,this.cf,this.strf,t,r,this.encryptionKey),crypto_classPrivateMethodGet(this,Xl,_buildCipherConstructor2).call(this,this.cf,this.stmf,t,r,this.encryptionKey));var o=crypto_classPrivateMethodGet(this,Vl,_buildObjectKey2).call(this,t,r,this.encryptionKey,!1),c=function cipherConstructor(){return new Tl(o)};return new Hl(c,c)}}]);return CipherTransformFactory}();Pl=Kl;function _createEncryptionKey2(t,r,o,c,l,u,h,d,g,y,m,v){if(r){var _=Math.min(127,r.length);r=r.subarray(0,_)}else r=[];var w=6===t?new Gl:new Nl;return w.checkUserPassword(r,d,h)?w.getUserKey(r,g,m):r.length&&w.checkOwnerPassword(r,c,u,o)?w.getOwnerKey(r,l,u,y):null}function _prepareKeyData2(t,r,o,c,l,u,h,d){var g,y,m=40+o.length+t.length,v=new Uint8Array(m),_=0;if(r){y=Math.min(32,r.length);for(;_<y;++_)v[_]=r[_]}g=0;for(;_<32;)v[_++]=crypto_classStaticPrivateFieldSpecGet(Pl,Pl,Jl)[g++];for(g=0,y=o.length;g<y;++g)v[_++]=o[g];v[_++]=255&l;v[_++]=l>>8&255;v[_++]=l>>16&255;v[_++]=l>>>24&255;for(g=0,y=t.length;g<y;++g)v[_++]=t[g];if(u>=4&&!d){v[_++]=255;v[_++]=255;v[_++]=255;v[_++]=255}var w=Fl(v,0,_),k=h>>3;if(u>=3)for(g=0;g<50;++g)w=Fl(w,0,k);var x,S=w.subarray(0,k);if(u>=3){for(_=0;_<32;++_)v[_]=crypto_classStaticPrivateFieldSpecGet(Pl,Pl,Jl)[_];for(g=0,y=t.length;g<y;++g)v[_++]=t[g];x=new Tl(S).encryptBlock(Fl(v,0,_));y=S.length;var C=new Uint8Array(y);for(g=1;g<=19;++g){for(var O=0;O<y;++O)C[O]=S[O]^g;x=new Tl(C).encryptBlock(x)}for(g=0,y=x.length;g<y;++g)if(c[g]!==x[g])return null}else for(g=0,y=(x=new Tl(S).encryptBlock(crypto_classStaticPrivateFieldSpecGet(Pl,Pl,Jl))).length;g<y;++g)if(c[g]!==x[g])return null;return S}function _decodeUserPassword2(t,r,o,c){for(var l=new Uint8Array(32),u=0,h=Math.min(32,t.length);u<h;++u)l[u]=t[u];for(var d=0;u<32;)l[u++]=crypto_classStaticPrivateFieldSpecGet(Pl,Pl,Jl)[d++];var g,y=Fl(l,0,u),m=c>>3;if(o>=3)for(d=0;d<50;++d)y=Fl(y,0,y.length);if(o>=3){g=r;var v=new Uint8Array(m);for(d=19;d>=0;d--){for(var _=0;_<m;++_)v[_]=y[_]^d;g=new Tl(v).encryptBlock(g)}}else g=new Tl(y.subarray(0,m)).encryptBlock(r);return g}function _buildObjectKey2(t,r,o){var c,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=new Uint8Array(o.length+9),h=o.length;for(c=0;c<h;++c)u[c]=o[c];u[c++]=255&t;u[c++]=t>>8&255;u[c++]=t>>16&255;u[c++]=255&r;u[c++]=r>>8&255;if(l){u[c++]=115;u[c++]=65;u[c++]=108;u[c++]=84}return Fl(u,0,c).subarray(0,Math.min(o.length+5,16))}function _buildCipherConstructor2(t,r,o,c,l){if(!(r instanceof Ur))throw new Sr("Invalid crypt filter name.");var u=this,h=t.get(r.name),d=null==h?void 0:h.get("CFM");if(!d||"None"===d.name)return function(){return new Ml};if("V2"===d.name)return function(){return new Tl(crypto_classPrivateMethodGet(u,Vl,_buildObjectKey2).call(u,o,c,l,!1))};if("AESV2"===d.name)return function(){return new Bl(crypto_classPrivateMethodGet(u,Vl,_buildObjectKey2).call(u,o,c,l,!0))};if("AESV3"===d.name)return function(){return new Dl(l)};throw new Sr("Unknown crypto method")}var Yl,Jl={writable:!0,value:new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122])};function writer_typeof(t){return writer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},writer_typeof(t)}function writer_toConsumableArray(t){return function writer_arrayWithoutHoles(t){if(Array.isArray(t))return writer_arrayLikeToArray(t)}(t)||function writer_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||writer_unsupportedIterableToArray(t)||function writer_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function writer_slicedToArray(t,r){return function writer_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function writer_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||writer_unsupportedIterableToArray(t,r)||function writer_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function writer_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */writer_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==writer_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(writer_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function writer_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=writer_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function writer_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return writer_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?writer_arrayLikeToArray(t,r):void 0}}function writer_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function writer_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function writer_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){writer_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){writer_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function writeObject(t,r,o,c){return _writeObject.apply(this,arguments)}function _writeObject(){return(_writeObject=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee(t,r,o,c){var l,u,h;return writer_regeneratorRuntime().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:l=c.encrypt;h=null==(u=void 0===l?null:l)?void 0:u.createCipherTransform(t.num,t.gen);o.push("".concat(t.num," ").concat(t.gen," obj\n"));if(!(r instanceof qr)){d.next=8;break}d.next=6;return writeDict(r,o,h);case 6:d.next=16;break;case 8:if(!(r instanceof Xr)){d.next=13;break}d.next=11;return writeStream(r,o,h);case 11:d.next=16;break;case 13:if(!Array.isArray(r)){d.next=16;break}d.next=16;return writeArray(r,o,h);case 16:o.push("\nendobj\n");case 17:case"end":return d.stop()}}),_callee)})))).apply(this,arguments)}function writeDict(t,r,o){return _writeDict.apply(this,arguments)}function _writeDict(){return(_writeDict=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee2(t,r,o){var c,l,u;return writer_regeneratorRuntime().wrap((function _callee2$(h){for(;;)switch(h.prev=h.next){case 0:r.push("<<");c=writer_createForOfIteratorHelper(t.getKeys());h.prev=2;c.s();case 4:if((l=c.n()).done){h.next=11;break}u=l.value;r.push(" /".concat(escapePDFName(u)," "));h.next=9;return writeValue(t.getRaw(u),r,o);case 9:h.next=4;break;case 11:h.next=16;break;case 13:h.prev=13;h.t0=h.catch(2);c.e(h.t0);case 16:h.prev=16;c.f();return h.finish(16);case 19:r.push(">>");case 20:case"end":return h.stop()}}),_callee2,null,[[2,13,16,19]])})))).apply(this,arguments)}function writeStream(t,r,o){return _writeStream.apply(this,arguments)}function _writeStream(){return(_writeStream=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee3(t,r,o){var c,l,u,h,d,g,y,m,v,_,w,k,x,S;return writer_regeneratorRuntime().wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:c=t.getBytes();l=t.dict;C.next=4;return Promise.all([l.getAsync("Filter"),l.getAsync("DecodeParms")]);case 4:u=C.sent;h=writer_slicedToArray(u,2);d=h[0];g=h[1];if(!Array.isArray(d)){C.next=14;break}C.next=11;return l.xref.fetchIfRefAsync(d[0]);case 11:C.t0=C.sent;C.next=15;break;case 14:C.t0=d;case 15:y=C.t0;m=isName(y,"FlateDecode");256;if("undefined"==typeof CompressionStream||!(c.length>=256||m)){C.next=36;break}C.prev=19;v=new CompressionStream("deflate");(_=v.writable.getWriter()).write(c);_.close();C.next=26;return new Response(v.readable).arrayBuffer();case 26:w=C.sent;c=new Uint8Array(w);if(d){if(!m){k=Array.isArray(d)?[Ur.get("FlateDecode")].concat(writer_toConsumableArray(d)):[Ur.get("FlateDecode"),d];g&&(x=Array.isArray(g)?[null].concat(writer_toConsumableArray(g)):[null,g])}}else k=Ur.get("FlateDecode");k&&l.set("Filter",k);x&&l.set("DecodeParms",x);C.next=36;break;case 33:C.prev=33;C.t1=C.catch(19);info('writeStream - cannot compress data: "'.concat(C.t1,'".'));case 36:S=bytesToString(c);o&&(S=o.encryptString(S));l.set("Length",S.length);C.next=41;return writeDict(l,r,o);case 41:r.push(" stream\n",S,"\nendstream");case 42:case"end":return C.stop()}}),_callee3,null,[[19,33]])})))).apply(this,arguments)}function writeArray(t,r,o){return _writeArray.apply(this,arguments)}function _writeArray(){return(_writeArray=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee4(t,r,o){var c,l,u,h;return writer_regeneratorRuntime().wrap((function _callee4$(d){for(;;)switch(d.prev=d.next){case 0:r.push("[");c=!0;l=writer_createForOfIteratorHelper(t);d.prev=3;l.s();case 5:if((u=l.n()).done){d.next=12;break}h=u.value;c?c=!1:r.push(" ");d.next=10;return writeValue(h,r,o);case 10:d.next=5;break;case 12:d.next=17;break;case 14:d.prev=14;d.t0=d.catch(3);l.e(d.t0);case 17:d.prev=17;l.f();return d.finish(17);case 20:r.push("]");case 21:case"end":return d.stop()}}),_callee4,null,[[3,14,17,20]])})))).apply(this,arguments)}function writeValue(t,r,o){return _writeValue.apply(this,arguments)}function _writeValue(){return(_writeValue=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee5(t,r,o){return writer_regeneratorRuntime().wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:if(!(t instanceof Ur)){c.next=4;break}r.push("/".concat(escapePDFName(t.name)));c.next=37;break;case 4:if(!(t instanceof zr)){c.next=8;break}r.push("".concat(t.num," ").concat(t.gen," R"));c.next=37;break;case 8:if(!Array.isArray(t)){c.next=13;break}c.next=11;return writeArray(t,r,o);case 11:c.next=37;break;case 13:if("string"!=typeof t){c.next=18;break}o&&(t=o.encryptString(t));r.push("(".concat(escapeString(t),")"));c.next=37;break;case 18:if("number"!=typeof t){c.next=22;break}r.push(numberToString(t));c.next=37;break;case 22:if("boolean"!=typeof t){c.next=26;break}r.push(t.toString());c.next=37;break;case 26:if(!(t instanceof qr)){c.next=31;break}c.next=29;return writeDict(t,r,o);case 29:c.next=37;break;case 31:if(!(t instanceof Xr)){c.next=36;break}c.next=34;return writeStream(t,r,o);case 34:c.next=37;break;case 36:null===t?r.push("null"):warn("Unhandled value in writer: ".concat(writer_typeof(t),", please file a bug."));case 37:case"end":return c.stop()}}),_callee5)})))).apply(this,arguments)}function writeInt(t,r,o,c){for(var l=r+o-1;l>o-1;l--){c[l]=255&t;t>>=8}return o+r}function writeString(t,r,o){for(var c=0,l=t.length;c<l;c++)o[r+c]=255&t.charCodeAt(c)}function computeMD5(t,r){for(var o=Math.floor(Date.now()/1e3),c=r.filename||"",l=[o.toString(),c,t.toString()],u=l.reduce((function(t,r){return t+r.length}),0),h=0,d=Object.values(r.info);h<d.length;h++){var g=d[h];l.push(g);u+=g.length}for(var y=new Uint8Array(u),m=0,v=0,_=l;v<_.length;v++){var w=_[v];writeString(w,m,y);m+=w.length}return bytesToString(Fl(y))}function updateAcroform(t){return _updateAcroform.apply(this,arguments)}function _updateAcroform(){return(_updateAcroform=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee6(t){var r,o,c,l,u,h,d,g,y,m,v;return writer_regeneratorRuntime().wrap((function _callee6$(_){for(;;)switch(_.prev=_.next){case 0:r=t.xref,o=t.acroForm,c=t.acroFormRef,l=t.hasXfa,u=t.hasXfaDatasetsEntry,h=t.xfaDatasetsRef,d=t.needAppearances,g=t.newRefs;!l||u||h||warn("XFA - Cannot save it");if(d||l&&h&&!u){_.next=4;break}return _.abrupt("return");case 4:y=o.clone();if(l&&!u){(m=o.get("XFA").slice()).splice(2,0,"datasets");m.splice(3,0,h);y.set("XFA",m)}d&&y.set("NeedAppearances",!0);v=[];_.next=10;return writeObject(c,y,v,r);case 10:g.push({ref:c,data:v.join("")});case 11:case"end":return _.stop()}}),_callee6)})))).apply(this,arguments)}function updateXFA(t){var r=t.xfaData,o=t.xfaDatasetsRef,c=t.newRefs,l=t.xref;if(null===r){r=function writeXFADataForAcroform(t,r){var o,c=new Cl({hasAttributes:!0}).parseFromString(t),l=writer_createForOfIteratorHelper(r);try{for(l.s();!(o=l.n()).done;){var u=o.value.xfa;if(u){var h=u.path,d=u.value;if(h){var g=parseXFAPath(h),y=c.documentElement.searchNode(g,0);!y&&g.length>1&&(y=c.documentElement.searchNode([g.at(-1)],0));y?y.childNodes=Array.isArray(d)?d.map((function(t){return new Sl("value",t)})):[new Sl("#text",d)]:warn("Node not found for path: ".concat(h))}}}}catch(t){l.e(t)}finally{l.f()}var m=[];c.documentElement.dump(m);return m.join("")}(l.fetchIfRef(o).getString(),c)}var u=l.encrypt;if(u){r=u.createCipherTransform(o.num,o.gen).encryptString(r)}var h="".concat(o.num," ").concat(o.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(r.length,">>\nstream\n")+r+"\nendstream\nendobj\n";c.push({ref:o,data:h})}function incrementalUpdate(t){return _incrementalUpdate.apply(this,arguments)}function _incrementalUpdate(){return(_incrementalUpdate=writer_asyncToGenerator(writer_regeneratorRuntime().mark((function _callee7(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K,Y,J,$,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce;return writer_regeneratorRuntime().wrap((function _callee7$(le){for(;;)switch(le.prev=le.next){case 0:r=t.originalData,o=t.xrefInfo,c=t.newRefs,l=t.xref,u=void 0===l?null:l,h=t.hasXfa,d=void 0!==h&&h,g=t.xfaDatasetsRef,y=void 0===g?null:g,m=t.hasXfaDatasetsEntry,v=void 0!==m&&m,_=t.needAppearances,w=t.acroFormRef,k=void 0===w?null:w,x=t.acroForm,S=void 0===x?null:x,C=t.xfaData,O=void 0===C?null:C;le.next=3;return updateAcroform({xref:u,acroForm:S,acroFormRef:k,hasXfa:d,hasXfaDatasetsEntry:v,xfaDatasetsRef:y,needAppearances:_,newRefs:c});case 3:d&&updateXFA({xfaData:O,xfaDatasetsRef:y,newRefs:c,xref:u});T=new qr(null);E=o.newRef;if(10===(M=r.at(-1))||13===M){j=[];R=r.length}else{j=["\n"];R=r.length+1}T.set("Size",E.num+1);T.set("Prev",o.startXRef);T.set("Type",Ur.get("XRef"));null!==o.rootRef&&T.set("Root",o.rootRef);null!==o.infoRef&&T.set("Info",o.infoRef);null!==o.encryptRef&&T.set("Encrypt",o.encryptRef);c.push({ref:E,data:""});c=c.sort((function(t,r){return t.ref.num-r.ref.num}));L=[[0,1,65535]];D=[0,1];N=0;U=writer_createForOfIteratorHelper(c);try{for(U.s();!(G=U.n()).done;){H=G.value,q=H.ref,z=H.data;N=Math.max(N,R);L.push([1,R,Math.min(q.gen,65535)]);R+=z.length;D.push(q.num,1);j.push(z)}}catch(t){U.e(t)}finally{U.f()}T.set("Index",D);if(Array.isArray(o.fileIds)&&o.fileIds.length>0){W=computeMD5(R,o);T.set("ID",[o.fileIds[0],W])}V=Math.ceil(Math.log2(N)/8);K=(X=[1,V,2])[0]+X[1]+X[2];Y=K*L.length;T.set("W",X);T.set("Length",Y);j.push("".concat(E.num," ").concat(E.gen," obj\n"));le.next=32;return writeDict(T,j,null);case 32:j.push(" stream\n");J=j.reduce((function(t,r){return t+r.length}),0);$="\nendstream\nendobj\nstartxref\n".concat(R,"\n%%EOF\n");(Z=new Uint8Array(r.length+J+Y+$.length)).set(r);Q=r.length;ee=writer_createForOfIteratorHelper(j);try{for(ee.s();!(te=ee.n()).done;){writeString(re=te.value,Q,Z);Q+=re.length}}catch(t){ee.e(t)}finally{ee.f()}for(ne=0,ae=L;ne<ae.length;ne++){ie=writer_slicedToArray(ae[ne],3),oe=ie[0],se=ie[1],ce=ie[2];Q=writeInt(oe,X[0],Q,Z);Q=writeInt(se,X[1],Q,Z);Q=writeInt(ce,X[2],Q,Z)}writeString($,Q,Z);return le.abrupt("return",Z);case 43:case"end":return le.stop()}}),_callee7)})))).apply(this,arguments)}function struct_tree_typeof(t){return struct_tree_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},struct_tree_typeof(t)}function struct_tree_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */struct_tree_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==struct_tree_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(struct_tree_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function struct_tree_slicedToArray(t,r){return function struct_tree_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function struct_tree_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||struct_tree_unsupportedIterableToArray(t,r)||function struct_tree_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function struct_tree_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=struct_tree_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function struct_tree_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return struct_tree_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?struct_tree_arrayLikeToArray(t,r):void 0}}function struct_tree_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function struct_tree_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function struct_tree_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){struct_tree_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){struct_tree_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function struct_tree_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function struct_tree_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,struct_tree_toPropertyKey(c.key),c)}}function struct_tree_createClass(t,r,o){r&&struct_tree_defineProperties(t.prototype,r);o&&struct_tree_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function struct_tree_toPropertyKey(t){var r=function struct_tree_toPrimitive(t,r){if("object"!=struct_tree_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=struct_tree_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==struct_tree_typeof(r)?r:String(r)}function struct_tree_classPrivateMethodInitSpec(t,r){!function struct_tree_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function _classStaticPrivateMethodGet(t,r,o){!function struct_tree_classCheckPrivateStaticAccess(t,r){if(t!==r)throw new TypeError("Private static access of wrong provenance")}(t,r);return o}var $l=1,Zl=2,Ql=3,eu=4,tu=5,ru=new WeakSet,nu=function(){function StructTreeRoot(t,r){struct_tree_classCallCheck(this,StructTreeRoot);struct_tree_classPrivateMethodInitSpec(this,ru);this.dict=t;this.ref=r instanceof zr?r:null;this.roleMap=new Map;this.structParentIds=null}struct_tree_createClass(StructTreeRoot,[{key:"init",value:function init(){this.readRoleMap()}},{key:"addAnnotationIdToPage",value:function addAnnotationIdToPage(t,r){(function struct_tree_classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o})(this,ru,_addIdToPage2).call(this,t,r,eu)}},{key:"readRoleMap",value:function readRoleMap(){var t=this,r=this.dict.get("RoleMap");r instanceof qr&&r.forEach((function(r,o){o instanceof Ur&&t.roleMap.set(r,o.name)}))}},{key:"canUpdateStructTree",value:(c=struct_tree_asyncToGenerator(struct_tree_regeneratorRuntime().mark((function _callee(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z;return struct_tree_regeneratorRuntime().wrap((function _callee$(W){for(;;)switch(W.prev=W.next){case 0:r=t.pdfManager,o=t.xref,c=t.newAnnotationsByPage;if(this.ref){W.next=4;break}warn("Cannot update the struct tree: no root reference.");return W.abrupt("return",!1);case 4:l=this.dict.get("ParentTreeNextKey");if(Number.isInteger(l)&&!(l<0)){W.next=8;break}warn("Cannot update the struct tree: invalid next key.");return W.abrupt("return",!1);case 8:if((u=this.dict.get("ParentTree"))instanceof qr){W.next=12;break}warn("Cannot update the struct tree: ParentTree isn't a dict.");return W.abrupt("return",!1);case 12:h=u.get("Nums");if(Array.isArray(h)){W.next=16;break}warn("Cannot update the struct tree: nums isn't an array.");return W.abrupt("return",!1);case 16:d=new dl(u,o);g=struct_tree_createForOfIteratorHelper(c.keys());W.prev=18;g.s();case 20:if((y=g.n()).done){W.next=34;break}m=y.value;W.next=24;return r.getPage(m);case 24:v=W.sent;if((_=v.pageDict).has("StructParents")){W.next=28;break}return W.abrupt("continue",32);case 28:w=_.get("StructParents");if(Number.isInteger(w)&&Array.isArray(d.get(w))){W.next=32;break}warn("Cannot save the struct tree: page ".concat(m," has a wrong id."));return W.abrupt("return",!1);case 32:W.next=20;break;case 34:W.next=39;break;case 36:W.prev=36;W.t0=W.catch(18);g.e(W.t0);case 39:W.prev=39;g.f();return W.finish(39);case 42:k=!0;x=struct_tree_createForOfIteratorHelper(c);W.prev=44;x.s();case 46:if((S=x.n()).done){W.next=57;break}C=struct_tree_slicedToArray(S.value,2),O=C[0],T=C[1];W.next=50;return r.getPage(O);case 50:E=W.sent;j=E.pageDict;_classStaticPrivateMethodGet(StructTreeRoot,StructTreeRoot,_collectParents).call(StructTreeRoot,{elements:T,xref:this.dict.xref,pageDict:j,numberTree:d});R=struct_tree_createForOfIteratorHelper(T);try{for(R.s();!(M=R.n()).done;){D=M.value;if(null!==(L=D.accessibilityData)&&void 0!==L&&L.type){D.parentTreeId=l++;k=!1}}}catch(t){R.e(t)}finally{R.f()}case 55:W.next=46;break;case 57:W.next=62;break;case 59:W.prev=59;W.t1=W.catch(44);x.e(W.t1);case 62:W.prev=62;x.f();return W.finish(62);case 65:if(!k){W.next=69;break}N=struct_tree_createForOfIteratorHelper(c.values());try{for(N.s();!(U=N.n()).done;){G=U.value;H=struct_tree_createForOfIteratorHelper(G);try{for(H.s();!(q=H.n()).done;){delete(z=q.value).parentTreeId;delete z.structTreeParent}}catch(t){H.e(t)}finally{H.f()}}}catch(t){N.e(t)}finally{N.f()}return W.abrupt("return",!1);case 69:return W.abrupt("return",!0);case 70:case"end":return W.stop()}}),_callee,this,[[18,36,39,42],[44,59,62,65]])}))),function canUpdateStructTree(t){return c.apply(this,arguments)})},{key:"updateStructureTree",value:(o=struct_tree_asyncToGenerator(struct_tree_regeneratorRuntime().mark((function _callee2(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k;return struct_tree_regeneratorRuntime().wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:r=t.newAnnotationsByPage,o=t.pdfManager,c=t.newRefs;l=this.dict.xref;u=this.dict.clone();h=this.ref;if((d=u.getRaw("ParentTree"))instanceof zr)g=l.fetch(d);else{g=d;d=l.getNewTemporaryRef();u.set("ParentTree",d)}g=g.clone();y=g.getRaw("Nums");m=null;if(y instanceof zr){m=y;y=l.fetch(m)}y=y.slice();m||g.set("Nums",y);v=u.getRaw("K");_=null;if(v instanceof zr){_=v;v=l.fetch(_)}else{_=l.getNewTemporaryRef();u.set("K",_)}v=Array.isArray(v)?v.slice():[v];w=[];x.next=19;return _classStaticPrivateMethodGet(StructTreeRoot,StructTreeRoot,_writeKids).call(StructTreeRoot,{newAnnotationsByPage:r,structTreeRootRef:h,kids:v,nums:y,xref:l,pdfManager:o,newRefs:c,buffer:w});case 19:k=x.sent;u.set("ParentTreeNextKey",k);w.length=0;x.next=24;return writeObject(_,v,w,l);case 24:c.push({ref:_,data:w.join("")});if(!m){x.next=30;break}w.length=0;x.next=29;return writeObject(m,y,w,l);case 29:c.push({ref:m,data:w.join("")});case 30:w.length=0;x.next=33;return writeObject(d,g,w,l);case 33:c.push({ref:d,data:w.join("")});w.length=0;x.next=37;return writeObject(h,u,w,l);case 37:c.push({ref:h,data:w.join("")});case 38:case"end":return x.stop()}}),_callee2,this)}))),function updateStructureTree(t){return o.apply(this,arguments)})}],[{key:"canCreateStructureTree",value:(r=struct_tree_asyncToGenerator(struct_tree_regeneratorRuntime().mark((function _callee3(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T;return struct_tree_regeneratorRuntime().wrap((function _callee3$(E){for(;;)switch(E.prev=E.next){case 0:r=t.catalogRef,o=t.pdfManager,c=t.newAnnotationsByPage;if(r instanceof zr){E.next=4;break}warn("Cannot save the struct tree: no catalog reference.");return E.abrupt("return",!1);case 4:l=0;u=!0;h=struct_tree_createForOfIteratorHelper(c);E.prev=7;h.s();case 9:if((d=h.n()).done){E.next=23;break}g=struct_tree_slicedToArray(d.value,2),y=g[0],m=g[1];E.next=13;return o.getPage(y);case 13:if(E.sent.ref instanceof zr){E.next=19;break}warn("Cannot save the struct tree: page ".concat(y," has no ref."));u=!0;return E.abrupt("break",23);case 19:v=struct_tree_createForOfIteratorHelper(m);try{for(v.s();!(_=v.n()).done;){k=_.value;if(null!==(w=k.accessibilityData)&&void 0!==w&&w.type){k.parentTreeId=l++;u=!1}}}catch(t){v.e(t)}finally{v.f()}case 21:E.next=9;break;case 23:E.next=28;break;case 25:E.prev=25;E.t0=E.catch(7);h.e(E.t0);case 28:E.prev=28;h.f();return E.finish(28);case 31:if(!u){E.next=35;break}x=struct_tree_createForOfIteratorHelper(c.values());try{for(x.s();!(S=x.n()).done;){C=S.value;O=struct_tree_createForOfIteratorHelper(C);try{for(O.s();!(T=O.n()).done;)delete T.value.parentTreeId}catch(t){O.e(t)}finally{O.f()}}}catch(t){x.e(t)}finally{x.f()}return E.abrupt("return",!1);case 35:return E.abrupt("return",!0);case 36:case"end":return E.stop()}}),_callee3,null,[[7,25,28,31]])}))),function canCreateStructureTree(t){return r.apply(this,arguments)})},{key:"createStructureTree",value:(t=struct_tree_asyncToGenerator(struct_tree_regeneratorRuntime().mark((function _callee4(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k;return struct_tree_regeneratorRuntime().wrap((function _callee4$(x){for(;;)switch(x.prev=x.next){case 0:r=t.newAnnotationsByPage,o=t.xref,c=t.catalogRef,l=t.pdfManager,u=t.newRefs;h=l.catalog.cloneDict();d=o.getNewTemporaryRef();h.set("StructTreeRoot",d);g=[];x.next=7;return writeObject(c,h,g,o);case 7:u.push({ref:c,data:g.join("")});(y=new qr(o)).set("Type",Ur.get("StructTreeRoot"));m=o.getNewTemporaryRef();y.set("ParentTree",m);v=[];y.set("K",v);_=new qr(o);w=[];_.set("Nums",w);x.next=19;return _classStaticPrivateMethodGet(this,StructTreeRoot,_writeKids).call(this,{newAnnotationsByPage:r,structTreeRootRef:d,kids:v,nums:w,xref:o,pdfManager:l,newRefs:u,buffer:g});case 19:k=x.sent;y.set("ParentTreeNextKey",k);g.length=0;x.next=24;return writeObject(m,_,g,o);case 24:u.push({ref:m,data:g.join("")});g.length=0;x.next=28;return writeObject(d,y,g,o);case 28:u.push({ref:d,data:g.join("")});case 29:case"end":return x.stop()}}),_callee4,this)}))),function createStructureTree(r){return t.apply(this,arguments)})}]);var t,r,o,c;return StructTreeRoot}();Yl=nu;function _addIdToPage2(t,r,o){if(t instanceof zr&&!(r<0)){this.structParentIds||(this.structParentIds=new Vr);var c=this.structParentIds.get(t);if(!c){c=[];this.structParentIds.put(t,c)}c.push([r,o])}}function _writeKids(t){return _writeKids3.apply(this,arguments)}function _writeKids3(){return(_writeKids3=struct_tree_asyncToGenerator(struct_tree_regeneratorRuntime().mark((function _callee5(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X;return struct_tree_regeneratorRuntime().wrap((function _callee5$(K){for(;;)switch(K.prev=K.next){case 0:r=t.newAnnotationsByPage,o=t.structTreeRootRef,c=t.kids,l=t.nums,u=t.xref,h=t.pdfManager,d=t.newRefs,g=t.buffer;y=Ur.get("OBJR");m=-1/0;v=struct_tree_createForOfIteratorHelper(r);K.prev=4;v.s();case 6:if((_=v.n()).done){K.next=59;break}w=struct_tree_slicedToArray(_.value,2),k=w[0],x=w[1];K.next=10;return h.getPage(k);case 10:S=K.sent;C=S.ref;O=C instanceof zr;T=struct_tree_createForOfIteratorHelper(x);K.prev=14;T.s();case 16:if((E=T.n()).done){K.next=49;break}j=E.value,R=j.accessibilityData,M=j.ref,L=j.parentTreeId,D=j.structTreeParent;if(null!=R&&R.type){K.next=20;break}return K.abrupt("continue",47);case 20:N=R.type,U=R.title,G=R.lang,H=R.alt,q=R.expanded,z=R.actualText;m=Math.max(m,L);W=u.getNewTemporaryRef();(V=new qr(u)).set("S",Ur.get(N));U&&V.set("T",U);G&&V.set("Lang",G);H&&V.set("Alt",H);q&&V.set("E",q);z&&V.set("ActualText",z);if(!D){K.next=35;break}K.next=33;return _classStaticPrivateMethodGet(this,Yl,_updateParentTag).call(this,{structTreeParent:D,tagDict:V,newTagRef:W,fallbackRef:o,xref:u,newRefs:d,buffer:g});case 33:K.next=36;break;case 35:V.set("P",o);case 36:X=new qr(u);V.set("K",X);X.set("Type",y);O&&X.set("Pg",C);X.set("Obj",M);g.length=0;K.next=44;return writeObject(W,V,g,u);case 44:d.push({ref:W,data:g.join("")});l.push(L,W);c.push(W);case 47:K.next=16;break;case 49:K.next=54;break;case 51:K.prev=51;K.t0=K.catch(14);T.e(K.t0);case 54:K.prev=54;T.f();return K.finish(54);case 57:K.next=6;break;case 59:K.next=64;break;case 61:K.prev=61;K.t1=K.catch(4);v.e(K.t1);case 64:K.prev=64;v.f();return K.finish(64);case 67:return K.abrupt("return",m+1);case 68:case"end":return K.stop()}}),_callee5,this,[[4,61,64,67],[14,51,54,57]])})))).apply(this,arguments)}function _collectParents(t){var r,o=t.elements,c=t.xref,l=t.pageDict,u=t.numberTree,h=new Map,d=struct_tree_createForOfIteratorHelper(o);try{for(d.s();!(r=d.n()).done;){var g=r.value;if(g.structTreeParentId){var y=parseInt(g.structTreeParentId.split("_mc")[1],10);h.set(y,g)}}}catch(t){d.e(t)}finally{d.f()}var m=l.get("StructParents");if(Number.isInteger(m)){var v,_=function updateElement(t,r,o){var l=h.get(t);if(l){var u=r.getRaw("P"),d=c.fetchIfRef(u);u instanceof zr&&d instanceof qr&&(l.structTreeParent={ref:o,dict:r});return!0}return!1},w=struct_tree_createForOfIteratorHelper(u.get(m));try{for(w.s();!(v=w.n()).done;){var k=v.value;if(k instanceof zr){var x=c.fetch(k),S=x.get("K");if(Number.isInteger(S))_(S,x,k);else if(Array.isArray(S)){var C,O=struct_tree_createForOfIteratorHelper(S);try{for(O.s();!(C=O.n()).done;){var T=C.value;T=c.fetchIfRef(T);if(Number.isInteger(T)&&_(T,x,k))break}}catch(t){O.e(t)}finally{O.f()}}}}}catch(t){w.e(t)}finally{w.f()}}}function _updateParentTag(t){return _updateParentTag3.apply(this,arguments)}function _updateParentTag3(){return(_updateParentTag3=struct_tree_asyncToGenerator(struct_tree_regeneratorRuntime().mark((function _callee6(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x;return struct_tree_regeneratorRuntime().wrap((function _callee6$(S){for(;;)switch(S.prev=S.next){case 0:r=t.structTreeParent,o=r.ref,c=r.dict,l=t.tagDict,u=t.newTagRef,h=t.fallbackRef,d=t.xref,g=t.newRefs,y=t.buffer;m=c.getRaw("P");v=d.fetchIfRef(m);l.set("P",m);_=!1;if((k=v.getRaw("K"))instanceof zr)w=d.fetch(k);else{w=k;k=d.getNewTemporaryRef();(v=v.clone()).set("K",k);_=!0}if(!Array.isArray(w)){S.next=19;break}if(!((x=w.indexOf(o))>=0)){S.next=14;break}(w=w.slice()).splice(x+1,0,u);S.next=17;break;case 14:warn("Cannot update the struct tree: parent kid not found.");l.set("P",h);return S.abrupt("return");case 17:S.next=20;break;case 19:if(w instanceof qr){w=[k,u];k=d.getNewTemporaryRef();v.set("K",k);_=!0}case 20:y.length=0;S.next=23;return writeObject(k,w,y,d);case 23:g.push({ref:k,data:y.join("")});if(_){S.next=26;break}return S.abrupt("return");case 26:y.length=0;S.next=29;return writeObject(m,v,y,d);case 29:g.push({ref:m,data:y.join("")});case 30:case"end":return S.stop()}}),_callee6)})))).apply(this,arguments)}var au=function(){function StructElementNode(t,r){struct_tree_classCallCheck(this,StructElementNode);this.tree=t;this.dict=r;this.kids=[];this.parseKids()}struct_tree_createClass(StructElementNode,[{key:"role",get:function get(){var t=this.dict.get("S"),r=t instanceof Ur?t.name:"",o=this.tree.root;return o.roleMap.has(r)?o.roleMap.get(r):r}},{key:"parseKids",value:function parseKids(){var t=null,r=this.dict.getRaw("Pg");r instanceof zr&&(t=r.toString());var o=this.dict.get("K");if(Array.isArray(o)){var c,l=struct_tree_createForOfIteratorHelper(o);try{for(l.s();!(c=l.n()).done;){var u=c.value,h=this.parseKid(t,u);h&&this.kids.push(h)}}catch(t){l.e(t)}finally{l.f()}}else{var d=this.parseKid(t,o);d&&this.kids.push(d)}}},{key:"parseKid",value:function parseKid(t,r){if(Number.isInteger(r))return this.tree.pageDict.objId!==t?null:new iu({type:$l,mcid:r,pageObjId:t});var o=null;r instanceof zr?o=this.dict.xref.fetch(r):r instanceof qr&&(o=r);if(!o)return null;var c=o.getRaw("Pg");c instanceof zr&&(t=c.toString());var l=o.get("Type")instanceof Ur?o.get("Type").name:null;if("MCR"===l){if(this.tree.pageDict.objId!==t)return null;var u=o.getRaw("Stm");return new iu({type:Zl,refObjId:u instanceof zr?u.toString():null,pageObjId:t,mcid:o.get("MCID")})}if("OBJR"===l){if(this.tree.pageDict.objId!==t)return null;var h=o.getRaw("Obj");return new iu({type:Ql,refObjId:h instanceof zr?h.toString():null,pageObjId:t})}return new iu({type:tu,dict:o})}}]);return StructElementNode}(),iu=struct_tree_createClass((function StructElement(t){var r=t.type,o=t.dict,c=void 0===o?null:o,l=t.mcid,u=void 0===l?null:l,h=t.pageObjId,d=void 0===h?null:h,g=t.refObjId,y=void 0===g?null:g;struct_tree_classCallCheck(this,StructElement);this.type=r;this.dict=c;this.mcid=u;this.pageObjId=d;this.refObjId=y;this.parentNode=null})),ou=function(){function StructTreePage(t,r){struct_tree_classCallCheck(this,StructTreePage);this.root=t;this.rootDict=t?t.dict:null;this.pageDict=r;this.nodes=[]}struct_tree_createClass(StructTreePage,[{key:"parse",value:function parse(t){var r;if(this.root&&this.rootDict){var o=this.rootDict.get("ParentTree");if(o){var c=this.pageDict.get("StructParents"),l=t instanceof zr&&(null===(r=this.root.structParentIds)||void 0===r?void 0:r.get(t));if(Number.isInteger(c)||l){var u=new Map,h=new dl(o,this.rootDict.xref);if(Number.isInteger(c)){var d=h.get(c);if(Array.isArray(d)){var g,y=struct_tree_createForOfIteratorHelper(d);try{for(y.s();!(g=y.n()).done;){var m=g.value;m instanceof zr&&this.addNode(this.rootDict.xref.fetch(m),u)}}catch(t){y.e(t)}finally{y.f()}}}if(l){var v,_=struct_tree_createForOfIteratorHelper(l);try{for(_.s();!(v=_.n()).done;){var w=struct_tree_slicedToArray(v.value,2),k=w[0],x=w[1],S=h.get(k);if(S){var C,O=this.addNode(this.rootDict.xref.fetchIfRef(S),u);1===(null==O||null===(C=O.kids)||void 0===C?void 0:C.length)&&O.kids[0].type===Ql&&(O.kids[0].type=x)}}}catch(t){_.e(t)}finally{_.f()}}}}}}},{key:"addNode",value:function addNode(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(o>40){warn("StructTree MAX_DEPTH reached.");return null}if(r.has(t))return r.get(t);var c=new au(this,t);r.set(t,c);var l=t.get("P");if(!l||isName(l.get("Type"),"StructTreeRoot")){this.addTopLevelNode(t,c)||r.delete(t);return c}var u=this.addNode(l,r,o+1);if(!u)return c;var h,d=!1,g=struct_tree_createForOfIteratorHelper(u.kids);try{for(g.s();!(h=g.n()).done;){var y=h.value;if(y.type===tu&&y.dict===t){y.parentNode=c;d=!0}}}catch(t){g.e(t)}finally{g.f()}d||r.delete(t);return c}},{key:"addTopLevelNode",value:function addTopLevelNode(t,r){var o=this.rootDict.get("K");if(!o)return!1;if(o instanceof qr){if(o.objId!==t.objId)return!1;this.nodes[0]=r;return!0}if(!Array.isArray(o))return!0;for(var c=!1,l=0;l<o.length;l++){var u=o[l];if((null==u?void 0:u.toString())===t.objId){this.nodes[l]=r;c=!0}}return c}},{key:"serializable",get:function get(){function nodeToSerializable(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(o>40)warn("StructTree too deep to be fully serialized.");else{var c=Object.create(null);c.role=t.role;c.children=[];r.children.push(c);var l=t.dict.get("Alt");"string"==typeof l&&(c.alt=stringToPDFString(l));var u=t.dict.get("Lang");"string"==typeof u&&(c.lang=stringToPDFString(u));var h,d=struct_tree_createForOfIteratorHelper(t.kids);try{for(d.s();!(h=d.n()).done;){var g=h.value,y=g.type===tu?g.parentNode:null;y?nodeToSerializable(y,c,o+1):g.type===$l||g.type===Zl?c.children.push({type:"content",id:"p".concat(g.pageObjId,"_mc").concat(g.mcid)}):g.type===Ql?c.children.push({type:"object",id:g.refObjId}):g.type===eu&&c.children.push({type:"annotation",id:"".concat("pdfjs_internal_id_").concat(g.refObjId)})}}catch(t){d.e(t)}finally{d.f()}}}var t=Object.create(null);t.children=[];t.role="Root";var r,o=struct_tree_createForOfIteratorHelper(this.nodes);try{for(o.s();!(r=o.n()).done;){var c=r.value;c&&nodeToSerializable(c,t)}}catch(t){o.e(t)}finally{o.f()}return t}}]);return StructTreePage}();function catalog_typeof(t){return catalog_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},catalog_typeof(t)}function catalog_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */catalog_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==catalog_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(catalog_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function catalog_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function catalog_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){catalog_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){catalog_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function catalog_slicedToArray(t,r){return function catalog_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function catalog_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||catalog_unsupportedIterableToArray(t,r)||function catalog_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function catalog_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=catalog_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function catalog_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return catalog_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?catalog_arrayLikeToArray(t,r):void 0}}function catalog_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function catalog_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,catalog_toPropertyKey(c.key),c)}}function catalog_toPropertyKey(t){var r=function catalog_toPrimitive(t,r){if("object"!=catalog_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=catalog_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==catalog_typeof(r)?r:String(r)}function fetchDestination(t){t instanceof qr&&(t=t.get("D"));return Array.isArray(t)?t:null}function fetchRemoteDest(t){var r=t.get("D");if(r){r instanceof Ur&&(r=r.name);if("string"==typeof r)return stringToPDFString(r);if(Array.isArray(r))return JSON.stringify(r)}return null}var su=function(){function Catalog(t,r){!function catalog_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Catalog);this.pdfManager=t;this.xref=r;this._catDict=r.getCatalogObj();if(!(this._catDict instanceof qr))throw new Sr("Catalog object is not a dictionary.");this.toplevelPagesDict;this._actualNumPages=null;this.fontCache=new Vr;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new gc;this.pageKidsCountCache=new Vr;this.pageIndexCache=new Vr;this.nonBlendModesSet=new Wr;this.systemFontCache=new Map}!function catalog_createClass(t,r,o){r&&catalog_defineProperties(t.prototype,r);o&&catalog_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Catalog,[{key:"cloneDict",value:function cloneDict(){return this._catDict.clone()}},{key:"version",get:function get(){var t=this._catDict.get("Version");if(t instanceof Ur){if(Kr.test(t.name))return shadow(this,"version",t.name);warn("Invalid PDF catalog version: ".concat(t.name))}return shadow(this,"version",null)}},{key:"lang",get:function get(){var t=this._catDict.get("Lang");return shadow(this,"lang","string"==typeof t?stringToPDFString(t):null)}},{key:"needsRendering",get:function get(){var t=this._catDict.get("NeedsRendering");return shadow(this,"needsRendering","boolean"==typeof t&&t)}},{key:"collection",get:function get(){var t=null;try{var r=this._catDict.get("Collection");r instanceof qr&&r.size>0&&(t=r)}catch(t){if(t instanceof Yr)throw t;info("Cannot fetch Collection entry; assuming no collection is present.")}return shadow(this,"collection",t)}},{key:"acroForm",get:function get(){var t=null;try{var r=this._catDict.get("AcroForm");r instanceof qr&&r.size>0&&(t=r)}catch(t){if(t instanceof Yr)throw t;info("Cannot fetch AcroForm entry; assuming no forms are present.")}return shadow(this,"acroForm",t)}},{key:"acroFormRef",get:function get(){var t=this._catDict.getRaw("AcroForm");return shadow(this,"acroFormRef",t instanceof zr?t:null)}},{key:"metadata",get:function get(){var t=this._catDict.getRaw("Metadata");if(!(t instanceof zr))return shadow(this,"metadata",null);var r=null;try{var o,c=this.xref.fetch(t,!(null!==(o=this.xref.encrypt)&&void 0!==o&&o.encryptMetadata));if(c instanceof Xr&&c.dict instanceof qr){var l=c.dict.get("Type"),u=c.dict.get("Subtype");if(isName(l,"Metadata")&&isName(u,"XML")){var h=stringToUTF8String(c.getString());h&&(r=new Al(h).serializable)}}}catch(t){if(t instanceof Yr)throw t;info('Skipping invalid Metadata: "'.concat(t,'".'))}return shadow(this,"metadata",r)}},{key:"markInfo",get:function get(){var t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof Yr)throw t;warn("Unable to read mark info.")}return shadow(this,"markInfo",t)}},{key:"_readMarkInfo",value:function _readMarkInfo(){var t=this._catDict.get("MarkInfo");if(!(t instanceof qr))return null;var r={Marked:!1,UserProperties:!1,Suspects:!1};for(var o in r){var c=t.get(o);"boolean"==typeof c&&(r[o]=c)}return r}},{key:"structTreeRoot",get:function get(){var t=null;try{t=this._readStructTreeRoot()}catch(t){if(t instanceof Yr)throw t;warn("Unable read to structTreeRoot info.")}return shadow(this,"structTreeRoot",t)}},{key:"_readStructTreeRoot",value:function _readStructTreeRoot(){var t=this._catDict.getRaw("StructTreeRoot"),r=this.xref.fetchIfRef(t);if(!(r instanceof qr))return null;var o=new nu(r,t);o.init();return o}},{key:"toplevelPagesDict",get:function get(){var t=this._catDict.get("Pages");if(!(t instanceof qr))throw new Sr("Invalid top-level pages dictionary.");return shadow(this,"toplevelPagesDict",t)}},{key:"documentOutline",get:function get(){var t=null;try{t=this._readDocumentOutline()}catch(t){if(t instanceof Yr)throw t;warn("Unable to read document outline.")}return shadow(this,"documentOutline",t)}},{key:"_readDocumentOutline",value:function _readDocumentOutline(){var t=this._catDict.get("Outlines");if(!(t instanceof qr))return null;if(!((t=t.getRaw("First"))instanceof zr))return null;var r={items:[]},o=[{obj:t,parent:r}],c=new Wr;c.put(t);for(var l=this.xref,u=new Uint8ClampedArray(3);o.length>0;){var h=o.shift(),d=l.fetchIfRef(h.obj);if(null!==d){if(!d.has("Title"))throw new Sr("Invalid outline item encountered.");var g={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:d,resultObj:g,docBaseUrl:this.baseUrl,docAttachments:this.attachments});var y=d.get("Title"),m=d.get("F")||0,v=d.getArray("C"),_=d.get("Count"),w=u;!Array.isArray(v)||3!==v.length||0===v[0]&&0===v[1]&&0===v[2]||(w=ln.singletons.rgb.getRgb(v,0));var k={action:g.action,attachment:g.attachment,dest:g.dest,url:g.url,unsafeUrl:g.unsafeUrl,newWindow:g.newWindow,setOCGState:g.setOCGState,title:stringToPDFString(y),color:w,count:Number.isInteger(_)?_:void 0,bold:!!(2&m),italic:!!(1&m),items:[]};h.parent.items.push(k);if((t=d.getRaw("First"))instanceof zr&&!c.has(t)){o.push({obj:t,parent:k});c.put(t)}if((t=d.getRaw("Next"))instanceof zr&&!c.has(t)){o.push({obj:t,parent:h.parent});c.put(t)}}}return r.items.length>0?r.items:null}},{key:"permissions",get:function get(){var t=null;try{t=this._readPermissions()}catch(t){if(t instanceof Yr)throw t;warn("Unable to read permissions.")}return shadow(this,"permissions",t)}},{key:"_readPermissions",value:function _readPermissions(){var t=this.xref.trailer.get("Encrypt");if(!(t instanceof qr))return null;var r=t.get("P");if("number"!=typeof r)return null;r+=Math.pow(2,32);var o=[];for(var c in O){var l=O[c];r&l&&o.push(l)}return o}},{key:"optionalContentConfig",get:function get(){var t=null;try{var r=this._catDict.get("OCProperties");if(!r)return shadow(this,"optionalContentConfig",null);var o=r.get("D");if(!o)return shadow(this,"optionalContentConfig",null);var c=r.get("OCGs");if(!Array.isArray(c))return shadow(this,"optionalContentConfig",null);var l,u=[],h=new Wr,d=catalog_createForOfIteratorHelper(c);try{for(d.s();!(l=d.n()).done;){var g=l.value;if(g instanceof zr&&!h.has(g)){h.put(g);var y=this.xref.fetch(g);u.push({id:g.toString(),name:"string"==typeof y.get("Name")?stringToPDFString(y.get("Name")):null,intent:"string"==typeof y.get("Intent")?stringToPDFString(y.get("Intent")):null})}}}catch(t){d.e(t)}finally{d.f()}(t=this._readOptionalContentConfig(o,h)).groups=u}catch(t){if(t instanceof Yr)throw t;warn("Unable to read optional content config: ".concat(t))}return shadow(this,"optionalContentConfig",t)}},{key:"_readOptionalContentConfig",value:function _readOptionalContentConfig(t,r){function parseOnOff(t){var o=[];if(Array.isArray(t)){var c,l=catalog_createForOfIteratorHelper(t);try{for(l.s();!(c=l.n()).done;){var u=c.value;u instanceof zr&&(r.has(u)&&o.push(u.toString()))}}catch(t){l.e(t)}finally{l.f()}}return o}function parseOrder(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(t))return null;var l,u=[],h=catalog_createForOfIteratorHelper(t);try{for(h.s();!(l=h.n()).done;){var d=l.value;if(d instanceof zr&&r.has(d)){c.put(d);u.push(d.toString())}else{var g=parseNestedOrder(d,o);g&&u.push(g)}}}catch(t){h.e(t)}finally{h.f()}if(o>0)return u;var y,m=[],v=catalog_createForOfIteratorHelper(r);try{for(v.s();!(y=v.n()).done;){var _=y.value;c.has(_)||m.push(_.toString())}}catch(t){v.e(t)}finally{v.f()}m.length&&u.push({name:null,order:m});return u}function parseNestedOrder(t,r){if(++r>l){warn("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}var c=o.fetchIfRef(t);if(!Array.isArray(c))return null;var u=o.fetchIfRef(c[0]);if("string"!=typeof u)return null;var h=parseOrder(c.slice(1),r);return h&&h.length?{name:stringToPDFString(u),order:h}:null}var o=this.xref,c=new Wr,l=10;return{name:"string"==typeof t.get("Name")?stringToPDFString(t.get("Name")):null,creator:"string"==typeof t.get("Creator")?stringToPDFString(t.get("Creator")):null,baseState:t.get("BaseState")instanceof Ur?t.get("BaseState").name:null,on:parseOnOff(t.get("ON")),off:parseOnOff(t.get("OFF")),order:parseOrder(t.get("Order")),groups:null}}},{key:"setActualNumPages",value:function setActualNumPages(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=t}},{key:"hasActualNumPages",get:function get(){return null!==this._actualNumPages}},{key:"_pagesCount",get:function get(){var t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new Sr("Page count in top-level pages dictionary is not an integer.");return shadow(this,"_pagesCount",t)}},{key:"numPages",get:function get(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}},{key:"destinations",get:function get(){var t=this._readDests(),r=Object.create(null);if(t instanceof pl){var o,c=catalog_createForOfIteratorHelper(t.getAll());try{for(c.s();!(o=c.n()).done;){var l=catalog_slicedToArray(o.value,2),u=l[0],h=fetchDestination(l[1]);h&&(r[stringToPDFString(u)]=h)}}catch(t){c.e(t)}finally{c.f()}}else t instanceof qr&&t.forEach((function(t,o){var c=fetchDestination(o);c&&(r[t]=c)}));return shadow(this,"destinations",r)}},{key:"getDestination",value:function getDestination(t){var r=this._readDests();if(r instanceof pl){var o=fetchDestination(r.get(t));if(o)return o;var c=this.destinations[t];if(c){warn('Found "'.concat(t,'" at an incorrect position in the NameTree.'));return c}}else if(r instanceof qr){var l=fetchDestination(r.get(t));if(l)return l}return null}},{key:"_readDests",value:function _readDests(){var t=this._catDict.get("Names");return null!=t&&t.has("Dests")?new pl(t.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function get(){var t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof Yr)throw t;warn("Unable to read page labels.")}return shadow(this,"pageLabels",t)}},{key:"_readPageLabels",value:function _readPageLabels(){var t=this._catDict.getRaw("PageLabels");if(!t)return null;for(var r=new Array(this.numPages),o=null,c="",l=new dl(t,this.xref).getAll(),u="",h=1,d=0,g=this.numPages;d<g;d++){var y=l.get(d);if(void 0!==y){if(!(y instanceof qr))throw new Sr("PageLabel is not a dictionary.");if(y.has("Type")&&!isName(y.get("Type"),"PageLabel"))throw new Sr("Invalid type in PageLabel dictionary.");if(y.has("S")){var m=y.get("S");if(!(m instanceof Ur))throw new Sr("Invalid style in PageLabel dictionary.");o=m.name}else o=null;if(y.has("P")){var v=y.get("P");if("string"!=typeof v)throw new Sr("Invalid prefix in PageLabel dictionary.");c=stringToPDFString(v)}else c="";if(y.has("St")){var _=y.get("St");if(!(Number.isInteger(_)&&_>=1))throw new Sr("Invalid start in PageLabel dictionary.");h=_}else h=1}switch(o){case"D":u=h;break;case"R":case"r":u=toRomanNumerals(h,"r"===o);break;case"A":case"a":var w="a"===o?97:65,k=h-1;u=String.fromCharCode(w+k%26).repeat(Math.floor(k/26)+1);break;default:if(o)throw new Sr('Invalid style "'.concat(o,'" in PageLabel dictionary.'));u=""}r[d]=c+u;h++}return r}},{key:"pageLayout",get:function get(){var t=this._catDict.get("PageLayout"),r="";if(t instanceof Ur)switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":r=t.name}return shadow(this,"pageLayout",r)}},{key:"pageMode",get:function get(){var t=this._catDict.get("PageMode"),r="UseNone";if(t instanceof Ur)switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":r=t.name}return shadow(this,"pageMode",r)}},{key:"viewerPreferences",get:function get(){var t=this,r=this._catDict.get("ViewerPreferences");if(!(r instanceof qr))return shadow(this,"viewerPreferences",null);var o,c=null,l=catalog_createForOfIteratorHelper(r.getKeys());try{for(l.s();!(o=l.n()).done;){var u=o.value,h=r.get(u),d=void 0;switch(u){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof h&&(d=h);break;case"NonFullScreenPageMode":if(h instanceof Ur)switch(h.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":d=h.name;break;default:d="UseNone"}break;case"Direction":if(h instanceof Ur)switch(h.name){case"L2R":case"R2L":d=h.name;break;default:d="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(h instanceof Ur)switch(h.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":d=h.name;break;default:d="CropBox"}break;case"PrintScaling":if(h instanceof Ur)switch(h.name){case"None":case"AppDefault":d=h.name;break;default:d="AppDefault"}break;case"Duplex":if(h instanceof Ur)switch(h.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":d=h.name;break;default:d="None"}break;case"PrintPageRange":if(Array.isArray(h)&&h.length%2==0){h.every((function(r,o,c){return Number.isInteger(r)&&r>0&&(0===o||r>=c[o-1])&&r<=t.numPages}))&&(d=h)}break;case"NumCopies":Number.isInteger(h)&&h>0&&(d=h);break;default:warn("Ignoring non-standard key in ViewerPreferences: ".concat(u,"."));continue}if(void 0!==d){c||(c=Object.create(null));c[u]=d}else warn('Bad value, for key "'.concat(u,'", in ViewerPreferences: ').concat(h,"."))}}catch(t){l.e(t)}finally{l.f()}return shadow(this,"viewerPreferences",c)}},{key:"openAction",get:function get(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof qr){var o=new qr(this.xref);o.set("A",t);var c={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:o,resultObj:c});Array.isArray(c.dest)?r.dest=c.dest:c.action&&(r.action=c.action)}else Array.isArray(t)&&(r.dest=t);return shadow(this,"openAction",objectSize(r)>0?r:null)}},{key:"attachments",get:function get(){var t=this._catDict.get("Names"),r=null;if(t instanceof qr&&t.has("EmbeddedFiles")){var o,c=catalog_createForOfIteratorHelper(new pl(t.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var l=catalog_slicedToArray(o.value,2),u=l[0],h=l[1],d=new gl(h,this.xref);r||(r=Object.create(null));r[stringToPDFString(u)]=d.serializable}}catch(t){c.e(t)}finally{c.f()}}return shadow(this,"attachments",r)}},{key:"xfaImages",get:function get(){var t=this._catDict.get("Names"),r=null;if(t instanceof qr&&t.has("XFAImages")){var o,c=catalog_createForOfIteratorHelper(new pl(t.getRaw("XFAImages"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var l=catalog_slicedToArray(o.value,2),u=l[0],h=l[1];r||(r=new qr(this.xref));r.set(stringToPDFString(u),h)}}catch(t){c.e(t)}finally{c.f()}}return shadow(this,"xfaImages",r)}},{key:"_collectJavaScript",value:function _collectJavaScript(){var t=this._catDict.get("Names"),r=null;function appendIfJavaScriptDict(t,o){if(o instanceof qr&&isName(o.get("S"),"JavaScript")){var c=o.get("JS");if(c instanceof Xr)c=c.getString();else if("string"!=typeof c)return;(c=stringToPDFString(c).replaceAll("\0",""))&&(r||(r=new Map)).set(t,c)}}if(t instanceof qr&&t.has("JavaScript")){var o,c=catalog_createForOfIteratorHelper(new pl(t.getRaw("JavaScript"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var l=catalog_slicedToArray(o.value,2),u=l[0],h=l[1];appendIfJavaScriptDict(stringToPDFString(u),h)}}catch(t){c.e(t)}finally{c.f()}}var d=this._catDict.get("OpenAction");d&&appendIfJavaScriptDict("OpenAction",d);return r}},{key:"jsActions",get:function get(){var t=this._collectJavaScript(),r=collectActions(this.xref,this._catDict,Pe);if(t){r||(r=Object.create(null));var o,c=catalog_createForOfIteratorHelper(t);try{for(c.s();!(o=c.n()).done;){var l=catalog_slicedToArray(o.value,2),u=l[0],h=l[1];u in r?r[u].push(h):r[u]=[h]}}catch(t){c.e(t)}finally{c.f()}}return shadow(this,"jsActions",r)}},{key:"fontFallback",value:(c=catalog_asyncToGenerator(catalog_regeneratorRuntime().mark((function _callee(t,r){var o,c,l,u;return catalog_regeneratorRuntime().wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:h.next=2;return Promise.all(this.fontCache);case 2:o=h.sent;c=catalog_createForOfIteratorHelper(o);h.prev=4;c.s();case 6:if((l=c.n()).done){h.next=13;break}if((u=l.value).loadedName!==t){h.next=11;break}u.fallback(r);return h.abrupt("return");case 11:h.next=6;break;case 13:h.next=18;break;case 15:h.prev=15;h.t0=h.catch(4);c.e(h.t0);case 18:h.prev=18;c.f();return h.finish(18);case 21:case"end":return h.stop()}}),_callee,this,[[4,15,18,21]])}))),function fontFallback(t,r){return c.apply(this,arguments)})},{key:"cleanup",value:(o=catalog_asyncToGenerator(catalog_regeneratorRuntime().mark((function _callee2(){var t,r,o,c,l=arguments;return catalog_regeneratorRuntime().wrap((function _callee2$(u){for(;;)switch(u.prev=u.next){case 0:t=l.length>0&&void 0!==l[0]&&l[0];clearGlobalCaches();this.globalImageCache.clear(t);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.nonBlendModesSet.clear();u.next=8;return Promise.all(this.fontCache);case 8:r=u.sent;o=catalog_createForOfIteratorHelper(r);try{for(o.s();!(c=o.n()).done;)delete c.value.dict.cacheKey}catch(t){o.e(t)}finally{o.f()}this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear();this.systemFontCache.clear();case 15:case"end":return u.stop()}}),_callee2,this)}))),function cleanup(){return o.apply(this,arguments)})},{key:"getPageDict",value:(r=catalog_asyncToGenerator(catalog_regeneratorRuntime().mark((function _callee3(t){var r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S;return catalog_regeneratorRuntime().wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:r=[this.toplevelPagesDict];o=new Wr;(c=this._catDict.getRaw("Pages"))instanceof zr&&o.put(c);l=this.xref,u=this.pageKidsCountCache,h=this.pageIndexCache;d=0;case 6:if(!r.length){C.next=67;break}if(!((g=r.pop())instanceof zr)){C.next=34;break}if(!((y=u.get(g))>=0&&d+y<=t)){C.next=13;break}d+=y;return C.abrupt("continue",6);case 13:if(!o.has(g)){C.next=15;break}throw new Sr("Pages tree contains circular reference.");case 15:o.put(g);C.next=18;return l.fetchAsync(g);case 18:if(!((m=C.sent)instanceof qr)){C.next=32;break}if(!((v=m.getRaw("Type"))instanceof zr)){C.next=25;break}C.next=24;return l.fetchAsync(v);case 24:v=C.sent;case 25:if(!isName(v,"Page")&&m.has("Kids")){C.next=32;break}u.has(g)||u.put(g,1);h.has(g)||h.put(g,d);if(d!==t){C.next=30;break}return C.abrupt("return",[m,g]);case 30:d++;return C.abrupt("continue",6);case 32:r.push(m);return C.abrupt("continue",6);case 34:if(g instanceof qr){C.next=36;break}throw new Sr("Page dictionary kid reference points to wrong type of object.");case 36:_=g.objId;if(!((w=g.getRaw("Count"))instanceof zr)){C.next=42;break}C.next=41;return l.fetchAsync(w);case 41:w=C.sent;case 42:if(!(Number.isInteger(w)&&w>=0)){C.next=47;break}_&&!u.has(_)&&u.put(_,w);if(!(d+w<=t)){C.next=47;break}d+=w;return C.abrupt("continue",6);case 47:if(!((k=g.getRaw("Kids"))instanceof zr)){C.next=52;break}C.next=51;return l.fetchAsync(k);case 51:k=C.sent;case 52:if(Array.isArray(k)){C.next=64;break}if(!((x=g.getRaw("Type"))instanceof zr)){C.next=58;break}C.next=57;return l.fetchAsync(x);case 57:x=C.sent;case 58:if(!isName(x,"Page")&&g.has("Kids")){C.next=63;break}if(d!==t){C.next=61;break}return C.abrupt("return",[g,null]);case 61:d++;return C.abrupt("continue",6);case 63:throw new Sr("Page dictionary kids object is not an array.");case 64:for(S=k.length-1;S>=0;S--)r.push(k[S]);C.next=6;break;case 67:throw new Error("Page index ".concat(t," not found."));case 68:case"end":return C.stop()}}),_callee3,this)}))),function getPageDict(t){return r.apply(this,arguments)})},{key:"getAllPageDicts",value:(t=catalog_asyncToGenerator(catalog_regeneratorRuntime().mark((function _callee4(){var t,r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O=arguments;return catalog_regeneratorRuntime().wrap((function _callee4$(T){for(;;)switch(T.prev=T.next){case 0:m=function _addPageError(o){if(o instanceof $r&&!t)throw o;if(t&&r&&0===g){warn('getAllPageDicts - Skipping invalid first page: "'.concat(o,'".'));o=qr.empty}u.set(g++,[o,null])};y=function _addPageDict(t,r){r&&!d.has(r)&&d.put(r,g);u.set(g++,[t,r])};t=O.length>0&&void 0!==O[0]&&O[0];r=this.pdfManager.evaluatorOptions.ignoreErrors;o=[{currentNode:this.toplevelPagesDict,posInKids:0}];c=new Wr;(l=this._catDict.getRaw("Pages"))instanceof zr&&c.put(l);u=new Map,h=this.xref,d=this.pageIndexCache;g=0;case 10:if(!(o.length>0)){T.next=70;break}v=o.at(-1);_=v.currentNode,w=v.posInKids;if(!((k=_.getRaw("Kids"))instanceof zr)){T.next=25;break}T.prev=15;T.next=18;return h.fetchAsync(k);case 18:k=T.sent;T.next=25;break;case 21:T.prev=21;T.t0=T.catch(15);m(T.t0);return T.abrupt("break",70);case 25:if(Array.isArray(k)){T.next=28;break}m(new Sr("Page dictionary kids object is not an array."));return T.abrupt("break",70);case 28:if(!(w>=k.length)){T.next=31;break}o.pop();return T.abrupt("continue",10);case 31:x=k[w];S=void 0;if(!(x instanceof zr)){T.next=50;break}if(!c.has(x)){T.next=37;break}m(new Sr("Pages tree contains circular reference."));return T.abrupt("break",70);case 37:c.put(x);T.prev=38;T.next=41;return h.fetchAsync(x);case 41:S=T.sent;T.next=48;break;case 44:T.prev=44;T.t1=T.catch(38);m(T.t1);return T.abrupt("break",70);case 48:T.next=51;break;case 50:S=x;case 51:if(S instanceof qr){T.next=54;break}m(new Sr("Page dictionary kid reference points to wrong type of object."));return T.abrupt("break",70);case 54:if(!((C=S.getRaw("Type"))instanceof zr)){T.next=66;break}T.prev=56;T.next=59;return h.fetchAsync(C);case 59:C=T.sent;T.next=66;break;case 62:T.prev=62;T.t2=T.catch(56);m(T.t2);return T.abrupt("break",70);case 66:isName(C,"Page")||!S.has("Kids")?y(S,x instanceof zr?x:null):o.push({currentNode:S,posInKids:0});v.posInKids++;T.next=10;break;case 70:return T.abrupt("return",u);case 71:case"end":return T.stop()}}),_callee4,this,[[15,21],[38,44],[56,62]])}))),function getAllPageDicts(){return t.apply(this,arguments)})},{key:"getPageIndex",value:function getPageIndex(t){var r=this,o=this.pageIndexCache.get(t);if(void 0!==o)return Promise.resolve(o);var c=this.xref;function pagesBeforeRef(r){var o,l=0;return c.fetchAsync(r).then((function(c){if(isRefsEqual(r,t)&&!function isDict(t,r){return t instanceof qr&&(void 0===r||isName(t.get("Type"),r))}(c,"Page")&&!(c instanceof qr&&!c.has("Type")&&c.has("Contents")))throw new Sr("The reference does not point to a /Page dictionary.");if(!c)return null;if(!(c instanceof qr))throw new Sr("Node must be a dictionary.");o=c.getRaw("Parent");return c.getAsync("Parent")})).then((function(t){if(!t)return null;if(!(t instanceof qr))throw new Sr("Parent must be a dictionary.");return t.getAsync("Kids")})).then((function(t){if(!t)return null;var u,h=[],d=!1,g=catalog_createForOfIteratorHelper(t);try{for(g.s();!(u=g.n()).done;){var y=u.value;if(!(y instanceof zr))throw new Sr("Kid must be a reference.");if(isRefsEqual(y,r)){d=!0;break}h.push(c.fetchAsync(y).then((function(t){if(!(t instanceof qr))throw new Sr("Kid node must be a dictionary.");t.has("Count")?l+=t.get("Count"):l++})))}}catch(t){g.e(t)}finally{g.f()}if(!d)throw new Sr("Kid reference not found in parent's kids.");return Promise.all(h).then((function(){return[l,o]}))}))}var l=0;return function next(o){return pagesBeforeRef(o).then((function(o){if(!o){r.pageIndexCache.put(t,l);return l}var c=catalog_slicedToArray(o,2),u=c[0],h=c[1];l+=u;return next(h)}))}(t)}},{key:"baseUrl",get:function get(){var t=this._catDict.get("URI");if(t instanceof qr){var r=t.get("Base");if("string"==typeof r){var o=createValidAbsoluteUrl(r,null,{tryConvertEncoding:!0});if(o)return shadow(this,"baseUrl",o.href)}}return shadow(this,"baseUrl",this.pdfManager.docBaseUrl)}}],[{key:"parseDestDictionary",value:function parseDestDictionary(t){var r=t.destDict,o=t.resultObj,c=t.docBaseUrl,l=void 0===c?null:c,u=t.docAttachments,h=void 0===u?null:u;if(r instanceof qr){var d,g,y=r.get("A");y instanceof qr||(r.has("Dest")?y=r.get("Dest"):(y=r.get("AA"))instanceof qr&&(y.has("D")?y=y.get("D"):y.has("U")&&(y=y.get("U"))));if(y instanceof qr){var m=y.get("S");if(!(m instanceof Ur)){warn("parseDestDictionary: Invalid type in Action dictionary.");return}var v=m.name;switch(v){case"ResetForm":var _,w=y.get("Flags"),k=0==(1&("number"==typeof w?w:0)),x=[],S=[],C=catalog_createForOfIteratorHelper(y.get("Fields")||[]);try{for(C.s();!(_=C.n()).done;){var O=_.value;O instanceof zr?S.push(O.toString()):"string"==typeof O&&x.push(stringToPDFString(O))}}catch(t){C.e(t)}finally{C.f()}o.resetForm={fields:x,refs:S,include:k};break;case"URI":(d=y.get("URI"))instanceof Ur&&(d="/"+d.name);break;case"GoTo":g=y.get("D");break;case"Launch":case"GoToR":var T=y.get("F");T instanceof qr?d=T.get("F")||null:"string"==typeof T&&(d=T);var E=fetchRemoteDest(y);E&&"string"==typeof d&&(d=d.split("#",1)[0]+"#"+E);var j=y.get("NewWindow");"boolean"==typeof j&&(o.newWindow=j);break;case"GoToE":var R,M=y.get("T");if(h&&M instanceof qr){var L=M.get("R"),D=M.get("N");isName(L,"C")&&"string"==typeof D&&(R=h[stringToPDFString(D)])}if(R){o.attachment=R;var N=fetchRemoteDest(y);N&&(o.attachmentDest=N)}else warn('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":var U=y.get("N");U instanceof Ur&&(o.action=U.name);break;case"SetOCGState":var G=y.get("State"),H=y.get("PreserveRB");if(!Array.isArray(G)||0===G.length)break;var q,z=[],W=catalog_createForOfIteratorHelper(G);try{for(W.s();!(q=W.n()).done;){var V=q.value;if(V instanceof Ur)switch(V.name){case"ON":case"OFF":case"Toggle":z.push(V.name)}else V instanceof zr&&z.push(V.toString())}}catch(t){W.e(t)}finally{W.f()}if(z.length!==G.length)break;o.setOCGState={state:z,preserveRB:"boolean"!=typeof H||H};break;case"JavaScript":var X,K=y.get("JS");K instanceof Xr?X=K.getString():"string"==typeof K&&(X=K);var Y=X&&recoverJsURL(stringToPDFString(X));if(Y){d=Y.url;o.newWindow=Y.newWindow;break}default:if("JavaScript"===v||"SubmitForm"===v)break;warn('parseDestDictionary - unsupported action: "'.concat(v,'".'))}}else r.has("Dest")&&(g=r.get("Dest"));if("string"==typeof d){var J=createValidAbsoluteUrl(d,l,{addDefaultProtocol:!0,tryConvertEncoding:!0});J&&(o.url=J.href);o.unsafeUrl=d}if(g){g instanceof Ur&&(g=g.name);"string"==typeof g?o.dest=stringToPDFString(g):Array.isArray(g)&&(o.dest=g)}}else warn("parseDestDictionary: `destDict` must be a dictionary.")}}]);var t,r,o,c;return Catalog}();function object_loader_typeof(t){return object_loader_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},object_loader_typeof(t)}function object_loader_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */object_loader_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==object_loader_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(object_loader_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function object_loader_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function object_loader_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){object_loader_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){object_loader_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function object_loader_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,object_loader_toPropertyKey(c.key),c)}}function object_loader_toPropertyKey(t){var r=function object_loader_toPrimitive(t,r){if("object"!=object_loader_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=object_loader_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==object_loader_typeof(r)?r:String(r)}function object_loader_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function object_loader_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return object_loader_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return object_loader_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function object_loader_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function addChildren(t,r){if(t instanceof qr)t=t.getRawValues();else if(t instanceof Xr)t=t.dict.getRawValues();else if(!Array.isArray(t))return;var o,c,l=object_loader_createForOfIteratorHelper(t);try{for(l.s();!(o=l.n()).done;){var u=o.value;((c=u)instanceof zr||c instanceof qr||c instanceof Xr||Array.isArray(c))&&r.push(u)}}catch(t){l.e(t)}finally{l.f()}}var cu=function(){function ObjectLoader(t,r,o){!function object_loader_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ObjectLoader);this.dict=t;this.keys=r;this.xref=o;this.refSet=null}!function object_loader_createClass(t,r,o){r&&object_loader_defineProperties(t.prototype,r);o&&object_loader_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(ObjectLoader,[{key:"load",value:(r=object_loader_asyncToGenerator(object_loader_regeneratorRuntime().mark((function _callee(){var t,r,o,c,l,u,h;return object_loader_regeneratorRuntime().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!this.xref.stream.isDataLoaded){d.next=2;break}return d.abrupt("return",void 0);case 2:t=this.keys,r=this.dict;this.refSet=new Wr;o=[];c=object_loader_createForOfIteratorHelper(t);try{for(c.s();!(l=c.n()).done;){u=l.value;void 0!==(h=r.getRaw(u))&&o.push(h)}}catch(t){c.e(t)}finally{c.f()}return d.abrupt("return",this._walk(o));case 8:case"end":return d.stop()}}),_callee,this)}))),function load(){return r.apply(this,arguments)})},{key:"_walk",value:(t=object_loader_asyncToGenerator(object_loader_regeneratorRuntime().mark((function _callee2(t){var r,o,c,l,u,h,d,g,y,m,v,_;return object_loader_regeneratorRuntime().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:r=[];o=[];case 2:if(!t.length){w.next=48;break}if(!((c=t.pop())instanceof zr)){w.next=21;break}if(!this.refSet.has(c)){w.next=7;break}return w.abrupt("continue",2);case 7:w.prev=7;this.refSet.put(c);c=this.xref.fetch(c);w.next=21;break;case 12:w.prev=12;w.t0=w.catch(7);if(w.t0 instanceof Yr){w.next=19;break}warn('ObjectLoader._walk - requesting all data: "'.concat(w.t0,'".'));this.refSet=null;l=this.xref.stream.manager;return w.abrupt("return",l.requestAllChunks());case 19:r.push(c);o.push({begin:w.t0.begin,end:w.t0.end});case 21:if(!(c instanceof Xr)){w.next=45;break}if(!(u=c.getBaseStreams())){w.next=45;break}h=!1;d=object_loader_createForOfIteratorHelper(u);w.prev=26;d.s();case 28:if((g=d.n()).done){w.next=36;break}if(!(y=g.value).isDataLoaded){w.next=32;break}return w.abrupt("continue",34);case 32:h=!0;o.push({begin:y.start,end:y.end});case 34:w.next=28;break;case 36:w.next=41;break;case 38:w.prev=38;w.t1=w.catch(26);d.e(w.t1);case 41:w.prev=41;d.f();return w.finish(41);case 44:h&&r.push(c);case 45:addChildren(c,t);w.next=2;break;case 48:if(!o.length){w.next=54;break}w.next=51;return this.xref.stream.manager.requestRanges(o);case 51:m=object_loader_createForOfIteratorHelper(r);try{for(m.s();!(v=m.n()).done;)(_=v.value)instanceof zr&&this.refSet.remove(_)}catch(t){m.e(t)}finally{m.f()}return w.abrupt("return",this._walk(r));case 54:this.refSet=null;return w.abrupt("return",void 0);case 56:case"end":return w.stop()}}),_callee2,this,[[7,12],[26,38,41,44]])}))),function _walk(r){return t.apply(this,arguments)})}]);var t,r;return ObjectLoader}(),lu=Symbol(),uu=Symbol(),fu=Symbol(),hu=Symbol(),pu=Symbol(),du=Symbol(),gu=Symbol(),yu=Symbol(),mu=Symbol(),vu=Symbol("content"),bu=Symbol("data"),_u=Symbol(),wu=Symbol("extra"),ku=Symbol(),xu=Symbol(),Su=Symbol(),Cu=Symbol(),Au=Symbol(),Pu=Symbol(),Ou=Symbol(),Iu=Symbol(),Tu=Symbol(),Fu=Symbol(),Eu=Symbol(),ju=Symbol(),Ru=Symbol(),Mu=Symbol(),Lu=Symbol(),Bu=Symbol(),Du=Symbol(),Nu=Symbol(),Uu=Symbol(),Gu=Symbol(),Hu=Symbol(),qu=Symbol(),zu=Symbol(),Wu=Symbol(),Vu=Symbol(),Xu=Symbol(),Ku=Symbol(),Yu=Symbol(),Ju=Symbol(),$u=Symbol(),Zu=Symbol(),Qu=Symbol(),ef=Symbol("namespaceId"),tf=Symbol("nodeName"),rf=Symbol(),nf=Symbol(),af=Symbol(),of=Symbol(),sf=Symbol(),cf=Symbol(),lf=Symbol(),uf=Symbol(),ff=Symbol("root"),hf=Symbol(),pf=Symbol(),df=Symbol(),gf=Symbol(),yf=Symbol(),mf=Symbol(),vf=Symbol(),bf=Symbol(),_f=Symbol(),wf=Symbol(),kf=Symbol(),xf=Symbol("uid"),Sf=(__webpack_require__(6133),__webpack_require__(353),__webpack_require__(2822),__webpack_require__(9709),__webpack_require__(2642),Symbol()),Cf={config:{id:0,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function check(t){return"http://ns.adobe.com/xdp/pdf/"===t}},signature:{id:6,check:function check(t){return"http://www.w3.org/2000/09/xmldsig#"===t}},sourceSet:{id:7,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function check(t){return"http://www.w3.org/1999/XSL/Transform"===t}},template:{id:9,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function check(t){return"http://ns.adobe.com/xdp/"===t}},xfdf:{id:12,check:function check(t){return"http://ns.adobe.com/xfdf/"===t}},xhtml:{id:13,check:function check(t){return"http://www.w3.org/1999/xhtml"===t}},xmpmeta:{id:14,check:function check(t){return"http://ns.adobe.com/xmpmeta/"===t}}};function utils_typeof(t){return utils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},utils_typeof(t)}function utils_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,utils_toPropertyKey(c.key),c)}}function utils_toPropertyKey(t){var r=function utils_toPrimitive(t,r){if("object"!=utils_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=utils_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==utils_typeof(r)?r:String(r)}function utils_slicedToArray(t,r){return function utils_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function utils_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||function utils_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return utils_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return utils_arrayLikeToArray(t,r)}(t,r)||function utils_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function utils_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var Af={pt:function pt(t){return t},cm:function cm(t){return t/2.54*72},mm:function mm(t){return t/25.4*72},in:function _in(t){return 72*t},px:function px(t){return t}},Pf=/([+-]?\d+\.?\d*)(.*)/;function stripQuotes(t){return t.startsWith("'")||t.startsWith('"')?t.slice(1,-1):t}function getInteger(t){var r=t.data,o=t.defaultValue,c=t.validate;if(!r)return o;r=r.trim();var l=parseInt(r,10);return!isNaN(l)&&c(l)?l:o}function getFloat(t){var r=t.data,o=t.defaultValue,c=t.validate;if(!r)return o;r=r.trim();var l=parseFloat(r);return!isNaN(l)&&c(l)?l:o}function getKeyword(t){var r=t.data,o=t.defaultValue,c=t.validate;return r&&c(r=r.trim())?r:o}function getStringOption(t,r){return getKeyword({data:t,defaultValue:r[0],validate:function validate(t){return r.includes(t)}})}function getMeasurement(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";r||(r="0");if(!t)return getMeasurement(r);var o=t.trim().match(Pf);if(!o)return getMeasurement(r);var c=utils_slicedToArray(o,3),l=c[1],u=c[2],h=parseFloat(l);if(isNaN(h))return getMeasurement(r);if(0===h)return 0;var d=Af[u];return d?d(h):h}function getRatio(t){if(!t)return{num:1,den:1};var r=t.trim().split(/\s*:\s*/).map((function(t){return parseFloat(t)})).filter((function(t){return!isNaN(t)}));1===r.length&&r.push(1);if(0===r.length)return{num:1,den:1};var o=utils_slicedToArray(r,2);return{num:o[0],den:o[1]}}function getRelevant(t){return t?t.trim().split(/\s+/).map((function(t){return{excluded:"-"===t[0],viewname:t.substring(1)}})):[]}var Of=function(){function HTMLResult(t,r,o,c){!function utils_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,HTMLResult);this.success=t;this.html=r;this.bbox=o;this.breakNode=c}!function utils_createClass(t,r,o){r&&utils_defineProperties(t.prototype,r);o&&utils_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(HTMLResult,[{key:"isBreak",value:function isBreak(){return!!this.breakNode}}],[{key:"FAILURE",get:function get(){return shadow(this,"FAILURE",new HTMLResult(!1,null,null,null))}},{key:"EMPTY",get:function get(){return shadow(this,"EMPTY",new HTMLResult(!0,null,null,null))}},{key:"breakNode",value:function breakNode(t){return new HTMLResult(!1,null,null,t)}},{key:"success",value:function success(t){return new HTMLResult(!0,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}]);return HTMLResult}();function xfa_fonts_typeof(t){return xfa_fonts_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xfa_fonts_typeof(t)}function core_xfa_fonts_slicedToArray(t,r){return function core_xfa_fonts_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function core_xfa_fonts_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||core_xfa_fonts_unsupportedIterableToArray(t,r)||function core_xfa_fonts_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function core_xfa_fonts_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=core_xfa_fonts_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function core_xfa_fonts_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return core_xfa_fonts_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?core_xfa_fonts_arrayLikeToArray(t,r):void 0}}function core_xfa_fonts_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function xfa_fonts_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xfa_fonts_toPropertyKey(c.key),c)}}function xfa_fonts_toPropertyKey(t){var r=function xfa_fonts_toPrimitive(t,r){if("object"!=xfa_fonts_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xfa_fonts_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xfa_fonts_typeof(r)?r:String(r)}var If=function(){function FontFinder(t){!function xfa_fonts_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FontFinder);this.fonts=new Map;this.cache=new Map;this.warned=new Set;this.defaultFont=null;this.add(t)}!function xfa_fonts_createClass(t,r,o){r&&xfa_fonts_defineProperties(t.prototype,r);o&&xfa_fonts_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(FontFinder,[{key:"add",value:function add(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=core_xfa_fonts_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value;this.addPdfFont(l)}}catch(t){c.e(t)}finally{c.f()}var u,h=core_xfa_fonts_createForOfIteratorHelper(this.fonts.values());try{for(h.s();!(u=h.n()).done;){var d=u.value;d.regular||(d.regular=d.italic||d.bold||d.bolditalic)}}catch(t){h.e(t)}finally{h.f()}if(o&&0!==o.size){var g,y=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),m=core_xfa_fonts_createForOfIteratorHelper(o);try{for(m.s();!(g=m.n()).done;){var v=g.value;this.fonts.set(v,y)}}catch(t){m.e(t)}finally{m.f()}}}},{key:"addPdfFont",value:function addPdfFont(t){var r=t.cssFontInfo,o=r.fontFamily,c=this.fonts.get(o);if(!c){c=Object.create(null);this.fonts.set(o,c);this.defaultFont||(this.defaultFont=c)}var l="",u=parseFloat(r.fontWeight);0!==parseFloat(r.italicAngle)?l=u>=700?"bolditalic":"italic":u>=700&&(l="bold");if(!l){var h,d,g;(t.name.includes("Bold")||null!==(h=t.psName)&&void 0!==h&&h.includes("Bold"))&&(l="bold");(t.name.includes("Italic")||t.name.endsWith("It")||null!==(d=t.psName)&&void 0!==d&&d.includes("Italic")||null!==(g=t.psName)&&void 0!==g&&g.endsWith("It"))&&(l+="italic")}l||(l="regular");c[l]=t}},{key:"getDefault",value:function getDefault(){return this.defaultFont}},{key:"find",value:function find(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.fonts.get(t)||this.cache.get(t);if(o)return o;var c=/,|-|_| |bolditalic|bold|italic|regular|it/gi,l=t.replaceAll(c,"");if(o=this.fonts.get(l)){this.cache.set(t,o);return o}l=l.toLowerCase();var u,h=[],d=core_xfa_fonts_createForOfIteratorHelper(this.fonts.entries());try{for(d.s();!(u=d.n()).done;){var g=core_xfa_fonts_slicedToArray(u.value,2),y=g[0],m=g[1];y.replaceAll(c,"").toLowerCase().startsWith(l)&&h.push(m)}}catch(t){d.e(t)}finally{d.f()}if(0===h.length){var v,_=core_xfa_fonts_createForOfIteratorHelper(this.fonts.entries());try{for(_.s();!(v=_.n()).done;){var w,k=core_xfa_fonts_slicedToArray(v.value,2)[1];null!==(w=k.regular.name)&&void 0!==w&&w.replaceAll(c,"").toLowerCase().startsWith(l)&&h.push(k)}}catch(t){_.e(t)}finally{_.f()}}if(0===h.length){l=l.replaceAll(/psmt|mt/gi,"");var x,S=core_xfa_fonts_createForOfIteratorHelper(this.fonts.entries());try{for(S.s();!(x=S.n()).done;){var C=core_xfa_fonts_slicedToArray(x.value,2),O=C[0],T=C[1];O.replaceAll(c,"").toLowerCase().startsWith(l)&&h.push(T)}}catch(t){S.e(t)}finally{S.f()}}if(0===h.length){var E,j=core_xfa_fonts_createForOfIteratorHelper(this.fonts.values());try{for(j.s();!(E=j.n()).done;){var R,M=E.value;null!==(R=M.regular.name)&&void 0!==R&&R.replaceAll(c,"").toLowerCase().startsWith(l)&&h.push(M)}}catch(t){j.e(t)}finally{j.f()}}if(h.length>=1){1!==h.length&&r&&warn("XFA - Too many choices to guess the correct font: ".concat(t));this.cache.set(t,h[0]);return h[0]}if(r&&!this.warned.has(t)){this.warned.add(t);warn("XFA - Cannot find the font: ".concat(t))}return null}}]);return FontFinder}();function selectFont(t,r){return"italic"===t.posture?"bold"===t.weight?r.bolditalic:r.italic:"bold"===t.weight?r.bold:r.regular}function text_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=text_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function text_typeof(t){return text_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},text_typeof(t)}function text_slicedToArray(t,r){return function text_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function text_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||text_unsupportedIterableToArray(t,r)||function text_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function text_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return text_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?text_arrayLikeToArray(t,r):void 0}}function text_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function text_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function text_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,text_toPropertyKey(c.key),c)}}function text_createClass(t,r,o){r&&text_defineProperties(t.prototype,r);o&&text_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function text_toPropertyKey(t){var r=function text_toPrimitive(t,r){if("object"!=text_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=text_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==text_typeof(r)?r:String(r)}var Tf=function(){function FontInfo(t,r,o,c){text_classCallCheck(this,FontInfo);this.lineHeight=o;this.paraMargin=r||{top:0,bottom:0,left:0,right:0};if(t){this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};var l=c.find(t.typeface);if(l){this.pdfFont=selectFont(t,l);if(!this.pdfFont){var u=text_slicedToArray(this.defaultFont(c),2);this.pdfFont=u[0];this.xfaFont=u[1]}}else{var h=text_slicedToArray(this.defaultFont(c),2);this.pdfFont=h[0];this.xfaFont=h[1]}}else{var d=text_slicedToArray(this.defaultFont(c),2);this.pdfFont=d[0];this.xfaFont=d[1]}}text_createClass(FontInfo,[{key:"defaultFont",value:function defaultFont(t){var r=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(null!=r&&r.regular){var o=r.regular;return[o,{typeface:o.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}]);return FontInfo}(),Ff=function(){function FontSelector(t,r,o,c){text_classCallCheck(this,FontSelector);this.fontFinder=c;this.stack=[new Tf(t,r,o,c)]}text_createClass(FontSelector,[{key:"pushData",value:function pushData(t,r,o){for(var c=this.stack.at(-1),l=0,u=["typeface","posture","weight","size","letterSpacing"];l<u.length;l++){var h=u[l];t[h]||(t[h]=c.xfaFont[h])}for(var d=0,g=["top","bottom","left","right"];d<g.length;d++){var y=g[d];isNaN(r[y])&&(r[y]=c.paraMargin[y])}var m=new Tf(t,r,o||c.lineHeight,this.fontFinder);m.pdfFont||(m.pdfFont=c.pdfFont);this.stack.push(m)}},{key:"popFont",value:function popFont(){this.stack.pop()}},{key:"topFont",value:function topFont(){return this.stack.at(-1)}}]);return FontSelector}(),Ef=function(){function TextMeasure(t,r,o,c){text_classCallCheck(this,TextMeasure);this.glyphs=[];this.fontSelector=new Ff(t,r,o,c);this.extraHeight=0}text_createClass(TextMeasure,[{key:"pushData",value:function pushData(t,r,o){this.fontSelector.pushData(t,r,o)}},{key:"popFont",value:function popFont(t){return this.fontSelector.popFont()}},{key:"addPara",value:function addPara(){var t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}},{key:"addString",value:function addString(t){if(t){var r=this.fontSelector.topFont(),o=r.xfaFont.size;if(r.pdfFont){var c,l=r.xfaFont.letterSpacing,u=r.pdfFont,h=u.lineHeight||1.2,d=r.lineHeight||Math.max(1.2,h)*o,g=h-(void 0===u.lineGap?.2:u.lineGap),y=Math.max(1,g)*o,m=o/1e3,v=u.defaultWidth||u.charsToGlyphs(" ")[0].width,_=text_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(_.s();!(c=_.n()).done;){var w,k=c.value,x=u.encodeString(k).join(""),S=text_createForOfIteratorHelper(u.charsToGlyphs(x));try{for(S.s();!(w=S.n()).done;){var C=w.value,O=C.width||v;this.glyphs.push([O*m+l,d,y,C.unicode,!1])}}catch(t){S.e(t)}finally{S.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(t){_.e(t)}finally{_.f()}this.glyphs.pop()}else{var T,E=text_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(E.s();!(T=E.n()).done;){var j,R=text_createForOfIteratorHelper(T.value.split(""));try{for(R.s();!(j=R.n()).done;){var M=j.value;this.glyphs.push([o,1.2*o,o,M,!1])}}catch(t){R.e(t)}finally{R.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(t){E.e(t)}finally{E.f()}this.glyphs.pop()}}}},{key:"compute",value:function compute(t){for(var r=-1,o=0,c=0,l=0,u=0,h=0,d=!1,g=!0,y=0,m=this.glyphs.length;y<m;y++){var v=text_slicedToArray(this.glyphs[y],5),_=v[0],w=v[1],k=v[2],x=" "===v[3],S=g?k:w;if(v[4]){c=Math.max(c,u);u=0;l+=h;h=S;r=-1;o=0;g=!1}else if(x)if(u+_>t){c=Math.max(c,u);u=0;l+=h;h=S;r=-1;o=0;d=!0;g=!1}else{h=Math.max(S,h);o=u;u+=_;r=y}else if(u+_>t){l+=h;h=S;if(-1!==r){y=r;c=Math.max(c,o);u=0;r=-1;o=0}else{c=Math.max(c,u);u=_}d=!0;g=!1}else{u+=_;h=Math.max(S,h)}}return{width:1.02*(c=Math.max(c,u)),height:l+=h+this.extraHeight,isBroken:d}}}]);return TextMeasure}();function som_slicedToArray(t,r){return function som_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function som_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||som_unsupportedIterableToArray(t,r)||function som_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function som_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return som_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?som_arrayLikeToArray(t,r):void 0}}function som_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var jf=/^[^.[]+/,Rf=/^[^\]]+/,Mf={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},Lf=new Map([["$data",function(t,r){return t.datasets?t.datasets.data:t}],["$record",function(t,r){return(t.datasets?t.datasets.data:t)[ju]()[0]}],["$template",function(t,r){return t.template}],["$connectionSet",function(t,r){return t.connectionSet}],["$form",function(t,r){return t.form}],["$layout",function(t,r){return t.layout}],["$host",function(t,r){return t.host}],["$dataWindow",function(t,r){return t.dataWindow}],["$event",function(t,r){return t.event}],["!",function(t,r){return t.datasets}],["$xfa",function(t,r){return t}],["xfa",function(t,r){return t}],["$",function(t,r){return r}]]),Bf=new WeakMap;function parseExpression(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=t.match(jf);if(!c)return null;for(var l,u=som_slicedToArray(c,1)[0],h=[{name:u,cacheName:"."+u,index:0,js:null,formCalc:null,operator:Mf.dot}],d=u.length;d<t.length;){var g=d;if("["!==t.charAt(d++)){var y=void 0;switch(t.charAt(d)){case".":if(!r)return null;d++;y=Mf.dotDot;break;case"#":d++;y=Mf.dotHash;break;case"[":if(o){warn("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}y=Mf.dotBracket;break;case"(":if(o){warn("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}y=Mf.dotParen;break;default:y=Mf.dot}if(!(c=t.slice(d).match(jf)))break;d+=(u=som_slicedToArray(c,1)[0]).length;h.push({name:u,cacheName:t.slice(g,d),operator:y,index:0,js:null,formCalc:null})}else{if(!(c=t.slice(d).match(Rf))){warn("XFA - Invalid index in SOM expression");return null}h.at(-1).index="*"===(l=(l=c[0]).trim())?1/0:parseInt(l,10)||0;d+=c[0].length+1}}return h}function searchNode(t,r,o){var c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=parseExpression(o,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]);if(!l)return null;var u,h=Lf.get(l[0].name),d=0;if(h){u=!0;t=[h(t,r)];d=1}else{u=null===r;t=[r||t]}for(var g,y=function _loop(){var o,h=l[d],g=h.name,y=h.cacheName,m=h.operator,v=h.index,_=[],w=function som_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=som_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(w.s();!(o=w.n()).done;){var k=o.value;if(k.isXFAObject){var x=void 0,S=void 0;if(c){if(!(S=Bf.get(k))){S=new Map;Bf.set(k,S)}x=S.get(y)}if(!x){switch(m){case Mf.dot:x=k[Ou](g,!1);break;case Mf.dotDot:x=k[Ou](g,!0);break;case Mf.dotHash:x=(x=k[Pu](g)).isXFAObjectArray?x.children:[x]}c&&S.set(y,x)}x.length>0&&_.push(x)}}}catch(t){w.e(t)}finally{w.f()}if(0===_.length&&!u&&0===d){var C=r[Bu]();if(!(r=C))return{v:null};d=-1;t=[r];return 0}t=isFinite(v)?_.filter((function(t){return v<t.length})).map((function(t){return t[v]})):_.flat()},m=l.length;d<m;d++)if(0!==(g=y())&&g)return g.v;return 0===t.length?null:t}function createDataNode(t,r,o){var c=parseExpression(o);if(!c)return null;if(c.some((function(t){return t.operator===Mf.dotDot})))return null;var l=Lf.get(c[0].name),u=0;if(l){t=l(t,r);u=1}else t=r||t;for(var h=c.length;u<h;u++){var d=c[u],g=d.name,y=d.operator,m=d.index;if(!isFinite(m)){c[u].index=0;return t.createNodes(c.slice(u))}var v=void 0;switch(y){case Mf.dot:v=t[Ou](g,!1);break;case Mf.dotDot:v=t[Ou](g,!0);break;case Mf.dotHash:v=(v=t[Pu](g)).isXFAObjectArray?v.children:[v]}if(0===v.length)return t.createNodes(c.slice(u));if(!(m<v.length)){c[u].index=m-v.length;return t.createNodes(c.slice(u))}var _=v[m];if(!_.isXFAObject){warn("XFA - Cannot create a node.");return null}t=_}return null}function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=xfa_object_getPrototypeOf(t)););return t}(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return _get.apply(this,arguments)}function xfa_object_slicedToArray(t,r){return function xfa_object_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function xfa_object_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||xfa_object_unsupportedIterableToArray(t,r)||function xfa_object_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xfa_object_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&xfa_object_setPrototypeOf(t,r)}function xfa_object_setPrototypeOf(t,r){xfa_object_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return xfa_object_setPrototypeOf(t,r)}function xfa_object_createSuper(t){var r=function xfa_object_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=xfa_object_getPrototypeOf(t);if(r){var l=xfa_object_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function xfa_object_possibleConstructorReturn(t,r){if(r&&("object"===xfa_object_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return xfa_object_assertThisInitialized(t)}(this,o)}}function xfa_object_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xfa_object_getPrototypeOf(t){xfa_object_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return xfa_object_getPrototypeOf(t)}function xfa_object_typeof(t){return xfa_object_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xfa_object_typeof(t)}function xfa_object_toConsumableArray(t){return function xfa_object_arrayWithoutHoles(t){if(Array.isArray(t))return xfa_object_arrayLikeToArray(t)}(t)||function xfa_object_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xfa_object_unsupportedIterableToArray(t)||function xfa_object_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xfa_object_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xfa_object_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==xfa_object_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(xfa_object_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function xfa_object_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=xfa_object_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function xfa_object_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return xfa_object_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?xfa_object_arrayLikeToArray(t,r):void 0}}function xfa_object_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function xfa_object_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function xfa_object_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xfa_object_toPropertyKey(c.key),c)}}function xfa_object_createClass(t,r,o){r&&xfa_object_defineProperties(t.prototype,r);o&&xfa_object_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function xfa_object_toPropertyKey(t){var r=function xfa_object_toPrimitive(t,r){if("object"!=xfa_object_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xfa_object_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xfa_object_typeof(r)?r:String(r)}var Df=Symbol(),Nf=Symbol(),Uf=Symbol(),Gf=Symbol("_children"),Hf=Symbol(),qf=Symbol(),zf=Symbol(),Wf=Symbol(),Vf=Symbol(),Xf=Symbol(),Kf=Symbol(),Yf=Symbol(),Jf=Symbol(),$f=Symbol("parent"),Zf=Symbol(),Qf=Symbol(),eh=Symbol(),th=0,rh=Cf.datasets.id,nh=function(){function XFAObject(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];xfa_object_classCallCheck(this,XFAObject);this[ef]=t;this[tf]=r;this[Kf]=o;this[$f]=null;this[Gf]=[];this[xf]="".concat(r).concat(th++);this[Nu]=null}xfa_object_createClass(XFAObject,[{key:"isXFAObject",get:function get(){return!0}},{key:"isXFAObjectArray",get:function get(){return!1}},{key:"createNodes",value:function createNodes(t){var r,o=this,c=null,l=xfa_object_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){for(var u=r.value,h=u.name,d=u.index,g=0,y=isFinite(d)?d:0;g<=y;g++){var m=o[ef]===rh?-1:o[ef];c=new oh(m,h);o[fu](c)}o=c}}catch(t){l.e(t)}finally{l.f()}return c}},{key:nf,value:function value(t){if(!this[Kf]||!this[af](t))return!1;var r=t[tf],o=this[r];if(!(o instanceof ah)){null!==o&&this[uf](o);this[r]=t;this[fu](t);return!0}if(o.push(t)){this[fu](t);return!0}var c="";this.id?c=" (id: ".concat(this.id,")"):this.name&&(c=" (name: ".concat(this.name," ").concat(this.h.value,")"));warn('XFA - node "'.concat(this[tf],'"').concat(c,' has already enough "').concat(r,'"!'));return!1}},{key:af,value:function value(t){return this.hasOwnProperty(t[tf])&&t[ef]===this[ef]}},{key:Ku,value:function value(){return!1}},{key:lu,value:function value(){return!1}},{key:zu,value:function value(){return!1}},{key:Wu,value:function value(){return!1}},{key:cf,value:function value(){this.para&&this[Du]()[wu].paraStack.pop()}},{key:lf,value:function value(){this[Du]()[wu].paraStack.push(this.para)}},{key:df,value:function value(t){this.id&&this[ef]===Cf.template.id&&t.set(this.id,this)}},{key:Du,value:function value(){return this[Nu].template}},{key:Yu,value:function value(){return!1}},{key:Ju,value:function value(){return!1}},{key:fu,value:function value(t){t[$f]=this;this[Gf].push(t);!t[Nu]&&this[Nu]&&(t[Nu]=this[Nu])}},{key:uf,value:function value(t){var r=this[Gf].indexOf(t);this[Gf].splice(r,1)}},{key:Uu,value:function value(){return this.hasOwnProperty("value")}},{key:yf,value:function value(t){}},{key:of,value:function value(t){}},{key:ku,value:function value(){}},{key:pu,value:function value(t){delete this[Kf];if(this[gu]){t.clean(this[gu]);delete this[gu]}}},{key:Hu,value:function value(t){return this[Gf].indexOf(t)}},{key:qu,value:function value(t,r){r[$f]=this;this[Gf].splice(t,0,r);!r[Nu]&&this[Nu]&&(r[Nu]=this[Nu])}},{key:$u,value:function value(){return!this.name}},{key:Qu,value:function value(){return""}},{key:vf,value:function value(){return 0===this[Gf].length?this[vu]:this[Gf].map((function(t){return t[vf]()})).join("")}},{key:Uf,get:function get(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,o=t._attributes=new Set,c=xfa_object_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(null===this[l]||this[l]instanceof XFAObject||this[l]instanceof ah)break;o.add(l)}}catch(t){c.e(t)}finally{c.f()}}return shadow(this,Uf,t._attributes)}},{key:Xu,value:function value(t){for(var r=this;r;){if(r===t)return!0;r=r[Bu]()}return!1}},{key:Bu,value:function value(){return this[$f]}},{key:Lu,value:function value(){return this[Bu]()}},{key:ju,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[t]:this[Gf]}},{key:_u,value:function value(){var t=Object.create(null);this[vu]&&(t.$content=this[vu]);var r,o=xfa_object_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var c=r.value,value=this[c];null!==value&&(value instanceof XFAObject?t[c]=value[_u]():value instanceof ah?value.isEmpty()||(t[c]=value.dump()):t[c]=value)}}catch(t){o.e(t)}finally{o.f()}return t}},{key:kf,value:function value(){return null}},{key:_f,value:function value(){return Of.EMPTY}},{key:Ru,value:xfa_object_regeneratorRuntime().mark((function value(){var t,r,o;return xfa_object_regeneratorRuntime().wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:t=xfa_object_createForOfIteratorHelper(this[ju]());c.prev=1;t.s();case 3:if((r=t.n()).done){c.next=9;break}o=r.value;c.next=7;return o;case 7:c.next=3;break;case 9:c.next=14;break;case 11:c.prev=11;c.t0=c.catch(1);t.e(c.t0);case 14:c.prev=14;t.f();return c.finish(14);case 17:case"end":return c.stop()}}),value,this,[[1,11,14,17]])}))},{key:Wf,value:xfa_object_regeneratorRuntime().mark((function value(t,r){var o,c,l,u,h;return xfa_object_regeneratorRuntime().wrap((function value$(d){for(;;)switch(d.prev=d.next){case 0:o=xfa_object_createForOfIteratorHelper(this[Ru]());d.prev=1;o.s();case 3:if((c=o.n()).done){d.next=13;break}l=c.value;if(t&&r!==t.has(l[tf])){d.next=11;break}u=this[Au]();(h=l[_f](u)).success||(this[wu].failingNode=l);d.next=11;return h;case 11:d.next=3;break;case 13:d.next=18;break;case 15:d.prev=15;d.t0=d.catch(1);o.e(d.t0);case 18:d.prev=18;o.f();return d.finish(18);case 21:case"end":return d.stop()}}),value,this,[[1,15,18,21]])}))},{key:xu,value:function value(){return null}},{key:uu,value:function value(t,r){this[wu].children.push(t)}},{key:Au,value:function value(){}},{key:hu,value:function value(t){var r=t.filter,o=void 0===r?null:r,c=t.include,l=void 0===c||c;if(this[wu].generator){var u=this[Au](),h=this[wu].failingNode[_f](u);if(!h.success)return h;h.html&&this[uu](h.html,h.bbox);delete this[wu].failingNode}else this[wu].generator=this[Wf](o,l);for(;;){var d=this[wu].generator.next();if(d.done)break;var g=d.value;if(!g.success)return g;g.html&&this[uu](g.html,g.bbox)}this[wu].generator=null;return Of.EMPTY}},{key:gf,value:function value(t){this[Qf]=new Set(Object.keys(t))}},{key:Xf,value:function value(t){var r=this[Uf],o=this[Qf];return xfa_object_toConsumableArray(t).filter((function(t){return r.has(t)&&!o.has(t)}))}},{key:hf,value:function value(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,c=xfa_object_createForOfIteratorHelper(this[Gf]);try{for(c.s();!(r=c.n()).done;){r.value[Zf](t,o)}}catch(t){c.e(t)}finally{c.f()}}},{key:Zf,value:function value(t,r){var o=this[Vf](t,r);o?this[Df](o,t,r):this[hf](t,r)}},{key:Vf,value:function value(t,r){var o=this.use,c=this.usehref;if(!o&&!c)return null;var l=null,u=null,h=null,d=o;if(c){d=c;c.startsWith("#som(")&&c.endsWith(")")?u=c.slice(5,-1):c.startsWith(".#som(")&&c.endsWith(")")?u=c.slice(6,-1):c.startsWith("#")?h=c.slice(1):c.startsWith(".#")&&(h=c.slice(2))}else o.startsWith("#")?h=o.slice(1):u=o;this.use=this.usehref="";h?l=t.get(h):(l=searchNode(t.get(ff),this,u,!0,!1))&&(l=l[0]);if(!l){warn("XFA - Invalid prototype reference: ".concat(d,"."));return null}if(l[tf]!==this[tf]){warn("XFA - Incompatible prototype: ".concat(l[tf]," !== ").concat(this[tf],"."));return null}if(r.has(l)){warn("XFA - Cycle detected in prototypes use.");return null}r.add(l);var g=l[Vf](t,r);g&&l[Df](g,t,r);l[hf](t,r);r.delete(l);return l}},{key:Df,value:function value(t,r,o){if(o.has(t))warn("XFA - Cycle detected in prototypes use.");else{!this[vu]&&t[vu]&&(this[vu]=t[vu]);new Set(o).add(t);var c,l=xfa_object_createForOfIteratorHelper(this[Xf](t[Qf]));try{for(l.s();!(c=l.n()).done;){var u=c.value;this[u]=t[u];this[Qf]&&this[Qf].add(u)}}catch(t){l.e(t)}finally{l.f()}var h,d=xfa_object_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(d.s();!(h=d.n()).done;){var g=h.value;if(!this[Uf].has(g)){var y=this[g],m=t[g];if(y instanceof ah){var v,_=xfa_object_createForOfIteratorHelper(y[Gf]);try{for(_.s();!(v=_.n()).done;){v.value[Zf](r,o)}}catch(t){_.e(t)}finally{_.f()}for(var w=y[Gf].length,k=m[Gf].length;w<k;w++){var x=t[Gf][w][yu]();if(!y.push(x))break;x[$f]=this;this[Gf].push(x);x[Zf](r,o)}}else if(null===y){if(null!==m){var S=m[yu]();S[$f]=this;this[g]=S;this[Gf].push(S);S[Zf](r,o)}}else{y[hf](r,o);m&&y[Df](m,r,o)}}}}catch(t){d.e(t)}finally{d.f()}}}},{key:yu,value:function value(){var t,r=Object.create(Object.getPrototypeOf(this)),o=xfa_object_createForOfIteratorHelper(Object.getOwnPropertySymbols(this));try{for(o.s();!(t=o.n()).done;){var c=t.value;try{r[c]=this[c]}catch(t){shadow(r,c,this[c])}}}catch(t){o.e(t)}finally{o.f()}r[xf]="".concat(r[tf]).concat(th++);r[Gf]=[];var l,u=xfa_object_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(u.s();!(l=u.n()).done;){var h=l.value;if(this[Uf].has(h))r[h]=XFAObject[Hf](this[h]);else{var d=this[h];r[h]=d instanceof ah?new ah(d[Yf]):null}}}catch(t){u.e(t)}finally{u.f()}var g,y=xfa_object_createForOfIteratorHelper(this[Gf]);try{for(y.s();!(g=y.n()).done;){var m=g.value,v=m[tf],_=m[yu]();r[Gf].push(_);_[$f]=r;null===r[v]?r[v]=_:r[v][Gf].push(_)}}catch(t){y.e(t)}finally{y.f()}return r}},{key:ju,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[Gf].filter((function(r){return r[tf]===t})):this[Gf]}},{key:Pu,value:function value(t){return this[t]}},{key:Ou,value:function value(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[Iu](t,r,o))}},{key:Iu,value:function value(t,r){var o=this,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return xfa_object_regeneratorRuntime().mark((function _callee(){var l,u,h;return xfa_object_regeneratorRuntime().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if("parent"!==t){d.next=4;break}d.next=3;return o[$f];case 3:return d.abrupt("return");case 4:l=xfa_object_createForOfIteratorHelper(o[Gf]);d.prev=5;l.s();case 7:if((u=l.n()).done){d.next=19;break}if((h=u.value)[tf]!==t){d.next=12;break}d.next=12;return h;case 12:if(h.name!==t){d.next=15;break}d.next=15;return h;case 15:if(!r&&!h[$u]()){d.next=17;break}return d.delegateYield(h[Iu](t,r,!1),"t0",17);case 17:d.next=7;break;case 19:d.next=24;break;case 21:d.prev=21;d.t1=d.catch(5);l.e(d.t1);case 24:d.prev=24;l.f();return d.finish(24);case 27:if(!c||!o[Uf].has(t)){d.next=30;break}d.next=30;return new ih(o,t,o[t]);case 30:case"end":return d.stop()}}),_callee,null,[[5,21,24,27]])}))()}}],[{key:Hf,value:function value(t){return Array.isArray(t)?t.map((function(t){return XFAObject[Hf](t)})):"object"===xfa_object_typeof(t)&&null!==t?Object.assign({},t):t}}]);return XFAObject}(),ah=function(){function XFAObjectArray(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;xfa_object_classCallCheck(this,XFAObjectArray);this[Yf]=t;this[Gf]=[]}xfa_object_createClass(XFAObjectArray,[{key:"isXFAObject",get:function get(){return!1}},{key:"isXFAObjectArray",get:function get(){return!0}},{key:"push",value:function push(t){if(this[Gf].length<=this[Yf]){this[Gf].push(t);return!0}warn('XFA - node "'.concat(t[tf],'" accepts no more than ').concat(this[Yf]," children"));return!1}},{key:"isEmpty",value:function isEmpty(){return 0===this[Gf].length}},{key:"dump",value:function dump(){return 1===this[Gf].length?this[Gf][0][_u]():this[Gf].map((function(t){return t[_u]()}))}},{key:yu,value:function value(){var t=new XFAObjectArray(this[Yf]);t[Gf]=this[Gf].map((function(t){return t[yu]()}));return t}},{key:"children",get:function get(){return this[Gf]}},{key:"clear",value:function clear(){this[Gf].length=0}}]);return XFAObjectArray}(),ih=function(){function XFAAttribute(t,r,o){xfa_object_classCallCheck(this,XFAAttribute);this[$f]=t;this[tf]=r;this[vu]=o;this[mu]=!1;this[xf]="attribute".concat(th++)}xfa_object_createClass(XFAAttribute,[{key:Bu,value:function value(){return this[$f]}},{key:Vu,value:function value(){return!0}},{key:Tu,value:function value(){return this[vu].trim()}},{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){t=t.value||"";this[vu]=t.toString()}))},{key:vf,value:function value(){return this[vu]}},{key:Xu,value:function value(t){return this[$f]===t||this[$f][Xu](t)}}]);return XFAAttribute}(),oh=function(t){xfa_object_inherits(XmlObject,t);var r=xfa_object_createSuper(XmlObject);function XmlObject(t,o){var c,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};xfa_object_classCallCheck(this,XmlObject);(c=r.call(this,t,o))[vu]="";c[qf]=null;if("#text"!==o){var u=new Map;c[Nf]=u;for(var h=0,d=Object.entries(l);h<d.length;h++){var g=xfa_object_slicedToArray(d[h],2),y=g[0],m=g[1];u.set(y,new ih(xfa_object_assertThisInitialized(c),y,m))}if(l.hasOwnProperty(rf)){var v=l[rf].xfa.dataNode;void 0!==v&&("dataGroup"===v?c[qf]=!1:"dataValue"===v&&(c[qf]=!0))}}c[mu]=!1;return c}xfa_object_createClass(XmlObject,[{key:wf,value:function value(t){var r=this[tf];if("#text"!==r){var o=utf8StringToString(r),c=this[ef]===rh?"xfa:":"";t.push("<".concat(c).concat(o));var l,u=xfa_object_createForOfIteratorHelper(this[Nf].entries());try{for(u.s();!(l=u.n()).done;){var h=xfa_object_slicedToArray(l.value,2),d=h[0],g=h[1],y=utf8StringToString(d);t.push(" ".concat(y,'="').concat(encodeToXmlString(g[vu]),'"'))}}catch(t){u.e(t)}finally{u.f()}null!==this[qf]&&(this[qf]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"'));if(this[vu]||0!==this[Gf].length){t.push(">");if(this[vu])"string"==typeof this[vu]?t.push(encodeToXmlString(this[vu])):this[vu][wf](t);else{var m,v=xfa_object_createForOfIteratorHelper(this[Gf]);try{for(v.s();!(m=v.n()).done;){m.value[wf](t)}}catch(t){v.e(t)}finally{v.f()}}t.push("</".concat(c).concat(o,">"))}else t.push("/>")}else t.push(encodeToXmlString(this[vu]))}},{key:nf,value:function value(t){if(this[vu]){var r=new XmlObject(this[ef],"#text");this[fu](r);r[vu]=this[vu];this[vu]=""}this[fu](t);return!0}},{key:of,value:function value(t){this[vu]+=t}},{key:ku,value:function value(){if(this[vu]&&this[Gf].length>0){var t=new XmlObject(this[ef],"#text");this[fu](t);t[vu]=this[vu];delete this[vu]}}},{key:_f,value:function value(){return"#text"===this[tf]?Of.success({name:"#text",value:this[vu]}):Of.EMPTY}},{key:ju,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[Gf].filter((function(r){return r[tf]===t})):this[Gf]}},{key:Cu,value:function value(){return this[Nf]}},{key:Pu,value:function value(t){var value=this[Nf].get(t);return void 0!==value?value:this[ju](t)}},{key:Iu,value:xfa_object_regeneratorRuntime().mark((function value(t,r){var value,o,c,l;return xfa_object_regeneratorRuntime().wrap((function value$(u){for(;;)switch(u.prev=u.next){case 0:value=this[Nf].get(t);if(!value){u.next=4;break}u.next=4;return value;case 4:o=xfa_object_createForOfIteratorHelper(this[Gf]);u.prev=5;o.s();case 7:if((c=o.n()).done){u.next=16;break}if((l=c.value)[tf]!==t){u.next=12;break}u.next=12;return l;case 12:if(!r){u.next=14;break}return u.delegateYield(l[Iu](t,r),"t0",14);case 14:u.next=7;break;case 16:u.next=21;break;case 18:u.prev=18;u.t1=u.catch(5);o.e(u.t1);case 21:u.prev=21;o.f();return u.finish(21);case 24:case"end":return u.stop()}}),value,this,[[5,18,21,24]])}))},{key:Su,value:xfa_object_regeneratorRuntime().mark((function value(t,r){var value,o,c,l;return xfa_object_regeneratorRuntime().wrap((function value$(u){for(;;)switch(u.prev=u.next){case 0:value=this[Nf].get(t);if(!value||r&&value[mu]){u.next=4;break}u.next=4;return value;case 4:o=xfa_object_createForOfIteratorHelper(this[Gf]);u.prev=5;o.s();case 7:if((c=o.n()).done){u.next=12;break}l=c.value;return u.delegateYield(l[Su](t,r),"t0",10);case 10:u.next=7;break;case 12:u.next=17;break;case 14:u.prev=14;u.t1=u.catch(5);o.e(u.t1);case 17:u.prev=17;o.f();return u.finish(17);case 20:case"end":return u.stop()}}),value,this,[[5,14,17,20]])}))},{key:Eu,value:xfa_object_regeneratorRuntime().mark((function value(t,r,o){var c,l,u;return xfa_object_regeneratorRuntime().wrap((function value$(h){for(;;)switch(h.prev=h.next){case 0:c=xfa_object_createForOfIteratorHelper(this[Gf]);h.prev=1;c.s();case 3:if((l=c.n()).done){h.next=12;break}if((u=l.value)[tf]!==t||o&&u[mu]){h.next=8;break}h.next=8;return u;case 8:if(!r){h.next=10;break}return h.delegateYield(u[Eu](t,r,o),"t0",10);case 10:h.next=3;break;case 12:h.next=17;break;case 14:h.prev=14;h.t1=h.catch(1);c.e(h.t1);case 17:h.prev=17;c.f();return h.finish(17);case 20:case"end":return h.stop()}}),value,this,[[1,14,17,20]])}))},{key:Vu,value:function value(){return null===this[qf]?0===this[Gf].length||this[Gf][0][ef]===Cf.xhtml.id:this[qf]}},{key:Tu,value:function value(){return null===this[qf]?0===this[Gf].length?this[vu].trim():this[Gf][0][ef]===Cf.xhtml.id?this[Gf][0][vf]().trim():null:this[vu].trim()}},{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){t=t.value||"";this[vu]=t.toString()}))},{key:_u,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=Object.create(null);t&&(r.$ns=this[ef]);this[vu]&&(r.$content=this[vu]);r.$name=this[tf];r.children=[];var o,c=xfa_object_createForOfIteratorHelper(this[Gf]);try{for(c.s();!(o=c.n()).done;){var l=o.value;r.children.push(l[_u](t))}}catch(t){c.e(t)}finally{c.f()}r.attributes=Object.create(null);var u,h=xfa_object_createForOfIteratorHelper(this[Nf]);try{for(h.s();!(u=h.n()).done;){var d=xfa_object_slicedToArray(u.value,2),g=d[0],y=d[1];r.attributes[g]=y[vu]}}catch(t){h.e(t)}finally{h.f()}return r}}]);return XmlObject}(nh),sh=function(t){xfa_object_inherits(ContentObject,t);var r=xfa_object_createSuper(ContentObject);function ContentObject(t,o){var c;xfa_object_classCallCheck(this,ContentObject);(c=r.call(this,t,o))[vu]="";return c}xfa_object_createClass(ContentObject,[{key:of,value:function value(t){this[vu]+=t}},{key:ku,value:function value(){}}]);return ContentObject}(nh),lh=function(t){xfa_object_inherits(OptionObject,t);var r=xfa_object_createSuper(OptionObject);function OptionObject(t,o,c){var l;xfa_object_classCallCheck(this,OptionObject);(l=r.call(this,t,o))[Jf]=c;return l}xfa_object_createClass(OptionObject,[{key:ku,value:function value(){var t=this;this[vu]=getKeyword({data:this[vu],defaultValue:this[Jf][0],validate:function validate(r){return t[Jf].includes(r)}})}},{key:pu,value:function value(t){_get(xfa_object_getPrototypeOf(OptionObject.prototype),pu,this).call(this,t);delete this[Jf]}}]);return OptionObject}(sh),uh=function(t){xfa_object_inherits(StringObject,t);var r=xfa_object_createSuper(StringObject);function StringObject(){xfa_object_classCallCheck(this,StringObject);return r.apply(this,arguments)}xfa_object_createClass(StringObject,[{key:ku,value:function value(){this[vu]=this[vu].trim()}}]);return StringObject}(sh),fh=function(t){xfa_object_inherits(IntegerObject,t);var r=xfa_object_createSuper(IntegerObject);function IntegerObject(t,o,c,l){var u;xfa_object_classCallCheck(this,IntegerObject);(u=r.call(this,t,o))[zf]=c;u[eh]=l;return u}xfa_object_createClass(IntegerObject,[{key:ku,value:function value(){this[vu]=getInteger({data:this[vu],defaultValue:this[zf],validate:this[eh]})}},{key:pu,value:function value(t){_get(xfa_object_getPrototypeOf(IntegerObject.prototype),pu,this).call(this,t);delete this[zf];delete this[eh]}}]);return IntegerObject}(sh),hh=function(t){xfa_object_inherits(Option01,t);var r=xfa_object_createSuper(Option01);function Option01(t,o){xfa_object_classCallCheck(this,Option01);return r.call(this,t,o,0,(function(t){return 1===t}))}return xfa_object_createClass(Option01)}(fh),ph=function(t){xfa_object_inherits(Option10,t);var r=xfa_object_createSuper(Option10);function Option10(t,o){xfa_object_classCallCheck(this,Option10);return r.call(this,t,o,1,(function(t){return 0===t}))}return xfa_object_createClass(Option10)}(fh);function html_utils_slicedToArray(t,r){return function html_utils_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function html_utils_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||function html_utils_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return html_utils_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return html_utils_arrayLikeToArray(t,r)}(t,r)||function html_utils_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function html_utils_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function measureToString(t){return"string"==typeof t?"0px":Number.isInteger(t)?"".concat(t,"px"):"".concat(t.toFixed(2),"px")}var dh={anchorType:function anchorType(t,r){var o=t[Lu]();if(o&&(!o.layout||"position"===o.layout)){"transform"in r||(r.transform="");switch(t.anchorType){case"bottomCenter":r.transform+="translate(-50%, -100%)";break;case"bottomLeft":r.transform+="translate(0,-100%)";break;case"bottomRight":r.transform+="translate(-100%,-100%)";break;case"middleCenter":r.transform+="translate(-50%,-50%)";break;case"middleLeft":r.transform+="translate(0,-50%)";break;case"middleRight":r.transform+="translate(-100%,-50%)";break;case"topCenter":r.transform+="translate(-50%,0)";break;case"topRight":r.transform+="translate(-100%,0)"}}},dimensions:function dimensions(t,r){var o,c=t[Lu](),l=t.w,u=t.h;if(null!==(o=c.layout)&&void 0!==o&&o.includes("row")){var h,d=c[wu],g=t.colSpan;if(-1===g){h=d.columnWidths.slice(d.currentColumn).reduce((function(t,r){return t+r}),0);d.currentColumn=0}else{h=d.columnWidths.slice(d.currentColumn,d.currentColumn+g).reduce((function(t,r){return t+r}),0);d.currentColumn=(d.currentColumn+t.colSpan)%d.columnWidths.length}isNaN(h)||(l=t.w=h)}r.width=""!==l?measureToString(l):"auto";r.height=""!==u?measureToString(u):"auto"},position:function position(t,r){var o=t[Lu]();if(null==o||!o.layout||"position"===o.layout){r.position="absolute";r.left=measureToString(t.x);r.top=measureToString(t.y)}},rotate:function rotate(t,r){if(t.rotate){"transform"in r||(r.transform="");r.transform+="rotate(-".concat(t.rotate,"deg)");r.transformOrigin="top left"}},presence:function presence(t,r){switch(t.presence){case"invisible":r.visibility="hidden";break;case"hidden":case"inactive":r.display="none"}},hAlign:function hAlign(t,r){if("para"===t[tf])switch(t.hAlign){case"justifyAll":r.textAlign="justify-all";break;case"radix":r.textAlign="left";break;default:r.textAlign=t.hAlign}else switch(t.hAlign){case"left":r.alignSelf="start";break;case"center":r.alignSelf="center";break;case"right":r.alignSelf="end"}},margin:function margin(t,r){t.margin&&(r.margin=t.margin[kf]().margin)}};function setMinMaxDimensions(t,r){if("position"===t[Lu]().layout){t.minW>0&&(r.minWidth=measureToString(t.minW));t.maxW>0&&(r.maxWidth=measureToString(t.maxW));t.minH>0&&(r.minHeight=measureToString(t.minH));t.maxH>0&&(r.maxHeight=measureToString(t.maxH))}}function layoutText(t,r,o,c,l,u){var h=new Ef(r,o,c,l);"string"==typeof t?h.addString(t):t[sf](h);return h.compute(u)}function layoutNode(t,r){var o=null,c=null,l=!1;if((!t.w||!t.h)&&t.value){var u=0,h=0;if(t.margin){u=t.margin.leftInset+t.margin.rightInset;h=t.margin.topInset+t.margin.bottomInset}var d=null,g=null;if(t.para){g=Object.create(null);d=""===t.para.lineHeight?null:t.para.lineHeight;g.top=""===t.para.spaceAbove?0:t.para.spaceAbove;g.bottom=""===t.para.spaceBelow?0:t.para.spaceBelow;g.left=""===t.para.marginLeft?0:t.para.marginLeft;g.right=""===t.para.marginRight?0:t.para.marginRight}var y=t.font;if(!y)for(var m=t[Du](),v=t[Bu]();v&&v!==m;){if(v.font){y=v.font;break}v=v[Bu]()}var _=(t.w||r.width)-u,w=t[Nu].fontFinder;if(t.value.exData&&t.value.exData[vu]&&"text/html"===t.value.exData.contentType){var k=layoutText(t.value.exData[vu],y,g,d,w,_);c=k.width;o=k.height;l=k.isBroken}else{var x=t.value[vf]();if(x){var S=layoutText(x,y,g,d,w,_);c=S.width;o=S.height;l=S.isBroken}}null===c||t.w||(c+=u);null===o||t.h||(o+=h)}return{w:c,h:o,isBroken:l}}function computeBbox(t,r,o){var c;if(""!==t.w&&""!==t.h)c=[t.x,t.y,t.w,t.h];else{if(!o)return null;var l=t.w;if(""===l){if(0===t.maxW){var u=t[Lu]();l="position"===u.layout&&""!==u.w?0:t.minW}else l=Math.min(t.maxW,o.width);r.attributes.style.width=measureToString(l)}var h=t.h;if(""===h){if(0===t.maxH){var d=t[Lu]();h="position"===d.layout&&""!==d.h?0:t.minH}else h=Math.min(t.maxH,o.height);r.attributes.style.height=measureToString(h)}c=[t.x,t.y,l,h]}return c}function fixDimensions(t){var r,o=t[Lu]();if(null!==(r=o.layout)&&void 0!==r&&r.includes("row")){var c,l=o[wu],u=t.colSpan;c=-1===u?l.columnWidths.slice(l.currentColumn).reduce((function(t,r){return t+r}),0):l.columnWidths.slice(l.currentColumn,l.currentColumn+u).reduce((function(t,r){return t+r}),0);isNaN(c)||(t.w=c)}o.layout&&"position"!==o.layout&&(t.x=t.y=0);"table"===t.layout&&""===t.w&&Array.isArray(t.columnWidths)&&(t.w=t.columnWidths.reduce((function(t,r){return t+r}),0))}function layoutClass(t){switch(t.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function toStyle(t){for(var r=Object.create(null),o=arguments.length,c=new Array(o>1?o-1:0),l=1;l<o;l++)c[l-1]=arguments[l];for(var u=0,h=c;u<h.length;u++){var d=h[u],g=t[d];if(null!==g)if(dh.hasOwnProperty(d))dh[d](t,r);else if(g instanceof nh){var y=g[kf]();y?Object.assign(r,y):warn("(DEBUG) - XFA - style for ".concat(d," not implemented yet"))}}return r}function createWrapper(t,r){var o=r.attributes,c=o.style,l={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};o.class.push("xfaWrapped");if(t.border){var u,h,d=t.border[wu],g=d.widths,y=d.insets,m=y[0],v=y[3],_=y[0]+y[2],w=y[1]+y[3];switch(t.border.hand){case"even":m-=g[0]/2;v-=g[3]/2;u="calc(100% + ".concat((g[1]+g[3])/2-w,"px)");h="calc(100% + ".concat((g[0]+g[2])/2-_,"px)");break;case"left":m-=g[0];v-=g[3];u="calc(100% + ".concat(g[1]+g[3]-w,"px)");h="calc(100% + ".concat(g[0]+g[2]-_,"px)");break;case"right":u=w?"calc(100% - ".concat(w,"px)"):"100%";h=_?"calc(100% - ".concat(_,"px)"):"100%"}var k=["xfaBorder"];isPrintOnly(t.border)&&k.push("xfaPrintOnly");for(var x={name:"div",attributes:{class:k,style:{top:"".concat(m,"px"),left:"".concat(v,"px"),width:u,height:h}},children:[]},S=0,C=["border","borderWidth","borderColor","borderRadius","borderStyle"];S<C.length;S++){var O=C[S];if(void 0!==c[O]){x.attributes.style[O]=c[O];delete c[O]}}l.children.push(x,r)}else l.children.push(r);for(var T=0,E=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];T<E.length;T++){var j=E[T];if(void 0!==c[j]){l.attributes.style[j]=c[j];delete c[j]}}l.attributes.style.position="absolute"===c.position?"absolute":"relative";delete c.position;if(c.alignSelf){l.attributes.style.alignSelf=c.alignSelf;delete c.alignSelf}return l}function fixTextIndent(t){var r=getMeasurement(t.textIndent,"0px");if(!(r>=0)){var o="padding"+("left"===("right"===t.textAlign?"right":"left")?"Left":"Right"),c=getMeasurement(t[o],"0px");t[o]="".concat(c-r,"px")}}function setAccess(t,r){switch(t.access){case"nonInteractive":r.push("xfaNonInteractive");break;case"readOnly":r.push("xfaReadOnly");break;case"protected":r.push("xfaDisabled")}}function isPrintOnly(t){return t.relevant.length>0&&!t.relevant[0].excluded&&"print"===t.relevant[0].viewname}function getCurrentPara(t){var r=t[Du]()[wu].paraStack;return r.length?r.at(-1):null}function setPara(t,r,o){var c;if(null!==(c=o.attributes.class)&&void 0!==c&&c.includes("xfaRich")){if(r){""===t.h&&(r.height="auto");""===t.w&&(r.width="auto")}var l=getCurrentPara(t);if(l){var u=o.attributes.style;u.display="flex";u.flexDirection="column";switch(l.vAlign){case"top":u.justifyContent="start";break;case"bottom":u.justifyContent="end";break;case"middle":u.justifyContent="center"}for(var h=l[kf](),d=0,g=Object.entries(h);d<g.length;d++){var y=html_utils_slicedToArray(g[d],2),m=y[0],v=y[1];m in u||(u[m]=v)}}}}function setFontFamily(t,r,o,c){if(o){var l=stripQuotes(t.typeface);c.fontFamily='"'.concat(l,'"');var u=o.find(l);if(u){var h=u.regular.cssFontInfo.fontFamily;h!==l&&(c.fontFamily='"'.concat(h,'"'));var d=getCurrentPara(r);if(d&&""!==d.lineHeight)return;if(c.lineHeight)return;var g=selectFont(t,u);g&&(c.lineHeight=Math.max(1.2,g.lineHeight))}}else delete c.fontFamily}function fixURL(t){var r=createValidAbsoluteUrl(t,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return r?r.href:null}function layout_slicedToArray(t,r){return function layout_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function layout_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||layout_unsupportedIterableToArray(t,r)||function layout_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function layout_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return layout_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?layout_arrayLikeToArray(t,r):void 0}}function layout_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function createLine(t,r){return{name:"div",attributes:{class:["lr-tb"===t.layout?"xfaLr":"xfaRl"]},children:r}}function flushHTML(t){if(!t[wu])return null;var r={name:"div",attributes:t[wu].attributes,children:t[wu].children};if(t[wu].failingNode){var o=t[wu].failingNode[xu]();o&&(t.layout.endsWith("-tb")?r.children.push(createLine(t,[o])):r.children.push(o))}return 0===r.children.length?null:r}function addHTML(t,r,o){var c=t[wu],l=c.availableSpace,u=layout_slicedToArray(o,4),h=u[0],d=u[1],g=u[2],y=u[3];switch(t.layout){case"position":c.width=Math.max(c.width,h+g);c.height=Math.max(c.height,d+y);c.children.push(r);break;case"lr-tb":case"rl-tb":if(!c.line||1===c.attempt){c.line=createLine(t,[]);c.children.push(c.line);c.numberInLine=0}c.numberInLine+=1;c.line.children.push(r);if(0===c.attempt){c.currentWidth+=g;c.height=Math.max(c.height,c.prevHeight+y)}else{c.currentWidth=g;c.prevHeight=c.height;c.height+=y;c.attempt=0}c.width=Math.max(c.width,c.currentWidth);break;case"rl-row":case"row":c.children.push(r);c.width+=g;c.height=Math.max(c.height,y);var m,v=measureToString(c.height),_=function layout_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=layout_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(c.children);try{for(_.s();!(m=_.n()).done;){m.value.attributes.style.height=v}}catch(t){_.e(t)}finally{_.f()}break;case"table":case"tb":c.width=Math.min(l.width,Math.max(c.width,g));c.height+=y;c.children.push(r)}}function getAvailableSpace(t){var r=t[wu].availableSpace,o=t.margin?t.margin.topInset+t.margin.bottomInset:0,c=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return 0===t[wu].attempt?{width:r.width-c-t[wu].currentWidth,height:r.height-o-t[wu].prevHeight}:{width:r.width-c,height:r.height-o-t[wu].height};case"rl-row":case"row":return{width:t[wu].columnWidths.slice(t[wu].currentColumn).reduce((function(t,r){return t+r})),height:r.height-c};case"table":case"tb":return{width:r.width-c,height:r.height-o-t[wu].height};default:return r}}function checkDimensions(t,r){var o;if(null===t[Du]()[wu].firstUnsplittable)return!0;if(0===t.w||0===t.h)return!0;var c=t[Lu](),l=(null===(o=c[wu])||void 0===o?void 0:o.attempt)||0,u=function getTransformedBBox(t){var r,o,c=""===t.w?NaN:t.w,l=""===t.h?NaN:t.h,u=0,h=0;switch(t.anchorType||""){case"bottomCenter":u=c/2;h=l;break;case"bottomLeft":u=0;h=l;break;case"bottomRight":u=c;h=l;break;case"middleCenter":u=c/2;h=l/2;break;case"middleLeft":u=0;h=l/2;break;case"middleRight":u=c;h=l/2;break;case"topCenter":u=c/2;h=0;break;case"topRight":u=c;h=0}switch(t.rotate||0){case 0:r=-u;o=-h;break;case 90:r=-h;o=u;var d=[l,-c];c=d[0];l=d[1];break;case 180:r=u;o=h;var g=[-c,-l];c=g[0];l=g[1];break;case 270:r=h;o=-u;var y=[-l,c];c=y[0];l=y[1]}return[t.x+r+Math.min(0,c),t.y+o+Math.min(0,l),Math.abs(c),Math.abs(l)]}(t),h=layout_slicedToArray(u,4),d=h[1],g=h[2],y=h[3];switch(c.layout){case"lr-tb":case"rl-tb":return 0===l?t[Du]()[wu].noLayoutFailure?""!==t.w?Math.round(g-r.width)<=2:r.width>2:!(""!==t.h&&Math.round(y-r.height)>2)&&(""!==t.w?Math.round(g-r.width)<=2||0===c[wu].numberInLine&&r.height>2:r.width>2):!!t[Du]()[wu].noLayoutFailure||!(""!==t.h&&Math.round(y-r.height)>2)&&((""===t.w||Math.round(g-r.width)<=2||!c[Ju]())&&r.height>2);case"table":case"tb":return!!t[Du]()[wu].noLayoutFailure||(""===t.h||t[Yu]()?(""===t.w||Math.round(g-r.width)<=2||!c[Ju]())&&r.height>2:Math.round(y-r.height)<=2);case"position":return!!t[Du]()[wu].noLayoutFailure||(""===t.h||Math.round(y+d-r.height)<=2||y+d>t[Du]()[wu].currentContentArea.h);case"rl-row":case"row":return!!t[Du]()[wu].noLayoutFailure||(""===t.h||Math.round(y-r.height)<=2);default:return!0}}function template_typeof(t){return template_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},template_typeof(t)}function template_get(){template_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function template_superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=template_getPrototypeOf(t)););return t}(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return template_get.apply(this,arguments)}function template_slicedToArray(t,r){return function template_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function template_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||template_unsupportedIterableToArray(t,r)||function template_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function template_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,template_toPropertyKey(c.key),c)}}function template_createClass(t,r,o){r&&template_defineProperties(t.prototype,r);o&&template_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function template_toPropertyKey(t){var r=function template_toPrimitive(t,r){if("object"!=template_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=template_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==template_typeof(r)?r:String(r)}function template_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function template_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&template_setPrototypeOf(t,r)}function template_setPrototypeOf(t,r){template_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return template_setPrototypeOf(t,r)}function template_createSuper(t){var r=function template_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=template_getPrototypeOf(t);if(r){var l=template_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function template_possibleConstructorReturn(t,r){if(r&&("object"===template_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function template_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function template_getPrototypeOf(t){template_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return template_getPrototypeOf(t)}function template_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */template_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==template_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(template_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}var gh=template_regeneratorRuntime().mark(getContainedChildren);function template_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=template_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function template_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return template_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?template_arrayLikeToArray(t,r):void 0}}function template_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var yh=Cf.template.id,mh="http://www.w3.org/2000/svg",vh=/^H(\d+)$/,bh=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),_h=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function getBorderDims(t){if(!t||!t.border)return{w:0,h:0};var r=t.border[Fu]();return r?{w:r.widths[0]+r.widths[2]+r.insets[0]+r.insets[2],h:r.widths[1]+r.widths[3]+r.insets[1]+r.insets[3]}:{w:0,h:0}}function hasMargin(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function _setValue(t,r){if(!t.value){var o=new Sd({});t[fu](o);t.value=o}t.value[yf](r)}function getContainedChildren(t){var r,o,c;return template_regeneratorRuntime().wrap((function getContainedChildren$(l){for(;;)switch(l.prev=l.next){case 0:r=template_createForOfIteratorHelper(t[ju]());l.prev=1;r.s();case 3:if((o=r.n()).done){l.next=12;break}if(!((c=o.value)instanceof ud)){l.next=8;break}return l.delegateYield(c[Ru](),"t0",7);case 7:return l.abrupt("continue",10);case 8:l.next=10;return c;case 10:l.next=3;break;case 12:l.next=17;break;case 14:l.prev=14;l.t1=l.catch(1);r.e(l.t1);case 17:l.prev=17;r.f();return l.finish(17);case 20:case"end":return l.stop()}}),gh,null,[[1,14,17,20]])}function isRequired(t){var r;return"error"===(null===(r=t.validate)||void 0===r?void 0:r.nullTest)}function setTabIndex(t){for(;t;){if(!t.traversal){t[mf]=t[Bu]()[mf];return}if(t[mf])return;var r,o=null,c=template_createForOfIteratorHelper(t.traversal[ju]());try{for(c.s();!(r=c.n()).done;){var l=r.value;if("next"===l.operation){o=l;break}}}catch(t){c.e(t)}finally{c.f()}if(!o||!o.ref){t[mf]=t[Bu]()[mf];return}var u=t[Du]();t[mf]=++u[mf];var h=u[pf](o.ref,t);if(!h)return;t=h[0]}}function applyAssist(t,r){var o=t.assist;if(o){var c=o[_f]();c&&(r.title=c);var l=o.role.match(vh);if(l){var u=l[1];r.role="heading";r["aria-level"]=u}}if("table"===t.layout)r.role="table";else if("row"===t.layout)r.role="row";else{var h=t[Bu]();if("row"===h.layout){var d;r.role="TH"===(null===(d=h.assist)||void 0===d?void 0:d.role)?"columnheader":"cell"}}}function ariaLabel(t){if(!t.assist)return null;var r=t.assist;return r.speak&&""!==r.speak[vu]?r.speak[vu]:r.toolTip?r.toolTip[vu]:null}function valueToHtml(t){return Of.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function setFirstUnsplittable(t){var r=t[Du]();if(null===r[wu].firstUnsplittable){r[wu].firstUnsplittable=t;r[wu].noLayoutFailure=!0}}function unsetFirstUnsplittable(t){var r=t[Du]();r[wu].firstUnsplittable===t&&(r[wu].noLayoutFailure=!1)}function handleBreak(t){if(t[wu])return!1;t[wu]=Object.create(null);if("auto"===t.targetType)return!1;var r=t[Du](),o=null;if(t.target){if(!(o=r[pf](t.target,t[Bu]())))return!1;o=o[0]}var c=r[wu],l=c.currentPageArea,u=c.currentContentArea;if("pageArea"===t.targetType){o instanceof qp||(o=null);if(t.startNew){t[wu].target=o||l;return!0}if(o&&o!==l){t[wu].target=o;return!0}return!1}o instanceof zh||(o=null);var h,d=o&&o[Bu](),g=d;if(t.startNew)if(o){var y=d.contentArea.children,m=y.indexOf(u),v=y.indexOf(o);-1!==m&&m<v&&(g=null);h=v-1}else h=l.contentArea.children.indexOf(u);else{if(!o||o===u)return!1;h=d.contentArea.children.indexOf(o)-1;g=d===l?null:d}t[wu].target=g;t[wu].index=h;return!0}function handleOverflow(t,r,o){var c=t[Du](),l=c[wu].noLayoutFailure,u=r[Lu];r[Lu]=function(){return t};c[wu].noLayoutFailure=!0;var h=r[_f](o);t[uu](h.html,h.bbox);c[wu].noLayoutFailure=l;r[Lu]=u}var wh=function(t){template_inherits(AppearanceFilter,t);var r=template_createSuper(AppearanceFilter);function AppearanceFilter(t){var o;template_classCallCheck(this,AppearanceFilter);(o=r.call(this,yh,"appearanceFilter")).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(AppearanceFilter)}(uh),kh=function(t){template_inherits(Arc,t);var r=template_createSuper(Arc);function Arc(t){var o;template_classCallCheck(this,Arc);(o=r.call(this,yh,"arc",!0)).circular=getInteger({data:t.circular,defaultValue:0,validate:function validate(t){return 1===t}});o.hand=getStringOption(t.hand,["even","left","right"]);o.id=t.id||"";o.startAngle=getFloat({data:t.startAngle,defaultValue:0,validate:function validate(t){return!0}});o.sweepAngle=getFloat({data:t.sweepAngle,defaultValue:360,validate:function validate(t){return!0}});o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;o.fill=null;return o}template_createClass(Arc,[{key:_f,value:function value(){var t,r,o=this.edge||new tp({}),c=o[kf](),l=Object.create(null);"visible"===(null===(t=this.fill)||void 0===t?void 0:t.presence)?Object.assign(l,this.fill[kf]()):l.fill="transparent";l.strokeWidth=measureToString("visible"===o.presence?o.thickness:0);l.stroke=c.color;var u={xmlns:mh,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)r={name:"ellipse",attributes:{xmlns:mh,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:l}};else{var h=this.startAngle*Math.PI/180,d=this.sweepAngle*Math.PI/180,g=this.sweepAngle>180?1:0,y=50*(1+Math.cos(h)),m=50*(1-Math.sin(h)),v=50*(1+Math.cos(h+d)),_=50*(1-Math.sin(h+d));r={name:"path",attributes:{xmlns:mh,d:"M ".concat(y," ").concat(m," A 50 50 0 ").concat(g," 0 ").concat(v," ").concat(_),vectorEffect:"non-scaling-stroke",style:l}};Object.assign(u,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var w={name:"svg",children:[r],attributes:u};if(hasMargin(this[Bu]()[Bu]()))return Of.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[w]});w.attributes.style.position="absolute";return Of.success(w)}}]);return Arc}(nh),xh=function(t){template_inherits(Area,t);var r=template_createSuper(Area);function Area(t){var o;template_classCallCheck(this,Area);(o=r.call(this,yh,"area",!0)).colSpan=getInteger({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.id=t.id||"";o.name=t.name||"";o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.x=getMeasurement(t.x,"0pt");o.y=getMeasurement(t.y,"0pt");o.desc=null;o.extras=null;o.area=new ah;o.draw=new ah;o.exObject=new ah;o.exclGroup=new ah;o.field=new ah;o.subform=new ah;o.subformSet=new ah;return o}template_createClass(Area,[{key:Ru,value:template_regeneratorRuntime().mark((function value(){return template_regeneratorRuntime().wrap((function value$(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(getContainedChildren(this),"t0",1);case 1:case"end":return t.stop()}}),value,this)}))},{key:$u,value:function value(){return!0}},{key:Wu,value:function value(){return!0}},{key:uu,value:function value(t,r){var o=template_slicedToArray(r,4),c=o[0],l=o[1],u=o[2],h=o[3];this[wu].width=Math.max(this[wu].width,c+u);this[wu].height=Math.max(this[wu].height,l+h);this[wu].children.push(t)}},{key:Au,value:function value(){return this[wu].availableSpace}},{key:_f,value:function value(t){var r=toStyle(this,"position"),o={style:r,id:this[xf],class:["xfaArea"]};isPrintOnly(this)&&o.class.push("xfaPrintOnly");this.name&&(o.xfaName=this.name);var c=[];this[wu]={children:c,width:0,height:0,availableSpace:t};var l=this[hu]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!l.success){if(l.isBreak())return l;delete this[wu];return Of.FAILURE}r.width=measureToString(this[wu].width);r.height=measureToString(this[wu].height);var u={name:"div",attributes:o,children:c},h=[this.x,this.y,this[wu].width,this[wu].height];delete this[wu];return Of.success(u,h)}}]);return Area}(nh),Sh=function(t){template_inherits(Assist,t);var r=template_createSuper(Assist);function Assist(t){var o;template_classCallCheck(this,Assist);(o=r.call(this,yh,"assist",!0)).id=t.id||"";o.role=t.role||"";o.use=t.use||"";o.usehref=t.usehref||"";o.speak=null;o.toolTip=null;return o}template_createClass(Assist,[{key:_f,value:function value(){var t;return(null===(t=this.toolTip)||void 0===t?void 0:t[vu])||null}}]);return Assist}(nh),Ch=function(t){template_inherits(Barcode,t);var r=template_createSuper(Barcode);function Barcode(t){var o;template_classCallCheck(this,Barcode);(o=r.call(this,yh,"barcode",!0)).charEncoding=getKeyword({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:function validate(t){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)}});o.checksum=getStringOption(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);o.dataColumnCount=getInteger({data:t.dataColumnCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataLength=getInteger({data:t.dataLength,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataPrep=getStringOption(t.dataPrep,["none","flateCompress"]);o.dataRowCount=getInteger({data:t.dataRowCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.endChar=t.endChar||"";o.errorCorrectionLevel=getInteger({data:t.errorCorrectionLevel,defaultValue:-1,validate:function validate(t){return t>=0&&t<=8}});o.id=t.id||"";o.moduleHeight=getMeasurement(t.moduleHeight,"5mm");o.moduleWidth=getMeasurement(t.moduleWidth,"0.25mm");o.printCheckDigit=getInteger({data:t.printCheckDigit,defaultValue:0,validate:function validate(t){return 1===t}});o.rowColumnRatio=getRatio(t.rowColumnRatio);o.startChar=t.startChar||"";o.textLocation=getStringOption(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);o.truncate=getInteger({data:t.truncate,defaultValue:0,validate:function validate(t){return 1===t}});o.type=getStringOption(t.type?t.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);o.upsMode=getStringOption(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);o.use=t.use||"";o.usehref=t.usehref||"";o.wideNarrowRatio=getRatio(t.wideNarrowRatio);o.encrypt=null;o.extras=null;return o}return template_createClass(Barcode)}(nh),Ah=function(t){template_inherits(Bind,t);var r=template_createSuper(Bind);function Bind(t){var o;template_classCallCheck(this,Bind);(o=r.call(this,yh,"bind",!0)).match=getStringOption(t.match,["once","dataRef","global","none"]);o.ref=t.ref||"";o.picture=null;return o}return template_createClass(Bind)}(nh),Ph=function(t){template_inherits(BindItems,t);var r=template_createSuper(BindItems);function BindItems(t){var o;template_classCallCheck(this,BindItems);(o=r.call(this,yh,"bindItems")).connection=t.connection||"";o.labelRef=t.labelRef||"";o.ref=t.ref||"";o.valueRef=t.valueRef||"";return o}return template_createClass(BindItems)}(nh),Oh=function(t){template_inherits(Bookend,t);var r=template_createSuper(Bookend);function Bookend(t){var o;template_classCallCheck(this,Bookend);(o=r.call(this,yh,"bookend")).id=t.id||"";o.leader=t.leader||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Bookend)}(nh),Ih=function(t){template_inherits(BooleanElement,t);var r=template_createSuper(BooleanElement);function BooleanElement(t){var o;template_classCallCheck(this,BooleanElement);(o=r.call(this,yh,"boolean")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(BooleanElement,[{key:_f,value:function value(t){return valueToHtml(1===this[vu]?"1":"0")}}]);return BooleanElement}(hh),Th=function(t){template_inherits(Border,t);var r=template_createSuper(Border);function Border(t){var o;template_classCallCheck(this,Border);(o=r.call(this,yh,"border",!0)).break=getStringOption(t.break,["close","open"]);o.hand=getStringOption(t.hand,["even","left","right"]);o.id=t.id||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new ah(4);o.edge=new ah(4);o.extras=null;o.fill=null;o.margin=null;return o}template_createClass(Border,[{key:Fu,value:function value(){if(!this[wu]){var t=this.edge.children.slice();if(t.length<4)for(var r=t.at(-1)||new tp({}),o=t.length;o<4;o++)t.push(r);var c=t.map((function(t){return t.thickness})),l=[0,0,0,0];if(this.margin){l[0]=this.margin.topInset;l[1]=this.margin.rightInset;l[2]=this.margin.bottomInset;l[3]=this.margin.leftInset}this[wu]={widths:c,insets:l,edges:t}}return this[wu]}},{key:kf,value:function value(){var t,r=this[Fu]().edges.map((function(t){var r=t[kf]();r.color||(r.color="#000000");return r})),o=Object.create(null);this.margin&&Object.assign(o,this.margin[kf]());"visible"===(null===(t=this.fill)||void 0===t?void 0:t.presence)&&Object.assign(o,this.fill[kf]());if(this.corner.children.some((function(t){return 0!==t.radius}))){var c=this.corner.children.map((function(t){return t[kf]()}));if(2===c.length||3===c.length)for(var l=c.at(-1),u=c.length;u<4;u++)c.push(l);o.borderRadius=c.map((function(t){return t.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":o.borderStyle="";break;case"inactive":o.borderStyle="none";break;default:o.borderStyle=r.map((function(t){return t.style})).join(" ")}o.borderWidth=r.map((function(t){return t.width})).join(" ");o.borderColor=r.map((function(t){return t.color})).join(" ");return o}}]);return Border}(nh),Fh=function(t){template_inherits(Break,t);var r=template_createSuper(Break);function Break(t){var o;template_classCallCheck(this,Break);(o=r.call(this,yh,"break",!0)).after=getStringOption(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.afterTarget=t.afterTarget||"";o.before=getStringOption(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.beforeTarget=t.beforeTarget||"";o.bookendLeader=t.bookendLeader||"";o.bookendTrailer=t.bookendTrailer||"";o.id=t.id||"";o.overflowLeader=t.overflowLeader||"";o.overflowTarget=t.overflowTarget||"";o.overflowTrailer=t.overflowTrailer||"";o.startNew=getInteger({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return template_createClass(Break)}(nh),Eh=function(t){template_inherits(BreakAfter,t);var r=template_createSuper(BreakAfter);function BreakAfter(t){var o;template_classCallCheck(this,BreakAfter);(o=r.call(this,yh,"breakAfter",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=getInteger({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=getStringOption(t.targetType,["auto","contentArea","pageArea"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}return template_createClass(BreakAfter)}(nh),jh=function(t){template_inherits(BreakBefore,t);var r=template_createSuper(BreakBefore);function BreakBefore(t){var o;template_classCallCheck(this,BreakBefore);(o=r.call(this,yh,"breakBefore",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=getInteger({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=getStringOption(t.targetType,["auto","contentArea","pageArea"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}template_createClass(BreakBefore,[{key:_f,value:function value(t){this[wu]={};return Of.FAILURE}}]);return BreakBefore}(nh),Rh=function(t){template_inherits(Button,t);var r=template_createSuper(Button);function Button(t){var o;template_classCallCheck(this,Button);(o=r.call(this,yh,"button",!0)).highlight=getStringOption(t.highlight,["inverted","none","outline","push"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}template_createClass(Button,[{key:_f,value:function value(t){var r,o=this[Bu]()[Bu](),c={name:"button",attributes:{id:this[xf],class:["xfaButton"],style:{}},children:[]},l=template_createForOfIteratorHelper(o.event.children);try{for(l.s();!(r=l.n()).done;){var u=r.value;if("click"===u.activity&&u.script){var h=recoverJsURL(u.script[vu]);if(h){var d=fixURL(h.url);d&&c.children.push({name:"a",attributes:{id:"link"+this[xf],href:d,newWindow:h.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(t){l.e(t)}finally{l.f()}return Of.success(c)}}]);return Button}(nh),Mh=function(t){template_inherits(Calculate,t);var r=template_createSuper(Calculate);function Calculate(t){var o;template_classCallCheck(this,Calculate);(o=r.call(this,yh,"calculate",!0)).id=t.id||"";o.override=getStringOption(t.override,["disabled","error","ignore","warning"]);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.message=null;o.script=null;return o}return template_createClass(Calculate)}(nh),Lh=function(t){template_inherits(Caption,t);var r=template_createSuper(Caption);function Caption(t){var o;template_classCallCheck(this,Caption);(o=r.call(this,yh,"caption",!0)).id=t.id||"";o.placement=getStringOption(t.placement,["left","bottom","inline","right","top"]);o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.reserve=Math.ceil(getMeasurement(t.reserve));o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.font=null;o.margin=null;o.para=null;o.value=null;return o}template_createClass(Caption,[{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){_setValue(this,t)}))},{key:Fu,value:function value(t){if(!this[wu]){var r=t.width,o=t.height;switch(this.placement){case"left":case"right":case"inline":r=this.reserve<=0?r:this.reserve;break;case"top":case"bottom":o=this.reserve<=0?o:this.reserve}this[wu]=layoutNode(this,{width:r,height:o})}return this[wu]}},{key:_f,value:function value(t){if(!this.value)return Of.EMPTY;this[lf]();var value=this.value[_f](t).html;if(!value){this[cf]();return Of.EMPTY}var r=this.reserve;if(this.reserve<=0){var o=this[Fu](t),c=o.w,l=o.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=c;break;case"top":case"bottom":this.reserve=l}}var u=[];"string"==typeof value?u.push({name:"#text",value:value}):u.push(value);var h=toStyle(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(h.width=measureToString(this.reserve));break;case"top":case"bottom":this.reserve>0&&(h.height=measureToString(this.reserve))}setPara(this,null,value);this[cf]();this.reserve=r;return Of.success({name:"div",attributes:{style:h,class:["xfaCaption"]},children:u})}}]);return Caption}(nh),Bh=function(t){template_inherits(Certificate,t);var r=template_createSuper(Certificate);function Certificate(t){var o;template_classCallCheck(this,Certificate);(o=r.call(this,yh,"certificate")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Certificate)}(uh),Dh=function(t){template_inherits(Certificates,t);var r=template_createSuper(Certificates);function Certificates(t){var o;template_classCallCheck(this,Certificates);(o=r.call(this,yh,"certificates",!0)).credentialServerPolicy=getStringOption(t.credentialServerPolicy,["optional","required"]);o.id=t.id||"";o.url=t.url||"";o.urlPolicy=t.urlPolicy||"";o.use=t.use||"";o.usehref=t.usehref||"";o.encryption=null;o.issuers=null;o.keyUsage=null;o.oids=null;o.signing=null;o.subjectDNs=null;return o}return template_createClass(Certificates)}(nh),Nh=function(t){template_inherits(CheckButton,t);var r=template_createSuper(CheckButton);function CheckButton(t){var o;template_classCallCheck(this,CheckButton);(o=r.call(this,yh,"checkButton",!0)).id=t.id||"";o.mark=getStringOption(t.mark,["default","check","circle","cross","diamond","square","star"]);o.shape=getStringOption(t.shape,["square","round"]);o.size=getMeasurement(t.size,"10pt");o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}template_createClass(CheckButton,[{key:_f,value:function value(t){var r,o,c,l,u=toStyle("margin"),h=measureToString(this.size);u.width=u.height=h;var d,g=this[Bu]()[Bu](),y=g.items.children.length&&g.items.children[0][_f]().html||[],m={on:(void 0!==y[0]?y[0]:"on").toString(),off:(void 0!==y[1]?y[1]:"off").toString()},value=(null===(r=g.value)||void 0===r?void 0:r[vf]())||"off",v=value===m.on||void 0,_=g[Lu](),w=g[xf];if(_ instanceof hp){var k;l=_[xf];o="radio";c="xfaRadio";d=(null===(k=_[bu])||void 0===k?void 0:k[xf])||_[xf]}else{var x;o="checkbox";c="xfaCheckbox";d=(null===(x=g[bu])||void 0===x?void 0:x[xf])||g[xf]}var S={name:"input",attributes:{class:[c],style:u,fieldId:w,dataId:d,type:o,checked:v,xfaOn:m.on,xfaOff:m.off,"aria-label":ariaLabel(g),"aria-required":!1}};l&&(S.attributes.name=l);if(isRequired(g)){S.attributes["aria-required"]=!0;S.attributes.required=!0}return Of.success({name:"label",attributes:{class:["xfaLabel"]},children:[S]})}}]);return CheckButton}(nh),Uh=function(t){template_inherits(ChoiceList,t);var r=template_createSuper(ChoiceList);function ChoiceList(t){var o;template_classCallCheck(this,ChoiceList);(o=r.call(this,yh,"choiceList",!0)).commitOn=getStringOption(t.commitOn,["select","exit"]);o.id=t.id||"";o.open=getStringOption(t.open,["userControl","always","multiSelect","onEntry"]);o.textEntry=getInteger({data:t.textEntry,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}template_createClass(ChoiceList,[{key:_f,value:function value(t){var r,o,c=toStyle(this,"border","margin"),l=this[Bu]()[Bu](),u=(null===(r=l.font)||void 0===r?void 0:r.size)||10,h={fontSize:"calc(".concat(u,"px * var(--scale-factor))")},d=[];if(l.items.children.length>0){var g,y=l.items,m=0,v=0;2===y.children.length&&(v=1-(m=y.children[0].save));for(var _=y.children[m][_f]().html,w=y.children[v][_f]().html,k=!1,x=(null===(g=l.value)||void 0===g?void 0:g[vf]())||"",S=0,C=_.length;S<C;S++){var O={name:"option",attributes:{value:w[S]||_[S],style:h},value:_[S]};w[S]===x&&(O.attributes.selected=k=!0);d.push(O)}k||d.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var T={class:["xfaSelect"],fieldId:l[xf],dataId:(null===(o=l[bu])||void 0===o?void 0:o[xf])||l[xf],style:c,"aria-label":ariaLabel(l),"aria-required":!1};if(isRequired(l)){T["aria-required"]=!0;T.required=!0}"multiSelect"===this.open&&(T.multiple=!0);return Of.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:d,attributes:T}]})}}]);return ChoiceList}(nh),Gh=function(t){template_inherits(Color,t);var r=template_createSuper(Color);function Color(t){var o;template_classCallCheck(this,Color);(o=r.call(this,yh,"color",!0)).cSpace=getStringOption(t.cSpace,["SRGB"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.value=t.value?function getColor(t){var r=utils_slicedToArray(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],3),o=r[0],c=r[1],l=r[2];if(!t)return{r:o,g:c,b:l};var u=t.trim().split(/\s*,\s*/).map((function(t){return Math.min(Math.max(0,parseInt(t.trim(),10)),255)})).map((function(t){return isNaN(t)?0:t}));if(u.length<3)return{r:o,g:c,b:l};var h=utils_slicedToArray(u,3);return{r:o=h[0],g:c=h[1],b:l=h[2]}}(t.value):"";o.extras=null;return o}template_createClass(Color,[{key:Uu,value:function value(){return!1}},{key:kf,value:function value(){return this.value?Or.makeHexColor(this.value.r,this.value.g,this.value.b):null}}]);return Color}(nh),Hh=function(t){template_inherits(Comb,t);var r=template_createSuper(Comb);function Comb(t){var o;template_classCallCheck(this,Comb);(o=r.call(this,yh,"comb")).id=t.id||"";o.numberOfCells=getInteger({data:t.numberOfCells,defaultValue:0,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Comb)}(nh),qh=function(t){template_inherits(Connect,t);var r=template_createSuper(Connect);function Connect(t){var o;template_classCallCheck(this,Connect);(o=r.call(this,yh,"connect",!0)).connection=t.connection||"";o.id=t.id||"";o.ref=t.ref||"";o.usage=getStringOption(t.usage,["exportAndImport","exportOnly","importOnly"]);o.use=t.use||"";o.usehref=t.usehref||"";o.picture=null;return o}return template_createClass(Connect)}(nh),zh=function(t){template_inherits(ContentArea,t);var r=template_createSuper(ContentArea);function ContentArea(t){var o;template_classCallCheck(this,ContentArea);(o=r.call(this,yh,"contentArea",!0)).h=getMeasurement(t.h);o.id=t.id||"";o.name=t.name||"";o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=getMeasurement(t.w);o.x=getMeasurement(t.x,"0pt");o.y=getMeasurement(t.y,"0pt");o.desc=null;o.extras=null;return o}template_createClass(ContentArea,[{key:_f,value:function value(t){var r={left:measureToString(this.x),top:measureToString(this.y),width:measureToString(this.w),height:measureToString(this.h)},o=["xfaContentarea"];isPrintOnly(this)&&o.push("xfaPrintOnly");return Of.success({name:"div",children:[],attributes:{style:r,class:o,id:this[xf]}})}}]);return ContentArea}(nh),Wh=function(t){template_inherits(Corner,t);var r=template_createSuper(Corner);function Corner(t){var o;template_classCallCheck(this,Corner);(o=r.call(this,yh,"corner",!0)).id=t.id||"";o.inverted=getInteger({data:t.inverted,defaultValue:0,validate:function validate(t){return 1===t}});o.join=getStringOption(t.join,["square","round"]);o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.radius=getMeasurement(t.radius);o.stroke=getStringOption(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=getMeasurement(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}template_createClass(Corner,[{key:kf,value:function value(){var t=toStyle(this,"visibility");t.radius=measureToString("square"===this.join?0:this.radius);return t}}]);return Corner}(nh),Vh=function(t){template_inherits(DateElement,t);var r=template_createSuper(DateElement);function DateElement(t){var o;template_classCallCheck(this,DateElement);(o=r.call(this,yh,"date")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(DateElement,[{key:ku,value:function value(){var t=this[vu].trim();this[vu]=t?new Date(t):null}},{key:_f,value:function value(t){return valueToHtml(this[vu]?this[vu].toString():"")}}]);return DateElement}(sh),Xh=function(t){template_inherits(DateTime,t);var r=template_createSuper(DateTime);function DateTime(t){var o;template_classCallCheck(this,DateTime);(o=r.call(this,yh,"dateTime")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(DateTime,[{key:ku,value:function value(){var t=this[vu].trim();this[vu]=t?new Date(t):null}},{key:_f,value:function value(t){return valueToHtml(this[vu]?this[vu].toString():"")}}]);return DateTime}(sh),Kh=function(t){template_inherits(DateTimeEdit,t);var r=template_createSuper(DateTimeEdit);function DateTimeEdit(t){var o;template_classCallCheck(this,DateTimeEdit);(o=r.call(this,yh,"dateTimeEdit",!0)).hScrollPolicy=getStringOption(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.picker=getStringOption(t.picker,["host","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}template_createClass(DateTimeEdit,[{key:_f,value:function value(t){var r,o=toStyle(this,"border","font","margin"),c=this[Bu]()[Bu](),l={name:"input",attributes:{type:"text",fieldId:c[xf],dataId:(null===(r=c[bu])||void 0===r?void 0:r[xf])||c[xf],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(c),"aria-required":!1}};if(isRequired(c)){l.attributes["aria-required"]=!0;l.attributes.required=!0}return Of.success({name:"label",attributes:{class:["xfaLabel"]},children:[l]})}}]);return DateTimeEdit}(nh),Yh=function(t){template_inherits(Decimal,t);var r=template_createSuper(Decimal);function Decimal(t){var o;template_classCallCheck(this,Decimal);(o=r.call(this,yh,"decimal")).fracDigits=getInteger({data:t.fracDigits,defaultValue:2,validate:function validate(t){return!0}});o.id=t.id||"";o.leadDigits=getInteger({data:t.leadDigits,defaultValue:-1,validate:function validate(t){return!0}});o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Decimal,[{key:ku,value:function value(){var t=parseFloat(this[vu].trim());this[vu]=isNaN(t)?null:t}},{key:_f,value:function value(t){return valueToHtml(null!==this[vu]?this[vu].toString():"")}}]);return Decimal}(sh),Jh=function(t){template_inherits(DefaultUi,t);var r=template_createSuper(DefaultUi);function DefaultUi(t){var o;template_classCallCheck(this,DefaultUi);(o=r.call(this,yh,"defaultUi",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return template_createClass(DefaultUi)}(nh),$h=function(t){template_inherits(Desc,t);var r=template_createSuper(Desc);function Desc(t){var o;template_classCallCheck(this,Desc);(o=r.call(this,yh,"desc",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new ah;o.date=new ah;o.dateTime=new ah;o.decimal=new ah;o.exData=new ah;o.float=new ah;o.image=new ah;o.integer=new ah;o.text=new ah;o.time=new ah;return o}return template_createClass(Desc)}(nh),Zh=function(t){template_inherits(DigestMethod,t);var r=template_createSuper(DigestMethod);function DigestMethod(t){var o;template_classCallCheck(this,DigestMethod);(o=r.call(this,yh,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(DigestMethod)}(lh),Qh=function(t){template_inherits(DigestMethods,t);var r=template_createSuper(DigestMethods);function DigestMethods(t){var o;template_classCallCheck(this,DigestMethods);(o=r.call(this,yh,"digestMethods",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.digestMethod=new ah;return o}return template_createClass(DigestMethods)}(nh),ep=function(t){template_inherits(Draw,t);var r=template_createSuper(Draw);function Draw(t){var o;template_classCallCheck(this,Draw);(o=r.call(this,yh,"draw",!0)).anchorType=getStringOption(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=getInteger({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?getMeasurement(t.h):"";o.hAlign=getStringOption(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=getMeasurement(t.maxH,"0pt");o.maxW=getMeasurement(t.maxW,"0pt");o.minH=getMeasurement(t.minH,"0pt");o.minW=getMeasurement(t.minW,"0pt");o.name=t.name||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=getRelevant(t.relevant);o.rotate=getInteger({data:t.rotate,defaultValue:0,validate:function validate(t){return t%90==0}});o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?getMeasurement(t.w):"";o.x=getMeasurement(t.x,"0pt");o.y=getMeasurement(t.y,"0pt");o.assist=null;o.border=null;o.caption=null;o.desc=null;o.extras=null;o.font=null;o.keep=null;o.margin=null;o.para=null;o.traversal=null;o.ui=null;o.value=null;o.setProperty=new ah;return o}template_createClass(Draw,[{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){_setValue(this,t)}))},{key:_f,value:function value(t){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence)return Of.EMPTY;fixDimensions(this);this[lf]();var r=this.w,o=this.h,c=layoutNode(this,t),l=c.w,u=c.h,h=c.isBroken;if(l&&""===this.w){if(h&&this[Lu]()[Ju]()){this[cf]();return Of.FAILURE}this.w=l}u&&""===this.h&&(this.h=u);setFirstUnsplittable(this);if(!checkDimensions(this,t)){this.w=r;this.h=o;this[cf]();return Of.FAILURE}unsetFirstUnsplittable(this);var d=toStyle(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");setMinMaxDimensions(this,d);if(d.margin){d.padding=d.margin;delete d.margin}var g=["xfaDraw"];this.font&&g.push("xfaFont");isPrintOnly(this)&&g.push("xfaPrintOnly");var y={style:d,id:this[xf],class:g};this.name&&(y.xfaName=this.name);var m={name:"div",attributes:y,children:[]};applyAssist(this,y);var v=computeBbox(this,m,t),value=this.value?this.value[_f](t).html:null;if(null===value){this.w=r;this.h=o;this[cf]();return Of.success(createWrapper(this,m),v)}m.children.push(value);setPara(this,d,value);this.w=r;this.h=o;this[cf]();return Of.success(createWrapper(this,m),v)}}]);return Draw}(nh),tp=function(t){template_inherits(Edge,t);var r=template_createSuper(Edge);function Edge(t){var o;template_classCallCheck(this,Edge);(o=r.call(this,yh,"edge",!0)).cap=getStringOption(t.cap,["square","butt","round"]);o.id=t.id||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.stroke=getStringOption(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=getMeasurement(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}template_createClass(Edge,[{key:kf,value:function value(){var t=toStyle(this,"visibility");Object.assign(t,{linecap:this.cap,width:measureToString(this.thickness),color:this.color?this.color[kf]():"#000000",style:""});if("visible"!==this.presence)t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}}]);return Edge}(nh),rp=function(t){template_inherits(Encoding,t);var r=template_createSuper(Encoding);function Encoding(t){var o;template_classCallCheck(this,Encoding);(o=r.call(this,yh,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Encoding)}(lh),np=function(t){template_inherits(Encodings,t);var r=template_createSuper(Encodings);function Encodings(t){var o;template_classCallCheck(this,Encodings);(o=r.call(this,yh,"encodings",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encoding=new ah;return o}return template_createClass(Encodings)}(nh),ap=function(t){template_inherits(Encrypt,t);var r=template_createSuper(Encrypt);function Encrypt(t){var o;template_classCallCheck(this,Encrypt);(o=r.call(this,yh,"encrypt",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=null;return o}return template_createClass(Encrypt)}(nh),ip=function(t){template_inherits(EncryptData,t);var r=template_createSuper(EncryptData);function EncryptData(t){var o;template_classCallCheck(this,EncryptData);(o=r.call(this,yh,"encryptData",!0)).id=t.id||"";o.operation=getStringOption(t.operation,["encrypt","decrypt"]);o.target=t.target||"";o.use=t.use||"";o.usehref=t.usehref||"";o.filter=null;o.manifest=null;return o}return template_createClass(EncryptData)}(nh),op=function(t){template_inherits(Encryption,t);var r=template_createSuper(Encryption);function Encryption(t){var o;template_classCallCheck(this,Encryption);(o=r.call(this,yh,"encryption",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new ah;return o}return template_createClass(Encryption)}(nh),sp=function(t){template_inherits(EncryptionMethod,t);var r=template_createSuper(EncryptionMethod);function EncryptionMethod(t){var o;template_classCallCheck(this,EncryptionMethod);(o=r.call(this,yh,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(EncryptionMethod)}(lh),cp=function(t){template_inherits(EncryptionMethods,t);var r=template_createSuper(EncryptionMethods);function EncryptionMethods(t){var o;template_classCallCheck(this,EncryptionMethods);(o=r.call(this,yh,"encryptionMethods",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encryptionMethod=new ah;return o}return template_createClass(EncryptionMethods)}(nh),lp=function(t){template_inherits(Event,t);var r=template_createSuper(Event);function Event(t){var o;template_classCallCheck(this,Event);(o=r.call(this,yh,"event",!0)).activity=getStringOption(t.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);o.id=t.id||"";o.listen=getStringOption(t.listen,["refOnly","refAndDescendents"]);o.name=t.name||"";o.ref=t.ref||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.encryptData=null;o.execute=null;o.script=null;o.signData=null;o.submit=null;return o}return template_createClass(Event)}(nh),up=function(t){template_inherits(ExData,t);var r=template_createSuper(ExData);function ExData(t){var o;template_classCallCheck(this,ExData);(o=r.call(this,yh,"exData")).contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.maxLength=getInteger({data:t.maxLength,defaultValue:-1,validate:function validate(t){return t>=-1}});o.name=t.name||"";o.rid=t.rid||"";o.transferEncoding=getStringOption(t.transferEncoding,["none","base64","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(ExData,[{key:zu,value:function value(){return"text/html"===this.contentType}},{key:nf,value:function value(t){if("text/html"===this.contentType&&t[ef]===Cf.xhtml.id){this[vu]=t;return!0}if("text/xml"===this.contentType){this[vu]=t;return!0}return!1}},{key:_f,value:function value(t){return"text/html"===this.contentType&&this[vu]?this[vu][_f](t):Of.EMPTY}}]);return ExData}(sh),fp=function(t){template_inherits(ExObject,t);var r=template_createSuper(ExObject);function ExObject(t){var o;template_classCallCheck(this,ExObject);(o=r.call(this,yh,"exObject",!0)).archive=t.archive||"";o.classId=t.classId||"";o.codeBase=t.codeBase||"";o.codeType=t.codeType||"";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.boolean=new ah;o.date=new ah;o.dateTime=new ah;o.decimal=new ah;o.exData=new ah;o.exObject=new ah;o.float=new ah;o.image=new ah;o.integer=new ah;o.text=new ah;o.time=new ah;return o}return template_createClass(ExObject)}(nh),hp=function(t){template_inherits(ExclGroup,t);var r=template_createSuper(ExclGroup);function ExclGroup(t){var o;template_classCallCheck(this,ExclGroup);(o=r.call(this,yh,"exclGroup",!0)).access=getStringOption(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=getStringOption(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=getInteger({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?getMeasurement(t.h):"";o.hAlign=getStringOption(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=getStringOption(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.maxH=getMeasurement(t.maxH,"0pt");o.maxW=getMeasurement(t.maxW,"0pt");o.minH=getMeasurement(t.minH,"0pt");o.minW=getMeasurement(t.minW,"0pt");o.name=t.name||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?getMeasurement(t.w):"";o.x=getMeasurement(t.x,"0pt");o.y=getMeasurement(t.y,"0pt");o.assist=null;o.bind=null;o.border=null;o.calculate=null;o.caption=null;o.desc=null;o.extras=null;o.margin=null;o.para=null;o.traversal=null;o.validate=null;o.connect=new ah;o.event=new ah;o.field=new ah;o.setProperty=new ah;return o}template_createClass(ExclGroup,[{key:Wu,value:function value(){return!0}},{key:Uu,value:function value(){return!0}},{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){var r,o=template_createForOfIteratorHelper(this.field.children);try{for(o.s();!(r=o.n()).done;){var c=r.value;if(!c.value){var l=new Sd({});c[fu](l);c.value=l}c.value[yf](t)}}catch(t){o.e(t)}finally{o.f()}}))},{key:Ju,value:function value(){return this.layout.endsWith("-tb")&&0===this[wu].attempt&&this[wu].numberInLine>0||this[Bu]()[Ju]()}},{key:Yu,value:function value(){var t,r=this[Lu]();if(!r[Yu]())return!1;if(void 0!==this[wu]._isSplittable)return this[wu]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[wu]._isSplittable=!1;return!1}if(null!==(t=r.layout)&&void 0!==t&&t.endsWith("-tb")&&0!==r[wu].numberInLine)return!1;this[wu]._isSplittable=!0;return!0}},{key:xu,value:function value(){return flushHTML(this)}},{key:uu,value:function value(t,r){addHTML(this,t,r)}},{key:Au,value:function value(){return getAvailableSpace(this)}},{key:_f,value:function value(t){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return Of.EMPTY;fixDimensions(this);var r=[],o={id:this[xf],class:[]};setAccess(this,o.class);this[wu]||(this[wu]=Object.create(null));Object.assign(this[wu],{children:r,attributes:o,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});var c=this[Yu]();c||setFirstUnsplittable(this);if(!checkDimensions(this,t))return Of.FAILURE;var l=new Set(["field"]);if(this.layout.includes("row")){var u=this[Lu]().columnWidths;if(Array.isArray(u)&&u.length>0){this[wu].columnWidths=u;this[wu].currentColumn=0}}var h=toStyle(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),d=["xfaExclgroup"],g=layoutClass(this);g&&d.push(g);isPrintOnly(this)&&d.push("xfaPrintOnly");o.style=h;o.class=d;this.name&&(o.xfaName=this.name);this[lf]();for(var y="lr-tb"===this.layout||"rl-tb"===this.layout,m=y?2:1;this[wu].attempt<m;this[wu].attempt++){y&&1===this[wu].attempt&&(this[wu].numberInLine=0);var v=this[hu]({filter:l,include:!0});if(v.success)break;if(v.isBreak()){this[cf]();return v}if(y&&0===this[wu].attempt&&0===this[wu].numberInLine&&!this[Du]()[wu].noLayoutFailure){this[wu].attempt=m;break}}this[cf]();c||unsetFirstUnsplittable(this);if(this[wu].attempt===m){c||delete this[wu];return Of.FAILURE}var _=0,w=0;if(this.margin){_=this.margin.leftInset+this.margin.rightInset;w=this.margin.topInset+this.margin.bottomInset}var k=Math.max(this[wu].width+_,this.w||0),x=Math.max(this[wu].height+w,this.h||0),S=[this.x,this.y,k,x];""===this.w&&(h.width=measureToString(k));""===this.h&&(h.height=measureToString(x));var C={name:"div",attributes:o,children:r};applyAssist(this,o);delete this[wu];return Of.success(createWrapper(this,C),S)}}]);return ExclGroup}(nh),pp=function(t){template_inherits(Execute,t);var r=template_createSuper(Execute);function Execute(t){var o;template_classCallCheck(this,Execute);(o=r.call(this,yh,"execute")).connection=t.connection||"";o.executeType=getStringOption(t.executeType,["import","remerge"]);o.id=t.id||"";o.runAt=getStringOption(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Execute)}(nh),dp=function(t){template_inherits(Extras,t);var r=template_createSuper(Extras);function Extras(t){var o;template_classCallCheck(this,Extras);(o=r.call(this,yh,"extras",!0)).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new ah;o.date=new ah;o.dateTime=new ah;o.decimal=new ah;o.exData=new ah;o.extras=new ah;o.float=new ah;o.image=new ah;o.integer=new ah;o.text=new ah;o.time=new ah;return o}return template_createClass(Extras)}(nh),gp=function(t){template_inherits(Field,t);var r=template_createSuper(Field);function Field(t){var o;template_classCallCheck(this,Field);(o=r.call(this,yh,"field",!0)).access=getStringOption(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=getStringOption(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=getInteger({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?getMeasurement(t.h):"";o.hAlign=getStringOption(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=getMeasurement(t.maxH,"0pt");o.maxW=getMeasurement(t.maxW,"0pt");o.minH=getMeasurement(t.minH,"0pt");o.minW=getMeasurement(t.minW,"0pt");o.name=t.name||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=getRelevant(t.relevant);o.rotate=getInteger({data:t.rotate,defaultValue:0,validate:function validate(t){return t%90==0}});o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?getMeasurement(t.w):"";o.x=getMeasurement(t.x,"0pt");o.y=getMeasurement(t.y,"0pt");o.assist=null;o.bind=null;o.border=null;o.calculate=null;o.caption=null;o.desc=null;o.extras=null;o.font=null;o.format=null;o.items=new ah(2);o.keep=null;o.margin=null;o.para=null;o.traversal=null;o.ui=null;o.validate=null;o.value=null;o.bindItems=new ah;o.connect=new ah;o.event=new ah;o.setProperty=new ah;return o}template_createClass(Field,[{key:Wu,value:function value(){return!0}},{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){_setValue(this,t)}))},{key:_f,value:function value(t){var r;setTabIndex(this);if(!this.ui){this.ui=new kd({});this.ui[Nu]=this[Nu];this[fu](this.ui);var o;switch(this.items.children.length){case 0:o=new yd({});this.ui.textEdit=o;break;case 1:o=new Nh({});this.ui.checkButton=o;break;case 2:o=new Uh({});this.ui.choiceList=o}this.ui[fu](o)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return Of.EMPTY;this.caption&&delete this.caption[wu];this[lf]();var c=this.caption?this.caption[_f](t).html:null,l=this.w,u=this.h,h=0,d=0;if(this.margin){h=this.margin.leftInset+this.margin.rightInset;d=this.margin.topInset+this.margin.bottomInset}var g=null;if(""===this.w||""===this.h){var y=null,m=null,v=0,_=0;if(this.ui.checkButton)v=_=this.ui.checkButton.size;else{var w=layoutNode(this,t),k=w.w,x=w.h;if(null!==k){v=k;_=x}else _=function fonts_getMetrics(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=null;if(t){var c=stripQuotes(t.typeface),l=t[Nu].fontFinder.find(c);o=selectFont(t,l)}if(!o)return{lineHeight:12,lineGap:2,lineNoGap:10};var u=t.size||10,h=o.lineHeight?Math.max(r?0:1.2,o.lineHeight):1.2,d=void 0===o.lineGap?.2:o.lineGap;return{lineHeight:h*u,lineGap:d*u,lineNoGap:Math.max(1,h-d)*u}}(this.font,!0).lineNoGap}v+=(g=getBorderDims(this.ui[Fu]())).w;_+=g.h;if(this.caption){var S=this.caption[Fu](t),C=S.w,O=S.h;if(S.isBroken&&this[Lu]()[Ju]()){this[cf]();return Of.FAILURE}y=C;m=O;switch(this.caption.placement){case"left":case"right":case"inline":y+=v;break;case"top":case"bottom":m+=_}}else{y=v;m=_}if(y&&""===this.w){y+=h;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<y?y:this.minW)}if(m&&""===this.h){m+=d;this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<m?m:this.minH)}}this[cf]();fixDimensions(this);setFirstUnsplittable(this);if(!checkDimensions(this,t)){this.w=l;this.h=u;this[cf]();return Of.FAILURE}unsetFirstUnsplittable(this);var T=toStyle(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");setMinMaxDimensions(this,T);var E=["xfaField"];this.font&&E.push("xfaFont");isPrintOnly(this)&&E.push("xfaPrintOnly");var j={style:T,id:this[xf],class:E};if(T.margin){T.padding=T.margin;delete T.margin}setAccess(this,E);this.name&&(j.xfaName=this.name);var R=[],M={name:"div",attributes:j,children:R};applyAssist(this,j);var L=this.border?this.border[kf]():null,D=computeBbox(this,M,t),N=this.ui[_f]().html;if(!N){Object.assign(T,L);return Of.success(createWrapper(this,M),D)}if(this[mf]){var U;null!==(U=N.children)&&void 0!==U&&U[0]?N.children[0].attributes.tabindex=this[mf]:N.attributes.tabindex=this[mf]}N.attributes.style||(N.attributes.style=Object.create(null));var G=null;if(this.ui.button){if(1===N.children.length){G=template_slicedToArray(N.children.splice(0,1),1)[0]}Object.assign(N.attributes.style,L)}else Object.assign(T,L);R.push(N);if(this.value)if(this.ui.imageEdit)N.children.push(this.value[_f]().html);else if(!this.ui.button){var H,q="";if(this.value.exData)q=this.value.exData[vf]();else if(this.value.text)q=this.value.text[Fu]();else{var z=this.value[_f]().html;null!==z&&(q=z.children[0].value)}this.ui.textEdit&&null!==(H=this.value.text)&&void 0!==H&&H.maxChars&&(N.children[0].attributes.maxLength=this.value.text.maxChars);if(q){if(this.ui.numericEdit){q=parseFloat(q);q=isNaN(q)?"":q.toString()}"textarea"===N.children[0].name?N.children[0].attributes.textContent=q:N.children[0].attributes.value=q}}if(!this.ui.imageEdit&&null!==(r=N.children)&&void 0!==r&&r[0]&&this.h){g=g||getBorderDims(this.ui[Fu]());var W=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(W=this.caption.reserve)<=0&&(W=this.caption[Fu](t).h);var V=this.h-W-d-g.h;N.children[0].attributes.style.height=measureToString(V)}else N.children[0].attributes.style.height="100%"}G&&N.children.push(G);if(!c){N.attributes.class&&N.attributes.class.push("xfaLeft");this.w=l;this.h=u;return Of.success(createWrapper(this,M),D)}if(this.ui.button){T.padding&&delete T.padding;"div"===c.name&&(c.name="span");N.children.push(c);return Of.success(M,D)}this.ui.checkButton&&(c.attributes.class[0]="xfaCaptionForCheckButton");N.attributes.class||(N.attributes.class=[]);N.children.splice(0,0,c);switch(this.caption.placement){case"left":case"inline":N.attributes.class.push("xfaLeft");break;case"right":N.attributes.class.push("xfaRight");break;case"top":N.attributes.class.push("xfaTop");break;case"bottom":N.attributes.class.push("xfaBottom")}this.w=l;this.h=u;return Of.success(createWrapper(this,M),D)}}]);return Field}(nh),yp=function(t){template_inherits(Fill,t);var r=template_createSuper(Fill);function Fill(t){var o;template_classCallCheck(this,Fill);(o=r.call(this,yh,"fill",!0)).id=t.id||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;o.linear=null;o.pattern=null;o.radial=null;o.solid=null;o.stipple=null;return o}template_createClass(Fill,[{key:kf,value:function value(){var t,r=this[Bu](),o=r[Bu]()[Bu](),c=Object.create(null),l="color",u=l;if(r instanceof Th){l="background-color";u="background";o instanceof kd&&(c.backgroundColor="white")}if(r instanceof Qp||r instanceof kh){l=u="fill";c.fill="white"}var h,d=template_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(d.s();!(h=d.n()).done;){var g=h.value;if("extras"!==g&&"color"!==g){var y=this[g];if(y instanceof nh){var m=y[kf](this.color);m&&(c[m.startsWith("#")?l:u]=m);return c}}}}catch(t){d.e(t)}finally{d.f()}if(null!==(t=this.color)&&void 0!==t&&t.value){var v=this.color[kf]();c[v.startsWith("#")?l:u]=v}return c}}]);return Fill}(nh),mp=function(t){template_inherits(Filter,t);var r=template_createSuper(Filter);function Filter(t){var o;template_classCallCheck(this,Filter);(o=r.call(this,yh,"filter",!0)).addRevocationInfo=getStringOption(t.addRevocationInfo,["","required","optional","none"]);o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.version=getInteger({data:o.version,defaultValue:5,validate:function validate(t){return t>=1&&t<=5}});o.appearanceFilter=null;o.certificates=null;o.digestMethods=null;o.encodings=null;o.encryptionMethods=null;o.handler=null;o.lockDocument=null;o.mdp=null;o.reasons=null;o.timeStamp=null;return o}return template_createClass(Filter)}(nh),vp=function(t){template_inherits(Float,t);var r=template_createSuper(Float);function Float(t){var o;template_classCallCheck(this,Float);(o=r.call(this,yh,"float")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Float,[{key:ku,value:function value(){var t=parseFloat(this[vu].trim());this[vu]=isNaN(t)?null:t}},{key:_f,value:function value(t){return valueToHtml(null!==this[vu]?this[vu].toString():"")}}]);return Float}(sh),bp=function(t){template_inherits(Font,t);var r=template_createSuper(Font);function Font(t){var o;template_classCallCheck(this,Font);(o=r.call(this,yh,"font",!0)).baselineShift=getMeasurement(t.baselineShift);o.fontHorizontalScale=getFloat({data:t.fontHorizontalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.fontVerticalScale=getFloat({data:t.fontVerticalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.id=t.id||"";o.kerningMode=getStringOption(t.kerningMode,["none","pair"]);o.letterSpacing=getMeasurement(t.letterSpacing,"0");o.lineThrough=getInteger({data:t.lineThrough,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.lineThroughPeriod=getStringOption(t.lineThroughPeriod,["all","word"]);o.overline=getInteger({data:t.overline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.overlinePeriod=getStringOption(t.overlinePeriod,["all","word"]);o.posture=getStringOption(t.posture,["normal","italic"]);o.size=getMeasurement(t.size,"10pt");o.typeface=t.typeface||"Courier";o.underline=getInteger({data:t.underline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.underlinePeriod=getStringOption(t.underlinePeriod,["all","word"]);o.use=t.use||"";o.usehref=t.usehref||"";o.weight=getStringOption(t.weight,["normal","bold"]);o.extras=null;o.fill=null;return o}template_createClass(Font,[{key:pu,value:function value(t){template_get(template_getPrototypeOf(Font.prototype),pu,this).call(this,t);this[Nu].usedTypefaces.add(this.typeface)}},{key:kf,value:function value(){var t=toStyle(this,"fill"),r=t.color;if(r)if("#000000"===r)delete t.color;else if(!r.startsWith("#")){t.background=r;t.backgroundClip="text";t.color="transparent"}this.baselineShift&&(t.verticalAlign=measureToString(this.baselineShift));t.fontKerning="none"===this.kerningMode?"none":"normal";t.letterSpacing=measureToString(this.letterSpacing);if(0!==this.lineThrough){t.textDecoration="line-through";2===this.lineThrough&&(t.textDecorationStyle="double")}if(0!==this.overline){t.textDecoration="overline";2===this.overline&&(t.textDecorationStyle="double")}t.fontStyle=this.posture;t.fontSize=measureToString(.99*this.size);setFontFamily(this,this,this[Nu].fontFinder,t);if(0!==this.underline){t.textDecoration="underline";2===this.underline&&(t.textDecorationStyle="double")}t.fontWeight=this.weight;return t}}]);return Font}(nh),_p=function(t){template_inherits(Format,t);var r=template_createSuper(Format);function Format(t){var o;template_classCallCheck(this,Format);(o=r.call(this,yh,"format",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;return o}return template_createClass(Format)}(nh),wp=function(t){template_inherits(Handler,t);var r=template_createSuper(Handler);function Handler(t){var o;template_classCallCheck(this,Handler);(o=r.call(this,yh,"handler")).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Handler)}(uh),kp=function(t){template_inherits(Hyphenation,t);var r=template_createSuper(Hyphenation);function Hyphenation(t){var o;template_classCallCheck(this,Hyphenation);(o=r.call(this,yh,"hyphenation")).excludeAllCaps=getInteger({data:t.excludeAllCaps,defaultValue:0,validate:function validate(t){return 1===t}});o.excludeInitialCap=getInteger({data:t.excludeInitialCap,defaultValue:0,validate:function validate(t){return 1===t}});o.hyphenate=getInteger({data:t.hyphenate,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.pushCharacterCount=getInteger({data:t.pushCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.remainCharacterCount=getInteger({data:t.remainCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";o.wordCharacterCount=getInteger({data:t.wordCharacterCount,defaultValue:7,validate:function validate(t){return t>=0}});return o}return template_createClass(Hyphenation)}(nh),xp=function(t){template_inherits(Image,t);var r=template_createSuper(Image);function Image(t){var o;template_classCallCheck(this,Image);(o=r.call(this,yh,"image")).aspect=getStringOption(t.aspect,["fit","actual","height","none","width"]);o.contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.name=t.name||"";o.transferEncoding=getStringOption(t.transferEncoding,["base64","none","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Image,[{key:_f,value:function value(){if(this.contentType&&!bh.has(this.contentType.toLowerCase()))return Of.EMPTY;var t=this[Nu].images&&this[Nu].images.get(this.href);if(!t&&(this.href||!this[vu]))return Of.EMPTY;t||"base64"!==this.transferEncoding||(t=stringToBytes(atob(this[vu])));if(!t)return Of.EMPTY;if(!this.contentType){for(var r=0,o=_h;r<o.length;r++){var c=template_slicedToArray(o[r],2),l=c[0],u=c[1];if(t.length>l.length&&l.every((function(r,o){return r===t[o]}))){this.contentType=u;break}}if(!this.contentType)return Of.EMPTY}var h,d=new Blob([t],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":h={height:"100%",objectFit:"fill"};break;case"none":h={width:"100%",height:"100%",objectFit:"fill"};break;case"width":h={width:"100%",objectFit:"fill"}}var g=this[Bu]();return Of.success({name:"img",attributes:{class:["xfaImage"],style:h,src:URL.createObjectURL(d),alt:g?ariaLabel(g[Bu]()):null}})}}]);return Image}(uh),Sp=function(t){template_inherits(ImageEdit,t);var r=template_createSuper(ImageEdit);function ImageEdit(t){var o;template_classCallCheck(this,ImageEdit);(o=r.call(this,yh,"imageEdit",!0)).data=getStringOption(t.data,["link","embed"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}template_createClass(ImageEdit,[{key:_f,value:function value(t){return"embed"===this.data?Of.success({name:"div",children:[],attributes:{}}):Of.EMPTY}}]);return ImageEdit}(nh),Cp=function(t){template_inherits(Integer,t);var r=template_createSuper(Integer);function Integer(t){var o;template_classCallCheck(this,Integer);(o=r.call(this,yh,"integer")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Integer,[{key:ku,value:function value(){var t=parseInt(this[vu].trim(),10);this[vu]=isNaN(t)?null:t}},{key:_f,value:function value(t){return valueToHtml(null!==this[vu]?this[vu].toString():"")}}]);return Integer}(sh),Ap=function(t){template_inherits(Issuers,t);var r=template_createSuper(Issuers);function Issuers(t){var o;template_classCallCheck(this,Issuers);(o=r.call(this,yh,"issuers",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new ah;return o}return template_createClass(Issuers)}(nh),Pp=function(t){template_inherits(Items,t);var r=template_createSuper(Items);function Items(t){var o;template_classCallCheck(this,Items);(o=r.call(this,yh,"items",!0)).id=t.id||"";o.name=t.name||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.ref=t.ref||"";o.save=getInteger({data:t.save,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new ah;o.date=new ah;o.dateTime=new ah;o.decimal=new ah;o.exData=new ah;o.float=new ah;o.image=new ah;o.integer=new ah;o.text=new ah;o.time=new ah;return o}template_createClass(Items,[{key:_f,value:function value(){var t,r=[],o=template_createForOfIteratorHelper(this[ju]());try{for(o.s();!(t=o.n()).done;){var c=t.value;r.push(c[vf]())}}catch(t){o.e(t)}finally{o.f()}return Of.success(r)}}]);return Items}(nh),Op=function(t){template_inherits(Keep,t);var r=template_createSuper(Keep);function Keep(t){var o;template_classCallCheck(this,Keep);(o=r.call(this,yh,"keep",!0)).id=t.id||"";var c=["none","contentArea","pageArea"];o.intact=getStringOption(t.intact,c);o.next=getStringOption(t.next,c);o.previous=getStringOption(t.previous,c);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return template_createClass(Keep)}(nh),Ip=function(t){template_inherits(KeyUsage,t);var r=template_createSuper(KeyUsage);function KeyUsage(t){var o;template_classCallCheck(this,KeyUsage);var c=["","yes","no"];(o=r.call(this,yh,"keyUsage")).crlSign=getStringOption(t.crlSign,c);o.dataEncipherment=getStringOption(t.dataEncipherment,c);o.decipherOnly=getStringOption(t.decipherOnly,c);o.digitalSignature=getStringOption(t.digitalSignature,c);o.encipherOnly=getStringOption(t.encipherOnly,c);o.id=t.id||"";o.keyAgreement=getStringOption(t.keyAgreement,c);o.keyCertSign=getStringOption(t.keyCertSign,c);o.keyEncipherment=getStringOption(t.keyEncipherment,c);o.nonRepudiation=getStringOption(t.nonRepudiation,c);o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(KeyUsage)}(nh),Tp=function(t){template_inherits(Line,t);var r=template_createSuper(Line);function Line(t){var o;template_classCallCheck(this,Line);(o=r.call(this,yh,"line",!0)).hand=getStringOption(t.hand,["even","left","right"]);o.id=t.id||"";o.slope=getStringOption(t.slope,["\\","/"]);o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;return o}template_createClass(Line,[{key:_f,value:function value(){var t,r,o,c,l=this[Bu]()[Bu](),u=this.edge||new tp({}),h=u[kf](),d=Object.create(null),g="visible"===u.presence?u.thickness:0;d.strokeWidth=measureToString(g);d.stroke=h.color;var y="100%",m="100%";if(l.w<=g){t="50%";r=0;o="50%";c="100%";y=d.strokeWidth}else if(l.h<=g){t=0;r="50%";o="100%";c="50%";m=d.strokeWidth}else if("\\"===this.slope){t=0;r=0;o="100%";c="100%"}else{t=0;r="100%";o="100%";c=0}var v={name:"svg",children:[{name:"line",attributes:{xmlns:mh,x1:t,y1:r,x2:o,y2:c,style:d}}],attributes:{xmlns:mh,width:y,height:m,style:{overflow:"visible"}}};if(hasMargin(l))return Of.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[v]});v.attributes.style.position="absolute";return Of.success(v)}}]);return Line}(nh),Fp=function(t){template_inherits(Linear,t);var r=template_createSuper(Linear);function Linear(t){var o;template_classCallCheck(this,Linear);(o=r.call(this,yh,"linear",!0)).id=t.id||"";o.type=getStringOption(t.type,["toRight","toBottom","toLeft","toTop"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}template_createClass(Linear,[{key:kf,value:function value(t){t=t?t[kf]():"#FFFFFF";var r=this.type.replace(/([RBLT])/," $1").toLowerCase(),o=this.color?this.color[kf]():"#000000";return"linear-gradient(".concat(r,", ").concat(t,", ").concat(o,")")}}]);return Linear}(nh),Ep=function(t){template_inherits(LockDocument,t);var r=template_createSuper(LockDocument);function LockDocument(t){var o;template_classCallCheck(this,LockDocument);(o=r.call(this,yh,"lockDocument")).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(LockDocument,[{key:ku,value:function value(){this[vu]=getStringOption(this[vu],["auto","0","1"])}}]);return LockDocument}(sh),jp=function(t){template_inherits(Manifest,t);var r=template_createSuper(Manifest);function Manifest(t){var o;template_classCallCheck(this,Manifest);(o=r.call(this,yh,"manifest",!0)).action=getStringOption(t.action,["include","all","exclude"]);o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.ref=new ah;return o}return template_createClass(Manifest)}(nh),Rp=function(t){template_inherits(Margin,t);var r=template_createSuper(Margin);function Margin(t){var o;template_classCallCheck(this,Margin);(o=r.call(this,yh,"margin",!0)).bottomInset=getMeasurement(t.bottomInset,"0");o.id=t.id||"";o.leftInset=getMeasurement(t.leftInset,"0");o.rightInset=getMeasurement(t.rightInset,"0");o.topInset=getMeasurement(t.topInset,"0");o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}template_createClass(Margin,[{key:kf,value:function value(){return{margin:measureToString(this.topInset)+" "+measureToString(this.rightInset)+" "+measureToString(this.bottomInset)+" "+measureToString(this.leftInset)}}}]);return Margin}(nh),Mp=function(t){template_inherits(Mdp,t);var r=template_createSuper(Mdp);function Mdp(t){var o;template_classCallCheck(this,Mdp);(o=r.call(this,yh,"mdp")).id=t.id||"";o.permissions=getInteger({data:t.permissions,defaultValue:2,validate:function validate(t){return 1===t||3===t}});o.signatureType=getStringOption(t.signatureType,["filler","author"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Mdp)}(nh),Lp=function(t){template_inherits(Medium,t);var r=template_createSuper(Medium);function Medium(t){var o;template_classCallCheck(this,Medium);(o=r.call(this,yh,"medium")).id=t.id||"";o.imagingBBox=function getBBox(t){var r=-1;if(!t)return{x:r,y:r,width:r,height:r};var o=t.trim().split(/\s*,\s*/).map((function(t){return getMeasurement(t,"-1")}));if(o.length<4||o[2]<0||o[3]<0)return{x:r,y:r,width:r,height:r};var c=utils_slicedToArray(o,4);return{x:c[0],y:c[1],width:c[2],height:c[3]}}(t.imagingBBox);o.long=getMeasurement(t.long);o.orientation=getStringOption(t.orientation,["portrait","landscape"]);o.short=getMeasurement(t.short);o.stock=t.stock||"";o.trayIn=getStringOption(t.trayIn,["auto","delegate","pageFront"]);o.trayOut=getStringOption(t.trayOut,["auto","delegate"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Medium)}(nh),Bp=function(t){template_inherits(Message,t);var r=template_createSuper(Message);function Message(t){var o;template_classCallCheck(this,Message);(o=r.call(this,yh,"message",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.text=new ah;return o}return template_createClass(Message)}(nh),Dp=function(t){template_inherits(NumericEdit,t);var r=template_createSuper(NumericEdit);function NumericEdit(t){var o;template_classCallCheck(this,NumericEdit);(o=r.call(this,yh,"numericEdit",!0)).hScrollPolicy=getStringOption(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}template_createClass(NumericEdit,[{key:_f,value:function value(t){var r,o=toStyle(this,"border","font","margin"),c=this[Bu]()[Bu](),l={name:"input",attributes:{type:"text",fieldId:c[xf],dataId:(null===(r=c[bu])||void 0===r?void 0:r[xf])||c[xf],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(c),"aria-required":!1}};if(isRequired(c)){l.attributes["aria-required"]=!0;l.attributes.required=!0}return Of.success({name:"label",attributes:{class:["xfaLabel"]},children:[l]})}}]);return NumericEdit}(nh),Np=function(t){template_inherits(Occur,t);var r=template_createSuper(Occur);function Occur(t){var o;template_classCallCheck(this,Occur);(o=r.call(this,yh,"occur",!0)).id=t.id||"";o.initial=""!==t.initial?getInteger({data:t.initial,defaultValue:"",validate:function validate(t){return!0}}):"";o.max=""!==t.max?getInteger({data:t.max,defaultValue:1,validate:function validate(t){return!0}}):"";o.min=""!==t.min?getInteger({data:t.min,defaultValue:1,validate:function validate(t){return!0}}):"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}template_createClass(Occur,[{key:pu,value:function value(){var t=this[Bu](),r=this.min;""===this.min&&(this.min=t instanceof qp||t instanceof zp?0:1);""===this.max&&(this.max=""===r?t instanceof qp||t instanceof zp?-1:1:this.min);-1!==this.max&&this.max<this.min&&(this.max=this.min);""===this.initial&&(this.initial=t instanceof dd?1:this.min)}}]);return Occur}(nh),Up=function(t){template_inherits(Oid,t);var r=template_createSuper(Oid);function Oid(t){var o;template_classCallCheck(this,Oid);(o=r.call(this,yh,"oid")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Oid)}(uh),Gp=function(t){template_inherits(Oids,t);var r=template_createSuper(Oids);function Oids(t){var o;template_classCallCheck(this,Oids);(o=r.call(this,yh,"oids",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.oid=new ah;return o}return template_createClass(Oids)}(nh),Hp=function(t){template_inherits(Overflow,t);var r=template_createSuper(Overflow);function Overflow(t){var o;template_classCallCheck(this,Overflow);(o=r.call(this,yh,"overflow")).id=t.id||"";o.leader=t.leader||"";o.target=t.target||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Overflow,[{key:Fu,value:function value(){if(!this[wu]){var t=this[Bu](),r=this[Du](),o=r[pf](this.target,t),c=r[pf](this.leader,t),l=r[pf](this.trailer,t);this[wu]={target:(null==o?void 0:o[0])||null,leader:(null==c?void 0:c[0])||null,trailer:(null==l?void 0:l[0])||null,addLeader:!1,addTrailer:!1}}return this[wu]}}]);return Overflow}(nh),qp=function(t){template_inherits(PageArea,t);var r=template_createSuper(PageArea);function PageArea(t){var o;template_classCallCheck(this,PageArea);(o=r.call(this,yh,"pageArea",!0)).blankOrNotBlank=getStringOption(t.blankOrNotBlank,["any","blank","notBlank"]);o.id=t.id||"";o.initialNumber=getInteger({data:t.initialNumber,defaultValue:1,validate:function validate(t){return!0}});o.name=t.name||"";o.numbered=getInteger({data:t.numbered,defaultValue:1,validate:function validate(t){return!0}});o.oddOrEven=getStringOption(t.oddOrEven,["any","even","odd"]);o.pagePosition=getStringOption(t.pagePosition,["any","first","last","only","rest"]);o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.desc=null;o.extras=null;o.medium=null;o.occur=null;o.area=new ah;o.contentArea=new ah;o.draw=new ah;o.exclGroup=new ah;o.field=new ah;o.subform=new ah;return o}template_createClass(PageArea,[{key:Zu,value:function value(){if(!this[wu]){this[wu]={numberOfUse:0};return!0}return!this.occur||-1===this.occur.max||this[wu].numberOfUse<this.occur.max}},{key:du,value:function value(){delete this[wu]}},{key:Mu,value:function value(){this[wu]||(this[wu]={numberOfUse:0});var t=this[Bu]();if("orderedOccurrence"===t.relation&&this[Zu]()){this[wu].numberOfUse+=1;return this}return t[Mu]()}},{key:Au,value:function value(){return this[wu].space||{width:0,height:0}}},{key:_f,value:function value(){this[wu]||(this[wu]={numberOfUse:1});var t=[];this[wu].children=t;var r=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){r.width=measureToString(this.medium.short);r.height=measureToString(this.medium.long);this[wu].space={width:this.medium.short,height:this.medium.long};if("landscape"===this.medium.orientation){var o=r.width;r.width=r.height;r.height=o;this[wu].space={width:this.medium.long,height:this.medium.short}}}else warn("XFA - No medium specified in pageArea: please file a bug.");this[hu]({filter:new Set(["area","draw","field","subform"]),include:!0});this[hu]({filter:new Set(["contentArea"]),include:!0});return Of.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[xf],style:r,xfaName:this.name}})}}]);return PageArea}(nh),zp=function(t){template_inherits(PageSet,t);var r=template_createSuper(PageSet);function PageSet(t){var o;template_classCallCheck(this,PageSet);(o=r.call(this,yh,"pageSet",!0)).duplexImposition=getStringOption(t.duplexImposition,["longEdge","shortEdge"]);o.id=t.id||"";o.name=t.name||"";o.relation=getStringOption(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.occur=null;o.pageArea=new ah;o.pageSet=new ah;return o}template_createClass(PageSet,[{key:du,value:function value(){var t,r=template_createForOfIteratorHelper(this.pageArea.children);try{for(r.s();!(t=r.n()).done;){t.value[du]()}}catch(t){r.e(t)}finally{r.f()}var o,c=template_createForOfIteratorHelper(this.pageSet.children);try{for(c.s();!(o=c.n()).done;){o.value[du]()}}catch(t){c.e(t)}finally{c.f()}}},{key:Zu,value:function value(){return!this.occur||-1===this.occur.max||this[wu].numberOfUse<this.occur.max}},{key:Mu,value:function value(){this[wu]||(this[wu]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1});if("orderedOccurrence"===this.relation){if(this[wu].pageIndex+1<this.pageArea.children.length){this[wu].pageIndex+=1;return this.pageArea.children[this[wu].pageIndex][Mu]()}if(this[wu].pageSetIndex+1<this.pageSet.children.length){this[wu].pageSetIndex+=1;return this.pageSet.children[this[wu].pageSetIndex][Mu]()}if(this[Zu]()){this[wu].numberOfUse+=1;this[wu].pageIndex=-1;this[wu].pageSetIndex=-1;return this[Mu]()}var t=this[Bu]();if(t instanceof PageSet)return t[Mu]();this[du]();return this[Mu]()}var r=this[Du]()[wu].pageNumber,o=r%2==0?"even":"odd",c=0===r?"first":"rest",l=this.pageArea.children.find((function(t){return t.oddOrEven===o&&t.pagePosition===c}));return l||((l=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&t.pagePosition===c})))?l:(l=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&"any"===t.pagePosition})))||this.pageArea.children[0])}}]);return PageSet}(nh),Wp=function(t){template_inherits(Para,t);var r=template_createSuper(Para);function Para(t){var o;template_classCallCheck(this,Para);(o=r.call(this,yh,"para",!0)).hAlign=getStringOption(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.lineHeight=t.lineHeight?getMeasurement(t.lineHeight,"0pt"):"";o.marginLeft=t.marginLeft?getMeasurement(t.marginLeft,"0pt"):"";o.marginRight=t.marginRight?getMeasurement(t.marginRight,"0pt"):"";o.orphans=getInteger({data:t.orphans,defaultValue:0,validate:function validate(t){return t>=0}});o.preserve=t.preserve||"";o.radixOffset=t.radixOffset?getMeasurement(t.radixOffset,"0pt"):"";o.spaceAbove=t.spaceAbove?getMeasurement(t.spaceAbove,"0pt"):"";o.spaceBelow=t.spaceBelow?getMeasurement(t.spaceBelow,"0pt"):"";o.tabDefault=t.tabDefault?getMeasurement(o.tabDefault):"";o.tabStops=(t.tabStops||"").trim().split(/\s+/).map((function(t,r){return r%2==1?getMeasurement(t):t}));o.textIndent=t.textIndent?getMeasurement(t.textIndent,"0pt"):"";o.use=t.use||"";o.usehref=t.usehref||"";o.vAlign=getStringOption(t.vAlign,["top","bottom","middle"]);o.widows=getInteger({data:t.widows,defaultValue:0,validate:function validate(t){return t>=0}});o.hyphenation=null;return o}template_createClass(Para,[{key:kf,value:function value(){var t=toStyle(this,"hAlign");""!==this.marginLeft&&(t.paddingLeft=measureToString(this.marginLeft));""!==this.marginRight&&(t.paddingight=measureToString(this.marginRight));""!==this.spaceAbove&&(t.paddingTop=measureToString(this.spaceAbove));""!==this.spaceBelow&&(t.paddingBottom=measureToString(this.spaceBelow));if(""!==this.textIndent){t.textIndent=measureToString(this.textIndent);fixTextIndent(t)}this.lineHeight>0&&(t.lineHeight=measureToString(this.lineHeight));""!==this.tabDefault&&(t.tabSize=measureToString(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(t,this.hyphenatation[kf]());return t}}]);return Para}(nh),Vp=function(t){template_inherits(PasswordEdit,t);var r=template_createSuper(PasswordEdit);function PasswordEdit(t){var o;template_classCallCheck(this,PasswordEdit);(o=r.call(this,yh,"passwordEdit",!0)).hScrollPolicy=getStringOption(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.passwordChar=t.passwordChar||"*";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}return template_createClass(PasswordEdit)}(nh),Xp=function(t){template_inherits(Pattern,t);var r=template_createSuper(Pattern);function Pattern(t){var o;template_classCallCheck(this,Pattern);(o=r.call(this,yh,"pattern",!0)).id=t.id||"";o.type=getStringOption(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}template_createClass(Pattern,[{key:kf,value:function value(t){t=t?t[kf]():"#FFFFFF";var r=this.color?this.color[kf]():"#000000",o="repeating-linear-gradient",c="".concat(t,",").concat(t," ").concat(5,"px,").concat(r," ").concat(5,"px,").concat(r," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(o,"(to top,").concat(c,") ").concat(o,"(to right,").concat(c,")");case"crossDiagonal":return"".concat(o,"(45deg,").concat(c,") ").concat(o,"(-45deg,").concat(c,")");case"diagonalLeft":return"".concat(o,"(45deg,").concat(c,")");case"diagonalRight":return"".concat(o,"(-45deg,").concat(c,")");case"horizontal":return"".concat(o,"(to top,").concat(c,")");case"vertical":return"".concat(o,"(to right,").concat(c,")")}return""}}]);return Pattern}(nh),Kp=function(t){template_inherits(Picture,t);var r=template_createSuper(Picture);function Picture(t){var o;template_classCallCheck(this,Picture);(o=r.call(this,yh,"picture")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Picture)}(uh),Yp=function(t){template_inherits(Proto,t);var r=template_createSuper(Proto);function Proto(t){var o;template_classCallCheck(this,Proto);(o=r.call(this,yh,"proto",!0)).appearanceFilter=new ah;o.arc=new ah;o.area=new ah;o.assist=new ah;o.barcode=new ah;o.bindItems=new ah;o.bookend=new ah;o.boolean=new ah;o.border=new ah;o.break=new ah;o.breakAfter=new ah;o.breakBefore=new ah;o.button=new ah;o.calculate=new ah;o.caption=new ah;o.certificate=new ah;o.certificates=new ah;o.checkButton=new ah;o.choiceList=new ah;o.color=new ah;o.comb=new ah;o.connect=new ah;o.contentArea=new ah;o.corner=new ah;o.date=new ah;o.dateTime=new ah;o.dateTimeEdit=new ah;o.decimal=new ah;o.defaultUi=new ah;o.desc=new ah;o.digestMethod=new ah;o.digestMethods=new ah;o.draw=new ah;o.edge=new ah;o.encoding=new ah;o.encodings=new ah;o.encrypt=new ah;o.encryptData=new ah;o.encryption=new ah;o.encryptionMethod=new ah;o.encryptionMethods=new ah;o.event=new ah;o.exData=new ah;o.exObject=new ah;o.exclGroup=new ah;o.execute=new ah;o.extras=new ah;o.field=new ah;o.fill=new ah;o.filter=new ah;o.float=new ah;o.font=new ah;o.format=new ah;o.handler=new ah;o.hyphenation=new ah;o.image=new ah;o.imageEdit=new ah;o.integer=new ah;o.issuers=new ah;o.items=new ah;o.keep=new ah;o.keyUsage=new ah;o.line=new ah;o.linear=new ah;o.lockDocument=new ah;o.manifest=new ah;o.margin=new ah;o.mdp=new ah;o.medium=new ah;o.message=new ah;o.numericEdit=new ah;o.occur=new ah;o.oid=new ah;o.oids=new ah;o.overflow=new ah;o.pageArea=new ah;o.pageSet=new ah;o.para=new ah;o.passwordEdit=new ah;o.pattern=new ah;o.picture=new ah;o.radial=new ah;o.reason=new ah;o.reasons=new ah;o.rectangle=new ah;o.ref=new ah;o.script=new ah;o.setProperty=new ah;o.signData=new ah;o.signature=new ah;o.signing=new ah;o.solid=new ah;o.speak=new ah;o.stipple=new ah;o.subform=new ah;o.subformSet=new ah;o.subjectDN=new ah;o.subjectDNs=new ah;o.submit=new ah;o.text=new ah;o.textEdit=new ah;o.time=new ah;o.timeStamp=new ah;o.toolTip=new ah;o.traversal=new ah;o.traverse=new ah;o.ui=new ah;o.validate=new ah;o.value=new ah;o.variables=new ah;return o}return template_createClass(Proto)}(nh),Jp=function(t){template_inherits(Radial,t);var r=template_createSuper(Radial);function Radial(t){var o;template_classCallCheck(this,Radial);(o=r.call(this,yh,"radial",!0)).id=t.id||"";o.type=getStringOption(t.type,["toEdge","toCenter"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}template_createClass(Radial,[{key:kf,value:function value(t){t=t?t[kf]():"#FFFFFF";var r=this.color?this.color[kf]():"#000000",o="toEdge"===this.type?"".concat(t,",").concat(r):"".concat(r,",").concat(t);return"radial-gradient(circle at center, ".concat(o,")")}}]);return Radial}(nh),$p=function(t){template_inherits(Reason,t);var r=template_createSuper(Reason);function Reason(t){var o;template_classCallCheck(this,Reason);(o=r.call(this,yh,"reason")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Reason)}(uh),Zp=function(t){template_inherits(Reasons,t);var r=template_createSuper(Reasons);function Reasons(t){var o;template_classCallCheck(this,Reasons);(o=r.call(this,yh,"reasons",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.reason=new ah;return o}return template_createClass(Reasons)}(nh),Qp=function(t){template_inherits(Rectangle,t);var r=template_createSuper(Rectangle);function Rectangle(t){var o;template_classCallCheck(this,Rectangle);(o=r.call(this,yh,"rectangle",!0)).hand=getStringOption(t.hand,["even","left","right"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new ah(4);o.edge=new ah(4);o.fill=null;return o}template_createClass(Rectangle,[{key:_f,value:function value(){var t,r=this.edge.children.length?this.edge.children[0]:new tp({}),o=r[kf](),c=Object.create(null);"visible"===(null===(t=this.fill)||void 0===t?void 0:t.presence)?Object.assign(c,this.fill[kf]()):c.fill="transparent";c.strokeWidth=measureToString("visible"===r.presence?r.thickness:0);c.stroke=o.color;var l=(this.corner.children.length?this.corner.children[0]:new Wh({}))[kf](),u={name:"svg",children:[{name:"rect",attributes:{xmlns:mh,width:"100%",height:"100%",x:0,y:0,rx:l.radius,ry:l.radius,style:c}}],attributes:{xmlns:mh,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[Bu]()[Bu]()))return Of.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[u]});u.attributes.style.position="absolute";return Of.success(u)}}]);return Rectangle}(nh),ed=function(t){template_inherits(RefElement,t);var r=template_createSuper(RefElement);function RefElement(t){var o;template_classCallCheck(this,RefElement);(o=r.call(this,yh,"ref")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(RefElement)}(uh),td=function(t){template_inherits(Script,t);var r=template_createSuper(Script);function Script(t){var o;template_classCallCheck(this,Script);(o=r.call(this,yh,"script")).binding=t.binding||"";o.contentType=t.contentType||"";o.id=t.id||"";o.name=t.name||"";o.runAt=getStringOption(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Script)}(uh),rd=function(t){template_inherits(SetProperty,t);var r=template_createSuper(SetProperty);function SetProperty(t){var o;template_classCallCheck(this,SetProperty);(o=r.call(this,yh,"setProperty")).connection=t.connection||"";o.ref=t.ref||"";o.target=t.target||"";return o}return template_createClass(SetProperty)}(nh),nd=function(t){template_inherits(SignData,t);var r=template_createSuper(SignData);function SignData(t){var o;template_classCallCheck(this,SignData);(o=r.call(this,yh,"signData",!0)).id=t.id||"";o.operation=getStringOption(t.operation,["sign","clear","verify"]);o.ref=t.ref||"";o.target=t.target||"";o.use=t.use||"";o.usehref=t.usehref||"";o.filter=null;o.manifest=null;return o}return template_createClass(SignData)}(nh),ad=function(t){template_inherits(Signature,t);var r=template_createSuper(Signature);function Signature(t){var o;template_classCallCheck(this,Signature);(o=r.call(this,yh,"signature",!0)).id=t.id||"";o.type=getStringOption(t.type,["PDF1.3","PDF1.6"]);o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.filter=null;o.manifest=null;o.margin=null;return o}return template_createClass(Signature)}(nh),id=function(t){template_inherits(Signing,t);var r=template_createSuper(Signing);function Signing(t){var o;template_classCallCheck(this,Signing);(o=r.call(this,yh,"signing",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new ah;return o}return template_createClass(Signing)}(nh),od=function(t){template_inherits(Solid,t);var r=template_createSuper(Solid);function Solid(t){var o;template_classCallCheck(this,Solid);(o=r.call(this,yh,"solid",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}template_createClass(Solid,[{key:kf,value:function value(t){return t?t[kf]():"#FFFFFF"}}]);return Solid}(nh),sd=function(t){template_inherits(Speak,t);var r=template_createSuper(Speak);function Speak(t){var o;template_classCallCheck(this,Speak);(o=r.call(this,yh,"speak")).disable=getInteger({data:t.disable,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.priority=getStringOption(t.priority,["custom","caption","name","toolTip"]);o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(Speak)}(uh),cd=function(t){template_inherits(Stipple,t);var r=template_createSuper(Stipple);function Stipple(t){var o;template_classCallCheck(this,Stipple);(o=r.call(this,yh,"stipple",!0)).id=t.id||"";o.rate=getInteger({data:t.rate,defaultValue:50,validate:function validate(t){return t>=0&&t<=100}});o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}template_createClass(Stipple,[{key:kf,value:function value(t){var r=this.rate/100;return Or.makeHexColor(Math.round(t.value.r*(1-r)+this.value.r*r),Math.round(t.value.g*(1-r)+this.value.g*r),Math.round(t.value.b*(1-r)+this.value.b*r))}}]);return Stipple}(nh),ld=function(t){template_inherits(Subform,t);var r=template_createSuper(Subform);function Subform(t){var o;template_classCallCheck(this,Subform);(o=r.call(this,yh,"subform",!0)).access=getStringOption(t.access,["open","nonInteractive","protected","readOnly"]);o.allowMacro=getInteger({data:t.allowMacro,defaultValue:0,validate:function validate(t){return 1===t}});o.anchorType=getStringOption(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=getInteger({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map((function(t){return"-1"===t?-1:getMeasurement(t)}));o.h=t.h?getMeasurement(t.h):"";o.hAlign=getStringOption(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=getStringOption(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.locale=t.locale||"";o.maxH=getMeasurement(t.maxH,"0pt");o.maxW=getMeasurement(t.maxW,"0pt");o.mergeMode=getStringOption(t.mergeMode,["consumeData","matchTemplate"]);o.minH=getMeasurement(t.minH,"0pt");o.minW=getMeasurement(t.minW,"0pt");o.name=t.name||"";o.presence=getStringOption(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=getRelevant(t.relevant);o.restoreState=getStringOption(t.restoreState,["manual","auto"]);o.scope=getStringOption(t.scope,["name","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?getMeasurement(t.w):"";o.x=getMeasurement(t.x,"0pt");o.y=getMeasurement(t.y,"0pt");o.assist=null;o.bind=null;o.bookend=null;o.border=null;o.break=null;o.calculate=null;o.desc=null;o.extras=null;o.keep=null;o.margin=null;o.occur=null;o.overflow=null;o.pageSet=null;o.para=null;o.traversal=null;o.validate=null;o.variables=null;o.area=new ah;o.breakAfter=new ah;o.breakBefore=new ah;o.connect=new ah;o.draw=new ah;o.event=new ah;o.exObject=new ah;o.exclGroup=new ah;o.field=new ah;o.proto=new ah;o.setProperty=new ah;o.subform=new ah;o.subformSet=new ah;return o}template_createClass(Subform,[{key:Lu,value:function value(){var t=this[Bu]();return t instanceof ud?t[Lu]():t}},{key:Wu,value:function value(){return!0}},{key:Ju,value:function value(){return this.layout.endsWith("-tb")&&0===this[wu].attempt&&this[wu].numberInLine>0||this[Bu]()[Ju]()}},{key:Ru,value:template_regeneratorRuntime().mark((function value(){return template_regeneratorRuntime().wrap((function value$(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(getContainedChildren(this),"t0",1);case 1:case"end":return t.stop()}}),value,this)}))},{key:xu,value:function value(){return flushHTML(this)}},{key:uu,value:function value(t,r){addHTML(this,t,r)}},{key:Au,value:function value(){return getAvailableSpace(this)}},{key:Yu,value:function value(){var t,r=this[Lu]();if(!r[Yu]())return!1;if(void 0!==this[wu]._isSplittable)return this[wu]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[wu]._isSplittable=!1;return!1}if(this.keep&&"none"!==this.keep.intact){this[wu]._isSplittable=!1;return!1}if(null!==(t=r.layout)&&void 0!==t&&t.endsWith("-tb")&&0!==r[wu].numberInLine)return!1;this[wu]._isSplittable=!0;return!0}},{key:_f,value:function value(t){var r;setTabIndex(this);if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var o=new Eh({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});o[Nu]=this[Nu];this[fu](o);this.breakAfter.push(o)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var c=new jh({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});c[Nu]=this[Nu];this[fu](c);this.breakBefore.push(c)}if(""!==this.break.overflowTarget){var l=new Hp({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});l[Nu]=this[Nu];this[fu](l);this.overflow.push(l)}this[uf](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return Of.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&warn("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");if(this.breakBefore.children.length>=1){var u=this.breakBefore.children[0];if(handleBreak(u))return Of.breakNode(u)}if(null!==(r=this[wu])&&void 0!==r&&r.afterBreakAfter)return Of.EMPTY;fixDimensions(this);var h=[],d={id:this[xf],class:[]};setAccess(this,d.class);this[wu]||(this[wu]=Object.create(null));Object.assign(this[wu],{children:h,line:null,attributes:d,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});var g=this[Du](),y=g[wu].noLayoutFailure,m=this[Yu]();m||setFirstUnsplittable(this);if(!checkDimensions(this,t))return Of.FAILURE;var v=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var _=this[Lu]().columnWidths;if(Array.isArray(_)&&_.length>0){this[wu].columnWidths=_;this[wu].currentColumn=0}}var w=toStyle(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),k=["xfaSubform"],x=layoutClass(this);x&&k.push(x);d.style=w;d.class=k;this.name&&(d.xfaName=this.name);if(this.overflow){var S=this.overflow[Fu]();if(S.addLeader){S.addLeader=!1;handleOverflow(this,S.leader,t)}}this[lf]();for(var C="lr-tb"===this.layout||"rl-tb"===this.layout,O=C?2:1;this[wu].attempt<O;this[wu].attempt++){C&&1===this[wu].attempt&&(this[wu].numberInLine=0);var T=this[hu]({filter:v,include:!0});if(T.success)break;if(T.isBreak()){this[cf]();return T}if(C&&0===this[wu].attempt&&0===this[wu].numberInLine&&!g[wu].noLayoutFailure){this[wu].attempt=O;break}}this[cf]();m||unsetFirstUnsplittable(this);g[wu].noLayoutFailure=y;if(this[wu].attempt===O){this.overflow&&(this[Du]()[wu].overflowNode=this.overflow);m||delete this[wu];return Of.FAILURE}if(this.overflow){var E=this.overflow[Fu]();if(E.addTrailer){E.addTrailer=!1;handleOverflow(this,E.trailer,t)}}var j=0,R=0;if(this.margin){j=this.margin.leftInset+this.margin.rightInset;R=this.margin.topInset+this.margin.bottomInset}var M=Math.max(this[wu].width+j,this.w||0),L=Math.max(this[wu].height+R,this.h||0),D=[this.x,this.y,M,L];""===this.w&&(w.width=measureToString(M));""===this.h&&(w.height=measureToString(L));if(("0px"===w.width||"0px"===w.height)&&0===h.length)return Of.EMPTY;var N={name:"div",attributes:d,children:h};applyAssist(this,d);var U=Of.success(createWrapper(this,N),D);if(this.breakAfter.children.length>=1){var G=this.breakAfter.children[0];if(handleBreak(G)){this[wu].afterBreakAfter=U;return Of.breakNode(G)}}delete this[wu];return U}}]);return Subform}(nh),ud=function(t){template_inherits(SubformSet,t);var r=template_createSuper(SubformSet);function SubformSet(t){var o;template_classCallCheck(this,SubformSet);(o=r.call(this,yh,"subformSet",!0)).id=t.id||"";o.name=t.name||"";o.relation=getStringOption(t.relation,["ordered","choice","unordered"]);o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.bookend=null;o.break=null;o.desc=null;o.extras=null;o.occur=null;o.overflow=null;o.breakAfter=new ah;o.breakBefore=new ah;o.subform=new ah;o.subformSet=new ah;return o}template_createClass(SubformSet,[{key:Ru,value:template_regeneratorRuntime().mark((function value(){return template_regeneratorRuntime().wrap((function value$(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(getContainedChildren(this),"t0",1);case 1:case"end":return t.stop()}}),value,this)}))},{key:Lu,value:function value(){for(var t=this[Bu]();!(t instanceof ld);)t=t[Bu]();return t}},{key:Wu,value:function value(){return!0}}]);return SubformSet}(nh),fd=function(t){template_inherits(SubjectDN,t);var r=template_createSuper(SubjectDN);function SubjectDN(t){var o;template_classCallCheck(this,SubjectDN);(o=r.call(this,yh,"subjectDN")).delimiter=t.delimiter||",";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(SubjectDN,[{key:ku,value:function value(){this[vu]=new Map(this[vu].split(this.delimiter).map((function(t){(t=t.split("=",2))[0]=t[0].trim();return t})))}}]);return SubjectDN}(sh),hd=function(t){template_inherits(SubjectDNs,t);var r=template_createSuper(SubjectDNs);function SubjectDNs(t){var o;template_classCallCheck(this,SubjectDNs);(o=r.call(this,yh,"subjectDNs",!0)).id=t.id||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.subjectDN=new ah;return o}return template_createClass(SubjectDNs)}(nh),pd=function(t){template_inherits(Submit,t);var r=template_createSuper(Submit);function Submit(t){var o;template_classCallCheck(this,Submit);(o=r.call(this,yh,"submit",!0)).embedPDF=getInteger({data:t.embedPDF,defaultValue:0,validate:function validate(t){return 1===t}});o.format=getStringOption(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);o.id=t.id||"";o.target=t.target||"";o.textEncoding=getKeyword({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:function validate(t){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)}});o.use=t.use||"";o.usehref=t.usehref||"";o.xdpContent=t.xdpContent||"";o.encrypt=null;o.encryptData=new ah;o.signData=new ah;return o}return template_createClass(Submit)}(nh),dd=function(t){template_inherits(Template,t);var r=template_createSuper(Template);function Template(t){var o;template_classCallCheck(this,Template);(o=r.call(this,yh,"template",!0)).baseProfile=getStringOption(t.baseProfile,["full","interactiveForms"]);o.extras=null;o.subform=new ah;return o}template_createClass(Template,[{key:ku,value:function value(){0===this.subform.children.length&&warn("XFA - No subforms in template node.");this.subform.children.length>=2&&warn("XFA - Several subforms in template node: please file a bug.");this[mf]=5e3}},{key:Yu,value:function value(){return!0}},{key:pf,value:function value(t,r){return t.startsWith("#")?[this[Gu].get(t.slice(1))]:searchNode(this,r,t,!0,!0)}},{key:bf,value:template_regeneratorRuntime().mark((function value(){var t,r,o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O=this;return template_regeneratorRuntime().wrap((function value$(T){for(;;)switch(T.prev=T.next){case 0:if(this.subform.children.length){T.next=2;break}return T.abrupt("return",Of.success({name:"div",children:[]}));case 2:this[wu]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};(o=this.subform.children[0]).pageSet[du]();c=o.pageSet.pageArea.children;l={name:"div",children:[]};u=null;h=null;d=null;if(o.breakBefore.children.length>=1){h=o.breakBefore.children[0];d=h.target}else if(o.subform.children.length>=1&&o.subform.children[0].breakBefore.children.length>=1){h=o.subform.children[0].breakBefore.children[0];d=h.target}else if(null!==(t=o.break)&&void 0!==t&&t.beforeTarget){h=o.break;d=h.beforeTarget}else if(o.subform.children.length>=1&&null!==(r=o.subform.children[0].break)&&void 0!==r&&r.beforeTarget){h=o.subform.children[0].break;d=h.beforeTarget}if(h&&(g=this[pf](d,h[Bu]()))instanceof qp){u=g;h[wu]={}}u||(u=c[0]);u[wu]={numberOfUse:1};(y=u[Bu]())[wu]={numberOfUse:1,pageIndex:y.pageArea.children.indexOf(u),pageSetIndex:0};v=null;_=null;w=!0;k=0;x=0;S=template_regeneratorRuntime().mark((function _loop(){var t,r,c,h,d,g,y,S,C,T,E,j,R,M,L,D;return template_regeneratorRuntime().wrap((function _loop$(N){for(;;)switch(N.prev=N.next){case 0:if(w){N.next=7;break}l.children.pop();if(3!=++k){N.next=5;break}warn("XFA - Something goes wrong: please file a bug.");return N.abrupt("return",{v:l});case 5:N.next=8;break;case 7:k=0;case 8:m=null;O[wu].currentPageArea=u;t=u[_f]().html;l.children.push(t);if(v){O[wu].noLayoutFailure=!0;t.children.push(v[_f](u[wu].space).html);v=null}if(_){O[wu].noLayoutFailure=!0;t.children.push(_[_f](u[wu].space).html);_=null}r=u.contentArea.children;c=t.children.filter((function(t){return t.attributes.class.includes("xfaContentarea")}));w=!1;O[wu].firstUnsplittable=null;O[wu].noLayoutFailure=!1;h=function flush(t){var r=o[xu]();if(r){var l;w||(w=(null===(l=r.children)||void 0===l?void 0:l.length)>0);c[t].children.push(r)}};d=x,g=r.length;case 21:if(!(d<g)){N.next=56;break}y=O[wu].currentContentArea=r[d];S={width:y.w,height:y.h};x=0;if(v){c[d].children.push(v[_f](S).html);v=null}if(_){c[d].children.push(_[_f](S).html);_=null}if(!(C=o[_f](S)).success){N.next=31;break}if(C.html){w||(w=(null===(T=C.html.children)||void 0===T?void 0:T.length)>0);c[d].children.push(C.html)}else!w&&l.children.length>1&&l.children.pop();return N.abrupt("return",{v:l});case 31:if(!C.isBreak()){N.next=40;break}E=C.breakNode;h(d);if("auto"!==E.targetType){N.next=36;break}return N.abrupt("continue",53);case 36:E.leader&&(v=(v=O[pf](E.leader,E[Bu]()))?v[0]:null);E.trailer&&(_=(_=O[pf](E.trailer,E[Bu]()))?_[0]:null);if("pageArea"===E.targetType){m=E[wu].target;d=1/0}else if(E[wu].target){m=E[wu].target;x=E[wu].index+1;d=1/0}else d=E[wu].index;return N.abrupt("continue",53);case 40:if(!O[wu].overflowNode){N.next=52;break}j=O[wu].overflowNode;O[wu].overflowNode=null;R=j[Fu]();M=R.target;R.addLeader=null!==R.leader;R.addTrailer=null!==R.trailer;h(d);L=d;d=1/0;if(M instanceof qp)m=M;else if(M instanceof zh)if(-1!==(D=r.indexOf(M)))D>L?d=D-1:x=D;else{m=M[Bu]();x=m.contentArea.children.indexOf(M)}return N.abrupt("continue",53);case 52:h(d);case 53:d++;N.next=21;break;case 56:O[wu].pageNumber+=1;m&&(m[Zu]()?m[wu].numberOfUse+=1:m=null);u=m||u[Mu]();N.next=61;return null;case 61:case"end":return N.stop()}}),_loop)}));case 22:0;return T.delegateYield(S(),"t0",24);case 24:if(!(C=T.t0)){T.next=27;break}return T.abrupt("return",C.v);case 27:T.next=22;break;case 29:case"end":return T.stop()}}),value,this)}))}]);return Template}(nh),gd=function(t){template_inherits(Text,t);var r=template_createSuper(Text);function Text(t){var o;template_classCallCheck(this,Text);(o=r.call(this,yh,"text")).id=t.id||"";o.maxChars=getInteger({data:t.maxChars,defaultValue:0,validate:function validate(t){return t>=0}});o.name=t.name||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Text,[{key:lu,value:function value(){return!0}},{key:nf,value:function value(t){if(t[ef]===Cf.xhtml.id){this[vu]=t;return!0}warn("XFA - Invalid content in Text: ".concat(t[tf],"."));return!1}},{key:of,value:function value(t){this[vu]instanceof nh||template_get(template_getPrototypeOf(Text.prototype),of,this).call(this,t)}},{key:ku,value:function value(){"string"==typeof this[vu]&&(this[vu]=this[vu].replaceAll("\r\n","\n"))}},{key:Fu,value:function value(){return"string"==typeof this[vu]?this[vu].split(/[\u2029\u2028\n]/).reduce((function(t,r){r&&t.push(r);return t}),[]).join("\n"):this[vu][vf]()}},{key:_f,value:function value(t){if("string"==typeof this[vu]){var r=valueToHtml(this[vu]).html;if(this[vu].includes("\u2029")){r.name="div";r.children=[];this[vu].split("\u2029").map((function(t){return t.split(/[\u2028\n]/).reduce((function(t,r){t.push({name:"span",value:r},{name:"br"});return t}),[])})).forEach((function(t){r.children.push({name:"p",children:t})}))}else if(/[\u2028\n]/.test(this[vu])){r.name="div";r.children=[];this[vu].split(/[\u2028\n]/).forEach((function(t){r.children.push({name:"span",value:t},{name:"br"})}))}return Of.success(r)}return this[vu][_f](t)}}]);return Text}(sh),yd=function(t){template_inherits(TextEdit,t);var r=template_createSuper(TextEdit);function TextEdit(t){var o;template_classCallCheck(this,TextEdit);(o=r.call(this,yh,"textEdit",!0)).allowRichText=getInteger({data:t.allowRichText,defaultValue:0,validate:function validate(t){return 1===t}});o.hScrollPolicy=getStringOption(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.multiLine=getInteger({data:t.multiLine,defaultValue:"",validate:function validate(t){return 0===t||1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.vScrollPolicy=getStringOption(t.vScrollPolicy,["auto","off","on"]);o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}template_createClass(TextEdit,[{key:_f,value:function value(t){var r,o=toStyle(this,"border","font","margin"),c=this[Bu]()[Bu]();""===this.multiLine&&(this.multiLine=c instanceof ep?1:0);if(1===this.multiLine){var l;r={name:"textarea",attributes:{dataId:(null===(l=c[bu])||void 0===l?void 0:l[xf])||c[xf],fieldId:c[xf],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(c),"aria-required":!1}}}else{var u;r={name:"input",attributes:{type:"text",dataId:(null===(u=c[bu])||void 0===u?void 0:u[xf])||c[xf],fieldId:c[xf],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(c),"aria-required":!1}}}if(isRequired(c)){r.attributes["aria-required"]=!0;r.attributes.required=!0}return Of.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}]);return TextEdit}(nh),md=function(t){template_inherits(Time,t);var r=template_createSuper(Time);function Time(t){var o;template_classCallCheck(this,Time);(o=r.call(this,yh,"time")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}template_createClass(Time,[{key:ku,value:function value(){var t=this[vu].trim();this[vu]=t?new Date(t):null}},{key:_f,value:function value(t){return valueToHtml(this[vu]?this[vu].toString():"")}}]);return Time}(uh),vd=function(t){template_inherits(TimeStamp,t);var r=template_createSuper(TimeStamp);function TimeStamp(t){var o;template_classCallCheck(this,TimeStamp);(o=r.call(this,yh,"timeStamp")).id=t.id||"";o.server=t.server||"";o.type=getStringOption(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(TimeStamp)}(nh),bd=function(t){template_inherits(ToolTip,t);var r=template_createSuper(ToolTip);function ToolTip(t){var o;template_classCallCheck(this,ToolTip);(o=r.call(this,yh,"toolTip")).id=t.id||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return template_createClass(ToolTip)}(uh),_d=function(t){template_inherits(Traversal,t);var r=template_createSuper(Traversal);function Traversal(t){var o;template_classCallCheck(this,Traversal);(o=r.call(this,yh,"traversal",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.traverse=new ah;return o}return template_createClass(Traversal)}(nh),wd=function(t){template_inherits(Traverse,t);var r=template_createSuper(Traverse);function Traverse(t){var o;template_classCallCheck(this,Traverse);(o=r.call(this,yh,"traverse",!0)).id=t.id||"";o.operation=getStringOption(t.operation,["next","back","down","first","left","right","up"]);o.ref=t.ref||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.script=null;return o}template_createClass(Traverse,[{key:"name",get:function get(){return this.operation}},{key:$u,value:function value(){return!1}}]);return Traverse}(nh),kd=function(t){template_inherits(Ui,t);var r=template_createSuper(Ui);function Ui(t){var o;template_classCallCheck(this,Ui);(o=r.call(this,yh,"ui",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;o.barcode=null;o.button=null;o.checkButton=null;o.choiceList=null;o.dateTimeEdit=null;o.defaultUi=null;o.imageEdit=null;o.numericEdit=null;o.passwordEdit=null;o.signature=null;o.textEdit=null;return o}template_createClass(Ui,[{key:Fu,value:function value(){if(void 0===this[wu]){var t,r=template_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("extras"!==o&&"picture"!==o){var c=this[o];if(c instanceof nh){this[wu]=c;return c}}}}catch(t){r.e(t)}finally{r.f()}this[wu]=null}return this[wu]}},{key:_f,value:function value(t){var r=this[Fu]();return r?r[_f](t):Of.EMPTY}}]);return Ui}(nh),xd=function(t){template_inherits(Validate,t);var r=template_createSuper(Validate);function Validate(t){var o;template_classCallCheck(this,Validate);(o=r.call(this,yh,"validate",!0)).formatTest=getStringOption(t.formatTest,["warning","disabled","error"]);o.id=t.id||"";o.nullTest=getStringOption(t.nullTest,["disabled","error","warning"]);o.scriptTest=getStringOption(t.scriptTest,["error","disabled","warning"]);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.message=null;o.picture=null;o.script=null;return o}return template_createClass(Validate)}(nh),Sd=function(t){template_inherits(Value,t);var r=template_createSuper(Value);function Value(t){var o;template_classCallCheck(this,Value);(o=r.call(this,yh,"value",!0)).id=t.id||"";o.override=getInteger({data:t.override,defaultValue:0,validate:function validate(t){return 1===t}});o.relevant=getRelevant(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.arc=null;o.boolean=null;o.date=null;o.dateTime=null;o.decimal=null;o.exData=null;o.float=null;o.image=null;o.integer=null;o.line=null;o.rectangle=null;o.text=null;o.time=null;return o}template_createClass(Value,[{key:yf,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){var r=this[Bu]();if(r instanceof gp){var o;if(null!==(o=r.ui)&&void 0!==o&&o.imageEdit){if(!this.image){this.image=new xp({});this[fu](this.image)}this.image[vu]=t[vu];return}}var c=t[tf];if(null===this[c]){var l,u=template_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(u.s();!(l=u.n()).done;){var h=l.value,d=this[h];if(d instanceof nh){this[h]=null;this[uf](d)}}}catch(t){u.e(t)}finally{u.f()}this[t[tf]]=t;this[fu](t)}else this[c][vu]=t[vu]}))},{key:vf,value:function value(){if(this.exData)return"string"==typeof this.exData[vu]?this.exData[vu].trim():this.exData[vu][vf]().trim();var t,r=template_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("image"!==o){var c=this[o];if(c instanceof nh)return(c[vu]||"").toString().trim()}}}catch(t){r.e(t)}finally{r.f()}return null}},{key:_f,value:function value(t){var r,o=template_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var c=this[r.value];if(c instanceof nh)return c[_f](t)}}catch(t){o.e(t)}finally{o.f()}return Of.EMPTY}}]);return Value}(nh),Cd=function(t){template_inherits(Variables,t);var r=template_createSuper(Variables);function Variables(t){var o;template_classCallCheck(this,Variables);(o=r.call(this,yh,"variables",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new ah;o.date=new ah;o.dateTime=new ah;o.decimal=new ah;o.exData=new ah;o.float=new ah;o.image=new ah;o.integer=new ah;o.manifest=new ah;o.script=new ah;o.text=new ah;o.time=new ah;return o}template_createClass(Variables,[{key:$u,value:function value(){return!0}}]);return Variables}(nh),Ad=function(){function TemplateNamespace(){template_classCallCheck(this,TemplateNamespace)}template_createClass(TemplateNamespace,null,[{key:Sf,value:function value(t,r){if(TemplateNamespace.hasOwnProperty(t)){var o=TemplateNamespace[t](r);o[gf](r);return o}}},{key:"appearanceFilter",value:function appearanceFilter(t){return new wh(t)}},{key:"arc",value:function arc(t){return new kh(t)}},{key:"area",value:function area(t){return new xh(t)}},{key:"assist",value:function assist(t){return new Sh(t)}},{key:"barcode",value:function barcode(t){return new Ch(t)}},{key:"bind",value:function bind(t){return new Ah(t)}},{key:"bindItems",value:function bindItems(t){return new Ph(t)}},{key:"bookend",value:function bookend(t){return new Oh(t)}},{key:"boolean",value:function boolean(t){return new Ih(t)}},{key:"border",value:function border(t){return new Th(t)}},{key:"break",value:function _break(t){return new Fh(t)}},{key:"breakAfter",value:function breakAfter(t){return new Eh(t)}},{key:"breakBefore",value:function breakBefore(t){return new jh(t)}},{key:"button",value:function button(t){return new Rh(t)}},{key:"calculate",value:function calculate(t){return new Mh(t)}},{key:"caption",value:function caption(t){return new Lh(t)}},{key:"certificate",value:function certificate(t){return new Bh(t)}},{key:"certificates",value:function certificates(t){return new Dh(t)}},{key:"checkButton",value:function checkButton(t){return new Nh(t)}},{key:"choiceList",value:function choiceList(t){return new Uh(t)}},{key:"color",value:function color(t){return new Gh(t)}},{key:"comb",value:function comb(t){return new Hh(t)}},{key:"connect",value:function connect(t){return new qh(t)}},{key:"contentArea",value:function contentArea(t){return new zh(t)}},{key:"corner",value:function corner(t){return new Wh(t)}},{key:"date",value:function date(t){return new Vh(t)}},{key:"dateTime",value:function dateTime(t){return new Xh(t)}},{key:"dateTimeEdit",value:function dateTimeEdit(t){return new Kh(t)}},{key:"decimal",value:function decimal(t){return new Yh(t)}},{key:"defaultUi",value:function defaultUi(t){return new Jh(t)}},{key:"desc",value:function desc(t){return new $h(t)}},{key:"digestMethod",value:function digestMethod(t){return new Zh(t)}},{key:"digestMethods",value:function digestMethods(t){return new Qh(t)}},{key:"draw",value:function draw(t){return new ep(t)}},{key:"edge",value:function edge(t){return new tp(t)}},{key:"encoding",value:function encoding(t){return new rp(t)}},{key:"encodings",value:function encodings(t){return new np(t)}},{key:"encrypt",value:function encrypt(t){return new ap(t)}},{key:"encryptData",value:function encryptData(t){return new ip(t)}},{key:"encryption",value:function encryption(t){return new op(t)}},{key:"encryptionMethod",value:function encryptionMethod(t){return new sp(t)}},{key:"encryptionMethods",value:function encryptionMethods(t){return new cp(t)}},{key:"event",value:function event(t){return new lp(t)}},{key:"exData",value:function exData(t){return new up(t)}},{key:"exObject",value:function exObject(t){return new fp(t)}},{key:"exclGroup",value:function exclGroup(t){return new hp(t)}},{key:"execute",value:function execute(t){return new pp(t)}},{key:"extras",value:function extras(t){return new dp(t)}},{key:"field",value:function field(t){return new gp(t)}},{key:"fill",value:function fill(t){return new yp(t)}},{key:"filter",value:function filter(t){return new mp(t)}},{key:"float",value:function float(t){return new vp(t)}},{key:"font",value:function font(t){return new bp(t)}},{key:"format",value:function format(t){return new _p(t)}},{key:"handler",value:function handler(t){return new wp(t)}},{key:"hyphenation",value:function hyphenation(t){return new kp(t)}},{key:"image",value:function image(t){return new xp(t)}},{key:"imageEdit",value:function imageEdit(t){return new Sp(t)}},{key:"integer",value:function integer(t){return new Cp(t)}},{key:"issuers",value:function issuers(t){return new Ap(t)}},{key:"items",value:function items(t){return new Pp(t)}},{key:"keep",value:function keep(t){return new Op(t)}},{key:"keyUsage",value:function keyUsage(t){return new Ip(t)}},{key:"line",value:function line(t){return new Tp(t)}},{key:"linear",value:function linear(t){return new Fp(t)}},{key:"lockDocument",value:function lockDocument(t){return new Ep(t)}},{key:"manifest",value:function manifest(t){return new jp(t)}},{key:"margin",value:function margin(t){return new Rp(t)}},{key:"mdp",value:function mdp(t){return new Mp(t)}},{key:"medium",value:function medium(t){return new Lp(t)}},{key:"message",value:function message(t){return new Bp(t)}},{key:"numericEdit",value:function numericEdit(t){return new Dp(t)}},{key:"occur",value:function occur(t){return new Np(t)}},{key:"oid",value:function oid(t){return new Up(t)}},{key:"oids",value:function oids(t){return new Gp(t)}},{key:"overflow",value:function overflow(t){return new Hp(t)}},{key:"pageArea",value:function pageArea(t){return new qp(t)}},{key:"pageSet",value:function pageSet(t){return new zp(t)}},{key:"para",value:function para(t){return new Wp(t)}},{key:"passwordEdit",value:function passwordEdit(t){return new Vp(t)}},{key:"pattern",value:function pattern(t){return new Xp(t)}},{key:"picture",value:function picture(t){return new Kp(t)}},{key:"proto",value:function proto(t){return new Yp(t)}},{key:"radial",value:function radial(t){return new Jp(t)}},{key:"reason",value:function reason(t){return new $p(t)}},{key:"reasons",value:function reasons(t){return new Zp(t)}},{key:"rectangle",value:function rectangle(t){return new Qp(t)}},{key:"ref",value:function ref(t){return new ed(t)}},{key:"script",value:function script(t){return new td(t)}},{key:"setProperty",value:function setProperty(t){return new rd(t)}},{key:"signData",value:function signData(t){return new nd(t)}},{key:"signature",value:function signature(t){return new ad(t)}},{key:"signing",value:function signing(t){return new id(t)}},{key:"solid",value:function solid(t){return new od(t)}},{key:"speak",value:function speak(t){return new sd(t)}},{key:"stipple",value:function stipple(t){return new cd(t)}},{key:"subform",value:function subform(t){return new ld(t)}},{key:"subformSet",value:function subformSet(t){return new ud(t)}},{key:"subjectDN",value:function subjectDN(t){return new fd(t)}},{key:"subjectDNs",value:function subjectDNs(t){return new hd(t)}},{key:"submit",value:function submit(t){return new pd(t)}},{key:"template",value:function template(t){return new dd(t)}},{key:"text",value:function text(t){return new gd(t)}},{key:"textEdit",value:function textEdit(t){return new yd(t)}},{key:"time",value:function time(t){return new md(t)}},{key:"timeStamp",value:function timeStamp(t){return new vd(t)}},{key:"toolTip",value:function toolTip(t){return new bd(t)}},{key:"traversal",value:function traversal(t){return new _d(t)}},{key:"traverse",value:function traverse(t){return new wd(t)}},{key:"ui",value:function ui(t){return new kd(t)}},{key:"validate",value:function validate(t){return new xd(t)}},{key:"value",value:function value(t){return new Sd(t)}},{key:"variables",value:function variables(t){return new Cd(t)}}]);return TemplateNamespace}();function bind_typeof(t){return bind_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bind_typeof(t)}function bind_slicedToArray(t,r){return function bind_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function bind_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||bind_unsupportedIterableToArray(t,r)||function bind_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bind_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=bind_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function bind_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return bind_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?bind_arrayLikeToArray(t,r):void 0}}function bind_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function bind_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,bind_toPropertyKey(c.key),c)}}function bind_toPropertyKey(t){var r=function bind_toPrimitive(t,r){if("object"!=bind_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=bind_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==bind_typeof(r)?r:String(r)}var Pd=Cf.datasets.id;function createText(t){var r=new gd({});r[vu]=t;return r}var Od=function(){function Binder(t){var r;!function bind_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Binder);this.root=t;this.datasets=t.datasets;this.data=(null===(r=t.datasets)||void 0===r?void 0:r.data)||new oh(Cf.datasets.id,"data");this.emptyMerge=0===this.data[ju]().length;this.root.form=this.form=t.template[yu]()}!function bind_createClass(t,r,o){r&&bind_defineProperties(t.prototype,r);o&&bind_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Binder,[{key:"_isConsumeData",value:function _isConsumeData(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function _isMatchTemplate(){return!this._isConsumeData()}},{key:"bind",value:function bind(){this._bindElement(this.form,this.data);return this.form}},{key:"getData",value:function getData(){return this.data}},{key:"_bindValue",value:function _bindValue(t,r,o){t[bu]=r;if(t[Uu]()){var c;if(r[Vu]()){var l=r[Tu]();t[yf](createText(l))}else if(t instanceof gp&&"multiSelect"===(null===(c=t.ui)||void 0===c||null===(c=c.choiceList)||void 0===c?void 0:c.open)){var u=r[ju]().map((function(t){return t[vu].trim()})).join("\n");t[yf](createText(u))}else this._isConsumeData()&&warn("XFA - Nodes haven't the same type.")}else!r[Vu]()||this._isMatchTemplate()?this._bindElement(t,r):warn("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function _findDataByNameToConsume(t,r,o,c){var l,u,h;if(!t)return null;for(var d=0;d<3;d++){u=o[Eu](t,!1,!0);for(;h=u.next().value;)if(r===h[Vu]())return h;if(o[ef]===Cf.datasets.id&&"data"===o[tf])break;o=o[Bu]()}return c&&((h=(u=this.data[Eu](t,!0,!1)).next().value)||null!==(l=h=(u=this.data[Su](t,!0)).next().value)&&void 0!==l&&l[Vu]())?h:null}},{key:"_setProperties",value:function _setProperties(t,r){if(t.hasOwnProperty("setProperty")){var o,c=bind_createForOfIteratorHelper(t.setProperty.children);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=l.ref,h=l.target;if(!l.connection&&u){var d=searchNode(this.root,r,u,!1,!1);if(d){var g=bind_slicedToArray(d,1)[0];if(g[Xu](this.data)){var y=searchNode(this.root,t,h,!1,!1);if(y){var m=bind_slicedToArray(y,1)[0];if(m[Xu](t)){var v=m[Bu]();if(m instanceof rd||v instanceof rd)warn("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(m instanceof Ph||v instanceof Ph)warn("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var _=g[vf](),w=m[tf];if(m instanceof ih){var k=Object.create(null);k[w]=_;var x=Reflect.construct(Object.getPrototypeOf(v).constructor,[k]);v[w]=x[w]}else if(m.hasOwnProperty(vu)){m[bu]=g;m[vu]=_;m[ku]()}else warn("XFA - Invalid node to use in setProperty")}}else warn("XFA - Invalid target: must be a property or subproperty.")}else warn("XFA - Invalid target: ".concat(h,"."))}else warn("XFA - Invalid node: must be a data node.")}else warn("XFA - Invalid reference: ".concat(u,"."))}}}catch(t){c.e(t)}finally{c.f()}}}},{key:"_bindItems",value:function _bindItems(t,r){if(t.hasOwnProperty("items")&&t.hasOwnProperty("bindItems")&&!t.bindItems.isEmpty()){var o,c=bind_createForOfIteratorHelper(t.items.children);try{for(c.s();!(o=c.n()).done;){var l=o.value;t[uf](l)}}catch(t){c.e(t)}finally{c.f()}t.items.clear();var u=new Pp({}),h=new Pp({});t[fu](u);t.items.push(u);t[fu](h);t.items.push(h);var d,g=bind_createForOfIteratorHelper(t.bindItems.children);try{for(g.s();!(d=g.n()).done;){var y=d.value,m=y.ref,v=y.labelRef,_=y.valueRef;if(!y.connection&&m){var w=searchNode(this.root,r,m,!1,!1);if(w){var k,x=bind_createForOfIteratorHelper(w);try{for(x.s();!(k=x.n()).done;){var S=k.value;if(S[Xu](this.datasets)){var C=searchNode(this.root,S,v,!0,!1);if(C){var O=bind_slicedToArray(C,1)[0];if(O[Xu](this.datasets)){var T=searchNode(this.root,S,_,!0,!1);if(T){var E=bind_slicedToArray(T,1)[0];if(E[Xu](this.datasets)){var j=createText(O[vf]()),R=createText(E[vf]());u[fu](j);u.text.push(j);h[fu](R);h.text.push(R)}else warn("XFA - Invalid value: must be a datasets child.")}else warn("XFA - Invalid value: ".concat(_,"."))}else warn("XFA - Invalid label: must be a datasets child.")}else warn("XFA - Invalid label: ".concat(v,"."))}else warn("XFA - Invalid ref (".concat(m,"): must be a datasets child."))}}catch(t){x.e(t)}finally{x.f()}}else warn("XFA - Invalid reference: ".concat(m,"."))}}}catch(t){g.e(t)}finally{g.f()}}}},{key:"_bindOccurrences",value:function _bindOccurrences(t,r,o){var c;if(r.length>1){(c=t[yu]())[uf](c.occur);c.occur=null}this._bindValue(t,r[0],o);this._setProperties(t,r[0]);this._bindItems(t,r[0]);if(1!==r.length)for(var l=t[Bu](),u=t[tf],h=l[Hu](t),d=1,g=r.length;d<g;d++){var y=r[d],m=c[yu]();l[u].push(m);l[qu](h+d,m);this._bindValue(m,y,o);this._setProperties(m,y);this._bindItems(m,y)}}},{key:"_createOccurrences",value:function _createOccurrences(t){if(this.emptyMerge){var r=t.occur;if(r&&!(r.initial<=1)){var o=t[Bu](),c=t[tf];if(o[c]instanceof ah){var l;l=t.name?o[c].children.filter((function(r){return r.name===t.name})).length:o[c].children.length;var u=o[Hu](t)+1,h=r.initial-l;if(h){var d=t[yu]();d[uf](d.occur);d.occur=null;o[c].push(d);o[qu](u,d);for(var g=1;g<h;g++){var y=d[yu]();o[c].push(y);o[qu](u+g,y)}}}}}}},{key:"_getOccurInfo",value:function _getOccurInfo(t){var r=t.name,o=t.occur;if(!o||!r)return[1,1];var c=-1===o.max?1/0:o.max;return[o.min,c]}},{key:"_setAndBind",value:function _setAndBind(t,r){this._setProperties(t,r);this._bindItems(t,r);this._bindElement(t,r)}},{key:"_bindElement",value:function _bindElement(t,r){var o=[];this._createOccurrences(t);var c,l=bind_createForOfIteratorHelper(t[ju]());try{for(l.s();!(c=l.n()).done;){var u=c.value;if(!u[bu])if(void 0!==this._mergeMode||"subform"!==u[tf]){if(u[Wu]()){var h=!1,d=null,g=null,y=null;if(u.bind){switch(u.bind.match){case"none":this._setAndBind(u,r);continue;case"global":h=!0;break;case"dataRef":if(!u.bind.ref){warn("XFA - ref is empty in node ".concat(u[tf],"."));this._setAndBind(u,r);continue}g=u.bind.ref}u.bind.picture&&(d=u.bind.picture[vu])}var m=bind_slicedToArray(this._getOccurInfo(u),2),v=m[0],_=m[1];if(g){if(null===(y=searchNode(this.root,r,g,!0,!1))){if(!(y=createDataNode(this.data,r,g)))continue;this._isConsumeData()&&(y[mu]=!0);this._setAndBind(u,y);continue}this._isConsumeData()&&(y=y.filter((function(t){return!t[mu]})));y.length>_?y=y.slice(0,_):0===y.length&&(y=null);y&&this._isConsumeData()&&y.forEach((function(t){t[mu]=!0}))}else{if(!u.name){this._setAndBind(u,r);continue}if(this._isConsumeData()){for(var w=[];w.length<_;){var k=this._findDataByNameToConsume(u.name,u[Uu](),r,h);if(!k)break;k[mu]=!0;w.push(k)}y=w.length>0?w:null}else{if(!(y=r[Eu](u.name,!1,this.emptyMerge).next().value)){if(0===v){o.push(u);continue}var x=r[ef]===Pd?-1:r[ef];y=u[bu]=new oh(x,u.name);this.emptyMerge&&(y[mu]=!0);r[fu](y);this._setAndBind(u,y);continue}this.emptyMerge&&(y[mu]=!0);y=[y]}}y?this._bindOccurrences(u,y,d):v>0?this._setAndBind(u,r):o.push(u)}}else{this._mergeMode="consumeData"===u.mergeMode;var S=r[ju]();if(S.length>0)this._bindOccurrences(u,[S[0]],null);else if(this.emptyMerge){var C=r[ef]===Pd?-1:r[ef],O=u[bu]=new oh(C,u.name||"root");r[fu](O);this._bindElement(u,O)}}}}catch(t){l.e(t)}finally{l.f()}o.forEach((function(t){return t[Bu]()[uf](t)}))}}]);return Binder}();function data_typeof(t){return data_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},data_typeof(t)}function data_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=data_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function data_slicedToArray(t,r){return function data_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function data_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||data_unsupportedIterableToArray(t,r)||function data_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function data_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return data_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?data_arrayLikeToArray(t,r):void 0}}function data_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function data_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,data_toPropertyKey(c.key),c)}}function data_toPropertyKey(t){var r=function data_toPrimitive(t,r){if("object"!=data_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=data_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==data_typeof(r)?r:String(r)}var Id=function(){function DataHandler(t,r){!function data_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DataHandler);this.data=r;this.dataset=t.datasets||null}!function data_createClass(t,r,o){r&&data_defineProperties(t.prototype,r);o&&data_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(DataHandler,[{key:"serialize",value:function serialize(t){for(var r=[[-1,this.data[ju]()]];r.length>0;){var o=r.at(-1),c=data_slicedToArray(o,2),l=c[0],u=c[1];if(l+1!==u.length){var h=u[++o[0]],d=t.get(h[xf]);if(d)h[yf](d);else{var g,y=data_createForOfIteratorHelper(h[Cu]().values());try{for(y.s();!(g=y.n()).done;){var m=g.value,v=t.get(m[xf]);if(v){m[yf](v);break}}}catch(t){y.e(t)}finally{y.f()}}var _=h[ju]();_.length>0&&r.push([-1,_])}else r.pop()}var w=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset){var k,x=data_createForOfIteratorHelper(this.dataset[ju]());try{for(x.s();!(k=x.n()).done;){var S=k.value;"data"!==S[tf]&&S[wf](w)}}catch(t){x.e(t)}finally{x.f()}}this.data[wf](w);w.push("</xfa:datasets>");return w.join("")}}]);return DataHandler}();function config_typeof(t){return config_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},config_typeof(t)}function config_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function config_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return config_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return config_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function config_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function config_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,config_toPropertyKey(c.key),c)}}function config_createClass(t,r,o){r&&config_defineProperties(t.prototype,r);o&&config_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function config_toPropertyKey(t){var r=function config_toPrimitive(t,r){if("object"!=config_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=config_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==config_typeof(r)?r:String(r)}function config_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function config_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&config_setPrototypeOf(t,r)}function config_setPrototypeOf(t,r){config_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return config_setPrototypeOf(t,r)}function config_createSuper(t){var r=function config_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=config_getPrototypeOf(t);if(r){var l=config_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function config_possibleConstructorReturn(t,r){if(r&&("object"===config_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function config_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function config_getPrototypeOf(t){config_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return config_getPrototypeOf(t)}var Td=Cf.config.id,Fd=function(t){config_inherits(Acrobat,t);var r=config_createSuper(Acrobat);function Acrobat(t){var o;config_classCallCheck(this,Acrobat);(o=r.call(this,Td,"acrobat",!0)).acrobat7=null;o.autoSave=null;o.common=null;o.validate=null;o.validateApprovalSignatures=null;o.submitUrl=new ah;return o}return config_createClass(Acrobat)}(nh),Ed=function(t){config_inherits(Acrobat7,t);var r=config_createSuper(Acrobat7);function Acrobat7(t){var o;config_classCallCheck(this,Acrobat7);(o=r.call(this,Td,"acrobat7",!0)).dynamicRender=null;return o}return config_createClass(Acrobat7)}(nh),jd=function(t){config_inherits(ADBE_JSConsole,t);var r=config_createSuper(ADBE_JSConsole);function ADBE_JSConsole(t){config_classCallCheck(this,ADBE_JSConsole);return r.call(this,Td,"ADBE_JSConsole",["delegate","Enable","Disable"])}return config_createClass(ADBE_JSConsole)}(lh),Rd=function(t){config_inherits(ADBE_JSDebugger,t);var r=config_createSuper(ADBE_JSDebugger);function ADBE_JSDebugger(t){config_classCallCheck(this,ADBE_JSDebugger);return r.call(this,Td,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return config_createClass(ADBE_JSDebugger)}(lh),Md=function(t){config_inherits(AddSilentPrint,t);var r=config_createSuper(AddSilentPrint);function AddSilentPrint(t){config_classCallCheck(this,AddSilentPrint);return r.call(this,Td,"addSilentPrint")}return config_createClass(AddSilentPrint)}(hh),Ld=function(t){config_inherits(AddViewerPreferences,t);var r=config_createSuper(AddViewerPreferences);function AddViewerPreferences(t){config_classCallCheck(this,AddViewerPreferences);return r.call(this,Td,"addViewerPreferences")}return config_createClass(AddViewerPreferences)}(hh),Bd=function(t){config_inherits(AdjustData,t);var r=config_createSuper(AdjustData);function AdjustData(t){config_classCallCheck(this,AdjustData);return r.call(this,Td,"adjustData")}return config_createClass(AdjustData)}(ph),Dd=function(t){config_inherits(AdobeExtensionLevel,t);var r=config_createSuper(AdobeExtensionLevel);function AdobeExtensionLevel(t){config_classCallCheck(this,AdobeExtensionLevel);return r.call(this,Td,"adobeExtensionLevel",0,(function(t){return t>=1&&t<=8}))}return config_createClass(AdobeExtensionLevel)}(fh),Nd=function(t){config_inherits(Agent,t);var r=config_createSuper(Agent);function Agent(t){var o;config_classCallCheck(this,Agent);(o=r.call(this,Td,"agent",!0)).name=t.name?t.name.trim():"";o.common=new ah;return o}return config_createClass(Agent)}(nh),Ud=function(t){config_inherits(AlwaysEmbed,t);var r=config_createSuper(AlwaysEmbed);function AlwaysEmbed(t){config_classCallCheck(this,AlwaysEmbed);return r.call(this,Td,"alwaysEmbed")}return config_createClass(AlwaysEmbed)}(sh),Gd=function(t){config_inherits(Amd,t);var r=config_createSuper(Amd);function Amd(t){config_classCallCheck(this,Amd);return r.call(this,Td,"amd")}return config_createClass(Amd)}(uh),Hd=function(t){config_inherits(Area,t);var r=config_createSuper(Area);function Area(t){var o;config_classCallCheck(this,Area);(o=r.call(this,Td,"area")).level=getInteger({data:t.level,defaultValue:0,validate:function validate(t){return t>=1&&t<=3}});o.name=getStringOption(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]);return o}return config_createClass(Area)}(nh),qd=function(t){config_inherits(Attributes,t);var r=config_createSuper(Attributes);function Attributes(t){config_classCallCheck(this,Attributes);return r.call(this,Td,"attributes",["preserve","delegate","ignore"])}return config_createClass(Attributes)}(lh),zd=function(t){config_inherits(AutoSave,t);var r=config_createSuper(AutoSave);function AutoSave(t){config_classCallCheck(this,AutoSave);return r.call(this,Td,"autoSave",["disabled","enabled"])}return config_createClass(AutoSave)}(lh),Wd=function(t){config_inherits(Base,t);var r=config_createSuper(Base);function Base(t){config_classCallCheck(this,Base);return r.call(this,Td,"base")}return config_createClass(Base)}(uh),Vd=function(t){config_inherits(BatchOutput,t);var r=config_createSuper(BatchOutput);function BatchOutput(t){var o;config_classCallCheck(this,BatchOutput);(o=r.call(this,Td,"batchOutput")).format=getStringOption(t.format,["none","concat","zip","zipCompress"]);return o}return config_createClass(BatchOutput)}(nh),Xd=function(t){config_inherits(BehaviorOverride,t);var r=config_createSuper(BehaviorOverride);function BehaviorOverride(t){config_classCallCheck(this,BehaviorOverride);return r.call(this,Td,"behaviorOverride")}config_createClass(BehaviorOverride,[{key:ku,value:function value(){this[vu]=new Map(this[vu].trim().split(/\s+/).filter((function(t){return t.includes(":")})).map((function(t){return t.split(":",2)})))}}]);return BehaviorOverride}(sh),Kd=function(t){config_inherits(Cache,t);var r=config_createSuper(Cache);function Cache(t){var o;config_classCallCheck(this,Cache);(o=r.call(this,Td,"cache",!0)).templateCache=null;return o}return config_createClass(Cache)}(nh),Yd=function(t){config_inherits(Change,t);var r=config_createSuper(Change);function Change(t){config_classCallCheck(this,Change);return r.call(this,Td,"change")}return config_createClass(Change)}(hh),Jd=function(t){config_inherits(Common,t);var r=config_createSuper(Common);function Common(t){var o;config_classCallCheck(this,Common);(o=r.call(this,Td,"common",!0)).data=null;o.locale=null;o.localeSet=null;o.messaging=null;o.suppressBanner=null;o.template=null;o.validationMessaging=null;o.versionControl=null;o.log=new ah;return o}return config_createClass(Common)}(nh),$d=function(t){config_inherits(Compress,t);var r=config_createSuper(Compress);function Compress(t){var o;config_classCallCheck(this,Compress);(o=r.call(this,Td,"compress")).scope=getStringOption(t.scope,["imageOnly","document"]);return o}return config_createClass(Compress)}(nh),Zd=function(t){config_inherits(CompressLogicalStructure,t);var r=config_createSuper(CompressLogicalStructure);function CompressLogicalStructure(t){config_classCallCheck(this,CompressLogicalStructure);return r.call(this,Td,"compressLogicalStructure")}return config_createClass(CompressLogicalStructure)}(hh),Qd=function(t){config_inherits(CompressObjectStream,t);var r=config_createSuper(CompressObjectStream);function CompressObjectStream(t){config_classCallCheck(this,CompressObjectStream);return r.call(this,Td,"compressObjectStream")}return config_createClass(CompressObjectStream)}(ph),eg=function(t){config_inherits(Compression,t);var r=config_createSuper(Compression);function Compression(t){var o;config_classCallCheck(this,Compression);(o=r.call(this,Td,"compression",!0)).compressLogicalStructure=null;o.compressObjectStream=null;o.level=null;o.type=null;return o}return config_createClass(Compression)}(nh),tg=function(t){config_inherits(Config,t);var r=config_createSuper(Config);function Config(t){var o;config_classCallCheck(this,Config);(o=r.call(this,Td,"config",!0)).acrobat=null;o.present=null;o.trace=null;o.agent=new ah;return o}return config_createClass(Config)}(nh),rg=function(t){config_inherits(Conformance,t);var r=config_createSuper(Conformance);function Conformance(t){config_classCallCheck(this,Conformance);return r.call(this,Td,"conformance",["A","B"])}return config_createClass(Conformance)}(lh),ng=function(t){config_inherits(ContentCopy,t);var r=config_createSuper(ContentCopy);function ContentCopy(t){config_classCallCheck(this,ContentCopy);return r.call(this,Td,"contentCopy")}return config_createClass(ContentCopy)}(hh),ag=function(t){config_inherits(Copies,t);var r=config_createSuper(Copies);function Copies(t){config_classCallCheck(this,Copies);return r.call(this,Td,"copies",1,(function(t){return t>=1}))}return config_createClass(Copies)}(fh),ig=function(t){config_inherits(Creator,t);var r=config_createSuper(Creator);function Creator(t){config_classCallCheck(this,Creator);return r.call(this,Td,"creator")}return config_createClass(Creator)}(uh),og=function(t){config_inherits(CurrentPage,t);var r=config_createSuper(CurrentPage);function CurrentPage(t){config_classCallCheck(this,CurrentPage);return r.call(this,Td,"currentPage",0,(function(t){return t>=0}))}return config_createClass(CurrentPage)}(fh),sg=function(t){config_inherits(Data,t);var r=config_createSuper(Data);function Data(t){var o;config_classCallCheck(this,Data);(o=r.call(this,Td,"data",!0)).adjustData=null;o.attributes=null;o.incrementalLoad=null;o.outputXSL=null;o.range=null;o.record=null;o.startNode=null;o.uri=null;o.window=null;o.xsl=null;o.excludeNS=new ah;o.transform=new ah;return o}return config_createClass(Data)}(nh),cg=function(t){config_inherits(Debug,t);var r=config_createSuper(Debug);function Debug(t){var o;config_classCallCheck(this,Debug);(o=r.call(this,Td,"debug",!0)).uri=null;return o}return config_createClass(Debug)}(nh),lg=function(t){config_inherits(DefaultTypeface,t);var r=config_createSuper(DefaultTypeface);function DefaultTypeface(t){var o;config_classCallCheck(this,DefaultTypeface);(o=r.call(this,Td,"defaultTypeface")).writingScript=getStringOption(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]);return o}return config_createClass(DefaultTypeface)}(sh),ug=function(t){config_inherits(Destination,t);var r=config_createSuper(Destination);function Destination(t){config_classCallCheck(this,Destination);return r.call(this,Td,"destination",["pdf","pcl","ps","webClient","zpl"])}return config_createClass(Destination)}(lh),fg=function(t){config_inherits(DocumentAssembly,t);var r=config_createSuper(DocumentAssembly);function DocumentAssembly(t){config_classCallCheck(this,DocumentAssembly);return r.call(this,Td,"documentAssembly")}return config_createClass(DocumentAssembly)}(hh),hg=function(t){config_inherits(Driver,t);var r=config_createSuper(Driver);function Driver(t){var o;config_classCallCheck(this,Driver);(o=r.call(this,Td,"driver",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return config_createClass(Driver)}(nh),pg=function(t){config_inherits(DuplexOption,t);var r=config_createSuper(DuplexOption);function DuplexOption(t){config_classCallCheck(this,DuplexOption);return r.call(this,Td,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return config_createClass(DuplexOption)}(lh),dg=function(t){config_inherits(DynamicRender,t);var r=config_createSuper(DynamicRender);function DynamicRender(t){config_classCallCheck(this,DynamicRender);return r.call(this,Td,"dynamicRender",["forbidden","required"])}return config_createClass(DynamicRender)}(lh),gg=function(t){config_inherits(Embed,t);var r=config_createSuper(Embed);function Embed(t){config_classCallCheck(this,Embed);return r.call(this,Td,"embed")}return config_createClass(Embed)}(hh),yg=function(t){config_inherits(Encrypt,t);var r=config_createSuper(Encrypt);function Encrypt(t){config_classCallCheck(this,Encrypt);return r.call(this,Td,"encrypt")}return config_createClass(Encrypt)}(hh),mg=function(t){config_inherits(Encryption,t);var r=config_createSuper(Encryption);function Encryption(t){var o;config_classCallCheck(this,Encryption);(o=r.call(this,Td,"encryption",!0)).encrypt=null;o.encryptionLevel=null;o.permissions=null;return o}return config_createClass(Encryption)}(nh),vg=function(t){config_inherits(EncryptionLevel,t);var r=config_createSuper(EncryptionLevel);function EncryptionLevel(t){config_classCallCheck(this,EncryptionLevel);return r.call(this,Td,"encryptionLevel",["40bit","128bit"])}return config_createClass(EncryptionLevel)}(lh),bg=function(t){config_inherits(Enforce,t);var r=config_createSuper(Enforce);function Enforce(t){config_classCallCheck(this,Enforce);return r.call(this,Td,"enforce")}return config_createClass(Enforce)}(uh),_g=function(t){config_inherits(Equate,t);var r=config_createSuper(Equate);function Equate(t){var o;config_classCallCheck(this,Equate);(o=r.call(this,Td,"equate")).force=getInteger({data:t.force,defaultValue:1,validate:function validate(t){return 0===t}});o.from=t.from||"";o.to=t.to||"";return o}return config_createClass(Equate)}(nh),wg=function(t){config_inherits(EquateRange,t);var r=config_createSuper(EquateRange);function EquateRange(t){var o;config_classCallCheck(this,EquateRange);(o=r.call(this,Td,"equateRange")).from=t.from||"";o.to=t.to||"";o._unicodeRange=t.unicodeRange||"";return o}config_createClass(EquateRange,[{key:"unicodeRange",get:function get(){var t,r=[],o=/U\+([0-9a-fA-F]+)/,c=config_createForOfIteratorHelper(this._unicodeRange.split(",").map((function(t){return t.trim()})).filter((function(t){return!!t})));try{for(c.s();!(t=c.n()).done;){var l=t.value;1===(l=l.split("-",2).map((function(t){var r=t.match(o);return r?parseInt(r[1],16):0}))).length&&l.push(l[0]);r.push(l)}}catch(t){c.e(t)}finally{c.f()}return shadow(this,"unicodeRange",r)}}]);return EquateRange}(nh),kg=function(t){config_inherits(Exclude,t);var r=config_createSuper(Exclude);function Exclude(t){config_classCallCheck(this,Exclude);return r.call(this,Td,"exclude")}config_createClass(Exclude,[{key:ku,value:function value(){this[vu]=this[vu].trim().split(/\s+/).filter((function(t){return t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t)}))}}]);return Exclude}(sh),xg=function(t){config_inherits(ExcludeNS,t);var r=config_createSuper(ExcludeNS);function ExcludeNS(t){config_classCallCheck(this,ExcludeNS);return r.call(this,Td,"excludeNS")}return config_createClass(ExcludeNS)}(uh),Sg=function(t){config_inherits(FlipLabel,t);var r=config_createSuper(FlipLabel);function FlipLabel(t){config_classCallCheck(this,FlipLabel);return r.call(this,Td,"flipLabel",["usePrinterSetting","on","off"])}return config_createClass(FlipLabel)}(lh),Cg=function(t){config_inherits(FontInfo,t);var r=config_createSuper(FontInfo);function FontInfo(t){var o;config_classCallCheck(this,FontInfo);(o=r.call(this,Td,"fontInfo",!0)).embed=null;o.map=null;o.subsetBelow=null;o.alwaysEmbed=new ah;o.defaultTypeface=new ah;o.neverEmbed=new ah;return o}return config_createClass(FontInfo)}(nh),Ag=function(t){config_inherits(FormFieldFilling,t);var r=config_createSuper(FormFieldFilling);function FormFieldFilling(t){config_classCallCheck(this,FormFieldFilling);return r.call(this,Td,"formFieldFilling")}return config_createClass(FormFieldFilling)}(hh),Pg=function(t){config_inherits(GroupParent,t);var r=config_createSuper(GroupParent);function GroupParent(t){config_classCallCheck(this,GroupParent);return r.call(this,Td,"groupParent")}return config_createClass(GroupParent)}(uh),Og=function(t){config_inherits(IfEmpty,t);var r=config_createSuper(IfEmpty);function IfEmpty(t){config_classCallCheck(this,IfEmpty);return r.call(this,Td,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return config_createClass(IfEmpty)}(lh),Ig=function(t){config_inherits(IncludeXDPContent,t);var r=config_createSuper(IncludeXDPContent);function IncludeXDPContent(t){config_classCallCheck(this,IncludeXDPContent);return r.call(this,Td,"includeXDPContent")}return config_createClass(IncludeXDPContent)}(uh),Tg=function(t){config_inherits(IncrementalLoad,t);var r=config_createSuper(IncrementalLoad);function IncrementalLoad(t){config_classCallCheck(this,IncrementalLoad);return r.call(this,Td,"incrementalLoad",["none","forwardOnly"])}return config_createClass(IncrementalLoad)}(lh),Fg=function(t){config_inherits(IncrementalMerge,t);var r=config_createSuper(IncrementalMerge);function IncrementalMerge(t){config_classCallCheck(this,IncrementalMerge);return r.call(this,Td,"incrementalMerge")}return config_createClass(IncrementalMerge)}(hh),Eg=function(t){config_inherits(Interactive,t);var r=config_createSuper(Interactive);function Interactive(t){config_classCallCheck(this,Interactive);return r.call(this,Td,"interactive")}return config_createClass(Interactive)}(hh),jg=function(t){config_inherits(Jog,t);var r=config_createSuper(Jog);function Jog(t){config_classCallCheck(this,Jog);return r.call(this,Td,"jog",["usePrinterSetting","none","pageSet"])}return config_createClass(Jog)}(lh),Rg=function(t){config_inherits(LabelPrinter,t);var r=config_createSuper(LabelPrinter);function LabelPrinter(t){var o;config_classCallCheck(this,LabelPrinter);(o=r.call(this,Td,"labelPrinter",!0)).name=getStringOption(t.name,["zpl","dpl","ipl","tcpl"]);o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return config_createClass(LabelPrinter)}(nh),Mg=function(t){config_inherits(Layout,t);var r=config_createSuper(Layout);function Layout(t){config_classCallCheck(this,Layout);return r.call(this,Td,"layout",["paginate","panel"])}return config_createClass(Layout)}(lh),Lg=function(t){config_inherits(Level,t);var r=config_createSuper(Level);function Level(t){config_classCallCheck(this,Level);return r.call(this,Td,"level",0,(function(t){return t>0}))}return config_createClass(Level)}(fh),Bg=function(t){config_inherits(Linearized,t);var r=config_createSuper(Linearized);function Linearized(t){config_classCallCheck(this,Linearized);return r.call(this,Td,"linearized")}return config_createClass(Linearized)}(hh),Dg=function(t){config_inherits(Locale,t);var r=config_createSuper(Locale);function Locale(t){config_classCallCheck(this,Locale);return r.call(this,Td,"locale")}return config_createClass(Locale)}(uh),Ng=function(t){config_inherits(LocaleSet,t);var r=config_createSuper(LocaleSet);function LocaleSet(t){config_classCallCheck(this,LocaleSet);return r.call(this,Td,"localeSet")}return config_createClass(LocaleSet)}(uh),Ug=function(t){config_inherits(Log,t);var r=config_createSuper(Log);function Log(t){var o;config_classCallCheck(this,Log);(o=r.call(this,Td,"log",!0)).mode=null;o.threshold=null;o.to=null;o.uri=null;return o}return config_createClass(Log)}(nh),Gg=function(t){config_inherits(MapElement,t);var r=config_createSuper(MapElement);function MapElement(t){var o;config_classCallCheck(this,MapElement);(o=r.call(this,Td,"map",!0)).equate=new ah;o.equateRange=new ah;return o}return config_createClass(MapElement)}(nh),Hg=function(t){config_inherits(MediumInfo,t);var r=config_createSuper(MediumInfo);function MediumInfo(t){var o;config_classCallCheck(this,MediumInfo);(o=r.call(this,Td,"mediumInfo",!0)).map=null;return o}return config_createClass(MediumInfo)}(nh),qg=function(t){config_inherits(Message,t);var r=config_createSuper(Message);function Message(t){var o;config_classCallCheck(this,Message);(o=r.call(this,Td,"message",!0)).msgId=null;o.severity=null;return o}return config_createClass(Message)}(nh),zg=function(t){config_inherits(Messaging,t);var r=config_createSuper(Messaging);function Messaging(t){var o;config_classCallCheck(this,Messaging);(o=r.call(this,Td,"messaging",!0)).message=new ah;return o}return config_createClass(Messaging)}(nh),Wg=function(t){config_inherits(Mode,t);var r=config_createSuper(Mode);function Mode(t){config_classCallCheck(this,Mode);return r.call(this,Td,"mode",["append","overwrite"])}return config_createClass(Mode)}(lh),Vg=function(t){config_inherits(ModifyAnnots,t);var r=config_createSuper(ModifyAnnots);function ModifyAnnots(t){config_classCallCheck(this,ModifyAnnots);return r.call(this,Td,"modifyAnnots")}return config_createClass(ModifyAnnots)}(hh),Xg=function(t){config_inherits(MsgId,t);var r=config_createSuper(MsgId);function MsgId(t){config_classCallCheck(this,MsgId);return r.call(this,Td,"msgId",1,(function(t){return t>=1}))}return config_createClass(MsgId)}(fh),Kg=function(t){config_inherits(NameAttr,t);var r=config_createSuper(NameAttr);function NameAttr(t){config_classCallCheck(this,NameAttr);return r.call(this,Td,"nameAttr")}return config_createClass(NameAttr)}(uh),Yg=function(t){config_inherits(NeverEmbed,t);var r=config_createSuper(NeverEmbed);function NeverEmbed(t){config_classCallCheck(this,NeverEmbed);return r.call(this,Td,"neverEmbed")}return config_createClass(NeverEmbed)}(sh),Jg=function(t){config_inherits(NumberOfCopies,t);var r=config_createSuper(NumberOfCopies);function NumberOfCopies(t){config_classCallCheck(this,NumberOfCopies);return r.call(this,Td,"numberOfCopies",null,(function(t){return t>=2&&t<=5}))}return config_createClass(NumberOfCopies)}(fh),$g=function(t){config_inherits(OpenAction,t);var r=config_createSuper(OpenAction);function OpenAction(t){var o;config_classCallCheck(this,OpenAction);(o=r.call(this,Td,"openAction",!0)).destination=null;return o}return config_createClass(OpenAction)}(nh),Zg=function(t){config_inherits(Output,t);var r=config_createSuper(Output);function Output(t){var o;config_classCallCheck(this,Output);(o=r.call(this,Td,"output",!0)).to=null;o.type=null;o.uri=null;return o}return config_createClass(Output)}(nh),Qg=function(t){config_inherits(OutputBin,t);var r=config_createSuper(OutputBin);function OutputBin(t){config_classCallCheck(this,OutputBin);return r.call(this,Td,"outputBin")}return config_createClass(OutputBin)}(uh),ey=function(t){config_inherits(OutputXSL,t);var r=config_createSuper(OutputXSL);function OutputXSL(t){var o;config_classCallCheck(this,OutputXSL);(o=r.call(this,Td,"outputXSL",!0)).uri=null;return o}return config_createClass(OutputXSL)}(nh),ty=function(t){config_inherits(Overprint,t);var r=config_createSuper(Overprint);function Overprint(t){config_classCallCheck(this,Overprint);return r.call(this,Td,"overprint",["none","both","draw","field"])}return config_createClass(Overprint)}(lh),ry=function(t){config_inherits(Packets,t);var r=config_createSuper(Packets);function Packets(t){config_classCallCheck(this,Packets);return r.call(this,Td,"packets")}config_createClass(Packets,[{key:ku,value:function value(){"*"!==this[vu]&&(this[vu]=this[vu].trim().split(/\s+/).filter((function(t){return["config","datasets","template","xfdf","xslt"].includes(t)})))}}]);return Packets}(uh),ny=function(t){config_inherits(PageOffset,t);var r=config_createSuper(PageOffset);function PageOffset(t){var o;config_classCallCheck(this,PageOffset);(o=r.call(this,Td,"pageOffset")).x=getInteger({data:t.x,defaultValue:"useXDCSetting",validate:function validate(t){return!0}});o.y=getInteger({data:t.y,defaultValue:"useXDCSetting",validate:function validate(t){return!0}});return o}return config_createClass(PageOffset)}(nh),ay=function(t){config_inherits(PageRange,t);var r=config_createSuper(PageRange);function PageRange(t){config_classCallCheck(this,PageRange);return r.call(this,Td,"pageRange")}config_createClass(PageRange,[{key:ku,value:function value(){for(var t=this[vu].trim().split(/\s+/).map((function(t){return parseInt(t,10)})),r=[],o=0,c=t.length;o<c;o+=2)r.push(t.slice(o,o+2));this[vu]=r}}]);return PageRange}(uh),iy=function(t){config_inherits(Pagination,t);var r=config_createSuper(Pagination);function Pagination(t){config_classCallCheck(this,Pagination);return r.call(this,Td,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return config_createClass(Pagination)}(lh),oy=function(t){config_inherits(PaginationOverride,t);var r=config_createSuper(PaginationOverride);function PaginationOverride(t){config_classCallCheck(this,PaginationOverride);return r.call(this,Td,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return config_createClass(PaginationOverride)}(lh),sy=function(t){config_inherits(Part,t);var r=config_createSuper(Part);function Part(t){config_classCallCheck(this,Part);return r.call(this,Td,"part",1,(function(t){return!1}))}return config_createClass(Part)}(fh),cy=function(t){config_inherits(Pcl,t);var r=config_createSuper(Pcl);function Pcl(t){var o;config_classCallCheck(this,Pcl);(o=r.call(this,Td,"pcl",!0)).name=t.name||"";o.batchOutput=null;o.fontInfo=null;o.jog=null;o.mediumInfo=null;o.outputBin=null;o.pageOffset=null;o.staple=null;o.xdc=null;return o}return config_createClass(Pcl)}(nh),ly=function(t){config_inherits(Pdf,t);var r=config_createSuper(Pdf);function Pdf(t){var o;config_classCallCheck(this,Pdf);(o=r.call(this,Td,"pdf",!0)).name=t.name||"";o.adobeExtensionLevel=null;o.batchOutput=null;o.compression=null;o.creator=null;o.encryption=null;o.fontInfo=null;o.interactive=null;o.linearized=null;o.openAction=null;o.pdfa=null;o.producer=null;o.renderPolicy=null;o.scriptModel=null;o.silentPrint=null;o.submitFormat=null;o.tagged=null;o.version=null;o.viewerPreferences=null;o.xdc=null;return o}return config_createClass(Pdf)}(nh),uy=function(t){config_inherits(Pdfa,t);var r=config_createSuper(Pdfa);function Pdfa(t){var o;config_classCallCheck(this,Pdfa);(o=r.call(this,Td,"pdfa",!0)).amd=null;o.conformance=null;o.includeXDPContent=null;o.part=null;return o}return config_createClass(Pdfa)}(nh),fy=function(t){config_inherits(Permissions,t);var r=config_createSuper(Permissions);function Permissions(t){var o;config_classCallCheck(this,Permissions);(o=r.call(this,Td,"permissions",!0)).accessibleContent=null;o.change=null;o.contentCopy=null;o.documentAssembly=null;o.formFieldFilling=null;o.modifyAnnots=null;o.plaintextMetadata=null;o.print=null;o.printHighQuality=null;return o}return config_createClass(Permissions)}(nh),hy=function(t){config_inherits(PickTrayByPDFSize,t);var r=config_createSuper(PickTrayByPDFSize);function PickTrayByPDFSize(t){config_classCallCheck(this,PickTrayByPDFSize);return r.call(this,Td,"pickTrayByPDFSize")}return config_createClass(PickTrayByPDFSize)}(hh),py=function(t){config_inherits(Picture,t);var r=config_createSuper(Picture);function Picture(t){config_classCallCheck(this,Picture);return r.call(this,Td,"picture")}return config_createClass(Picture)}(uh),dy=function(t){config_inherits(PlaintextMetadata,t);var r=config_createSuper(PlaintextMetadata);function PlaintextMetadata(t){config_classCallCheck(this,PlaintextMetadata);return r.call(this,Td,"plaintextMetadata")}return config_createClass(PlaintextMetadata)}(hh),gy=function(t){config_inherits(Presence,t);var r=config_createSuper(Presence);function Presence(t){config_classCallCheck(this,Presence);return r.call(this,Td,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return config_createClass(Presence)}(lh),yy=function(t){config_inherits(Present,t);var r=config_createSuper(Present);function Present(t){var o;config_classCallCheck(this,Present);(o=r.call(this,Td,"present",!0)).behaviorOverride=null;o.cache=null;o.common=null;o.copies=null;o.destination=null;o.incrementalMerge=null;o.layout=null;o.output=null;o.overprint=null;o.pagination=null;o.paginationOverride=null;o.script=null;o.validate=null;o.xdp=null;o.driver=new ah;o.labelPrinter=new ah;o.pcl=new ah;o.pdf=new ah;o.ps=new ah;o.submitUrl=new ah;o.webClient=new ah;o.zpl=new ah;return o}return config_createClass(Present)}(nh),my=function(t){config_inherits(Print,t);var r=config_createSuper(Print);function Print(t){config_classCallCheck(this,Print);return r.call(this,Td,"print")}return config_createClass(Print)}(hh),vy=function(t){config_inherits(PrintHighQuality,t);var r=config_createSuper(PrintHighQuality);function PrintHighQuality(t){config_classCallCheck(this,PrintHighQuality);return r.call(this,Td,"printHighQuality")}return config_createClass(PrintHighQuality)}(hh),by=function(t){config_inherits(PrintScaling,t);var r=config_createSuper(PrintScaling);function PrintScaling(t){config_classCallCheck(this,PrintScaling);return r.call(this,Td,"printScaling",["appdefault","noScaling"])}return config_createClass(PrintScaling)}(lh),_y=function(t){config_inherits(PrinterName,t);var r=config_createSuper(PrinterName);function PrinterName(t){config_classCallCheck(this,PrinterName);return r.call(this,Td,"printerName")}return config_createClass(PrinterName)}(uh),wy=function(t){config_inherits(Producer,t);var r=config_createSuper(Producer);function Producer(t){config_classCallCheck(this,Producer);return r.call(this,Td,"producer")}return config_createClass(Producer)}(uh),ky=function(t){config_inherits(Ps,t);var r=config_createSuper(Ps);function Ps(t){var o;config_classCallCheck(this,Ps);(o=r.call(this,Td,"ps",!0)).name=t.name||"";o.batchOutput=null;o.fontInfo=null;o.jog=null;o.mediumInfo=null;o.outputBin=null;o.staple=null;o.xdc=null;return o}return config_createClass(Ps)}(nh),xy=function(t){config_inherits(Range,t);var r=config_createSuper(Range);function Range(t){config_classCallCheck(this,Range);return r.call(this,Td,"range")}config_createClass(Range,[{key:ku,value:function value(){this[vu]=this[vu].trim().split(/\s*,\s*/,2).map((function(t){return t.split("-").map((function(t){return parseInt(t.trim(),10)}))})).filter((function(t){return t.every((function(t){return!isNaN(t)}))})).map((function(t){1===t.length&&t.push(t[0]);return t}))}}]);return Range}(sh),Sy=function(t){config_inherits(Record,t);var r=config_createSuper(Record);function Record(t){config_classCallCheck(this,Record);return r.call(this,Td,"record")}config_createClass(Record,[{key:ku,value:function value(){this[vu]=this[vu].trim();var t=parseInt(this[vu],10);!isNaN(t)&&t>=0&&(this[vu]=t)}}]);return Record}(sh),Cy=function(t){config_inherits(Relevant,t);var r=config_createSuper(Relevant);function Relevant(t){config_classCallCheck(this,Relevant);return r.call(this,Td,"relevant")}config_createClass(Relevant,[{key:ku,value:function value(){this[vu]=this[vu].trim().split(/\s+/)}}]);return Relevant}(sh),Ay=function(t){config_inherits(Rename,t);var r=config_createSuper(Rename);function Rename(t){config_classCallCheck(this,Rename);return r.call(this,Td,"rename")}config_createClass(Rename,[{key:ku,value:function value(){this[vu]=this[vu].trim();(this[vu].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[vu]))&&warn("XFA - Rename: invalid XFA name")}}]);return Rename}(sh),Py=function(t){config_inherits(RenderPolicy,t);var r=config_createSuper(RenderPolicy);function RenderPolicy(t){config_classCallCheck(this,RenderPolicy);return r.call(this,Td,"renderPolicy",["server","client"])}return config_createClass(RenderPolicy)}(lh),Oy=function(t){config_inherits(RunScripts,t);var r=config_createSuper(RunScripts);function RunScripts(t){config_classCallCheck(this,RunScripts);return r.call(this,Td,"runScripts",["both","client","none","server"])}return config_createClass(RunScripts)}(lh),Iy=function(t){config_inherits(Script,t);var r=config_createSuper(Script);function Script(t){var o;config_classCallCheck(this,Script);(o=r.call(this,Td,"script",!0)).currentPage=null;o.exclude=null;o.runScripts=null;return o}return config_createClass(Script)}(nh),Ty=function(t){config_inherits(ScriptModel,t);var r=config_createSuper(ScriptModel);function ScriptModel(t){config_classCallCheck(this,ScriptModel);return r.call(this,Td,"scriptModel",["XFA","none"])}return config_createClass(ScriptModel)}(lh),Fy=function(t){config_inherits(Severity,t);var r=config_createSuper(Severity);function Severity(t){config_classCallCheck(this,Severity);return r.call(this,Td,"severity",["ignore","error","information","trace","warning"])}return config_createClass(Severity)}(lh),Ey=function(t){config_inherits(SilentPrint,t);var r=config_createSuper(SilentPrint);function SilentPrint(t){var o;config_classCallCheck(this,SilentPrint);(o=r.call(this,Td,"silentPrint",!0)).addSilentPrint=null;o.printerName=null;return o}return config_createClass(SilentPrint)}(nh),jy=function(t){config_inherits(Staple,t);var r=config_createSuper(Staple);function Staple(t){var o;config_classCallCheck(this,Staple);(o=r.call(this,Td,"staple")).mode=getStringOption(t.mode,["usePrinterSetting","on","off"]);return o}return config_createClass(Staple)}(nh),Ry=function(t){config_inherits(StartNode,t);var r=config_createSuper(StartNode);function StartNode(t){config_classCallCheck(this,StartNode);return r.call(this,Td,"startNode")}return config_createClass(StartNode)}(uh),My=function(t){config_inherits(StartPage,t);var r=config_createSuper(StartPage);function StartPage(t){config_classCallCheck(this,StartPage);return r.call(this,Td,"startPage",0,(function(t){return!0}))}return config_createClass(StartPage)}(fh),Ly=function(t){config_inherits(SubmitFormat,t);var r=config_createSuper(SubmitFormat);function SubmitFormat(t){config_classCallCheck(this,SubmitFormat);return r.call(this,Td,"submitFormat",["html","delegate","fdf","xml","pdf"])}return config_createClass(SubmitFormat)}(lh),By=function(t){config_inherits(SubmitUrl,t);var r=config_createSuper(SubmitUrl);function SubmitUrl(t){config_classCallCheck(this,SubmitUrl);return r.call(this,Td,"submitUrl")}return config_createClass(SubmitUrl)}(uh),Dy=function(t){config_inherits(SubsetBelow,t);var r=config_createSuper(SubsetBelow);function SubsetBelow(t){config_classCallCheck(this,SubsetBelow);return r.call(this,Td,"subsetBelow",100,(function(t){return t>=0&&t<=100}))}return config_createClass(SubsetBelow)}(fh),Ny=function(t){config_inherits(SuppressBanner,t);var r=config_createSuper(SuppressBanner);function SuppressBanner(t){config_classCallCheck(this,SuppressBanner);return r.call(this,Td,"suppressBanner")}return config_createClass(SuppressBanner)}(hh),Uy=function(t){config_inherits(Tagged,t);var r=config_createSuper(Tagged);function Tagged(t){config_classCallCheck(this,Tagged);return r.call(this,Td,"tagged")}return config_createClass(Tagged)}(hh),Gy=function(t){config_inherits(Template,t);var r=config_createSuper(Template);function Template(t){var o;config_classCallCheck(this,Template);(o=r.call(this,Td,"template",!0)).base=null;o.relevant=null;o.startPage=null;o.uri=null;o.xsl=null;return o}return config_createClass(Template)}(nh),Hy=function(t){config_inherits(Threshold,t);var r=config_createSuper(Threshold);function Threshold(t){config_classCallCheck(this,Threshold);return r.call(this,Td,"threshold",["trace","error","information","warning"])}return config_createClass(Threshold)}(lh),qy=function(t){config_inherits(To,t);var r=config_createSuper(To);function To(t){config_classCallCheck(this,To);return r.call(this,Td,"to",["null","memory","stderr","stdout","system","uri"])}return config_createClass(To)}(lh),zy=function(t){config_inherits(TemplateCache,t);var r=config_createSuper(TemplateCache);function TemplateCache(t){var o;config_classCallCheck(this,TemplateCache);(o=r.call(this,Td,"templateCache")).maxEntries=getInteger({data:t.maxEntries,defaultValue:5,validate:function validate(t){return t>=0}});return o}return config_createClass(TemplateCache)}(nh),Wy=function(t){config_inherits(Trace,t);var r=config_createSuper(Trace);function Trace(t){var o;config_classCallCheck(this,Trace);(o=r.call(this,Td,"trace",!0)).area=new ah;return o}return config_createClass(Trace)}(nh),Vy=function(t){config_inherits(Transform,t);var r=config_createSuper(Transform);function Transform(t){var o;config_classCallCheck(this,Transform);(o=r.call(this,Td,"transform",!0)).groupParent=null;o.ifEmpty=null;o.nameAttr=null;o.picture=null;o.presence=null;o.rename=null;o.whitespace=null;return o}return config_createClass(Transform)}(nh),Xy=function(t){config_inherits(Type,t);var r=config_createSuper(Type);function Type(t){config_classCallCheck(this,Type);return r.call(this,Td,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return config_createClass(Type)}(lh),Ky=function(t){config_inherits(Uri,t);var r=config_createSuper(Uri);function Uri(t){config_classCallCheck(this,Uri);return r.call(this,Td,"uri")}return config_createClass(Uri)}(uh),Yy=function(t){config_inherits(Validate,t);var r=config_createSuper(Validate);function Validate(t){config_classCallCheck(this,Validate);return r.call(this,Td,"validate",["preSubmit","prePrint","preExecute","preSave"])}return config_createClass(Validate)}(lh),Jy=function(t){config_inherits(ValidateApprovalSignatures,t);var r=config_createSuper(ValidateApprovalSignatures);function ValidateApprovalSignatures(t){config_classCallCheck(this,ValidateApprovalSignatures);return r.call(this,Td,"validateApprovalSignatures")}config_createClass(ValidateApprovalSignatures,[{key:ku,value:function value(){this[vu]=this[vu].trim().split(/\s+/).filter((function(t){return["docReady","postSign"].includes(t)}))}}]);return ValidateApprovalSignatures}(sh),$y=function(t){config_inherits(ValidationMessaging,t);var r=config_createSuper(ValidationMessaging);function ValidationMessaging(t){config_classCallCheck(this,ValidationMessaging);return r.call(this,Td,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return config_createClass(ValidationMessaging)}(lh),Zy=function(t){config_inherits(Version,t);var r=config_createSuper(Version);function Version(t){config_classCallCheck(this,Version);return r.call(this,Td,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return config_createClass(Version)}(lh),Qy=function(t){config_inherits(VersionControl,t);var r=config_createSuper(VersionControl);function VersionControl(t){var o;config_classCallCheck(this,VersionControl);(o=r.call(this,Td,"VersionControl")).outputBelow=getStringOption(t.outputBelow,["warn","error","update"]);o.sourceAbove=getStringOption(t.sourceAbove,["warn","error"]);o.sourceBelow=getStringOption(t.sourceBelow,["update","maintain"]);return o}return config_createClass(VersionControl)}(nh),em=function(t){config_inherits(ViewerPreferences,t);var r=config_createSuper(ViewerPreferences);function ViewerPreferences(t){var o;config_classCallCheck(this,ViewerPreferences);(o=r.call(this,Td,"viewerPreferences",!0)).ADBE_JSConsole=null;o.ADBE_JSDebugger=null;o.addViewerPreferences=null;o.duplexOption=null;o.enforce=null;o.numberOfCopies=null;o.pageRange=null;o.pickTrayByPDFSize=null;o.printScaling=null;return o}return config_createClass(ViewerPreferences)}(nh),tm=function(t){config_inherits(WebClient,t);var r=config_createSuper(WebClient);function WebClient(t){var o;config_classCallCheck(this,WebClient);(o=r.call(this,Td,"webClient",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return config_createClass(WebClient)}(nh),rm=function(t){config_inherits(Whitespace,t);var r=config_createSuper(Whitespace);function Whitespace(t){config_classCallCheck(this,Whitespace);return r.call(this,Td,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return config_createClass(Whitespace)}(lh),nm=function(t){config_inherits(Window,t);var r=config_createSuper(Window);function Window(t){config_classCallCheck(this,Window);return r.call(this,Td,"window")}config_createClass(Window,[{key:ku,value:function value(){var t=this[vu].trim().split(/\s*,\s*/,2).map((function(t){return parseInt(t,10)}));if(t.some((function(t){return isNaN(t)})))this[vu]=[0,0];else{1===t.length&&t.push(t[0]);this[vu]=t}}}]);return Window}(sh),am=function(t){config_inherits(Xdc,t);var r=config_createSuper(Xdc);function Xdc(t){var o;config_classCallCheck(this,Xdc);(o=r.call(this,Td,"xdc",!0)).uri=new ah;o.xsl=new ah;return o}return config_createClass(Xdc)}(nh),im=function(t){config_inherits(Xdp,t);var r=config_createSuper(Xdp);function Xdp(t){var o;config_classCallCheck(this,Xdp);(o=r.call(this,Td,"xdp",!0)).packets=null;return o}return config_createClass(Xdp)}(nh),om=function(t){config_inherits(Xsl,t);var r=config_createSuper(Xsl);function Xsl(t){var o;config_classCallCheck(this,Xsl);(o=r.call(this,Td,"xsl",!0)).debug=null;o.uri=null;return o}return config_createClass(Xsl)}(nh),sm=function(t){config_inherits(Zpl,t);var r=config_createSuper(Zpl);function Zpl(t){var o;config_classCallCheck(this,Zpl);(o=r.call(this,Td,"zpl",!0)).name=t.name?t.name.trim():"";o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return config_createClass(Zpl)}(nh),lm=function(){function ConfigNamespace(){config_classCallCheck(this,ConfigNamespace)}config_createClass(ConfigNamespace,null,[{key:Sf,value:function value(t,r){if(ConfigNamespace.hasOwnProperty(t))return ConfigNamespace[t](r)}},{key:"acrobat",value:function acrobat(t){return new Fd(t)}},{key:"acrobat7",value:function acrobat7(t){return new Ed(t)}},{key:"ADBE_JSConsole",value:function ADBE_JSConsole(t){return new jd(t)}},{key:"ADBE_JSDebugger",value:function ADBE_JSDebugger(t){return new Rd(t)}},{key:"addSilentPrint",value:function addSilentPrint(t){return new Md(t)}},{key:"addViewerPreferences",value:function addViewerPreferences(t){return new Ld(t)}},{key:"adjustData",value:function adjustData(t){return new Bd(t)}},{key:"adobeExtensionLevel",value:function adobeExtensionLevel(t){return new Dd(t)}},{key:"agent",value:function agent(t){return new Nd(t)}},{key:"alwaysEmbed",value:function alwaysEmbed(t){return new Ud(t)}},{key:"amd",value:function amd(t){return new Gd(t)}},{key:"area",value:function area(t){return new Hd(t)}},{key:"attributes",value:function attributes(t){return new qd(t)}},{key:"autoSave",value:function autoSave(t){return new zd(t)}},{key:"base",value:function base(t){return new Wd(t)}},{key:"batchOutput",value:function batchOutput(t){return new Vd(t)}},{key:"behaviorOverride",value:function behaviorOverride(t){return new Xd(t)}},{key:"cache",value:function cache(t){return new Kd(t)}},{key:"change",value:function change(t){return new Yd(t)}},{key:"common",value:function common(t){return new Jd(t)}},{key:"compress",value:function compress(t){return new $d(t)}},{key:"compressLogicalStructure",value:function compressLogicalStructure(t){return new Zd(t)}},{key:"compressObjectStream",value:function compressObjectStream(t){return new Qd(t)}},{key:"compression",value:function compression(t){return new eg(t)}},{key:"config",value:function config(t){return new tg(t)}},{key:"conformance",value:function conformance(t){return new rg(t)}},{key:"contentCopy",value:function contentCopy(t){return new ng(t)}},{key:"copies",value:function copies(t){return new ag(t)}},{key:"creator",value:function creator(t){return new ig(t)}},{key:"currentPage",value:function currentPage(t){return new og(t)}},{key:"data",value:function data(t){return new sg(t)}},{key:"debug",value:function debug(t){return new cg(t)}},{key:"defaultTypeface",value:function defaultTypeface(t){return new lg(t)}},{key:"destination",value:function destination(t){return new ug(t)}},{key:"documentAssembly",value:function documentAssembly(t){return new fg(t)}},{key:"driver",value:function driver(t){return new hg(t)}},{key:"duplexOption",value:function duplexOption(t){return new pg(t)}},{key:"dynamicRender",value:function dynamicRender(t){return new dg(t)}},{key:"embed",value:function embed(t){return new gg(t)}},{key:"encrypt",value:function encrypt(t){return new yg(t)}},{key:"encryption",value:function encryption(t){return new mg(t)}},{key:"encryptionLevel",value:function encryptionLevel(t){return new vg(t)}},{key:"enforce",value:function enforce(t){return new bg(t)}},{key:"equate",value:function equate(t){return new _g(t)}},{key:"equateRange",value:function equateRange(t){return new wg(t)}},{key:"exclude",value:function exclude(t){return new kg(t)}},{key:"excludeNS",value:function excludeNS(t){return new xg(t)}},{key:"flipLabel",value:function flipLabel(t){return new Sg(t)}},{key:"fontInfo",value:function fontInfo(t){return new Cg(t)}},{key:"formFieldFilling",value:function formFieldFilling(t){return new Ag(t)}},{key:"groupParent",value:function groupParent(t){return new Pg(t)}},{key:"ifEmpty",value:function ifEmpty(t){return new Og(t)}},{key:"includeXDPContent",value:function includeXDPContent(t){return new Ig(t)}},{key:"incrementalLoad",value:function incrementalLoad(t){return new Tg(t)}},{key:"incrementalMerge",value:function incrementalMerge(t){return new Fg(t)}},{key:"interactive",value:function interactive(t){return new Eg(t)}},{key:"jog",value:function jog(t){return new jg(t)}},{key:"labelPrinter",value:function labelPrinter(t){return new Rg(t)}},{key:"layout",value:function layout(t){return new Mg(t)}},{key:"level",value:function level(t){return new Lg(t)}},{key:"linearized",value:function linearized(t){return new Bg(t)}},{key:"locale",value:function locale(t){return new Dg(t)}},{key:"localeSet",value:function localeSet(t){return new Ng(t)}},{key:"log",value:function log(t){return new Ug(t)}},{key:"map",value:function map(t){return new Gg(t)}},{key:"mediumInfo",value:function mediumInfo(t){return new Hg(t)}},{key:"message",value:function message(t){return new qg(t)}},{key:"messaging",value:function messaging(t){return new zg(t)}},{key:"mode",value:function mode(t){return new Wg(t)}},{key:"modifyAnnots",value:function modifyAnnots(t){return new Vg(t)}},{key:"msgId",value:function msgId(t){return new Xg(t)}},{key:"nameAttr",value:function nameAttr(t){return new Kg(t)}},{key:"neverEmbed",value:function neverEmbed(t){return new Yg(t)}},{key:"numberOfCopies",value:function numberOfCopies(t){return new Jg(t)}},{key:"openAction",value:function openAction(t){return new $g(t)}},{key:"output",value:function output(t){return new Zg(t)}},{key:"outputBin",value:function outputBin(t){return new Qg(t)}},{key:"outputXSL",value:function outputXSL(t){return new ey(t)}},{key:"overprint",value:function overprint(t){return new ty(t)}},{key:"packets",value:function packets(t){return new ry(t)}},{key:"pageOffset",value:function pageOffset(t){return new ny(t)}},{key:"pageRange",value:function pageRange(t){return new ay(t)}},{key:"pagination",value:function pagination(t){return new iy(t)}},{key:"paginationOverride",value:function paginationOverride(t){return new oy(t)}},{key:"part",value:function part(t){return new sy(t)}},{key:"pcl",value:function pcl(t){return new cy(t)}},{key:"pdf",value:function pdf(t){return new ly(t)}},{key:"pdfa",value:function pdfa(t){return new uy(t)}},{key:"permissions",value:function permissions(t){return new fy(t)}},{key:"pickTrayByPDFSize",value:function pickTrayByPDFSize(t){return new hy(t)}},{key:"picture",value:function picture(t){return new py(t)}},{key:"plaintextMetadata",value:function plaintextMetadata(t){return new dy(t)}},{key:"presence",value:function presence(t){return new gy(t)}},{key:"present",value:function present(t){return new yy(t)}},{key:"print",value:function print(t){return new my(t)}},{key:"printHighQuality",value:function printHighQuality(t){return new vy(t)}},{key:"printScaling",value:function printScaling(t){return new by(t)}},{key:"printerName",value:function printerName(t){return new _y(t)}},{key:"producer",value:function producer(t){return new wy(t)}},{key:"ps",value:function ps(t){return new ky(t)}},{key:"range",value:function range(t){return new xy(t)}},{key:"record",value:function record(t){return new Sy(t)}},{key:"relevant",value:function relevant(t){return new Cy(t)}},{key:"rename",value:function rename(t){return new Ay(t)}},{key:"renderPolicy",value:function renderPolicy(t){return new Py(t)}},{key:"runScripts",value:function runScripts(t){return new Oy(t)}},{key:"script",value:function script(t){return new Iy(t)}},{key:"scriptModel",value:function scriptModel(t){return new Ty(t)}},{key:"severity",value:function severity(t){return new Fy(t)}},{key:"silentPrint",value:function silentPrint(t){return new Ey(t)}},{key:"staple",value:function staple(t){return new jy(t)}},{key:"startNode",value:function startNode(t){return new Ry(t)}},{key:"startPage",value:function startPage(t){return new My(t)}},{key:"submitFormat",value:function submitFormat(t){return new Ly(t)}},{key:"submitUrl",value:function submitUrl(t){return new By(t)}},{key:"subsetBelow",value:function subsetBelow(t){return new Dy(t)}},{key:"suppressBanner",value:function suppressBanner(t){return new Ny(t)}},{key:"tagged",value:function tagged(t){return new Uy(t)}},{key:"template",value:function template(t){return new Gy(t)}},{key:"templateCache",value:function templateCache(t){return new zy(t)}},{key:"threshold",value:function threshold(t){return new Hy(t)}},{key:"to",value:function to(t){return new qy(t)}},{key:"trace",value:function trace(t){return new Wy(t)}},{key:"transform",value:function transform(t){return new Vy(t)}},{key:"type",value:function type(t){return new Xy(t)}},{key:"uri",value:function uri(t){return new Ky(t)}},{key:"validate",value:function validate(t){return new Yy(t)}},{key:"validateApprovalSignatures",value:function validateApprovalSignatures(t){return new Jy(t)}},{key:"validationMessaging",value:function validationMessaging(t){return new $y(t)}},{key:"version",value:function version(t){return new Zy(t)}},{key:"versionControl",value:function versionControl(t){return new Qy(t)}},{key:"viewerPreferences",value:function viewerPreferences(t){return new em(t)}},{key:"webClient",value:function webClient(t){return new tm(t)}},{key:"whitespace",value:function whitespace(t){return new rm(t)}},{key:"window",value:function window(t){return new nm(t)}},{key:"xdc",value:function xdc(t){return new am(t)}},{key:"xdp",value:function xdp(t){return new im(t)}},{key:"xsl",value:function xsl(t){return new om(t)}},{key:"zpl",value:function zpl(t){return new sm(t)}}]);return ConfigNamespace}();function connection_set_typeof(t){return connection_set_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},connection_set_typeof(t)}function connection_set_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,connection_set_toPropertyKey(c.key),c)}}function connection_set_createClass(t,r,o){r&&connection_set_defineProperties(t.prototype,r);o&&connection_set_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function connection_set_toPropertyKey(t){var r=function connection_set_toPrimitive(t,r){if("object"!=connection_set_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=connection_set_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==connection_set_typeof(r)?r:String(r)}function connection_set_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function connection_set_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&connection_set_setPrototypeOf(t,r)}function connection_set_setPrototypeOf(t,r){connection_set_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return connection_set_setPrototypeOf(t,r)}function connection_set_createSuper(t){var r=function connection_set_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=connection_set_getPrototypeOf(t);if(r){var l=connection_set_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function connection_set_possibleConstructorReturn(t,r){if(r&&("object"===connection_set_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function connection_set_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function connection_set_getPrototypeOf(t){connection_set_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return connection_set_getPrototypeOf(t)}var um=Cf.connectionSet.id,fm=function(t){connection_set_inherits(ConnectionSet,t);var r=connection_set_createSuper(ConnectionSet);function ConnectionSet(t){var o;connection_set_classCallCheck(this,ConnectionSet);(o=r.call(this,um,"connectionSet",!0)).wsdlConnection=new ah;o.xmlConnection=new ah;o.xsdConnection=new ah;return o}return connection_set_createClass(ConnectionSet)}(nh),hm=function(t){connection_set_inherits(EffectiveInputPolicy,t);var r=connection_set_createSuper(EffectiveInputPolicy);function EffectiveInputPolicy(t){var o;connection_set_classCallCheck(this,EffectiveInputPolicy);(o=r.call(this,um,"effectiveInputPolicy")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(EffectiveInputPolicy)}(nh),pm=function(t){connection_set_inherits(EffectiveOutputPolicy,t);var r=connection_set_createSuper(EffectiveOutputPolicy);function EffectiveOutputPolicy(t){var o;connection_set_classCallCheck(this,EffectiveOutputPolicy);(o=r.call(this,um,"effectiveOutputPolicy")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(EffectiveOutputPolicy)}(nh),dm=function(t){connection_set_inherits(Operation,t);var r=connection_set_createSuper(Operation);function Operation(t){var o;connection_set_classCallCheck(this,Operation);(o=r.call(this,um,"operation")).id=t.id||"";o.input=t.input||"";o.name=t.name||"";o.output=t.output||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(Operation)}(uh),gm=function(t){connection_set_inherits(RootElement,t);var r=connection_set_createSuper(RootElement);function RootElement(t){var o;connection_set_classCallCheck(this,RootElement);(o=r.call(this,um,"rootElement")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(RootElement)}(uh),ym=function(t){connection_set_inherits(SoapAction,t);var r=connection_set_createSuper(SoapAction);function SoapAction(t){var o;connection_set_classCallCheck(this,SoapAction);(o=r.call(this,um,"soapAction")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(SoapAction)}(uh),vm=function(t){connection_set_inherits(SoapAddress,t);var r=connection_set_createSuper(SoapAddress);function SoapAddress(t){var o;connection_set_classCallCheck(this,SoapAddress);(o=r.call(this,um,"soapAddress")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(SoapAddress)}(uh),bm=function(t){connection_set_inherits(Uri,t);var r=connection_set_createSuper(Uri);function Uri(t){var o;connection_set_classCallCheck(this,Uri);(o=r.call(this,um,"uri")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(Uri)}(uh),_m=function(t){connection_set_inherits(WsdlAddress,t);var r=connection_set_createSuper(WsdlAddress);function WsdlAddress(t){var o;connection_set_classCallCheck(this,WsdlAddress);(o=r.call(this,um,"wsdlAddress")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return connection_set_createClass(WsdlAddress)}(uh),wm=function(t){connection_set_inherits(WsdlConnection,t);var r=connection_set_createSuper(WsdlConnection);function WsdlConnection(t){var o;connection_set_classCallCheck(this,WsdlConnection);(o=r.call(this,um,"wsdlConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.effectiveInputPolicy=null;o.effectiveOutputPolicy=null;o.operation=null;o.soapAction=null;o.soapAddress=null;o.wsdlAddress=null;return o}return connection_set_createClass(WsdlConnection)}(nh),km=function(t){connection_set_inherits(XmlConnection,t);var r=connection_set_createSuper(XmlConnection);function XmlConnection(t){var o;connection_set_classCallCheck(this,XmlConnection);(o=r.call(this,um,"xmlConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.uri=null;return o}return connection_set_createClass(XmlConnection)}(nh),xm=function(t){connection_set_inherits(XsdConnection,t);var r=connection_set_createSuper(XsdConnection);function XsdConnection(t){var o;connection_set_classCallCheck(this,XsdConnection);(o=r.call(this,um,"xsdConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.rootElement=null;o.uri=null;return o}return connection_set_createClass(XsdConnection)}(nh),Sm=function(){function ConnectionSetNamespace(){connection_set_classCallCheck(this,ConnectionSetNamespace)}connection_set_createClass(ConnectionSetNamespace,null,[{key:Sf,value:function value(t,r){if(ConnectionSetNamespace.hasOwnProperty(t))return ConnectionSetNamespace[t](r)}},{key:"connectionSet",value:function connectionSet(t){return new fm(t)}},{key:"effectiveInputPolicy",value:function effectiveInputPolicy(t){return new hm(t)}},{key:"effectiveOutputPolicy",value:function effectiveOutputPolicy(t){return new pm(t)}},{key:"operation",value:function operation(t){return new dm(t)}},{key:"rootElement",value:function rootElement(t){return new gm(t)}},{key:"soapAction",value:function soapAction(t){return new ym(t)}},{key:"soapAddress",value:function soapAddress(t){return new vm(t)}},{key:"uri",value:function uri(t){return new bm(t)}},{key:"wsdlAddress",value:function wsdlAddress(t){return new _m(t)}},{key:"wsdlConnection",value:function wsdlConnection(t){return new wm(t)}},{key:"xmlConnection",value:function xmlConnection(t){return new km(t)}},{key:"xsdConnection",value:function xsdConnection(t){return new xm(t)}}]);return ConnectionSetNamespace}();function datasets_typeof(t){return datasets_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},datasets_typeof(t)}function datasets_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function datasets_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,datasets_toPropertyKey(c.key),c)}}function datasets_createClass(t,r,o){r&&datasets_defineProperties(t.prototype,r);o&&datasets_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function datasets_toPropertyKey(t){var r=function datasets_toPrimitive(t,r){if("object"!=datasets_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=datasets_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==datasets_typeof(r)?r:String(r)}function datasets_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&datasets_setPrototypeOf(t,r)}function datasets_setPrototypeOf(t,r){datasets_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return datasets_setPrototypeOf(t,r)}function datasets_createSuper(t){var r=function datasets_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=datasets_getPrototypeOf(t);if(r){var l=datasets_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function datasets_possibleConstructorReturn(t,r){if(r&&("object"===datasets_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function datasets_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function datasets_getPrototypeOf(t){datasets_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return datasets_getPrototypeOf(t)}var Cm=Cf.datasets.id,Am=function(t){datasets_inherits(Data,t);var r=datasets_createSuper(Data);function Data(t){datasets_classCallCheck(this,Data);return r.call(this,Cm,"data",t)}datasets_createClass(Data,[{key:Ku,value:function value(){return!0}}]);return Data}(oh),Pm=function(t){datasets_inherits(Datasets,t);var r=datasets_createSuper(Datasets);function Datasets(t){var o;datasets_classCallCheck(this,Datasets);(o=r.call(this,Cm,"datasets",!0)).data=null;o.Signature=null;return o}datasets_createClass(Datasets,[{key:nf,value:function value(t){var r=t[tf];("data"===r&&t[ef]===Cm||"Signature"===r&&t[ef]===Cf.signature.id)&&(this[r]=t);this[fu](t)}}]);return Datasets}(nh),Om=function(){function DatasetsNamespace(){datasets_classCallCheck(this,DatasetsNamespace)}datasets_createClass(DatasetsNamespace,null,[{key:Sf,value:function value(t,r){if(DatasetsNamespace.hasOwnProperty(t))return DatasetsNamespace[t](r)}},{key:"datasets",value:function datasets(t){return new Pm(t)}},{key:"data",value:function data(t){return new Am(t)}}]);return DatasetsNamespace}();function locale_set_typeof(t){return locale_set_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},locale_set_typeof(t)}function locale_set_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,locale_set_toPropertyKey(c.key),c)}}function locale_set_createClass(t,r,o){r&&locale_set_defineProperties(t.prototype,r);o&&locale_set_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function locale_set_toPropertyKey(t){var r=function locale_set_toPrimitive(t,r){if("object"!=locale_set_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=locale_set_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==locale_set_typeof(r)?r:String(r)}function locale_set_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function locale_set_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&locale_set_setPrototypeOf(t,r)}function locale_set_setPrototypeOf(t,r){locale_set_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return locale_set_setPrototypeOf(t,r)}function locale_set_createSuper(t){var r=function locale_set_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=locale_set_getPrototypeOf(t);if(r){var l=locale_set_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function locale_set_possibleConstructorReturn(t,r){if(r&&("object"===locale_set_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function locale_set_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function locale_set_getPrototypeOf(t){locale_set_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return locale_set_getPrototypeOf(t)}var Im=Cf.localeSet.id,Tm=function(t){locale_set_inherits(CalendarSymbols,t);var r=locale_set_createSuper(CalendarSymbols);function CalendarSymbols(t){var o;locale_set_classCallCheck(this,CalendarSymbols);(o=r.call(this,Im,"calendarSymbols",!0)).name="gregorian";o.dayNames=new ah(2);o.eraNames=null;o.meridiemNames=null;o.monthNames=new ah(2);return o}return locale_set_createClass(CalendarSymbols)}(nh),Fm=function(t){locale_set_inherits(CurrencySymbol,t);var r=locale_set_createSuper(CurrencySymbol);function CurrencySymbol(t){var o;locale_set_classCallCheck(this,CurrencySymbol);(o=r.call(this,Im,"currencySymbol")).name=getStringOption(t.name,["symbol","isoname","decimal"]);return o}return locale_set_createClass(CurrencySymbol)}(uh),Em=function(t){locale_set_inherits(CurrencySymbols,t);var r=locale_set_createSuper(CurrencySymbols);function CurrencySymbols(t){var o;locale_set_classCallCheck(this,CurrencySymbols);(o=r.call(this,Im,"currencySymbols",!0)).currencySymbol=new ah(3);return o}return locale_set_createClass(CurrencySymbols)}(nh),jm=function(t){locale_set_inherits(DatePattern,t);var r=locale_set_createSuper(DatePattern);function DatePattern(t){var o;locale_set_classCallCheck(this,DatePattern);(o=r.call(this,Im,"datePattern")).name=getStringOption(t.name,["full","long","med","short"]);return o}return locale_set_createClass(DatePattern)}(uh),Rm=function(t){locale_set_inherits(DatePatterns,t);var r=locale_set_createSuper(DatePatterns);function DatePatterns(t){var o;locale_set_classCallCheck(this,DatePatterns);(o=r.call(this,Im,"datePatterns",!0)).datePattern=new ah(4);return o}return locale_set_createClass(DatePatterns)}(nh),Mm=function(t){locale_set_inherits(DateTimeSymbols,t);var r=locale_set_createSuper(DateTimeSymbols);function DateTimeSymbols(t){locale_set_classCallCheck(this,DateTimeSymbols);return r.call(this,Im,"dateTimeSymbols")}return locale_set_createClass(DateTimeSymbols)}(sh),Lm=function(t){locale_set_inherits(Day,t);var r=locale_set_createSuper(Day);function Day(t){locale_set_classCallCheck(this,Day);return r.call(this,Im,"day")}return locale_set_createClass(Day)}(uh),Bm=function(t){locale_set_inherits(DayNames,t);var r=locale_set_createSuper(DayNames);function DayNames(t){var o;locale_set_classCallCheck(this,DayNames);(o=r.call(this,Im,"dayNames",!0)).abbr=getInteger({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.day=new ah(7);return o}return locale_set_createClass(DayNames)}(nh),Dm=function(t){locale_set_inherits(Era,t);var r=locale_set_createSuper(Era);function Era(t){locale_set_classCallCheck(this,Era);return r.call(this,Im,"era")}return locale_set_createClass(Era)}(uh),Nm=function(t){locale_set_inherits(EraNames,t);var r=locale_set_createSuper(EraNames);function EraNames(t){var o;locale_set_classCallCheck(this,EraNames);(o=r.call(this,Im,"eraNames",!0)).era=new ah(2);return o}return locale_set_createClass(EraNames)}(nh),Um=function(t){locale_set_inherits(Locale,t);var r=locale_set_createSuper(Locale);function Locale(t){var o;locale_set_classCallCheck(this,Locale);(o=r.call(this,Im,"locale",!0)).desc=t.desc||"";o.name="isoname";o.calendarSymbols=null;o.currencySymbols=null;o.datePatterns=null;o.dateTimeSymbols=null;o.numberPatterns=null;o.numberSymbols=null;o.timePatterns=null;o.typeFaces=null;return o}return locale_set_createClass(Locale)}(nh),Gm=function(t){locale_set_inherits(LocaleSet,t);var r=locale_set_createSuper(LocaleSet);function LocaleSet(t){var o;locale_set_classCallCheck(this,LocaleSet);(o=r.call(this,Im,"localeSet",!0)).locale=new ah;return o}return locale_set_createClass(LocaleSet)}(nh),Hm=function(t){locale_set_inherits(Meridiem,t);var r=locale_set_createSuper(Meridiem);function Meridiem(t){locale_set_classCallCheck(this,Meridiem);return r.call(this,Im,"meridiem")}return locale_set_createClass(Meridiem)}(uh),qm=function(t){locale_set_inherits(MeridiemNames,t);var r=locale_set_createSuper(MeridiemNames);function MeridiemNames(t){var o;locale_set_classCallCheck(this,MeridiemNames);(o=r.call(this,Im,"meridiemNames",!0)).meridiem=new ah(2);return o}return locale_set_createClass(MeridiemNames)}(nh),zm=function(t){locale_set_inherits(Month,t);var r=locale_set_createSuper(Month);function Month(t){locale_set_classCallCheck(this,Month);return r.call(this,Im,"month")}return locale_set_createClass(Month)}(uh),Wm=function(t){locale_set_inherits(MonthNames,t);var r=locale_set_createSuper(MonthNames);function MonthNames(t){var o;locale_set_classCallCheck(this,MonthNames);(o=r.call(this,Im,"monthNames",!0)).abbr=getInteger({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.month=new ah(12);return o}return locale_set_createClass(MonthNames)}(nh),Vm=function(t){locale_set_inherits(NumberPattern,t);var r=locale_set_createSuper(NumberPattern);function NumberPattern(t){var o;locale_set_classCallCheck(this,NumberPattern);(o=r.call(this,Im,"numberPattern")).name=getStringOption(t.name,["full","long","med","short"]);return o}return locale_set_createClass(NumberPattern)}(uh),Xm=function(t){locale_set_inherits(NumberPatterns,t);var r=locale_set_createSuper(NumberPatterns);function NumberPatterns(t){var o;locale_set_classCallCheck(this,NumberPatterns);(o=r.call(this,Im,"numberPatterns",!0)).numberPattern=new ah(4);return o}return locale_set_createClass(NumberPatterns)}(nh),Km=function(t){locale_set_inherits(NumberSymbol,t);var r=locale_set_createSuper(NumberSymbol);function NumberSymbol(t){var o;locale_set_classCallCheck(this,NumberSymbol);(o=r.call(this,Im,"numberSymbol")).name=getStringOption(t.name,["decimal","grouping","percent","minus","zero"]);return o}return locale_set_createClass(NumberSymbol)}(uh),Ym=function(t){locale_set_inherits(NumberSymbols,t);var r=locale_set_createSuper(NumberSymbols);function NumberSymbols(t){var o;locale_set_classCallCheck(this,NumberSymbols);(o=r.call(this,Im,"numberSymbols",!0)).numberSymbol=new ah(5);return o}return locale_set_createClass(NumberSymbols)}(nh),Jm=function(t){locale_set_inherits(TimePattern,t);var r=locale_set_createSuper(TimePattern);function TimePattern(t){var o;locale_set_classCallCheck(this,TimePattern);(o=r.call(this,Im,"timePattern")).name=getStringOption(t.name,["full","long","med","short"]);return o}return locale_set_createClass(TimePattern)}(uh),$m=function(t){locale_set_inherits(TimePatterns,t);var r=locale_set_createSuper(TimePatterns);function TimePatterns(t){var o;locale_set_classCallCheck(this,TimePatterns);(o=r.call(this,Im,"timePatterns",!0)).timePattern=new ah(4);return o}return locale_set_createClass(TimePatterns)}(nh),Zm=function(t){locale_set_inherits(TypeFace,t);var r=locale_set_createSuper(TypeFace);function TypeFace(t){var o;locale_set_classCallCheck(this,TypeFace);(o=r.call(this,Im,"typeFace",!0)).name=""|t.name;return o}return locale_set_createClass(TypeFace)}(nh),Qm=function(t){locale_set_inherits(TypeFaces,t);var r=locale_set_createSuper(TypeFaces);function TypeFaces(t){var o;locale_set_classCallCheck(this,TypeFaces);(o=r.call(this,Im,"typeFaces",!0)).typeFace=new ah;return o}return locale_set_createClass(TypeFaces)}(nh),ev=function(){function LocaleSetNamespace(){locale_set_classCallCheck(this,LocaleSetNamespace)}locale_set_createClass(LocaleSetNamespace,null,[{key:Sf,value:function value(t,r){if(LocaleSetNamespace.hasOwnProperty(t))return LocaleSetNamespace[t](r)}},{key:"calendarSymbols",value:function calendarSymbols(t){return new Tm(t)}},{key:"currencySymbol",value:function currencySymbol(t){return new Fm(t)}},{key:"currencySymbols",value:function currencySymbols(t){return new Em(t)}},{key:"datePattern",value:function datePattern(t){return new jm(t)}},{key:"datePatterns",value:function datePatterns(t){return new Rm(t)}},{key:"dateTimeSymbols",value:function dateTimeSymbols(t){return new Mm(t)}},{key:"day",value:function day(t){return new Lm(t)}},{key:"dayNames",value:function dayNames(t){return new Bm(t)}},{key:"era",value:function era(t){return new Dm(t)}},{key:"eraNames",value:function eraNames(t){return new Nm(t)}},{key:"locale",value:function locale(t){return new Um(t)}},{key:"localeSet",value:function localeSet(t){return new Gm(t)}},{key:"meridiem",value:function meridiem(t){return new Hm(t)}},{key:"meridiemNames",value:function meridiemNames(t){return new qm(t)}},{key:"month",value:function month(t){return new zm(t)}},{key:"monthNames",value:function monthNames(t){return new Wm(t)}},{key:"numberPattern",value:function numberPattern(t){return new Vm(t)}},{key:"numberPatterns",value:function numberPatterns(t){return new Xm(t)}},{key:"numberSymbol",value:function numberSymbol(t){return new Km(t)}},{key:"numberSymbols",value:function numberSymbols(t){return new Ym(t)}},{key:"timePattern",value:function timePattern(t){return new Jm(t)}},{key:"timePatterns",value:function timePatterns(t){return new $m(t)}},{key:"typeFace",value:function typeFace(t){return new Zm(t)}},{key:"typeFaces",value:function typeFaces(t){return new Qm(t)}}]);return LocaleSetNamespace}();function signature_typeof(t){return signature_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},signature_typeof(t)}function signature_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,signature_toPropertyKey(c.key),c)}}function signature_createClass(t,r,o){r&&signature_defineProperties(t.prototype,r);o&&signature_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function signature_toPropertyKey(t){var r=function signature_toPrimitive(t,r){if("object"!=signature_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=signature_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==signature_typeof(r)?r:String(r)}function signature_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function signature_setPrototypeOf(t,r){signature_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return signature_setPrototypeOf(t,r)}function signature_createSuper(t){var r=function signature_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=signature_getPrototypeOf(t);if(r){var l=signature_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function signature_possibleConstructorReturn(t,r){if(r&&("object"===signature_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function signature_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function signature_getPrototypeOf(t){signature_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return signature_getPrototypeOf(t)}var tv=Cf.signature.id,rv=function(t){!function signature_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&signature_setPrototypeOf(t,r)}(Signature,t);var r=signature_createSuper(Signature);function Signature(t){signature_classCallCheck(this,Signature);return r.call(this,tv,"signature",!0)}return signature_createClass(Signature)}(nh),nv=function(){function SignatureNamespace(){signature_classCallCheck(this,SignatureNamespace)}signature_createClass(SignatureNamespace,null,[{key:Sf,value:function value(t,r){if(SignatureNamespace.hasOwnProperty(t))return SignatureNamespace[t](r)}},{key:"signature",value:function signature(t){return new rv(t)}}]);return SignatureNamespace}();function stylesheet_typeof(t){return stylesheet_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},stylesheet_typeof(t)}function stylesheet_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,stylesheet_toPropertyKey(c.key),c)}}function stylesheet_createClass(t,r,o){r&&stylesheet_defineProperties(t.prototype,r);o&&stylesheet_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function stylesheet_toPropertyKey(t){var r=function stylesheet_toPrimitive(t,r){if("object"!=stylesheet_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=stylesheet_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==stylesheet_typeof(r)?r:String(r)}function stylesheet_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function stylesheet_setPrototypeOf(t,r){stylesheet_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return stylesheet_setPrototypeOf(t,r)}function stylesheet_createSuper(t){var r=function stylesheet_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=stylesheet_getPrototypeOf(t);if(r){var l=stylesheet_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function stylesheet_possibleConstructorReturn(t,r){if(r&&("object"===stylesheet_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function stylesheet_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function stylesheet_getPrototypeOf(t){stylesheet_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return stylesheet_getPrototypeOf(t)}var av=Cf.stylesheet.id,iv=function(t){!function stylesheet_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&stylesheet_setPrototypeOf(t,r)}(Stylesheet,t);var r=stylesheet_createSuper(Stylesheet);function Stylesheet(t){stylesheet_classCallCheck(this,Stylesheet);return r.call(this,av,"stylesheet",!0)}return stylesheet_createClass(Stylesheet)}(nh),ov=function(){function StylesheetNamespace(){stylesheet_classCallCheck(this,StylesheetNamespace)}stylesheet_createClass(StylesheetNamespace,null,[{key:Sf,value:function value(t,r){if(StylesheetNamespace.hasOwnProperty(t))return StylesheetNamespace[t](r)}},{key:"stylesheet",value:function stylesheet(t){return new iv(t)}}]);return StylesheetNamespace}();function xdp_typeof(t){return xdp_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xdp_typeof(t)}function xdp_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function xdp_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xdp_toPropertyKey(c.key),c)}}function xdp_createClass(t,r,o){r&&xdp_defineProperties(t.prototype,r);o&&xdp_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function xdp_toPropertyKey(t){var r=function xdp_toPrimitive(t,r){if("object"!=xdp_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xdp_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xdp_typeof(r)?r:String(r)}function xdp_setPrototypeOf(t,r){xdp_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return xdp_setPrototypeOf(t,r)}function xdp_createSuper(t){var r=function xdp_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=xdp_getPrototypeOf(t);if(r){var l=xdp_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function xdp_possibleConstructorReturn(t,r){if(r&&("object"===xdp_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function xdp_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function xdp_getPrototypeOf(t){xdp_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return xdp_getPrototypeOf(t)}var sv=Cf.xdp.id,cv=function(t){!function xdp_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&xdp_setPrototypeOf(t,r)}(Xdp,t);var r=xdp_createSuper(Xdp);function Xdp(t){var o;xdp_classCallCheck(this,Xdp);(o=r.call(this,sv,"xdp",!0)).uuid=t.uuid||"";o.timeStamp=t.timeStamp||"";o.config=null;o.connectionSet=null;o.datasets=null;o.localeSet=null;o.stylesheet=new ah;o.template=null;return o}xdp_createClass(Xdp,[{key:af,value:function value(t){var r=Cf[t[tf]];return r&&t[ef]===r.id}}]);return Xdp}(nh),lv=function(){function XdpNamespace(){xdp_classCallCheck(this,XdpNamespace)}xdp_createClass(XdpNamespace,null,[{key:Sf,value:function value(t,r){if(XdpNamespace.hasOwnProperty(t))return XdpNamespace[t](r)}},{key:"xdp",value:function xdp(t){return new cv(t)}}]);return XdpNamespace}();function xhtml_typeof(t){return xhtml_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xhtml_typeof(t)}function xhtml_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function xhtml_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xhtml_toPropertyKey(c.key),c)}}function xhtml_createClass(t,r,o){r&&xhtml_defineProperties(t.prototype,r);o&&xhtml_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function xhtml_toPropertyKey(t){var r=function xhtml_toPrimitive(t,r){if("object"!=xhtml_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xhtml_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xhtml_typeof(r)?r:String(r)}function xhtml_get(){xhtml_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function xhtml_superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=xhtml_getPrototypeOf(t)););return t}(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return xhtml_get.apply(this,arguments)}function xhtml_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&xhtml_setPrototypeOf(t,r)}function xhtml_setPrototypeOf(t,r){xhtml_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return xhtml_setPrototypeOf(t,r)}function xhtml_createSuper(t){var r=function xhtml_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=xhtml_getPrototypeOf(t);if(r){var l=xhtml_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function xhtml_possibleConstructorReturn(t,r){if(r&&("object"===xhtml_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function xhtml_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function xhtml_getPrototypeOf(t){xhtml_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return xhtml_getPrototypeOf(t)}function xhtml_slicedToArray(t,r){return function xhtml_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function xhtml_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||xhtml_unsupportedIterableToArray(t,r)||function xhtml_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xhtml_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=xhtml_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function xhtml_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return xhtml_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?xhtml_arrayLikeToArray(t,r):void 0}}function xhtml_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}var uv=Cf.xhtml.id,fv=Symbol(),hv=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),pv=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(t){return"none"===t?"none":"normal"}],["xfa-font-horizontal-scale",function(t){return"scaleX(".concat(Math.max(0,Math.min(parseInt(t)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(t){return"scaleY(".concat(Math.max(0,Math.min(parseInt(t)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(t,r){return measureToString(.99*(t=r.fontSize=getMeasurement(t)))}],["letter-spacing",function(t){return measureToString(getMeasurement(t))}],["line-height",function(t){return measureToString(getMeasurement(t))}],["margin",function(t){return measureToString(getMeasurement(t))}],["margin-bottom",function(t){return measureToString(getMeasurement(t))}],["margin-left",function(t){return measureToString(getMeasurement(t))}],["margin-right",function(t){return measureToString(getMeasurement(t))}],["margin-top",function(t){return measureToString(getMeasurement(t))}],["text-indent",function(t){return measureToString(getMeasurement(t))}],["font-family",function(t){return t}],["vertical-align",function(t){return measureToString(getMeasurement(t))}]]),dv=/\s+/g,gv=/[\r\n]+/g,yv=/\r\n?/g;function mapStyle(t,r,o){var c=Object.create(null);if(!t)return c;var l,u=Object.create(null),h=xhtml_createForOfIteratorHelper(t.split(";").map((function(t){return t.split(":",2)})));try{for(h.s();!(l=h.n()).done;){var d=xhtml_slicedToArray(l.value,2),g=d[0],y=d[1],m=pv.get(g);if(""!==m){var v=y;m&&(v="string"==typeof m?m:m(y,u));g.endsWith("scale")?c.transform=c.transform?"".concat(c[g]," ").concat(v):v:c[g.replaceAll(/-([a-zA-Z])/g,(function(t,r){return r.toUpperCase()}))]=v}}}catch(t){h.e(t)}finally{h.f()}c.fontFamily&&setFontFamily({typeface:c.fontFamily,weight:c.fontWeight||"normal",posture:c.fontStyle||"normal",size:u.fontSize||0},r,r[Nu].fontFinder,c);if(o&&c.verticalAlign&&"0px"!==c.verticalAlign&&c.fontSize){var _=getMeasurement(c.fontSize);c.fontSize=measureToString(.583*_);c.verticalAlign=measureToString(Math.sign(getMeasurement(c.verticalAlign))*_*.333)}o&&c.fontSize&&(c.fontSize="calc(".concat(c.fontSize," * var(--scale-factor))"));fixTextIndent(c);return c}var mv=new Set(["body","html"]),vv=function(t){xhtml_inherits(XhtmlObject,t);var r=xhtml_createSuper(XhtmlObject);function XhtmlObject(t,o){var c;xhtml_classCallCheck(this,XhtmlObject);(c=r.call(this,uv,o))[fv]=!1;c.style=t.style||"";return c}xhtml_createClass(XhtmlObject,[{key:pu,value:function value(t){xhtml_get(xhtml_getPrototypeOf(XhtmlObject.prototype),pu,this).call(this,t);this.style=function checkStyle(t){return t.style?t.style.trim().split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/,2)})).filter((function(r){var o=xhtml_slicedToArray(r,2),c=o[0],l=o[1];"font-family"===c&&t[Nu].usedTypefaces.add(l);return hv.has(c)})).map((function(t){return t.join(":")})).join(";"):""}(this)}},{key:lu,value:function value(){return!mv.has(this[tf])}},{key:of,value:function value(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this[fv]=!0;else{t=t.replaceAll(gv,"");this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(dv," "))}t&&(this[vu]+=t)}},{key:sf,value:function value(t){var r,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=Object.create(null),l={top:NaN,bottom:NaN,left:NaN,right:NaN},u=null,h=xhtml_createForOfIteratorHelper(this.style.split(";").map((function(t){return t.split(":",2)})));try{for(h.s();!(r=h.n()).done;){var d=xhtml_slicedToArray(r.value,2),g=d[0],value=d[1];switch(g){case"font-family":c.typeface=stripQuotes(value);break;case"font-size":c.size=getMeasurement(value);break;case"font-weight":c.weight=value;break;case"font-style":c.posture=value;break;case"letter-spacing":c.letterSpacing=getMeasurement(value);break;case"margin":var y=value.split(/ \t/).map((function(t){return getMeasurement(t)}));switch(y.length){case 1:l.top=l.bottom=l.left=l.right=y[0];break;case 2:l.top=l.bottom=y[0];l.left=l.right=y[1];break;case 3:l.top=y[0];l.bottom=y[2];l.left=l.right=y[1];break;case 4:l.top=y[0];l.left=y[1];l.bottom=y[2];l.right=y[3]}break;case"margin-top":l.top=getMeasurement(value);break;case"margin-bottom":l.bottom=getMeasurement(value);break;case"margin-left":l.left=getMeasurement(value);break;case"margin-right":l.right=getMeasurement(value);break;case"line-height":u=getMeasurement(value)}}}catch(t){h.e(t)}finally{h.f()}t.pushData(c,l,u);if(this[vu])t.addString(this[vu]);else{var m,v=xhtml_createForOfIteratorHelper(this[ju]());try{for(v.s();!(m=v.n()).done;){var _=m.value;"#text"!==_[tf]?_[sf](t):t.addString(_[vu])}}catch(t){v.e(t)}finally{v.f()}}o&&t.popFont()}},{key:_f,value:function value(t){var value,r=[];this[wu]={children:r};this[hu]({});if(0===r.length&&!this[vu])return Of.EMPTY;value=this[fv]?this[vu]?this[vu].replaceAll(yv,"\n"):void 0:this[vu]||void 0;return Of.success({name:this[tf],attributes:{href:this.href,style:mapStyle(this.style,this,this[fv])},children:r,value:value})}}]);return XhtmlObject}(oh),bv=function(t){xhtml_inherits(A,t);var r=xhtml_createSuper(A);function A(t){var o;xhtml_classCallCheck(this,A);(o=r.call(this,t,"a")).href=fixURL(t.href)||"";return o}return xhtml_createClass(A)}(vv),_v=function(t){xhtml_inherits(B,t);var r=xhtml_createSuper(B);function B(t){xhtml_classCallCheck(this,B);return r.call(this,t,"b")}xhtml_createClass(B,[{key:sf,value:function value(t){t.pushFont({weight:"bold"});xhtml_get(xhtml_getPrototypeOf(B.prototype),sf,this).call(this,t);t.popFont()}}]);return B}(vv),wv=function(t){xhtml_inherits(Body,t);var r=xhtml_createSuper(Body);function Body(t){xhtml_classCallCheck(this,Body);return r.call(this,t,"body")}xhtml_createClass(Body,[{key:_f,value:function value(t){var r=xhtml_get(xhtml_getPrototypeOf(Body.prototype),_f,this).call(this,t),o=r.html;if(!o)return Of.EMPTY;o.name="div";o.attributes.class=["xfaRich"];return r}}]);return Body}(vv),kv=function(t){xhtml_inherits(Br,t);var r=xhtml_createSuper(Br);function Br(t){xhtml_classCallCheck(this,Br);return r.call(this,t,"br")}xhtml_createClass(Br,[{key:vf,value:function value(){return"\n"}},{key:sf,value:function value(t){t.addString("\n")}},{key:_f,value:function value(t){return Of.success({name:"br"})}}]);return Br}(vv),xv=function(t){xhtml_inherits(Html,t);var r=xhtml_createSuper(Html);function Html(t){xhtml_classCallCheck(this,Html);return r.call(this,t,"html")}xhtml_createClass(Html,[{key:_f,value:function value(t){var r=[];this[wu]={children:r};this[hu]({});if(0===r.length)return Of.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[vu]||""});if(1===r.length){var o,c=r[0];if(null!==(o=c.attributes)&&void 0!==o&&o.class.includes("xfaRich"))return Of.success(c)}return Of.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:r})}}]);return Html}(vv),Sv=function(t){xhtml_inherits(I,t);var r=xhtml_createSuper(I);function I(t){xhtml_classCallCheck(this,I);return r.call(this,t,"i")}xhtml_createClass(I,[{key:sf,value:function value(t){t.pushFont({posture:"italic"});xhtml_get(xhtml_getPrototypeOf(I.prototype),sf,this).call(this,t);t.popFont()}}]);return I}(vv),Cv=function(t){xhtml_inherits(Li,t);var r=xhtml_createSuper(Li);function Li(t){xhtml_classCallCheck(this,Li);return r.call(this,t,"li")}return xhtml_createClass(Li)}(vv),Av=function(t){xhtml_inherits(Ol,t);var r=xhtml_createSuper(Ol);function Ol(t){xhtml_classCallCheck(this,Ol);return r.call(this,t,"ol")}return xhtml_createClass(Ol)}(vv),Pv=function(t){xhtml_inherits(P,t);var r=xhtml_createSuper(P);function P(t){xhtml_classCallCheck(this,P);return r.call(this,t,"p")}xhtml_createClass(P,[{key:sf,value:function value(t){xhtml_get(xhtml_getPrototypeOf(P.prototype),sf,this).call(this,t,!1);t.addString("\n");t.addPara();t.popFont()}},{key:vf,value:function value(){return this[Bu]()[ju]().at(-1)===this?xhtml_get(xhtml_getPrototypeOf(P.prototype),vf,this).call(this):xhtml_get(xhtml_getPrototypeOf(P.prototype),vf,this).call(this)+"\n"}}]);return P}(vv),Ov=function(t){xhtml_inherits(Span,t);var r=xhtml_createSuper(Span);function Span(t){xhtml_classCallCheck(this,Span);return r.call(this,t,"span")}return xhtml_createClass(Span)}(vv),Iv=function(t){xhtml_inherits(Sub,t);var r=xhtml_createSuper(Sub);function Sub(t){xhtml_classCallCheck(this,Sub);return r.call(this,t,"sub")}return xhtml_createClass(Sub)}(vv),Tv=function(t){xhtml_inherits(Sup,t);var r=xhtml_createSuper(Sup);function Sup(t){xhtml_classCallCheck(this,Sup);return r.call(this,t,"sup")}return xhtml_createClass(Sup)}(vv),Fv=function(t){xhtml_inherits(Ul,t);var r=xhtml_createSuper(Ul);function Ul(t){xhtml_classCallCheck(this,Ul);return r.call(this,t,"ul")}return xhtml_createClass(Ul)}(vv),Ev=function(){function XhtmlNamespace(){xhtml_classCallCheck(this,XhtmlNamespace)}xhtml_createClass(XhtmlNamespace,null,[{key:Sf,value:function value(t,r){if(XhtmlNamespace.hasOwnProperty(t))return XhtmlNamespace[t](r)}},{key:"a",value:function a(t){return new bv(t)}},{key:"b",value:function b(t){return new _v(t)}},{key:"body",value:function body(t){return new wv(t)}},{key:"br",value:function br(t){return new kv(t)}},{key:"html",value:function html(t){return new xv(t)}},{key:"i",value:function i(t){return new Sv(t)}},{key:"li",value:function li(t){return new Cv(t)}},{key:"ol",value:function ol(t){return new Av(t)}},{key:"p",value:function p(t){return new Pv(t)}},{key:"span",value:function span(t){return new Ov(t)}},{key:"sub",value:function sub(t){return new Iv(t)}},{key:"sup",value:function sup(t){return new Tv(t)}},{key:"ul",value:function ul(t){return new Fv(t)}}]);return XhtmlNamespace}(),jv={config:lm,connection:Sm,datasets:Om,localeSet:ev,signature:nv,stylesheet:ov,template:Ad,xdp:lv,xhtml:Ev};function unknown_typeof(t){return unknown_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},unknown_typeof(t)}function unknown_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,unknown_toPropertyKey(c.key),c)}}function unknown_toPropertyKey(t){var r=function unknown_toPrimitive(t,r){if("object"!=unknown_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=unknown_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==unknown_typeof(r)?r:String(r)}var Rv=function(){function UnknownNamespace(t){!function unknown_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,UnknownNamespace);this.namespaceId=t}!function unknown_createClass(t,r,o){r&&unknown_defineProperties(t.prototype,r);o&&unknown_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(UnknownNamespace,[{key:Sf,value:function value(t,r){return new oh(this.namespaceId,t,r)}}]);return UnknownNamespace}();function builder_typeof(t){return builder_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},builder_typeof(t)}function builder_slicedToArray(t,r){return function builder_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function builder_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||builder_unsupportedIterableToArray(t,r)||function builder_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function builder_toConsumableArray(t){return function builder_arrayWithoutHoles(t){if(Array.isArray(t))return builder_arrayLikeToArray(t)}(t)||function builder_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||builder_unsupportedIterableToArray(t)||function builder_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function builder_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return builder_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?builder_arrayLikeToArray(t,r):void 0}}function builder_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function builder_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function builder_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,builder_toPropertyKey(c.key),c)}}function builder_createClass(t,r,o){r&&builder_defineProperties(t.prototype,r);o&&builder_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function builder_toPropertyKey(t){var r=function builder_toPrimitive(t,r){if("object"!=builder_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=builder_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==builder_typeof(r)?r:String(r)}function builder_get(){builder_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function builder_superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=builder_getPrototypeOf(t)););return t}(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return builder_get.apply(this,arguments)}function builder_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&builder_setPrototypeOf(t,r)}function builder_setPrototypeOf(t,r){builder_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return builder_setPrototypeOf(t,r)}function builder_createSuper(t){var r=function builder_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=builder_getPrototypeOf(t);if(r){var l=builder_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function builder_possibleConstructorReturn(t,r){if(r&&("object"===builder_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function builder_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function builder_getPrototypeOf(t){builder_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return builder_getPrototypeOf(t)}var Mv=function(t){builder_inherits(Root,t);var r=builder_createSuper(Root);function Root(t){var o;builder_classCallCheck(this,Root);(o=r.call(this,-1,"root",Object.create(null))).element=null;o[Gu]=t;return o}builder_createClass(Root,[{key:nf,value:function value(t){this.element=t;return!0}},{key:ku,value:function value(){builder_get(builder_getPrototypeOf(Root.prototype),ku,this).call(this);if(this.element.template instanceof dd){this[Gu].set(ff,this.element);this.element.template[hf](this[Gu]);this.element.template[Gu]=this[Gu]}}}]);return Root}(nh),Lv=function(t){builder_inherits(Empty,t);var r=builder_createSuper(Empty);function Empty(){builder_classCallCheck(this,Empty);return r.call(this,-1,"",Object.create(null))}builder_createClass(Empty,[{key:nf,value:function value(t){return!1}}]);return Empty}(nh),Bv=function(){function Builder(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;builder_classCallCheck(this,Builder);this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max.apply(Math,builder_toConsumableArray(Object.values(Cf).map((function(t){return t.id}))));this._currentNamespace=t||new Rv(++this._nextNsId)}builder_createClass(Builder,[{key:"buildRoot",value:function buildRoot(t){return new Mv(t)}},{key:"build",value:function build(t){var r=t.nsPrefix,o=t.name,c=t.attributes,l=t.namespace,u=t.prefixes,h=null!==l;if(h){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(l)}u&&this._addNamespacePrefix(u);if(c.hasOwnProperty(rf)){for(var d=jv.datasets,g=c[rf],y=null,m=0,v=Object.entries(g);m<v.length;m++){var _=builder_slicedToArray(v[m],2),w=_[0],k=_[1];if(this._getNamespaceToUse(w)===d){y={xfa:k};break}}y?c[rf]=y:delete c[rf]}var x=this._getNamespaceToUse(r),S=(null==x?void 0:x[Sf](o,c))||new Lv;S[Ku]()&&this._nsAgnosticLevel++;(h||u||S[Ku]())&&(S[gu]={hasNamespace:h,prefixes:u,nsAgnostic:S[Ku]()});return S}},{key:"isNsAgnostic",value:function isNsAgnostic(){return this._nsAgnosticLevel>0}},{key:"_searchNamespace",value:function _searchNamespace(t){var r=this._namespaces.get(t);if(r)return r;for(var o=0,c=Object.entries(Cf);o<c.length;o++){var l=builder_slicedToArray(c[o],2),u=l[0];if((0,l[1].check)(t)){if(r=jv[u]){this._namespaces.set(t,r);return r}break}}r=new Rv(++this._nextNsId);this._namespaces.set(t,r);return r}},{key:"_addNamespacePrefix",value:function _addNamespacePrefix(t){var r,o=function builder_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=builder_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(o.s();!(r=o.n()).done;){var c=r.value,l=c.prefix,u=c.value,h=this._searchNamespace(u),d=this._namespacePrefixes.get(l);if(!d){d=[];this._namespacePrefixes.set(l,d)}d.push(h)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_getNamespaceToUse",value:function _getNamespaceToUse(t){if(!t)return this._currentNamespace;var r=this._namespacePrefixes.get(t);if((null==r?void 0:r.length)>0)return r.at(-1);warn("Unknown namespace prefix: ".concat(t,"."));return null}},{key:"clean",value:function clean(t){var r=this,o=t.hasNamespace,c=t.prefixes,l=t.nsAgnostic;o&&(this._currentNamespace=this._namespaceStack.pop());c&&c.forEach((function(t){var o=t.prefix;r._namespacePrefixes.get(o).pop()}));l&&this._nsAgnosticLevel--}}]);return Builder}();function xfa_parser_typeof(t){return xfa_parser_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xfa_parser_typeof(t)}function parser_slicedToArray(t,r){return function parser_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function parser_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||parser_unsupportedIterableToArray(t,r)||function parser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function parser_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return parser_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?parser_arrayLikeToArray(t,r):void 0}}function parser_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function xfa_parser_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xfa_parser_toPropertyKey(c.key),c)}}function xfa_parser_toPropertyKey(t){var r=function xfa_parser_toPrimitive(t,r){if("object"!=xfa_parser_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xfa_parser_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xfa_parser_typeof(r)?r:String(r)}function parser_setPrototypeOf(t,r){parser_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return parser_setPrototypeOf(t,r)}function parser_createSuper(t){var r=function parser_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=parser_getPrototypeOf(t);if(r){var l=parser_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function parser_possibleConstructorReturn(t,r){if(r&&("object"===xfa_parser_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function parser_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function parser_getPrototypeOf(t){parser_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return parser_getPrototypeOf(t)}var Dv=function(t){!function parser_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&parser_setPrototypeOf(t,r)}(XFAParser,t);var r=parser_createSuper(XFAParser);function XFAParser(){var t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function xfa_parser_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAParser);(t=r.call(this))._builder=new Bv(o);t._stack=[];t._globalData={usedTypefaces:new Set};t._ids=new Map;t._current=t._builder.buildRoot(t._ids);t._errorCode=yl;t._whiteRegex=/^\s+$/;t._nbsps=/\xa0+/g;t._richText=c;return t}!function xfa_parser_createClass(t,r,o){r&&xfa_parser_defineProperties(t.prototype,r);o&&xfa_parser_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(XFAParser,[{key:"parse",value:function parse(t){this.parseXml(t);if(this._errorCode===yl){this._current[ku]();return this._current.element}}},{key:"onText",value:function onText(t){t=t.replace(this._nbsps,(function(t){return t.slice(1)+" "}));this._richText||this._current[lu]()?this._current[of](t,this._richText):this._whiteRegex.test(t)||this._current[of](t.trim())}},{key:"onCdata",value:function onCdata(t){this._current[of](t)}},{key:"_mkAttributes",value:function _mkAttributes(t,r){var o,c=null,l=null,u=Object.create({}),h=function parser_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=parser_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(h.s();!(o=h.n()).done;){var d=o.value,g=d.name,y=d.value;if("xmlns"===g)c?warn("XFA - multiple namespace definition in <".concat(r,">")):c=y;else if(g.startsWith("xmlns:")){var m=g.substring(6);l||(l=[]);l.push({prefix:m,value:y})}else{var v=g.indexOf(":");if(-1===v)u[g]=y;else{var _,w=u[rf];w||(w=u[rf]=Object.create(null));var k=[g.slice(0,v),g.slice(v+1)],x=k[0],S=k[1];((_=w)[x]||(_[x]=Object.create(null)))[S]=y}}}}catch(t){h.e(t)}finally{h.f()}return[c,l,u]}},{key:"_getNameAndPrefix",value:function _getNameAndPrefix(t,r){var o=t.indexOf(":");return-1===o?[t,null]:[t.substring(o+1),r?"":t.substring(0,o)]}},{key:"onBeginElement",value:function onBeginElement(t,r,o){var c=parser_slicedToArray(this._mkAttributes(r,t),3),l=c[0],u=c[1],h=c[2],d=parser_slicedToArray(this._getNameAndPrefix(t,this._builder.isNsAgnostic()),2),g=d[0],y=d[1],m=this._builder.build({nsPrefix:y,name:g,attributes:h,namespace:l,prefixes:u});m[Nu]=this._globalData;if(o){m[ku]();this._current[nf](m)&&m[df](this._ids);m[pu](this._builder)}else{this._stack.push(this._current);this._current=m}}},{key:"onEndElement",value:function onEndElement(t){var r=this._current;if(r[zu]()&&"string"==typeof r[vu]){var o=new XFAParser;o._globalData=this._globalData;var c=o.parse(r[vu]);r[vu]=null;r[nf](c)}r[ku]();this._current=this._stack.pop();this._current[nf](r)&&r[df](this._ids);r[pu](this._builder)}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return XFAParser}(xl);function factory_typeof(t){return factory_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},factory_typeof(t)}function factory_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function factory_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return factory_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return factory_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function factory_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function factory_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */factory_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==factory_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(factory_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function factory_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function factory_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){factory_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){factory_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function factory_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,factory_toPropertyKey(c.key),c)}}function factory_toPropertyKey(t){var r=function factory_toPrimitive(t,r){if("object"!=factory_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=factory_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==factory_typeof(r)?r:String(r)}var Nv=function(){function XFAFactory(t){!function factory_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAFactory);try{this.root=(new Dv).parse(XFAFactory._createDocument(t));var r=new Od(this.root);this.form=r.bind();this.dataHandler=new Id(this.root,r.getData());this.form[Nu].template=this.form}catch(t){warn("XFA - an error occurred during parsing and binding: ".concat(t))}}!function factory_createClass(t,r,o){r&&factory_defineProperties(t.prototype,r);o&&factory_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(XFAFactory,[{key:"isValid",value:function isValid(){return this.root&&this.form}},{key:"_createPagesHelper",value:function _createPagesHelper(){var t=this.form[bf]();return new Promise((function(r,o){setTimeout((function nextIteration(){try{var c=t.next();c.done?r(c.value):setTimeout(nextIteration,0)}catch(t){o(t)}}),0)}))}},{key:"_createPages",value:(o=factory_asyncToGenerator(factory_regeneratorRuntime().mark((function _callee(){return factory_regeneratorRuntime().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0;t.next=3;return this._createPagesHelper();case 3:this.pages=t.sent;this.dims=this.pages.children.map((function(t){var r=t.attributes.style,o=r.width,c=r.height;return[0,0,parseInt(o),parseInt(c)]}));t.next=10;break;case 7:t.prev=7;t.t0=t.catch(0);warn("XFA - an error occurred during layout: ".concat(t.t0));case 10:case"end":return t.stop()}}),_callee,this,[[0,7]])}))),function _createPages(){return o.apply(this,arguments)})},{key:"getBoundingBox",value:function getBoundingBox(t){return this.dims[t]}},{key:"getNumPages",value:(r=factory_asyncToGenerator(factory_regeneratorRuntime().mark((function _callee2(){return factory_regeneratorRuntime().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:if(this.pages){t.next=3;break}t.next=3;return this._createPages();case 3:return t.abrupt("return",this.dims.length);case 4:case"end":return t.stop()}}),_callee2,this)}))),function getNumPages(){return r.apply(this,arguments)})},{key:"setImages",value:function setImages(t){this.form[Nu].images=t}},{key:"setFonts",value:function setFonts(t){this.form[Nu].fontFinder=new If(t);var r,o=[],c=factory_createForOfIteratorHelper(this.form[Nu].usedTypefaces);try{for(c.s();!(r=c.n()).done;){var l=r.value;l=stripQuotes(l);this.form[Nu].fontFinder.find(l)||o.push(l)}}catch(t){c.e(t)}finally{c.f()}return o.length>0?o:null}},{key:"appendFonts",value:function appendFonts(t,r){this.form[Nu].fontFinder.add(t,r)}},{key:"getPages",value:(t=factory_asyncToGenerator(factory_regeneratorRuntime().mark((function _callee3(){var t;return factory_regeneratorRuntime().wrap((function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:if(this.pages){r.next=3;break}r.next=3;return this._createPages();case 3:t=this.pages;this.pages=null;return r.abrupt("return",t);case 6:case"end":return r.stop()}}),_callee3,this)}))),function getPages(){return t.apply(this,arguments)})},{key:"serializeData",value:function serializeData(t){return this.dataHandler.serialize(t)}}],[{key:"_createDocument",value:function _createDocument(t){return t["/xdp:xdp"]?Object.values(t).join(""):t["xdp:xdp"]}},{key:"getRichTextAsHtml",value:function getRichTextAsHtml(t){if(!t||"string"!=typeof t)return null;try{var r=new Dv(Ev,!0).parse(t);if(!["body","xhtml"].includes(r[tf])){var o=Ev.body({});o[fu](r);r=o}var c=r[_f]();if(!c.success)return null;var l=c.html,u=l.attributes;if(u){u.class&&(u.class=u.class.filter((function(t){return!t.startsWith("xfa")})));u.dir="auto"}return{html:l,str:r[vf]()}}catch(t){warn("XFA - an error occurred during parsing of rich text: ".concat(t))}return null}}]);var t,r,o;return XFAFactory}();function annotation_get(){annotation_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function annotation_superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=annotation_getPrototypeOf(t)););return t}(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return annotation_get.apply(this,arguments)}function annotation_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&annotation_setPrototypeOf(t,r)}function annotation_setPrototypeOf(t,r){annotation_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return annotation_setPrototypeOf(t,r)}function annotation_createSuper(t){var r=function annotation_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=annotation_getPrototypeOf(t);if(r){var l=annotation_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return annotation_possibleConstructorReturn(this,o)}}function annotation_possibleConstructorReturn(t,r){if(r&&("object"===annotation_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return annotation_assertThisInitialized(t)}function annotation_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function annotation_getPrototypeOf(t){annotation_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return annotation_getPrototypeOf(t)}function annotation_typeof(t){return annotation_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},annotation_typeof(t)}function annotation_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=annotation_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function annotation_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */annotation_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==annotation_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(annotation_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function annotation_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function annotation_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){annotation_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){annotation_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function annotation_slicedToArray(t,r){return function annotation_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function annotation_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||annotation_unsupportedIterableToArray(t,r)||function annotation_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function annotation_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return annotation_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?annotation_arrayLikeToArray(t,r):void 0}}function annotation_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function annotation_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function annotation_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,annotation_toPropertyKey(c.key),c)}}function annotation_createClass(t,r,o){r&&annotation_defineProperties(t.prototype,r);o&&annotation_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function annotation_toPropertyKey(t){var r=function annotation_toPrimitive(t,r){if("object"!=annotation_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=annotation_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==annotation_typeof(r)?r:String(r)}var Uv=function(){function AnnotationFactory(){annotation_classCallCheck(this,AnnotationFactory)}annotation_createClass(AnnotationFactory,null,[{key:"createGlobals",value:function createGlobals(t){return Promise.all([t.ensureCatalog("acroForm"),t.ensureDoc("xfaDatasets"),t.ensureCatalog("structTreeRoot"),t.ensureCatalog("baseUrl"),t.ensureCatalog("attachments")]).then((function(r){var o=annotation_slicedToArray(r,5),c=o[0],l=o[1],u=o[2],h=o[3],d=o[4];return{pdfManager:t,acroForm:c instanceof qr?c:qr.empty,xfaDatasets:l,structTreeRoot:u,baseUrl:h,attachments:d}}),(function(t){warn('createGlobals: "'.concat(t,'".'));return null}))}},{key:"create",value:(c=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee(t,r,o,c,l,u){var h;return annotation_regeneratorRuntime().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!l){d.next=6;break}d.next=3;return this._getPageIndex(t,r,o.pdfManager);case 3:d.t0=d.sent;d.next=7;break;case 6:d.t0=null;case 7:h=d.t0;return d.abrupt("return",o.pdfManager.ensure(this,"_create",[t,r,o,c,l,h,u]));case 9:case"end":return d.stop()}}),_callee,this)}))),function create(t,r,o,l,u,h){return c.apply(this,arguments)})},{key:"_create",value:function _create(t,r,o,c){var l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,d=t.fetchIfRef(r);if(d instanceof qr){var g=o.acroForm,y=o.pdfManager,m=r instanceof zr?r.toString():"annot_".concat(c.createObjId()),v=d.get("Subtype"),_={xref:t,ref:r,dict:d,subtype:v=v instanceof Ur?v.name:null,id:m,annotationGlobals:o,collectFields:l,needAppearances:!l&&!0===g.get("NeedAppearances"),pageIndex:u,evaluatorOptions:y.evaluatorOptions,pageRef:h};switch(v){case"Link":return new Jv(_);case"Text":return new Yv(_);case"Widget":var w=getInheritableProperty({dict:d,key:"FT"});switch(w=w instanceof Ur?w.name:null){case"Tx":return new Wv(_);case"Btn":return new Vv(_);case"Ch":return new Xv(_);case"Sig":if(self.showUnverifiedSignatures){info("The PDF file contains a signature. Please take into account that it can't be verified yet. ngx-extended-pdf-viewer also displays forged signatures, so use this feature only if you're sure what you're doing.");return new Kv(_)}}warn('Unimplemented widget field type "'.concat(w,'", ')+"falling back to base field type.");return new zv(_);case"Popup":return new $v(_);case"FreeText":return new Zv(_);case"Line":return new Qv(_);case"Square":return new eb(_);case"Circle":return new tb(_);case"PolyLine":return new rb(_);case"Polygon":return new nb(_);case"Caret":return new ab(_);case"Ink":return new ib(_);case"Highlight":return new ob(_);case"Underline":return new sb(_);case"Squiggly":return new cb(_);case"StrikeOut":return new lb(_);case"Stamp":return new ub(_);case"FileAttachment":return new fb(_);default:l||warn(v?'Unimplemented annotation type "'.concat(v,'", ')+"falling back to base annotation.":"Annotation is missing the required /Subtype.");return new Gv(_)}}}},{key:"_getPageIndex",value:(o=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee2(t,r,o){var c,l,u,h,d,g,y,m,v,_;return annotation_regeneratorRuntime().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:w.prev=0;w.next=3;return t.fetchIfRefAsync(r);case 3:if((c=w.sent)instanceof qr){w.next=6;break}return w.abrupt("return",-1);case 6:if(!((l=c.getRaw("P"))instanceof zr)){w.next=18;break}w.prev=8;w.next=11;return o.ensureCatalog("getPageIndex",[l]);case 11:u=w.sent;return w.abrupt("return",u);case 15:w.prev=15;w.t0=w.catch(8);info('_getPageIndex -- not a valid page reference: "'.concat(w.t0,'".'));case 18:if(!c.has("Kids")){w.next=20;break}return w.abrupt("return",-1);case 20:w.next=22;return o.ensureDoc("numPages");case 22:h=w.sent;d=0;case 24:if(!(d<h)){w.next=51;break}w.next=27;return o.getPage(d);case 27:g=w.sent;w.next=30;return o.ensure(g,"annotations");case 30:y=w.sent;m=annotation_createForOfIteratorHelper(y);w.prev=32;m.s();case 34:if((v=m.n()).done){w.next=40;break}if(!((_=v.value)instanceof zr&&isRefsEqual(_,r))){w.next=38;break}return w.abrupt("return",d);case 38:w.next=34;break;case 40:w.next=45;break;case 42:w.prev=42;w.t1=w.catch(32);m.e(w.t1);case 45:w.prev=45;m.f();return w.finish(45);case 48:d++;w.next=24;break;case 51:w.next=56;break;case 53:w.prev=53;w.t2=w.catch(0);warn('_getPageIndex: "'.concat(w.t2,'".'));case 56:return w.abrupt("return",-1);case 57:case"end":return w.stop()}}),_callee2,null,[[0,53],[8,15],[32,42,45,48]])}))),function _getPageIndex(t,r,c){return o.apply(this,arguments)})},{key:"generateImages",value:function generateImages(t,r,o){if(!o){warn("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images.");return null}var c,l,u=annotation_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var h=l.value,d=h.bitmapId,g=h.bitmap;if(g){c||(c=new Map);c.set(d,ub.createImage(g,r))}}}catch(t){u.e(t)}finally{u.f()}return c}},{key:"saveNewAnnotations",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee3(t,r,o,c){var l,u,h,d,g,y,m,v,_,w,O,T,E,j,R,M;return annotation_regeneratorRuntime().wrap((function _callee3$(L){for(;;)switch(L.prev=L.next){case 0:l=t.xref;h=[];d=[];g=t.options.isOffscreenCanvasSupported;y=annotation_createForOfIteratorHelper(o);L.prev=5;y.s();case 7:if((m=y.n()).done){L.next=55;break}if(!(v=m.value).deleted){L.next=11;break}return L.abrupt("continue",53);case 11:L.t0=v.annotationType;L.next=L.t0===k?14:L.t0===x?27:L.t0===C?29:L.t0===S?31:53;break;case 14:if(u){L.next=25;break}(_=new qr(l)).set("BaseFont",Ur.get("Helvetica"));_.set("Type",Ur.get("Font"));_.set("Subtype",Ur.get("Type1"));_.set("Encoding",Ur.get("WinAnsiEncoding"));w=[];u=l.getNewTemporaryRef();L.next=24;return writeObject(u,_,w,l);case 24:h.push({ref:u,data:w.join("")});case 25:d.push(Zv.createNewAnnotation(l,v,h,{evaluator:t,task:r,baseFontRef:u}));return L.abrupt("break",53);case 27:d.push(ob.createNewAnnotation(l,v,h));return L.abrupt("break",53);case 29:d.push(ib.createNewAnnotation(l,v,h));return L.abrupt("break",53);case 31:if(g){L.next=33;break}return L.abrupt("break",53);case 33:L.next=35;return c.get(v.bitmapId);case 35:if(!(O=L.sent).imageStream){L.next=51;break}T=O.imageStream,E=O.smaskStream;j=[];if(!E){L.next=46;break}R=l.getNewTemporaryRef();L.next=43;return writeObject(R,E,j,l);case 43:h.push({ref:R,data:j.join("")});T.dict.set("SMask",R);j.length=0;case 46:M=O.imageRef=l.getNewTemporaryRef();L.next=49;return writeObject(M,T,j,l);case 49:h.push({ref:M,data:j.join("")});O.imageStream=O.smaskStream=null;case 51:d.push(ub.createNewAnnotation(l,v,h,{image:O}));return L.abrupt("break",53);case 53:L.next=7;break;case 55:L.next=60;break;case 57:L.prev=57;L.t1=L.catch(5);y.e(L.t1);case 60:L.prev=60;y.f();return L.finish(60);case 63:L.next=65;return Promise.all(d);case 65:L.t2=L.sent;L.t3=h;return L.abrupt("return",{annotations:L.t2,dependencies:L.t3});case 68:case"end":return L.stop()}}),_callee3,null,[[5,57,60,63]])}))),function saveNewAnnotations(t,o,c,l){return r.apply(this,arguments)})},{key:"printNewAnnotations",value:(t=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee4(t,r,o,c,l){var u,h,d,g,y,m,v,_,w;return annotation_regeneratorRuntime().wrap((function _callee4$(O){for(;;)switch(O.prev=O.next){case 0:if(c){O.next=2;break}return O.abrupt("return",null);case 2:u=r.options,h=r.xref;d=[];g=annotation_createForOfIteratorHelper(c);O.prev=5;g.s();case 7:if((y=g.n()).done){O.next=30;break}if(!(m=y.value).deleted){O.next=11;break}return O.abrupt("continue",28);case 11:O.t0=m.annotationType;O.next=O.t0===k?14:O.t0===x?16:O.t0===C?18:O.t0===S?20:28;break;case 14:d.push(Zv.createNewPrintAnnotation(t,h,m,{evaluator:r,task:o,evaluatorOptions:u}));return O.abrupt("break",28);case 16:d.push(ob.createNewPrintAnnotation(t,h,m,{evaluatorOptions:u}));return O.abrupt("break",28);case 18:d.push(ib.createNewPrintAnnotation(t,h,m,{evaluatorOptions:u}));return O.abrupt("break",28);case 20:if(u.isOffscreenCanvasSupported){O.next=22;break}return O.abrupt("break",28);case 22:O.next=24;return l.get(m.bitmapId);case 24:if((v=O.sent).imageStream){_=v.imageStream;(w=v.smaskStream)&&_.dict.set("SMask",w);v.imageRef=new Va(_,_.length);v.imageStream=v.smaskStream=null}d.push(ub.createNewPrintAnnotation(t,h,m,{image:v,evaluatorOptions:u}));return O.abrupt("break",28);case 28:O.next=7;break;case 30:O.next=35;break;case 32:O.prev=32;O.t1=O.catch(5);g.e(O.t1);case 35:O.prev=35;g.f();return O.finish(35);case 38:return O.abrupt("return",Promise.all(d));case 39:case"end":return O.stop()}}),_callee4,null,[[5,32,35,38]])}))),function printNewAnnotations(r,o,c,l,u){return t.apply(this,arguments)})}]);var t,r,o,c;return AnnotationFactory}();function getRgbColor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(t))return r;var o=r||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:ln.singletons.gray.getRgbItem(t,0,o,0);return o;case 3:ln.singletons.rgb.getRgbItem(t,0,o,0);return o;case 4:ln.singletons.cmyk.getRgbItem(t,0,o,0);return o;default:return r}}function getPdfColorArray(t){return Array.from(t,(function(t){return t/255}))}function getQuadPoints(t,r){var o=t.getArray("QuadPoints");if(!Array.isArray(o)||0===o.length||o.length%8>0)return null;for(var c=[],l=0,u=o.length/8;l<u;l++){for(var h=1/0,d=-1/0,g=1/0,y=-1/0,m=8*l,v=8*l+8;m<v;m+=2){var _=o[m],w=o[m+1];h=Math.min(_,h);d=Math.max(_,d);g=Math.min(w,g);y=Math.max(w,y)}if(null!==r&&(h<r[0]||d>r[2]||g<r[1]||y>r[3]))return null;c.push([{x:h,y:y},{x:d,y:y},{x:h,y:g},{x:d,y:g}])}return c}function getTransformMatrix(t,r,o){var c=annotation_slicedToArray(Or.getAxialAlignedBoundingBox(r,o),4),l=c[0],u=c[1],h=c[2],d=c[3];if(l===h||u===d)return[1,0,0,1,t[0],t[1]];var g=(t[2]-t[0])/(h-l),y=(t[3]-t[1])/(d-u);return[g,0,0,y,t[0]-l*g,t[1]-u*y]}var Gv=function(){function Annotation(t){annotation_classCallCheck(this,Annotation);var r=t.dict,o=t.xref,c=t.annotationGlobals;this.setTitle(r.get("T"));this.setContents(r.get("Contents"));this.setModificationDate(r.get("M"));this.setFlags(r.get("F"));this.setRectangle(r.getArray("Rect"));this.setColor(r.getArray("C"));this.setBorderStyle(r);this.setAppearance(r);this.setOptionalContent(r);var l=r.get("MK");this.setBorderAndBackgroundColors(l);this.setRotation(l,r);this.ref=t.ref instanceof zr?t.ref:null;this._streams=[];this.appearance&&this._streams.push(this.appearance);var u=!!(this.flags&ce),h=!!(this.flags&le);if(c.structTreeRoot){var d=r.get("StructParent");d=Number.isInteger(d)&&d>=0?d:-1;c.structTreeRoot.addAnnotationIdToPage(t.pageRef,d)}this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&oe),noHTML:u&&h};if(t.collectFields){var g=r.get("Kids");if(Array.isArray(g)){var y,m=[],v=annotation_createForOfIteratorHelper(g);try{for(v.s();!(y=v.n()).done;){var _=y.value;_ instanceof zr&&m.push(_.toString())}}catch(t){v.e(t)}finally{v.f()}0!==m.length&&(this.data.kidIds=m)}this.data.actions=collectActions(o,r,Ae);this.data.fieldName=this._constructFieldName(r);this.data.pageIndex=t.pageIndex}this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported;this._fallbackFontDict=null;this._needAppearances=!1}annotation_createClass(Annotation,[{key:"_hasFlag",value:function _hasFlag(t,r){return!!(t&r)}},{key:"_isViewable",value:function _isViewable(t){return!this._hasFlag(t,ne)&&!this._hasFlag(t,se)}},{key:"_isPrintable",value:function _isPrintable(t){return this._hasFlag(t,ie)&&!this._hasFlag(t,ae)&&!this._hasFlag(t,ne)}},{key:"mustBeViewed",value:function mustBeViewed(t,r){var o,c=null==t||null===(o=t.get(this.data.id))||void 0===o?void 0:o.noView;return void 0!==c?!c:this.viewable&&!this._hasFlag(this.flags,ae)}},{key:"mustBePrinted",value:function mustBePrinted(t){var r,o=null==t||null===(r=t.get(this.data.id))||void 0===r?void 0:r.noPrint;return void 0!==o?!o:this.printable}},{key:"viewable",get:function get(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function get(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}},{key:"_parseStringHelper",value:function _parseStringHelper(t){var r="string"==typeof t?stringToPDFString(t):"";return{str:r,dir:r&&"rtl"===bidi(r).dir?"rtl":"ltr"}}},{key:"setDefaultAppearance",value:function setDefaultAppearance(t){var r=t.dict,o=t.annotationGlobals,c=getInheritableProperty({dict:r,key:"DA"})||o.acroForm.get("DA");this._defaultAppearance="string"==typeof c?c:"";this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance)}},{key:"setTitle",value:function setTitle(t){this._title=this._parseStringHelper(t)}},{key:"setContents",value:function setContents(t){this._contents=this._parseStringHelper(t)}},{key:"setModificationDate",value:function setModificationDate(t){this.modificationDate="string"==typeof t?t:null}},{key:"setFlags",value:function setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0;this.flags&ne&&"Annotation"!==this.constructor.name&&(this.flags^=ne)}},{key:"hasFlag",value:function hasFlag(t){return this._hasFlag(this.flags,t)}},{key:"setRectangle",value:function setRectangle(t){this.rectangle=Array.isArray(t)&&4===t.length?Or.normalizeRect(t):[0,0,0,0]}},{key:"setColor",value:function setColor(t){this.color=getRgbColor(t)}},{key:"setLineEndings",value:function setLineEndings(t){this.lineEndings=["None","None"];if(Array.isArray(t)&&2===t.length)for(var r=0;r<2;r++){var o=t[r];if(o instanceof Ur)switch(o.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[r]=o.name;continue}warn("Ignoring invalid lineEnding: ".concat(o))}}},{key:"setRotation",value:function setRotation(t,r){this.rotation=0;var o=t instanceof qr?t.get("R")||0:r.get("Rotate")||0;if(Number.isInteger(o)&&0!==o){(o%=360)<0&&(o+=360);o%90==0&&(this.rotation=o)}}},{key:"setBorderAndBackgroundColors",value:function setBorderAndBackgroundColors(t){if(t instanceof qr){this.borderColor=getRgbColor(t.getArray("BC"),null);this.backgroundColor=getRgbColor(t.getArray("BG"),null)}else this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function setBorderStyle(t){this.borderStyle=new Hv;if(t instanceof qr)if(t.has("BS")){var r=t.get("BS");if(r instanceof qr){var o=r.get("Type");if(!o||isName(o,"Border")){this.borderStyle.setWidth(r.get("W"),this.rectangle);this.borderStyle.setStyle(r.get("S"));this.borderStyle.setDashArray(r.getArray("D"))}}}else if(t.has("Border")){var c=t.getArray("Border");if(Array.isArray(c)&&c.length>=3){this.borderStyle.setHorizontalCornerRadius(c[0]);this.borderStyle.setVerticalCornerRadius(c[1]);this.borderStyle.setWidth(c[2],this.rectangle);4===c.length&&this.borderStyle.setDashArray(c[3],!0)}}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function setAppearance(t){this.appearance=null;var r=t.get("AP");if(r instanceof qr){var o=r.get("N");if(o instanceof Xr)this.appearance=o;else if(o instanceof qr){var c=t.get("AS");if(c instanceof Ur&&o.has(c.name)){var l=o.get(c.name);l instanceof Xr&&(this.appearance=l)}}}}},{key:"setOptionalContent",value:function setOptionalContent(t){this.oc=null;var r=t.get("OC");r instanceof Ur?warn("setOptionalContent: Support for /Name-entry is not implemented."):r instanceof qr&&(this.oc=r)}},{key:"loadResources",value:function loadResources(t,r){return r.dict.getAsync("Resources").then((function(r){if(r){return new cu(r,t,r.xref).load().then((function(){return r}))}}))}},{key:"getOperatorList",value:(o=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee5(t,r,o,c,l){var u,h,g,y,m,v,_,w,k,x;return annotation_regeneratorRuntime().wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:u=this.data;h=this.appearance;g=!!(this.data.hasOwnCanvas&&o&d);if(h){c.next=8;break}if(g){c.next=6;break}return c.abrupt("return",{opList:new Kc,separateForm:!1,separateCanvas:!1});case 6:(h=new rn("")).dict=new qr;case 8:y=h.dict;c.next=11;return this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],h);case 11:m=c.sent;v=y.getArray("BBox")||[0,0,1,1];_=y.getArray("Matrix")||[1,0,0,1,0,0];w=getTransformMatrix(u.rect,v,_);k=new Kc;if(!this.oc){c.next=20;break}c.next=19;return t.parseMarkedContentProps(this.oc,null);case 19:x=c.sent;case 20:void 0!==x&&k.addOp(Kt,["OC",x]);k.addOp(rr,[u.id,u.rect,w,_,g]);c.next=24;return t.getOperatorList({stream:h,task:r,resources:m,operatorList:k,fallbackFontDict:this._fallbackFontDict});case 24:k.addOp(nr,[]);void 0!==x&&k.addOp(Yt,[]);this.reset();return c.abrupt("return",{opList:k,separateForm:!1,separateCanvas:g});case 28:case"end":return c.stop()}}),_callee5,this)}))),function getOperatorList(t,r,c,l,u){return o.apply(this,arguments)})},{key:"save",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee6(t,r,o){return annotation_regeneratorRuntime().wrap((function _callee6$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),_callee6)}))),function save(t,o,c){return r.apply(this,arguments)})},{key:"hasTextContent",get:function get(){return!1}},{key:"extractTextContent",value:(t=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee7(t,r,o){var c,l,u,h,d,g,y,m,v,_;return annotation_regeneratorRuntime().wrap((function _callee7$(w){for(;;)switch(w.prev=w.next){case 0:if(this.appearance){w.next=2;break}return w.abrupt("return");case 2:w.next=4;return this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);case 4:c=w.sent;l=[];u=[];h=null;d={desiredSize:Math.Infinity,ready:!0,enqueue:function enqueue(t,r){var o,c=annotation_createForOfIteratorHelper(t.items);try{for(c.s();!(o=c.n()).done;){var d=o.value;if(void 0!==d.str){h||(h=d.transform.slice(-2));u.push(d.str);if(d.hasEOL){l.push(u.join(""));u.length=0}}}}catch(t){c.e(t)}finally{c.f()}}};w.next=11;return t.getTextContent({stream:this.appearance,task:r,resources:c,includeMarkedContent:!0,sink:d,viewBox:o});case 11:this.reset();u.length&&l.push(u.join(""));if(l.length>1||l[0]){g=this.appearance.dict;y=g.getArray("BBox")||[0,0,1,1];m=g.getArray("Matrix")||[1,0,0,1,0,0];v=this.data.rect;(_=getTransformMatrix(v,y,m))[4]-=v[0];_[5]-=v[1];h=Or.applyTransform(h,_);h=Or.applyTransform(h,m);this.data.textPosition=h;this.data.textContent=l}case 14:case"end":return w.stop()}}),_callee7,this)}))),function extractTextContent(r,o,c){return t.apply(this,arguments)})},{key:"getFieldObject",value:function getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}},{key:"reset",value:function reset(){var t,r=annotation_createForOfIteratorHelper(this._streams);try{for(r.s();!(t=r.n()).done;){t.value.reset()}}catch(t){r.e(t)}finally{r.f()}}},{key:"_constructFieldName",value:function _constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){warn("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent"))return stringToPDFString(t.get("T"));var r=[];t.has("T")&&r.unshift(stringToPDFString(t.get("T")));var o=t,c=new Wr;t.objId&&c.put(t.objId);for(;o.has("Parent")&&(o=o.get("Parent"))instanceof qr&&(!o.objId||!c.has(o.objId));){o.objId&&c.put(o.objId);o.has("T")&&r.unshift(stringToPDFString(o.get("T")))}return r.join(".")}}]);var t,r,o;return Annotation}(),Hv=function(){function AnnotationBorderStyle(){annotation_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=we;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}annotation_createClass(AnnotationBorderStyle,[{key:"setWidth",value:function setWidth(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(t instanceof Ur)this.width=0;else if("number"==typeof t){if(t>0){var o=(r[2]-r[0])/2,c=(r[3]-r[1])/2;if(o>0&&c>0&&(t>o||t>c)){warn("AnnotationBorderStyle.setWidth - ignoring width: ".concat(t));t=1}}this.width=t}}},{key:"setStyle",value:function setStyle(t){if(t instanceof Ur)switch(t.name){case"S":this.style=we;break;case"D":this.style=ke;break;case"B":this.style=xe;break;case"I":this.style=Se;break;case"U":this.style=Ce}}},{key:"setDashArray",value:function setDashArray(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)&&t.length>0){var o,c=!0,l=!0,u=annotation_createForOfIteratorHelper(t);try{for(u.s();!(o=u.n()).done;){var h=o.value;if(!(+h>=0)){c=!1;break}h>0&&(l=!1)}}catch(t){u.e(t)}finally{u.f()}if(c&&!l){this.dashArray=t;r&&this.setStyle(Ur.get("D"))}else this.width=0}else t&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}},{key:"setVerticalCornerRadius",value:function setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}}]);return AnnotationBorderStyle}(),qv=function(t){annotation_inherits(MarkupAnnotation,t);var r,o,c=annotation_createSuper(MarkupAnnotation);function MarkupAnnotation(t){var r;annotation_classCallCheck(this,MarkupAnnotation);r=c.call(this,t);var o=t.dict;if(o.has("IRT")){var l=o.getRaw("IRT");r.data.inReplyTo=l instanceof zr?l.toString():null;var u=o.get("RT");r.data.replyType=u instanceof Ur?u.name:re}var h=null;if(r.data.replyType===te){var d=o.get("IRT");r.setTitle(d.get("T"));r.data.titleObj=r._title;r.setContents(d.get("Contents"));r.data.contentsObj=r._contents;if(d.has("CreationDate")){r.setCreationDate(d.get("CreationDate"));r.data.creationDate=r.creationDate}else r.data.creationDate=null;if(d.has("M")){r.setModificationDate(d.get("M"));r.data.modificationDate=r.modificationDate}else r.data.modificationDate=null;h=d.getRaw("Popup");if(d.has("C")){r.setColor(d.getArray("C"));r.data.color=r.color}else r.data.color=null}else{r.data.titleObj=r._title;r.setCreationDate(o.get("CreationDate"));r.data.creationDate=r.creationDate;h=o.getRaw("Popup");o.has("C")||(r.data.color=null)}r.data.popupRef=h instanceof zr?h.toString():null;o.has("RC")&&(r.data.richText=Nv.getRichTextAsHtml(o.get("RC")));return r}annotation_createClass(MarkupAnnotation,[{key:"setCreationDate",value:function setCreationDate(t){this.creationDate="string"==typeof t?t:null}},{key:"_setDefaultAppearance",value:function _setDefaultAppearance(t){var r=t.xref,o=t.extra,c=t.strokeColor,l=t.fillColor,u=t.blendMode,h=t.strokeAlpha,d=t.fillAlpha,g=t.pointsCallback,y=Number.MAX_VALUE,m=Number.MAX_VALUE,v=Number.MIN_VALUE,_=Number.MIN_VALUE,w=["q"];o&&w.push(o);c&&w.push("".concat(c[0]," ").concat(c[1]," ").concat(c[2]," RG"));l&&w.push("".concat(l[0]," ").concat(l[1]," ").concat(l[2]," rg"));var k=this.data.quadPoints;k||(k=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var x,S=annotation_createForOfIteratorHelper(k);try{for(S.s();!(x=S.n()).done;){var C=annotation_slicedToArray(g(w,x.value),4),O=C[0],T=C[1],E=C[2],j=C[3];y=Math.min(y,O);v=Math.max(v,T);m=Math.min(m,E);_=Math.max(_,j)}}catch(t){S.e(t)}finally{S.f()}w.push("Q");var R=new qr(r),M=new qr(r);M.set("Subtype",Ur.get("Form"));var L=new rn(w.join(" "));L.dict=M;R.set("Fm0",L);var D=new qr(r);u&&D.set("BM",Ur.get(u));"number"==typeof h&&D.set("CA",h);"number"==typeof d&&D.set("ca",d);var N=new qr(r);N.set("GS0",D);var U=new qr(r);U.set("ExtGState",N);U.set("XObject",R);var G=new qr(r);G.set("Resources",U);var H=this.data.rect=[y,m,v,_];G.set("BBox",H);this.appearance=new rn("/GS0 gs /Fm0 Do");this.appearance.dict=G;this._streams.push(this.appearance,L)}}],[{key:"createNewAnnotation",value:(o=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee8(t,r,o,c){var l,u,h,d,g;return annotation_regeneratorRuntime().wrap((function _callee8$(y){for(;;)switch(y.prev=y.next){case 0:l=r.ref||(r.ref=t.getNewTemporaryRef());y.next=3;return this.createNewAppearanceStream(r,t,c);case 3:u=y.sent;h=[];if(!u){y.next=13;break}g=t.getNewTemporaryRef();d=this.createNewDict(r,t,{apRef:g});y.next=10;return writeObject(g,u,h,t);case 10:o.push({ref:g,data:h.join("")});y.next=14;break;case 13:d=this.createNewDict(r,t,{});case 14:Number.isInteger(r.parentTreeId)&&d.set("StructParent",r.parentTreeId);h.length=0;y.next=18;return writeObject(l,d,h,t);case 18:return y.abrupt("return",{ref:l,data:h.join("")});case 19:case"end":return y.stop()}}),_callee8,this)}))),function createNewAnnotation(t,r,c,l){return o.apply(this,arguments)})},{key:"createNewPrintAnnotation",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee9(t,r,o,c){var l,u,h;return annotation_regeneratorRuntime().wrap((function _callee9$(d){for(;;)switch(d.prev=d.next){case 0:d.next=2;return this.createNewAppearanceStream(o,r,c);case 2:l=d.sent;u=this.createNewDict(o,r,{ap:l});h=new this.prototype.constructor({dict:u,xref:r,annotationGlobals:t,evaluatorOptions:c.evaluatorOptions});o.ref&&(h.ref=h.refToReplace=o.ref);return d.abrupt("return",h);case 7:case"end":return d.stop()}}),_callee9,this)}))),function createNewPrintAnnotation(t,o,c,l){return r.apply(this,arguments)})}]);return MarkupAnnotation}(Gv),zv=function(r){annotation_inherits(WidgetAnnotation,r);var o,l,h,g,m=annotation_createSuper(WidgetAnnotation);function WidgetAnnotation(t){var r,o;annotation_classCallCheck(this,WidgetAnnotation);o=m.call(this,t);var c=t.dict,l=t.xref,u=t.annotationGlobals,h=o.data;o._needAppearances=t.needAppearances;h.annotationType=ee;void 0===h.fieldName&&(h.fieldName=o._constructFieldName(c));void 0===h.actions&&(h.actions=collectActions(l,c,Ae));var d=getInheritableProperty({dict:c,key:"V",getArray:!0});h.fieldValue=o._decodeFormValue(d);var g=getInheritableProperty({dict:c,key:"DV",getArray:!0});h.defaultFieldValue=o._decodeFormValue(g);if(void 0===d&&u.xfaDatasets){var y=o._title.str;if(y){o._hasValueFromXFA=!0;h.fieldValue=d=u.xfaDatasets.getValue(y)}}void 0===d&&null!==h.defaultFieldValue&&(h.fieldValue=h.defaultFieldValue);h.alternativeText=stringToPDFString(c.get("TU")||"");o.setDefaultAppearance(t);h.hasAppearance||(h.hasAppearance=o._needAppearances&&void 0!==h.fieldValue&&null!==h.fieldValue);var v=getInheritableProperty({dict:c,key:"FT"});h.fieldType=v instanceof Ur?v.name:null;var _=getInheritableProperty({dict:c,key:"DR"}),w=u.acroForm.get("DR"),k=null===(r=o.appearance)||void 0===r?void 0:r.dict.get("Resources");o._fieldResources={localResources:_,acroFormResources:w,appearanceResources:k,mergedResources:qr.merge({xref:l,dictArray:[_,k,w],mergeSubDicts:!0})};h.fieldFlags=getInheritableProperty({dict:c,key:"Ff"});(!Number.isInteger(h.fieldFlags)||h.fieldFlags<0)&&(h.fieldFlags=0);h.readOnly=o.hasFieldFlag(ue);h.required=o.hasFieldFlag(fe);h.hidden=o._hasFlag(h.annotationFlags,ae)||o._hasFlag(h.annotationFlags,se);if("Sig"===h.fieldType&&!self.showUnverifiedSignatures){o.setFlags(ae);info("The PDF file contains a signature. Please take into account that it can't be verified yet. By default, ngx-extended-pdf-viewer hides signatures until you configure it otherwise.")}return o}annotation_createClass(WidgetAnnotation,[{key:"_decodeFormValue",value:function _decodeFormValue(t){return Array.isArray(t)?t.filter((function(t){return"string"==typeof t})).map((function(t){return stringToPDFString(t)})):t instanceof Ur?stringToPDFString(t.name):"string"==typeof t?stringToPDFString(t):null}},{key:"hasFieldFlag",value:function hasFieldFlag(t){return!!(this.data.fieldFlags&t)}},{key:"_isViewable",value:function _isViewable(t){return!0}},{key:"mustBeViewed",value:function mustBeViewed(t,r){return r?this.viewable:annotation_get(annotation_getPrototypeOf(WidgetAnnotation.prototype),"mustBeViewed",this).call(this,t,r)&&!this._hasFlag(this.flags,se)}},{key:"getRotationMatrix",value:function getRotationMatrix(r){var o,c=null==r||null===(o=r.get(this.data.id))||void 0===o?void 0:o.rotation;void 0===c&&(c=this.rotation);return 0===c?t:core_utils_getRotationMatrix(c,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1])}},{key:"getBorderAndBackgroundAppearances",value:function getBorderAndBackgroundAppearances(t){var r,o=null==t||null===(r=t.get(this.data.id))||void 0===r?void 0:r.rotation;void 0===o&&(o=this.rotation);if(!this.backgroundColor&&!this.borderColor)return"";var c=this.data.rect[2]-this.data.rect[0],l=this.data.rect[3]-this.data.rect[1],u=0===o||180===o?"0 0 ".concat(c," ").concat(l," re"):"0 0 ".concat(l," ").concat(c," re"),h="";this.backgroundColor&&(h="".concat(getPdfColor(this.backgroundColor,!0)," ").concat(u," f "));if(this.borderColor){var d=this.borderStyle.width||1;h+="".concat(d," w ").concat(getPdfColor(this.borderColor,!1)," ").concat(u," S ")}return h}},{key:"getOperatorList",value:(g=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee10(t,r,o,c,l){var u,h,g,y,m,v,_,w;return annotation_regeneratorRuntime().wrap((function _callee10$(k){for(;;)switch(k.prev=k.next){case 0:if(!c||this instanceof Kv||this.data.noHTML||this.data.hasOwnCanvas){k.next=2;break}return k.abrupt("return",{opList:new Kc,separateForm:!0,separateCanvas:!1});case 2:if(this._hasText){k.next=4;break}return k.abrupt("return",annotation_get(annotation_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,c,l));case 4:k.next=6;return this._getAppearance(t,r,o,l);case 6:u=k.sent;if(!this.appearance||null!==u){k.next=9;break}return k.abrupt("return",annotation_get(annotation_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,c,l));case 9:h=new Kc;if(this._defaultAppearance&&null!==u){k.next=12;break}return k.abrupt("return",{opList:h,separateForm:!1,separateCanvas:!1});case 12:g=!!(this.data.hasOwnCanvas&&o&d);y=[1,0,0,1,0,0];m=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];v=getTransformMatrix(this.data.rect,m,y);if(!this.oc){k.next=20;break}k.next=19;return t.parseMarkedContentProps(this.oc,null);case 19:_=k.sent;case 20:void 0!==_&&h.addOp(Kt,["OC",_]);h.addOp(rr,[this.data.id,this.data.rect,v,this.getRotationMatrix(l),g]);w=new rn(u);k.next=25;return t.getOperatorList({stream:w,task:r,resources:this._fieldResources.mergedResources,operatorList:h});case 25:h.addOp(nr,[]);void 0!==_&&h.addOp(Yt,[]);return k.abrupt("return",{opList:h,separateForm:!1,separateCanvas:g});case 28:case"end":return k.stop()}}),_callee10,this)}))),function getOperatorList(t,r,o,c,l){return g.apply(this,arguments)})},{key:"_getMKDict",value:function _getMKDict(t){var r=new qr(null);t&&r.set("R",t);this.borderColor&&r.set("BC",getPdfColorArray(this.borderColor));this.backgroundColor&&r.set("BG",getPdfColorArray(this.backgroundColor));return r.size>0?r:null}},{key:"amendSavedDict",value:function amendSavedDict(t,r){}},{key:"save",value:(h=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee11(r,o,c){var l,u,h,d,g,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G=this;return annotation_regeneratorRuntime().wrap((function _callee11$(H){for(;;)switch(H.prev=H.next){case 0:u=null==c?void 0:c.get(this.data.id);h=null==u?void 0:u.value,d=null==u?void 0:u.rotation;if(h!==this.data.fieldValue&&void 0!==h){H.next=6;break}if(this._hasValueFromXFA||void 0!==d){H.next=5;break}return H.abrupt("return",null);case 5:h||(h=this.data.fieldValue);case 6:if(void 0!==d||this._hasValueFromXFA||!Array.isArray(h)||!Array.isArray(this.data.fieldValue)||h.length!==this.data.fieldValue.length||!h.every((function(t,r){return t===G.data.fieldValue[r]}))){H.next=8;break}return H.abrupt("return",null);case 8:void 0===d&&(d=this.rotation);g=null;if(this._needAppearances){H.next=18;break}H.next=13;return this._getAppearance(r,o,y,c);case 13:if(null!==(g=H.sent)){H.next=16;break}return H.abrupt("return",null);case 16:H.next=18;break;case 18:m=!1;if(null!==(l=g)&&void 0!==l&&l.needAppearances){m=!0;g=null}v=r.xref;if((_=v.fetchIfRef(this.ref))instanceof qr){H.next=24;break}return H.abrupt("return",null);case 24:w=new qr(v);k=annotation_createForOfIteratorHelper(_.getKeys());try{for(k.s();!(x=k.n()).done;)"AP"!==(S=x.value)&&w.set(S,_.getRaw(S))}catch(t){k.e(t)}finally{k.f()}C={path:this.data.fieldName,value:h};O=function encoder(t){return isAscii(t)?t:stringToUTF16String(t,!0)};w.set("V",Array.isArray(h)?h.map(O):O(h));this.amendSavedDict(c,w);(T=this._getMKDict(d))&&w.set("MK",T);E=[];j=[{ref:this.ref,data:"",xfa:C,needAppearances:m}];if(null===g){H.next=52;break}R=v.getNewTemporaryRef();M=new qr(v);w.set("AP",M);M.set("N",R);L=this._getSaveFieldResources(v);D=new rn(g);(N=D.dict=new qr(v)).set("Subtype",Ur.get("Form"));N.set("Resources",L);N.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);(U=this.getRotationMatrix(c))!==t&&N.set("Matrix",U);H.next=50;return writeObject(R,D,E,v);case 50:j.push({ref:R,data:E.join(""),xfa:null,needAppearances:!1});E.length=0;case 52:w.set("M","D:".concat(getModificationDate()));H.next=55;return writeObject(this.ref,w,E,v);case 55:j[0].data=E.join("");return H.abrupt("return",j);case 57:case"end":return H.stop()}}),_callee11,this)}))),function save(t,r,o){return h.apply(this,arguments)})},{key:"_getAppearance",value:(l=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee12(t,r,o,c){var l,h,d,g,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K,Y,J,$,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce;return annotation_regeneratorRuntime().wrap((function _callee12$(le){for(;;)switch(le.prev=le.next){case 0:if(!this.hasFieldFlag(pe)){le.next=3;break}return le.abrupt("return",null);case 3:if(l=null==c?void 0:c.get(this.data.id)){h=l.formattedValue||l.value;d=l.rotation}if(void 0!==d||void 0!==h||this._needAppearances){le.next=8;break}if(this._hasValueFromXFA&&!this.appearance){le.next=8;break}return le.abrupt("return",null);case 8:g=this.getBorderAndBackgroundAppearances(c);if(void 0!==h){le.next=13;break}if(h=this.data.fieldValue){le.next=13;break}return le.abrupt("return","/Tx BMC q ".concat(g,"Q EMC"));case 13:Array.isArray(h)&&1===h.length&&(h=h[0]);assert("string"==typeof h,"Expected `value` to be a string.");h=h.trim();if(this.data.combo){m=this.data.options.find((function(t){var r=t.exportValue;return h===r}));h=(null==m?void 0:m.displayValue)||h}if(""!==h){le.next=19;break}return le.abrupt("return","/Tx BMC q ".concat(g,"Q EMC"));case 19:void 0===d&&(d=this.rotation);v=-1;if(this.data.multiLine){_=h.split(/\r\n?|\n/).map((function(t){return t.normalize("NFC")}));v=_.length}else _=[h.replace(/\r\n?|\n/,"").normalize("NFC")];w=1;k=2;x=this.data.rect[3]-this.data.rect[1];S=this.data.rect[2]-this.data.rect[0];if(90===d||270===d){S=(C=[x,S])[0];x=C[1]}this._defaultAppearance||(this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance="/Helvetica 0 Tf 0 g"));le.next=30;return WidgetAnnotation._getFontData(t,r,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 30:O=le.sent;R=[];M=!1;L=annotation_createForOfIteratorHelper(_);try{for(L.s();!(D=L.n()).done;){N=D.value;(U=O.encodeString(N)).length>1&&(M=!0);R.push(U.join(""))}}catch(t){L.e(t)}finally{L.f()}if(!(M&&o&y)){le.next=37;break}return le.abrupt("return",{needAppearances:!0});case 37:if(!M||!this._isOffscreenCanvasSupported){le.next=59;break}G=this.data.comb?"monospace":"sans-serif";H=new fl(t.xref,G);q=H.createFontResources(_.join(""));z=q.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){W=this._fieldResources.mergedResources.get("Font");V=annotation_createForOfIteratorHelper(z.getKeys());try{for(V.s();!(X=V.n()).done;){K=X.value;W.set(K,z.getRaw(K))}}catch(t){V.e(t)}finally{V.f()}}else this._fieldResources.mergedResources.set("Font",z);Y=H.fontName.name;le.next=46;return WidgetAnnotation._getFontData(t,r,{fontName:Y,fontSize:0},q);case 46:O=le.sent;for(J=0,$=R.length;J<$;J++)R[J]=stringToUTF16String(_[J]);Z=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0;this.data.defaultAppearanceData.fontName=Y;Q=this._computeFontSize(x-2*w,S-2*k,h,O,v);ee=annotation_slicedToArray(Q,3);T=ee[0];E=ee[1];j=ee[2];this.data.defaultAppearanceData=Z;le.next=65;break;case 59:this._isOffscreenCanvasSupported||warn("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly.");te=this._computeFontSize(x-2*w,S-2*k,h,O,v);re=annotation_slicedToArray(te,3);T=re[0];E=re[1];j=re[2];case 65:ne=O.descent;ne=isNaN(ne)?u*j:Math.max(u*j,Math.abs(ne)*E);ae=Math.min(Math.floor((x-E)/2),w);ie=this.data.textAlignment;if(!this.data.multiLine){le.next=71;break}return le.abrupt("return",this._getMultilineAppearance(T,R,O,E,S,x,ie,k,ae,ne,j,c));case 71:if(!this.data.comb){le.next=73;break}return le.abrupt("return",this._getCombAppearance(T,O,R[0],E,S,x,k,ae,ne,j,c));case 73:oe=ae+ne;if(!(0===ie||ie>2)){le.next=76;break}return le.abrupt("return","/Tx BMC q ".concat(g,"BT ")+T+" 1 0 0 1 ".concat(numberToString(k)," ").concat(numberToString(oe)," Tm (").concat(escapeString(R[0]),") Tj")+" ET Q EMC");case 76:se={shift:0};ce=this._renderText(R[0],O,E,S,ie,se,k,oe);return le.abrupt("return","/Tx BMC q ".concat(g,"BT ")+T+" 1 0 0 1 0 0 Tm ".concat(ce)+" ET Q EMC");case 79:case"end":return le.stop()}}),_callee12,this)}))),function _getAppearance(t,r,o,c){return l.apply(this,arguments)})},{key:"_getTextWidth",value:function _getTextWidth(t,r){return r.charsToGlyphs(t).reduce((function(t,r){return t+r.width}),0)/1e3}},{key:"_computeFontSize",value:function _computeFontSize(t,r,o,l,u){var h=this,d=this.data.defaultAppearanceData.fontSize,g=(d||12)*c,y=Math.round(t/g);if(!d){var m=function roundWithTwoDigits(t){return Math.floor(100*t)/100};if(-1===u){var v=this._getTextWidth(o,l);d=m(Math.min(t/c,v>r?r/v:1/0));y=1}else{var _,w=o.split(/\r\n?|\n/),k=[],x=annotation_createForOfIteratorHelper(w);try{for(x.s();!(_=x.n()).done;){var S=_.value,C=l.encodeString(S).join(""),O=l.charsToGlyphs(C),T=l.getCharPositions(C);k.push({line:C,glyphs:O,positions:T})}}catch(t){x.e(t)}finally{x.f()}var E=function isTooBig(o){for(var c=0,u=0,d=k;u<d.length;u++){var g=d[u];if((c+=h._splitLine(null,l,o,r,g).length*o)>t)return!0}return!1};y=Math.max(y,u);for(;E(d=m((g=t/y)/c));)y++}var j=this.data.defaultAppearanceData,R=j.fontName,M=j.fontColor;this._defaultAppearance=function createDefaultAppearance(t){var r=t.fontSize,o=t.fontName,c=t.fontColor;return"/".concat(escapePDFName(o)," ").concat(r," Tf ").concat(getPdfColor(c,!0))}({fontSize:d,fontName:R,fontColor:M})}return[this._defaultAppearance,d,t/y]}},{key:"_renderText",value:function _renderText(t,r,o,c,l,u,h,d){var g;if(1===l){g=(c-this._getTextWidth(t,r)*o)/2}else if(2===l){g=c-this._getTextWidth(t,r)*o-h}else g=h;var y=numberToString(g-u.shift);u.shift=g;d=numberToString(d);return"".concat(y," ").concat(d," Td (").concat(escapeString(t),") Tj")}},{key:"_getSaveFieldResources",value:function _getSaveFieldResources(t){var r,o=this._fieldResources,c=o.localResources,l=o.appearanceResources,u=o.acroFormResources,h=null===(r=this.data.defaultAppearanceData)||void 0===r?void 0:r.fontName;if(!h)return c||qr.empty;for(var d=0,g=[c,l];d<g.length;d++){var y=g[d];if(y instanceof qr){var m=y.get("Font");if(m instanceof qr&&m.has(h))return y}}if(u instanceof qr){var v=u.get("Font");if(v instanceof qr&&v.has(h)){var _=new qr(t);_.set(h,v.getRaw(h));var w=new qr(t);w.set("Font",_);return qr.merge({xref:t,dictArray:[w,c],mergeSubDicts:!0})}}return c||qr.empty}},{key:"getFieldObject",value:function getFieldObject(){return null}}],[{key:"_getFontData",value:(o=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee13(t,r,o,c){var l,u,h,d;return annotation_regeneratorRuntime().wrap((function _callee13$(g){for(;;)switch(g.prev=g.next){case 0:l=new Kc;u={font:null,clone:function clone(){return this}};h=o.fontName,d=o.fontSize;g.next=5;return t.handleSetFont(c,[h&&Ur.get(h),d],null,l,r,u,null);case 5:return g.abrupt("return",u.font);case 6:case"end":return g.stop()}}),_callee13)}))),function _getFontData(t,r,c,l){return o.apply(this,arguments)})}]);return WidgetAnnotation}(Gv),Wv=function(t){annotation_inherits(TextWidgetAnnotation,t);var r=annotation_createSuper(TextWidgetAnnotation);function TextWidgetAnnotation(t){var o;annotation_classCallCheck(this,TextWidgetAnnotation);(o=r.call(this,t)).data.hasOwnCanvas=o.data.readOnly&&!o.data.noHTML;o._hasText=!0;var c=t.dict;"string"!=typeof o.data.fieldValue&&(o.data.fieldValue="");var l=getInheritableProperty({dict:c,key:"Q"});(!Number.isInteger(l)||l<0||l>2)&&(l=null);o.data.textAlignment=l;var u=getInheritableProperty({dict:c,key:"MaxLen"});(!Number.isInteger(u)||u<0)&&(u=0);o.data.maxLen=u;o.data.multiLine=o.hasFieldFlag(he);o.data.comb=o.hasFieldFlag(_e)&&!o.hasFieldFlag(he)&&!o.hasFieldFlag(pe)&&!o.hasFieldFlag(me)&&0!==o.data.maxLen;o.data.doNotScroll=o.hasFieldFlag(be);return o}annotation_createClass(TextWidgetAnnotation,[{key:"hasTextContent",get:function get(){return!!this.appearance&&!this._needAppearances}},{key:"_getCombAppearance",value:function _getCombAppearance(t,r,o,c,l,u,h,d,g,y,m){var v,_=l/this.data.maxLen,w=this.getBorderAndBackgroundAppearances(m),k=[],x=annotation_createForOfIteratorHelper(r.getCharPositions(o));try{for(x.s();!(v=x.n()).done;){var S=annotation_slicedToArray(v.value,2),C=S[0],O=S[1];k.push("(".concat(escapeString(o.substring(C,O)),") Tj"))}}catch(t){x.e(t)}finally{x.f()}var T=k.join(" ".concat(numberToString(_)," 0 Td "));return"/Tx BMC q ".concat(w,"BT ")+t+" 1 0 0 1 ".concat(numberToString(h)," ").concat(numberToString(d+g)," Tm ").concat(T)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function _getMultilineAppearance(t,r,o,c,l,u,h,d,g,y,m,v){for(var _=[],w=l-2*d,k={shift:0},x=0,S=r.length;x<S;x++)for(var C=r[x],O=this._splitLine(C,o,c,w),T=0,E=O.length;T<E;T++){var j=O[T],R=0===x&&0===T?-g-(m-y):-m;_.push(this._renderText(j,o,c,l,h,k,d,R))}var M=this.getBorderAndBackgroundAppearances(v),L=_.join("\n");return"/Tx BMC q ".concat(M,"BT ")+t+" 1 0 0 1 0 ".concat(numberToString(u)," Tm ").concat(L)+" ET Q EMC"}},{key:"_splitLine",value:function _splitLine(t,r,o,c){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};t=l.line||t;var u=l.glyphs||r.charsToGlyphs(t);if(u.length<=1)return[t];for(var h=l.positions||r.getCharPositions(t),d=o/1e3,g=[],y=-1,m=-1,v=-1,_=0,w=0,k=0,x=u.length;k<x;k++){var S=annotation_slicedToArray(h[k],2),C=S[0],O=S[1],T=u[k],E=T.width*d;if(" "===T.unicode)if(w+E>c){g.push(t.substring(_,C));_=C;w=E;y=-1;v=-1}else{w+=E;y=C;m=O;v=k}else if(w+E>c)if(-1!==y){g.push(t.substring(_,m));_=m;k=v+1;y=-1;w=0}else{g.push(t.substring(_,C));_=C;w=E}else w+=E}_<t.length&&g.push(t.substring(_,t.length));return g}},{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(pe),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}]);return TextWidgetAnnotation}(zv),Vv=function(r){annotation_inherits(ButtonWidgetAnnotation,r);var o,c,l,u,h=annotation_createSuper(ButtonWidgetAnnotation);function ButtonWidgetAnnotation(t){var r;annotation_classCallCheck(this,ButtonWidgetAnnotation);(r=h.call(this,t)).checkedAppearance=null;r.uncheckedAppearance=null;r.data.checkBox=!r.hasFieldFlag(de)&&!r.hasFieldFlag(ge);r.data.radioButton=r.hasFieldFlag(de)&&!r.hasFieldFlag(ge);r.data.pushButton=r.hasFieldFlag(ge);r.data.isTooltipOnly=!1;if(r.data.checkBox)r._processCheckBox(t);else if(r.data.radioButton)r._processRadioButton(t);else if(r.data.pushButton){r.data.hasOwnCanvas=!0;r.data.noHTML=!1;r._processPushButton(t)}else warn("Invalid field flags for button widget annotation");return r}annotation_createClass(ButtonWidgetAnnotation,[{key:"getOperatorList",value:(u=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee14(r,o,c,l,u){var h,d,g,y,m,v,_;return annotation_regeneratorRuntime().wrap((function _callee14$(w){for(;;)switch(w.prev=w.next){case 0:if(!this.data.pushButton){w.next=2;break}return w.abrupt("return",annotation_get(annotation_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,r,o,c,!1,u));case 2:h=null;d=null;if(u){g=u.get(this.data.id);h=g?g.value:null;d=g?g.rotation:null}if(null!==h||!this.appearance){w.next=7;break}return w.abrupt("return",annotation_get(annotation_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,r,o,c,l,u));case 7:null==h&&(h=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);if(!(y=h?this.checkedAppearance:this.uncheckedAppearance)){w.next=18;break}m=this.appearance;v=y.dict.getArray("Matrix")||t;d&&y.dict.set("Matrix",this.getRotationMatrix(u));this.appearance=y;_=annotation_get(annotation_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,r,o,c,l,u);this.appearance=m;y.dict.set("Matrix",v);return w.abrupt("return",_);case 18:return w.abrupt("return",{opList:new Kc,separateForm:!1,separateCanvas:!1});case 19:case"end":return w.stop()}}),_callee14,this)}))),function getOperatorList(t,r,o,c,l){return u.apply(this,arguments)})},{key:"save",value:(l=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee15(t,r,o){return annotation_regeneratorRuntime().wrap((function _callee15$(c){for(;;)switch(c.prev=c.next){case 0:if(!this.data.checkBox){c.next=2;break}return c.abrupt("return",this._saveCheckbox(t,r,o));case 2:if(!this.data.radioButton){c.next=4;break}return c.abrupt("return",this._saveRadioButton(t,r,o));case 4:return c.abrupt("return",null);case 5:case"end":return c.stop()}}),_callee15,this)}))),function save(t,r,o){return l.apply(this,arguments)})},{key:"_saveCheckbox",value:(c=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee16(t,r,o){var c,l,u,h,d,g,y,m;return annotation_regeneratorRuntime().wrap((function _callee16$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:c=o.get(this.data.id);l=null==c?void 0:c.rotation,u=null==c?void 0:c.value;if(void 0!==l){r.next=10;break}if(void 0!==u){r.next=7;break}return r.abrupt("return",null);case 7:if(this.data.fieldValue===this.data.exportValue!==u){r.next=10;break}return r.abrupt("return",null);case 10:if((h=t.xref.fetchIfRef(this.ref))instanceof qr){r.next=13;break}return r.abrupt("return",null);case 13:void 0===l&&(l=this.rotation);void 0===u&&(u=this.data.fieldValue===this.data.exportValue);d={path:this.data.fieldName,value:u?this.data.exportValue:""};g=Ur.get(u?this.data.exportValue:"Off");h.set("V",g);h.set("AS",g);h.set("M","D:".concat(getModificationDate()));(y=this._getMKDict(l))&&h.set("MK",y);m=[];r.next=25;return writeObject(this.ref,h,m,t.xref);case 25:return r.abrupt("return",[{ref:this.ref,data:m.join(""),xfa:d}]);case 26:case"end":return r.stop()}}),_callee16,this)}))),function _saveCheckbox(t,r,o){return c.apply(this,arguments)})},{key:"_saveRadioButton",value:(o=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee17(t,r,o){var c,l,u,h,d,g,y,m,v,_,w;return annotation_regeneratorRuntime().wrap((function _callee17$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:c=o.get(this.data.id);l=null==c?void 0:c.rotation,u=null==c?void 0:c.value;if(void 0!==l){r.next=10;break}if(void 0!==u){r.next=7;break}return r.abrupt("return",null);case 7:if(this.data.fieldValue===this.data.buttonValue!==u){r.next=10;break}return r.abrupt("return",null);case 10:if((h=t.xref.fetchIfRef(this.ref))instanceof qr){r.next=13;break}return r.abrupt("return",null);case 13:void 0===u&&(u=this.data.fieldValue===this.data.buttonValue);void 0===l&&(l=this.rotation);d={path:this.data.fieldName,value:u?this.data.buttonValue:""};g=Ur.get(u?this.data.buttonValue:"Off");y=[];m=null;if(!u){r.next=30;break}if(!(this.parent instanceof zr)){r.next=29;break}(v=t.xref.fetch(this.parent)).set("V",g);r.next=25;return writeObject(this.parent,v,y,t.xref);case 25:m=y.join("");y.length=0;r.next=30;break;case 29:this.parent instanceof qr&&this.parent.set("V",g);case 30:h.set("AS",g);h.set("M","D:".concat(getModificationDate()));(_=this._getMKDict(l))&&h.set("MK",_);r.next=36;return writeObject(this.ref,h,y,t.xref);case 36:w=[{ref:this.ref,data:y.join(""),xfa:d}];m&&w.push({ref:this.parent,data:m,xfa:null});return r.abrupt("return",w);case 39:case"end":return r.stop()}}),_callee17,this)}))),function _saveRadioButton(t,r,c){return o.apply(this,arguments)})},{key:"_getDefaultCheckedAppearance",value:function _getDefaultCheckedAppearance(t,r){var o,c,l=this.data.rect[2]-this.data.rect[0],u=this.data.rect[3]-this.data.rect[1],h=[0,0,l,u],d=.8*Math.min(l,u);if("check"===r){o={width:.755*d,height:.705*d};c="3"}else if("disc"===r){o={width:.791*d,height:.705*d};c="l"}else unreachable("_getDefaultCheckedAppearance - unsupported type: ".concat(r));var g=numberToString((l-o.width)/2),y=numberToString((u-o.height)/2),m="q BT /PdfJsZaDb ".concat(d," Tf 0 g ").concat(g," ").concat(y," Td (").concat(c,") Tj ET Q"),v=new qr(t.xref);v.set("FormType",1);v.set("Subtype",Ur.get("Form"));v.set("Type",Ur.get("XObject"));v.set("BBox",h);v.set("Matrix",[1,0,0,1,0,0]);v.set("Length",m.length);var _=new qr(t.xref),w=new qr(t.xref);w.set("PdfJsZaDb",this.fallbackFontDict);_.set("Font",w);v.set("Resources",_);this.checkedAppearance=new rn(m);this.checkedAppearance.dict=v;this._streams.push(this.checkedAppearance)}},{key:"_processCheckBox",value:function _processCheckBox(t){var r=t.dict.get("AP");if(r instanceof qr){var o=r.get("N");if(o instanceof qr){var c=this._decodeFormValue(t.dict.get("AS"));"string"==typeof c&&(this.data.fieldValue=c);var l=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",u=o.getKeys();if(0===u.length)u.push("Off",l);else if(1===u.length)"Off"===u[0]?u.push(l):u.unshift("Off");else if(u.includes(l)){u.length=0;u.push("Off",l)}else{var h=u.find((function(t){return"Off"!==t}));u.length=0;u.push("Off",h)}u.includes(this.data.fieldValue)||(this.data.fieldValue="Off");this.data.exportValue=u[1];var d=o.get(this.data.exportValue);this.checkedAppearance=d instanceof Xr?d:null;var g=o.get("Off");this.uncheckedAppearance=g instanceof Xr?g:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}},{key:"_processRadioButton",value:function _processRadioButton(t){this.data.buttonValue=null;var r=t.dict.get("Parent");if(r instanceof qr){this.parent=t.dict.getRaw("Parent");var o=r.get("V");o instanceof Ur&&(this.data.fieldValue=this._decodeFormValue(o))}var c=t.dict.get("AP");if(c instanceof qr){var l=c.get("N");if(l instanceof qr){var u,h=annotation_createForOfIteratorHelper(l.getKeys());try{for(h.s();!(u=h.n()).done;){var d=u.value;if("Off"!==d){this.data.buttonValue=this._decodeFormValue(d);break}}}catch(t){h.e(t)}finally{h.f()}var g=l.get(this.data.buttonValue);this.checkedAppearance=g instanceof Xr?g:null;var y=l.get("Off");this.uncheckedAppearance=y instanceof Xr?y:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}},{key:"_processPushButton",value:function _processPushButton(t){var r=t.dict,o=t.annotationGlobals;if(r.has("A")||r.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!r.has("A")&&!r.has("AA");su.parseDestDictionary({destDict:r,resultObj:this.data,docBaseUrl:o.baseUrl,docAttachments:o.attachments})}else warn("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function getFieldObject(){var t,r="button";if(this.data.checkBox){r="checkbox";t=this.data.exportValue}else if(this.data.radioButton){r="radiobutton";t=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:r}}},{key:"fallbackFontDict",get:function get(){var t=new qr;t.set("BaseFont",Ur.get("ZapfDingbats"));t.set("Type",Ur.get("FallbackType"));t.set("Subtype",Ur.get("FallbackType"));t.set("Encoding",Ur.get("ZapfDingbatsEncoding"));return shadow(this,"fallbackFontDict",t)}}]);return ButtonWidgetAnnotation}(zv),Xv=function(t){annotation_inherits(ChoiceWidgetAnnotation,t);var r,o=annotation_createSuper(ChoiceWidgetAnnotation);function ChoiceWidgetAnnotation(t){var r;annotation_classCallCheck(this,ChoiceWidgetAnnotation);r=o.call(this,t);var c=t.dict,l=t.xref;r.indices=c.getArray("I");r.hasIndices=Array.isArray(r.indices)&&r.indices.length>0;r.data.options=[];var u=getInheritableProperty({dict:c,key:"Opt"});if(Array.isArray(u))for(var h=0,d=u.length;h<d;h++){var g=l.fetchIfRef(u[h]),y=Array.isArray(g);r.data.options[h]={exportValue:r._decodeFormValue(y?l.fetchIfRef(g[0]):g),displayValue:r._decodeFormValue(y?l.fetchIfRef(g[1]):g)}}if(r.hasIndices){r.data.fieldValue=[];var m,v=r.data.options.length,_=annotation_createForOfIteratorHelper(r.indices);try{for(_.s();!(m=_.n()).done;){var w=m.value;Number.isInteger(w)&&w>=0&&w<v&&r.data.fieldValue.push(r.data.options[w].exportValue)}}catch(t){_.e(t)}finally{_.f()}}else"string"==typeof r.data.fieldValue?r.data.fieldValue=[r.data.fieldValue]:r.data.fieldValue||(r.data.fieldValue=[]);r.data.combo=r.hasFieldFlag(ye);r.data.multiSelect=r.hasFieldFlag(ve);r._hasText=!0;return r}annotation_createClass(ChoiceWidgetAnnotation,[{key:"getFieldObject",value:function getFieldObject(){var t=this.data.combo?"combobox":"listbox",r=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:r,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}},{key:"amendSavedDict",value:function amendSavedDict(t,r){var o;if(this.hasIndices){var c=null==t||null===(o=t.get(this.data.id))||void 0===o?void 0:o.value;Array.isArray(c)||(c=[c]);for(var l=[],u=this.data.options,h=0,d=0,g=u.length;h<g;h++)if(u[h].exportValue===c[d]){l.push(h);d+=1}r.set("I",l)}}},{key:"_getAppearance",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee18(t,r,o,l){var u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K,Y,J,$,Z,Q,ee,te,re;return annotation_regeneratorRuntime().wrap((function _callee18$(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!this.data.combo){ne.next=2;break}return ne.abrupt("return",annotation_get(annotation_getPrototypeOf(ChoiceWidgetAnnotation.prototype),"_getAppearance",this).call(this,t,r,o,l));case 2:if(d=null==l?void 0:l.get(this.data.id)){h=d.rotation;u=d.value}if(void 0!==h||void 0!==u||this._needAppearances){ne.next=6;break}return ne.abrupt("return",null);case 6:void 0===u?u=this.data.fieldValue:Array.isArray(u)||(u=[u]);g=1;y=2;m=this.data.rect[3]-this.data.rect[1];v=this.data.rect[2]-this.data.rect[0];if(90===h||270===h){v=(_=[m,v])[0];m=_[1]}w=this.data.options.length;k=[];for(x=0;x<w;x++){S=this.data.options[x].exportValue;u.includes(S)&&k.push(x)}this._defaultAppearance||(this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance="/Helvetica 0 Tf 0 g"));ne.next=18;return zv._getFontData(t,r,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 18:C=ne.sent;if(T=this.data.defaultAppearanceData.fontSize)O=this._defaultAppearance;else{E=(m-g)/w;j=-1;M=annotation_createForOfIteratorHelper(this.data.options);try{for(M.s();!(L=M.n()).done;){D=L.value.displayValue;if((N=this._getTextWidth(D,C))>j){j=N;R=D}}}catch(t){M.e(t)}finally{M.f()}U=this._computeFontSize(E,v-2*y,R,C,-1);G=annotation_slicedToArray(U,2);O=G[0];T=G[1]}q=((H=T*c)-T)/2;z=Math.floor(m/H);W=0;if(k.length>0){V=Math.min.apply(Math,k);X=Math.max.apply(Math,k);(W=Math.max(0,X-z+1))>V&&(W=V)}K=Math.min(W+z+1,w);Y=["/Tx BMC q","1 1 ".concat(v," ").concat(m," re W n")];if(k.length){Y.push("0.600006 0.756866 0.854904 rg");J=annotation_createForOfIteratorHelper(k);try{for(J.s();!($=J.n()).done;){Z=$.value;W<=Z&&Z<K&&Y.push("1 ".concat(m-(Z-W+1)*H," ").concat(v," ").concat(H," re f"))}}catch(t){J.e(t)}finally{J.f()}}Y.push("BT",O,"1 0 0 1 0 ".concat(m," Tm"));Q={shift:0};for(ee=W;ee<K;ee++){te=this.data.options[ee].displayValue;re=ee===W?q:0;Y.push(this._renderText(te,C,T,v,0,Q,y,-H+re))}Y.push("ET Q EMC");return ne.abrupt("return",Y.join("\n"));case 34:case"end":return ne.stop()}}),_callee18,this)}))),function _getAppearance(t,o,c,l){return r.apply(this,arguments)})}]);return ChoiceWidgetAnnotation}(zv),Kv=function(t){annotation_inherits(SignatureWidgetAnnotation,t);var r=annotation_createSuper(SignatureWidgetAnnotation);function SignatureWidgetAnnotation(t){var o;annotation_classCallCheck(this,SignatureWidgetAnnotation);(o=r.call(this,t)).data.fieldValue=null;o.data.hasOwnCanvas=o.data.noRotate;o.data.noHTML=!o.data.hasOwnCanvas;return o}annotation_createClass(SignatureWidgetAnnotation,[{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}]);return SignatureWidgetAnnotation}(zv),Yv=function(t){annotation_inherits(TextAnnotation,t);var r=annotation_createSuper(TextAnnotation);function TextAnnotation(t){var o;annotation_classCallCheck(this,TextAnnotation);(o=r.call(this,t)).data.noRotate=!0;o.data.hasOwnCanvas=o.data.noRotate;o.data.noHTML=!1;var c=t.dict;o.data.annotationType=L;if(o.data.hasAppearance)o.data.name="NoIcon";else{o.data.rect[1]=o.data.rect[3]-22;o.data.rect[2]=o.data.rect[0]+22;o.data.name=c.has("Name")?c.get("Name").name:"Note"}if(c.has("State")){o.data.state=c.get("State")||null;o.data.stateModel=c.get("StateModel")||null}else{o.data.state=null;o.data.stateModel=null}return o}return annotation_createClass(TextAnnotation)}(qv),Jv=function(t){annotation_inherits(LinkAnnotation,t);var r=annotation_createSuper(LinkAnnotation);function LinkAnnotation(t){var o,c;annotation_classCallCheck(this,LinkAnnotation);c=r.call(this,t);var l=t.dict,u=t.annotationGlobals;c.data.annotationType=D;var h=getQuadPoints(l,c.rectangle);h&&(c.data.quadPoints=h);(o=c.data).borderColor||(o.borderColor=c.data.color);su.parseDestDictionary({destDict:l,resultObj:c.data,docBaseUrl:u.baseUrl,docAttachments:u.attachments});return c}return annotation_createClass(LinkAnnotation)}(Gv),$v=function(t){annotation_inherits(PopupAnnotation,t);var r=annotation_createSuper(PopupAnnotation);function PopupAnnotation(t){var o;annotation_classCallCheck(this,PopupAnnotation);o=r.call(this,t);var c=t.dict;o.data.annotationType=Z;o.data.noHTML=!1;o.data.rect[0]!==o.data.rect[2]&&o.data.rect[1]!==o.data.rect[3]||(o.data.rect=null);var l=c.get("Parent");if(!l){warn("Popup annotation has a missing or invalid parent annotation.");return annotation_possibleConstructorReturn(o)}var u=l.getArray("Rect");o.data.parentRect=Array.isArray(u)&&4===u.length?Or.normalizeRect(u):null;isName(l.get("RT"),te)&&(l=l.get("IRT"));if(l.has("M")){o.setModificationDate(l.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;if(l.has("C")){o.setColor(l.getArray("C"));o.data.color=o.color}else o.data.color=null;if(!o.viewable){var h=l.get("F");o._isViewable(h)&&o.setFlags(h)}o.setTitle(l.get("T"));o.data.titleObj=o._title;o.setContents(l.get("Contents"));o.data.contentsObj=o._contents;l.has("RC")&&(o.data.richText=Nv.getRichTextAsHtml(l.get("RC")));o.data.open=!!c.get("Open");return o}return annotation_createClass(PopupAnnotation)}(Gv),Zv=function(t){annotation_inherits(FreeTextAnnotation,t);var r,o=annotation_createSuper(FreeTextAnnotation);function FreeTextAnnotation(t){var r;annotation_classCallCheck(this,FreeTextAnnotation);(r=o.call(this,t)).data.hasOwnCanvas=!r.data.noHTML;r.data.noHTML=!1;var c=t.evaluatorOptions,l=t.xref;r.data.annotationType=N;r.setDefaultAppearance(t);if(r.appearance){var u=function parseAppearanceStream(t,r,o){return new ll(t,r,o).parse()}(r.appearance,c,l),h=u.fontColor,d=u.fontSize;r.data.defaultAppearanceData.fontColor=h;r.data.defaultAppearanceData.fontSize=d||10}else if(r._isOffscreenCanvasSupported){var g,y=t.dict.get("CA"),m=new fl(l,"sans-serif");(g=r.data.defaultAppearanceData).fontSize||(g.fontSize=10);var v=r.data.defaultAppearanceData,_=v.fontColor,w=v.fontSize;r.appearance=m.createAppearance(r._contents.str,r.rectangle,r.rotation,w,_,y);r._streams.push(r.appearance,fl.toUnicodeStream)}else warn("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.");return r}annotation_createClass(FreeTextAnnotation,[{key:"hasTextContent",get:function get(){return!!this.appearance}}],[{key:"createNewDict",value:function createNewDict(t,r,o){var c=o.apRef,l=o.ap,u=t.color,h=t.fontSize,d=t.rect,g=t.rotation,y=t.user,m=t.value,v=new qr(r);v.set("Type",Ur.get("Annot"));v.set("Subtype",Ur.get("FreeText"));v.set("CreationDate","D:".concat(getModificationDate()));v.set("Rect",d);var _="/Helv ".concat(h," Tf ").concat(getPdfColor(u,!0));v.set("DA",_);v.set("Contents",isAscii(m)?m:stringToUTF16String(m,!0));v.set("F",4);v.set("Border",[0,0,0]);v.set("Rotate",g);y&&v.set("T",isAscii(y)?y:stringToUTF16String(y,!0));if(c||l){var w=new qr(r);v.set("AP",w);c?w.set("N",c):w.set("N",l)}return v}},{key:"createNewAppearanceStream",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee19(t,r,o){var l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K,Y,J,$,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce,le,ue,fe,he,pe;return annotation_regeneratorRuntime().wrap((function _callee19$(de){for(;;)switch(de.prev=de.next){case 0:l=o.baseFontRef,u=o.evaluator,h=o.task;d=t.color,g=t.fontSize,y=t.rect,m=t.rotation,v=t.value;_=new qr(r);w=new qr(r);if(l)w.set("Helv",l);else{(k=new qr(r)).set("BaseFont",Ur.get("Helvetica"));k.set("Type",Ur.get("Font"));k.set("Subtype",Ur.get("Type1"));k.set("Encoding",Ur.get("WinAnsiEncoding"));w.set("Helv",k)}_.set("Font",w);de.next=8;return zv._getFontData(u,h,{fontName:"Helv",fontSize:g},_);case 8:x=de.sent;S=annotation_slicedToArray(y,4),C=S[0],O=S[1],T=S[2],E=S[3];j=T-C;R=E-O;if(m%180!=0){j=(M=[R,j])[0];R=M[1]}L=v.split("\n");D=g/1e3;N=-1/0;U=[];G=annotation_createForOfIteratorHelper(L);de.prev=18;G.s();case 20:if((H=G.n()).done){de.next=34;break}q=H.value;if(!((z=x.encodeString(q)).length>1)){de.next=25;break}return de.abrupt("return",null);case 25:q=z.join("");U.push(q);W=0;V=x.charsToGlyphs(q);X=annotation_createForOfIteratorHelper(V);try{for(X.s();!(K=X.n()).done;){Y=K.value;W+=Y.width*D}}catch(t){X.e(t)}finally{X.f()}N=Math.max(N,W);case 32:de.next=20;break;case 34:de.next=39;break;case 36:de.prev=36;de.t0=de.catch(18);G.e(de.t0);case 39:de.prev=39;G.f();return de.finish(39);case 42:J=1;N>j&&(J=j/N);$=1;Q=1*g;(ee=(Z=c*g)*L.length)>R&&($=R/ee);te=Math.min(J,$);re=g*te;de.t1=m;de.next=0===de.t1?54:90===de.t1?58:180===de.t1?62:270===de.t1?66:70;break;case 54:ie=[1,0,0,1];ae=[y[0],y[1],j,R];ne=[y[0],y[3]-Q];return de.abrupt("break",70);case 58:ie=[0,1,-1,0];ae=[y[1],-y[2],j,R];ne=[y[1],-y[0]-Q];return de.abrupt("break",70);case 62:ie=[-1,0,0,-1];ae=[-y[2],-y[3],j,R];ne=[-y[2],-y[1]-Q];return de.abrupt("break",70);case 66:ie=[0,-1,1,0];ae=[-y[3],y[0],j,R];ne=[-y[3],y[2]-Q];return de.abrupt("break",70);case 70:(oe=["q","".concat(ie.join(" ")," 0 0 cm"),"".concat(ae.join(" ")," re W n"),"BT","".concat(getPdfColor(d,!0)),"0 Tc /Helv ".concat(numberToString(re)," Tf")]).push("".concat(ne.join(" ")," Td (").concat(escapeString(U[0]),") Tj"));se=numberToString(Z);for(ce=1,le=U.length;ce<le;ce++){ue=U[ce];oe.push("0 -".concat(se," Td (").concat(escapeString(ue),") Tj"))}oe.push("ET","Q");fe=oe.join("\n");(he=new qr(r)).set("FormType",1);he.set("Subtype",Ur.get("Form"));he.set("Type",Ur.get("XObject"));he.set("BBox",y);he.set("Resources",_);he.set("Matrix",[1,0,0,1,-y[0],-y[1]]);(pe=new rn(fe)).dict=he;return de.abrupt("return",pe);case 86:case"end":return de.stop()}}),_callee19,null,[[18,36,39,42]])}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return FreeTextAnnotation}(qv),Qv=function(t){annotation_inherits(LineAnnotation,t);var r=annotation_createSuper(LineAnnotation);function LineAnnotation(t){var o;annotation_classCallCheck(this,LineAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=U;o.data.hasOwnCanvas=o.data.noRotate;o.data.noHTML=!1;var u=c.getArray("L");o.data.lineCoordinates=Or.normalizeRect(u);o.setLineEndings(c.getArray("LE"));o.data.lineEndings=o.lineEndings;if(!o.appearance){var h=o.color?getPdfColorArray(o.color):[0,0,0],d=c.get("CA"),g=getRgbColor(c.getArray("IC"),null),y=g?getPdfColorArray(g):null,m=y?d:null,v=o.borderStyle.width||1,_=2*v,w=[o.data.lineCoordinates[0]-_,o.data.lineCoordinates[1]-_,o.data.lineCoordinates[2]+_,o.data.lineCoordinates[3]+_];Or.intersect(o.rectangle,w)||(o.rectangle=w);o._setDefaultAppearance({xref:l,extra:"".concat(v," w"),strokeColor:h,fillColor:y,strokeAlpha:d,fillAlpha:m,pointsCallback:function pointsCallback(t,r){t.push("".concat(u[0]," ").concat(u[1]," m"),"".concat(u[2]," ").concat(u[3]," l"),"S");return[r[0].x-v,r[1].x+v,r[3].y-v,r[1].y+v]}})}return o}return annotation_createClass(LineAnnotation)}(qv),eb=function(t){annotation_inherits(SquareAnnotation,t);var r=annotation_createSuper(SquareAnnotation);function SquareAnnotation(t){var o;annotation_classCallCheck(this,SquareAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=G;o.data.hasOwnCanvas=o.data.noRotate;o.data.noHTML=!1;if(!o.appearance){var u=o.color?getPdfColorArray(o.color):[0,0,0],h=c.get("CA"),d=getRgbColor(c.getArray("IC"),null),g=d?getPdfColorArray(d):null,y=g?h:null;if(0===o.borderStyle.width&&!g)return annotation_possibleConstructorReturn(o);o._setDefaultAppearance({xref:l,extra:"".concat(o.borderStyle.width," w"),strokeColor:u,fillColor:g,strokeAlpha:h,fillAlpha:y,pointsCallback:function pointsCallback(t,r){var c=r[2].x+o.borderStyle.width/2,l=r[2].y+o.borderStyle.width/2,u=r[3].x-r[2].x-o.borderStyle.width,h=r[1].y-r[3].y-o.borderStyle.width;t.push("".concat(c," ").concat(l," ").concat(u," ").concat(h," re"));g?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return annotation_createClass(SquareAnnotation)}(qv),tb=function(t){annotation_inherits(CircleAnnotation,t);var r=annotation_createSuper(CircleAnnotation);function CircleAnnotation(t){var o;annotation_classCallCheck(this,CircleAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=H;if(!o.appearance){var u=o.color?getPdfColorArray(o.color):[0,0,0],h=c.get("CA"),d=getRgbColor(c.getArray("IC"),null),g=d?getPdfColorArray(d):null,y=g?h:null;if(0===o.borderStyle.width&&!g)return annotation_possibleConstructorReturn(o);var m=4/3*Math.tan(Math.PI/8);o._setDefaultAppearance({xref:l,extra:"".concat(o.borderStyle.width," w"),strokeColor:u,fillColor:g,strokeAlpha:h,fillAlpha:y,pointsCallback:function pointsCallback(t,r){var c=r[0].x+o.borderStyle.width/2,l=r[0].y-o.borderStyle.width/2,u=r[3].x-o.borderStyle.width/2,h=r[3].y+o.borderStyle.width/2,d=c+(u-c)/2,y=l+(h-l)/2,v=(u-c)/2*m,_=(h-l)/2*m;t.push("".concat(d," ").concat(h," m"),"".concat(d+v," ").concat(h," ").concat(u," ").concat(y+_," ").concat(u," ").concat(y," c"),"".concat(u," ").concat(y-_," ").concat(d+v," ").concat(l," ").concat(d," ").concat(l," c"),"".concat(d-v," ").concat(l," ").concat(c," ").concat(y-_," ").concat(c," ").concat(y," c"),"".concat(c," ").concat(y+_," ").concat(d-v," ").concat(h," ").concat(d," ").concat(h," c"),"h");g?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return annotation_createClass(CircleAnnotation)}(qv),rb=function(t){annotation_inherits(PolylineAnnotation,t);var r=annotation_createSuper(PolylineAnnotation);function PolylineAnnotation(t){var o;annotation_classCallCheck(this,PolylineAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=z;o.data.hasOwnCanvas=o.data.noRotate;o.data.noHTML=!1;o.data.vertices=[];if(!(annotation_assertThisInitialized(o)instanceof nb)){o.setLineEndings(c.getArray("LE"));o.data.lineEndings=o.lineEndings}var u=c.getArray("Vertices");if(!Array.isArray(u))return annotation_possibleConstructorReturn(o);for(var h=0,d=u.length;h<d;h+=2)o.data.vertices.push({x:u[h],y:u[h+1]});if(!o.appearance){var g,y=o.color?getPdfColorArray(o.color):[0,0,0],m=c.get("CA"),v=o.borderStyle.width||1,_=2*v,w=[1/0,1/0,-1/0,-1/0],k=annotation_createForOfIteratorHelper(o.data.vertices);try{for(k.s();!(g=k.n()).done;){var x=g.value;w[0]=Math.min(w[0],x.x-_);w[1]=Math.min(w[1],x.y-_);w[2]=Math.max(w[2],x.x+_);w[3]=Math.max(w[3],x.y+_)}}catch(t){k.e(t)}finally{k.f()}Or.intersect(o.rectangle,w)||(o.rectangle=w);o._setDefaultAppearance({xref:l,extra:"".concat(v," w"),strokeColor:y,strokeAlpha:m,pointsCallback:function pointsCallback(t,r){for(var c=o.data.vertices,l=0,u=c.length;l<u;l++)t.push("".concat(c[l].x," ").concat(c[l].y," ").concat(0===l?"m":"l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return annotation_createClass(PolylineAnnotation)}(qv),nb=function(t){annotation_inherits(PolygonAnnotation,t);var r=annotation_createSuper(PolygonAnnotation);function PolygonAnnotation(t){var o;annotation_classCallCheck(this,PolygonAnnotation);(o=r.call(this,t)).data.annotationType=q;return o}return annotation_createClass(PolygonAnnotation)}(rb),ab=function(t){annotation_inherits(CaretAnnotation,t);var r=annotation_createSuper(CaretAnnotation);function CaretAnnotation(t){var o;annotation_classCallCheck(this,CaretAnnotation);(o=r.call(this,t)).data.annotationType=J;return o}return annotation_createClass(CaretAnnotation)}(qv),ib=function(t){annotation_inherits(InkAnnotation,t);var r,o=annotation_createSuper(InkAnnotation);function InkAnnotation(t){var r;annotation_classCallCheck(this,InkAnnotation);(r=o.call(this,t)).data.hasOwnCanvas=r.data.noRotate;r.data.noHTML=!1;var c=t.dict,l=t.xref;r.data.annotationType=$;r.data.inkLists=[];var u=c.getArray("InkList");if(!Array.isArray(u))return annotation_possibleConstructorReturn(r);for(var h=0,d=u.length;h<d;++h){r.data.inkLists.push([]);for(var g=0,y=u[h].length;g<y;g+=2)r.data.inkLists[h].push({x:l.fetchIfRef(u[h][g]),y:l.fetchIfRef(u[h][g+1])})}if(!r.appearance){var m,v=r.color?getPdfColorArray(r.color):[0,0,0],_=c.get("CA"),w=r.borderStyle.width||1,k=2*w,x=[1/0,1/0,-1/0,-1/0],S=annotation_createForOfIteratorHelper(r.data.inkLists);try{for(S.s();!(m=S.n()).done;){var C,O=annotation_createForOfIteratorHelper(m.value);try{for(O.s();!(C=O.n()).done;){var T=C.value;x[0]=Math.min(x[0],T.x-k);x[1]=Math.min(x[1],T.y-k);x[2]=Math.max(x[2],T.x+k);x[3]=Math.max(x[3],T.y+k)}}catch(t){O.e(t)}finally{O.f()}}}catch(t){S.e(t)}finally{S.f()}Or.intersect(r.rectangle,x)||(r.rectangle=x);r._setDefaultAppearance({xref:l,extra:"".concat(w," w"),strokeColor:v,strokeAlpha:_,pointsCallback:function pointsCallback(t,o){var c,l=annotation_createForOfIteratorHelper(r.data.inkLists);try{for(l.s();!(c=l.n()).done;){for(var u=c.value,h=0,d=u.length;h<d;h++)t.push("".concat(u[h].x," ").concat(u[h].y," ").concat(0===h?"m":"l"));t.push("S")}}catch(t){l.e(t)}finally{l.f()}return[o[0].x,o[1].x,o[3].y,o[1].y]}})}return r}annotation_createClass(InkAnnotation,null,[{key:"createNewDict",value:function createNewDict(t,r,o){var c=o.apRef,l=o.ap,u=t.color,h=t.opacity,d=t.paths,g=t.rect,y=t.rotation,m=t.thickness,v=new qr(r);v.set("Type",Ur.get("Annot"));v.set("Subtype",Ur.get("Ink"));v.set("CreationDate","D:".concat(getModificationDate()));v.set("Rect",g);v.set("InkList",d.map((function(t){return t.points})));v.set("F",4);v.set("Rotate",y);var _=new qr(r);v.set("BS",_);_.set("W",m);v.set("C",Array.from(u,(function(t){return t/255})));v.set("CA",h);var w=new qr(r);v.set("AP",w);c?w.set("N",c):w.set("N",l);return v}},{key:"createNewAppearanceStream",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee20(t,r,o){var c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j;return annotation_regeneratorRuntime().wrap((function _callee20$(o){for(;;)switch(o.prev=o.next){case 0:c=t.color,l=t.rect,u=t.paths,h=t.thickness,d=t.opacity;g=["".concat(h," w 1 J 1 j"),"".concat(getPdfColor(c,!1))];1!==d&&g.push("/R0 gs");y=[];m=annotation_createForOfIteratorHelper(u);try{for(m.s();!(v=m.n()).done;){_=v.value.bezier;y.length=0;y.push("".concat(numberToString(_[0])," ").concat(numberToString(_[1])," m"));for(w=2,k=_.length;w<k;w+=6){x=_.slice(w,w+6).map(numberToString).join(" ");y.push("".concat(x," c"))}y.push("S");g.push(y.join("\n"))}}catch(t){m.e(t)}finally{m.f()}S=g.join("\n");(C=new qr(r)).set("FormType",1);C.set("Subtype",Ur.get("Form"));C.set("Type",Ur.get("XObject"));C.set("BBox",l);C.set("Length",S.length);if(1!==d){O=new qr(r);T=new qr(r);(E=new qr(r)).set("CA",d);E.set("Type",Ur.get("ExtGState"));T.set("R0",E);O.set("ExtGState",T);C.set("Resources",O)}(j=new rn(S)).dict=C;return o.abrupt("return",j);case 17:case"end":return o.stop()}}),_callee20)}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return InkAnnotation}(qv),ob=function(t){annotation_inherits(HighlightAnnotation,t);var r,o=annotation_createSuper(HighlightAnnotation);function HighlightAnnotation(t){var r;annotation_classCallCheck(this,HighlightAnnotation);r=o.call(this,t);var c=t.dict,l=t.xref;r.data.annotationType=W;if(r.data.quadPoints=getQuadPoints(c,null)){var u,h=null===(u=r.appearance)||void 0===u?void 0:u.dict.get("Resources");if(!r.appearance||null==h||!h.has("ExtGState")){r.appearance&&warn("HighlightAnnotation - ignoring built-in appearance stream.");var d=r.color?getPdfColorArray(r.color):[1,1,0],g=c.get("CA");r._setDefaultAppearance({xref:l,fillColor:d,blendMode:"Multiply",fillAlpha:g,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[0].x," ").concat(r[0].y," m"),"".concat(r[1].x," ").concat(r[1].y," l"),"".concat(r[3].x," ").concat(r[3].y," l"),"".concat(r[2].x," ").concat(r[2].y," l"),"f");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else r.data.popupRef=null;return r}annotation_createClass(HighlightAnnotation,null,[{key:"createNewDict",value:function createNewDict(t,r,o){var c=o.apRef,l=o.ap,u=t.color,h=t.opacity,d=t.rect,g=t.rotation,y=t.user,m=t.quadPoints,v=new qr(r);v.set("Type",Ur.get("Annot"));v.set("Subtype",Ur.get("Highlight"));v.set("CreationDate","D:".concat(getModificationDate()));v.set("Rect",d);v.set("F",4);v.set("Border",[0,0,0]);v.set("Rotate",g);v.set("QuadPoints",m);v.set("C",Array.from(u,(function(t){return t/255})));v.set("CA",h);y&&v.set("T",isAscii(y)?y:stringToUTF16String(y,!0));if(c||l){var _=new qr(r);v.set("AP",_);_.set("N",c||l)}return v}},{key:"createNewAppearanceStream",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee21(t,r,o){var c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T;return annotation_regeneratorRuntime().wrap((function _callee21$(o){for(;;)switch(o.prev=o.next){case 0:c=t.color,l=t.rect,u=t.outlines,h=t.opacity;d=["".concat(getPdfColor(c,!0)),"/R0 gs"];g=[];y=annotation_createForOfIteratorHelper(u);try{for(y.s();!(m=y.n()).done;){v=m.value;g.length=0;g.push("".concat(numberToString(v[0])," ").concat(numberToString(v[1])," m"));for(_=2,w=v.length;_<w;_+=2)g.push("".concat(numberToString(v[_])," ").concat(numberToString(v[_+1])," l"));g.push("h");d.push(g.join("\n"))}}catch(t){y.e(t)}finally{y.f()}d.push("f*");k=d.join("\n");(x=new qr(r)).set("FormType",1);x.set("Subtype",Ur.get("Form"));x.set("Type",Ur.get("XObject"));x.set("BBox",l);x.set("Length",k.length);S=new qr(r);C=new qr(r);S.set("ExtGState",C);x.set("Resources",S);O=new qr(r);C.set("R0",O);O.set("BM",Ur.get("Multiply"));if(1!==h){O.set("ca",h);O.set("Type",Ur.get("ExtGState"))}(T=new rn(k)).dict=x;return o.abrupt("return",T);case 24:case"end":return o.stop()}}),_callee21)}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return HighlightAnnotation}(qv),sb=function(t){annotation_inherits(UnderlineAnnotation,t);var r=annotation_createSuper(UnderlineAnnotation);function UnderlineAnnotation(t){var o;annotation_classCallCheck(this,UnderlineAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=V;if(o.data.quadPoints=getQuadPoints(c,null)){if(!o.appearance){var u=o.color?getPdfColorArray(o.color):[0,0,0],h=c.get("CA");o._setDefaultAppearance({xref:l,extra:"[] 0 d 0.571 w",strokeColor:u,strokeAlpha:h,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[2].x," ").concat(r[2].y+1.3," m"),"".concat(r[3].x," ").concat(r[3].y+1.3," l"),"S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.popupRef=null;return o}return annotation_createClass(UnderlineAnnotation)}(qv),cb=function(t){annotation_inherits(SquigglyAnnotation,t);var r=annotation_createSuper(SquigglyAnnotation);function SquigglyAnnotation(t){var o;annotation_classCallCheck(this,SquigglyAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=X;if(o.data.quadPoints=getQuadPoints(c,null)){if(!o.appearance){var u=o.color?getPdfColorArray(o.color):[0,0,0],h=c.get("CA");o._setDefaultAppearance({xref:l,extra:"[] 0 d 1 w",strokeColor:u,strokeAlpha:h,pointsCallback:function pointsCallback(t,r){var o=(r[0].y-r[2].y)/6,c=o,l=r[2].x,u=r[2].y,h=r[3].x;t.push("".concat(l," ").concat(u+c," m"));do{l+=2;c=0===c?o:0;t.push("".concat(l," ").concat(u+c," l"))}while(l<h);t.push("S");return[r[2].x,h,u-2*o,u+2*o]}})}}else o.data.popupRef=null;return o}return annotation_createClass(SquigglyAnnotation)}(qv),lb=function(t){annotation_inherits(StrikeOutAnnotation,t);var r=annotation_createSuper(StrikeOutAnnotation);function StrikeOutAnnotation(t){var o;annotation_classCallCheck(this,StrikeOutAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref;o.data.annotationType=K;if(o.data.quadPoints=getQuadPoints(c,null)){if(!o.appearance){var u=o.color?getPdfColorArray(o.color):[0,0,0],h=c.get("CA");o._setDefaultAppearance({xref:l,extra:"[] 0 d 1 w",strokeColor:u,strokeAlpha:h,pointsCallback:function pointsCallback(t,r){t.push("".concat((r[0].x+r[2].x)/2," ")+"".concat((r[0].y+r[2].y)/2," m"),"".concat((r[1].x+r[3].x)/2," ")+"".concat((r[1].y+r[3].y)/2," l"),"S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.popupRef=null;return o}return annotation_createClass(StrikeOutAnnotation)}(qv),ub=function(t){annotation_inherits(StampAnnotation,t);var r,o,c=annotation_createSuper(StampAnnotation);function StampAnnotation(t){var r;annotation_classCallCheck(this,StampAnnotation);(r=c.call(this,t)).data.annotationType=Y;r.data.hasOwnCanvas=r.data.noRotate;r.data.noHTML=!1;return r}annotation_createClass(StampAnnotation,null,[{key:"createImage",value:(o=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee22(t,r){var o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E;return annotation_regeneratorRuntime().wrap((function _callee22$(j){for(;;)switch(j.prev=j.next){case 0:o=t.width,c=t.height;l=new OffscreenCanvas(o,c);(u=l.getContext("2d",{alpha:!0})).drawImage(t,0,0);h=u.getImageData(0,0,o,c).data;d=new Uint32Array(h.buffer);if(g=d.some(Ar.isLittleEndian?function(t){return t>>>24!=255}:function(t){return 255!=(255&t)})){u.fillStyle="white";u.fillRect(0,0,o,c);u.drawImage(t,0,0)}y=l.convertToBlob({type:"image/jpeg",quality:1}).then((function(t){return t.arrayBuffer()}));m=Ur.get("XObject");v=Ur.get("Image");(_=new qr(r)).set("Type",m);_.set("Subtype",v);_.set("BitsPerComponent",8);_.set("ColorSpace",Ur.get("DeviceRGB"));_.set("Filter",Ur.get("DCTDecode"));_.set("BBox",[0,0,o,c]);_.set("Width",o);_.set("Height",c);w=null;if(g){k=new Uint8Array(d.length);if(Ar.isLittleEndian)for(x=0,S=d.length;x<S;x++)k[x]=d[x]>>>24;else for(C=0,O=d.length;C<O;C++)k[C]=255&d[C];(T=new qr(r)).set("Type",m);T.set("Subtype",v);T.set("BitsPerComponent",8);T.set("ColorSpace",Ur.get("DeviceGray"));T.set("Width",o);T.set("Height",c);w=new tn(k,0,0,T)}j.t0=tn;j.next=25;return y;case 25:j.t1=j.sent;j.t2=_;E=new j.t0(j.t1,0,0,j.t2);return j.abrupt("return",{imageStream:E,smaskStream:w,width:o,height:c});case 29:case"end":return j.stop()}}),_callee22)}))),function createImage(t,r){return o.apply(this,arguments)})},{key:"createNewDict",value:function createNewDict(t,r,o){var c=o.apRef,l=o.ap,u=t.rect,h=t.rotation,d=t.user,g=new qr(r);g.set("Type",Ur.get("Annot"));g.set("Subtype",Ur.get("Stamp"));g.set("CreationDate","D:".concat(getModificationDate()));g.set("Rect",u);g.set("F",4);g.set("Border",[0,0,0]);g.set("Rotate",h);d&&g.set("T",isAscii(d)?d:stringToUTF16String(d,!0));if(c||l){var y=new qr(r);g.set("AP",y);c?y.set("N",c):y.set("N",l)}return g}},{key:"createNewAppearanceStream",value:(r=annotation_asyncToGenerator(annotation_regeneratorRuntime().mark((function _callee23(t,r,o){var c,l,u,h,d,g,y,m,v,_,w;return annotation_regeneratorRuntime().wrap((function _callee23$(k){for(;;)switch(k.prev=k.next){case 0:c=t.rotation;l=o.image,u=l.imageRef,h=l.width,d=l.height;g=new qr(r);y=new qr(r);g.set("XObject",y);y.set("Im0",u);m="q ".concat(h," 0 0 ").concat(d," 0 0 cm /Im0 Do Q");(v=new qr(r)).set("FormType",1);v.set("Subtype",Ur.get("Form"));v.set("Type",Ur.get("XObject"));v.set("BBox",[0,0,h,d]);v.set("Resources",g);if(c){_=core_utils_getRotationMatrix(c,h,d);v.set("Matrix",_)}(w=new rn(m)).dict=v;return k.abrupt("return",w);case 17:case"end":return k.stop()}}),_callee23)}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return StampAnnotation}(qv),fb=function(t){annotation_inherits(FileAttachmentAnnotation,t);var r=annotation_createSuper(FileAttachmentAnnotation);function FileAttachmentAnnotation(t){var o;annotation_classCallCheck(this,FileAttachmentAnnotation);o=r.call(this,t);var c=t.dict,l=t.xref,u=new gl(c.get("FS"),l);o.data.annotationType=Q;o.data.hasOwnCanvas=o.data.noRotate;o.data.noHTML=!1;o.data.file=u.serializable;var h=c.get("Name");o.data.name=h instanceof Ur?stringToPDFString(h.name):"PushPin";var d=c.get("ca");o.data.fillAlpha="number"==typeof d&&d>=0&&d<=1?d:null;return o}return annotation_createClass(FileAttachmentAnnotation)}(qv);function dataset_reader_typeof(t){return dataset_reader_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dataset_reader_typeof(t)}function dataset_reader_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function dataset_reader_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,dataset_reader_toPropertyKey(c.key),c)}}function dataset_reader_createClass(t,r,o){r&&dataset_reader_defineProperties(t.prototype,r);o&&dataset_reader_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function dataset_reader_toPropertyKey(t){var r=function dataset_reader_toPrimitive(t,r){if("object"!=dataset_reader_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=dataset_reader_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==dataset_reader_typeof(r)?r:String(r)}function dataset_reader_get(){dataset_reader_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function dataset_reader_superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=dataset_reader_getPrototypeOf(t)););return t}(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return dataset_reader_get.apply(this,arguments)}function dataset_reader_setPrototypeOf(t,r){dataset_reader_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return dataset_reader_setPrototypeOf(t,r)}function dataset_reader_createSuper(t){var r=function dataset_reader_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=dataset_reader_getPrototypeOf(t);if(r){var l=dataset_reader_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function dataset_reader_possibleConstructorReturn(t,r){if(r&&("object"===dataset_reader_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function dataset_reader_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function dataset_reader_getPrototypeOf(t){dataset_reader_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return dataset_reader_getPrototypeOf(t)}function decodeString(t){try{return stringToUTF8String(t)}catch(r){warn('UTF-8 decoding failed: "'.concat(r,'".'));return t}}var hb=function(t){!function dataset_reader_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&dataset_reader_setPrototypeOf(t,r)}(DatasetXMLParser,t);var r=dataset_reader_createSuper(DatasetXMLParser);function DatasetXMLParser(t){var o;dataset_reader_classCallCheck(this,DatasetXMLParser);(o=r.call(this,t)).node=null;return o}dataset_reader_createClass(DatasetXMLParser,[{key:"onEndElement",value:function onEndElement(t){var r=dataset_reader_get(dataset_reader_getPrototypeOf(DatasetXMLParser.prototype),"onEndElement",this).call(this,t);if(r&&"xfa:datasets"===t){this.node=r;throw new Error("Aborting DatasetXMLParser.")}}}]);return DatasetXMLParser}(Cl),pb=function(){function DatasetReader(t){dataset_reader_classCallCheck(this,DatasetReader);if(t.datasets)this.node=new Cl({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{var r=new hb({hasAttributes:!0});try{r.parseFromString(t["xdp:xdp"])}catch(t){}this.node=r.node}}dataset_reader_createClass(DatasetReader,[{key:"getValue",value:function getValue(t){if(!this.node||!t)return"";var r=this.node.searchNode(parseXFAPath(t),0);if(!r)return"";var o=r.firstChild;return"value"===(null==o?void 0:o.nodeName)?r.children.map((function(t){return decodeString(t.textContent)})):decodeString(r.textContent)}}]);return DatasetReader}();function xref_typeof(t){return xref_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xref_typeof(t)}function xref_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xref_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==xref_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(xref_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function xref_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function xref_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){xref_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){xref_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function xref_toConsumableArray(t){return function xref_arrayWithoutHoles(t){if(Array.isArray(t))return xref_arrayLikeToArray(t)}(t)||function xref_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xref_unsupportedIterableToArray(t)||function xref_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xref_slicedToArray(t,r){return function xref_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function xref_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||xref_unsupportedIterableToArray(t,r)||function xref_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xref_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return xref_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?xref_arrayLikeToArray(t,r):void 0}}function xref_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function xref_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,xref_toPropertyKey(c.key),c)}}function xref_toPropertyKey(t){var r=function xref_toPrimitive(t,r){if("object"!=xref_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=xref_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xref_typeof(r)?r:String(r)}function xref_classPrivateFieldInitSpec(t,r,o){!function xref_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.set(t,o)}function xref_classPrivateFieldSet(t,r,o){!function xref_classApplyDescriptorSet(t,r,o){if(r.set)r.set.call(t,o);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=o}}(t,xref_classExtractFieldDescriptor(t,r,"set"),o);return o}function xref_classPrivateFieldGet(t,r){return function xref_classApplyDescriptorGet(t,r){if(r.get)return r.get.call(t);return r.value}(t,xref_classExtractFieldDescriptor(t,r,"get"))}function xref_classExtractFieldDescriptor(t,r,o){if(!r.has(t))throw new TypeError("attempted to "+o+" private field on non-instance");return r.get(t)}var db=new WeakMap,gb=function(){function XRef(t,r){!function xref_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XRef);xref_classPrivateFieldInitSpec(this,db,{writable:!0,value:null});this.stream=t;this.pdfManager=r;this.entries=[];this._xrefStms=new Set;this._cacheMap=new Map;this._pendingRefs=new Wr;this._newPersistentRefNum=null;this._newTemporaryRefNum=null;this._persistentRefsCache=null}!function xref_createClass(t,r,o){r&&xref_defineProperties(t.prototype,r);o&&xref_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(XRef,[{key:"getNewPersistentRef",value:function getNewPersistentRef(t){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);var r=this._newPersistentRefNum++;this._cacheMap.set(r,t);return zr.get(r,0)}},{key:"getNewTemporaryRef",value:function getNewTemporaryRef(){if(null===this._newTemporaryRefNum){this._newTemporaryRefNum=this.entries.length||1;if(this._newPersistentRefNum){this._persistentRefsCache=new Map;for(var t=this._newTemporaryRefNum;t<this._newPersistentRefNum;t++){this._persistentRefsCache.set(t,this._cacheMap.get(t));this._cacheMap.delete(t)}}}return zr.get(this._newTemporaryRefNum++,0)}},{key:"resetNewTemporaryRef",value:function resetNewTemporaryRef(){this._newTemporaryRefNum=null;if(this._persistentRefsCache){var t,r=function xref_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=xref_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(this._persistentRefsCache);try{for(r.s();!(t=r.n()).done;){var o=xref_slicedToArray(t.value,2),c=o[0],l=o[1];this._cacheMap.set(c,l)}}catch(t){r.e(t)}finally{r.f()}}this._persistentRefsCache=null}},{key:"setStartXRef",value:function setStartXRef(t){this.startXRefQueue=[t]}},{key:"parse",value:function parse(){var t,r,o,c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(c){warn("Indexing all PDF objects");t=this.indexObjects()}else t=this.readXRef();t.assignXref(this);this.trailer=t;try{r=t.get("Encrypt")}catch(t){if(t instanceof Yr)throw t;warn('XRef.parse - Invalid "Encrypt" reference: "'.concat(t,'".'))}if(r instanceof qr){var l=t.get("ID"),u=null!=l&&l.length?l[0]:"";r.suppressEncryption=!0;this.encrypt=new Kl(r,u,this.pdfManager.password)}try{o=t.get("Root")}catch(t){if(t instanceof Yr)throw t;warn('XRef.parse - Invalid "Root" reference: "'.concat(t,'".'))}if(o instanceof qr)try{if(o.get("Pages")instanceof qr){this.root=o;return}}catch(t){if(t instanceof Yr)throw t;warn('XRef.parse - Invalid "Pages" reference: "'.concat(t,'".'))}if(!c)throw new Zr;throw new wr("Invalid Root reference.")}},{key:"processXRefTable",value:function processXRefTable(t){"tableState"in this||(this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2});if(!isCmd(this.readXRefTable(t),"trailer"))throw new Sr("Invalid XRef table: could not find trailer dictionary");var r=t.getObj();r instanceof qr||!r.dict||(r=r.dict);if(!(r instanceof qr))throw new Sr("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return r}},{key:"readXRefTable",value:function readXRefTable(t){var r,o=t.lexer.stream,c=this.tableState;o.pos=c.streamPos;t.buf1=c.parserBuf1;t.buf2=c.parserBuf2;for(;;){if(!("firstEntryNum"in c)||!("entryCount"in c)){if(isCmd(r=t.getObj(),"trailer"))break;c.firstEntryNum=r;c.entryCount=t.getObj()}var l=c.firstEntryNum,u=c.entryCount;if(!Number.isInteger(l)||!Number.isInteger(u))throw new Sr("Invalid XRef table: wrong types in subsection header");for(var h=c.entryNum;h<u;h++){c.streamPos=o.pos;c.entryNum=h;c.parserBuf1=t.buf1;c.parserBuf2=t.buf2;var d={};d.offset=t.getObj();d.gen=t.getObj();var g=t.getObj();if(g instanceof Gr)switch(g.cmd){case"f":d.free=!0;break;case"n":d.uncompressed=!0}if(!Number.isInteger(d.offset)||!Number.isInteger(d.gen)||!d.free&&!d.uncompressed)throw new Sr("Invalid entry in XRef subsection: ".concat(l,", ").concat(u));0===h&&d.free&&1===l&&(l=0);this.entries[h+l]||(this.entries[h+l]=d)}c.entryNum=0;c.streamPos=o.pos;c.parserBuf1=t.buf1;c.parserBuf2=t.buf2;delete c.firstEntryNum;delete c.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new Sr("Invalid XRef table: unexpected first object");return r}},{key:"processXRefStream",value:function processXRefStream(t){if(!("streamState"in this)){var r=t.dict,o=r.get("W"),c=r.get("Index");c||(c=[0,r.get("Size")]);this.streamState={entryRanges:c,byteWidths:o,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict}},{key:"readXRefStream",value:function readXRefStream(t){var r=this.streamState;t.pos=r.streamPos;for(var o=xref_slicedToArray(r.byteWidths,3),c=o[0],l=o[1],u=o[2],h=r.entryRanges;h.length>0;){var d=xref_slicedToArray(h,2),g=d[0],y=d[1];if(!Number.isInteger(g)||!Number.isInteger(y))throw new Sr("Invalid XRef range fields: ".concat(g,", ").concat(y));if(!Number.isInteger(c)||!Number.isInteger(l)||!Number.isInteger(u))throw new Sr("Invalid XRef entry fields length: ".concat(g,", ").concat(y));for(var m=r.entryNum;m<y;++m){r.entryNum=m;r.streamPos=t.pos;for(var v=0,_=0,w=0,k=0;k<c;++k){var x=t.getByte();if(-1===x)throw new Sr("Invalid XRef byteWidths 'type'.");v=v<<8|x}0===c&&(v=1);for(var S=0;S<l;++S){var C=t.getByte();if(-1===C)throw new Sr("Invalid XRef byteWidths 'offset'.");_=_<<8|C}for(var O=0;O<u;++O){var T=t.getByte();if(-1===T)throw new Sr("Invalid XRef byteWidths 'generation'.");w=w<<8|T}var E={};E.offset=_;E.gen=w;switch(v){case 0:E.free=!0;break;case 1:E.uncompressed=!0;break;case 2:break;default:throw new Sr("Invalid XRef entry type: ".concat(v))}this.entries[g+m]||(this.entries[g+m]=E)}r.entryNum=0;r.streamPos=t.pos;h.splice(0,2)}}},{key:"indexObjects",value:function indexObjects(){function readToken(t,r){for(var o="",c=t[r];10!==c&&13!==c&&60!==c&&!(++r>=t.length);){o+=String.fromCharCode(c);c=t[r]}return o}function skipUntil(t,r,o){for(var c=o.length,l=t.length,u=0;r<l;){for(var h=0;h<c&&t[r+h]===o[h];)++h;if(h>=c)break;r++;u++}return u}var t=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,r=/\b(startxref|\d+\s+\d+\s+obj)\b/g,o=/^(\d+)\s+(\d+)\s+obj\b/,c=new Uint8Array([116,114,97,105,108,101,114]),l=new Uint8Array([115,116,97,114,116,120,114,101,102]),u=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();var h=this.stream;h.pos=0;for(var d=h.getBytes(),g=bytesToString(d),y=d.length,m=h.start,v=[],_=[];m<y;){var w=d[m];if(9!==w&&10!==w&&13!==w&&32!==w)if(37!==w){var k=readToken(d,m),x=void 0;if(k.startsWith("xref")&&(4===k.length||/\s/.test(k[4]))){m+=skipUntil(d,m,c);v.push(m);m+=skipUntil(d,m,l)}else if(x=o.exec(k)){var S=0|x[1],C=0|x[2],O=m+k.length,T=void 0,E=!1;if(this.entries[S]){if(this.entries[S].gen===C)try{new oi({lexer:new ci(h.makeSubStream(O))}).getObj();E=!0}catch(t){t instanceof Jr?warn("indexObjects -- checking object (".concat(k,'): "').concat(t,'".')):E=!0}}else E=!0;E&&(this.entries[S]={offset:m-h.start,gen:C,uncompressed:!0});t.lastIndex=O;var j=t.exec(g);if(j){T=t.lastIndex+1-m;if("endobj"!==j[1]){warn('indexObjects: Found "'.concat(j[1],'" inside of another "obj", ')+'caused by missing "endobj" -- trying to recover.');T-=j[1].length+1}}else T=y-m;var R=d.subarray(m,m+T),M=skipUntil(R,0,u);if(M<T&&R[M+5]<64){_.push(m-h.start);this._xrefStms.add(m-h.start)}m+=T}else if(k.startsWith("trailer")&&(7===k.length||/\s/.test(k[7]))){v.push(m);var L=m+k.length,D=void 0;r.lastIndex=L;var N=r.exec(g);if(N){D=r.lastIndex+1-m;if("startxref"!==N[1]){warn('indexObjects: Found "'.concat(N[1],'" after "trailer", ')+'caused by missing "startxref" -- trying to recover.');D-=N[1].length+1}}else D=y-m;m+=D}else m+=k.length+1}else do{if(++m>=y)break;w=d[m]}while(10!==w&&13!==w);else++m}for(var U=0,G=_;U<G.length;U++){var H=G[U];this.startXRefQueue.push(H);this.readXRef(!0)}for(var q,z,W=[],V=!1,X=0,K=v;X<K.length;X++){var Y=K[X];h.pos=Y;var J=new oi({lexer:new ci(h),xref:this,allowStreams:!0,recoveryMode:!0});if(isCmd(J.getObj(),"trailer")){var $=J.getObj();if($ instanceof qr){W.push($);$.has("Encrypt")&&(V=!0)}}}for(var Z=0,Q=[].concat(W,["genFallback"],W);Z<Q.length;Z++){var ee=Q[Z];if("genFallback"!==ee){var te=!1;try{var re=ee.get("Root");if(!(re instanceof qr))continue;var ne=re.get("Pages");if(!(ne instanceof qr))continue;var ae=ne.get("Count");Number.isInteger(ae)&&(te=!0)}catch(t){z=t;continue}if(te&&(!V||ee.has("Encrypt"))&&ee.has("ID"))return ee;q=ee}else{if(!z)break;this._generationFallback=!0}}if(q)return q;if(this.topDict)return this.topDict;throw new wr("Invalid PDF structure.")}},{key:"readXRef",value:function readXRef(){for(var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.stream,o=new Set;this.startXRefQueue.length;){try{var c=this.startXRefQueue[0];if(o.has(c)){warn("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift();continue}o.add(c);r.pos=c+r.start;var l=new oi({lexer:new ci(r),xref:this,allowStreams:!0}),u=l.getObj(),h=void 0;if(isCmd(u,"xref")){h=this.processXRefTable(l);this.topDict||(this.topDict=h);u=h.get("XRefStm");if(Number.isInteger(u)&&!this._xrefStms.has(u)){var d;this._xrefStms.add(u);this.startXRefQueue.push(u);null!==(d=xref_classPrivateFieldGet(this,db))&&void 0!==d||xref_classPrivateFieldSet(this,db,u)}}else{if(!Number.isInteger(u))throw new Sr("Invalid XRef stream header");if(!(Number.isInteger(l.getObj())&&isCmd(l.getObj(),"obj")&&(u=l.getObj())instanceof Xr))throw new Sr("Invalid XRef stream");h=this.processXRefStream(u);this.topDict||(this.topDict=h);if(!h)throw new Sr("Failed to read XRef stream")}u=h.get("Prev");Number.isInteger(u)?this.startXRefQueue.push(u):u instanceof zr&&this.startXRefQueue.push(u.num)}catch(t){if(t instanceof Yr)throw t;info("(while reading XRef): "+t)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new Zr}},{key:"lastXRefStreamPos",get:function get(){var t;return null!==(t=xref_classPrivateFieldGet(this,db))&&void 0!==t?t:this._xrefStms.size>0?Math.max.apply(Math,xref_toConsumableArray(this._xrefStms)):null}},{key:"getEntry",value:function getEntry(t){var r=this.entries[t];return r&&!r.free&&r.offset?r:null}},{key:"fetchIfRef",value:function fetchIfRef(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t instanceof zr?this.fetch(t,r):t}},{key:"fetch",value:function fetch(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t instanceof zr))throw new Error("ref object is not a reference");var o=t.num,c=this._cacheMap.get(o);if(void 0!==c){c instanceof qr&&!c.objId&&(c.objId=t.toString());return c}var l=this.getEntry(o);if(null===l){this._cacheMap.set(o,l);return l}if(this._pendingRefs.has(t)){this._pendingRefs.remove(t);warn("Ignoring circular reference: ".concat(t,"."));return Rr}this._pendingRefs.put(t);try{l=l.uncompressed?this.fetchUncompressed(t,l,r):this.fetchCompressed(t,l,r);this._pendingRefs.remove(t)}catch(r){this._pendingRefs.remove(t);throw r}l instanceof qr?l.objId=t.toString():l instanceof Xr&&(l.dict.objId=t.toString());return l}},{key:"fetchUncompressed",value:function fetchUncompressed(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=t.gen,l=t.num;if(r.gen!==c){var u="Inconsistent generation in XRef: ".concat(t);if(this._generationFallback&&r.gen<c){warn(u);return this.fetchUncompressed(zr.get(l,r.gen),r,o)}throw new $r(u)}var h=this.stream.makeSubStream(r.offset+this.stream.start),d=new oi({lexer:new ci(h),xref:this,allowStreams:!0}),g=d.getObj(),y=d.getObj(),m=d.getObj();if(g!==l||y!==c||!(m instanceof Gr))throw new $r("Bad (uncompressed) XRef entry: ".concat(t));if("obj"!==m.cmd){if(m.cmd.startsWith("obj")){l=parseInt(m.cmd.substring(3),10);if(!Number.isNaN(l))return l}throw new $r("Bad (uncompressed) XRef entry: ".concat(t))}(r=this.encrypt&&!o?d.getObj(this.encrypt.createCipherTransform(l,c)):d.getObj())instanceof Xr||this._cacheMap.set(l,r);return r}},{key:"fetchCompressed",value:function fetchCompressed(t,r){var o=r.offset,c=this.fetch(zr.get(o,0));if(!(c instanceof Xr))throw new Sr("bad ObjStm stream");var l=c.dict.get("First"),u=c.dict.get("N");if(!Number.isInteger(l)||!Number.isInteger(u))throw new Sr("invalid first and n parameters for ObjStm stream");for(var h=new oi({lexer:new ci(c),xref:this,allowStreams:!0}),d=new Array(u),g=new Array(u),y=0;y<u;++y){var m=h.getObj();if(!Number.isInteger(m))throw new Sr("invalid object number in the ObjStm stream: ".concat(m));var v=h.getObj();if(!Number.isInteger(v))throw new Sr("invalid object offset in the ObjStm stream: ".concat(v));d[y]=m;g[y]=v}for(var _=(c.start||0)+l,w=new Array(u),k=0;k<u;++k){var x=k<u-1?g[k+1]-g[k]:void 0;if(x<0)throw new Sr("Invalid offset in the ObjStm stream.");var S=(h=new oi({lexer:new ci(c.makeSubStream(_+g[k],x,c.dict)),xref:this,allowStreams:!0})).getObj();w[k]=S;if(!(S instanceof Xr)){var C=d[k],O=this.entries[C];O&&O.offset===o&&O.gen===k&&this._cacheMap.set(C,S)}}if(void 0===(r=w[r.gen]))throw new $r("Bad (compressed) XRef entry: ".concat(t));return r}},{key:"fetchIfRefAsync",value:(r=xref_asyncToGenerator(xref_regeneratorRuntime().mark((function _callee(t,r){return xref_regeneratorRuntime().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(!(t instanceof zr)){o.next=2;break}return o.abrupt("return",this.fetchAsync(t,r));case 2:return o.abrupt("return",t);case 3:case"end":return o.stop()}}),_callee,this)}))),function fetchIfRefAsync(t,o){return r.apply(this,arguments)})},{key:"fetchAsync",value:(t=xref_asyncToGenerator(xref_regeneratorRuntime().mark((function _callee2(t,r){return xref_regeneratorRuntime().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:o.prev=0;return o.abrupt("return",this.fetch(t,r));case 4:o.prev=4;o.t0=o.catch(0);if(o.t0 instanceof Yr){o.next=8;break}throw o.t0;case 8:o.next=10;return this.pdfManager.requestRange(o.t0.begin,o.t0.end);case 10:return o.abrupt("return",this.fetchAsync(t,r));case 11:case"end":return o.stop()}}),_callee2,this,[[0,4]])}))),function fetchAsync(r,o){return t.apply(this,arguments)})},{key:"getCatalogObj",value:function getCatalogObj(){return this.root}}]);var t,r;return XRef}();function document_typeof(t){return document_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},document_typeof(t)}function document_defineProperty(t,r,o){(r=document_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function document_slicedToArray(t,r){return function document_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function document_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||document_unsupportedIterableToArray(t,r)||function document_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function document_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */document_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==document_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(document_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function document_toConsumableArray(t){return function document_arrayWithoutHoles(t){if(Array.isArray(t))return document_arrayLikeToArray(t)}(t)||function document_iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||document_unsupportedIterableToArray(t)||function document_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function document_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=document_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function document_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return document_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?document_arrayLikeToArray(t,r):void 0}}function document_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function document_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function document_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){document_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){document_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function document_setPrototypeOf(t,r){document_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return document_setPrototypeOf(t,r)}function document_createSuper(t){var r=function document_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=document_getPrototypeOf(t);if(r){var l=document_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function document_possibleConstructorReturn(t,r){if(r&&("object"===document_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function document_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function document_getPrototypeOf(t){document_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return document_getPrototypeOf(t)}function document_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function document_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,document_toPropertyKey(c.key),c)}}function document_createClass(t,r,o){r&&document_defineProperties(t.prototype,r);o&&document_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function document_toPropertyKey(t){var r=function document_toPrimitive(t,r){if("object"!=document_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=document_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==document_typeof(r)?r:String(r)}function document_classPrivateMethodInitSpec(t,r){!function document_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function document_classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}var yb=[0,0,612,792],mb=new WeakSet,vb=function(){function Page(t){var r=t.pdfManager,o=t.xref,c=t.pageIndex,l=t.pageDict,u=t.ref,h=t.globalIdFactory,d=t.fontCache,g=t.builtInCMapCache,y=t.standardFontDataCache,m=t.globalImageCache,v=t.systemFontCache,_=t.nonBlendModesSet,w=t.xfaFactory;document_classCallCheck(this,Page);document_classPrivateMethodInitSpec(this,mb);this.pdfManager=r;this.pageIndex=c;this.pageDict=l;this.xref=o;this.ref=u;this.fontCache=d;this.builtInCMapCache=g;this.standardFontDataCache=y;this.globalImageCache=m;this.systemFontCache=v;this.nonBlendModesSet=_;this.evaluatorOptions=r.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=w;var k={obj:0};this._localIdFactory=function(t){!function document_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&document_setPrototypeOf(t,r)}(_class2,t);var r=document_createSuper(_class2);function _class2(){document_classCallCheck(this,_class2);return r.apply(this,arguments)}document_createClass(_class2,null,[{key:"createObjId",value:function createObjId(){return"p".concat(c,"_").concat(++k.obj)}},{key:"getPageObjId",value:function getPageObjId(){return"p".concat(u.toString())}}]);return _class2}(h)}document_createClass(Page,[{key:"_getInheritableProperty",value:function _getInheritableProperty(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=getInheritableProperty({dict:this.pageDict,key:t,getArray:r,stopWhenFound:!1});return Array.isArray(o)?1!==o.length&&o[0]instanceof qr?qr.merge({xref:this.xref,dictArray:o}):o[0]:o}},{key:"content",get:function get(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function get(){var t=this._getInheritableProperty("Resources");return shadow(this,"resources",t instanceof qr?t:qr.empty)}},{key:"_getBoundingBox",value:function _getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;var r=this._getInheritableProperty(t,!0);if(Array.isArray(r)&&4===r.length){if((r=Or.normalizeRect(r))[2]-r[0]>0&&r[3]-r[1]>0)return r;warn("Empty, or invalid, /".concat(t," entry."))}return null}},{key:"mediaBox",get:function get(){return shadow(this,"mediaBox",this._getBoundingBox("MediaBox")||yb)}},{key:"cropBox",get:function get(){return shadow(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function get(){var t=this.pageDict.get("UserUnit");("number"!=typeof t||t<=0)&&(t=1);return shadow(this,"userUnit",t)}},{key:"view",get:function get(){var t=this.cropBox,r=this.mediaBox;if(t!==r&&!isArrayEqual(t,r)){var o=Or.intersect(t,r);if(o&&o[2]-o[0]>0&&o[3]-o[1]>0)return shadow(this,"view",o);warn("Empty /CropBox and /MediaBox intersection.")}return shadow(this,"view",r)}},{key:"rotate",get:function get(){var t=this._getInheritableProperty("Rotate")||0;t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360);return shadow(this,"rotate",t)}},{key:"_onSubStreamError",value:function _onSubStreamError(t,r){if(!this.evaluatorOptions.ignoreErrors)throw t;warn("getContentStream - ignoring sub-stream (".concat(r,'): "').concat(t,'".'))}},{key:"getContentStream",value:function getContentStream(){var t=this;return this.pdfManager.ensure(this,"content").then((function(r){return r instanceof Xr?r:Array.isArray(r)?new Xn(r,t._onSubStreamError.bind(t)):new nn}))}},{key:"xfaData",get:function get(){return shadow(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"saveNewAnnotations",value:(o=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee(t,r,o,c){var l,u,h,d,g,y,m,v,_,w,k,x;return document_regeneratorRuntime().wrap((function _callee$(S){for(;;)switch(S.prev=S.next){case 0:if(!this.xfaFactory){S.next=2;break}throw new Error("XFA: Cannot save new annotations.");case 2:l=new tl({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});u=new Wr;h=new Wr;document_classPrivateMethodGet(this,mb,_replaceIdByRef2).call(this,o,u,h);d=this.pageDict;g=this.annotations.filter((function(t){return!(t instanceof zr&&u.has(t))}));S.next=10;return Uv.saveNewAnnotations(l,r,o,c);case 10:y=S.sent;m=document_createForOfIteratorHelper(y.annotations);try{for(m.s();!(v=m.n()).done;)(_=v.value.ref)instanceof zr&&!h.has(_)&&g.push(_)}catch(t){m.e(t)}finally{m.f()}w=d.get("Annots");d.set("Annots",g);k=[];S.next=18;return writeObject(this.ref,d,k,this.xref);case 18:w&&d.set("Annots",w);(x=y.dependencies).push.apply(x,[{ref:this.ref,data:k.join("")}].concat(document_toConsumableArray(y.annotations)));return S.abrupt("return",x);case 22:case"end":return S.stop()}}),_callee,this)}))),function saveNewAnnotations(t,r,c,l){return o.apply(this,arguments)})},{key:"save",value:function save(t,r,o){var c=new tl({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){var l,u=[],h=document_createForOfIteratorHelper(t);try{for(h.s();!(l=h.n()).done;){var d=l.value;d.mustBePrinted(o)&&u.push(d.save(c,r,o).catch((function(t){warn("save - ignoring annotation data during "+'"'.concat(r.name,'" task: "').concat(t,'".'));return null})))}}catch(t){h.e(t)}finally{h.f()}return Promise.all(u).then((function(t){return t.filter((function(t){return!!t}))}))}))}},{key:"loadResources",value:function loadResources(t){var r=this;this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources"));return this.resourcesPromise.then((function(){return new cu(r.resources,t,r.xref).load()}))}},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.handler,c=t.sink,l=t.task,u=t.intent,y=t.cacheKey,_=t.annotationStorage,k=void 0===_?null:_,x=this.getContentStream(),S=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),C=new tl({xref:this.xref,handler:o,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),O=this.xfaFactory?null:getNewAnnotationsMap(k),T=null,E=Promise.resolve(null);if(O){var j=O.get(this.pageIndex);if(j){var R,M,L=this.pdfManager.ensureDoc("annotationGlobals"),D=new Set,N=document_createForOfIteratorHelper(j);try{for(N.s();!(M=N.n()).done;){var U=M.value,G=U.bitmapId,H=U.bitmap;!G||H||D.has(G)||D.add(G)}}catch(t){N.e(t)}finally{N.f()}var q=this.evaluatorOptions.isOffscreenCanvasSupported;if(D.size>0){var z,W=j.slice(),V=document_createForOfIteratorHelper(k);try{for(V.s();!(z=V.n()).done;){var X=document_slicedToArray(z.value,2),K=X[0],Y=X[1];K.startsWith(w)&&(Y.bitmap&&D.has(Y.bitmapId)&&W.push(Y))}}catch(t){V.e(t)}finally{V.f()}R=Uv.generateImages(W,this.xref,q)}else R=Uv.generateImages(j,this.xref,q);T=new Wr;document_classPrivateMethodGet(this,mb,_replaceIdByRef2).call(this,j,T,null);E=L.then((function(t){return t?Uv.printNewAnnotations(t,C,l,j,R):null}))}}var J=Promise.all([x,S]).then((function(t){var h=document_slicedToArray(t,1)[0],d=new Kc(u,c);o.send("StartRenderPage",{transparency:C.hasBlendModes(r.resources,r.nonBlendModesSet),pageIndex:r.pageIndex,cacheKey:y});return C.getOperatorList({stream:h,task:l,resources:r.resources,operatorList:d}).then((function(){return d}))}));return Promise.all([J,this._parsedAnnotations,E]).then((function(t){var r=document_slicedToArray(t,3),o=r[0],c=r[1],y=r[2];if(y){c=c.filter((function(t){return!(t.ref&&T.has(t.ref))}));for(var _=function _loop(t,r){var o=y[t];if(o.refToReplace){var l=c.findIndex((function(t){return t.ref&&isRefsEqual(t.ref,o.refToReplace)}));if(l>=0){c.splice(l,1,o);y.splice(t--,1);r--}}w=t,x=r},w=0,x=y.length;w<x;w++)_(w,x);c=c.concat(y)}if(0===c.length||u&v){o.flush(!0);return{length:o.totalLength}}var S,O=!!(u&m),E=!!(u&h),j=!!(u&d),R=!!(u&g),M=[],L=document_createForOfIteratorHelper(c);try{for(L.s();!(S=L.n()).done;){var D=S.value;(E||j&&D.mustBeViewed(k,O)||R&&D.mustBePrinted(k))&&M.push(D.getOperatorList(C,l,u,O,k).catch((function(t){warn("getOperatorList - ignoring annotation data during "+'"'.concat(l.name,'" task: "').concat(t,'".'));return{opList:null,separateForm:!1,separateCanvas:!1}})))}}catch(t){L.e(t)}finally{L.f()}return Promise.all(M).then((function(t){var r,c=!1,l=!1,u=document_createForOfIteratorHelper(t);try{for(u.s();!(r=u.n()).done;){var h=r.value,d=h.opList,g=h.separateForm,y=h.separateCanvas;o.addOpList(d);c||(c=g);l||(l=y)}}catch(t){u.e(t)}finally{u.f()}o.flush(!0,{form:c,canvas:l});return{length:o.totalLength}}))}))}},{key:"extractTextContent",value:function extractTextContent(t){var r=this,o=t.handler,c=t.task,l=t.includeMarkedContent,u=t.disableNormalization,h=t.sink,d=this.getContentStream(),g=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([d,g]).then((function(t){var d=document_slicedToArray(t,1)[0];return new tl({xref:r.xref,handler:o,pageIndex:r.pageIndex,idFactory:r._localIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,options:r.evaluatorOptions}).getTextContent({stream:d,task:c,resources:r.resources,includeMarkedContent:l,disableNormalization:u,sink:h,viewBox:r.view})}))}},{key:"getStructTree",value:(r=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee2(){var t,r;return document_regeneratorRuntime().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this.pdfManager.ensureCatalog("structTreeRoot");case 2:if(t=o.sent){o.next=5;break}return o.abrupt("return",null);case 5:o.next=7;return this._parsedAnnotations;case 7:o.next=9;return this.pdfManager.ensure(this,"_parseStructTree",[t]);case 9:r=o.sent;return o.abrupt("return",r.serializable);case 11:case"end":return o.stop()}}),_callee2,this)}))),function getStructTree(){return r.apply(this,arguments)})},{key:"_parseStructTree",value:function _parseStructTree(t){var r=new ou(t,this.pageDict);r.parse(this.ref);return r}},{key:"getAnnotationsData",value:(t=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee3(t,r,o){var c,l,u,y,m,v,_,w,k,x,S;return document_regeneratorRuntime().wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:C.next=2;return this._parsedAnnotations;case 2:if(0!==(c=C.sent).length){C.next=5;break}return C.abrupt("return",c);case 5:l=[],u=[];m=!!(o&h),v=!!(o&d),_=!!(o&g);w=document_createForOfIteratorHelper(c);try{for(w.s();!(k=w.n()).done;){x=k.value;((S=m||v&&x.viewable)||_&&x.printable)&&l.push(x.data);if(x.hasTextContent&&S){y||(y=new tl({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}));u.push(x.extractTextContent(y,r,[-1/0,-1/0,1/0,1/0]).catch((function(t){warn('getAnnotationsData - ignoring textContent during "'.concat(r.name,'" task: "').concat(t,'".'))})))}}}catch(t){w.e(t)}finally{w.f()}C.next=11;return Promise.all(u);case 11:return C.abrupt("return",l);case 12:case"end":return C.stop()}}),_callee3,this)}))),function getAnnotationsData(r,o,c){return t.apply(this,arguments)})},{key:"annotations",get:function get(){var t=this._getInheritableProperty("Annots");return shadow(this,"annotations",Array.isArray(t)?t:[])}},{key:"_parsedAnnotations",get:function get(){var t=this,r=this.pdfManager.ensure(this,"annotations").then(function(){var r=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee4(r){var o,c,l,u,h,d,g,y,m,v;return document_regeneratorRuntime().wrap((function _callee4$(_){for(;;)switch(_.prev=_.next){case 0:if(0!==r.length){_.next=2;break}return _.abrupt("return",r);case 2:_.next=4;return t.pdfManager.ensureDoc("annotationGlobals");case 4:if(o=_.sent){_.next=7;break}return _.abrupt("return",[]);case 7:c=[];l=document_createForOfIteratorHelper(r);try{for(l.s();!(u=l.n()).done;){h=u.value;c.push(Uv.create(t.xref,h,o,t._localIdFactory,!1,t.ref).catch((function(t){warn('_parsedAnnotations: "'.concat(t,'".'));return null})))}}catch(t){l.e(t)}finally{l.f()}d=[];_.t0=document_createForOfIteratorHelper;_.next=14;return Promise.all(c);case 14:_.t1=_.sent;y=(0,_.t0)(_.t1);_.prev=16;y.s();case 18:if((m=y.n()).done){_.next=28;break}if(v=m.value){_.next=22;break}return _.abrupt("continue",26);case 22:if(!(v instanceof $v)){_.next=25;break}(g||(g=[])).push(v);return _.abrupt("continue",26);case 25:d.push(v);case 26:_.next=18;break;case 28:_.next=33;break;case 30:_.prev=30;_.t2=_.catch(16);y.e(_.t2);case 33:_.prev=33;y.f();return _.finish(33);case 36:g&&d.push.apply(d,document_toConsumableArray(g));return _.abrupt("return",d);case 38:case"end":return _.stop()}}),_callee4,null,[[16,30,33,36]])})));return function(t){return r.apply(this,arguments)}}());return shadow(this,"_parsedAnnotations",r)}},{key:"jsActions",get:function get(){return shadow(this,"jsActions",collectActions(this.xref,this.pageDict,Oe))}}]);var t,r,o;return Page}();function _replaceIdByRef2(t,r,o){var c,l=document_createForOfIteratorHelper(t);try{for(l.s();!(c=l.n()).done;){var u=c.value;if(u.id){var h=zr.fromString(u.id);if(!h){warn("A non-linked annotation cannot be modified: ".concat(u.id));continue}if(u.deleted){r.put(h);continue}null==o||o.put(h);u.ref=h;delete u.id}}}catch(t){l.e(t)}finally{l.f()}}var bb=new Uint8Array([37,80,68,70,45]),_b=new Uint8Array([115,116,97,114,116,120,114,101,102]),wb=new Uint8Array([101,110,100,111,98,106]);function find(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=r.length,u=t.peekBytes(o),h=u.length-l;if(h<=0)return!1;if(c)for(var d=l-1,g=u.length-1;g>=d;){for(var y=0;y<l&&u[g-y]===r[d-y];)y++;if(y>=l){t.pos+=g-d;return!0}g--}else for(var m=0;m<=h;){for(var v=0;v<l&&u[m+v]===r[v];)v++;if(v>=l){t.pos+=m;return!0}m++}return!1}var kb=new WeakSet,xb=function(){function PDFDocument(t,r){document_classCallCheck(this,PDFDocument);document_classPrivateMethodInitSpec(this,kb);if(r.length<=0)throw new wr("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t;this.stream=r;this.xref=new gb(r,t);this._pagePromises=new Map;this._version=null;var o={font:0};this._globalIdFactory=function(){function _class4(){document_classCallCheck(this,_class4)}document_createClass(_class4,null,[{key:"getDocId",value:function getDocId(){return"g_".concat(t.docId)}},{key:"createFontId",value:function createFontId(){return"f".concat(++o.font)}},{key:"createObjId",value:function createObjId(){unreachable("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function getPageObjId(){unreachable("Abstract method `getPageObjId` called.")}}]);return _class4}()}document_createClass(PDFDocument,[{key:"parse",value:function parse(t){this.xref.parse(t);this.catalog=new su(this.pdfManager,this.xref)}},{key:"linearization",get:function get(){var t=null;try{t=fi.create(this.stream)}catch(t){if(t instanceof Yr)throw t;info(t)}return shadow(this,"linearization",t)}},{key:"startXRef",get:function get(){var t=this.stream,r=0;if(this.linearization){t.reset();find(t,wb)&&(r=t.pos+6-t.start)}else{for(var o=_b.length,c=!1,l=t.end;!c&&l>0;){(l-=1024-o)<0&&(l=0);t.pos=l;c=find(t,_b,1024,!0)}if(c){t.skip(9);var u;do{u=t.getByte()}while(isWhiteSpace(u));for(var h="";u>=32&&u<=57;){h+=String.fromCharCode(u);u=t.getByte()}r=parseInt(h,10);isNaN(r)&&(r=0)}}return shadow(this,"startXRef",r)}},{key:"checkHeader",value:function checkHeader(){var t=this.stream;t.reset();if(find(t,bb)){t.moveStart();t.skip(bb.length);for(var r,o="";(r=t.getByte())>32&&o.length<7;)o+=String.fromCharCode(r);Kr.test(o)?this._version=o:warn("Invalid PDF header version: ".concat(o))}}},{key:"parseStartXRef",value:function parseStartXRef(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function get(){return shadow(this,"numPages",this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages)}},{key:"_hasOnlyDocumentSignatures",value:function _hasOnlyDocumentSignatures(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(t)&&t.every((function(t){if(!((t=r.xref.fetchIfRef(t))instanceof qr))return!1;if(t.has("Kids")){if(++o>10){warn("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return r._hasOnlyDocumentSignatures(t.get("Kids"),o)}var c=isName(t.get("FT"),"Sig"),l=t.get("Rect"),u=Array.isArray(l)&&l.every((function(t){return 0===t}));return c&&u}))}},{key:"_xfaStreams",get:function get(){var t=this.catalog.acroForm;if(!t)return null;var r=t.get("XFA"),o={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(r instanceof Xr&&!r.isEmpty){o["xdp:xdp"]=r;return o}if(!Array.isArray(r)||0===r.length)return null;for(var c=0,l=r.length;c<l;c+=2){var u=void 0;u=0===c?"xdp:xdp":c===l-2?"/xdp:xdp":r[c];if(o.hasOwnProperty(u)){var h=this.xref.fetchIfRef(r[c+1]);h instanceof Xr&&!h.isEmpty&&(o[u]=h)}}return o}},{key:"xfaDatasets",get:function get(){var t=this._xfaStreams;if(!t)return shadow(this,"xfaDatasets",null);for(var r=0,o=["datasets","xdp:xdp"];r<o.length;r++){var c=o[r],l=t[c];if(l)try{var u=document_defineProperty({},c,stringToUTF8String(l.getString()));return shadow(this,"xfaDatasets",new pb(u))}catch(t){warn("XFA - Invalid utf-8 string.");break}}return shadow(this,"xfaDatasets",null)}},{key:"xfaData",get:function get(){var t=this._xfaStreams;if(!t)return null;for(var r=Object.create(null),o=0,c=Object.entries(t);o<c.length;o++){var l=document_slicedToArray(c[o],2),u=l[0],h=l[1];if(h)try{r[u]=stringToUTF8String(h.getString())}catch(t){warn("XFA - Invalid utf-8 string.");return null}}return r}},{key:"xfaFactory",get:function get(){var t;this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData);return shadow(this,"xfaFactory",t?new Nv(t):null)}},{key:"isPureXfa",get:function get(){return!!this.xfaFactory&&this.xfaFactory.isValid()}},{key:"htmlForXfa",get:function get(){return this.xfaFactory?this.xfaFactory.getPages():null}},{key:"loadXfaImages",value:(d=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee5(){var t,r,o,c,l,u,h,d;return document_regeneratorRuntime().wrap((function _callee5$(g){for(;;)switch(g.prev=g.next){case 0:g.next=2;return this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=g.sent){g.next=5;break}return g.abrupt("return");case 5:r=t.getKeys();o=new cu(t,r,this.xref);g.next=9;return o.load();case 9:c=new Map;l=document_createForOfIteratorHelper(r);try{for(l.s();!(u=l.n()).done;){h=u.value;(d=t.get(h))instanceof Xr&&c.set(h,d.getBytes())}}catch(t){l.e(t)}finally{l.f()}this.xfaFactory.setImages(c);case 13:case"end":return g.stop()}}),_callee5,this)}))),function loadXfaImages(){return d.apply(this,arguments)})},{key:"loadXfaFonts",value:(h=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee6(t,r){var o,c,l,u,h,d,g,y,m,v,_,w,k,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K;return document_regeneratorRuntime().wrap((function _callee6$(Y){for(;;)switch(Y.prev=Y.next){case 0:Y.next=2;return this.pdfManager.ensureCatalog("acroForm");case 2:if(o=Y.sent){Y.next=5;break}return Y.abrupt("return");case 5:Y.next=7;return o.getAsync("DR");case 7:if((c=Y.sent)instanceof qr){Y.next=10;break}return Y.abrupt("return");case 10:l=new cu(c,["Font"],this.xref);Y.next=13;return l.load();case 13:if((u=c.get("Font"))instanceof qr){Y.next=16;break}return Y.abrupt("return");case 16:(h=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)).useSystemFonts=!1;d=new tl({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:h});g=new Kc;y=[];Y.t0=function clone(){return this};m={get font(){return y.at(-1)},set font(t){y.push(t)},clone:Y.t0};v=new Map;u.forEach((function(t,r){v.set(t,r)}));_=[];w=document_createForOfIteratorHelper(v);Y.prev=27;w.s();case 29:if((k=w.n()).done){Y.next=44;break}x=document_slicedToArray(k.value,2),S=x[0],C=x[1];if((O=C.get("FontDescriptor"))instanceof qr){Y.next=34;break}return Y.abrupt("continue",42);case 34:T=(T=O.get("FontFamily")).replaceAll(/[ ]+(\d)/g,"$1");E=O.get("FontWeight");j=-O.get("ItalicAngle");if(validateCSSFont(R={fontFamily:T,fontWeight:E,italicAngle:j})){Y.next=41;break}return Y.abrupt("continue",42);case 41:_.push(d.handleSetFont(c,[Ur.get(S),1],null,g,r,m,null,R).catch((function(t){warn('loadXfaFonts: "'.concat(t,'".'));return null})));case 42:Y.next=29;break;case 44:Y.next=49;break;case 46:Y.prev=46;Y.t1=Y.catch(27);w.e(Y.t1);case 49:Y.prev=49;w.f();return Y.finish(49);case 52:Y.next=54;return Promise.all(_);case 54:if(M=this.xfaFactory.setFonts(y)){Y.next=57;break}return Y.abrupt("return");case 57:h.ignoreErrors=!0;_.length=0;y.length=0;L=new Set;D=document_createForOfIteratorHelper(M);try{for(D.s();!(N=D.n()).done;){U=N.value;getXfaFontName("".concat(U,"-Regular"))||L.add(U)}}catch(t){D.e(t)}finally{D.f()}L.size&&M.push("PdfJS-Fallback");G=document_createForOfIteratorHelper(M);Y.prev=65;G.s();case 67:if((H=G.n()).done){Y.next=74;break}q=H.value;if(!L.has(q)){Y.next=71;break}return Y.abrupt("continue",72);case 71:for(z=0,W=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];z<W.length;z++){V=W[z];X="".concat(q,"-").concat(V.name);K=getXfaFontDict(X);_.push(d.handleSetFont(c,[Ur.get(X),1],null,g,r,m,K,{fontFamily:q,fontWeight:V.fontWeight,italicAngle:V.italicAngle}).catch((function(t){warn('loadXfaFonts: "'.concat(t,'".'));return null})))}case 72:Y.next=67;break;case 74:Y.next=79;break;case 76:Y.prev=76;Y.t2=Y.catch(65);G.e(Y.t2);case 79:Y.prev=79;G.f();return Y.finish(79);case 82:Y.next=84;return Promise.all(_);case 84:this.xfaFactory.appendFonts(y,L);case 85:case"end":return Y.stop()}}),_callee6,this,[[27,46,49,52],[65,76,79,82]])}))),function loadXfaFonts(t,r){return h.apply(this,arguments)})},{key:"serializeXfaData",value:(u=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee7(t){return document_regeneratorRuntime().wrap((function _callee7$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.xfaFactory?this.xfaFactory.serializeData(t):null);case 1:case"end":return r.stop()}}),_callee7,this)}))),function serializeXfaData(t){return u.apply(this,arguments)})},{key:"version",get:function get(){return this.catalog.version||this._version}},{key:"formInfo",get:function get(){var t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},r=this.catalog.acroForm;if(!r)return shadow(this,"formInfo",t);try{var o=r.get("Fields"),c=Array.isArray(o)&&o.length>0;t.hasFields=c;var l=r.get("XFA");t.hasXfa=Array.isArray(l)&&l.length>0||l instanceof Xr&&!l.isEmpty;var u=!!(1&r.get("SigFlags")),h=u&&this._hasOnlyDocumentSignatures(o);t.hasAcroForm=c&&!h;t.hasSignatures=u}catch(t){if(t instanceof Yr)throw t;warn('Cannot fetch form information: "'.concat(t,'".'))}return shadow(this,"formInfo",t)}},{key:"documentInfo",get:function get(){var t,r={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{t=this.xref.trailer.get("Info")}catch(t){if(t instanceof Yr)throw t;info("The document information dictionary is invalid.")}if(!(t instanceof qr))return shadow(this,"documentInfo",r);var o,c=document_createForOfIteratorHelper(t.getKeys());try{for(c.s();!(o=c.n()).done;){var l=o.value,u=t.get(l);switch(l){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof u){r[l]=stringToPDFString(u);continue}break;case"Trapped":if(u instanceof Ur){r[l]=u;continue}break;default:var h=void 0;switch(document_typeof(u)){case"string":h=stringToPDFString(u);break;case"number":case"boolean":h=u;break;default:u instanceof Ur&&(h=u)}if(void 0===h){warn('Bad value, for custom key "'.concat(l,'", in Info: ').concat(u,"."));continue}r.Custom||(r.Custom=Object.create(null));r.Custom[l]=h;continue}warn('Bad value, for key "'.concat(l,'", in Info: ').concat(u,"."))}}catch(t){c.e(t)}finally{c.f()}return shadow(this,"documentInfo",r)}},{key:"fingerprints",get:function get(){function validate(t){return"string"==typeof t&&t.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==t}function hexString(t){var r,o=[],c=document_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value.toString(16);o.push(l.padStart(2,"0"))}}catch(t){c.e(t)}finally{c.f()}return o.join("")}var t,r,o=this.xref.trailer.get("ID");if(Array.isArray(o)&&validate(o[0])){t=stringToBytes(o[0]);o[1]!==o[0]&&validate(o[1])&&(r=stringToBytes(o[1]))}else t=Fl(this.stream.getByteRange(0,1024),0,1024);return shadow(this,"fingerprints",[hexString(t),r?hexString(r):null])}},{key:"_getLinearizationPage",value:(l=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee8(t){var r,o,c,l,u,h;return document_regeneratorRuntime().wrap((function _callee8$(d){for(;;)switch(d.prev=d.next){case 0:r=this.catalog,o=this.linearization,c=this.xref;l=zr.get(o.objectNumberFirst,0);d.prev=2;d.next=5;return c.fetchAsync(l);case 5:if(!((u=d.sent)instanceof qr)){d.next=16;break}if(!((h=u.getRaw("Type"))instanceof zr)){d.next=12;break}d.next=11;return c.fetchAsync(h);case 11:h=d.sent;case 12:if(!isName(h,"Page")&&(u.has("Type")||u.has("Kids"))){d.next=16;break}r.pageKidsCountCache.has(l)||r.pageKidsCountCache.put(l,1);r.pageIndexCache.has(l)||r.pageIndexCache.put(l,0);return d.abrupt("return",[u,l]);case 16:throw new Sr("The Linearization dictionary doesn't point to a valid Page dictionary.");case 19:d.prev=19;d.t0=d.catch(2);warn('_getLinearizationPage: "'.concat(d.t0.message,'".'));return d.abrupt("return",r.getPageDict(t));case 23:case"end":return d.stop()}}),_callee8,this,[[2,19]])}))),function _getLinearizationPage(t){return l.apply(this,arguments)})},{key:"getPage",value:function getPage(t){var r=this,o=this._pagePromises.get(t);if(o)return o;var c,l=this.catalog,u=this.linearization,h=this.xfaFactory;c=(c=h?Promise.resolve([qr.empty,null]):(null==u?void 0:u.pageFirst)===t?this._getLinearizationPage(t):l.getPageDict(t)).then((function(o){var c=document_slicedToArray(o,2),u=c[0],d=c[1];return new vb({pdfManager:r.pdfManager,xref:r.xref,pageIndex:t,pageDict:u,ref:d,globalIdFactory:r._globalIdFactory,fontCache:l.fontCache,builtInCMapCache:l.builtInCMapCache,standardFontDataCache:l.standardFontDataCache,globalImageCache:l.globalImageCache,systemFontCache:l.systemFontCache,nonBlendModesSet:l.nonBlendModesSet,xfaFactory:h})}));this._pagePromises.set(t,c);return c}},{key:"checkFirstPage",value:(c=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee9(){var t=arguments;return document_regeneratorRuntime().wrap((function _callee9$(r){for(;;)switch(r.prev=r.next){case 0:if(!(t.length>0&&void 0!==t[0]&&t[0])){r.next=3;break}return r.abrupt("return");case 3:r.prev=3;r.next=6;return this.getPage(0);case 6:r.next=15;break;case 8:r.prev=8;r.t0=r.catch(3);if(!(r.t0 instanceof $r)){r.next=15;break}this._pagePromises.delete(0);r.next=14;return this.cleanup();case 14:throw new Zr;case 15:case"end":return r.stop()}}),_callee9,this,[[3,8]])}))),function checkFirstPage(){return c.apply(this,arguments)})},{key:"checkLastPage",value:(o=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee10(){var t,r,o,c,l,u,h,d,g,y,m,v,_,w=arguments;return document_regeneratorRuntime().wrap((function _callee10$(k){for(;;)switch(k.prev=k.next){case 0:t=w.length>0&&void 0!==w[0]&&w[0];r=this.catalog,o=this.pdfManager;r.setActualNumPages();k.prev=3;k.next=6;return Promise.all([o.ensureDoc("xfaFactory"),o.ensureDoc("linearization"),o.ensureCatalog("numPages")]);case 6:if(!this.xfaFactory){k.next=10;break}return k.abrupt("return");case 10:c=this.linearization?this.linearization.numPages:r.numPages;case 11:if(Number.isInteger(c)){k.next=15;break}throw new Sr("Page count is not an integer.");case 15:if(!(c<=1)){k.next=17;break}return k.abrupt("return");case 17:k.next=19;return this.getPage(c-1);case 19:k.next=44;break;case 21:k.prev=21;k.t0=k.catch(3);this._pagePromises.delete(c-1);k.next=26;return this.cleanup();case 26:if(!(k.t0 instanceof $r)||t){k.next=28;break}throw new Zr;case 28:warn("checkLastPage - invalid /Pages tree /Count: ".concat(c,"."));k.prev=29;k.next=32;return r.getAllPageDicts(t);case 32:l=k.sent;k.next=41;break;case 35:k.prev=35;k.t1=k.catch(29);if(!(k.t1 instanceof $r)||t){k.next=39;break}throw new Zr;case 39:r.setActualNumPages(1);return k.abrupt("return");case 41:u=document_createForOfIteratorHelper(l);try{for(u.s();!(h=u.n()).done;){d=document_slicedToArray(h.value,2),g=d[0],y=document_slicedToArray(d[1],2),m=y[0],v=y[1];_=void 0;m instanceof Error?(_=Promise.reject(m)).catch((function(){})):_=Promise.resolve(new vb({pdfManager:o,xref:this.xref,pageIndex:g,pageDict:m,ref:v,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null}));this._pagePromises.set(g,_)}}catch(t){u.e(t)}finally{u.f()}r.setActualNumPages(l.size);case 44:case"end":return k.stop()}}),_callee10,this,[[3,21],[29,35]])}))),function checkLastPage(){return o.apply(this,arguments)})},{key:"fontFallback",value:function fontFallback(t,r){return this.catalog.fontFallback(t,r)}},{key:"cleanup",value:(r=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee11(){var t,r=arguments;return document_regeneratorRuntime().wrap((function _callee11$(o){for(;;)switch(o.prev=o.next){case 0:t=r.length>0&&void 0!==r[0]&&r[0];return o.abrupt("return",this.catalog?this.catalog.cleanup(t):clearGlobalCaches());case 2:case"end":return o.stop()}}),_callee11,this)}))),function cleanup(){return r.apply(this,arguments)})},{key:"fieldObjects",get:function get(){var t=this;if(!this.formInfo.hasFields)return shadow(this,"fieldObjects",Promise.resolve(null));var r=Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureCatalog("acroForm")]).then(function(){var r=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee12(r){var o,c,l,u,h,d,g,y,m,v,_,w,k;return document_regeneratorRuntime().wrap((function _callee12$(x){for(;;)switch(x.prev=x.next){case 0:o=document_slicedToArray(r,2),c=o[0],l=o[1];if(c){x.next=3;break}return x.abrupt("return",null);case 3:u=new Wr;h=Object.create(null);d=new Map;x.t0=document_createForOfIteratorHelper;x.next=9;return l.getAsync("Fields");case 9:x.t1=x.sent;g=(0,x.t0)(x.t1);x.prev=11;g.s();case 13:if((y=g.n()).done){x.next=19;break}m=y.value;x.next=17;return document_classPrivateMethodGet(t,kb,_collectFieldObjects2).call(t,"",m,d,c,u);case 17:x.next=13;break;case 19:x.next=24;break;case 21:x.prev=21;x.t2=x.catch(11);g.e(x.t2);case 24:x.prev=24;g.f();return x.finish(24);case 27:v=[];_=document_createForOfIteratorHelper(d);x.prev=29;k=document_regeneratorRuntime().mark((function _loop2(){var t,r,o;return document_regeneratorRuntime().wrap((function _loop2$(c){for(;;)switch(c.prev=c.next){case 0:t=document_slicedToArray(w.value,2),r=t[0],o=t[1];v.push(Promise.all(o).then((function(t){(t=t.filter((function(t){return!!t}))).length>0&&(h[r]=t)})));case 2:case"end":return c.stop()}}),_loop2)}));_.s();case 32:if((w=_.n()).done){x.next=36;break}return x.delegateYield(k(),"t3",34);case 34:x.next=32;break;case 36:x.next=41;break;case 38:x.prev=38;x.t4=x.catch(29);_.e(x.t4);case 41:x.prev=41;_.f();return x.finish(41);case 44:x.next=46;return Promise.all(v);case 46:return x.abrupt("return",h);case 47:case"end":return x.stop()}}),_callee12,null,[[11,21,24,27],[29,38,41,44]])})));return function(t){return r.apply(this,arguments)}}());return shadow(this,"fieldObjects",r)}},{key:"hasJSActions",get:function get(){return shadow(this,"hasJSActions",this.pdfManager.ensureDoc("_parseHasJSActions"))}},{key:"_parseHasJSActions",value:(t=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee13(){var t,r,o,c;return document_regeneratorRuntime().wrap((function _callee13$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:t=l.sent;r=document_slicedToArray(t,2);o=r[0];c=r[1];if(!o){l.next=8;break}return l.abrupt("return",!0);case 8:if(!c){l.next=10;break}return l.abrupt("return",Object.values(c).some((function(t){return t.some((function(t){return null!==t.actions}))})));case 10:return l.abrupt("return",!1);case 11:case"end":return l.stop()}}),_callee13,this)}))),function _parseHasJSActions(){return t.apply(this,arguments)})},{key:"calculationOrderIds",get:function get(){var t=this.catalog.acroForm;if(null==t||!t.has("CO"))return shadow(this,"calculationOrderIds",null);var r=t.get("CO");if(!Array.isArray(r)||0===r.length)return shadow(this,"calculationOrderIds",null);var o,c=[],l=document_createForOfIteratorHelper(r);try{for(l.s();!(o=l.n()).done;){var u=o.value;u instanceof zr&&c.push(u.toString())}}catch(t){l.e(t)}finally{l.f()}return 0===c.length?shadow(this,"calculationOrderIds",null):shadow(this,"calculationOrderIds",c)}},{key:"annotationGlobals",get:function get(){return shadow(this,"annotationGlobals",Uv.createGlobals(this.pdfManager))}}]);var t,r,o,c,l,u,h,d;return PDFDocument}();function _collectFieldObjects2(t,r,o,c,l){return _collectFieldObjects3.apply(this,arguments)}function _collectFieldObjects3(){return(_collectFieldObjects3=document_asyncToGenerator(document_regeneratorRuntime().mark((function _callee14(t,r,o,c,l){var u,h,d,g,y,m,v,_,w;return document_regeneratorRuntime().wrap((function _callee14$(k){for(;;)switch(k.prev=k.next){case 0:u=this.xref;if(r instanceof zr&&!l.has(r)){k.next=3;break}return k.abrupt("return");case 3:l.put(r);k.next=6;return u.fetchAsync(r);case 6:if((h=k.sent)instanceof qr){k.next=9;break}return k.abrupt("return");case 9:if(!h.has("T")){k.next=18;break}k.t0=stringToPDFString;k.next=13;return h.getAsync("T");case 13:k.t1=k.sent;d=(0,k.t0)(k.t1);t=""===t?d:"".concat(t,".").concat(d);k.next=39;break;case 18:g=h;case 19:0;if(!((g=g.getRaw("Parent"))instanceof zr)){k.next=27;break}if(!l.has(g)){k.next=24;break}return k.abrupt("break",39);case 24:k.next=26;return u.fetchAsync(g);case 26:g=k.sent;case 27:if(g instanceof qr){k.next=29;break}return k.abrupt("break",39);case 29:if(!g.has("T")){k.next=37;break}k.t2=stringToPDFString;k.next=33;return g.getAsync("T");case 33:k.t3=k.sent;y=(0,k.t2)(k.t3);t=""===t?y:"".concat(t,".").concat(y);return k.abrupt("break",39);case 37:k.next=19;break;case 39:o.has(t)||o.set(t,[]);o.get(t).push(Uv.create(u,r,c,null,!0,null).then((function(t){return null==t?void 0:t.getFieldObject()})).catch((function(t){warn('#collectFieldObjects: "'.concat(t,'".'));return null})));if(h.has("Kids")){k.next=43;break}return k.abrupt("return");case 43:k.next=45;return h.getAsync("Kids");case 45:m=k.sent;if(!Array.isArray(m)){k.next=64;break}v=document_createForOfIteratorHelper(m);k.prev=48;v.s();case 50:if((_=v.n()).done){k.next=56;break}w=_.value;k.next=54;return document_classPrivateMethodGet(this,kb,_collectFieldObjects2).call(this,t,w,o,c,l);case 54:k.next=50;break;case 56:k.next=61;break;case 58:k.prev=58;k.t4=k.catch(48);v.e(k.t4);case 61:k.prev=61;v.f();return k.finish(61);case 64:case"end":return k.stop()}}),_callee14,this,[[48,58,61,64]])})))).apply(this,arguments)}function pdf_manager_inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&pdf_manager_setPrototypeOf(t,r)}function pdf_manager_setPrototypeOf(t,r){pdf_manager_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){t.__proto__=r;return t};return pdf_manager_setPrototypeOf(t,r)}function pdf_manager_createSuper(t){var r=function pdf_manager_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,c=pdf_manager_getPrototypeOf(t);if(r){var l=pdf_manager_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return function pdf_manager_possibleConstructorReturn(t,r){if(r&&("object"===pdf_manager_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return pdf_manager_assertThisInitialized(t)}(this,o)}}function pdf_manager_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pdf_manager_getPrototypeOf(t){pdf_manager_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return pdf_manager_getPrototypeOf(t)}function pdf_manager_typeof(t){return pdf_manager_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pdf_manager_typeof(t)}function pdf_manager_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pdf_manager_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==pdf_manager_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(pdf_manager_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function pdf_manager_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function pdf_manager_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){pdf_manager_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){pdf_manager_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function pdf_manager_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function pdf_manager_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,pdf_manager_toPropertyKey(c.key),c)}}function pdf_manager_createClass(t,r,o){r&&pdf_manager_defineProperties(t.prototype,r);o&&pdf_manager_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function pdf_manager_toPropertyKey(t){var r=function pdf_manager_toPrimitive(t,r){if("object"!=pdf_manager_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=pdf_manager_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==pdf_manager_typeof(r)?r:String(r)}var Sb=function(){function BasePdfManager(t){var r;pdf_manager_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&unreachable("Cannot initialize BasePdfManager.");this._docBaseUrl=function parseDocBaseUrl(t){if(t){var r=createValidAbsoluteUrl(t);if(r)return r.href;warn('Invalid absolute docBaseUrl: "'.concat(t,'".'))}return null}(t.docBaseUrl);this._docId=t.docId;this._password=t.password;this.enableXfa=t.enableXfa;(r=t.evaluatorOptions).isOffscreenCanvasSupported&&(r.isOffscreenCanvasSupported=Ar.isOffscreenCanvasSupported);this.evaluatorOptions=t.evaluatorOptions}pdf_manager_createClass(BasePdfManager,[{key:"docId",get:function get(){return this._docId}},{key:"password",get:function get(){return this._password}},{key:"docBaseUrl",get:function get(){return this._docBaseUrl}},{key:"catalog",get:function get(){return this.pdfDocument.catalog}},{key:"ensureDoc",value:function ensureDoc(t,r){return this.ensure(this.pdfDocument,t,r)}},{key:"ensureXRef",value:function ensureXRef(t,r){return this.ensure(this.pdfDocument.xref,t,r)}},{key:"ensureCatalog",value:function ensureCatalog(t,r){return this.ensure(this.pdfDocument.catalog,t,r)}},{key:"getPage",value:function getPage(t){return this.pdfDocument.getPage(t)}},{key:"fontFallback",value:function fontFallback(t,r){return this.pdfDocument.fontFallback(t,r)}},{key:"loadXfaFonts",value:function loadXfaFonts(t,r){return this.pdfDocument.loadXfaFonts(t,r)}},{key:"loadXfaImages",value:function loadXfaImages(){return this.pdfDocument.loadXfaImages()}},{key:"serializeXfaData",value:function serializeXfaData(t){return this.pdfDocument.serializeXfaData(t)}},{key:"cleanup",value:function cleanup(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(t)}},{key:"ensure",value:(t=pdf_manager_asyncToGenerator(pdf_manager_regeneratorRuntime().mark((function _callee(t,r,o){return pdf_manager_regeneratorRuntime().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:unreachable("Abstract method `ensure` called");case 1:case"end":return t.stop()}}),_callee)}))),function ensure(r,o,c){return t.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){unreachable("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function requestLoadedStream(){unreachable("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function sendProgressiveData(t){unreachable("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function updatePassword(t){this._password=t}},{key:"terminate",value:function terminate(t){unreachable("Abstract method `terminate` called")}}]);var t;return BasePdfManager}(),Cb=function(t){pdf_manager_inherits(LocalPdfManager,t);var r,o=pdf_manager_createSuper(LocalPdfManager);function LocalPdfManager(t){var r;pdf_manager_classCallCheck(this,LocalPdfManager);r=o.call(this,t);var c=new tn(t.source);r.pdfDocument=new xb(pdf_manager_assertThisInitialized(r),c);r._loadedStreamPromise=Promise.resolve(c);return r}pdf_manager_createClass(LocalPdfManager,[{key:"ensure",value:(r=pdf_manager_asyncToGenerator(pdf_manager_regeneratorRuntime().mark((function _callee2(t,r,o){var c;return pdf_manager_regeneratorRuntime().wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if("function"!=typeof(c=t[r])){l.next=3;break}return l.abrupt("return",c.apply(t,o));case 3:return l.abrupt("return",c);case 4:case"end":return l.stop()}}),_callee2)}))),function ensure(t,o,c){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return Promise.resolve()}},{key:"requestLoadedStream",value:function requestLoadedStream(){return this._loadedStreamPromise}},{key:"terminate",value:function terminate(t){}}]);return LocalPdfManager}(Sb),Ab=function(t){pdf_manager_inherits(NetworkPdfManager,t);var r,o=pdf_manager_createSuper(NetworkPdfManager);function NetworkPdfManager(t){var r;pdf_manager_classCallCheck(this,NetworkPdfManager);(r=o.call(this,t)).streamManager=new cn(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize});r.pdfDocument=new xb(pdf_manager_assertThisInitialized(r),r.streamManager.getStream());return r}pdf_manager_createClass(NetworkPdfManager,[{key:"ensure",value:(r=pdf_manager_asyncToGenerator(pdf_manager_regeneratorRuntime().mark((function _callee3(t,r,o){var c;return pdf_manager_regeneratorRuntime().wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:l.prev=0;if("function"!=typeof(c=t[r])){l.next=4;break}return l.abrupt("return",c.apply(t,o));case 4:return l.abrupt("return",c);case 7:l.prev=7;l.t0=l.catch(0);if(l.t0 instanceof Yr){l.next=11;break}throw l.t0;case 11:l.next=13;return this.requestRange(l.t0.begin,l.t0.end);case 13:return l.abrupt("return",this.ensure(t,r,o));case 14:case"end":return l.stop()}}),_callee3,this,[[0,7]])}))),function ensure(t,o,c){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return this.streamManager.requestRange(t,r)}},{key:"requestLoadedStream",value:function requestLoadedStream(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(t)}},{key:"sendProgressiveData",value:function sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}},{key:"terminate",value:function terminate(t){this.streamManager.abort(t)}}]);return NetworkPdfManager}(Sb);function message_handler_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */message_handler_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==message_handler_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(message_handler_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function message_handler_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function message_handler_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,message_handler_toPropertyKey(c.key),c)}}function message_handler_toPropertyKey(t){var r=function message_handler_toPrimitive(t,r){if("object"!=message_handler_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=message_handler_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==message_handler_typeof(r)?r:String(r)}function message_handler_classPrivateMethodInitSpec(t,r){!function message_handler_checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function message_handler_classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}function message_handler_typeof(t){return message_handler_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},message_handler_typeof(t)}var Pb=1,Ob=2,Ib=1,Tb=2,Fb=3,Eb=4,jb=5,Rb=6,Mb=7,Lb=8;function wrapReason(t){t instanceof Error||"object"===message_handler_typeof(t)&&null!==t||unreachable('wrapReason: Expected "reason" to be a (possibly cloned) Error.');switch(t.name){case"AbortException":return new Cr(t.message);case"MissingPDFException":return new kr(t.message);case"PasswordException":return new vr(t.message,t.code);case"UnexpectedResponseException":return new xr(t.message,t.status);case"UnknownErrorException":return new _r(t.message,t.details);default:return new _r(t.message,t.toString())}}var Bb=new WeakSet,Db=new WeakSet,Nb=new WeakSet,Ub=function(){function MessageHandler(t,r,o){var c=this;!function message_handler_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MessageHandler);message_handler_classPrivateMethodInitSpec(this,Nb);message_handler_classPrivateMethodInitSpec(this,Db);message_handler_classPrivateMethodInitSpec(this,Bb);this.sourceName=t;this.targetName=r;this.comObj=o;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(t){var r=t.data;if(r.targetName===c.sourceName)if(r.stream)message_handler_classPrivateMethodGet(c,Db,_processStreamMessage2).call(c,r);else if(r.callback){var l=r.callbackId,u=c.callbackCapabilities[l];if(!u)throw new Error("Cannot resolve callback ".concat(l));delete c.callbackCapabilities[l];if(r.callback===Pb)u.resolve(r.data);else{if(r.callback!==Ob)throw new Error("Unexpected callback case");u.reject(wrapReason(r.reason))}}else{var h=c.actionHandler[r.action];if(!h)throw new Error("Unknown action from worker: ".concat(r.action));if(r.callbackId){var d=c.sourceName,g=r.sourceName;new Promise((function(t){t(h(r.data))})).then((function(t){o.postMessage({sourceName:d,targetName:g,callback:Pb,callbackId:r.callbackId,data:t})}),(function(t){o.postMessage({sourceName:d,targetName:g,callback:Ob,callbackId:r.callbackId,reason:wrapReason(t)})}))}else r.streamId?message_handler_classPrivateMethodGet(c,Bb,_createStreamSink2).call(c,r):h(r.data)}};o.addEventListener("message",this._onComObjOnMessage)}!function message_handler_createClass(t,r,o){r&&message_handler_defineProperties(t.prototype,r);o&&message_handler_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(MessageHandler,[{key:"on",value:function on(t,r){var o=this.actionHandler;if(o[t])throw new Error('There is already an actionName called "'.concat(t,'"'));o[t]=r}},{key:"send",value:function send(t,r,o){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},o)}},{key:"sendWithPromise",value:function sendWithPromise(t,r,o){var c=this.callbackId++,l=new Fr;this.callbackCapabilities[c]=l;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:c,data:r},o)}catch(t){l.reject(t)}return l.promise}},{key:"sendWithStream",value:function sendWithStream(t,r,o,c){var l=this,u=this.streamId++,h=this.sourceName,d=this.targetName,g=this.comObj;return new ReadableStream({start:function start(o){var y=new Fr;l.streamControllers[u]={controller:o,startCall:y,pullCall:null,cancelCall:null,isClosed:!1};g.postMessage({sourceName:h,targetName:d,action:t,streamId:u,data:r,desiredSize:o.desiredSize},c);return y.promise},pull:function pull(t){var r=new Fr;l.streamControllers[u].pullCall=r;g.postMessage({sourceName:h,targetName:d,stream:Rb,streamId:u,desiredSize:t.desiredSize});return r.promise},cancel:function cancel(t){assert(t instanceof Error,"cancel must have a valid reason");var r=new Fr;l.streamControllers[u].cancelCall=r;l.streamControllers[u].isClosed=!0;g.postMessage({sourceName:h,targetName:d,stream:Ib,streamId:u,reason:wrapReason(t)});return r.promise}},o)}},{key:"destroy",value:function destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);return MessageHandler}();function _createStreamSink2(t){var r=t.streamId,o=this.sourceName,c=t.sourceName,l=this.comObj,u=this,h=this.actionHandler[t.action],d={enqueue:function enqueue(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,h=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var d=this.desiredSize;this.desiredSize-=u;if(d>0&&this.desiredSize<=0){this.sinkCapability=new Fr;this.ready=this.sinkCapability.promise}l.postMessage({sourceName:o,targetName:c,stream:Eb,streamId:r,chunk:t},h)}},close:function close(){if(!this.isCancelled){this.isCancelled=!0;l.postMessage({sourceName:o,targetName:c,stream:Fb,streamId:r});delete u.streamSinks[r]}},error:function error(t){assert(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;l.postMessage({sourceName:o,targetName:c,stream:jb,streamId:r,reason:wrapReason(t)})}},sinkCapability:new Fr,onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};d.sinkCapability.resolve();d.ready=d.sinkCapability.promise;this.streamSinks[r]=d;new Promise((function(r){r(h(t.data,d))})).then((function(){l.postMessage({sourceName:o,targetName:c,stream:Lb,streamId:r,success:!0})}),(function(t){l.postMessage({sourceName:o,targetName:c,stream:Lb,streamId:r,reason:wrapReason(t)})}))}function _processStreamMessage2(t){var r=t.streamId,o=this.sourceName,c=t.sourceName,l=this.comObj,u=this.streamControllers[r],h=this.streamSinks[r];switch(t.stream){case Lb:t.success?u.startCall.resolve():u.startCall.reject(wrapReason(t.reason));break;case Mb:t.success?u.pullCall.resolve():u.pullCall.reject(wrapReason(t.reason));break;case Rb:if(!h){l.postMessage({sourceName:o,targetName:c,stream:Mb,streamId:r,success:!0});break}h.desiredSize<=0&&t.desiredSize>0&&h.sinkCapability.resolve();h.desiredSize=t.desiredSize;new Promise((function(t){var r;t(null===(r=h.onPull)||void 0===r?void 0:r.call(h))})).then((function(){l.postMessage({sourceName:o,targetName:c,stream:Mb,streamId:r,success:!0})}),(function(t){l.postMessage({sourceName:o,targetName:c,stream:Mb,streamId:r,reason:wrapReason(t)})}));break;case Eb:assert(u,"enqueue should have stream controller");if(u.isClosed)break;u.controller.enqueue(t.chunk);break;case Fb:assert(u,"close should have stream controller");if(u.isClosed)break;u.isClosed=!0;u.controller.close();message_handler_classPrivateMethodGet(this,Nb,_deleteStreamController2).call(this,u,r);break;case jb:assert(u,"error should have stream controller");u.controller.error(wrapReason(t.reason));message_handler_classPrivateMethodGet(this,Nb,_deleteStreamController2).call(this,u,r);break;case Tb:t.success?u.cancelCall.resolve():u.cancelCall.reject(wrapReason(t.reason));message_handler_classPrivateMethodGet(this,Nb,_deleteStreamController2).call(this,u,r);break;case Ib:if(!h)break;new Promise((function(r){var o;r(null===(o=h.onCancel)||void 0===o?void 0:o.call(h,wrapReason(t.reason)))})).then((function(){l.postMessage({sourceName:o,targetName:c,stream:Tb,streamId:r,success:!0})}),(function(t){l.postMessage({sourceName:o,targetName:c,stream:Tb,streamId:r,reason:wrapReason(t)})}));h.sinkCapability.reject(wrapReason(t.reason));h.isCancelled=!0;delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}function _deleteStreamController2(t,r){return _deleteStreamController3.apply(this,arguments)}function _deleteStreamController3(){_deleteStreamController3=function message_handler_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){message_handler_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){message_handler_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(message_handler_regeneratorRuntime().mark((function _callee(t,r){var o,c,l;return message_handler_regeneratorRuntime().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:u.next=2;return Promise.allSettled([null===(o=t.startCall)||void 0===o?void 0:o.promise,null===(c=t.pullCall)||void 0===c?void 0:c.promise,null===(l=t.cancelCall)||void 0===l?void 0:l.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return u.stop()}}),_callee,this)})));return _deleteStreamController3.apply(this,arguments)}function worker_stream_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */worker_stream_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==worker_stream_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(worker_stream_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function worker_stream_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function worker_stream_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){worker_stream_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){worker_stream_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function worker_stream_typeof(t){return worker_stream_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},worker_stream_typeof(t)}function worker_stream_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function worker_stream_unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return worker_stream_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return worker_stream_arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function worker_stream_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function worker_stream_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function worker_stream_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,worker_stream_toPropertyKey(c.key),c)}}function worker_stream_createClass(t,r,o){r&&worker_stream_defineProperties(t.prototype,r);o&&worker_stream_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function worker_stream_toPropertyKey(t){var r=function worker_stream_toPrimitive(t,r){if("object"!=worker_stream_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=worker_stream_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==worker_stream_typeof(r)?r:String(r)}var Gb=function(){function PDFWorkerStream(t){worker_stream_classCallCheck(this,PDFWorkerStream);this._msgHandler=t;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}worker_stream_createClass(PDFWorkerStream,[{key:"getFullReader",value:function getFullReader(){assert(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new Hb(this._msgHandler);return this._fullRequestReader}},{key:"getRangeReader",value:function getRangeReader(t,r){var o=new qb(t,r,this._msgHandler);this._rangeRequestReaders.push(o);return o}},{key:"cancelAllRequests",value:function cancelAllRequests(t){var r;null===(r=this._fullRequestReader)||void 0===r||r.cancel(t);var o,c=worker_stream_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(c.s();!(o=c.n()).done;){o.value.cancel(t)}}catch(t){c.e(t)}finally{c.f()}}}]);return PDFWorkerStream}(),Hb=function(){function PDFWorkerStreamReader(t){var r=this;worker_stream_classCallCheck(this,PDFWorkerStreamReader);this._msgHandler=t;this.onProgress=null;this._contentLength=null;this._isRangeSupported=!1;this._isStreamingSupported=!1;var o=this._msgHandler.sendWithStream("GetReader");this._reader=o.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(t){r._isStreamingSupported=t.isStreamingSupported;r._isRangeSupported=t.isRangeSupported;r._contentLength=t.contentLength}))}worker_stream_createClass(PDFWorkerStreamReader,[{key:"headersReady",get:function get(){return this._headersReady}},{key:"contentLength",get:function get(){return this._contentLength}},{key:"isStreamingSupported",get:function get(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function get(){return this._isRangeSupported}},{key:"read",value:(t=worker_stream_asyncToGenerator(worker_stream_regeneratorRuntime().mark((function _callee(){var t,r;return worker_stream_regeneratorRuntime().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this._reader.read();case 2:t=o.sent;r=t.value;if(!t.done){o.next=7;break}return o.abrupt("return",{value:void 0,done:!0});case 7:return o.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return o.stop()}}),_callee,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}}]);var t;return PDFWorkerStreamReader}(),qb=function(){function PDFWorkerStreamRangeReader(t,r,o){worker_stream_classCallCheck(this,PDFWorkerStreamRangeReader);this._msgHandler=o;this.onProgress=null;var c=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=c.getReader()}worker_stream_createClass(PDFWorkerStreamRangeReader,[{key:"isStreamingSupported",get:function get(){return!1}},{key:"read",value:(t=worker_stream_asyncToGenerator(worker_stream_regeneratorRuntime().mark((function _callee2(){var t,r;return worker_stream_regeneratorRuntime().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this._reader.read();case 2:t=o.sent;r=t.value;if(!t.done){o.next=7;break}return o.abrupt("return",{value:void 0,done:!0});case 7:return o.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return o.stop()}}),_callee2,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}}]);var t;return PDFWorkerStreamRangeReader}();function worker_typeof(t){return worker_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},worker_typeof(t)}function worker_regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */worker_regeneratorRuntime=function _regeneratorRuntime(){return r};var t,r={},o=Object.prototype,c=o.hasOwnProperty,l=Object.defineProperty||function(t,r,o){t[r]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(c||[]);return l(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}r.wrap=wrap;var y="suspendedStart",m="suspendedYield",v="executing",_="completed",w={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,h,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(values([])));S&&S!==o&&c.call(S,h)&&(k=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,y=g.value;return y&&"object"==worker_typeof(y)&&c.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;l(this,"_invoke",{value:function value(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(r,o,c){var l=y;return function(u,h){if(l===v)throw new Error("Generator is already running");if(l===_){if("throw"===u)throw h;return{value:t,done:!0}}for(c.method=u,c.arg=h;;){var d=c.delegate;if(d){var g=maybeInvokeDelegate(d,c);if(g){if(g===w)continue;return g}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(l===y)throw l=_,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);l=v;var k=tryCatch(r,o,c);if("normal"===k.type){if(l=c.done?_:m,k.arg===w)continue;return{value:k.arg,done:c.done}}"throw"===k.type&&(l=_,c.method="throw",c.arg=k.arg)}}}function maybeInvokeDelegate(r,o){var c=o.method,l=r.iterator[c];if(l===t)return o.delegate=null,"throw"===c&&r.iterator.return&&(o.method="return",o.arg=t,maybeInvokeDelegate(r,o),"throw"===o.method)||"return"!==c&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+c+"' method")),w;var u=tryCatch(l,r.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,w;var h=u.arg;return h?h.done?(o[r.resultName]=h.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,w):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,w)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r||""===r){var o=r[h];if(o)return o.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var l=-1,u=function next(){for(;++l<r.length;)if(c.call(r,l))return next.value=r[l],next.done=!1,next;return next.value=t,next.done=!0,next};return u.next=u}}throw new TypeError(worker_typeof(r)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(C,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),l(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,g,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,g,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,d,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(t,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(t,o,c,l),u);return r.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))},defineIteratorMethods(C),define(C,g,"Generator"),define(C,h,(function(){return this})),define(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!r)for(var o in this)"t"===o.charAt(0)&&c.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var o=this;function handle(c,l){return h.type="throw",h.arg=r,o.next=c,l&&(o.method="next",o.arg=t),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,w):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),w},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),w}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,o,c){return this.delegate={iterator:values(r),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=t),w}},r}function worker_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=worker_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function worker_slicedToArray(t,r){return function worker_arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function worker_iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],g=!0,y=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;g=!1}else for(;!(g=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);g=!0);}catch(t){y=!0,l=t}finally{try{if(!g&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(y)throw l}}return d}}(t,r)||worker_unsupportedIterableToArray(t,r)||function worker_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function worker_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return worker_arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?worker_arrayLikeToArray(t,r):void 0}}function worker_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function worker_asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function worker_asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){worker_asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){worker_asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function worker_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function worker_defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,worker_toPropertyKey(c.key),c)}}function worker_createClass(t,r,o){r&&worker_defineProperties(t.prototype,r);o&&worker_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function worker_toPropertyKey(t){var r=function worker_toPrimitive(t,r){if("object"!=worker_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!=worker_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==worker_typeof(r)?r:String(r)}Promise.allSettled||(Promise.allSettled=function(t){var r=t.filter((function(t){return!!t})).map((function(t){return t.then((function(t){return{status:"fulfilled",value:t}})).catch((function(t){return{status:"rejected",reason:t}}))}));return Promise.all(r)});var zb=function(){function WorkerTask(t){worker_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=new Fr}worker_createClass(WorkerTask,[{key:"finished",get:function get(){return this._capability.promise}},{key:"finish",value:function finish(){this._capability.resolve()}},{key:"terminate",value:function terminate(){this.terminated=!0}},{key:"ensureNotTerminated",value:function ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}]);return WorkerTask}(),Wb=function(){function WorkerMessageHandler(){worker_classCallCheck(this,WorkerMessageHandler)}worker_createClass(WorkerMessageHandler,null,[{key:"setup",value:function setup(t,r){var o=!1;t.on("test",(function(r){if(!o){o=!0;t.send("test",r instanceof Uint8Array)}}));t.on("configure",(function(t){!function setVerbosityLevel(t){Number.isInteger(t)&&(yr=t)}(t.verbosity)}));t.on("GetDocRequest",(function(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var o,c=!1,l=null,u=new Set,h=getVerbosityLevel(),d=t,g=d.docId,y=d.apiVersion,m="4.0.844";if(y!==m)throw new Error('The API version "'.concat(y,'" does not match ')+'the Worker version "'.concat(m,'".'));var v=[];for(var _ in[])v.push(_);if(v.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+v.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var w=g+"_worker",k=new Ub(w,g,r);function ensureNotTerminated(){if(c)throw new Error("Worker was terminated")}function startWorkerTask(t){u.add(t)}function finishWorkerTask(t){t.finish();u.delete(t)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=worker_asyncToGenerator(worker_regeneratorRuntime().mark((function _callee4(t){var r,c,l,u,h,d,g;return worker_regeneratorRuntime().wrap((function _callee4$(y){for(;;)switch(y.prev=y.next){case 0:y.next=2;return o.ensureDoc("checkHeader");case 2:y.next=4;return o.ensureDoc("parseStartXRef");case 4:y.next=6;return o.ensureDoc("parse",[t]);case 6:y.next=8;return o.ensureDoc("checkFirstPage",[t]);case 8:y.next=10;return o.ensureDoc("checkLastPage",[t]);case 10:y.next=12;return o.ensureDoc("isPureXfa");case 12:if(!(r=y.sent)){y.next=18;break}startWorkerTask(c=new zb("loadXfaFonts"));y.next=18;return Promise.all([o.loadXfaFonts(k,c).catch((function(t){})).then((function(){return finishWorkerTask(c)})),o.loadXfaImages()]);case 18:y.next=20;return Promise.all([o.ensureDoc("numPages"),o.ensureDoc("fingerprints")]);case 20:l=y.sent;u=worker_slicedToArray(l,2);h=u[0];d=u[1];if(!r){y.next=30;break}y.next=27;return o.ensureDoc("htmlForXfa");case 27:y.t0=y.sent;y.next=31;break;case 30:y.t0=null;case 31:g=y.t0;return y.abrupt("return",{numPages:h,fingerprints:d,htmlForXfa:g});case 33:case"end":return y.stop()}}),_callee4)})))).apply(this,arguments)}function getPdfManager(t){var r,o=t.data,c=t.password,u=t.disableAutoFetch,h=t.rangeChunkSize,d=t.length,y=t.docBaseUrl,m=t.enableXfa,v=t.evaluatorOptions,_={source:null,disableAutoFetch:u,docBaseUrl:y,docId:g,enableXfa:m,evaluatorOptions:v,handler:k,length:d,password:c,rangeChunkSize:h},w=new Fr;if(o){try{_.source=o;r=new Cb(_);w.resolve(r)}catch(t){w.reject(t)}return w.promise}var x,S=[];try{x=new Gb(k)}catch(t){w.reject(t);return w.promise}var C=x.getFullReader();C.headersReady.then((function(){if(C.isRangeSupported){_.source=x;_.length=C.contentLength;_.disableAutoFetch||(_.disableAutoFetch=C.isStreamingSupported);r=new Ab(_);for(var t=0,o=S;t<o.length;t++){var c=o[t];r.sendProgressiveData(c)}S=[];w.resolve(r);l=null}})).catch((function(t){w.reject(t);l=null}));var O=0;new Promise((function(t,o){C.read().then((function readChunk(t){var c=t.value,u=t.done;try{ensureNotTerminated();if(u){r||function flushChunks(){var t=arrayBuffersToBytes(S);d&&t.length!==d&&warn("reported HTTP length is different from actual");try{_.source=t;r=new Cb(_);w.resolve(r)}catch(t){w.reject(t)}S=[]}();l=null;return}O+=c.byteLength;C.isStreamingSupported||k.send("DocProgress",{loaded:O,total:Math.max(O,C.contentLength||0)});r?r.sendProgressiveData(c):S.push(c);C.read().then(readChunk,o)}catch(t){o(t)}}),o)})).catch((function(t){w.reject(t);l=null}));l=function cancelXHRs(t){x.cancelAllRequests(t)};return w.promise}k.on("GetPage",(function(t){return o.getPage(t.pageIndex).then((function(t){return Promise.all([o.ensure(t,"rotate"),o.ensure(t,"ref"),o.ensure(t,"userUnit"),o.ensure(t,"view")]).then((function(t){var r=worker_slicedToArray(t,4);return{rotate:r[0],ref:r[1],userUnit:r[2],view:r[3]}}))}))}));k.on("GetPageIndex",(function(t){var r=zr.get(t.num,t.gen);return o.ensureCatalog("getPageIndex",[r])}));k.on("GetDestinations",(function(t){return o.ensureCatalog("destinations")}));k.on("GetDestination",(function(t){return o.ensureCatalog("getDestination",[t.id])}));k.on("GetPageLabels",(function(t){return o.ensureCatalog("pageLabels")}));k.on("GetPageLayout",(function(t){return o.ensureCatalog("pageLayout")}));k.on("GetPageMode",(function(t){return o.ensureCatalog("pageMode")}));k.on("GetViewerPreferences",(function(t){return o.ensureCatalog("viewerPreferences")}));k.on("GetOpenAction",(function(t){return o.ensureCatalog("openAction")}));k.on("GetAttachments",(function(t){return o.ensureCatalog("attachments")}));k.on("GetDocJSActions",(function(t){return o.ensureCatalog("jsActions")}));k.on("GetPageJSActions",(function(t){var r=t.pageIndex;return o.getPage(r).then((function(t){return o.ensure(t,"jsActions")}))}));k.on("GetOutline",(function(t){return o.ensureCatalog("documentOutline")}));k.on("GetOptionalContentConfig",(function(t){return o.ensureCatalog("optionalContentConfig")}));k.on("GetPermissions",(function(t){return o.ensureCatalog("permissions")}));k.on("GetMetadata",(function(t){return Promise.all([o.ensureDoc("documentInfo"),o.ensureCatalog("metadata")])}));k.on("GetMarkInfo",(function(t){return o.ensureCatalog("markInfo")}));k.on("GetData",(function(t){return o.requestLoadedStream().then((function(t){return t.bytes}))}));k.on("GetAnnotations",(function(t){var r=t.pageIndex,c=t.intent;return o.getPage(r).then((function(t){var o=new zb("GetAnnotations: page ".concat(r));startWorkerTask(o);return t.getAnnotationsData(k,o,c).then((function(t){finishWorkerTask(o);return t}),(function(t){finishWorkerTask(o);throw t}))}))}));k.on("GetFieldObjects",(function(t){return o.ensureDoc("fieldObjects")}));k.on("HasJSActions",(function(t){return o.ensureDoc("hasJSActions")}));k.on("GetCalculationOrderIds",(function(t){return o.ensureDoc("calculationOrderIds")}));k.on("SaveDocument",function(){var t=worker_asyncToGenerator(worker_regeneratorRuntime().mark((function _callee3(t){var r,c,l,u,h,d,g,y,m,v,_,w,x,S,C,O,T,E,j,R,M,L,D,N,U,G,H,q,z,W,V,X,K,Y,J,$,Z,Q;return worker_regeneratorRuntime().wrap((function _callee3$(ee){for(;;)switch(ee.prev=ee.next){case 0:r=t.isPureXfa,c=t.numPages,l=t.annotationStorage,u=t.filename;h=[o.requestLoadedStream(),o.ensureCatalog("acroForm"),o.ensureCatalog("acroFormRef"),o.ensureDoc("startXRef"),o.ensureDoc("xref"),o.ensureDoc("linearization"),o.ensureCatalog("structTreeRoot")];d=[];g=r?null:getNewAnnotationsMap(l);ee.next=6;return Promise.all(h);case 6:y=ee.sent;m=worker_slicedToArray(y,7);v=m[0];_=m[1];w=m[2];x=m[3];S=m[4];C=m[5];O=m[6];T=S.trailer.getRaw("Root")||null;if(!g){ee.next=47;break}if(O){ee.next=24;break}ee.next=20;return nu.canCreateStructureTree({catalogRef:T,pdfManager:o,newAnnotationsByPage:g});case 20:if(!ee.sent){ee.next=22;break}E=null;case 22:ee.next=28;break;case 24:ee.next=26;return O.canUpdateStructTree({pdfManager:o,xref:S,newAnnotationsByPage:g});case 26:if(!ee.sent){ee.next=28;break}E=O;case 28:j=Uv.generateImages(l.values(),S,o.evaluatorOptions.isOffscreenCanvasSupported);R=void 0===E?d:[];M=worker_createForOfIteratorHelper(g);ee.prev=31;D=worker_regeneratorRuntime().mark((function _loop(){var t,r,c;return worker_regeneratorRuntime().wrap((function _loop$(l){for(;;)switch(l.prev=l.next){case 0:t=worker_slicedToArray(L.value,2),r=t[0],c=t[1];R.push(o.getPage(r).then((function(t){var o=new zb("Save (editor): page ".concat(r));return t.saveNewAnnotations(k,o,c,j).finally((function(){finishWorkerTask(o)}))})));case 2:case"end":return l.stop()}}),_loop)}));M.s();case 34:if((L=M.n()).done){ee.next=38;break}return ee.delegateYield(D(),"t0",36);case 36:ee.next=34;break;case 38:ee.next=43;break;case 40:ee.prev=40;ee.t1=ee.catch(31);M.e(ee.t1);case 43:ee.prev=43;M.f();return ee.finish(43);case 46:null===E?d.push(Promise.all(R).then(function(){var t=worker_asyncToGenerator(worker_regeneratorRuntime().mark((function _callee(t){return worker_regeneratorRuntime().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:r.next=2;return nu.createStructureTree({newAnnotationsByPage:g,xref:S,catalogRef:T,pdfManager:o,newRefs:t});case 2:return r.abrupt("return",t);case 3:case"end":return r.stop()}}),_callee)})));return function(r){return t.apply(this,arguments)}}())):E&&d.push(Promise.all(R).then(function(){var t=worker_asyncToGenerator(worker_regeneratorRuntime().mark((function _callee2(t){return worker_regeneratorRuntime().wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:r.next=2;return E.updateStructureTree({newAnnotationsByPage:g,pdfManager:o,newRefs:t});case 2:return r.abrupt("return",t);case 3:case"end":return r.stop()}}),_callee2)})));return function(r){return t.apply(this,arguments)}}()));case 47:if(!r){ee.next=51;break}d.push(o.serializeXfaData(l));ee.next=58;break;case 51:N=worker_regeneratorRuntime().mark((function _loop2(t){return worker_regeneratorRuntime().wrap((function _loop2$(r){for(;;)switch(r.prev=r.next){case 0:d.push(o.getPage(t).then((function(r){var o=new zb("Save: page ".concat(t));return r.save(k,o,l).finally((function(){finishWorkerTask(o)}))})));case 1:case"end":return r.stop()}}),_loop2)}));U=0;case 53:if(!(U<c)){ee.next=58;break}return ee.delegateYield(N(U),"t2",55);case 55:U++;ee.next=53;break;case 58:ee.next=60;return Promise.all(d);case 60:G=ee.sent;H=[];q=null;if(!r){ee.next=69;break}if(q=G[0]){ee.next=67;break}return ee.abrupt("return",v.bytes);case 67:ee.next=72;break;case 69:if(0!==(H=G.flat(2)).length){ee.next=72;break}return ee.abrupt("return",v.bytes);case 72:z=w&&_ instanceof qr&&H.some((function(t){return t.needAppearances}));W=_ instanceof qr&&_.get("XFA")||null;V=null;X=!1;if(Array.isArray(W)){for(K=0,Y=W.length;K<Y;K+=2)if("datasets"===W[K]){V=W[K+1];X=!0}null===V&&(V=S.getNewTemporaryRef())}else W&&warn("Unsupported XFA type.");J=Object.create(null);if(S.trailer){Z=Object.create(null);(Q=S.trailer.get("Info")||null)instanceof qr&&Q.forEach((function(t,r){"string"==typeof r&&(Z[t]=stringToPDFString(r))}));J={rootRef:T,encryptRef:S.trailer.getRaw("Encrypt")||null,newRef:S.getNewTemporaryRef(),infoRef:S.trailer.getRaw("Info")||null,info:Z,fileIds:S.trailer.get("ID")||null,startXRef:C?x:null!==($=S.lastXRefStreamPos)&&void 0!==$?$:x,filename:u}}return ee.abrupt("return",incrementalUpdate({originalData:v.bytes,xrefInfo:J,newRefs:H,xref:S,hasXfa:!!W,xfaDatasetsRef:V,hasXfaDatasetsEntry:X,needAppearances:z,acroFormRef:w,acroForm:_,xfaData:q}).finally((function(){S.resetNewTemporaryRef()})));case 80:case"end":return ee.stop()}}),_callee3,null,[[31,40,43,46]])})));return function(r){return t.apply(this,arguments)}}());k.on("GetOperatorList",(function(t,r){var c=t.pageIndex;o.getPage(c).then((function(o){var l=new zb("GetOperatorList: page ".concat(c));startWorkerTask(l);var u=h>=Ie.INFOS?Date.now():0;o.getOperatorList({handler:k,sink:r,task:l,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(l);u&&info("page=".concat(c+1," - getOperatorList: time=")+"".concat(Date.now()-u,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(l);l.terminated||r.error(t)}))}))}));k.on("GetTextContent",(function(t,r){var c=t.pageIndex,l=t.includeMarkedContent,u=t.disableNormalization;o.getPage(c).then((function(t){var o=new zb("GetTextContent: page "+c);startWorkerTask(o);var d=h>=Ie.INFOS?Date.now():0;t.extractTextContent({handler:k,task:o,sink:r,includeMarkedContent:l,disableNormalization:u}).then((function(){finishWorkerTask(o);d&&info("page=".concat(c+1," - getTextContent: time=")+"".concat(Date.now()-d,"ms"));r.close()}),(function(t){finishWorkerTask(o);o.terminated||r.error(t)}))}))}));k.on("GetStructTree",(function(t){return o.getPage(t.pageIndex).then((function(t){return o.ensure(t,"getStructTree")}))}));k.on("FontFallback",(function(t){return o.fontFallback(t.id,k)}));k.on("Cleanup",(function(t){return o.cleanup(!0)}));k.on("Terminate",(function(t){c=!0;var r=[];if(o){o.terminate(new Cr("Worker was terminated."));var h=o.cleanup();r.push(h);o=null}else clearGlobalCaches();l&&l(new Cr("Worker was terminated."));var d,g=worker_createForOfIteratorHelper(u);try{for(g.s();!(d=g.n()).done;){var y=d.value;r.push(y.finished);y.terminate()}}catch(t){g.e(t)}finally{g.f()}return Promise.all(r).then((function(){k.destroy();k=null}))}));k.on("Ready",(function(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();k.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof vr){var r=new zb("PasswordException: response ".concat(t.code));startWorkerTask(r);k.sendWithPromise("PasswordRequest",t).then((function(t){var c=t.password;finishWorkerTask(r);o.updatePassword(c);pdfManagerReady()})).catch((function(){finishWorkerTask(r);k.send("DocException",t)}))}else t instanceof wr||t instanceof kr||t instanceof xr||t instanceof _r?k.send("DocException",t):k.send("DocException",new _r(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();t instanceof Zr?o.requestLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(t)}))}ensureNotTerminated();getPdfManager(t).then((function(t){if(c){t.terminate(new Cr("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).requestLoadedStream(!0).then((function(t){k.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));k.on("showUnverifiedSignatures",(function wphReady(t){t&&info("showUnverifiedSignatures="+t+". This is an incompletely implemented feature. Signatures cannot be validated, so use it at own risk.");self.showUnverifiedSignatures=t}));return w}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new Ub("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();"undefined"==typeof window&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&Wb.initializeFromPort(self)})();var c=o.WorkerMessageHandler;export{c as WorkerMessageHandler};