/*! For license information please see main.41ad4d84.js.LICENSE.txt */ (function(){var __webpack_modules__={46981:function(e,t,n){"use strict";n.r(t),n.d(t,{CacheProvider:function(){return T},ClassNames:function(){return $},Global:function(){return L},ThemeContext:function(){return E},css:function(){return O},jsx:function(){return R},keyframes:function(){return B},withEmotionCache:function(){return j}});var r=n(94578),a=n(47313);var i=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;th)&&(B=(z=z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var v=/[A-Z]|^ms/g,y=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!==typeof e},x=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return b(e)?e:e.replace(v,"-$&").toLowerCase()})),k=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(y,(function(e,t,n){return C={name:t,styles:n,next:C},t}))}return 1===g[e]||b(e)||"number"!==typeof t||0===t?t:t+"px"};function S(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return C={name:n.name,styles:n.styles,next:C},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)C={name:a.name,styles:a.styles,next:C},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:n,i=e(r)+a;return t(i)}}function a(e){return function(t){return new Date(e(t).getTime()-1)}}function i(e){return function(t){return e.map((function(e){return e(t)}))}}function o(e){if(e instanceof Date)return e.getFullYear();if("number"===typeof e)return e;var t=parseInt(e,10);if("string"===typeof e&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function s(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function l(e){if(e instanceof Date)return e.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(e,"."))}function c(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function u(e){if(e instanceof Date)return e.getHours();if("string"===typeof e){var t=e.split(":");if(t.length>=2){var n=t[0],r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get hours from date: ".concat(e,"."))}function d(e){if(e instanceof Date)return e.getMinutes();if("string"===typeof e){var t=e.split(":");if(t.length>=2){var n=t[1]||0,r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get minutes from date: ".concat(e,"."))}function f(e){if(e instanceof Date)return e.getSeconds();if("string"===typeof e){var t=e.split(":");if(t.length>=2){var n=t[2]||0,r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get seconds from date: ".concat(e,"."))}function h(e){var t=o(e),n=t+(1-t)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}n.r(t),n.d(t,{getCenturyEnd:function(){return g},getCenturyRange:function(){return b},getCenturyStart:function(){return h},getDate:function(){return c},getDayEnd:function(){return W},getDayRange:function(){return Y},getDayStart:function(){return q},getDaysInMonth:function(){return X},getDecadeEnd:function(){return S},getDecadeRange:function(){return _},getDecadeStart:function(){return w},getHours:function(){return u},getHoursMinutes:function(){return J},getHoursMinutesSeconds:function(){return Q},getISOLocalDate:function(){return te},getISOLocalDateTime:function(){return ne},getISOLocalMonth:function(){return ee},getMinutes:function(){return d},getMonth:function(){return s},getMonthEnd:function(){return F},getMonthHuman:function(){return l},getMonthRange:function(){return $},getMonthStart:function(){return D},getNextCenturyEnd:function(){return y},getNextCenturyStart:function(){return m},getNextDayEnd:function(){return K},getNextDayStart:function(){return H},getNextDecadeEnd:function(){return A},getNextDecadeStart:function(){return k},getNextMonthEnd:function(){return U},getNextMonthStart:function(){return L},getNextYearEnd:function(){return N},getNextYearStart:function(){return E},getPreviousCenturyEnd:function(){return v},getPreviousCenturyStart:function(){return p},getPreviousDayEnd:function(){return V},getPreviousDayStart:function(){return G},getPreviousDecadeEnd:function(){return C},getPreviousDecadeStart:function(){return x},getPreviousMonthEnd:function(){return B},getPreviousMonthStart:function(){return R},getPreviousYearEnd:function(){return j},getPreviousYearStart:function(){return P},getSeconds:function(){return f},getYear:function(){return o},getYearEnd:function(){return T},getYearRange:function(){return M},getYearStart:function(){return O}});var p=r(o,h,-100),m=r(o,h,100),g=a(m),v=r(o,g,-100),y=r(o,g,100),b=i([h,g]);function w(e){var t=o(e),n=t+(1-t)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var x=r(o,w,-10),k=r(o,w,10),S=a(k),C=r(o,S,-10),A=r(o,S,10),_=i([w,S]);function O(e){var t=o(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var P=r(o,O,-1),E=r(o,O,1),T=a(E),j=r(o,T,-1),N=r(o,T,1),M=i([O,T]);function I(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=o(n),i=s(n)+r,l=new Date;return l.setFullYear(a,i,1),l.setHours(0,0,0,0),e(l)}}function D(e){var t=o(e),n=s(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var R=I(D,-1),L=I(D,1),F=a(L),B=I(F,-1),U=I(F,1),$=i([D,F]);function z(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=o(n),i=s(n),l=c(n)+r,u=new Date;return u.setFullYear(a,i,l),u.setHours(0,0,0,0),e(u)}}function q(e){var t=o(e),n=s(e),r=c(e),a=new Date;return a.setFullYear(t,n,r),a.setHours(0,0,0,0),a}var G=z(q,-1),H=z(q,1),W=a(H),V=z(W,-1),K=z(W,1),Y=i([q,W]);function X(e){return c(F(e))}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n="".concat(e);return n.length>=t?e:"0000".concat(n).slice(-t)}function J(e){var t=Z(u(e)),n=Z(d(e));return"".concat(t,":").concat(n)}function Q(e){var t=Z(u(e)),n=Z(d(e)),r=Z(f(e));return"".concat(t,":").concat(n,":").concat(r)}function ee(e){var t=Z(o(e),4),n=Z(l(e));return"".concat(t,"-").concat(n)}function te(e){var t=Z(o(e),4),n=Z(l(e)),r=Z(c(e));return"".concat(t,"-").concat(n,"-").concat(r)}function ne(e){return"".concat(te(e),"T").concat(Q(e))}},80133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(47313)),a=f(n(75192)),i=f(n(72363)),o=f(n(50404)),s=f(n(70426)),l=f(n(5883)),c=f(n(1229)),u=n(2532),d=n(99128);function f(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function p(e){return p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function g(){return g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:e.props.closeCalendar,r=e.props.onChange;n&&e.closeCalendar(),r&&r(t)})),A(S(e),"onChangeFrom",(function(t,n){var r=e.props.value,a=y([].concat(r),2)[1];e.onChange([t,a],n)})),A(S(e),"onChangeTo",(function(t,n){var r=e.props.value,a=y([].concat(r),1)[0];e.onChange([a,t],n)})),A(S(e),"onFocus",(function(t){var n=e.props,r=n.disabled,a=n.onFocus;a&&a(t),r||e.openCalendar()})),A(S(e),"openCalendar",(function(){e.setState({isOpen:!0})})),A(S(e),"closeCalendar",(function(){e.setState((function(e){return e.isOpen?{isOpen:!1}:null}))})),A(S(e),"toggleCalendar",(function(){e.setState((function(e){return{isOpen:!e.isOpen}}))})),A(S(e),"stopPropagation",(function(e){return e.stopPropagation()})),A(S(e),"clear",(function(){return e.onChange(null)})),e}return t=f,n=[{key:"componentDidMount",value:function(){this.handleOutsideActionListeners()}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,r=this.props,a=r.onCalendarClose,i=r.onCalendarOpen;n!==t.isOpen&&(this.handleOutsideActionListeners(),(0,d.callIfDefined)(n?i:a))}},{key:"componentWillUnmount",value:function(){this.handleOutsideActionListeners(!1)}},{key:"handleOutsideActionListeners",value:function(e){var t=this,n=this.state.isOpen,r=("undefined"!==typeof e?e:n)?"addEventListener":"removeEventListener";O.forEach((function(e){return document[r](e,t.onOutsideAction)}))}},{key:"renderInputs",value:function(){var e=this.props,t=e.autoFocus,n=e.calendarAriaLabel,a=e.calendarIcon,i=e.clearAriaLabel,o=e.clearIcon,s=e.dayAriaLabel,l=e.dayPlaceholder,u=e.disableCalendar,d=e.disabled,f=e.format,h=e.locale,p=e.maxDate,m=e.maxDetail,b=e.minDate,w=e.monthAriaLabel,x=e.monthPlaceholder,k=e.name,S=e.nativeInputAriaLabel,C=e.rangeDivider,O=e.required,P=e.showLeadingZeros,E=e.value,T=e.yearAriaLabel,j=e.yearPlaceholder,N=this.state.isOpen,M=y([].concat(E),2),I=M[0],D=M[1],R=function(e){for(var t=1;ti?new Error("Invalid prop `".concat(t,"` of type `").concat(n(a),"` supplied to `").concat(r,"`, minDate cannot be larger than maxDate.")):null};t.isMaxDate=function(e,t,r){var a=e[t];if(!a)return null;if(!(a instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(n(a),"` supplied to `").concat(r,"`, expected instance of `Date`."));var i=e.minDate;return i&&a1?t-1:0),r=1;rs){for(var t=0,n=i.length-o;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l},28813:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},62922:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},87828:function(e,t,n){"use strict";var r=n(88593),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]0;){var i=r[a],o=t[i];if(o){var s=e[i],l=void 0===s||o(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},899:function(e,t,n){"use strict";var r=n(28813),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n>8&255]},W=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return z(e,23,4)},Y=function(e){return z(e,52,8)},X=function(e,t){b(e[T],t,{get:function(){return _(this)[t]}})},Z=function(e,t,n,r){var a=p(n),i=_(e);if(a+t>i.byteLength)throw B(j);var o=_(i.buffer).bytes,s=a+i.byteOffset,l=x(o,s,s+t);return r?l:$(l)},J=function(e,t,n,r,a,i){var o=p(n),s=_(e);if(o+t>s.byteLength)throw B(j);for(var l=_(s.buffer).bytes,c=o+s.byteOffset,u=r(+a),d=0;dne;)(ee=te[ne++])in M||l(M,ee,N[ee]);I.constructor=M}v&&g(R)!==L&&v(R,L);var re=new D(new M(2)),ae=a(R.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(R,{setInt8:function(e,t){ae(this,e,t<<24>>24)},setUint8:function(e,t){ae(this,e,t<<24>>24)}},{unsafe:!0})}else I=(M=function(e){d(this,I);var t=p(e);O(this,{bytes:U(F(t),0),byteLength:t}),i||(this.byteLength=t)})[T],R=(D=function(e,t,n){d(this,R),d(e,I);var r=_(e).byteLength,a=f(t);if(a<0||a>r)throw B("Wrong offset");if(a+(n=void 0===n?r-a:h(n))>r)throw B("Wrong length");O(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[T],i&&(X(M,"byteLength"),X(D,"buffer"),X(D,"byteLength"),X(D,"byteOffset")),c(R,{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return V(Z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return V(Z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return q(Z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return q(Z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,G,t)},setUint8:function(e,t){J(this,1,e,G,t)},setInt16:function(e,t){J(this,2,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,H,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,K,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});k(M,P),k(D,E),e.exports={ArrayBuffer:M,DataView:D}},88891:function(e,t,n){"use strict";var r=n(11446),a=n(53864),i=n(76425),o=n(77185),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=i(n),c=a(e,l),u=a(t,l),d=arguments.length>2?arguments[2]:void 0,f=s((void 0===d?l:a(d,l))-u,l-c),h=1;for(u0;)u in n?n[c]=n[u]:o(n,c),c+=h,u+=h;return n}},76206:function(e,t,n){"use strict";var r=n(11446),a=n(53864),i=n(76425);e.exports=function(e){for(var t=r(this),n=i(t),o=arguments.length,s=a(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:a(l,n);c>s;)t[s++]=e;return t}},3424:function(e,t,n){"use strict";var r=n(79056).forEach,a=n(11689)("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},45034:function(e,t,n){var r=n(76425);e.exports=function(e,t){for(var n=0,a=r(t),i=new e(a);a>n;)i[n]=t[n++];return i}},97509:function(e,t,n){"use strict";var r=n(25852),a=n(37892),i=n(11446),o=n(19780),s=n(77487),l=n(73011),c=n(76425),u=n(36072),d=n(68029),f=n(84284),h=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,p>2?arguments[2]:void 0));var v,y,b,w,x,k,S=f(t),C=0;if(!S||this===h&&s(S))for(v=c(t),y=n?new this(v):h(v);v>C;C++)k=g?m(t[C],C):t[C],u(y,C,k);else for(x=(w=d(t,S)).next,y=n?new this:[];!(b=a(x,w)).done;C++)k=g?o(w,m,[b.value,C],!0):b.value,u(y,C,k);return y.length=C,y}},49821:function(e,t,n){var r=n(76494),a=n(53864),i=n(76425),o=function(e){return function(t,n,o){var s,l=r(t),c=i(l),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},79056:function(e,t,n){var r=n(25852),a=n(34534),i=n(70769),o=n(11446),s=n(76425),l=n(41180),c=a([].push),u=function(e){var t=1==e,n=2==e,a=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,g,v){for(var y,b,w=o(p),x=i(w),k=r(m,g),S=s(x),C=0,A=v||l,_=t?A(p,S):n||f?A(p,0):void 0;S>C;C++)if((h||C in x)&&(b=k(y=x[C],C,w),e))if(t)_[C]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:c(_,y)}else switch(e){case 4:return!1;case 7:c(_,y)}return d?-1:a||u?u:_}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},34116:function(e,t,n){"use strict";var r=n(12256),a=n(76494),i=n(56501),o=n(76425),s=n(11689),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),f=u||!d;e.exports=f?function(e){if(u)return r(c,this,arguments)||0;var t=a(this),n=o(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},76205:function(e,t,n){var r=n(66111),a=n(75508),i=n(32504),o=a("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},11689:function(e,t,n){"use strict";var r=n(66111);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},69998:function(e,t,n){var r=n(68973),a=n(11446),i=n(70769),o=n(76425),s=TypeError,l=function(e){return function(t,n,l,c){r(n);var u=a(t),d=i(u),f=o(u),h=e?f-1:0,p=e?-1:1;if(l<2)for(;;){if(h in d){c=d[h],h+=p;break}if(h+=p,e?h<0:f<=h)throw s("Reduce of empty array with no initial value")}for(;e?h>=0:f>h;h+=p)h in d&&(c=n(c,d[h],h,u));return c}};e.exports={left:l(!1),right:l(!0)}},39217:function(e,t,n){"use strict";var r=n(37420),a=n(38162),i=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(a(e)&&!o(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},92914:function(e,t,n){var r=n(53864),a=n(76425),i=n(36072),o=Array,s=Math.max;e.exports=function(e,t,n){for(var l=a(e),c=r(t,l),u=r(void 0===n?l:n,l),d=o(s(u-c,0)),f=0;c0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},o=function(e,t,n,r){for(var a=t.length,i=n.length,o=0,s=0;o1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&r(f,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",a=v(t),i=v(r);u(e,t,(function(e,t){g(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},70655:function(e,t,n){"use strict";var r=n(34534),a=n(22631),i=n(36781).getWeakData,o=n(35793),s=n(59799),l=n(90486),c=n(34965),u=n(81413),d=n(79056),f=n(78320),h=n(25313),p=h.set,m=h.getterFor,g=d.find,v=d.findIndex,y=r([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new x)},x=function(){this.entries=[]},k=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};x.prototype={get:function(e){var t=k(this,e);if(t)return t[1]},has:function(e){return!!k(this,e)},set:function(e,t){var n=k(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,a){o(e,h),p(e,{type:t,id:b++,frozen:void 0}),l(a)||u(a,e[r],{that:e,AS_ENTRIES:n})})),h=d.prototype,g=m(t),v=function(e,t,n){var r=g(e),a=i(s(t),!0);return!0===a?w(r).set(t,n):a[r.id]=n,e};return a(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&f(n,t.id)}}),a(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},19881:function(e,t,n){"use strict";var r=n(73587),a=n(19782),i=n(34534),o=n(79492),s=n(63609),l=n(36781),c=n(81413),u=n(35793),d=n(30171),f=n(90486),h=n(34965),p=n(66111),m=n(21784),g=n(21117),v=n(2142);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",x=a[e],k=x&&x.prototype,S=x,C={},A=function(e){var t=i(k[e]);s(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!d(x)||!(b||k.forEach&&!p((function(){(new x).entries().next()})))))S=n.getConstructor(t,e,y,w),l.enable();else if(o(e,!0)){var _=new S,O=_[w](b?{}:-0,1)!=_,P=p((function(){_.has(1)})),E=m((function(e){new x(e)})),T=!b&&p((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));E||((S=t((function(e,t){u(e,k);var n=v(new x,e,S);return f(t)||c(t,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=k,k.constructor=S),(P||T)&&(A("delete"),A("has"),y&&A("get")),(T||O)&&A(w),b&&k.clear&&delete k.clear}return C[e]=S,r({global:!0,constructor:!0,forced:S!=x},C),g(S,e),b||n.setStrong(S,e,y),S}},11147:function(e,t,n){var r=n(78320),a=n(20412),i=n(82530),o=n(81684);e.exports=function(e,t,n){for(var s=a(t),l=o.f,c=i.f,u=0;u"+l+""}},43341:function(e){e.exports=function(e,t){return{value:e,done:t}}},87454:function(e,t,n){var r=n(37420),a=n(81684),i=n(80431);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},80431:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},36072:function(e,t,n){"use strict";var r=n(44560),a=n(81684),i=n(80431);e.exports=function(e,t,n){var o=r(t);o in e?a.f(e,o,i(0,n)):e[o]=n}},31022:function(e,t,n){"use strict";var r=n(59799),a=n(83131),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw i("Incorrect hint");return a(this,e)}},18787:function(e,t,n){var r=n(18138),a=n(81684);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),a.f(e,t,n)}},63609:function(e,t,n){var r=n(30171),a=n(81684),i=n(18138),o=n(92164);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:a.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},22631:function(e,t,n){var r=n(63609);e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},92164:function(e,t,n){var r=n(19782),a=Object.defineProperty;e.exports=function(e,t){try{a(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},77185:function(e,t,n){"use strict";var r=n(5065),a=TypeError;e.exports=function(e,t){if(!delete e[t])throw a("Cannot delete property "+r(t)+" of "+r(e))}},37420:function(e,t,n){var r=n(66111);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},64620:function(e){var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},20916:function(e,t,n){var r=n(19782),a=n(34965),i=r.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},60895:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7727:function(e){e.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}},17255:function(e,t,n){var r=n(20916)("span").classList,a=r&&r.constructor&&r.constructor.prototype;e.exports=a===Object.prototype?void 0:a},62554:function(e,t,n){var r=n(64771).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},32599:function(e,t,n){var r=n(43716),a=n(70520);e.exports=!r&&!a&&"object"==typeof window&&"object"==typeof document},37658:function(e){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},43716:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},90907:function(e,t,n){var r=n(64771);e.exports=/MSIE|Trident/.test(r)},37290:function(e,t,n){var r=n(64771);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},98716:function(e,t,n){var r=n(64771);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},70520:function(e,t,n){var r=n(73135);e.exports="undefined"!=typeof process&&"process"==r(process)},25053:function(e,t,n){var r=n(64771);e.exports=/web0s(?!.*chrome)/i.test(r)},64771:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},32504:function(e,t,n){var r,a,i=n(19782),o=n(64771),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!a&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(a=+r[1]),e.exports=a},35199:function(e,t,n){var r=n(64771).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},28605:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},73587:function(e,t,n){var r=n(19782),a=n(82530).f,i=n(87454),o=n(63609),s=n(92164),l=n(11147),c=n(79492);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(h=a(n,u))&&h.value:n[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),o(n,u,f,e)}}},66111:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},88635:function(e,t,n){"use strict";n(4541);var r=n(69050),a=n(63609),i=n(75493),o=n(66111),s=n(75508),l=n(87454),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!p||n){var m=r(/./[f]),g=t(f,""[e],(function(e,t,n,a,o){var s=r(e),l=t.exec;return l===i||l===u.exec?h&&!o?{done:!0,value:m(t,n,a)}:{done:!0,value:s(n,t,a)}:{done:!1}}));a(String.prototype,e,g[0]),a(u,f,g[1])}d&&l(u[f],"sham",!0)}},58504:function(e,t,n){"use strict";var r=n(38162),a=n(76425),i=n(60895),o=n(25852);e.exports=function e(t,n,s,l,c,u,d,f){for(var h,p=c,m=0,g=!!d&&o(d,f);m0&&r(h)?p=e(t,n,h,a(h),p,u-1)-1:(i(p+1),t[p]=h),p++),m++;return p}},31561:function(e,t,n){var r=n(66111);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},12256:function(e,t,n){var r=n(55830),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},25852:function(e,t,n){var r=n(69050),a=n(68973),i=n(55830),o=r(r.bind);e.exports=function(e,t){return a(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},55830:function(e,t,n){var r=n(66111);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},5268:function(e,t,n){"use strict";var r=n(34534),a=n(68973),i=n(34965),o=n(78320),s=n(51346),l=n(55830),c=Function,u=r([].concat),d=r([].join),f={},h=function(e,t,n){if(!o(f,t)){for(var r=[],a=0;a]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,p=r.length,m=u;return void 0!==d&&(d=a(d),m=c),s(f,m,(function(a,s){var c;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return a;if(u>p){var f=i(u/10);return 0===f?a:f<=p?void 0===r[f-1]?o(s,1):r[f-1]+o(s,1):a}c=r[u-1]}return void 0===c?"":c}))}},19782:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},78320:function(e,t,n){var r=n(34534),a=n(11446),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},52819:function(e){e.exports={}},81628:function(e){e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(n){}}},4836:function(e,t,n){var r=n(66780);e.exports=r("document","documentElement")},53373:function(e,t,n){var r=n(37420),a=n(66111),i=n(20916);e.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},44221:function(e){var t=Array,n=Math.abs,r=Math.pow,a=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,s,l){var c,u,d,f=t(l),h=8*l-s-1,p=(1<>1,g=23===s?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===1/0?(u=e!=e?1:0,c=p):(c=a(i(e)/o),e*(d=r(2,-c))<1&&(c--,d*=2),(e+=c+m>=1?g/d:g*r(2,1-m))*d>=2&&(c++,d/=2),c+m>=p?(u=0,c=p):c+m>=1?(u=(e*d-1)*r(2,s),c+=m):(u=e*r(2,m-1)*r(2,s),c=0));s>=8;)f[y++]=255&u,u/=256,s-=8;for(c=c<0;)f[y++]=255&c,c/=256,h-=8;return f[--y]|=128*v,f},unpack:function(e,t){var n,a=e.length,i=8*a-t-1,o=(1<>1,l=i-7,c=a-1,u=e[c--],d=127&u;for(u>>=7;l>0;)d=256*d+e[c--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===d)d=1-s;else{if(d===o)return n?NaN:u?-1/0:1/0;n+=r(2,t),d-=s}return(u?-1:1)*n*r(2,d-t)}}},70769:function(e,t,n){var r=n(34534),a=n(66111),i=n(73135),o=Object,s=r("".split);e.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):o(e)}:o},2142:function(e,t,n){var r=n(30171),a=n(34965),i=n(32695);e.exports=function(e,t,n){var o,s;return i&&r(o=t.constructor)&&o!==n&&a(s=o.prototype)&&s!==n.prototype&&i(e,s),e}},50112:function(e,t,n){var r=n(34534),a=n(30171),i=n(58749),o=r(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},36781:function(e,t,n){var r=n(73587),a=n(34534),i=n(52819),o=n(34965),s=n(78320),l=n(81684).f,c=n(59814),u=n(64350),d=n(61481),f=n(39020),h=n(31561),p=!1,m=f("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=a([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var r=e(n),a=0,i=r.length;ay;y++)if((w=T(e[y]))&&c(m,w))return w;return new p(!1)}g=u(e,v)}for(x=A?e.next:g.next;!(k=a(x,g)).done;){try{w=T(k.value)}catch(j){f(g,"throw",j)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},78300:function(e,t,n){var r=n(37892),a=n(59799),i=n(62135);e.exports=function(e,t,n){var o,s;a(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return a(o),n}},82992:function(e,t,n){"use strict";var r=n(11647).IteratorPrototype,a=n(83302),i=n(80431),o=n(21117),s=n(55706),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=a(r,{next:i(+!c,n)}),o(e,u,!1,!0),s[u]=l,e}},67432:function(e,t,n){"use strict";var r=n(73587),a=n(37892),i=n(42192),o=n(21774),s=n(30171),l=n(82992),c=n(7209),u=n(32695),d=n(21117),f=n(87454),h=n(63609),p=n(75508),m=n(55706),g=n(11647),v=o.PROPER,y=o.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k="keys",S="values",C="entries",A=function(){return this};e.exports=function(e,t,n,o,p,g,_){l(n,t,o);var O,P,E,T=function(e){if(e===p&&D)return D;if(!w&&e in M)return M[e];switch(e){case k:case S:case C:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",N=!1,M=e.prototype,I=M[x]||M["@@iterator"]||p&&M[p],D=!w&&I||T(p),R="Array"==t&&M.entries||I;if(R&&(O=c(R.call(new e)))!==Object.prototype&&O.next&&(i||c(O)===b||(u?u(O,b):s(O[x])||h(O,x,A)),d(O,j,!0,!0),i&&(m[j]=A)),v&&p==S&&I&&I.name!==S&&(!i&&y?f(M,"name",S):(N=!0,D=function(){return a(I,this)})),p)if(P={values:T(S),keys:g?D:T(k),entries:T(C)},_)for(E in P)(w||N||!(E in M))&&h(M,E,P[E]);else r({target:t,proto:!0,forced:w||N},P);return i&&!_||M[x]===D||h(M,x,D,{name:p}),m[t]=D,P}},11647:function(e,t,n){"use strict";var r,a,i,o=n(66111),s=n(30171),l=n(34965),c=n(83302),u=n(7209),d=n(63609),f=n(75508),h=n(42192),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(a=u(u(i)))!==Object.prototype&&(r=a):m=!0),!l(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=c(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},55706:function(e){e.exports={}},76425:function(e,t,n){var r=n(61234);e.exports=function(e){return r(e.length)}},18138:function(e,t,n){var r=n(34534),a=n(66111),i=n(30171),o=n(78320),s=n(37420),l=n(21774).CONFIGURABLE,c=n(50112),u=n(25313),d=u.enforce,f=u.get,h=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!a((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=d(e);return o(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},19898:function(e){var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){var t=+e;return 0==t?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:t},32319:function(e,t,n){var r=n(49093),a=Math.abs,i=Math.pow,o=i(2,-52),s=i(2,-23),l=i(2,127)*(2-s),c=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=+e,u=a(i),d=r(i);return ul||n!=n?d*(1/0):d*n}},53521:function(e){var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},26702:function(e){var t=Math.log;e.exports=Math.log1p||function(e){var n=+e;return n>-1e-8&&n<1e-8?n-n*n/2:t(1+n)}},49093:function(e){e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},70596:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},20209:function(e,t,n){var r,a,i,o,s,l=n(19782),c=n(25852),u=n(82530).f,d=n(11092).set,f=n(96055),h=n(98716),p=n(37290),m=n(25053),g=n(70520),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,x=u(l,"queueMicrotask"),k=x&&x.value;if(!k){var S=new f,C=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(n){throw S.head&&r(),n}e&&e.enter()};h||g||m||!v||!y?!p&&w&&w.resolve?((o=w.resolve(void 0)).constructor=w,s=c(o.then,o),r=function(){s(C)}):g?r=function(){b.nextTick(C)}:(d=c(d,l),r=function(){d(C)}):(a=!0,i=y.createTextNode(""),new v(C).observe(i,{characterData:!0}),r=function(){i.data=a=!a}),k=function(e){S.head||r(),S.add(e)}}e.exports=k},54249:function(e,t,n){"use strict";var r=n(68973),a=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw a("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},63522:function(e,t,n){var r=n(22872),a=TypeError;e.exports=function(e){if(r(e))throw a("The method doesn't accept regular expressions");return e}},31024:function(e,t,n){var r=n(19782).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},96048:function(e,t,n){var r=n(19782),a=n(66111),i=n(34534),o=n(55217),s=n(58119).trim,l=n(31136),c=i("".charAt),u=r.parseFloat,d=r.Symbol,f=d&&d.iterator,h=1/u(l+"-0")!==-1/0||f&&!a((function(){u(Object(f))}));e.exports=h?function(e){var t=s(o(e)),n=u(t);return 0===n&&"-"==c(t,0)?-0:n}:u},39232:function(e,t,n){var r=n(19782),a=n(66111),i=n(34534),o=n(55217),s=n(58119).trim,l=n(31136),c=r.parseInt,u=r.Symbol,d=u&&u.iterator,f=/^[+-]?0x/i,h=i(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||d&&!a((function(){c(Object(d))}));e.exports=p?function(e,t){var n=s(o(e));return c(n,t>>>0||(h(f,n)?16:10))}:c},85698:function(e,t,n){"use strict";var r=n(37420),a=n(34534),i=n(37892),o=n(66111),s=n(11467),l=n(51186),c=n(23509),u=n(11446),d=n(70769),f=Object.assign,h=Object.defineProperty,p=a([].concat);e.exports=!f||o((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=a}))?function(e,t){for(var n=u(e),a=arguments.length,o=1,f=l.f,h=c.f;a>o;)for(var m,g=d(arguments[o++]),v=f?p(s(g),f(g)):s(g),y=v.length,b=0;y>b;)m=v[b++],r&&!i(h,g,m)||(n[m]=g[m]);return n}:f},83302:function(e,t,n){var r,a=n(59799),i=n(3415),o=n(28605),s=n(52819),l=n(4836),c=n(20916),u=n(59325),d="prototype",f="script",h=u("IE_PROTO"),p=function(){},m=function(e){return"<"+f+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}v="undefined"!=typeof document?document.domain&&r?g(r):function(){var e,t=c("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F}():g(r);for(var e=o.length;e--;)delete v[d][o[e]];return v()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=a(e),n=new p,p[d]=null,n[h]=e):n=v(),void 0===t?n:i.f(n,t)}},3415:function(e,t,n){var r=n(37420),a=n(83526),i=n(81684),o=n(59799),s=n(76494),l=n(11467);t.f=r&&!a?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),a=l(t),c=a.length,u=0;c>u;)i.f(e,n=a[u++],r[n]);return e}},81684:function(e,t,n){var r=n(37420),a=n(53373),i=n(83526),o=n(59799),s=n(44560),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?i?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=u(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),a)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},82530:function(e,t,n){var r=n(37420),a=n(37892),i=n(23509),o=n(80431),s=n(76494),l=n(44560),c=n(78320),u=n(53373),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return o(!a(i.f,e,t),e[t])}},64350:function(e,t,n){var r=n(73135),a=n(76494),i=n(59814).f,o=n(92914),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(t){return o(s)}}(e):i(a(e))}},59814:function(e,t,n){var r=n(96945),a=n(28605).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},51186:function(e,t){t.f=Object.getOwnPropertySymbols},7209:function(e,t,n){var r=n(78320),a=n(30171),i=n(11446),o=n(59325),s=n(97610),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return a(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},61481:function(e,t,n){var r=n(66111),a=n(34965),i=n(73135),o=n(9603),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||o?function(e){return!!a(e)&&((!o||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},81778:function(e,t,n){var r=n(34534);e.exports=r({}.isPrototypeOf)},96945:function(e,t,n){var r=n(34534),a=n(78320),i=n(76494),o=n(49821).indexOf,s=n(52819),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!a(s,n)&&a(r,n)&&l(u,n);for(;t.length>c;)a(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},11467:function(e,t,n){var r=n(96945),a=n(28605);e.exports=Object.keys||function(e){return r(e,a)}},23509:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},86854:function(e,t,n){"use strict";var r=n(42192),a=n(19782),i=n(66111),o=n(35199);e.exports=r||!i((function(){if(!(o&&o<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete a[e]}}))},32695:function(e,t,n){var r=n(34534),a=n(59799),i=n(74375);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return a(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},31525:function(e,t,n){var r=n(37420),a=n(34534),i=n(11467),o=n(76494),s=a(n(23509).f),l=a([].push),c=function(e){return function(t){for(var n,a=o(t),c=i(a),u=c.length,d=0,f=[];u>d;)n=c[d++],r&&!s(a,n)||l(f,e?[n,a[n]]:a[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},83685:function(e,t,n){"use strict";var r=n(32105),a=n(5249);e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},83131:function(e,t,n){var r=n(37892),a=n(30171),i=n(34965),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&a(n=e.toString)&&!i(s=r(n,e)))return s;if(a(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&a(n=e.toString)&&!i(s=r(n,e)))return s;throw o("Can't convert object to primitive value")}},20412:function(e,t,n){var r=n(66780),a=n(34534),i=n(59814),o=n(51186),s=n(59799),l=a([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=o.f;return n?l(t,n(e)):t}},30306:function(e,t,n){var r=n(19782);e.exports=r},74750:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},30855:function(e,t,n){var r=n(19782),a=n(88773),i=n(30171),o=n(79492),s=n(50112),l=n(75508),c=n(32599),u=n(43716),d=n(42192),f=n(32504),h=a&&a.prototype,p=l("species"),m=!1,g=i(r.PromiseRejectionEvent),v=o("Promise",(function(){var e=s(a),t=e!==String(a);if(!t&&66===f)return!0;if(d&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new a((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(m=n.then((function(){}))instanceof r))return!0}return!t&&(c||u)&&!g}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},88773:function(e,t,n){var r=n(19782);e.exports=r.Promise},44270:function(e,t,n){var r=n(59799),a=n(34965),i=n(54249);e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},24310:function(e,t,n){var r=n(88773),a=n(21784),i=n(30855).CONSTRUCTOR;e.exports=i||!a((function(e){r.all(e).then(void 0,(function(){}))}))},23966:function(e,t,n){var r=n(81684).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},96055:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},82279:function(e,t,n){var r=n(37892),a=n(59799),i=n(30171),o=n(73135),s=n(75493),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&a(c),c}if("RegExp"===o(e))return r(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},75493:function(e,t,n){"use strict";var r=n(37892),a=n(34534),i=n(55217),o=n(21537),s=n(4274),l=n(67193),c=n(83302),u=n(25313).get,d=n(68988),f=n(81748),h=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=a("".charAt),v=a("".indexOf),y=a("".replace),b=a("".slice),w=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),x=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(w||k||x||d||f)&&(m=function(e){var t,n,a,s,l,d,f,S=this,C=u(S),A=i(e),_=C.raw;if(_)return _.lastIndex=S.lastIndex,t=r(m,_,A),S.lastIndex=_.lastIndex,t;var O=C.groups,P=x&&S.sticky,E=r(o,S),T=S.source,j=0,N=A;if(P&&(E=y(E,"y",""),-1===v(E,"g")&&(E+="g"),N=b(A,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==g(A,S.lastIndex-1))&&(T="(?: "+T+")",N=" "+N,j++),n=new RegExp("^(?:"+T+")",E)),k&&(n=new RegExp("^"+T+"$(?!\\s)",E)),w&&(a=S.lastIndex),s=r(p,P?n:S,N),P?s?(s.input=b(s.input,j),s[0]=b(s[0],j),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:w&&s&&(S.lastIndex=S.global?s.index+s[0].length:a),k&&s&&s.length>1&&r(h,s[0],n,(function(){for(l=1;lb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},9629:function(e,t,n){var r=n(90486),a=TypeError;e.exports=function(e){if(r(e))throw a("Can't call method on "+e);return e}},58698:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},55502:function(e,t,n){"use strict";var r=n(19782),a=n(12256),i=n(30171),o=n(37658),s=n(64771),l=n(51346),c=n(24050),u=r.Function,d=/MSIE .\./.test(s)||o&&function(){var e=r.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,o){var s=c(arguments.length,1)>n,d=i(r)?r:u(r),f=s?l(arguments,n):[],h=s?function(){a(d,this,f)}:d;return t?e(h,o):e(h)}:e}},8965:function(e,t,n){"use strict";var r=n(66780),a=n(81684),i=n(75508),o=n(37420),s=i("species");e.exports=function(e){var t=r(e),n=a.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},21117:function(e,t,n){var r=n(81684).f,a=n(78320),i=n(75508)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!a(e,i)&&r(e,i,{configurable:!0,value:t})}},59325:function(e,t,n){var r=n(67193),a=n(39020),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},58749:function(e,t,n){var r=n(19782),a=n(92164),i="__core-js_shared__",o=r[i]||a(i,{});e.exports=o},67193:function(e,t,n){var r=n(42192),a=n(58749);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.27.2",mode:r?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4724:function(e,t,n){var r=n(59799),a=n(68458),i=n(90486),o=n(75508)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[o])?t:a(n)}},59624:function(e,t,n){var r=n(66111);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},19838:function(e,t,n){var r=n(34534),a=n(56501),i=n(55217),o=n(9629),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,d=i(o(t)),f=a(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=l(d,f))<55296||r>56319||f+1===h||(u=l(d,f+1))<56320||u>57343?e?s(d,f):r:e?c(d,f,f+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},54686:function(e,t,n){var r=n(64771);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},91894:function(e,t,n){var r=n(34534),a=n(61234),i=n(55217),o=n(76930),s=n(9629),l=r(o),c=r("".slice),u=Math.ceil,d=function(e){return function(t,n,r){var o,d,f=i(s(t)),h=a(n),p=f.length,m=void 0===r?" ":i(r);return h<=p||""==m?f:((d=l(m,u((o=h-p)/m.length))).length>o&&(d=c(d,0,o)),e?f+d:d+f)}};e.exports={start:d(!1),end:d(!0)}},34148:function(e,t,n){var r=n(34534),a=2147483647,i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=r(o.exec),u=Math.floor,d=String.fromCharCode,f=r("".charCodeAt),h=r([].join),p=r([].push),m=r("".replace),g=r("".split),v=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),r+=36;return u(r+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&a<=56319&&n=o&&ru((a-c)/x))throw l(s);for(c+=(w-o)*x,o=w,n=0;na)throw l(s);if(r==o){for(var k=c,S=36;;){var C=S<=m?1:S>=m+26?26:S-m;if(k0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},2800:function(e,t,n){"use strict";var r=n(58119).end,a=n(40473);e.exports=a("trimEnd")?function(){return r(this)}:"".trimEnd},40473:function(e,t,n){var r=n(21774).PROPER,a=n(66111),i=n(31136);e.exports=function(e){return a((function(){return!!i[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||r&&i[e].name!==e}))}},19417:function(e,t,n){"use strict";var r=n(58119).start,a=n(40473);e.exports=a("trimStart")?function(){return r(this)}:"".trimStart},58119:function(e,t,n){var r=n(34534),a=n(9629),i=n(55217),o=n(31136),s=r("".replace),l="["+o+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),d=function(e){return function(t){var n=i(a(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,u,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},33969:function(e,t,n){var r=n(32504),a=n(66111);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},31043:function(e,t,n){var r=n(37892),a=n(66780),i=n(75508),o=n(63609);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return r(n,this)}),{arity:1})}},49571:function(e,t,n){var r=n(33969);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},11092:function(e,t,n){var r,a,i,o,s=n(19782),l=n(12256),c=n(25852),u=n(30171),d=n(78320),f=n(66111),h=n(4836),p=n(51346),m=n(20916),g=n(24050),v=n(98716),y=n(70520),b=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,S=s.Function,C=s.MessageChannel,A=s.String,_=0,O={},P="onreadystatechange";f((function(){r=s.location}));var E=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},T=function(e){return function(){E(e)}},j=function(e){E(e.data)},N=function(e){s.postMessage(A(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=u(e)?e:S(e),n=p(arguments,1);return O[++_]=function(){l(t,void 0,n)},a(_),_},w=function(e){delete O[e]},y?a=function(e){x.nextTick(T(e))}:k&&k.now?a=function(e){k.now(T(e))}:C&&!v?(o=(i=new C).port2,i.port1.onmessage=j,a=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(N)?(a=N,s.addEventListener("message",j,!1)):a=P in m("script")?function(e){h.appendChild(m("script"))[P]=function(){h.removeChild(this),E(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},29301:function(e,t,n){var r=n(34534);e.exports=r(1..valueOf)},53864:function(e,t,n){var r=n(56501),a=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):i(n,t)}},76654:function(e,t,n){var r=n(63086),a=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw a("Can't convert number to bigint");return BigInt(t)}},35761:function(e,t,n){var r=n(56501),a=n(61234),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=a(t);if(t!==n)throw i("Wrong length or index");return n}},76494:function(e,t,n){var r=n(70769),a=n(9629);e.exports=function(e){return r(a(e))}},56501:function(e,t,n){var r=n(70596);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},61234:function(e,t,n){var r=n(56501),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},11446:function(e,t,n){var r=n(9629),a=Object;e.exports=function(e){return a(r(e))}},67840:function(e,t,n){var r=n(91275),a=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw a("Wrong offset");return n}},91275:function(e,t,n){var r=n(56501),a=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw a("The argument can't be less than 0");return t}},63086:function(e,t,n){var r=n(37892),a=n(34965),i=n(64196),o=n(62135),s=n(83131),l=n(75508),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!a(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},44560:function(e,t,n){var r=n(63086),a=n(64196);e.exports=function(e){var t=r(e,"string");return a(t)?t:t+""}},32105:function(e,t,n){var r={};r[n(75508)("toStringTag")]="z",e.exports="[object z]"===String(r)},55217:function(e,t,n){var r=n(5249),a=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return a(e)}},5065:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},4070:function(e,t,n){"use strict";var r=n(73587),a=n(19782),i=n(37892),o=n(37420),s=n(8630),l=n(80049),c=n(62403),u=n(35793),d=n(80431),f=n(87454),h=n(58186),p=n(61234),m=n(35761),g=n(67840),v=n(44560),y=n(78320),b=n(5249),w=n(34965),x=n(64196),k=n(83302),S=n(81778),C=n(32695),A=n(59814).f,_=n(13753),O=n(79056).forEach,P=n(8965),E=n(81684),T=n(82530),j=n(25313),N=n(2142),M=j.get,I=j.set,D=j.enforce,R=E.f,L=T.f,F=Math.round,B=a.RangeError,U=c.ArrayBuffer,$=U.prototype,z=c.DataView,q=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,H=l.TypedArray,W=l.TypedArrayPrototype,V=l.aTypedArrayConstructor,K=l.isTypedArray,Y="BYTES_PER_ELEMENT",X="Wrong length",Z=function(e,t){V(e);for(var n=0,r=t.length,a=new e(r);r>n;)a[n]=t[n++];return a},J=function(e,t){R(e,t,{get:function(){return M(this)[t]}})},Q=function(e){var t;return S($,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return K(e)&&!x(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?d(2,e[t]):L(e,t)},ne=function(e,t,n){return t=v(t),!(ee(e,t)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?R(e,t,n):(e[t]=n.value,e)};o?(q||(T.f=te,E.f=ne,J(W,"buffer"),J(W,"byteOffset"),J(W,"byteLength"),J(W,"length")),r({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,h=a[l],v=h,y=v&&v.prototype,b={},x=function(e,t){R(e,t,{get:function(){return function(e,t){var n=M(e);return n.view[c](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var a=M(e);n&&(r=(r=F(r))<0?0:r>255?255:255&r),a.view[d](t*o+a.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};q?s&&(v=t((function(e,t,n,r){return u(e,y),N(w(t)?Q(t)?void 0!==r?new h(t,g(n,o),r):void 0!==n?new h(t,g(n,o)):new h(t):K(t)?Z(v,t):i(_,v,t):new h(m(t)),e,v)})),C&&C(v,H),O(A(h),(function(e){e in v||f(v,e,h[e])})),v.prototype=y):(v=t((function(e,t,n,r){u(e,y);var a,s,l,c=0,d=0;if(w(t)){if(!Q(t))return K(t)?Z(v,t):i(_,v,t);a=t,d=g(n,o);var f=t.byteLength;if(void 0===r){if(f%o)throw B(X);if((s=f-d)<0)throw B(X)}else if((s=p(r)*o)+d>f)throw B(X);l=s/o}else l=m(t),a=new U(s=l*o);for(I(e,{buffer:a,byteOffset:d,byteLength:s,length:l,view:new z(a)});c1?arguments[1]:void 0,C=void 0!==S,A=c(x);if(A&&!u(A))for(b=(y=l(x,A)).next,x=[];!(v=a(b,y)).done;)x.push(v.value);for(C&&k>2&&(S=r(S,arguments[2])),n=s(x),p=new(f(w))(n),m=d(p),t=0;n>t;t++)g=C?S(x[t],t):x[t],p[t]=m?h(g):+g;return p}},26386:function(e,t,n){var r=n(80049),a=n(4724),i=r.aTypedArrayConstructor,o=r.getTypedArrayConstructor;e.exports=function(e){return i(a(e,o(e)))}},39020:function(e,t,n){var r=n(34534),a=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+i,36)}},63806:function(e,t,n){var r=n(66111),a=n(75508),i=n(42192),o=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},95398:function(e,t,n){var r=n(33969);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},83526:function(e,t,n){var r=n(37420),a=n(66111);e.exports=r&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},24050:function(e){var t=TypeError;e.exports=function(e,n){if(e=51||!a((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,n,r,a,i,o=s(this),f=d(o,0),h=0;for(t=-1,r=arguments.length;t1?arguments[1]:void 0)}})},73990:function(e,t,n){"use strict";var r=n(73587),a=n(79056).findIndex,i=n(99363),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(o)},50237:function(e,t,n){"use strict";var r=n(73587),a=n(79056).find,i=n(99363),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(o)},99149:function(e,t,n){"use strict";var r=n(73587),a=n(58504),i=n(68973),o=n(11446),s=n(76425),l=n(41180);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=s(n);return i(e),(t=l(n,0)).length=a(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},28442:function(e,t,n){"use strict";var r=n(73587),a=n(58504),i=n(11446),o=n(76425),s=n(56501),l=n(41180);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=o(t),r=l(t,0);return r.length=a(r,t,t,n,0,void 0===e?1:s(e)),r}})},40798:function(e,t,n){var r=n(73587),a=n(97509);r({target:"Array",stat:!0,forced:!n(21784)((function(e){Array.from(e)}))},{from:a})},75292:function(e,t,n){"use strict";var r=n(73587),a=n(49821).includes,i=n(66111),o=n(99363);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},33242:function(e,t,n){"use strict";var r=n(73587),a=n(69050),i=n(49821).indexOf,o=n(11689),s=a([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},57359:function(e,t,n){"use strict";var r=n(76494),a=n(99363),i=n(55706),o=n(25313),s=n(81684).f,l=n(67432),c=n(43341),u=n(42192),d=n(37420),f="Array Iterator",h=o.set,p=o.getterFor(f);e.exports=l(Array,"Array",(function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(a("keys"),a("values"),a("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},39237:function(e,t,n){"use strict";var r=n(73587),a=n(34534),i=n(70769),o=n(76494),s=n(11689),l=a([].join);r({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(e){return l(o(this),void 0===e?",":e)}})},10944:function(e,t,n){var r=n(73587),a=n(34116);r({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},72047:function(e,t,n){"use strict";var r=n(73587),a=n(79056).map;r({target:"Array",proto:!0,forced:!n(76205)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},73545:function(e,t,n){"use strict";var r=n(73587),a=n(66111),i=n(73011),o=n(36072),s=Array;r({target:"Array",stat:!0,forced:a((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(i(this)?this:s)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},39026:function(e,t,n){"use strict";var r=n(73587),a=n(69998).right,i=n(11689),o=n(32504);r({target:"Array",proto:!0,forced:!n(70520)&&o>79&&o<83||!i("reduceRight")},{reduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},3167:function(e,t,n){"use strict";var r=n(73587),a=n(69998).left,i=n(11689),o=n(32504);r({target:"Array",proto:!0,forced:!n(70520)&&o>79&&o<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},16631:function(e,t,n){"use strict";var r=n(73587),a=n(38162),i=n(73011),o=n(34965),s=n(53864),l=n(76425),c=n(76494),u=n(36072),d=n(75508),f=n(76205),h=n(51346),p=f("slice"),m=d("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,d,f=c(this),p=l(f),y=s(e,p),b=s(void 0===t?p:t,p);if(a(f)&&(n=f.constructor,(i(n)&&(n===g||a(n.prototype))||o(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return h(f,y,b);for(r=new(void 0===n?g:n)(v(b-y,0)),d=0;y3)){if(p)return!0;if(g)return g<603;var e,t,n,r,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;rc(n)?1:-1}}(e)),n=s(a),r=0;rw-r+n;g--)f(b,g-1)}else if(n>r)for(g=w-r;g>x;g--)y=g+n-1,(v=g+r-1)in b?b[y]=b[v]:f(b,y);for(g=0;g94906265.62425156?o(t)+l:a(t-1+s(t-1)*s(t+1))}})},94097:function(e,t,n){var r=n(73587),a=Math.asinh,i=Math.log,o=Math.sqrt;r({target:"Math",stat:!0,forced:!(a&&1/a(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!=n?n<0?-e(-n):i(n+o(n*n+1)):n}})},34480:function(e,t,n){var r=n(73587),a=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(a&&1/a(-0)<0)},{atanh:function(e){var t=+e;return 0==t?t:i((1+t)/(1-t))/2}})},15485:function(e,t,n){var r=n(73587),a=n(49093),i=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return a(t)*o(i(t),1/3)}})},40239:function(e,t,n){var r=n(73587),a=Math.floor,i=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-a(i(t+.5)*o):32}})},33968:function(e,t,n){var r=n(73587),a=n(19898),i=Math.cosh,o=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=a(o(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},88616:function(e,t,n){var r=n(73587),a=n(19898);r({target:"Math",stat:!0,forced:a!=Math.expm1},{expm1:a})},89918:function(e,t,n){n(73587)({target:"Math",stat:!0},{fround:n(32319)})},93177:function(e,t,n){var r=n(73587),a=Math.hypot,i=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!a&&a(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,a=0,s=0,l=arguments.length,c=0;s0?(r=n/c)*r:n;return c===1/0?1/0:c*o(a)}})},30392:function(e,t,n){var r=n(73587),a=n(66111),i=Math.imul;r({target:"Math",stat:!0,forced:a((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=65535,r=+e,a=+t,i=n&r,o=n&a;return 0|i*o+((n&r>>>16)*o+i*(n&a>>>16)<<16>>>0)}})},38552:function(e,t,n){n(73587)({target:"Math",stat:!0},{log10:n(53521)})},97263:function(e,t,n){n(73587)({target:"Math",stat:!0},{log1p:n(26702)})},25222:function(e,t,n){var r=n(73587),a=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return a(e)/i}})},10190:function(e,t,n){n(73587)({target:"Math",stat:!0},{sign:n(49093)})},8716:function(e,t,n){var r=n(73587),a=n(66111),i=n(19898),o=Math.abs,s=Math.exp,l=Math.E;r({target:"Math",stat:!0,forced:a((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return o(t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},68388:function(e,t,n){var r=n(73587),a=n(19898),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=a(t),r=a(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},32613:function(e,t,n){n(21117)(Math,"Math",!0)},20307:function(e,t,n){n(73587)({target:"Math",stat:!0},{trunc:n(70596)})},42968:function(e,t,n){"use strict";var r=n(73587),a=n(42192),i=n(37420),o=n(19782),s=n(30306),l=n(34534),c=n(79492),u=n(78320),d=n(2142),f=n(81778),h=n(64196),p=n(63086),m=n(66111),g=n(59814).f,v=n(82530).f,y=n(81684).f,b=n(29301),w=n(58119).trim,x="Number",k=o[x],S=s[x],C=k.prototype,A=o.TypeError,_=l("".slice),O=l("".charCodeAt),P=function(e){var t=p(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,n,r,a,i,o,s,l,c=p(e,"number");if(h(c))throw A("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=O(c,0))||45===t){if(88===(n=O(c,2))||120===n)return NaN}else if(48===t){switch(O(c,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+c}for(o=(i=_(c,2)).length,s=0;sa)return NaN;return parseInt(i,r)}return+c},T=c(x,!k(" 0o1")||!k("0b1")||k("+0x1")),j=function(e){return f(C,e)&&m((function(){b(e)}))},N=function(e){var t=arguments.length<1?0:k(P(e));return j(this)?d(Object(t),this,N):t};N.prototype=C,T&&!a&&(C.constructor=N),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:N});var M=function(e,t){for(var n,r=i?g(t):"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(","),a=0;r.length>a;a++)u(t,n=r[a])&&!u(e,n)&&y(e,n,v(t,n))};a&&S&&M(s[x],S),(T||a)&&M(s[x],k)},34738:function(e,t,n){n(73587)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},12076:function(e,t,n){n(73587)({target:"Number",stat:!0},{isFinite:n(31024)})},63590:function(e,t,n){n(73587)({target:"Number",stat:!0},{isInteger:n(58186)})},93130:function(e,t,n){n(73587)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},14039:function(e,t,n){var r=n(73587),a=n(58186),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return a(e)&&i(e)<=9007199254740991}})},76118:function(e,t,n){n(73587)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13090:function(e,t,n){n(73587)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},23440:function(e,t,n){var r=n(73587),a=n(96048);r({target:"Number",stat:!0,forced:Number.parseFloat!=a},{parseFloat:a})},83785:function(e,t,n){var r=n(73587),a=n(39232);r({target:"Number",stat:!0,forced:Number.parseInt!=a},{parseInt:a})},81669:function(e,t,n){"use strict";var r=n(73587),a=n(34534),i=n(56501),o=n(29301),s=n(76930),l=n(66111),c=RangeError,u=String,d=Math.floor,f=a(s),h=a("".slice),p=a(1..toFixed),m=function e(t,n,r){return 0===n?r:n%2===1?e(t,n-1,r*t):e(t*t,n/2,r)},g=function(e,t,n){for(var r=-1,a=n;++r<6;)a+=t*e[r],e[r]=a%1e7,a=d(a/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}))},{toFixed:function(e){var t,n,r,a,s=o(this),l=i(e),d=[0,0,0,0,0,0],p="",b="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*m(2,69,1))-69)<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(d,0,n),r=l;r>=7;)g(d,1e7,0),r-=7;for(g(d,m(10,r,1),0),r=t-1;r>=23;)v(d,1<<23),r-=23;v(d,1<0?p+((a=b.length)<=l?"0."+f("0",l-a)+b:h(b,0,a-l)+"."+h(b,a-l)):p+b}})},28092:function(e,t,n){var r=n(73587),a=n(85698);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},67972:function(e,t,n){"use strict";var r=n(73587),a=n(37420),i=n(86854),o=n(68973),s=n(11446),l=n(81684);a&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(s(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},16056:function(e,t,n){var r=n(73587),a=n(37420),i=n(3415).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!a},{defineProperties:i})},69286:function(e,t,n){var r=n(73587),a=n(37420),i=n(81684).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!a},{defineProperty:i})},57794:function(e,t,n){"use strict";var r=n(73587),a=n(37420),i=n(86854),o=n(68973),s=n(11446),l=n(81684);a&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(s(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},46040:function(e,t,n){var r=n(73587),a=n(31525).entries;r({target:"Object",stat:!0},{entries:function(e){return a(e)}})},11938:function(e,t,n){var r=n(73587),a=n(31561),i=n(66111),o=n(34965),s=n(36781).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!a},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},99588:function(e,t,n){var r=n(73587),a=n(81413),i=n(36072);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,n){i(t,e,n)}),{AS_ENTRIES:!0}),t}})},25596:function(e,t,n){var r=n(73587),a=n(66111),i=n(76494),o=n(82530).f,s=n(37420);r({target:"Object",stat:!0,forced:!s||a((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},55820:function(e,t,n){var r=n(73587),a=n(37420),i=n(20412),o=n(76494),s=n(82530),l=n(36072);r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),a=s.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=a(r,t=c[d++]))&&l(u,t,n);return u}})},66347:function(e,t,n){var r=n(73587),a=n(66111),i=n(64350).f;r({target:"Object",stat:!0,forced:a((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},37279:function(e,t,n){var r=n(73587),a=n(33969),i=n(66111),o=n(51186),s=n(11446);r({target:"Object",stat:!0,forced:!a||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},61658:function(e,t,n){var r=n(73587),a=n(66111),i=n(11446),o=n(7209),s=n(97610);r({target:"Object",stat:!0,forced:a((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(i(e))}})},38737:function(e,t,n){var r=n(73587),a=n(61481);r({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},86659:function(e,t,n){var r=n(73587),a=n(66111),i=n(34965),o=n(73135),s=n(9603),l=Object.isFrozen;r({target:"Object",stat:!0,forced:s||a((function(){l(1)}))},{isFrozen:function(e){return!i(e)||(!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e))}})},64316:function(e,t,n){var r=n(73587),a=n(66111),i=n(34965),o=n(73135),s=n(9603),l=Object.isSealed;r({target:"Object",stat:!0,forced:s||a((function(){l(1)}))},{isSealed:function(e){return!i(e)||(!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e))}})},60185:function(e,t,n){n(73587)({target:"Object",stat:!0},{is:n(58698)})},26578:function(e,t,n){var r=n(73587),a=n(11446),i=n(11467);r({target:"Object",stat:!0,forced:n(66111)((function(){i(1)}))},{keys:function(e){return i(a(e))}})},19943:function(e,t,n){"use strict";var r=n(73587),a=n(37420),i=n(86854),o=n(11446),s=n(44560),l=n(7209),c=n(82530).f;a&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=o(this),r=s(e);do{if(t=c(n,r))return t.get}while(n=l(n))}})},84377:function(e,t,n){"use strict";var r=n(73587),a=n(37420),i=n(86854),o=n(11446),s=n(44560),l=n(7209),c=n(82530).f;a&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=o(this),r=s(e);do{if(t=c(n,r))return t.set}while(n=l(n))}})},99514:function(e,t,n){var r=n(73587),a=n(34965),i=n(36781).onFreeze,o=n(31561),s=n(66111),l=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{preventExtensions:function(e){return l&&a(e)?l(i(e)):e}})},62690:function(e,t,n){var r=n(73587),a=n(34965),i=n(36781).onFreeze,o=n(31561),s=n(66111),l=Object.seal;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{seal:function(e){return l&&a(e)?l(i(e)):e}})},7251:function(e,t,n){n(73587)({target:"Object",stat:!0},{setPrototypeOf:n(32695)})},84019:function(e,t,n){var r=n(32105),a=n(63609),i=n(83685);r||a(Object.prototype,"toString",i,{unsafe:!0})},67069:function(e,t,n){var r=n(73587),a=n(31525).values;r({target:"Object",stat:!0},{values:function(e){return a(e)}})},65458:function(e,t,n){var r=n(73587),a=n(96048);r({global:!0,forced:parseFloat!=a},{parseFloat:a})},7734:function(e,t,n){var r=n(73587),a=n(39232);r({global:!0,forced:parseInt!=a},{parseInt:a})},86408:function(e,t,n){"use strict";var r=n(73587),a=n(37892),i=n(68973),o=n(54249),s=n(74750),l=n(81413);r({target:"Promise",stat:!0,forced:n(24310)},{all:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,u=s((function(){var n=i(t.resolve),o=[],s=0,u=1;l(e,(function(e){var i=s++,l=!1;u++,a(n,t,e).then((function(e){l||(l=!0,o[i]=e,--u||r(o))}),c)})),--u||r(o)}));return u.error&&c(u.value),n.promise}})},99328:function(e,t,n){"use strict";var r=n(73587),a=n(42192),i=n(30855).CONSTRUCTOR,o=n(88773),s=n(66780),l=n(30171),c=n(63609),u=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!a&&l(o)){var d=s("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},90508:function(e,t,n){"use strict";var r,a,i,o=n(73587),s=n(42192),l=n(70520),c=n(19782),u=n(37892),d=n(63609),f=n(32695),h=n(21117),p=n(8965),m=n(68973),g=n(30171),v=n(34965),y=n(35793),b=n(4724),w=n(11092).set,x=n(20209),k=n(81628),S=n(74750),C=n(96055),A=n(25313),_=n(88773),O=n(30855),P=n(54249),E="Promise",T=O.CONSTRUCTOR,j=O.REJECTION_EVENT,N=O.SUBCLASSING,M=A.getterFor(E),I=A.set,D=_&&_.prototype,R=_,L=D,F=c.TypeError,B=c.document,U=c.process,$=P.f,z=$,q=!!(B&&B.createEvent&&c.dispatchEvent),G="unhandledrejection",H=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},W=function(e,t){var n,r,a,i=t.value,o=1==t.state,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{s?(o||(2===t.rejection&&Z(t),t.rejection=1),!0===s?n=i:(d&&d.enter(),n=s(i),d&&(d.exit(),a=!0)),n===e.promise?c(F("Promise-chain cycle")):(r=H(n))?u(r,n,l,c):l(n)):c(i)}catch(f){d&&!a&&d.exit(),c(f)}},V=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},K=function(e,t,n){var r,a;q?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!j&&(a=c["on"+e])?a(r):e===G&&k("Unhandled promise rejection",n)},Y=function(e){u(w,c,(function(){var t,n=e.facade,r=e.value;if(X(e)&&(t=S((function(){l?U.emit("unhandledRejection",r,n):K(G,n,r)})),e.rejection=l||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){u(w,c,(function(){var t=e.facade;l?U.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw F("Promise can't be resolved itself");var a=H(n);a?x((function(){var r={done:!1};try{u(a,n,J(e,r,t),J(Q,r,t))}catch(i){Q(r,i,t)}})):(t.value=n,t.state=1,V(t,!1))}catch(i){Q({done:!1},i,t)}}};if(T&&(L=(R=function(e){y(this,L),m(e),u(r,this);var t=M(this);try{e(J(ee,t),J(Q,t))}catch(n){Q(t,n)}}).prototype,(r=function(e){I(this,{type:E,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:void 0})}).prototype=d(L,"then",(function(e,t){var n=M(this),r=$(b(this,R));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=l?U.domain:void 0,0==n.state?n.reactions.add(r):x((function(){W(r,n)})),r.promise})),a=function(){var e=new r,t=M(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Q,t)},P.f=$=function(e){return e===R||undefined===e?new a(e):z(e)},!s&&g(_)&&D!==Object.prototype)){i=D.then,N||d(D,"then",(function(e,t){var n=this;return new R((function(e,t){u(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(te){}f&&f(D,L)}o({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:R}),h(R,E,!1,!0),p(E)},85387:function(e,t,n){"use strict";var r=n(73587),a=n(42192),i=n(88773),o=n(66111),s=n(66780),l=n(30171),c=n(4724),u=n(44270),d=n(63609),f=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!a&&l(i)){var h=s("Promise").prototype.finally;f.finally!==h&&d(f,"finally",h,{unsafe:!0})}},246:function(e,t,n){n(90508),n(86408),n(99328),n(98039),n(44213),n(33027)},98039:function(e,t,n){"use strict";var r=n(73587),a=n(37892),i=n(68973),o=n(54249),s=n(74750),l=n(81413);r({target:"Promise",stat:!0,forced:n(24310)},{race:function(e){var t=this,n=o.f(t),r=n.reject,c=s((function(){var o=i(t.resolve);l(e,(function(e){a(o,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},44213:function(e,t,n){"use strict";var r=n(73587),a=n(37892),i=n(54249);r({target:"Promise",stat:!0,forced:n(30855).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return a(t.reject,void 0,e),t.promise}})},33027:function(e,t,n){"use strict";var r=n(73587),a=n(66780),i=n(42192),o=n(88773),s=n(30855).CONSTRUCTOR,l=n(44270),c=a("Promise"),u=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(u&&this===c?o:this,e)}})},28794:function(e,t,n){var r=n(73587),a=n(12256),i=n(68973),o=n(59799);r({target:"Reflect",stat:!0,forced:!n(66111)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return a(i(e),t,o(n))}})},96832:function(e,t,n){var r=n(73587),a=n(66780),i=n(12256),o=n(5268),s=n(68458),l=n(59799),c=n(34965),u=n(83302),d=n(66111),f=a("Reflect","construct"),h=Object.prototype,p=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!d((function(){f((function(){}))})),v=m||g;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(o,e,r))}var a=n.prototype,d=u(c(a)?a:h),v=i(e,d,t);return c(v)?v:d}})},36438:function(e,t,n){var r=n(73587),a=n(37420),i=n(59799),o=n(44560),s=n(81684);r({target:"Reflect",stat:!0,forced:n(66111)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!a},{defineProperty:function(e,t,n){i(e);var r=o(t);i(n);try{return s.f(e,r,n),!0}catch(a){return!1}}})},8902:function(e,t,n){var r=n(73587),a=n(59799),i=n(82530).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},93158:function(e,t,n){var r=n(73587),a=n(37420),i=n(59799),o=n(82530);r({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(e,t){return o.f(i(e),t)}})},42803:function(e,t,n){var r=n(73587),a=n(59799),i=n(7209);r({target:"Reflect",stat:!0,sham:!n(97610)},{getPrototypeOf:function(e){return i(a(e))}})},27181:function(e,t,n){var r=n(73587),a=n(37892),i=n(34965),o=n(59799),s=n(70626),l=n(82530),c=n(7209);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,u,d=arguments.length<3?t:arguments[2];return o(t)===d?t[n]:(r=l.f(t,n))?s(r)?r.value:void 0===r.get?void 0:a(r.get,d):i(u=c(t))?e(u,n,d):void 0}})},99155:function(e,t,n){n(73587)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},9900:function(e,t,n){var r=n(73587),a=n(59799),i=n(61481);r({target:"Reflect",stat:!0},{isExtensible:function(e){return a(e),i(e)}})},24670:function(e,t,n){n(73587)({target:"Reflect",stat:!0},{ownKeys:n(20412)})},38142:function(e,t,n){var r=n(73587),a=n(66780),i=n(59799);r({target:"Reflect",stat:!0,sham:!n(31561)},{preventExtensions:function(e){i(e);try{var t=a("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},63410:function(e,t,n){var r=n(73587),a=n(59799),i=n(74375),o=n(32695);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){a(e),i(t);try{return o(e,t),!0}catch(n){return!1}}})},8999:function(e,t,n){var r=n(73587),a=n(37892),i=n(59799),o=n(34965),s=n(70626),l=n(66111),c=n(81684),u=n(82530),d=n(7209),f=n(80431);r({target:"Reflect",stat:!0,forced:l((function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var l,h,p,m=arguments.length<4?t:arguments[3],g=u.f(i(t),n);if(!g){if(o(h=d(t)))return e(h,n,r,m);g=f(0)}if(s(g)){if(!1===g.writable||!o(m))return!1;if(l=u.f(m,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=r,c.f(m,n,l)}else c.f(m,n,f(0,r))}else{if(void 0===(p=g.set))return!1;a(p,m,r)}return!0}})},27909:function(e,t,n){var r=n(37420),a=n(19782),i=n(34534),o=n(79492),s=n(2142),l=n(87454),c=n(59814).f,u=n(81778),d=n(22872),f=n(55217),h=n(5294),p=n(4274),m=n(23966),g=n(63609),v=n(66111),y=n(78320),b=n(25313).enforce,w=n(8965),x=n(75508),k=n(68988),S=n(81748),C=x("match"),A=a.RegExp,_=A.prototype,O=a.SyntaxError,P=i(_.exec),E=i("".charAt),T=i("".replace),j=i("".indexOf),N=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,D=/a/g,R=new A(I)!==I,L=p.MISSED_STICKY,F=p.UNSUPPORTED_Y,B=r&&(!R||L||k||S||v((function(){return D[C]=!1,A(I)!=I||A(D)==D||"/a/i"!=A(I,"i")})));if(o("RegExp",B)){for(var U=function(e,t){var n,r,a,i,o,c,p=u(_,this),m=d(e),g=void 0===t,v=[],w=e;if(!p&&m&&g&&e.constructor===U)return e;if((m||u(_,e))&&(e=e.source,g&&(t=h(w))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),w=e,k&&"dotAll"in I&&(r=!!t&&j(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,L&&"sticky"in I&&(a=!!t&&j(t,"y")>-1)&&F&&(t=T(t,/y/g,"")),S&&(i=function(e){for(var t,n=e.length,r=0,a="",i=[],o={},s=!1,l=!1,c=0,u="";r<=n;r++){if("\\"===(t=E(e,r)))t+=E(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:P(M,N(e,r+1))&&(r+=2,l=!0),a+=t,c++;continue;case">"===t&&l:if(""===u||y(o,u))throw new O("Invalid capture group name");o[u]=!0,i[i.length]=[u,c],l=!1,u="";continue}l?u+=t:a+=t}return[a,i]}(e),e=i[0],v=i[1]),o=s(A(e,t),p?this:_,U),(r||a||v.length)&&(c=b(o),r&&(c.dotAll=!0,c.raw=U(function(e){for(var t,n=e.length,r=0,a="",i=!1;r<=n;r++)"\\"!==(t=E(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),a+=t):a+="[\\s\\S]":a+=t+E(e,++r);return a}(e),n)),a&&(c.sticky=!0),v.length&&(c.groups=v)),e!==w)try{l(o,"source",""===w?"(?:)":w)}catch(x){}return o},$=c(A),z=0;$.length>z;)m(U,A,$[z++]);_.constructor=U,U.prototype=_,g(a,"RegExp",U,{constructor:!0})}w("RegExp")},4541:function(e,t,n){"use strict";var r=n(73587),a=n(75493);r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},91038:function(e,t,n){var r=n(19782),a=n(37420),i=n(18787),o=n(21537),s=n(66111),l=r.RegExp,c=l.prototype;a&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(i.hasIndices="d"),i)a(o,i[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&i(c,"flags",{configurable:!0,get:o})},925:function(e,t,n){"use strict";var r=n(21774).PROPER,a=n(63609),i=n(59799),o=n(55217),s=n(66111),l=n(5294),c="toString",u=RegExp.prototype[c],d=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=r&&u.name!=c;(d||f)&&a(RegExp.prototype,c,(function(){var e=i(this);return"/"+o(e.source)+"/"+o(l(e))}),{unsafe:!0})},92340:function(e,t,n){"use strict";n(19881)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(44695))},87049:function(e,t,n){n(92340)},24718:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("anchor")},{anchor:function(e){return a(this,"a","name",e)}})},87598:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("big")},{big:function(){return a(this,"big","","")}})},41125:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("blink")},{blink:function(){return a(this,"blink","","")}})},11510:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("bold")},{bold:function(){return a(this,"b","","")}})},31677:function(e,t,n){"use strict";var r=n(73587),a=n(19838).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},34897:function(e,t,n){"use strict";var r=n(73587),a=n(69050),i=n(82530).f,o=n(61234),s=n(55217),l=n(63522),c=n(9629),u=n(79475),d=n(42192),f=a("".endsWith),h=a("".slice),p=Math.min,m=u("endsWith");r({target:"String",proto:!0,forced:!(!d&&!m&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}())&&!m},{endsWith:function(e){var t=s(c(this));l(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,a=void 0===n?r:p(o(n),r),i=s(e);return f?f(t,i,a):h(t,a-i.length,a)===i}})},17391:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("fixed")},{fixed:function(){return a(this,"tt","","")}})},28345:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("fontcolor")},{fontcolor:function(e){return a(this,"font","color",e)}})},89608:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("fontsize")},{fontsize:function(e){return a(this,"font","size",e)}})},6234:function(e,t,n){var r=n(73587),a=n(34534),i=n(53864),o=RangeError,s=String.fromCharCode,l=String.fromCodePoint,c=a([].join);r({target:"String",stat:!0,arity:1,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw o(t+" is not a valid code point");n[a]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},75350:function(e,t,n){"use strict";var r=n(73587),a=n(34534),i=n(63522),o=n(9629),s=n(55217),l=n(79475),c=a("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(o(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},18298:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("italics")},{italics:function(){return a(this,"i","","")}})},90192:function(e,t,n){"use strict";var r=n(19838).charAt,a=n(55217),i=n(25313),o=n(67432),s=n(43341),l="String Iterator",c=i.set,u=i.getterFor(l);o(String,"String",(function(e){c(this,{type:l,string:a(e),index:0})}),(function(){var e,t=u(this),n=t.string,a=t.index;return a>=n.length?s(void 0,!0):(e=r(n,a),t.index+=e.length,s(e,!1))}))},95811:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("link")},{link:function(e){return a(this,"a","href",e)}})},44826:function(e,t,n){"use strict";var r=n(37892),a=n(88635),i=n(59799),o=n(90486),s=n(61234),l=n(55217),c=n(9629),u=n(62135),d=n(76183),f=n(82279);a("match",(function(e,t,n){return[function(t){var n=c(this),a=o(t)?void 0:u(t,e);return a?r(a,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),a=l(e),o=n(t,r,a);if(o.done)return o.value;if(!r.global)return f(r,a);var c=r.unicode;r.lastIndex=0;for(var u,h=[],p=0;null!==(u=f(r,a));){var m=l(u[0]);h[p]=m,""===m&&(r.lastIndex=d(a,s(r.lastIndex),c)),p++}return 0===p?null:h}]}))},34379:function(e,t,n){"use strict";var r=n(73587),a=n(91894).end;r({target:"String",proto:!0,forced:n(54686)},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},12964:function(e,t,n){"use strict";var r=n(73587),a=n(91894).start;r({target:"String",proto:!0,forced:n(54686)},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},90463:function(e,t,n){var r=n(73587),a=n(34534),i=n(76494),o=n(11446),s=n(55217),l=n(76425),c=a([].push),u=a([].join);r({target:"String",stat:!0},{raw:function(e){var t=i(o(e).raw),n=l(t);if(!n)return"";for(var r=arguments.length,a=[],d=0;;){if(c(a,s(t[d++])),d===n)return u(a,"");d=T&&(E+=A(s,T,M)+F,T=M+N.length)}return E+A(s,T)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!_||O)},52993:function(e,t,n){"use strict";var r=n(37892),a=n(88635),i=n(59799),o=n(90486),s=n(9629),l=n(58698),c=n(55217),u=n(62135),d=n(82279);a("search",(function(e,t,n){return[function(t){var n=s(this),a=o(t)?void 0:u(t,e);return a?r(a,t,n):new RegExp(t)[e](c(n))},function(e){var r=i(this),a=c(e),o=n(t,r,a);if(o.done)return o.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var u=d(r,a);return l(r.lastIndex,s)||(r.lastIndex=s),null===u?-1:u.index}]}))},43639:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("small")},{small:function(){return a(this,"small","","")}})},37428:function(e,t,n){"use strict";var r=n(12256),a=n(37892),i=n(34534),o=n(88635),s=n(59799),l=n(90486),c=n(22872),u=n(9629),d=n(4724),f=n(76183),h=n(61234),p=n(55217),m=n(62135),g=n(92914),v=n(82279),y=n(75493),b=n(4274),w=n(66111),x=b.UNSUPPORTED_Y,k=4294967295,S=Math.min,C=[].push,A=i(/./.exec),_=i(C),O=i("".slice),P=!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=p(u(this)),o=void 0===n?k:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!c(e))return a(t,i,e,o);for(var s,l,d,f=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,h+"g");(s=a(y,v,i))&&!((l=v.lastIndex)>m&&(_(f,O(i,m,s.index)),s.length>1&&s.index=o));)v.lastIndex===s.index&&v.lastIndex++;return m===i.length?!d&&A(v,"")||_(f,""):_(f,O(i,m)),f.length>o?g(f,0,o):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:a(t,this,e,n)}:t,[function(t,n){var r=u(this),o=l(t)?void 0:m(t,e);return o?a(o,t,r,n):a(i,p(r),t,n)},function(e,r){var a=s(this),o=p(e),l=n(i,a,o,r,i!==t);if(l.done)return l.value;var c=d(a,RegExp),u=a.unicode,m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(x?"g":"y"),g=new c(x?"^(?:"+a.source+")":a,m),y=void 0===r?k:r>>>0;if(0===y)return[];if(0===o.length)return null===v(g,o)?[o]:[];for(var b=0,w=0,C=[];w1?arguments[1]:void 0,t.length)),r=s(e);return f?f(t,r,n):h(t,n,n+r.length)===r}})},17858:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("strike")},{strike:function(){return a(this,"strike","","")}})},66862:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("sub")},{sub:function(){return a(this,"sub","","")}})},20836:function(e,t,n){"use strict";var r=n(73587),a=n(76017);r({target:"String",proto:!0,forced:n(59624)("sup")},{sup:function(){return a(this,"sup","","")}})},37623:function(e,t,n){n(62719);var r=n(73587),a=n(2800);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},53095:function(e,t,n){var r=n(73587),a=n(19417);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},62719:function(e,t,n){var r=n(73587),a=n(2800);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},58074:function(e,t,n){n(53095);var r=n(73587),a=n(19417);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},16402:function(e,t,n){"use strict";var r=n(73587),a=n(58119).trim;r({target:"String",proto:!0,forced:n(40473)("trim")},{trim:function(){return a(this)}})},44210:function(e,t,n){n(58019)("asyncIterator")},70920:function(e,t,n){"use strict";var r=n(73587),a=n(19782),i=n(37892),o=n(34534),s=n(42192),l=n(37420),c=n(33969),u=n(66111),d=n(78320),f=n(81778),h=n(59799),p=n(76494),m=n(44560),g=n(55217),v=n(80431),y=n(83302),b=n(11467),w=n(59814),x=n(64350),k=n(51186),S=n(82530),C=n(81684),A=n(3415),_=n(23509),O=n(63609),P=n(67193),E=n(59325),T=n(52819),j=n(39020),N=n(75508),M=n(17659),I=n(58019),D=n(31043),R=n(21117),L=n(25313),F=n(79056).forEach,B=E("hidden"),U="Symbol",$="prototype",z=L.set,q=L.getterFor(U),G=Object[$],H=a.Symbol,W=H&&H[$],V=a.TypeError,K=a.QObject,Y=S.f,X=C.f,Z=x.f,J=_.f,Q=o([].push),ee=P("symbols"),te=P("op-symbols"),ne=P("wks"),re=!K||!K[$]||!K[$].findChild,ae=l&&u((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(G,t);r&&delete G[t],X(e,t,n),r&&e!==G&&X(G,t,r)}:X,ie=function(e,t){var n=ee[e]=y(W);return z(n,{type:U,tag:e,description:t}),l||(n.description=t),n},oe=function(e,t,n){e===G&&oe(te,t,n),h(e);var r=m(t);return h(n),d(ee,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,B)||X(e,B,v(1,{})),e[B][r]=!0),ae(e,r,n)):X(e,r,n)},se=function(e,t){h(e);var n=p(t),r=b(n).concat(de(n));return F(r,(function(t){l&&!i(le,n,t)||oe(e,t,n[t])})),e},le=function(e){var t=m(e),n=i(J,this,t);return!(this===G&&d(ee,t)&&!d(te,t))&&(!(n||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||n)},ce=function(e,t){var n=p(e),r=m(t);if(n!==G||!d(ee,r)||d(te,r)){var a=Y(n,r);return!a||!d(ee,r)||d(n,B)&&n[B][r]||(a.enumerable=!0),a}},ue=function(e){var t=Z(p(e)),n=[];return F(t,(function(e){d(ee,e)||d(T,e)||Q(n,e)})),n},de=function(e){var t=e===G,n=Z(t?te:p(e)),r=[];return F(n,(function(e){!d(ee,e)||t&&!d(G,e)||Q(r,ee[e])})),r};c||(H=function(){if(f(W,this))throw V("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=j(e);return l&&re&&ae(G,t,{configurable:!0,set:function e(n){this===G&&i(e,te,n),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),ae(this,t,v(1,n))}}),ie(t,e)},O(W=H[$],"toString",(function(){return q(this).tag})),O(H,"withoutSetter",(function(e){return ie(j(e),e)})),_.f=le,C.f=oe,A.f=se,S.f=ce,w.f=x.f=ue,k.f=de,M.f=function(e){return ie(N(e),e)},l&&(X(W,"description",{configurable:!0,get:function(){return q(this).description}}),s||O(G,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(b(ne),(function(e){I(e)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),D(),R(H,U),T[B]=!0},74065:function(e,t,n){"use strict";var r=n(73587),a=n(37420),i=n(19782),o=n(34534),s=n(78320),l=n(30171),c=n(81778),u=n(55217),d=n(81684).f,f=n(11147),h=i.Symbol,p=h&&h.prototype;if(a&&l(h)&&(!("description"in p)||void 0!==h().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};f(g,h),g.prototype=p,p.constructor=g;var v="Symbol(test)"==String(h("test")),y=o(p.valueOf),b=o(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=o("".replace),k=o("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=b(e),n=v?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},45970:function(e,t,n){var r=n(73587),a=n(66780),i=n(78320),o=n(55217),s=n(67193),l=n(49571),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(i(c,t))return c[t];var n=a("Symbol")(t);return c[t]=n,u[n]=t,n}})},23663:function(e,t,n){n(58019)("hasInstance")},30186:function(e,t,n){n(58019)("isConcatSpreadable")},78199:function(e,t,n){n(58019)("iterator")},93764:function(e,t,n){n(70920),n(45970),n(10798),n(70734),n(37279)},10798:function(e,t,n){var r=n(73587),a=n(78320),i=n(64196),o=n(5065),s=n(67193),l=n(49571),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(a(c,e))return c[e]}})},2481:function(e,t,n){n(58019)("match")},82585:function(e,t,n){n(58019)("replace")},16208:function(e,t,n){n(58019)("search")},34071:function(e,t,n){n(58019)("species")},64383:function(e,t,n){n(58019)("split")},26655:function(e,t,n){var r=n(58019),a=n(31043);r("toPrimitive"),a()},90049:function(e,t,n){var r=n(66780),a=n(58019),i=n(21117);a("toStringTag"),i(r("Symbol"),"Symbol")},18152:function(e,t,n){n(58019)("unscopables")},86728:function(e,t,n){"use strict";var r=n(34534),a=n(80049),i=r(n(88891)),o=a.aTypedArray;(0,a.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},11430:function(e,t,n){"use strict";var r=n(80049),a=n(79056).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33292:function(e,t,n){"use strict";var r=n(80049),a=n(76206),i=n(76654),o=n(5249),s=n(37892),l=n(34534),c=n(66111),u=r.aTypedArray,d=r.exportTypedArrayMethod,f=l("".slice);d("fill",(function(e){var t=arguments.length;u(this);var n="Big"===f(o(this),0,3)?i(e):+e;return s(a,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},83938:function(e,t,n){"use strict";var r=n(80049),a=n(79056).filter,i=n(22392),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=a(o(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},85179:function(e,t,n){"use strict";var r=n(80049),a=n(79056).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},1278:function(e,t,n){"use strict";var r=n(80049),a=n(79056).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8532:function(e,t,n){n(4070)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},27788:function(e,t,n){n(4070)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},89437:function(e,t,n){"use strict";var r=n(80049),a=n(79056).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},28702:function(e,t,n){"use strict";var r=n(8630);(0,n(80049).exportTypedArrayStaticMethod)("from",n(13753),r)},79478:function(e,t,n){"use strict";var r=n(80049),a=n(49821).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},45686:function(e,t,n){"use strict";var r=n(80049),a=n(49821).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},13473:function(e,t,n){n(4070)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},470:function(e,t,n){n(4070)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},27638:function(e,t,n){n(4070)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},92694:function(e,t,n){"use strict";var r=n(19782),a=n(66111),i=n(34534),o=n(80049),s=n(57359),l=n(75508)("iterator"),c=r.Uint8Array,u=i(s.values),d=i(s.keys),f=i(s.entries),h=o.aTypedArray,p=o.exportTypedArrayMethod,m=c&&c.prototype,g=!a((function(){m[l].call([1])})),v=!!m&&m.values&&m[l]===m.values&&"values"===m.values.name,y=function(){return u(h(this))};p("entries",(function(){return f(h(this))}),g),p("keys",(function(){return d(h(this))}),g),p("values",y,g||!v,{name:"values"}),p(l,y,g||!v,{name:"values"})},30743:function(e,t,n){"use strict";var r=n(80049),a=n(34534),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=a([].join);o("join",(function(e){return s(i(this),e)}))},40643:function(e,t,n){"use strict";var r=n(80049),a=n(12256),i=n(34116),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return a(i,o(this),t>1?[e,arguments[1]]:[e])}))},95338:function(e,t,n){"use strict";var r=n(80049),a=n(79056).map,i=n(26386),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},47897:function(e,t,n){"use strict";var r=n(80049),a=n(8630),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),a)},64048:function(e,t,n){"use strict";var r=n(80049),a=n(69998).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a(i(this),e,t,t>1?arguments[1]:void 0)}))},38601:function(e,t,n){"use strict";var r=n(80049),a=n(69998).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return a(i(this),e,t,t>1?arguments[1]:void 0)}))},48582:function(e,t,n){"use strict";var r=n(80049),a=r.aTypedArray,i=r.exportTypedArrayMethod,o=Math.floor;i("reverse",(function(){for(var e,t=this,n=a(t).length,r=o(n/2),i=0;i1?arguments[1]:void 0,1),n=l(e);if(g)return a(h,this,n,t);var r=this.length,i=o(n),c=0;if(i+t>r)throw u("Wrong length");for(;ci;)c[i]=n[i++];return c}),i((function(){new Int8Array(1).slice()})))},39532:function(e,t,n){"use strict";var r=n(80049),a=n(79056).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},22754:function(e,t,n){"use strict";var r=n(19782),a=n(69050),i=n(66111),o=n(68973),s=n(65082),l=n(80049),c=n(62554),u=n(90907),d=n(32504),f=n(35199),h=l.aTypedArray,p=l.exportTypedArrayMethod,m=r.Uint16Array,g=m&&a(m.prototype.sort),v=!!g&&!(i((function(){g(new m(2),null)}))&&i((function(){g(new m(2),{})}))),y=!!g&&!i((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(f)return f<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));p("sort",(function(e){return void 0!==e&&o(e),y?g(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||v)},20223:function(e,t,n){"use strict";var r=n(80049),a=n(61234),i=n(53864),o=n(26386),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,l=i(e,r);return new(o(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,a((void 0===t?r:i(t,r))-l))}))},56633:function(e,t,n){"use strict";var r=n(19782),a=n(12256),i=n(80049),o=n(66111),s=n(51346),l=r.Int8Array,c=i.aTypedArray,u=i.exportTypedArrayMethod,d=[].toLocaleString,f=!!l&&o((function(){d.call(new l(1))}));u("toLocaleString",(function(){return a(d,f?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!o((function(){l.prototype.toLocaleString.call([1,2])})))},56038:function(e,t,n){"use strict";var r=n(80049).exportTypedArrayMethod,a=n(66111),i=n(19782),o=n(34534),s=i.Uint8Array,l=s&&s.prototype||{},c=[].toString,u=o([].join);a((function(){c.call({})}))&&(c=function(){return u(this)});var d=l.toString!=c;r("toString",c,d)},23198:function(e,t,n){n(4070)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},62319:function(e,t,n){n(4070)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},10056:function(e,t,n){n(4070)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},18497:function(e,t,n){n(4070)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},35611:function(e,t,n){"use strict";var r,a=n(31561),i=n(19782),o=n(34534),s=n(22631),l=n(36781),c=n(19881),u=n(70655),d=n(34965),f=n(25313).enforce,h=n(66111),p=n(6626),m=Object,g=Array.isArray,v=m.isExtensible,y=m.isFrozen,b=m.isSealed,w=m.freeze,x=m.seal,k={},S={},C=!i.ActiveXObject&&"ActiveXObject"in i,A=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_=c("WeakMap",A,u),O=_.prototype,P=o(O.set);if(p)if(C){r=u.getConstructor(A,"WeakMap",!0),l.enable();var E=o(O.delete),T=o(O.has),j=o(O.get);s(O,{delete:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.delete(e)}return E(this,e)},has:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),T(this,e)||t.frozen.has(e)}return T(this,e)},get:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),T(this,e)?j(this,e):t.frozen.get(e)}return j(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=f(this);n.frozen||(n.frozen=new r),T(this,e)?P(this,e,t):n.frozen.set(e,t)}else P(this,e,t);return this}})}else a&&h((function(){var e=w([]);return P(new _,e,1),!y(e)}))&&s(O,{set:function(e,t){var n;return g(e)&&(y(e)?n=k:b(e)&&(n=S)),P(this,e,t),n==k&&w(e),n==S&&x(e),this}})},92995:function(e,t,n){n(35611)},38306:function(e,t,n){"use strict";n(19881)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(70655))},55429:function(e,t,n){n(38306)},41093:function(e,t,n){n(58019)("dispose")},73268:function(e,t,n){n(58019)("observable")},5194:function(e,t,n){n(58019)("patternMatch")},78351:function(e,t,n){var r=n(73587),a=n(19782),i=n(11092).clear;r({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==i},{clearImmediate:i})},60237:function(e,t,n){var r=n(19782),a=n(7727),i=n(17255),o=n(3424),s=n(87454),l=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var c in a)a[c]&&l(r[c]&&r[c].prototype);l(i)},67366:function(e,t,n){var r=n(19782),a=n(7727),i=n(17255),o=n(57359),s=n(87454),l=n(75508),c=l("iterator"),u=l("toStringTag"),d=o.values,f=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(r){e[c]=d}if(e[u]||s(e,u,t),a[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(r){e[n]=o[n]}}};for(var h in a)f(r[h]&&r[h].prototype,h);f(i,"DOMTokenList")},25507:function(e,t,n){n(78351),n(489)},17619:function(e,t,n){var r=n(73587),a=n(19782),i=n(20209),o=n(68973),s=n(24050),l=n(70520),c=a.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){s(arguments.length,1),o(e);var t=l&&c.domain;i(t?t.bind(e):e)}})},489:function(e,t,n){var r=n(73587),a=n(19782),i=n(11092).set,o=n(55502),s=a.setImmediate?o(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},72029:function(e,t,n){"use strict";n(57359);var r=n(73587),a=n(19782),i=n(37892),o=n(34534),s=n(37420),l=n(63806),c=n(63609),u=n(22631),d=n(21117),f=n(82992),h=n(25313),p=n(35793),m=n(30171),g=n(78320),v=n(25852),y=n(5249),b=n(59799),w=n(34965),x=n(55217),k=n(83302),S=n(80431),C=n(68029),A=n(84284),_=n(24050),O=n(75508),P=n(65082),E=O("iterator"),T="URLSearchParams",j=T+"Iterator",N=h.set,M=h.getterFor(T),I=h.getterFor(j),D=Object.getOwnPropertyDescriptor,R=function(e){if(!s)return a[e];var t=D(a,e);return t&&t.value},L=R("fetch"),F=R("Request"),B=R("Headers"),U=F&&F.prototype,$=B&&B.prototype,z=a.RegExp,q=a.TypeError,G=a.decodeURIComponent,H=a.encodeURIComponent,W=o("".charAt),V=o([].join),K=o([].push),Y=o("".replace),X=o([].shift),Z=o([].splice),J=o("".split),Q=o("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return G(e)}catch(t){return e}},ae=function(e){var t=Y(e,ee," "),n=4;try{return G(t)}catch(r){for(;n;)t=Y(t,ne(n--),re);return t}},ie=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return oe[e]},le=function(e){return Y(H(e),ie,se)},ce=f((function(e,t){N(this,{type:j,iterator:C(M(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),ue=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===W(e,0)?Q(e,1):e:x(e)))};ue.prototype={type:T,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,a,o,s,l,c=A(e);if(c)for(n=(t=C(e,c)).next;!(r=i(n,t)).done;){if(o=(a=C(b(r.value))).next,(s=i(o,a)).done||(l=i(o,a)).done||!i(o,a).done)throw q("Expected sequence with length 2");K(this.entries,{key:x(s.value),value:x(l.value)})}else for(var u in e)g(e,u)&&K(this.entries,{key:u,value:x(e[u])})},parseQuery:function(e){if(e)for(var t,n,r=J(e,"&"),a=0;a0?arguments[0]:void 0))},fe=de.prototype;if(u(fe,{append:function(e,t){_(arguments.length,2);var n=M(this);K(n.entries,{key:x(e),value:x(t)}),n.updateURL()},delete:function(e){_(arguments.length,1);for(var t=M(this),n=t.entries,r=x(e),a=0;at.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=M(this).entries,r=v(e,arguments.length>1?arguments[1]:void 0),a=0;a1?me(arguments[1]):{})}}),m(F)){var ge=function(e){return p(this,U),new F(e,arguments.length>1?me(arguments[1]):{})};U.constructor=ge,ge.prototype=U,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:de,getState:M}},91642:function(e,t,n){n(72029)},48613:function(e,t,n){"use strict";n(90192);var r,a=n(73587),i=n(37420),o=n(63806),s=n(19782),l=n(25852),c=n(34534),u=n(63609),d=n(18787),f=n(35793),h=n(78320),p=n(85698),m=n(97509),g=n(92914),v=n(19838).codeAt,y=n(34148),b=n(55217),w=n(21117),x=n(24050),k=n(72029),S=n(25313),C=S.set,A=S.getterFor("URL"),_=k.URLSearchParams,O=k.getState,P=s.URL,E=s.TypeError,T=s.parseInt,j=Math.floor,N=Math.pow,M=c("".charAt),I=c(/./.exec),D=c([].join),R=c(1..toString),L=c([].pop),F=c([].push),B=c("".replace),U=c([].shift),$=c("".split),z=c("".slice),q=c("".toLowerCase),G=c([].unshift),H="Invalid scheme",W="Invalid host",V="Invalid port",K=/[a-z]/i,Y=/[\d+-.a-z]/i,X=/\d/,Z=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ae=/[\t\n\r]/g,ie=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)G(t,e%256),e=j(e/256);return D(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,a=0,i=0;i<8;i++)0!==e[i]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=i),++a);return a>n&&(t=r,n=a),t}(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=R(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},oe={},se=p({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),le=p({},se,{"#":1,"?":1,"{":1,"}":1}),ce=p({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=v(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e,t){var n;return 2==e.length&&I(K,M(e,0))&&(":"==(n=M(e,1))||!t&&"|"==n)},he=function(e){var t;return e.length>1&&fe(z(e,0,2))&&(2==e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},pe=function(e){return"."===e||"%2e"===q(e)},me={},ge={},ve={},ye={},be={},we={},xe={},ke={},Se={},Ce={},Ae={},_e={},Oe={},Pe={},Ee={},Te={},je={},Ne={},Me={},Ie={},De={},Re=function e(t,n,r){var a,i,o,s=b(t);if(n){if(i=this.parse(s))throw E(i);this.searchParams=null}else{if(void 0!==r&&(a=new e(r,!0)),i=this.parse(s,null,a))throw E(i);(o=O(new _)).bindURL(this),this.searchParams=o}};Re.prototype={type:"URL",parse:function(e,t,n){var a,i,o,s,l,c=this,u=t||me,d=0,f="",p=!1,v=!1,y=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=B(e,re,"")),e=B(e,ae,""),a=m(e);d<=a.length;){switch(i=a[d],u){case me:if(!i||!I(K,i)){if(t)return H;u=ve;continue}f+=q(i),u=ge;break;case ge:if(i&&(I(Y,i)||"+"==i||"-"==i||"."==i))f+=q(i);else{if(":"!=i){if(t)return H;f="",u=ve,d=0;continue}if(t&&(c.isSpecial()!=h(de,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&de[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?u=Pe:c.isSpecial()&&n&&n.scheme==c.scheme?u=ye:c.isSpecial()?u=ke:"/"==a[d+1]?(u=be,d++):(c.cannotBeABaseURL=!0,F(c.path,""),u=Me)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!=i)return H;if(n.cannotBeABaseURL&&"#"==i){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=De;break}u="file"==n.scheme?Pe:we;continue;case ye:if("/"!=i||"/"!=a[d+1]){u=we;continue}u=Se,d++;break;case be:if("/"==i){u=Ce;break}u=Ne;continue;case we:if(c.scheme=n.scheme,i==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"==i||"\\"==i&&c.isSpecial())u=xe;else if("?"==i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",u=Ie;else{if("#"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,u=Ne;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",u=De}break;case xe:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Ne;continue}u=Ce}else u=Se;break;case ke:if(u=Se,"/"!=i||"/"!=M(f,d+1))continue;d++;break;case Se:if("/"!=i&&"\\"!=i){u=Ce;continue}break;case Ce:if("@"==i){p&&(f="%40"+f),p=!0,o=m(f);for(var w=0;w65535)return V;c.port=c.isSpecial()&&S===de[c.scheme]?null:S,f=""}if(t)return;u=je;continue}return V}f+=i;break;case Pe:if(c.scheme="file","/"==i||"\\"==i)u=Ee;else{if(!n||"file"!=n.scheme){u=Ne;continue}if(i==r)c.host=n.host,c.path=g(n.path),c.query=n.query;else if("?"==i)c.host=n.host,c.path=g(n.path),c.query="",u=Ie;else{if("#"!=i){he(D(g(a,d),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),u=Ne;continue}c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",u=De}}break;case Ee:if("/"==i||"\\"==i){u=Te;break}n&&"file"==n.scheme&&!he(D(g(a,d),""))&&(fe(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),u=Ne;continue;case Te:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&fe(f))u=Ne;else if(""==f){if(c.host="",t)return;u=je}else{if(s=c.parseHost(f))return s;if("localhost"==c.host&&(c.host=""),t)return;f="",u=je}continue}f+=i;break;case je:if(c.isSpecial()){if(u=Ne,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=r&&(u=Ne,"/"!=i))continue}else c.fragment="",u=De;else c.query="",u=Ie;break;case Ne:if(i==r||"/"==i||"\\"==i&&c.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(l=q(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||F(c.path,"")):pe(f)?"/"==i||"\\"==i&&c.isSpecial()||F(c.path,""):("file"==c.scheme&&!c.path.length&&fe(f)&&(c.host&&(c.host=""),f=M(f,0)+":"),F(c.path,f)),f="","file"==c.scheme&&(i==r||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)U(c.path);"?"==i?(c.query="",u=Ie):"#"==i&&(c.fragment="",u=De)}else f+=ue(i,le);break;case Me:"?"==i?(c.query="",u=Ie):"#"==i?(c.fragment="",u=De):i!=r&&(c.path[0]+=ue(i,oe));break;case Ie:t||"#"!=i?i!=r&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":ue(i,oe)):(c.fragment="",u=De);break;case De:i!=r&&(c.fragment+=ue(i,se))}d++}},parseHost:function(e){var t,n,r;if("["==M(e,0)){if("]"!=M(e,e.length-1))return W;if(t=function(e){var t,n,r,a,i,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,f=function(){return M(e,d)};if(":"==f()){if(":"!=M(e,1))return;d+=2,u=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&I(ee,f());)t=16*t+T(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,c>6)return;for(r=0;f();){if(a=null,r>0){if(!("."==f()&&r<4))return;d++}if(!I(X,f()))return;for(;I(X,f());){if(i=T(f(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(a>255)return;d++}l[c]=256*l[c]+a,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(o=c-u,c=7;0!=c&&o>0;)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s;else if(8!=c)return;return l}(z(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=y(e),I(te,e))return W;if(t=function(e){var t,n,r,a,i,o,s,l=$(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r1&&"0"==M(a,0)&&(i=I(Z,a)?16:8,a=z(a,8==i?1:2)),""===a)o=0;else{if(!I(10==i?Q:8==i?J:ee,a))return e;o=T(a,i)}F(n,o)}for(r=0;r=N(256,5-t))return null}else if(o>255)return null;for(s=L(n),r=0;r1?arguments[1]:void 0,r=C(t,new Re(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Fe=Le.prototype,Be=function(e,t){return{get:function(){return A(this)[e]()},set:t&&function(e){return A(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(d(Fe,"href",Be("serialize","setHref")),d(Fe,"origin",Be("getOrigin")),d(Fe,"protocol",Be("getProtocol","setProtocol")),d(Fe,"username",Be("getUsername","setUsername")),d(Fe,"password",Be("getPassword","setPassword")),d(Fe,"host",Be("getHost","setHost")),d(Fe,"hostname",Be("getHostname","setHostname")),d(Fe,"port",Be("getPort","setPort")),d(Fe,"pathname",Be("getPathname","setPathname")),d(Fe,"search",Be("getSearch","setSearch")),d(Fe,"searchParams",Be("getSearchParams")),d(Fe,"hash",Be("getHash","setHash"))),u(Fe,"toJSON",(function(){return A(this).serialize()}),{enumerable:!0}),u(Fe,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),P){var Ue=P.createObjectURL,$e=P.revokeObjectURL;Ue&&u(Le,"createObjectURL",l(Ue,P)),$e&&u(Le,"revokeObjectURL",l($e,P))}w(Le,"URL"),a({global:!0,constructor:!0,forced:!o,sham:!i},{URL:Le})},36037:function(e,t,n){n(48613)},53245:function(e,t,n){"use strict";var r=n(73587),a=n(37892);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},86258:function(e){var t={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,n,r,a){if(!t.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!t[r].hasOwnProperty(n))throw new Error("Cannot convert from "+n+" to "+r);var i=t[r][n]*e;return!1!==a?(a=Math.pow(10,parseInt(a)||5),Math.round(i*a)/a):i}},61759:function(e,t,n){var r;!function(a){"use strict";var i,o=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",u=c+"Invalid argument: ",d=c+"Exponent out of range: ",f=Math.floor,h=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,g=7,v=9007199254740991,y=f(v/g),b={};function w(e,t){var n,r,a,i,o,s,c,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?T(t,f):t;if(c=e.d,u=t.d,o=e.e,a=t.e,c=c.slice(),i=o-a){for(i<0?(r=c,i=-i,s=u.length):(r=u,a=o,s=c.length),i>(s=(o=Math.ceil(f/g))>s?o+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/m|0,c[i]%=m;for(n&&(c.unshift(n),++a),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=a,l?T(t,f):t}function x(e,t,n){if(e!==~~e||en)throw Error(u+e)}function k(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(a=e.d.length)?r:a;te.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1},b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*g;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(e){return S(this,new this.constructor(e))},b.dividedToIntegerBy=b.idiv=function(e){var t=this.constructor;return T(S(this,new t(e),0,1),t.precision)},b.equals=b.eq=function(e){return!this.cmp(e)},b.exponent=function(){return A(this)},b.greaterThan=b.gt=function(e){return this.cmp(e)>0},b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(e){return this.cmp(e)<0},b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1},b.logarithm=b.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(l=!1,t=S(P(n,o),P(e,o),o),l=!0,T(t,a))},b.minus=b.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?j(t,e):w(t,(e.s=-e.s,e))},b.modulo=b.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=S(n,e,0,1).times(e),l=!0,n.minus(t)):T(new r(n),a)},b.naturalExponential=b.exp=function(){return C(this)},b.naturalLogarithm=b.ln=function(){return P(this)},b.negated=b.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},b.plus=b.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?w(t,e):j(t,(e.s=-e.s,e))},b.precision=b.sd=function(e){var t,n,r,a=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=A(a)+1,n=(r=a.d.length-1)*g+1,r=a.d[r]){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},b.squareRoot=b.sqrt=function(){var e,t,n,r,a,i,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=A(s),l=!1,0==(a=Math.sqrt(+s))||a==1/0?(((t=k(s.d)).length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new u(t=a==1/0?"5e"+e:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(a.toString()),a=o=(n=u.precision)+3;;)if(r=(i=r).plus(S(s,i,o+2)).times(.5),k(i.d).slice(0,o)===(t=k(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&"4999"==t){if(T(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;o+=4}return l=!0,T(r,n)},b.times=b.mul=function(e){var t,n,r,a,i,o,s,c,u,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,(c=h.length)<(u=p.length)&&(i=h,h=p,p=i,o=c,c=u,u=o),i=[],r=o=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=c+r;a>r;)s=i[a]+p[r]*h[a-r-1]+t,i[a--]=s%m|0,t=s/m|0;i[a]=(i[a]+t)%m|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?T(e,f.precision):e},b.toDecimalPlaces=b.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,o),void 0===t?t=r.rounding:x(t,0,8),T(n,e+A(n)+1,t))},b.toExponential=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=N(r,!0):(x(e,0,o),void 0===t?t=a.rounding:x(t,0,8),n=N(r=T(new a(r),e+1,t),!0,e+1)),n},b.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?N(a):(x(e,0,o),void 0===t?t=i.rounding:x(t,0,8),n=N((r=T(new i(a),e+A(a)+1,t)).abs(),!1,e+A(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var e=this,t=e.constructor;return T(new t(e),A(e)+1,t.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(e){var t,n,r,a,o,s,u=this,d=u.constructor,h=+(e=new d(e));if(!e.s)return new d(i);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(i))return u;if(r=d.precision,e.eq(i))return T(u,r);if(s=(t=e.e)>=(n=e.d.length-1),o=u.s,s){if((n=h<0?-h:h)<=v){for(a=new d(i),t=Math.ceil(r/g+4),l=!1;n%2&&M((a=a.times(u)).d,t),0!==(n=f(n/2));)M((u=u.times(u)).d,t);return l=!0,e.s<0?new d(i).div(a):T(a,r)}}else if(o<0)throw Error(c+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,a=e.times(P(u,r+12)),l=!0,(a=C(a)).s=o,a},b.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?r=N(a,(n=A(a))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,o),void 0===t?t=i.rounding:x(t,0,8),r=N(a=T(new i(a),e,t),e<=(n=A(a))||n<=i.toExpNeg,e)),r},b.toSignificantDigits=b.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,o),void 0===t?t=n.rounding:x(t,0,8)),T(new n(this),e,t)},b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=A(e),n=e.constructor;return N(e,t<=n.toExpNeg||t>=n.toExpPos)};var S=function(){function e(e,t){var n,r=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+r,e[a]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,a,i,o){var s,l,u,d,f,h,p,v,y,b,w,x,k,S,C,_,O,P,E=r.constructor,j=r.s==a.s?1:-1,N=r.d,M=a.d;if(!r.s)return new E(r);if(!a.s)throw Error(c+"Division by zero");for(l=r.e-a.e,O=M.length,C=N.length,v=(p=new E(j)).d=[],u=0;M[u]==(N[u]||0);)++u;if(M[u]>(N[u]||0)&&--l,(x=null==i?i=E.precision:o?i+(A(r)-A(a))+1:i)<0)return new E(0);if(x=x/g+2|0,u=0,1==O)for(d=0,M=M[0],x++;(u1&&(M=e(M,d),N=e(N,d),O=M.length,C=N.length),S=O,b=(y=N.slice(0,O)).length;b=m/2&&++_;do{d=0,(s=t(M,y,O,b))<0?(w=y[0],O!=b&&(w=w*m+(y[1]||0)),(d=w/_|0)>1?(d>=m&&(d=m-1),1==(s=t(f=e(M,d),y,h=f.length,b=y.length))&&(d--,n(f,O16)throw Error(d+A(e));if(!e.s)return new f(i);for(null==t?(l=!1,s=p):s=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(s+=Math.log(h(2,u))/Math.LN10*2+5|0,n=r=a=new f(i),f.precision=s;;){if(r=T(r.times(e),s),n=n.times(++c),k((o=a.plus(S(r,n,s))).d).slice(0,s)===k(a.d).slice(0,s)){for(;u--;)a=T(a.times(a),s);return f.precision=p,null==t?(l=!0,T(a,p)):a}a=o}}function A(e){for(var t=e.e*g,n=e.d[0];n>=10;n/=10)t++;return t}function _(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return T(new e(e.LN10),t)}function O(e){for(var t="";e--;)t+="0";return t}function P(e,t){var n,r,a,o,s,u,d,f,h,p=1,m=e,g=m.d,v=m.constructor,y=v.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new v(0);if(null==t?(l=!1,f=y):f=t,m.eq(10))return null==t&&(l=!0),_(v,f);if(f+=10,v.precision=f,r=(n=k(g)).charAt(0),o=A(m),!(Math.abs(o)<15e14))return d=_(v,f+2,y).times(o+""),m=P(new v(r+"."+n.slice(1)),f-10).plus(d),v.precision=y,null==t?(l=!0,T(m,y)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=k((m=m.times(e)).d)).charAt(0),p++;for(o=A(m),r>1?(m=new v("0."+n),o++):m=new v(r+"."+n.slice(1)),u=s=m=S(m.minus(i),m.plus(i),f),h=T(m.times(m),f),a=3;;){if(s=T(s.times(h),f),k((d=u.plus(S(s,new v(a),f))).d).slice(0,f)===k(u.d).slice(0,f))return u=u.times(2),0!==o&&(u=u.plus(_(v,f+2,y).times(o+""))),u=S(u,new v(p),f),v.precision=y,null==t?(l=!0,T(u,y)):u;u=d,a+=2}}function E(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(a=t.length;48===t.charCodeAt(a-1);)--a;if(t=t.slice(r,a)){if(a-=r,n=n-r-1,e.e=f(n/g),e.d=[],r=(n+1)%g,n<0&&(r+=g),ry||e.e<-y))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,t,n){var r,a,i,o,s,c,u,p,v=e.d;for(o=1,i=v[0];i>=10;i/=10)o++;if((r=t-o)<0)r+=g,a=t,u=v[p=0];else{if((p=Math.ceil((r+1)/g))>=(i=v.length))return e;for(u=i=v[p],o=1;i>=10;i/=10)o++;a=(r%=g)-g+o}if(void 0!==n&&(s=u/(i=h(10,o-a-1))%10|0,c=t<0||void 0!==v[p+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?a>0?u/h(10,o-a):0:v[p-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return c?(i=A(e),v.length=1,t=t-i-1,v[0]=h(10,(g-t%g)%g),e.e=f(-t/g)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==r?(v.length=p,i=1,p--):(v.length=p+1,i=h(10,g-r),v[p]=a>0?(u/h(10,o-a)%h(10,a)|0)*i:0),c)for(;;){if(0==p){(v[0]+=i)==m&&(v[0]=1,++e.e);break}if(v[p]+=i,v[p]!=m)break;v[p--]=0,i=1}for(r=v.length;0===v[--r];)v.pop();if(l&&(e.e>y||e.e<-y))throw Error(d+A(e));return e}function j(e,t){var n,r,a,i,o,s,c,u,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),l?T(t,p):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),o=u-r){for((d=o<0)?(n=c,o=-o,s=f.length):(n=f,r=u,s=c.length),o>(a=Math.max(Math.ceil(p/g),s)+2)&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for((d=(a=c.length)<(s=f.length))&&(s=a),a=0;a0;--a)c[s++]=0;for(a=f.length;a>o;){if(c[--a]0?i=i.charAt(0)+"."+i.slice(1)+O(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+O(-a-1)+i,n&&(r=n-o)>0&&(i+=O(r))):a>=o?(i+=O(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+O(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=O(r))),e.s<0?"-"+i:i}function M(e,t){if(e.length>t)return e.length=t,!0}function I(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,a=["precision",1,o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=a[t+1]&&r<=a[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}s=function e(t){var n,r,a;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):E(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(u+e);E(t,e)}if(i.prototype=b,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=I,void 0===t&&(t={}),t)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n0;)if(!n(e[a],t[a],r))return!1;return!0}function d(e,t,n,r){var a=e.size===t.size;if(a&&e.size){var i={};e.forEach((function(e,o){if(a){var s=!1,l=0;t.forEach((function(t,a){s||i[l]||(s=n(o,a,r)&&n(e,t,r))&&(i[l]=!0),l++})),a=s}}))}return a}var f="_owner",h=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function p(e,t,r,a){var i=n(e),s=i.length;if(n(t).length!==s)return!1;if(s)for(var l=void 0;s-- >0;){if((l=i[s])===f){var c=o(e),u=o(t);if((c||u)&&c!==u)return!1}if(!h(t,l)||!r(e[l],t[l],a))return!1}return!0}function m(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}function g(e,t,n,r){var a=e.size===t.size;if(a&&e.size){var i={};e.forEach((function(e){if(a){var o=!1,s=0;t.forEach((function(t){o||i[s]||(o=n(e,t,r))&&(i[s]=!0),s++})),a=o}}))}return a}var v="function"===typeof Map,y="function"===typeof Set;function b(e){var t="function"===typeof e?e(n):n;function n(e,n,o){if(e===n)return!0;if(e&&n&&"object"===typeof e&&"object"===typeof n){if(a(e)&&a(n))return p(e,n,t,o);var s=Array.isArray(e),l=Array.isArray(n);return s||l?s===l&&u(e,n,t,o):(s=e instanceof Date,l=n instanceof Date,s||l?s===l&&r(e.getTime(),n.getTime()):(s=e instanceof RegExp,l=n instanceof RegExp,s||l?s===l&&m(e,n):i(e)||i(n)?e===n:v&&(s=e instanceof Map,l=n instanceof Map,s||l)?s===l&&d(e,n,t,o):y&&(s=e instanceof Set,l=n instanceof Set,s||l)?s===l&&g(e,n,t,o):p(e,n,t,o)))}return e!==e&&n!==n}return n}var w=b(),x=b((function(){return r})),k=b(c()),S=b(c(r));e.circularDeepEqual=k,e.circularShallowEqual=S,e.createCustomEqual=b,e.deepEqual=w,e.sameValueZeroEqual=r,e.shallowEqual=x,Object.defineProperty(e,"__esModule",{value:!0})}(t)},46914:function(e,t,n){"use strict";n.r(t),n.d(t,{getUserLocale:function(){return o},getUserLocales:function(){return i}});var r=n(17576),a=n.n(r);var i=a()((function(){var e=[];return"undefined"!==typeof window&&(window.navigator.languages&&(e=e.concat(window.navigator.languages)),window.navigator.language&&e.push(window.navigator.language),window.navigator.userLanguage&&e.push(window.navigator.userLanguage),window.navigator.browserLanguage&&e.push(window.navigator.browserLanguage),window.navigator.systemLanguage&&e.push(window.navigator.systemLanguage)),e.push("en-US"),function(e){return e.map((function(e){if(!e||-1===e.indexOf("-")||e.toLowerCase()!==e)return e;var t=e.split("-");return"".concat(t[0],"-").concat(t[1].toUpperCase())}))}(e.filter((function(e,t,n){return n.indexOf(e)===t})))}));var o=a()((function(){return i()[0]}));t.default=o},67861:function(e,t,n){"use strict";var r=n(96214),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var a=h(n);a&&a!==p&&e(t,a,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),g=0;g0&&(p=f.apply(this,arguments)),e<=1&&(f=void 0),p}}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return f(2,e)}},81725:function(e,t,n){var r=n(70781)(n(7289),"DataView");e.exports=r},69748:function(e,t,n){var r=n(56545),a=n(69843),i=n(86266),o=n(17364),s=n(74156);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},86722:function(e){e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r0&&i(u)?n>1?e(u,n-1,i,o,s):r(s,u):o||(s[s.length]=u)}return s}},15461:function(e,t,n){var r=n(62550)();e.exports=r},35705:function(e,t,n){var r=n(15461),a=n(56385);e.exports=function(e,t){return e&&r(e,t,a)}},30207:function(e,t,n){var r=n(14534),a=n(60925);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&nt}},21966:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},99038:function(e,t,n){var r=n(93527),a=n(57700),i=n(13245);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,a,n)}},51276:function(e,t,n){var r=n(18665),a=n(89752),i="[object Arguments]";e.exports=function(e){return a(e)&&r(e)==i}},7081:function(e,t,n){var r=n(89110),a=n(89752);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!==t&&n!==n:r(t,n,i,o,e,s))}},89110:function(e,t,n){var r=n(17016),a=n(94132),i=n(89820),o=n(6353),s=n(68466),l=n(95585),c=n(70667),u=n(53153),d=1,f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,y){var b=l(e),w=l(t),x=b?h:s(e),k=w?h:s(t),S=(x=x==f?p:x)==p,C=(k=k==f?p:k)==p,A=x==k;if(A&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(A&&!S)return y||(y=new r),b||u(e)?a(e,t,n,g,v,y):i(e,t,x,n,g,v,y);if(!(n&d)){var _=S&&m.call(e,"__wrapped__"),O=C&&m.call(t,"__wrapped__");if(_||O){var P=_?e.value():e,E=O?t.value():t;return y||(y=new r),v(P,E,n,g,y)}}return!!A&&(y||(y=new r),o(e,t,n,g,v,y))}},19280:function(e,t,n){var r=n(17016),a=n(7081),i=1,o=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++la?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=c){var g=t?null:s(e);if(g)return l(g);h=!1,d=o,m=new r}else m=t?[]:p;e:for(;++u=a?e:r(e,t,n)}},85445:function(e,t,n){var r=n(72060);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,i=e===e,o=r(e),s=void 0!==t,l=null===t,c=t===t,u=r(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||a&&s&&c||!n&&c||!i)return 1;if(!a&&!o&&!u&&e=l?c:c*("desc"==n[a]?-1:1)}return e.index-t.index}},47683:function(e,t,n){var r=n(7289)["__core-js_shared__"];e.exports=r},36428:function(e,t,n){var r=n(2114);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o-1?s[l?t[c]:c]:void 0}}},53934:function(e,t,n){var r=n(2948),a=n(73271),i=n(89103);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&a(t,n,o)&&(n=o=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),o=void 0===o?tf))return!1;var p=u.get(e),m=u.get(t);if(p&&m)return p==t&&m==e;var g=-1,v=!0,y=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++g-1&&e%1==0&&e-1}},73316:function(e,t,n){var r=n(69194);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},79e3:function(e,t,n){var r=n(69748),a=n(95745),i=n(18579);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},37240:function(e,t,n){var r=n(16911);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},63414:function(e,t,n){var r=n(16911);e.exports=function(e){return r(this,e).get(e)}},17140:function(e,t,n){var r=n(16911);e.exports=function(e){return r(this,e).has(e)}},85429:function(e,t,n){var r=n(16911);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},258:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},22093:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},83679:function(e,t,n){var r=n(92736),a=500;e.exports=function(e){var t=r(e,(function(e){return n.size===a&&n.clear(),e})),n=t.cache;return t}},11353:function(e,t,n){var r=n(70781)(Object,"create");e.exports=r},8723:function(e,t,n){var r=n(9698)(Object.keys,Object);e.exports=r},47785:function(e,t,n){e=n.nmd(e);var r=n(32692),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},78186:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9698:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},56805:function(e,t,n){var r=n(81686),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),l=Array(s);++o0){if(++a>=t)return arguments[0]}else a=0;return e.apply(void 0,arguments)}}},23653:function(e,t,n){var r=n(95745);e.exports=function(){this.__data__=new r,this.size=0}},43359:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},92571:function(e){e.exports=function(e){return this.__data__.get(e)}},31698:function(e){e.exports=function(e){return this.__data__.has(e)}},85883:function(e,t,n){var r=n(95745),a=n(18579),i=n(13109),o=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!a||s.length=t||n<0||v&&e-m>=d}function x(){var e=a();if(w(e))return k(e);h=setTimeout(x,function(e){var n=t-(e-p);return v?l(n,d-(e-m)):n}(e))}function k(e){return h=void 0,y&&c?b(e):(c=u=void 0,f)}function S(){var e=a(),n=w(e);if(c=arguments,u=this,p=e,n){if(void 0===h)return function(e){return m=e,h=setTimeout(x,t),g?b(e):f}(p);if(v)return clearTimeout(h),h=setTimeout(x,t),b(p)}return void 0===h&&(h=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(g=!!n.leading,d=(v="maxWait"in n)?s(i(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==h&&clearTimeout(h),m=0,c=p=u=h=void 0},S.flush=function(){return void 0===h?f:k(a())},S}},83666:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},85499:function(e,t,n){var r=n(93514),a=n(84754),i=n(81186),o=n(95585),s=n(73271);e.exports=function(e,t,n){var l=o(e)?r:a;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},23709:function(e,t,n){var r=n(21392)(n(54353));e.exports=r},54353:function(e,t,n){var r=n(93527),a=n(81186),i=n(27260),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=o(s+l,0)),r(e,a(t,3),l)}},82572:function(e,t,n){var r=n(23255),a=n(93428);e.exports=function(e,t){return r(a(e,t),1)}},69706:function(e,t,n){var r=n(30207);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},89775:function(e,t,n){var r=n(21966),a=n(81898);e.exports=function(e,t){return null!=e&&a(e,t,r)}},19908:function(e){e.exports=function(e){return e}},52794:function(e,t,n){var r=n(51276),a=n(89752),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},95585:function(e){var t=Array.isArray;e.exports=t},2114:function(e,t,n){var r=n(50375),a=n(44276);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},79877:function(e,t,n){var r=n(18665),a=n(89752),i="[object Boolean]";e.exports=function(e){return!0===e||!1===e||a(e)&&r(e)==i}},70667:function(e,t,n){e=n.nmd(e);var r=n(7289),a=n(95535),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},1905:function(e,t,n){var r=n(7081);e.exports=function(e,t){return r(e,t)}},50375:function(e,t,n){var r=n(18665),a=n(91845),i="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!a(e))return!1;var t=r(e);return t==o||t==s||t==i||t==l}},44276:function(e){var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},56783:function(e,t,n){var r=n(79714);e.exports=function(e){return r(e)&&e!=+e}},31450:function(e){e.exports=function(e){return null==e}},79714:function(e,t,n){var r=n(18665),a=n(89752),i="[object Number]";e.exports=function(e){return"number"==typeof e||a(e)&&r(e)==i}},91845:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},89752:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},40634:function(e,t,n){var r=n(18665),a=n(96116),i=n(89752),o="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!i(e)||r(e)!=o)return!1;var t=a(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},65406:function(e,t,n){var r=n(18665),a=n(95585),i=n(89752),o="[object String]";e.exports=function(e){return"string"==typeof e||!a(e)&&i(e)&&r(e)==o}},72060:function(e,t,n){var r=n(18665),a=n(89752),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||a(e)&&r(e)==i}},53153:function(e,t,n){var r=n(77499),a=n(36902),i=n(47785),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},56385:function(e,t,n){var r=n(83200),a=n(23409),i=n(2114);e.exports=function(e){return i(e)?r(e):a(e)}},12699:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16031:function(e,t,n){var r;e=n.nmd(e),function(){var a,i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,h=2,p=4,m=1,g=2,v=1,y=2,b=4,w=8,x=16,k=32,S=64,C=128,A=256,_=512,O=30,P="...",E=800,T=16,j=1,N=2,M=1/0,I=9007199254740991,D=17976931348623157e292,R=NaN,L=4294967295,F=L-1,B=L>>>1,U=[["ary",C],["bind",v],["bindKey",y],["curry",w],["curryRight",x],["flip",_],["partial",k],["partialRight",S],["rearg",A]],$="[object Arguments]",z="[object Array]",q="[object AsyncFunction]",G="[object Boolean]",H="[object Date]",W="[object DOMException]",V="[object Error]",K="[object Function]",Y="[object GeneratorFunction]",X="[object Map]",Z="[object Number]",J="[object Null]",Q="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ae="[object String]",ie="[object Symbol]",oe="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",fe="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",ve="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,Ae=RegExp(Se.source),_e=RegExp(Ce.source),Oe=/<%-([\s\S]+?)%>/g,Pe=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Me=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Me.source),De=/^\s+/,Re=/\s/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,He=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Qe="\\ud800-\\udfff",et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",at="\\ufe0e\\ufe0f",it="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ot="['\u2019]",st="["+Qe+"]",lt="["+it+"]",ct="["+et+"]",ut="\\d+",dt="["+tt+"]",ft="["+nt+"]",ht="[^"+Qe+it+ut+tt+nt+rt+"]",pt="\\ud83c[\\udffb-\\udfff]",mt="[^"+Qe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",vt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",bt="\\u200d",wt="(?:"+ft+"|"+ht+")",xt="(?:"+yt+"|"+ht+")",kt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",St="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ct="(?:"+ct+"|"+pt+")"+"?",At="["+at+"]?",_t=At+Ct+("(?:"+bt+"(?:"+[mt,gt,vt].join("|")+")"+At+Ct+")*"),Ot="(?:"+[dt,gt,vt].join("|")+")"+_t,Pt="(?:"+[mt+ct+"?",ct,gt,vt,st].join("|")+")",Et=RegExp(ot,"g"),Tt=RegExp(ct,"g"),jt=RegExp(pt+"(?="+pt+")|"+Pt+_t,"g"),Nt=RegExp([yt+"?"+ft+"+"+kt+"(?="+[lt,yt,"$"].join("|")+")",xt+"+"+St+"(?="+[lt,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+kt,yt+"+"+St,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,Ot].join("|"),"g"),Mt=RegExp("["+bt+Qe+et+at+"]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Lt={};Lt[de]=Lt[fe]=Lt[he]=Lt[pe]=Lt[me]=Lt[ge]=Lt[ve]=Lt[ye]=Lt[be]=!0,Lt[$]=Lt[z]=Lt[ce]=Lt[G]=Lt[ue]=Lt[H]=Lt[V]=Lt[K]=Lt[X]=Lt[Z]=Lt[Q]=Lt[ne]=Lt[re]=Lt[ae]=Lt[se]=!1;var Ft={};Ft[$]=Ft[z]=Ft[ce]=Ft[ue]=Ft[G]=Ft[H]=Ft[de]=Ft[fe]=Ft[he]=Ft[pe]=Ft[me]=Ft[X]=Ft[Z]=Ft[Q]=Ft[ne]=Ft[re]=Ft[ae]=Ft[ie]=Ft[ge]=Ft[ve]=Ft[ye]=Ft[be]=!0,Ft[V]=Ft[K]=Ft[se]=!1;var Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,$t=parseInt,zt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,qt="object"==typeof self&&self&&self.Object===Object&&self,Gt=zt||qt||Function("return this")(),Ht=t&&!t.nodeType&&t,Wt=Ht&&e&&!e.nodeType&&e,Vt=Wt&&Wt.exports===Ht,Kt=Vt&&zt.process,Yt=function(){try{var e=Wt&&Wt.require&&Wt.require("util").types;return e||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Xt=Yt&&Yt.isArrayBuffer,Zt=Yt&&Yt.isDate,Jt=Yt&&Yt.isMap,Qt=Yt&&Yt.isRegExp,en=Yt&&Yt.isSet,tn=Yt&&Yt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function un(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function Mn(e,t){for(var n=e.length;n--&&bn(t,e[n],0)>-1;);return n}var In=Cn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dn=Cn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Rn(e){return"\\"+Bt[e]}function Ln(e){return Mt.test(e)}function Fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bn(e,t){return function(n){return e(t(n))}}function Un(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"});var Vn=function e(t){var n=(t=null==t?Gt:Vn.defaults(Gt.Object(),t,Vn.pick(Gt,Dt))).Array,r=t.Date,Re=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,at=t.TypeError,it=n.prototype,ot=Qe.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ct=ot.toString,ut=st.hasOwnProperty,dt=0,ft=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=st.toString,pt=ct.call(tt),mt=Gt._,gt=nt("^"+ct.call(ut).replace(Me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Vt?t.Buffer:a,yt=t.Symbol,bt=t.Uint8Array,wt=vt?vt.allocUnsafe:a,xt=Bn(tt.getPrototypeOf,tt),kt=tt.create,St=st.propertyIsEnumerable,Ct=it.splice,At=yt?yt.isConcatSpreadable:a,_t=yt?yt.iterator:a,Ot=yt?yt.toStringTag:a,Pt=function(){try{var e=Ui(tt,"defineProperty");return e({},"",{}),e}catch(t){}}(),jt=t.clearTimeout!==Gt.clearTimeout&&t.clearTimeout,Mt=r&&r.now!==Gt.Date.now&&r.now,Bt=t.setTimeout!==Gt.setTimeout&&t.setTimeout,zt=et.ceil,qt=et.floor,Ht=tt.getOwnPropertySymbols,Wt=vt?vt.isBuffer:a,Kt=t.isFinite,Yt=it.join,gn=Bn(tt.keys,tt),Cn=et.max,Kn=et.min,Yn=r.now,Xn=t.parseInt,Zn=et.random,Jn=it.reverse,Qn=Ui(t,"DataView"),er=Ui(t,"Map"),tr=Ui(t,"Promise"),nr=Ui(t,"Set"),rr=Ui(t,"WeakMap"),ar=Ui(tt,"create"),ir=rr&&new rr,or={},sr=ho(Qn),lr=ho(er),cr=ho(tr),ur=ho(nr),dr=ho(rr),fr=yt?yt.prototype:a,hr=fr?fr.valueOf:a,pr=fr?fr.toString:a;function mr(e){if(Ts(e)&&!bs(e)&&!(e instanceof br)){if(e instanceof yr)return e;if(ut.call(e,"__wrapped__"))return po(e)}return new yr(e)}var gr=function(){function e(){}return function(t){if(!Es(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Lr(e,t,n,r,i,o){var s,l=t&f,c=t&h,u=t&p;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!Es(e))return e;var d=bs(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ai(e,s)}else{var m=qi(e),g=m==K||m==Y;if(Ss(e))return Ja(e,l);if(m==Q||m==$||g&&!i){if(s=c||g?{}:Hi(e),!l)return c?function(e,t){return ii(e,zi(e),t)}(e,function(e,t){return e&&ii(t,sl(t),e)}(s,e)):function(e,t){return ii(e,$i(e),t)}(e,Mr(s,e))}else{if(!Ft[m])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ce:return Qa(e);case G:case H:return new r(+e);case ue:return function(e,t){var n=t?Qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case fe:case he:case pe:case me:case ge:case ve:case ye:case be:return ei(e,n);case X:return new r;case Z:case ae:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case ie:return a=e,hr?tt(hr.call(a)):{}}var a}(e,m,l)}}o||(o=new Cr);var v=o.get(e);if(v)return v;o.set(e,s),Ds(e)?e.forEach((function(r){s.add(Lr(r,t,n,r,e,o))})):js(e)&&e.forEach((function(r,a){s.set(a,Lr(r,t,n,a,e,o))}));var y=d?a:(u?c?Mi:Ni:c?sl:ol)(e);return an(y||e,(function(r,a){y&&(r=e[a=r]),Tr(s,a,Lr(r,t,n,a,e,o))})),s}function Fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function Br(e,t,n){if("function"!=typeof e)throw new at(s);return io((function(){e.apply(a,n)}),t)}function Ur(e,t,n,r){var a=-1,o=cn,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,En(n))),r?(o=un,s=!1):t.length>=i&&(o=jn,s=!1,t=new Sr(t));e:for(;++a-1},xr.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},kr.prototype.clear=function(){this.size=0,this.__data__={hash:new wr,map:new(er||xr),string:new wr}},kr.prototype.delete=function(e){var t=Fi(this,e).delete(e);return this.size-=t?1:0,t},kr.prototype.get=function(e){return Fi(this,e).get(e)},kr.prototype.has=function(e){return Fi(this,e).has(e)},kr.prototype.set=function(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Sr.prototype.add=Sr.prototype.push=function(e){return this.__data__.set(e,c),this},Sr.prototype.has=function(e){return this.__data__.has(e)},Cr.prototype.clear=function(){this.__data__=new xr,this.size=0},Cr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Cr.prototype.get=function(e){return this.__data__.get(e)},Cr.prototype.has=function(e){return this.__data__.has(e)},Cr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!er||r.length0&&n(s)?t>1?Wr(s,t-1,n,r,a):fn(a,s):r||(a[a.length]=s)}return a}var Vr=ci(),Kr=ci(!0);function Yr(e,t){return e&&Vr(e,t,ol)}function Xr(e,t){return e&&Kr(e,t,ol)}function Zr(e,t){return ln(t,(function(t){return _s(e[t])}))}function Jr(e,t){for(var n=0,r=(t=Ka(t,e)).length;null!=e&&nt}function na(e,t){return null!=e&&ut.call(e,t)}function ra(e,t){return null!=e&&t in tt(e)}function aa(e,t,r){for(var i=r?un:cn,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=dn(f,En(t))),u=Kn(f.length,u),c[l]=!r&&(t||o>=120&&f.length>=120)?new Sr(l&&f):a}f=e[0];var h=-1,p=c[0];e:for(;++h=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function wa(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&Ct.call(s,l,1),Ct.call(e,l,1);return e}function ka(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;Vi(a)?Ct.call(e,a,1):Ua(e,a)}}return e}function Sa(e,t){return e+qt(Zn()*(t-e+1))}function Ca(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),(t=qt(t/2))&&(e+=e)}while(t);return n}function Aa(e,t){return oo(to(e,t,Nl),e+"")}function _a(e){return _r(ml(e))}function Oa(e,t){var n=ml(e);return co(n,Rr(t,0,n.length))}function Pa(e,t,n,r){if(!Es(e))return e;for(var i=-1,o=(t=Ka(t,e)).length,s=o-1,l=e;null!=l&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a>>1,o=e[i];null!==o&&!Ls(o)&&(n?o<=t:o=i){var u=t?null:Ci(e);if(u)return $n(u);s=!1,a=jn,c=new Sr}else c=t?[]:l;e:for(;++r=r?e:Na(e,t,n)}var Za=jt||function(e){return Gt.clearTimeout(e)};function Ja(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Qa(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function ei(e,t){var n=t?Qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ti(e,t){if(e!==t){var n=e!==a,r=null===e,i=e===e,o=Ls(e),s=t!==a,l=null===t,c=t===t,u=Ls(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&Ki(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=tt(t);++r-1?i[o?t[s]:s]:a}}function pi(e){return ji((function(t){var n=t.length,r=n,i=yr.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new at(s);if(i&&!l&&"wrapper"==Di(o))var l=new yr([],!0)}for(r=l?r:n;++r1&&w.reverse(),f&&ul))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&g?new Sr:a;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return an(U,(function(n){var r="_."+n[0];t&n[1]&&!cn(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(Be):[]}(r),n)))}function lo(e){var t=0,n=0;return function(){var r=Yn(),i=T-(r-n);if(n=r,i>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(a,arguments)}}function co(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,Io(e,n)}));function $o(e){var t=mr(e);return t.__chain__=!0,t}function zo(e,t){return t(e)}var qo=ji((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Dr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&Vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:zo,args:[i],thisArg:a}),new yr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var Go=oi((function(e,t,n){ut.call(e,n)?++e[n]:Ir(e,n,1)}));var Ho=hi(yo),Wo=hi(bo);function Vo(e,t){return(bs(e)?an:$r)(e,Li(t,3))}function Ko(e,t){return(bs(e)?on:zr)(e,Li(t,3))}var Yo=oi((function(e,t,n){ut.call(e,n)?e[n].push(t):Ir(e,n,[t])}));var Xo=Aa((function(e,t,r){var a=-1,i="function"==typeof t,o=xs(e)?n(e.length):[];return $r(e,(function(e){o[++a]=i?nn(t,e,r):ia(e,t,r)})),o})),Zo=oi((function(e,t,n){Ir(e,n,t)}));function Jo(e,t){return(bs(e)?dn:pa)(e,Li(t,3))}var Qo=oi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var es=Aa((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ki(e,t[0],t[1])?t=[]:n>2&&Ki(t[0],t[1],t[2])&&(t=[t[0]]),ba(e,Wr(t,1),[])})),ts=Mt||function(){return Gt.Date.now()};function ns(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,_i(e,C,a,a,a,a,t)}function rs(e,t){var n;if("function"!=typeof t)throw new at(s);return e=qs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var as=Aa((function(e,t,n){var r=v;if(n.length){var a=Un(n,Ri(as));r|=k}return _i(e,r,t,n,a)})),is=Aa((function(e,t,n){var r=v|y;if(n.length){var a=Un(n,Ri(is));r|=k}return _i(t,r,e,n,a)}));function os(e,t,n){var r,i,o,l,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new at(s);function m(t){var n=r,o=i;return r=i=a,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===a||n>=t||n<0||h&&e-d>=o}function v(){var e=ts();if(g(e))return y(e);c=io(v,function(e){var n=t-(e-u);return h?Kn(n,o-(e-d)):n}(e))}function y(e){return c=a,p&&r?m(e):(r=i=a,l)}function b(){var e=ts(),n=g(e);if(r=arguments,i=this,u=e,n){if(c===a)return function(e){return d=e,c=io(v,t),f?m(e):l}(u);if(h)return Za(c),c=io(v,t),m(u)}return c===a&&(c=io(v,t)),l}return t=Hs(t)||0,Es(n)&&(f=!!n.leading,o=(h="maxWait"in n)?Cn(Hs(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==a&&Za(c),d=0,r=u=i=c=a},b.flush=function(){return c===a?l:y(ts())},b}var ss=Aa((function(e,t){return Br(e,1,t)})),ls=Aa((function(e,t,n){return Br(e,Hs(t)||0,n)}));function cs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(cs.Cache||kr),n}function us(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}cs.Cache=kr;var ds=Ya((function(e,t){var n=(t=1==t.length&&bs(t[0])?dn(t[0],En(Li())):dn(Wr(t,1),En(Li()))).length;return Aa((function(r){for(var a=-1,i=Kn(r.length,n);++a=t})),ys=oa(function(){return arguments}())?oa:function(e){return Ts(e)&&ut.call(e,"callee")&&!St.call(e,"callee")},bs=n.isArray,ws=Xt?En(Xt):function(e){return Ts(e)&&ea(e)==ce};function xs(e){return null!=e&&Ps(e.length)&&!_s(e)}function ks(e){return Ts(e)&&xs(e)}var Ss=Wt||Hl,Cs=Zt?En(Zt):function(e){return Ts(e)&&ea(e)==H};function As(e){if(!Ts(e))return!1;var t=ea(e);return t==V||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Ms(e)}function _s(e){if(!Es(e))return!1;var t=ea(e);return t==K||t==Y||t==q||t==te}function Os(e){return"number"==typeof e&&e==qs(e)}function Ps(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var js=Jt?En(Jt):function(e){return Ts(e)&&qi(e)==X};function Ns(e){return"number"==typeof e||Ts(e)&&ea(e)==Z}function Ms(e){if(!Ts(e)||ea(e)!=Q)return!1;var t=xt(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==pt}var Is=Qt?En(Qt):function(e){return Ts(e)&&ea(e)==ne};var Ds=en?En(en):function(e){return Ts(e)&&qi(e)==re};function Rs(e){return"string"==typeof e||!bs(e)&&Ts(e)&&ea(e)==ae}function Ls(e){return"symbol"==typeof e||Ts(e)&&ea(e)==ie}var Fs=tn?En(tn):function(e){return Ts(e)&&Ps(e.length)&&!!Lt[ea(e)]};var Bs=xi(ha),Us=xi((function(e,t){return e<=t}));function $s(e){if(!e)return[];if(xs(e))return Rs(e)?Gn(e):ai(e);if(_t&&e[_t])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_t]());var t=qi(e);return(t==X?Fn:t==re?$n:ml)(e)}function zs(e){return e?(e=Hs(e))===M||e===-M?(e<0?-1:1)*D:e===e?e:0:0===e?e:0}function qs(e){var t=zs(e),n=t%1;return t===t?n?t-n:t:0}function Gs(e){return e?Rr(qs(e),0,L):0}function Hs(e){if("number"==typeof e)return e;if(Ls(e))return R;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pn(e);var n=We.test(e);return n||Ke.test(e)?$t(e.slice(2),n?2:8):He.test(e)?R:+e}function Ws(e){return ii(e,sl(e))}function Vs(e){return null==e?"":Fa(e)}var Ks=si((function(e,t){if(Ji(t)||xs(t))ii(t,ol(t),e);else for(var n in t)ut.call(t,n)&&Tr(e,n,t[n])})),Ys=si((function(e,t){ii(t,sl(t),e)})),Xs=si((function(e,t,n,r){ii(t,sl(t),e,r)})),Zs=si((function(e,t,n,r){ii(t,ol(t),e,r)})),Js=ji(Dr);var Qs=Aa((function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&Ki(t[0],t[1],i)&&(r=1);++n1),t})),ii(e,Mi(e),n),r&&(n=Lr(n,f|h|p,Ei));for(var a=t.length;a--;)Ua(n,t[a]);return n}));var dl=ji((function(e,t){return null==e?{}:function(e,t){return wa(e,t,(function(t,n){return nl(e,n)}))}(e,t)}));function fl(e,t){if(null==e)return{};var n=dn(Mi(e),(function(e){return[e]}));return t=Li(t),wa(e,n,(function(e,n){return t(e,n[0])}))}var hl=Ai(ol),pl=Ai(sl);function ml(e){return null==e?[]:Tn(e,ol(e))}var gl=di((function(e,t,n){return t=t.toLowerCase(),e+(n?vl(t):t)}));function vl(e){return Al(Vs(e).toLowerCase())}function yl(e){return(e=Vs(e))&&e.replace(Xe,In).replace(Tt,"")}var bl=di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),wl=di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),xl=ui("toLowerCase");var kl=di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=di((function(e,t,n){return e+(n?" ":"")+Al(t)}));var Cl=di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Al=ui("toUpperCase");function _l(e,t,n){return e=Vs(e),(t=n?a:t)===a?function(e){return It.test(e)}(e)?function(e){return e.match(Nt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Ol=Aa((function(e,t){try{return nn(e,a,t)}catch(n){return As(n)?n:new Re(n)}})),Pl=ji((function(e,t){return an(t,(function(t){t=fo(t),Ir(e,t,as(e[t],e))})),e}));function El(e){return function(){return e}}var Tl=pi(),jl=pi(!0);function Nl(e){return e}function Ml(e){return ua("function"==typeof e?e:Lr(e,f))}var Il=Aa((function(e,t){return function(n){return ia(n,e,t)}})),Dl=Aa((function(e,t){return function(n){return ia(e,n,t)}}));function Rl(e,t,n){var r=ol(t),a=Zr(t,r);null!=n||Es(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Zr(t,ol(t)));var i=!(Es(n)&&"chain"in n)||!!n.chain,o=_s(e);return an(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ai(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,fn([this.value()],arguments))})})),e}function Ll(){}var Fl=yi(dn),Bl=yi(sn),Ul=yi(mn);function $l(e){return Yi(e)?Sn(fo(e)):function(e){return function(t){return Jr(t,e)}}(e)}var zl=wi(),ql=wi(!0);function Gl(){return[]}function Hl(){return!1}var Wl=vi((function(e,t){return e+t}),0),Vl=Si("ceil"),Kl=vi((function(e,t){return e/t}),1),Yl=Si("floor");var Xl=vi((function(e,t){return e*t}),1),Zl=Si("round"),Jl=vi((function(e,t){return e-t}),0);return mr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=qs(e),function(){if(--e<1)return t.apply(this,arguments)}},mr.ary=ns,mr.assign=Ks,mr.assignIn=Ys,mr.assignInWith=Xs,mr.assignWith=Zs,mr.at=Js,mr.before=rs,mr.bind=as,mr.bindAll=Pl,mr.bindKey=is,mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return bs(e)?e:[e]},mr.chain=$o,mr.chunk=function(e,t,r){t=(r?Ki(e,t,r):t===a)?1:Cn(qs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=n(zt(i/t));oi?0:i+n),(r=r===a||r>i?i:qs(r))<0&&(r+=i),r=n>r?0:Gs(r);n>>0)?(e=Vs(e))&&("string"==typeof t||null!=t&&!Is(t))&&!(t=Fa(t))&&Ln(e)?Xa(Gn(e),0,n):e.split(t,n):[]},mr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Cn(qs(t),0),Aa((function(n){var r=n[t],a=Xa(n,0,t);return r&&fn(a,r),nn(e,this,a)}))},mr.tail=function(e){var t=null==e?0:e.length;return t?Na(e,1,t):[]},mr.take=function(e,t,n){return e&&e.length?Na(e,0,(t=n||t===a?1:qs(t))<0?0:t):[]},mr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Na(e,(t=r-(t=n||t===a?1:qs(t)))<0?0:t,r):[]},mr.takeRightWhile=function(e,t){return e&&e.length?za(e,Li(t,3),!1,!0):[]},mr.takeWhile=function(e,t){return e&&e.length?za(e,Li(t,3)):[]},mr.tap=function(e,t){return t(e),e},mr.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new at(s);return Es(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),os(e,t,{leading:r,maxWait:t,trailing:a})},mr.thru=zo,mr.toArray=$s,mr.toPairs=hl,mr.toPairsIn=pl,mr.toPath=function(e){return bs(e)?dn(e,fo):Ls(e)?[e]:ai(uo(Vs(e)))},mr.toPlainObject=Ws,mr.transform=function(e,t,n){var r=bs(e),a=r||Ss(e)||Fs(e);if(t=Li(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:Es(e)&&_s(i)?gr(xt(e)):{}}return(a?an:Yr)(e,(function(e,r,a){return t(n,e,r,a)})),n},mr.unary=function(e){return ns(e,1)},mr.union=To,mr.unionBy=jo,mr.unionWith=No,mr.uniq=function(e){return e&&e.length?Ba(e):[]},mr.uniqBy=function(e,t){return e&&e.length?Ba(e,Li(t,2)):[]},mr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?Ba(e,a,t):[]},mr.unset=function(e,t){return null==e||Ua(e,t)},mr.unzip=Mo,mr.unzipWith=Io,mr.update=function(e,t,n){return null==e?e:$a(e,t,Va(n))},mr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:$a(e,t,Va(n),r)},mr.values=ml,mr.valuesIn=function(e){return null==e?[]:Tn(e,sl(e))},mr.without=Do,mr.words=_l,mr.wrap=function(e,t){return fs(Va(t),e)},mr.xor=Ro,mr.xorBy=Lo,mr.xorWith=Fo,mr.zip=Bo,mr.zipObject=function(e,t){return Ha(e||[],t||[],Tr)},mr.zipObjectDeep=function(e,t){return Ha(e||[],t||[],Pa)},mr.zipWith=Uo,mr.entries=hl,mr.entriesIn=pl,mr.extend=Ys,mr.extendWith=Xs,Rl(mr,mr),mr.add=Wl,mr.attempt=Ol,mr.camelCase=gl,mr.capitalize=vl,mr.ceil=Vl,mr.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Hs(n))===n?n:0),t!==a&&(t=(t=Hs(t))===t?t:0),Rr(Hs(e),t,n)},mr.clone=function(e){return Lr(e,p)},mr.cloneDeep=function(e){return Lr(e,f|p)},mr.cloneDeepWith=function(e,t){return Lr(e,f|p,t="function"==typeof t?t:a)},mr.cloneWith=function(e,t){return Lr(e,p,t="function"==typeof t?t:a)},mr.conformsTo=function(e,t){return null==t||Fr(e,t,ol(t))},mr.deburr=yl,mr.defaultTo=function(e,t){return null==e||e!==e?t:e},mr.divide=Kl,mr.endsWith=function(e,t,n){e=Vs(e),t=Fa(t);var r=e.length,i=n=n===a?r:Rr(qs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},mr.eq=ms,mr.escape=function(e){return(e=Vs(e))&&_e.test(e)?e.replace(Ce,Dn):e},mr.escapeRegExp=function(e){return(e=Vs(e))&&Ie.test(e)?e.replace(Me,"\\$&"):e},mr.every=function(e,t,n){var r=bs(e)?sn:qr;return n&&Ki(e,t,n)&&(t=a),r(e,Li(t,3))},mr.find=Ho,mr.findIndex=yo,mr.findKey=function(e,t){return vn(e,Li(t,3),Yr)},mr.findLast=Wo,mr.findLastIndex=bo,mr.findLastKey=function(e,t){return vn(e,Li(t,3),Xr)},mr.floor=Yl,mr.forEach=Vo,mr.forEachRight=Ko,mr.forIn=function(e,t){return null==e?e:Vr(e,Li(t,3),sl)},mr.forInRight=function(e,t){return null==e?e:Kr(e,Li(t,3),sl)},mr.forOwn=function(e,t){return e&&Yr(e,Li(t,3))},mr.forOwnRight=function(e,t){return e&&Xr(e,Li(t,3))},mr.get=tl,mr.gt=gs,mr.gte=vs,mr.has=function(e,t){return null!=e&&Gi(e,t,na)},mr.hasIn=nl,mr.head=xo,mr.identity=Nl,mr.includes=function(e,t,n,r){e=xs(e)?e:ml(e),n=n&&!r?qs(n):0;var a=e.length;return n<0&&(n=Cn(a+n,0)),Rs(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&bn(e,t,n)>-1},mr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:qs(n);return a<0&&(a=Cn(r+a,0)),bn(e,t,a)},mr.inRange=function(e,t,n){return t=zs(t),n===a?(n=t,t=0):n=zs(n),function(e,t,n){return e>=Kn(t,n)&&e=-I&&e<=I},mr.isSet=Ds,mr.isString=Rs,mr.isSymbol=Ls,mr.isTypedArray=Fs,mr.isUndefined=function(e){return e===a},mr.isWeakMap=function(e){return Ts(e)&&qi(e)==se},mr.isWeakSet=function(e){return Ts(e)&&ea(e)==le},mr.join=function(e,t){return null==e?"":Yt.call(e,t)},mr.kebabCase=bl,mr.last=Ao,mr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=qs(n))<0?Cn(r+i,0):Kn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):yn(e,xn,i,!0)},mr.lowerCase=wl,mr.lowerFirst=xl,mr.lt=Bs,mr.lte=Us,mr.max=function(e){return e&&e.length?Gr(e,Nl,ta):a},mr.maxBy=function(e,t){return e&&e.length?Gr(e,Li(t,2),ta):a},mr.mean=function(e){return kn(e,Nl)},mr.meanBy=function(e,t){return kn(e,Li(t,2))},mr.min=function(e){return e&&e.length?Gr(e,Nl,ha):a},mr.minBy=function(e,t){return e&&e.length?Gr(e,Li(t,2),ha):a},mr.stubArray=Gl,mr.stubFalse=Hl,mr.stubObject=function(){return{}},mr.stubString=function(){return""},mr.stubTrue=function(){return!0},mr.multiply=Xl,mr.nth=function(e,t){return e&&e.length?ya(e,qs(t)):a},mr.noConflict=function(){return Gt._===this&&(Gt._=mt),this},mr.noop=Ll,mr.now=ts,mr.pad=function(e,t,n){e=Vs(e);var r=(t=qs(t))?qn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return bi(qt(a),n)+e+bi(zt(a),n)},mr.padEnd=function(e,t,n){e=Vs(e);var r=(t=qs(t))?qn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Zn();return Kn(e+i*(t-e+Ut("1e-"+((i+"").length-1))),t)}return Sa(e,t)},mr.reduce=function(e,t,n){var r=bs(e)?hn:An,a=arguments.length<3;return r(e,Li(t,4),n,a,$r)},mr.reduceRight=function(e,t,n){var r=bs(e)?pn:An,a=arguments.length<3;return r(e,Li(t,4),n,a,zr)},mr.repeat=function(e,t,n){return t=(n?Ki(e,t,n):t===a)?1:qs(t),Ca(Vs(e),t)},mr.replace=function(){var e=arguments,t=Vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},mr.result=function(e,t,n){var r=-1,i=(t=Ka(t,e)).length;for(i||(i=1,e=a);++rI)return[];var n=L,r=Kn(e,L);t=Li(t),e-=L;for(var a=On(r,t);++n=o)return e;var l=n-qn(r);if(l<1)return r;var c=s?Xa(s,0,l).join(""):e.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),Is(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=nt(i.source,Vs(Ge.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===a?l:f)}}else if(e.indexOf(Fa(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},mr.unescape=function(e){return(e=Vs(e))&&Ae.test(e)?e.replace(Se,Wn):e},mr.uniqueId=function(e){var t=++dt;return Vs(e)+t},mr.upperCase=Cl,mr.upperFirst=Al,mr.each=Vo,mr.eachRight=Ko,mr.first=xo,Rl(mr,function(){var e={};return Yr(mr,(function(t,n){ut.call(mr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),mr.VERSION="4.17.21",an(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){mr[e].placeholder=mr})),an(["drop","take"],(function(e,t){br.prototype[e]=function(n){n=n===a?1:Cn(qs(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(n,r.__takeCount__):r.__views__.push({size:Kn(n,L),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),an(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==j||3==n;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),an(["head","last"],(function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}})),an(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}})),br.prototype.compact=function(){return this.filter(Nl)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Aa((function(e,t){return"function"==typeof e?new br(this):this.map((function(n){return ia(n,e,t)}))})),br.prototype.reject=function(e){return this.filter(us(Li(e)))},br.prototype.slice=function(e,t){e=qs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=qs(t))<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(L)},Yr(br.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=mr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(mr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof br,c=s[0],u=l||bs(t),d=function(e){var t=i.apply(mr,fn([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=o&&!f,m=l&&!h;if(!o&&u){t=m?t:new br(this);var g=e.apply(t,s);return g.__actions__.push({func:zo,args:[d],thisArg:a}),new yr(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),an(["pop","push","shift","sort","splice","unshift"],(function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);mr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(bs(a)?a:[],e)}return this[n]((function(n){return t.apply(bs(n)?n:[],e)}))}})),Yr(br.prototype,(function(e,t){var n=mr[t];if(n){var r=n.name+"";ut.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}})),or[mi(a,y).name]=[{name:"wrapper",func:a}],br.prototype.clone=function(){var e=new br(this.__wrapped__);return e.__actions__=ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ai(this.__views__),e},br.prototype.reverse=function(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=bs(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},mr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=po(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),(t=t.reverse()).__actions__.push({func:zo,args:[Eo],thisArg:a}),new yr(t,this.__chain__)}return this.thru(Eo)},mr.prototype.toJSON=mr.prototype.valueOf=mr.prototype.value=function(){return qa(this.__wrapped__,this.__actions__)},mr.prototype.first=mr.prototype.head,_t&&(mr.prototype[_t]=function(){return this}),mr}();Gt._=Vn,(r=function(){return Vn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},93428:function(e,t,n){var r=n(95434),a=n(81186),i=n(71839),o=n(95585);e.exports=function(e,t){return(o(e)?r:i)(e,a(t,3))}},28463:function(e,t,n){var r=n(46351),a=n(35705),i=n(81186);e.exports=function(e,t){var n={};return t=i(t,3),a(e,(function(e,a,i){r(n,a,t(e,a,i))})),n}},34402:function(e,t,n){var r=n(67022),a=n(62174),i=n(19908);e.exports=function(e){return e&&e.length?r(e,i,a):void 0}},51198:function(e,t,n){var r=n(67022),a=n(62174),i=n(81186);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),a):void 0}},92736:function(e,t,n){var r=n(13109),a="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},82507:function(e,t,n){var r=n(67022),a=n(43225),i=n(19908);e.exports=function(e){return e&&e.length?r(e,i,a):void 0}},46873:function(e,t,n){var r=n(67022),a=n(81186),i=n(43225);e.exports=function(e,t){return e&&e.length?r(e,a(t,2),i):void 0}},8568:function(e){e.exports=function(){}},46170:function(e,t,n){var r=n(7289);e.exports=function(){return r.Date.now()}},34445:function(e,t,n){var r=n(61125),a=n(80171),i=n(98939),o=n(60925);e.exports=function(e){return i(e)?r(o(e)):a(e)}},43575:function(e,t,n){var r=n(53934)();e.exports=r},6366:function(e,t,n){var r=n(29330),a=n(81186),i=n(23268),o=n(95585),s=n(73271);e.exports=function(e,t,n){var l=o(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,a(t,3))}},70163:function(e,t,n){var r=n(23255),a=n(89318),i=n(44409),o=n(73271),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])}));e.exports=s},72554:function(e){e.exports=function(){return[]}},95535:function(e){e.exports=function(){return!1}},91909:function(e,t,n){var r=n(12279),a=n(91845),i="Expected a function";e.exports=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return a(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}},89103:function(e,t,n){var r=n(57923),a=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===a||e===-a?(e<0?-1:1)*i:e===e?e:0:0===e?e:0}},27260:function(e,t,n){var r=n(89103);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},57923:function(e,t,n){var r=n(2306),a=n(91845),i=n(72060),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}},11822:function(e,t,n){var r=n(21612);e.exports=function(e){return null==e?"":r(e)}},35487:function(e,t,n){var r=n(81186),a=n(7579);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},24569:function(e,t,n){var r=n(62797)("toUpperCase");e.exports=r},72363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.focusEvents=t.keyboardEvents=t.touchEvents=t.mouseEvents=void 0;var n=["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"];t.mouseEvents=n;var r=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"];t.touchEvents=r;var a=["onKeyDown","onKeyPress","onKeyUp"];t.keyboardEvents=a;var i=["onFocus","onBlur"];t.focusEvents=i;var o=function(e,t){var o={};return[].concat(n,r,a,i).forEach((function(n){e[n]&&(o[n]=function(r){return t?e[n](r,t(n)):e[n](r)})})),o};t.default=o},50404:function(e,t,n){"use strict";function r(){return Array.prototype.slice.call(arguments).reduce((function(e,t){return"string"===typeof t||Array.isArray(t)?e.concat(t):e}),[]).filter(Boolean).join(" ")}n.r(t),n.d(t,{default:function(){return r}})},71843:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,a){for(var i,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l=r.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))},t.isBool=function(e){return"boolean"===typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSameOrigin=function(e,t){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(a){return!1}var r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(r){}return null},t.removeNullCharacters=function(e){return"string"!==typeof e?(i("The argument for removeNullCharacters must be a string."),e):e.replace(v,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(a=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=y,t.stringToPDFString=function(e){var t=e.length,n=[];if("\xfe"===e[0]&&"\xff"===e[1])for(var r=2;r=r.WARNINGS&&console.log("Warning: ".concat(e))}function o(e){throw new Error(e)}function s(e,t){e||o(t)}function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;var u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).code=r,a}return _createClass(n)}(c);t.PasswordException=u;var d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).details=r,a}return _createClass(n)}(c);t.UnknownErrorException=d;var f=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n)}(c);t.InvalidPDFException=f;var h=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n)}(c);t.MissingPDFException=h;var p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).status=r,a}return _createClass(n)}(c);t.UnexpectedResponseException=p;var m=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n)}(c);t.FormatError=m;var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n)}(c);t.AbortException=g;var v=/\x00/g;function y(e){s("string"===typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;re[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,n){function r(e,t){return e-t}var a=[t[0],t[2],n[0],n[2]].sort(r),i=[t[1],t[3],n[1],n[3]].sort(r),o=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),a[0]===t[0]&&a[1]===n[0]||a[0]===n[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===n[1]||i[0]===n[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),e}();t.Util=S;var C=[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],A=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var r=new Blob([t],{type:n});return URL.createObjectURL(r)}for(var a="data:".concat(n,";base64,"),i=0,o=t.length;i>4,d=i+1>6:64,f=i+2>2]+e[u]+e[d]+e[f]}return a}}();t.createObjectURL=A},function(e,t,n){},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(4),_font_loader=__w_pdfjs_require__(5),_api_compatibility=__w_pdfjs_require__(6),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,n=new PDFDocumentLoadingTask;if("string"===typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==typeof e)throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var r=Object.create(null),a=null,i=null;for(var o in t)if("url"!==o||"undefined"===typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||t[o]instanceof Uint8Array)r[o]=t[o];else{var s=t[o];if("string"===typeof s)r[o]=(0,_util.stringToBytes)(s);else if("object"!==typeof s||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[o]=new Uint8Array(s)}else r[o]=new Uint8Array(s)}else i=t[o];else a=t[o];else r[o]=new URL(t[o],window.location).href;r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.pdfBug=!0===r.pdfBug;var l=Object.values(_util.NativeImageDecoding);if(void 0!==r.nativeImageDecoderSupport&&l.includes(r.nativeImageDecoderSupport)||(r.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util.NativeImageDecoding.DECODE),Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!==typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!==typeof r.disableFontFace&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!==typeof r.disableRange&&(r.disableRange=!1),"boolean"!==typeof r.disableStream&&(r.disableStream=!1),"boolean"!==typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),"boolean"!==typeof r.disableCreateObjectURL&&(r.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1),(0,_util.setVerbosityLevel)(r.verbosity),!i){var c={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=c.port?PDFWorker.fromPort(c):new PDFWorker(c),n._worker=i}var u=n.docId;return i.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");return _fetchDocument(i,r,a,u).then((function(e){if(n.destroyed)throw new Error("Loading aborted");var t;a?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},a):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream}));var o=new _message_handler.MessageHandler(u,e,i.port);o.postMessageTransfers=i.postMessageTransfers;var s=new WorkerTransport(o,n,t,r);n._transport=s,o.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(e,t,n,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.4.456",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}var PDFDocumentLoadingTask=function(){var e=0;return function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}},{key:"then",value:function(e,t){throw new Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.")}}]),t}()}(),PDFDataRangeTransport=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e,t)}catch(a){r.e(a)}finally{r.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then((function(){var r,a=_createForOfIteratorHelper(n._progressListeners);try{for(a.s();!(r=a.n()).done;)(0,r.value)(e,t)}catch(i){a.e(i)}finally{a.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e)}catch(a){r.e(a)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(r){n.e(r)}finally{n.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,n){_classCallCheck(this,e),this._pdfInfo=t,this._transport=n}return _createClass(e,[{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=n,this._transport=r,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,r=void 0===n?this.rotate:n,a=e.offsetX,i=void 0===a?0:a,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;if(arguments.length>1||"number"===typeof arguments[0])throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:r,offsetX:i,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,t=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,t),this.annotationsIntent=t),this.annotationsPromise}},{key:"render",value:function(e){var t=this,n=e.canvasContext,r=e.viewport,a=e.intent,i=void 0===a?"display":a,o=e.enableWebGL,s=void 0!==o&&o,l=e.renderInteractiveForms,c=void 0!==l&&l,u=e.transform,d=void 0===u?null:u,f=e.imageLayer,h=void 0===f?null:f,p=e.canvasFactory,m=void 0===p?null:p,g=e.background,v=void 0===g?null:g;this._stats&&this._stats.time("Overall");var y="print"===i?"print":"display";this.pendingCleanup=!1,this.intentStates[y]||(this.intentStates[y]=Object.create(null));var b=this.intentStates[y];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var w=m||new _display_utils.DOMCanvasFactory,x=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:y,renderInteractiveForms:!0===c}));var k=function(e){var n=b.renderTasks.indexOf(S);n>=0&&b.renderTasks.splice(n,1),(t.cleanupAfterRender||"print"===y)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(S.capability.reject(e),t._abortOperatorList({intentState:b,reason:e})):S.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},S=new InternalRenderTask({callback:k,params:{canvasContext:n,viewport:r,transform:d,imageLayer:h,background:v},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:w,webGLContext:x,useRequestAnimationFrame:"print"!==y,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(S);var C=S.task;return b.displayReadyCapability.promise.then((function(e){t.pendingCleanup?k():(t._stats&&t._stats.time("Rendering"),S.initializeGraphics(e),S.operatorListChanged())})).catch(k),C}},{key:"getOperatorList",value:function(){var e="oplist";this.intentStates[e]||(this.intentStates[e]=Object.create(null));var t,n=this.intentStates[e];return n.opListReadCapability||((t={}).operatorListChanged=function(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(t);e>=0&&n.renderTasks.splice(e,1)}},n.opListReadCapability=(0,_util.createPromiseCapability)(),n.renderTasks=[],n.renderTasks.push(t),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:e})),n.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,n=void 0!==t&&t,r=e.disableCombineTextItems,a=void 0!==r&&r;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==a},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,n){var r=t.getReader(),a={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){var r,i=n.value;n.done?e(a):(Object.assign(a.styles,i.styles),(r=a.items).push.apply(r,_toConsumableArray(i.items)),t())}),n)}()}))}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach((function(n){var r=e.intentStates[n];e._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==n&&r.renderTasks.forEach((function(e){var n=e.capability.promise.catch((function(){}));t.push(n),e.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(t){var n=e.intentStates[t];return 0!==n.renderTasks.length||!n.operatorList.lastChunk})))&&(Object.keys(this.intentStates).forEach((function(t){delete e.intentStates[t]})),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var n=this.intentStates[t];n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var n=0,r=e.length;n0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var n=this;if(this._defer){var r=new WeakMap,a={data:function e(n){if("object"!==typeof n||null===n)return n;if(r.has(n))return r.get(n);var a,i;if((a=n.buffer)&&(0,_util.isArrayBuffer)(a))return i=t&&t.includes(a)?new n.constructor(a,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,i),i;for(var o in i=Array.isArray(n)?[]:{},r.set(n,i),n){for(var s=void 0,l=n;!(s=Object.getOwnPropertyDescriptor(l,o));)l=Object.getPrototypeOf(l);if("undefined"!==typeof s.value)if("function"!==typeof s.value)i[o]=e(s.value);else if(n.hasOwnProperty&&n.hasOwnProperty(o))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(n[o]))}return i}(e)};this._deferred.then((function(){n._listeners.forEach((function(e){e.call(n,a)}))}))}else this._listeners.forEach((function(t){t.call(n,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref8=_asyncToGenerator(_regeneratorRuntime.mark((function _callee(){var mainWorkerMessageHandler,worker;return _regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref8.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=void 0===n?null:n,a=t.port,i=void 0===a?null:a,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),i&&pdfWorkerPorts.has(i))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return pdfWorkerPorts.set(i,this),void this._initializeFromPort(i);this._initialize()}return _createClass(e,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var n=new Worker(t),r=new _message_handler.MessageHandler("main","worker",n),a=function(){n.removeEventListener("error",i),r.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||a()};n.addEventListener("error",i),r.on("test",(function(t){n.removeEventListener("error",i),e.destroyed?a():t?(e._messageHandler=r,e._port=n,e._webWorker=n,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),r.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(t){if(n.removeEventListener("error",i),e.destroyed)a();else try{o()}catch(r){e._setupFakeWorker()}}));var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{r.send("test",t,[t.buffer])}catch(n){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,r.send("test",t)}};return void o()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var r="fake"+nextFakeWorkerId++,a=new _message_handler.MessageHandler(r+"_worker",r,n);t.setup(a,n);var i=new _message_handler.MessageHandler(r,r+"_worker",n);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,n,r,a){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=a,this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,n=this.loadingTask;t.on("GetReader",(function(t,n){(0,_util.assert)(e._networkStream),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},n.onPull=function(){e._fullReader.read().then((function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),n.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){n.error(e)}))},n.onCancel=function(t){e._fullReader.cancel(t)}})),t.on("ReaderHeadersReady",(function(t){var r=(0,_util.createPromiseCapability)(),a=e._fullReader;return a.headersReady.then((function(){a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&n.onProgress&&n.onProgress(e._lastProgress),a.onProgress=function(e){n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),r.reject),r.promise})),t.on("GetRangeReader",(function(t,n){(0,_util.assert)(e._networkStream);var r=e._networkStream.getRangeReader(t.begin,t.end);r?(n.onPull=function(){r.read().then((function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),n.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){n.error(e)}))},n.onCancel=function(e){r.cancel(e)}):n.close()})),t.on("GetDoc",(function(t){var r=t.pdfInfo;e._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}n._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword)try{n.onPassword((function(t){e._passwordCapability.resolve({password:t})}),t.code)}catch(r){e._passwordCapability.reject(r)}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){n.onProgress&&n.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){e.destroyed||e.pageCache[t.pageIndex]._startRenderPage(t.transparency,t.intent)})),t.on("commonobj",(function(n){if(!e.destroyed){var r=_slicedToArray(n,3),a=r[0],i=r[1],o=r[2];if(!e.commonObjs.has(a))switch(i){case"Font":var s=e._params;if("error"in o){var l=o.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(a,l);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var u=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(u).then((function(){e.commonObjs.resolve(a,u)}),(function(n){t.sendWithPromise("FontFallback",{id:a}).finally((function(){e.commonObjs.resolve(a,u)}))}));break;case"FontPath":case"FontType3Res":e.commonObjs.resolve(a,o);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),t.on("obj",(function(t){if(!e.destroyed){var n=_slicedToArray(t,4),r=n[0],a=n[1],i=n[2],o=n[3],s=e.pageCache[a];if(!s.objs.has(r))switch(i){case"JpegStream":return new Promise((function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=function(){t(new Error("Error during JPEG image loading")),(0,_display_utils.releaseImageResources)(n)},n.src=o})).then((function(e){s.objs.resolve(r,e)}));case"Image":s.objs.resolve(r,o),o&&"data"in o&&o.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){e.destroyed||n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("JpegDecode",(function(t){if(e.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"===typeof document)return Promise.reject(new Error('"document" is not defined.'));var n=_slicedToArray(t,2),r=n[0],a=n[1];return 3!==a&&1!==a?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise((function(e,t){var n=new Image;n.onload=function(){var t=n.width,r=n.height,i=t*r,o=4*i,s=new Uint8ClampedArray(i*a),l=document.createElement("canvas");l.width=t,l.height=r;var c=l.getContext("2d");c.drawImage(n,0,0);var u=c.getImageData(0,0,t,r).data;if(3===a)for(var d=0,f=0;dthis._numPages)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,e,t,t._params.pdfBug);return t.pageCache[n]=r,r}));return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var t=0,n=e.pageCache.length;t1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var n=this._objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}},{key:"clear",value:function(){for(var e in this._objs){var t=this._objs[e].data;"undefined"!==typeof Image&&t instanceof Image&&(0,_display_utils.releaseImageResources)(t)}this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(e,t){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var n=e.callback,r=e.params,a=e.objs,i=e.commonObjs,o=e.operatorList,s=e.pageIndex,l=e.canvasFactory,c=e.webGLContext,u=e.useRequestAnimationFrame,d=void 0!==u&&u,f=e.pdfBug,h=void 0!==f&&f;_classCallCheck(this,t),this.callback=n,this.params=r,this.objs=a,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=c,this._pdfBug=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var n=this.params,r=n.canvasContext,a=n.viewport,i=n.transform,o=n.imageLayer,s=n.background;this.gfx=new _canvas.CanvasGraphics(r,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:a,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e.cancel.bind(e))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}();return t}(),version="2.4.456";exports.version=version;var build="228a591c";exports.build=build},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,i=t.target,o=t.rel,s=t.enabled,l=void 0===s||s;(0,r.assert)(n&&"string"===typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var c=(0,r.removeNullCharacters)(n);l?e.href=e.title=c:(e.href="",e.title="Disabled: ".concat(c),e.onclick=function(){return!1});var u="";switch(i){case d.NONE:break;case d.SELF:u="_self";break;case d.BLANK:u="_blank";break;case d.PARENT:u="_parent";break;case d.TOP:u="_top"}e.target=u,e.rel="string"===typeof o?o:a},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.isFetchSupported=p,t.isValidFetchUrl=m,t.loadScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)}))},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.releaseImageResources=function(e){(0,r.assert)(e instanceof Image,"Invalid `img` parameter.");var t=e.src;"string"===typeof t&&t.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(t),e.removeAttribute("src")},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r=n(1),a="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=a;var i="http://www.w3.org/2000/svg",o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=document.createElement("canvas"),r=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:r}}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.DOMCanvasFactory=o;var s=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n,a=t.isCompressed,i=void 0!==a&&a;_classCallCheck(this,e),this.baseUrl=r,this.isCompressed=i}return _createClass(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(t){var n,a,i,o=this;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(a=this.baseUrl+n+(this.isCompressed?".bcmap":""),i=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE,!p()||!m(a,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(a).then(function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(t){var n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!o.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,n=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=r.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,n=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:n,compressionType:i});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(a))})));case 9:return e.abrupt("return",new Promise((function(e,t){var n=new XMLHttpRequest;n.open("GET",a,!0),o.isCompressed&&(n.responseType="arraybuffer"),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){var a;if((200===n.status||0===n.status)&&(o.isCompressed&&n.response?a=new Uint8Array(n.response):!o.isCompressed&&n.responseText&&(a=(0,r.stringToBytes)(n.responseText)),a))return void e({cMapData:a,compressionType:i});t(new Error(n.statusText))}},n.send(null)})).catch((function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(a))})));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=s;var l=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e,t){(0,r.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(i,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}},{key:"createElement",value:function(e){return(0,r.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(i,e)}}]),e}();t.DOMSVGFactory=l;var c=function(){function e(t){var n=t.viewBox,r=t.scale,a=t.rotation,i=t.offsetX,o=void 0===i?0:i,s=t.offsetY,l=void 0===s?0:s,c=t.dontFlip,u=void 0!==c&&c;_classCallCheck(this,e),this.viewBox=n,this.scale=r,this.rotation=a,this.offsetX=o,this.offsetY=l;var d,f,h,p,m,g,v,y,b=(n[2]+n[0])/2,w=(n[3]+n[1])/2;switch(a=(a%=360)<0?a+360:a){case 180:d=-1,f=0,h=0,p=1;break;case 90:d=0,f=1,h=1,p=0;break;case 270:d=0,f=-1,h=-1,p=0;break;default:d=1,f=0,h=0,p=-1}u&&(h=-h,p=-p),0===d?(m=Math.abs(w-n[1])*r+o,g=Math.abs(b-n[0])*r+l,v=Math.abs(n[3]-n[1])*r,y=Math.abs(n[2]-n[0])*r):(m=Math.abs(b-n[0])*r+o,g=Math.abs(w-n[1])*r+l,v=Math.abs(n[2]-n[0])*r,y=Math.abs(n[3]-n[1])*r),this.transform=[d*r,f*r,h*r,p*r,m-d*r*b-h*r*w,g-f*r*b-p*r*w],this.width=v,this.height=y}return _createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,a=t.rotation,i=void 0===a?this.rotation:a,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:i,offsetX:s,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return r.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=r.Util.applyTransform([e[0],e[1]],this.transform),n=r.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=c;var u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).type=r,a}return _createClass(n)}(r.BaseException);t.RenderingCancelledException=u;var d={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=d;var f,h=function(){function e(){_classCallCheck(this,e),this.started=Object.create(null),this.times=[]}return _createClass(e,[{key:"time",value:function(e){e in this.started&&(0,r.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,r.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],n=0,r=_createForOfIteratorHelper(this.times);try{for(r.s();!(e=r.n()).done;){var a=e.value.name;a.length>n&&(n=a.length)}}catch(c){r.e(c)}finally{r.f()}var i,o=_createForOfIteratorHelper(this.times);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=s.end-s.start;t.push("".concat(s.name.padEnd(n)," ").concat(l,"ms\n"))}}catch(c){o.e(c)}finally{o.f()}return t.join("")}}]),e}();function p(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function m(e,t){try{var n=(t?new URL(e,t):new URL(e)).protocol;return"http:"===n||"https:"===n}catch(r){return!1}}t.StatTimer=h;var g=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,r.isString)(e))return null;f||(f=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=f.exec(e);if(!t)return null;var n=parseInt(t[1],10),a=parseInt(t[2],10);a=a>=1&&a<=12?a-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(o+=u,s+=d):"+"===c&&(o-=u,s-=d),new Date(Date.UTC(n,a,i,o,s,l))}}]),e}();t.PDFDateString=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r,a=n(1),i=function(){function e(t){var n=t.docId,r=t.onUnsupportedFeature;_classCallCheck(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this.nativeFontFaces=[],this.styleElement=null}return _createClass(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(e){document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(t){var n,r,i=this;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(n=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(n),e.prev=7,e.next=10,n.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.font}),(0,a.warn)("Failed to load font '".concat(n.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(r=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var n=i._queueLoadingCallback(e);i._prepareFontLoadEvent([r],[t],n)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_queueLoadingCallback",value:function(e){(0,a.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!==typeof document&&!!document.fonts;return(0,a.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,a.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,a.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,n){(0,a.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),e}();t.FontLoader=r,t.FontLoader=r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return _createClass(n,[{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"===typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,a.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(e){var t=this.loadingContext,n={id:"pdfjs-font-loading-".concat(t.nextRequestId++),done:!1,complete:function(){for((0,a.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}},{key:"_loadTestFont",get:function(){return(0,a.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(e,t,n){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}var o,s,l=document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),u=0,d="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,h=1482184792,p=r(f=i(f,976,d.length,d),16);for(o=0,s=d.length-3;o30)return(0,a.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(function(){document.body.removeChild(y),n.complete()}))}}]),n}(i);var o=function(){function e(t,n){var r=n.isEvalSupported,a=void 0===r||r,i=n.disableFontFace,o=void 0!==i&&i,s=n.ignoreErrors,l=void 0!==s&&s,c=n.onUnsupportedFeature,u=void 0===c?null:c,d=n.fontRegistry,f=void 0===d?null:d;for(var h in _classCallCheck(this,e),this.compiledGlyphs=Object.create(null),t)this[h]=t[h];this.isEvalSupported=!1!==a,this.disableFontFace=!0===o,this.ignoreErrors=!0===l,this._onUnsupportedFeature=u,this.fontRegistry=f}return _createClass(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,a.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n,r;try{n=e.get(this.loadedName+"_path_"+t)}catch(c){if(!this.ignoreErrors)throw c;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.font}),(0,a.warn)('getPathGenerator - ignoring character: "'.concat(c,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&a.IsEvalSupportedCached.value){for(var i,o="",s=0,l=n.length;s>2),w=b.length,x=u+7>>3,k=4294967295,S=r.IsLittleEndianCached.value?4278190080:255;for(a=0;ax?u:8*C-7,O=-8&_,P=0,E=0;A>=1}for(;n=f&&(l=u*(o=d)),n=0,i=l;i--;)v[n++]=g[m++],v[n++]=g[m++],v[n++]=g[m++],v[n++]=255;e.putImageData(p,0,a*s)}}}}function n(e,t){for(var n=t.height,r=t.width,a=n%s,i=(n-a)/s,o=0===a?i:i+1,l=e.createImageData(r,s),c=0,u=t.data,d=l.data,f=0;f>=1}e.putImageData(l,0,f*s)}}function d(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,a=n.length;r>8,e[i-2]=e[i-2]*o+n*s>>8,e[i-1]=e[i-1]*o+r*s>>8}}}function p(e,t,n){for(var r=e.length,a=3;a>8]>>8:t[a]*i>>16}}function g(e,t,n,r){var a=t.canvas,i=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var o=t.backdrop||null;if(!t.transferMap&&r.isEnabled){var s=r.composeSMask({layer:n.canvas,mask:a,properties:{subtype:t.subtype,backdrop:o}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}!function(e,t,n,r,a,i,o){var s,l=!!i,c=l?i[0]:0,u=l?i[1]:0,d=l?i[2]:0;s="Luminosity"===a?m:p;for(var f=Math.min(r,Math.ceil(1048576/n)),g=0;g10&&"function"===typeof n,d=u?Date.now()+15:0,f=0,h=this.commonObjs,p=this.objs;;){if(void 0!==a&&s===a.nextBreakPoint)return a.breakIt(s,n),s;if((c=o[s])!==r.OPS.dependency)this[c].apply(this,i[s]);else{var m,g=_createForOfIteratorHelper(i[s]);try{for(g.s();!(m=g.n()).done;){var v=m.value,y=v.startsWith("g_")?h:p;if(!y.has(v))return y.get(v,n),s}}catch(b){g.e(b)}finally{g.f()}}if(++s===l)return s;if(u&&++f>10){if(Date.now()>d)return n(),s;f=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=v[e]},setLineJoin:function(e){this.ctx.lineJoin=y[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,n=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=i?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,r="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(r,t,n,!0),i=this.ctx,o=i.mozCurrentTransform;this.ctx.save();var s=a.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,d(i,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),d(e,this.ctx),this.current.resumeSMaskCtx=e;var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),d(e,this.ctx);var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,n,r,a,i){this.ctx.transform(e,t,n,r,a,i),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,a=this.current,i=a.x,o=a.y,s=0,l=0,c=e.length;s100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font="".concat(s," ").concat(o," ").concat(c,"px ").concat(l)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,r,a,i){this.current.textMatrix=[e,t,n,r,a,i],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,n,a){var i,o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(c&r.TextRenderingMode.ADD_TO_PATH_FLAG),h=s.patternFill&&l.data;(l.disableFontFace||f||h)&&(i=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||h?(o.save(),o.translate(t,n),o.beginPath(),i(o,u),a&&o.setTransform.apply(o,a),d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||o.fill(),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||o.fillText(e,t,n),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,n)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:t,y:n,fontSize:u,addToPath:i})},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,a=3;a0&&t[a]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var i,s=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,f=t.textHScale*d,h=e.length,p=n.vertical,m=p?1:-1,g=n.defaultVMetrics,v=a*t.fontMatrix[0],y=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(s.save(),t.patternFill){s.save();var b=t.fillColor.getPattern(s,this);i=s.mozCurrentTransform,s.restore(),s.fillStyle=b}s.transform.apply(s,t.textMatrix),s.translate(t.x,t.y+t.textRise),d>0?s.scale(f,-1):s.scale(f,1);var w=t.lineWidth,x=t.textMatrixScale;if(0===x||0===w){var k=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;k!==r.TextRenderingMode.STROKE&&k!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,w=this.getSinglePixelWidth()*o)}else w/=x;1!==l&&(s.scale(l,l),w/=l),s.lineWidth=w;var S,C=0;for(S=0;S0){var F=1e3*s.measureText(D).width/a*l;if(Li&&(f=c/i,c=i),u>i&&(h=u/i,u=i);var p="groupAt"+this.groupLevel;e.smask&&(p+="_smask_"+this.smaskCounter++%2);var m=this.cachedCanvases.getCanvas(p,c,u,!0),g=m.context;g.scale(1/f,1/h),g.translate(-s,-l),g.transform.apply(g,n),e.smask?this.smaskStack.push({canvas:m.canvas,context:g,offsetX:s,offsetY:l,scaleX:f,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,l),t.scale(f,h)),d(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,n){if(this.save(),f(this.ctx),this.current=new u,Array.isArray(e)&&4===e.length){var r=e[2]-e[0],a=e[3]-e[1];this.ctx.rect(e[0],e[1],r,a),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,n){var a=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(a){this.save();var i=this.ctx;if(i.scale(1/t,-1/n),i.drawImage(a,0,0,a.width,a.height,0,-n,t,n),this.imageLayer){var o=i.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:n/o[3]})}this.restore()}else(0,r.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,a=e.height,i=this.current.fillColor,o=this.current.patternFill,s=this.processingType3;if(s&&void 0===s.compiled&&(s.compiled=r<=1e3&&a<=1e3?function(e){var t,n,r,a,i=e.width,o=e.height,s=i+1,l=new Uint8Array(s*(o+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=i+7&-8,d=e.data,f=new Uint8Array(u*o),h=0;for(t=0,a=d.length;t0;)f[h++]=m&p?0:255,p>>=1;var g=0;for(0!==f[h=0]&&(l[0]=1,++g),n=1;n>2)+(f[h+1]?4:0)+(f[h-u+1]?8:0)]&&(l[r+n]=c[v],++g),h++;if(f[h-u]!==f[h]&&(l[r+n]=f[h]?2:4,++g),g>1e3)return null}for(r=t*s,0!==f[h=u*(o-1)]&&(l[r]=8,++g),n=1;n1e3)return null;var y=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(t=0;g&&t<=o;t++){for(var w=t*s,x=w+i;w>4,l[w]&=C>>2|C<<2),S.push(w%s),S.push(w/s|0),l[w]||--g}while(A!==w);b.push(S),--t}}return function(e){e.save(),e.scale(1/i,-1/o),e.translate(0,-o),e.beginPath();for(var t=0,n=b.length;t2&&m>1||h>2&&g>1;){var y=m,b=g;u>2&&m>1&&(u/=m/(y=Math.ceil(m/2))),h>2&&g>1&&(h/=g/(b=Math.ceil(g/2))),(p=(o=this.cachedCanvases.getCanvas(v,y,b)).context).clearRect(0,0,y,b),p.drawImage(i,0,0,m,g,0,0,y,b),i=o.canvas,m=y,g=b,v="prescale1"===v?"prescale2":"prescale1"}if(a.drawImage(i,0,0,m,g,0,-r,n,r),this.imageLayer){var w=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:w[0],top:w[1],width:n/s[0],height:r/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,n){var r=this.ctx,a=e.width,i=e.height,o=this.cachedCanvases.getCanvas("inlineImage",a,i);t(o.context,e);for(var s=0,l=n.length;sc[r+1]&&(l=n,n=r,r=l,l=i,i=o,o=l),c[r+1]>c[a+1]&&(l=r,r=a,a=l,l=o,o=s,s=l),c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=i,i=o,o=l);var h=(c[n]+t.offsetX)*t.scaleX,p=(c[n+1]+t.offsetY)*t.scaleY,m=(c[r]+t.offsetX)*t.scaleX,g=(c[r+1]+t.offsetY)*t.scaleY,v=(c[a]+t.offsetX)*t.scaleX,y=(c[a+1]+t.offsetY)*t.scaleY;if(!(p>=y))for(var b,w,x,k,S,C,A,_,O=u[i],P=u[i+1],E=u[i+2],T=u[o],j=u[o+1],N=u[o+2],M=u[s],I=u[s+1],D=u[s+2],R=Math.round(p),L=Math.round(y),F=R;F<=L;F++){if(Fy?1:g===y?0:(g-F)/(g-y)),w=T-(T-M)*U,x=j-(j-I)*U,k=N-(N-D)*U}var $=void 0;S=h-(h-v)*($=Fy?1:(p-F)/(p-y)),C=O-(O-M)*$,A=P-(P-I)*$,_=E-(E-D)*$;for(var z=Math.round(Math.min(b,S)),q=Math.round(Math.max(b,S)),G=f*F+4*z,H=z;H<=q;H++){var W=(b-H)/(b-S);W<0?W=0:W>1&&(W=1),d[G++]=w-(w-C)*W|0,d[G++]=x-(x-A)*W|0,d[G++]=k-(k-_)*W|0,d[G++]=255}}}function t(t,n,r){var a,i,o=n.coords,s=n.colors;switch(n.type){case"lattice":var l=n.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(a=0;a=r?a=r:n=a/e,{scale:n,size:a}},clipBbox:function(e,t,n,r,a,i){if(Array.isArray(t)&&4===t.length){var o=a-n,s=i-r;e.ctx.rect(n,r,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(n,a,i){var o=n.ctx,s=n.current;switch(a){case e:var l=this.ctx;o.fillStyle=l.fillStyle,o.strokeStyle=l.strokeStyle,s.fillColor=l.fillStyle,s.strokeColor=l.strokeStyle;break;case t:var c=r.Util.makeCssRgb(i[0],i[1],i[2]);o.fillStyle=c,o.strokeStyle=c,s.fillColor=c,s.strokeColor=c;break;default:throw new r.FormatError("Unsupported paint type: ".concat(a))}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var n=this.createPatternCanvas(t);return e.createPattern(n,"repeat")}},n}();t.TilingPattern=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1),a={UNKNOWN:0,DATA:1,ERROR:2},i={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!==typeof e||null===e)return e;switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}var s=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.sourceName=t,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var n=t.callbackId,s=i.callbackCapabilities[n];if(!s)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],t.callback===a.DATA)s.resolve(t.data);else{if(t.callback!==a.ERROR)throw new Error("Unexpected callback case");s.reject(o(t.reason))}}else{var l=i.actionHandler[t.action];if(!l)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var c=i.sourceName,u=t.sourceName;new Promise((function(e){e(l(t.data))})).then((function(e){r.postMessage({sourceName:c,targetName:u,callback:a.DATA,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:c,targetName:u,callback:a.ERROR,callbackId:t.callbackId,reason:o(e)})}))}else t.streamId?i._createStreamSink(t):l(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}return _createClass(e,[{key:"on",value:function(e,t){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}},{key:"send",value:function(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}},{key:"sendWithPromise",value:function(e,t,n){var a=this.callbackId++,i=(0,r.createPromiseCapability)();this.callbackCapabilities[a]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},n)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,n,a){var s=this,l=this.streamId++,c=this.sourceName,u=this.targetName,d=this.comObj;return new ReadableStream({start:function(n){var i=(0,r.createPromiseCapability)();return s.streamControllers[l]={controller:n,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},s._postMessage({sourceName:c,targetName:u,action:e,streamId:l,data:t,desiredSize:n.desiredSize},a),i.promise},pull:function(e){var t=(0,r.createPromiseCapability)();return s.streamControllers[l].pullCall=t,d.postMessage({sourceName:c,targetName:u,stream:i.PULL,streamId:l,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,r.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,r.createPromiseCapability)();return s.streamControllers[l].cancelCall=t,s.streamControllers[l].isClosed=!0,d.postMessage({sourceName:c,targetName:u,stream:i.CANCEL,streamId:l,reason:o(e)}),t.promise}},n)}},{key:"_createStreamSink",value:function(e){var t=this,n=this.actionHandler[e.action],a=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:i.ENQUEUE,streamId:a,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.CLOSE,streamId:a}),delete t.streamSinks[a])},error:function(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.ERROR,streamId:a,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[a]=u,new Promise((function(t){t(n(e.data,u))})).then((function(){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,success:!0})}),(function(e){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,reason:o(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,a=e.sourceName,s=this.comObj;switch(e.stream){case i.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case i.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case i.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:n,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var l=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(l&&l())})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:i.PULL_COMPLETE,streamId:t,reason:o(e)})}));break;case i.ENQUEUE:if((0,r.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case i.CLOSE:if((0,r.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case i.ERROR:(0,r.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL:if(!this.streamSinks[t])break;var c=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(c&&c(o(e.reason)))})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,reason:o(e)})})),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(t){return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),a=n(13),i=function(){function e(t){_classCallCheck(this,e),(0,r.assert)("string"===typeof t,"Metadata: input is not a string"),t=this._repair(t);var n=(new a.SimpleXMLParser).parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}return _createClass(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var n=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),r="",a=0,i=n.length;a=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+r}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes())for(var r=t.childNodes,a=0,i=r.length;a";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(n)}))}},{key:"_parseContent",value:function(e,t){var n=[],r=t;function i(){for(;r"!==e[r]&&"/"!==e[r];)++r;var o=e.substring(t,r);for(i();r"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){i();for(var s,l="";r"!==e[n]&&"/"!==e[n];)++n;var r=e.substring(t,n);!function(){for(;n"!==e[n+1]);)++n;return{name:r,value:e.substring(i,n),parsed:n-t}}},{key:"parseXml",value:function(e){for(var t=0;t",n))<0)return void this.onError(r.UnterminatedElement);this.onEndElement(e.substring(n,a)),n=a+1;break;case"?":++n;var i=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+i.parsed,n+i.parsed+2))return void this.onError(r.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((a=e.indexOf("--\x3e",n+3))<0)return void this.onError(r.UnterminatedComment);this.onComment(e.substring(n+3,a)),n=a+3}else if("[CDATA["===e.substring(n+1,n+8)){if((a=e.indexOf("]]>",n+8))<0)return void this.onError(r.UnterminatedCdat);this.onCdata(e.substring(n+8,a)),n=a+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(r.MalformedElement);var o=e.indexOf("[",n+8),s=!1;if((a=e.indexOf(">",n+8))<0)return void this.onError(r.UnterminatedDoctypeDeclaration);if(o>0&&a>o){if((a=e.indexOf("]>",n+8))<0)return void this.onError(r.UnterminatedDoctypeDeclaration);s=!0}var l=e.substring(n+8,a+(s?1:0));this.onDoctype(l),n=a+(s?2:1)}break;default:var c=this._parseContent(e,n);if(null===c)return void this.onError(r.MalformedElement);var u=!1;if("/>"===e.substring(n+c.parsed,n+c.parsed+2))u=!0;else if(">"!==e.substring(n+c.parsed,n+c.parsed+1))return void this.onError(r.UnterminatedElement);this.onBeginElement(c.name,c.attributes,u),n+=c.parsed+(u?2:1)}}else{for(;n0}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this))._currentFragment=null,e._stack=null,e._errorCode=r.NoError,e}return _createClass(n,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=r.NoError,this.parseXml(e),this._errorCode===r.NoError){var t=_slicedToArray(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onResolveEntity",value:function(e){return"apos"===e?"'":_get(_getPrototypeOf(n.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!function(e){for(var t=0,n=e.length;t0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){a._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){a._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){a._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){a._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return _createClass(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,r.assert)(n)}}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,r.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new i(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new o(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}}]),e}();t.PDFDataTransportStream=a;var i=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this._stream=t,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var a,i=_createForOfIteratorHelper(this._queuedChunks);try{for(i.s();!(a=i.n()).done;){var o=a.value;this._loaded+=o.byteLength}}catch(s){i.e(s)}finally{i.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return _createClass(e,[{key:"_enqueue",value:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,r.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),e}(),o=function(){function e(t,n,r){_classCallCheck(this,e),this._stream=t,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return _createClass(e,[{key:"_enqueue",value:function(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,r.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=n(1),a=function(){function e(t){var n=t.enable,r=void 0!==n&&n;_classCallCheck(this,e),this._enabled=!0===r}return _createClass(e,[{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=i.tryInitGL()),(0,r.shadow)(this,"isEnabled",e)}},{key:"composeSMask",value:function(e){var t=e.layer,n=e.mask,r=e.properties;return i.composeSMask(t,n,r)}},{key:"drawFigures",value:function(e){var t=e.width,n=e.height,r=e.backgroundColor,a=e.figures,o=e.context;return i.drawFigures(t,n,r,a,o)}},{key:"clear",value:function(){i.cleanup()}}]),e}();t.WebGLContext=a;var i=function(){function e(e,t,n){var r=e.createShader(n);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var a=e.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+a)}return r}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function r(e,t){for(var n=e.createProgram(),r=0,a=t.length;r1&&(u.vertical?s.canvasWidth=n.height*e._viewport.scale:s.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(o,s),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var m=1,g=0;0!==c&&(m=Math.cos(c),g=Math.sin(c));var v,y,b=(u.vertical?n.height:n.width)*e._viewport.scale,w=h;0!==c?(v=[m,g,-g,m,d,f],y=r.Util.getAxialAlignedBoundingBox([0,0,b,w],v)):y=[d,f,d+b,f+w],e._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[b,w],m:v})}}function a(t){if(!t._canceled){var n=t._textDivs,r=t._capability,a=n.length;if(a>e)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var i=0;i0&&(r=r?Math.min(i,r):i)}return r},v=1+Math.min(Math.abs(f),Math.abs(h));l.paddingLeft=g(m,32,16)/v,l.paddingTop=g(m,48,16)/v,l.paddingRight=g(m,0,16)/v,l.paddingBottom=g(m,16,16)/v,e._textDivProperties.set(s,l)}else l.paddingLeft=t[i].left-a[i].left,l.paddingTop=t[i].top-a[i].top,l.paddingRight=a[i].right-t[i].right,l.paddingBottom=a[i].bottom-t[i].bottom,e._textDivProperties.set(s,l)}}function o(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach((function(e){for(var t=0;t=0&&n[i].start>=e.y2;)i--;var o,s,l=-1/0;for(o=t;o<=i;o++){var c;(c=(a=(r=n[o]).boundary).x2>e.x1?a.index>e.index?a.x1New:e.x1:void 0===a.x2New?(a.x2+e.x1)/2:a.x2New)>l&&(l=c)}for(e.x1New=l,o=t;o<=i;o++)void 0===(a=(r=n[o]).boundary).x2New?a.x2>e.x1?a.index>e.index&&(a.x2New=a.x2):a.x2New=l:a.x2New>l&&(a.x2New=Math.max(l,a.x2));var u=[],d=null;for(o=t;o<=i;o++){var f=(a=(r=n[o]).boundary).x2>e.x2?a:e;d===f?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:f}),d=f)}for(n[t].start=0&&n[s].start>=a.y1;s--)h=n[s].boundary===a;for(s=i+1;!h&&s0&&(t.scale=t.canvasWidth/o,n="scaleX(".concat(t.scale,")"))}0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,n=(0,r.createPromiseCapability)(),i=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),n.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function e(){t._reader.read().then((function(r){var a=r.value;r.done?n.resolve():(Object.assign(i,a.styles),t._processItems(a.items,i),e())}),n.reject)}()}n.promise.then((function(){i=null,e?t._renderTimer=setTimeout((function(){a(t),t._renderTimer=null}),e):a(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(i(this),this._bounds=null);for(var t=[],n=[],r=0,a=this._textDivs.length;r0?(n.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):n.push(0),s.paddingRight>0?n.push("".concat(s.paddingRight/s.scale,"px")):n.push(0),s.paddingBottom>0?n.push("".concat(s.paddingBottom,"px")):n.push(0),s.paddingLeft>0?(n.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):n.push(0),o.style.padding=n.join(" "),t.length&&(o.style.transform=t.join(" "))):(o.style.padding=null,o.style.transform=s.originalTransform))}}}},function(e){var t=new s({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(4),a=n(1),i=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case a.AnnotationType.LINK:return new s(e);case a.AnnotationType.TEXT:return new l(e);case a.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new u(e);case"Btn":return e.data.radioButton?new f(e):e.data.checkBox?new d(e):new h(e);case"Ch":return new p(e)}return new c(e);case a.AnnotationType.POPUP:return new m(e);case a.AnnotationType.FREETEXT:return new v(e);case a.AnnotationType.LINE:return new y(e);case a.AnnotationType.SQUARE:return new b(e);case a.AnnotationType.CIRCLE:return new w(e);case a.AnnotationType.POLYLINE:return new x(e);case a.AnnotationType.CARET:return new S(e);case a.AnnotationType.INK:return new C(e);case a.AnnotationType.POLYGON:return new k(e);case a.AnnotationType.HIGHLIGHT:return new A(e);case a.AnnotationType.UNDERLINE:return new _(e);case a.AnnotationType.SQUIGGLY:return new O(e);case a.AnnotationType.STRIKEOUT:return new P(e);case a.AnnotationType.STAMP:return new E(e);case a.AnnotationType.FILEATTACHMENT:return new T(e);default:return new o(e)}}}]),e}(),o=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,n&&(this.container=this._createContainer(r))}return _createClass(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,r=this.viewport,i=document.createElement("section"),o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];i.setAttribute("data-annotation-id",t.id);var l=a.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(i.style.transform="matrix(".concat(r.transform.join(","),")"),i.style.transformOrigin="-".concat(l[0],"px -").concat(l[1],"px"),!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==a.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var c=t.borderStyle.horizontalCornerRadius,u=t.borderStyle.verticalCornerRadius;if(c>0||u>0){var d="".concat(c,"px / ").concat(u,"px");i.style.borderRadius=d}switch(t.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}t.color?i.style.borderColor=a.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}return i.style.left="".concat(l[0],"px"),i.style.top="".concat(l[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(s,"px"),i}},{key:"_createPopup",value:function(e,t,n){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var r=new g({container:e,trigger:t,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}).render();r.style.left=e.style.width,e.appendChild(r)}},{key:"render",value:function(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,r)}return _createClass(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,n=document.createElement("a");return e.url?(0,r.addLinkAttributes)(n,{url:e.url,target:e.newWindow?r.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),n}(o),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r)}return _createClass(n,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),n}(o),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"render",value:function(){return this.container}}]),n}(o),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,r)}return _createClass(n,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea")).textContent=this.data.fieldValue:((e=document.createElement("input")).type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){var t=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing="calc(".concat(t,"px - 1ch)")}}else{(e=document.createElement("div")).textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";var n=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(n=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(e,n)}return null!==this.data.textAlignment&&(e.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(e),this.container}},{key:"_setTextStyle",value:function(e,t){var n=e.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",t){var r="normal";t.black?r="900":t.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=t.italic?"italic":"normal";var a=t.loadedName?'"'.concat(t.loadedName,'", '):"",i=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=a+i}}}]),n}(c),d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,e.renderInteractiveForms)}return _createClass(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),n}(c),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,e.renderInteractiveForms)}return _createClass(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),n}(c),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"render",value:function(){var e=_get(_getPrototypeOf(n.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),n}(s),p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,e.renderInteractiveForms)}return _createClass(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t,n=_createForOfIteratorHelper(this.data.options);try{for(n.s();!(t=n.n()).done;){var r=t.value,a=document.createElement("option");a.textContent=r.displayValue,a.value=r.exportValue,this.data.fieldValue.includes(r.displayValue)&&a.setAttribute("selected",!0),e.appendChild(a)}}catch(i){n.e(i)}finally{n.f()}return this.container.appendChild(e),this.container}}]),n}(c),m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!(!e.data.title&&!e.data.contents);return t.call(this,e,r)}return _createClass(n,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),t=this.layer.querySelector(e);if(!t)return this.container;var n=new g({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),r=parseFloat(t.style.left),a=parseFloat(t.style.width);return this.container.style.transformOrigin="-".concat(r+a,"px -").concat(t.style.top),this.container.style.left="".concat(r+a,"px"),this.container.appendChild(n.render()),this.container}}]),n}(o),g=function(){function e(t){_classCallCheck(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return _createClass(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var n=this.color;if(n){var i=.7*(255-n[0])+n[0],o=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];t.style.backgroundColor=a.Util.makeCssRgb(0|i,0|o,0|s)}var l=document.createElement("h1");l.textContent=this.title,t.appendChild(l);var c=r.PDFDateString.toDateObject(this.modificationDate);if(c){var u=document.createElement("span");u.textContent="{{date}}, {{time}}",u.dataset.l10nId="annotation_date_string",u.dataset.l10nArgs=JSON.stringify({date:c.toLocaleDateString(),time:c.toLocaleTimeString()}),t.appendChild(u)}var d=this._formatContents(this.contents);return t.appendChild(d),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),r=0,a=n.length;r0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}]),n}(o),b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",a/2),i.setAttribute("y",a/2),i.setAttribute("width",t-a),i.setAttribute("height",n-a),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,e),this.container}}]),n}(o),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",n/2),i.setAttribute("rx",t/2-a/2),i.setAttribute("ry",n/2-a/2),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,e),this.container}}]),n}(o),x=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;_classCallCheck(this,n);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return(r=t.call(this,e,a,!0)).containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return _createClass(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],a=this.svgFactory.create(n,r),i=[],o=_createForOfIteratorHelper(t.vertices);try{for(o.s();!(e=o.n()).done;){var s=e.value,l=s.x-t.rect[0],c=t.rect[3]-s.y;i.push(l+","+c)}}catch(d){o.e(d)}finally{o.f()}i=i.join(" ");var u=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",i),u.setAttribute("stroke-width",t.borderStyle.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","none"),a.appendChild(u),this.container.append(a),this._createPopup(this.container,u,t),this.container}}]),n}(o),k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return _createClass(n)}(x),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),C=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;_classCallCheck(this,n);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return(r=t.call(this,e,a,!0)).containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return _createClass(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],a=this.svgFactory.create(n,r),i=_createForOfIteratorHelper(t.inkLists);try{for(i.s();!(e=i.n()).done;){var o,s=e.value,l=[],c=_createForOfIteratorHelper(s);try{for(c.s();!(o=c.n()).done;){var u=o.value,d=u.x-t.rect[0],f=t.rect[3]-u.y;l.push("".concat(d,",").concat(f))}}catch(p){c.e(p)}finally{c.f()}l=l.join(" ");var h=this.svgFactory.createElement(this.svgElementName);h.setAttribute("points",l),h.setAttribute("stroke-width",t.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),this._createPopup(this.container,h,t),a.appendChild(h)}}catch(p){i.e(p)}finally{i.f()}return this.container.append(a),this.container}}]),n}(o),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),P=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),E=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){_classCallCheck(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _createClass(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(o),T=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;_classCallCheck(this,n);var o=(i=t.call(this,e,!0)).data.file,s=o.filename,l=o.content;return i.filename=(0,r.getFilenameFromUrl)(s),i.content=l,i.linkService.eventBus&&i.linkService.eventBus.dispatch("fileattachmentannotation",{source:_assertThisInitialized(i),id:(0,a.stringToPDFString)(s),filename:s,content:l}),i}return _createClass(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,a.warn)("Download cannot be started due to unavailable download manager")}}]),n}(o),j=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"render",value:function(e){var t,n=[],o=[],s=_createForOfIteratorHelper(e.annotations);try{for(s.s();!(t=s.n()).done;){var l=t.value;l&&(l.annotationType!==a.AnnotationType.POPUP?n.push(l):o.push(l))}}catch(h){s.e(h)}finally{s.f()}o.length&&n.push.apply(n,o);for(var c=0,u=n;c>1&2147483647:o>>1&2147483647;n[a]=o}function l(e,t,r,a){var i=a,o=t.length;r[i]=o>>24&255,r[i+1]=o>>16&255,r[i+2]=o>>8&255,r[i+3]=255&o,r[i+=4]=255&e.charCodeAt(0),r[i+1]=255&e.charCodeAt(1),r[i+2]=255&e.charCodeAt(2),r[i+3]=255&e.charCodeAt(3),i+=4,r.set(t,i);var s=function(e,t,r){for(var a=-1,i=t;i>>8^n[o]}return-1^a}(r,a+4,i+=t.length);r[i]=s>>24&255,r[i+1]=s>>16&255,r[i+2]=s>>8&255,r[i+3]=255&s}function c(e){var t=e.length,n=65535,r=Math.ceil(t/n),a=new Uint8Array(2+t+5*r+4),i=0;a[i++]=120,a[i++]=156;for(var o=0;t>n;)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(o,o+n),i),i+=n,o+=n,t-=n;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(o),i),i+=e.length-o;var s=function(e,t,n){for(var r=1,a=0,i=t;i>24&255,a[i++]=s>>16&255,a[i++]=s>>8&255,a[i++]=255&s,a}function u(n,a,o,s){var u,d,f,h=n.width,p=n.height,m=n.data;switch(a){case r.ImageKind.GRAYSCALE_1BPP:d=0,u=1,f=h+7>>3;break;case r.ImageKind.RGB_24BPP:d=2,u=8,f=3*h;break;case r.ImageKind.RGBA_32BPP:d=6,u=8,f=4*h;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+f)*p),v=0,y=0,b=0;b>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,u,d,0,0,0]),S=function(e){if(!i.isNodeJS)return c(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var n=__webpack_require__(82258).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(a){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+a)}return c(e)}(g),C=e.length+3*t+k.length+S.length,A=new Uint8Array(C),_=0;return A.set(e,_),l("IHDR",k,A,_+=e.length),l("IDATA",S,A,_+=t+k.length),_+=t+S.length,l("IEND",new Uint8Array(0),A,_),(0,r.createObjectURL)(A,"image/png",o)}return function(e,t,n){return u(e,void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}(),p=function(){function e(){_classCallCheck(this,e),this.fontSizeScale=1,this.fontWeight=c.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=c.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return _createClass(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),m=0,g=0,v=0;t.SVGGraphics=o=function(){function e(t,n,i){for(var o in _classCallCheck(this,e),this.svgFactory=new a.DOMSVGFactory,this.current=new p,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!i,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[o]]=o}return _createClass(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,n=e.fnArray,a=e.argsArray,i=0,o=n.length;i0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=d[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=f[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,n){this.current.strokeColor=r.Util.makeCssRgb(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,n){this.current.fillColor=r.Util.makeCssRgb(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,n=this.viewport.height,a=r.Util.inverseTransform(this.transformMatrix),i=r.Util.applyTransform([0,0],a),o=r.Util.applyTransform([0,n],a),s=r.Util.applyTransform([t,0],a),l=r.Util.applyTransform([t,n],a),c=Math.min(i[0],o[0],s[0],l[0]),u=Math.min(i[1],o[1],s[1],l[1]),d=Math.max(i[0],o[0],s[0],l[0]),f=Math.max(i[1],o[1],s[1],l[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",c),h.setAttributeNS(null,"y",u),h.setAttributeNS(null,"width",d-c),h.setAttributeNS(null,"height",f-u),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this._ensureTransformGroup().appendChild(h)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],n=e[2],a=e[3]||r.IDENTITY_MATRIX,i=_slicedToArray(e[4],4),o=i[0],s=i[1],l=i[2],c=i[3],u=e[5],d=e[6],f=e[7],h="shading".concat(v++),p=r.Util.applyTransform([o,s],a),m=_slicedToArray(p,2),g=m[0],y=m[1],b=r.Util.applyTransform([l,c],a),w=_slicedToArray(b,2),x=w[0],k=w[1],S=r.Util.singularValueDecompose2dScale(a),C=_slicedToArray(S,2),A=u*C[0],_=d*C[1],O=this.svgFactory.createElement("svg:pattern");O.setAttributeNS(null,"id",h),O.setAttributeNS(null,"patternUnits","userSpaceOnUse"),O.setAttributeNS(null,"width",A),O.setAttributeNS(null,"height",_),O.setAttributeNS(null,"x","".concat(g)),O.setAttributeNS(null,"y","".concat(y));var P=this.svg,E=this.transformMatrix,T=this.current.fillColor,j=this.current.strokeColor,N=this.svgFactory.create(x-g,k-y);if(this.svg=N,this.transformMatrix=a,2===f){var M,I=(M=r.Util).makeCssRgb.apply(M,_toConsumableArray(t));this.current.fillColor=I,this.current.strokeColor=I}return this.executeOpTree(this.convertOpList(n)),this.svg=P,this.transformMatrix=E,this.current.fillColor=T,this.current.strokeColor=j,O.appendChild(N.childNodes[0]),this.defs.appendChild(O),"url(#".concat(h,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,n="shading".concat(v++),a=e[3];switch(e[1]){case"axial":var i=e[4],o=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d,f=_createForOfIteratorHelper(a);try{for(f.s();!(d=f.n()).done;){var h=d.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",h[0]),p.setAttributeNS(null,"stop-color",h[1]),t.appendChild(p)}}catch(m){f.e(m)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(n,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var n,a=this.current,i=a.x,o=a.y,l=[],c=0,u=_createForOfIteratorHelper(e);try{for(u.s();!(n=u.n()).done;)switch(0|n.value){case r.OPS.rectangle:i=t[c++],o=t[c++];var d=t[c++],f=t[c++],h=i+d,p=o+f;l.push("M",s(i),s(o),"L",s(h),s(o),"L",s(h),s(p),"L",s(i),s(p),"Z");break;case r.OPS.moveTo:i=t[c++],o=t[c++],l.push("M",s(i),s(o));break;case r.OPS.lineTo:i=t[c++],o=t[c++],l.push("L",s(i),s(o));break;case r.OPS.curveTo:i=t[c+4],o=t[c+5],l.push("C",s(t[c]),s(t[c+1]),s(t[c+2]),s(t[c+3]),s(i),s(o)),c+=6;break;case r.OPS.curveTo2:l.push("C",s(i),s(o),s(t[c]),s(t[c+1]),s(t[c+2]),s(t[c+3])),i=t[c+2],o=t[c+3],c+=4;break;case r.OPS.curveTo3:i=t[c+2],o=t[c+3],l.push("C",s(t[c]),s(t[c+1]),s(i),s(o),s(i),s(o)),c+=4;break;case r.OPS.closePath:l.push("Z")}}catch(m){u.e(m)}finally{u.f()}l=l.join(" "),a.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?l=a.path.getAttributeNS(null,"d")+l:(a.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(a.path)),a.path.setAttributeNS(null,"d",l),a.path.setAttributeNS(null,"fill","none"),a.element=a.path,a.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(m++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",l(this.transformMatrix));var r=e.element.cloneNode(!0);"evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),n.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var a=_slicedToArray(t.value,2),i=a[0],o=a[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(s){n.e(s)}finally{n.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",s(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",s(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(s).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",s(t*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintJpegXObject",value:function(e,t,n){var r=this.objs.get(e),a=this.svgFactory.createElement("svg:image");a.setAttributeNS(u,"xlink:href",r.src),a.setAttributeNS(null,"width",s(t)),a.setAttributeNS(null,"height",s(n)),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",s(-n)),a.setAttributeNS(null,"transform","scale(".concat(s(1/t)," ").concat(s(-1/n),")")),this._ensureTransformGroup().appendChild(a)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,r=e.height,a=h(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",s(n)),i.setAttributeNS(null,"height",s(r)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(u,"xlink:href",a),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",s(-r)),o.setAttributeNS(null,"width",s(n)+"px"),o.setAttributeNS(null,"height",s(r)+"px"),o.setAttributeNS(null,"transform","scale(".concat(s(1/n)," ").concat(s(-1/r),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,n=e.width,r=e.height,a=t.fillColor;t.maskId="mask".concat(g++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",s(n)),o.setAttributeNS(null,"height",s(r)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,i)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var n=t[2]-t[0],r=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",s(n)),a.setAttributeNS(null,"height",s(r)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",l(e.transform)),t.appendChild(r),this.svg=r,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",l(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),a=n(20),i=__webpack_require__(70172),o=__webpack_require__(2001),s=__webpack_require__(33779),l=__webpack_require__(66558),c=/^file:\/\/\/[a-zA-Z]:\//,u=function(){function e(t){_classCallCheck(this,e),this.source=t,this.url=function(e){var t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}},{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader),this._fullRequestReader=this.isFsUrl?new g(this):new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=this.isFsUrl?new v(this,e,t):new m(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNodeStream=u;var d=function(){function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}return _createClass(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,r.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}(),f=function(){function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();var n=t.source;this._isStreamingSupported=!n.disableStream}return _createClass(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,r.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}();function h(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;_classCallCheck(this,n);var l=function(t){if(404===t.statusCode){var n=new r.MissingPDFException('Missing PDF "'.concat(i._url,'".'));return i._storedError=n,void i._headersCapability.reject(n)}i._headersCapability.resolve(),i._setReadableStream(t);var o=function(e){return i._readableStream.headers[e.toLowerCase()]},s=(0,a.validateRangeRequestCapabilities)({getResponseHeader:o,isHttp:e.isHttp,rangeChunkSize:i._rangeChunkSize,disableRange:i._disableRange}),l=s.allowRangeRequests,c=s.suggestedLength;i._isRangeSupported=l,i._contentLength=c||i._contentLength,i._filename=(0,a.extractFilenameFromHeader)(o)};return(i=t.call(this,e))._request=null,"http:"===i._url.protocol?i._request=o.request(h(i._url,e.httpHeaders),l):i._request=s.request(h(i._url,e.httpHeaders),l),i._request.on("error",(function(e){i._storedError=e,i._headersCapability.reject(e)})),i._request.end(),i}return _createClass(n)}(d),m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,i){var l;for(var c in _classCallCheck(this,n),(l=t.call(this,e))._httpHeaders={},e.httpHeaders){var u=e.httpHeaders[c];"undefined"!==typeof u&&(l._httpHeaders[c]=u)}l._httpHeaders.Range="bytes=".concat(a,"-").concat(i-1);var d=function(e){if(404!==e.statusCode)l._setReadableStream(e);else{var t=new r.MissingPDFException('Missing PDF "'.concat(l._url,'".'));l._storedError=t}};return l._request=null,"http:"===l._url.protocol?l._request=o.request(h(l._url,l._httpHeaders),d):l._request=s.request(h(l._url,l._httpHeaders),d),l._request.on("error",(function(e){l._storedError=e})),l._request.end(),l}return _createClass(n)}(f),g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var a;_classCallCheck(this,n),a=t.call(this,e);var o=decodeURIComponent(a._url.path);return c.test(a._url.href)&&(o=o.replace(/^\//,"")),i.lstat(o,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException('Missing PDF "'.concat(o,'".'))),a._storedError=e,void a._headersCapability.reject(e);a._contentLength=t.size,a._setReadableStream(i.createReadStream(o)),a._headersCapability.resolve()})),a}return _createClass(n)}(d),v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a){var o;_classCallCheck(this,n),o=t.call(this,e);var s=decodeURIComponent(o._url.path);return c.test(o._url.href)&&(s=s.replace(/^\//,"")),o._setReadableStream(i.createReadStream(s,{start:r,end:a-1})),o}return _createClass(n)}(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var n=(0,a.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(r){}if(/\.pdf$/i.test(n))return n}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,n=e.isHttp,a=e.rangeChunkSize,i=e.disableRange;(0,r.assert)(a>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);return Number.isInteger(s)?(o.suggestedLength=s,s<=2*a||i||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),a=n(21)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,n=i("filename\\*","i").exec(e);if(n){var r=l(n=n[1]);return s(r=u(r=c(r=unescape(r))))}if(n=function(e){for(var t,n=[],r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=r.exec(e));){var a=_slicedToArray(t,4),o=a[1],s=a[2],u=a[3];if((o=parseInt(o,10))in n){if(0===o)break}else n[o]=[s,u]}for(var d=[],f=0;f=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===a.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===a.status&&this.isHttp)n.onError&&n.onError(a.status);else{var i=a.status||200;if(200===i&&206===n.expectedStatus||i===n.expectedStatus){var o=function(e){var t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(a);if(206===i){var s=a.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(l[1],10),chunk:o})}else o?n.onDone({begin:0,chunk:o}):n.onError&&n.onError(a.status)}else n.onError&&n.onError(a.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),o=function(){function e(t){_classCallCheck(this,e),this._source=t,this._manager=new i(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader),this._fullRequestReader=new s(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new l(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=o;var s=function(){function e(t,n){_classCallCheck(this,e),this._manager=t;var a={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(a),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return _createClass(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,o=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,n=(0,a.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach((function(e){e.reject(n)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,r.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),e}(),l=function(){function e(t,n,r){_classCallCheck(this,e),this._manager=t;var a={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(n,r,a),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return _createClass(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,r.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),a=n(20);function i(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){var t=new Headers;for(var n in e){var r=e[n];"undefined"!==typeof r&&t.append(n,r)}return t}var s=function(){function e(t){_classCallCheck(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}},{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader),this._fullRequestReader=new l(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new c(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFFetchStream=s;var l=function(){function e(t){var n=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var s=t.source;this._withCredentials=s.withCredentials||!1,this._contentLength=s.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=s.disableRange||!1,this._rangeChunkSize=s.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!s.disableStream,this._isRangeSupported=!s.disableRange,this._headers=o(this._stream.httpHeaders);var l=s.url;fetch(l,i(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,l);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},i=(0,a.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),o=i.allowRangeRequests,s=i.suggestedLength;n._isRangeSupported=o,n._contentLength=s||n._contentLength,n._filename=(0,a.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}return _createClass(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n,r,a;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(r=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),a=new Uint8Array(n).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}]),e}(),c=function(){function e(t,n,s){var l=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0;var c=t.source;this._withCredentials=c.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!c.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=o(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(s-1));var u=c.url;fetch(u,i(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,u);l._readCapability.resolve(),l._reader=e.body.getReader()})),this.onProgress=null}return _createClass(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){var t,n,r,a;return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(r=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),a=new Uint8Array(n).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}]),e}()}])},module.exports=factory()},84311:function(e,t,n){("undefined"!==typeof window?window:{}).pdfjsWorker=n(55863)},55863:function(e,t,n){var r,a=n(94993).default,i=n(41588).default,o=n(73808).default,s=n(861).default,l=n(74704).default,c=n(66115).default,u=n(89728).default,d=n(56690).default,f=n(61655).default,h=n(26389).default,p=n(64687),m=n(27424).default,g=n(17156).default;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r=n(1);t.WorkerMessageHandler=r.WorkerMessageHandler},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var r=n(2),a=n(4),i=n(5),o=n(44),s=n(45),l=n(46),c=n(7),u=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,r.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}();t.WorkerTask=u;var d,f={setup:function(e,t){var n=!1;e.on("test",(function(t){if(!n)if(n=!0,t instanceof Uint8Array){var r=255===t[0];e.postMessageTransfers=r,e.send("test",{supportTransfers:r})}else e.send("test",null)})),e.on("configure",(function(e){(0,r.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return f.createDocumentHandler(e,t)}))},createDocumentHandler:function(e,t){var n,o=!1,d=null,f=[],h=(0,r.getVerbosityLevel)(),v=e.apiVersion,y="2.4.456";if(v!==y)throw new Error('The API version "'.concat(v,'" does not match ')+'the Worker version "'.concat(y,'".'));var b=[];for(var w in[])b.push(w);if(b.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+b.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var x=e.docId,k=e.docBaseUrl,S=e.docId+"_worker",C=new s.MessageHandler(S,x,t);function A(){if(o)throw new Error("Worker was terminated")}function _(e){f.push(e)}function O(e){e.finish();var t=f.indexOf(e);f.splice(t,1)}function P(e){return E.apply(this,arguments)}function E(){return(E=g(p.mark((function e(t){var r,a,i,o;return p.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.ensureDoc("checkHeader");case 2:return e.next=4,n.ensureDoc("parseStartXRef");case 4:return e.next=6,n.ensureDoc("parse",[t]);case 6:if(t){e.next=9;break}return e.next=9,n.ensureDoc("checkFirstPage");case 9:return e.next=11,Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprint")]);case 11:return r=e.sent,a=m(r,2),i=a[0],o=a[1],e.abrupt("return",{numPages:i,fingerprint:o});case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e,t){var n,a=(0,r.createPromiseCapability)(),o=e.source;if(o.data){try{n=new i.LocalPdfManager(x,o.data,o.password,t,k),a.resolve(n)}catch(p){a.reject(p)}return a.promise}var s,c=[];try{s=new l.PDFWorkerStream(C)}catch(p){return a.reject(p),a.promise}var u=s.getFullReader();u.headersReady.then((function(){if(u.isRangeSupported){var e=o.disableAutoFetch||u.isStreamingSupported;n=new i.NetworkPdfManager(x,s,{msgHandler:C,password:o.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,k);for(var r=0;r=r.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:C,sink:t,task:i,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then((function(e){O(i),o&&(0,r.info)("page=".concat(a+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){O(i),i.terminated||(C.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),t.error(e))}))}))}),this),C.on("GetTextContent",(function(e,t){var a=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},n.getPage(a).then((function(n){var i=new u("GetTextContent: page "+a);_(i);var o=h>=r.VerbosityLevel.INFOS?Date.now():0;n.extractTextContent({handler:C,task:i,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then((function(){O(i),o&&(0,r.info)("page=".concat(a+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){O(i),i.terminated||t.error(e)}))}))})),C.on("FontFallback",(function(e){return n.fontFallback(e.id,C)})),C.on("Cleanup",(function(e){return n.cleanup()})),C.on("Terminate",(function(e){o=!0;var t=[];if(n){n.terminate(new r.AbortException("Worker was terminated."));var i=n.cleanup();t.push(i),n=null}else(0,a.clearPrimitiveCaches)();return d&&d(new r.AbortException("Worker was terminated.")),f.forEach((function(e){t.push(e.finished),e.terminate()})),Promise.all(t).then((function(){C.destroy(),C=null}))})),C.on("Ready",(function(t){!function(e){function t(e){A(),C.send("GetDoc",{pdfInfo:e})}function a(e){if(A(),e instanceof r.PasswordException){var t=new u("PasswordException: response ".concat(e.code));_(t),C.sendWithPromise("PasswordRequest",e).then((function(e){O(t),n.updatePassword(e.password),i()})).catch((function(){O(t),C.send("DocException",e)}))}else e instanceof r.InvalidPDFException||e instanceof r.MissingPDFException||e instanceof r.UnexpectedResponseException||e instanceof r.UnknownErrorException?C.send("DocException",e):C.send("DocException",new r.UnknownErrorException(e.message,e.toString()))}function i(){A(),P(!1).then(t,(function(e){A(),e instanceof c.XRefParseException?(n.requestLoadedStream(),n.onLoadedStream().then((function(){A(),P(!0).then(t,a)}))):a(e)}),a)}A(),T(e,{forceDataSchema:e.disableCreateObjectURL,maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported}).then((function(e){if(o)throw e.terminate(new r.AbortException("Worker was terminated.")),new Error("Worker was terminated");(n=e).onLoadedStream().then((function(e){C.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(i,a)}(e),e=null})),S},initializeFromPort:function(e){var t=new s.MessageHandler("worker","main",e);f.setup(t,e),t.send("ready",null)}};t.WorkerMessageHandler=f,"undefined"===typeof window&&!o.isNodeJS&&"undefined"!==typeof self&&"function"===typeof(d=self).postMessage&&"onmessage"in d&&f.initializeFromPort(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=S,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var n=0,r=0;r=r.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))},t.isBool=function(e){return"boolean"===typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSameOrigin=function(e,t){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(a){return!1}var r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(r){}return null},t.removeNullCharacters=function(e){return"string"!==typeof e?(i("The argument for removeNullCharacters must be a string."),e):e.replace(x,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(a=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=k,t.stringToPDFString=function(e){var t=e.length,n=[];if("\xfe"===e[0]&&"\xff"===e[1])for(var r=2;r=r.WARNINGS&&console.log("Warning: ".concat(e))}function o(e){throw new Error(e)}function s(e,t){e||o(t)}function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;var p=function(e){f(n,e);var t=h(n);function n(e,r){var a;return d(this,n),(a=t.call(this,e)).code=r,a}return u(n)}(c);t.PasswordException=p;var m=function(e){f(n,e);var t=h(n);function n(e,r){var a;return d(this,n),(a=t.call(this,e)).details=r,a}return u(n)}(c);t.UnknownErrorException=m;var g=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(c);t.InvalidPDFException=g;var v=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(c);t.MissingPDFException=v;var y=function(e){f(n,e);var t=h(n);function n(e,r){var a;return d(this,n),(a=t.call(this,e)).status=r,a}return u(n)}(c);t.UnexpectedResponseException=y;var b=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(c);t.FormatError=b;var w=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(c);t.AbortException=w;var x=/\x00/g;function k(e){s("string"===typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;re[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,n){function r(e,t){return e-t}var a=[t[0],t[2],n[0],n[2]].sort(r),i=[t[1],t[3],n[1],n[3]].sort(r),o=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),a[0]===t[0]&&a[1]===n[0]||a[0]===n[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===n[1]||i[0]===n[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),e}();t.Util=O;var P=[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],E=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var r=new Blob([t],{type:n});return URL.createObjectURL(r)}for(var a="data:".concat(n,";base64,"),i=0,o=t.length;i>4,d=i+1>6:64,f=i+2>2]+e[u]+e[d]+e[f]}return a}}();t.createObjectURL=E},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=function(){i._clearCache(),a._clearCache(),s._clearCache()},t.isEOF=function(e){return e===r},t.isCmd=function(e,t){return e instanceof i&&(void 0===t||e.cmd===t)},t.isDict=d,t.isName=u,t.isRef=function(e){return e instanceof s},t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return"object"===typeof e&&null!==e&&void 0!==e.getBytes},t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0,n(2);var r={};t.EOF=r;var a=function(){var e=Object.create(null);function t(e){this.name=e}return t.prototype={},t.get=function(n){var r=e[n];return r||(e[n]=new t(n))},t._clearCache=function(){e=Object.create(null)},t}();t.Name=a;var i=function(){var e=Object.create(null);function t(e){this.cmd=e}return t.prototype={},t.get=function(n){var r=e[n];return r||(e[n]=new t(n))},t._clearCache=function(){e=Object.create(null)},t}();t.Cmd=i;var o=function(){var e=function(){return e};function t(t){this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=e}return t.prototype={assignXref:function(e){this.xref=e},get:function(e,t,n){var r=this._map[e];return void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==n&&(r=this._map[n]),r instanceof s&&this.xref?this.xref.fetch(r,this.suppressEncryption):r},getAsync:function(e,t,n){var r=this;return g(p.mark((function a(){var i;return p.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(void 0===(i=r._map[e])&&void 0!==t&&void 0===(i=r._map[t])&&void 0!==n&&(i=r._map[n]),!(i instanceof s&&r.xref)){a.next=4;break}return a.abrupt("return",r.xref.fetchAsync(i,r.suppressEncryption));case 4:return a.abrupt("return",i);case 5:case"end":return a.stop()}}),a)})))()},getArray:function(e,t,n){var r=this.get(e,t,n);if(!Array.isArray(r)||!this.xref)return r;for(var a=0,i=(r=r.slice()).length;a=this.end?this.numChunks:Math.floor(t/this.chunkSize),a=n;a=t)&&!(t<=this.progressiveDataLength))for(var n=this.chunkSize,r=Math.floor(e/n),i=Math.floor((t-1)/n)+1,o=r;o=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.bytes,r=this.pos,a=this.end;if(!e){a>this.progressiveDataLength&&this.ensureRange(r,a);var i=n.subarray(r,a);return t?new Uint8ClampedArray(i):i}var o=r+e;o>a&&(o=a),o>this.progressiveDataLength&&this.ensureRange(r,o),this.pos=o;var s=n.subarray(r,o);return t?new Uint8ClampedArray(s):s}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBytes(e,t);return this.pos-=n.length,n}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"skip",value:function(e){e||(e=1),this.pos+=e}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t,n){function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[],a=t;a0&&void 0!==arguments[0]?arguments[0]:[]);try{for(n.s();!(e=n.n()).done;)for(var r=e.value,a=this.getBeginChunk(r.begin),i=this.getEndChunk(r.end),o=a;o=0&&r+1!==o&&(t.push({beginChunk:n,endChunk:r+1}),n=o),a+1===e.length&&t.push({beginChunk:n,endChunk:o+1}),r=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,n=void 0===e.begin,a=n?this.progressiveDataLength:e.begin,i=a+t.byteLength,o=Math.floor(a/this.chunkSize),s=i100){(0,r.warn)('getInheritableProperty: maximum loop count exceeded for "'.concat(a,'"'));break}n=n.get("Parent")}return t},t.toRomanNumerals=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var n,a=[];e>=1e3;)e-=1e3,a.push("M");n=e/100|0,e%=100,a.push(s[n]),n=e/10|0,e%=10,a.push(s[10+n]),a.push(s[20+e]);var i=a.join("");return t?i.toLowerCase():i},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var r=n(2),a=function(e){f(n,e);var t=h(n);function n(e,r){var a;return d(this,n),(a=t.call(this,"Missing data [".concat(e,", ").concat(r,")"))).begin=e,a.end=r,a}return u(n)}(r.BaseException);t.MissingDataException=a;var i=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(r.BaseException);t.XRefEntryException=i;var o=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(r.BaseException);t.XRefParseException=o;var s=["","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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var r=n(2),a=n(9),i=n(4),o=n(7),s=n(11),c=n(23),f=n(21),h=n(10),v=n(24),y=n(25),b=n(39),w=[0,0,612,792];function x(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}var k=function(){function e(t){var n=t.pdfManager,r=t.xref,a=t.pageIndex,i=t.pageDict,o=t.ref,s=t.fontCache,l=t.builtInCMapCache,c=t.pdfFunctionFactory;d(this,e),this.pdfManager=n,this.pageIndex=a,this.pageDict=i,this.xref=r,this.ref=o,this.fontCache=s,this.builtInCMapCache=l,this.pdfFunctionFactory=c,this.evaluatorOptions=n.evaluatorOptions,this.resourcesPromise=null;var u={obj:0};this.idFactory={createObjId:function(){return"p".concat(a,"_").concat(++u.obj)},getDocId:function(){return"g_".concat(n.docId)}}}return u(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,o.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?1!==n.length&&(0,i.isDict)(n[0])?i.Dict.merge(this.xref,n):n[0]:n}},{key:"content",get:function(){return this.pageDict.get("Contents")}},{key:"resources",get:function(){return(0,r.shadow)(this,"resources",this._getInheritableProperty("Resources")||i.Dict.empty)}},{key:"_getBoundingBox",value:function(e){var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!==0&&t[3]-t[1]!==0)return t;(0,r.warn)("Empty /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return(0,r.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||w)}},{key:"cropBox",get:function(){return(0,r.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return(!(0,r.isNum)(e)||e<=0)&&(e=1),(0,r.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var e,t=this.cropBox,n=this.mediaBox;if(t===n||(0,r.isArrayEqual)(t,n))e=n;else{var a=r.Util.intersect(t,n);a&&a[2]-a[0]!==0&&a[3]-a[1]!==0?e=a:(0,r.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,r.shadow)(this,"view",e||n)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!==0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,r.shadow)(this,"rotate",e)}},{key:"getContentStream",value:function(){var e,t=this.content;if(Array.isArray(t)){var n,r=this.xref,a=[],o=l(t);try{for(o.s();!(n=o.n()).done;){var c=n.value;a.push(r.fetchIfRef(c))}}catch(u){o.e(u)}finally{o.f()}e=new s.StreamsSequenceStream(a)}else e=(0,i.isStream)(t)?t:new s.NullStream;return e}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new a.ObjectLoader(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,n=e.handler,a=e.sink,i=e.task,o=e.intent,s=e.renderInteractiveForms,c=this.pdfManager.ensure(this,"getContentStream"),u=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),d=new y.PartialEvaluator({xref:this.xref,handler:n,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),f=Promise.all([c,u]).then((function(e){var r=m(e,1)[0],s=new v.OperatorList(o,a,t.pageIndex);return n.send("StartRenderPage",{transparency:d.hasBlendModes(t.resources),pageIndex:t.pageIndex,intent:o}),d.getOperatorList({stream:r,task:i,resources:t.resources,operatorList:s}).then((function(){return s}))}));return Promise.all([f,this._parsedAnnotations]).then((function(e){var t=m(e,2),n=t[0],a=t[1];if(0===a.length)return n.flush(!0),{length:n.totalLength};var c,u=[],f=l(a);try{for(f.s();!(c=f.n()).done;){var h=c.value;x(h,o)&&u.push(h.getOperatorList(d,i,s))}}catch(p){f.e(p)}finally{f.f()}return Promise.all(u).then((function(e){n.addOp(r.OPS.beginAnnotations,[]);var t,a=l(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.addOpList(i)}}catch(p){a.e(p)}finally{a.f()}return n.addOp(r.OPS.endAnnotations,[]),n.flush(!0),{length:n.totalLength}}))}))}},{key:"extractTextContent",value:function(e){var t=this,n=e.handler,r=e.task,a=e.normalizeWhitespace,i=e.sink,o=e.combineTextItems,s=this.pdfManager.ensure(this,"getContentStream"),l=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([s,l]).then((function(e){var s=m(e,1)[0];return new y.PartialEvaluator({xref:t.xref,handler:n,pageIndex:t.pageIndex,idFactory:t.idFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,options:t.evaluatorOptions,pdfFunctionFactory:t.pdfFunctionFactory}).getTextContent({stream:s,task:r,resources:t.resources,normalizeWhitespace:a,combineTextItems:o,sink:i})}))}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then((function(t){for(var n=[],r=0,a=t.length;r2&&void 0!==arguments[2]?arguments[2]:1024,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length,i=e.peekBytes(n),o=i.length-a;if(o<=0)return!1;if(r)for(var s=a-1,l=i.length-1;l>=s;){for(var c=0;c=a)return e.pos+=l-s,!0;l--}else for(var u=0;u<=o;){for(var d=0;d=a)return e.pos+=u,!0;u++}return!1}var P=function(){function e(t,n){var o;if(d(this,e),(0,i.isStream)(n))o=n;else{if(!(0,r.isArrayBuffer)(n))throw new Error("PDFDocument: Unknown argument type");o=new s.Stream(n)}if(o.length<=0)throw new r.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=o,this.xref=new a.XRef(o,t),this.pdfFunctionFactory=new b.PDFFunctionFactory({xref:this.xref,isEvalSupported:t.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}return u(e,[{key:"parse",value:function(e){this.setup(e);var t=this.catalog.catDict.get("Version");(0,i.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");var n=this.acroForm.get("Fields");Array.isArray(n)&&0!==n.length||this.xfa||(this.acroForm=null)}}catch(s){if(s instanceof o.MissingDataException)throw s;(0,r.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{var a=this.catalog.catDict.get("Collection");(0,i.isDict)(a)&&a.getKeys().length>0&&(this.collection=a)}catch(s){if(s instanceof o.MissingDataException)throw s;(0,r.info)("Cannot fetch Collection dictionary.")}}},{key:"linearization",get:function(){var e=null;try{e=h.Linearization.create(this.stream)}catch(t){if(t instanceof o.MissingDataException)throw t;(0,r.info)(t)}return(0,r.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),O(e,A)&&(t=e.pos+6-e.start);else{for(var n=C.length,a=!1,i=e.end;!a&&i>0;)(i-=1024-n)<0&&(i=0),e.pos=i,a=O(e,C,1024,!0);if(a){var s;e.skip(9);do{s=e.getByte()}while((0,o.isWhiteSpace)(s));for(var l="";s>=32&&s<=57;)l+=String.fromCharCode(s),s=e.getByte();t=parseInt(l,10),isNaN(t)&&(t=0)}}return(0,r.shadow)(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),O(e,S)){e.moveStart();for(var t,n="";(t=e.getByte())>32&&!(n.length>=12);)n+=String.fromCharCode(t);this.pdfFormatVersion||(this.pdfFormatVersion=n.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"setup",value:function(e){this.xref.parse(e),this.catalog=new a.Catalog(this.pdfManager,this.xref)}},{key:"numPages",get:function(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,r.shadow)(this,"numPages",t)}},{key:"documentInfo",get:function(){var e={Title:r.isString,Author:r.isString,Subject:r.isString,Keywords:r.isString,Creator:r.isString,Producer:r.isString,CreationDate:r.isString,ModDate:r.isString,Trapped:i.isName},t=this.pdfFormatVersion;"string"===typeof t&&_.test(t)||((0,r.warn)("Invalid PDF header version number: ".concat(t)),t=null);var n,a={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};try{n=this.xref.trailer.get("Info")}catch(h){if(h instanceof o.MissingDataException)throw h;(0,r.info)("The document information dictionary is invalid.")}if((0,i.isDict)(n)){var s,c=l(n.getKeys());try{for(c.s();!(s=c.n()).done;){var u=s.value,d=n.get(u);if(e[u])e[u](d)?a[u]="string"!==typeof d?d:(0,r.stringToPDFString)(d):(0,r.info)('Bad value in document info for "'.concat(u,'".'));else if("string"===typeof u){var f=void 0;if((0,r.isString)(d))f=(0,r.stringToPDFString)(d);else{if(!((0,i.isName)(d)||(0,r.isNum)(d)||(0,r.isBool)(d))){(0,r.info)('Unsupported value in document info for (custom) "'.concat(u,'".'));continue}f=d}a.Custom||(a.Custom=Object.create(null)),a.Custom[u]=f}}}catch(h){c.e(h)}finally{c.f()}}return(0,r.shadow)(this,"documentInfo",a)}},{key:"fingerprint",get:function(){for(var e,t=this.xref.trailer.get("ID"),n=[],a=0,i=(e=Array.isArray(t)&&t[0]&&(0,r.isString)(t[0])&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==t[0]?(0,r.stringToBytes)(t[0]):(0,f.calculateMD5)(this.stream.getByteRange(0,1024),0,1024)).length;a0;){var u=i.shift(),d=s.fetchIfRef(u.obj);if(null!==d){if(!d.has("Title"))throw new r.FormatError("Invalid outline item encountered.");var f={url:null,dest:null};e.parseDestDictionary({destDict:d,resultObj:f,docBaseUrl:this.pdfManager.docBaseUrl});var h=d.get("Title"),p=d.get("F")||0,m=d.getArray("C"),g=d.get("Count"),v=l;!Array.isArray(m)||3!==m.length||0===m[0]&&0===m[1]&&0===m[2]||(v=c.ColorSpace.singletons.rgb.getRgb(m,0));var y={dest:f.dest,url:f.url,unsafeUrl:f.unsafeUrl,newWindow:f.newWindow,title:(0,r.stringToPDFString)(h),color:v,count:Number.isInteger(g)?g:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};u.parent.items.push(y),t=d.getRaw("First"),(0,a.isRef)(t)&&!o.has(t)&&(i.push({obj:t,parent:y}),o.put(t)),t=d.getRaw("Next"),(0,a.isRef)(t)&&!o.has(t)&&(i.push({obj:t,parent:u.parent}),o.put(t))}}return n.items.length>0?n.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(t){if(t instanceof o.MissingDataException)throw t;(0,r.warn)("Unable to read permissions.")}return(0,r.shadow)(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,a.isDict)(e))return null;var t=e.get("P");if(!(0,r.isNum)(t))return null;t+=Math.pow(2,32);var n=[];for(var i in r.PermissionFlag){var o=r.PermissionFlag[i];t&o&&n.push(o)}return n}},{key:"numPages",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new r.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,r.shadow)(this,"numPages",e)}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof x){var n=e.getAll();for(var i in n)t[i]=v(n[i])}else e instanceof a.Dict&&e.forEach((function(e,n){n&&(t[e]=v(n))}));return(0,r.shadow)(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();return t instanceof x||t instanceof a.Dict?v(t.get(e)||null):null}},{key:"_readDests",value:function(){var e=this.catDict.get("Names");return e&&e.has("Dests")?new x(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(t){if(t instanceof o.MissingDataException)throw t;(0,r.warn)("Unable to read page labels.")}return(0,r.shadow)(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),n=null,i="",s=new k(e,this.xref).getAll(),l="",c=1,u=0,d=this.numPages;u=1))throw new r.FormatError("Invalid start in PageLabel dictionary.");c=m}else c=1}switch(n){case"D":l=c;break;case"R":case"r":l=(0,o.toRomanNumerals)(c,"r"===n);break;case"A":case"a":for(var g="a"===n?97:65,v=c-1,y=String.fromCharCode(g+v%26),b=[],w=0,x=v/26|0;w<=x;w++)b.push(y);l=b.join("");break;default:if(n)throw new r.FormatError('Invalid style "'.concat(n,'" in PageLabel dictionary.'));l=""}t[u]=i+l,c++}return t}},{key:"pageLayout",get:function(){var e=this.catDict.get("PageLayout"),t="";if((0,a.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,r.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this.catDict.get("PageMode"),t="UseNone";if((0,a.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,r.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t={HideToolbar:r.isBool,HideMenubar:r.isBool,HideWindowUI:r.isBool,FitWindow:r.isBool,CenterWindow:r.isBool,DisplayDocTitle:r.isBool,NonFullScreenPageMode:a.isName,Direction:a.isName,ViewArea:a.isName,ViewClip:a.isName,PrintArea:a.isName,PrintClip:a.isName,PrintScaling:a.isName,Duplex:a.isName,PickTrayByPDFSize:r.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},n=this.catDict.get("ViewerPreferences"),i=Object.create(null);if((0,a.isDict)(n))for(var o in t)if(n.has(o)){var s=n.get(o);if(t[o](s)){var l=void 0;switch(o){case"NonFullScreenPageMode":switch(s.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":l=s.name;break;default:l="UseNone"}break;case"Direction":switch(s.name){case"L2R":case"R2L":l=s.name;break;default:l="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(s.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":l=s.name;break;default:l="CropBox"}break;case"PrintScaling":switch(s.name){case"None":case"AppDefault":l=s.name;break;default:l="AppDefault"}break;case"Duplex":switch(s.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":l=s.name;break;default:l="None"}break;case"PrintPageRange":if(s.length%2!==0)break;s.every((function(t,n,r){return Number.isInteger(t)&&t>0&&(0===n||t>=r[n-1])&&t<=e.numPages}))&&(l=s);break;case"NumCopies":s>0&&(l=s);break;default:(0,r.assert)("boolean"===typeof s),l=s}void 0!==l?i[o]=l:(0,r.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}else(0,r.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}return(0,r.shadow)(this,"viewerPreferences",i)}},{key:"openAction",get:function(){var t=this.catDict.get("OpenAction"),n=null;if((0,a.isDict)(t)){var i=new a.Dict(this.xref);i.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:i,resultObj:o}),Array.isArray(o.dest)?(n||(n=Object.create(null)),n.dest=o.dest):o.action&&(n||(n=Object.create(null)),n.action=o.action)}else Array.isArray(t)&&(n||(n=Object.create(null)),n.dest=t);return(0,r.shadow)(this,"openAction",n)}},{key:"attachments",get:function(){var e=this.catDict.get("Names"),t=null;if(e&&e.has("EmbeddedFiles")){var n=new x(e.getRaw("EmbeddedFiles"),this.xref).getAll();for(var a in n){var i=new S(n[a],this.xref);t||(t=Object.create(null)),t[(0,r.stringToPDFString)(a)]=i.serializable}}return(0,r.shadow)(this,"attachments",t)}},{key:"javaScript",get:function(){var e=this.catDict.get("Names"),t=null;function n(e){var n=e.get("S");if((0,a.isName)(n,"JavaScript")){var i=e.get("JS");if((0,a.isStream)(i))i=(0,r.bytesToString)(i.getBytes());else if(!(0,r.isString)(i))return;t||(t=[]),t.push((0,r.stringToPDFString)(i))}}if(e&&e.has("JavaScript")){var i=new x(e.getRaw("JavaScript"),this.xref).getAll();for(var o in i){var s=i[o];(0,a.isDict)(s)&&n(s)}}var l=this.catDict.get("OpenAction");return(0,a.isDict)(l)&&(0,a.isName)(l.get("S"),"JavaScript")&&n(l),(0,r.shadow)(this,"javaScript",t)}},{key:"fontFallback",value:function(e,t){var n=[];return this.fontCache.forEach((function(e){n.push(e)})),Promise.all(n).then((function(n){var r,a=l(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.loadedName===e)return void i.fallback(t)}}catch(o){a.e(o)}finally{a.f()}}))}},{key:"cleanup",value:function(){var e=this;(0,a.clearPrimitiveCaches)(),this.pageKidsCountCache.clear();var t=[];return this.fontCache.forEach((function(e){t.push(e)})),Promise.all(t).then((function(t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;)delete n.value.dict.translated}catch(a){r.e(a)}finally{r.f()}e.fontCache.clear(),e.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function(e){var t,n=(0,r.createPromiseCapability)(),i=[this.catDict.getRaw("Pages")],o=new a.RefSet,s=this.xref,l=this.pageKidsCountCache,c=0;return function u(){for(var d=function(){var d=i.pop();if((0,a.isRef)(d))return(t=l.get(d))>0&&c+t=0){var f=d.objId;if(f&&!l.has(f)&&l.put(f,t),c+t<=e)return c+=t,"continue"}var h=d.get("Kids");if(!Array.isArray(h))return(0,a.isName)(d.get("Type"),"Page")||!d.has("Type")&&d.has("Contents")?c===e?(n.resolve([d,null]),{v:void 0}):(c++,"continue"):(n.reject(new r.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var p=h.length-1;p>=0;p--)i.push(h[p])};i.length;){var f=d();if("continue"!==f&&"object"===typeof f)return f.v}n.reject(new Error("Page index ".concat(e," not found.")))}(),n.promise}},{key:"getPageIndex",value:function(e){var t=this.xref,n=0;return function i(o){return function(n){var i,o=0;return t.fetchAsync(n).then((function(t){if((0,a.isRefsEqual)(n,e)&&!(0,a.isDict)(t,"Page")&&(!(0,a.isDict)(t)||t.has("Type")||!t.has("Contents")))throw new r.FormatError("The reference does not point to a /Page dictionary.");if(!t)return null;if(!(0,a.isDict)(t))throw new r.FormatError("Node must be a dictionary.");return i=t.getRaw("Parent"),t.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(0,a.isDict)(e))throw new r.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var s=[],l=!1,c=0,u=e.length;c0;){var u=c[0],d=c[1];if(!Number.isInteger(u)||!Number.isInteger(d))throw new r.FormatError("Invalid XRef range fields: ".concat(u,", ").concat(d));if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(l))throw new r.FormatError("Invalid XRef entry fields length: ".concat(u,", ").concat(d));for(t=a.entryNum;t=r.length);)i+=String.fromCharCode(o),o=r[a];return i}function l(e,t,n){for(var r=n.length,a=e.length,i=0;t=r)break;t++,i++}return i}var c=/^(\d+)\s+(\d+)\s+obj\b/,u=/\bendobj[\b\s]$/,d=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,f=new Uint8Array([116,114,97,105,108,101,114]),h=new Uint8Array([115,116,97,114,116,120,114,101,102]),p=new Uint8Array([111,98,106]),m=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var g=this.stream;g.pos=0;for(var v,y,b,w=g.getBytes(),x=g.start,k=w.length,S=[],C=[];x=k)break;A=w[x]}while(A!==e&&A!==t);else++x}for(v=0,y=C.length;v2&&void 0!==arguments[2]&&arguments[2],r=e.gen,s=e.num;if(t.gen!==r)throw new o.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var l=this.stream.makeSubStream(t.offset+this.stream.start),c=new i.Parser({lexer:new i.Lexer(l),xref:this,allowStreams:!0}),u=c.getObj(),d=c.getObj(),f=c.getObj();if(u!==s||d!==r||!(f instanceof a.Cmd))throw new o.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==f.cmd){if(f.cmd.startsWith("obj")&&(s=parseInt(f.cmd.substring(3),10),!Number.isNaN(s)))return s;throw new o.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!n?c.getObj(this.encrypt.createCipherTransform(s,r)):c.getObj(),(0,a.isStream)(t)||this._cacheMap.set(s,t),t},fetchCompressed:function(e,t){var n=t.offset,s=this.fetch(a.Ref.get(n,0));if(!(0,a.isStream)(s))throw new r.FormatError("bad ObjStm stream");var l=s.dict.get("First"),c=s.dict.get("N");if(!Number.isInteger(l)||!Number.isInteger(c))throw new r.FormatError("invalid first and n parameters for ObjStm stream");for(var u=new i.Parser({lexer:new i.Lexer(s),xref:this,allowStreams:!0}),d=new Array(c),f=0;f0;){var o=t.fetchIfRef(i.shift());if((0,a.isDict)(o))if(o.has("Kids"))for(var s=o.get("Kids"),l=0,c=s.length;l10)return(0,r.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var i=n.get("Kids");if(!Array.isArray(i))return null;for(var o=0,s=i.length-1;o<=s;){var l=o+s>>1,c=t.fetchIfRef(i[l]).get("Limits");if(et.fetchIfRef(c[1]))){n=t.fetchIfRef(i[l]);break}o=l+1}}if(o>s)return null}var u=n.get(this._type);if(Array.isArray(u)){for(var d=0,f=u.length-2;d<=f;){var h=d+f>>1,p=h+(1&h),m=t.fetchIfRef(u[p]);if(em))return t.fetchIfRef(u[p+1]);d=p+2}}(0,r.info)('Falling back to an exhaustive search, for key "'.concat(e,'", ')+'in "'.concat(this._type,'" tree.'));for(var g=0,v=u.length;g0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof i.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var n=[];!(0,i.isCmd)(this.buf1,"]")&&!(0,i.isEOF)(this.buf1);)n.push(this.getObj(e));if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside array");return n}return this.shift(),n;case"<<":for(var r=new i.Dict(this.xref);!(0,i.isCmd)(this.buf1,">>")&&!(0,i.isEOF)(this.buf1);)if((0,i.isName)(this.buf1)){var o=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;r.set(o,this.getObj(e))}else(0,a.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside dictionary");return r}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){var s=i.Ref.get(t,this.buf1);return this.shift(),this.shift(),s}return t}return"string"===typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,n,r=e.pos,i=0;-1!==(t=e.getByte());)if(0===i)i=69===t?1:0;else if(1===i)i=73===t?2:0;else if((0,a.assert)(2===i),32===t||10===t||13===t){n=e.pos;for(var s=e.peekBytes(10),l=0,c=s.length;l127)){i=0;break}if(2===i)break}else i=0;-1===t&&((0,a.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),n&&((0,a.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-n))));var u=4;return e.skip(-u),t=e.peekByte(),e.skip(u),(0,o.isWhiteSpace)(t)||u--,e.pos-u-r}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,n,r=e.pos,i=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(n=e.getUint16())>2?e.skip(n-2):e.skip(-2)}if(i)break}var o=e.pos-r;return-1===t?((0,a.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,n=e.pos;-1!==(t=e.getByte());)if(126===t){var r=e.pos;for(t=e.peekByte();(0,o.isWhiteSpace)(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>r){var i=e.peekBytes(2);if(69===i[0]&&73===i[1])break}}var s=e.pos-n;return-1===t?((0,a.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-s),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),s)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,n=e.pos;-1!==(t=e.getByte())&&62!==t;);var r=e.pos-n;return-1===t?((0,a.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,n=0;-1!==(t=e.getByte());)if(0===n)n=69===t?1:0;else if(1===n)n=73===t?2:0;else if(2===n)break}},{key:"makeInlineImage",value:function(e){for(var t,n=this.lexer,r=n.stream,o=new i.Dict(this.xref);!(0,i.isCmd)(this.buf1,"ID")&&!(0,i.isEOF)(this.buf1);){if(!(0,i.isName)(this.buf1))throw new a.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;o.set(s,this.getObj(e))}-1!==n.beginInlineImagePos&&(t=r.pos-n.beginInlineImagePos);var l,c=o.get("Filter","F");if((0,i.isName)(c))l=c.name;else if(Array.isArray(c)){var u=this.xref.fetchIfRef(c[0]);(0,i.isName)(u)&&(l=u.name)}var d,f=r.pos;d="DCTDecode"===l||"DCT"===l?this.findDCTDecodeInlineStreamEnd(r):"ASCII85Decode"===l||"A85"===l?this.findASCII85DecodeInlineStreamEnd(r):"ASCIIHexDecode"===l||"AHx"===l?this.findASCIIHexDecodeInlineStreamEnd(r):this.findDefaultInlineStreamEnd(r);var p,m=r.makeSubStream(f,d,o);if(d<1e3&&t<5552){var g=m.getBytes();m.reset();var v=r.pos;r.pos=n.beginInlineImagePos;var y=r.getBytes(t);r.pos=v,p=h(g)+"_"+h(y);var b=this.imageCache[p];if(void 0!==b)return this.buf2=i.Cmd.get("EI"),this.shift(),b.reset(),b}return e&&(m=e.createStream(m,d)),(m=this.filter(m,o,d)).dict=o,void 0!==p&&(m.cacheKey="inline_".concat(d,"_").concat(p),this.imageCache[p]=m),this.buf2=i.Cmd.get("EI"),this.shift(),m}},{key:"_findStreamLength",value:function(e,t){var n=this.lexer.stream;n.pos=e;for(var r=t.length;n.pos=r)return n.pos+=o,n.pos-e;o++}n.pos+=i}return-1}},{key:"makeStream",value:function(e,t){var n=this.lexer,r=n.stream;n.skipToNextLine();var s=r.pos-1,l=e.get("Length");if(Number.isInteger(l)||((0,a.info)('Bad length "'.concat(l,'" in stream')),l=0),r.pos=s+l,n.nextChar(),this.tryShift()&&(0,i.isCmd)(this.buf2,"endstream"))this.shift();else{var c=new Uint8Array([101,110,100,115,116,114,101,97,109]),u=this._findStreamLength(s,c);if(u<0){for(var d=1;d<=1;d++){var f=c.length-d,h=c.slice(0,f),p=this._findStreamLength(s,h);if(p>=0){var m=r.peekBytes(f+1)[f];if(!(0,o.isWhiteSpace)(m))break;(0,a.info)('Found "'.concat((0,a.bytesToString)(h),'" when ')+"searching for endstream command."),u=p;break}}if(u<0)throw new a.FormatError("Missing endstream command.")}l=u,n.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(s,l,e),t&&(r=t.createStream(r,l)),(r=this.filter(r,e,l)).dict=e,r}},{key:"filter",value:function(e,t,n){var r=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,i.isName)(r))return Array.isArray(o)&&(0,a.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,r.name,n,o);var s=n;if(Array.isArray(r))for(var l=r,c=o,u=0,d=l.length;u=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;d(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=n,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return u(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,n=0,r=0;if(45===e?(r=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(r=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(n=10,e=this.nextChar()),e<48||e>57){if(10===n&&0===r&&((0,o.isWhiteSpace)(e)||-1===e))return(0,a.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new a.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}r=r||1;for(var i=e-48,s=0,l=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var c=e-48;t?s=10*s+c:(0!==n&&(n*=10),i=10*i+c)}else if(46===e){if(0!==n)break;n=1}else if(45===e)(0,a.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==n&&(i/=n),t&&(i*=Math.pow(10,l*s)),r*i}},{key:"getString",value:function(){var e=1,t=!1,n=this.strBuf;n.length=0;for(var r=this.nextChar();;){var i=!1;switch(0|r){case-1:(0,a.warn)("Unterminated string"),t=!0;break;case 40:++e,n.push("(");break;case 41:0===--e?(this.nextChar(),t=!0):n.push(")");break;case 92:switch(r=this.nextChar()){case-1:(0,a.warn)("Unterminated string"),t=!0;break;case 110:n.push("\n");break;case 114:n.push("\r");break;case 116:n.push("\t");break;case 98:n.push("\b");break;case 102:n.push("\f");break;case 92:case 40:case 41:n.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&r;i=!0,(r=this.nextChar())>=48&&r<=55&&(o=(o<<3)+(15&r),(r=this.nextChar())>=48&&r<=55&&(i=!1,o=(o<<3)+(15&r))),n.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(r))}break;default:n.push(String.fromCharCode(r))}if(t)break;i||(r=this.nextChar())}return n.join("")}},{key:"getName",value:function(){var e,t,n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!m[e];)if(35===e){if(e=this.nextChar(),m[e]){(0,a.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}var r=g(e);if(-1!==r){t=e;var o=g(e=this.nextChar());if(-1===o){if((0,a.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),n.push("#",String.fromCharCode(t)),m[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(r<<4|o))}else n.push("#",String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&(0,a.warn)("Name token is longer than allowed by the spec: ".concat(n.length)),i.Name.get(n.join(""))}},{key:"_hexStringWarn",value:function(e){5!==this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,a.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,a.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,n,r=this.currentChar,i=!0;for(this._hexStringNumWarn=0;;){if(r<0){(0,a.warn)("Unterminated hex string");break}if(62===r){this.nextChar();break}if(1!==m[r]){if(i){if(-1===(t=g(r))){this._hexStringWarn(r),r=this.nextChar();continue}}else{if(-1===(n=g(r))){this._hexStringWarn(r),r=this.nextChar();continue}e.push(String.fromCharCode(t<<4|n))}i=!i,r=this.nextChar()}else r=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==m[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),i.Cmd.get("[");case 93:return this.nextChar(),i.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),i.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),i.Cmd.get(">>")):i.Cmd.get(">");case 123:return this.nextChar(),i.Cmd.get("{");case 125:return this.nextChar(),i.Cmd.get("}");case 41:throw this.nextChar(),new a.FormatError("Illegal character: ".concat(t))}for(var n=String.fromCharCode(t),r=this.knownCommands,o=r&&void 0!==r[n];(t=this.nextChar())>=0&&!m[t];){var s=n+String.fromCharCode(t);if(o&&void 0===r[s])break;if(128===n.length)throw new a.FormatError("Command token too long: ".concat(n.length));n=s,o=r&&void 0!==r[n]}return"true"===n||"false"!==n&&("null"===n?null:("BI"===n&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(n)))}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=v;var y=function(){function e(){d(this,e)}return u(e,null,[{key:"create",value:function(e){function t(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}var n,r,o=new p({lexer:new v(e),xref:null}),s=o.getObj(),l=o.getObj(),c=o.getObj(),u=o.getObj();if(!(Number.isInteger(s)&&Number.isInteger(l)&&(0,i.isCmd)(c,"obj")&&(0,i.isDict)(u)&&(0,a.isNum)(n=u.get("Linearized"))&&n>0))return null;if((r=t(u,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:r,hints:function(e){var t,n=e.get("H");if(Array.isArray(n)&&(2===(t=n.length)||4===t)){for(var r=0;r0))throw new Error("Hint (".concat(r,") in the linearization dictionary is invalid."))}return n}throw new Error("Hint array in the linearization dictionary is invalid.")}(u),objectNumberFirst:t(u,"O"),endFirst:t(u,"E"),numPages:t(u,"N"),mainXRefEntriesOffset:t(u,"T"),pageFirst:u.has("P")?t(u,"P",!0):0}}}]),e}();t.Linearization=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var r=n(2),a=n(4),i=n(7),o=function(){function e(e,t,n,r){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.bytes,r=this.pos,a=this.end;if(!e){var i=n.subarray(r,a);return t?new Uint8ClampedArray(i):i}var o=r+e;o>a&&(o=a),this.pos=o;var s=n.subarray(r,o);return t?new Uint8ClampedArray(s):s},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBytes(e,t);return this.pos-=n.length,n},getByteRange:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,n,r){return new e(this.bytes.buffer,t,n,r)}},e}();t.Stream=o;var l=function(){function e(e){var t=(0,r.stringToBytes)(e);o.call(this,t)}return e.prototype=o.prototype,e}();t.StringStream=l;var c=function(){var e=new Uint8Array(0);function t(t){if(this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=e,this.minBufferLength=512,t)for(;this.minBufferLength1&&void 0!==arguments[1]&&arguments[1],r=this.pos;if(e){for(this.ensureBuffer(r+e),t=r+e;!this.eof&&this.bufferLengtha&&(t=a)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;var i=this.buffer.subarray(r,t);return!n||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBytes(e,t);return this.pos-=n.length,n},makeSubStream:function(e,t,n){for(var r=e+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new o(this.buffer,e,t,n)},getByteRange:function(e,t){(0,r.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},t}();t.DecodeStream=c;var u=function(){function e(e){this.streams=e;for(var t=0,n=0,r=e.length;n>e,this.codeSize=a-=e,t},o.prototype.getCode=function(e){for(var t,n=this.str,a=e[0],i=e[1],o=this.codeSize,s=this.codeBuf;o>16,u=65535&l;if(c<1||o>c,this.codeSize=o-c,u},o.prototype.generateHuffmanTable=function(e){var t,n=e.length,r=0;for(t=0;tr&&(r=e[t]);for(var a=1<>=1;for(t=u;t>=1)){var u,d;if(1===c)u=a,d=i;else{if(2!==c)throw new r.FormatError("Unknown block type in flate stream");var f,h=this.getBits(5)+257,p=this.getBits(5)+1,m=this.getBits(4)+4,g=new Uint8Array(e.length);for(f=0;f0;)k[f++]=w}u=this.generateHuffmanTable(k.subarray(0,h)),d=this.generateHuffmanTable(k.subarray(h,x))}for(var A=(o=this.buffer)?o.length:0,_=this.bufferLength;;){var O=this.getCode(u);if(O<256)_+1>=A&&(A=(o=this.ensureBuffer(_+1)).length),o[_++]=O;else{if(256===O)return void(this.bufferLength=_);var P=(O=t[O-=257])>>16;P>0&&(P=this.getBits(P)),s=(65535&O)+P,O=this.getCode(d),(P=(O=n[O])>>16)>0&&(P=this.getBits(P));var E=(65535&O)+P;_+s>=A&&(A=(o=this.ensureBuffer(_+s)).length);for(var T=0;T15))throw new r.FormatError("Unsupported predictor: ".concat(i));this.readBlock=2===i?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var o=this.colors=n.get("Colors")||1,s=this.bits=n.get("BitsPerComponent")||8,l=this.columns=n.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=l*o*s+7>>3,c.call(this,t),this}return e.prototype=Object.create(c.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,l=0,c=0,u=0,d=t;if(1===r&&1===a)for(o=0;o>1,f^=f>>2,s=(1&(f^=f>>4))<<7,n[d++]=f}else if(8===r){for(o=0;o>8&255,n[d++]=255&p}}else{var m=new Uint8Array(a+1),g=(1<>c-r)&g,c-=r,l=l<=8&&(n[y++]=l>>u-8&255,u-=8);u>0&&(n[y++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var i=this.bufferLength,o=this.ensureBuffer(i+e),s=o.subarray(i-e,i);0===s.length&&(s=new Uint8Array(e));var l,c,u,d=i;switch(n){case 0:for(l=0;l>1)+a[l];for(;l>1)+a[l]&255,d++;break;case 4:for(l=0;l0;e=(0,this.decrypt)(e,!t);var n,r=this.bufferLength,a=e.length,i=this.ensureBuffer(r+a);for(n=0;n=0;--r)n[a+r]=255&s,s>>=8}}else this.eof=!0},e}();t.Ascii85Stream=p;var m=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),c.call(this,t)}return e.prototype=Object.create(c.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,a=this.firstDigit,i=0,o=e.length;i=48&&l<=57)s=15&l;else{if(!(l>=65&&l<=70||l>=97&&l<=102)){if(62===l){this.eof=!0;break}continue}s=9+(15&l)}a<0?a=s:(n[r++]=a<<4|s,a=-1)}a>=0&&this.eof&&(n[r++]=a<<4,a=-1),this.firstDigit=a,this.bufferLength=r}else this.eof=!0},e}();t.AsciiHexStream=m;var g=function(){function e(e,t){this.str=e,this.dict=e.dict,c.call(this,t)}return e.prototype=Object.create(c.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,n=this.bufferLength,r=e[0];if(r<128){if((t=this.ensureBuffer(n+r+1))[n++]=e[1],r>0){var a=this.str.getBytes(r);t.set(a,n),n+=r}}else{r=257-r;var i=e[1];t=this.ensureBuffer(n+r+1);for(var o=0;o>>t&(1<0;if(v<256)f[0]=v,h=1;else{if(!(v>=258)){if(256===v){u=9,o=258,h=0;continue}this.eof=!0,delete this.lzwState;break}if(v=0;t--)f[t]=s[n],n=c[n];else f[h++]=f[0]}if(y&&(c[o]=d,l[o]=l[d]+1,s[o]=f[0],u=++o+i&o+i-1?u:0|Math.min(Math.log(o+i)/.6931471805599453+1,12)),d=v,r<(p+=h)){do{r+=512}while(r1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!==typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;var n,r=t.EndOfBlock;for(null!==r&&void 0!==r||(r=!0),this.eoblock=r,this.black=t.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;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return l.prototype={readNextChar:function(){if(this.eof)return-1;var t,n,a,i,o,s=this.refLine,l=this.codingLine,c=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var u,d,f;if(this.err=!1,this.nextLine2D){for(i=0;l[i]=64);do{d+=f=this._getWhiteCode()}while(f>=64)}else{do{u+=f=this._getWhiteCode()}while(f>=64);do{d+=f=this._getBlackCode()}while(f>=64)}for(this._addPixels(l[this.codingPos]+u,n),l[this.codingPos]0?--t:++t;s[t]<=l[this.codingPos]&&s[t]0?--t:++t;s[t]<=l[this.codingPos]&&s[t]0?--t:++t;s[t]<=l[this.codingPos]&&s[t]=64);else do{u+=f=this._getWhiteCode()}while(f>=64);this._addPixels(l[this.codingPos]+u,n),n^=1}var h=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(u=this._lookBits(12),this.eoline)for(;u!==e&&1!==u;)this._eatBits(1),u=this._lookBits(12);else for(;0===u;)this._eatBits(1),u=this._lookBits(12);1===u?(this._eatBits(12),h=!0):u===e&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&h&&this.byteAlign){if(1===(u=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(i=0;i<4;++i)1!==(u=this._lookBits(12))&&(0,r.info)("bad rtc code: "+u),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((u=this._lookBits(13))===e)return this.eof=!0,-1;if(u>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&u))}l[0]>0?this.outputBits=l[this.codingPos=0]:this.outputBits=l[this.codingPos=1],this.row++}if(this.outputBits>=8)o=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&l[this.codingPos]a?(o<<=a,1&this.codingPos||(o|=255>>8-a),this.outputBits-=a,a=0):(o<<=this.outputBits,1&this.codingPos||(o|=255>>8-this.outputBits),a-=this.outputBits,this.outputBits=0,l[this.codingPos]0&&(o<<=a,a=0))}while(a)}return this.black&&(o^=255),o},_addPixels:function(e,t){var n=this.codingLine,a=this.codingPos;e>n[a]&&(e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,n[a]=e),this.codingPos=a},_addPixelsNeg:function(e,t){var n=this.codingLine,a=this.codingPos;if(e>n[a])e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,n[a]=e;else if(e0&&e=i){var l=r[s-i];if(l[0]===o)return this._eatBits(o),[!0,l[1],!0]}}return[!1,0,!1]},_getTwoDimCode:function(){var n,a=0;if(this.eoblock){if(a=this._lookBits(7),(n=t[a])&&n[0]>0)return this._eatBits(n[0]),n[1]}else{var i=this._findTableCode(1,7,t);if(i[0]&&i[2])return i[1]}return(0,r.info)("Bad two dim code"),e},_getWhiteCode:function(){var t,i=0;if(this.eoblock){if((i=this._lookBits(12))===e)return 1;if((t=i>>5===0?n[i]:a[i>>3])[0]>0)return this._eatBits(t[0]),t[1]}else{var o=this._findTableCode(1,9,a);if(o[0])return o[1];if((o=this._findTableCode(11,12,n))[0])return o[1]}return(0,r.info)("bad white code"),this._eatBits(1),1},_getBlackCode:function(){var t,n;if(this.eoblock){if((t=this._lookBits(13))===e)return 1;if((n=t>>7===0?i[t]:t>>9===0&&t>>7!==0?o[(t>>1)-64]:s[t>>7])[0]>0)return this._eatBits(n[0]),n[1]}else{var a=this._findTableCode(2,6,s);if(a[0])return a[1];if((a=this._findTableCode(7,12,o,64))[0])return a[1];if((a=this._findTableCode(10,13,i))[0])return a[1]}return(0,r.info)("bad black code"),this._eatBits(1),1},_lookBits:function(t){for(var n;this.inputBits>16-t;this.inputBuf=this.inputBuf<<8|n,this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t},_eatBits:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},l}();t.CCITTFaxDecoder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var r=n(4),a=n(11),i=n(15),o=n(2),s=function(){function e(e,t,n,r){this.stream=e,this.maybeLength=t,this.dict=n,this.params=r,a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new i.Jbig2Image,t=[];if((0,r.isDict)(this.params)){var n=this.params.get("JBIG2Globals");if((0,r.isStream)(n)){var a=n.getBytes();t.push({data:a,start:0,end:a.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var o=e.parseChunks(t),s=o.length,l=0;l>>0}var o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?s:s>0?-s:null}function l(e,t,n){for(var r=e.getContexts("IAID"),a=1,i=0;i=M&&_=I)for(z=z<<1&y,h=0;h=0&&P=0&&(T=F[O][P])&&(z|=T<=e?M<<=1:M=M<<1|C[j][N];for(f=0;f=k||N<0||N>=x?M<<=1:M=M<<1|r[j][N];var I=A.readBit(_,M);E[T]=I}}return C}function g(e,t,r,a,i,o,c,u,d,f,h,p,g,v,y,b,w,x,k){if(e&&t)throw new s("refinement with Huffman is not supported");var S,C,A=[];for(S=0;S1&&(N=e?k.readBits(x):n(P,"IAIT",O));var M=c*E+N,I=e?v.symbolIDTable.decode(k):l(P,O,d),D=t&&(e?k.readBit():n(P,"IARI",O)),R=u[I],L=R[0].length,F=R.length;if(D){var B=n(P,"IARDW",O),U=n(P,"IARDH",O);R=m(L+=B,F+=U,y,R,(B>>1)+n(P,"IARDX",O),(U>>1)+n(P,"IARDY",O),!1,b,w)}var $,z,q,G=M-(1&p?0:F-1),H=j-(2&p?L-1:0);if(f){for($=0;$>5&7,d=[31&l],f=t+6;if(7===l){u=536870911&(0,a.readUint32)(e,f-1),f+=3;var h=u+7>>3;for(d[0]=e[f++];--h>0;)d.push(e[f++])}else if(5===l||6===l)throw new s("invalid referred-to flags");n.retainBits=d;var p=4;n.number<=256?p=1:n.number<=65536&&(p=2);var m,g,v=[];for(m=0;m>>24&255,S[3]=x.height>>16&255,S[4]=x.height>>8&255,S[5]=255&x.height,m=f,g=e.length;m>2&3,f.huffmanDWSelector=h>>4&3,f.bitmapSizeSelector=h>>6&1,f.aggregationInstancesSelector=h>>7&1,f.bitmapCodingContextUsed=!!(256&h),f.bitmapCodingContextRetained=!!(512&h),f.template=h>>10&3,f.refinementTemplate=h>>12&1,u+=2,!f.huffman){for(o=0===f.template?4:1,r=[],i=0;i>2&3,p.stripSize=1<>4&3,p.transposed=!!(64&m),p.combinationOperator=m>>7&3,p.defaultPixelValue=m>>9&1,p.dsOffset=m<<17>>27,p.refinementTemplate=m>>15&1,p.huffman){var g=(0,a.readUint16)(c,u);u+=2,p.huffmanFS=3&g,p.huffmanDS=g>>2&3,p.huffmanDT=g>>4&3,p.huffmanRefinementDW=g>>6&3,p.huffmanRefinementDH=g>>8&3,p.huffmanRefinementDX=g>>10&3,p.huffmanRefinementDY=g>>12&3,p.huffmanRefinementSizeSelector=!!(16384&g)}if(p.refinement&&!p.refinementTemplate){for(r=[],i=0;i<2;i++)r.push({x:(0,a.readInt8)(c,u),y:(0,a.readInt8)(c,u+1)}),u+=2;p.refinementAt=r}p.numberOfSymbolInstances=(0,a.readUint32)(c,u),u+=4,n=[p,l.referredTo,c,u,d];break;case 16:var v={},y=c[u++];v.mmr=!!(1&y),v.template=y>>1&3,v.patternWidth=c[u++],v.patternHeight=c[u++],v.maxPatternIndex=(0,a.readUint32)(c,u),u+=4,n=[v,l.number,c,u,d];break;case 22:case 23:var x={};x.info=b(c,u),u+=w;var k=c[u++];x.mmr=!!(1&k),x.template=k>>1&3,x.enableSkip=!!(8&k),x.combinationOperator=k>>4&7,x.defaultPixelValue=k>>7&1,x.gridWidth=(0,a.readUint32)(c,u),u+=4,x.gridHeight=(0,a.readUint32)(c,u),u+=4,x.gridOffsetX=4294967295&(0,a.readUint32)(c,u),u+=4,x.gridOffsetY=4294967295&(0,a.readUint32)(c,u),u+=4,x.gridVectorX=(0,a.readUint16)(c,u),u+=2,x.gridVectorY=(0,a.readUint16)(c,u),u+=2,n=[x,l.referredTo,c,u,d];break;case 38:case 39:var S={};S.info=b(c,u),u+=w;var C=c[u++];if(S.mmr=!!(1&C),S.template=C>>1&3,S.prediction=!!(8&C),!S.mmr){for(o=0===S.template?4:1,r=[],i=0;i>2&1,A.combinationOperator=_>>3&3,A.requiresBuffer=!!(32&_),A.combinationOperatorOverride=!!(64&_),n=[A];break;case 49:case 50:case 51:case 62:break;case 53:n=[l.number,c,u,d];break;default:throw new s("segment type ".concat(l.typeName,"(").concat(l.type,")")+" is not implemented")}var O="on"+l.typeName;O in t&&t[O].apply(t,n)}function k(e,t){for(var n=0,r=e.length;n0&&this.rootNode.buildTree(a,a.prefixLength-1)}}S.prototype={onPageInformation:function(e){this.currentPageInfo=e;var t=e.width+7>>3,n=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var r=0,a=n.length;r>3,d=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,f=this.buffer,h=128>>(7&e.x),p=e.y*u+(e.x>>3);switch(d){case 0:for(n=0;n>=1)||(a=128,i++);p+=u}break;case 2:for(n=0;n>=1)||(a=128,i++);p+=u}break;default:throw new s("operator ".concat(d," is not supported"))}},onImmediateGenericRegion:function(e,n,r,a){var i=e.info,o=new t(n,r,a),s=p(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(i,s)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,i,o,c,u){var d,f;e.huffman&&(d=function(e,t,n){var r,a,i,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:r=P(e.huffmanDHSelector+4);break;case 3:r=T(l,t,n),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=P(e.huffmanDWSelector+2);break;case 3:a=T(l,t,n),l++;break;default:throw new s("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=T(l,t,n),l++):i=P(1),o=e.aggregationInstancesSelector?T(l,t,n):P(1),{tableDeltaHeight:r,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:o}}(e,i,this.customTables),f=new E(o,c,u));var h=this.symbols;h||(this.symbols=h={});for(var v=[],y=0,b=i.length;y1)T=g(e,t,_,k,0,I,1,r.concat(x),S,0,0,1,0,c,f,h,v,0,y);else{var D=l(A,C,S),R=n(A,"IARDX",C),L=n(A,"IARDY",C);T=m(_,k,f,D=32){var f=void 0,h=void 0,p=void 0;switch(d){case 32:if(0===u)throw new s("no previous value in symbol ID table");h=a.readBits(2)+3,f=i[u-1].prefixLength;break;case 33:h=a.readBits(3)+3,f=0;break;case 34:h=a.readBits(7)+11,f=0;break;default:throw new s("invalid code length in symbol ID table")}for(p=0;p=0;y--)T=e?N(P,u,d,!0):p(!1,u,d,n,!1,null,O,v),$[y]=T;for(j=0;j=0;b--)D|=(I=$[b][j][M]^I)<>8,(L=f+j*g+M*m>>8)>=0&&L+C<=r&&F>=0&&F+A<=i)for(y=0;y=i))for(U=x[q],B=R[y],b=0;b=0&&z>1&7),d=1+(o>>4&7),f=[],h=s;do{r=c.readBits(u),i=c.readBits(d),f.push(new C([h,r,i,0])),h+=1<>t&1;if(t<=0)this.children[n]=new A(e);else{var r=this.children[n];r||(this.children[n]=r=new A(null)),r.buildTree(e,t-1)}},decodeNode:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var n=this.children[e.readBit()];if(!n)throw new s("invalid Huffman data");return n.decodeNode(e)}},_.prototype={decode:function(e){return this.rootNode.decodeNode(e)},assignPrefixCodes:function(e){for(var t=e.length,n=0,r=0;r>f&1,f--}if(r&&!c)for(var p=0;p<5&&-1!==s.readNextChar();p++);return l}function M(){}return E.prototype={readBit:function(){if(this.shift<0){if(this.position>=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e},readBits:function(e){var t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<=this.end?-1:this.data[this.position++]}},M.prototype={parseChunks:function(e){return function(e){for(var t=new S,n=0,r=e.length;n>=1;return{imgData:h,width:u,height:d}}(e),n=t.imgData,r=t.width,i=t.height;return this.width=r,this.height=i,n}},M}();t.Jbig2Image=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;var r=[{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}],a=function(){function e(t,n,r){d(this,e),this.data=t,this.bp=n,this.dataEnd=r,this.chigh=t[n],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}return u(e,[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var n,a=e[t]>>1,i=1&e[t],o=r[a],s=o.qe,l=this.a-s;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0===(32768&l));return this.a=l,e[t]=a<<1|i,n}}]),e}();t.ArithmeticDecoder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=n(2),a=n(11),i=n(4),o=n(18),s=function(){function e(e,t,n,r){for(var i;-1!==(i=e.getByte());)if(255===i){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=n,this.params=r,a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,r.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var n=this.dict.get("BitsPerComponent")||8,r=t.length,a=new Int32Array(r),s=!1,l=(1<10*a){o=!1;break}break;case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 217:s=!0;break;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:var c=n.getUint16();c>2?n.skip(c-2):n.skip(-2);break;case 255:n.skip(-1)}if(s)break}return n.pos=i,(0,r.shadow)(this,"maybeValidDimensions",o)},configurable:!0}),e.prototype.getIR=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,r.createObjectURL)(this.bytes,"image/jpeg",e)},e}();t.JpegStream=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var r=n(2),a=n(7),i=function(e){f(n,e);var t=h(n);function n(e){return d(this,n),t.call(this,"JPEG error: ".concat(e))}return u(n)}(r.BaseException),o=function(e){f(n,e);var t=h(n);function n(e,r){var a;return d(this,n),(a=t.call(this,e)).scanLines=r,a}return u(n)}(r.BaseException),s=function(e){f(n,e);var t=h(n);function n(){return d(this,n),t.apply(this,arguments)}return u(n)}(r.BaseException),l=function(){var e=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]),t=4017,n=799,l=3406,c=2276,u=1567,d=3784,f=5793,h=2896;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.decodeTransform,n=void 0===t?null:t,r=e.colorTransform,a=void 0===r?-1:r;this._decodeTransform=n,this._colorTransform=a}function m(e,t){for(var n,r,a=0,i=[],o=16;o>0&&!e[o-1];)o--;i.push({children:[],index:0});var s,l=i[0];for(n=0;n0;)l=i.pop();for(l.index++,i.push(l);i.length<=n;)i.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;a++}n+19&&void 0!==arguments[9]&&arguments[9],v=l.mcusPerLine,y=l.progressive,b=n,x=0,k=0;function S(){if(k>0)return k--,x>>k&1;if(255===(x=t[n++])){var e=t[n++];if(e){if(220===e&&m){n+=2;var r=(0,a.readUint16)(t,n);if(n+=2,r>0&&r!==l.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",r)}else if(217===e){if(m){var c=8*T;if(c>0&&c>>7}function C(e){for(var t=e;;){switch(typeof(t=t[S()])){case"number":return t;case"object":continue}throw new i("invalid huffman sequence")}}function A(e){for(var t=0;e>0;)t=t<<1|S(),e--;return t}function _(e){if(1===e)return 1===S()?1:-1;var t=A(e);return t>=1<0)P--;else for(var r=d,a=f;r<=a;){var i=C(t.huffmanTableAC),o=15&i,s=i>>4;if(0!==o){var l=e[r+=s];t.blockData[n+l]=_(o)*(1<>4,0===(r=15&a))l<15?(P=A(l)+(1<>4;if(0!==s){var c=e[i+=l];t.blockData[n+c]=_(s),i++}else{if(l<15)break;i+=16}}};var U,$,z,q,G=0;for($=1===B?c[0].blocksPerLine*c[0].blocksPerColumn:v*l.mcusPerColumn;G<$;){var H=u?Math.min($-G,u):$;for(I=0;I=65488&&W<=65495))break;n+=2}return(U=w(t,n))&&U.invalid&&((0,r.warn)("decodeScan - unexpected Scan data, current marker is: "+U.invalid),n=U.offset),n-b}function y(e,r,a){var o,s,p,m,g,v,y,b,w,x,k,S,C,A,_,O,P,E=e.quantizationTable,T=e.blockData;if(!E)throw new i("missing required Quantization Table.");for(var j=0;j<64;j+=8)w=T[r+j],x=T[r+j+1],k=T[r+j+2],S=T[r+j+3],C=T[r+j+4],A=T[r+j+5],_=T[r+j+6],O=T[r+j+7],w*=E[j],0!==(x|k|S|C|A|_|O)?(x*=E[j+1],k*=E[j+2],S*=E[j+3],C*=E[j+4],A*=E[j+5],_*=E[j+6],O*=E[j+7],s=(o=(o=f*w+128>>8)+(s=f*C+128>>8)+1>>1)-s,P=(p=k)*d+(m=_)*u+128>>8,p=p*u-m*d+128>>8,y=(g=(g=h*(x-O)+128>>8)+(y=A<<4)+1>>1)-y,v=(b=(b=h*(x+O)+128>>8)+(v=S<<4)+1>>1)-v,m=(o=o+(m=P)+1>>1)-m,p=(s=s+p+1>>1)-p,P=g*c+b*l+2048>>12,g=g*l-b*c+2048>>12,b=P,P=v*n+y*t+2048>>12,v=v*t-y*n+2048>>12,y=P,a[j]=o+b,a[j+7]=o-b,a[j+1]=s+y,a[j+6]=s-y,a[j+2]=p+v,a[j+5]=p-v,a[j+3]=m+g,a[j+4]=m-g):(P=f*w+512>>10,a[j]=P,a[j+1]=P,a[j+2]=P,a[j+3]=P,a[j+4]=P,a[j+5]=P,a[j+6]=P,a[j+7]=P);for(var N=0;N<8;++N)w=a[N],0!==((x=a[N+8])|(k=a[N+16])|(S=a[N+24])|(C=a[N+32])|(A=a[N+40])|(_=a[N+48])|(O=a[N+56]))?(s=(o=4112+((o=f*w+2048>>12)+(s=f*C+2048>>12)+1>>1))-s,P=(p=k)*d+(m=_)*u+2048>>12,p=p*u-m*d+2048>>12,m=P,y=(g=(g=h*(x-O)+2048>>12)+(y=A)+1>>1)-y,v=(b=(b=h*(x+O)+2048>>12)+(v=S)+1>>1)-v,P=g*c+b*l+2048>>12,g=g*l-b*c+2048>>12,b=P,P=v*n+y*t+2048>>12,v=v*t-y*n+2048>>12,(w=(o=o+m+1>>1)+b)<16?w=0:w>=4080?w=255:w>>=4,(x=(s=s+p+1>>1)+(y=P))<16?x=0:x>=4080?x=255:x>>=4,(k=(p=s-p)+v)<16?k=0:k>=4080?k=255:k>>=4,(S=(m=o-m)+g)<16?S=0:S>=4080?S=255:S>>=4,(C=m-g)<16?C=0:C>=4080?C=255:C>>=4,(A=p-v)<16?A=0:A>=4080?A=255:A>>=4,(_=s-y)<16?_=0:_>=4080?_=255:_>>=4,(O=o-b)<16?O=0:O>=4080?O=255:O>>=4,T[r+N]=w,T[r+N+8]=x,T[r+N+16]=k,T[r+N+24]=S,T[r+N+32]=C,T[r+N+40]=A,T[r+N+48]=_,T[r+N+56]=O):(P=(P=f*w+8192>>14)<-2040?0:P>=2024?255:P+2056>>4,T[r+N]=P,T[r+N+8]=P,T[r+N+16]=P,T[r+N+24]=P,T[r+N+32]=P,T[r+N+40]=P,T[r+N+48]=P,T[r+N+56]=P)}function b(e,t){for(var n=t.blocksPerLine,r=t.blocksPerColumn,a=new Int16Array(64),i=0;i2&&void 0!==arguments[2]?arguments[2]:t,r=e.length-1,i=n=r)return null;var o=(0,a.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=(0,a.readUint16)(e,i);!(s>=65472&&s<=65534);){if(++i>=r)return null;s=(0,a.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}return p.prototype={parse:function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dnlScanLines,l=void 0===n?null:n;function c(){var e=(0,a.readUint16)(t,h),n=(h+=2)+e-2,i=w(t,n,h);i&&i.invalid&&((0,r.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),n=i.offset);var o=t.subarray(h,n);return h+=o.length,o}function u(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV),r=0;r>4===0)for(_=0;_<64;_++)j[e[_]]=t[h++];else{if(T>>4!==1)throw new i("DQT - invalid table spec");for(_=0;_<64;_++)j[e[_]]=(0,a.readUint16)(t,h),h+=2}x[15&T]=j}break;case 65472:case 65473:case 65474:if(d)throw new i("Only single frame JPEGs supported");h+=2,(d={}).extended=65473===C,d.progressive=65474===C,d.precision=t[h++];var N=(0,a.readUint16)(t,h);h+=2,d.scanLines=l||N,d.samplesPerLine=(0,a.readUint16)(t,h),h+=2,d.components=[],d.componentIds={};var M,I=t[h++],D=0,R=0;for(A=0;A>4,F=15&t[h+1];D>4===0?S:k)[15&$]=m(z,G)}break;case 65501:h+=2,f=(0,a.readUint16)(t,h),h+=2;break;case 65498:var H=1===++y&&!l;h+=2;var W,V=t[h++],K=[];for(A=0;A>4],W.huffmanTableAC=k[15&X],K.push(W)}var Z=t[h++],J=t[h++],Q=t[h++];try{var ee=v(t,h,d,K,f,Z,J,Q>>4,15&Q,H);h+=ee}catch(re){if(re instanceof o)return(0,r.warn)("".concat(re.message," -- attempting to re-parse the JPEG image.")),this.parse(t,{dnlScanLines:re.scanLines});if(re instanceof s){(0,r.warn)("".concat(re.message," -- ignoring the rest of the image data."));break e}throw re}break;case 65500:h+=4;break;case 65535:255!==t[h]&&h--;break;default:var te=w(t,h-2,h-3);if(te&&te.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+te.invalid),h=te.offset;break}if(h>=t.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new i("JpegImage.parse - unknown marker: "+C.toString(16))}C=(0,a.readUint16)(t,h),h+=2}for(this.width=d.samplesPerLine,this.height=d.scanLines,this.jfif=p,this.adobe=g,this.components=[],A=0;A2&&void 0!==arguments[2]&&arguments[2],m=this.width/e,g=this.height/t,v=0,y=this.components.length,b=e*t*y,w=new Uint8ClampedArray(b),x=new Uint32Array(e),k=4294967288;for(l=0;l>8)+S[u+1];return w},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb:function(e){for(var t,n,r,a=0,i=e.length;a4)throw new i("Unsupported color mode");var l=this._getLinearizedBlockData(t,n,s);if(1===this.numComponents&&a){for(var c=l.length,u=new Uint8ClampedArray(3*c),d=0,f=0;f0?Math.min(r.xcb,a.PPx-1):Math.min(r.xcb,a.PPx),a.ycb_=n>0?Math.min(r.ycb,a.PPy-1):Math.min(r.ycb,a.PPy),a}function c(e,t,n){var r=1<t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,c=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,u=l*c;t.precinctParameters={precinctWidth:r,precinctHeight:a,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function u(e,t,n){var r,a,i,o,s=n.xcb_,l=n.ycb_,c=1<>s,f=t.tby0>>l,h=t.tbx1+c-1>>s,p=t.tby1+u-1>>l,m=t.resolution.precinctParameters,g=[],v=[];for(a=f;ay.cbxMax&&(y.cbxMax=r),ay.cbyMax&&(y.cbyMax=a)):v[o]=y={cbxMin:r,cbyMin:a,cbxMax:r,cbyMax:a},i.precinct=y}t.codeblockParameters={codeblockWidth:s,codeblockHeight:l,numcodeblockwide:h-d+1,numcodeblockhigh:p-f+1},t.codeblocks=g,t.precincts=v}function d(e,t,n){for(var r=[],a=e.subbands,i=0,o=a.length;ie.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],n=t.precinctParameters.numprecincts;he.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],n=t.precinctParameters.numprecincts;he.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[n],s=i.precinctParameters.numprecincts;if(!(a>=s)){for(;t=0;--g){var v=l.resolutions[g],y=m*v.precinctParameters.precinctWidth,b=m*v.precinctParameters.precinctHeight;d=Math.min(d,y),f=Math.min(f,b),h=Math.max(h,v.precinctParameters.numprecinctswide),p=Math.max(p,v.precinctParameters.numprecinctshigh),u[g]={width:y,height:b},m<<=1}n=Math.min(n,d),r=Math.min(r,f),a=Math.max(a,h),i=Math.max(i,p),o[s]={resolutions:u,minWidth:d,minHeight:f,maxNumWide:h,maxNumHigh:p}}return{components:o,minWidth:n,minHeight:r,maxNumWide:a,maxNumHigh:i}}function b(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],a=t.Csiz,i=0;i>>(s-=e)&(1<0;){var B=k.shift();void 0===(w=B.codeblock).data&&(w.data=[]),w.data.push({data:t,start:n+o,end:n+o+B.dataLength,codingpasses:B.codingpasses}),o+=B.dataLength}}}return o}function x(e,t,n,r,a,o,s,l){for(var c=r.tbx0,u=r.tby0,d=r.tbx1-r.tbx0,f=r.codeblocks,h="H"===r.type.charAt(0)?1:0,p="H"===r.type.charAt(1)?t:0,m=0,g=f.length;m=o?I:I*(1<0?1-v:0));var O=y.subbands[S],T=e[O.type];x(k,b,0,O,h?1:Math.pow(2,f+T-_)*(1+A/2048),u+_-1,h,d)}m.push({width:b,height:w,items:k})}var j=p.calculate(m,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:j.width,height:j.height,items:j.items}}function S(e,t){for(var n=e.SIZ.Csiz,r=e.tiles[t],a=0;a>24&255,l>>16&255,l>>8&255,255&l);(0,r.warn)("Unsupported header type "+l+" ("+h+")")}u&&(t+=c)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;)if(65361===(t<<8|(t=e.getByte()))){e.skip(4);var n=e.getInt32()>>>0,r=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);var s=e.getUint16();return this.width=n-a,this.height=r-i,this.componentsCount=s,void(this.bitsPerComponent=8)}throw new o("No size marker found in JPX stream")},parseCodestream:function(e,t,i){var l={},c=!1;try{for(var u=t;u+1>5,p=[];f>3,E.mu=0):(E.epsilon=e[f]>>3,E.mu=(7&e[f])<<8|e[f+1],f+=2),p.push(E)}P.SPqcds=p,l.mainHeader?l.QCD=P:(l.currentTile.QCD=P,l.currentTile.QCC=[]);break;case 65373:y=(0,a.readUint16)(e,u);var T,j={};switch(f=u+2,l.SIZ.Csiz<257?T=e[f++]:(T=(0,a.readUint16)(e,f),f+=2),31&(h=e[f++])){case 0:m=8,g=!0;break;case 1:m=16,g=!1;break;case 2:m=16,g=!0;break;default:throw new Error("Invalid SQcd value "+h)}for(j.noQuantization=8===m,j.scalarExpounded=g,j.guardBits=h>>5,p=[];f>3,E.mu=0):(E.epsilon=e[f]>>3,E.mu=(7&e[f])<<8|e[f+1],f+=2),p.push(E);j.SPqcds=p,l.mainHeader?l.QCC[T]=j:l.currentTile.QCC[T]=j;break;case 65362:y=(0,a.readUint16)(e,u);var N={};f=u+2;var M=e[f++];N.entropyCoderWithCustomPrecincts=!!(1&M),N.sopMarkerUsed=!!(2&M),N.ephMarkerUsed=!!(4&M),N.progressionOrder=e[f++],N.layersCount=(0,a.readUint16)(e,f),f+=2,N.multipleComponentTransform=e[f++],N.decompositionLevelsCount=e[f++],N.xcb=2+(15&e[f++]),N.ycb=2+(15&e[f++]);var I=e[f++];if(N.selectiveArithmeticCodingBypass=!!(1&I),N.resetContextProbabilities=!!(2&I),N.terminationOnEachCodingPass=!!(4&I),N.verticallyStripe=!!(8&I),N.predictableTermination=!!(16&I),N.segmentationSymbolUsed=!!(32&I),N.reversibleTransformation=e[f++],N.entropyCoderWithCustomPrecincts){for(var D=[];f>4})}N.precinctsSizes=D}var L=[];if(N.selectiveArithmeticCodingBypass&&L.push("selectiveArithmeticCodingBypass"),N.resetContextProbabilities&&L.push("resetContextProbabilities"),N.terminationOnEachCodingPass&&L.push("terminationOnEachCodingPass"),N.verticallyStripe&&L.push("verticallyStripe"),N.predictableTermination&&L.push("predictableTermination"),L.length>0)throw c=!0,new Error("Unsupported COD options ("+L.join(", ")+")");l.mainHeader?l.COD=N:(l.currentTile.COD=N,l.currentTile.COC=[]);break;case 65424:y=(0,a.readUint16)(e,u),(v={}).index=(0,a.readUint16)(e,u+2),v.length=(0,a.readUint32)(e,u+4),v.dataEnd=v.length+u-2,v.partIndex=e[u+8],v.partsCount=e[u+9],l.mainHeader=!1,0===v.partIndex&&(v.COD=l.COD,v.COC=l.COC.slice(0),v.QCD=l.QCD,v.QCC=l.QCC.slice(0)),l.currentTile=v;break;case 65427:0===(v=l.currentTile).partIndex&&(S(l,v.index),b(l)),w(l,e,u,y=v.dataEnd-u);break;case 65365:case 65367:case 65368:case 65380:y=(0,a.readUint16)(e,u);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+d.toString(16))}u+=y}}catch(F){if(c||this.failOnCorruptedImage)throw new o(F.message);(0,r.warn)("JPX: Trying to recover from: "+F.message)}this.tiles=function(e){for(var t=e.SIZ,n=e.components,r=t.Csiz,a=[],i=0,o=e.tiles.length;i>2);y[w++]=E+g>>u,y[w++]=E>>u,y[w++]=E+m>>u}else for(f=0;f>u,y[w++]=p-.34413*m-.71414*g>>u,y[w++]=p+1.772*m>>u;if(x)for(f=0,w=3;f>u}else for(s=0;s>u,w+=r}a.push(b)}return a}(l),this.width=l.SIZ.Xsiz-l.SIZ.XOsiz,this.height=l.SIZ.Ysiz-l.SIZ.YOsiz,this.componentsCount=l.SIZ.Csiz}};var C=function(){function e(e,t){var n=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var r=0;r>=1,t>>=1,r++}r--,(n=this.levels[r]).items[n.index]=a,this.currentLevel=r,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];return--e<0?(this.value=n,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=n,!0)}},e}(),A=function(){function e(e,t,n){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;in)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=n},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];return t.items[t.index]=255,!(--e<0)&&(this.currentLevel=e,(t=this.levels[e]).items[t.index]=n,!0)}},e}(),_=function(){var e=17,t=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]),n=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]),r=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]);function a(e,a,i,o,s){var l;this.width=e,this.height=a,l="HH"===i?r:"HL"===i?n:t,this.contextLabelTable=l;var c,u=e*a;this.neighborsSignificance=new Uint8Array(u),this.coefficentsSign=new Uint8Array(u),c=s>14?new Uint32Array(u):s>6?new Uint16Array(u):new Uint8Array(u),this.coefficentsMagnitude=c,this.processingFlags=new Uint8Array(u);var d=new Uint8Array(u);if(0!==o)for(var f=0;f0,l=t+10&&(r=n-i,s&&(a[r-1]+=16),l&&(a[r+1]+=16),a[r]+=4),e+1=n)break;if(o[f]&=-2,!r[f]&&i[f]){var m=l[i[f]];if(e.readBit(s,m)){var g=this.decodeSignBit(p,d,f);a[f]=g,r[f]=1,this.setNeighborsSignificance(p,d,f),o[f]|=2}c[f]++,o[f]|=1}}},decodeSignBit:function(e,t,n){var r,a,i,o,s,l,c=this.width,u=this.height,d=this.coefficentsMagnitude,f=this.coefficentsSign;o=t>0&&0!==d[n-1],t+10&&0!==d[n-c],e+1=0?(s=9+r,l=this.decoder.readBit(this.contexts,s)):(s=9-r,l=1^this.decoder.readBit(this.contexts,s)),l},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,n=this.width,r=this.height,a=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,l=this.processingFlags,c=n*r,u=4*n,d=0;d>1,l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,d=.443506852043971,f=1.230174104914001;for(r=(t|=0)-3,a=s+4;a--;r+=2)e[r]*=.8128930661159609;for(i=d*e[(r=t-2)-1],a=s+3;a--&&(o=d*e[r+1],e[r]=f*e[r]-i-o,a--);r+=2)i=d*e[(r+=2)+1],e[r]=f*e[r]-i-o;for(i=u*e[(r=t-1)-1],a=s+2;a--&&(o=u*e[r+1],e[r]-=i+o,a--);r+=2)i=u*e[(r+=2)+1],e[r]-=i+o;for(i=c*e[(r=t)-1],a=s+1;a--&&(o=c*e[r+1],e[r]-=i+o,a--);r+=2)i=c*e[(r+=2)+1],e[r]-=i+o;if(0!==s)for(i=l*e[(r=t+1)-1],a=s;a--&&(o=l*e[r+1],e[r]-=i+o,a--);r+=2)i=l*e[(r+=2)+1],e[r]-=i+o},e}(),E=function(){function e(){O.call(this)}return e.prototype=Object.create(O.prototype),e.prototype.filter=function(e,t,n){var r,a,i=n>>1;for(r=t|=0,a=i+1;a--;r+=2)e[r]-=e[r-1]+e[r+1]+2>>2;for(r=t+1,a=i;a--;r+=2)e[r]+=e[r-1]+e[r+1]>>1},e}();return t}();t.JpxImage=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var r=n(2),a=n(4),i=n(11),o=function(){function e(e){this.a=0,this.b=0;var t,n,r=new Uint8Array(256),a=0,i=e.length;for(t=0;t<256;++t)r[t]=t;for(t=0;t<256;++t)a=a+(n=r[t])+e[t%i]&255,r[t]=r[a],r[a]=n;this.s=r}return e.prototype={encryptBlock:function(e){var t,n,r,a=e.length,i=this.a,o=this.b,s=this.s,l=new Uint8Array(a);for(t=0;t>5&255,h[i++]=a>>13&255,h[i++]=a>>21&255,h[i++]=a>>>29&255,h[i++]=0,h[i++]=0,h[i++]=0;var p=new Int32Array(16);for(i=0;i>>32-S)|0,v=x}l=l+v|0,c=c+y|0,u=u+b|0,d=d+w|0}return new Uint8Array([255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&d,d>>8&255,d>>16&255,d>>>24&255])}}();t.calculateMD5=s;var l=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<>>32-e,this.low=this.low<>>e|n<<32-e,this.high=n>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=0|t,this.high=0|n},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function a(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}var o=[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(s,l,c){var u,d,f,h=1779033703,p=3144134277,m=1013904242,g=2773480762,v=1359893119,y=2600822924,b=528734635,w=1541459225,x=64*Math.ceil((c+9)/64),k=new Uint8Array(x);for(u=0;u>>29&255,k[u++]=c>>21&255,k[u++]=c>>13&255,k[u++]=c>>5&255,k[u++]=c<<3&255;var S,C=new Uint32Array(64);for(u=0;u>>10)+C[d-7]+i(C[d-15])+C[d-16];var A,_,O=h,P=p,E=m,T=g,j=v,N=y,M=b,I=w;for(d=0;d<64;++d)A=I+a(j)+t(j,N,M)+o[d]+C[d],_=r(O)+n(O,P,E),I=M,M=N,N=j,j=T+A|0,T=E,E=P,P=O,O=A+_|0;h=h+O|0,p=p+P|0,m=m+E|0,g=g+T|0,v=v+j|0,y=y+N|0,b=b+M|0,w=w+I|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,g>>24&255,g>>16&255,g>>8&255,255&g,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b,w>>24&255,w>>16&255,w>>8&255,255&w])}}();t.calculateSHA256=c;var p=function(){function e(e,t,n,r,a){e.assign(t),e.and(n),a.assign(t),a.not(),a.and(r),e.xor(a)}function t(e,t,n,r,a){e.assign(t),e.and(n),a.assign(t),a.and(r),e.xor(a),a.assign(n),a.and(r),e.xor(a)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function a(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}var o=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];return function(s,c,u,d){var f,h,p,m,g,v,y,b;(d=!!d)?(f=new l(3418070365,3238371032),h=new l(1654270250,914150663),p=new l(2438529370,812702999),m=new l(355462360,4144912697),g=new l(1731405415,4290775857),v=new l(2394180231,1750603025),y=new l(3675008525,1694076839),b=new l(1203062813,3204075428)):(f=new l(1779033703,4089235720),h=new l(3144134277,2227873595),p=new l(1013904242,4271175723),m=new l(2773480762,1595750129),g=new l(1359893119,2917565137),v=new l(2600822924,725511199),y=new l(528734635,4215389547),b=new l(1541459225,327033209));var w,x,k,S=128*Math.ceil((u+17)/128),C=new Uint8Array(S);for(w=0;w>>29&255,C[w++]=u>>21&255,C[w++]=u>>13&255,C[w++]=u>>5&255,C[w++]=u<<3&255;var A=new Array(80);for(w=0;w<80;w++)A[w]=new l(0,0);var _,O,P=new l(0,0),E=new l(0,0),T=new l(0,0),j=new l(0,0),N=new l(0,0),M=new l(0,0),I=new l(0,0),D=new l(0,0),R=new l(0,0),L=new l(0,0),F=new l(0,0),B=new l(0,0);for(w=0;w=1;--l){n=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=n,n=i[14],r=i[10],i[14]=i[6],i[10]=i[2],i[6]=n,i[2]=r,n=i[15],r=i[11],a=i[7],i[15]=i[3],i[11]=n,i[7]=r,i[3]=a;for(var c=0;c<16;++c)i[c]=this._inv_s[i[c]];for(var u=0,d=16*l;u<16;++u,++d)i[u]^=t[d];for(var f=0;f<16;f+=4){var h=this._mix[i[f]],p=this._mix[i[f+1]],m=this._mix[i[f+2]],g=this._mix[i[f+3]];n=h^p>>>8^p<<24^m>>>16^m<<16^g>>>24^g<<8,i[f]=n>>>24&255,i[f+1]=n>>16&255,i[f+2]=n>>8&255,i[f+3]=255&n}}n=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=n,n=i[14],r=i[10],i[14]=i[6],i[10]=i[2],i[6]=n,i[2]=r,n=i[15],r=i[11],a=i[7],i[15]=i[3],i[11]=n,i[7]=r,i[3]=a;for(var v=0;v<16;++v)i[v]=this._inv_s[i[v]],i[v]^=t[v];return i}},{key:"_encrypt",value:function(e,t){var n,r,a,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var l=1;l=p;--h)if(d[h]!==f){f=0;break}u-=f,i[i.length-1]=d.subarray(0,16-f)}}for(var m=new Uint8Array(u),g=0,v=0,y=i.length;g2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,a=this.buffer,i=this.bufferPosition;if(n)this.iv=n;else{for(var o=0;i<16&&o=256&&(s=255&(27^s)));for(var u=0;u<4;++u)n[l]=r^=n[l-32],n[++l]=a^=n[l-32],n[++l]=i^=n[l-32],n[++l]=o^=n[l-32],l++}return n}}]),n}(v);t.AES256Cipher=b;var w=function(){function e(e,t){if(e.length!==t.length)return!1;for(var n=0;no-32;){var s=t.length+a.length+r.length,l=new Uint8Array(64*s),u=e(t,a);u=e(u,r);for(var d=0,f=0;d<64;d++,f+=s)l.set(u,f);i=new y(a.subarray(0,16)).encrypt(l,a.subarray(16,32));for(var h=0,g=0;g<16;g++)h*=1,h%=3,h+=(i[g]>>>0)%3,h%=3;0===h?a=c(i,0,i.length):1===h?a=m(i,0,i.length):2===h&&(a=p(i,0,i.length)),o++}return a.subarray(0,32)}function n(){}function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n>8&255,p[m++]=i>>16&255,p[m++]=i>>>24&255,d=0,f=t.length;d=4&&!u&&(p[m++]=255,p[m++]=255,p[m++]=255,p[m++]=255);var g=s(p,0,m),v=c>>3;if(l>=3)for(d=0;d<50;++d)g=s(g,0,v);var y,b=g.subarray(0,v);if(l>=3){for(m=0;m<32;++m)p[m]=e[m];for(d=0,f=t.length;d>3;if(r>=3)for(i=0;i<50;++i)f=s(f,0,f.length);if(r>=3){d=n;var p,m=new Uint8Array(h);for(i=19;i>=0;i--){for(p=0;p=4){var I=i.get("CF");(0,a.isDict)(I)&&(I.suppressEncryption=!0),this.cf=I,this.stmf=i.get("StmF")||n,this.strf=i.get("StrF")||n,this.eff=i.get("EFF")||this.stmf}}function l(e,t,n,r){var a,i,o=new Uint8Array(n.length+9);for(a=0,i=n.length;a>8&255,o[a++]=e>>16&255,o[a++]=255&t,o[a++]=t>>8&255,r&&(o[a++]=115,o[a++]=65,o[a++]=108,o[a++]=84),s(o,0,a).subarray(0,Math.min(n.length+5,16))}function c(e,t,n,i,s){if(!(0,a.isName)(t))throw new r.FormatError("Invalid crypt filter name.");var c,u=e.get(t.name);if(null!==u&&void 0!==u&&(c=u.get("CFM")),!c||"None"===c.name)return function(){return new g};if("V2"===c.name)return function(){return new o(l(n,i,s,!1))};if("AESV2"===c.name)return function(){return new y(l(n,i,s,!0))};if("AESV3"===c.name)return function(){return new b(s)};throw new r.FormatError("Unknown crypto method")}return i.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new k(c(this.cf,this.stmf,e,t,this.encryptionKey),c(this.cf,this.strf,e,t,this.encryptionKey));var n=l(e,t,this.encryptionKey,!1),r=function(){return new o(n)};return new k(r,r)}},i}();t.CipherTransformFactory=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var r=n(2),a=n(4),i=function(){function e(t,n){d(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=n}return u(e,[{key:"getRgb",value:function(e,t){var n=new Uint8ClampedArray(3);return this.getRgbItem(e,t,n,0),n}},{key:"getRgbItem",value:function(e,t,n,a){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,n,a,i,o,s){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,n){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,n,r,a,i,o,s,l){var c=t*n,u=null,d=1<d&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var h=o<=8?new Uint8Array(d):new Uint16Array(d),p=0;p2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,a.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,a.isDict)(n)){var o=n.get("ColorSpace");if((0,a.isDict)(o)){var s=o.get(e.name);if(s){if((0,a.isName)(s))return this.parseToIR(s,t,n,i);e=s;break}}}throw new r.FormatError("unrecognized colorspace ".concat(e.name))}if(Array.isArray(e)){var l,c,u,d=t.fetchIfRef(e[0]).name;switch(d){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return["CalGrayCS",(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),c.getArray("BlackPoint"),c.get("Gamma")];case"CalRGB":return["CalRGBCS",(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),c.getArray("BlackPoint"),c.getArray("Gamma"),c.getArray("Matrix")];case"ICCBased":var f=t.fetchIfRef(e[1]).dict;if(l=f.get("N"),u=f.get("Alternate")){var h=this.parseToIR(u,t,n,i);if(this.fromIR(h,i).numComps===l)return h;(0,r.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return"DeviceGrayCS";if(3===l)return"DeviceRgbCS";if(4===l)return"DeviceCmykCS";break;case"Pattern":var p=e[1]||null;return p&&(p=this.parseToIR(p,t,n,i)),["PatternCS",p];case"Indexed":case"I":var m=this.parseToIR(e[1],t,n,i),g=t.fetchIfRef(e[2])+1,v=t.fetchIfRef(e[3]);return(0,a.isStream)(v)&&(v=v.getBytes()),["IndexedCS",m,g,v];case"Separation":case"DeviceN":var y=t.fetchIfRef(e[1]);return["AlternateCS",l=Array.isArray(y)?y.length:1,u=this.parseToIR(e[2],t,n,i),i.create(t.fetchIfRef(e[3]))];case"Lab":return["LabCS",(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),c.getArray("BlackPoint"),c.getArray("Range")];default:throw new r.FormatError('unimplemented color space object "'.concat(d,'"'))}}throw new r.FormatError('unrecognized color space object: "'.concat(e,'"'))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,r.warn)("The decode map is not the correct length"),!0;for(var n=0,a=e.length;n8?Math.pow((e+16)/116,3):e*c}function y(r,i,c,u,d,f){var h=g(0,1,i[c]*f),y=g(0,1,i[c+1]*f),b=g(0,1,i[c+2]*f),w=Math.pow(h,r.GR),x=Math.pow(y,r.GG),k=Math.pow(b,r.GB),S=r.MXA*w+r.MXB*x+r.MXC*k,C=r.MYA*w+r.MYB*x+r.MYC*k,A=r.MZA*w+r.MZB*x+r.MZC*k,_=s;_[0]=S,_[1]=C,_[2]=A;var O=l;!function(n,r,a){if(1===n[0]&&1===n[2])return a[0]=r[0],a[1]=r[1],void(a[2]=r[2]);var i=a;p(e,r,i);var s=o;!function(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}(n,i,s),p(t,s,a)}(r.whitePoint,_,O);var P=s;!function(e,t,n){if(0===e[0]&&0===e[1]&&0===e[2])return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);var r=v(0),a=(1-r)/(1-v(e[0])),i=1-a,o=(1-r)/(1-v(e[1])),s=1-o,l=(1-r)/(1-v(e[2])),c=1-l;n[0]=t[0]*a+i,n[1]=t[1]*o+s,n[2]=t[2]*l+c}(r.blackPoint,O,P);var E=l;!function(n,r,a){var i=a;p(e,r,i);var s=o;!function(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}(n,i,s),p(t,s,a)}(a,P,E);var T=s;p(n,E,T),u[d]=255*m(T[0]),u[d+1]=255*m(T[1]),u[d+2]=255*m(T[2])}return function(e){f(n,e);var t=h(n);function n(e,a,i,o){var s;if(d(this,n),s=t.call(this,"CalRGB",3),!e)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");a=a||new Float32Array(3),i=i||new Float32Array([1,1,1]),o=o||new Float32Array([1,0,0,0,1,0,0,0,1]);var l=e[0],c=e[1],u=e[2];s.whitePoint=e;var f=a[0],h=a[1],p=a[2];if(s.blackPoint=a,s.GR=i[0],s.GG=i[1],s.GB=i[2],s.MXA=o[0],s.MYA=o[1],s.MZA=o[2],s.MXB=o[3],s.MYB=o[4],s.MZB=o[5],s.MXC=o[6],s.MYC=o[7],s.MZC=o[8],l<0||u<0||1!==c)throw new r.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(f<0||h<0||p<0)&&((0,r.info)("Invalid BlackPoint for ".concat(s.name," [").concat(f,", ").concat(h,", ").concat(p,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,r.info)("Invalid Gamma [".concat(s.GR,", ").concat(s.GG,", ").concat(s.GB,"] for ")+"".concat(s.name,", falling back to default.")),s.GR=s.GG=s.GB=1),s}return u(n,[{key:"getRgbItem",value:function(e,t,n,r){y(this,e,t,n,r,1)}},{key:"getRgbBuffer",value:function(e,t,n,r,a,i,o){for(var s=1/((1<=6/29?e*e*e:108/841*(e-4/29)}function t(e,t,n,r){return n+e*(r-n)/t}function n(n,r,a,i,o,s){var l=r[a],c=r[a+1],u=r[a+2];!1!==i&&(l=t(l,i,0,100),c=t(c,i,n.amin,n.amax),u=t(u,i,n.bmin,n.bmax)),c>n.amax?c=n.amax:cn.bmax?u=n.bmax:uo.amax||o.bmin>o.bmax)&&((0,r.info)("Invalid Range, falling back to defaults"),o.amin=-100,o.amax=100,o.bmin=-100,o.bmax=100),o}return u(a,[{key:"getRgbItem",value:function(e,t,r,a){n(this,e,t,!1,r,a)}},{key:"getRgbBuffer",value:function(e,t,r,a,i,o,s){for(var l=(1<0)return null;for(var r=[],a=0,i=n.length/8;at[2]||ct[3])return null;r[a].push({x:l,y:c})}}return r}t.AnnotationFactory=b;var x=function(){function e(t){d(this,e);var n=t.dict;this.setContents(n.get("Contents")),this.setModificationDate(n.get("M")),this.setFlags(n.get("F")),this.setRectangle(n.getArray("Rect")),this.setColor(n.getArray("C")),this.setBorderStyle(n),this.setAppearance(n),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype}}return u(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,r.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,r.AnnotationFlag.PRINT)&&!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.HIDDEN)}},{key:"viewable",get:function(){return 0===this.flags||this._isViewable(this.flags)}},{key:"printable",get:function(){return 0!==this.flags&&this._isPrintable(this.flags)}},{key:"setContents",value:function(e){this.contents=(0,r.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,r.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=r.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){var t=new Uint8ClampedArray(3);if(Array.isArray(e))switch(e.length){case 0:this.color=null;break;case 1:p.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:p.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:p.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t}else this.color=t}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new k,(0,c.isDict)(e))if(e.has("BS")){var t=e.get("BS"),n=t.get("Type");n&&!(0,c.isName)(n,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var r=e.getArray("Border");Array.isArray(r)&&r.length>=3&&(this.borderStyle.setHorizontalCornerRadius(r[0]),this.borderStyle.setVerticalCornerRadius(r[1]),this.borderStyle.setWidth(r[2],this.rectangle),4===r.length&&this.borderStyle.setDashArray(r[3]))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if((0,c.isDict)(t)){var n=t.get("N");if((0,c.isStream)(n))this.appearance=n;else if((0,c.isDict)(n)){var r=e.get("AS");(0,c.isName)(r)&&n.has(r.name)&&(this.appearance=n.get(r.name))}}}},{key:"loadResources",value:function(e){return this.appearance.dict.getAsync("Resources").then((function(t){if(t)return new s.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:function(e,t,n){var a=this;if(!this.appearance)return Promise.resolve(new v.OperatorList);var i=this.data,o=this.appearance.dict,s=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),l=o.getArray("BBox")||[0,0,1,1],c=o.getArray("Matrix")||[1,0,0,1,0,0],u=function(e,t,n){var a=r.Util.getAxialAlignedBoundingBox(t,n),i=m(a,4),o=i[0],s=i[1],l=i[2],c=i[3];if(o===l||s===c)return[1,0,0,1,e[0],e[1]];var u=(e[2]-e[0])/(l-o),d=(e[3]-e[1])/(c-s);return[u,0,0,d,e[0]-o*u,e[1]-s*d]}(i.rect,l,c);return s.then((function(n){var o=new v.OperatorList;return o.addOp(r.OPS.beginAnnotation,[i.rect,u,c]),e.getOperatorList({stream:a.appearance,task:t,resources:n,operatorList:o}).then((function(){return o.addOp(r.OPS.endAnnotation,[]),a.appearance.reset(),o}))}))}}]),e}();t.Annotation=x;var k=function(){function e(){d(this,e),this.width=1,this.style=r.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return u(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,c.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){var n=(t[2]-t[0])/2,a=(t[3]-t[1])/2;n>0&&a>0&&(e>n||e>a)&&((0,r.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if((0,c.isName)(e))switch(e.name){case"S":this.style=r.AnnotationBorderStyleType.SOLID;break;case"D":this.style=r.AnnotationBorderStyleType.DASHED;break;case"B":this.style=r.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=r.AnnotationBorderStyleType.INSET;break;case"U":this.style=r.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t,n=!0,r=!0,a=l(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(!(+i>=0)){n=!1;break}i>0&&(r=!1)}}catch(o){a.e(o)}finally{a.f()}n&&!r?this.dashArray=e:this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=k;var S=function(e){f(n,e);var t=h(n);function n(e){var a;d(this,n),a=t.call(this,e);var i=e.dict;if(i.has("IRT")){var o=i.getRaw("IRT");a.data.inReplyTo=(0,c.isRef)(o)?o.toString():null;var s=i.get("RT");a.data.replyType=(0,c.isName)(s)?s.name:r.AnnotationReplyType.REPLY}if(a.data.replyType===r.AnnotationReplyType.GROUP){var l=i.get("IRT");a.data.title=(0,r.stringToPDFString)(l.get("T")||""),a.setContents(l.get("Contents")),a.data.contents=a.contents,l.has("CreationDate")?(a.setCreationDate(l.get("CreationDate")),a.data.creationDate=a.creationDate):a.data.creationDate=null,l.has("M")?(a.setModificationDate(l.get("M")),a.data.modificationDate=a.modificationDate):a.data.modificationDate=null,a.data.hasPopup=l.has("Popup"),l.has("C")?(a.setColor(l.getArray("C")),a.data.color=a.color):a.data.color=null}else a.data.title=(0,r.stringToPDFString)(i.get("T")||""),a.setCreationDate(i.get("CreationDate")),a.data.creationDate=a.creationDate,a.data.hasPopup=i.has("Popup"),i.has("C")||(a.data.color=null);return a}return u(n,[{key:"setCreationDate",value:function(e){this.creationDate=(0,r.isString)(e)?e:null}}]),n}(x);t.MarkupAnnotation=S;var C=function(e){f(n,e);var t=h(n);function n(e){var a;d(this,n),a=t.call(this,e);var i=e.dict,o=a.data;o.annotationType=r.AnnotationType.WIDGET,o.fieldName=a._constructFieldName(i),o.fieldValue=(0,g.getInheritableProperty)({dict:i,key:"V",getArray:!0}),o.alternativeText=(0,r.stringToPDFString)(i.get("TU")||""),o.defaultAppearance=(0,g.getInheritableProperty)({dict:i,key:"DA"})||"";var s=(0,g.getInheritableProperty)({dict:i,key:"FT"});return o.fieldType=(0,c.isName)(s)?s.name:null,a.fieldResources=(0,g.getInheritableProperty)({dict:i,key:"DR"})||c.Dict.empty,o.fieldFlags=(0,g.getInheritableProperty)({dict:i,key:"Ff"}),(!Number.isInteger(o.fieldFlags)||o.fieldFlags<0)&&(o.fieldFlags=0),o.readOnly=a.hasFieldFlag(r.AnnotationFieldFlag.READONLY),"Sig"===o.fieldType&&(o.fieldValue=null,a.setFlags(r.AnnotationFlag.HIDDEN)),a}return u(n,[{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,r.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,r.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,r.stringToPDFString)(e.get("T")));for(var n=e;n.has("Parent")&&(n=n.get("Parent"),(0,c.isDict)(n));)n.has("T")&&t.unshift((0,r.stringToPDFString)(n.get("T")));return t.join(".")}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,t,r){return r?Promise.resolve(new v.OperatorList):i(o(n.prototype),"getOperatorList",this).call(this,e,t,r)}}]),n}(x),A=function(e){f(n,e);var t=h(n);function n(e){var a;d(this,n),a=t.call(this,e);var i=e.dict;a.data.fieldValue=(0,r.stringToPDFString)(a.data.fieldValue||"");var o=(0,g.getInheritableProperty)({dict:i,key:"Q"});(!Number.isInteger(o)||o<0||o>2)&&(o=null),a.data.textAlignment=o;var s=(0,g.getInheritableProperty)({dict:i,key:"MaxLen"});return(!Number.isInteger(s)||s<0)&&(s=null),a.data.maxLen=s,a.data.multiLine=a.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE),a.data.comb=a.hasFieldFlag(r.AnnotationFieldFlag.COMB)&&!a.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE)&&!a.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD)&&!a.hasFieldFlag(r.AnnotationFieldFlag.FILESELECT)&&null!==a.data.maxLen,a}return u(n,[{key:"getOperatorList",value:function(e,t,a){if(a||this.appearance)return i(o(n.prototype),"getOperatorList",this).call(this,e,t,a);var s=new v.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(s);var l=new y.Stream((0,r.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:l,task:t,resources:this.fieldResources,operatorList:s}).then((function(){return s}))}}]),n}(C),_=function(e){f(n,e);var t=h(n);function n(e){var a;return d(this,n),(a=t.call(this,e)).data.checkBox=!a.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!a.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),a.data.radioButton=a.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!a.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),a.data.pushButton=a.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),a.data.checkBox?a._processCheckBox(e):a.data.radioButton?a._processRadioButton(e):a.data.pushButton?a._processPushButton(e):(0,r.warn)("Invalid field flags for button widget annotation"),a}return u(n,[{key:"_processCheckBox",value:function(e){(0,c.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);var t=e.dict.get("AP");if((0,c.isDict)(t)){var n=t.get("D");if((0,c.isDict)(n)){var r=n.getKeys();2===r.length&&(this.data.exportValue="Off"===r[0]?r[1]:r[0])}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,c.isDict)(t)&&t.has("V")){var n=t.get("V");(0,c.isName)(n)&&(this.data.fieldValue=n.name)}var r=e.dict.get("AP");if((0,c.isDict)(r)){var a=r.get("N");if((0,c.isDict)(a)){var i,o=l(a.getKeys());try{for(o.s();!(i=o.n()).done;){var s=i.value;if("Off"!==s){this.data.buttonValue=s;break}}}catch(u){o.e(u)}finally{o.f()}}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")?s.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):(0,r.warn)("Push buttons without action dictionaries are not supported")}}]),n}(C),O=function(e){f(n,e);var t=h(n);function n(e){var a;d(this,n),(a=t.call(this,e)).data.options=[];var i=(0,g.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(i))for(var o=e.xref,s=0,l=i.length;s1e3&&(d=Math.max(d,p),m+=h+2,p=0,h=0),f.push({transform:g,x:p,y:m,w:v.width,h:v.height}),p+=v.width+2,h=Math.max(h,v.height)}var y=Math.max(d,p)+1,b=m+h+1,w=new Uint8ClampedArray(y*b*4),x=y<<2;for(u=0;u=0;)k[A-4]=k[A],k[A-3]=k[A+1],k[A-2]=k[A+2],k[A-1]=k[A+3],k[A+S]=k[A+S-4],k[A+S+1]=k[A+S-3],k[A+S+2]=k[A+S-2],k[A+S+3]=k[A+S-1],A-=x}return n.splice(o,4*c,r.OPS.paintInlineImageXObjectGroup),a.splice(o,4*c,[{width:y,height:b,kind:r.ImageKind.RGBA_32BPP,data:w},f]),o+1})),e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,(function(e,t){var n=e.fnArray,a=(t-(e.iCurr-3))%4;switch(a){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintImageMaskXObject;case 3:return n[t]===r.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(a))}),(function(e,t){var n,a=e.fnArray,i=e.argsArray,o=e.iCurr,s=o-3,l=o-2,c=o-1,u=Math.floor((t-s)/4);if(u=function(e,t,n,a){for(var i=e+2,o=0;o=4&&n[i-4]===n[o]&&n[i-3]===n[s]&&n[i-2]===n[l]&&n[i-1]===n[c]&&r[i-4][0]===u&&r[i-4][1]===d&&(f++,h-=5);for(var p=h+4,m=1;m=(r=e.length))break}(a=(a||t)[e[n]])&&!Array.isArray(a)?(o.iCurr=n,n++,!a.checkFn||(0,a.checkFn)(o)?(i=a,a=null):a=null):n++}this.state=a,this.match=i,this.lastProcessed=n}else this.lastProcessed=r},push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset:function(){this.state=null,this.match=null,this.lastProcessed=0}},n}(),i=function(){function e(e){this.queue=e}return e.prototype={push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush:function(){},reset:function(){}},e}(),o=function(){function e(e,t,n){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&"oplist"!==e?new a(this):new i(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=n,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}return e.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=1e3||this.weight>=995&&(e===r.OPS.restore||e===r.OPS.endText))&&this.flush()},addDependency:function(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(r.OPS.dependency,[e]))},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){Object.assign(this.dependencies,e.dependencies);for(var t=0,n=e.length;t0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},e}();t.OperatorList=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var r=n(2),a=n(26),i=n(4),o=n(27),s=n(30),c=n(7),u=n(33),d=n(32),f=n(36),h=n(10),m=n(37),v=n(22),y=n(11),b=n(31),w=n(38),x=n(39),k=n(17),S=n(41),C=n(42),A=n(24),_=n(43),O=function(){var e={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:r.NativeImageDecoding.DECODE,ignoreErrors:!1,isEvalSupported:!0};function t(t){var n=this,a=t.xref,i=t.handler,o=t.pageIndex,s=t.idFactory,l=t.fontCache,c=t.builtInCMapCache,u=t.options,d=void 0===u?null:u,f=t.pdfFunctionFactory;this.xref=a,this.handler=i,this.pageIndex=o,this.idFactory=s,this.fontCache=l,this.builtInCMapCache=c,this.options=d||e,this.pdfFunctionFactory=f,this.parsingType3Font=!1,this.fetchBuiltInCMap=function(){var e=g(p.mark((function e(t){var a,i,o;return p.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.builtInCMapCache.has(t)){e.next=2;break}return e.abrupt("return",n.builtInCMapCache.get(t));case 2:return a=n.handler.sendWithStream("FetchBuiltInCMap",{name:t}),i=a.getReader(),e.next=6,new Promise((function(e,t){!function n(){i.read().then((function(t){var r=t.value;t.done||(e(r),n())}),t)}()}));case 6:return(o=e.sent).compressionType!==r.CMapCompressionType.NONE&&n.builtInCMapCache.set(t,o),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function n(){this.reset()}function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var n=0,a=e.length;n0&&void 0!==arguments[0]?arguments[0]:e,n=Object.create(this);return n.options=t,n},hasBlendModes:function(e){if(!(e instanceof i.Dict))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var n=[e],a=this.xref;n.length;){var o=n.shift(),s=o.get("ExtGState");if(s instanceof i.Dict)for(var l=s.getKeys(),u=0,d=l.length;uv)){n.next=11;break}return(0,r.warn)("Image exceeded maximum allowed size and was removed."),n.abrupt("return",void 0);case 11:if(!h.get("ImageMask","IM")){n.next=24;break}return x=h.get("Width","W"),S=h.get("Height","H"),A=x+7>>3,O=i.getBytes(A*S,!0),P=h.getArray("Decode","D"),(b=_.PDFImage.createMask({imgArray:O,width:x,height:S,imageIsFromDecodeStream:i instanceof y.DecodeStream,inverseDecode:!!P&&P[0]>0})).cached=!!c,w=[b],l.addOp(r.OPS.paintImageMaskXObject,w),c&&(u[c]={fn:r.OPS.paintImageMaskXObject,args:w}),n.abrupt("return",void 0);case 24:if(E=h.get("SMask","SM")||!1,T=h.get("Mask")||!1,!s||E||T||i instanceof k.JpegStream||!(m+g<200)){n.next=32;break}return j=new _.PDFImage({xref:t.xref,res:a,image:i,isInline:s,pdfFunctionFactory:t.pdfFunctionFactory}),b=j.createImageData(!0),l.addOp(r.OPS.paintInlineImageXObject,[b]),n.abrupt("return",void 0);case 32:if(N=f?r.NativeImageDecoding.NONE:t.options.nativeImageDecoderSupport,M="img_".concat(t.idFactory.createObjId()),t.parsingType3Font&&((0,r.assert)(N===r.NativeImageDecoding.NONE,"Type3 image resources should be completely decoded in the worker."),M="".concat(t.idFactory.getDocId(),"_type3res_").concat(M)),!(N!==r.NativeImageDecoding.NONE&&!E&&!T&&i instanceof k.JpegStream&&C.NativeImageDecoder.isSupported(i,t.xref,a,t.pdfFunctionFactory)&&i.maybeValidDimensions)){n.next=37;break}return n.abrupt("return",t.handler.sendWithPromise("obj",[M,t.pageIndex,"JpegStream",i.getIR(t.options.forceDataSchema)]).then((function(){l.addDependency(M),w=[M,m,g],l.addOp(r.OPS.paintJpegXObject,w),c&&(u[c]={fn:r.OPS.paintJpegXObject,args:w})}),(function(e){return(0,r.warn)("Native JPEG decoding failed -- trying to recover: "+(e&&e.message)),t.buildPaintImageXObject({resources:a,image:i,isInline:s,operatorList:l,cacheKey:c,imageCache:u,forceDisableNativeImageDecoder:!0})})));case 37:if(I=null,N===r.NativeImageDecoding.DECODE&&(i instanceof k.JpegStream||T instanceof k.JpegStream||E instanceof k.JpegStream)&&(I=new C.NativeImageDecoder({xref:t.xref,resources:a,handler:t.handler,forceDataSchema:t.options.forceDataSchema,pdfFunctionFactory:t.pdfFunctionFactory})),l.addDependency(M),w=[M,m,g],D=_.PDFImage.buildImage({handler:t.handler,xref:t.xref,res:a,image:i,isInline:s,nativeDecoder:I,pdfFunctionFactory:t.pdfFunctionFactory}).then((function(e){var n=e.createImageData(!1);if(t.parsingType3Font)return t.handler.sendWithPromise("commonobj",[M,"FontType3Res",n],[n.data.buffer]);t.handler.send("obj",[M,t.pageIndex,"Image",n],[n.data.buffer])})).catch((function(e){if((0,r.warn)("Unable to decode image: "+e),t.parsingType3Font)return t.handler.sendWithPromise("commonobj",[M,"FontType3Res",null]);t.handler.send("obj",[M,t.pageIndex,"Image",null])})),!t.parsingType3Font){n.next=45;break}return n.next=45,D;case 45:return l.addOp(r.OPS.paintImageXObject,w),c&&(u[c]={fn:r.OPS.paintImageXObject,args:w}),n.abrupt("return",void 0);case 48:case"end":return n.stop()}}),n)})))()},handleSMask:function(e,t,n,r,a){var i=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if((0,x.isPDFFunction)(s)){for(var l=this.pdfFunctionFactory.create(s),c=new Uint8Array(256),u=new Float32Array(1),d=0;d<256;d++)u[0]=d/255,l(u,0,u,0),c[d]=255*u[0]|0;o.transferMap=c}return this.buildFormXObject(t,i,o,n,r,a.state.clone())},handleTilingType:function(e,t,n,a,o,s,l){var c=this,u=new A.OperatorList,d=[o.get("Resources"),n],h=i.Dict.merge(this.xref,d);return this.getOperatorList({stream:a,task:l,resources:h,operatorList:u}).then((function(){return(0,f.getTilingPatternIR)({fnArray:u.fnArray,argsArray:u.argsArray},o,t)})).then((function(t){s.addDependencies(u.dependencies),s.addOp(e,t)}),(function(e){if(!(e instanceof r.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),void(0,r.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))},handleSetFont:function(e,t,n,a,i,s){var l,c=this;return t&&(l=(t=t.slice())[0].name),this.loadFont(l,n,e).then((function(t){return t.font.isType3Font?t.loadType3Data(c,e,a,i).then((function(){return t})).catch((function(e){return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),new P("g_font_error",new o.ErrorFont("Type3 font load error: "+e),t.font)})):t})).then((function(e){return s.font=e.font,e.send(c.handler),e.loadedName}))},handleText:function(e,n){var a=n.font,i=a.charsToGlyphs(e);return a.data&&(n.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===n.fillColorSpace.name||a.disableFontFace||this.options.disableFontFace)&&t.buildFontPaths(a,i,this.handler),i},ensureStateFont:function(e){if(!e.font){var t=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),void(0,r.warn)('ensureStateFont: "'.concat(t,'".'));throw t}},setGState:function(e,t,n,a,o){for(var s=this,l=[],c=t.getKeys(),u=Promise.resolve(),d=function(){var d=c[f],p=t.get(d);switch(d){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":l.push([d,p]);break;case"Font":u=u.then((function(){return s.handleSetFont(e,null,p[0],n,a,o.state).then((function(e){n.addDependency(e),l.push([d,[e,p[1]]])}))}));break;case"BM":l.push([d,h(p)]);break;case"SMask":if((0,i.isName)(p,"None")){l.push([d,!1]);break}(0,i.isDict)(p)?(u=u.then((function(){return s.handleSMask(p,e,n,a,o)})),l.push([d,!0])):(0,r.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,r.info)("graphic state operator "+d);break;default:(0,r.info)("Unknown graphic state operator "+d)}},f=0,p=c.length;f0&&n.addOp(r.OPS.setGState,[l])}))},loadFont:function(e,n,a){var s=this;function l(){return Promise.resolve(new P("g_font_error",new o.ErrorFont("Font "+e+" is not available"),n))}var c,u=this.xref;if(n){if(!(0,i.isRef)(n))throw new r.FormatError('The "font" object should be a reference.');c=n}else{var d=a.get("Font");d&&(c=d.getRaw(e))}if(!c){var f='Font "'.concat(e||n&&n.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,r.warn)("".concat(f,".")),l();this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),(0,r.warn)("".concat(f," -- attempting to fallback to a default font.")),c=t.getFallbackFontDict()}if(this.fontCache.has(c))return this.fontCache.get(c);if(n=u.fetchIfRef(c),!(0,i.isDict)(n))return l();if(n.translated)return n.translated;var h,p,m=(0,r.createPromiseCapability)(),g=this.preEvaluateFont(n),v=g.descriptor,y=g.hash,b=(0,i.isRef)(c);if(b&&(h=c.toString()),y&&(0,i.isDict)(v)){v.fontAliases||(v.fontAliases=Object.create(null));var w=v.fontAliases;if(w[y]){var x=w[y].aliasRef;if(b&&x&&this.fontCache.has(x))return this.fontCache.putAlias(c,x),this.fontCache.get(c)}else w[y]={fontID:o.Font.getFontID()};b&&(w[y].aliasRef=c),h=w[y].fontID}b?this.fontCache.put(c,m.promise):(h||(h=this.idFactory.createObjId()),this.fontCache.put("id_".concat(h),m.promise)),(0,r.assert)(h,'The "fontID" must be defined.'),n.loadedName="".concat(this.idFactory.getDocId(),"_f").concat(h),n.translated=m.promise;try{p=this.translateFont(g)}catch(k){p=Promise.reject(k)}return p.then((function(e){void 0!==e.fontType&&(u.stats.fontTypes[e.fontType]=!0),m.resolve(new P(n.loadedName,e,n))})).catch((function(e){s.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font});try{var t=v&&v.get("FontFile3"),a=t&&t.get("Subtype"),i=(0,o.getFontType)(g.type,a&&a.name);u.stats.fontTypes[i]=!0}catch(l){}m.resolve(new P(n.loadedName,new o.ErrorFont(e instanceof Error?e.message:e),n))})),m.promise},buildPath:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.length-1;if(n||(n=[]),i<0||e.fnArray[i]!==r.OPS.constructPath)a&&((0,r.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(r.OPS.save,null)),e.addOp(r.OPS.constructPath,[[t],n]),a&&e.addOp(r.OPS.restore,null);else{var o=e.argsArray[i];o[0].push(t),Array.prototype.push.apply(o[1],n)}},parseColorSpace:function(e){var t=this,n=e.cs,a=e.resources;return new Promise((function(e){e(v.ColorSpace.parse(n,t.xref,a,t.pdfFunctionFactory))})).catch((function(e){if(e instanceof r.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))},handleColorN:function(e,t,n,a,o,s,l){var c=this;return g(p.mark((function u(){var d,h,m,g,v,y,b;return p.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(d=n[n.length-1],!(0,i.isName)(d)||!(h=o.get(d.name))){u.next=16;break}if(m=(0,i.isStream)(h)?h.dict:h,1!==(g=m.get("PatternType"))){u.next=9;break}return v=a.base?a.base.getRgb(n,0):null,u.abrupt("return",c.handleTilingType(t,v,s,h,m,e,l));case 9:if(2!==g){u.next=15;break}return y=m.get("Shading"),b=m.getArray("Matrix"),h=f.Pattern.parseShading(y,b,c.xref,s,c.handler,c.pdfFunctionFactory),e.addOp(t,h.getIR()),u.abrupt("return",void 0);case 15:throw new r.FormatError("Unknown PatternType: ".concat(g));case 16:throw new r.FormatError("Unknown PatternName: ".concat(d));case 17:case"end":return u.stop()}}),u)})))()},getOperatorList:function(e){var t=this,a=e.stream,o=e.task,s=e.resources,l=e.operatorList,c=e.initialState,u=void 0===c?null:c;if(s=s||i.Dict.empty,u=u||new j,!l)throw new Error('getOperatorList: missing "operatorList" parameter');var d=this,h=this.xref,p=!1,m=Object.create(null),g=s.get("XObject")||i.Dict.empty,y=s.get("Pattern")||i.Dict.empty,b=new E(u),w=new N(a,h,b),x=new n;function k(e){for(var t=0,n=w.savedStatesDepth;t0&&(t[3]*=n*b.fontMatrix[3])}var a=r.Util.transform(b.ctm,r.Util.transform(b.textMatrix,t));k.transform=a,e.vertical?(k.width=Math.sqrt(a[0]*a[0]+a[1]*a[1]),k.height=0,k.vertical=!0):(k.width=0,k.height=Math.sqrt(a[2]*a[2]+a[3]*a[3]),k.vertical=!1);var i=b.textLineMatrix[0],o=b.textLineMatrix[1],s=Math.sqrt(i*i+o*o);i=b.ctm[0],o=b.ctm[1];var l=Math.sqrt(i*i+o*o);k.textAdvanceScale=l*s,k.lastAdvanceWidth=0,k.lastAdvanceHeight=0;var c=e.spaceWidth/1e3*b.fontSize;return c?(k.spaceWidth=c,k.fakeSpaceMin=c*S,k.fakeMultiSpaceMin=c*C,k.fakeMultiSpaceMax=c*A,k.textRunBreakAllowed=!e.isMonospace):(k.spaceWidth=0,k.fakeSpaceMin=1/0,k.fakeMultiSpaceMin=1/0,k.fakeMultiSpaceMax=0,k.textRunBreakAllowed=!1),k.initialized=!0,k}function R(e){for(var t,n=0,r=e.length;n=32&&t<=127;)n++;return n0&&B(h,n.str)}var p=0,m=0;t.vertical?a+=m=l*b.fontMatrix[0]*b.fontSize+f:r+=p=(l*b.fontMatrix[0]*b.fontSize+f)*b.textHScale,b.translateTextMatrix(p,m),n.str.push(c)}return t.vertical?(n.lastAdvanceHeight=a,n.height+=Math.abs(a)):(n.lastAdvanceWidth=r,n.width+=r),n}function B(e,t){if(!(e0;)t.push(" ")}function U(){k.initialized&&(k.vertical?k.height*=k.textAdvanceScale:k.width*=k.textAdvanceScale,x.items.push(function(e){var t=e.str.join(""),n=(0,m.bidi)(t,-1,e.vertical);return{str:f?R(n.str):n.str,dir:n.dir,width:e.width,height:e.height,transform:e.transform,fontName:e.fontName}}(k)),k.initialized=!1,k.str.length=0)}function $(){var e=x.items.length;e>0&&(g.enqueue(x,e),x.items=[],x.styles=Object.create(null))}var z=new n;return new Promise((function e(t,n){var a=function(r){$(),Promise.all([r,g.ready]).then((function(){try{e(t,n)}catch(r){n(r)}}),n)};o.ensureNotTerminated(),z.reset();for(var l,u={},d=[];!(l=z.check())&&(d.length=0,u.args=d,I.read(u));){b=c.state;var h,m=u.fn;switch(d=u.args,0|m){case r.OPS.setFont:var v=d[0].name,w=d[1];if(b.font&&v===b.fontName&&w===b.fontSize)break;return U(),b.fontName=v,b.fontSize=w,void a(L(v,null));case r.OPS.setTextRise:U(),b.textRise=d[0];break;case r.OPS.setHScale:U(),b.textHScale=d[0]/100;break;case r.OPS.setLeading:U(),b.leading=d[0];break;case r.OPS.moveText:var S=!!b.font&&0===(b.font.vertical?d[0]:d[1]);if(h=d[0]-d[1],p&&S&&k.initialized&&h>0&&h<=k.fakeMultiSpaceMax){b.translateTextLineMatrix(d[0],d[1]),k.width+=d[0]-k.lastAdvanceWidth,k.height+=d[1]-k.lastAdvanceHeight,B(d[0]-k.lastAdvanceWidth-(d[1]-k.lastAdvanceHeight),k.str);break}U(),b.translateTextLineMatrix(d[0],d[1]),b.textMatrix=b.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:U(),b.leading=-d[1],b.translateTextLineMatrix(d[0],d[1]),b.textMatrix=b.textLineMatrix.slice();break;case r.OPS.nextLine:U(),b.carriageReturn();break;case r.OPS.setTextMatrix:if(h=b.calcTextLineMatrixAdvance(d[0],d[1],d[2],d[3],d[4],d[5]),p&&null!==h&&k.initialized&&h.value>0&&h.value<=k.fakeMultiSpaceMax){b.translateTextLineMatrix(h.width,h.height),k.width+=h.width-k.lastAdvanceWidth,k.height+=h.height-k.lastAdvanceHeight,B(h.width-k.lastAdvanceWidth-(h.height-k.lastAdvanceHeight),k.str);break}U(),b.setTextMatrix(d[0],d[1],d[2],d[3],d[4],d[5]),b.setTextLineMatrix(d[0],d[1],d[2],d[3],d[4],d[5]);break;case r.OPS.setCharSpacing:b.charSpacing=d[0];break;case r.OPS.setWordSpacing:b.wordSpacing=d[0];break;case r.OPS.beginText:U(),b.textMatrix=r.IDENTITY_MATRIX.slice(),b.textLineMatrix=r.IDENTITY_MATRIX.slice();break;case r.OPS.showSpacedText:if(!c.state.font){_.ensureStateFont(c.state);continue}for(var C,A=d[0],P=0,T=A.length;Pk.fakeMultiSpaceMax)||(k.height+=C)):(C=(h=-h)*b.textHScale,b.translateTextMatrix(C,0),(N=k.textRunBreakAllowed&&h>k.fakeMultiSpaceMax)||(k.width+=C)),N?U():h>0&&B(h,k.str)}break;case r.OPS.showText:if(!c.state.font){_.ensureStateFont(c.state);continue}F(d[0]);break;case r.OPS.nextLineShowText:if(!c.state.font){_.ensureStateFont(c.state);continue}U(),b.carriageReturn(),F(d[0]);break;case r.OPS.nextLineSetSpacingShowText:if(!c.state.font){_.ensureStateFont(c.state);continue}U(),b.wordSpacing=d[0],b.charSpacing=d[1],b.carriageReturn(),F(d[2]);break;case r.OPS.paintXObject:U(),j||(j=s.get("XObject")||i.Dict.empty);var R=d[0].name;if(R&&void 0!==M[R])break;return void a(new Promise((function(e,t){if(!R)throw new r.FormatError("XObject must be referred to by name.");var n=j.get(R);if(n){if(!(0,i.isStream)(n))throw new r.FormatError("XObject should be a stream");var a=n.dict.get("Subtype");if(!(0,i.isName)(a))throw new r.FormatError("XObject should have a Name subtype");if("Form"!==a.name)return M[R]=!0,void e();var l=c.state.clone(),u=new E(l),d=n.dict.getArray("Matrix");Array.isArray(d)&&6===d.length&&u.transform(d),$();var h={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,g.enqueue(e,t)},get desiredSize(){return g.desiredSize},get ready(){return g.ready}};_.getTextContent({stream:n,task:o,resources:n.dict.get("Resources")||s,stateManager:u,normalizeWhitespace:f,combineTextItems:p,sink:h,seenStyles:y}).then((function(){h.enqueueInvoked||(M[R]=!0),e()}),t)}else e()})).catch((function(e){if(!(e instanceof r.AbortException)){if(!_.options.ignoreErrors)throw e;(0,r.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case r.OPS.setGState:U();var q=d[0],G=s.get("ExtGState");if(!(0,i.isDict)(G)||!(0,i.isName)(q))break;var H=G.get(q.name);if(!(0,i.isDict)(H))break;var W=H.get("Font");if(W)return b.fontName=null,b.fontSize=W[1],void a(L(null,W[0]))}if(x.items.length>=g.desiredSize){l=!0;break}}l?a(O):(U(),$(),t())})).catch((function(e){if(!(e instanceof r.AbortException)){if(t.options.ignoreErrors)return(0,r.warn)('getTextContent - ignoring errors during "'.concat(o.name,'" ')+'task: "'.concat(e,'".')),U(),void $();throw e}}))},extractDataStructures:function(e,t,n){var a,l=this,c=this.xref,u=e.get("ToUnicode")||t.get("ToUnicode"),d=u?this.readToUnicode(u):Promise.resolve(void 0);if(n.composite){var f=e.get("CIDSystemInfo");(0,i.isDict)(f)&&(n.cidSystemInfo={registry:(0,r.stringToPDFString)(f.get("Registry")),ordering:(0,r.stringToPDFString)(f.get("Ordering")),supplement:f.get("Supplement")});var h=e.get("CIDToGIDMap");(0,i.isStream)(h)&&(a=h.getBytes())}var p,m=[],g=null;if(e.has("Encoding")){if(p=e.get("Encoding"),(0,i.isDict)(p)){if(g=p.get("BaseEncoding"),g=(0,i.isName)(g)?g.name:null,p.has("Differences"))for(var v=p.get("Differences"),y=0,b=0,w=v.length;b0,n.dict=e,d.then((function(e){return n.toUnicode=e,l.buildToUnicode(n)})).then((function(e){return n.toUnicode=e,a&&(n.cidToGidMap=l.readCidToGidMap(a,e)),n}))},_buildSimpleFontToUnicode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.assert)(!e.composite,"Must be a simple font.");var n=[],a=e.defaultEncoding.slice(),i=e.baseEncodingName,l=e.differences;for(var c in l){var d=l[c];".notdef"!==d&&(a[c]=d)}var f=(0,b.getGlyphsUnicode)();for(var h in a){var p=a[h];if(""!==p)if(void 0!==f[p])n[h]=String.fromCharCode(f[p]);else{var m=0;switch(p[0]){case"G":3===p.length&&(m=parseInt(p.substring(1),16));break;case"g":5===p.length&&(m=parseInt(p.substring(1),16));break;case"C":case"c":if(p.length>=3&&p.length<=4){var g=p.substring(1);if(t){m=parseInt(g,16);break}if(m=+g,Number.isNaN(m)&&Number.isInteger(parseInt(g,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:var v=(0,u.getUnicodeForGlyph)(p,f);-1!==v&&(m=v)}if(m>0&&Number.isInteger(m)){if(i&&m===+h){var y=(0,s.getEncoding)(i);if(y&&(p=y[h])){n[h]=String.fromCharCode(f[p]);continue}}n[h]=String.fromCodePoint(m)}}}return new o.ToUnicodeMap(n)},buildToUnicode:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof a.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var t=e.cidSystemInfo.registry,n=e.cidSystemInfo.ordering,s=i.Name.get(t+"-"+n+"-UCS2");return a.CMapFactory.create({encoding:s,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(t){var n=e.cMap,a=[];return n.forEach((function(e,n){if(n>65535)throw new r.FormatError("Max size of CID is 65,535");var i=t.lookup(n);i&&(a[e]=String.fromCharCode((i.charCodeAt(0)<<8)+i.charCodeAt(1)))})),new o.ToUnicodeMap(a)}))}return Promise.resolve(new o.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=this,n=e;return(0,i.isName)(n)?a.CMapFactory.create({encoding:n,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){return e instanceof a.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())})):(0,i.isStream)(n)?a.CMapFactory.create({encoding:n,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){if(e instanceof a.IdentityCMap)return new o.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach((function(e,n){for(var r=[],a=0;a>1;(0!==i||t.has(o))&&(n[o]=i)}return n},extractWidths:function(e,t,n){var r,a,s,l,c,u,d,f,h=this.xref,p=[],m=0,g=[];if(n.composite){if(m=e.has("DW")?e.get("DW"):1e3,f=e.get("W"))for(a=0,s=f.length;al&&(0,r.info)("Command ".concat(a,": expected [0, ").concat(l,"] args, ")+"but received ".concat(c," args."));else{if(c!==l){for(var u=this.nonProcessedArgs;c>l;)u.push(t.shift()),c--;for(;c=r.OPS.moveTo&&s<=r.OPS.endPath&&++this._numInvalidPathOPS>20)throw new r.FormatError("Invalid ".concat(d));(0,r.warn)("Skipping ".concat(d)),null!==t&&(t.length=0);continue}}return this.preprocessCommand(s,t),e.fn=s,e.args=t,!0}if(n===i.EOF)return!1;if(null!==n&&(null===t&&(t=[]),t.push(n),t.length>33))throw new r.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(t)}}},t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var r=n(2),a=n(4),i=n(10),o=n(7),s=n(11),l=["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"],c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return u(e,[{key:"addCodespaceRange",value:function(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,n){for(;e<=t;)this._map[e++]=n++}},{key:"mapBfRange",value:function(e,t,n){for(var r=n.length-1;e<=t;)this._map[e++]=n,n=n.substring(0,r)+String.fromCharCode(n.charCodeAt(r)+1)}},{key:"mapBfRangeToArray",value:function(e,t,n){for(var r=n.length,a=0;e<=t&&a>>0;for(var s=a[i],l=0,c=s.length;l=u&&r<=d)return n.charcode=r,void(n.length=i+1)}}n.charcode=0,n.length=1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=c;var m=function(e){f(n,e);var t=h(n);function n(e,r){var a;return d(this,n),(a=t.call(this)).vertical=e,a.addCodespaceRange(r,0,65535),a}return u(n,[{key:"mapCidRange",value:function(e,t,n){(0,r.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,n){(0,r.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,n){(0,r.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,r.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,r.unreachable)("should not access .isIdentityCMap")}}]),n}(c);t.IdentityCMap=m;var v=function(){function e(e,t){for(var n=0,r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function n(e,t,n){for(var r=0,a=n;a>=0;a--)r+=e[a]+t[a],e[a]=255&r,r>>=8}function a(e,t){for(var n=1,r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}var i=16,o=19;function s(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(o)}function l(){}return s.prototype={readByte:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var n=this.readByte();if(n<0)throw new r.FormatError("unexpected EOF in bcmap");e=!(128&n),t=t<<7|127&n}while(!e);return t},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var n,a=this.tmpBuf,i=0;do{var o=this.readByte();if(o<0)throw new r.FormatError("unexpected EOF in bcmap");n=!(128&o),a[i++]=127&o}while(!n);for(var s=t,l=0,c=0;s>=0;){for(;c<8&&a.length>0;)l=a[--i]<>=8,c-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var n=1&e[t]?255:0,r=0,a=0;a<=t;a++)r=(1&r)<<8|e[a],e[a]=r>>1^n},readString:function(){for(var e=this.readNumber(),t="",n=0;n=0;){var x=p>>5;if(7!==x){var k=!!(16&p),S=15&p;if(S+1>i)throw new Error("processBinaryCMap: Invalid dataSize.");var C,A=d.readNumber();switch(x){case 0:for(d.readHex(g,S),d.readHexNumber(v,S),n(v,g,S),o.addCodespaceRange(S+1,e(g,S),e(v,S)),C=1;C>>0}function t(e){if(!(0,r.isString)(e))throw new r.FormatError("Malformed CMap: expected string.")}function n(e){if(!Number.isInteger(e))throw new r.FormatError("Malformed CMap: expected int.")}function u(n,r){for(;;){var i=r.getObj();if((0,a.isEOF)(i))break;if((0,a.isCmd)(i,"endbfchar"))return;t(i);var o=e(i);t(i=r.getObj());var s=i;n.mapOne(o,s)}}function d(n,i){for(;;){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);t(o=i.getObj());var l=e(o);if(o=i.getObj(),Number.isInteger(o)||(0,r.isString)(o)){var c=Number.isInteger(o)?String.fromCharCode(o):o;n.mapBfRange(s,l,c)}else{if(!(0,a.isCmd)(o,"["))break;o=i.getObj();for(var u=[];!(0,a.isCmd)(o,"]")&&!(0,a.isEOF)(o);)u.push(o),o=i.getObj();n.mapBfRangeToArray(s,l,u)}}throw new r.FormatError("Invalid bf range.")}function f(r,i){for(;;){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);n(o=i.getObj());var l=o;r.mapOne(s,l)}}function h(r,i){for(;;){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);t(o=i.getObj());var l=e(o);n(o=i.getObj());var c=o;r.mapCidRange(s,l,c)}}function y(t,n){for(;;){var i=n.getObj();if((0,a.isEOF)(i))break;if((0,a.isCmd)(i,"endcodespacerange"))return;if(!(0,r.isString)(i))break;var o=e(i);if(i=n.getObj(),!(0,r.isString)(i))break;var s=e(i);t.addCodespaceRange(i.length,o,s)}throw new r.FormatError("Invalid codespace range.")}function b(e,t){var n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function w(e,t){var n=t.getObj();(0,a.isName)(n)&&(0,r.isString)(n.name)&&(e.name=n.name)}function x(e,t,n,i){var s,l;e:for(;;)try{var c=t.getObj();if((0,a.isEOF)(c))break;if((0,a.isName)(c))"WMode"===c.name?b(e,t):"CMapName"===c.name&&w(e,t),s=c;else if((0,a.isCmd)(c))switch(c.cmd){case"endcmap":break e;case"usecmap":(0,a.isName)(s)&&(l=s.name);break;case"begincodespacerange":y(e,t);break;case"beginbfchar":u(e,t);break;case"begincidchar":f(e,t);break;case"beginbfrange":d(e,t);break;case"begincidrange":h(e,t)}}catch(p){if(p instanceof o.MissingDataException)throw p;(0,r.warn)("Invalid cMap data: "+p);continue}return!i&&l&&(i=l),i?k(e,n,i):Promise.resolve(e)}function k(e,t,n){return S(n,t).then((function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var n=e.useCMap.codespaceRanges,r=0;r0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}return e.prototype={get length(){return this._map.length},forEach:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has:function(e){return void 0!==this._map[e]},get:function(e){return this._map[e]},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var n in t)if(t[n]===e)return 0|n;return-1},amend:function(e){for(var t in e)this._map[t]=e[t]}},e}();t.ToUnicodeMap=C;var A=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)},has:function(e){return this.firstChar<=e&&e<=this.lastChar},get:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,r.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=A;var _=function(){function e(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function t(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function n(e,t,n){var r,a;if(n instanceof Uint8Array)e.set(n,t);else if("string"===typeof n)for(r=0,a=n.length;rn;)n<<=1,r++;var a=n*t;return{range:a,entry:r,rangeShift:t*e-a}},a.prototype={toArray:function(){var i=this.sfnt,o=this.tables,s=Object.keys(o);s.sort();var l,u,d,f,h,p=s.length,m=12+16*p,g=[m];for(l=0;l>>0,g.push(m);var v=new Uint8Array(m);for(l=0;l>>0;t(v,m+4,b),t(v,m+8,g[l]),t(v,m+12,o[h].length),m+=16}return v},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},a}(),O=function(){function e(e,t,n){var a;this.name=e,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.sizes=[],this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(n.flags&y.Serif),this.isSymbolicFont=!!(n.flags&y.Symbolic),this.isMonospace=!!(n.flags&y.FixedPitch);var i=n.type,o=n.subtype;this.type=i,this.subtype=o;var s="sans-serif";if(this.isMonospace?s="monospace":this.isSerifFont&&(s="serif"),this.fallbackName=s,this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.wideChars=n.wideChars,this.cMap=n.cMap,this.ascent=n.ascent/g,this.descent=n.descent/g,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.fallbackToUnicode=n.fallbackToUnicode||new C,this.toFontChar=[],"Type3"!==n.type){if(this.cidEncoding=n.cidEncoding,this.vertical=n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!t||t.isEmpty)return t&&(0,r.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();var l=function(e,t){var n,a,i=t.type,o=t.subtype,s=t.composite;return function(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)||"true"===(0,r.bytesToString)(t)}(e)||P(e)?n=s?"CIDFontType2":"TrueType":function(e){var t=e.peekBytes(4);return"OTTO"===(0,r.bytesToString)(t)}(e)?n=s?"CIDFontType2":"OpenType":function(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?n=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":function(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?s?(n="CIDFontType0",a="CIDFontType0C"):(n="MMType1"===i?"MMType1":"Type1",a="Type1C"):((0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),n=i,a=o),[n,a]}(t,n),u=m(l,2);i=u[0],o=u[1],i===this.type&&o===this.subtype||(0,r.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(i,"/").concat(o,"."));try{var d;switch(i){case"MMType1":(0,r.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var f="Type1C"===o||"CIDFontType0C"===o?new j(t,n):new T(e,t,n);w(n),d=this.convert(e,f,n);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",d=this.checkAndRepair(e,t,n),this.isOpenType&&(w(n),i="OpenType");break;default:throw new r.FormatError("Font ".concat(i," is not supported"))}}catch(h){return(0,r.warn)(h),void this.fallbackToSystemFont()}this.data=d,this.fontType=x(i,o),this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.encoding=n.baseEncoding,this.seacMap=n.seacMap}else{for(a=0;a<256;a++)this.toFontChar[a]=this.differences[a]||n.defaultEncoding[a];this.fontType=r.FontType.TYPE3}}function t(e,t){return(e<<8)+t}function n(e,t){var n=(e<<8)+t;return 32768&n?n-65536:n}function h(e){return String.fromCharCode(e>>8&255,255&e)}function O(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function P(e){var t=e.peekBytes(4);return"ttcf"===(0,r.bytesToString)(t)}function E(e,t,n){for(var r,a=[],i=0,o=e.length;il){if(++o>=p.length){(0,r.warn)("Ran out of space in font private use area.");break}s=p[o][0],l=p[o][1]}var d=s++;0===u&&(u=n),a[d]=u,i[c]=d}}return{toFontChar:i,charCodeToGlyphId:a,nextAvailableFontCharCode:s}}function M(e,t){var n,a,i,o,s=function(e,t){var n=[];for(var r in e)e[r]>=t||n.push({fontCharCode:0|r,glyphId:e[r]});0===n.length&&n.push({fontCharCode:0,glyphId:0}),n.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var a=[],i=n.length,o=0;o65535?2:1,c="\0\0"+h(l)+"\0\x03\0\x01"+(0,r.string32)(4+8*l);for(n=s.length-1;n>=0&&!(s[n][0]<=65535);--n);var u=n+1;s[n][0]<65535&&65535===s[n][1]&&(s[n][1]=65534);var d,f,p,m,g=s[n][1]<65535?1:0,v=u+g,y=_.getSearchParams(v,2),b="",w="",x="",k="",S="",C=0;for(n=0,a=u;n0&&(w+="\xff\xff",b+="\xff\xff",x+="\0\x01",k+="\0\0");var P="\0\0"+h(2*v)+h(y.range)+h(y.entry)+h(y.rangeShift)+w+"\0\0"+b+x+k+S,E="",T="";if(l>1){for(c+="\0\x03\0\n"+(0,r.string32)(4+8*l+4+P.length),E="",n=0,a=s.length;n(d|=0)||!c)&&(c=d),u 123 are reserved for internal usage");s|=1<65535&&(u=65535)}else c=0,u=255;var p=e.bbox||[0,0,0,0],m=n.unitsPerEm||1/(e.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],v=e.ascentScaled?1:m/g,y=n.ascent||Math.round(v*(e.ascent||p[3])),b=n.descent||Math.round(v*(e.descent||p[1]));b>0&&e.descent>0&&p[1]<0&&(b=-b);var w=n.yMax||y,x=-n.yMin||-b;return"\0\x03\x02$\x01\xf4\0\x05\0\0\x02\x8a\x02\xbb\0\0\0\x8c\x02\x8a\x02\xbb\0\0\x01\xdf\x001\x01\x02\0\0\0\0\x06"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(a)+(0,r.string32)(i)+(0,r.string32)(o)+(0,r.string32)(s)+"*21*"+h(e.italicAngle?1:0)+h(c||e.firstChar)+h(u||e.lastChar)+h(y)+h(b)+"\0d"+h(w)+h(x)+"\0\0\0\0\0\0\0\0"+h(e.xHeight)+h(e.capHeight)+h(0)+h(c||e.firstChar)+"\0\x03"}function D(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\x03\0\0"+(0,r.string32)(t)+"\0\0\0\0"+(0,r.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function R(e,t){t||(t=[[],[]]);var n,r,a,i,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(n=0,r=s.length;n0,p&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var m=(0,s.getGlyphMapForStandardFonts)(),g=[];for(e in m)g[+e]=m[e];if(/Arial-?Black/i.test(a)){var v=(0,s.getSupplementalGlyphMapForArialBlack)();for(e in v)g[+e]=v[e]}else if(/Calibri/i.test(a)){var y=(0,s.getSupplementalGlyphMapForCalibri)();for(e in y)g[+e]=y[e]}this.toUnicode instanceof A||this.toUnicode.forEach((function(e,t){g[+e]=t})),this.toFontChar=g,this.toUnicode=new C(g)}else if(/Symbol/i.test(d))this.toFontChar=E(o.SymbolSetEncoding,(0,i.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(d))/Wingdings/i.test(a)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=E(o.ZapfDingbatsEncoding,(0,i.getDingbatsGlyphsUnicode)(),this.differences);else if(p)this.toFontChar=E(this.defaultEncoding,(0,i.getGlyphsUnicode)(),this.differences);else{var b=(0,i.getGlyphsUnicode)(),w=[];if(this.toUnicode.forEach((function(e,r){if(!n.composite){var a=n.differences[e]||n.defaultEncoding[e];-1!==(t=(0,l.getUnicodeForGlyph)(a,b))&&(r=t)}w[+e]=r})),this.composite&&this.toUnicode instanceof A&&/Verdana/i.test(a)){var k=(0,s.getGlyphMapForStandardFonts)();for(e in k)w[+e]=k[e]}this.toFontChar=w}this.loadedName=d.split("-")[0],this.fontType=x(c,u)},checkAndRepair:function(e,s,l){var c=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function u(e,t){var n=Object.create(null);n["OS/2"]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(var r=0;r>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.pos;e.pos=e.start?e.start:0,e.skip(a);var s=e.getBytes(i);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:n,length:i,offset:a,data:s}}function p(e){return{version:(0,r.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function m(e,t,r,a,i,o){var s={length:0,sizeOfInstructions:0};if(r-t<=12)return s;var l,c,u,d=e.subarray(t,r),f=n(d[0],d[1]);if(f<0)return u=f=-1,(l=d)[1+(c=0)]=u,l[c]=u>>>8,a.set(d,i),s.length=d.length,s;var h,p=10,m=0;for(h=0;hd.length?s:!o&&v>0?(a.set(d.subarray(0,g),i),a.set([0,0],i+g),a.set(d.subarray(y,A),i+g+2),A-=v,d.length-A>3&&(A=A+3&-4),s.length=A,s):d.length-A>3?(A=A+3&-4,a.set(d.subarray(0,A),i),s.length=A,s):(a.set(d,i),s.length=d.length,s)}function g(e){var t=(s.start?s.start:0)+e.offset;s.pos=t;var n=[[],[]],a=e.length,i=t+a;if(0!==s.getUint16()||a<6)return n;var o,l,c=s.getUint16(),u=s.getUint16(),d=[];for(o=0;oi)){s.pos=p;var m=h.name;if(h.encoding){for(var g="",v=0,y=h.length;v0&&(c+=x-1)}}else(g||y)&&((0,r.warn)("TT: nested FDEFs not allowed"),m=!0),g=!0,d=c,o=f.pop(),t.functionsDefined[o]={data:l,i:c};else if(!g&&!y)if(o=f[f.length-1],isNaN(o))(0,r.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){var k=f.length+t.functionsStackDeltas[o];if(k<0)return(0,r.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);f.length=k}else if(o in t.functionsDefined&&!p.includes(o)){if(h.push({data:l,i:c,stackTop:f.length-1}),p.push(o),!(s=t.functionsDefined[o]))return(0,r.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!g&&!y){var S=0;for(w<=142?S=A[w]:w>=192&&w<=223?S=-1:w>=224&&(S=-2),w>=113&&w<=117&&(a=f.pop(),isNaN(a)||(S=2*-a));S<0&&f.length>0;)f.pop(),S++;for(;S>0;)f.push(NaN),S--}}t.tooComplexToFollowFunctions=m;var C=[l];c>l.length&&C.push(new Uint8Array(c-l.length)),d>u&&((0,r.warn)("TT: complementing a missing function tail"),C.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var n,r,a=0;for(n=0,r=t.length;n>>0,o=[],s=0;s>>0);var l={ttcTag:t,majorVersion:n,minorVersion:a,numFonts:i,offsetTable:o};switch(n){case 1:return l;case 2:return l.dsigTag=e.getInt32()>>>0,l.dsigLength=e.getInt32()>>>0,l.dsigOffset=e.getInt32()>>>0,l}throw new r.FormatError("Invalid TrueType Collection majorVersion: ".concat(n,"."))}(e),a=n.numFonts,i=n.offsetTable,o=0;o0||!(l.cMap instanceof d.IdentityCMap));if("OTTO"===y.version&&!L||!x.head||!x.hhea||!x.maxp||!x.post)return C=new f.Stream(x["CFF "].data),S=new j(C,l),w(l),this.convert(e,S,l);delete x.glyf,delete x.loca,delete x.fpgm,delete x.prep,delete x["cvt "],this.isOpenType=!0}if(!x.maxp)throw new r.FormatError('Required "maxp" table is not found');s.pos=(s.start||0)+x.maxp.offset;var F=s.getInt32(),B=s.getUint16(),U=B+1,$=!0;U>65535&&($=!1,U=B,(0,r.warn)("Not enough space in glyfs to duplicate first glyph."));var z=0,q=0;F>=65536&&x.maxp.length>=22&&(s.pos+=8,s.getUint16()>2&&(x.maxp.data[14]=0,x.maxp.data[15]=2),s.pos+=4,z=s.getUint16(),s.pos+=4,q=s.getUint16()),x.maxp.data[4]=U>>8,x.maxp.data[5]=255&U;var G=function(e,t,n,a){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&O(e,i),t&&O(t,i),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,r.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var n=0,a=e.functionsUsed.length;nt)return(0,r.warn)("TT: invalid function id: "+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return(0,r.warn)("TT: undefined function: "+n),void(e.hintsValid=!1)}}}(i,a),n&&1&n.length){var o=new Uint8Array(n.length+1);o.set(n.data),n.data=o}return i.hintsValid}(x.fpgm,x.prep,x["cvt "],z);if(G||(delete x.fpgm,delete x.prep,delete x["cvt "]),function(e,t,n,a,i){if(t){e.pos=(e.start?e.start:0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=8,e.pos+=2;var o=e.getUint16();o>a&&((0,r.info)("The numOfMetrics ("+o+") should not be greater than the numGlyphs ("+a+")"),o=a,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=a-o-(n.length-4*o>>1);if(s>0){var l=new Uint8Array(n.length+2*s);l.set(n.data),i&&(l[n.length]=n.data[2],l[n.length+1]=n.data[3]),n.data=l}}else n&&(n.data=null)}(s,x.hhea,x.hmtx,U,$),!x.head)throw new r.FormatError('Required "head" table is not found');!function(e,n,a){var i,o,s,l,c=e.data,u=(i=c[0],o=c[1],s=c[2],l=c[3],(i<<24)+(o<<16)+(s<<8)+l);u>>16!==1&&((0,r.info)("Attempting to fix invalid version in head table: "+u),c[0]=0,c[1]=1,c[2]=0,c[3]=0);var d=t(c[50],c[51]);if(d<0||d>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+d);var f=n+1;if(a===f<<1)c[50]=0,c[51]=0;else{if(a!==f<<2)throw new r.FormatError("Could not fix indexToLocFormat: "+d);c[50]=0,c[51]=1}}}(x.head,B,T?x.loca.length:0);var H=Object.create(null);if(T){var W=t(x.head.data[50],x.head.data[51]),V=function(e,t,n,r,a,i,o){var s,l,c;r?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}):(s=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});var u=i?n+1:n,d=s*(1+u),f=new Uint8Array(d);f.set(e.data.subarray(0,d)),e.data=f;var h,p,g=t.data,v=g.length,y=new Uint8Array(v),b=l(f,0),w=0,x=Object.create(null);for(c(f,0,w),h=0,p=s;hv&&(v+3&-4)===k&&(k=v),k>v&&(b=k);var S=m(g,b,k,y,w,a),C=S.length;0===C&&(x[h]=!0),S.sizeOfInstructions>o&&(o=S.sizeOfInstructions),c(f,p,w+=C),b=k}if(0===w){var A=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(h=0,p=s;h_+w?t.data=y.subarray(0,_+w):(t.data=new Uint8Array(_+w),t.data.set(y.subarray(0,w))),t.data.set(y.subarray(0,_),w),c(e.data,f.length-s,w+_)}else t.data=y.subarray(0,w);return{missingGlyphs:x,maxSizeOfInstructions:o}}(x.loca,x.glyf,B,W,G,$,q);H=V.missingGlyphs,F>=65536&&x.maxp.length>=22&&(x.maxp.data[26]=V.maxSizeOfInstructions>>8,x.maxp.data[27]=255&V.maxSizeOfInstructions)}if(!x.hhea)throw new r.FormatError('Required "hhea" table is not found');0===x.hhea.data[10]&&0===x.hhea.data[11]&&(x.hhea.data[10]=255,x.hhea.data[11]=255);var K={unitsPerEm:t(x.head.data[18],x.head.data[19]),yMax:t(x.head.data[42],x.head.data[43]),yMin:n(x.head.data[38],x.head.data[39]),ascent:t(x.hhea.data[4],x.hhea.data[5]),descent:n(x.hhea.data[6],x.hhea.data[7])};this.ascent=K.ascent/K.unitsPerEm,this.descent=K.descent/K.unitsPerEm,x.post&&function(e,t,n){var a=(s.start?s.start:0)+e.offset;s.pos=a;var i,o=a+e.length,l=s.getInt32();s.getBytes(28);var c,u=!0;switch(l){case 65536:i=b;break;case 131072:var d=s.getUint16();if(d!==n){u=!1;break}var f=[];for(c=0;c=32768){u=!1;break}f.push(h)}if(!u)break;for(var p=[],m=[];s.pos65535)throw new r.FormatError("Max size of CID is 65,535");var n=-1;Q?n=t:void 0!==J[t]&&(n=J[t]),n>=0&&n>>0,p=!1;if((!s||s.platformId!==d||s.encodingId!==f)&&(0===d&&0===f||1===d&&0===f?p=!0:3!==d||1!==f||!a&&s?n&&3===d&&0===f&&(p=!0,c=!0):(p=!0,n||(c=!0)),p&&(s={platformId:d,encodingId:f,offset:h}),c))break}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,r.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var m=t.getUint16();t.getUint16(),t.getUint16();var g,v,y=!1,b=[];if(0===m){for(g=0;g<256;g++){var w=t.getByte();w&&b.push({charCode:g,glyphId:w})}y=!0}else if(4===m){var x=t.getUint16()>>1;t.getBytes(6);var k,S=[];for(k=0;k>1)-(x-k);i.offsetIndex=_,C=Math.max(C,_+i.end-i.start+1)}else i.offsetIndex=-1}var O=[];for(g=0;g0&&Z(fe)&&(X[Y]=fe)}}}}else if(0===te&&0===ne)for(var he=0;he=61440&&Y<=61695&&(Y&=255),X[Y]=re[pe].glyphId}0===X.length&&(X[0]=0);var me=U-1;$||(me=0);var ge=N(X,Z,me);if(this.toFontChar=ge.toFontChar,x.cmap={tag:"cmap",data:M(ge.charCodeToGlyphId,U)},x["OS/2"]&&function(e){var t=new f.Stream(e.data),n=t.getUint16();t.getBytes(60);var r=t.getUint16();return!(n<4&&768&r)&&!(t.getUint16()>t.getUint16())&&(t.getBytes(6),0!==t.getUint16()&&(e.data[8]=e.data[9]=0,!0))}(x["OS/2"])||(x["OS/2"]={tag:"OS/2",data:I(l,ge.charCodeToGlyphId,K)}),!T)try{C=new f.Stream(x["CFF "].data),(S=new a.CFFParser(C,l,v).parse()).duplicateFirstGlyph();var ve=new a.CFFCompiler(S);x["CFF "].data=ve.compile()}catch(xe){(0,r.warn)("Failed to compile font "+l.loadedName)}if(x.name){var ye=g(x.name);x.name.data=R(e,ye)}else x.name={tag:"name",data:R(this.name)};var be=new _(y.version);for(var we in x)be.addTable(we,x[we].data);return be.toArray()},convert:function(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&function(e,t){if(!e.hasIncludedToUnicodeMap&&!e.hasEncoding&&t!==e.defaultEncoding&&!(e.toUnicode instanceof A)){var n=[],r=(0,i.getGlyphsUnicode)();for(var a in t){var o=t[a],s=(0,l.getUnicodeForGlyph)(o,r);-1!==s&&(n[a]=String.fromCharCode(s))}e.toUnicode.amend(n)}}(n,n.builtInEncoding);var a=1;t instanceof j&&(a=t.numGlyphs-1);var s=t.getGlyphMapping(n),c=N(s,t.hasGlyphId.bind(t),a);this.toFontChar=c.toFontChar;var u=t.numGlyphs;function d(e,t){var n=null;for(var r in e)t===e[r]&&(n||(n=[]),n.push(0|r));return n}function f(e,t){for(var n in e)if(t===e[n])return 0|n;return c.charCodeToGlyphId[c.nextAvailableFontCharCode]=t,c.nextAvailableFontCharCode++}var p=t.seacs;if(v&&p&&p.length){var m=n.fontMatrix||r.FONT_IDENTITY_MATRIX,g=t.getCharset(),y=Object.create(null);for(var b in p){var w=p[b|=0],x=o.StandardEncoding[w[2]],k=o.StandardEncoding[w[3]],S=g.indexOf(x),C=g.indexOf(k);if(!(S<0||C<0)){var P={x:w[0]*m[0]+w[1]*m[2]+m[4],y:w[0]*m[1]+w[1]*m[3]+m[5]},E=d(s,b);if(E)for(var T=0,L=E.length;T=0?r:0;else if(c)for(a in t)l[a]=t[a];else for(s=o.StandardEncoding,a=0;a=0?r:0;var u,d=e.differences;if(d)for(a in d){var f=d[a];if(-1===(r=n.indexOf(f))){u||(u=(0,i.getGlyphsUnicode)());var h=k(f,u);h!==f&&(r=n.indexOf(h))}l[a]=r>=0?r:0}return l}t.ErrorFont=P;var T=function(){function e(e,t,n){for(var r,a=e.length,i=t.length,o=a-i,s=n,l=!1;s=i){for(s+=r;s=0&&(i[o]=t)}return E(e,i,r)},hasGlyphId:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)},getSeacs:function(e){var t,n,r=[];for(t=0,n=e.length;t0;b--)y[b]-=y[b-1];m.setByName(v,y)}}o.topDict.privateDict=m;var w=new a.CFFIndex;for(c=0,u=r.length;c=t)throw new r.FormatError("Invalid CFF header");0!==n&&((0,r.info)("cff data is shifted"),e=e.subarray(n),this.bytes=e);var a=e[0],i=e[1],o=e[2],s=e[3];return{obj:new u(a,i,o,s),endPos:o}},parseDict:function(e){var t=0;function n(){var n=e[t++];return 30===n?function(){for(var n="",r=15,a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;t>4,l=15&o;if(s===r)break;if(n+=a[s],l===r)break;n+=a[l]}return parseFloat(n)}():28===n?n=((n=e[t++])<<24|e[t++]<<16)>>16:29===n?n=(n=(n=(n=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:n>=32&&n<=246?n-139:n>=247&&n<=250?256*(n-247)+e[t++]+108:n>=251&&n<=254?-256*(n-251)-e[t++]-108:((0,r.warn)('CFFParser_parseDict: "'+n+'" is a reserved command.'),NaN)}var a=[],i=[];t=0;for(var o=e.length;t10)return!1;for(var s=n.stackSize,l=n.stack,c=a.length,u=0;u>16,u+=2,s++;else if(14===d){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return n.seac=l.slice(s,s+4),!1;f=e[d]}else if(d>=32&&d<=246)l[s]=d-139,s++;else if(d>=247&&d<=254)l[s]=d<251?(d-247<<8)+a[u]+108:-(d-251<<8)-a[u]-108,u++,s++;else if(255===d)l[s]=(a[u]<<24|a[u+1]<<16|a[u+2]<<8|a[u+3])/65536,u+=4,s++;else if(19===d||20===d)n.hints+=s>>1,u+=n.hints+7>>3,s%=2,f=e[d];else{if(10===d||29===d){var p;if(!(p=10===d?i:o))return f=e[d],(0,r.warn)("Missing subrsIndex for "+f.id),!1;var m=32768;p.count<1240?m=107:p.count<33900&&(m=1131);var g=l[--s]+m;if(g<0||g>=p.count||isNaN(g))return f=e[d],(0,r.warn)("Out of bounds subrIndex for "+f.id),!1;if(n.stackSize=s,n.callDepth++,!this.parseCharString(n,p.get(g),i,o))return!1;n.callDepth--,s=n.stackSize;continue}if(11===d)return n.stackSize=s,!0;f=e[d]}if(f){if(f.stem&&(n.hints+=s>>1,3===d||23===d?n.hasVStems=!0:!n.hasVStems||1!==d&&18!==d||((0,r.warn)("CFF stem hints are in wrong order"),a[u-1]=1===d?3:23)),"min"in f&&!n.undefStack&&s=2&&f.stem?s%=2:s>1&&(0,r.warn)("Found too many parameters for stack-clearing command"),s>0&&l[s-1]>=0&&(n.width=l[s-1])),"stackDelta"in f?("stackFn"in f&&f.stackFn(l,s),s+=f.stackDelta):f.stackClearing?s=0:f.resetStack?(s=0,n.undefStack=!1):f.undefStack&&(s=0,n.undefStack=!0,n.firstStackClearing=!1)}}return n.stackSize=s,!0},parseCharStrings:function(e){for(var t=e.charStrings,n=e.localSubrIndex,a=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,l=[],c=[],u=t.count,d=0;d=o.length&&((0,r.warn)("Invalid fd index for glyph index."),p=!1),p&&(m=(g=o[v].privateDict).subrsIndex)}else n&&(m=n);if(p&&(p=this.parseCharString(h,f,m,a)),null!==h.width){var y=g.getByName("nominalWidthX");c[d]=y+h.width}else{var b=g.getByName("defaultWidthX");c[d]=b}null!==h.seac&&(l[d]=h.seac),p||t.set(d,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}},emptyPrivateDictionary:function(e){var t=this.createDict(m,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(0===n||r>=this.bytes.length)this.emptyPrivateDictionary(e);else{var a=r+n,i=this.bytes.subarray(r,a),o=this.parseDict(i),s=this.createDict(m,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var l=s.getByName("Subrs"),c=r+l;if(0===l||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(c);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,n,i){if(0===e)return new v(!0,g.ISO_ADOBE,a.ISOAdobeCharset);if(1===e)return new v(!0,g.EXPERT,a.ExpertCharset);if(2===e)return new v(!0,g.EXPERT_SUBSET,a.ExpertSubsetCharset);var o,s,l,c=this.bytes,u=e,d=c[e++],f=[".notdef"];switch(t-=1,d){case 0:for(l=0;l=65535)(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}},hasGlyphId:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}},e}();t.CFF=c;var u=function(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r};t.CFFHeader=u;var d=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=390?o[e]:e-s<=this.strings.length?this.strings[e-s]:o[0]},getSID:function(e){var t=o.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+s:-1},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=d;var f=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=f;var h=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var n=t.length;if(0===n)return!0;for(var a=0;a=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=b;var w=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new r.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,n){if(!(e in this.offsets))throw new r.FormatError("Not tracking location of ".concat(e));for(var a=n.data,i=this.offsets[e],o=0,s=t.length;o>24&255,a[u]=h>>16&255,a[d]=h>>8&255,a[f]=255&h}}},e}(),x=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);var a=this.compileNameIndex(e.names);if(t.add(a),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new f,n=0,a=e.length;n"~"||"["===c||"]"===c||"("===c||")"===c||"{"===c||"}"===c||"<"===c||">"===c||"/"===c||"%"===c)&&(c="_"),s[l]=c}""===(s=s.join(""))&&(s="Bad_Font_Name"),t.add((0,r.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,n){for(var r=[],a=new f,i=0,o=e.length;i>8&255,255&o]);else{(i=new Uint8Array(1+2*o))[0]=0;for(var s=0,l=e.charset.length,c=!1,u=1;u>8&255,i[u+1]=255&d}}return this.compileTypedArray(i)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){var t,n,r=e.format;switch(r){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=r,n=0;n>8&255,255&n,o),a=o)}var s=(i.length-3)/3;i[1]=s>>8&255,i[2]=255&s,i.push(n>>8&255,255&n),t=new Uint8Array(i)}return this.compileTypedArray(t)},compileTypedArray:function(e){for(var t=[],n=0,r=e.length;n>8&255,255&r],s=1;for(a=0;a>8&255,255&l):3===i?o.push(l>>16&255,l>>8&255,255&l):o.push(l>>>24&255,l>>16&255,l>>8&255,255&l),n[a]&&(l+=n[a].length);for(a=0;a=65520&&e<=65535?0:e>=62976&&e<=63743?a()[e]||e:173===e?45:e},t.reverseIfRtl=function(e){var t=e.length;if(t<=1||!function(e){var t=i[13];return e>=t.begin&&e=(t=i[11]).begin&&e=0;r--)n+=e[r];return n},t.getUnicodeRangeFor=function(e){for(var t=0,n=i.length;t=r.begin&&e=5&&a<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()&&(n=parseInt(r,16))>=0)return n}return-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var r=n(2),a=n(28),i=n(31),o=n(30),s=n(11),l=function(){function e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function t(e,t){return e[t]<<8|e[t+1]}function n(e){var t=e.length,n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function l(n,a,i){var o,s,l,c=1===t(n,a+2)?e(n,a+8):e(n,a+16),u=t(n,a+c);if(4===u){t(n,a+c+2);var d=t(n,a+c+6)>>1;for(s=a+c+14,o=[],l=0;l>1;n>16,c=0,u=0;if(s+=10,l<0)do{o=e[s]<<8|e[s+1];var d,f,h=e[s+2]<<8|e[s+3];s+=4,1&o?(d=(e[s]<<24|e[s+1]<<16)>>16,f=(e[s+2]<<24|e[s+3]<<16)>>16,s+=4):(d=e[s++],f=e[s++]),2&o?(c=d,u=f):(c=0,u=0);var p=1,g=1,v=0,y=0;8&o?(p=g=(e[s]<<24|e[s+1]<<16)/1073741824,s+=2):64&o?(p=(e[s]<<24|e[s+1]<<16)/1073741824,g=(e[s+2]<<24|e[s+3]<<16)/1073741824,s+=4):128&o&&(p=(e[s]<<24|e[s+1]<<16)/1073741824,v=(e[s+2]<<24|e[s+3]<<16)/1073741824,y=(e[s+4]<<24|e[s+5]<<16)/1073741824,g=(e[s+6]<<24|e[s+7]<<16)/1073741824,s+=8);var b=n.glyphs[h];b&&(t.push({cmd:"save"}),t.push({cmd:"transform",args:[p,v,y,g,c,u]}),m(b,t,n),t.push({cmd:"restore"}))}while(32&o);else{var w,x,k=[];for(w=0;w0;)C.push({flags:o})}for(w=0;w>16,s+=2;break;case 2:c-=e[s++];break;case 18:c+=e[s++]}C[w].x=c}for(w=0;w>16,s+=2;break;case 4:u-=e[s++];break;case 36:u+=e[s++]}C[w].y=u}var _=0;for(s=0;s>1,_=!0;break;case 4:c+=s.pop(),d(l,c),_=!0;break;case 5:for(;s.length>0;)l+=s.shift(),c+=s.shift(),f(l,c);break;case 6:for(;s.length>0&&(f(l+=s.shift(),c),0!==s.length);)c+=s.shift(),f(l,c);break;case 7:for(;s.length>0&&(c+=s.shift(),f(l,c),0!==s.length);)f(l+=s.shift(),c);break;case 8:for(;s.length>0;)y=l+s.shift(),w=c+s.shift(),b=y+s.shift(),x=w+s.shift(),l=b+s.shift(),c=x+s.shift(),h(y,w,b,x,l,c);break;case 10:if(C=s.pop(),A=null,a.isCFFCIDFont){var P=a.fdSelect.getFDIndex(i);if(P>=0&&PMath.abs(c-N)?l+=s.shift():c+=s.shift(),h(y,w,b,x,l,c);break;default:throw new r.FormatError("unknown operator: 12 ".concat(O))}break;case 14:if(s.length>=4){var M=s.pop(),I=s.pop();c=s.pop(),l=s.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[l,c]});var D=p(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]]));g(a.glyphs[D.glyphId],t,a,D.glyphId),t.push({cmd:"restore"}),D=p(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[I]])),g(a.glyphs[D.glyphId],t,a,D.glyphId)}return;case 19:case 20:v+=(u+=s.length>>1)+7>>3,_=!0;break;case 21:c+=s.pop(),d(l+=s.pop(),c),_=!0;break;case 22:d(l+=s.pop(),c),_=!0;break;case 24:for(;s.length>2;)y=l+s.shift(),w=c+s.shift(),b=y+s.shift(),x=w+s.shift(),l=b+s.shift(),c=x+s.shift(),h(y,w,b,x,l,c);l+=s.shift(),c+=s.shift(),f(l,c);break;case 25:for(;s.length>6;)l+=s.shift(),c+=s.shift(),f(l,c);y=l+s.shift(),w=c+s.shift(),b=y+s.shift(),x=w+s.shift(),l=b+s.shift(),c=x+s.shift(),h(y,w,b,x,l,c);break;case 26:for(s.length%2&&(l+=s.shift());s.length>0;)y=l,w=c+s.shift(),b=y+s.shift(),x=w+s.shift(),l=b,c=x+s.shift(),h(y,w,b,x,l,c);break;case 27:for(s.length%2&&(c+=s.shift());s.length>0;)h(y=l+s.shift(),w=c,b=y+s.shift(),x=w+s.shift(),l=b+s.shift(),c=x);break;case 28:s.push((m[v]<<24|m[v+1]<<16)>>16),v+=2;break;case 29:C=s.pop()+a.gsubrsBias,(A=a.gsubrs[C])&&e(A);break;case 30:for(;s.length>0&&(y=l,w=c+s.shift(),b=y+s.shift(),x=w+s.shift(),l=b+s.shift(),c=x+(1===s.length?s.shift():0),h(y,w,b,x,l,c),0!==s.length);)y=l+s.shift(),w=c,b=y+s.shift(),x=w+s.shift(),c=x+s.shift(),h(y,w,b,x,l=b+(1===s.length?s.shift():0),c);break;case 31:for(;s.length>0&&(y=l+s.shift(),w=c,b=y+s.shift(),x=w+s.shift(),c=x+s.shift(),h(y,w,b,x,l=b+(1===s.length?s.shift():0),c),0!==s.length);)y=l,w=c+s.shift(),b=y+s.shift(),x=w+s.shift(),l=b+s.shift(),c=x+(1===s.length?s.shift():0),h(y,w,b,x,l,c);break;default:if(O<32)throw new r.FormatError("unknown operator: ".concat(O));O<247?s.push(O-139):O<251?s.push(256*(O-247)+m[v++]+108):O<255?s.push(256*-(O-251)-m[v++]-108):(s.push((m[v]<<24|m[v+1]<<16|m[v+2]<<8|m[v+3])/65536),v+=4)}_&&(s.length=0)}}(e)}var v=[],y=function(){function e(t){d(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return u(e,[{key:"getPathJs",value:function(e){var t=p(this.cmap,e),n=this.compiledGlyphs[t.glyphId];return n||(n=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=n),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),n}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return v;var n=this.fontMatrix;if(this.isCFFCIDFont){var a=this.fdSelect.getFDIndex(t);a>=0&&ar)return!0;for(var a=r-e,i=a;i>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),n?this.stack.splice(a,e):this.stack.length=0,!1}},f}(),l=function(){var e=55665;function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function n(e,t,n){if(n>=e.length)return new Uint8Array(0);var r,a,i=0|t;for(r=0;r>8,i=52845*(l+i)+22719&65535}return s}function o(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function l(r,a,o){if(a){var s=r.getBytes(),l=!(t(s[0])&&t(s[1])&&t(s[2])&&t(s[3]));r=new i.Stream(l?n(s,e,4):function(e,n,r){var a,i,o=0|n,s=e.length,l=new Uint8Array(s>>>1);for(a=0,i=0;a>8,o=52845*(d+o)+22719&65535}}}return Array.prototype.slice.call(l,r,i)}(s,e,4))}this.seacAnalysisEnabled=!!o,this.stream=r,this.nextChar()}return l.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){return"true"===this.getToken()?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(o(t))return this.nextChar(),String.fromCharCode(t);var n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!o(t));return n},readCharStrings:function(e,t){return-1===t?e:n(e,4330,t)},extractFontProgram:function(e){var t=this.stream,n=[],r=[],a=Object.create(null);a.lenIV=4;for(var i,o,l,c,u,d={subrs:[],charstrings:[],properties:{privateData:a}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)if("/"===i){var f=this.getToken();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=d.properties.privateData.lenIV,u=this.readCharStrings(l,c),this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),r.push({glyph:f,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var h=this.readInt();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=d.properties.privateData.lenIV,u=this.readCharStrings(l,c),this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),n[h]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var p=this.readNumberArray();p.length>0&&p.length;break;case"StemSnapH":case"StemSnapV":d.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":d.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":d.properties.privateData[i]=this.readNumber();break;case"ForceBold":d.properties.privateData[i]=this.readBoolean()}for(var m=0;m-1&&void 0===e.widths[w]&&w>=e.firstChar&&w<=e.lastChar&&(e.widths[w]=g.width)}}return d},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var n=this.readNumberArray();e.fontMatrix=n;break;case"Encoding":var a,i=this.getToken();if(/^\d+$/.test(i)){a=[];var o=0|parseInt(i,10);this.getToken();for(var s=0;s=f||_<=0)(0,r.info)("Bad shading domain.");else{for(var P,E=new Float32Array(l.numComps),T=new Float32Array(1),j=0;j<=10;j++){T[0]=d+j*_,A(T,0,E,0),P=l.getRgb(E,0);var N=r.Util.makeCssRgb(P[0],P[1],P[2]);O.push([j/10,N])}var M="transparent";e.has("Background")&&(P=l.getRgb(e.get("Background"),0),M=r.Util.makeCssRgb(P[0],P[1],P[2])),p||(O.unshift([0,M]),O[1][0]+=c.SMALL_NUMBER),m||(O[O.length-1][0]-=c.SMALL_NUMBER,O.push([1,M])),this.colorStops=O}}return e.prototype={getIR:function(){var e,t,n,a,i,o=this.coordsArr,l=this.shadingType;l===s.AXIAL?(t=[o[0],o[1]],n=[o[2],o[3]],a=null,i=null,e="axial"):l===s.RADIAL?(t=[o[0],o[1]],n=[o[3],o[4]],a=o[2],i=o[5],e="radial"):(0,r.unreachable)("getPattern type unknown: ".concat(l));var c=this.matrix;if(c&&(t=r.Util.applyTransform(t,c),n=r.Util.applyTransform(n,c),l===s.RADIAL)){var u=r.Util.singularValueDecompose2dScale(c);a*=u[0],i*=u[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,n,a,i]}},e}(),c.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var n=t.numComps;this.tmpCompsBuf=new Float32Array(n);var r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)},readBits:function(e){var t=this.buffer,n=this.bufferLength;if(32===e){if(0===n)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var r=this.stream.getByte();return this.buffer=r&(1<>n)>>>0}if(8===e&&0===n)return this.stream.getByte();for(;n>n},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),n=this.readBits(e),r=this.context.decode,a=e<32?1/((1<s?s:t,n=n>l?l:n,r=r=0&&"ET"===h[O];--O)h[O]="EN";for(O=g+1;O0&&(E=h[g-1]);var T=A;P+1j&&o(j)&&(M=j);for(j=N;j>=M;--j){var I=-1;for(g=0,v=x.length;g=0&&(u(f,I,g),I=-1):I<0&&(I=g);I>=0&&u(f,I,x.length)}for(g=0,v=f.length;g"!==D||(f[g]="")}return d(f.join(""),p)};var r=n(2),a=["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"],i=["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 o(e){return 0!==(1&e)}function s(e){return 0===(1&e)}function l(e,t,n){for(var r=t,a=e.length;r2&&void 0!==arguments[2]&&arguments[2]?n="ttb":t||(n="rtl"),{str:e,dir:n}}var f=[],h=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var r=n(7),a=(0,r.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,r.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}));t.getMetrics=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=function(e){var t;if("object"!==typeof e)return!1;if((0,a.isDict)(e))t=e;else{if(!(0,a.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var r=n(2),a=n(4),i=n(40),o=function(){function e(t){var n=t.xref,r=t.isEvalSupported,a=void 0===r||r;d(this,e),this.xref=n,this.isEvalSupported=!1!==a}return u(e,[{key:"create",value:function(e){return l.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e})}},{key:"createFromArray",value:function(e){return l.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e})}}]),e}();function s(e){if(!Array.isArray(e))return null;for(var t=e.length,n=0;n>l)*u,c&=(1<n?e=n:e0&&(f=r[u-1]);var h=n[1];u>1,c=a.length>>1,u=new f(o),d=Object.create(null),p=8192,m=new Float32Array(c);return function(e,t,n,r){var a,o,s="",f=m;for(a=0;a(b=i[2*a+1]))&&(o=b),g[a]=o}p>0&&(p--,d[s]=g),n.set(g,r)}else n.set(h,r)}}},c=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return e.prototype={push:function(e){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(e)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){if(this.stack.length+e>=100)throw new Error("PostScript function stack overflow.");for(var t=this.stack,n=t.length-e,r=e-1;r>=0;r--,n++)t.push(t[n])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var n,r,a,i=this.stack,o=i.length-e,s=i.length-1,l=o+(t-Math.floor(t/e)*e);for(n=o,r=s;n0?i.push(n<>a);break;case"ceiling":n=i.pop(),i.push(Math.ceil(n));break;case"copy":n=i.pop(),i.copy(n);break;case"cos":n=i.pop(),i.push(Math.cos(n));break;case"cvi":n=0|i.pop(),i.push(n);break;case"cvr":break;case"div":a=i.pop(),n=i.pop(),i.push(n/a);break;case"dup":i.copy(1);break;case"eq":a=i.pop(),n=i.pop(),i.push(n===a);break;case"exch":i.roll(2,1);break;case"exp":a=i.pop(),n=i.pop(),i.push(Math.pow(n,a));break;case"false":i.push(!1);break;case"floor":n=i.pop(),i.push(Math.floor(n));break;case"ge":a=i.pop(),n=i.pop(),i.push(n>=a);break;case"gt":a=i.pop(),n=i.pop(),i.push(n>a);break;case"idiv":a=i.pop(),n=i.pop(),i.push(n/a|0);break;case"index":n=i.pop(),i.index(n);break;case"le":a=i.pop(),n=i.pop(),i.push(n<=a);break;case"ln":n=i.pop(),i.push(Math.log(n));break;case"log":n=i.pop(),i.push(Math.log(n)/Math.LN10);break;case"lt":a=i.pop(),n=i.pop(),i.push(n=t?new n(t):e.max<=t?e:new i(e,t)}function h(){}return e.prototype.visit=function(e){(0,r.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},n.prototype=Object.create(e.prototype),n.prototype.visit=function(e){e.visitLiteral(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitBinaryOperation(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitMin(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariable(this)},s.prototype=Object.create(e.prototype),s.prototype.visit=function(e){e.visitVariableDefinition(this)},l.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},h.prototype={compile:function(e,r,a){var i,h,p,m,g,v,y,b,w,x,k=[],S=[],C=r.length>>1,A=a.length>>1,_=0;for(i=0;ie.min&&(o.unshift("Math.max(",r,", "),o.push(")")),i=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));var r=n.join("");switch(r.toLowerCase()){case"if":return l.IF;case"ifelse":return l.IFELSE;default:return l.getOperator(r)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var n=parseFloat(t.join(""));if(isNaN(n))throw new r.FormatError("Invalid floating point number: ".concat(n));return n}}]),e}();t.PostScriptLexer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(2),a=3285377520,i=4294901760,o=65535,s=function(){function e(t){d(this,e),this.h1=t?4294967295&t:a,this.h2=t?4294967295&t:a}return u(e,[{key:"update",value:function(e){var t,n;if((0,r.isString)(e)){t=new Uint8Array(2*e.length),n=0;for(var a=0,s=e.length;a>>8,t[n++]=255&l)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");n=(t=e).byteLength}for(var c=n>>2,u=n-4*c,d=new Uint32Array(t.buffer,0,c),f=0,h=0,p=this.h1,m=this.h2,g=3432918353,v=461845907,y=11601,b=13715,w=0;w>>17)*v&i|f*b&o)<<13|p>>>19)+3864292196:m=5*(m=(m^=h=(h=(h=(h=d[w])*g&i|h*y&o)<<15|h>>>17)*v&i|h*b&o)<<13|m>>>19)+3864292196;switch(f=0,u){case 3:f^=t[4*c+2]<<16;case 2:f^=t[4*c+1]<<8;case 1:f=(f=(f=(f^=t[4*c])*g&i|f*y&o)<<15|f>>>17)*v&i|f*b&o,1&c?p^=f:m^=f}this.h1=p,this.h2=m}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&i|36045*e&o,e=444984403*(e^=(t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16)>>>1)&i|60499*e&o;var n=((e^=(t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16)>>>1)>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}]),e}();t.MurmurHash3_64=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeImageDecoder=void 0;var r=n(22),a=n(17),i=n(11),o=function(){function e(t){var n=t.xref,r=t.resources,a=t.handler,i=t.forceDataSchema,o=void 0!==i&&i,s=t.pdfFunctionFactory;d(this,e),this.xref=n,this.resources=r,this.handler=a,this.forceDataSchema=o,this.pdfFunctionFactory=s}return u(e,[{key:"canDecode",value:function(t){return t instanceof a.JpegStream&&e.isDecodable(t,this.xref,this.resources,this.pdfFunctionFactory)&&t.maybeValidDimensions}},{key:"decode",value:function(e){var t=e.dict,n=t.get("ColorSpace","CS");return n=r.ColorSpace.parse(n,this.xref,this.resources,this.pdfFunctionFactory),this.handler.sendWithPromise("JpegDecode",[e.getIR(this.forceDataSchema),n.numComps]).then((function(e){var n=e.data;return e.width,e.height,new i.Stream(n,0,n.length,t)}))}}],[{key:"isSupported",value:function(e,t,n,a){var i=e.dict;if(i.has("DecodeParms")||i.has("DP"))return!1;var o=r.ColorSpace.parse(i.get("ColorSpace","CS"),t,n,a);return("DeviceGray"===o.name||"DeviceRGB"===o.name)&&o.isDefaultDecode(i.getArray("Decode","D"))}},{key:"isDecodable",value:function(e,t,n,a){var i=e.dict;if(i.has("DecodeParms")||i.has("DP"))return!1;var o=r.ColorSpace.parse(i.get("ColorSpace","CS"),t,n,a),s=i.get("BitsPerComponent","BPC")||1;return(1===o.numComps||3===o.numComps)&&o.isDefaultDecode(i.getArray("Decode","D"),s)}}]),e}();t.NativeImageDecoder=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var r=n(2),a=n(4),i=n(22),o=n(11),s=n(17),l=n(20),c=function(){function e(e,t){return t&&t.canDecode(e)?t.decode(e).catch((function(t){return(0,r.warn)("Native image decoding failed -- trying to recover: "+(t&&t.message)),e})):Promise.resolve(e)}function t(e,t,n,r){return(e=t+e*n)<0?e=0:e>r&&(e=r),e}function n(e,t,n,r,a,i){var o,s=a*i;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var l,c,u,d,f=n/a,h=r/i,p=0,m=new Uint16Array(a),g=n;for(l=0;l0&&Number.isInteger(o.height)&&o.height>0&&(o.width!==x||o.height!==k)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),x=o.width,k=o.height),x<1||k<1)throw new r.FormatError("Invalid image width: ".concat(x," or height: ").concat(k));this.width=x,this.height=k,this.interpolate=y.get("Interpolate","I")||!1,this.imageMask=y.get("ImageMask","IM")||!1,this.matte=y.get("Matte")||!1;var S=o.bitsPerComponent;if(!S&&!(S=y.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new r.FormatError("Bits per component missing in image: ".concat(this.imageMask));S=1}if(this.bpc=S,!this.imageMask){var C=y.get("ColorSpace","CS");if(!C)switch((0,r.info)("JPX images (which do not require color spaces)"),o.numComps){case 1:C=a.Name.get("DeviceGray");break;case 3:C=a.Name.get("DeviceRGB");break;case 4:C=a.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(o.numComps," ")+"color components not supported.")}var A=u?n:null;this.colorSpace=i.ColorSpace.parse(C,t,A,v),this.numComps=this.colorSpace.numComps}if(this.decode=y.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,S)||g&&!i.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var _=(1<>3)*i,c=r.byteLength;if(!o||s&&l!==c)if(s)for((t=new Uint8ClampedArray(l)).set(r),n=c;n>7&1,n[f+1]=c>>6&1,n[f+2]=c>>5&1,n[f+3]=c>>4&1,n[f+4]=c>>3&1,n[f+5]=c>>2&1,n[f+6]=c>>1&1,n[f+7]=1&c,f+=8;if(f>=1}else{var v=0;for(c=0,f=0,l=o;f>y;b<0?b=0:b>d&&(b=d),n[f]=b,c&=(1<m[w+1]){v=255;break}}s[d]=v}}if(s)for(d=0,h=3,f=t*i;d0&&void 0!==arguments[0]&&arguments[0],n=this.drawWidth,a=this.drawHeight,i={width:n,height:a,kind:0,data:null},l=this.numComps,c=this.width,u=this.height,d=this.bpc,f=c*l*d+7>>3;if(!t){var h;if("DeviceGray"===this.colorSpace.name&&1===d?h=r.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==d||this.needsDecode||(h=r.ImageKind.RGB_24BPP),h&&!this.smask&&!this.mask&&n===c&&a===u){if(i.kind=h,e=this.getImageBytes(u*f),this.image instanceof o.DecodeStream)i.data=e;else{var p=new Uint8ClampedArray(e.length);p.set(e),i.data=p}if(this.needsDecode){(0,r.assert)(h===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var m=i.data,g=0,v=m.length;g>3,c=this.getImageBytes(o*l),u=this.getComponents(c);if(1!==s){this.needsDecode&&this.decodeBuffer(u),a=i*o;var d=255/((1<3&&void 0!==arguments[3]&&arguments[3];return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=n||this.height,this.image.forceRGB=!!r,this.image.getBytes(e,!0)}},c}();t.PDFImage=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var r="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2),a={UNKNOWN:0,DATA:1,ERROR:2},i={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!==typeof e||null===e)return e;switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}var s=function(){function e(t,n,r){var i=this;d(this,e),this.sourceName=t,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var n=t.callbackId,s=i.callbackCapabilities[n];if(!s)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],t.callback===a.DATA)s.resolve(t.data);else{if(t.callback!==a.ERROR)throw new Error("Unexpected callback case");s.reject(o(t.reason))}}else{var l=i.actionHandler[t.action];if(!l)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var c=i.sourceName,u=t.sourceName;new Promise((function(e){e(l(t.data))})).then((function(e){r.postMessage({sourceName:c,targetName:u,callback:a.DATA,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:c,targetName:u,callback:a.ERROR,callbackId:t.callbackId,reason:o(e)})}))}else t.streamId?i._createStreamSink(t):l(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}return u(e,[{key:"on",value:function(e,t){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}},{key:"send",value:function(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}},{key:"sendWithPromise",value:function(e,t,n){var a=this.callbackId++,i=(0,r.createPromiseCapability)();this.callbackCapabilities[a]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},n)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,n,a){var s=this,l=this.streamId++,c=this.sourceName,u=this.targetName,d=this.comObj;return new ReadableStream({start:function(n){var i=(0,r.createPromiseCapability)();return s.streamControllers[l]={controller:n,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},s._postMessage({sourceName:c,targetName:u,action:e,streamId:l,data:t,desiredSize:n.desiredSize},a),i.promise},pull:function(e){var t=(0,r.createPromiseCapability)();return s.streamControllers[l].pullCall=t,d.postMessage({sourceName:c,targetName:u,stream:i.PULL,streamId:l,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,r.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,r.createPromiseCapability)();return s.streamControllers[l].cancelCall=t,s.streamControllers[l].isClosed=!0,d.postMessage({sourceName:c,targetName:u,stream:i.CANCEL,streamId:l,reason:o(e)}),t.promise}},n)}},{key:"_createStreamSink",value:function(e){var t=this,n=this.actionHandler[e.action],a=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:i.ENQUEUE,streamId:a,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.CLOSE,streamId:a}),delete t.streamSinks[a])},error:function(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.ERROR,streamId:a,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[a]=u,new Promise((function(t){t(n(e.data,u))})).then((function(){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,success:!0})}),(function(e){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,reason:o(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,a=e.sourceName,s=this.comObj;switch(e.stream){case i.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case i.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case i.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:n,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var l=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(l&&l())})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:i.PULL_COMPLETE,streamId:t,reason:o(e)})}));break;case i.ENQUEUE:if((0,r.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case i.CLOSE:if((0,r.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case i.ERROR:(0,r.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL:if(!this.streamSinks[t])break;var c=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(c&&c(o(e.reason)))})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,reason:o(e)})})),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=g(p.mark((function e(t){return p.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=n(2),a=function(){function e(t){d(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return u(e,[{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new o(e,t,this._msgHandler);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFWorkerStream=a;var i=function(){function e(t){var n=this;d(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var r=this._msgHandler.sendWithStream("GetReader");this._reader=r.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){n._isStreamingSupported=e.isStreamingSupported,n._isRangeSupported=e.isRangeSupported,n._contentLength=e.contentLength}))}return u(e,[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:function(){var e=g(p.mark((function e(){var t,n;return p.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,n=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:n.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}(),o=function(){function e(t,n,r){d(this,e),this._msgHandler=r,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:n});this._reader=a.getReader()}return u(e,[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=g(p.mark((function e(){var t,n;return p.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,n=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:n.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}()}])},e.exports=r()},97568:function(e,t,n){var r=n(36717),a=n(28867),i=n(60276);function o(e){return this instanceof o?(this.nodes=r(e),this):new o(e)}o.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},o.prototype.walk=function(e,t){return a(this.nodes,e,t),this},o.unit=n(182),o.walk=a,o.stringify=i,e.exports=o},36717:function(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),a='"'.charCodeAt(0),i="\\".charCodeAt(0),o="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0);e.exports=function(e){for(var u,d,f,h,p,m,g,v,y=[],b=e,w=0,x=b.charCodeAt(w),k=b.length,S=[{nodes:y}],C=0,A="",_="",O="";w=48&&o<=57)d=!0;else if(o===a||o===i){if(u>-1)break;u=s}else if(o===r){if(c)break;c=!0}else{if(o!==n&&o!==t)break;if(0!==s)break}s+=1}return u+1===s&&s--,!!d&&{number:e.slice(0,s),unit:e.slice(s)}}},28867:function(e){e.exports=function e(t,n,r){var a,i,o,s;for(a=0,i=t.length;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:h.ISO_8601,n=e.getDay();switch(t){case h.ISO_8601:return(n+6)%7;case h.ARABIC:return(n+1)%7;case h.HEBREW:case h.US:return n;default:throw new Error("Unsupported calendar type.")}}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.ISO_8601,n=(0,c.getYear)(e),r=(0,c.getMonth)(e),a=e.getDate()-_(e,t);return new Date(n,r,a)}function P(e,t){switch(e){case"century":return(0,c.getCenturyStart)(t);case"decade":return(0,c.getDecadeStart)(t);case"year":return(0,c.getYearStart)(t);case"month":return(0,c.getMonthStart)(t);case"day":return(0,c.getDayStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function E(e,t){switch(e){case"century":return(0,c.getNextCenturyStart)(t);case"decade":return(0,c.getNextDecadeStart)(t);case"year":return(0,c.getNextYearStart)(t);case"month":return(0,c.getNextMonthStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var T=function(e,t){switch(e){case"decade":return(0,c.getPreviousDecadeStart)(t,-100);case"year":return(0,c.getPreviousYearStart)(t,-10);case"month":return(0,c.getPreviousMonthStart)(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}},j=function(e,t){switch(e){case"decade":return(0,c.getNextDecadeStart)(t,100);case"year":return(0,c.getNextYearStart)(t,10);case"month":return(0,c.getNextMonthStart)(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}};function N(e,t){switch(e){case"century":return(0,c.getCenturyEnd)(t);case"decade":return(0,c.getDecadeEnd)(t);case"year":return(0,c.getYearEnd)(t);case"month":return(0,c.getMonthEnd)(t);case"day":return(0,c.getDayEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var M=function(e,t){switch(e){case"decade":return(0,c.getPreviousDecadeEnd)(t,-100);case"year":return(0,c.getPreviousYearEnd)(t,-10);case"month":return(0,c.getPreviousMonthEnd)(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}};function I(e,t){switch(e){case"century":return(0,c.getCenturyRange)(t);case"decade":return(0,c.getDecadeRange)(t);case"year":return(0,c.getYearRange)(t);case"month":return(0,c.getMonthRange)(t);case"day":return(0,c.getDayRange)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;return(arguments.length>2?arguments[2]:void 0).map((function(n){return t(e,n)})).join(" \u2013 ")}function R(e,t,n){return D(e,t,(0,c.getDecadeRange)(n))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.ISO_8601,n=e.getDay();switch(t){case h.ARABIC:case h.HEBREW:return n===C||n===A;case h.ISO_8601:case h.US:return n===A||n===S;default:throw new Error("Unsupported calendar type.")}}function F(e){return F="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}var B=Object.values(h),U=["century","decade","year","month"],$=o().oneOf(B),z=o().oneOfType([o().string,o().arrayOf(o().string)]),q=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(F(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var a=e.maxDate;return a&&r>a?new Error("Invalid prop `".concat(t,"` of type `").concat(F(r),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null},G=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(F(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var a=e.minDate;return a&&r0,G="century"!==z,H=function(e,t){switch(e){case"century":return(0,c.getPreviousCenturyStart)(t);case"decade":return(0,c.getPreviousDecadeStart)(t);case"year":return(0,c.getPreviousYearStart)(t);case"month":return(0,c.getPreviousMonthStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(z,t),W=G&&T(z,t),V=E(z,t),K=G&&j(z,t),Y=function(){if(H.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"century":return(0,c.getPreviousCenturyEnd)(t);case"decade":return(0,c.getPreviousDecadeEnd)(t);case"year":return(0,c.getPreviousYearEnd)(t);case"month":return(0,c.getPreviousMonthEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(z,t);return f&&f>=e}(),X=G&&function(){if(W.getFullYear()<0)return!0;var e=M(z,t);return f&&f>=e}(),J=d&&d<=V,Q=G&&d&&d<=K;function ee(e){var t=function(){switch(z){case"century":return function(e,t,n){return D(e,t,(0,c.getCenturyRange)(n))}(u,s,e);case"decade":return R(u,s,e);case"year":return s(u,e);case"month":return i(u,e);default:throw new Error("Invalid view: ".concat(z,"."))}}();return m?m({date:e,label:t,locale:u||(0,l.getUserLocale)(),view:z}):t}return a.createElement("div",{className:Z,style:{display:"flex"}},null!==N&&G&&a.createElement("button",{"aria-label":O,className:"".concat(Z,"__arrow ").concat(Z,"__prev2-button"),disabled:X,onClick:function(){U(W)},type:"button"},N),null!==B&&a.createElement("button",{"aria-label":L,className:"".concat(Z,"__arrow ").concat(Z,"__prev-button"),disabled:Y,onClick:function(){U(H)},type:"button"},B),function(){var e="".concat(Z,"__label");return a.createElement("button",{"aria-label":p,className:e,disabled:!q,onClick:n,style:{flexGrow:1},type:"button"},a.createElement("span",{className:"".concat(e,"__labelText ").concat(e,"__labelText--from")},ee(t)),$&&a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(e,"__divider")}," ","\u2013"," "),a.createElement("span",{className:"".concat(e,"__labelText ").concat(e,"__labelText--to")},ee(V))))}(),null!==A&&a.createElement("button",{"aria-label":S,className:"".concat(Z,"__arrow ").concat(Z,"__next-button"),disabled:J,onClick:function(){U(V)},type:"button"},A),null!==x&&G&&a.createElement("button",{"aria-label":v,className:"".concat(Z,"__arrow ").concat(Z,"__next2-button"),disabled:Q,onClick:function(){U(K)},type:"button"},x))}function Q(){return Q=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ae(e){return"".concat(e,"%")}function ie(e){var t=e.children,n=e.className,r=e.direction,i=e.count,o=e.offset,s=e.style,l=e.wrap,c=re(e,["children","className","direction","count","offset","style","wrap"]);return a.createElement("div",Q({className:n,style:te({display:"flex",flexDirection:r,flexWrap:l?"wrap":"no-wrap"},s)},c),a.Children.map(t,(function(e,t){return a.cloneElement(e,te(te({},e.props),{},{style:{flexBasis:ae(100/i),maxWidth:ae(100/i),overflow:"hidden",marginLeft:o&&0===t?ae(100*o/i):null}}))})))}function oe(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}(e)||function(){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 se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e}function ce(e,t){return le(e[0],t)||le(e[1],t)}function ue(e,t,n){var r=[];if(ce(t,e)){r.push(n);var a=le(e[0],t),i=le(e[1],t);a&&r.push("".concat(n,"Start")),i&&r.push("".concat(n,"End")),a&&i&&r.push("".concat(n,"BothEnds"))}return r}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=e.valueType,r=e.date,a=e.dateType,i=e.hover,o="react-calendar__tile",s=[o];if(!r)return s;if(!(r instanceof Array)&&!a)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var l=new Date,c=r instanceof Array?r:I(a,r);if(le(l,c)&&s.push("".concat(o,"--now")),!t)return s;if(!(t instanceof Array)&&!n)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var u,d,f=t instanceof Array?t:I(n,t);d=c,(u=f)[0]<=d[0]&&u[1]>=d[1]?s.push("".concat(o,"--active")):ce(f,c)&&s.push("".concat(o,"--hasActive"));var h=ue(f,c,"".concat(o,"--range"));if(s.push.apply(s,oe(h)),i){var p=ue(i>f[1]?[f[1],i]:[i,f[0]],c,"".concat(o,"--hover"));s.push.apply(s,oe(p))}return s}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ve(e){for(var t=e.className,n=e.count,r=void 0===n?3:n,i=e.dateTransform,o=e.dateType,s=e.end,l=e.hover,c=e.offset,u=e.start,d=e.step,f=void 0===d?1:d,h=e.tile,p=e.value,m=e.valueType,g=ge(e,["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"]),v=[],y=u;y<=s;y+=f){var b=i(y);v.push(a.createElement(h,me({key:b.getTime(),classes:de({value:p,valueType:m,date:b,dateType:o,hover:l}),date:b,point:y},g)))}return a.createElement(ie,{className:t,count:r,offset:c,wrap:!0},v)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;ti||c&&u(c)=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}Pe.propTypes=be(be({},X),{},{children:o().node.isRequired,formatAbbr:o().func,maxDateTransform:o().func.isRequired,minDateTransform:o().func.isRequired});var Ie="react-calendar__century-view__decades__decade";function De(e){var t=e.classes,n=e.formatYear,r=void 0===n?w:n,i=Me(e,["classes","formatYear"]),o=i.date,s=i.locale;return a.createElement(Pe,Ne({},i,{classes:[].concat(t,Ie),maxDateTransform:c.getDecadeEnd,minDateTransform:c.getDecadeStart,view:"century"}),R(s,r,o))}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(){return Fe=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}De.propTypes=Te(Te({},X),{},{formatYear:o().func}),Be.propTypes=function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}Ve.propTypes=ze(ze({},X),{},{formatYear:o().func}),Ze.propTypes=function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}it.propTypes=et(et({},X),{},{formatMonth:o().func,formatMonthYear:o().func}),ut.propTypes=st(st({},Y),{},{locale:o().string});var vt="react-calendar__month-view__days__day";function yt(e){var t=e.formatLongDate,n=void 0===t?v:t,r=e.calendarType,i=e.classes,o=e.currentMonthIndex,s=gt(e,["formatLongDate","calendarType","classes","currentMonthIndex"]),l=s.date;return a.createElement(Pe,mt({},s,{classes:[].concat(i,vt,L(l,r)?"".concat(vt,"--weekend"):null,l.getMonth()!==o?"".concat(vt,"--neighboringMonth"):null),formatAbbr:n,maxDateTransform:c.getDayEnd,minDateTransform:c.getDayStart,view:"month"}),(0,c.getDate)(l))}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(){return xt=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function St(e){var t=e.activeStartDate,n=e.calendarType,r=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,o=kt(e,["showFixedNumberOfWeeks","showNeighboringMonth"]),s=(0,c.getYear)(t),l=(0,c.getMonth)(t),u=r||i,d=_(t,n),f=u?0:d,h=1+(u?-d:0),p=function(){if(r)return h+42-1;var e=(0,c.getDaysInMonth)(t);if(i){var a=new Date;return a.setFullYear(s,l,e),a.setHours(0,0,0,0),e+(7-_(a,n)-1)}return e}();return a.createElement(ve,xt({},o,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:l,dateTransform:function(e){var t=new Date;return t.setFullYear(s,l,e),t.setHours(0,0,0,0),t},dateType:"day",end:p,offset:f,start:h,tile:yt}))}yt.propTypes=ht(ht({},X),{},{currentMonthIndex:o().number.isRequired,formatLongDate:o().func}),St.propTypes=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:h.ISO_8601)===h.US?h.US:h.ISO_8601,r=O(e,n),a=(0,c.getYear)(e)+1;do{t=O(new Date(a,0,n===h.ISO_8601?4:1),n),a-=1}while(e-t<0);return Math.round((r-t)/6048e5)+1}(e,n)}));return a.createElement(ie,{className:"react-calendar__month-view__weekNumbers",count:s,direction:"column",onFocus:i,onMouseOver:i,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},u.map((function(e,t){return a.createElement(Ot,{key:e,date:l[t],onClickWeekNumber:r,weekNumber:e})})))}function Et(){return Et=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function jt(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,i=e.showFixedNumberOfWeeks,o=e.calendarType,s=void 0===o?function(e){return Object.keys(p).find((function(t){return p[t].includes(e)}))||h.ISO_8601}(n):o,l=e.formatShortWeekday,c=e.onClickWeekNumber,u=e.showWeekNumbers,d=Tt(e,["calendarType","formatShortWeekday","onClickWeekNumber","showWeekNumbers"]);var f="react-calendar__month-view";return a.createElement("div",{className:[f,u?"".concat(f,"--weekNumbers"):""].join(" ")},a.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},u?a.createElement(Pt,{activeStartDate:t,calendarType:s,onClickWeekNumber:c,onMouseLeave:r,showFixedNumberOfWeeks:i}):null,a.createElement("div",{style:{flexGrow:1,width:"100%"}},a.createElement(At,{calendarType:s,formatShortWeekday:l,locale:n,onMouseLeave:r}),a.createElement(St,Et({calendarType:s},d)))))}function Nt(){return Nt=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?t:n&&n0}}],n&&It(t.prototype,n),r&&It(t,r),o}(a.Component);an.defaultProps={maxDate:Ht,maxDetail:"month",minDate:Gt,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var on=o().instanceOf(Date),sn=o().oneOfType([o().string,W]);an.propTypes={activeStartDate:on,allowPartialRange:o().bool,calendarType:$,className:z,defaultActiveStartDate:on,defaultValue:sn,defaultView:K,formatLongDate:o().func,formatMonth:o().func,formatMonthYear:o().func,formatShortWeekday:o().func,formatYear:o().func,inputRef:H,locale:o().string,maxDate:G,maxDetail:o().oneOf(Vt),minDate:q,minDetail:o().oneOf(Vt),navigationAriaLabel:o().string,navigationLabel:o().func,next2AriaLabel:o().string,next2Label:o().node,nextAriaLabel:o().string,nextLabel:o().node,onActiveStartDateChange:o().func,onChange:o().func,onClickDay:o().func,onClickDecade:o().func,onClickMonth:o().func,onClickWeekNumber:o().func,onClickYear:o().func,onDrillDown:o().func,onDrillUp:o().func,onViewChange:o().func,prev2AriaLabel:o().string,prev2Label:o().node,prevAriaLabel:o().string,prevLabel:o().node,returnValue:o().oneOf(["start","end","range"]),selectRange:o().bool,showDoubleView:o().bool,showFixedNumberOfWeeks:o().bool,showNavigation:o().bool,showNeighboringMonth:o().bool,showWeekNumbers:o().bool,tileClassName:o().oneOfType([o().func,z]),tileContent:o().oneOfType([o().func,o().node]),tileDisabled:o().func,value:sn,view:K};var ln=an},32600:function(e,t,n){"use strict";var r,a,i=function(){function e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);na||r.length>=a.length){z($(n,"nextElementSibling"))}}})),_(C(e),"onChange",(function(t){var n=t.target,r=n.name,a=n.value;e.setState(_({},r,a?parseInt(a,10):null),e.onChangeExternal)})),_(C(e),"onChangeNative",(function(t){var n=e.props.onChange,r=t.target.value;n&&n(function(){if(!r)return null;var e=w(r.split("-"),3),t=e[0],n=e[1],a=e[2],i=parseInt(t,10),o=parseInt(n,10)-1||0,s=parseInt(a,10)||1,l=new Date;return l.setFullYear(i,o,s),l.setHours(0,0,0,0),l}(),!1)})),_(C(e),"onChangeExternal",(function(){var t=e.props.onChange;if(t){var n=[e.dayInput,e.monthInput,e.yearInput].filter(Boolean),r={};if(n.forEach((function(e){r[e.name]=e.value})),n.every((function(e){return!e.value})))t(null,!1);else if(n.every((function(e){return e.value&&e.validity.valid}))){var a=parseInt(r.year,10),i=parseInt(r.month,10)-1||0,o=parseInt(r.day||1,10),s=new Date;s.setFullYear(a,i,o),s.setHours(0,0,0,0),t(e.getProcessedValue(s),!1)}}})),_(C(e),"renderDay",(function(t,n){var a=e.props,i=a.autoFocus,o=a.dayAriaLabel,l=a.dayPlaceholder,c=a.showLeadingZeros,u=e.state,d=u.day,f=u.month,h=u.year;if(t&&t.length>2)throw new Error("Unsupported token: ".concat(t));var p=t&&2===t.length;return r.default.createElement(s.default,b({key:"day"},e.commonInputProps,{ariaLabel:o,autoFocus:0===n&&i,month:f,placeholder:l,showLeadingZeros:p||c,value:d,year:h}))})),_(C(e),"renderMonth",(function(t,n){var a=e.props,i=a.autoFocus,o=a.locale,s=a.monthAriaLabel,u=a.monthPlaceholder,d=a.showLeadingZeros,f=e.state,h=f.month,p=f.year;if(t&&t.length>4)throw new Error("Unsupported token: ".concat(t));if(t.length>2)return r.default.createElement(c.default,b({key:"month"},e.commonInputProps,{ariaLabel:s,autoFocus:0===n&&i,locale:o,placeholder:u,short:3===t.length,value:h,year:p}));var m=t&&2===t.length;return r.default.createElement(l.default,b({key:"month"},e.commonInputProps,{ariaLabel:s,autoFocus:0===n&&i,placeholder:u,showLeadingZeros:m||d,value:h,year:p}))})),_(C(e),"renderYear",(function(t,n){var a=e.props,i=a.autoFocus,o=a.yearAriaLabel,s=a.yearPlaceholder,l=e.state.year;return r.default.createElement(u.default,b({key:"year"},e.commonInputProps,{ariaLabel:o,autoFocus:0===n&&i,placeholder:s,value:l,valueType:e.valueType}))})),e}return t=p,a=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.minDate,r=e.maxDate,a=e.maxDetail,o={};e.isCalendarOpen!==t.isCalendarOpen&&(o.isCalendarOpen=e.isCalendarOpen);var s=L({value:e.value,minDate:n,maxDate:r,maxDetail:a}),l=[s,t.value];return(o.isCalendarOpen||I.apply(void 0,O(l.map((function(e){return L({value:e,minDate:n,maxDate:r,maxDetail:a})}))))||I.apply(void 0,O(l.map((function(e){return F({value:e,minDate:n,maxDate:r,maxDetail:a})})))))&&(s?(o.year=(0,i.getYear)(s),o.month=(0,i.getMonthHuman)(s),o.day=(0,i.getDate)(s)):(o.year=null,o.month=null,o.day=null),o.value=s),o}}],(n=[{key:"getProcessedValue",value:function(e){var t=this.props,n=t.minDate,r=t.maxDate,a=t.maxDetail,i=t.returnValue;return function(){switch(i){case"start":return L;case"end":return F;case"range":return B;default:throw new Error("Invalid returnValue.")}}()({value:e,minDate:n,maxDate:r,maxDetail:a})}},{key:"renderCustomInputs",value:function(){var e=this.placeholder,t=this.props.format;return function(e,t,n){var a=[],i=new RegExp(Object.keys(t).map((function(e){return"".concat(e,"+")})).join("|"),"g"),s=e.match(i);return e.split(i).reduce((function(e,i,l){var c=i&&r.default.createElement(o.default,{key:"separator_".concat(l)},i),u=[].concat(O(e),[c]),d=s&&s[l];if(d){var f=t[d]||t[Object.keys(t).find((function(e){return d.match(e)}))];!n&&a.includes(f)?u.push(d):(u.push(f(d,l)),a.push(f))}return u}),[])}(e,{d:this.renderDay,M:this.renderMonth,y:this.renderYear},"undefined"!==typeof t)}},{key:"renderNativeInput",value:function(){var e=this.props,t=e.disabled,n=e.maxDate,a=e.minDate,i=e.name,o=e.nativeInputAriaLabel,s=e.required,l=this.state.value;return r.default.createElement(d.default,{key:"date",ariaLabel:o,disabled:t,maxDate:n||j,minDate:a||T,name:i,onChange:this.onChangeNative,required:s,value:l,valueType:this.valueType})}},{key:"render",value:function(){var e=this.props.className;return r.default.createElement("div",{className:e,onClick:this.onClick},this.renderNativeInput(),this.renderCustomInputs())}},{key:"formatDate",get:function(){var e=this.props.maxDetail,t={year:"numeric"},n=N.indexOf(e);return n>=2&&(t.month="numeric"),n>=3&&(t.day="numeric"),(0,f.getFormatter)(t)}},{key:"divider",get:function(){var e=this.placeholder.match(/[^0-9a-z]/i);return e?e[0]:null}},{key:"placeholder",get:function(){var e=this.props,t=e.format,n=e.locale;if(t)return t;var r=new Date(2017,11,11),a=this.formatDate(n,r),i=["y","M","d"],o=a;return["year","month","day"].forEach((function(e,t){var a,s,l=(a=e,s=r,(0,f.getFormatter)(_({useGrouping:!1},a,"numeric"))(n,s).match(/\d{1,}/)),c=i[t];o=o.replace(l,c)})),o}},{key:"commonInputProps",get:function(){var e=this,t=this.props,n=t.className,r=t.disabled,a=t.isCalendarOpen,i=t.maxDate,o=t.minDate,s=t.required;return{className:n,disabled:r,maxDate:i||j,minDate:o||T,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,required:s||a,itemRef:function(t,n){e["".concat(n,"Input")]=t}}}},{key:"valueType",get:function(){return D(this.props.maxDetail)}}])&&x(t.prototype,n),a&&x(t,a),p}(r.PureComponent);t.default=q,q.defaultProps={maxDetail:"month",name:"date",returnValue:"start"};var G=a.default.oneOfType([a.default.string,a.default.instanceOf(Date)]);q.propTypes={autoFocus:a.default.bool,className:a.default.string.isRequired,dayAriaLabel:a.default.string,dayPlaceholder:a.default.string,disabled:a.default.bool,format:a.default.string,isCalendarOpen:a.default.bool,locale:a.default.string,maxDate:p.isMaxDate,maxDetail:a.default.oneOf(N),minDate:p.isMinDate,monthAriaLabel:a.default.string,monthPlaceholder:a.default.string,name:a.default.string,nativeInputAriaLabel:a.default.string,onChange:a.default.func,required:a.default.bool,returnValue:a.default.oneOf(["start","end","range"]),showLeadingZeros:a.default.bool,value:a.default.oneOfType([G,a.default.arrayOf(G)]),yearAriaLabel:a.default.string,yearPlaceholder:a.default.string}},1014:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=c(n(47313)),a=c(n(75192)),i=n(20956),o=c(n(53564)),s=n(27928),l=n(65491);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){var t=e.maxDate,n=e.minDate,a=e.month,s=e.year,c=d(e,["maxDate","minDate","month","year"]),f=a?(0,i.getDaysInMonth)(new Date(s,a-1,1)):31;function h(e){return e&&s===(0,i.getYear)(e)&&a===(0,i.getMonthHuman)(e)}var p=(0,l.safeMin)(f,h(t)&&(0,i.getDate)(t)),m=(0,l.safeMax)(1,h(n)&&(0,i.getDate)(n));return r.default.createElement(o.default,u({max:p,min:m,name:"day"},c))}f.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,itemRef:a.default.func,maxDate:s.isMaxDate,minDate:s.isMinDate,month:a.default.number,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,showLeadingZeros:a.default.bool,value:a.default.number,year:a.default.number}},53564:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var a=c(n(47313)),i=c(n(75192)),o=c(n(50404)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(66824));function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}var u="undefined"!==typeof window&&"navigator"in window&&navigator.userAgent.match(/ Edge\/1/);function d(e){var t=e.target;u?requestAnimationFrame((function(){return t.select()})):t.select()}function f(e){return function(t){var n=t.key,r=t.target.value,a=!isNaN(parseInt(n,10)),i="undefined"===typeof window?null:window.getSelection().toString();a&&(i||r.length=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){var t=e.maxDate,n=e.minDate,a=e.year,s=d(e,["maxDate","minDate","year"]);function c(e){return e&&a===(0,i.getYear)(e)}var f=(0,l.safeMin)(12,c(t)&&(0,i.getMonthHuman)(t)),h=(0,l.safeMax)(1,c(n)&&(0,i.getMonthHuman)(n));return r.default.createElement(o.default,u({max:f,min:h,name:"month"},s))}f.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,itemRef:a.default.func,maxDate:s.isMaxDate,minDate:s.isMinDate,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,showLeadingZeros:a.default.bool,value:a.default.number,year:a.default.number}},10951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=u(n(47313)),a=u(n(75192)),i=u(n(50404)),o=n(20956),s=n(67055),l=n(27928),c=n(65491);function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e){var t=e.ariaLabel,n=e.className,a=e.itemRef,l=e.locale,u=e.maxDate,h=e.minDate,m=e.placeholder,g=void 0===m?"--":m,v=e.short,y=e.value,b=e.year,w=p(e,["ariaLabel","className","itemRef","locale","maxDate","minDate","placeholder","short","value","year"]);function x(e){return e&&b===(0,o.getYear)(e)}var k=(0,c.safeMin)(12,x(u)&&(0,o.getMonthHuman)(u)),S=(0,c.safeMax)(1,x(h)&&(0,o.getMonthHuman)(h)),C=f(Array(12)).map((function(e,t){return new Date(2019,t,1)})),A="month",_=v?s.formatShortMonth:s.formatMonth;return r.default.createElement("select",d({"aria-label":t,className:(0,i.default)("".concat(n,"__input"),"".concat(n,"__").concat(A)),"data-input":"true",name:A,ref:function(e){a&&a(e,A)},value:null!==y?y:""},w),!y&&r.default.createElement("option",{value:""},g),C.map((function(e){var t=(0,o.getMonthHuman)(e),n=tk;return r.default.createElement("option",{key:t,disabled:n,value:t},_(l,e))})))}m.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,itemRef:a.default.func,locale:a.default.string,maxDate:l.isMaxDate,minDate:l.isMinDate,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,short:a.default.bool,value:a.default.number,year:a.default.number}},67805:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(47313)),a=s(n(75192)),i=n(20956),o=n(27928);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.ariaLabel,n=e.disabled,a=e.maxDate,o=e.minDate,s=e.name,l=e.onChange,c=e.required,u=e.value,d=e.valueType,f=function(){switch(d){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType.")}}(),h=function(){switch(d){case"century":case"decade":case"year":return i.getYear;case"month":return i.getISOLocalMonth;case"day":return i.getISOLocalDate;default:throw new Error("Invalid valueType.")}}();return r.default.createElement("input",{"aria-label":t,disabled:n,max:a?h(a):null,min:o?h(o):null,name:s,onChange:l,onFocus:function(e){e.stopPropagation()},required:c,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:f,value:u?h(u):""})}l.propTypes={ariaLabel:a.default.string,disabled:a.default.bool,maxDate:o.isMaxDate,minDate:o.isMinDate,name:a.default.string,onChange:a.default.func,required:a.default.bool,value:a.default.oneOfType([a.default.string,a.default.instanceOf(Date)]),valueType:o.isValueType}},57005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=c(n(47313)),a=c(n(75192)),i=n(20956),o=c(n(53564)),s=n(27928),l=n(65491);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){var t=e.maxDate,n=e.minDate,a=e.placeholder,s=void 0===a?"----":a,c=e.valueType,f=d(e,["maxDate","minDate","placeholder","valueType"]),h=(0,l.safeMin)(275760,t&&(0,i.getYear)(t)),p=(0,l.safeMax)(1,n&&(0,i.getYear)(n)),m="century"===c?10:1;return r.default.createElement(o.default,u({max:h,min:p,name:"year",placeholder:s,step:m},f))}f.propTypes={ariaLabel:a.default.string,className:a.default.string.isRequired,disabled:a.default.bool,itemRef:a.default.func,maxDate:s.isMaxDate,minDate:s.isMinDate,onChange:a.default.func,onKeyDown:a.default.func,onKeyUp:a.default.func,placeholder:a.default.string,required:a.default.bool,value:a.default.number,valueType:s.isValueType}},32366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(47313)),a=i(n(75192));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.children;return r.default.createElement("span",{className:"react-date-picker__inputGroup__divider"},t)}o.propTypes={children:a.default.node}},67055:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormatter=i,t.formatShortMonth=t.formatMonth=void 0;var r,a=(r=n(46914))&&r.__esModule?r:{default:r};function i(e){return function(t,n){return n.toLocaleString(t||(0,a.default)(),e)}}function o(e){return function(t,n){return i(e)(t,function(e){var t=new Date(e);return new Date(t.setHours(12))}(n))}}var s=o({month:"long"});t.formatMonth=s;var l=o({month:"short"});t.formatShortMonth=l},18869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBegin=function(e,t){switch(e){case"century":return(0,r.getCenturyStart)(t);case"decade":return(0,r.getDecadeStart)(t);case"year":return(0,r.getYearStart)(t);case"month":return(0,r.getMonthStart)(t);case"day":return(0,r.getDayStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}},t.getEnd=function(e,t){switch(e){case"century":return(0,r.getCenturyEnd)(t);case"decade":return(0,r.getDecadeEnd)(t);case"year":return(0,r.getYearEnd)(t);case"month":return(0,r.getMonthEnd)(t);case"day":return(0,r.getDayEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}};var r=n(20956)},27928:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMaxDate=t.isMinDate=t.isValueType=void 0;var r,a=(r=n(75192))&&r.__esModule?r:{default:r};function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na?new Error("Invalid prop `".concat(t,"` of type `").concat(i(r),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null};t.isMaxDate=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(i(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var a=e.minDate;return a&&re.length)&&(t=e.length);for(var n=0,r=new Array(t);ne)return t;if(n&&n