/*! For license information please see main.0a102146.js.LICENSE.txt */ (()=>{var __webpack_modules__={6757:(e,t,n)=>{e.exports=n(3115)},3076:(e,t,n)=>{"use strict";var a=n(184),i=n(102),r=n(2168),o=n(4502),s=n(5107),l=n(3208),c=n(1350),d=n(6271);e.exports=function(e){return new Promise((function(t,n){var u=e.data,h=e.headers,p=e.responseType;a.isFormData(u)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+v)}var g=s(e.baseURL,e.url);function y(){if(f){var a="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,r={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f};i(t,n,r),f=null}}if(f.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(d("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(d("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},a.isStandardBrowserEnv()){var b=(e.withCredentials||c(g))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&a.forEach(h,(function(e,t){"undefined"===typeof u&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),a.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),u||(u=null),f.send(u)}))}},3115:(e,t,n)=>{"use strict";var a=n(184),i=n(5776),r=n(3151),o=n(3491);function s(e){var t=new r(e),n=i(r.prototype.request,t);return a.extend(n,r.prototype,t),a.extend(n,t),n}var l=s(n(583));l.Axios=r,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n(5748),l.CancelToken=n(7211),l.isCancel=n(1220),l.all=function(e){return Promise.all(e)},l.spread=n(472),l.isAxiosError=n(8223),e.exports=l,e.exports.default=l},5748:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},7211:(e,t,n)=>{"use strict";var a=n(5748);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new a(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},1220:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3151:(e,t,n)=>{"use strict";var a=n(184),i=n(4502),r=n(8091),o=n(5918),s=n(3491),l=n(5125),c=l.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,r=[];if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),!a){var d=[o,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(r),i=Promise.resolve(e);d.length;)i=i.then(d.shift(),d.shift());return i}for(var u=e;n.length;){var h=n.shift(),p=n.shift();try{u=h(u)}catch(f){p(f);break}}try{i=o(u)}catch(f){return Promise.reject(f)}for(;r.length;)i=i.then(r.shift(),r.shift());return i},d.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),a.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,a){return this.request(s(a||{},{method:e,url:t,data:n}))}})),e.exports=d},8091:(e,t,n)=>{"use strict";var a=n(184);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){a.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},5107:(e,t,n)=>{"use strict";var a=n(4301),i=n(1548);e.exports=function(e,t){return e&&!a(t)?i(e,t):t}},6271:(e,t,n)=>{"use strict";var a=n(9317);e.exports=function(e,t,n,i,r){var o=new Error(e);return a(o,t,n,i,r)}},5918:(e,t,n)=>{"use strict";var a=n(184),i=n(7965),r=n(1220),o=n(583);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9317:e=>{"use strict";e.exports=function(e,t,n,a,i){return e.config=t,n&&(e.code=n),e.request=a,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3491:(e,t,n)=>{"use strict";var a=n(184);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],r=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function c(i){a.isUndefined(t[i])?a.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}a.forEach(i,(function(e){a.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),a.forEach(r,c),a.forEach(o,(function(i){a.isUndefined(t[i])?a.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),a.forEach(s,(function(a){a in t?n[a]=l(e[a],t[a]):a in e&&(n[a]=l(void 0,e[a]))}));var d=i.concat(r).concat(o).concat(s),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return a.forEach(u,c),n}},102:(e,t,n)=>{"use strict";var a=n(6271);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(a("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},7965:(e,t,n)=>{"use strict";var a=n(184),i=n(583);e.exports=function(e,t,n){var r=this||i;return a.forEach(n,(function(n){e=n.call(r,e,t)})),e}},583:(e,t,n)=>{"use strict";var a=n(184),i=n(4342),r=n(9317),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3076)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw r(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(o)})),e.exports=l},5776:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),a=0;a{"use strict";var a=n(184);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(a.isURLSearchParams(t))r=t.toString();else{var o=[];a.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,(function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),r=o.join("&")}if(r){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},1548:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2168:(e,t,n)=>{"use strict";var a=n(184);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,n,i,r,o){var s=[];s.push(e+"="+encodeURIComponent(t)),a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(i)&&s.push("path="+i),a.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4301:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},8223:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},1350:(e,t,n)=>{"use strict";var a=n(184);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var a=e;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=a.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4342:(e,t,n)=>{"use strict";var a=n(184);e.exports=function(e,t){a.forEach(e,(function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[a])}))}},3208:(e,t,n)=>{"use strict";var a=n(184),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r,o={};return e?(a.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=a.trim(e.substr(0,r)).toLowerCase(),n=a.trim(e.substr(r+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},472:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5125:(e,t,n)=>{"use strict";var a=n(7390),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var r={},o=a.version.split(".");function s(e,t){for(var n=t?t.split("."):o,a=e.split("."),i=0;i<3;i++){if(n[i]>a[i])return!0;if(n[i]0;){var r=a[i],o=t[r];if(o){var s=e[r],l=void 0===s||o(s,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+r)}},validators:i}},184:(e,t,n)=>{"use strict";var a=n(5776),i=Object.prototype.toString;function r(e){return"[object Array]"===i.call(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,a=e.length;n{"use strict";n.d(t,{A:()=>I});var a=n(9575),i=n(9850),r=n(16),o=n(9013),s=n(9697),l=n(885),c=n(539),d=n(3298),u=n(440),h=n(4619),p=n(7502),f=n(2474),m=n(9140),v=n(8837);function g(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var a=g(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var a,i=Object.create(null),r=[];for(var o in e)o in t?r.length&&(i[o]=r,r=[]):r.push(o);var s={};for(var l in t){if(i[l])for(a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=t.pulsate,i=void 0!==a&&a,r=t.center,s=void 0===r?o||t.pulsate:r,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var d,u,h,p=c?null:_.current,f=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)d=Math.round(f.width/2),u=Math.round(f.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,w=m.clientY;d=Math.round(v-f.left),u=Math.round(w-f.top)}if(s)(h=Math.sqrt((2*Math.pow(f.width,2)+Math.pow(f.height,2))/3))%2===0&&(h+=1);else{var C=2*Math.max(Math.abs((p?p.clientWidth:0)-d),d)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-u),u)+2;h=Math.sqrt(Math.pow(C,2)+Math.pow(S,2))}e.touches?null===b.current&&(b.current=function(){x({pulsate:i,rippleX:d,rippleY:u,rippleSize:h,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):x({pulsate:i,rippleX:d,rippleY:u,rippleSize:h,cb:n})}}),[o,x]),A=r.useCallback((function(){C({},{pulsate:!0})}),[C]),k=r.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){k(e,t)})));b.current=null,f((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:A,start:C,stop:k}}),[A,C,k]),r.createElement("span",(0,a.A)({className:(0,s.A)(l.root,c),ref:_},d),r.createElement(w,{component:null,exit:!0},p))}));const k=(0,d.A)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(A));var j=r.forwardRef((function(e,t){var n=e.action,d=e.buttonRef,h=e.centerRipple,p=void 0!==h&&h,f=e.children,m=e.classes,v=e.className,g=e.component,y=void 0===g?"button":g,b=e.disabled,_=void 0!==b&&b,x=e.disableRipple,w=void 0!==x&&x,C=e.disableTouchRipple,S=void 0!==C&&C,A=e.focusRipple,j=void 0!==A&&A,I=e.focusVisibleClassName,F=e.onBlur,T=e.onClick,P=e.onFocus,E=e.onFocusVisible,O=e.onKeyDown,N=e.onKeyUp,R=e.onMouseDown,M=e.onMouseLeave,D=e.onMouseUp,L=e.onTouchEnd,B=e.onTouchMove,W=e.onTouchStart,z=e.onDragLeave,U=e.tabIndex,H=void 0===U?0:U,q=e.TouchRippleProps,V=e.type,G=void 0===V?"button":V,$=(0,i.A)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=r.useRef(null);var K=r.useRef(null),Y=r.useState(!1),J=Y[0],Z=Y[1];_&&J&&Z(!1);var Q=(0,u.A)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return(0,c.A)((function(a){return t&&t(a),!n&&K.current&&K.current[e](a),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),X.current.focus()}}}),[]),r.useEffect((function(){J&&j&&!w&&K.current.pulsate()}),[w,j,J]);var ie=ae("start",R),re=ae("stop",z),oe=ae("stop",D),se=ae("stop",(function(e){J&&e.preventDefault(),M&&M(e)})),le=ae("start",W),ce=ae("stop",L),de=ae("stop",B),ue=ae("stop",(function(e){J&&(te(e),Z(!1)),F&&F(e)}),!1),he=(0,c.A)((function(e){X.current||(X.current=e.currentTarget),ee(e)&&(Z(!0),E&&E(e)),P&&P(e)})),pe=function(){var e=o.findDOMNode(X.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},fe=r.useRef(!1),me=(0,c.A)((function(e){j&&!fe.current&&J&&K.current&&" "===e.key&&(fe.current=!0,e.persist(),K.current.stop(e,(function(){K.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!_&&(e.preventDefault(),T&&T(e))})),ve=(0,c.A)((function(e){j&&" "===e.key&&K.current&&J&&!e.defaultPrevented&&(fe.current=!1,e.persist(),K.current.stop(e,(function(){K.current.pulsate(e)}))),N&&N(e),T&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ge=y;"button"===ge&&$.href&&(ge="a");var ye={};"button"===ge?(ye.type=G,ye.disabled=_):("a"===ge&&$.href||(ye.role="button"),ye["aria-disabled"]=_);var be=(0,l.A)(d,t),_e=(0,l.A)(ne,X),xe=(0,l.A)(be,_e),we=r.useState(!1),Ce=we[0],Se=we[1];r.useEffect((function(){Se(!0)}),[]);var Ae=Ce&&!w&&!_;return r.createElement(ge,(0,a.A)({className:(0,s.A)(m.root,v,J&&[m.focusVisible,I],_&&m.disabled),onBlur:ue,onClick:T,onFocus:he,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:oe,onDragLeave:re,onTouchEnd:ce,onTouchMove:de,onTouchStart:le,ref:xe,tabIndex:_?-1:H},ye,$),f,Ae?r.createElement(k,(0,a.A)({ref:K,center:p},q)):null)}));const I=(0,d.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(j)},7630:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(9850),i=n(9575),r=n(16),o=n(9697),s=n(3298),l=n(1617),c=n(8794),d=n(5767),u=r.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.color,h=void 0===u?"default":u,p=e.component,f=void 0===p?"button":p,m=e.disabled,v=void 0!==m&&m,g=e.disableElevation,y=void 0!==g&&g,b=e.disableFocusRipple,_=void 0!==b&&b,x=e.endIcon,w=e.focusVisibleClassName,C=e.fullWidth,S=void 0!==C&&C,A=e.size,k=void 0===A?"medium":A,j=e.startIcon,I=e.type,F=void 0===I?"button":I,T=e.variant,P=void 0===T?"text":T,E=(0,a.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=j&&r.createElement("span",{className:(0,o.A)(s.startIcon,s["iconSize".concat((0,d.A)(k))])},j),N=x&&r.createElement("span",{className:(0,o.A)(s.endIcon,s["iconSize".concat((0,d.A)(k))])},x);return r.createElement(c.A,(0,i.A)({className:(0,o.A)(s.root,s[P],l,"inherit"===h?s.colorInherit:"default"!==h&&s["".concat(P).concat((0,d.A)(h))],"medium"!==k&&[s["".concat(P,"Size").concat((0,d.A)(k))],s["size".concat((0,d.A)(k))]],y&&s.disableElevation,v&&s.disabled,S&&s.fullWidth),component:f,disabled:v,focusRipple:!_,focusVisibleClassName:(0,o.A)(s.focusVisible,w),ref:t,type:F},E),r.createElement("span",{className:s.label},O,n,N))}));const h=(0,s.A)((function(e){return{root:(0,i.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,l.Rv)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.Rv)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.Rv)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,l.Rv)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,l.Rv)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,l.Rv)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,l.Rv)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(u)},2245:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(9748),l=n(8606);const c=(0,l.A)(r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),d=(0,l.A)(r.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");var u=n(1617);const h=(0,l.A)(r.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var p=n(5767),f=n(3298),m=r.createElement(d,null),v=r.createElement(c,null),g=r.createElement(h,null),y=r.forwardRef((function(e,t){var n=e.checkedIcon,l=void 0===n?m:n,c=e.classes,d=e.color,u=void 0===d?"secondary":d,h=e.icon,f=void 0===h?v:h,y=e.indeterminate,b=void 0!==y&&y,_=e.indeterminateIcon,x=void 0===_?g:_,w=e.inputProps,C=e.size,S=void 0===C?"medium":C,A=(0,i.A)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),k=b?x:f,j=b?x:l;return r.createElement(s.A,(0,a.A)({type:"checkbox",classes:{root:(0,o.A)(c.root,c["color".concat((0,p.A)(u))],b&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:u,inputProps:(0,a.A)({"data-indeterminate":b},w),icon:r.cloneElement(k,{fontSize:void 0===k.props.fontSize&&"small"===S?S:k.props.fontSize}),checkedIcon:r.cloneElement(j,{fontSize:void 0===j.props.fontSize&&"small"===S?S:j.props.fontSize}),ref:t},A))}));const b=(0,f.A)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,u.Rv)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.Rv)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(y)},290:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(3298),l=n(5767),c=44,d=r.forwardRef((function(e,t){var n=e.classes,s=e.className,d=e.color,u=void 0===d?"primary":d,h=e.disableShrink,p=void 0!==h&&h,f=e.size,m=void 0===f?40:f,v=e.style,g=e.thickness,y=void 0===g?3.6:g,b=e.value,_=void 0===b?0:b,x=e.variant,w=void 0===x?"indeterminate":x,C=(0,i.A)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),S={},A={},k={};if("determinate"===w||"static"===w){var j=2*Math.PI*((c-y)/2);S.strokeDasharray=j.toFixed(3),k["aria-valuenow"]=Math.round(_),S.strokeDashoffset="".concat(((100-_)/100*j).toFixed(3),"px"),A.transform="rotate(-90deg)"}return r.createElement("div",(0,a.A)({className:(0,o.A)(n.root,s,"inherit"!==u&&n["color".concat((0,l.A)(u))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[w]),style:(0,a.A)({width:m,height:m},A,v),ref:t,role:"progressbar"},k,C),r.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(c," ").concat(c)},r.createElement("circle",{className:(0,o.A)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[w]),style:S,cx:c,cy:c,r:(c-y)/2,fill:"none",strokeWidth:y})))}));const u=(0,s.A)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(d)},8496:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(16),i=n(9013),r=n(1623),o=n(885),s=n(539);function l(e){return e.substring(2).toLowerCase()}const c=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,d=e.mouseEvent,u=void 0===d?"onClick":d,h=e.onClickAway,p=e.touchEvent,f=void 0===p?"onTouchEnd":p,m=a.useRef(!1),v=a.useRef(null),g=a.useRef(!1),y=a.useRef(!1);a.useEffect((function(){return setTimeout((function(){g.current=!0}),0),function(){g.current=!1}}),[]);var b=a.useCallback((function(e){v.current=i.findDOMNode(e)}),[]),_=(0,o.A)(t.ref,b),x=(0,s.A)((function(e){var t=y.current;if(y.current=!1,g.current&&v.current&&!function(e){return document.documentElement.clientWidth-1;else n=!(0,r.A)(v.current).documentElement.contains(e.target)||v.current.contains(e.target);n||!c&&t||h(e)}})),w=function(e){return function(n){y.current=!0;var a=t.props[e];a&&a(n)}},C={ref:_};return!1!==f&&(C[f]=w(f)),a.useEffect((function(){if(!1!==f){var e=l(f),t=(0,r.A)(v.current),n=function(){m.current=!0};return t.addEventListener(e,x),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,x),t.removeEventListener("touchmove",n)}}}),[x,f]),!1!==u&&(C[u]=w(u)),a.useEffect((function(){if(!1!==u){var e=l(u),t=(0,r.A)(v.current);return t.addEventListener(e,x),function(){t.removeEventListener(e,x)}}}),[x,u]),a.createElement(a.Fragment,null,a.cloneElement(t,C))}},8920:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(661),l=n(3298),c=r.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,d=void 0!==c&&c,u=e.inputComponent,h=void 0===u?"input":u,p=e.multiline,f=void 0!==p&&p,m=e.type,v=void 0===m?"text":m,g=(0,i.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(s.A,(0,a.A)({classes:(0,a.A)({},l,{root:(0,o.A)(l.root,!n&&l.underline),underline:null}),fullWidth:d,inputComponent:h,multiline:f,ref:t,type:v},g))}));c.muiName="Input";const d=(0,l.A)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:a,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:a}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(c)},2852:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(3953),l=n(3298),c=n(3308),d=n(5767),u=r.forwardRef((function(e,t){e.checked;var n=e.classes,l=e.className,u=e.control,h=e.disabled,p=(e.inputRef,e.label),f=e.labelPlacement,m=void 0===f?"end":f,v=(e.name,e.onChange,e.value,(0,i.A)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),g=(0,s.A)(),y=h;"undefined"===typeof y&&"undefined"!==typeof u.props.disabled&&(y=u.props.disabled),"undefined"===typeof y&&g&&(y=g.disabled);var b={disabled:y};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof u.props[t]&&"undefined"!==typeof e[t]&&(b[t]=e[t])})),r.createElement("label",(0,a.A)({className:(0,o.A)(n.root,l,"end"!==m&&n["labelPlacement".concat((0,d.A)(m))],y&&n.disabled),ref:t},v),r.cloneElement(u,b),r.createElement(c.A,{component:"span",className:(0,o.A)(n.label,y&&n.disabled)},p))}));const h=(0,l.A)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(u)},500:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(1940),l=n(3298),c=n(5767),d=n(4830),u=n(8825),h=r.forwardRef((function(e,t){var n=e.children,l=e.classes,h=e.className,p=e.color,f=void 0===p?"primary":p,m=e.component,v=void 0===m?"div":m,g=e.disabled,y=void 0!==g&&g,b=e.error,_=void 0!==b&&b,x=e.fullWidth,w=void 0!==x&&x,C=e.focused,S=e.hiddenLabel,A=void 0!==S&&S,k=e.margin,j=void 0===k?"none":k,I=e.required,F=void 0!==I&&I,T=e.size,P=e.variant,E=void 0===P?"standard":P,O=(0,i.A)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),N=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){if((0,d.A)(t,["Input","Select"])){var n=(0,d.A)(t,["Select"])?t.props.input:t;n&&(0,s.gr)(n.props)&&(e=!0)}})),e})),R=N[0],M=N[1],D=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){(0,d.A)(t,["Input","Select"])&&(0,s.lq)(t.props,!0)&&(e=!0)})),e})),L=D[0],B=D[1],W=r.useState(!1),z=W[0],U=W[1],H=void 0!==C?C:z;y&&H&&U(!1);var q=r.useCallback((function(){B(!0)}),[]),V={adornedStart:R,setAdornedStart:M,color:f,disabled:y,error:_,filled:L,focused:H,fullWidth:w,hiddenLabel:A,margin:("small"===T?"dense":void 0)||j,onBlur:function(){U(!1)},onEmpty:r.useCallback((function(){B(!1)}),[]),onFilled:q,onFocus:function(){U(!0)},registerEffect:undefined,required:F,variant:E};return r.createElement(u.A.Provider,{value:V},r.createElement(v,(0,a.A)({className:(0,o.A)(l.root,h,"none"!==j&&l["margin".concat((0,c.A)(j))],w&&l.fullWidth),ref:t},O),n))}));const p=(0,l.A)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(h)},8825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,t:()=>r});var a=n(16),i=a.createContext();function r(){return a.useContext(i)}const o=i},7143:(e,t,n)=>{"use strict";function a(e){var t=e.props,n=e.states,a=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],a&&"undefined"===typeof t[n]&&(e[n]=a[n]),e}),{})}n.d(t,{A:()=>a})},3953:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(16),i=n(8825);function r(){return a.useContext(i.A)}},4900:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(9575),i=n(2061),r=n(9850),o=n(16),s=n(2314),l=n(6772),c=n(8425),d=n(885);function u(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var h={entering:{opacity:1,transform:u(1)},entered:{opacity:1,transform:"none"}},p=o.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,f=void 0!==p&&p,m=e.in,v=e.onEnter,g=e.onEntered,y=e.onEntering,b=e.onExit,_=e.onExited,x=e.onExiting,w=e.style,C=e.timeout,S=void 0===C?"auto":C,A=e.TransitionComponent,k=void 0===A?s.Ay:A,j=(0,r.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),I=o.useRef(),F=o.useRef(),T=(0,l.A)(),P=T.unstable_strictMode&&!f,E=o.useRef(null),O=(0,d.A)(n.ref,t),N=(0,d.A)(P?E:void 0,O),R=function(e){return function(t,n){if(e){var a=P?[E.current,t]:[t,n],r=(0,i.A)(a,2),o=r[0],s=r[1];void 0===s?e(o):e(o,s)}}},M=R(y),D=R((function(e,t){(0,c.q)(e);var n,a=(0,c.c)({style:w,timeout:S},{mode:"enter"}),i=a.duration,r=a.delay;"auto"===S?(n=T.transitions.getAutoHeightDuration(e.clientHeight),F.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:r}),T.transitions.create("transform",{duration:.666*n,delay:r})].join(","),v&&v(e,t)})),L=R(g),B=R(x),W=R((function(e){var t,n=(0,c.c)({style:w,timeout:S},{mode:"exit"}),a=n.duration,i=n.delay;"auto"===S?(t=T.transitions.getAutoHeightDuration(e.clientHeight),F.current=t):t=a,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=u(.75),b&&b(e)})),z=R(_);return o.useEffect((function(){return function(){clearTimeout(I.current)}}),[]),o.createElement(k,(0,a.A)({appear:!0,in:m,nodeRef:P?E:void 0,onEnter:D,onEntered:L,onEntering:M,onExit:W,onExited:z,onExiting:B,addEndListener:function(e,t){var n=P?e:t;"auto"===S&&(I.current=setTimeout(n,F.current||0))},timeout:"auto"===S?null:S},j),(function(e,t){return o.cloneElement(n,(0,a.A)({style:(0,a.A)({opacity:0,transform:u(.75),visibility:"exited"!==e||m?void 0:"hidden"},h[e],w,n.props.style),ref:N},t))}))}));p.muiSupportAuto=!0;const f=p},5872:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(3298),l=n(1617),c=n(8794),d=n(5767),u=r.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,l=e.children,u=e.classes,h=e.className,p=e.color,f=void 0===p?"default":p,m=e.disabled,v=void 0!==m&&m,g=e.disableFocusRipple,y=void 0!==g&&g,b=e.size,_=void 0===b?"medium":b,x=(0,i.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(c.A,(0,a.A)({className:(0,o.A)(u.root,h,"default"!==f&&u["color".concat((0,d.A)(f))],v&&u.disabled,"small"===_&&u["size".concat((0,d.A)(_))],{start:u.edgeStart,end:u.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:v,ref:t},x),r.createElement("span",{className:u.label},l))}));const h=(0,s.A)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,l.Rv)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.Rv)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.Rv)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(u)},661:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(9850),i=n(9575),r=n(5424),o=n(16),s=n(9697),l=n(7143),c=n(8825),d=n(3298),u=n(5767),h=n(885),p=n(5858);function f(e,t){return parseInt(e[t],10)||0}var m="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const g=o.forwardRef((function(e,t){var n=e.onChange,r=e.rows,s=e.rowsMax,l=e.rowsMin,c=void 0===l?1:l,d=e.style,u=e.value,g=(0,a.A)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),y=r||c,b=o.useRef(null!=u).current,_=o.useRef(null),x=(0,h.A)(t,_),w=o.useRef(null),C=o.useRef(0),S=o.useState({}),A=S[0],k=S[1],j=o.useCallback((function(){var t=_.current,n=window.getComputedStyle(t),a=w.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");var i=n["box-sizing"],r=f(n,"padding-bottom")+f(n,"padding-top"),o=f(n,"border-bottom-width")+f(n,"border-top-width"),l=a.scrollHeight-r;a.value="x";var c=a.scrollHeight-r,d=l;y&&(d=Math.max(Number(y)*c,d)),s&&(d=Math.min(Number(s)*c,d));var u=(d=Math.max(d,c))+("border-box"===i?r+o:0),h=Math.abs(d-l)<=1;k((function(e){return C.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==h)?(C.current+=1,{overflow:h,outerHeightStyle:u}):e}))}),[s,y,e.placeholder]);o.useEffect((function(){var e=(0,p.A)((function(){C.current=0,j()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[j]),m((function(){j()})),o.useEffect((function(){C.current=0}),[u]);return o.createElement(o.Fragment,null,o.createElement("textarea",(0,i.A)({value:u,onChange:function(e){C.current=0,b||j(),n&&n(e)},ref:x,rows:y,style:(0,i.A)({height:A.outerHeightStyle,overflow:A.overflow?"hidden":null},d)},g)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:(0,i.A)({},v,d)}))}));var y=n(1940),b="undefined"===typeof window?o.useEffect:o.useLayoutEffect,_=o.forwardRef((function(e,t){var n=e["aria-describedby"],d=e.autoComplete,p=e.autoFocus,f=e.classes,m=e.className,v=(e.color,e.defaultValue),_=e.disabled,x=e.endAdornment,w=(e.error,e.fullWidth),C=void 0!==w&&w,S=e.id,A=e.inputComponent,k=void 0===A?"input":A,j=e.inputProps,I=void 0===j?{}:j,F=e.inputRef,T=(e.margin,e.multiline),P=void 0!==T&&T,E=e.name,O=e.onBlur,N=e.onChange,R=e.onClick,M=e.onFocus,D=e.onKeyDown,L=e.onKeyUp,B=e.placeholder,W=e.readOnly,z=e.renderSuffix,U=e.rows,H=e.rowsMax,q=e.rowsMin,V=e.startAdornment,G=e.type,$=void 0===G?"text":G,X=e.value,K=(0,a.A)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),Y=null!=I.value?I.value:X,J=o.useRef(null!=Y).current,Z=o.useRef(),Q=o.useCallback((function(e){0}),[]),ee=(0,h.A)(I.ref,Q),te=(0,h.A)(F,ee),ne=(0,h.A)(Z,te),ae=o.useState(!1),ie=ae[0],re=ae[1],oe=(0,c.t)();var se=(0,l.A)({props:e,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});se.focused=oe?oe.focused:ie,o.useEffect((function(){!oe&&_&&ie&&(re(!1),O&&O())}),[oe,_,ie,O]);var le=oe&&oe.onFilled,ce=oe&&oe.onEmpty,de=o.useCallback((function(e){(0,y.lq)(e)?le&&le():ce&&ce()}),[le,ce]);b((function(){J&&de({value:Y})}),[Y,de,J]);o.useEffect((function(){de(Z.current)}),[]);var ue=k,he=(0,i.A)({},I,{ref:ne});"string"!==typeof ue?he=(0,i.A)({inputRef:ne,type:$},he,{ref:null}):P?!U||H||q?(he=(0,i.A)({rows:U,rowsMax:H},he),ue=g):ue="textarea":he=(0,i.A)({type:$},he);return o.useEffect((function(){oe&&oe.setAdornedStart(Boolean(V))}),[oe,V]),o.createElement("div",(0,i.A)({className:(0,s.A)(f.root,f["color".concat((0,u.A)(se.color||"primary"))],m,se.disabled&&f.disabled,se.error&&f.error,C&&f.fullWidth,se.focused&&f.focused,oe&&f.formControl,P&&f.multiline,V&&f.adornedStart,x&&f.adornedEnd,"dense"===se.margin&&f.marginDense),onClick:function(e){Z.current&&e.currentTarget===e.target&&Z.current.focus(),R&&R(e)},ref:t},K),V,o.createElement(c.A.Provider,{value:null},o.createElement(ue,(0,i.A)({"aria-invalid":se.error,"aria-describedby":n,autoComplete:d,autoFocus:p,defaultValue:v,disabled:se.disabled,id:S,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?Z.current:{value:"x"})},name:E,placeholder:B,readOnly:W,required:se.required,rows:U,value:Y,onKeyDown:D,onKeyUp:L},he,{className:(0,s.A)(f.input,I.className,se.disabled&&f.disabled,P&&f.inputMultiline,se.hiddenLabel&&f.inputHiddenLabel,V&&f.inputAdornedStart,x&&f.inputAdornedEnd,"search"===$&&f.inputTypeSearch,"dense"===se.margin&&f.inputMarginDense),onBlur:function(e){O&&O(e),I.onBlur&&I.onBlur(e),oe&&oe.onBlur?oe.onBlur(e):re(!1)},onChange:function(e){if(!J){var t=e.target||Z.current;if(null==t)throw new Error((0,r.A)(1));de({value:t.value})}for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i{"use strict";function a(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(a(e.value)&&""!==e.value||t&&a(e.defaultValue)&&""!==e.defaultValue)}function r(e){return e.startAdornment}n.d(t,{gr:()=>r,lq:()=>i})},8171:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(7143),l=n(3953),c=n(3298),d=n(5767),u=r.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,h=(e.color,e.component),p=void 0===h?"label":h,f=(e.disabled,e.error,e.filled,e.focused,e.required,(0,i.A)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),m=(0,l.A)(),v=(0,s.A)({props:e,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]});return r.createElement(p,(0,a.A)({className:(0,o.A)(c.root,c["color".concat((0,d.A)(v.color||"primary"))],u,v.disabled&&c.disabled,v.error&&c.error,v.filled&&c.filled,v.focused&&c.focused,v.required&&c.required),ref:t},f),n,v.required&&r.createElement("span",{"aria-hidden":!0,className:(0,o.A)(c.asterisk,v.error&&c.error)},"\u2009","*"))}));const h=(0,c.A)((function(e){return{root:(0,a.A)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(u);var p=r.forwardRef((function(e,t){var n=e.classes,c=e.className,d=e.disableAnimation,u=void 0!==d&&d,p=(e.margin,e.shrink),f=(e.variant,(0,i.A)(e,["classes","className","disableAnimation","margin","shrink","variant"])),m=(0,l.A)(),v=p;"undefined"===typeof v&&m&&(v=m.filled||m.focused||m.adornedStart);var g=(0,s.A)({props:e,muiFormControl:m,states:["margin","variant"]});return r.createElement(h,(0,a.A)({"data-shrink":v,className:(0,o.A)(n.root,c,m&&n.formControl,!u&&n.animated,v&&n.shrink,"dense"===g.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[g.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},f))}));const f=(0,c.A)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(p)},9276:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(661),l=n(3298),c=r.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,d=void 0!==c&&c,u=e.inputComponent,h=void 0===u?"input":u,p=e.multiline,f=void 0!==p&&p,m=e.type,v=void 0===m?"text":m,g=(0,i.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(s.A,(0,a.A)({classes:(0,a.A)({},l,{root:(0,o.A)(l.root,!n&&l.underline),underline:null}),fullWidth:d,inputComponent:h,multiline:f,ref:t,type:v},g))}));c.muiName="Input";const d=(0,l.A)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(c)},6927:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=n(16).createContext({})},9132:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var a=n(9850),i=n(4586),r=n(9575),o=n(16),s=n(9697),l=n(3298),c=n(8794),d=n(4830),u=n(885),h=n(6927),p=n(9013),f="undefined"===typeof window?o.useEffect:o.useLayoutEffect,m=o.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,l=e.autoFocus,m=void 0!==l&&l,v=e.button,g=void 0!==v&&v,y=e.children,b=e.classes,_=e.className,x=e.component,w=e.ContainerComponent,C=void 0===w?"li":w,S=e.ContainerProps,A=(S=void 0===S?{}:S).className,k=(0,a.A)(S,["className"]),j=e.dense,I=void 0!==j&&j,F=e.disabled,T=void 0!==F&&F,P=e.disableGutters,E=void 0!==P&&P,O=e.divider,N=void 0!==O&&O,R=e.focusVisibleClassName,M=e.selected,D=void 0!==M&&M,L=(0,a.A)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),B=o.useContext(h.A),W={dense:I||B.dense||!1,alignItems:i},z=o.useRef(null);f((function(){m&&z.current&&z.current.focus()}),[m]);var U=o.Children.toArray(y),H=U.length&&(0,d.A)(U[U.length-1],["ListItemSecondaryAction"]),q=o.useCallback((function(e){z.current=p.findDOMNode(e)}),[]),V=(0,u.A)(q,t),G=(0,r.A)({className:(0,s.A)(b.root,_,W.dense&&b.dense,!E&&b.gutters,N&&b.divider,T&&b.disabled,g&&b.button,"center"!==i&&b.alignItemsFlexStart,H&&b.secondaryAction,D&&b.selected),disabled:T},L),$=x||"li";return g&&(G.component=x||"div",G.focusVisibleClassName=(0,s.A)(b.focusVisible,R),$=c.A),H?($=G.component||x?$:"div","li"===C&&("li"===$?$="div":"li"===G.component&&(G.component="div")),o.createElement(h.A.Provider,{value:W},o.createElement(C,(0,r.A)({className:(0,s.A)(b.container,A),ref:V},k),o.createElement($,G,U),U.pop()))):o.createElement(h.A.Provider,{value:W},o.createElement($,(0,r.A)({ref:V},G),U))}));const v=(0,l.A)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(m);var g=o.forwardRef((function(e,t){var n,i=e.classes,l=e.className,c=e.component,d=void 0===c?"li":c,u=e.disableGutters,h=void 0!==u&&u,p=e.ListItemClasses,f=e.role,m=void 0===f?"menuitem":f,g=e.selected,y=e.tabIndex,b=(0,a.A)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==y?y:-1),o.createElement(v,(0,r.A)({button:!0,role:m,tabIndex:n,component:d,selected:g,disableGutters:h,classes:(0,r.A)({dense:i.dense},p),className:(0,s.A)(i.root,l,g&&i.selected,!h&&i.gutters),ref:t},b))}));const y=(0,l.A)((function(e){return{root:(0,r.A)({},e.typography.body1,(0,i.A)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,r.A)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(g)},5447:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var a=n(9575),i=n(9850),r=n(16),o=(n(1663),n(9013)),s=n(1623),l=n(9697),c=n(3298),d=n(6927),u=r.forwardRef((function(e,t){var n=e.children,o=e.classes,s=e.className,c=e.component,u=void 0===c?"ul":c,h=e.dense,p=void 0!==h&&h,f=e.disablePadding,m=void 0!==f&&f,v=e.subheader,g=(0,i.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=r.useMemo((function(){return{dense:p}}),[p]);return r.createElement(d.A.Provider,{value:y},r.createElement(u,(0,a.A)({className:(0,l.A)(o.root,s,p&&o.dense,!m&&o.padding,v&&o.subheader),ref:t},g),v,n))}));const h=(0,c.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(u);var p=n(6174),f=n(885);function m(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function v(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function g(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function y(e,t,n,a,i,r){for(var o=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(o)return;o=!0}var l=!a&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&g(s,r)&&!l)return void s.focus();s=i(e,s,n)}}var b="undefined"===typeof window?r.useEffect:r.useLayoutEffect;const _=r.forwardRef((function(e,t){var n=e.actions,l=e.autoFocus,c=void 0!==l&&l,d=e.autoFocusItem,u=void 0!==d&&d,_=e.children,x=e.className,w=e.disabledItemsFocusable,C=void 0!==w&&w,S=e.disableListWrap,A=void 0!==S&&S,k=e.onKeyDown,j=e.variant,I=void 0===j?"selectedMenu":j,F=(0,i.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),T=r.useRef(null),P=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});b((function(){c&&T.current.focus()}),[c]),r.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!T.current.style.width;if(e.clientHeight0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&r!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(r);var l=a&&!i.repeating&&g(a,i);i.previousKeyMatched&&(l||y(t,a,!1,C,m,i))?e.preventDefault():i.previousKeyMatched=!1}k&&k(e)},tabIndex:c?0:-1},F),R)}))},2675:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var a=n(9850),i=n(9575),r=n(16),o=n(9013),s=n(6795),l=n(7293),c=n(1623),d=n(5498),u=n(1317),h=n(885),p=n(539),f=n(1174),m=n(5152),v=n(414),g=n(4619),y=n(6174),b=n(7434);function _(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,r=[t,n].concat((0,g.A)(a)),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===r.indexOf(e)&&-1===o.indexOf(e.tagName)&&_(e,i)}))}function C(e,t){var n=-1;return e.some((function(e,a){return!!t(e)&&(n=a,!0)})),n}function S(e,t){var n,a=[],i=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,c.A)(e);return t.body===e?(0,b.A)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var o=(0,y.A)();a.push({value:r.style.paddingRight,key:"padding-right",el:r}),r.style["padding-right"]="".concat(x(r)+o,"px"),n=(0,c.A)(r).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(x(e)+o,"px")}))}var s=r.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:r;a.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),a.forEach((function(e){var t=e.value,n=e.el,a=e.key;t?n.style.setProperty(a,t):n.style.removeProperty(a)}))}}var A=function(){function e(){(0,m.A)(this,e),this.modals=[],this.containers=[]}return(0,v.A)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_(e.modalRef,!1);var a=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mountNode,e.modalRef,a,!0);var i=C(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:a}),n)}},{key:"mount",value:function(e,t){var n=C(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),a=this.containers[n];a.restore||(a.restore=S(a,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=C(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),a=this.containers[n];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(t,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&_(e.modalRef,!0),w(a.container,e.mountNode,e.modalRef,a.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=a.modals[a.modals.length-1];i.modalRef&&_(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const k=function(e){var t=e.children,n=e.disableAutoFocus,a=void 0!==n&&n,i=e.disableEnforceFocus,s=void 0!==i&&i,l=e.disableRestoreFocus,d=void 0!==l&&l,u=e.getDoc,p=e.isEnabled,f=e.open,m=r.useRef(),v=r.useRef(null),g=r.useRef(null),y=r.useRef(),b=r.useRef(null),_=r.useCallback((function(e){b.current=o.findDOMNode(e)}),[]),x=(0,h.A)(t.ref,_),w=r.useRef();return r.useEffect((function(){w.current=f}),[f]),!w.current&&f&&"undefined"!==typeof window&&(y.current=u().activeElement),r.useEffect((function(){if(f){var e=(0,c.A)(b.current);a||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!s&&p()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!s&&p()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?g.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),d||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[a,s,d,p,f]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:x}),r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))};var j={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const I=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,s=e.open,l=(0,a.A)(e,["invisible","open"]);return s?r.createElement("div",(0,i.A)({"aria-hidden":!0,ref:t},l,{style:(0,i.A)({},j.root,o?j.invisible:{},l.style)})):null}));var F=new A;const T=r.forwardRef((function(e,t){var n=(0,s.A)(),m=(0,l.A)({name:"MuiModal",props:(0,i.A)({},e),theme:n}),v=m.BackdropComponent,g=void 0===v?I:v,y=m.BackdropProps,b=m.children,x=m.closeAfterTransition,w=void 0!==x&&x,C=m.container,S=m.disableAutoFocus,A=void 0!==S&&S,j=m.disableBackdropClick,T=void 0!==j&&j,P=m.disableEnforceFocus,E=void 0!==P&&P,O=m.disableEscapeKeyDown,N=void 0!==O&&O,R=m.disablePortal,M=void 0!==R&&R,D=m.disableRestoreFocus,L=void 0!==D&&D,B=m.disableScrollLock,W=void 0!==B&&B,z=m.hideBackdrop,U=void 0!==z&&z,H=m.keepMounted,q=void 0!==H&&H,V=m.manager,G=void 0===V?F:V,$=m.onBackdropClick,X=m.onClose,K=m.onEscapeKeyDown,Y=m.onRendered,J=m.open,Z=(0,a.A)(m,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=r.useState(!0),ee=Q[0],te=Q[1],ne=r.useRef({}),ae=r.useRef(null),ie=r.useRef(null),re=(0,h.A)(ie,t),oe=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(m),se=function(){return(0,c.A)(ae.current)},le=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=ae.current,ne.current},ce=function(){G.mount(le(),{disableScrollLock:W}),ie.current.scrollTop=0},de=(0,p.A)((function(){var e=function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(C)||se().body;G.add(le(),e),ie.current&&ce()})),ue=r.useCallback((function(){return G.isTopModal(le())}),[G]),he=(0,p.A)((function(e){ae.current=e,e&&(Y&&Y(),J&&ue()?ce():_(ie.current,!0))})),pe=r.useCallback((function(){G.remove(le())}),[G]);if(r.useEffect((function(){return function(){pe()}}),[pe]),r.useEffect((function(){J?de():oe&&w||pe()}),[J,pe,oe,w,de]),!q&&!J&&(!oe||ee))return null;var fe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:f.A}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),oe&&(me.onEnter=(0,u.A)((function(){te(!1)}),b.props.onEnter),me.onExited=(0,u.A)((function(){te(!0),w&&pe()}),b.props.onExited)),r.createElement(d.A,{ref:he,container:C,disablePortal:M},r.createElement("div",(0,i.A)({ref:re,onKeyDown:function(e){"Escape"===e.key&&ue()&&(K&&K(e),N||(e.stopPropagation(),X&&X(e,"escapeKeyDown")))},role:"presentation"},Z,{style:(0,i.A)({},fe.root,!J&&ee?fe.hidden:{},Z.style)}),U?null:r.createElement(g,(0,i.A)({open:J,onClick:function(e){e.target===e.currentTarget&&($&&$(e),!T&&X&&X(e,"backdropClick"))}},y)),r.createElement(k,{disableEnforceFocus:E,disableAutoFocus:A,disableRestoreFocus:L,getDoc:se,isEnabled:ue,open:J},r.cloneElement(b,me))))}))},2259:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(661),l=n(4586),c=n(3298),d=n(6772),u=n(5767),h=r.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,c=e.label,h=e.labelWidth,p=e.notched,f=e.style,m=(0,i.A)(e,["children","classes","className","label","labelWidth","notched","style"]),v="rtl"===(0,d.A)().direction?"right":"left";if(void 0!==c)return r.createElement("fieldset",(0,a.A)({"aria-hidden":!0,className:(0,o.A)(n.root,s),ref:t,style:f},m),r.createElement("legend",{className:(0,o.A)(n.legendLabelled,p&&n.legendNotched)},c?r.createElement("span",null,c):r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var g=h>0?.75*h+8:.01;return r.createElement("fieldset",(0,a.A)({"aria-hidden":!0,style:(0,a.A)((0,l.A)({},"padding".concat((0,u.A)(v)),8),f),className:(0,o.A)(n.root,s),ref:t},m),r.createElement("legend",{className:n.legend,style:{width:p?g:.01}},r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const p=(0,c.A)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(h);var f=r.forwardRef((function(e,t){var n=e.classes,l=e.fullWidth,c=void 0!==l&&l,d=e.inputComponent,u=void 0===d?"input":d,h=e.label,f=e.labelWidth,m=void 0===f?0:f,v=e.multiline,g=void 0!==v&&v,y=e.notched,b=e.type,_=void 0===b?"text":b,x=(0,i.A)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return r.createElement(s.A,(0,a.A)({renderSuffix:function(e){return r.createElement(p,{className:n.notchedOutline,label:h,labelWidth:m,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,a.A)({},n,{root:(0,o.A)(n.root,n.underline),notchedOutline:null}),fullWidth:c,inputComponent:u,multiline:g,ref:t,type:_},x))}));f.muiName="Input";const m=(0,c.A)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(f)},2768:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(9850),i=n(9575),r=n(16),o=n(9697),s=n(3298),l=r.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,d=e.square,u=void 0!==d&&d,h=e.elevation,p=void 0===h?1:h,f=e.variant,m=void 0===f?"elevation":f,v=(0,a.A)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(c,(0,i.A)({className:(0,o.A)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(p)],!u&&n.rounded),ref:t},v))}));const c=(0,s.A)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,i.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(l)},5498:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(16),i=n(9013),r=n(7204),o=n(885);var s="undefined"!==typeof window?a.useLayoutEffect:a.useEffect;const l=a.forwardRef((function(e,t){var n=e.children,l=e.container,c=e.disablePortal,d=void 0!==c&&c,u=e.onRendered,h=a.useState(null),p=h[0],f=h[1],m=(0,o.A)(a.isValidElement(n)?n.ref:null,t);return s((function(){d||f(function(e){return e="function"===typeof e?e():e,i.findDOMNode(e)}(l)||document.body)}),[l,d]),s((function(){if(p&&!d)return(0,r.A)(t,p),function(){(0,r.A)(t,null)}}),[t,p,d]),s((function(){u&&(p||d)&&u()}),[u,p,d]),d?a.isValidElement(n)?a.cloneElement(n,{ref:m}):n:p?i.createPortal(n,p):p}))},5795:(e,t,n)=>{"use strict";n.d(t,{A:()=>Q});var a=n(9575),i=n(9850),r=n(16),o=n(3663),s=n(2061),l=n(7545),c=n(5424),d=(n(1663),n(9697)),u=n(1623),h=n(5767),p=n(3298),f=n(9013),m=n(5858),v=n(7434),g=n(1317),y=n(2675),b=n(4900),_=n(2768);function x(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function w(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function C(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function S(e){return"function"===typeof e?e():e}var A=r.forwardRef((function(e,t){var n=e.action,o=e.anchorEl,s=e.anchorOrigin,l=void 0===s?{vertical:"top",horizontal:"left"}:s,c=e.anchorPosition,h=e.anchorReference,p=void 0===h?"anchorEl":h,A=e.children,k=e.classes,j=e.className,I=e.container,F=e.elevation,T=void 0===F?8:F,P=e.getContentAnchorEl,E=e.marginThreshold,O=void 0===E?16:E,N=e.onEnter,R=e.onEntered,M=e.onEntering,D=e.onExit,L=e.onExited,B=e.onExiting,W=e.open,z=e.PaperProps,U=void 0===z?{}:z,H=e.transformOrigin,q=void 0===H?{vertical:"top",horizontal:"left"}:H,V=e.TransitionComponent,G=void 0===V?b.A:V,$=e.transitionDuration,X=void 0===$?"auto":$,K=e.TransitionProps,Y=void 0===K?{}:K,J=(0,i.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Z=r.useRef(),Q=r.useCallback((function(e){if("anchorPosition"===p)return c;var t=S(o),n=(t&&1===t.nodeType?t:(0,u.A)(Z.current).body).getBoundingClientRect(),a=0===e?l.vertical:"center";return{top:n.top+x(n,a),left:n.left+w(n,l.horizontal)}}),[o,l.horizontal,l.vertical,c,p]),ee=r.useCallback((function(e){var t=0;if(P&&"anchorEl"===p){var n=P(e);if(n&&e.contains(n)){var a=function(e,t){for(var n=t,a=0;n&&n!==e;)a+=(n=n.parentElement).scrollTop;return a}(e,n);t=n.offsetTop+n.clientHeight/2-a||0}0}return t}),[l.vertical,p,P]),te=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:x(e,q.vertical)+t,horizontal:w(e,q.horizontal)}}),[q.horizontal,q.vertical]),ne=r.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},a=te(n,t);if("none"===p)return{top:null,left:null,transformOrigin:C(a)};var i=Q(t),r=i.top-a.vertical,s=i.left-a.horizontal,l=r+n.height,c=s+n.width,d=(0,v.A)(S(o)),u=d.innerHeight-O,h=d.innerWidth-O;if(ru){var m=l-u;r-=m,a.vertical+=m}if(sh){var y=c-h;s-=y,a.horizontal+=y}return{top:"".concat(Math.round(r),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:C(a)}}),[o,p,Q,ee,te,O]),ae=r.useCallback((function(){var e=Z.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=r.useCallback((function(e){Z.current=f.findDOMNode(e)}),[]);r.useEffect((function(){W&&ae()})),r.useImperativeHandle(n,(function(){return W?{updatePosition:function(){ae()}}:null}),[W,ae]),r.useEffect((function(){if(W){var e=(0,m.A)((function(){ae()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[W,ae]);var re=X;"auto"!==X||G.muiSupportAuto||(re=void 0);var oe=I||(o?(0,u.A)(S(o)).body:void 0);return r.createElement(y.A,(0,a.A)({container:oe,open:W,ref:t,BackdropProps:{invisible:!0},className:(0,d.A)(k.root,j)},J),r.createElement(G,(0,a.A)({appear:!0,in:W,onEnter:N,onEntered:R,onExit:D,onExited:L,onExiting:B,timeout:re},Y,{onEntering:(0,g.A)((function(e,t){M&&M(e,t),ae()}),Y.onEntering)}),r.createElement(_.A,(0,a.A)({elevation:T,ref:ie},U,{className:(0,d.A)(k.paper,U.className)}),A)))}));const k=(0,p.A)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(A);var j=n(5447),I=n(7204),F=n(6772),T={vertical:"top",horizontal:"right"},P={vertical:"top",horizontal:"left"},E=r.forwardRef((function(e,t){var n=e.autoFocus,o=void 0===n||n,s=e.children,l=e.classes,c=e.disableAutoFocusItem,u=void 0!==c&&c,h=e.MenuListProps,p=void 0===h?{}:h,m=e.onClose,v=e.onEntering,g=e.open,y=e.PaperProps,b=void 0===y?{}:y,_=e.PopoverClasses,x=e.transitionDuration,w=void 0===x?"auto":x,C=e.variant,S=void 0===C?"selectedMenu":C,A=(0,i.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),E=(0,F.A)(),O=o&&!u&&g,N=r.useRef(null),R=r.useRef(null),M=-1;r.Children.map(s,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===M)&&(M=t))}));var D=r.Children.map(s,(function(e,t){return t===M?r.cloneElement(e,{ref:function(t){R.current=f.findDOMNode(t),(0,I.A)(e.ref,t)}}):e}));return r.createElement(k,(0,a.A)({getContentAnchorEl:function(){return R.current},classes:_,onClose:m,onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,E),v&&v(e,t)},anchorOrigin:"rtl"===E.direction?T:P,transformOrigin:"rtl"===E.direction?T:P,PaperProps:(0,a.A)({},b,{classes:(0,a.A)({},b.classes,{root:l.paper})}),open:g,ref:t,transitionDuration:w},A),r.createElement(j.A,(0,a.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:N,autoFocus:o&&(-1===M||u),autoFocusItem:O,variant:S},p,{className:(0,d.A)(l.list,p.className)}),D))}));const O=(0,p.A)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(E);var N=n(1940),R=n(885),M=n(792);function D(e,t){return"object"===(0,l.A)(t)&&null!==t?e===t:String(e)===String(t)}const L=r.forwardRef((function(e,t){var n=e["aria-label"],o=e.autoFocus,l=e.autoWidth,p=e.children,f=e.classes,m=e.className,v=e.defaultValue,g=e.disabled,y=e.displayEmpty,b=e.IconComponent,_=e.inputRef,x=e.labelId,w=e.MenuProps,C=void 0===w?{}:w,S=e.multiple,A=e.name,k=e.onBlur,j=e.onChange,I=e.onClose,F=e.onFocus,T=e.onOpen,P=e.open,E=e.readOnly,L=e.renderValue,B=e.SelectDisplayProps,W=void 0===B?{}:B,z=e.tabIndex,U=(e.type,e.value),H=e.variant,q=void 0===H?"standard":H,V=(0,i.A)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),G=(0,M.A)({controlled:U,default:v,name:"Select"}),$=(0,s.A)(G,2),X=$[0],K=$[1],Y=r.useRef(null),J=r.useState(null),Z=J[0],Q=J[1],ee=r.useRef(null!=P).current,te=r.useState(),ne=te[0],ae=te[1],ie=r.useState(!1),re=ie[0],oe=ie[1],se=(0,R.A)(t,_);r.useImperativeHandle(se,(function(){return{focus:function(){Z.focus()},node:Y.current,value:X}}),[Z,X]),r.useEffect((function(){o&&Z&&Z.focus()}),[o,Z]),r.useEffect((function(){if(Z){var e=(0,u.A)(Z).getElementById(x);if(e){var t=function(){getSelection().isCollapsed&&Z.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[x,Z]);var le,ce,de=function(e,t){e?T&&T(t):I&&I(t),ee||(ae(l?null:Z.clientWidth),oe(e))},ue=r.Children.toArray(p),he=function(e){return function(t){var n;if(S||de(!1,t),S){n=Array.isArray(X)?X.slice():[];var a=X.indexOf(e.props.value);-1===a?n.push(e.props.value):n.splice(a,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),X!==n&&(K(n),j&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:A}}),j(t,e)))}},pe=null!==Z&&(ee?P:re);delete V["aria-invalid"];var fe=[],me=!1;((0,N.lq)({value:X})||y)&&(L?le=L(X):me=!0);var ve=ue.map((function(e){if(!r.isValidElement(e))return null;var t;if(S){if(!Array.isArray(X))throw new Error((0,c.A)(2));(t=X.some((function(t){return D(t,e.props.value)})))&&me&&fe.push(e.props.children)}else(t=D(X,e.props.value))&&me&&(ce=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:he(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(le=S?fe.join(", "):ce);var ge,ye=ne;!l&&ee&&Z&&(ye=Z.clientWidth),ge="undefined"!==typeof z?z:g?null:0;var be=W.id||(A?"mui-component-select-".concat(A):void 0);return r.createElement(r.Fragment,null,r.createElement("div",(0,a.A)({className:(0,d.A)(f.root,f.select,f.selectMenu,f[q],m,g&&f.disabled),ref:Q,tabIndex:ge,role:"button","aria-disabled":g?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[x,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),de(!0,e))}},onMouseDown:g||E?null:function(e){0===e.button&&(e.preventDefault(),Z.focus(),de(!0,e))},onBlur:function(e){!pe&&k&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:X,name:A}}),k(e))},onFocus:F},W,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(le)?r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):le),r.createElement("input",(0,a.A)({value:Array.isArray(X)?X.join(","):X,name:A,ref:Y,"aria-hidden":!0,onChange:function(e){var t=ue.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ue[t];K(n.props.value),j&&j(e,n)}},tabIndex:-1,className:f.nativeInput,autoFocus:o},V)),r.createElement(b,{className:(0,d.A)(f.icon,f["icon".concat((0,h.A)(q))],pe&&f.iconOpen,g&&f.disabled)}),r.createElement(O,(0,a.A)({id:"menu-".concat(A||""),anchorEl:Z,open:pe,onClose:function(e){de(!1,e)}},C,{MenuListProps:(0,a.A)({"aria-labelledby":x,role:"listbox",disableListWrap:!0},C.MenuListProps),PaperProps:(0,a.A)({},C.PaperProps,{style:(0,a.A)({minWidth:ye},null!=C.PaperProps?C.PaperProps.style:null)})}),ve))}));var B=n(7143),W=n(3953);const z=(0,n(8606).A)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var U=n(9276);const H=r.forwardRef((function(e,t){var n=e.classes,o=e.className,s=e.disabled,l=e.IconComponent,c=e.inputRef,u=e.variant,p=void 0===u?"standard":u,f=(0,i.A)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return r.createElement(r.Fragment,null,r.createElement("select",(0,a.A)({className:(0,d.A)(n.root,n.select,n[p],o,s&&n.disabled),disabled:s,ref:c||t},f)),e.multiple?null:r.createElement(l,{className:(0,d.A)(n.icon,n["icon".concat((0,h.A)(p))],s&&n.disabled)}))}));var q=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},V=r.createElement(U.A,null),G=r.forwardRef((function(e,t){var n=e.children,o=e.classes,s=e.IconComponent,l=void 0===s?z:s,c=e.input,d=void 0===c?V:c,u=e.inputProps,h=(e.variant,(0,i.A)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=(0,W.A)(),f=(0,B.A)({props:e,muiFormControl:p,states:["variant"]});return r.cloneElement(d,(0,a.A)({inputComponent:H,inputProps:(0,a.A)({children:n,classes:o,IconComponent:l,variant:f.variant,type:void 0},u,d?d.props.inputProps:{}),ref:t},h))}));G.muiName="Select";(0,p.A)(q,{name:"MuiNativeSelect"})(G);var $=n(8920),X=n(2259),K=q,Y=r.createElement(U.A,null),J=r.createElement($.A,null),Z=r.forwardRef((function e(t,n){var s=t.autoWidth,l=void 0!==s&&s,c=t.children,d=t.classes,u=t.displayEmpty,h=void 0!==u&&u,p=t.IconComponent,f=void 0===p?z:p,m=t.id,v=t.input,g=t.inputProps,y=t.label,b=t.labelId,_=t.labelWidth,x=void 0===_?0:_,w=t.MenuProps,C=t.multiple,S=void 0!==C&&C,A=t.native,k=void 0!==A&&A,j=t.onClose,I=t.onOpen,F=t.open,T=t.renderValue,P=t.SelectDisplayProps,E=t.variant,O=void 0===E?"standard":E,N=(0,i.A)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),R=k?H:L,M=(0,W.A)(),D=(0,B.A)({props:t,muiFormControl:M,states:["variant"]}).variant||O,U=v||{standard:Y,outlined:r.createElement(X.A,{label:y,labelWidth:x}),filled:J}[D];return r.cloneElement(U,(0,a.A)({inputComponent:R,inputProps:(0,a.A)({children:c,IconComponent:f,variant:D,type:void 0,multiple:S},k?{id:m}:{autoWidth:l,displayEmpty:h,labelId:b,MenuProps:w,onClose:j,onOpen:I,open:F,renderValue:T,SelectDisplayProps:(0,a.A)({id:m},P)},g,{classes:g?(0,o.A)({baseClasses:d,newClasses:g.classes,Component:e}):d},v?v.props.inputProps:{}),ref:n},N))}));Z.muiName="Select";const Q=(0,p.A)(K,{name:"MuiSelect"})(Z)},9934:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(3298),l=n(1617),c=n(5767),d=n(9748),u=r.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,u=void 0===l?"secondary":l,h=e.edge,p=void 0!==h&&h,f=e.size,m=void 0===f?"medium":f,v=(0,i.A)(e,["classes","className","color","edge","size"]),g=r.createElement("span",{className:n.thumb});return r.createElement("span",{className:(0,o.A)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[p],"small"===m&&n["size".concat((0,c.A)(m))])},r.createElement(d.A,(0,a.A)({type:"checkbox",icon:g,checkedIcon:g,classes:{root:(0,o.A)(n.switchBase,n["color".concat((0,c.A)(u))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},v)),r.createElement("span",{className:n.track}))}));const h=(0,s.A)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.Rv)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.Rv)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(u)},2426:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(9276),l=n(8920),c=n(2259),d=n(8171),u=n(500),h=n(7143),p=n(3953),f=n(3298),m=r.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.component,d=void 0===c?"p":c,u=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,i.A)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),f=(0,p.A)(),m=(0,h.A)({props:e,muiFormControl:f,states:["variant","margin","disabled","error","filled","focused","required"]});return r.createElement(d,(0,a.A)({className:(0,o.A)(s.root,("filled"===m.variant||"outlined"===m.variant)&&s.contained,l,m.disabled&&s.disabled,m.error&&s.error,m.filled&&s.filled,m.focused&&s.focused,m.required&&s.required,"dense"===m.margin&&s.marginDense),ref:t},u)," "===n?r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const v=(0,f.A)((function(e){return{root:(0,a.A)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(m);var g=n(5795),y={standard:s.A,filled:l.A,outlined:c.A},b=r.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,l=void 0!==s&&s,c=e.children,h=e.classes,p=e.className,f=e.color,m=void 0===f?"primary":f,b=e.defaultValue,_=e.disabled,x=void 0!==_&&_,w=e.error,C=void 0!==w&&w,S=e.FormHelperTextProps,A=e.fullWidth,k=void 0!==A&&A,j=e.helperText,I=e.hiddenLabel,F=e.id,T=e.InputLabelProps,P=e.inputProps,E=e.InputProps,O=e.inputRef,N=e.label,R=e.multiline,M=void 0!==R&&R,D=e.name,L=e.onBlur,B=e.onChange,W=e.onFocus,z=e.placeholder,U=e.required,H=void 0!==U&&U,q=e.rows,V=e.rowsMax,G=e.select,$=void 0!==G&&G,X=e.SelectProps,K=e.type,Y=e.value,J=e.variant,Z=void 0===J?"standard":J,Q=(0,i.A)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var ee={};if("outlined"===Z&&(T&&"undefined"!==typeof T.shrink&&(ee.notched=T.shrink),N)){var te,ne=null!==(te=null===T||void 0===T?void 0:T.required)&&void 0!==te?te:H;ee.label=r.createElement(r.Fragment,null,N,ne&&"\xa0*")}$&&(X&&X.native||(ee.id=void 0),ee["aria-describedby"]=void 0);var ae=j&&F?"".concat(F,"-helper-text"):void 0,ie=N&&F?"".concat(F,"-label"):void 0,re=y[Z],oe=r.createElement(re,(0,a.A)({"aria-describedby":ae,autoComplete:n,autoFocus:l,defaultValue:b,fullWidth:k,multiline:M,name:D,rows:q,rowsMax:V,type:K,value:Y,id:F,inputRef:O,onBlur:L,onChange:B,onFocus:W,placeholder:z,inputProps:P},ee,E));return r.createElement(u.A,(0,a.A)({className:(0,o.A)(h.root,p),disabled:x,error:C,fullWidth:k,hiddenLabel:I,ref:t,required:H,color:m,variant:Z},Q),N&&r.createElement(d.A,(0,a.A)({htmlFor:F,id:ie},T),N),$?r.createElement(g.A,(0,a.A)({"aria-describedby":ae,id:F,labelId:ie,value:Y,input:oe},X),c):oe,j&&r.createElement(v,(0,a.A)({id:ae},S),j))}));const _=(0,f.A)({root:{}},{name:"MuiTextField"})(b)},3308:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(9575),i=n(9850),r=n(16),o=n(9697),s=n(3298),l=n(5767),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},d=r.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,d=e.classes,u=e.className,h=e.color,p=void 0===h?"initial":h,f=e.component,m=e.display,v=void 0===m?"initial":m,g=e.gutterBottom,y=void 0!==g&&g,b=e.noWrap,_=void 0!==b&&b,x=e.paragraph,w=void 0!==x&&x,C=e.variant,S=void 0===C?"body1":C,A=e.variantMapping,k=void 0===A?c:A,j=(0,i.A)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),I=f||(w?"p":k[S]||c[S])||"span";return r.createElement(I,(0,a.A)({className:(0,o.A)(d.root,u,"inherit"!==S&&d[S],"initial"!==p&&d["color".concat((0,l.A)(p))],_&&d.noWrap,y&&d.gutterBottom,w&&d.paragraph,"inherit"!==s&&d["align".concat((0,l.A)(s))],"initial"!==v&&d["display".concat((0,l.A)(v))]),ref:t},j))}));const u=(0,s.A)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(d)},9748:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(9575),i=n(2061),r=n(9850),o=n(16),s=n(9697),l=n(792),c=n(3953),d=n(3298),u=n(5872),h=o.forwardRef((function(e,t){var n=e.autoFocus,d=e.checked,h=e.checkedIcon,p=e.classes,f=e.className,m=e.defaultChecked,v=e.disabled,g=e.icon,y=e.id,b=e.inputProps,_=e.inputRef,x=e.name,w=e.onBlur,C=e.onChange,S=e.onFocus,A=e.readOnly,k=e.required,j=e.tabIndex,I=e.type,F=e.value,T=(0,r.A)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=(0,l.A)({controlled:d,default:Boolean(m),name:"SwitchBase",state:"checked"}),E=(0,i.A)(P,2),O=E[0],N=E[1],R=(0,c.A)(),M=v;R&&"undefined"===typeof M&&(M=R.disabled);var D="checkbox"===I||"radio"===I;return o.createElement(u.A,(0,a.A)({component:"span",className:(0,s.A)(p.root,f,O&&p.checked,M&&p.disabled),disabled:M,tabIndex:null,role:void 0,onFocus:function(e){S&&S(e),R&&R.onFocus&&R.onFocus(e)},onBlur:function(e){w&&w(e),R&&R.onBlur&&R.onBlur(e)},ref:t},T),o.createElement("input",(0,a.A)({autoFocus:n,checked:d,defaultChecked:m,className:p.input,disabled:M,id:D&&y,name:x,onChange:function(e){var t=e.target.checked;N(t),C&&C(e,t)},readOnly:A,ref:_,required:k,tabIndex:j,type:I,value:F},b)),O?h:g)}));const p=(0,d.A)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(h)},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(16);const i=(0,n(8606).A)(a.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},1283:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(16);const i=(0,n(8606).A)(a.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},1617:(e,t,n)=>{"use strict";n.d(t,{Rv:()=>d,a:()=>h,e$:()=>u,eM:()=>s,tL:()=>c});var a=n(5424);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function r(e){if(e.type)return e;if("#"===e.charAt(0))return r(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,a.A)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function o(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),a=l(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function l(e){var t="hsl"===(e=r(e)).type?r(function(e){var t=(e=r(e)).values,n=t[0],a=t[1]/100,i=t[2]/100,s=a*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),o({type:c,values:d})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?u(e,t):h(e,t)}function d(e,t){return e=r(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,o(e)}function u(e,t){if(e=r(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function h(e,t){if(e=r(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return o(e)}},1345:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var a=n(9850),i=n(2407),r=n(9575),o=["xs","sm","md","lg","xl"];var s=n(4586);function l(e,t,n){var a;return(0,r.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.A)({},e.up("sm"),(0,r.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(a={minHeight:56},(0,s.A)(a,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.A)(a,e.up("sm"),{minHeight:64}),a)},n)}var c=n(5424);const d={black:"#000",white:"#fff"};const u={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var y=n(1617),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:u[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:u[800],default:"#303030"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,a){var i=a.light||a,r=a.dark||1.5*a;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,y.a)(e.main,i):"dark"===t&&(e.dark=(0,y.e$)(e.main,r)))}function w(e){return Math.round(1e5*e)/1e5}var C={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,s=void 0===o?S:o,l=n.fontSize,c=void 0===l?14:l,d=n.fontWeightLight,u=void 0===d?300:d,h=n.fontWeightRegular,p=void 0===h?400:h,f=n.fontWeightMedium,m=void 0===f?500:f,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,_=n.allVariants,x=n.pxToRem,A=(0,a.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var k=c/14,j=x||function(e){return"".concat(e/b*k,"rem")},I=function(e,t,n,a,i){return(0,r.A)({fontFamily:s,fontWeight:e,fontSize:j(t),lineHeight:n},s===S?{letterSpacing:"".concat(w(a/t),"em")}:{},i,_)},F={h1:I(u,96,1.167,-1.5),h2:I(u,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(m,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(m,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(m,14,1.75,.4,C),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,C)};return(0,i.A)((0,r.A)({htmlFontSize:b,pxToRem:j,round:w,fontFamily:s,fontSize:c,fontWeightLight:u,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},F),A,{clone:!1})}function k(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const j=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)];const I={borderRadius:4};var F=n(308);var T=n(8058),P=n(1174);const E=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,w=void 0===s?{}:s,C=e.palette,S=void 0===C?{}:C,k=e.spacing,E=e.typography,O=void 0===E?{}:E,N=(0,a.A)(e,["breakpoints","mixins","palette","spacing","typography"]),R=function(e){var t=e.primary,n=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,o=e.secondary,s=void 0===o?{light:p.A200,main:p.A400,dark:p.A700}:o,l=e.error,w=void 0===l?{light:f[300],main:f[500],dark:f[700]}:l,C=e.warning,S=void 0===C?{light:m[300],main:m[500],dark:m[700]}:C,A=e.info,k=void 0===A?{light:v[300],main:v[500],dark:v[700]}:A,j=e.success,I=void 0===j?{light:g[300],main:g[500],dark:g[700]}:j,F=e.type,T=void 0===F?"light":F,P=e.contrastThreshold,E=void 0===P?3:P,O=e.tonalOffset,N=void 0===O?.2:O,R=(0,a.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,y.eM)(e,_.text.primary)>=E?_.text.primary:b.text.primary}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,r.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.A)(4,t));if("string"!==typeof e.main)throw new Error((0,c.A)(5,JSON.stringify(e.main)));return x(e,"light",n,N),x(e,"dark",a,N),e.contrastText||(e.contrastText=M(e.main)),e},L={dark:_,light:b};return(0,i.A)((0,r.A)({common:d,type:T,primary:D(n),secondary:D(s,"A400","A200","A700"),error:D(w),warning:D(S),info:D(k),success:D(I),grey:u,contrastThreshold:E,getContrastText:M,augmentColor:D,tonalOffset:N},L[T]),R)}(S),M=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,l=e.step,c=void 0===l?5:l,d=(0,a.A)(e,["values","unit","step"]);function u(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function h(e,t){var a=o.indexOf(t);return a===o.length-1?u(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==a&&"number"===typeof n[o[a+1]]?n[o[a+1]]:t)-c/100).concat(s,")")}return(0,r.A)({keys:o,values:n,up:u,down:function(e){var t=o.indexOf(e)+1,a=n[o[t]];return t===o.length?u("xs"):"@media (max-width:".concat(("number"===typeof a&&t>0?a:e)-c/100).concat(s,")")},between:h,only:function(e){return h(e,e)},width:function(e){return n[e]}},d)}(n),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,F.L)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),a=0;a1?B-1:0),z=1;z{"use strict";n.d(t,{A:()=>a});const a=(0,n(1345).A)()},2132:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(9575),i=n(1891),r=n(6998);const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.A)(e,(0,a.A)({defaultTheme:r.A},t))}},8058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,p0:()=>r});var a=n(9850),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}const s={easing:i,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?r.standard:n,l=t.easing,c=void 0===l?i.easeInOut:l,d=t.delay,u=void 0===d?0:d;(0,a.A)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:o(s)," ").concat(c," ").concat("string"===typeof u?u:o(u))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},6772:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(6795),i=(n(16),n(6998));function r(){return(0,a.A)()||i.A}},3298:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(9575),i=n(9850),r=n(16),o=n(4134),s=n.n(o),l=n(1891),c=n(7293),d=n(6795);const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,u=t.withTheme,h=void 0!==u&&u,p=t.name,f=(0,i.A)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,l.A)(e,(0,a.A)({defaultTheme:o,Component:n,name:p||n.displayName,classNamePrefix:m},f)),g=r.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,u=(0,i.A)(e,["classes","innerRef"]),f=v((0,a.A)({},n.defaultProps,e)),m=u;return("string"===typeof p||h)&&(s=(0,d.A)()||o,p&&(m=(0,c.A)({theme:s,name:p,props:u})),h&&!m.theme&&(m.theme=s)),r.createElement(n,(0,a.A)({ref:l||t,classes:f},m))}));return s()(g,n),g}};var h=n(6998);const p=function(e,t){return u(e,(0,a.A)({defaultTheme:h.A},t))}},1174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},8425:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>a});var a=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,a=e.style,i=void 0===a?{}:a;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},5767:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(5424);function i(e){if("string"!==typeof e)throw new Error((0,a.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},1317:(e,t,n)=>{"use strict";function a(){for(var e=arguments.length,t=new Array(e),n=0;na})},8606:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(9575),i=n(16),r=n(9850),o=n(9697),s=n(3298),l=n(5767),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.color,u=void 0===d?"inherit":d,h=e.component,p=void 0===h?"svg":h,f=e.fontSize,m=void 0===f?"default":f,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,_=(0,r.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,a.A)({className:(0,o.A)(s.root,c,"inherit"!==u&&s["color".concat((0,l.A)(u))],"default"!==m&&s["fontSize".concat((0,l.A)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},_),n,g?i.createElement("title",null,g):null)}));c.muiName="SvgIcon";const d=(0,s.A)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c);function u(e,t){var n=function(t,n){return i.createElement(d,(0,a.A)({ref:n},t),e)};return n.muiName=d.muiName,i.memo(i.forwardRef(n))}},5858:(e,t,n)=>{"use strict";function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function a(){for(var a=arguments.length,i=new Array(a),r=0;ra})},6174:(e,t,n)=>{"use strict";function a(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,{A:()=>a})},695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>a.A,createChainedFunction:()=>i.A,createSvgIcon:()=>r.A,debounce:()=>o.A,deprecatedPropType:()=>s,isMuiElement:()=>l.A,ownerDocument:()=>c.A,ownerWindow:()=>d.A,requirePropFactory:()=>u,setRef:()=>h.A,unstable_useId:()=>g.A,unsupportedProp:()=>p,useControlled:()=>f.A,useEventCallback:()=>m.A,useForkRef:()=>v.A,useIsFocusVisible:()=>y.A});var a=n(5767),i=n(1317),r=n(8606),o=n(5858);function s(e,t){return function(){return null}}var l=n(4830),c=n(1623),d=n(7434);function u(e){return function(){return null}}var h=n(7204);function p(e,t,n,a,i){return null}var f=n(792),m=n(539),v=n(885),g=n(2580),y=n(440)},4830:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(16);function i(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},1623:(e,t,n)=>{"use strict";function a(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>a})},7434:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(1623);function i(e){return(0,a.A)(e).defaultView||window}},7204:(e,t,n)=>{"use strict";function a(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>a})},2580:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(16);function i(e){var t=a.useState(e),n=t[0],i=t[1],r=e||n;return a.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),r}},792:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(16);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,a.useRef(void 0!==t).current),r=a.useState(n),o=r[0],s=r[1];return[i?t:o,a.useCallback((function(e){i||s(e)}),[])]}},539:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(16),i="undefined"!==typeof window?a.useLayoutEffect:a.useEffect;function r(e){var t=a.useRef(e);return i((function(){t.current=e})),a.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},885:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(16),i=n(7204);function r(e,t){return a.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.A)(e,n),(0,i.A)(t,n)}}),[e,t])}},440:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(16),i=n(9013),r=!0,o=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(r=!0)}function d(){r=!1}function u(){"hidden"===this.visibilityState&&o&&(r=!0)}function h(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return r||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){o=!0,window.clearTimeout(s),s=window.setTimeout((function(){o=!1}),100)}function f(){return{isFocusVisible:h,onBlurVisible:p,ref:a.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",d,!0),t.addEventListener("pointerdown",d,!0),t.addEventListener("touchstart",d,!0),t.addEventListener("visibilitychange",u,!0))}),[])}}},3436:(e,t,n)=>{"use strict";n.d(t,{zhn:()=>Mo,WIv:()=>Mt});var a=n(16),i=n(8606),r=n(539),o=n(7434),s=n(885),l=n(5858),c=n(1623),d=n(9132),u=n(2426),h=n(8496),p=n(4900),f=n(5447),m=n(2768),v=n(9575),g=n(9850),y="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,b=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var _=y&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),b))}};function x(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function C(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function S(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,a=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+a)?e:S(C(e))}function A(e){return e&&e.referenceNode?e.referenceNode:e}var k=y&&!(!window.MSInputMethodContext||!document.documentMode),j=y&&/MSIE 10/.test(navigator.userAgent);function I(e){return 11===e?k:10===e?j:k||j}function F(e){if(!e)return document.documentElement;for(var t=I(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var a=n&&n.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?F(n):n:e?e.ownerDocument.documentElement:document.documentElement}function T(e){return null!==e.parentNode?T(e.parentNode):e}function P(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,a=n?e:t,i=n?t:e,r=document.createRange();r.setStart(a,0),r.setEnd(i,0);var o=r.commonAncestorContainer;if(e!==o&&t!==o||a.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||F(e.firstElementChild)===e)}(o)?o:F(o);var s=T(e);return s.host?P(s.host,t):P(e,T(t).host)}function E(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var a=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||a)[t]}return e[t]}function O(e,t){var n="x"===t?"Left":"Top",a="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+a+"Width"])}function N(e,t,n,a){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],I(10)?parseInt(n["offset"+e])+parseInt(a["margin"+("Height"===e?"Top":"Left")])+parseInt(a["margin"+("Height"===e?"Bottom":"Right")]):0)}function R(e){var t=e.body,n=e.documentElement,a=I(10)&&getComputedStyle(n);return{height:N("Height",t,n,a),width:N("Width",t,n,a)}}var M=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],a=I(10),i="HTML"===t.nodeName,r=W(e),o=W(t),s=S(e),l=w(t),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var u=B({top:r.top-o.top-c,left:r.left-o.left-d,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!a&&i){var h=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);u.top-=c-h,u.bottom-=c-h,u.left-=d-p,u.right-=d-p,u.marginTop=h,u.marginLeft=p}return(a&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=E(t,"top"),i=E(t,"left"),r=n?-1:1;return e.top+=a*r,e.bottom+=a*r,e.left+=i*r,e.right+=i*r,e}(u,t)),u}function U(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===w(e,"position"))return!0;var n=C(e);return!!n&&U(n)}function H(e){if(!e||!e.parentElement||I())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function q(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},o=i?H(e):P(e,A(t));if("viewport"===a)r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,a=z(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:E(n),s=t?0:E(n,"left");return B({top:o-a.top+a.marginTop,left:s-a.left+a.marginLeft,width:i,height:r})}(o,i);else{var s=void 0;"scrollParent"===a?"BODY"===(s=S(C(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===a?e.ownerDocument.documentElement:a;var l=z(s,o,i);if("HTML"!==s.nodeName||U(o))r=l;else{var c=R(e.ownerDocument),d=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=d+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var h="number"===typeof(n=n||0);return r.left+=h?n:n.left||0,r.top+=h?n:n.top||0,r.right-=h?n:n.right||0,r.bottom-=h?n:n.bottom||0,r}function V(e){return e.width*e.height}function G(e,t,n,a,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=q(n,a,r,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return L({key:e},s[e],{area:V(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,a=e.height;return t>=n.clientWidth&&a>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return d+(u?"-"+u:"")}function $(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return z(n,a?H(t):P(t,A(n)),a)}function X(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),a=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+a,height:e.offsetHeight+n}}function K(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Y(e,t,n){n=n.split("-")[0];var a=X(e),i={width:a.width,height:a.height},r=-1!==["right","left"].indexOf(n),o=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[o]=t[o]+t[l]/2-a[l]/2,i[s]=n===s?t[s]-a[c]:t[K(s)],i}function J(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Z(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var a=J(e,(function(e){return e[t]===n}));return e.indexOf(a)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&x(n)&&(t.offsets.popper=B(t.offsets.popper),t.offsets.reference=B(t.offsets.reference),t=n(t,e))})),t}function Q(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=$(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=G(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Y(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ee(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function te(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),a=0;a1&&void 0!==arguments[1]&&arguments[1],n=pe.indexOf(e),a=pe.slice(n+1).concat(pe.slice(0,n));return t?a.reverse():a}var me="flip",ve="clockwise",ge="counterclockwise";function ye(e,t,n,a){var i=[0,0],r=-1!==["right","left"].indexOf(a),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(J(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return c=c.map((function(e,a){var i=(1===a?!r:r)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,a){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],o=i[2];if(!r)return e;if(0===o.indexOf("%")){return B("%p"===o?n:a)[t]/100*r}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,a){le(n)&&(i[t]+=n*("-"===e[a-1]?-1:1))}))})),i}var be={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],a=t.split("-")[1];if(a){var i=e.offsets,r=i.reference,o=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:D({},l,r[l]),end:D({},l,r[l]+r[c]-o[c])};e.offsets.popper=L({},o,d[a])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,a=e.placement,i=e.offsets,r=i.popper,o=i.reference,s=a.split("-")[0],l=void 0;return l=le(+n)?[+n,0]:ye(n,r,o,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||F(e.instance.popper);e.instance.reference===n&&(n=F(n));var a=te("transform"),i=e.instance.popper.style,r=i.top,o=i.left,s=i[a];i.top="",i.left="",i[a]="";var l=q(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=o,i[a]=s,t.boundaries=l;var c=t.priority,d=e.offsets.popper,u={primary:function(e){var n=d[e];return d[e]l[e]&&!t.escapeWithReference&&(a=Math.min(d[n],l[e]-("right"===e?d.width:d.height))),D({},n,a)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=L({},d,u[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,a=t.reference,i=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]r(a[s])&&(e.offsets.popper[l]=r(a[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ue(e.instance.modifiers,"arrow","keepTogether"))return e;var a=t.element;if("string"===typeof a){if(!(a=e.instance.popper.querySelector(a)))return e}else if(!e.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,o=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",d=l?"Top":"Left",u=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",f=X(a)[c];s[p]-fo[p]&&(e.offsets.popper[u]+=s[u]+f-o[p]),e.offsets.popper=B(e.offsets.popper);var m=s[u]+s[c]/2-f/2,v=w(e.instance.popper),g=parseFloat(v["margin"+d]),y=parseFloat(v["border"+d+"Width"]),b=m-e.offsets.popper[u]-g-y;return b=Math.max(Math.min(o[c]-f,b),0),e.arrowElement=a,e.offsets.arrow=(D(n={},u,Math.round(b)),D(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ee(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=q(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),a=e.placement.split("-")[0],i=K(a),r=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case me:o=[a,i];break;case ve:o=fe(a);break;case ge:o=fe(a,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(a!==s||o.length===l+1)return e;a=e.placement.split("-")[0],i=K(a);var c=e.offsets.popper,d=e.offsets.reference,u=Math.floor,h="left"===a&&u(c.right)>u(d.left)||"right"===a&&u(c.left)u(d.top)||"bottom"===a&&u(c.top)u(n.right),m=u(c.top)u(n.bottom),g="left"===a&&p||"right"===a&&f||"top"===a&&m||"bottom"===a&&v,y=-1!==["top","bottom"].indexOf(a),b=!!t.flipVariations&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&v),_=!!t.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&v||!y&&"end"===r&&m),x=b||_;(h||g||x)&&(e.flipped=!0,(h||g)&&(a=o[l+1]),x&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=a+(r?"-"+r:""),e.offsets.popper=L({},e.offsets.popper,Y(e.instance.popper,e.offsets.reference,e.placement)),e=Z(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],a=e.offsets,i=a.popper,r=a.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[n]-(s?i[o?"width":"height"]:0),e.placement=K(t),e.offsets.popper=B(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ue(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=J(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=_(this.update.bind(this)),this.options=L({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(L({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){a.options.modifiers[t]=L({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return L({name:e},a.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&x(e.onLoad)&&e.onLoad(a.reference,a.popper,a.options,e,a.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return M(e,[{key:"update",value:function(){return Q.call(this)}},{key:"destroy",value:function(){return ne.call(this)}},{key:"enableEventListeners",value:function(){return oe.call(this)}},{key:"disableEventListeners",value:function(){return se.call(this)}}]),e}();xe.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,xe.placements=he,xe.Defaults=_e;const we=xe;var Ce=n(6795),Se=n(5498),Ae=n(1317),ke=n(7204);function je(e){return"function"===typeof e?e():e}var Ie="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,Fe={},Te=a.forwardRef((function(e,t){var n=e.anchorEl,i=e.children,r=e.container,o=e.disablePortal,l=void 0!==o&&o,c=e.keepMounted,d=void 0!==c&&c,u=e.modifiers,h=e.open,p=e.placement,f=void 0===p?"bottom":p,m=e.popperOptions,y=void 0===m?Fe:m,b=e.popperRef,_=e.style,x=e.transition,w=void 0!==x&&x,C=(0,g.A)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),S=a.useRef(null),A=(0,s.A)(S,t),k=a.useRef(null),j=(0,s.A)(k,b),I=a.useRef(j);Ie((function(){I.current=j}),[j]),a.useImperativeHandle(b,(function(){return k.current}),[]);var F=a.useState(!0),T=F[0],P=F[1],E=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,(0,Ce.A)()),O=a.useState(E),N=O[0],R=O[1];a.useEffect((function(){k.current&&k.current.update()}));var M=a.useCallback((function(){if(S.current&&n&&h){k.current&&(k.current.destroy(),I.current(null));var e=function(e){R(e.placement)},t=(je(n),new we(je(n),S.current,(0,v.A)({placement:E},y,{modifiers:(0,v.A)({},l?{}:{preventOverflow:{boundariesElement:"window"}},u,y.modifiers),onCreate:(0,Ae.A)(e,y.onCreate),onUpdate:(0,Ae.A)(e,y.onUpdate)})));I.current(t)}}),[n,l,u,h,E,y]),D=a.useCallback((function(e){(0,ke.A)(A,e),M()}),[A,M]),L=function(){k.current&&(k.current.destroy(),I.current(null))};if(a.useEffect((function(){return function(){L()}}),[]),a.useEffect((function(){h||w||L()}),[h,w]),!d&&!h&&(!w||T))return null;var B={placement:N};return w&&(B.TransitionProps={in:h,onEnter:function(){P(!1)},onExited:function(){P(!0),L()}}),a.createElement(Se.A,{disablePortal:l,container:r},a.createElement("div",(0,v.A)({ref:D,role:"tooltip"},C,{style:(0,v.A)({position:"fixed",top:0,left:0,display:h||!d||w?null:"none"},_)}),"function"===typeof i?i(B):i))}));const Pe=Te;var Ee="NOT_FOUND";var Oe=function(e,t){return e===t};function Ne(e,t){var n="object"===typeof t?t:{equalityCheck:t},a=n.equalityCheck,i=void 0===a?Oe:a,r=n.maxSize,o=void 0===r?1:r,s=n.resultEqualityCheck,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var a=t.length,i=0;i-1){var i=n[a];return a>0&&(n.splice(a,1),n.unshift(i)),i.value}return Ee}return{get:a,put:function(t,i){a(t)===Ee&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,l);function d(){var t=c.get(arguments);if(t===Ee){if(t=e.apply(null,arguments),s){var n=c.getEntries().find((function(e){return s(e.value,t)}));n&&(t=n.value)}c.put(arguments,t)}return t}return d.clearCache=function(){return c.clear()},d}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;am?"".concat(m,"+"):r),a.createElement(h,(0,v.A)({className:(0,$e.A)(s.root,l),ref:t},S),o,a.createElement("span",{className:(0,$e.A)(s.badge,s["".concat(i.horizontal).concat((0,Ke.A)(i.vertical),"}")],s["anchorOrigin".concat((0,Ke.A)(i.vertical)).concat((0,Ke.A)(i.horizontal)).concat((0,Ke.A)(b))],"default"!==d&&s["color".concat((0,Ke.A)(d))],A&&s.invisible,"dot"===C&&s.dot)},k))}));const Je=(0,Xe.A)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Ye);var Ze=n(2061),Qe=n(4586),et=n(9013),tt=n(2407),nt=n(2580),at=n(440),it=n(792),rt=n(6772);function ot(e){return Math.round(1e5*e)/1e5}var st=!1,lt=null;var ct=a.forwardRef((function(e,t){var n=e.arrow,i=void 0!==n&&n,r=e.children,o=e.classes,l=e.disableFocusListener,c=void 0!==l&&l,d=e.disableHoverListener,u=void 0!==d&&d,h=e.disableTouchListener,f=void 0!==h&&h,m=e.enterDelay,y=void 0===m?100:m,b=e.enterNextDelay,_=void 0===b?0:b,x=e.enterTouchDelay,w=void 0===x?700:x,C=e.id,S=e.interactive,A=void 0!==S&&S,k=e.leaveDelay,j=void 0===k?0:k,I=e.leaveTouchDelay,F=void 0===I?1500:I,T=e.onClose,P=e.onOpen,E=e.open,O=e.placement,N=void 0===O?"bottom":O,R=e.PopperComponent,M=void 0===R?Pe:R,D=e.PopperProps,L=e.title,B=e.TransitionComponent,W=void 0===B?p.A:B,z=e.TransitionProps,U=(0,g.A)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),H=(0,rt.A)(),q=a.useState(),V=q[0],G=q[1],$=a.useState(null),X=$[0],K=$[1],Y=a.useRef(!1),J=a.useRef(),Z=a.useRef(),Q=a.useRef(),ee=a.useRef(),te=(0,it.A)({controlled:E,default:!1,name:"Tooltip",state:"open"}),ne=(0,Ze.A)(te,2),ae=ne[0],ie=ne[1],re=ae,oe=(0,nt.A)(C);a.useEffect((function(){return function(){clearTimeout(J.current),clearTimeout(Z.current),clearTimeout(Q.current),clearTimeout(ee.current)}}),[]);var se=function(e){clearTimeout(lt),st=!0,ie(!0),P&&P(e)},le=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=r.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),Y.current&&"touchstart"!==t.type||(V&&V.removeAttribute("title"),clearTimeout(Z.current),clearTimeout(Q.current),y||st&&_?(t.persist(),Z.current=setTimeout((function(){se(t)}),st?_:y)):se(t))}},ce=(0,at.A)(),de=ce.isFocusVisible,ue=ce.onBlurVisible,he=ce.ref,pe=a.useState(!1),fe=pe[0],me=pe[1],ve=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){V||G(t.currentTarget),de(t)&&(me(!0),le()(t));var n=r.props;n.onFocus&&e&&n.onFocus(t)}},ge=function(e){clearTimeout(lt),lt=setTimeout((function(){st=!1}),800+j),ie(!1),T&&T(e),clearTimeout(J.current),J.current=setTimeout((function(){Y.current=!1}),H.transitions.duration.shortest)},ye=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=r.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),fe&&(me(!1),ue())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===V&&n.onMouseLeave(t),clearTimeout(Z.current),clearTimeout(Q.current),t.persist(),Q.current=setTimeout((function(){ge(t)}),j)}},be=function(e){Y.current=!0;var t=r.props;t.onTouchStart&&t.onTouchStart(e)},_e=(0,s.A)(G,t),xe=(0,s.A)(he,_e),we=a.useCallback((function(e){(0,ke.A)(xe,et.findDOMNode(e))}),[xe]),Ce=(0,s.A)(r.ref,we);""===L&&(re=!1);var Se=!re&&!u,Ae=(0,v.A)({"aria-describedby":re?oe:null,title:Se&&"string"===typeof L?L:null},U,r.props,{className:(0,$e.A)(U.className,r.props.className),onTouchStart:be,ref:Ce}),je={};f||(Ae.onTouchStart=function(e){be(e),clearTimeout(Q.current),clearTimeout(J.current),clearTimeout(ee.current),e.persist(),ee.current=setTimeout((function(){le()(e)}),w)},Ae.onTouchEnd=function(e){r.props.onTouchEnd&&r.props.onTouchEnd(e),clearTimeout(ee.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout((function(){ge(e)}),F)}),u||(Ae.onMouseOver=le(),Ae.onMouseLeave=ye(),A&&(je.onMouseOver=le(!1),je.onMouseLeave=ye(!1))),c||(Ae.onFocus=ve(),Ae.onBlur=ye(),A&&(je.onFocus=ve(!1),je.onBlur=ye(!1)));var Ie=a.useMemo((function(){return(0,tt.A)({popperOptions:{modifiers:{arrow:{enabled:Boolean(X),element:X}}}},D)}),[X,D]);return a.createElement(a.Fragment,null,a.cloneElement(r,Ae),a.createElement(M,(0,v.A)({className:(0,$e.A)(o.popper,A&&o.popperInteractive,i&&o.popperArrow),placement:N,anchorEl:V,open:!!V&&re,id:Ae["aria-describedby"],transition:!0},je,Ie),(function(e){var t=e.placement,n=e.TransitionProps;return a.createElement(W,(0,v.A)({timeout:H.transitions.duration.shorter},n,z),a.createElement("div",{className:(0,$e.A)(o.tooltip,o["tooltipPlacement".concat((0,Ke.A)(t.split("-")[0]))],Y.current&&o.touch,i&&o.tooltipArrow)},L,i?a.createElement("span",{className:o.arrow,ref:K}):null))})))}));const dt=(0,Xe.A)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,Le.Rv)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(ot(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,Le.Rv)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ot(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,Qe.A)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,Qe.A)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,Qe.A)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,Qe.A)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(ct);var ut=n(290),ht=n(661);const pt=a.createContext();const ft=a.createContext();var mt=a.forwardRef((function(e,t){var n,i,r=e.align,o=void 0===r?"inherit":r,s=e.classes,l=e.className,c=e.component,d=e.padding,u=e.scope,h=e.size,p=e.sortDirection,f=e.variant,m=(0,g.A)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),y=a.useContext(pt),b=a.useContext(ft),_=b&&"head"===b.variant;c?(i=c,n=_?"columnheader":"cell"):i=_?"th":"td";var x=u;!x&&_&&(x="col");var w=d||(y&&y.padding?y.padding:"default"),C=h||(y&&y.size?y.size:"medium"),S=f||b&&b.variant,A=null;return p&&(A="asc"===p?"ascending":"descending"),a.createElement(i,(0,v.A)({ref:t,className:(0,$e.A)(s.root,s[S],l,"inherit"!==o&&s["align".concat((0,Ke.A)(o))],"default"!==w&&s["padding".concat((0,Ke.A)(w))],"medium"!==C&&s["size".concat((0,Ke.A)(C))],"head"===S&&y&&y.stickyHeader&&s.stickyHeader),"aria-sort":A,role:n,scope:x},m))}));const vt=(0,Xe.A)((function(e){return{root:(0,v.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,Le.a)((0,Le.Rv)(e.palette.divider,1),.88):(0,Le.e$)((0,Le.Rv)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(mt);var gt=a.forwardRef((function(e,t){var n=e.classes,i=e.className,r=e.component,o=void 0===r?"div":r,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,d=void 0===c?"regular":c,u=(0,g.A)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(o,(0,v.A)({className:(0,$e.A)(n.root,n[d],i,!l&&n.gutters),ref:t},u))}));const yt=(0,Xe.A)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,Qe.A)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(gt);var bt=n(3308),_t=n(112),xt=n(1283),wt=a.createElement(xt.A,null),Ct=a.createElement(_t.A,null),St=a.createElement(_t.A,null),At=a.createElement(xt.A,null);const kt=a.forwardRef((function(e,t){var n=e.backIconButtonProps,i=e.count,r=e.nextIconButtonProps,o=e.onChangePage,s=e.page,l=e.rowsPerPage,c=(0,g.A)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),d=(0,rt.A)();return a.createElement("div",(0,v.A)({ref:t},c),a.createElement(We.A,(0,v.A)({onClick:function(e){o(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===d.direction?wt:Ct),a.createElement(We.A,(0,v.A)({onClick:function(e){o(e,s+1)},disabled:-1!==i&&s>=Math.ceil(i/l)-1,color:"inherit"},r),"rtl"===d.direction?St:At))}));var jt=function(e){var t=e.from,n=e.to,a=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==a?a:"more than ".concat(n))},It=[10,25,50,100],Ft=a.forwardRef((function(e,t){var n,i=e.ActionsComponent,r=void 0===i?kt:i,o=e.backIconButtonProps,s=e.backIconButtonText,l=void 0===s?"Previous page":s,c=e.classes,u=e.className,h=e.colSpan,p=e.component,f=void 0===p?vt:p,m=e.count,y=e.labelDisplayedRows,b=void 0===y?jt:y,_=e.labelRowsPerPage,x=void 0===_?"Rows per page:":_,w=e.nextIconButtonProps,C=e.nextIconButtonText,S=void 0===C?"Next page":C,A=e.onChangePage,k=e.onChangeRowsPerPage,j=e.page,I=e.rowsPerPage,F=e.rowsPerPageOptions,T=void 0===F?It:F,P=e.SelectProps,E=void 0===P?{}:P,O=(0,g.A)(e,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);f!==vt&&"td"!==f||(n=h||1e3);var N=(0,nt.A)(),R=(0,nt.A)(),M=E.native?"option":d.A;return a.createElement(f,(0,v.A)({className:(0,$e.A)(c.root,u),colSpan:n,ref:t},O),a.createElement(yt,{className:c.toolbar},a.createElement("div",{className:c.spacer}),T.length>1&&a.createElement(bt.A,{color:"inherit",variant:"body2",className:c.caption,id:R},x),T.length>1&&a.createElement(Ve.A,(0,v.A)({classes:{select:c.select,icon:c.selectIcon},input:a.createElement(ht.A,{className:(0,$e.A)(c.input,c.selectRoot)}),value:I,onChange:k,id:N,labelId:R},E),T.map((function(e){return a.createElement(M,{className:c.menuItem,key:e.value?e.value:e,value:e.value?e.value:e},e.label?e.label:e)}))),a.createElement(bt.A,{color:"inherit",variant:"body2",className:c.caption},b({from:0===m?0:j*I+1,to:-1!==m?Math.min(m,(j+1)*I):(j+1)*I,count:-1===m?-1:m,page:j})),a.createElement(r,{className:c.actions,backIconButtonProps:(0,v.A)({title:l,"aria-label":l},o),count:m,nextIconButtonProps:(0,v.A)({title:S,"aria-label":S},w),onChangePage:A,page:j,rowsPerPage:I})))}));const Tt=(0,Xe.A)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(Ft);var Pt=n(2704),Et=n.n(Pt);e=n.hmd(e);const Ot=(0,i.A)((0,a.createElement)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Nt=(0,i.A)((0,a.createElement)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Rt=(0,i.A)((0,a.createElement)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"Filter"),Mt=(0,i.A)((0,a.createElement)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Dt=((0,i.A)((0,a.createElement)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,i.A)((0,a.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,i.A)((0,a.createElement)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),Lt=(0,i.A)((0,a.createElement)("path",{d:"M11 19V5h2v14z"}),"Separator"),Bt=(0,i.A)((0,a.createElement)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Wt=(0,i.A)((0,a.createElement)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),zt=(0,i.A)((0,a.createElement)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Ut=(0,i.A)((0,a.createElement)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Ht=(0,i.A)((0,a.createElement)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag");function qt(e,t){return e===t||e!=e&&t!=t}function Vt(e,t){for(var n=e.length;n--;)if(qt(e[n][0],t))return n;return-1}var Gt=Array.prototype.splice;function $t(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},$t.prototype.set=function(e,t){var n=this.__data__,a=Vt(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this};var Xt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Kt="object"==typeof self&&self&&self.Object===Object&&self,Yt=Xt||Kt||Function("return this")(),Jt=Yt.Symbol,Zt=Object.prototype,Qt=Zt.hasOwnProperty,en=Zt.toString,tn=Jt?Jt.toStringTag:void 0,nn=Object.prototype.toString,an=Jt?Jt.toStringTag:void 0;function rn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":an&&an in Object(e)?function(e){var t=Qt.call(e,tn),n=e[tn];try{e[tn]=void 0;var a=!0}catch(e){}var i=en.call(e);return a&&(t?e[tn]=n:delete e[tn]),i}(e):function(e){return nn.call(e)}(e)}function on(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sn(e){if(!on(e))return!1;var t=rn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var ln,cn=Yt["__core-js_shared__"],dn=(ln=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||""))?"Symbol(src)_1."+ln:"",un=Function.prototype.toString;function hn(e){if(null!=e){try{return un.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var pn=/^\[object .+?Constructor\]$/,fn=Function.prototype,mn=Object.prototype,vn=fn.toString,gn=mn.hasOwnProperty,yn=RegExp("^"+vn.call(gn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bn(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!on(e)||(t=e,dn&&dn in t))&&(sn(e)?yn:pn).test(hn(e));var t}(n)?n:void 0}var _n=bn(Yt,"Map"),xn=bn(Object,"create"),wn=Object.prototype.hasOwnProperty,Cn=Object.prototype.hasOwnProperty;function Sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var d=-1,u=!0,h=2&n?new In:void 0;for(r.set(e,t),r.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var Qn={};Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Arguments]"]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object Boolean]"]=Qn["[object DataView]"]=Qn["[object Date]"]=Qn["[object Error]"]=Qn["[object Function]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn["[object Object]"]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object WeakMap]"]=!1;var ea,ta="object"==typeof exports&&exports&&!exports.nodeType&&exports,na=ta&&e&&!e.nodeType&&e,aa=na&&na.exports===ta&&Xt.process,ia=function(){try{return aa&&aa.binding&&aa.binding("util")}catch(la){}}(),ra=ia&&ia.isTypedArray,oa=ra?(ea=ra,function(e){return ea(e)}):function(e){return Wn(e)&&Zn(e.length)&&!!Qn[rn(e)]},sa=Object.prototype.hasOwnProperty;var la,ca,da=Object.prototype,ua=(la=Object.keys,ca=Object,function(e){return la(ca(e))}),ha=Object.prototype.hasOwnProperty;function pa(e){return null!=(t=e)&&Zn(t.length)&&!sn(t)?function(e,t){var n=Mn(e),a=!n&&Vn(e),i=!n&&!a&&Kn(e),r=!n&&!a&&!i&&oa(e),o=n||a||i||r,s=o?function(e,t){for(var n=-1,a=Array(e);++n{},Ra={debug:Na,info:Na,warn:Na,error:Na},Ma=["debug","info","warn","error"];function Da(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console;const a=Ma.indexOf(t);if(-1===a)throw new Error("Material-UI: Log level ".concat(t," not recognized."));return Ma.reduce(((t,i,r)=>(t[i]=r>=a?function(){for(var t=arguments.length,a=new Array(t),r=0;rt=>Da(t,e);let Ba;function Wa(e){const{current:t}=(0,a.useRef)(Ba?Ba(e):Ra);return t}function za(e,t,n){const i=Wa("useApiMethod"),r=(0,a.useRef)(t);(0,a.useEffect)((()=>{r.current=t}),[t]),(0,a.useEffect)((()=>{e.current.isInitialised&&Object.keys(t).forEach((t=>{e.current.hasOwnProperty(t)||(i.debug("Adding ".concat(n,".").concat(t," to apiRef")),e.current[t]=function(){return r.current[t](...arguments)})}))}),[t,n,e,i])}const Ua=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},Ha=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,qa=(e,t,n,a)=>{const i=n.getValue(n.field),r=a.getValue(a.field),o=Ha(i,r);return null!==o?o:i>r?1:i{clearTimeout(r.current);const a=e.target.value;s(a),c(!0),r.current=setTimeout((()=>{n(Object.assign(Object.assign({},t),{value:a})),c(!1)}),500)}),[n,t]);(0,a.useEffect)((()=>()=>{clearTimeout(r.current)}),[]),(0,a.useEffect)((()=>{s(t.value||"")}),[t.value]);const h=l?{endAdornment:(0,a.createElement)(Ut,null)}:void 0;return(0,a.createElement)(u.A,{label:"Value",placeholder:"Filter value",value:o,onChange:d,type:i||"text",InputProps:h,InputLabelProps:{shrink:!0}})}const Ga=[{label:"contains",value:"contains",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new RegExp(e.value,"i");return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return n.test((null==a?void 0:a.toString())||"")}},InputComponent:Va},{label:"equals",value:"equals",getApplyFilterFn:(e,t)=>e.columnField&&e.value&&e.operatorValue?n=>{var a;const i=t.valueGetter?t.valueGetter(n):n.value;return 0===(null===(a=e.value)||void 0===a?void 0:a.localeCompare((null==i?void 0:i.toString())||"",void 0,{sensitivity:"base"}))}:null,InputComponent:Va},{label:"starts with",value:"start",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new RegExp("^".concat(e.value,".*$"),"i");return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return n.test((null==a?void 0:a.toString())||"")}},InputComponent:Va},{label:"ends with",value:"end",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new RegExp(".*".concat(e.value,"$"),"i");return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return n.test((null==a?void 0:a.toString())||"")}},InputComponent:Va}],$a={width:100,hide:!1,sortable:!0,resizable:!0,filterable:!0,sortDirection:null,sortComparator:(e,t,n,a)=>{const i=n.getValue(n.field),r=a.getValue(a.field),o=Ha(i,r);return null!==o?o:"string"==typeof i?i.localeCompare(r.toString()):i-r},type:"string",align:"left",filterOperators:Ga},Xa=[{label:"=",value:"=",getApplyFilterFn:(e,t)=>e.columnField&&e.value&&e.operatorValue?n=>{const a=t.valueGetter?t.valueGetter(n):n.value;return Number(a)===Number(e.value)}:null,InputComponent:Va,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:(e,t)=>e.columnField&&e.value&&e.operatorValue?n=>{const a=t.valueGetter?t.valueGetter(n):n.value;return Number(a)!==Number(e.value)}:null,InputComponent:Va,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:(e,t)=>e.columnField&&e.value&&e.operatorValue?n=>{const a=t.valueGetter?t.valueGetter(n):n.value;return Number(a)>Number(e.value)}:null,InputComponent:Va,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:(e,t)=>e.columnField&&e.value&&e.operatorValue?n=>{const a=t.valueGetter?t.valueGetter(n):n.value;return Number(a)>=Number(e.value)}:null,InputComponent:Va,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:(e,t)=>e.columnField&&e.value&&e.operatorValue?n=>{const a=t.valueGetter?t.valueGetter(n):n.value;return Number(a)e.columnField&&e.value&&e.operatorValue?n=>{const a=t.valueGetter?t.valueGetter(n):n.value;return Number(a)<=Number(e.value)}:null,InputComponent:Va,InputComponentProps:{type:"number"}}],Ka=Object.assign(Object.assign({},$a),{type:"number",align:"right",headerAlign:"right",sortComparator:(e,t,n,a)=>{const i=n.getValue(n.field),r=a.getValue(a.field),o=Ha(i,r);return null!==o?o:Number(i)-Number(r)},valueFormatter:e=>{let{value:t}=e;return t&&function(e){return"number"==typeof e}(t)&&t.toLocaleString()||t},filterOperators:Xa}),Ya=e=>[{label:"is",value:"is",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new Date(e.value).getTime();return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return!!a&&(a instanceof Date?a.getTime()===n:new Date(a.toString()).getTime()===n)}},InputComponent:Va,InputComponentProps:{type:e?"datetime-local":"date"}},{label:"is not",value:"not",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new Date(e.value).getTime();return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return!!a&&(a instanceof Date?a.getTime()!==n:new Date(a.toString()).getTime()!==n)}},InputComponent:Va,InputComponentProps:{type:e?"datetime-local":"date"}},{label:"is after",value:"after",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new Date(e.value).getTime();return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return!!a&&(a instanceof Date?a.getTime()>n:new Date(a.toString()).getTime()>n)}},InputComponent:Va,InputComponentProps:{type:e?"datetime-local":"date"}},{label:"is on or after",value:"onOrAfter",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new Date(e.value).getTime();return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return!!a&&(a instanceof Date?a.getTime()>=n:new Date(a.toString()).getTime()>=n)}},InputComponent:Va,InputComponentProps:{type:e?"datetime-local":"date"}},{label:"is before",value:"before",getApplyFilterFn:(e,t)=>{if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new Date(e.value).getTime();return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return!!a&&(a instanceof Date?a.getTime(){if(!e.columnField||!e.value||!e.operatorValue)return null;const n=new Date(e.value).getTime();return e=>{const a=t.valueGetter?t.valueGetter(e):e.value;return!!a&&(a instanceof Date?a.getTime()<=n:new Date(a.toString()).getTime()<=n)}},InputComponent:Va,InputComponentProps:{type:e?"datetime-local":"date"}}];const Ja=Object.assign(Object.assign({},$a),{type:"date",sortComparator:qa,valueFormatter:function(e){let{value:t}=e;return Ta(t)?t.toLocaleDateString():t},filterOperators:Ya()}),Za=Object.assign(Object.assign({},$a),{type:"dateTime",sortComparator:qa,valueFormatter:function(e){let{value:t}=e;return Ta(t)?t.toLocaleString():t},filterOperators:Ya(!0)}),Qa={string:$a,number:Ka,date:Ja,dateTime:Za};Qa.__default__=$a;const ei="client";let ti;ti=void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_DEMO_URL:"https://api.demo.elviria.portit.io/",REACT_APP_API_DEVELOP_URL:"https://api.develop.elviria.portit.io/",REACT_APP_API_PRODUCTION_URL:"https://api.konfido.vip/",REACT_APP_BACKOFFICE_DEMO_URL:"https://app.demo.elviria.portit.io/",REACT_APP_BACKOFFICE_DEVELOP_URL:"https://app.develop.elviria.portit.io/",REACT_APP_BACKOFFICE_PRODUCTION_URL:"https://app.konfido.vip/",REACT_APP_COSMO_MAIN_COLOR:"#FF19CF",REACT_APP_COSMO_SECONDARY_COLOR:"#57FFFF",REACT_APP_DEMO_MODE:"demo",REACT_APP_ELVIRIA_MAIN_COLOR:"#4768cb",REACT_APP_ELVIRIA_SECONDARY_COLOR:"#F6EB3B",REACT_APP_ENABLE_CARDS:"false",REACT_APP_ENABLE_REWARDS:"false",REACT_APP_ENABLE_TRANSACTIONS_BEHALF:"false",REACT_APP_KEYCLOAK_CLIENT_ID:"elviria-backoffice-client",REACT_APP_KEYCLOAK_DEMO_URL:"https://auth.demo.elviria.portit.io/auth/",REACT_APP_KEYCLOAK_DEVELOP_URL:"https://auth.develop.elviria.portit.io/auth/",REACT_APP_KEYCLOAK_PRODUCTION_URL:"https://auth.konfido.vip/auth/",REACT_APP_KEYCLOAK_REALM:"elviria",REACT_APP_KONFIDO_MAIN_COLOR:"#4768cb",REACT_APP_KONFIDO_SECONDARY_COLOR:"#4768cb",REACT_APP_MEERGROUP_MAIN_COLOR:"#D9AB47",REACT_APP_MEERGROUP_SECONDARY_COLOR:"#C79137",REACT_APP_PROJECT:"konfido",REACT_APP_QUID_MAIN_COLOR:"#42206D",REACT_APP_QUID_SECONDARY_COLOR:"#A22FBC",REACT_APP_SENTRY:"https://6872895653f14a558d0814b0dab40fda@o508190.ingest.sentry.io/6056619",REACT_APP_STRFI_MAIN_COLOR:"#7B61FF",REACT_APP_STRFI_SECONDARY_COLOR:"#101214",REACT_APP_STRIPE_TEST_KEY:"pk_test_WYMV5CjO1liGYZDEcOHLQQmV00q5lBXeol",REACT_APP_TOONIE_MAIN_COLOR:"#133D59",REACT_APP_TOONIE_SECONDARY_COLOR:"#F4B31D",REACT_APP_USE_FAKE_REPOSITORY:"false",REACT_APP_VERSION:"1.44.6"}.EXPERIMENTAL_ENABLED&&Ea()&&window.localStorage.getItem("EXPERIMENTAL_ENABLED")?"true"===window.localStorage.getItem("EXPERIMENTAL_ENABLED"):"true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_DEMO_URL:"https://api.demo.elviria.portit.io/",REACT_APP_API_DEVELOP_URL:"https://api.develop.elviria.portit.io/",REACT_APP_API_PRODUCTION_URL:"https://api.konfido.vip/",REACT_APP_BACKOFFICE_DEMO_URL:"https://app.demo.elviria.portit.io/",REACT_APP_BACKOFFICE_DEVELOP_URL:"https://app.develop.elviria.portit.io/",REACT_APP_BACKOFFICE_PRODUCTION_URL:"https://app.konfido.vip/",REACT_APP_COSMO_MAIN_COLOR:"#FF19CF",REACT_APP_COSMO_SECONDARY_COLOR:"#57FFFF",REACT_APP_DEMO_MODE:"demo",REACT_APP_ELVIRIA_MAIN_COLOR:"#4768cb",REACT_APP_ELVIRIA_SECONDARY_COLOR:"#F6EB3B",REACT_APP_ENABLE_CARDS:"false",REACT_APP_ENABLE_REWARDS:"false",REACT_APP_ENABLE_TRANSACTIONS_BEHALF:"false",REACT_APP_KEYCLOAK_CLIENT_ID:"elviria-backoffice-client",REACT_APP_KEYCLOAK_DEMO_URL:"https://auth.demo.elviria.portit.io/auth/",REACT_APP_KEYCLOAK_DEVELOP_URL:"https://auth.develop.elviria.portit.io/auth/",REACT_APP_KEYCLOAK_PRODUCTION_URL:"https://auth.konfido.vip/auth/",REACT_APP_KEYCLOAK_REALM:"elviria",REACT_APP_KONFIDO_MAIN_COLOR:"#4768cb",REACT_APP_KONFIDO_SECONDARY_COLOR:"#4768cb",REACT_APP_MEERGROUP_MAIN_COLOR:"#D9AB47",REACT_APP_MEERGROUP_SECONDARY_COLOR:"#C79137",REACT_APP_PROJECT:"konfido",REACT_APP_QUID_MAIN_COLOR:"#42206D",REACT_APP_QUID_SECONDARY_COLOR:"#A22FBC",REACT_APP_SENTRY:"https://6872895653f14a558d0814b0dab40fda@o508190.ingest.sentry.io/6056619",REACT_APP_STRFI_MAIN_COLOR:"#7B61FF",REACT_APP_STRFI_SECONDARY_COLOR:"#101214",REACT_APP_STRIPE_TEST_KEY:"pk_test_WYMV5CjO1liGYZDEcOHLQQmV00q5lBXeol",REACT_APP_TOONIE_MAIN_COLOR:"#133D59",REACT_APP_TOONIE_SECONDARY_COLOR:"#F4B31D",REACT_APP_USE_FAKE_REPOSITORY:"false",REACT_APP_VERSION:"1.44.6"}.EXPERIMENTAL_ENABLED;const ni={rowHeight:52,headerHeight:56,scrollbarSize:15,columnBuffer:2,rowsPerPageOptions:[25,50,100],pageSize:100,paginationMode:ei,sortingMode:ei,sortingOrder:["asc","desc",null],columnTypes:Qa,disableColumnMenu:!ti,disableColumnFilter:!ti,disableColumnSelector:!ti,hideToolbar:!ti,icons:{ColumnFiltering:Rt,ColumnSelector:Dt,ColumnMenu:Bt,ColumnSortedAscending:Ot,ColumnSortedDescending:Nt,ColumnResize:Lt}};var ai;!function(e){e.And="and",e.Or="or"}(ai||(ai={}));const ii=(e,t)=>e&&t>0?Math.ceil(t/e):1,ri={page:1,pageCount:0,pageSize:0,paginationMode:"client",rowCount:0},oi=(e,t)=>{switch(t.type){case"SET_PAGE_ACTION":return((e,t)=>{let{page:n}=t;return e.page!==n?Object.assign(Object.assign({},e),{page:n}):e})(e,t.payload);case"SET_PAGESIZE_ACTION":return((e,t)=>{const{pageSize:n}=t;return e.pageSize===n?e:Object.assign(Object.assign({},e),{pageSize:n,pageCount:ii(n,e.rowCount)})})(e,t.payload);case"SET_PAGINATION_MODE_ACTION":return Object.assign(Object.assign({},e),{paginationMode:t.payload.paginationMode});case"SET_ROWCOUNT_ACTION":return((e,t)=>{const{totalRowCount:n}=t;if(e.rowCount!==n){const t=ii(e.pageSize,n);return Object.assign(Object.assign({},e),{pageCount:t,rowCount:n,page:e.page>t?t:e.page})}return e})(e,t.payload);default:throw new Error("Material-UI: Action not found - "+JSON.stringify(t))}};const si=e=>{const t=Wa("useGridApi"),[,n]=(0,a.useState)();e.current.isInitialised||e.current.state||(t.info("Initialising state."),e.current.state={rows:{idRowsLookup:{},allRows:[],totalRowCount:0},pagination:ri,options:ni,isScrolling:!1,columns:{visible:[],all:[],lookup:{},hasVisibleColumns:!1,hasColumns:!1,meta:{positions:[],totalWidth:0}},columnReorder:{dragCol:""},rendering:{realScroll:{left:0,top:0},renderContext:null,renderingZoneScroll:{left:0,top:0},virtualPage:0,virtualRowsCount:0,renderedSizes:null},containerSizes:null,scrollBar:{hasScrollX:!1,hasScrollY:!1,scrollBarSize:{x:0,y:0}},viewportSizes:{width:0,height:1},sorting:{sortedRows:[],sortModel:[]},keyboard:{cell:null,isMultipleKeyPressed:!1},selection:{},filter:{items:[],linkOperator:ai.And},columnMenu:{open:!1},preferencePanel:{open:!1},visibleRows:{visibleRows:[],visibleRowsLookup:{}}},e.current.forceUpdate=n);const i=(0,a.useCallback)((t=>t?e.current.state[t]:e.current.state),[e]),r=(0,a.useCallback)((t=>e.current.subscribeEvent("stateChange",t)),[e]),o=(0,a.useCallback)((t=>{let a;a=Pa(t)?t(e.current.state):t,e.current.state=a,n((()=>a));const i={api:e.current,state:a};e.current.publishEvent("stateChange",i)}),[e]);return za(e,{getState:i,onStateChange:r,setState:o},"StateApi"),e.current},li=e=>{si(e);const t=(0,a.useCallback)((()=>e.current.forceUpdate((()=>e.current.state))),[e]),n=(0,a.useCallback)((t=>{const n=t(e.current.state),a=e.current.state!==n;if(e.current.state=n,a&&e.current.publishEvent){const t={api:e.current,state:n};e.current.publishEvent("stateChange",t)}}),[e]);return[e.current.state,n,t]},ci=(e,t)=>{const[n]=li(e);return t(n)};function di(e,t){t=function(e){const t=Object.assign({},e);return Object.keys(e).forEach((n=>{e.hasOwnProperty(n)&&void 0===e[n]&&delete t[n]})),t}(t);const n=e.icons,a=null==t?void 0:t.icons,i=Object.assign(Object.assign({},n),a),r=function(e,t){const n=Object.assign(Object.assign({},e),t),a={};return Object.entries(n).forEach((e=>{let[t,i]=e;i=i.extendType?Object.assign(Object.assign(Object.assign({},n[i.extendType]),i),{type:t}):Object.assign(Object.assign(Object.assign({},n.__default__),i),{type:t}),a[t]=i})),a}(e.columnTypes,null==t?void 0:t.columnTypes),o=Object.assign(Object.assign({},e),t);return o.icons=i,o.columnTypes=r,o}const ui=(e,t,n,i)=>{const r=si(e),[o,s,l]=li(e),c=(0,a.useCallback)((e=>{void 0===o[t]&&(o[t]=i),s((a=>{const i=Object.assign({},a);return i[t]=n(a[t],e),i})),l()}),[l,o,i,n,s,t]),d=(0,a.useRef)(c);(0,a.useEffect)((()=>{d.current=c}),[c]);const u=(0,a.useCallback)((e=>d.current(e)),[]);return{gridState:o,dispatch:u,gridApi:r}},hi=e=>e.options;function pi(e,t){if("options::UPDATE"===t.type)return di(e,t.payload);throw new Error("Material-UI: Action ".concat(t.type," not found."))}const fi=(0,a.createContext)(void 0),mi=e=>{let{column:t,onClick:n}=e;const i=(0,a.useContext)(fi),r=ci(i,hi),o=(0,a.useCallback)((e=>{n(e),i.current.showFilterPanel(null==t?void 0:t.field)}),[i,null==t?void 0:t.field,n]);return r.disableColumnFilter||!(null==t?void 0:t.filterable)?null:(0,a.createElement)(d.A,{onClick:o},"Filter")};function vi(e,t){return e.closest("."+t)}function gi(e){return null!=e&&null!==vi(e,"MuiDataGrid-cell")}function yi(e){return e.getAttribute("data-id")}function bi(e){return e.getAttribute("data-field")}function _i(e,t){return e.querySelector('[data-field="'.concat(t,'"]'))}function xi(e){const t=e.getAttribute("data-field"),n=vi(e,"MuiDataGrid-root");if(!n)throw new Error("Material-UI: The root element is not found.");return n.querySelectorAll(':scope .MuiDataGrid-cell[data-field="'.concat(t,'"]'))}const wi=e=>{let{open:t,target:n,onKeyDown:i,onClickAway:r,children:o}=e;return(0,a.createElement)(Pe,{open:t,anchorEl:n,transition:!0},(e=>{let{TransitionProps:n,placement:s}=e;return(0,a.createElement)(p.A,Object.assign({},n,{style:{transformOrigin:"bottom"===s?"center top":"center bottom"}}),(0,a.createElement)(m.A,null,(0,a.createElement)(h.A,{onClickAway:r},(0,a.createElement)(f.A,{autoFocusItem:t,id:"menu-list-grow",onKeyDown:i},o))))}))},Ci=e=>{let{column:t,onClick:n}=e;const i=(0,a.useContext)(fi),r=(0,a.useCallback)((e=>{n(e),i.current.toggleColumn(null==t?void 0:t.field,!0)}),[i,null==t?void 0:t.field,n]);return t?(0,a.createElement)(d.A,{onClick:r},"Hide"):null},Si=e=>e.rows,Ai=Me(Si,(e=>e&&e.totalRowCount)),ki=Me(Si,(e=>e&&e.idRowsLookup)),ji=Me(Si,(e=>e.allRows.map((t=>e.idRowsLookup[t])))),Ii=e=>e.sorting,Fi=Me(Ii,(e=>e.sortedRows)),Ti=Me(Fi,ki,ji,((e,t,n)=>e.length>0?e.map((e=>t[e])):n)),Pi=Me(Ii,(e=>e.sortModel)),Ei=Me(Ii,Pi,((e,t)=>t.reduce(((e,n,a)=>(e[n.field]={sortDirection:n.sort,sortIndex:t.length>1?a+1:void 0},e)),{}))),Oi=e=>{let{column:t,onClick:n}=e;const i=(0,a.useContext)(fi),r=ci(i,Pi),o=(0,a.useMemo)((()=>{if(!t)return null;const e=r.find((e=>e.field===t.field));return null==e?void 0:e.sort}),[t,r]),s=(0,a.useCallback)((e=>{n(e);const a=e.currentTarget.getAttribute("data-value")||null;null==i||i.current.sortColumn(t,a)}),[i,t,n]);return t&&t.sortable?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.A,{onClick:s,disabled:null==o},"Unsort"),(0,a.createElement)(d.A,{onClick:s,"data-value":"asc",disabled:"asc"===o},"Sort By Asc"),(0,a.createElement)(d.A,{onClick:s,"data-value":"desc",disabled:"desc"===o},"Sort By Desc")):null},Ni=e=>e.columnMenu;function Ri(){const e=(0,a.useContext)(fi),t=ci(e,Ni),n=t.field?null==e?void 0:e.current.getColumnFromField(t.field):null,[i,r]=(0,a.useState)(null),o=(0,a.useRef)(),s=(0,a.useCallback)((()=>{null==e||e.current.hideColumnMenu()}),[e]),l=(0,a.useCallback)((()=>{o.current=setTimeout(s,50)}),[s]),c=(0,a.useCallback)((t=>{let{open:n,field:a}=t;if(a&&n){setImmediate((()=>clearTimeout(o.current)));const t=_i(e.current.rootElementRef.current,a).querySelector(".MuiDataGrid-menuIconButton");r(t)}}),[e]),d=(0,a.useCallback)((e=>{"Tab"===e.key&&(e.preventDefault(),s())}),[s]);return(0,a.useEffect)((()=>{c(t)}),[t,c]),i?(0,a.createElement)(wi,{open:t.open,target:i,onKeyDown:d,onClickAway:l},(0,a.createElement)(Oi,{onClick:s,column:n}),(0,a.createElement)(mi,{onClick:s,column:n}),(0,a.createElement)(Ci,{onClick:s,column:n})):null}function Mi(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);it?(function(e){return Array.isArray(e)}(t)?e+=t.join(" "):function(e){return"string"==typeof e}(t)?e+=t:"object"==typeof t&&(Object.keys(t).forEach((n=>{t[n]&&(e+=n+" ")})),e=e.trim()),e+=" "):e),"").trim()}const Li=["Meta","Control"],Bi=e=>Li.indexOf(e)>-1,Wi=e=>"Space"===e,zi=e=>0===e.indexOf("Arrow"),Ui=e=>"Home"===e||"End"===e,Hi=e=>0===e.indexOf("Page"),qi=e=>Ui(e)||zi(e)||Hi(e)||Wi(e);function Vi(e){let{element:t,value:n,rowIndex:a,rowModel:i,colDef:r,api:o}=e;return{element:t,value:n,field:null==r?void 0:r.field,getValue:e=>{const n=o.getColumnFromField(e);return n.valueGetter?n.valueGetter(Vi({value:i[e],colDef:n,rowIndex:a,element:t,rowModel:i,api:o})):i[e]},row:i,colDef:r,rowIndex:a,api:o}}const Gi=(0,a.forwardRef)((function(e,t){const{className:n,height:i,style:r}=e,o=Mi(e,["className","height","style"]);return(0,a.createElement)("div",Object.assign({ref:t,className:Di("MuiDataGrid-columnsContainer",n)},o,{style:Object.assign({minHeight:i,maxHeight:i,lineHeight:i+"px"},r)}))})),$i=(0,a.forwardRef)((function(e,t){const{className:n}=e,i=Mi(e,["className"]);return(0,a.createElement)("div",Object.assign({ref:t,className:Di("MuiDataGrid-dataContainer",n)},i))})),Xi=(0,a.forwardRef)((function(e,t){const{className:n}=e,i=Mi(e,["className"]);return(0,a.createElement)("div",Object.assign({ref:t,className:Di("MuiDataGrid-footer",n)},i))})),Ki=(0,a.createContext)(ni);function Yi(e){const{className:t,style:n}=e,i=Mi(e,["className","style"]),r=(0,a.useContext)(Ki);return(0,a.createElement)("div",Object.assign({className:Di("MuiDataGrid-overlay",t),style:Object.assign({top:null==r?void 0:r.headerHeight},n)},i))}const Ji=(0,De.A)((e=>{const t="light"===e.palette.type?(0,Le.a)((0,Le.Rv)(e.palette.divider,1),.88):(0,Le.e$)((0,Le.Rv)(e.palette.divider,1),.68),n={root:Object.assign(Object.assign({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid "+t,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2),{outline:"none",display:"flex",flexDirection:"column","& *, & *::before, & *::after":{boxSizing:"inherit"},"& .MuiDataGrid-mainGridContainer":{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},"& .MuiDataGrid-overlay":{display:"flex",position:"absolute",top:0,left:0,right:0,bottom:0,alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:10,backgroundColor:(0,Le.Rv)(e.palette.background.default,e.palette.action.disabledOpacity)},"& .MuiDataGrid-toolbar":{display:"flex",alignItems:"center",padding:4},"& .MuiDataGrid-columnsContainer":{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",flexDirection:"column",borderBottom:"1px solid "+t},"& .MuiDataGrid-scrollArea":{position:"absolute",top:0,zIndex:101,width:20,bottom:0},"& .MuiDataGrid-scrollArea-left":{left:0},"& .MuiDataGrid-scrollArea-right":{right:0},"& .MuiDataGrid-colCellWrapper":{display:"flex",width:"100%",alignItems:"center"},"& .MuiDataGrid-colCell, & .MuiDataGrid-cell":{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:e.spacing(0,2)},"& .MuiDataGrid-colCell:focus, & .MuiDataGrid-cell:focus":{outline:"dotted",outlineWidth:1,outlineOffset:-2},"& .MuiDataGrid-colCellCheckbox, & .MuiDataGrid-cellCheckbox":{padding:0,justifyContent:"center",alignItems:"center"},"& .MuiDataGrid-colCell":{position:"relative",display:"flex"},"& .MuiDataGrid-colCellTitleContainer":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"inline-flex",flex:1},"& .MuiDataGrid-colCellNumeric .MuiDataGrid-sortIconContainer":{paddingRight:5},"& .MuiDataGrid-colCellSortable":{cursor:"pointer"},"& .MuiDataGrid-sortIcon":{fontSize:18},"& .MuiDataGrid-colCellCenter .MuiDataGrid-colCellTitleContainer":{justifyContent:"center"},"& .MuiDataGrid-colCellRight .MuiDataGrid-colCellTitleContainer":{justifyContent:"flex-end"},"& .MuiDataGrid-colCellTitle":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium},"& .MuiDataGrid-colCellMoving":{backgroundColor:e.palette.action.hover},"& .MuiDataGrid-columnSeparator":{position:"absolute",right:-12,zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"& .MuiDataGrid-columnSeparatorResizable":{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},"&.Mui-resizing":{color:e.palette.text.primary}},"& .MuiDataGrid-iconSeparator":{color:"inherit"},"& .MuiDataGrid-menuIcon":{visibility:"hidden",fontSize:20,marginRight:-6,display:"flex",alignItems:"center"},"& .MuiDataGrid-colCell:hover .MuiDataGrid-menuIcon":{visibility:"visible"},"& .MuiDataGrid-colCellWrapper.scroll .MuiDataGrid-colCell:last-child":{borderRight:"none"},"& .MuiDataGrid-dataContainer":{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},"& .MuiDataGrid-window":{position:"absolute",bottom:0,left:0,right:0,overflowX:"auto"},"& .MuiDataGrid-viewport":{position:"sticky",top:0,left:0,display:"flex",flexDirection:"column",overflow:"hidden"},"& .MuiDataGrid-row":{display:"flex",width:"fit-content","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,Le.Rv)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:(0,Le.Rv)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,Le.Rv)(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},"& .MuiDataGrid-cell":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderBottom:"1px solid "+t},"& .MuiDataGrid-colCellWrapper .MuiDataGrid-cell":{borderBottom:"none"},"& .MuiDataGrid-cellWithRenderer":{display:"flex",alignItems:"center"},"& .MuiDataGrid-withBorder":{borderRight:"1px solid "+t},"& .MuiDataGrid-cellRight":{textAlign:"right"},"& .MuiDataGrid-cellCenter":{textAlign:"center"},"& .MuiDataGrid-rowCount, & .MuiDataGrid-selectedRowCount":{alignItems:"center",display:"flex",margin:e.spacing(0,2)},"& .MuiDataGrid-footer":{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,"&.MuiDataGrid-footer-paginationAvailable":{"& .MuiDataGrid-rowCount, & .MuiDataGrid-selectedRowCount":{visibility:"hidden",[e.breakpoints.up("md")]:{visibility:"visible"}}},"&.MuiDataGrid-footer-justifyContentEnd":{justifyContent:"flex-end"}},"& .MuiDataGrid-colCell-dropZone .MuiDataGrid-colCell-draggable":{cursor:"move"},"& .MuiDataGrid-colCell-draggable":{display:"flex",width:"100%",justifyContent:"inherit"},"& .MuiDataGrid-colCell-dragging":{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity}})};if("dark"===e.palette.type){const e="#202022",t="#585859",a="#838384";n.root=Object.assign(Object.assign({},n.root),{scrollbarColor:"".concat(t," ").concat(e),"& *::-webkit-scrollbar":{backgroundColor:e},"& *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t,minHeight:24,border:"3px solid "+e},"& *::-webkit-scrollbar-thumb:focus":{backgroundColor:a},"& *::-webkit-scrollbar-thumb:active":{backgroundColor:a},"& *::-webkit-scrollbar-thumb:hover":{backgroundColor:a},"& *::-webkit-scrollbar-corner":{backgroundColor:e}})}return n}),{name:"MuiDataGrid"}),Zi=(0,a.forwardRef)((function(e,t){const{className:n}=e,i=Mi(e,["className"]),r=Ji();return(0,a.createElement)("div",Object.assign({ref:t,className:Di(r.root,n)},i))})),Qi=(0,a.forwardRef)((function(e,t){const{className:n}=e,i=Mi(e,["className"]),{headerHeight:r,autoHeight:o}=(0,a.useContext)(Ki);return(0,a.createElement)("div",Object.assign({ref:t,className:Di("MuiDataGrid-window",n)},i,{style:{top:r,overflowY:o?"hidden":"auto"}}))})),er=e=>e.columns,tr=e=>e.columns.lookup,nr=Me(er,(e=>e.all)),ar=Me(er,(e=>e.visible)),ir=Me(er,(e=>e.all.filter((e=>e.filterable)))),rr=Me(er,(e=>e.visible.length)),or=Me(er,(e=>e.meta.totalWidth)),sr=(0,De.A)({columnsListContainer:{paddingTop:8,paddingLeft:12},column:{display:"flex",justifyContent:"space-between",padding:"2px 4px"},switch:{marginRight:4},dragIconRoot:{justifyContent:"flex-end"}},{name:"MuiDataGridColumnsPanel"});function lr(){const e=sr(),t=(0,a.useContext)(fi),n=(0,a.useRef)(null),i=ci(t,nr),{disableColumnReorder:r}=ci(t,hi),[o,s]=(0,a.useState)(""),l=(0,a.useCallback)((e=>{const{name:n}=e.target;t.current.toggleColumn(n)}),[t]),c=(0,a.useCallback)((e=>{t.current.updateColumns(i.map((t=>(t.hide=e,t))))}),[t,i]),d=(0,a.useCallback)((()=>c(!1)),[c]),h=(0,a.useCallback)((()=>c(!0)),[c]),p=(0,a.useCallback)((e=>{s(e.target.value.toLowerCase())}),[]),f=(0,a.useMemo)((()=>o?i.filter((e=>e.field.toLowerCase().indexOf(o)>-1||e.headerName&&e.headerName.toLowerCase().indexOf(o)>-1)):i),[i,o]);return(0,a.useEffect)((()=>{n&&n.current&&n.current.focus()})),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"MuiDataGridPanel-header"},(0,a.createElement)(u.A,{label:"Find column",placeholder:"Column Title",inputRef:n,value:o,onChange:p,type:"text",fullWidth:!0})),(0,a.createElement)("div",{className:"MuiDataGridPanel-container"},(0,a.createElement)("div",{className:e.columnsListContainer},f.map((t=>(0,a.createElement)("div",{key:t.field,className:e.column},(0,a.createElement)(He.A,{control:(0,a.createElement)(ze.A,{className:e.switch,checked:!t.hide,onClick:l,name:t.field,color:"primary",size:"small"}),label:t.headerName||t.field}),!r&&(0,a.createElement)(Be.A,{draggable:!0,className:e.dragIconRoot},(0,a.createElement)(We.A,{"aria-label":"Drag to reorder column",title:"Reorder Column",size:"small",disabled:!0},(0,a.createElement)(Ht,null)))))))),(0,a.createElement)("div",{className:"MuiDataGridPanel-footer"},(0,a.createElement)(Ue.A,{onClick:h,color:"primary"},"Hide All"),(0,a.createElement)(Ue.A,{onClick:d,color:"primary"},"Show All")))}const cr=(0,De.A)((()=>({root:{display:"flex",justifyContent:"space-around",padding:8},linkOperatorSelect:{width:60},columnSelect:{width:150},operatorSelect:{width:120},filterValueInput:{width:190},closeIconRoot:{flexShrink:0,justifyContent:"flex-end"}})),{name:"MuiDataGridFilterForm"});function dr(e){var t;const{item:n,hasMultipleFilters:i,deleteFilter:r,applyFilterChanges:o,multiFilterOperator:s,showMultiFilterOperators:l,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:d}=e,u=cr(),h=(0,a.useContext)(fi),p=ci(h,ir),[f,m]=(0,a.useState)((()=>n.columnField?h.current.getColumnFromField(n.columnField):null)),[v,g]=(0,a.useState)((()=>{var e;return n.operatorValue&&f&&(null===(e=f.filterOperators)||void 0===e?void 0:e.find((e=>e.value===n.operatorValue)))||null})),y=(0,a.useCallback)((e=>{const t=e.target.value,a=h.current.getColumnFromField(t),i=a.filterOperators[0];g(i),m(a),o(Object.assign(Object.assign({},n),{value:void 0,columnField:t,operatorValue:i.value}))}),[h,o,n]),b=(0,a.useCallback)((e=>{var t;const a=e.target.value;o(Object.assign(Object.assign({},n),{operatorValue:a}));const i=(null===(t=f.filterOperators)||void 0===t?void 0:t.find((e=>e.value===a)))||null;g(i)}),[o,f,n]),_=(0,a.useCallback)((e=>{const t=e.target.value===ai.And.toString()?ai.And:ai.Or;d(t)}),[d]),x=(0,a.useCallback)((()=>{r(n)}),[r,n]);return(0,a.createElement)("div",{className:u.root},(0,a.createElement)(Be.A,{className:u.linkOperatorSelect,style:{display:i?"block":"none",visibility:l?"visible":"hidden"}},(0,a.createElement)(qe.A,{id:"columns-filter-operator-select-label"},"Operators"),(0,a.createElement)(Ve.A,{labelId:"columns-filter-operator-select-label",id:"columns-filter-operator-select",value:s,onChange:_,disabled:!!c,native:!0},(0,a.createElement)("option",{key:ai.And.toString(),value:ai.And.toString()},"And"),(0,a.createElement)("option",{key:ai.Or.toString(),value:ai.Or.toString()},"Or"))),(0,a.createElement)(Be.A,{className:u.columnSelect},(0,a.createElement)(qe.A,{id:"columns-filter-select-label"},"Columns"),(0,a.createElement)(Ve.A,{labelId:"columns-filter-select-label",id:"columns-filter-select",value:n.columnField||"",onChange:y,native:!0},p.map((e=>(0,a.createElement)("option",{key:e.field,value:e.field},e.headerName||e.field))))),(0,a.createElement)(Be.A,{className:u.operatorSelect},(0,a.createElement)(qe.A,{id:"columns-operators-select-label"},"Operators"),(0,a.createElement)(Ve.A,{labelId:"columns-operators-select-label",id:"columns-operators-select",value:n.operatorValue,onChange:b,native:!0},null===(t=null==f?void 0:f.filterOperators)||void 0===t?void 0:t.map((e=>(0,a.createElement)("option",{key:e.value,value:e.value},e.label))))),(0,a.createElement)(Be.A,{className:u.filterValueInput},f&&v&&(0,a.createElement)(v.InputComponent,Object.assign({item:n,applyValue:o},v.InputComponentProps))),(0,a.createElement)(Be.A,{className:u.closeIconRoot},(0,a.createElement)(We.A,{"aria-label":"Delete",title:"Delete",onClick:x,size:"small"},(0,a.createElement)(Wt,null))))}function ur(){const e=(0,a.useContext)(fi),[t]=li(e),{disableMultipleColumnsFiltering:n}=ci(e,hi),i=(0,a.useMemo)((()=>t.filter.items.length>1),[t.filter.items.length]),r=(0,a.useCallback)((t=>{e.current.upsertFilter(t)}),[e]),o=(0,a.useCallback)((t=>{e.current.applyFilterLinkOperator(t)}),[e]),s=(0,a.useCallback)((()=>{e.current.upsertFilter({})}),[e]),l=(0,a.useCallback)((t=>{e.current.deleteFilter(t)}),[e]);return(0,a.useEffect)((()=>{0===t.filter.items.length&&s()}),[s,t.filter.items.length]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"MuiDataGridPanel-container"},t.filter.items.map(((e,n)=>(0,a.createElement)(dr,{key:e.id,item:e,applyFilterChanges:r,deleteFilter:l,hasMultipleFilters:i,showMultiFilterOperators:n>0,multiFilterOperator:t.filter.linkOperator,disableMultiFilterOperator:1!==n,applyMultiFilterOperatorChanges:o})))),!n&&(0,a.createElement)("div",{className:"MuiDataGridPanel-footer"},(0,a.createElement)(Ue.A,{onClick:s,startIcon:(0,a.createElement)(zt,null),color:"primary"},"Add Filter")))}const hr=e=>e.preferencePanel,pr=e=>e.viewportSizes,fr=(0,De.A)((e=>({paper:{backgroundColor:e.palette.background.paper,minWidth:300,display:"flex",flexDirection:"column"},panel:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1,"& .MuiDataGridPanel-container":{display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1"},"& .MuiDataGridPanel-footer, .MuiDataGridPanel-header":{padding:8,display:"inline-flex",justifyContent:"space-between"}}})),{name:"MuiDataGridPanel"});function mr(e){const{children:t,open:n}=e,i=fr(),r=(0,a.useContext)(fi),o=ci(r,pr),s=(0,a.useCallback)((()=>{null==r||r.current.hidePreferences()}),[r]);let l;return(null==r?void 0:r.current)&&(null==r?void 0:r.current.columnHeadersElementRef.current)&&(l=null==r?void 0:r.current.columnHeadersElementRef.current),l?(0,a.createElement)(Pe,{placement:"bottom-start",open:n,anchorEl:l,style:{position:"relative"}},(0,a.createElement)(h.A,{onClickAway:s},(0,a.createElement)(m.A,{square:!0,className:i.paper,style:{maxHeight:o.height,maxWidth:o.width},elevation:8},(0,a.createElement)("div",{className:i.panel},t)))):null}var vr;function gr(){const e=(0,a.useContext)(fi),t=ci(e,nr),n=ci(e,hi),i=ci(e,hr),r=i.openedPanelValue===vr.columns,o=!i.openedPanelValue||!r;return(0,a.createElement)(mr,{open:t.length>0&&i.open},!n.disableColumnSelector&&r&&(0,a.createElement)(lr,null),!n.disableColumnFilter&&o&&(0,a.createElement)(ur,null))}function yr(e){return(0,r.A)(e)}!function(e){e.filters="filters",e.columns="columns"}(vr||(vr={}));const br="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const _r=(0,a.forwardRef)((function(e,t){const{children:n,defaultHeight:i=null,defaultWidth:r=null,disableHeight:l=!1,disableWidth:c=!1,nonce:d,onResize:u,style:h}=e,p=Mi(e,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"]),[f,m]=(0,a.useState)({height:i,width:r}),v=(0,a.useRef)(null),g=(0,a.useRef)(null),y=yr((()=>{if(g.current){const e=g.current.offsetHeight||0,t=g.current.offsetWidth||0,n=(0,o.A)(g.current).getComputedStyle(g.current),a=parseInt(n.paddingLeft,10)||0,i=parseInt(n.paddingRight,10)||0,r=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),s=t-a-i;(!l&&f.height!==r||!c&&f.width!==s)&&(m({height:r,width:s}),u&&u({height:r,width:s}))}}));br((()=>{var e;if(g.current=v.current.parentElement,!g)return;const t=(0,o.A)(null!==(e=g.current)&&void 0!==e?e:void 0),n=function(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,a=t.lastElementChild,i=n.firstElementChild;a.scrollLeft=a.scrollWidth,a.scrollTop=a.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var a=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(a)&&(a.__resizeLast__.width=a.offsetWidth,a.__resizeLast__.height=a.offsetHeight,a.__resizeListeners__.forEach((function(t){t.call(a,e)})))}))}},i=!1,r="",o="animationstart",s="Webkit Moz O ms".split(" "),l="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),c=document.createElement("fakeelement");if(void 0!==c.style.animationName&&(i=!0),!1===i)for(var d=0;d div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),a.appendChild(i)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="Mui-resizeTriggers",i.__resizeTriggers__.innerHTML='
',i.appendChild(i.__resizeTriggers__),n(i),i.addEventListener("scroll",a,!0),o&&(i.__resizeTriggers__.__animationListener__=function(e){"resizeanim"==e.animationName&&n(i)},i.__resizeTriggers__.addEventListener(o,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(r)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(o,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(d,t);return n.addResizeListener(g.current,y),y(),()=>{n.removeResizeListener(g.current,y)}}),[d,y]);const b={overflow:"visible"},_={};l||(b.height=0,_.height=f.height),c||(b.width=0,_.width=f.width);const x=(0,s.A)(v,t);return(0,a.createElement)("div",Object.assign({ref:x,style:Object.assign(Object.assign({},b),h)},p),null===f.height&&null===f.width?null:n(_))})),xr={center:"MuiDataGrid-cellCenter",right:"MuiDataGrid-cellRight"},wr=(0,a.memo)((e=>{const{align:t,children:n,colIndex:i,cssClass:r,hasFocus:o,field:s,formattedValue:l,rowIndex:c,showRightBorder:d,tabIndex:u,value:h,width:p}=e,f=l||h,{rowHeight:m}=(0,a.useContext)(Ki),v=(0,a.useRef)(null);return(0,a.useEffect)((()=>{o&&v.current&&v.current.focus()}),[o]),(0,a.createElement)("div",{ref:v,className:Di("MuiDataGrid-cell",r,{"MuiDataGrid-withBorder":d},t&&"left"!==t?xr[t]:""),role:"cell","data-value":h,"data-field":s,"data-rowindex":c,"aria-colindex":i,style:{minWidth:p,maxWidth:p,lineHeight:m-1+"px",minHeight:m,maxHeight:m},tabIndex:u},n||(null==f?void 0:f.toString()))}));wr.displayName="GridCell";const Cr=(0,a.memo)((e=>{let{width:t}=e;return t?(0,a.createElement)(wr,{width:t}):null}));Cr.displayName="LeftEmptyCell";const Sr=(0,a.memo)((e=>{let{width:t}=e;return t?(0,a.createElement)(wr,{width:t}):null}));Sr.displayName="RightEmptyCell";const Ar=e=>e.selection,kr=Me(Ar,(e=>Object.keys(e).length)),jr=()=>{const e=(0,a.useContext)(fi),t=ci(e,kr),n=ci(e,Ai),[i,r]=(0,a.useState)(t>0&&t!==n),[o,s]=(0,a.useState)(t===n||i);return(0,a.useEffect)((()=>{const e=t>0&&t!==n;s(t===n||i),r(e)}),[i,n,t]),(0,a.createElement)(Ge.A,{indeterminate:i,checked:o,onChange:(t,n)=>{s(n),e.current.selectRows(e.current.getAllRowIds(),n)},className:"MuiDataGrid-checkboxInput",color:"primary",inputProps:{"aria-label":"Select All Rows checkbox"}})};jr.displayName="HeaderCheckbox";const Ir=(0,a.memo)((e=>{const{row:t,getValue:n,field:i}=e,r=(0,a.useContext)(fi);return(0,a.createElement)(Ge.A,{checked:!!n(i),onChange:(e,n)=>{r.current.selectRow(t.id,n,!0)},className:"MuiDataGrid-checkboxInput",color:"primary",inputProps:{"aria-label":"Select Row checkbox"}})}));Ir.displayName="CellCheckboxRenderer";const Fr={field:"__check__",headerName:"Checkbox Selection",description:"Select Multiple Rows",type:"checkboxSelection",width:48,align:"center",headerAlign:"center",resizable:!0,sortable:!1,filterable:!1,disableClickEventBubbling:!0,disableColumnMenu:!0,valueGetter:e=>e.api.getState().selection[e.row.id],renderHeader:e=>(0,a.createElement)(jr,Object.assign({},e)),renderCell:e=>(0,a.createElement)(Ir,Object.assign({},e)),cellClassName:"MuiDataGrid-cellCheckbox",headerClassName:"MuiDataGrid-colCellCheckbox"};function Tr(){const e=(0,a.useContext)(Ki),t=null==e?void 0:e.icons;if(!t)throw new Error("Missing set of icons in grid options");if(!t.ColumnSortedAscending||!t.ColumnSortedDescending||!t.ColumnResize)throw new Error("Missing icons in options or default options.");return t}function Pr(e,t){const n="asc"===t?e.ColumnSortedAscending:e.ColumnSortedDescending;return(0,a.createElement)(n,{className:"MuiDataGrid-sortIcon"})}const Er=(0,a.memo)((e=>{let{direction:t,index:n,hide:i}=e;const r=Tr();return i||null==t?null:(0,a.createElement)("div",{className:"MuiDataGrid-sortIconContainer"},(0,a.createElement)("div",null,null!=n&&(0,a.createElement)(Je,{badgeContent:n,color:"default"},(0,a.createElement)(We.A,{"aria-label":"Sort",size:"small"},Pr(r,t))),null==n&&(0,a.createElement)(We.A,{"aria-label":"Sort",size:"small"},Pr(r,t))))}));Er.displayName="ColumnHeaderSortIcon";const Or=(0,a.forwardRef)((function(e,t){const{className:n}=e,i=Mi(e,["className"]);return(0,a.createElement)("div",Object.assign({ref:t,className:Di("MuiDataGrid-colCellTitle",n),"aria-label":String(i.children)},i))}));function Nr(e){const{label:t,description:n,columnWidth:i}=e,r=(0,a.useRef)(null),[o,s]=(0,a.useState)("");return(0,a.useEffect)((()=>{if(!n&&r&&r.current){const e=function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(r.current);s(e?t:"")}}),[r,i,n,t]),(0,a.createElement)(dt,{title:n||o},(0,a.createElement)(Or,{ref:r},t))}const Rr=(0,a.memo)((function(e){const{resizable:t,resizing:n}=e,i=Mi(e,["resizable","resizing"]),r=Tr(),{showColumnRightBorder:o,headerHeight:s}=(0,a.useContext)(Ki),l=r.ColumnResize;return(0,a.createElement)("div",Object.assign({className:Di("MuiDataGrid-columnSeparator",{"MuiDataGrid-columnSeparatorResizable":t,"Mui-resizing":n}),style:{minHeight:s,opacity:o?0:1}},i),(0,a.createElement)(l,{className:"MuiDataGrid-iconSeparator"}))})),Mr=(0,a.memo)((e=>{let{column:t}=e;const n=Tr(),i=(0,a.createElement)(n.ColumnMenu,{}),r=(0,a.useContext)(fi),o=(0,a.useCallback)((()=>{null==r||r.current.showColumnMenu(t.field)}),[r,t.field]);return(0,a.createElement)("div",{className:"MuiDataGrid-menuIcon"},(0,a.createElement)(We.A,{className:"MuiDataGrid-menuIconButton","aria-label":"Menu",size:"small",onClick:o},i))}));Mr.displayName="ColumnHeaderMenuIcon";const Dr=(0,a.memo)((e=>{let{column:t,colIndex:n,isDragging:i,isResizing:r,separatorProps:o,sortDirection:s,sortIndex:l,options:c}=e;const d=(0,a.useContext)(fi),{disableColumnReorder:u,showColumnRightBorder:h,disableColumnResize:p,disableColumnMenu:f}=c,m=null!=t.sortDirection,v="number"===t.type;let g=null;t.renderHeader&&(g=t.renderHeader({api:d.current,colDef:t,colIndex:n,field:t.field}));const y={draggable:!u,onDragStart:(0,a.useCallback)((e=>d.current.onColItemDragStart(t,e.currentTarget)),[d,t]),onDragEnter:(0,a.useCallback)((e=>d.current.onColItemDragEnter(e)),[d]),onDragOver:(0,a.useCallback)((e=>d.current.onColItemDragOver(t,{x:e.clientX,y:e.clientY})),[d,t])},b=t.width;let _;return null!=s&&(_={"aria-sort":"asc"===s?"ascending":"descending"}),(0,a.createElement)("div",Object.assign({className:Di("MuiDataGrid-colCell",h?"MuiDataGrid-withBorder":"",t.headerClassName,"center"===t.headerAlign&&"MuiDataGrid-colCellCenter","right"===t.headerAlign&&"MuiDataGrid-colCellRight",{"MuiDataGrid-colCellSortable":t.sortable,"MuiDataGrid-colCellMoving":i,"MuiDataGrid-colCellSorted":m,"MuiDataGrid-colCellNumeric":v}),key:t.field,"data-field":t.field,style:{width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:-1,"aria-colindex":n+1},_),(0,a.createElement)("div",Object.assign({className:"MuiDataGrid-colCell-draggable"},y),!f&&v&&!t.disableColumnMenu&&(0,a.createElement)(Mr,{column:t}),(0,a.createElement)("div",{className:"MuiDataGrid-colCellTitleContainer"},v&&(0,a.createElement)(Er,{direction:s,index:l,hide:t.hideSortIcons}),g||(0,a.createElement)(Nr,{label:t.headerName||t.field,description:t.description,columnWidth:b}),!v&&(0,a.createElement)(Er,{direction:s,index:l,hide:t.hideSortIcons})),!v&&!f&&!t.disableColumnMenu&&(0,a.createElement)(Mr,{column:t})),(0,a.createElement)(Rr,Object.assign({resizable:!p&&!!t.resizable,resizing:r},o)))}));Dr.displayName="ColumnHeaderItem";const Lr=Me((e=>e.visibleRows),Ti,((e,t)=>[...t].filter((t=>!1!==e.visibleRowsLookup[t.id])))),Br=Me(Lr,Ti,Ai,((e,t,n)=>n-(t.length-e.length))),Wr=Me((e=>e.filter),(e=>{var t;return null===(t=e.items)||void 0===t?void 0:t.filter((e=>{var t;return null!=e.value&&""!==(null===(t=e.value)||void 0===t?void 0:t.toString())}))})),zr=Me(Wr,(e=>e.length)),Ur=e=>e.keyboard,Hr=Me(Ur,(e=>e.cell)),qr=Me(Ur,(e=>e.isMultipleKeyPressed)),Vr=(0,a.createContext)(null),Gr=(0,a.forwardRef)(((e,t)=>{let{height:n,width:i,children:r}=e;return(0,a.createElement)("div",{ref:t,className:"rendering-zone",style:{maxHeight:n,width:i}},r)}));Gr.displayName="RenderingZone";const $r=e=>{let{selected:t,id:n,className:i,rowIndex:r,children:o}=e;const s=r+2,{rowHeight:l}=(0,a.useContext)(Ki);return(0,a.createElement)("div",{key:n,"data-id":n,"data-rowindex":r,role:"row",className:Di("MuiDataGrid-row",i,{"Mui-selected":t}),"aria-rowindex":s,"aria-selected":t,style:{maxHeight:l,minHeight:l}},o)};$r.displayName="Row";const Xr=(0,a.memo)((e=>{const{columns:t,domIndex:n,firstColIdx:i,hasScroll:r,lastColIdx:o,row:s,rowIndex:l,scrollSize:c,cellFocus:d,showCellRightBorder:u}=e,h=(0,a.useContext)(fi),p=t.slice(i,o+1).map(((a,o)=>{const p=i+o===t.length-1,f=p&&r.y&&r.x?a.width-c:a.width,m=p&&r.x&&!r.y,v=p?!m&&!e.extendRowFullWidth:u;let g=s[a.field];const y=Vi({rowModel:s,colDef:a,rowIndex:l,value:g,api:h.current});let b={cssClass:""};if(a.cellClassName&&(b=Pa(a.cellClassName)?{cssClass:a.cellClassName(y)}:{cssClass:Di(a.cellClassName)}),a.cellClassRules){const e=(_=a.cellClassRules,x=y,Object.entries(_).reduce(((e,t)=>e+((Pa(t[1])?t[1](x):t[1])?t[0]+" ":"")),""));b={cssClass:"".concat(b.cssClass," ").concat(e)}}var _,x;let w=null;a.renderCell&&(w=a.renderCell(y),b={cssClass:b.cssClass+" MuiDataGrid-cellWithRenderer"}),a.valueGetter&&(g=a.valueGetter(y),y.value=g);let C={};return a.valueFormatter&&(C={formattedValue:a.valueFormatter(y)}),Object.assign(Object.assign(Object.assign(Object.assign({value:g,field:a.field,width:f,showRightBorder:v},C),{align:a.align}),b),{tabIndex:0===n&&0===o?0:-1,rowIndex:l,colIndex:o+i,children:w,hasFocus:null!==d&&d.rowIndex===l&&d.colIndex===o+i})}));return(0,a.createElement)(a.Fragment,null,p.map((e=>(0,a.createElement)(wr,Object.assign({key:e.field},e)))))}));Xr.displayName="RowCells";const Kr=e=>{let{height:t,width:n,children:i}=e;return(0,a.createElement)("div",{className:"MuiDataGrid-viewport",style:{minWidth:n,maxWidth:n,minHeight:t,maxHeight:t}},i)};Kr.displayName="StickyContainer";const Yr=e=>e.containerSizes,Jr=e=>e.viewportSizes,Zr=e=>e.scrollBar,Qr=(0,a.forwardRef)(((e,t)=>{const n=Wa("Viewport"),i=(0,a.useContext)(Vr),r=(0,a.useContext)(fi),o=ci(r,hi),s=ci(r,Yr),l=ci(r,Jr),c=ci(r,Zr),d=ci(r,er),u=ci(r,Hr),h=ci(r,Ar),p=ci(r,Lr);return n.debug("Rendering ViewPort"),(0,a.createElement)(Kr,Object.assign({},l),(0,a.createElement)(Gr,Object.assign({ref:t},(null==s?void 0:s.renderingZone)||{width:0,height:0}),p.slice(i.firstRowIdx,i.lastRowIdx).map(((e,t)=>(0,a.createElement)($r,{className:(i.firstRowIdx+t)%2==0?"Mui-even":"Mui-odd",key:e.id,id:e.id,selected:!!h[e.id],rowIndex:i.firstRowIdx+t},(0,a.createElement)(Cr,{width:i.leftEmptyWidth}),(0,a.createElement)(Xr,{columns:d.visible,row:e,firstColIdx:i.firstColIdx,lastColIdx:i.lastColIdx,hasScroll:{y:c.hasScrollY,x:c.hasScrollX},scrollSize:o.scrollbarSize,showCellRightBorder:!!o.showCellRightBorder,extendRowFullWidth:!o.disableExtendRowFullWidth,rowIndex:i.firstRowIdx+t,cellFocus:u,domIndex:t}),(0,a.createElement)(Sr,{width:i.rightEmptyWidth}))))))}));function eo(e,t,n){const i=Wa("useApiEventHandler");(0,a.useEffect)((()=>{if(n&&t)return e.current.subscribeEvent(t,n)}),[e,i,t,n])}Qr.displayName="Viewport";const to=(0,a.memo)((function(e){const{scrollDirection:t}=e,n=(0,a.useRef)(null),i=(0,a.useContext)(fi),r=(0,a.useRef)(),[o,s]=(0,a.useState)(!1),l=(0,a.useRef)({left:0,top:0}),c=(0,a.useCallback)((e=>{l.current=e}),[]),d=(0,a.useCallback)((e=>{let a;if("left"===t)a=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("wrong dir");a=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}a=1.5*(a-1)+1,clearTimeout(r.current),r.current=setTimeout((()=>{i.current.scroll({left:l.current.left+a,top:l.current.top})}))}),[t,i]);(0,a.useEffect)((()=>()=>{clearTimeout(r.current)}),[]);const u=(0,a.useCallback)((()=>{s((e=>!e))}),[]);return eo(i,"scrolling",c),eo(i,"colReordering:dragStart",u),eo(i,"colReordering:dragStop",u),o?(0,a.createElement)("div",{ref:n,className:Di("MuiDataGrid-scrollArea","MuiDataGrid-scrollArea-"+t),onDragOver:d}):null})),no=Me((e=>e.columnReorder),(e=>e.dragCol)),ao=(e,t)=>e.x<=t.x?"right":"left";function io(e,t){return e.debug("Calculating visibleColumns"),t.filter((e=>null!=e.field&&!e.hide))}function ro(e,t){e.debug("Calculating columnsMeta");let n=0;const a=[];return n=t.reduce(((e,t)=>(a.push(e),e+t.width)),0),{totalWidth:n,positions:a}}function oo(e,t){const n=Wa("useColumns"),[i,r,o]=li(t),s=(0,a.useCallback)((function(e){let a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.debug("Updating columns state."),r((t=>Object.assign(Object.assign({},t),{columns:e}))),o(),t.current&&a&&t.current.publishEvent("columnsUpdated",e.all)}),[n,r,o,t]),l=(0,a.useCallback)((()=>{n.info("Columns have change, new length "+e.length);const t=((e,t,n,a,i)=>{if(0===e.length)return{visible:[],all:[],lookup:{},hasVisibleColumns:!1,hasColumns:!1,meta:{positions:[],totalWidth:0}};const r=function(e,t,n,a,i){i.debug("Hydrating Columns with default definitions");let r=a?n-Fr.width:n,o=e.map((e=>Object.assign(Object.assign({},((e,t)=>t?e[t]:e.__default__)(t,e.type)),e)));const s=e.filter((e=>!!e.flex)).length;let l=0;if(s&&r&&o.forEach((e=>{e.flex?l+=e.flex:r-=e.width})),r>0&&s){const e=r/l;o=o.map((t=>Object.assign(Object.assign({},t),{width:t.flex?Math.floor(e*t.flex):t.width})))}return a?[Fr,...o]:o}(e,t,n,a,i),o=io(i,r);return{all:r,visible:o,meta:ro(i,o),lookup:function(e,t){return e.debug("Building columns lookup"),t.reduce(((e,t)=>(e[t.field]=t,e)),{})}(i,r),hasColumns:r.length>0,hasVisibleColumns:o.length>0}})(e,i.options.columnTypes,i.viewportSizes.width,!!i.options.checkboxSelection,n);s(t)}),[e,i.options.checkboxSelection,i.viewportSizes.width,i.options.columnTypes,n,s]);(0,a.useEffect)((()=>{l()}),[l]);const c=(0,a.useCallback)((e=>t.current.getState().columns.lookup[e]),[t]),d=(0,a.useCallback)((()=>t.current.getState().columns.all),[t]),u=(0,a.useCallback)((()=>t.current.getState().columns.meta),[t]),h=(0,a.useCallback)((function(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?t.current.getState().columns.visible.findIndex((t=>t.field===e)):t.current.getState().columns.all.findIndex((t=>t.field===e))}),[t]),p=(0,a.useCallback)((e=>{const n=h(e);return t.current.getState().columns.meta.positions[n]}),[t,h]),f=(0,a.useCallback)((()=>t.current.getState().columns.visible),[t]),m=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=Object.assign({},t);a?i.all=n:n.forEach((e=>{const t=i.all.findIndex((t=>t.field===e.field)),n=Object.assign(Object.assign({},i.all[t]),e);i.all[t]=n,i.all=[...i.all],i.lookup[e.field]=n,i.lookup=Object.assign({},i.lookup)}));const r=io(e,i.all),o=ro(e,r);return Object.assign(Object.assign({},i),{visible:r,meta:o,hasColumns:i.all.length>0,hasVisibleColumns:r.length>0})}(n,i.columns,e,t);s(a,!1)}),[s,n,i.columns]),v=(0,a.useCallback)((e=>m([e])),[m]),g=(0,a.useCallback)(((e,t)=>{const n=c(e),a=Object.assign(Object.assign({},n),{hide:null==t?!n.hide:t});m([a]),o()}),[o,c,m]);return za(t,{getColumnFromField:c,getAllColumns:d,getColumnIndex:h,getColumnPosition:p,getVisibleColumns:f,getColumnsMeta:u,updateColumn:v,updateColumns:m,toggleColumn:g},"ColApi"),i.columns}const so=e=>e.pagination;function lo(e,t){if(null==e.id)throw new Error(["Material-UI: The data grid component requires all rows to have a unique id property.",t||"A row was provided without id in the rows prop:",JSON.stringify(e)].join("\n"));return!0}const co=(e,t)=>{const n=Wa("useRows"),[i,r,o]=li(t),s=(0,a.useRef)(),l=(0,a.useCallback)((()=>{null==s.current&&(s.current=setTimeout((()=>(n.debug("Updating component"),s.current=null,o())),100))}),[n,o]),c=(0,a.useRef)(i.rows);(0,a.useEffect)((()=>()=>clearTimeout(s.current)),[]),(0,a.useEffect)((()=>{r((t=>(c.current=function(e){let{rows:t,totalRowCount:n}=e;const a={allRows:[],idRowsLookup:{},totalRowCount:n&&n>t.length?n:t.length};return t.forEach((e=>{lo(e),a.allRows.push(e.id),a.idRowsLookup[e.id]=e})),a}({rows:e,totalRowCount:t.options.rowCount}),Object.assign(Object.assign({},t),{rows:c.current}))))}),[e,r]);const d=(0,a.useCallback)((e=>t.current.state.rows.allRows.indexOf(e)),[t]),u=(0,a.useCallback)((e=>t.current.state.rows.allRows[e]),[t]),h=(0,a.useCallback)((e=>t.current.state.rows.idRowsLookup[e]),[t]),p=(0,a.useCallback)((e=>{n.debug("updating all rows, new length "+e.length);const a=e.reduce(((e,t)=>(e[t.id]=t,e)),{}),o=e.map((e=>e.id)),s=i.options&&i.options.rowCount&&i.options.rowCount>o.length?i.options.rowCount:o.length;c.current={idRowsLookup:a,allRows:o,totalRowCount:s},t.current.state.isScrolling||(r((e=>Object.assign(Object.assign({},e),{rows:c.current}))),l())}),[n,i.options,t,r,l]),f=(0,a.useCallback)((e=>{const n=e.reduce(((e,t)=>(lo(t,"A row was provided without id when calling updateRows():"),e[t.id]=null!=e[t.id]?Object.assign(Object.assign({},e[t.id]),t):t,e)),{}),a=[];if(Object.values(n).forEach((e=>{const t=h(e.id);t?Object.assign(c.current.idRowsLookup[e.id],Object.assign(Object.assign({},t),e)):a.push(e)})),t.current.state.isScrolling||(r((e=>Object.assign(Object.assign({},e),{rows:c.current}))),l()),a.length>0){const e=[...Object.values(c.current.idRowsLookup),...a];p(e)}t.current.publishEvent("rowsUpdated")}),[t,l,h,r,p]),m=(0,a.useCallback)((()=>Object.values(t.current.state.rows.idRowsLookup)),[t]),v=(0,a.useCallback)((()=>t.current.state.rows.totalRowCount),[t]),g=(0,a.useCallback)((()=>t.current.state.rows.allRows),[t]);za(t,{getRowIndexFromId:d,getRowIdFromRowIndex:u,getRowFromId:h,getRowModels:m,getRowsCount:v,getAllRowIds:g,setRows:p,updateRows:f},"RowApi")},uo=(e,t,n,i,r)=>{const o=Wa("useNativeEventListener"),[s,l]=(0,a.useState)(!1),c=(0,a.useRef)(i),d=(0,a.useCallback)((e=>c.current&&c.current(e)),[]);(0,a.useEffect)((()=>{c.current=i}),[i]),(0,a.useEffect)((()=>{let a;if(a=Pa(t)?t():t&&t.current?t.current:null,a&&d&&n&&!s){o.debug("Binding native ".concat(n," event")),a.addEventListener(n,d,r);const t=a;l(!0);const i=()=>{o.debug("Clearing native ".concat(n," event")),t.removeEventListener(n,d,r)};e.current.onUnmount(i)}}),[t,d,n,s,o,r,e])};const ho=(e,t,n,i)=>{var r;const o=Wa("useVirtualRows"),[s,c,d]=li(i),u=ci(i,hi),h=ci(i,so),p=ci(i,Ai),[f]=function(e,t){const n=Wa("useScrollFn"),i=(0,a.useRef)(),r=(0,a.useMemo)((()=>(0,l.A)((()=>{null!=e.current&&(e.current.style.pointerEvents="unset")}),300)),[e]),o=(0,a.useCallback)((a=>{var o;a.left===(null===(o=i.current)||void 0===o?void 0:o.left)&&a.top===i.current.top||e&&e.current&&(n.debug("Moving ".concat(e.current.className," to: ").concat(a.left,"-").concat(a.top)),"none"!==e.current.style.pointerEvents&&(e.current.style.pointerEvents="none"),e.current.style.transform="translate3d(-".concat(a.left,"px, -").concat(a.top,"px, 0)"),t.current.style.transform="translate3d(-".concat(a.left,"px, 0, 0)"),r(),i.current=a)}),[e,n,t,r]);return(0,a.useEffect)((()=>()=>{r.clear()}),[e,r]),[o]}(n,e),[m,v]=((e,t)=>{const n=Wa("useVirtualColumns"),i=(0,a.useRef)(null),r=(0,a.useRef)(null),o=(0,a.useRef)(0),s=(0,a.useCallback)((e=>{const n=t.current.getColumnsMeta().positions;if(!t.current.getVisibleColumns().length)return-1;let a=[...n].reverse().findIndex((t=>e>=t));return a=n.length-1-a,a}),[t]),l=(0,a.useCallback)((e=>{const n=t.current.getVisibleColumns();return n.length?n[s(e)]:null}),[t,s]),c=(0,a.useCallback)((e=>{if(!r.current)return!1;const n=r.current.windowSizes.width,a=l(o.current),i=l(o.current+n),s=t.current.getVisibleColumns(),c=s.findIndex((e=>e.field===(null==a?void 0:a.field)))+1,d=s.findIndex((e=>e.field===(null==i?void 0:i.field)))-1;return e>=c&&e<=d}),[r,l,t]),d=(0,a.useCallback)(((a,c)=>{var d,u,h,p,f;if(!a)return!1;const m=t.current.getVisibleColumns(),v=t.current.getColumnsMeta(),g=(null===(d=r.current)||void 0===d?void 0:d.windowSizes.width)!==a.windowSizes.width;r.current=a;const y=a.windowSizes.width;o.current=c,n.debug("Columns from ".concat(null===(u=l(c))||void 0===u?void 0:u.field," to ").concat(null===(h=l(c+y))||void 0===h?void 0:h.field));const b=s(c),_=s(c+y),x=(null===(p=null==i?void 0:i.current)||void 0===p?void 0:p.firstColIdx)||0,w=(null===(f=null==i?void 0:i.current)||void 0===f?void 0:f.lastColIdx)||0,C=e.columnBuffer,S=C>1?C-1:C,A=Math.abs(b-S-x),k=Math.abs(_+S-w);n.debug("Column buffer: ".concat(C,", tolerance: ").concat(S)),n.debug("Previous values => first: ".concat(x,", last: ").concat(w)),n.debug("Current displayed values => first: ".concat(b,", last: ").concat(_)),n.debug("Difference with first: ".concat(A," and last: ").concat(k," "));const j=k>S||A>S;if(g||!i||!i.current||j){const a={firstColIdx:b-C>=0?b-C:0,lastColIdx:_+C>=m.length-1?m.length-1:_+C,leftEmptyWidth:0,rightEmptyWidth:0};return a.leftEmptyWidth=v.positions[a.firstColIdx],t.current.state.scrollBar.hasScrollX?a.rightEmptyWidth=v.totalWidth-v.positions[a.lastColIdx]-m[a.lastColIdx].width:e.disableExtendRowFullWidth||(a.rightEmptyWidth=t.current.state.viewportSizes.width-v.totalWidth),i.current=a,n.debug("New columns state to render",a),!0}return n.debug("No rendering needed on columns"),!1}),[t,n,l,s,e.columnBuffer,e.disableExtendRowFullWidth]);za(t,{isColumnVisibleInWindow:c},"ColumnVirtualizationApi");const u=(0,a.useCallback)((()=>{n.debug("Clearing previous renderedColRef"),i.current=null}),[n,i]);return eo(t,"columnsUpdated",u),eo(t,"resize",u),[i,d]})(u,i),g=(0,a.useCallback)((e=>{let t=!1;return c((n=>{const a=Object.assign(Object.assign({},n.rendering),e);return Fa(n.rendering,a)?n:(t=!0,Object.assign(Object.assign({},n),{rendering:a}))})),t}),[c]),y=(0,a.useCallback)((e=>{if(null==i.current.state.containerSizes)return null;let t=0;u.pagination&&null!=h.pageSize&&"client"===h.paginationMode&&(t=h.pageSize*(h.page-1>0?h.page-1:0));const n=e*i.current.state.containerSizes.viewportPageSize+t;let a=n+i.current.state.containerSizes.renderingZonePageSize;const r=i.current.state.containerSizes.virtualRowsCount+t;return a>r&&(a=r),{page:e,firstRowIdx:n,lastRowIdx:a}}),[i,u.pagination,h.pageSize,h.paginationMode,h.page]),b=(0,a.useCallback)((()=>null==i.current.state.containerSizes?null:Object.assign(Object.assign(Object.assign({},m.current),y(i.current.state.rendering.virtualPage)),{paginationCurrentPage:h.page,pageSize:h.pageSize})),[m,y,i,h.page,h.pageSize]),_=(0,a.useCallback)((()=>{const e=b();g({renderContext:e,renderedSizes:i.current.state.containerSizes})&&(o.debug("reRender: trigger rendering"),d())}),[i,b,o,d,g]),x=(0,a.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=i.current.getState(),a=n.containerSizes;if(!t||!t.current||!a)return;const r=n.viewportSizes,s=n.scrollBar,{scrollLeft:l,scrollTop:c}=t.current;o.debug("Handling scroll Left: ".concat(l," Top: ").concat(c));let d=v(a,l);const u=l;let p=c/r.height;const m=c%r.height;o.debug(" viewportHeight:".concat(r.height,", rzScrollTop: ").concat(m,", scrollTop: ").concat(c,", current page = ").concat(p));const y={left:s.hasScrollX?u:0,top:s.hasScrollY?m:0},b=n.rendering.virtualPage;p=Math.floor(p),b!==p?(g({virtualPage:p}),o.debug("Changing page from ".concat(b," to ").concat(p)),d=!0):(f(y),i.current.publishEvent("scrolling",y)),g({renderingZoneScroll:y});const x=n.rendering.renderContext&&n.rendering.renderContext.paginationCurrentPage!==h.page;(e||d||x)&&_()}),[i,o,h.page,_,f,g,v,t]),w=(0,a.useCallback)((e=>{let n;o.debug("Scrolling to cell at row ".concat(e.rowIndex,", col: ").concat(e.colIndex," "));const a=i.current.isColumnVisibleInWindow(e.colIndex);if(o.debug("Column ".concat(e.colIndex," is ").concat(a?"already":"not"," visible.")),!a){const t=i.current.getColumnsMeta();if(e.colIndex+1===t.positions.length){const a=i.current.getVisibleColumns()[e.colIndex].width;n=t.positions[e.colIndex]+a-s.containerSizes.windowSizes.width}else n=t.positions[e.colIndex+1]-s.containerSizes.windowSizes.width+s.scrollBar.scrollBarSize.y,o.debug("Scrolling to the right, scrollLeft: "+n);s.rendering.renderingZoneScroll.left>n&&(n=t.positions[e.colIndex],o.debug("Scrolling to the left, scrollLeft: "+n))}let r;const l=(e.rowIndex-(s.pagination.page-1)*s.pagination.pageSize)/s.containerSizes.viewportPageSize*s.viewportSizes.height,c=s.viewportSizes.height,d=t.current.scrollTop>l,h=t.current.scrollTop+c{f({left:0,top:0}),g({virtualPage:1}),t&&t.current&&t.current.scrollTo(0,0),g({renderingZoneScroll:{left:0,top:0}})}),[f,g,t]),S=(0,a.useRef)(null),A=(0,a.useCallback)((()=>{t.current.scrollLeft<0||t.current.scrollTop<0||(S.current||(i.current.state.isScrolling=!0),clearTimeout(S.current),S.current=setTimeout((()=>{S.current=null,i.current.state.isScrolling=!1,d()}),300),i.current.updateViewport&&i.current.updateViewport())}),[t,i,d]),k=(0,a.useCallback)((n=>{t.current&&null!=n.left&&e.current&&(e.current.scrollLeft=n.left,t.current.scrollLeft=n.left,o.debug("Scrolling left: "+n.left)),t.current&&null!=n.top&&(t.current.scrollTop=n.top,o.debug("Scrolling top: "+n.top)),o.debug("Scrolling, updating container, and viewport")}),[t,e,o]),j=(0,a.useCallback)((()=>s.containerSizes),[s.containerSizes]),I=(0,a.useCallback)((()=>s.rendering.renderContext||void 0),[s.rendering.renderContext]);br((()=>{n&&n.current&&(o.debug("applying scrollTop ",s.rendering.renderingZoneScroll.top),f(s.rendering.renderingZoneScroll))})),za(i,{scroll:k,scrollToIndexes:w,getContainerPropsState:j,getRenderContextState:I,updateViewport:x},"VirtualizationApi"),(0,a.useEffect)((()=>{var e;(null===(e=s.rendering.renderContext)||void 0===e?void 0:e.paginationCurrentPage)!==s.pagination.page&&i.current.updateViewport&&(o.debug("State pagination.page changed to ".concat(s.pagination.page,". ")),i.current.updateViewport(!0),C())}),[i,s.pagination.page,null===(r=s.rendering.renderContext)||void 0===r?void 0:r.paginationCurrentPage,o,C]),(0,a.useEffect)((()=>{s.containerSizes!==s.rendering.renderedSizes&&i.current.updateViewport&&(o.debug("gridState.containerSizes updated, updating viewport. "),i.current.updateViewport(!0))}),[i,s.containerSizes,s.rendering.renderedSizes,o]),(0,a.useEffect)((()=>{i.current.updateViewport&&(o.debug("totalRowCount has changed to ".concat(p,", updating viewport.")),i.current.updateViewport(!0))}),[o,p,s.viewportSizes,s.scrollBar,s.containerSizes,i]),(0,a.useEffect)((()=>()=>{clearTimeout(S.current)}),[]);const F=(0,a.useCallback)((e=>(o.debug("Using keyboard to navigate cells, converting scroll events "),e.target.scrollLeft=0,e.target.scrollTop=0,e.preventDefault(),e.stopPropagation(),!1)),[o]);return uo(i,t,"scroll",A,{passive:!0}),uo(i,(()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.parentElement}),"scroll",F),eo(i,"resize",x),s.rendering.renderContext};class po{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(e,t){Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(t)}removeListener(e,t){if(Array.isArray(this.events[e])){const n=this.events[e].indexOf(t);n>-1&&this.events[e].splice(n,1)}}removeAllListeners(e){e?Array.isArray(this.events[e])&&(this.events[e]=[]):this.events={}}emit(e){if(Array.isArray(this.events[e])){const i=this.events[e].slice(),r=i.length;for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let{separatorProps:t,columns:n}=e;const[i,r]=(0,a.useState)(""),o=(0,a.useContext)(fi),s=ci(o,hi),l=ci(o,Ei),c=ci(o,no),d=(0,a.useCallback)((e=>{r(e.field)}),[]),u=(0,a.useCallback)((()=>{r("")}),[]);eo(o,"colResizing:start",d),eo(o,"colResizing:stop",u);const h=n.map(((e,n)=>(0,a.createElement)(Dr,Object.assign({key:e.field},l[e.field],{options:s,isDragging:e.field===c,column:e,colIndex:n,isResizing:i===e.field,separatorProps:t}))));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ri,null),(0,a.createElement)(gr,null),h)};_o.displayName="ColumnHeaderItemCollection";const xo=(0,a.forwardRef)(((e,t)=>{var n;const{columns:i,hasScrollX:r,renderCtx:o,separatorProps:s}=e,l="MuiDataGrid-colCellWrapper "+(r?"scroll":""),c=(0,a.useContext)(fi),{disableColumnReorder:d}=(0,a.useContext)(Ki),u=ci(c,Yr);if(!c)throw new Error("Material-UI: ApiRef was not found in context.");const h=(0,a.useRef)({first:null==o?void 0:o.firstColIdx,last:null==o?void 0:o.lastColIdx}),[p,f]=(0,a.useState)(i);(0,a.useEffect)((()=>{o&&null!=o.firstColIdx&&null!=o.lastColIdx&&(f(i.slice(o.firstColIdx,o.lastColIdx+1)),h.current.first===o.firstColIdx&&h.current.last===o.lastColIdx||(h.current={first:o.firstColIdx,last:o.lastColIdx}))}),[o,i]);const m=d?void 0:e=>c.current.onColHeaderDragOver(e,t);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(to,{scrollDirection:"left"}),(0,a.createElement)("div",{ref:t,className:l,"aria-rowindex":1,role:"row",style:{minWidth:null===(n=null==u?void 0:u.totalSizes)||void 0===n?void 0:n.width},onDragOver:m},(0,a.createElement)(Cr,{width:null==o?void 0:o.leftEmptyWidth}),(0,a.createElement)(_o,{columns:p,separatorProps:s}),(0,a.createElement)(Sr,{width:null==o?void 0:o.rightEmptyWidth})),(0,a.createElement)(to,{scrollDirection:"right"}))}));xo.displayName="GridColumnsHeader";const wo=e=>{let{rowCount:t}=e;return 0===t?null:(0,a.createElement)("div",{className:"MuiDataGrid-rowCount"},"Total Rows: ",t.toLocaleString())};function Co(e){const{selectedRowCount:t}=e;return 0===t?null:(0,a.createElement)("div",{className:"MuiDataGrid-selectedRowCount"},"".concat(t.toLocaleString()," ").concat(t>1?"rows":"row"," selected"))}const So=(0,a.forwardRef)((function(e,t){const{paginationComponent:n}=e,i=(0,a.useContext)(fi),r=ci(i,Ai),o=ci(i,hi),s=ci(i,kr);if(o.hideFooter)return null;const l=!!n,c=!o.hideFooterRowCount&&!l&&(0,a.createElement)(wo,{rowCount:r}),d=!o.hideFooterSelectedRowCount&&(0,a.createElement)(Co,{selectedRowCount:s}),u=!s&&!o.hideFooterSelectedRowCount;return(0,a.createElement)(Xi,{ref:t,className:Di({"MuiDataGrid-footer-paginationAvailable":l,"MuiDataGrid-footer-justifyContentEnd":u})},d,c,n)})),Ao=(0,De.A)((e=>({caption:{display:"none",[e.breakpoints.up("md")]:{display:"block"},"& ~ &":{display:"block"}},input:{display:"none",[e.breakpoints.up("md")]:{display:"block"}}})));function ko(){const e=Ao(),t=(0,a.useContext)(fi),n=ci(t,so),i=ci(t,hi),r=(0,a.useCallback)((e=>{const n=Number(e.target.value);t.current.setPageSize(n)}),[t]),o=(0,a.useCallback)(((e,n)=>{t.current.setPage(n+1)}),[t]);return(0,a.createElement)(Tt,{classes:e,component:"div",count:n.rowCount,page:n.page-1,onChangePage:o,rowsPerPageOptions:i.rowsPerPageOptions&&i.rowsPerPageOptions.indexOf(n.pageSize)>-1?i.rowsPerPageOptions:[],rowsPerPage:n.pageSize,onChangeRowsPerPage:r})}var jo;!function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid"}(jo||(jo={}));const Io=e=>{let{licenseStatus:t}=e;return t===jo.Valid.toString()?null:(0,a.createElement)("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24}}," ",function(e){switch(e){case jo.Expired.toString():return"Material-UI X License Expired";case jo.Invalid.toString():return"Material-UI X Invalid License";case jo.NotFound.toString():return"Material-UI X Unlicensed product";default:throw new Error("Material-UI: Unhandled license status.")}}(t)," ")};class Fo extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}logError(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}render(){var e;return this.props.hasError||(null===(e=this.state)||void 0===e?void 0:e.hasError)?this.props.render(this.props.componentProps||this.state):this.props.children}}const To=(0,a.forwardRef)((function(e,t){const{className:n,children:i}=e,r=Mi(e,["className","children"]);return i?(0,a.createElement)("div",Object.assign({ref:t,className:Di("MuiDataGrid-toolbar",n)},r),i):null})),Po=()=>{const e=(0,a.useContext)(fi),t=Tr(),n=(0,a.createElement)(t.ColumnSelector,{}),i=(0,a.useCallback)((()=>{e.current.showPreferences(vr.columns)}),[e]);return(0,a.createElement)(Ue.A,{onClick:i,color:"primary","aria-label":"Show Column Selector",startIcon:n},"Columns")},Eo=()=>{const e=(0,a.useContext)(fi),t=ci(e,hi),n=ci(e,zr),i=ci(e,Wr),r=ci(e,tr),o=(0,a.useMemo)((()=>0===n?"Show Filters":(0,a.createElement)("div",null,n," active filter(s)",(0,a.createElement)("ul",null,i.map((e=>(0,a.createElement)("li",{key:e.id},r[e.columnField].headerName||e.columnField," ",e.operatorValue," ",e.value)))))),[n,i,r]),s=Tr(),l=(0,a.createElement)(s.ColumnFiltering,{}),c=(0,a.useCallback)((()=>{e.current.showFilterPanel()}),[e]);return t.disableColumnFilter?null:(0,a.createElement)(dt,{title:o,enterDelay:1e3},(0,a.createElement)(Ue.A,{onClick:c,color:"primary","aria-label":"Show Filters",startIcon:(0,a.createElement)(Je,{badgeContent:n,color:"primary"},l)},"Filters"))},Oo=(0,a.forwardRef)((function(e,t){const n=(0,a.useRef)(null),i=(0,s.A)(n,t),r=(0,a.useRef)(null),o=(0,a.useRef)(null),l=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(null),h=(0,a.useRef)(null),p=(0,a.useRef)(null),f=function(e){const t=(0,a.useRef)(new po);return(0,a.useMemo)((()=>e||t),[e,t])}(e.apiRef),[m,v,g]=li(f),y=function(e,t){const n=(0,a.useMemo)((()=>({pageSize:t.pageSize,logger:t.logger,sortingMode:t.sortingMode,autoHeight:t.autoHeight,autoPageSize:t.autoPageSize,checkboxSelection:t.checkboxSelection,columnBuffer:t.columnBuffer,columnTypes:t.columnTypes,disableSelectionOnClick:t.disableSelectionOnClick,disableMultipleColumnsSorting:t.disableMultipleColumnsSorting,disableMultipleSelection:t.disableMultipleSelection,disableMultipleColumnsFiltering:t.disableMultipleColumnsFiltering,disableColumnResize:t.disableColumnResize,disableColumnReorder:t.disableColumnReorder,disableColumnFilter:t.disableColumnFilter,disableColumnMenu:t.disableColumnMenu,disableColumnSelector:t.disableColumnSelector,disableExtendRowFullWidth:t.disableExtendRowFullWidth,headerHeight:t.headerHeight,hideFooter:t.hideFooter,hideFooterPagination:t.hideFooterPagination,hideFooterRowCount:t.hideFooterRowCount,hideFooterSelectedRowCount:t.hideFooterSelectedRowCount,hideToolbar:t.hideToolbar,icons:t.icons,logLevel:t.logLevel,onCellClick:t.onCellClick,onCellHover:t.onCellHover,onColumnHeaderClick:t.onColumnHeaderClick,onError:t.onError,onPageChange:t.onPageChange,onPageSizeChange:t.onPageSizeChange,onRowClick:t.onRowClick,onRowHover:t.onRowHover,onRowSelected:t.onRowSelected,onSelectionChange:t.onSelectionChange,onSortModelChange:t.onSortModelChange,onStateChange:t.onStateChange,page:t.page,pagination:t.pagination,paginationMode:t.paginationMode,rowCount:t.rowCount,rowHeight:t.rowHeight,rowsPerPageOptions:t.rowsPerPageOptions,scrollbarSize:t.scrollbarSize,showCellRightBorder:t.showCellRightBorder,showColumnRightBorder:t.showColumnRightBorder,sortingOrder:t.sortingOrder,sortModel:t.sortModel})),[t.pageSize,t.logger,t.sortingMode,t.autoHeight,t.autoPageSize,t.checkboxSelection,t.columnBuffer,t.columnTypes,t.disableSelectionOnClick,t.disableMultipleColumnsSorting,t.disableMultipleSelection,t.disableMultipleColumnsFiltering,t.disableColumnResize,t.disableColumnReorder,t.disableColumnFilter,t.disableColumnMenu,t.disableColumnSelector,t.disableExtendRowFullWidth,t.headerHeight,t.hideFooter,t.hideFooterPagination,t.hideFooterRowCount,t.hideFooterSelectedRowCount,t.hideToolbar,t.icons,t.logLevel,t.onCellClick,t.onCellHover,t.onColumnHeaderClick,t.onError,t.onPageChange,t.onPageSizeChange,t.onRowClick,t.onRowHover,t.onRowSelected,t.onSelectionChange,t.onSortModelChange,t.onStateChange,t.page,t.pagination,t.paginationMode,t.rowCount,t.rowHeight,t.rowsPerPageOptions,t.scrollbarSize,t.showCellRightBorder,t.showColumnRightBorder,t.sortingOrder,t.sortModel]),{gridState:i,dispatch:r}=ui(e,"options",pi,ni),o=(0,a.useCallback)((e=>{r({type:"options::UPDATE",payload:e})}),[r]);return(0,a.useEffect)((()=>{o(n)}),[n,o]),i.options}(f,e);!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";Ba=Oa?La("debug"):e?Pa(e)?e:t?n=>Da(n,t.toString(),e):null:t?La(t.toString()):null}(y.logger,y.logLevel);const b=Wa("GridComponent");!function(e,t,n){const[i,r]=(0,a.useState)(!1),o=Wa("useApi"),s=(0,a.useCallback)((function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i{o.debug("Binding ".concat(e," event")),n.current.on(e,t);const a=n.current;return()=>{o.debug("Clearing ".concat(e," event")),a.removeListener(e,t)}}),[n,o]),c=(0,a.useCallback)((e=>{s("componentError",e)}),[s]);(0,a.useEffect)((()=>{o.debug("Initializing grid api."),n.current.isInitialised=!0,n.current.rootElementRef=e,n.current.columnHeadersElementRef=t,r(!0);const a=n.current;return()=>{o.debug("Unmounting Grid component"),a.emit("unmount"),o.debug("Clearing all events listeners"),a.removeAllListeners()}}),[e,o,n,t]),za(n,{subscribeEvent:l,publishEvent:s,showError:c},"CoreApi")}(n,d,f);const _=function(e,t){const[n,i]=(0,a.useState)(null),r=e=>{i(e)};return(0,a.useEffect)((()=>e.current.subscribeEvent("componentError",r)),[e]),(0,a.useEffect)((()=>{e.current.showError(t.error)}),[e,t.error]),n}(f,e);!function(e,t){var n;const i=(0,a.useRef)(!1),r=Wa("useEvents"),o=ci(t,hi),s=(0,a.useCallback)((e=>function(){for(var n=arguments.length,a=new Array(n),i=0;i{if(null==e.target)throw new Error("Event target null - Target has been removed or component might already be unmounted.");const n=e.target,a={};if(gi(n)){const e=vi(n,"MuiDataGrid-cell"),i=vi(n,"MuiDataGrid-row");if(null==i)return null;const r=yi(i),o=t.current.getRowFromId(r),s=t.current.getRowIndexFromId(r),l=e.getAttribute("data-field"),c=e.getAttribute("data-value"),d=t.current.getColumnFromField(l);if(!d||!d.disableClickEventBubbling){const n={data:o,rowIndex:s,colDef:d,rowModel:o,api:t.current};a.cell=Vi(Object.assign(Object.assign({},n),{element:e,value:c})),a.row=function(e){let{element:t,rowIndex:n,rowModel:a,api:i}=e;return{element:t,columns:i.getAllColumns(),getValue:e=>a[e],row:a,rowIndex:n,api:i}}(Object.assign(Object.assign({},n),{element:i}))}}else if(function(e){return e&&null!==vi(e,"MuiDataGrid-colCellTitleContainer")}(n)&&!i.current){const e=bi(vi(n,"MuiDataGrid-colCell")),i={field:e,colDef:t.current.getColumnFromField(e),colIndex:t.current.getColumnIndex(e),api:t.current};a.header=i}return a}),[t]),c=(0,a.useCallback)((e=>{const n=l(e);n&&(n.cell&&t.current.publishEvent("cellClick",n.cell),n.row&&t.current.publishEvent("rowClick",n.row),n.header&&t.current.publishEvent("columnClick",n.header))}),[t,l]),d=(0,a.useCallback)((e=>{const n=l(e);n&&(n.cell&&t.current.publishEvent("cellHover",n.cell),n.row&&t.current.publishEvent("rowHover",n.row),n.header&&t.current.publishEvent("columnHeaderHover",n.header))}),[t,l]),u=(0,a.useCallback)((e=>{t.current.publishEvent("focusout",e),null===e.relatedTarget&&t.current.publishEvent("gridFocusOut",e)}),[t]),h=(0,a.useCallback)((e=>t.current.subscribeEvent("unmount",e)),[t]),p=(0,a.useCallback)((e=>t.current.subscribeEvent("resize",e)),[t]),f=(0,a.useCallback)((()=>{i.current=!0}),[]),m=(0,a.useCallback)((()=>{i.current=!1}),[]),v=(0,a.useCallback)((()=>t.current.publishEvent("resize")),[t]);za(t,{resize:v,onUnmount:h,onResize:p},"EventsApi"),eo(t,"colResizing:start",f),eo(t,"colResizing:stop",m),eo(t,"columnClick",o.onColumnHeaderClick),eo(t,"cellClick",o.onCellClick),eo(t,"rowClick",o.onRowClick),eo(t,"cellHover",o.onCellHover),eo(t,"rowHover",o.onRowHover),eo(t,"componentError",o.onError),eo(t,"stateChange",o.onStateChange),(0,a.useEffect)((()=>{var n;if(e&&e.current&&(null===(n=t.current)||void 0===n?void 0:n.isInitialised)){r.debug("Binding events listeners");const n=s("keydown"),a=s("keyup"),i=e.current;i.addEventListener("click",c,{capture:!0}),i.addEventListener("mouseover",d,{capture:!0}),i.addEventListener("focusout",u),i.addEventListener("keydown",n),i.addEventListener("keyup",a),t.current.isInitialised=!0;const o=t.current;return()=>{r.debug("Clearing all events listeners"),o.publishEvent("unmount"),i.removeEventListener("click",c,{capture:!0}),i.removeEventListener("mouseover",d,{capture:!0}),i.removeEventListener("focusout",u),i.removeEventListener("keydown",n),i.removeEventListener("keyup",a),o.removeAllListeners()}}}),[e,null===(n=t.current)||void 0===n?void 0:n.isInitialised,s,r,c,d,u,t])}(n,f);const x=function(e){const t=Wa("useResizeContainer"),n=(0,a.useRef)(),i=(0,a.useRef)(),r=(0,a.useCallback)((a=>{clearTimeout(n.current),clearTimeout(i.current),0===a.height&&(n.current=setTimeout((()=>{t.warn(["The parent of the grid has an empty height.","You need to make sure the container has an intrinsic height.","The grid displays with a height of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/rendering/#layout"].join("\n"))}))),0===a.width&&(i.current=setTimeout((()=>{t.warn(["The parent of the grid has an empty width.","You need to make sure the container has an intrinsic width.","The grid displays with a width of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/rendering/#layout"].join("\n"))}))),t.info("resized...",a),e.current.resize&&e.current.resize()}),[t,e]);return(0,a.useEffect)((()=>()=>{clearTimeout(n.current),clearTimeout(i.current)}),[]),r}(f);oo(e.columns,f),co(e.rows,f),((e,t)=>{const n=Wa("useKeyboard"),i=ci(t,hi),[,r,o]=li(t),s=ci(t,so),l=ci(t,Ai),c=ci(t,rr),d=ci(t,Yr),u=ci(t,Ar),h=(0,a.useCallback)((e=>{r((t=>{n.debug("Toggling keyboard multiple key pressed to "+e);const a=Object.assign(Object.assign({},t.keyboard),{isMultipleKeyPressed:e});return Object.assign(Object.assign({},t),{keyboard:a})})),o(),t.current.publishEvent("multipleKeyPressChange",e)}),[t,o,n,r]),p=(0,a.useCallback)(((e,a)=>{const u=vi(document.activeElement,"MuiDataGrid-cell");u.tabIndex=-1;const h=Number(u.getAttribute("aria-colindex")),p=Number(u.getAttribute("data-rowindex")),f=i.pagination?s.pageSize*s.page:l;let m;if(zi(e))m=((e,t)=>{if(!zi(e))throw new Error("Material-UI: The first argument (code) should be an arrow key code.");return"ArrowLeft"===e?Object.assign(Object.assign({},t),{colIndex:t.colIndex-1}):"ArrowRight"===e?Object.assign(Object.assign({},t),{colIndex:t.colIndex+1}):"ArrowUp"===e?Object.assign(Object.assign({},t),{rowIndex:t.rowIndex-1}):Object.assign(Object.assign({},t),{rowIndex:t.rowIndex+1})})(e,{colIndex:h,rowIndex:p});else if(Ui(e)){const t="Home"===e?0:c-1;if(a){let e=0;e=0===t?i.pagination?f-s.pageSize:0:f-1,m={colIndex:t,rowIndex:e}}else m={colIndex:t,rowIndex:p}}else{if(!Hi(e)&&!Wi(e))throw new Error("Material-UI. Key not mapped to navigation behavior.");{const t=p+(e.indexOf("Down")>-1||Wi(e)?d.viewportPageSize:-1*d.viewportPageSize);m={colIndex:h,rowIndex:t}}}return m.rowIndex=m.rowIndex<=0?0:m.rowIndex,m.rowIndex=m.rowIndex>=f&&f>0?f-1:m.rowIndex,m.colIndex=m.colIndex<=0?0:m.colIndex,m.colIndex=m.colIndex>=c?c-1:m.colIndex,t.current.scrollToIndexes(m),r((e=>(n.debug("Setting keyboard state, cell focus to "+JSON.stringify(m)),Object.assign(Object.assign({},e),{keyboard:Object.assign(Object.assign({},e.keyboard),{cell:m})})))),o(),m}),[i.pagination,s.pageSize,s.page,l,c,t,r,o,d,n]),f=(0,a.useCallback)((()=>{const e=yi(vi(document.activeElement,"MuiDataGrid-row"));t.current.selectRow(e)}),[t]),m=(0,a.useCallback)((e=>{const a=vi(document.activeElement,"MuiDataGrid-row"),i=Number(a.getAttribute("data-rowindex"));let r=i;const o=t.current.getSelectedRows();if(o.length>0){const e=o.map((e=>t.current.getRowIndexFromId(e.id))),n=e.map((e=>Math.abs(i-e))),a=Math.max(...n);r=e[n.indexOf(a)]}const s=p(e,!1),l=Array(Math.abs(s.rowIndex-r)+1).fill(s.rowIndex>r?r:s.rowIndex).map(((e,n)=>t.current.getRowIdFromRowIndex(e+n)));n.debug("Selecting rows "),t.current.selectRows(l,!0,!0)}),[n,t,p]),v=(0,a.useCallback)((()=>{var e,t;const n=vi(document.activeElement,"MuiDataGrid-row"),a=yi(n);u[a]?null===(e=null===window||void 0===window?void 0:window.getSelection())||void 0===e||e.selectAllChildren(n):null===(t=null===window||void 0===window?void 0:window.getSelection())||void 0===t||t.selectAllChildren(document.activeElement),document.execCommand("copy")}),[u]),g=(0,a.useCallback)((e=>{if(Bi(e.key))return n.debug("Multiple Select key pressed"),void h(!0);gi(document.activeElement)&&((e=>"Tab"===e)(e.code)||(e.preventDefault(),e.stopPropagation()),Wi(e.code)&&e.shiftKey?f():!qi(e.code)||e.shiftKey?qi(e.code)&&e.shiftKey?m(e.code):"c"!==e.key.toLowerCase()||!e.ctrlKey&&!e.metaKey?"a"===e.key.toLowerCase()&&(e.ctrlKey||e.metaKey)&&t.current.selectRows(t.current.getAllRowIds(),!0):v():p(e.code,e.ctrlKey||e.metaKey))}),[t,n,h,m,v,p,f]),y=(0,a.useCallback)((e=>{Bi(e.key)&&(n.debug("Multiple Select key released"),h(!1))}),[n,h]),b=(0,a.useCallback)((()=>{n.debug("Grid lost focus, releasing key press"),h(!1)}),[n,h]);eo(t,"keydown",g),eo(t,"keyup",y),eo(t,"gridFocusOut",b)})(0,f),(e=>{const t=Wa("useSelection"),[n,i,r]=li(e),o=ci(e,hi),s=ci(e,ki),l=ci(e,qr),c=(0,a.useRef)(!1);(0,a.useEffect)((()=>{c.current=!o.disableMultipleSelection&&l}),[l,o.disableMultipleSelection]);const d=(0,a.useCallback)((()=>Object.keys(n.selection).map((t=>e.current.getRowFromId(t)))),[e,n.selection]),u=(0,a.useCallback)(((n,a,s)=>{if(!e.current.isInitialised)return void i((e=>{const t={};return t[n.id]=!0,Object.assign(Object.assign({},e),{selection:t})}));t.debug("Selecting row "+n.id);const l=a||c.current||o.checkboxSelection;i(l?e=>{const t=Object.assign({},e.selection);return(l&&null!=s?s:!t[n.id])?t[n.id]=!0:delete t[n.id],Object.assign(Object.assign({},e),{selection:t})}:e=>{const t={};return t[n.id]=!0,Object.assign(Object.assign({},e),{selection:t})}),r();const d=e.current.getState("selection"),u={data:n,isSelected:!!d[n.id]},h={rowIds:Object.keys(d)};e.current.publishEvent("rowSelected",u),e.current.publishEvent("selectionChange",h)}),[e,t,o.checkboxSelection,r,i]),h=(0,a.useCallback)((function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(e.current.getRowFromId(t),a,n)}),[e,u]),p=(0,a.useCallback)((function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.disableMultipleSelection&&t.length>1&&!o.checkboxSelection||(i((e=>{const i=a?{}:Object.assign({},e.selection);return t.reduce(((e,t)=>(n?e[t]=!0:e[t]&&delete e[t],e)),i),Object.assign(Object.assign({},e),{selection:i})})),r(),e.current.publishEvent("selectionChange",{rowIds:Object.keys(e.current.getState("selection"))}))}),[o.disableMultipleSelection,o.checkboxSelection,i,r,e]),f=(0,a.useCallback)((e=>{o.disableSelectionOnClick||u(e.row)}),[o.disableSelectionOnClick,u]),m=(0,a.useCallback)((t=>e.current.subscribeEvent("rowSelected",t)),[e]),v=(0,a.useCallback)((t=>e.current.subscribeEvent("selectionChange",t)),[e]);eo(e,"rowClick",f),eo(e,"rowSelected",o.onRowSelected),eo(e,"selectionChange",o.onSelectionChange),za(e,{selectRow:h,getSelectedRows:d,selectRows:p,onRowSelected:m,onSelectionChange:v},"SelectionApi"),(0,a.useEffect)((()=>{i((e=>{const t=Object.assign({},e.selection);let n=!1;return Object.keys(t).forEach((e=>{s[e]||(delete t[e],n=!0)})),n?Object.assign(Object.assign({},e),{selection:t}):e})),r()}),[s,e,i,r])})(f),((e,t)=>{const n=Wa("useSorting"),i=(0,a.useRef)(!1),r=(0,a.useRef)([]),[o,s,l]=li(e),c=ci(e,hi),d=ci(e,er),u=ci(e,Ai),h=(0,a.useCallback)((t=>({sortModel:t,api:e.current,columns:e.current.getAllColumns()})),[e]),p=(0,a.useCallback)(((e,t)=>{const n=o.sorting.sortModel.findIndex((t=>t.field===e));let a=[...o.sorting.sortModel];return n>-1?t?a.splice(n,1,t):a.splice(n,1):a=[...o.sorting.sortModel,t],a}),[o.sorting.sortModel]),f=(0,a.useCallback)(((e,t)=>{const n=o.sorting.sortModel.find((t=>t.field===e.field));if(n){const e=void 0===t?Ua(c.sortingOrder,n.sort):t;return null==e?void 0:Object.assign(Object.assign({},n),{sort:e})}return{field:e.field,sort:void 0===t?Ua(c.sortingOrder):t}}),[o.sorting.sortModel,c.sortingOrder]),m=(0,a.useCallback)(((t,n)=>r.current.reduce(((a,i)=>{const{field:r,comparator:o}=i;return a||o(t[r],n[r],Vi({api:e.current,colDef:e.current.getColumnFromField(r),rowModel:t,value:t[r]}),Vi({api:e.current,colDef:e.current.getColumnFromField(r),rowModel:n,value:n[r]}))}),0)),[e]),v=(0,a.useCallback)((t=>t.map((t=>{const n=e.current.getColumnFromField(t.field);if(!n)throw new Error("Error sorting: column with field '".concat(t.field,"' not found. "));const a=(e=>"desc"===e)(t.sort)?(e,t,a,i)=>-1*n.sortComparator(e,t,a,i):n.sortComparator;return{field:n.field,comparator:a}}))),[e]),g=(0,a.useCallback)((()=>{const t=e.current.getRowModels(),a=e.current.getState().sorting.sortModel;n.info("Sorting rows with ",a);const i=[...t];a.length>0&&(r.current=v(a),i.sort(m)),s((e=>Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:[...i.map((e=>e.id))]})}))),l()}),[e,n,s,l,v,m]),y=(0,a.useCallback)((t=>{s((e=>{const n=Object.assign(Object.assign({},e.sorting),{sortModel:t});return Object.assign(Object.assign({},e),{sorting:Object.assign({},n)})})),l(),0!==d.visible.length&&(e.current.publishEvent("sortModelChange",h(t)),c.sortingMode===ei&&e.current.applySorting())}),[s,l,d.visible.length,e,h,c.sortingMode]),b=(0,a.useCallback)(((e,t)=>{if(!e.sortable)return;const n=f(e,t);let a;a=i.current?p(e.field,n):n?[n]:[],y(a)}),[p,y,f]),_=(0,a.useCallback)((e=>{let{colDef:t}=e;b(t)}),[b]),x=(0,a.useCallback)((()=>{o.sorting.sortModel.length>0&&e.current.applySorting()}),[o.sorting.sortModel,e]),w=(0,a.useCallback)((()=>o.sorting.sortModel),[o.sorting.sortModel]),C=(0,a.useCallback)((e=>{i.current=!c.disableMultipleColumnsSorting&&e}),[c.disableMultipleColumnsSorting]),S=(0,a.useCallback)((t=>e.current.subscribeEvent("sortModelChange",t)),[e]);eo(e,"columnClick",_),eo(e,"rowsUpdated",x),eo(e,"multipleKeyPressChange",C),eo(e,"sortModelChange",c.onSortModelChange),za(e,{getSortModel:w,setSortModel:y,sortColumn:b,onSortModelChange:S,applySorting:g},"SortApi"),(0,a.useEffect)((()=>{e.current.applySorting()}),[e,t]),(0,a.useEffect)((()=>{u>0&&c.sortingMode===ei&&(n.debug("row changed, applying sortModel"),e.current.applySorting())}),[u,e,c.sortingMode,n]),(0,a.useEffect)((()=>{if(d.visible.length>0){const t=e.current.getAllColumns().filter((e=>null!=e.sortDirection)).sort(((e,t)=>e.sortIndex-t.sortIndex)).map((e=>({field:e.field,sort:e.sortDirection})));t.length>0&&!Fa(e.current.getState("sorting").sortModel,t)&&e.current.setSortModel(t)}}),[e,d]),(0,a.useEffect)((()=>{const t=c.sortModel||[],n=e.current.state.sorting.sortModel;t.length>0&&!Fa(t,n)&&e.current.setSortModel(t)}),[c.sortModel,e])})(f,e.rows),(e=>{const t=Wa("useColumnMenu"),[,n,i]=li(e),r=(0,a.useCallback)((a=>{t.debug("Opening Column Menu"),n((e=>Object.assign(Object.assign({},e),{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences(),i()}),[e,i,t,n]),o=(0,a.useCallback)((()=>{t.debug("Hiding Column Menu"),n((e=>Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1})}))),i()}),[i,t,n]);za(e,{showColumnMenu:r,hideColumnMenu:o},"ColumnMenuApi")})(f),(e=>{const t=Wa("usePreferencesPanel"),[,n,i]=li(e),r=(0,a.useRef)(),o=(0,a.useCallback)((()=>{t.debug("Hiding Preferences Panel"),n((e=>Object.assign(Object.assign({},e),{preferencePanel:{open:!1}}))),i()}),[i,t,n]),s=(0,a.useCallback)((()=>{setImmediate((()=>clearTimeout(r.current)))}),[]),l=(0,a.useCallback)((()=>{r.current=setTimeout(o,100)}),[o]);za(e,{showPreferences:(0,a.useCallback)((e=>{t.debug("Opening Preferences Panel"),s(),n((t=>Object.assign(Object.assign({},t),{preferencePanel:Object.assign(Object.assign({},t.preferencePanel),{open:!0,openedPanelValue:e})}))),i()}),[s,i,t,n]),hidePreferences:l},"ColumnMenuApi"),(0,a.useEffect)((()=>()=>{clearTimeout(r.current)}),[])})(f),((e,t)=>{const n=Wa("useFilter"),[i,r,o]=li(e),s=ci(e,ir),{disableMultipleColumnsFiltering:l}=ci(e,hi),c=(0,a.useCallback)((()=>{r((e=>Object.assign(Object.assign({},e),{visibleRows:{visibleRows:[],visibleRowsLookup:{}}})))}),[r]),d=(0,a.useCallback)((function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ai.And;if(!t.columnField||!t.operatorValue||!t.value)return;n.info("Filtering column: ".concat(t.columnField," ").concat(t.operatorValue," ").concat(t.value," "));const i=e.current.getColumnFromField(t.columnField),s=i.filterOperators;if(!(null==s?void 0:s.length))throw new Error("No Filter operator found for column "+i.field);const l=s.find((e=>e.value===t.operatorValue)).getApplyFilterFn(t,i);r((t=>{const n=Object.assign({},t.visibleRows.visibleRowsLookup),r=[];return Ti(t).forEach(((t,o)=>{const s=Vi({rowModel:t,colDef:i,rowIndex:o,value:t[i.field],api:e.current}),c=l(s);null==n[t.id]?n[t.id]=c:n[t.id]=a===ai.And?n[t.id]&&c:n[t.id]||c,c&&r.push(t.id)})),Object.assign(Object.assign({},t),{visibleRows:{visibleRowsLookup:n,visibleRows:r}})})),o()}),[e,o,n,r]),u=(0,a.useCallback)((()=>{c();const{items:t,linkOperator:n}=e.current.state.filter;t.forEach((e=>{d(e,n)})),o()}),[e,d,c,o]),h=(0,a.useCallback)((t=>{r((n=>{const a=[...n.filter.items],i=a.findIndex((e=>e.id===t.id));return 1===a.length&&Fa(a[0],{})?a[0]=t:-1===i?a.push(t):a[i]=t,null==t.id&&(t.id=(new Date).getTime()),null==t.columnField&&(t.columnField=s[0].field),null!=t.columnField&&null==t.operatorValue&&(t.operatorValue=e.current.getColumnFromField(t.columnField).filterOperators[0].value),l&&a.length>1&&(a.length=1),Object.assign(Object.assign({},n),{filter:Object.assign(Object.assign({},n.filter),{items:a})})})),u()}),[e,u,l,s,r]),p=(0,a.useCallback)((e=>{let t=!1;r((n=>{const a=[...n.filter.items.filter((t=>t.id!==e.id))];return t=0===a.length,Object.assign(Object.assign({},n),{filter:Object.assign(Object.assign({},n.filter),{items:a})})})),t&&h({}),u()}),[u,r,h]),f=(0,a.useCallback)((t=>{if(t){const n=i.filter.items.length>0?i.filter.items[i.filter.items.length-1]:null;n&&n.columnField===t||e.current.upsertFilter({columnField:t})}e.current.showPreferences(vr.filters)}),[e,i.filter.items]),m=(0,a.useCallback)((e=>{r((t=>Object.assign(Object.assign({},t),{filter:Object.assign(Object.assign({},t.filter),{linkOperator:e})}))),u()}),[u,r]),v=(0,a.useCallback)((()=>{i.filter.items.length>0&&e.current.applyFilters()}),[i.filter.items.length,e]);eo(e,"rowsUpdated",v),za(e,{applyFilterLinkOperator:m,applyFilters:u,applyFilter:d,upsertFilter:h,deleteFilter:p,showFilterPanel:f},"FilterApi"),(0,a.useEffect)((()=>{e.current&&e.current.applyFilters()}),[e,t])})(f,e.rows),((e,t)=>{const n=Wa("useContainerProps"),[i,r,o]=li(t),s=(0,a.useRef)({width:0,height:0}),l=ci(t,hi),c=ci(t,or),d=ci(t,Br),u=ci(t,so),h=(0,a.useCallback)((()=>{const e=u.page;let t=l.pagination&&u.pageSize?u.pageSize:null;return t=!t||e*t<=d?t:d-(e-1)*t,null==t||t>d?d:t}),[l.pagination,u.page,u.pageSize,d]),p=(0,a.useCallback)((e=>{const t=!l.autoPageSize&&!l.autoHeight&&s.current.heights.current.width;return{hasScrollX:n,hasScrollY:t,scrollBarSize:{y:t?l.scrollbarSize:0,x:n?l.scrollbarSize:0}}}),[c,l.autoHeight,l.autoPageSize,l.rowHeight,l.scrollbarSize]),f=(0,a.useCallback)(((t,a)=>{if(!e.current)return null;n.debug("Calculating container sizes.");const i=e.current.getBoundingClientRect();return s.current={width:i.width,height:i.height},n.debug("window Size - W: ".concat(s.current.width," H: ").concat(s.current.height," ")),{width:s.current.width-a.scrollBarSize.y,height:l.autoHeight?t*l.rowHeight:s.current.height-a.scrollBarSize.x}}),[n,l.autoHeight,l.rowHeight,e]),m=(0,a.useCallback)(((t,a,i)=>{if(!e||!e.current||0===c||Number.isNaN(c))return null;let r=a.height/l.rowHeight;r=l.pagination?Math.floor(r):Math.round(r);const o=2*r,d=l.autoPageSize?1:Math.ceil(t/r);n.debug("viewportPageSize: ".concat(r,", rzPageSize: ").concat(o,", viewportMaxPage: ").concat(d));const u=o*l.rowHeight+l.rowHeight+i.scrollBarSize.x,h=c-i.scrollBarSize.y;let p=(l.autoPageSize?1:t/r)*a.height+(i.hasScrollY?i.scrollBarSize.x:0);l.autoHeight&&(p=t*l.rowHeight+i.scrollBarSize.x);const f={virtualRowsCount:l.autoPageSize?r:t,renderingZonePageSize:o,viewportPageSize:r,totalSizes:{width:c,height:p||1},dataContainerSizes:{width:h,height:p||1},renderingZone:{width:h,height:u},windowSizes:s.current,lastPage:d};return n.debug("returning container props",f),f}),[e,c,l.rowHeight,l.pagination,l.autoPageSize,l.autoHeight,n]),v=(0,a.useCallback)(((e,t)=>{let n=!1;r((a=>(n=e(a),n?t(a):a))),n&&o()}),[o,r]),g=(0,a.useCallback)((()=>{const e=h(),t=p(e),n=f(e,t);if(!n)return;v((e=>e.scrollBar!==t),(e=>Object.assign(Object.assign({},e),{scrollBar:t}))),v((e=>e.viewportSizes!==n),(e=>Object.assign(Object.assign({},e),{viewportSizes:n})));const a=m(e,n,t);v((e=>!Fa(e.containerSizes,a)),(e=>Object.assign(Object.assign({},e),{containerSizes:a})))}),[m,p,f,h,v]);(0,a.useEffect)((()=>{g()}),[i.columns,i.options.hideFooter,g,d]),eo(t,"resize",g)})(u,f);const w=ho(l,u,p,f);(e=>{const t=Wa("useColumnReorder"),[,n,i]=li(e),r=ci(e,no),o=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,a.useRef)({x:0,y:0}),c=(0,a.useRef)(),d=(0,a.useCallback)((()=>{t.debug("End dragging col"),e.current.publishEvent("colReordering:dragStop"),clearTimeout(c.current),s.current.classList.remove("MuiDataGrid-colCell-dropZone"),o.current.removeEventListener("dragend",d),o.current=null,n((e=>Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:""})}))),i()}),[e,n,i,t]),u=(0,a.useCallback)(((a,r)=>{t.debug("Start dragging col "+a.field),e.current.publishEvent("colReordering:dragStart"),o.current=r,o.current.addEventListener("dragend",d,{once:!0}),o.current.classList.add("MuiDataGrid-colCell-dragging"),n((e=>Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:a.field})}))),i(),c.current=setTimeout((()=>{o.current.classList.remove("MuiDataGrid-colCell-dragging")}))}),[e,n,i,d,t]);(0,a.useEffect)((()=>()=>{clearTimeout(c.current)}),[]);const h=(0,a.useCallback)(((t,n)=>{t.preventDefault(),e.current.publishEvent("colReordering:dragOverHeader"),s.current=n.current,s.current.classList.add("MuiDataGrid-colCell-dropZone")}),[e]),p=(0,a.useCallback)((t=>{t.preventDefault(),e.current.publishEvent("colReordering:dragEnter")}),[e]),f=(0,a.useCallback)(((n,a)=>{if(t.debug("Dragging over col "+n.field),e.current.publishEvent("colReordering:dragOver"),n.field!==r&&(o=a,(i=l.current).x!==o.x||i.y!==o.y)){const t=e.current.getColumnIndex(n.field,!1),i=e.current.getColumnIndex(r,!1),o=e.current.getAllColumns();if("right"===ao(l.current,a)&&i{const a=e.slice();return a.splice(t,0,a.splice(n,1)[0]),a})(o,t,i);e.current.updateColumns(n,!0)}l.current=a}var i,o}),[e,r,t]);za(e,{onColItemDragStart:u,onColHeaderDragOver:h,onColItemDragOver:f,onColItemDragEnter:p},"ColReorderApi")})(f);const C=((e,t)=>{const n=Wa("useColumnResize"),i=(0,a.useRef)(),r=(0,a.useRef)(),o=(0,a.useRef)(),s=(0,a.useRef)(),l=(0,a.useRef)(),d=(0,a.useRef)(),u=e.current,h=e=>{n.debug("Updating width to ".concat(e," for col ").concat(i.current.field)),i.current.width=e,r.current.style.width=e+"px",r.current.style.minWidth=e+"px",r.current.style.maxWidth=e+"px",o.current.forEach((t=>{const n=t;n.style.width=e+"px",n.style.minWidth=e+"px",n.style.maxWidth=e+"px"}))},p=yr((()=>{b(),t.current.updateColumn(i.current),clearTimeout(l.current),l.current=setTimeout((()=>{t.current.publishEvent("colResizing:stop")})),n.debug("Updating col ".concat(i.current.field," with new width: ").concat(i.current.width))})),f=yr((e=>{if(0===e.buttons)return void p();let t=s.current+e.clientX-r.current.getBoundingClientRect().left;t=Math.max(50,t),h(t)})),m=yr((e=>{if(0!==e.button)return;if(!e.currentTarget.classList.contains("MuiDataGrid-columnSeparatorResizable"))return;e.preventDefault(),r.current=vi(e.currentTarget,"MuiDataGrid-colCell");const a=r.current.getAttribute("data-field"),l=t.current.getColumnFromField(a);n.debug("Start Resize on col "+l.field),t.current.publishEvent("colResizing:start",{field:a}),i.current=l,r.current=u.querySelector('[data-field="'.concat(l.field,'"]')),o.current=xi(r.current);const d=(0,c.A)(t.current.rootElementRef.current);d.body.style.cursor="col-resize",s.current=i.current.width-(e.clientX-r.current.getBoundingClientRect().left),d.addEventListener("mousemove",f),d.addEventListener("mouseup",p)})),v=yr((e=>{vo(e,d.current)&&(b(),t.current.updateColumn(i.current),clearTimeout(l.current),l.current=setTimeout((()=>{t.current.publishEvent("colResizing:stop")})),n.debug("Updating col ".concat(i.current.field," with new width: ").concat(i.current.width)))})),g=yr((e=>{const t=vo(e,d.current);if(!t)return;if("mousemove"===e.type&&0===e.buttons)return void v(e);let n=s.current+t.x-r.current.getBoundingClientRect().left;n=Math.max(50,n),h(n)})),y=yr((e=>{if(!vi(e.target,"MuiDataGrid-columnSeparatorResizable"))return;mo()||e.preventDefault();const a=e.changedTouches[0];null!=a&&(d.current=a.identifier),r.current=vi(e.target,"MuiDataGrid-colCell");const l=bi(r.current),h=t.current.getColumnFromField(l);n.debug("Start Resize on col "+h.field),t.current.publishEvent("colResizing:start",{field:l}),i.current=h,r.current=_i(u,h.field),o.current=xi(r.current),s.current=i.current.width-(a.clientX-r.current.getBoundingClientRect().left);const p=(0,c.A)(e.currentTarget);p.addEventListener("touchmove",g),p.addEventListener("touchend",v)})),b=(0,a.useCallback)((()=>{const e=(0,c.A)(t.current.rootElementRef.current);e.body.style.removeProperty("cursor"),e.removeEventListener("mousemove",f),e.removeEventListener("mouseup",p),e.removeEventListener("touchmove",g),e.removeEventListener("touchend",v)}),[t,f,p,g,v]);return(0,a.useEffect)((()=>(null==u||u.addEventListener("touchstart",y,{passive:mo()}),()=>{null==u||u.removeEventListener("touchstart",y),clearTimeout(l.current),b()})),[u,y,b]),(0,a.useMemo)((()=>({onMouseDown:m})),[m])})(l,f);(e=>{const t=Wa("usePagination"),{gridState:n,dispatch:i}=ui(e,"pagination",oi,Object.assign({},ri)),r=ci(e,hi),o=ci(e,Br),s=ci(e,Yr),l=(0,a.useCallback)((n=>{t.debug("Setting page to "+n),i(function(e){return{type:"SET_PAGE_ACTION",payload:{page:e}}}(n));const a=e.current.getState("pagination");e.current.publishEvent("pageChange",a)}),[e,i,t]),c=(0,a.useCallback)((t=>{i(function(e){return{type:"SET_PAGESIZE_ACTION",payload:{pageSize:e}}}(t)),e.current.publishEvent("pageSizeChange",e.current.getState("pagination"))}),[e,i]),d=(0,a.useCallback)((t=>e.current.subscribeEvent("pageChange",t)),[e]),u=(0,a.useCallback)((t=>e.current.subscribeEvent("pageSizeChange",t)),[e]);eo(e,"pageChange",r.onPageChange),eo(e,"pageSizeChange",r.onPageSizeChange),(0,a.useEffect)((()=>{i(function(e){return{type:"SET_PAGINATION_MODE_ACTION",payload:e}}({paginationMode:r.paginationMode}))}),[e,i,r.paginationMode]),(0,a.useEffect)((()=>{l(null!=r.page?r.page:1)}),[r.page,l]),(0,a.useEffect)((()=>{!r.autoPageSize&&r.pageSize&&c(r.pageSize)}),[r.autoPageSize,r.pageSize,t,c]),(0,a.useEffect)((()=>{r.autoPageSize&&s&&(null==s?void 0:s.viewportPageSize)>0&&c(null==s?void 0:s.viewportPageSize)}),[s,r.autoPageSize,c]),(0,a.useEffect)((()=>{i(function(e){return{type:"SET_ROWCOUNT_ACTION",payload:e}}({totalRowCount:o}))}),[e,i,o]),(0,a.useEffect)((()=>{var t;(null===(t=e.current)||void 0===t?void 0:t.isInitialised)&&e.current.publishEvent("pageChange",n.pagination)}),[e,e.current.isInitialised,n.pagination]),za(e,{setPageSize:c,setPage:l,onPageChange:d,onPageSizeChange:u},"paginationApi")})(f);const S=((e,t,n)=>{const i=ci(t,hi),r=ci(t,ji),o=ci(t,ar),s=ci(t,so),l=(0,a.useMemo)((()=>({pagination:s,rows:r,columns:o,options:i,api:t,rootElement:n})),[s,r,o,i,t,n]);return{headerComponent:(0,a.useMemo)((()=>(null==e?void 0:e.header)?(0,a.createElement)(e.header,l):null),[e,l]),footerComponent:(0,a.useMemo)((()=>(null==e?void 0:e.footer)?(0,a.createElement)(e.footer,l):null),[e,l]),loadingComponent:(0,a.useMemo)((()=>(null==e?void 0:e.loadingOverlay)?(0,a.createElement)(e.loadingOverlay,l):(0,a.createElement)(yo,null)),[e,l]),noRowsComponent:(0,a.useMemo)((()=>(null==e?void 0:e.noRowsOverlay)?(0,a.createElement)(e.noRowsOverlay,l):(0,a.createElement)(bo,null)),[e,l]),paginationComponent:(0,a.useMemo)((()=>(null==e?void 0:e.pagination)?(0,a.createElement)(e.pagination,l):null),[e,l]),renderError:(0,a.useCallback)((t=>{const n=(null==e?void 0:e.errorOverlay)||go;return(0,a.createElement)(n,Object.assign({},l,t))}),[null==e?void 0:e.errorOverlay,l])}})(e.components,f,n),A=(0,a.useCallback)((e=>((e,t,n,a)=>i=>{const r=t&&t.dataContainerSizes.height||0;if(!e.autoHeight)return i.height;const o=a.current&&a.current.getBoundingClientRect().height||0,s=n.current&&n.current.getBoundingClientRect().height||0;let l=r;return l{null!=e.state&&f.current.state!==e.state&&(b.debug("Overriding state with props.state"),v((t=>Object.assign(Object.assign({},t),e.state))),g())}),[f,g,b,e.state,v]),b.info("Rendering, page: ".concat(null==w?void 0:w.page,", col: ").concat(null==w?void 0:w.firstColIdx,"-").concat(null==w?void 0:w.lastColIdx,", row: ").concat(null==w?void 0:w.firstRowIdx,"-").concat(null==w?void 0:w.lastRowIdx)),(0,a.createElement)(_r,{onResize:x},(t=>{var n,s,c,v;return(0,a.createElement)(Zi,{ref:i,className:e.className,style:{width:t.width,height:A(t)},role:"grid","aria-colcount":m.columns.visible.length,"aria-rowcount":m.rows.totalRowCount,tabIndex:0,"aria-label":"grid","aria-multiselectable":!m.options.disableMultipleSelection},(0,a.createElement)(Fo,{hasError:null!=_,componentProps:_,api:f,logger:b,render:e=>(0,a.createElement)("div",{className:"MuiDataGrid-mainGridContainer"},S.renderError(e))},(0,a.createElement)(fi.Provider,{value:f},(0,a.createElement)(Ki.Provider,{value:m.options},(0,a.createElement)("div",{ref:o},S.headerComponent?S.headerComponent:(0,a.createElement)(a.Fragment,null,!m.options.hideToolbar&&(!m.options.disableColumnFilter||!m.options.disableColumnSelector)&&(0,a.createElement)(To,null,!m.options.disableColumnSelector&&(0,a.createElement)(Po,null),!m.options.disableColumnFilter&&(0,a.createElement)(Eo,null)))),(0,a.createElement)("div",{className:"MuiDataGrid-mainGridContainer"},(0,a.createElement)(Io,{licenseStatus:e.licenseStatus}),(0,a.createElement)(Gi,{ref:d,height:m.options.headerHeight},(0,a.createElement)(xo,{ref:l,columns:m.columns.visible||[],hasScrollX:!!m.scrollBar.hasScrollX,separatorProps:C,renderCtx:w})),!e.loading&&0===m.rows.totalRowCount&&S.noRowsComponent,e.loading&&S.loadingComponent,(0,a.createElement)(Qi,{ref:u},(0,a.createElement)($i,{ref:h,className:"data-container",style:{minHeight:null===(s=null===(n=m.containerSizes)||void 0===n?void 0:n.dataContainerSizes)||void 0===s?void 0:s.height,minWidth:null===(v=null===(c=m.containerSizes)||void 0===c?void 0:c.dataContainerSizes)||void 0===v?void 0:v.width}},null!=w&&(0,a.createElement)(Vr.Provider,{value:w},(0,a.createElement)(Qr,{ref:p}))))),(0,a.createElement)("div",{ref:r},S.footerComponent?S.footerComponent:(0,a.createElement)(So,{paginationComponent:!!m.options.pagination&&null!=m.pagination.pageSize&&!m.options.hideFooterPagination&&(S.paginationComponent||(0,a.createElement)(ko,null))}))))))}))})),No={disableColumnResize:!0,disableColumnReorder:!0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,pagination:!0,apiRef:void 0},Ro=(0,a.forwardRef)((function(e,t){const{className:n,pageSize:i}=e,r=Mi(e,["className","pageSize"]);let o=i;return o&&o>100&&(o=100),(0,a.createElement)(Oo,Object.assign({ref:t,className:Di("MuiDataGrid-root",n),pageSize:o},r,No,{licenseStatus:"Valid"}))}));Ro.propTypes={apiRef:(Et().any,()=>null),columns:(Et().any,()=>null),disableColumnReorder:(Et().bool,()=>null),disableColumnResize:(Et().bool,()=>null),disableMultipleColumnsFiltering:(Et().bool,()=>null),disableMultipleColumnsSorting:(Et().bool,()=>null),disableMultipleSelection:(Et().bool,()=>null),pageSize:(Et().number,()=>null),pagination:e=>!1===e.pagination?new Error(["Material-UI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the XGrid component to disable the pagination."].join("\n")):null};const Mo=(0,a.memo)(Ro);Mo.Naked=Ro},3845:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.A=o},3362:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.A=o},1924:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");t.A=o},3344:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"}),"Cake");t.A=o},9442:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.A=o},2622:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.A=o},1955:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload");t.A=o},9765:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"}),"CropOriginal");t.A=o},7324:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.A=o},479:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.A=o},1079:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");t.A=o},7931:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");t.A=o},1763:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");t.A=o},7413:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.A=o},8480:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.A=o},4482:(e,t,n)=>{"use strict";var a=n(4293),i=n(6539);t.A=void 0;var r=i(n(16)),o=(0,a(n(3411)).default)(r.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.A=o},3411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.createSvgIcon}});var a=n(695)},9194:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},7293:(e,t,n)=>{"use strict";function a(e){var t=e.theme,n=e.name,a=e.props;if(!t||!t.props||!t.props[n])return a;var i,r=t.props[n];for(i in r)void 0===a[i]&&(a[i]=r[i]);return a}n.d(t,{A:()=>a})},1891:(e,t,n)=>{"use strict";n.d(t,{A:()=>cn});var a=n(9850),i=n(9575),r=n(16),o="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};const s="object"===("undefined"===typeof window?"undefined":o(window))&&"object"===("undefined"===typeof document?"undefined":o(document))&&9===document.nodeType;var l=n(414),c=n(9140),d=n(2474),u=n(7502),h={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==h)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var a=n.jss,i=p(t),r=a.plugins.onCreateRule(e,i,n);return r||(e[0],null)}var m=function(e,t){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,w=function(e){return x?x(e):e.replace(_,"\\$1")},C=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var a=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,a?this.renderer=a.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var a=!!n&&n.force;if(!a&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var r=null==i||!1===i,o=e in this.style;if(r&&!o&&!a)return this;var s=r&&o;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),S=function(e){function t(t,n,a){var i;i=e.call(this,t,n,a)||this;var r=a.selector,o=a.scoped,s=a.sheet,l=a.generateId;return r?i.selectorText=r:!1!==o&&(i.id=l((0,d.A)((0,d.A)(i)),s),i.selectorText="."+w(i.id)),i}(0,c.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var a in n)t.setProperty(e,a,n[a])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.A)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},(0,l.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(C),A={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new S(e,t,n)}},k={indent:1,children:!0},j=/@([\w-]+)/,I=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var a=e.match(j);for(var r in this.at=a?a[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Z((0,i.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var a=this.rules.add(e,t,n);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(e,t,n){var a=this.rules.replace(e,t,n);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(e){void 0===e&&(e=k);var t=g(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),F=/@container|@media|@supports\s+/,T={onCreateRule:function(e,t,n){return F.test(e)?new I(e,t,n):null}},P={indent:1,children:!0},E=/@keyframes\s+([\w-]+)/,O=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=e.match(E);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var r=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===r?this.name:w(s(this,o)),this.rules=new Z((0,i.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,i.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=P);var t=g(e).linebreak;if(null==e.indent&&(e.indent=P.indent),null==e.children&&(e.children=P.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),N=/@keyframes\s+/,R=/\$([\w-]+)/g,M=function(e,t){return"string"===typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var a=e[t],i=M(a,n);i!==a&&(e[t]=i)},L={onCreateRule:function(e,t,n){return"string"===typeof e&&N.test(e)?new O(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var a=n.options.sheet;if(!a)return e;switch(t){case"animation":case"animation-name":return M(e,a.keyframes);default:return e}}},B=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.A)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(C),W={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new B(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=g(e).linebreak;if(Array.isArray(this.style)){for(var n="",a=0;a=this.index)t.push(e);else for(var a=0;an)return void t.splice(a,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,a=(0,u.A)(t,["attached"]),i=g(a).linebreak,r="",o=0;o-1?a.substr(0,i-1):a;e.style.setProperty(t,r,i>-1?"important":"")}}catch(o){return!1}return!0},de=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ue=function(e,t){return e.selectorText=t,e.selectorText===t},he=se((function(){return document.querySelector("head")}));function pe(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&a.options.insertionPoint===t.insertionPoint)return a}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var a=e[n];if(a.attached&&a.options.insertionPoint===t.insertionPoint)return a}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var a=e.insertionPoint;if(a&&"string"===typeof a){var i=function(e){for(var t=he(),n=0;nn?n:t},ge=function(){function e(e){this.getPropertyValue=le,this.setProperty=ce,this.removeProperty=de,this.setSelector=ue,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,a=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),a&&this.element.setAttribute("data-meta",a);var r=fe();r&&this.element.setAttribute("nonce",r)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,a=pe(t);if(!1!==a&&a.parent)a.parent.insertBefore(e,a.node);else if(n&&"number"===typeof n.nodeType){var i=n,r=i.parentNode;r&&r.insertBefore(e,i.nextSibling)}else he().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n-1){var i=Rt[e];if(!Array.isArray(i))return pt.js+bt(i)in t&&pt.css+i;if(!a)return!1;for(var r=0;rt?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var a={},i=Object.keys(t).sort(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,a=e.productionPrefix,i=void 0===a?"jss":a,r=e.seed,o=void 0===r?"":r,s=""===o?"":"".concat(o,"-"),l=0,c=function(){return l+=1};return function(e,t){var a=t.options.name;if(a&&0===a.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ie.indexOf(e.key))return"Mui-".concat(e.key);var r="".concat(s).concat(a,"-").concat(e.key);return t.options.theme[je.A]&&""===o?"".concat(r,"-").concat(c()):r}return"".concat(s).concat(i).concat(c())}}(),nn={disableGeneration:!1,generateClassName:tn,jss:en,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},an=r.createContext(nn);var rn=-1e9;var on=n(2407);const sn={};function ln(e,t){var n=e.state,a=e.theme,r=e.stylesOptions,o=e.stylesCreator,s=e.name;if(!r.disableGeneration){var l=Ae.get(r.sheetsManager,o,a);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ae.set(r.sheetsManager,o,a,l));var c=(0,i.A)({},o.options,r,{theme:a,flip:"boolean"===typeof r.flip?r.flip:"rtl"===a.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var d=r.sheetsRegistry;if(0===l.refs){var u;r.sheetsCache&&(u=Ae.get(r.sheetsCache,o,a));var h=o.create(a,s);u||((u=r.jss.createStyleSheet(h,(0,i.A)({link:!1},c))).attach(),r.sheetsCache&&Ae.set(r.sheetsCache,o,a,u)),d&&d.add(u),l.staticSheet=u,l.dynamicStyles=we(h)}if(l.dynamicStyles){var p=r.jss.createStyleSheet(l.dynamicStyles,(0,i.A)({link:!0},c));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=(0,Ce.A)({baseClasses:l.staticSheet.classes,newClasses:p.classes}),d&&d.add(p)}else n.classes=l.staticSheet.classes;l.refs+=1}}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,s=t.Component,l=t.defaultTheme,c=void 0===l?sn:l,d=(0,a.A)(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"===typeof e;return{create:function(n,a){var r;try{r=t?e(n):e}catch(l){throw l}if(!a||!n.overrides||!n.overrides[a])return r;var o=n.overrides[a],s=(0,i.A)({},r);return Object.keys(o).forEach((function(e){s[e]=(0,on.A)(s[e],o[e])})),s},options:{}}}(e),h=n||o||"makeStyles";u.options={index:rn+=1,name:n,meta:h,classNamePrefix:h};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.A)()||c,a=(0,i.A)({},r.useContext(an),d),o=r.useRef(),l=r.useRef();!function(e,t){var n,a=r.useRef([]),i=r.useMemo((function(){return{}}),t);a.current!==i&&(a.current=i,n=e()),r.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:u,stylesOptions:a,theme:t};return ln(i,e),l.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,a=e.stylesOptions,i=e.stylesCreator;if(!a.disableGeneration){var r=Ae.get(a.sheetsManager,i,n);r.refs-=1;var o=a.sheetsRegistry;0===r.refs&&(Ae.delete(a.sheetsManager,i,n),a.jss.removeStyleSheet(r.staticSheet),o&&o.remove(r.staticSheet)),t.dynamicSheet&&(a.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}}(i)}}),[t,u]),r.useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),l.current=!0}));var h=function(e,t,n){var a=e.state;if(e.stylesOptions.disableGeneration)return t||{};a.cacheClasses||(a.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return a.classes!==a.cacheClasses.lastJSS&&(a.cacheClasses.lastJSS=a.classes,i=!0),t!==a.cacheClasses.lastProp&&(a.cacheClasses.lastProp=t,i=!0),i&&(a.cacheClasses.value=(0,Ce.A)({baseClasses:a.cacheClasses.lastJSS,newClasses:t,Component:n})),a.cacheClasses.value}(o.current,e.classes,s);return h}}},3663:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(9575);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=(0,a.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},8467:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=n(16).createContext(null)},6795:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(16),i=n(8467);function r(){return a.useContext(i.A)}},1669:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var a=n(7545),i={xs:0,sm:600,md:960,lg:1280,xl:1920},r={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function o(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||r;return t.reduce((function(e,a,r){return e[i.up(i.keys[r])]=n(t[r]),e}),{})}if("object"===(0,a.A)(t)){var o=e.theme.breakpoints||r;return Object.keys(t).reduce((function(e,a){return e[o.up(a)]=n(t[a]),e}),{})}return n(t)}},8477:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(2407);const i=function(e,t){return t?(0,a.A)(e,t,{clone:!1}):e}},308:(e,t,n)=>{"use strict";n.d(t,{L:()=>u,A:()=>f});var a=n(2061),i=n(1669),r=n(8477);var o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!l[e])return[e];e=l[e]}var t=e.split(""),n=(0,a.A)(t,2),i=n[0],r=n[1],c=o[i],d=s[r]||"";return Array.isArray(d)?d.map((function(e){return c+e})):[c+d]})),d=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function u(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function h(e,t){return function(n){return e.reduce((function(e,a){return e[a]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function p(e){var t=u(e.theme);return Object.keys(e).map((function(n){if(-1===d.indexOf(n))return null;var a=h(c(n),t),r=e[n];return(0,i.N)(e,r,a)})).reduce(r.A,{})}p.propTypes={},p.filterProps=d;const f=p},2407:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(9575),i=n(7545);function r(e){return e&&"object"===(0,i.A)(e)&&e.constructor===Object}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,a.A)({},e):e;return r(e)&&r(t)&&Object.keys(t).forEach((function(a){"__proto__"!==a&&(r(t[a])&&a in e?i[a]=o(e[a],t[a],n):i[a]=t[a])})),i}},5424:(e,t,n)=>{"use strict";function a(e){for(var t="https://mui.com/production-error/?code="+e,n=1;na})},8919:(e,t,n)=>{"use strict";n.d(t,{YZ:()=>f,BF:()=>g,EU:()=>m});var a=n(8852),i=n(7988),r=n(8317),o=n(4112),s=n(4687),l=n(7160),c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,d=n(4580),u=n(4023),h=function(){function e(e){this.errors=0,this.sid=(0,i.eJ)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,r.zf)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,r.zf)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,i.eJ)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,u.Ce)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),p=4,f=function(){function e(e,t,n){void 0===t&&(t=new d.H),void 0===n&&(n=p),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version{"use strict";n.d(t,{H:()=>l,l:()=>d});var a=n(8852),i=n(8508),r=n(8317),o=n(3118),s=n(4687),l=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,a.gz)(t._breadcrumbs),n._tags=(0,a.Cl)({},t._tags),n._extra=(0,a.Cl)({},t._extra),n._contexts=(0,a.Cl)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,a.gz)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=(0,a.Cl)((0,a.Cl)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,a.Cl)((0,a.Cl)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,a.Cl)((0,a.Cl)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,a.Cl)((0,a.Cl)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,a.Cl)((0,a.Cl)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"===typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,a.Cl)((0,a.Cl)({},this._tags),t._tags),this._extra=(0,a.Cl)((0,a.Cl)({},this._extra),t._extra),this._contexts=(0,a.Cl)((0,a.Cl)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,i.Qd)(t)&&(this._tags=(0,a.Cl)((0,a.Cl)({},this._tags),t.tags),this._extra=(0,a.Cl)((0,a.Cl)({},this._extra),t.extra),this._contexts=(0,a.Cl)((0,a.Cl)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"===typeof t?Math.min(t,100):100;if(n<=0)return this;var i=(0,a.Cl)({timestamp:(0,r.lu)()},e);return this._breadcrumbs=(0,a.gz)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,a.Cl)((0,a.Cl)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,a.Cl)((0,a.Cl)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,a.Cl)((0,a.Cl)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,a.Cl)((0,a.Cl)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,a.Cl)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,a.Cl)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,a.gz)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,a.gz)(c(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=(0,a.Cl)((0,a.Cl)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var s=this;return void 0===r&&(r=0),new o.T2((function(o,l){var c=e[r];if(null===t||"function"!==typeof c)o(t);else{var d=c((0,a.Cl)({},t),n);(0,i.Qg)(d)?d.then((function(t){return s._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,l):s._notifyEventProcessors(e,d,n,r+1).then(o).then(null,l)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){return(0,s.B)("globalEventProcessors",(function(){return[]}))}function d(e){c().push(e)}},8852:(e,t,n)=>{"use strict";n.d(t,{Cl:()=>a,gz:()=>r});var a=function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o}function r(){for(var e=[],t=0;t{"use strict";n.d(t,{_:()=>a,e:()=>i});var a="finishReason",i=["heartbeatFailed","idleTimeout","documentHidden"]},2846:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var a="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},6652:(e,t,n)=>{"use strict";n.d(t,{lk:()=>y,pd:()=>g});var a=n(8607),i=n(8919),r=n(4112),o=n(8508),s=n(7160),l=n(2137),c=n(2846),d=n(3820);function u(){var e=(0,d.Z7)();if(e){var t="internal_error";c.w&&r.vF.log("[Tracing] Transaction: "+t+" -> Global error occured"),e.setStatus(t)}}var h=n(7387),p=n(1929);function f(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function m(e,t,n){return(0,d.wt)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"===typeof t.tracesSampler?(a=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(a)}})):void 0!==n.parentSampled?(a=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(a=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(a)}})),function(e){if((0,o.yr)(e)||"number"!==typeof e&&"boolean"!==typeof e)return c.w&&r.vF.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return c.w&&r.vF.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(a)?a?(e.sampled=Math.random()0&&(t.__SENTRY__.integrations=(0,a.gz)(t.__SENTRY__.integrations||[],r))}}(),(0,l.O)("error",u),(0,l.O)("unhandledrejection",u)}e=n.hmd(e)},7387:(e,t,n)=>{"use strict";n.d(t,{$F:()=>d,zX:()=>h});var a=n(8607),i=n(8317),r=n(4112),o=n(4648),s=n(2846),l=n(493),c=n(1929),d=1e3,u=function(e){function t(t,n,a,i){void 0===a&&(a="");var r=e.call(this,i)||this;return r._pushActivity=t,r._popActivity=n,r.transactionSpanId=a,r}return(0,a.C6)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"===typeof e?e:(0,i.LU)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(l.lh),h=function(e){function t(t,n,a,i){void 0===a&&(a=d),void 0===i&&(i=!1);var o=e.call(this,t,n)||this;return o._idleHub=n,o._idleTimeout=a,o._onScope=i,o.activities={},o._heartbeatCounter=0,o._finished=!1,o._beforeFinishCallbacks=[],n&&i&&(p(n),s.w&&r.vF.log("Setting idle transaction on scope. Span ID: "+o.spanId),n.configureScope((function(e){return e.setSpan(o)}))),o._initTimeout=setTimeout((function(){o._finished||o.finish()}),o._idleTimeout),o}return(0,a.C6)(t,e),t.prototype.finish=function(t){var n,o,l=this;if(void 0===t&&(t=(0,i.LU)()),this._finished=!0,this.activities={},this.spanRecorder){s.w&&r.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var c=(0,a.Ju)(this._beforeFinishCallbacks),d=c.next();!d.done;d=c.next()){(0,d.value)(this,t)}}catch(u){n={error:u}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===l.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),s.w&&r.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp=3?(s.w&&r.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(o._,o.e[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;s.w&&r.vF.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(c.Z);function p(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},493:(e,t,n)=>{"use strict";n.d(t,{L9:()=>l,lh:()=>s});var a=n(8607),i=n(7988),r=n(8317),o=n(4023),s=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),l=function(){function e(e){if(this.traceId=(0,i.eJ)(),this.spanId=(0,i.eJ)().substring(16),this.startTimestamp=(0,r.LU)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,a.Cl)((0,a.Cl)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,a.Cl)((0,a.Cl)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,a.Cl)((0,a.Cl)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"===typeof e?e:(0,r.LU)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return(0,o.Ce)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,a,i,r;return this.data=null!==(t=e.data)&&void 0!==t?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!==(n=e.spanId)&&void 0!==n?n:this.spanId,this.startTimestamp=null!==(a=e.startTimestamp)&&void 0!==a?a:this.startTimestamp,this.status=e.status,this.tags=null!==(i=e.tags)&&void 0!==i?i:{},this.traceId=null!==(r=e.traceId)&&void 0!==r?r:this.traceId,this},e.prototype.getTraceContext=function(){return(0,o.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,o.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},1929:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var a=n(8607),i=n(8919),r=n(8508),o=n(4112),s=n(4023),l=n(2846),c=n(493),d=function(e){function t(t,n){var a=e.call(this,t)||this;return a._measurements={},a._hub=(0,i.BF)(),(0,r.tH)(n,i.YZ)&&(a._hub=n),a.name=t.name||"",a.metadata=t.metadata||{},a._trimEnd=t.trimEnd,a.transaction=a,a}return(0,a.C6)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new c.lh(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,a.Cl)({},e)},t.prototype.setMetadata=function(e){this.metadata=(0,a.Cl)((0,a.Cl)({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(l.w&&o.vF.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0===this.sampled){var a=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&a.length>0&&(this.endTimestamp=a.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:a,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(l.w&&o.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),l.w&&o.vF.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(i)}l.w&&o.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var r=this._hub.getClient(),s=r&&r.getTransport&&r.getTransport();s&&s.recordLostEvent&&s.recordLostEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return(0,s.Ce)((0,a.Cl)((0,a.Cl)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!==(n=t.name)&&void 0!==n?n:"",this._trimEnd=t.trimEnd,this},t}(c.L9)},3820:(e,t,n)=>{"use strict";n.d(t,{Z7:()=>r,rv:()=>o,vO:()=>s,wt:()=>i});var a=n(8919);function i(e){var t=(0,a.BF)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function r(e){var t=(e||(0,a.BF)()).getScope();return t&&t.getTransaction()}function o(e){return e/1e3}function s(e){return 1e3*e}},8607:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>r,Ju:()=>s,Tt:()=>o,gz:()=>c});var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function i(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,i,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o}function c(){for(var e=[],t=0;t{"use strict";n.d(t,{$:()=>s,H:()=>r});var a=n(4687),i=n(8508);function r(e,t){try{for(var n=e,a=[],i=0,r=0,s=void 0;n&&i++<5&&!("html"===(s=o(n,t))||i>1&&r+3*a.length+s.length>=80);)a.push(s),r+=s.length,n=n.parentNode;return a.reverse().join(" > ")}catch(l){return""}}function o(e,t){var n,a,r,o,s,l=e,c=[];if(!l||!l.tagName)return"";c.push(l.tagName.toLowerCase());var d=t&&t.length?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(d&&d.length)d.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&c.push("#"+l.id),(n=l.className)&&(0,i.Kg)(n))for(a=n.split(/\s+/),s=0;s{"use strict";n.d(t,{w:()=>a});var a="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},4687:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,V:()=>r});var a=n(7160),i={};function r(){return(0,a.wD)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:i}function o(e,t,n){var a=n||r(),i=a.__SENTRY__=a.__SENTRY__||{};return i[e]||(i[e]=t())}},2137:(e,t,n)=>{"use strict";n.d(t,{O:()=>v});var a,i=n(5410),r=n(5589),o=n(4687),s=n(8508),l=n(4112),c=n(4023),d=n(585),u=n(4516),h=(0,o.V)(),p={},f={};function m(e){if(!f[e])switch(f[e]=!0,e){case"console":!function(){if(!("console"in h))return;l.Ow.forEach((function(e){e in h.console&&(0,c.GS)(h.console,e,(function(t){return function(){for(var n=[],a=0;a2?t[2]:void 0;if(i){var r=a,o=String(i);a=o,g("history",{from:r,to:o})}return e.apply(this,t)}}h.onpopstate=function(){for(var t=[],n=0;n{"use strict";n.d(t,{BD:()=>s,Kg:()=>c,Qd:()=>u,Qg:()=>m,T2:()=>o,W6:()=>l,bJ:()=>i,gd:()=>f,mE:()=>v,sO:()=>d,tH:()=>y,vq:()=>p,xH:()=>h,yr:()=>g});var a=Object.prototype.toString;function i(e){switch(a.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function r(e,t){return a.call(e)==="[object "+t+"]"}function o(e){return r(e,"ErrorEvent")}function s(e){return r(e,"DOMError")}function l(e){return r(e,"DOMException")}function c(e){return r(e,"String")}function d(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function u(e){return r(e,"Object")}function h(e){return"undefined"!==typeof Event&&y(e,Event)}function p(e){return"undefined"!==typeof Element&&y(e,Element)}function f(e){return r(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function v(e){return u(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"===typeof e&&e!==e}function y(e,t){try{return e instanceof t}catch(n){return!1}}},4112:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>l,pq:()=>c,vF:()=>a});var a,i=n(5410),r=n(5589),o=n(4687),s=(0,o.V)(),l=["debug","info","warn","error","log","assert"];function c(e){var t=(0,o.V)();if(!("console"in t))return e();var n=t.console,a={};l.forEach((function(e){var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(a[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(a).forEach((function(e){n[e]=a[e]}))}}function d(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return r.w?l.forEach((function(n){t[n]=function(){for(var t=[],a=0;a{"use strict";n.d(t,{$X:()=>c,Dl:()=>s,GR:()=>h,M6:()=>u,eJ:()=>o,gO:()=>d});var a=n(5410),i=n(4687),r=n(4023);function o(){var e=(0,i.V)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var a=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return a(n[0])+a(n[1])+a(n[2])+a(n[3])+a(n[4])+a(n[5])+a(n[6])+a(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",a=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+a}}function l(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function c(e){var t=e.message,n=e.event_id;if(t)return t;var a=l(e);return a?a.type&&a.value?a.type+": "+a.value:a.type||a.value||n||"":n||""}function d(e,t,n){var a=e.exception=e.exception||{},i=a.values=a.values||[],r=i[0]=i[0]||{};r.value||(r.value=t||""),r.type||(r.type=n||"Error")}function u(e,t){var n=l(e);if(n){var i=n.mechanism;if(n.mechanism=(0,a.Cl)((0,a.Cl)((0,a.Cl)({},{type:"generic",handled:!0}),i),t),t&&"data"in t){var r=(0,a.Cl)((0,a.Cl)({},i&&i.data),t.data);n.mechanism.data=r}}}function h(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch(t){}return!1}},7160:(e,t,n)=>{"use strict";function a(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,t){return e.require(t)}function r(t){var n;try{n=i(e,t)}catch(r){}try{var a=i(e,"process").cwd;n=i(e,a()+"/node_modules/"+t)}catch(r){}return n}n.d(t,{fj:()=>i,wD:()=>a,Vw:()=>r}),e=n.hmd(e)},4023:(e,t,n)=>{"use strict";n.d(t,{Ce:()=>v,GS:()=>s,HF:()=>m,W4:()=>h,my:()=>l,pO:()=>c,sp:()=>d,u4:()=>u});var a=n(5410),i=n(5642),r=n(8508),o=n(2161);function s(e,t,n){if(t in e){var a=e[t],i=n(a);if("function"===typeof i)try{c(i,a)}catch(r){}e[t]=i}}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function c(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}function d(e){return e.__sentry_original__}function u(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function h(e){var t=e;if((0,r.bJ)(e))t=(0,a.Cl)({message:e.message,name:e.name,stack:e.stack},f(e));else if((0,r.xH)(e)){var n=e;t=(0,a.Cl)({type:n.type,target:p(n.target),currentTarget:p(n.currentTarget)},f(n)),"undefined"!==typeof CustomEvent&&(0,r.tH)(e,CustomEvent)&&(t.detail=n.detail)}return t}function p(e){try{return(0,r.vq)(e)?(0,i.H)(e):Object.prototype.toString.call(e)}catch(t){return""}}function f(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function m(e,t){void 0===t&&(t=40);var n=Object.keys(h(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.xv)(n[0],t);for(var a=n.length;a>0;a--){var i=n.slice(0,a).join(", ");if(!(i.length>t))return a===n.length?i:(0,o.xv)(i,t)}return""}function v(e){var t,n;if((0,r.Qd)(e)){var i={};try{for(var o=(0,a.Ju)(Object.keys(e)),s=o.next();!s.done;s=o.next()){var l=s.value;"undefined"!==typeof e[l]&&(i[l]=v(e[l]))}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(v):e}},585:(e,t,n)=>{"use strict";n.d(t,{gd:()=>r,qQ:()=>s});var a=n(5410),i=50;function r(){for(var e=[],t=0;t{"use strict";n.d(t,{_c:()=>o,gt:()=>r,xv:()=>i});var a=n(8508);function i(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function r(e,t){if(!Array.isArray(e))return"";for(var n=[],a=0;a{"use strict";n.d(t,{K8:()=>c,NJ:()=>d,ap:()=>s,m7:()=>l,vm:()=>o});var a=n(5589),i=n(4687),r=n(4112);function o(){if(!("fetch"in(0,i.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if(!o())return!1;var e=(0,i.V)();if(s(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var l=n.createElement("iframe");l.hidden=!0,n.head.appendChild(l),l.contentWindow&&l.contentWindow.fetch&&(t=s(l.contentWindow.fetch)),n.head.removeChild(l)}catch(c){a.w&&r.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return t}function c(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function d(){var e=(0,i.V)(),t=e.chrome,n=t&&t.app&&t.app.runtime,a="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&a}},3118:(e,t,n)=>{"use strict";n.d(t,{T2:()=>o,XW:()=>i,xg:()=>r});var a=n(8508);function i(e){return new o((function(t){t(e)}))}function r(e){return new o((function(t,n){n(e)}))}var o=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&((0,a.Qg)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.prototype.then=function(t,n){var a=this;return new e((function(e,i){a._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(a){i(a)}else e(n)},function(t){if(n)try{e(n(t))}catch(a){i(a)}else i(t)}]),a._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,a){var i,r;return n.then((function(e){r=!1,i=e,t&&t()}),(function(e){r=!0,i=e,t&&t()})).then((function(){r?a(i):e(i)}))}))},e}()},8317:(e,t,n)=>{"use strict";n.d(t,{LU:()=>d,k3:()=>u,lu:()=>l,zf:()=>c});var a=n(4687),i=n(7160);e=n.hmd(e);var r={nowSeconds:function(){return Date.now()/1e3}};var o=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,a.V)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===o?r:{nowSeconds:function(){return(o.timeOrigin+o.now())/1e3}},l=r.nowSeconds.bind(r),c=s.nowSeconds.bind(s),d=c,u=function(){var e=(0,a.V)().performance;if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,o=r{"use strict";n.d(t,{C6:()=>i,Cl:()=>r,Ju:()=>o,gz:()=>l,zs:()=>s});var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function i(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,i,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o}function l(){for(var e=[],t=0;t{"use strict";function a(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ti});const i=function(){for(var e,t,n=0,i="";n{"use strict";var a=n(1760),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={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 a.isMemo(e)?o:s[e.$$typeof]||i}s[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[a.Memo]=o;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,a){if("string"!==typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,a)}var o=d(n);u&&(o=o.concat(u(n)));for(var s=l(t),m=l(n),v=0;v{"use strict";var n="function"===typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case u:case r:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return x(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=a,t.ForwardRef=h,t.Fragment=r,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===r},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===r||e===u||e===s||e===o||e===p||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===g)},t.typeOf=x},1760:(e,t,n)=>{"use strict";e.exports=n(6124)},9383:e=>{e.exports=function(e,t,n,a){var i=new Blob("undefined"!==typeof a?[a,e]:[e],{type:n||"application/octet-stream"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,t);else{var r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement("a");o.style.display="none",o.href=r,o.setAttribute("download",t),"undefined"===typeof o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout((function(){document.body.removeChild(o),window.URL.revokeObjectURL(r)}),200)}}},6600:(e,t,n)=>{var a=n(5426)(n(5897),"DataView");e.exports=a},1905:(e,t,n)=>{var a=n(1308),i=n(4234),r=n(2709),o=n(7337),s=n(3873);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var a=n(7490),i=n(180),r=n(6567),o=n(8283),s=n(1155);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var a=n(5426)(n(5897),"Map");e.exports=a},1953:(e,t,n)=>{var a=n(4764),i=n(6730),r=n(6277),o=n(806),s=n(7249);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var a=n(5426)(n(5897),"Promise");e.exports=a},5853:(e,t,n)=>{var a=n(5426)(n(5897),"Set");e.exports=a},7639:(e,t,n)=>{var a=n(1953),i=n(7384),r=n(5815);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t{var a=n(3187),i=n(696),r=n(1278),o=n(1913),s=n(8021),l=n(2285);function c(e){var t=this.__data__=new a(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=r,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},7693:(e,t,n)=>{var a=n(5897).Symbol;e.exports=a},3408:(e,t,n)=>{var a=n(5897).Uint8Array;e.exports=a},6755:(e,t,n)=>{var a=n(5426)(n(5897),"WeakMap");e.exports=a},1037:e=>{e.exports=function(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)}},8969:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,i=0,r=[];++n{var a=n(4524),i=n(4664),r=n(9165),o=n(5788),s=n(8429),l=n(6859),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),d=!n&&i(e),u=!n&&!d&&o(e),h=!n&&!d&&!u&&l(e),p=n||d||u||h,f=p?a(e.length,String):[],m=f.length;for(var v in e)!t&&!c.call(e,v)||p&&("length"==v||u&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||f.push(v);return f}},4576:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,i=Array(a);++n{e.exports=function(e,t){for(var n=-1,a=t.length,i=e.length;++n{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length;++n{var a=n(820);e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}},2945:(e,t,n)=>{var a=n(5253),i=n(3685)(a);e.exports=i},7588:(e,t,n)=>{var a=n(6468),i=n(3567);e.exports=function e(t,n,r,o,s){var l=-1,c=t.length;for(r||(r=i),s||(s=[]);++l0&&r(d)?n>1?e(d,n-1,r,o,s):a(s,d):o||(s[s.length]=d)}return s}},6125:(e,t,n)=>{var a=n(4481)();e.exports=a},5253:(e,t,n)=>{var a=n(6125),i=n(5482);e.exports=function(e,t){return e&&a(e,t,i)}},6906:(e,t,n)=>{var a=n(9021),i=n(1193);e.exports=function(e,t){for(var n=0,r=(t=a(t,e)).length;null!=e&&n{var a=n(6468),i=n(9165);e.exports=function(e,t,n){var r=t(e);return i(e)?r:a(r,n(e))}},5628:(e,t,n)=>{var a=n(7693),i=n(3167),r=n(8282),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):r(e)}},7641:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1842:(e,t,n)=>{var a=n(5628),i=n(1654);e.exports=function(e){return i(e)&&"[object Arguments]"==a(e)}},5818:(e,t,n)=>{var a=n(6256),i=n(1654);e.exports=function e(t,n,r,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:a(t,n,r,o,e,s))}},6256:(e,t,n)=>{var a=n(4453),i=n(9643),r=n(2190),o=n(5877),s=n(5713),l=n(9165),c=n(5788),d=n(6859),u="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var y=l(e),b=l(t),_=y?h:s(e),x=b?h:s(t),w=(_=_==u?p:_)==p,C=(x=x==u?p:x)==p,S=_==x;if(S&&c(e)){if(!c(t))return!1;y=!0,w=!1}if(S&&!w)return g||(g=new a),y||d(e)?i(e,t,n,m,v,g):r(e,t,_,n,m,v,g);if(!(1&n)){var A=w&&f.call(e,"__wrapped__"),k=C&&f.call(t,"__wrapped__");if(A||k){var j=A?e.value():e,I=k?t.value():t;return g||(g=new a),v(j,I,n,m,g)}}return!!S&&(g||(g=new a),o(e,t,n,m,v,g))}},8203:(e,t,n)=>{var a=n(4453),i=n(5818);e.exports=function(e,t,n,r){var o=n.length,s=o,l=!r;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o{var a=n(1854),i=n(3644),r=n(1561),o=n(6682),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,h=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||i(e))&&(a(e)?h:s).test(o(e))}},5817:(e,t,n)=>{var a=n(5628),i=n(3090),r=n(1654),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&i(e.length)&&!!o[a(e)]}},4273:(e,t,n)=>{var a=n(9592),i=n(1998),r=n(892),o=n(9165),s=n(7123);e.exports=function(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?o(e)?i(e[0],e[1]):a(e):s(e)}},9628:(e,t,n)=>{var a=n(6411),i=n(1598),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return i(e);var t=[];for(var n in Object(e))r.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9812:(e,t,n)=>{var a=n(2945),i=n(5338);e.exports=function(e,t){var n=-1,r=i(e)?Array(e.length):[];return a(e,(function(e,a,i){r[++n]=t(e,a,i)})),r}},9592:(e,t,n)=>{var a=n(8203),i=n(2372),r=n(145);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?r(t[0][0],t[0][1]):function(n){return n===e||a(n,e,t)}}},1998:(e,t,n)=>{var a=n(5818),i=n(1091),r=n(2715),o=n(8488),s=n(8856),l=n(145),c=n(1193);e.exports=function(e,t){return o(e)&&s(t)?l(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?r(n,e):a(t,o,3)}}},9447:(e,t,n)=>{var a=n(4576),i=n(6906),r=n(4273),o=n(9812),s=n(3117),l=n(3817),c=n(7510),d=n(892),u=n(9165);e.exports=function(e,t,n){t=t.length?a(t,(function(e){return u(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[d];var h=-1;t=a(t,l(r));var p=o(e,(function(e,n,i){return{criteria:a(t,(function(t){return t(e)})),index:++h,value:e}}));return s(p,(function(e,t){return c(e,t,n)}))}},5497:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},8179:(e,t,n)=>{var a=n(6906);e.exports=function(e){return function(t){return a(t,e)}}},7874:(e,t,n)=>{var a=n(892),i=n(7185),r=n(5717);e.exports=function(e,t){return r(i(e,t,a),e+"")}},2990:(e,t,n)=>{var a=n(8178),i=n(2863),r=n(892),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:r;e.exports=o},3117:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},4524:e=>{e.exports=function(e,t){for(var n=-1,a=Array(e);++n{var a=n(7693),i=n(4576),r=n(9165),o=n(6342),s=a?a.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return i(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},3817:e=>{e.exports=function(e){return function(t){return e(t)}}},1823:e=>{e.exports=function(e,t){return e.has(t)}},9021:(e,t,n)=>{var a=n(9165),i=n(8488),r=n(5598),o=n(7570);e.exports=function(e,t){return a(e)?e:i(e,t)?[e]:r(o(e))}},6982:(e,t,n)=>{var a=n(6342);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e===e,o=a(e),s=void 0!==t,l=null===t,c=t===t,d=a(t);if(!l&&!d&&!o&&e>t||o&&s&&c&&!l&&!d||i&&s&&c||!n&&c||!r)return 1;if(!i&&!o&&!d&&e{var a=n(6982);e.exports=function(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,s=r.length,l=n.length;++i=l?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},7245:(e,t,n)=>{var a=n(5897)["__core-js_shared__"];e.exports=a},3685:(e,t,n)=>{var a=n(5338);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!a(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=Object(n);(t?o--:++o{e.exports=function(e){return function(t,n,a){for(var i=-1,r=Object(t),o=a(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(r[l],l,r))break}return t}}},2863:(e,t,n)=>{var a=n(5426),i=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},9643:(e,t,n)=>{var a=n(7639),i=n(4140),r=n(1823);e.exports=function(e,t,n,o,s,l){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,v=2&n?new a:void 0;for(l.set(e,t),l.set(t,e);++f{var a=n(7693),i=n(3408),r=n(820),o=n(9643),s=n(5049),l=n(3035),c=a?a.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,a,c,u,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&a;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;a|=2,h.set(e,t);var v=o(p(e),p(t),a,c,u,h);return h.delete(e),v;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},5877:(e,t,n)=>{var a=n(2326),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,o,s){var l=1&n,c=a(e),d=c.length;if(d!=a(t).length&&!l)return!1;for(var u=d;u--;){var h=c[u];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++u{var a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=a},2326:(e,t,n)=>{var a=n(851),i=n(9356),r=n(5482);e.exports=function(e){return a(e,r,i)}},6879:(e,t,n)=>{var a=n(1406);e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}},2372:(e,t,n)=>{var a=n(8856),i=n(5482);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,a(o)]}return t}},5426:(e,t,n)=>{var a=n(9271),i=n(7300);e.exports=function(e,t){var n=i(e,t);return a(n)?n:void 0}},3167:(e,t,n)=>{var a=n(7693),i=Object.prototype,r=i.hasOwnProperty,o=i.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(l){}var i=o.call(e);return a&&(t?e[s]=n:delete e[s]),i}},9356:(e,t,n)=>{var a=n(8969),i=n(6781),r=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),a(o(e),(function(t){return r.call(e,t)})))}:i;e.exports=s},5713:(e,t,n)=>{var a=n(6600),i=n(9651),r=n(7464),o=n(5853),s=n(6755),l=n(5628),c=n(6682),d="[object Map]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=c(a),v=c(i),g=c(r),y=c(o),b=c(s),_=l;(a&&_(new a(new ArrayBuffer(1)))!=f||i&&_(new i)!=d||r&&_(r.resolve())!=u||o&&_(new o)!=h||s&&_(new s)!=p)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,a=n?c(n):"";if(a)switch(a){case m:return f;case v:return d;case g:return u;case y:return h;case b:return p}return t}),e.exports=_},7300:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},8850:(e,t,n)=>{var a=n(9021),i=n(4664),r=n(9165),o=n(8429),s=n(3090),l=n(1193);e.exports=function(e,t,n){for(var c=-1,d=(t=a(t,e)).length,u=!1;++c{var a=n(302);e.exports=function(){this.__data__=a?a(null):{},this.size=0}},4234:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2709:(e,t,n)=>{var a=n(302),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},7337:(e,t,n)=>{var a=n(302),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:i.call(t,e)}},3873:(e,t,n)=>{var a=n(302);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},3567:(e,t,n)=>{var a=n(7693),i=n(4664),r=n(9165),o=a?a.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||i(e)||!!(o&&e&&e[o])}},8429:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var a=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e{var a=n(820),i=n(5338),r=n(8429),o=n(1561);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&r(t,n.length):"string"==s&&t in n)&&a(n[t],e)}},8488:(e,t,n)=>{var a=n(9165),i=n(6342),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!r.test(e)||null!=t&&e in Object(t))}},1406:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3644:(e,t,n)=>{var a=n(7245),i=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},6411:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},8856:(e,t,n)=>{var a=n(1561);e.exports=function(e){return e===e&&!a(e)}},7490:e=>{e.exports=function(){this.__data__=[],this.size=0}},180:(e,t,n)=>{var a=n(3373),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},6567:(e,t,n)=>{var a=n(3373);e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},8283:(e,t,n)=>{var a=n(3373);e.exports=function(e){return a(this.__data__,e)>-1}},1155:(e,t,n)=>{var a=n(3373);e.exports=function(e,t){var n=this.__data__,i=a(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4764:(e,t,n)=>{var a=n(1905),i=n(3187),r=n(9651);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(r||i),string:new a}}},6730:(e,t,n)=>{var a=n(6879);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},6277:(e,t,n)=>{var a=n(6879);e.exports=function(e){return a(this,e).get(e)}},806:(e,t,n)=>{var a=n(6879);e.exports=function(e){return a(this,e).has(e)}},7249:(e,t,n)=>{var a=n(6879);e.exports=function(e,t){var n=a(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},5049:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}},145:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},3972:(e,t,n)=>{var a=n(4236);e.exports=function(e){var t=a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},302:(e,t,n)=>{var a=n(5426)(Object,"create");e.exports=a},1598:(e,t,n)=>{var a=n(7483)(Object.keys,Object);e.exports=a},6517:(e,t,n)=>{e=n.nmd(e);var a=n(2740),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&a.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},8282:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7483:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},7185:(e,t,n)=>{var a=n(1037),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=i(r.length-t,0),l=Array(s);++o{var a=n(2740),i="object"==typeof self&&self&&self.Object===Object&&self,r=a||i||Function("return this")();e.exports=r},7384:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},5815:e=>{e.exports=function(e){return this.__data__.has(e)}},3035:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},5717:(e,t,n)=>{var a=n(2990),i=n(3839)(a);e.exports=i},3839:e=>{var t=Date.now;e.exports=function(e){var n=0,a=0;return function(){var i=t(),r=16-(i-a);if(a=i,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},696:(e,t,n)=>{var a=n(3187);e.exports=function(){this.__data__=new a,this.size=0}},1278:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},1913:e=>{e.exports=function(e){return this.__data__.get(e)}},8021:e=>{e.exports=function(e){return this.__data__.has(e)}},2285:(e,t,n)=>{var a=n(3187),i=n(9651),r=n(1953);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(o)}return n.set(e,t),this.size=n.size,this}},5598:(e,t,n)=>{var a=n(3972),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,o=a((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,a,i){t.push(a?i.replace(r,"$1"):n||e)})),t}));e.exports=o},1193:(e,t,n)=>{var a=n(6342);e.exports=function(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},6682:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},8178:e=>{e.exports=function(e){return function(){return e}}},820:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},1091:(e,t,n)=>{var a=n(6906);e.exports=function(e,t,n){var i=null==e?void 0:a(e,t);return void 0===i?n:i}},2715:(e,t,n)=>{var a=n(7641),i=n(8850);e.exports=function(e,t){return null!=e&&i(e,t,a)}},892:e=>{e.exports=function(e){return e}},4664:(e,t,n)=>{var a=n(1842),i=n(1654),r=Object.prototype,o=r.hasOwnProperty,s=r.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},9165:e=>{var t=Array.isArray;e.exports=t},5338:(e,t,n)=>{var a=n(1854),i=n(3090);e.exports=function(e){return null!=e&&i(e.length)&&!a(e)}},5788:(e,t,n)=>{e=n.nmd(e);var a=n(5897),i=n(99),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?a.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},1854:(e,t,n)=>{var a=n(5628),i=n(1561);e.exports=function(e){if(!i(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3090:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1561:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1654:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6342:(e,t,n)=>{var a=n(5628),i=n(1654);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==a(e)}},6859:(e,t,n)=>{var a=n(5817),i=n(3817),r=n(6517),o=r&&r.isTypedArray,s=o?i(o):a;e.exports=s},5482:(e,t,n)=>{var a=n(2523),i=n(9628),r=n(5338);e.exports=function(e){return r(e)?a(e):i(e)}},9435:function(e,t,n){var a;e=n.nmd(e),function(){var i,r="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,d=64,u=128,h=256,p=1/0,f=9007199254740991,m=NaN,v=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",d],["rearg",h]],y="[object Arguments]",b="[object Array]",_="[object Boolean]",x="[object Date]",w="[object Error]",C="[object Function]",S="[object GeneratorFunction]",A="[object Map]",k="[object Number]",j="[object Object]",I="[object Promise]",F="[object RegExp]",T="[object Set]",P="[object String]",E="[object Symbol]",O="[object WeakMap]",N="[object ArrayBuffer]",R="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",B="[object Int16Array]",W="[object Int32Array]",z="[object Uint8Array]",U="[object Uint8ClampedArray]",H="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(X.source),J=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ie.source),oe=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Fe="\\ufe0e\\ufe0f",Te="\\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",Pe="['\u2019]",Ee="["+Se+"]",Oe="["+Te+"]",Ne="["+Ae+"]",Re="\\d+",Me="["+ke+"]",De="["+je+"]",Le="[^"+Se+Te+Re+ke+je+Ie+"]",Be="\\ud83c[\\udffb-\\udfff]",We="[^"+Se+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ie+"]",qe="\\u200d",Ve="(?:"+De+"|"+Le+")",Ge="(?:"+He+"|"+Le+")",$e="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Xe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Ne+"|"+Be+")"+"?",Ye="["+Fe+"]?",Je=Ye+Ke+("(?:"+qe+"(?:"+[We,ze,Ue].join("|")+")"+Ye+Ke+")*"),Ze="(?:"+[Me,ze,Ue].join("|")+")"+Je,Qe="(?:"+[We+Ne+"?",Ne,ze,Ue,Ee].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Ne,"g"),nt=RegExp(Be+"(?="+Be+")|"+Qe+Je,"g"),at=RegExp([He+"?"+De+"+"+$e+"(?="+[Oe,He,"$"].join("|")+")",Ge+"+"+Xe+"(?="+[Oe,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+$e,He+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ze].join("|"),"g"),it=RegExp("["+qe+Se+Ae+Fe+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],st=-1,lt={};lt[M]=lt[D]=lt[L]=lt[B]=lt[W]=lt[z]=lt[U]=lt[H]=lt[q]=!0,lt[y]=lt[b]=lt[N]=lt[_]=lt[R]=lt[x]=lt[w]=lt[C]=lt[A]=lt[k]=lt[j]=lt[F]=lt[T]=lt[P]=lt[O]=!1;var ct={};ct[y]=ct[b]=ct[N]=ct[R]=ct[_]=ct[x]=ct[M]=ct[D]=ct[L]=ct[B]=ct[W]=ct[A]=ct[k]=ct[j]=ct[F]=ct[T]=ct[P]=ct[E]=ct[z]=ct[U]=ct[H]=ct[q]=!0,ct[w]=ct[C]=ct[O]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ht=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ft||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&>.exports===vt,bt=yt&&pt.process,_t=function(){try{var e=gt&>.require&>.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=_t&&_t.isArrayBuffer,wt=_t&&_t.isDate,Ct=_t&&_t.isMap,St=_t&&_t.isRegExp,At=_t&&_t.isSet,kt=_t&&_t.isTypedArray;function jt(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 It(e,t,n,a){for(var i=-1,r=null==e?0:e.length;++i-1}function Nt(e,t,n){for(var a=-1,i=null==e?0:e.length;++a-1;);return n}function an(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var rn=Xt({"\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"}),on=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+dt[e]}function ln(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}function dn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,a=e.length,i=0,r=[];++n",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,ot))).Array,a=t.Date,se=t.Error,Se=t.Function,Ae=t.Math,ke=t.Object,je=t.RegExp,Ie=t.String,Fe=t.TypeError,Te=n.prototype,Pe=Se.prototype,Ee=ke.prototype,Oe=t["__core-js_shared__"],Ne=Pe.toString,Re=Ee.hasOwnProperty,Me=0,De=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=Ee.toString,Be=Ne.call(ke),We=mt._,ze=je("^"+Ne.call(Re).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=yt?t.Buffer:i,He=t.Symbol,qe=t.Uint8Array,Ve=Ue?Ue.allocUnsafe:i,Ge=dn(ke.getPrototypeOf,ke),$e=ke.create,Xe=Ee.propertyIsEnumerable,Ke=Te.splice,Ye=He?He.isConcatSpreadable:i,Je=He?He.iterator:i,Ze=He?He.toStringTag:i,Qe=function(){try{var e=ur(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,it=a&&a.now!==mt.Date.now&&a.now,dt=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=Ae.ceil,ft=Ae.floor,vt=ke.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:i,bt=t.isFinite,_t=Te.join,Wt=dn(ke.keys,ke),Xt=Ae.max,bn=Ae.min,_n=a.now,xn=t.parseInt,wn=Ae.random,Cn=Te.reverse,Sn=ur(t,"DataView"),An=ur(t,"Map"),kn=ur(t,"Promise"),jn=ur(t,"Set"),In=ur(t,"WeakMap"),Fn=ur(ke,"create"),Tn=In&&new In,Pn={},En=Dr(Sn),On=Dr(An),Nn=Dr(kn),Rn=Dr(jn),Mn=Dr(In),Dn=He?He.prototype:i,Ln=Dn?Dn.valueOf:i,Bn=Dn?Dn.toString:i;function Wn(e){if(ts(e)&&!qo(e)&&!(e instanceof qn)){if(e instanceof Hn)return e;if(Re.call(e,"__wrapped__"))return Lr(e)}return new Hn(e)}var zn=function(){function e(){}return function(t){if(!es(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Un(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function la(e,t,n,a,r,o){var s,l=1&t,c=2&t,d=4&t;if(n&&(s=r?n(e,a,r,o):n(e)),s!==i)return s;if(!es(e))return e;var u=qo(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Fi(e,s)}else{var h=fr(e),p=h==C||h==S;if(Xo(e))return Ci(e,l);if(h==j||h==y||p&&!r){if(s=c||p?{}:vr(e),!l)return c?function(e,t){return Ti(e,pr(e),t)}(e,function(e,t){return e&&Ti(t,Es(t),e)}(s,e)):function(e,t){return Ti(e,hr(e),t)}(e,ia(s,e))}else{if(!ct[h])return r?e:{};s=function(e,t,n){var a=e.constructor;switch(t){case N:return Si(e);case _:case x:return new a(+e);case R:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case D:case L:case B:case W:case z:case U:case H:case q:return Ai(e,n);case A:return new a;case k:case P:return new a(e);case F:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new a;case E:return i=e,Ln?ke(Ln.call(i)):{}}var i}(e,h,l)}}o||(o=new Kn);var f=o.get(e);if(f)return f;o.set(e,s),os(e)?e.forEach((function(a){s.add(la(a,t,n,a,e,o))})):ns(e)&&e.forEach((function(a,i){s.set(i,la(a,t,n,i,e,o))}));var m=u?i:(d?c?ir:ar:c?Es:Ps)(e);return Ft(m||e,(function(a,i){m&&(a=e[i=a]),ta(s,i,la(a,t,n,i,e,o))})),s}function ca(e,t,n){var a=n.length;if(null==e)return!a;for(e=ke(e);a--;){var r=n[a],o=t[r],s=e[r];if(s===i&&!(r in e)||!o(s))return!1}return!0}function da(e,t,n){if("function"!=typeof e)throw new Fe(r);return Tr((function(){e.apply(i,n)}),t)}function ua(e,t,n,a){var i=-1,r=Ot,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Rt(t,Qt(n))),a?(r=Nt,o=!1):t.length>=200&&(r=tn,o=!1,t=new Xn(t));e:for(;++i-1},Gn.prototype.set=function(e,t){var n=this.__data__,a=na(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(An||Gn),string:new Vn}},$n.prototype.delete=function(e){var t=cr(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return cr(this,e).get(e)},$n.prototype.has=function(e){return cr(this,e).has(e)},$n.prototype.set=function(e,t){var n=cr(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var a=n.__data__;if(!An||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(a)}return n.set(e,t),this.size=n.size,this};var ha=Oi(_a),pa=Oi(xa,!0);function fa(e,t){var n=!0;return ha(e,(function(e,a,i){return n=!!t(e,a,i)})),n}function ma(e,t,n){for(var a=-1,r=e.length;++a0&&n(s)?t>1?ga(s,t-1,n,a,i):Mt(i,s):a||(i[i.length]=s)}return i}var ya=Ni(),ba=Ni(!0);function _a(e,t){return e&&ya(e,t,Ps)}function xa(e,t){return e&&ba(e,t,Ps)}function wa(e,t){return Et(t,(function(t){return Jo(e[t])}))}function Ca(e,t){for(var n=0,a=(t=bi(t,e)).length;null!=e&&nt}function ja(e,t){return null!=e&&Re.call(e,t)}function Ia(e,t){return null!=e&&t in ke(e)}function Fa(e,t,a){for(var r=a?Nt:Ot,o=e[0].length,s=e.length,l=s,c=n(s),d=1/0,u=[];l--;){var h=e[l];l&&t&&(h=Rt(h,Qt(t))),d=bn(h.length,d),c[l]=!a&&(t||o>=120&&h.length>=120)?new Xn(l&&h):i}h=e[0];var p=-1,f=c[0];e:for(;++p=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Va(e,t,n){for(var a=-1,i=t.length,r={};++a-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function $a(e,t){for(var n=e?t.length:0,a=n-1;n--;){var i=t[n];if(n==a||i!==r){var r=i;yr(i)?Ke.call(e,i,1):ui(e,i)}}return e}function Xa(e,t){return e+ft(wn()*(t-e+1))}function Ka(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Ya(e,t){return Pr(kr(e,t,al),e+"")}function Ja(e){return Jn(Ws(e))}function Za(e,t){var n=Ws(e);return Nr(n,sa(t,0,n.length))}function Qa(e,t,n,a){if(!es(e))return e;for(var r=-1,o=(t=bi(t,e)).length,s=o-1,l=e;null!=l&&++rr?0:r+t),(a=a>r?r:a)<0&&(a+=r),r=t>a?0:a-t>>>0,t>>>=0;for(var o=n(r);++i>>1,o=e[r];null!==o&&!ls(o)&&(n?o<=t:o=200){var c=t?null:Ki(e);if(c)return hn(c);o=!1,i=tn,l=new Xn}else l=t?[]:s;e:for(;++a=a?e:ai(e,t,n)}var wi=nt||function(e){return mt.clearTimeout(e)};function Ci(e,t){if(t)return e.slice();var n=e.length,a=Ve?Ve(n):new e.constructor(n);return e.copy(a),a}function Si(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ai(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==i,a=null===e,r=e===e,o=ls(e),s=t!==i,l=null===t,c=t===t,d=ls(t);if(!l&&!d&&!o&&e>t||o&&s&&c&&!l&&!d||a&&s&&c||!n&&c||!r)return 1;if(!a&&!o&&!d&&e1?n[r-1]:i,s=r>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(r--,o):i,s&&br(n[0],n[1],s)&&(o=r<3?i:o,r=1),t=ke(t);++a-1?r[o?t[s]:s]:i}}function Bi(e){return nr((function(t){var n=t.length,a=n,o=Hn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Fe(r);if(o&&!l&&"wrapper"==or(s))var l=new Hn([],!0)}for(a=l?a:n;++a1&&_.reverse(),p&&dl))return!1;var d=o.get(e),u=o.get(t);if(d&&u)return d==t&&u==e;var h=-1,p=!0,f=2&n?new Xn:i;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return Ft(g,(function(n){var a="_."+n[0];t&n[1]&&!Ot(e,a)&&e.push(a)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(de):[]}(a),n)))}function Or(e){var t=0,n=0;return function(){var a=_n(),r=16-(a-n);if(n=a,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Nr(e,t){var n=-1,a=e.length,r=a-1;for(t=t===i?a:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,io(e,n)}));function ho(e){var t=Wn(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var fo=nr((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,r=function(t){return oa(t,e)};return!(t>1||this.__actions__.length)&&a instanceof qn&&yr(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:po,args:[r],thisArg:i}),new Hn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(r)}));var mo=Pi((function(e,t,n){Re.call(e,n)?++e[n]:ra(e,n,1)}));var vo=Li(Ur),go=Li(Hr);function yo(e,t){return(qo(e)?Ft:ha)(e,lr(t,3))}function bo(e,t){return(qo(e)?Tt:pa)(e,lr(t,3))}var _o=Pi((function(e,t,n){Re.call(e,n)?e[n].push(t):ra(e,n,[t])}));var xo=Ya((function(e,t,a){var i=-1,r="function"==typeof t,o=Go(e)?n(e.length):[];return ha(e,(function(e){o[++i]=r?jt(t,e,a):Ta(e,t,a)})),o})),wo=Pi((function(e,t,n){ra(e,n,t)}));function Co(e,t){return(qo(e)?Rt:Ba)(e,lr(t,3))}var So=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ao=Ya((function(e,t){if(null==e)return[];var n=t.length;return n>1&&br(e,t[0],t[1])?t=[]:n>2&&br(t[0],t[1],t[2])&&(t=[t[0]]),qa(e,ga(t,1),[])})),ko=it||function(){return mt.Date.now()};function jo(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ji(e,u,i,i,i,i,t)}function Io(e,t){var n;if("function"!=typeof t)throw new Fe(r);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Fo=Ya((function(e,t,n){var a=1;if(n.length){var i=un(n,sr(Fo));a|=c}return Ji(e,a,t,n,i)})),To=Ya((function(e,t,n){var a=3;if(n.length){var i=un(n,sr(To));a|=c}return Ji(t,a,e,n,i)}));function Po(e,t,n){var a,o,s,l,c,d,u=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Fe(r);function m(t){var n=a,r=o;return a=o=i,u=t,l=e.apply(r,n)}function v(e){var n=e-d;return d===i||n>=t||n<0||p&&e-u>=s}function g(){var e=ko();if(v(e))return y(e);c=Tr(g,function(e){var n=t-(e-d);return p?bn(n,s-(e-u)):n}(e))}function y(e){return c=i,f&&a?m(e):(a=o=i,l)}function b(){var e=ko(),n=v(e);if(a=arguments,o=this,d=e,n){if(c===i)return function(e){return u=e,c=Tr(g,t),h?m(e):l}(d);if(p)return wi(c),c=Tr(g,t),m(d)}return c===i&&(c=Tr(g,t)),l}return t=vs(t)||0,es(n)&&(h=!!n.leading,s=(p="maxWait"in n)?Xt(vs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==i&&wi(c),u=0,a=d=o=c=i},b.flush=function(){return c===i?l:y(ko())},b}var Eo=Ya((function(e,t){return da(e,1,t)})),Oo=Ya((function(e,t,n){return da(e,vs(t)||0,n)}));function No(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Fe(r);var n=function(){var a=arguments,i=t?t.apply(this,a):a[0],r=n.cache;if(r.has(i))return r.get(i);var o=e.apply(this,a);return n.cache=r.set(i,o)||r,o};return n.cache=new(No.Cache||$n),n}function Ro(e){if("function"!=typeof e)throw new Fe(r);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)}}No.Cache=$n;var Mo=_i((function(e,t){var n=(t=1==t.length&&qo(t[0])?Rt(t[0],Qt(lr())):Rt(ga(t,1),Qt(lr()))).length;return Ya((function(a){for(var i=-1,r=bn(a.length,n);++i=t})),Ho=Pa(function(){return arguments}())?Pa:function(e){return ts(e)&&Re.call(e,"callee")&&!Xe.call(e,"callee")},qo=n.isArray,Vo=xt?Qt(xt):function(e){return ts(e)&&Aa(e)==N};function Go(e){return null!=e&&Qo(e.length)&&!Jo(e)}function $o(e){return ts(e)&&Go(e)}var Xo=gt||vl,Ko=wt?Qt(wt):function(e){return ts(e)&&Aa(e)==x};function Yo(e){if(!ts(e))return!1;var t=Aa(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Jo(e){if(!es(e))return!1;var t=Aa(e);return t==C||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==fs(e)}function Qo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Ct?Qt(Ct):function(e){return ts(e)&&fr(e)==A};function as(e){return"number"==typeof e||ts(e)&&Aa(e)==k}function is(e){if(!ts(e)||Aa(e)!=j)return!1;var t=Ge(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Be}var rs=St?Qt(St):function(e){return ts(e)&&Aa(e)==F};var os=At?Qt(At):function(e){return ts(e)&&fr(e)==T};function ss(e){return"string"==typeof e||!qo(e)&&ts(e)&&Aa(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&Aa(e)==E}var cs=kt?Qt(kt):function(e){return ts(e)&&Qo(e.length)&&!!lt[Aa(e)]};var ds=Gi(La),us=Gi((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Go(e))return ss(e)?mn(e):Fi(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=fr(e);return(t==A?cn:t==T?hn:Ws)(e)}function ps(e){return e?(e=vs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function fs(e){var t=ps(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?sa(fs(e),0,v):0}function vs(e){if("number"==typeof e)return e;if(ls(e))return m;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=Zt(e);var n=ge.test(e);return n||be.test(e)?ht(e.slice(2),n?2:8):ve.test(e)?m:+e}function gs(e){return Ti(e,Es(e))}function ys(e){return null==e?"":ci(e)}var bs=Ei((function(e,t){if(Cr(t)||Go(t))Ti(t,Ps(t),e);else for(var n in t)Re.call(t,n)&&ta(e,n,t[n])})),_s=Ei((function(e,t){Ti(t,Es(t),e)})),xs=Ei((function(e,t,n,a){Ti(t,Es(t),e,a)})),ws=Ei((function(e,t,n,a){Ti(t,Ps(t),e,a)})),Cs=nr(oa);var Ss=Ya((function(e,t){e=ke(e);var n=-1,a=t.length,r=a>2?t[2]:i;for(r&&br(t[0],t[1],r)&&(a=1);++n1),t})),Ti(e,ir(e),n),a&&(n=la(n,7,er));for(var i=t.length;i--;)ui(n,t[i]);return n}));var Ms=nr((function(e,t){return null==e?{}:function(e,t){return Va(e,t,(function(t,n){return js(e,n)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var n=Rt(ir(e),(function(e){return[e]}));return t=lr(t),Va(e,n,(function(e,n){return t(e,n[0])}))}var Ls=Yi(Ps),Bs=Yi(Es);function Ws(e){return null==e?[]:en(e,Ps(e))}var zs=Mi((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Ys(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(xe,rn).replace(tt,"")}var qs=Mi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Mi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=Ri("toLowerCase");var $s=Mi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Mi((function(e,t,n){return e+(n?" ":"")+Ys(t)}));var Ks=Mi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Ri("toUpperCase");function Js(e,t,n){return e=ys(e),(t=n?i:t)===i?function(e){return rt.test(e)}(e)?function(e){return e.match(at)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Ya((function(e,t){try{return jt(e,i,t)}catch(n){return Yo(n)?n:new se(n)}})),Qs=nr((function(e,t){return Ft(t,(function(t){t=Mr(t),ra(e,t,Fo(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Bi(),nl=Bi(!0);function al(e){return e}function il(e){return Ra("function"==typeof e?e:la(e,1))}var rl=Ya((function(e,t){return function(n){return Ta(n,e,t)}})),ol=Ya((function(e,t){return function(n){return Ta(e,n,t)}}));function sl(e,t,n){var a=Ps(t),i=wa(t,a);null!=n||es(t)&&(i.length||!a.length)||(n=t,t=e,e=this,i=wa(t,Ps(t)));var r=!(es(n)&&"chain"in n)||!!n.chain,o=Jo(e);return Ft(i,(function(n){var a=t[n];e[n]=a,o&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=Fi(this.__actions__)).push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Mt([this.value()],arguments))})})),e}function ll(){}var cl=Hi(Rt),dl=Hi(Pt),ul=Hi(Bt);function hl(e){return _r(e)?$t(Mr(e)):function(e){return function(t){return Ca(t,e)}}(e)}var pl=Vi(),fl=Vi(!0);function ml(){return[]}function vl(){return!1}var gl=Ui((function(e,t){return e+t}),0),yl=Xi("ceil"),bl=Ui((function(e,t){return e/t}),1),_l=Xi("floor");var xl=Ui((function(e,t){return e*t}),1),wl=Xi("round"),Cl=Ui((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Fe(r);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=jo,Wn.assign=bs,Wn.assignIn=_s,Wn.assignInWith=xs,Wn.assignWith=ws,Wn.at=Cs,Wn.before=Io,Wn.bind=Fo,Wn.bindAll=Qs,Wn.bindKey=To,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Wn.chain=ho,Wn.chunk=function(e,t,a){t=(a?br(e,t,a):t===i)?1:Xt(fs(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,l=n(pt(r/t));or?0:r+n),(a=a===i||a>r?r:fs(a))<0&&(a+=r),a=n>a?0:ms(a);n>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=ci(t))&&ln(e)?xi(mn(e),0,n):e.split(t,n):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Fe(r);return t=null==t?0:Xt(fs(t),0),Ya((function(n){var a=n[t],i=xi(n,0,t);return a&&Mt(i,a),jt(e,this,i)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?ai(e,1,t):[]},Wn.take=function(e,t,n){return e&&e.length?ai(e,0,(t=n||t===i?1:fs(t))<0?0:t):[]},Wn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?ai(e,(t=a-(t=n||t===i?1:fs(t)))<0?0:t,a):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?pi(e,lr(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?pi(e,lr(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new Fe(r);return es(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),Po(e,t,{leading:a,maxWait:t,trailing:i})},Wn.thru=po,Wn.toArray=hs,Wn.toPairs=Ls,Wn.toPairsIn=Bs,Wn.toPath=function(e){return qo(e)?Rt(e,Mr):ls(e)?[e]:Fi(Rr(ys(e)))},Wn.toPlainObject=gs,Wn.transform=function(e,t,n){var a=qo(e),i=a||Xo(e)||cs(e);if(t=lr(t,4),null==n){var r=e&&e.constructor;n=i?a?new r:[]:es(e)&&Jo(r)?zn(Ge(e)):{}}return(i?Ft:_a)(e,(function(e,a,i){return t(n,e,a,i)})),n},Wn.unary=function(e){return jo(e,1)},Wn.union=eo,Wn.unionBy=to,Wn.unionWith=no,Wn.uniq=function(e){return e&&e.length?di(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?di(e,lr(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?di(e,i,t):[]},Wn.unset=function(e,t){return null==e||ui(e,t)},Wn.unzip=ao,Wn.unzipWith=io,Wn.update=function(e,t,n){return null==e?e:hi(e,t,yi(n))},Wn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:hi(e,t,yi(n),a)},Wn.values=Ws,Wn.valuesIn=function(e){return null==e?[]:en(e,Es(e))},Wn.without=ro,Wn.words=Js,Wn.wrap=function(e,t){return Do(yi(t),e)},Wn.xor=oo,Wn.xorBy=so,Wn.xorWith=lo,Wn.zip=co,Wn.zipObject=function(e,t){return vi(e||[],t||[],ta)},Wn.zipObjectDeep=function(e,t){return vi(e||[],t||[],Qa)},Wn.zipWith=uo,Wn.entries=Ls,Wn.entriesIn=Bs,Wn.extend=_s,Wn.extendWith=xs,sl(Wn,Wn),Wn.add=gl,Wn.attempt=Zs,Wn.camelCase=zs,Wn.capitalize=Us,Wn.ceil=yl,Wn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))===n?n:0),t!==i&&(t=(t=vs(t))===t?t:0),sa(vs(e),t,n)},Wn.clone=function(e){return la(e,4)},Wn.cloneDeep=function(e){return la(e,5)},Wn.cloneDeepWith=function(e,t){return la(e,5,t="function"==typeof t?t:i)},Wn.cloneWith=function(e,t){return la(e,4,t="function"==typeof t?t:i)},Wn.conformsTo=function(e,t){return null==t||ca(e,t,Ps(t))},Wn.deburr=Hs,Wn.defaultTo=function(e,t){return null==e||e!==e?t:e},Wn.divide=bl,Wn.endsWith=function(e,t,n){e=ys(e),t=ci(t);var a=e.length,r=n=n===i?a:sa(fs(n),0,a);return(n-=t.length)>=0&&e.slice(n,r)==t},Wn.eq=Wo,Wn.escape=function(e){return(e=ys(e))&&J.test(e)?e.replace(K,on):e},Wn.escapeRegExp=function(e){return(e=ys(e))&&re.test(e)?e.replace(ie,"\\$&"):e},Wn.every=function(e,t,n){var a=qo(e)?Pt:fa;return n&&br(e,t,n)&&(t=i),a(e,lr(t,3))},Wn.find=vo,Wn.findIndex=Ur,Wn.findKey=function(e,t){return zt(e,lr(t,3),_a)},Wn.findLast=go,Wn.findLastIndex=Hr,Wn.findLastKey=function(e,t){return zt(e,lr(t,3),xa)},Wn.floor=_l,Wn.forEach=yo,Wn.forEachRight=bo,Wn.forIn=function(e,t){return null==e?e:ya(e,lr(t,3),Es)},Wn.forInRight=function(e,t){return null==e?e:ba(e,lr(t,3),Es)},Wn.forOwn=function(e,t){return e&&_a(e,lr(t,3))},Wn.forOwnRight=function(e,t){return e&&xa(e,lr(t,3))},Wn.get=ks,Wn.gt=zo,Wn.gte=Uo,Wn.has=function(e,t){return null!=e&&mr(e,t,ja)},Wn.hasIn=js,Wn.head=Vr,Wn.identity=al,Wn.includes=function(e,t,n,a){e=Go(e)?e:Ws(e),n=n&&!a?fs(n):0;var i=e.length;return n<0&&(n=Xt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Wn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=null==n?0:fs(n);return i<0&&(i=Xt(a+i,0)),Ht(e,t,i)},Wn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=bn(t,n)&&e=-9007199254740991&&e<=f},Wn.isSet=os,Wn.isString=ss,Wn.isSymbol=ls,Wn.isTypedArray=cs,Wn.isUndefined=function(e){return e===i},Wn.isWeakMap=function(e){return ts(e)&&fr(e)==O},Wn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Aa(e)},Wn.join=function(e,t){return null==e?"":_t.call(e,t)},Wn.kebabCase=qs,Wn.last=Kr,Wn.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var r=a;return n!==i&&(r=(r=fs(n))<0?Xt(a+r,0):bn(r,a-1)),t===t?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(e,t,r):Ut(e,Vt,r,!0)},Wn.lowerCase=Vs,Wn.lowerFirst=Gs,Wn.lt=ds,Wn.lte=us,Wn.max=function(e){return e&&e.length?ma(e,al,ka):i},Wn.maxBy=function(e,t){return e&&e.length?ma(e,lr(t,2),ka):i},Wn.mean=function(e){return Gt(e,al)},Wn.meanBy=function(e,t){return Gt(e,lr(t,2))},Wn.min=function(e){return e&&e.length?ma(e,al,La):i},Wn.minBy=function(e,t){return e&&e.length?ma(e,lr(t,2),La):i},Wn.stubArray=ml,Wn.stubFalse=vl,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=xl,Wn.nth=function(e,t){return e&&e.length?Ha(e,fs(t)):i},Wn.noConflict=function(){return mt._===this&&(mt._=We),this},Wn.noop=ll,Wn.now=ko,Wn.pad=function(e,t,n){e=ys(e);var a=(t=fs(t))?fn(e):0;if(!t||a>=t)return e;var i=(t-a)/2;return qi(ft(i),n)+e+qi(pt(i),n)},Wn.padEnd=function(e,t,n){e=ys(e);var a=(t=fs(t))?fn(e):0;return t&&at){var a=e;e=t,t=a}if(n||e%1||t%1){var r=wn();return bn(e+r*(t-e+ut("1e-"+((r+"").length-1))),t)}return Xa(e,t)},Wn.reduce=function(e,t,n){var a=qo(e)?Dt:Kt,i=arguments.length<3;return a(e,lr(t,4),n,i,ha)},Wn.reduceRight=function(e,t,n){var a=qo(e)?Lt:Kt,i=arguments.length<3;return a(e,lr(t,4),n,i,pa)},Wn.repeat=function(e,t,n){return t=(n?br(e,t,n):t===i)?1:fs(t),Ka(ys(e),t)},Wn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,n){var a=-1,r=(t=bi(t,e)).length;for(r||(r=1,e=i);++af)return[];var n=v,a=bn(e,v);t=lr(t),e-=v;for(var i=Jt(a,t);++n=o)return e;var l=n-fn(a);if(l<1)return a;var c=s?xi(s,0,l).join(""):e.slice(0,l);if(r===i)return c+a;if(s&&(l+=c.length-l),rs(r)){if(e.slice(l).search(r)){var d,u=c;for(r.global||(r=je(r.source,ys(me.exec(r))+"g")),r.lastIndex=0;d=r.exec(u);)var h=d.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ci(r),l)!=l){var p=c.lastIndexOf(r);p>-1&&(c=c.slice(0,p))}return c+a},Wn.unescape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(X,gn):e},Wn.uniqueId=function(e){var t=++Me;return ys(e)+t},Wn.upperCase=Ks,Wn.upperFirst=Ys,Wn.each=yo,Wn.eachRight=bo,Wn.first=Vr,sl(Wn,function(){var e={};return _a(Wn,(function(t,n){Re.call(Wn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Wn.VERSION="4.17.21",Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),Ft(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===i?1:Xt(fs(n),0);var a=this.__filtered__&&!t?new qn(this):this.clone();return a.__filtered__?a.__takeCount__=bn(n,a.__takeCount__):a.__views__.push({size:bn(n,v),type:e+(a.__dir__<0?"Right":"")}),a},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ft(["filter","map","takeWhile"],(function(e,t){var n=t+1,a=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lr(e,3),type:n}),t.__filtered__=t.__filtered__||a,t}})),Ft(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Ft(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(al)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Ya((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ta(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Ro(lr(e)))},qn.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(v)},_a(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),r=Wn[a?"take"+("last"==t?"Right":""):t],o=a||/^find/.test(t);r&&(Wn.prototype[t]=function(){var t=this.__wrapped__,s=a?[1]:arguments,l=t instanceof qn,c=s[0],d=l||qo(t),u=function(e){var t=r.apply(Wn,Mt([e],s));return a&&h?t[0]:t};d&&n&&"function"==typeof c&&1!=c.length&&(l=d=!1);var h=this.__chain__,p=!!this.__actions__.length,f=o&&!h,m=l&&!p;if(!o&&d){t=m?t:new qn(this);var v=e.apply(t,s);return v.__actions__.push({func:po,args:[u],thisArg:i}),new Hn(v,h)}return f&&m?e.apply(this,s):(v=this.thru(u),f?a?v.value()[0]:v.value():v)})})),Ft(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var i=this.value();return t.apply(qo(i)?i:[],e)}return this[n]((function(n){return t.apply(qo(n)?n:[],e)}))}})),_a(qn.prototype,(function(e,t){var n=Wn[t];if(n){var a=n.name+"";Re.call(Pn,a)||(Pn[a]=[]),Pn[a].push({name:t,func:n})}})),Pn[Wi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Fi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Fi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Fi(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qo(e),a=t<0,i=n?e.length:0,r=function(e,t,n){var a=-1,i=n.length;for(;++a=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var a=Lr(n);a.__index__=0,a.__values__=i,t?r.__wrapped__=a:t=a;var r=a;n=n.__wrapped__}return r.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:po,args:[Qr],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(Qr)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,Je&&(Wn.prototype[Je]=function(){return this}),Wn}();mt._=yn,(a=function(){return yn}.call(t,n,t,e))===i||(e.exports=a)}.call(this)},4236:(e,t,n)=>{var a=n(1953);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var a=arguments,i=t?t.apply(this,a):a[0],r=n.cache;if(r.has(i))return r.get(i);var o=e.apply(this,a);return n.cache=r.set(i,o)||r,o};return n.cache=new(i.Cache||a),n}i.Cache=a,e.exports=i},7123:(e,t,n)=>{var a=n(5497),i=n(8179),r=n(8488),o=n(1193);e.exports=function(e){return r(e)?a(o(e)):i(e)}},4283:(e,t,n)=>{var a=n(7588),i=n(9447),r=n(7874),o=n(3388),s=r((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]]),i(e,a(t,1),[])}));e.exports=s},6781:e=>{e.exports=function(){return[]}},99:e=>{e.exports=function(){return!1}},7570:(e,t,n)=>{var a=n(7320);e.exports=function(e){return null==e?"":a(e)}},5848:(module,__unused_webpack_exports,__webpack_require__)=>{var _classPrivateGetter=__webpack_require__(8498).default,_defineProperty=__webpack_require__(8212).default,_classPrivateMethodInitSpec=__webpack_require__(9333).default,_assertClassBrand=__webpack_require__(6337).default,_classPrivateFieldInitSpec=__webpack_require__(8740).default,_classPrivateFieldGet=__webpack_require__(9159).default,_classPrivateFieldSet=__webpack_require__(3675).default,root,factory;root=globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=d,t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);(null===t||void 0===t?void 0:t.length)>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=f(e)}catch{}}const a=t?new URL(e,t):new URL(e);if(function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch{}return null},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){var e,t;if("undefined"!==typeof crypto&&"function"===typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();const n=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(n);else for(let a=0;a<32;a++)n[a]=Math.floor(255*Math.random());return d(n)},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=i.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,a=e.length;nt?t.normalize("NFKC"):g.get(n)))},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,a]of e)t[n]=a;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=u,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),a=u(e);return n.decode(a)}catch(n){o('stringToPDFString: "'.concat(n,'".'))}}const t=[];for(let a=0,i=e.length;a=i.WARNINGS&&console.log("Warning: ".concat(e))}function s(e){throw new Error(e)}function l(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!a,configurable:!0,writable:!1}),n}const c=function(){function e(t,n){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function d(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||s("Invalid argument for bytesToString");const t=e.length,n=8192;if(te.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,n){return"#".concat(h[e]).concat(h[t]).concat(h[n])}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=this.applyTransform(e,t),a=this.applyTransform(e.slice(2,4),t),i=this.applyTransform([e[0],e[3]],t),r=this.applyTransform([e[2],e[1]],t);return[Math.min(n[0],a[0],i[0],r[0]),Math.min(n[1],a[1],i[1],r[1]),Math.max(n[0],a[0],i[0],r[0]),Math.max(n[1],a[1],i[1],r[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],r=e[2]*t[1]+e[3]*t[3],o=(n+r)/2,s=Math.sqrt((n+r)**2-4*(n*r-i*a))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>a)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),r=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>r?null:[n,i,a,r]}static bezierBoundingBox(e,t,n,a,i,r,o,s){const l=[],c=[[],[]];let d,u,h,p,f,m,v,g;for(let x=0;x<2;++x)if(0===x?(u=6*e-12*n+6*i,d=-3*e+9*n-9*i+3*o,h=3*n-3*e):(u=6*t-12*a+6*r,d=-3*t+9*a-9*r+3*s,h=3*a-3*t),Math.abs(d)<1e-12){if(Math.abs(u)<1e-12)continue;p=-h/u,0{this.resolve=t=>{_classPrivateFieldSet(m,this,!0),e(t)},this.reject=e=>{_classPrivateFieldSet(m,this,!0),t(e)}}))}get settled(){return _classPrivateFieldGet(m,this)}};let v=null,g=null;t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,n;if("string"===typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const a=new PDFDocumentLoadingTask,{docId:i}=a,r=e.url?getUrlProp(e.url):null,o=e.data?getDataProp(e.data):null,s=e.httpHeaders||null,l=!0===e.withCredentials,c=null!==(t=e.password)&&void 0!==t?t:null,d=e.range instanceof PDFDataRangeTransport?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let h=e.worker instanceof PDFWorker?e.worker:null;const p=e.verbosity,f="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,m="string"===typeof e.cMapUrl?e.cMapUrl:null,v=!1!==e.cMapPacked,g=e.CMapReaderFactory||DefaultCMapReaderFactory,y="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||DefaultStandardFontDataFactory,_=!0!==e.stopAtErrors,x=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,w=!1!==e.isEvalSupported,C="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,S=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,A="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,k=!0===e.fontExtraProperties,j=!0===e.enableXfa,I=e.ownerDocument||globalThis.document,F=!0===e.disableRange,T=!0===e.disableStream,P=!0===e.disableAutoFetch,E=!0===e.pdfBug,O=d?d.length:null!==(n=e.length)&&void 0!==n?n:NaN,N="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!A,R="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:g===_display_utils.DOMCMapReaderFactory&&b===_display_utils.DOMStandardFontDataFactory&&m&&y&&(0,_display_utils.isValidFetchUrl)(m,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(y,document.baseURI),M=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:I}),D=e.filterFactory||new DefaultFilterFactory({docId:i,ownerDocument:I});(0,_util.setVerbosityLevel)(p);const L={canvasFactory:M,filterFactory:D};if(R||(L.cMapReaderFactory=new g({baseUrl:m,isCompressed:v}),L.standardFontDataFactory=new b({baseUrl:y})),!h){const e={verbosity:p,port:_worker_options.GlobalWorkerOptions.workerPort};h=e.port?PDFWorker.fromPort(e):new PDFWorker(e),a._worker=h}const B={docId:i,apiVersion:"3.11.174",data:o,password:c,disableAutoFetch:P,rangeChunkSize:u,length:O,docBaseUrl:f,enableXfa:j,evaluatorOptions:{maxImageSize:x,disableFontFace:A,ignoreErrors:_,isEvalSupported:w,isOffscreenCanvasSupported:C,canvasMaxAreaInBytes:S,fontExtraProperties:k,useSystemFonts:N,cMapUrl:R?m:null,standardFontDataUrl:R?y:null}},W={ignoreErrors:_,isEvalSupported:w,disableFontFace:A,fontExtraProperties:k,enableXfa:j,ownerDocument:I,disableAutoFetch:P,pdfBug:E,styleElement:null};return h.promise.then((function(){if(a.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(h,B),t=new Promise((function(e){let t;var n;d?t=new _transport_stream.PDFDataTransportStream({length:O,initialData:d.initialData,progressiveDone:d.progressiveDone,contentDispositionFilename:d.contentDispositionFilename,disableRange:F,disableStream:T},d):o||(n={url:r,length:O,httpHeaders:s,withCredentials:l,rangeChunkSize:u,disableRange:F,disableStream:T},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(n):(0,_display_utils.isValidFetchUrl)(n.url)?new _displayFetch_stream.PDFFetchStream(n):new _displayNetwork.PDFNetworkStream(n)),e(t)}));return Promise.all([e,t]).then((function(e){let[t,n]=e;if(a.destroyed)throw new Error("Loading aborted");const r=new _message_handler.MessageHandler(i,t,h.port),o=new WorkerTransport(r,a,n,W,L);a._transport=o,r.send("Ready",null)}))})).catch(a._capability.reject),a}async function _fetchDocument(e,t){if(e.destroyed)throw new Error("Worker was destroyed");const n=await e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return n}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(_util.isNodeJS&&"string"===typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return(0,_util.stringToBytes)(e);if("object"===typeof e&&!isNaN(null===e||void 0===e?void 0:e.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{constructor(){var e,t;this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d".concat((_docId._=(e=_docId._,t=e++,e),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{var e,t;null!==(e=this._worker)&&void 0!==e&&e.port&&(this._worker._pendingDestroy=!0),await(null===(t=this._transport)||void 0===t?void 0:t.destroy())}catch(a){var n;throw null!==(n=this._worker)&&void 0!==n&&n.port&&delete this._worker._pendingDestroy,a}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}var _docId={_:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e;const t=[];for(const n in e)t.push(...e[n]);return t})))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;var _delayedCleanupTimeout=new WeakMap,_pendingCleanup=new WeakMap,_PDFPageProxy_brand=new WeakSet;class PDFPageProxy{constructor(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classPrivateMethodInitSpec(this,_PDFPageProxy_brand),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,null),_classPrivateFieldInitSpec(this,_pendingCleanup,!1),this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:a=0,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:a,dontFlip:i})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null}render(e){var t,n;let{canvasContext:a,viewport:i,intent:r="display",annotationMode:o=_util.AnnotationMode.ENABLE,transform:s=null,background:l=null,optionalContentConfigPromise:c=null,annotationCanvasMap:d=null,pageColors:u=null,printAnnotationStorage:h=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");const p=this._transport.getRenderingIntent(r,o,h);_classPrivateFieldSet(_pendingCleanup,this,!1),_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),c||(c=this._transport.getOptionalContentConfig());let f=this._intentStates.get(p.cacheKey);f||(f=Object.create(null),this._intentStates.set(p.cacheKey,f)),f.streamReaderCancelTimeout&&(clearTimeout(f.streamReaderCancelTimeout),f.streamReaderCancelTimeout=null);const m=!!(p.renderingIntent&_util.RenderingIntentFlag.PRINT);var v;f.displayReadyCapability||(f.displayReadyCapability=new _util.PromiseCapability,f.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(v=this._stats)||void 0===v||v.time("Page Request"),this._pumpOperatorList(p));const g=e=>{var t,n;f.renderTasks.delete(y),(this._maybeCleanupAfterRender||m)&&_classPrivateFieldSet(_pendingCleanup,this,!0),_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!m),e?(y.capability.reject(e),this._abortOperatorList({intentState:f,reason:e instanceof Error?e:new Error(e)})):y.capability.resolve(),null===(t=this._stats)||void 0===t||t.timeEnd("Rendering"),null===(n=this._stats)||void 0===n||n.timeEnd("Overall")},y=new InternalRenderTask({callback:g,params:{canvasContext:a,viewport:i,transform:s,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:d,operatorList:f.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!m,pdfBug:this._pdfBug,pageColors:u});((n=f).renderTasks||(n.renderTasks=new Set)).add(y);const b=y.task;return Promise.all([f.displayReadyCapability.promise,c]).then((e=>{var t;let[n,a]=e;this.destroyed?g():(null===(t=this._stats)||void 0===t||t.time("Rendering"),y.initializeGraphics({transparency:n,optionalContentConfig:a}),y.operatorListChanged())})).catch(g),b}getOperatorList(){let{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=this._transport.getRenderingIntent(e,t,n,!0);let i,r=this._intentStates.get(a.cacheKey);var o,s;return r||(r=Object.create(null),this._intentStates.set(a.cacheKey,r)),r.opListReadCapability||(i=Object.create(null),i.operatorListChanged=function(){r.operatorList.lastChunk&&(r.opListReadCapability.resolve(r.operatorList),r.renderTasks.delete(i))},r.opListReadCapability=new _util.PromiseCapability,((o=r).renderTasks||(o.renderTasks=new Set)).add(i),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(s=this._stats)||void 0===s||s.time("Page Request"),this._pumpOperatorList(a)),r.opListReadCapability.promise}streamTextContent(){let{includeMarkedContent:e=!1,disableNormalization:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const a=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){a.read().then((function(n){let{value:a,done:r}=n;r?e(i):(Object.assign(i.styles,a.styles),i.items.push(...a.items),t())}),n)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),_classPrivateFieldSet(_pendingCleanup,this,!1),_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(_pendingCleanup,this,!0);const t=_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}_startRenderPage(e,t){var n,a;const i=this._intentStates.get(t);i&&(null===(n=this._stats)||void 0===n||n.timeEnd("Page Request"),null===(a=i.displayReadyCapability)||void 0===a||a.resolve(e))}_renderPageChunk(e,t){for(let n=0,a=e.length;n{o.read().then((e=>{let{value:t,done:n}=e;n?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,s),l())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(const e of s.renderTasks)e.operatorListChanged();_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}_abortOperatorList(e){let{intentState:t,reason:n,force:a=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!a){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException){let e=RENDERING_CANCELLED_TIMEOUT;return n.extraDelay>0&&n.extraDelay<1e3&&(e+=n.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})}),e))}}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}function _tryCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),!_classPrivateFieldGet(_pendingCleanup,this)||this.destroyed)return!1;if(e)return _classPrivateFieldSet(_delayedCleanupTimeout,this,setTimeout((()=>{_classPrivateFieldSet(_delayedCleanupTimeout,this,null),_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:t,operatorList:n}of this._intentStates.values())if(t.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(_pendingCleanup,this,!1),!0}function _abortDelayedCleanup(){_classPrivateFieldGet(_delayedCleanupTimeout,this)&&(clearTimeout(_classPrivateFieldGet(_delayedCleanupTimeout,this)),_classPrivateFieldSet(_delayedCleanupTimeout,this,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap;class LoopbackPort{constructor(){_classPrivateFieldInitSpec(this,_listeners,new Set),_classPrivateFieldInitSpec(this,_deferred,Promise.resolve())}postMessage(e,t){const n={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(_deferred,this).then((()=>{for(const e of _classPrivateFieldGet(_listeners,this))e.call(this,n)}))}addEventListener(e,t){_classPrivateFieldGet(_listeners,this).add(t)}removeEventListener(e,t){_classPrivateFieldGet(_listeners,this).delete(t)}terminate(){_classPrivateFieldGet(_listeners,this).clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document;const e=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch{return!1}const a=new URL(t,n);return n.origin===a.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){let{name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){var a;if(null!==(a=_workerPorts._)&&void 0!==a&&a.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(_workerPorts._||(_workerPorts._=new WeakMap)).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),a=()=>{t.removeEventListener("error",i),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||a()};t.addEventListener("error",i),n.on("test",(e=>{t.removeEventListener("error",i),this.destroyed?a():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",i),this.destroyed)a();else try{r()}catch{this._setupFakeWorker()}}));const r=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void r()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake".concat(PDFWorkerUtil.fakeWorkerId++),a=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(a,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(e=_workerPorts._)||void 0===e||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var t;if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const n=null===(t=_assertClassBrand(PDFWorker,this,_workerPorts)._)||void 0===t?void 0:t.get(e.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={_:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_WorkerTransport_brand=new WeakSet;class WorkerTransport{constructor(e,t,n,a,i){_classPrivateMethodInitSpec(this,_WorkerTransport_brand),_classPrivateFieldInitSpec(this,_methodPromises,new Map),_classPrivateFieldInitSpec(this,_pageCache,new Map),_classPrivateFieldInitSpec(this,_pagePromises,new Map),_classPrivateFieldInitSpec(this,_passwordCapability,null),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this._params=a,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_util.RenderingIntentFlag.DISPLAY,r=_annotation_storage.SerializableEmpty;switch(e){case"any":i=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":i=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:i+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:i+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,r=(i&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return a&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:"".concat(i,"_").concat(r.hash),annotationStorageSerializable:r}}destroy(){var e;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(_passwordCapability,this))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const a of _classPrivateFieldGet(_pageCache,this).values())t.push(a._destroy());_classPrivateFieldGet(_pageCache,this).clear(),_classPrivateFieldGet(_pagePromises,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((()=>{var e;this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldGet(_methodPromises,this).clear(),this.filterFactory.destroy(),null===(e=this._networkStream)||void 0===e||e.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:a}=e;a?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=new _util.PromiseCapability,a=this._fullReader;return a.headersReady.then((()=>{var e;a.isStreamingSupported&&a.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),a.onProgress=e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})});n.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:a}=e;a?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(n,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(_classPrivateFieldSet(_passwordCapability,this,new _util.PromiseCapability),t.onPassword){const a=e=>{e instanceof Error?_classPrivateFieldGet(_passwordCapability,this).reject(e):_classPrivateFieldGet(_passwordCapability,this).resolve({password:e})};try{t.onPassword(a,e.code)}catch(n){_classPrivateFieldGet(_passwordCapability,this).reject(n)}}else _classPrivateFieldGet(_passwordCapability,this).reject(new _util.PasswordException(e.message,e.code));return _classPrivateFieldGet(_passwordCapability,this).promise})),e.on("DataLoaded",(e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(_pageCache,this).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var n;let[a,i,r]=t;if(!this.destroyed&&!this.commonObjs.has(a))switch(i){case"Font":const t=this._params;if("error"in r){const e=r.error;(0,_util.warn)("Error during font loading: ".concat(e)),this.commonObjs.resolve(a,e);break}const o=t.pdfBug&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,s=new _font_loader.FontFaceObject(r,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,inspectFont:o});this.fontLoader.bind(s).catch((t=>e.sendWithPromise("FontFallback",{id:a}))).finally((()=>{!t.fontExtraProperties&&s.data&&(s.data=null),this.commonObjs.resolve(a,s)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(a,r);break;default:throw new Error("Got unknown common object type ".concat(i))}})),e.on("obj",(e=>{let[t,n,a,i]=e;if(this.destroyed)return;const r=_classPrivateFieldGet(_pageCache,this).get(n);if(!r.objs.has(t))switch(a){case"Image":if(r.objs.resolve(t,i),i){let e;if(i.bitmap){const{width:t,height:n}=i;e=t*n*4}else{var o;e=(null===(o=i.data)||void 0===o?void 0:o.length)||0}e>_util.MAX_IMAGE_SIZE_TO_CACHE&&(r._maybeCleanupAfterRender=!0)}break;case"Pattern":r.objs.resolve(t,i);break;default:throw new Error("Got unknown object type ".concat(a))}})),e.on("DocProgress",(e=>{var n;this.destroyed||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var e,t;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:n,transfers:a}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:n,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},a).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=_classPrivateFieldGet(_pagePromises,this).get(t);if(n)return n;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.pdfBug);return _classPrivateFieldGet(_pageCache,this).set(t,n),n}));return _classPrivateFieldGet(_pagePromises,this).set(t,a),a}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"GetFieldObjects")}hasJSActions(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=_classPrivateFieldGet(_methodPromises,this).get(e);if(t)return t;const n=this.messageHandler.sendWithPromise(e,null).then((e=>{var t,n,a,i;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(n=this._fullReader)||void 0===n?void 0:n.filename)&&void 0!==t?t:null,contentLength:null!==(a=null===(i=this._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==a?a:null}}));return _classPrivateFieldGet(_methodPromises,this).set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of _classPrivateFieldGet(_pageCache,this).values())if(!e.cleanup())throw new Error("startCleanup: Page ".concat(e.pageNumber," is currently rendering."));this.commonObjs.clear(),e||this.fontLoader.clear(),_classPrivateFieldGet(_methodPromises,this).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}function _cacheSimpleMethod(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_classPrivateFieldGet(_methodPromises,this).get(e);if(n)return n;const a=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(_methodPromises,this).set(e,a),a}var _objs=new WeakMap,_PDFObjects_brand=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_PDFObjects_brand),_classPrivateFieldInitSpec(this,_objs,Object.create(null))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);return n.capability.promise.then((()=>t(n.data))),null}const n=_classPrivateFieldGet(_objs,this)[e];if(null===n||void 0===n||!n.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){const t=_classPrivateFieldGet(_objs,this)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);n.data=t,n.capability.resolve()}clear(){for(const t in _classPrivateFieldGet(_objs,this)){var e;const{data:n}=_classPrivateFieldGet(_objs,this)[t];null===n||void 0===n||null===(e=n.bitmap)||void 0===e||e.close()}_classPrivateFieldSet(_objs,this,Object.create(null))}}function _ensureObj(e){var t;return(t=_classPrivateFieldGet(_objs,this))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,null),_classPrivateFieldSet(_internalRenderTask,this,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(_internalRenderTask,this).capability.promise}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(_internalRenderTask,this).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=_classPrivateFieldGet(_internalRenderTask,this).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=_classPrivateFieldGet(_internalRenderTask,this);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){let{callback:t,params:n,objs:a,commonObjs:i,annotationCanvasMap:r,operatorList:o,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:d=!1,pdfBug:u=!1,pageColors:h=null}=e;this.callback=t,this.params=n,this.objs=a,this.commonObjs=i,this.annotationCanvasMap=r,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=u,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,n;let{transparency:a=!1,optionalContentConfig:i}=e;if(this.cancelled)return;if(this._canvas){if(_canvasInUse._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_canvasInUse._.add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:r,viewport:o,transform:s,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:o,transparency:a,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(n=this.graphicsReadyCallback)||void 0===n||n.call(this)}cancel(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),_canvasInUse._.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),n))}operatorListChanged(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(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(),_canvasInUse._.delete(this._canvas),this.callback())))}}var _canvasInUse={_:new WeakSet};const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var a=n(1),i=n(4),r=n(8);const o=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=o;var s=new WeakMap,l=new WeakMap,c=new WeakSet;class d{constructor(){_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,s,!1),_classPrivateFieldInitSpec(this,l,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=_classPrivateFieldGet(l,this).get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return _classPrivateFieldGet(l,this).get(e)}remove(e){if(_classPrivateFieldGet(l,this).delete(e),0===_classPrivateFieldGet(l,this).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(const e of _classPrivateFieldGet(l,this).values())if(e instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=_classPrivateFieldGet(l,this).get(e);let a=!1;if(void 0!==n)for(const[i,r]of Object.entries(t))n[i]!==r&&(a=!0,n[i]=r);else a=!0,_classPrivateFieldGet(l,this).set(e,t);a&&_assertClassBrand(c,this,u).call(this),t instanceof i.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return _classPrivateFieldGet(l,this).has(e)}getAll(){return _classPrivateFieldGet(l,this).size>0?(0,a.objectFromMap)(_classPrivateFieldGet(l,this)):null}setAll(e){for(const[t,n]of Object.entries(e))this.setValue(t,n)}get size(){return _classPrivateFieldGet(l,this).size}resetModified(){_classPrivateFieldGet(s,this)&&(_classPrivateFieldSet(s,this,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new p(this)}get serializable(){if(0===_classPrivateFieldGet(l,this).size)return o;const e=new Map,t=new r.MurmurHash3_64,n=[],a=Object.create(null);let s=!1;for(const[r,o]of _classPrivateFieldGet(l,this)){const n=o instanceof i.AnnotationEditor?o.serialize(!1,a):o;n&&(e.set(r,n),t.update("".concat(r,":").concat(JSON.stringify(n))),s||(s=!!n.bitmap))}if(s)for(const i of e.values())i.bitmap&&n.push(i.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:n}:o}}function u(){_classPrivateFieldGet(s,this)||(_classPrivateFieldSet(s,this,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=d;var h=new WeakMap;class p extends d{constructor(e){super(),_classPrivateFieldInitSpec(this,h,void 0);const{map:t,hash:n,transfers:a}=e.serializable,i=structuredClone(t,a?{transfer:a}:null);_classPrivateFieldSet(h,this,{map:i,hash:n,transfers:a})}get print(){(0,a.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(h,this)}}t.PrintAnnotationStorage=p},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var i=n(5),r=n(1),o=n(6),s=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakMap,_=new WeakMap,x=new WeakSet;class w{constructor(e){_classPrivateMethodInitSpec(this,x),_classPrivateFieldInitSpec(this,s,""),_classPrivateFieldInitSpec(this,l,!1),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,h,!1),_classPrivateFieldInitSpec(this,p,null),_classPrivateFieldInitSpec(this,f,this.focusin.bind(this)),_classPrivateFieldInitSpec(this,m,this.focusout.bind(this)),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,y,!1),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,b,!1),_classPrivateFieldInitSpec(this,_,w._zIndex++),this.constructor===w&&(0,r.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:t,rawDims:{pageWidth:n,pageHeight:a,pageX:i,pageY:o}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,a],this.pageTranslation=[i,o];const[C,S]=this.parentDimensions;this.x=e.x/C,this.y=e.y/S,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,r.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new E({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(w._l10nPromise||(w._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)])))),null!==t&&void 0!==t&&t.strings)for(const a of t.strings)w._l10nPromise.set(a,e.get(a));if(-1!==w._borderLineWidth)return;const n=getComputedStyle(document.documentElement);w._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,r.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return _classPrivateFieldGet(b,this)}set _isDraggable(e){var t;_classPrivateFieldSet(b,this,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(_,this)}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(_classPrivateFieldGet(v,this)?_classPrivateFieldSet(v,this,!1):this.parent.setSelected(this))}focusout(e){var t;if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const n=e.relatedTarget;null!==n&&void 0!==n&&n.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,a){const[i,r]=this.parentDimensions;[n,a]=this.screenToPageTranslation(n,a),this.x=(e+n)/i,this.y=(t+a)/r,this.fixAndSetPosition()}translate(e,t){_assertClassBrand(x,this,C).call(this,this.parentDimensions,e,t)}translateInPage(e,t){_assertClassBrand(x,this,C).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){const[n,a]=this.parentDimensions;if(this.x+=e/n,this.y+=t/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:i,y:r}=this;const[o,s]=_assertClassBrand(x,this,S).call(this);i+=o,r+=s,this.div.style.left="".concat((100*i).toFixed(2),"%"),this.div.style.top="".concat((100*r).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[e,t]=this.pageDimensions;let{x:n,y:a,width:i,height:r}=this;switch(i*=e,r*=t,n*=e,a*=t,this.rotation){case 0:n=Math.max(0,Math.min(e-i,n)),a=Math.max(0,Math.min(t-r,a));break;case 90:n=Math.max(0,Math.min(e-r,n)),a=Math.min(t,Math.max(i,a));break;case 180:n=Math.min(e,Math.max(i,n)),a=Math.min(t,Math.max(r,a));break;case 270:n=Math.min(e,Math.max(r,n)),a=Math.max(0,Math.min(t-i,a))}this.x=n/=e,this.y=a/=t;const[o,s]=_assertClassBrand(x,this,S).call(this);n+=o,a+=s;const{style:l}=this.div;l.left="".concat((100*n).toFixed(2),"%"),l.top="".concat((100*a).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(e,t){return A.call(w,e,t,this.parentRotation)}pageTranslationToScreen(e,t){return A.call(w,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,n]}=this,a=t*e,i=n*e;return r.FeatureTest.isCSSRoundSupported?[Math.round(a),Math.round(i)]:[a,i]}setDims(e,t){var n;const[a,i]=this.parentDimensions;this.div.style.width="".concat((100*e/a).toFixed(2),"%"),_classPrivateFieldGet(h,this)||(this.div.style.height="".concat((100*t/i).toFixed(2),"%")),null===(n=_classPrivateFieldGet(c,this))||void 0===n||n.classList.toggle("small",ee.stopPropagation())),e.addEventListener("click",(e=>{e.preventDefault(),this._uiManager.editAltText(this)}),{capture:!0}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(t.preventDefault(),this._uiManager.editAltText(this))})),_assertClassBrand(x,this,T).call(this),this.div.append(e),!w.SMALL_EDITOR_SIZE){const t=40;w.SMALL_EDITOR_SIZE=Math.min(128,Math.round(e.getBoundingClientRect().width*(1+t/100)))}}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:_classPrivateFieldGet(s,this),decorative:_classPrivateFieldGet(l,this)}}set altTextData(e){let{altText:t,decorative:n}=e;_classPrivateFieldGet(s,this)===t&&_classPrivateFieldGet(l,this)===n||(_classPrivateFieldSet(s,this,t),_classPrivateFieldSet(l,this,n),_assertClassBrand(x,this,T).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(f,this)),this.div.addEventListener("focusout",_classPrivateFieldGet(m,this));const[e,t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth="".concat((100*t/e).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*e/t).toFixed(2),"%"));const[n,a]=this.getInitialTranslation();return this.translate(n,a),(0,i.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=r.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(_classPrivateFieldSet(v,this,!0),_assertClassBrand(x,this,P).call(this,e))}moveInDOM(){var e;null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition()}getRect(e,t){const n=this.parentScale,[a,i]=this.pageDimensions,[r,o]=this.pageTranslation,s=e/n,l=t/n,c=this.x*a,d=this.y*i,u=this.width*a,h=this.height*i;switch(this.rotation){case 0:return[c+s+r,i-d-l-h+o,c+s+u+r,i-d-l+o];case 90:return[c+l+r,i-d+s+o,c+l+h+r,i-d+s+u+o];case 180:return[c-s-u+r,i-d+l+o,c-s+r,i-d+l+h+o];case 270:return[c-l-h+r,i-d-s-u+o,c-l+r,i-d-s+o];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,a,i,r]=e,o=i-n,s=r-a;switch(this.rotation){case 0:return[n,t-r,o,s];case 90:return[n,t-a,s,o];case 180:return[i,t-a,o,s];case 270:return[i,t-r,s,o];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(y,this,!0)}disableEditMode(){_classPrivateFieldSet(y,this,!1)}isInEditMode(){return _classPrivateFieldGet(y,this)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e,t;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(f,this)),null===(t=this.div)||void 0===t||t.addEventListener("focusout",_classPrivateFieldGet(m,this))}serialize(){(0,r.unreachable)("An editor must be serializable")}static deserialize(e,t,n){const a=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n});a.rotation=e.rotation;const[i,r]=a.pageDimensions,[o,s,l,c]=a.getRectInCurrentCoords(e.rect,r);return a.x=o/i,a.y=s/r,a.width=l/i,a.height=c/r,a}remove(){var e;this.div.removeEventListener("focusin",_classPrivateFieldGet(f,this)),this.div.removeEventListener("focusout",_classPrivateFieldGet(m,this)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null===(e=_classPrivateFieldGet(c,this))||void 0===e||e.remove(),_classPrivateFieldSet(c,this,null),_classPrivateFieldSet(d,this,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(_assertClassBrand(x,this,j).call(this),_classPrivateFieldGet(p,this).classList.remove("hidden"))}select(){var e;this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e,t,n;null===(e=_classPrivateFieldGet(p,this))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(n=this.div)&&void 0!==n&&n.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).hidden=!0)}enableEditing(){_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(g,this)}set isEditing(e){_classPrivateFieldSet(g,this,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){_classPrivateFieldSet(h,this,!0);const n=e/t,{style:a}=this.div;a.aspectRatio=n,a.height="auto"}static get MIN_SIZE(){return 16}}function C(e,t,n){let[a,i]=e;[t,n]=this.screenToPageTranslation(t,n),this.x+=t/a,this.y+=n/i,this.fixAndSetPosition()}function S(){const[e,t]=this.parentDimensions,{_borderLineWidth:n}=a,i=n/e,r=n/t;switch(this.rotation){case 90:return[-i,r];case 180:return[i,r];case 270:return[i,-r];default:return[-i,-r]}}function A(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function k(e){switch(e){case 90:{const[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}function j(){if(_classPrivateFieldGet(p,this))return;_classPrivateFieldSet(p,this,document.createElement("div")),_classPrivateFieldGet(p,this).classList.add("resizers");const e=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const t of e){const e=document.createElement("div");_classPrivateFieldGet(p,this).append(e),e.classList.add("resizer",t),e.addEventListener("pointerdown",_assertClassBrand(x,this,I).bind(this,t)),e.addEventListener("contextmenu",o.noContextMenu)}this.div.prepend(_classPrivateFieldGet(p,this))}function I(e,t){t.preventDefault();const{isMac:n}=r.FeatureTest.platform;if(0!==t.button||t.ctrlKey&&n)return;const a=_assertClassBrand(x,this,F).bind(this,e),i=this._isDraggable;this._isDraggable=!1;const o={passive:!0,capture:!0};window.addEventListener("pointermove",a,o);const s=this.x,l=this.y,c=this.width,d=this.height,u=this.parent.div.style.cursor,h=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const p=()=>{this._isDraggable=i,window.removeEventListener("pointerup",p),window.removeEventListener("blur",p),window.removeEventListener("pointermove",a,o),this.parent.div.style.cursor=u,this.div.style.cursor=h;const e=this.x,t=this.y,n=this.width,r=this.height;e===s&&t===l&&n===c&&r===d||this.addCommands({cmd:()=>{this.width=n,this.height=r,this.x=e,this.y=t;const[a,i]=this.parentDimensions;this.setDims(a*n,i*r),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=d,this.x=s,this.y=l;const[e,t]=this.parentDimensions;this.setDims(e*c,t*d),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",p),window.addEventListener("blur",p)}function F(e,t){const[n,i]=this.parentDimensions,r=this.x,o=this.y,s=this.width,l=this.height,c=a.MIN_SIZE/n,d=a.MIN_SIZE/i,u=e=>Math.round(1e4*e)/1e4,h=_assertClassBrand(x,this,k).call(this,this.rotation),p=(e,t)=>[h[0]*e+h[2]*t,h[1]*e+h[3]*t],f=_assertClassBrand(x,this,k).call(this,360-this.rotation);let m,v,g=!1,y=!1;switch(e){case"topLeft":g=!0,m=(e,t)=>[0,0],v=(e,t)=>[e,t];break;case"topMiddle":m=(e,t)=>[e/2,0],v=(e,t)=>[e/2,t];break;case"topRight":g=!0,m=(e,t)=>[e,0],v=(e,t)=>[0,t];break;case"middleRight":y=!0,m=(e,t)=>[e,t/2],v=(e,t)=>[0,t/2];break;case"bottomRight":g=!0,m=(e,t)=>[e,t],v=(e,t)=>[0,0];break;case"bottomMiddle":m=(e,t)=>[e/2,t],v=(e,t)=>[e/2,0];break;case"bottomLeft":g=!0,m=(e,t)=>[0,t],v=(e,t)=>[e,0];break;case"middleLeft":y=!0,m=(e,t)=>[0,t/2],v=(e,t)=>[e,t/2]}const b=m(s,l),_=v(s,l);let w=p(..._);const C=u(r+w[0]),S=u(o+w[1]);let A=1,j=1,[I,F]=this.screenToPageTranslation(t.movementX,t.movementY);var T,P;if([I,F]=(T=I/n,P=F/i,[f[0]*T+f[2]*P,f[1]*T+f[3]*P]),g){const e=Math.hypot(s,l);A=j=Math.max(Math.min(Math.hypot(_[0]-b[0]-I,_[1]-b[1]-F)/e,1/s,1/l),c/s,d/l)}else y?A=Math.max(c,Math.min(1,Math.abs(_[0]-b[0]-I)))/s:j=Math.max(d,Math.min(1,Math.abs(_[1]-b[1]-F)))/l;const E=u(s*A),O=u(l*j);w=p(...v(E,O));const N=C-w[0],R=S-w[1];this.width=E,this.height=O,this.x=N,this.y=R,this.setDims(n*E,i*O),this.fixAndSetPosition()}async function T(){const e=_classPrivateFieldGet(c,this);if(!e)return;var t;if(!_classPrivateFieldGet(s,this)&&!_classPrivateFieldGet(l,this))return e.classList.remove("done"),void(null===(t=_classPrivateFieldGet(d,this))||void 0===t||t.remove());a._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}));let n=_classPrivateFieldGet(d,this);if(!n){_classPrivateFieldSet(d,this,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip");const t=n.id="alt-text-tooltip-".concat(this.id);e.setAttribute("aria-describedby",t);const a=100;e.addEventListener("mouseenter",(()=>{_classPrivateFieldSet(u,this,setTimeout((()=>{_classPrivateFieldSet(u,this,null),_classPrivateFieldGet(d,this).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),a))})),e.addEventListener("mouseleave",(()=>{var e;clearTimeout(_classPrivateFieldGet(u,this)),_classPrivateFieldSet(u,this,null),null===(e=_classPrivateFieldGet(d,this))||void 0===e||e.classList.remove("show")}))}e.classList.add("done"),n.innerText=_classPrivateFieldGet(l,this)?await a._l10nPromise.get("editor_alt_text_decorative_tooltip"):_classPrivateFieldGet(s,this),n.parentNode||e.append(n)}function P(e){if(!this._isDraggable)return;const t=this._uiManager.isSelected(this);let n,a;this._uiManager.setUpDragSession(),t&&(n={passive:!0,capture:!0},a=e=>{const[t,n]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,n)},window.addEventListener("pointermove",a,n));const i=()=>{if(window.removeEventListener("pointerup",i),window.removeEventListener("blur",i),t&&window.removeEventListener("pointermove",a,n),_classPrivateFieldSet(v,this,!1),!this._uiManager.endDragSession()){const{isMac:t}=r.FeatureTest.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",i),window.addEventListener("blur",i)}a=w,_defineProperty(w,"_borderLineWidth",-1),_defineProperty(w,"_colorManager",new i.ColorManager),_defineProperty(w,"_zIndex",1),_defineProperty(w,"SMALL_EDITOR_SIZE",0),t.AnnotationEditor=w;class E extends w{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const a of n)t.addEventListener(a,e[a].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var i=n(1),r=n(6),o=new WeakMap;class s{constructor(){_classPrivateFieldInitSpec(this,o,0)}getId(){var e,t;return"".concat(i.AnnotationEditorPrefix).concat((_classPrivateFieldSet(o,this,(e=_classPrivateFieldGet(o,this),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakSet;class h{constructor(){_classPrivateMethodInitSpec(this,u),_classPrivateFieldInitSpec(this,l,(0,i.getUuid)()),_classPrivateFieldInitSpec(this,c,0),_classPrivateFieldInitSpec(this,d,null)}static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,';const n=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));return(0,i.shadow)(this,"_isSVGFittingCanvas",n)}async getFromFile(e){const{lastModified:t,name:n,size:a,type:i}=e;return _assertClassBrand(u,this,p).call(this,"".concat(t,"_").concat(n,"_").concat(a,"_").concat(i),e)}async getFromUrl(e){return _assertClassBrand(u,this,p).call(this,e,e)}async getFromId(e){_classPrivateFieldGet(d,this)||_classPrivateFieldSet(d,this,new Map);const t=_classPrivateFieldGet(d,this).get(e);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=_classPrivateFieldGet(d,this).get(e);return null!==t&&void 0!==t&&t.isSvg?t.svgUrl:null}deleteId(e){_classPrivateFieldGet(d,this)||_classPrivateFieldSet(d,this,new Map);const t=_classPrivateFieldGet(d,this).get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith("image_".concat(_classPrivateFieldGet(l,this),"_"))}}async function p(e,t){var n;_classPrivateFieldGet(d,this)||_classPrivateFieldSet(d,this,new Map);let i=_classPrivateFieldGet(d,this).get(e);if(null===i)return null;if(null!==(n=i)&&void 0!==n&&n.bitmap)return i.refCounter+=1,i;try{var r,o;let e;if(i||(i={bitmap:null,id:"image_".concat(_classPrivateFieldGet(l,this),"_").concat((_classPrivateFieldSet(c,this,(r=_classPrivateFieldGet(c,this),o=r++,r)),o)),refCounter:0,isSvg:!1}),"string"===typeof t){i.url=t;const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);e=await n.blob()}else e=i.file=t;if("image/svg+xml"===e.type){const t=a._isSVGFittingCanvas,n=new FileReader,r=new Image,o=new Promise(((e,a)=>{r.onload=()=>{i.bitmap=r,i.isSvg=!0,e()},n.onload=async()=>{const e=i.svgUrl=n.result;r.src=await t?"".concat(e,"#svgView(preserveAspectRatio(none))"):e},r.onerror=n.onerror=a}));n.readAsDataURL(e),await o}else i.bitmap=await createImageBitmap(e);i.refCounter=1}catch(s){console.error(s),i=null}return _classPrivateFieldGet(d,this).set(e,i),i&&_classPrivateFieldGet(d,this).set(i.id,i),i}a=h;var f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakMap;class y{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,f,[]),_classPrivateFieldInitSpec(this,m,!1),_classPrivateFieldInitSpec(this,v,void 0),_classPrivateFieldInitSpec(this,g,-1),_classPrivateFieldSet(v,this,e)}add(e){let{cmd:t,undo:n,mustExec:a,type:i=NaN,overwriteIfSameType:r=!1,keepUndo:o=!1}=e;if(a&&t(),_classPrivateFieldGet(m,this))return;const s={cmd:t,undo:n,type:i};if(-1===_classPrivateFieldGet(g,this))return _classPrivateFieldGet(f,this).length>0&&(_classPrivateFieldGet(f,this).length=0),_classPrivateFieldSet(g,this,0),void _classPrivateFieldGet(f,this).push(s);if(r&&_classPrivateFieldGet(f,this)[_classPrivateFieldGet(g,this)].type===i)return o&&(s.undo=_classPrivateFieldGet(f,this)[_classPrivateFieldGet(g,this)].undo),void(_classPrivateFieldGet(f,this)[_classPrivateFieldGet(g,this)]=s);const l=_classPrivateFieldGet(g,this)+1;l===_classPrivateFieldGet(v,this)?_classPrivateFieldGet(f,this).splice(0,1):(_classPrivateFieldSet(g,this,l),l<_classPrivateFieldGet(f,this).length&&_classPrivateFieldGet(f,this).splice(l)),_classPrivateFieldGet(f,this).push(s)}undo(){-1!==_classPrivateFieldGet(g,this)&&(_classPrivateFieldSet(m,this,!0),_classPrivateFieldGet(f,this)[_classPrivateFieldGet(g,this)].undo(),_classPrivateFieldSet(m,this,!1),_classPrivateFieldSet(g,this,_classPrivateFieldGet(g,this)-1))}redo(){_classPrivateFieldGet(g,this)<_classPrivateFieldGet(f,this).length-1&&(_classPrivateFieldSet(g,this,_classPrivateFieldGet(g,this)+1),_classPrivateFieldSet(m,this,!0),_classPrivateFieldGet(f,this)[_classPrivateFieldGet(g,this)].cmd(),_classPrivateFieldSet(m,this,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(g,this)}hasSomethingToRedo(){return _classPrivateFieldGet(g,this)<_classPrivateFieldGet(f,this).length-1}destroy(){_classPrivateFieldSet(f,this,null)}}t.CommandManager=y;var b=new WeakSet;class _{constructor(e){_classPrivateMethodInitSpec(this,b),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=i.FeatureTest.platform;for(const[n,a,i={}]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),{callback:a,options:i}),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,{callback:a,options:i}),this.allKeys.add(e.split("+").at(-1)))}}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(_assertClassBrand(b,this,x).call(this,t));if(!n)return;const{callback:a,options:{bubbles:i=!1,args:r=[],checker:o=null}}=n;o&&!o(e,t)||(a.bind(e,...r)(),i||(t.stopPropagation(),t.preventDefault()))}}function x(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=_;class w{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,r.getColorValues)(e),(0,i.shadow)(this,"_colors",e)}convert(e){const t=(0,r.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,a]of this._colors)if(a.every(((e,n)=>e===t[n])))return w._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?i.Util.makeHexColor(...t):e}}_defineProperty(w,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=w;var C=new WeakMap,S=new WeakMap,A=new WeakMap,k=new WeakMap,j=new WeakMap,I=new WeakMap,F=new WeakMap,T=new WeakMap,P=new WeakMap,E=new WeakMap,O=new WeakMap,N=new WeakMap,R=new WeakMap,M=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,W=new WeakMap,z=new WeakMap,U=new WeakMap,H=new WeakMap,q=new WeakMap,V=new WeakMap,G=new WeakMap,$=new WeakMap,X=new WeakMap,K=new WeakMap,Y=new WeakMap,J=new WeakMap,Z=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ae=new WeakSet;class ie{static get _keyboardManager(){const e=ie.prototype,t=e=>{const{activeElement:t}=document;return t&&_classPrivateFieldGet(te,e).contains(t)&&e.hasSomethingToControl()},n=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new _([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:t}]]))}constructor(e,t,n,a,o,l){_classPrivateMethodInitSpec(this,ae),_classPrivateFieldInitSpec(this,C,null),_classPrivateFieldInitSpec(this,S,new Map),_classPrivateFieldInitSpec(this,A,new Map),_classPrivateFieldInitSpec(this,k,null),_classPrivateFieldInitSpec(this,j,null),_classPrivateFieldInitSpec(this,I,new y),_classPrivateFieldInitSpec(this,F,0),_classPrivateFieldInitSpec(this,T,new Set),_classPrivateFieldInitSpec(this,P,null),_classPrivateFieldInitSpec(this,E,null),_classPrivateFieldInitSpec(this,O,new Set),_classPrivateFieldInitSpec(this,N,null),_classPrivateFieldInitSpec(this,R,new s),_classPrivateFieldInitSpec(this,M,!1),_classPrivateFieldInitSpec(this,D,!1),_classPrivateFieldInitSpec(this,L,null),_classPrivateFieldInitSpec(this,B,i.AnnotationEditorType.NONE),_classPrivateFieldInitSpec(this,W,new Set),_classPrivateFieldInitSpec(this,z,null),_classPrivateFieldInitSpec(this,U,this.blur.bind(this)),_classPrivateFieldInitSpec(this,H,this.focus.bind(this)),_classPrivateFieldInitSpec(this,q,this.copy.bind(this)),_classPrivateFieldInitSpec(this,V,this.cut.bind(this)),_classPrivateFieldInitSpec(this,G,this.paste.bind(this)),_classPrivateFieldInitSpec(this,$,this.keydown.bind(this)),_classPrivateFieldInitSpec(this,X,this.onEditingAction.bind(this)),_classPrivateFieldInitSpec(this,K,this.onPageChanging.bind(this)),_classPrivateFieldInitSpec(this,Y,this.onScaleChanging.bind(this)),_classPrivateFieldInitSpec(this,J,this.onRotationChanging.bind(this)),_classPrivateFieldInitSpec(this,Z,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}),_classPrivateFieldInitSpec(this,Q,[0,0]),_classPrivateFieldInitSpec(this,ee,null),_classPrivateFieldInitSpec(this,te,null),_classPrivateFieldInitSpec(this,ne,null),_classPrivateFieldSet(te,this,e),_classPrivateFieldSet(ne,this,t),_classPrivateFieldSet(k,this,n),this._eventBus=a,this._eventBus._on("editingaction",_classPrivateFieldGet(X,this)),this._eventBus._on("pagechanging",_classPrivateFieldGet(K,this)),this._eventBus._on("scalechanging",_classPrivateFieldGet(Y,this)),this._eventBus._on("rotationchanging",_classPrivateFieldGet(J,this)),_classPrivateFieldSet(j,this,o.annotationStorage),_classPrivateFieldSet(N,this,o.filterFactory),_classPrivateFieldSet(z,this,l),this.viewParameters={realScale:r.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){_assertClassBrand(ae,this,le).call(this),_assertClassBrand(ae,this,oe).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(X,this)),this._eventBus._off("pagechanging",_classPrivateFieldGet(K,this)),this._eventBus._off("scalechanging",_classPrivateFieldGet(Y,this)),this._eventBus._off("rotationchanging",_classPrivateFieldGet(J,this));for(const e of _classPrivateFieldGet(A,this).values())e.destroy();_classPrivateFieldGet(A,this).clear(),_classPrivateFieldGet(S,this).clear(),_classPrivateFieldGet(O,this).clear(),_classPrivateFieldSet(C,this,null),_classPrivateFieldGet(W,this).clear(),_classPrivateFieldGet(I,this).destroy(),_classPrivateFieldGet(k,this).destroy()}get hcmFilter(){return(0,i.shadow)(this,"hcmFilter",_classPrivateFieldGet(z,this)?_classPrivateFieldGet(N,this).addHCMFilter(_classPrivateFieldGet(z,this).foreground,_classPrivateFieldGet(z,this).background):"none")}get direction(){return(0,i.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(te,this)).direction)}editAltText(e){var t;null===(t=_classPrivateFieldGet(k,this))||void 0===t||t.editAltText(this,e)}onPageChanging(e){let{pageNumber:t}=e;_classPrivateFieldSet(F,this,t-1)}focusMainContainer(){_classPrivateFieldGet(te,this).focus()}findParent(e,t){for(const n of _classPrivateFieldGet(A,this).values()){const{x:a,y:i,width:r,height:o}=n.div.getBoundingClientRect();if(e>=a&&e<=a+r&&t>=i&&t<=i+o)return n}return null}disableUserSelect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(ne,this).classList.toggle("noUserSelect",e)}addShouldRescale(e){_classPrivateFieldGet(O,this).add(e)}removeShouldRescale(e){_classPrivateFieldGet(O,this).delete(e)}onScaleChanging(e){let{scale:t}=e;this.commitOrRemove(),this.viewParameters.realScale=t*r.PixelsPerInch.PDF_TO_CSS_UNITS;for(const n of _classPrivateFieldGet(O,this))n.onScaleChanging()}onRotationChanging(e){let{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!_classPrivateFieldGet(j,this)||_classPrivateFieldGet(j,this).has(e.id)||_classPrivateFieldGet(j,this).setValue(e.id,e)}blur(){if(!this.hasSelection)return;const{activeElement:e}=document;for(const t of _classPrivateFieldGet(W,this))if(t.div.contains(e)){_classPrivateFieldSet(L,this,[t,e]),t._focusEventsAllowed=!1;break}}focus(){if(!_classPrivateFieldGet(L,this))return;const[e,t]=_classPrivateFieldGet(L,this);_classPrivateFieldSet(L,this,null),t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}addEditListeners(){_assertClassBrand(ae,this,se).call(this),_assertClassBrand(ae,this,ce).call(this)}removeEditListeners(){_assertClassBrand(ae,this,le).call(this),_assertClassBrand(ae,this,de).call(this)}copy(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(C,this))||void 0===t||t.commitOrRemove(),!this.hasSelection)return;const n=[];for(const a of _classPrivateFieldGet(W,this)){const e=a.serialize(!0);e&&n.push(e)}0!==n.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:t}=e;for(const i of t.items)for(const e of _classPrivateFieldGet(E,this))if(e.isHandlingMimeForPasting(i.type))return void e.paste(i,this.currentLayer);let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(r){return void(0,i.warn)('paste: "'.concat(r.message,'".'))}if(!Array.isArray(n))return;this.unselectAll();const a=this.currentLayer;try{const e=[];for(const r of n){const t=a.deserialize(r);if(!t)return;e.push(t)}const t=()=>{for(const t of e)_assertClassBrand(ae,this,me).call(this,t);_assertClassBrand(ae,this,ge).call(this,e)},i=()=>{for(const t of e)t.remove()};this.addCommands({cmd:t,undo:i,mustExec:!0})}catch(r){(0,i.warn)('paste: "'.concat(r.message,'".'))}}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||ie._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_assertClassBrand(ae,this,re).call(this),_assertClassBrand(ae,this,se).call(this),_assertClassBrand(ae,this,ce).call(this),_assertClassBrand(ae,this,ue).call(this,{isEditing:_classPrivateFieldGet(B,this)!==i.AnnotationEditorType.NONE,isEmpty:_assertClassBrand(ae,this,ve).call(this),hasSomethingToUndo:_classPrivateFieldGet(I,this).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(I,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(_assertClassBrand(ae,this,oe).call(this),_assertClassBrand(ae,this,le).call(this),_assertClassBrand(ae,this,de).call(this),_assertClassBrand(ae,this,ue).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!_classPrivateFieldGet(E,this)){_classPrivateFieldSet(E,this,e);for(const e of _classPrivateFieldGet(E,this))_assertClassBrand(ae,this,he).call(this,e.defaultPropertiesToUpdate)}}getId(){return _classPrivateFieldGet(R,this).getId()}get currentLayer(){return _classPrivateFieldGet(A,this).get(_classPrivateFieldGet(F,this))}getLayer(e){return _classPrivateFieldGet(A,this).get(e)}get currentPageIndex(){return _classPrivateFieldGet(F,this)}addLayer(e){_classPrivateFieldGet(A,this).set(e.pageIndex,e),_classPrivateFieldGet(M,this)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(A,this).delete(e.pageIndex)}updateMode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(B,this)!==e){if(_classPrivateFieldSet(B,this,e),e===i.AnnotationEditorType.NONE)return this.setEditingState(!1),void _assertClassBrand(ae,this,fe).call(this);this.setEditingState(!0),_assertClassBrand(ae,this,pe).call(this),this.unselectAll();for(const t of _classPrivateFieldGet(A,this).values())t.updateMode(e);if(t)for(const e of _classPrivateFieldGet(S,this).values())if(e.annotationElementId===t){this.setSelected(e),e.enterInEditMode();break}}}updateToolbar(e){e!==_classPrivateFieldGet(B,this)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(_classPrivateFieldGet(E,this))if(e!==i.AnnotationEditorParamsType.CREATE){for(const n of _classPrivateFieldGet(W,this))n.updateParams(e,t);for(const n of _classPrivateFieldGet(E,this))n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(D,this)!==e){_classPrivateFieldSet(D,this,e);for(const t of _classPrivateFieldGet(A,this).values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}getEditors(e){const t=[];for(const n of _classPrivateFieldGet(S,this).values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return _classPrivateFieldGet(S,this).get(e)}addEditor(e){_classPrivateFieldGet(S,this).set(e.id,e)}removeEditor(e){var t;_classPrivateFieldGet(S,this).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(T,this).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(j,this))||void 0===t||t.remove(e.id)}addDeletedAnnotationElement(e){_classPrivateFieldGet(T,this).add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return _classPrivateFieldGet(T,this).has(e)}removeDeletedAnnotationElement(e){_classPrivateFieldGet(T,this).delete(e.annotationElementId),e.deleted=!1}setActiveEditor(e){_classPrivateFieldGet(C,this)!==e&&(_classPrivateFieldSet(C,this,e),e&&_assertClassBrand(ae,this,he).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(W,this).has(e))return _classPrivateFieldGet(W,this).delete(e),e.unselect(),void _assertClassBrand(ae,this,ue).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(W,this).add(e),e.select(),_assertClassBrand(ae,this,he).call(this,e.propertiesToUpdate),_assertClassBrand(ae,this,ue).call(this,{hasSelectedEditor:!0})}setSelected(e){for(const t of _classPrivateFieldGet(W,this))t!==e&&t.unselect();_classPrivateFieldGet(W,this).clear(),_classPrivateFieldGet(W,this).add(e),e.select(),_assertClassBrand(ae,this,he).call(this,e.propertiesToUpdate),_assertClassBrand(ae,this,ue).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(W,this).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(W,this).delete(e),_assertClassBrand(ae,this,ue).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(W,this).size}undo(){_classPrivateFieldGet(I,this).undo(),_assertClassBrand(ae,this,ue).call(this,{hasSomethingToUndo:_classPrivateFieldGet(I,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_assertClassBrand(ae,this,ve).call(this)})}redo(){_classPrivateFieldGet(I,this).redo(),_assertClassBrand(ae,this,ue).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(I,this).hasSomethingToRedo(),isEmpty:_assertClassBrand(ae,this,ve).call(this)})}addCommands(e){_classPrivateFieldGet(I,this).add(e),_assertClassBrand(ae,this,ue).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_assertClassBrand(ae,this,ve).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[..._classPrivateFieldGet(W,this)];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)_assertClassBrand(ae,this,me).call(this,t)},mustExec:!0})}commitOrRemove(){var e;null===(e=_classPrivateFieldGet(C,this))||void 0===e||e.commitOrRemove()}hasSomethingToControl(){return _classPrivateFieldGet(C,this)||this.hasSelection}selectAll(){for(const e of _classPrivateFieldGet(W,this))e.commit();_assertClassBrand(ae,this,ge).call(this,_classPrivateFieldGet(S,this).values())}unselectAll(){if(_classPrivateFieldGet(C,this))_classPrivateFieldGet(C,this).commitOrRemove();else if(this.hasSelection){for(const e of _classPrivateFieldGet(W,this))e.unselect();_classPrivateFieldGet(W,this).clear(),_assertClassBrand(ae,this,ue).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),!this.hasSelection)return;_classPrivateFieldGet(Q,this)[0]+=e,_classPrivateFieldGet(Q,this)[1]+=t;const[n,a]=_classPrivateFieldGet(Q,this),i=[..._classPrivateFieldGet(W,this)];_classPrivateFieldGet(ee,this)&&clearTimeout(_classPrivateFieldGet(ee,this)),_classPrivateFieldSet(ee,this,setTimeout((()=>{_classPrivateFieldSet(ee,this,null),_classPrivateFieldGet(Q,this)[0]=_classPrivateFieldGet(Q,this)[1]=0,this.addCommands({cmd:()=>{for(const e of i)_classPrivateFieldGet(S,this).has(e.id)&&e.translateInPage(n,a)},undo:()=>{for(const e of i)_classPrivateFieldGet(S,this).has(e.id)&&e.translateInPage(-n,-a)},mustExec:!1})}),1e3));for(const r of i)r.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),_classPrivateFieldSet(P,this,new Map);for(const e of _classPrivateFieldGet(W,this))_classPrivateFieldGet(P,this).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!_classPrivateFieldGet(P,this))return!1;this.disableUserSelect(!1);const e=_classPrivateFieldGet(P,this);_classPrivateFieldSet(P,this,null);let t=!1;for(const[{x:a,y:i,pageIndex:r},o]of e)o.newX=a,o.newY=i,o.newPageIndex=r,t||(t=a!==o.savedX||i!==o.savedY||r!==o.savedPageIndex);if(!t)return!1;const n=(e,t,n,a)=>{if(_classPrivateFieldGet(S,this).has(e.id)){const i=_classPrivateFieldGet(A,this).get(a);i?e._setParentAndPosition(i,t,n):(e.pageIndex=a,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(const[t,{newX:a,newY:i,newPageIndex:r}]of e)n(t,a,i,r)},undo:()=>{for(const[t,{savedX:a,savedY:i,savedPageIndex:r}]of e)n(t,a,i,r)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(_classPrivateFieldGet(P,this))for(const n of _classPrivateFieldGet(P,this).keys())n.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return _classPrivateFieldGet(C,this)===e}getActive(){return _classPrivateFieldGet(C,this)}getMode(){return _classPrivateFieldGet(B,this)}get imageManager(){return(0,i.shadow)(this,"imageManager",new h)}}function re(){window.addEventListener("focus",_classPrivateFieldGet(H,this)),window.addEventListener("blur",_classPrivateFieldGet(U,this))}function oe(){window.removeEventListener("focus",_classPrivateFieldGet(H,this)),window.removeEventListener("blur",_classPrivateFieldGet(U,this))}function se(){window.addEventListener("keydown",_classPrivateFieldGet($,this),{capture:!0})}function le(){window.removeEventListener("keydown",_classPrivateFieldGet($,this),{capture:!0})}function ce(){document.addEventListener("copy",_classPrivateFieldGet(q,this)),document.addEventListener("cut",_classPrivateFieldGet(V,this)),document.addEventListener("paste",_classPrivateFieldGet(G,this))}function de(){document.removeEventListener("copy",_classPrivateFieldGet(q,this)),document.removeEventListener("cut",_classPrivateFieldGet(V,this)),document.removeEventListener("paste",_classPrivateFieldGet(G,this))}function ue(e){Object.entries(e).some((e=>{let[t,n]=e;return _classPrivateFieldGet(Z,this)[t]!==n}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(Z,this),e)})}function he(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function pe(){if(!_classPrivateFieldGet(M,this)){_classPrivateFieldSet(M,this,!0);for(const e of _classPrivateFieldGet(A,this).values())e.enable()}}function fe(){if(this.unselectAll(),_classPrivateFieldGet(M,this)){_classPrivateFieldSet(M,this,!1);for(const e of _classPrivateFieldGet(A,this).values())e.disable()}}function me(e){const t=_classPrivateFieldGet(A,this).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function ve(){if(0===_classPrivateFieldGet(S,this).size)return!0;if(1===_classPrivateFieldGet(S,this).size)for(const e of _classPrivateFieldGet(S,this).values())return e.isEmpty();return!1}function ge(e){_classPrivateFieldGet(W,this).clear();for(const t of e)t.isEmpty()||(_classPrivateFieldGet(W,this).add(t),t.select());_assertClassBrand(ae,this,ue).call(this,{hasSelectedEditor:!0})}_defineProperty(ie,"TRANSLATE_SMALL",1),_defineProperty(ie,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=ie},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const a=window.getComputedStyle(t).color;e.set(n,L(a))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:a,d:i,e:r,f:o}=e.getTransform();return[t,n,a,i,r,o]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:a,d:i,e:r,f:o}=e.getTransform().invertSelf();return[t,n,a,i,r,o]},t.getFilenameFromUrl=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(R(e))return(0,r.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let i=n.exec(a[1])||n.exec(a[2])||n.exec(a[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch{}return i||t},t.getRGB=L,t.getXfaPageViewport=function(e,t){let{scale:n=1,rotation:a=0}=t;const{width:i,height:r}=e.attributes.style,o=[0,0,parseInt(i),parseInt(r)];return new O({viewBox:o,scale:n,rotation:a})},t.isDataScheme=R,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=M,t.loadScript=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((n,a)=>{const i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),n(e)},i.onerror=function(){a(new Error("Cannot load script at: ".concat(i.src)))},(document.head||document.documentElement).append(i)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof O){const{pageWidth:a,pageHeight:i}=t.rawDims,{style:o}=e,s=r.FeatureTest.isCSSRoundSupported,l="var(--scale-factor) * ".concat(a,"px"),c="var(--scale-factor) * ".concat(i,"px"),d=s?"round(".concat(l,", 1px)"):"calc(".concat(l,")"),u=s?"round(".concat(c,", 1px)"):"calc(".concat(c,")");n&&t.rotation%180!==0?(o.width=u,o.height=d):(o.width=d,o.height=u)}a&&e.setAttribute("data-main-rotation",t.rotation)};var i=n(7),r=n(1);const o="http://www.w3.org/2000/svg";class s{}a=s,_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",a.CSS/a.PDF),t.PixelsPerInch=s;var l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakSet;class _ extends i.BaseFilterFactory{constructor(){let{docId:e,ownerDocument:t=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,l,void 0),_classPrivateFieldInitSpec(this,c,void 0),_classPrivateFieldInitSpec(this,d,void 0),_classPrivateFieldInitSpec(this,u,void 0),_classPrivateFieldInitSpec(this,h,void 0),_classPrivateFieldInitSpec(this,p,void 0),_classPrivateFieldInitSpec(this,f,void 0),_classPrivateFieldInitSpec(this,m,void 0),_classPrivateFieldInitSpec(this,v,void 0),_classPrivateFieldInitSpec(this,g,void 0),_classPrivateFieldInitSpec(this,y,0),_classPrivateFieldSet(d,this,e),_classPrivateFieldSet(u,this,t)}addFilter(e){var t,n;if(!e)return"none";let a,i,r,o,s=_classPrivateGetter(b,this,x).get(e);if(s)return s;if(1===e.length){const t=e[0],n=new Array(256);for(let e=0;e<256;e++)n[e]=t[e]/255;o=a=i=r=n.join(",")}else{const[t,n,s]=e,l=new Array(256),c=new Array(256),d=new Array(256);for(let e=0;e<256;e++)l[e]=t[e]/255,c[e]=n[e]/255,d[e]=s[e]/255;a=l.join(","),i=c.join(","),r=d.join(","),o="".concat(a).concat(i).concat(r)}if(s=_classPrivateGetter(b,this,x).get(o),s)return _classPrivateGetter(b,this,x).set(e,s),s;const l="g_".concat(_classPrivateFieldGet(d,this),"_transfer_map_").concat((_classPrivateFieldSet(y,this,(t=_classPrivateFieldGet(y,this),n=t++,t)),n)),c="url(#".concat(l,")");_classPrivateGetter(b,this,x).set(e,c),_classPrivateGetter(b,this,x).set(o,c);const u=_assertClassBrand(b,this,S).call(this,l);return _assertClassBrand(b,this,k).call(this,a,i,r,u),c}addHCMFilter(e,t){var n;const a="".concat(e,"-").concat(t);if(_classPrivateFieldGet(p,this)===a)return _classPrivateFieldGet(f,this);if(_classPrivateFieldSet(p,this,a),_classPrivateFieldSet(f,this,"none"),null===(n=_classPrivateFieldGet(h,this))||void 0===n||n.remove(),!e||!t)return _classPrivateFieldGet(f,this);const i=_assertClassBrand(b,this,j).call(this,e);e=r.Util.makeHexColor(...i);const o=_assertClassBrand(b,this,j).call(this,t);if(t=r.Util.makeHexColor(...o),_classPrivateGetter(b,this,w).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(f,this);const s=new Array(256);for(let r=0;r<=255;r++){const e=r/255;s[r]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}const l=s.join(","),c="g_".concat(_classPrivateFieldGet(d,this),"_hcm_filter"),u=_classPrivateFieldSet(m,this,_assertClassBrand(b,this,S).call(this,c));_assertClassBrand(b,this,k).call(this,l,l,l,u),_assertClassBrand(b,this,C).call(this,u);const v=(e,t)=>{const n=i[e]/255,a=o[e]/255,r=new Array(t+1);for(let i=0;i<=t;i++)r[i]=n+i/t*(a-n);return r.join(",")};return _assertClassBrand(b,this,k).call(this,v(0,5),v(1,5),v(2,5),u),_classPrivateFieldSet(f,this,"url(#".concat(c,")")),_classPrivateFieldGet(f,this)}addHighlightHCMFilter(e,t,n,a){var i;const r="".concat(e,"-").concat(t,"-").concat(n,"-").concat(a);if(_classPrivateFieldGet(v,this)===r)return _classPrivateFieldGet(g,this);if(_classPrivateFieldSet(v,this,r),_classPrivateFieldSet(g,this,"none"),null===(i=_classPrivateFieldGet(m,this))||void 0===i||i.remove(),!e||!t)return _classPrivateFieldGet(g,this);const[o,s]=[e,t].map(_assertClassBrand(b,this,j).bind(this));let l=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),c=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),[u,h]=[n,a].map(_assertClassBrand(b,this,j).bind(this));c{const a=new Array(256),i=(c-l)/n,r=e/255,o=(t-e)/(255*n);let s=0;for(let c=0;c<=n;c++){const e=Math.round(l+c*i),t=r+c*o;for(let n=s;n<=e;n++)a[n]=t;s=e+1}for(let l=s;l<256;l++)a[l]=a[s-1];return a.join(",")},f="g_".concat(_classPrivateFieldGet(d,this),"_hcm_highlight_filter"),y=_classPrivateFieldSet(m,this,_assertClassBrand(b,this,S).call(this,f));return _assertClassBrand(b,this,C).call(this,y),_assertClassBrand(b,this,k).call(this,p(u[0],h[0],5),p(u[1],h[1],5),p(u[2],h[2],5),y),_classPrivateFieldSet(g,this,"url(#".concat(f,")")),_classPrivateFieldGet(g,this)}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(f,this)||_classPrivateFieldGet(g,this))||(_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).parentNode.parentNode.remove(),_classPrivateFieldSet(c,this,null)),_classPrivateFieldGet(l,this)&&(_classPrivateFieldGet(l,this).clear(),_classPrivateFieldSet(l,this,null)),_classPrivateFieldSet(y,this,0))}}function x(e){return _classPrivateFieldGet(l,e)||_classPrivateFieldSet(l,e,new Map)}function w(e){if(!_classPrivateFieldGet(c,e)){const t=_classPrivateFieldGet(u,e).createElement("div"),{style:n}=t;n.visibility="hidden",n.contain="strict",n.width=n.height=0,n.position="absolute",n.top=n.left=0,n.zIndex=-1;const a=_classPrivateFieldGet(u,e).createElementNS(o,"svg");a.setAttribute("width",0),a.setAttribute("height",0),_classPrivateFieldSet(c,e,_classPrivateFieldGet(u,e).createElementNS(o,"defs")),t.append(a),a.append(_classPrivateFieldGet(c,e)),_classPrivateFieldGet(u,e).body.append(t)}return _classPrivateFieldGet(c,e)}function C(e){const t=_classPrivateFieldGet(u,this).createElementNS(o,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function S(e){const t=_classPrivateFieldGet(u,this).createElementNS(o,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateGetter(b,this,w).append(t),t}function A(e,t,n){const a=_classPrivateFieldGet(u,this).createElementNS(o,t);a.setAttribute("type","discrete"),a.setAttribute("tableValues",n),e.append(a)}function k(e,t,n,a){const i=_classPrivateFieldGet(u,this).createElementNS(o,"feComponentTransfer");a.append(i),_assertClassBrand(b,this,A).call(this,i,"feFuncR",e),_assertClassBrand(b,this,A).call(this,i,"feFuncG",t),_assertClassBrand(b,this,A).call(this,i,"feFuncB",n)}function j(e){return _classPrivateGetter(b,this,w).style.color=e,L(getComputedStyle(_classPrivateGetter(b,this,w)).getPropertyValue("color"))}t.DOMFilterFactory=_;class I extends i.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function F(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(M(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,r.stringToBytes)(await n.text())}return new Promise(((n,a)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),t&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){let e;if(t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,r.stringToBytes)(i.responseText)),e)return void n(e)}a(new Error(i.statusText))}},i.send(null)}))}t.DOMCanvasFactory=I;class T extends i.BaseCMapReaderFactory{_fetchData(e,t){return F(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=T;class P extends i.BaseStandardFontDataFactory{_fetchData(e){return F(e,!0)}}t.DOMStandardFontDataFactory=P;class E extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS(o,e)}}t.DOMSVGFactory=E;class O{constructor(e){let{viewBox:t,scale:n,rotation:a,offsetX:i=0,offsetY:r=0,dontFlip:o=!1}=e;this.viewBox=t,this.scale=n,this.rotation=a,this.offsetX=i,this.offsetY=r;const s=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,d,u,h,p,f,m,v;switch(a%=360,a<0&&(a+=360),a){case 180:c=-1,d=0,u=0,h=1;break;case 90:c=0,d=1,u=1,h=0;break;case 270:c=0,d=-1,u=-1,h=0;break;case 0:c=1,d=0,u=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(u=-u,h=-h),0===c?(p=Math.abs(l-t[1])*n+i,f=Math.abs(s-t[0])*n+r,m=(t[3]-t[1])*n,v=(t[2]-t[0])*n):(p=Math.abs(s-t[0])*n+i,f=Math.abs(l-t[1])*n+r,m=(t[2]-t[0])*n,v=(t[3]-t[1])*n),this.transform=[c*n,d*n,u*n,h*n,p-c*n*s-u*n*l,f-d*n*s-h*n*l],this.width=m,this.height=v}get rawDims(){const{viewBox:e}=this;return(0,r.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:a=this.offsetY,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new O({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:a,dontFlip:i})}convertToViewportPoint(e,t){return r.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const 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]]}convertToPdfPoint(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=O;class N extends r.BaseException{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function R(e){const t=e.length;let n=0;for(;n>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,r.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=N,t.StatTimer=class{constructor(){_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}time(e){e in this.started&&(0,r.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(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]}toString(){const e=[];let t=0;for(const{name:n}of this.times)t=Math.max(n.length,t);for(const{name:n,start:a,end:i}of this.times)e.push("".concat(n.padEnd(t)," ").concat(i-a,"ms\n"));return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;D||(D=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=D.exec(e);if(!t)return null;const n=parseInt(t[1],10);let a=parseInt(t[2],10);a=a>=1&&a<=12?a-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let r=parseInt(t[4],10);r=r>=0&&r<=23?r:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===l?(r+=c,o+=d):"+"===l&&(r-=c,o-=d),new Date(Date.UTC(n,a,i,r,o,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var a=n(1);class i{constructor(){this.constructor===i&&(0,a.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,n,a){return"none"}destroy(){}}t.BaseFilterFactory=i;class r{constructor(){this.constructor===r&&(0,a.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(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}destroy(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}_createCanvas(e,t){(0,a.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=r;class o{constructor(e){let{baseUrl:t=null,isCompressed:n=!0}=e;this.constructor===o&&(0,a.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":""),i=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE;return this._fetchData(n,i).catch((e=>{throw new Error("Unable to load ".concat(this.isCompressed?"binary ":"","CMap at: ").concat(n))}))}_fetchData(e,t){(0,a.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=o;class s{constructor(e){let{baseUrl:t=null}=e;this.constructor===s&&(0,a.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const n="".concat(this.baseUrl).concat(t);return this._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}_fetchData(e){(0,a.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class l{constructor(){this.constructor===l&&(0,a.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),n||(a.setAttribute("width","".concat(e,"px")),a.setAttribute("height","".concat(t,"px"))),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),a}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,a.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var a=n(1);const i=3285377520,r=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let a=0,i=e.length;a>>8,t[n++]=255&i)}}else{if(!(0,a.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,s=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,d=0,u=this.h1,h=this.h2;const p=3432918353,f=461845907,m=11601,v=13715;for(let a=0;a>>17,c=c*f&r|c*v&o,u^=c,u=u<<13|u>>>19,u=5*u+3864292196):(d=l[a],d=d*p&r|d*m&o,d=d<<15|d>>>17,d=d*f&r|d*v&o,h^=d,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,s){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*p&r|c*m&o,c=c<<15|c>>>17,c=c*f&r|c*v&o,1&i?u^=c:h^=c}this.h1=u,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&r|36045*e&o,t=4283543511*t&r|(2950163797*(t<<16|e>>>16)&r)>>>16,e^=t>>>1,e=444984403*e&r|60499*e&o,t=3301882366*t&r|(3120437893*(t<<16|e>>>16)&r)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var a=n(1),i=new WeakMap;t.FontLoader=class{constructor(e){let{ownerDocument:t=globalThis.document,styleElement:n=null}=e;_classPrivateFieldInitSpec(this,i,new Set),this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),_classPrivateFieldGet(i,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){if(e&&!_classPrivateFieldGet(i,this).has(e.loadedName))if((0,a.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:n,style:r}=e,o=new FontFace(t,n,r);this.addNativeFontFace(o);try{await o.load(),_classPrivateFieldGet(i,this).add(t)}catch{(0,a.warn)("Cannot load system font: ".concat(e.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(o)}}else(0,a.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e.systemFontInfo);if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw(0,a.warn)("Failed to load font '".concat(t.family,"': '").concat(n,"'.")),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)}))}}get isFontLoadingAPISupported(){var e;const t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,a.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let e=!1;return(a.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,a.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for((0,a.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,a.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(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,a){return e.substring(0,t)+a+e.substring(t+n)}let r,o;const s=this._document.createElement("canvas");s.width=1,s.height=1;const l=s.getContext("2d");let c=0;const d="lt".concat(Date.now()).concat(this.loadTestFontId++);let u=this._loadTestFont;u=i(u,976,d.length,d);const h=1482184792;let p=n(u,16);for(r=0,o=d.length-3;r30)return(0,a.warn)("Load test font never loaded."),void n();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{v.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){let{isEvalSupported:n=!0,disableFontFace:a=!1,ignoreErrors:i=!1,inspectFont:r=null}=t;this.compiledGlyphs=Object.create(null);for(const o in e)this[o]=e[o];this.isEvalSupported=!1!==n,this.disableFontFace=!0===a,this.ignoreErrors=!0===i,this._inspectFont=r}createNativeFontFace(){var e;if(!this.data||this.disableFontFace)return null;let t;if(this.cssFontInfo){const e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}createFontFaceRule(){var e;if(!this.data||this.disableFontFace)return null;const t=(0,a.bytesToString)(this.data),n="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");");let i;if(this.cssFontInfo){let e="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(e+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),i='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(e,"src:").concat(n,"}")}else i='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(n,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,n),i}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(i){if(!this.ignoreErrors)throw i;return(0,a.warn)('getPathGenerator - ignoring character: "'.concat(i,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&a.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const a of n)"scale"===a.cmd&&(a.args=[t,-t]),e[a.cmd].apply(e,a.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var a=n(7);n(1);const i=function(e){return new Promise(((t,n)=>{__webpack_require__(2590).readFile(e,((e,a)=>{!e&&a?t(new Uint8Array(a)):n(new Error(e))}))}))};class r extends a.BaseFilterFactory{}t.NodeFilterFactory=r;class o extends a.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(8383).createCanvas(e,t)}}t.NodeCanvasFactory=o;class s extends a.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class l extends a.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var a=n(1),i=n(6),r=n(12),o=n(13);const s=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let a;return void 0!==this.cache[e]?(a=this.cache[e],this.canvasFactory.reset(a,t,n)):(a=this.canvasFactory.create(t,n),this.cache[e]=a),a}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function d(e,t,n,a,r,o,s,l,c,d){const[u,h,p,f,m,v]=(0,i.getCurrentTransform)(e);if(0===h&&0===p){const i=s*u+m,g=Math.round(i),y=l*f+v,b=Math.round(y),_=(s+c)*u+m,x=Math.abs(Math.round(_)-g)||1,w=(l+d)*f+v,C=Math.abs(Math.round(w)-b)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(f),g,b),e.drawImage(t,n,a,r,o,0,0,x,C),e.setTransform(u,h,p,f,m,v),[x,C]}if(0===u&&0===f){const i=l*p+m,g=Math.round(i),y=s*h+v,b=Math.round(y),_=(l+d)*p+m,x=Math.abs(Math.round(_)-g)||1,w=(s+c)*h+v,C=Math.abs(Math.round(w)-b)||1;return e.setTransform(0,Math.sign(h),Math.sign(p),0,g,b),e.drawImage(t,n,a,r,o,0,0,C,x),e.setTransform(u,h,p,f,m,v),[C,x]}return e.drawImage(t,n,a,r,o,s,l,c,d),[Math.hypot(u,h)*c,Math.hypot(p,f)*d]}class u{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=a.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=a.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=a.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=a.Util.applyTransform(t,e),i=a.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],i[0]),this.minY=Math.min(this.minY,n[1],i[1]),this.maxX=Math.max(this.maxX,n[0],i[0]),this.maxY=Math.max(this.maxY,n[1],i[1])}updateScalingPathMinMax(e,t){a.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,i,r,o,s,l,c,d){const u=a.Util.bezierBoundingBox(t,n,i,r,o,s,l,c);if(d)return d[0]=Math.min(d[0],u[0],u[2]),d[1]=Math.max(d[1],u[0],u[2]),d[2]=Math.min(d[2],u[1],u[3]),void(d[3]=Math.max(d[3],u[1],u[3]));this.updateRectMinMax(e,u)}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===r.PathType.STROKE){t||(0,a.unreachable)("Stroke bounding box must include transform.");const e=a.Util.singularValueDecompose2dScale(t),i=e[0]*this.lineWidth/2,r=e[1]*this.lineWidth/2;n[0]-=i,n[1]-=r,n[2]+=i,n[3]+=r}return n}updateClipFromPath(){const e=a.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function h(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const n=t.height,i=t.width,r=n%l,o=(n-r)/l,s=0===r?o:o+1,c=e.createImageData(i,l);let d,u=0;const h=t.data,p=c.data;let f,m,v,g;if(t.kind===a.ImageKind.GRAYSCALE_1BPP){const t=h.byteLength,n=new Uint32Array(p.buffer,0,p.byteLength>>2),g=n.length,y=i+7>>3,b=4294967295,_=a.FeatureTest.isLittleEndian?4278190080:255;for(f=0;fy?i:8*e-7,o=-8&r;let s=0,l=0;for(;a>=1}for(;d=o&&(v=r,g=i*v),d=0,m=g;m--;)p[d++]=h[u++],p[d++]=h[u++],p[d++]=h[u++],p[d++]=255;e.putImageData(c,0,f*l)}}}function p(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,a=t.width,i=n%l,r=(n-i)/l,s=0===i?r:r+1,c=e.createImageData(a,l);let d=0;const u=t.data,h=c.data;for(let p=0;p>8,e[r-2]=e[r-2]*i+n*o>>8,e[r-1]=e[r-1]*i+a*o>>8}}}function g(e,t,n){const a=e.length,i=1/255;for(let r=3;r>8]>>8:t[i]*a>>16}}function b(e,t,n,a){const i=a[0],r=a[1],o=a[2]-i,s=a[3]-r;0!==o&&0!==s&&(function(e,t,n,a,i,r,o,s,l,c,d){const u=!!r,h=u?r[0]:0,p=u?r[1]:0,f=u?r[2]:0,m="Luminosity"===i?y:g,b=Math.min(a,Math.ceil(1048576/n));for(let g=0;g1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){let{transform:t,viewport:n,transparency:a=!1,background:r=null}=e;const o=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=r||"#ffffff",this.ctx.fillRect(0,0,o,s),this.ctx.fillStyle=l,a){const e=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,i.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),m(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=(0,i.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,n,i){const r=e.argsArray,o=e.fnArray;let s=t||0;const l=r.length;if(l===s)return s;const c=l-s>10&&"function"===typeof n,d=c?Date.now()+15:0;let u=0;const h=this.commonObjs,p=this.objs;let f;for(;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;if(f=o[s],f!==a.OPS.dependency)this[f].apply(this,r[s]);else for(const e of r[s]){const t=e.startsWith("g_")?h:p;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++u>10){if(Date.now()>d)return n(),s;u=0}}}endDrawing(){_assertClassBrand(A,this,j).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),_assertClassBrand(A,this,I).call(this)}_scaleImage(e,t){const n=e.width,a=e.height;let i,r,o=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=a,d="prescale1";for(;o>2&&l>1||s>2&&c>1;){let t=l,n=c;o>2&&l>1&&(t=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),o/=l/t),s>2&&c>1&&(n=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/n),i=this.cachedCanvases.getCanvas(d,t,n),r=i.context,r.clearRect(0,0,t,n),r.drawImage(e,0,0,l,c,0,0,t,n),e=i.canvas,l=t,c=n,d="prescale1"===d?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:o}=e,s=this.current.fillColor,l=this.current.patternFill,c=(0,i.getCurrentTransform)(t);let u,h,f,m;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer;h=JSON.stringify(l?c:[c.slice(0,4),s]),u=this._cachedBitmapsMap.get(t),u||(u=new Map,this._cachedBitmapsMap.set(t,u));const n=u.get(h);if(n&&!l)return{canvas:n,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};f=n}f||(m=this.cachedCanvases.getCanvas("maskCanvas",n,o),p(m.context,e));let v=a.Util.transform(c,[1/n,0,0,-1/o,0,0]);v=a.Util.transform(v,[1,0,0,1,0,-o]);const g=a.Util.applyTransform([0,0],v),y=a.Util.applyTransform([n,o],v),b=a.Util.normalizeRect([g[0],g[1],y[0],y[1]]),x=Math.round(b[2]-b[0])||1,w=Math.round(b[3]-b[1])||1,C=this.cachedCanvases.getCanvas("fillCanvas",x,w),S=C.context,A=Math.min(g[0],y[0]),k=Math.min(g[1],y[1]);S.translate(-A,-k),S.transform(...v),f||(f=this._scaleImage(m.canvas,(0,i.getCurrentTransformInverse)(S)),f=f.img,u&&l&&u.set(h,f)),S.imageSmoothingEnabled=_((0,i.getCurrentTransform)(S),e.interpolate),d(S,f,0,0,f.width,f.height,0,0,n,o),S.globalCompositeOperation="source-in";const j=a.Util.transform((0,i.getCurrentTransformInverse)(S),[1,0,0,1,-A,-k]);return S.fillStyle=l?s.getPattern(t,this,j,r.PathType.FILL):s,S.fillRect(0,0,n,o),u&&!l&&(this.cachedCanvases.delete("fillCanvas"),u.set(h,C.canvas)),{canvas:C.canvas,offsetX:Math.round(A),offsetY:Math.round(k)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=x[e]}setLineJoin(e){this.ctx.lineJoin=w[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=a.context;const r=this.ctx;r.setTransform(...(0,i.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,r),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,a,i,r,o){t.transform(e,n,a,i,r,o),this.__originalTransform(e,n,a,i,r,o)},e.setTransform=function(e,n,a,i,r,o){t.setTransform(e,n,a,i,r,o),this.__originalSetTransform(e,n,a,i,r,o)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,a,i,r,o){t.bezierCurveTo(e,n,a,i,r,o),this.__originalBezierCurveTo(e,n,a,i,r,o)},e.rect=function(e,n,a,i){t.rect(e,n,a,i),this.__originalRect(e,n,a,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(r,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;b(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(f(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,a,i,r){this.ctx.transform(e,t,n,a,i,r),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const r=this.ctx,o=this.current;let s,l,c=o.x,d=o.y;const u=(0,i.getCurrentTransform)(r),h=0===u[0]&&0===u[3]||0===u[1]&&0===u[2],p=h?n.slice(0):null;for(let i=0,f=0,m=e.length;i0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof n&&null!==n&&void 0!==n&&n.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),r.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.fillColor;let a=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),r.PathType.FILL),a=!0);const o=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==o&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),a&&t.restore(),e&&this.consumePath(o)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=C}eoClip(){this.pendingClip=S}beginText(){this.current.textMatrix=a.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform(...n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){var n;const i=this.commonObjs.get(e),r=this.current;if(!i)throw new Error("Can't find font for ".concat(e));if(r.fontMatrix=i.fontMatrix||a.FONT_IDENTITY_MATRIX,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||(0,a.warn)("Invalid font matrix for font "+e),t<0?(t=-t,r.fontDirection=-1):r.fontDirection=1,this.current.font=i,this.current.fontSize=t,i.isType3Font)return;const o=i.loadedName||"sans-serif",s=(null===(n=i.systemFontInfo)||void 0===n?void 0:n.css)||'"'.concat(o,'", ').concat(i.fallbackName);let l="normal";i.black?l="900":i.bold&&(l="bold");const c=i.italic?"italic":"normal";let d=t;t<16?d=16:t>100&&(d=100),this.current.fontSizeScale=t/d,this.ctx.font="".concat(c," ").concat(l," ").concat(d,"px ").concat(s)}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,a,i,r){this.current.textMatrix=[e,t,n,a,i,r],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,r){const o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,d=s.fontSize/s.fontSizeScale,u=c&a.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&a.TextRenderingMode.ADD_TO_PATH_FLAG),p=s.patternFill&&!l.missingFile;let f;(l.disableFontFace||h||p)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(o.save(),o.translate(t,n),o.beginPath(),f(o,d),r&&o.setTransform(...r),u!==a.TextRenderingMode.FILL&&u!==a.TextRenderingMode.FILL_STROKE||o.fill(),u!==a.TextRenderingMode.STROKE&&u!==a.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(u!==a.TextRenderingMode.FILL&&u!==a.TextRenderingMode.FILL_STROKE||o.fillText(e,t,n),u!==a.TextRenderingMode.STROKE&&u!==a.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,n)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,i.getCurrentTransform)(o),x:t,y:n,fontSize:d,addToPath:f})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let a=3;a0&&t[a]<255){n=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const o=t.fontSize;if(0===o)return;const s=this.ctx,l=t.fontSizeScale,c=t.charSpacing,d=t.wordSpacing,u=t.fontDirection,h=t.textHScale*u,p=e.length,f=n.vertical,m=f?1:-1,v=n.defaultVMetrics,g=o*t.fontMatrix[0],y=t.textRenderingMode===a.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let b;if(s.save(),s.transform(...t.textMatrix),s.translate(t.x,t.y+t.textRise),u>0?s.scale(h,-1):s.scale(h,1),t.patternFill){s.save();const e=t.fillColor.getPattern(s,this,(0,i.getCurrentTransformInverse)(s),r.PathType.FILL);b=(0,i.getCurrentTransform)(s),s.restore(),s.fillStyle=e}let _=t.lineWidth;const x=t.textMatrixScale;if(0===x||0===_){const e=t.textRenderingMode&a.TextRenderingMode.FILL_STROKE_MASK;e!==a.TextRenderingMode.STROKE&&e!==a.TextRenderingMode.FILL_STROKE||(_=this.getSinglePixelWidth())}else _/=x;if(1!==l&&(s.scale(l,l),_/=l),s.lineWidth=_,n.isInvalidPDFjsFont){const n=[];let a=0;for(const t of e)n.push(t.unicode),a+=t.width;return s.fillText(n.join(""),0,0),t.x+=a*g*h,s.restore(),void this.compose()}let w,C=0;for(w=0;w0){const e=1e3*s.measureText(r).width/o*l;if(xnew k(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new r.TilingPattern(e,n,this.ctx,o,a)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const i=a.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(e,t,n){const i=a.Util.makeHexColor(e,t,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,r.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),r.PathType.SHADING);const o=(0,i.getCurrentTransformInverse)(t);if(o){const{width:e,height:n}=t.canvas,[i,r,s,l]=a.Util.getAxialAlignedBoundingBox([0,0,e,n],o);this.ctx.fillRect(i,r,s-i,l-r)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,a.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,a.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,i.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,i.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,a.info)("TODO: Support non-isolated groups."),e.knockout&&(0,a.warn)("Knockout groups not supported.");const n=(0,i.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let r=a.Util.getAxialAlignedBoundingBox(e.bbox,(0,i.getCurrentTransform)(t));const o=[0,0,t.canvas.width,t.canvas.height];r=a.Util.intersect(r,o)||[0,0,0,0];const l=Math.floor(r[0]),c=Math.floor(r[1]);let d=Math.max(Math.ceil(r[2])-l,1),u=Math.max(Math.ceil(r[3])-c,1),h=1,p=1;d>s&&(h=d/s,d=s),u>s&&(p=u/s,u=s),this.current.startNewPathAndClipBox([0,0,d,u]);let m="groupAt"+this.groupLevel;e.smask&&(m+="_smask_"+this.smaskCounter++%2);const v=this.cachedCanvases.getCanvas(m,d,u),g=v.context;g.scale(1/h,1/p),g.translate(-l,-c),g.transform(...n),e.smask?this.smaskStack.push({canvas:v.canvas,context:g,offsetX:l,offsetY:c,scaleX:h,scaleY:p,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(l,c),t.scale(h,p),t.save()),f(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,i.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=a.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,r,o){if(_assertClassBrand(A,this,j).call(this),m(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const r=t[2]-t[0],s=t[3]-t[1];if(o&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=r,t[3]=s;const[o,l]=a.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,d=Math.ceil(r*this.outputScaleX*c),u=Math.ceil(s*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(d,u);const{canvas:h,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.save(),this.ctx.setTransform(o,0,0,-l,0,s*l),m(this.ctx)}else m(this.ctx),this.ctx.rect(t[0],t[1],r,s),this.ctx.clip(),this.endPath()}this.current=new u(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...r)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),_assertClassBrand(A,this,I).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,a=this.processingType3;if(a&&(void 0===a.compiled&&(a.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let r,o,s,l=new Uint8Array(i*(n+1));const c=t+7&-8;let d=new Uint8Array(c*n),u=0;for(const m of e.data){let e=128;for(;e>0;)d[u++]=m&e?0:255,e>>=1}let h=0;for(u=0,0!==d[u]&&(l[0]=1,++h),o=1;o>2)+(d[u+1]?4:0)+(d[u-c+1]?8:0),a[e]&&(l[s+o]=a[e],++h),u++;if(d[u-c]!==d[u]&&(l[s+o]=d[u]?2:4,++h),h>1e3)return null}for(u=c*(n-1),s=r*i,0!==d[u]&&(l[s]=8,++h),o=1;o1e3)return null;const p=new Int32Array([0,i,-1,0,-i,0,0,0,1]),f=new Path2D;for(r=0;h&&r<=n;r++){let e=r*i;const n=e+t;for(;e>4,l[e]&=o>>2|o<<2),f.lineTo(e%i,e/i|0),l[e]||--h}while(a!==e);--r}return d=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(f),e.beginPath(),e.restore()}}(e)),a.compiled))return void a.compiled(n);const i=this._createMaskCanvas(e),r=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(r,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,i.getCurrentTransform)(l);l.transform(t,n,r,o,0,0);const d=this._createMaskCanvas(e);l.setTransform(1,0,0,1,d.offsetX-c[4],d.offsetY-c[5]);for(let i=0,u=s.length;it?c/t:1,o=l>t?l/t:1}}this._cachedScaleForStroking[0]=r,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[a,i]=this.getScaleForStroking();if(t.lineWidth=n||1,1===a&&1===i)return void t.stroke();const r=t.getLineDash();if(e&&t.save(),t.scale(a,i),r.length>0){const e=Math.max(a,i);t.setLineDash(r.map((t=>t/e))),t.lineDashOffset/=e}t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function j(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function I(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}t.CanvasGraphics=k;for(const F in a.OPS)void 0!==k.prototype[F]&&(k.prototype[a.OPS[F]]=k.prototype[F])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new u(e);case"Dummy":return new h}throw new Error("Unknown IR type: ".concat(e[0]))};var a=n(1),i=n(6);const r={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function o(e,t){if(!t)return;const n=t[2]-t[0],a=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,a),e.clip(i)}t.PathType=r;class s{constructor(){this.constructor===s&&(0,a.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,a.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,s){let l;if(s===r.STROKE||s===r.FILL){const r=t.current.getClippedPathBoundingBox(s,(0,i.getCurrentTransform)(e))||[0,0,0,0],c=Math.ceil(r[2]-r[0])||1,d=Math.ceil(r[3]-r[1])||1,u=t.cachedCanvases.getCanvas("pattern",c,d,!0),h=u.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-r[0],-r[1]),n=a.Util.transform(n,[1,0,0,1,r[0],r[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),o(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=e.createPattern(u.canvas,"no-repeat");const p=new DOMMatrix(n);l.setTransform(p)}else o(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,n,a,i,r,o,s){const l=t.coords,c=t.colors,d=e.data,u=4*e.width;let h;l[n+1]>l[a+1]&&(h=n,n=a,a=h,h=r,r=o,o=h),l[a+1]>l[i+1]&&(h=a,a=i,i=h,h=o,o=s,s=h),l[n+1]>l[a+1]&&(h=n,n=a,a=h,h=r,r=o,o=h);const p=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[a]+t.offsetX)*t.scaleX,v=(l[a+1]+t.offsetY)*t.scaleY,g=(l[i]+t.offsetX)*t.scaleX,y=(l[i+1]+t.offsetY)*t.scaleY;if(f>=y)return;const b=c[r],_=c[r+1],x=c[r+2],w=c[o],C=c[o+1],S=c[o+2],A=c[s],k=c[s+1],j=c[s+2],I=Math.round(f),F=Math.round(y);let T,P,E,O,N,R,M,D;for(let L=I;L<=F;L++){if(Ly?1:v===y?0:(v-L)/(v-y),T=m-(m-g)*e,P=w-(w-A)*e,E=C-(C-k)*e,O=S-(S-j)*e}let e;e=Ly?1:(f-L)/(f-y),N=p-(p-g)*e,R=b-(b-A)*e,M=_-(_-k)*e,D=x-(x-j)*e;const t=Math.round(Math.min(T,N)),n=Math.round(Math.max(T,N));let a=u*L+4*t;for(let i=t;i<=n;i++)e=(T-i)/(T-N),e<0?e=0:e>1&&(e=1),d[a++]=P-(P-R)*e|0,d[a++]=E-(E-M)*e|0,d[a++]=O-(O-D)*e|0,d[a++]=255}}function d(e,t,n){const a=t.coords,i=t.colors;let r,o;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(a.length/s)-1,d=s-1;for(r=0;r=a?i=a:n=i/e,{scale:n,size:i}}clipBbox(e,t,n,a,r){const o=a-t,s=r-n;e.ctx.rect(t,n,o,s),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,n,a,r]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const i=e.ctx,r=e.current;switch(t){case p:const e=this.ctx;i.fillStyle=e.fillStyle,i.strokeStyle=e.strokeStyle,r.fillColor=e.fillStyle,r.strokeColor=e.strokeStyle;break;case f:const o=a.Util.makeHexColor(n[0],n[1],n[2]);i.fillStyle=o,i.strokeStyle=o,r.fillColor=o,r.strokeColor=o;break;default:throw new a.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,n,i){let o=n;i!==r.SHADING&&(o=a.Util.transform(o,t.baseTransform),this.matrix&&(o=a.Util.transform(o,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(o);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");return c.setTransform(l),c}}_defineProperty(m,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=i,t.convertToRGBA=function(e){switch(e.kind){case a.ImageKind.GRAYSCALE_1BPP:return i(e);case a.ImageKind.RGB_24BPP:return function(e){let{src:t,srcPos:n=0,dest:i,destPos:r=0,width:o,height:s}=e,l=0;const c=t.length>>2,d=new Uint32Array(t.buffer,n,c);if(a.FeatureTest.isLittleEndian){for(;l>>24|t<<8|4278190080,i[r+2]=t>>>16|n<<16|4278190080,i[r+3]=n>>>8|4278190080}for(let e=4*l,n=t.length;e>>8|255,i[r+2]=t<<16|n>>>16|255,i[r+3]=n<<8|255}for(let e=4*l,n=t.length;e>3,p=7&r,f=t.length;i=new Uint32Array(i.buffer);let m=0;for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=null,n.workerSrc=""},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var a=n(1);const i=1,r=2,o=1,s=2,l=3,c=4,d=5,u=6,h=7,p=8;function f(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,a.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"PasswordException":return new a.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}var m=new WeakSet;function v(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj,o=this,s=this.actionHandler[e.action],u={enqueue(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=new a.PromiseCapability,this.ready=this.sinkCapability.promise),r.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:l,streamId:t}),delete o.streamSinks[t])},error(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:d,streamId:t,reason:f(e)}))},sinkCapability:new a.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[t]=u,new Promise((function(t){t(s(e.data,u))})).then((function(){r.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,reason:f(e)})}))}function g(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj,v=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case p:e.success?v.startCall.resolve():v.startCall.reject(f(e.reason));break;case h:e.success?v.pullCall.resolve():v.pullCall.reject(f(e.reason));break;case u:if(!g){r.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=g.onPull)||void 0===t?void 0:t.call(g))})).then((function(){r.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:f(e)})}));break;case c:if((0,a.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case l:if((0,a.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_assertClassBrand(m,this,y).call(this,v,t);break;case d:(0,a.assert)(v,"error should have stream controller"),v.controller.error(f(e.reason)),_assertClassBrand(m,this,y).call(this,v,t);break;case s:e.success?v.cancelCall.resolve():v.cancelCall.reject(f(e.reason)),_assertClassBrand(m,this,y).call(this,v,t);break;case o:if(!g)break;new Promise((function(t){var n;t(null===(n=g.onCancel)||void 0===n?void 0:n.call(g,f(e.reason)))})).then((function(){r.postMessage({sourceName:n,targetName:i,stream:s,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:s,streamId:t,reason:f(e)})})),g.sinkCapability.reject(f(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async function y(e,t){var n,a,i;await Promise.allSettled([null===(n=e.startCall)||void 0===n?void 0:n.promise,null===(a=e.pullCall)||void 0===a?void 0:a.promise,null===(i=e.cancelCall)||void 0===i?void 0:i.promise]),delete this.streamControllers[t]}t.MessageHandler=class{constructor(e,t,n){_classPrivateMethodInitSpec(this,m),this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void _assertClassBrand(m,this,g).call(this,t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==r)throw new Error("Unexpected callback case");n.reject(f(t.reason))}return}const a=this.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,o=t.sourceName;new Promise((function(e){e(a(t.data))})).then((function(a){n.postMessage({sourceName:e,targetName:o,callback:i,callbackId:t.callbackId,data:a})}),(function(a){n.postMessage({sourceName:e,targetName:o,callback:r,callbackId:t.callbackId,reason:f(a)})}))}else t.streamId?_assertClassBrand(m,this,v).call(this,t):a(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,r=new a.PromiseCapability;this.callbackCapabilities[i]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(o){r.reject(o)}return r.promise}sendWithStream(e,t,n,i){const r=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const o=new a.PromiseCapability;return this.streamControllers[r]={controller:n,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:r,data:t,desiredSize:n.desiredSize},i),o.promise},pull:e=>{const t=new a.PromiseCapability;return this.streamControllers[r].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:u,streamId:r,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,a.assert)(e instanceof Error,"cancel must have a valid reason");const t=new a.PromiseCapability;return this.streamControllers[r].cancelCall=t,this.streamControllers[r].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:o,streamId:r,reason:f(e)}),t.promise}},n)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var a=n(1),i=new WeakMap,r=new WeakMap;t.Metadata=class{constructor(e){let{parsedData:t,rawData:n}=e;_classPrivateFieldInitSpec(this,i,void 0),_classPrivateFieldInitSpec(this,r,void 0),_classPrivateFieldSet(i,this,t),_classPrivateFieldSet(r,this,n)}getRaw(){return _classPrivateFieldGet(r,this)}get(e){var t;return null!==(t=_classPrivateFieldGet(i,this).get(e))&&void 0!==t?t:null}getAll(){return(0,a.objectFromMap)(_classPrivateFieldGet(i,this))}has(e){return _classPrivateFieldGet(i,this).has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var a=n(1),i=n(8);const r=Symbol("INTERNAL");var o=new WeakMap;class s{constructor(e,t){_classPrivateFieldInitSpec(this,o,!0),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(o,this)}_setVisible(e,t){e!==r&&(0,a.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(o,this,t)}}var l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakSet;function p(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let i=1;i1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(c,this).has(e)?(_classPrivateFieldGet(c,this).get(e)._setVisible(r,!!t),_classPrivateFieldSet(l,this,null)):(0,a.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){return null===_classPrivateFieldGet(d,this)||this.getHash()===_classPrivateFieldGet(d,this)}getOrder(){return _classPrivateFieldGet(c,this).size?_classPrivateFieldGet(u,this)?_classPrivateFieldGet(u,this).slice():[..._classPrivateFieldGet(c,this).keys()]:null}getGroups(){return _classPrivateFieldGet(c,this).size>0?(0,a.objectFromMap)(_classPrivateFieldGet(c,this)):null}getGroup(e){return _classPrivateFieldGet(c,this).get(e)||null}getHash(){if(null!==_classPrivateFieldGet(l,this))return _classPrivateFieldGet(l,this);const e=new i.MurmurHash3_64;for(const[t,n]of _classPrivateFieldGet(c,this))e.update("".concat(t,":").concat(n.visible));return _classPrivateFieldSet(l,this,e.hexdigest())}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var a=n(1),i=n(6);t.PDFDataTransportStream=class{constructor(e,t){let{length:n,initialData:i,progressiveDone:r=!1,contentDispositionFilename:o=null,disableRange:s=!1,disableStream:l=!1}=e;if((0,a.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=r,this._contentDispositionFilename=o,(null===i||void 0===i?void 0:i.length)>0){const e=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!s,this._contentLength=n,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){let{begin:t,chunk:n}=e;const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{const e=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(i),!0)}));(0,a.assert)(e,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){var t,n,a,i;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded}):null===(a=this._fullRequestReader)||void 0===a||null===(i=a.onProgress)||void 0===i||i.call(a,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new r(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new o(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeReaders.slice(0))n.cancel(e);this._pdfDataRangeTransport.abort()}};class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=(0,i.isPdfFile)(a)?a:null,this._queuedChunks=t||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new a.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class o{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new a.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var a=n(1),i=n(20);function r(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){const t=new Headers;for(const n in e){const a=e[n];void 0!==a&&t.append(n,a)}return t}function s(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,a.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new c(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new a.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=o(this._stream.httpHeaders);const n=t.url;fetch(n,r(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:r,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=r,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new a.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:s(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class c{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=new a.PromiseCapability,this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=o(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(n-1));const l=s.url;fetch(l,r(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:s(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new a.MissingPDFException('Missing PDF "'+t+'".'):new a.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if((0,r.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){let{getResponseHeader:t,isHttp:n,rangeChunkSize:a,disableRange:i}=e;const r={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(t("Content-Length"),10);return Number.isInteger(o)?(r.suggestedLength=o,o<=2*a||i||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(r.allowRangeRequests=!0),r):r},t.validateResponseStatus=function(e){return 200===e||206===e};var a=n(1),i=n(21),r=n(6)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=i("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),o(e)}if(n=function(e){const t=[];let n;const a=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=a.exec(e));){let[,e,a,i]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[a,i]}const r=[];for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var a=n(1),i=n(20);class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const a={begin:e,end:t};for(const i in n)a[i]=n[i];return this.request(a)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,n=this.currXhrId++,a=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const i in this.httpHeaders){const e=this.httpHeaders[i];void 0!==e&&t.setRequestHeader(i,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),a.expectedStatus=206):a.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),a.onHeadersReceived=e.onHeadersReceived,a.onDone=e.onDone,a.onError=e.onError,a.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){var n;const a=this.pendingRequests[e];a&&(null===(n=a.onProgress)||void 0===n||n.call(a,t))}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;var r;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void(null===(r=n.onError)||void 0===r||r.call(n,i.status));const o=i.status||200;var s;if((200!==o||206!==n.expectedStatus)&&o!==n.expectedStatus)return void(null===(s=n.onError)||void 0===s||s.call(n,i.status));const l=function(e){const t=e.response;return"string"!==typeof t?t:(0,a.stringToBytes)(t).buffer}(i);if(206===o){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:l})}else if(l)n.onDone({begin:0,chunk:l});else{var c;null===(c=n.onError)||void 0===c||c.call(n,i.status)}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new r(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new o(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class o{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=new a.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.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}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:a,suggestedLength:r}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(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)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new a.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const a={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,a),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new a.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var a=n(1),i=n(20);const r=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=__webpack_require__(9630),n=t.parse(e);return"file:"===n.protocol||n.host?n:/^[a-z]:[/\\]/i.test(e)?t.parse("file:///".concat(e)):(n.host||(n.protocol="file:"),n)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new u(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new h(this,e,t):new d(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class o{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new a.PromiseCapability,this._headersCapability=new a.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return null===t?(this._readCapability=new a.PromiseCapability,this.read()):(this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new a.PromiseCapability;const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return null===t?(this._readCapability=new a.PromiseCapability,this.read()):(this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class c extends o{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new a.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:r,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=r,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};if(this._request=null,"http:"===this._url.protocol){const n=__webpack_require__(5515);this._request=n.request(l(this._url,e.httpHeaders),t)}else{const n=__webpack_require__(93);this._request=n.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class d extends s{constructor(e,t,n){super(e),this._httpHeaders={};for(const a in e.httpHeaders){const t=e.httpHeaders[a];void 0!==t&&(this._httpHeaders[a]=t)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(n-1);const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new a.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=e}};if(this._request=null,"http:"===this._url.protocol){const e=__webpack_require__(5515);this._request=e.request(l(this._url,this._httpHeaders),i)}else{const e=__webpack_require__(93);this._request=e.request(l(this._url,this._httpHeaders),i)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class u extends o{constructor(e){super(e);let t=decodeURIComponent(this._url.path);r.test(this._url.href)&&(t=t.replace(/^\//,""));const n=__webpack_require__(2590);n.lstat(t,((e,i)=>{if(e)return"ENOENT"===e.code&&(e=new a.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=i.size,this._setReadableStream(n.createReadStream(t)),this._headersCapability.resolve()}))}}class h extends s{constructor(e,t,n){super(e);let a=decodeURIComponent(this._url.path);r.test(this._url.href)&&(a=a.replace(/^\//,""));const i=__webpack_require__(2590);this._setReadableStream(i.createReadStream(a,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var a=n(6),i=n(1);const r="normal",o="normal",s="#000000",l=["butt","round","square"],c=["miter","round","bevel"],d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i="data:".concat(t,";base64,");for(let r=0,o=e.length;r>2]+a[(3&t)<<4|n>>4]+a[r+1>6:64]+a[r+2>1&2147483647:e>>1&2147483647;t[i]=e}function n(e,n,a,i){let r=i;const o=n.length;a[r]=o>>24&255,a[r+1]=o>>16&255,a[r+2]=o>>8&255,a[r+3]=255&o,r+=4,a[r]=255&e.charCodeAt(0),a[r+1]=255&e.charCodeAt(1),a[r+2]=255&e.charCodeAt(2),a[r+3]=255&e.charCodeAt(3),r+=4,a.set(n,r),r+=n.length;const s=function(e,n,a){let i=-1;for(let r=n;r>>8^t[n]}return~i}(a,i+4,r);a[r]=s>>24&255,a[r+1]=s>>16&255,a[r+2]=s>>8&255,a[r+3]=255&s}function a(e){let t=e.length;const n=65535,a=Math.ceil(t/n),i=new Uint8Array(2+t+5*a+4);let r=0;i[r++]=120,i[r++]=156;let o=0;for(;t>n;)i[r++]=0,i[r++]=255,i[r++]=255,i[r++]=0,i[r++]=0,i.set(e.subarray(o,o+n),r),r+=n,o+=n,t-=n;i[r++]=1,i[r++]=255&t,i[r++]=t>>8&255,i[r++]=255&~t,i[r++]=(65535&~t)>>8&255,i.set(e.subarray(o),r),r+=e.length-o;const s=function(e,t,n){let a=1,i=0;for(let r=t;r>24&255,i[r++]=s>>16&255,i[r++]=s>>8&255,i[r++]=255&s,i}function r(t,r,o,s){const l=t.width,c=t.height;let u,h,p;const f=t.data;switch(r){case i.ImageKind.GRAYSCALE_1BPP:h=0,u=1,p=l+7>>3;break;case i.ImageKind.RGB_24BPP:h=2,u=8,p=3*l;break;case i.ImageKind.RGBA_32BPP:h=6,u=8,p=4*l;break;default:throw new Error("invalid format")}const m=new Uint8Array((1+p)*c);let v=0,g=0;for(let e=0;e>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,u,h,0,0,0]),b=function(e){if(!i.isNodeJS)return a(e);try{const t=parseInt(process.versions.node)>=8?e:Buffer.from(e),n=__webpack_require__(1040).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return a(e)}(m),_=e.length+36+y.length+b.length,x=new Uint8Array(_);let w=0;return x.set(e,w),w+=e.length,n("IHDR",y,x,w),w+=12+y.length,n("IDATA",b,x,w),w+=12+b.length,n("IEND",new Uint8Array(0),x,w),d(x,"image/png",o)}return function(e,t,n){return r(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class h{constructor(){this.fontSizeScale=1,this.fontWeight=o,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.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=s,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=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function p(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function f(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(p(e[0])," ").concat(p(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){const t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(p(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(p(e[4])," ").concat(p(e[5]),")");return"matrix(".concat(p(e[0])," ").concat(p(e[1])," ").concat(p(e[2])," ").concat(p(e[3])," ").concat(p(e[4])," ")+"".concat(p(e[5]),")")}let m=0,v=0,g=0;t.SVGGraphics=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,a.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new a.DOMSVGFactory,this.current=new h,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const a in i.OPS)this._operatorIdMapping[i.OPS[a]]=a}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let a=0,r=t.length;a{t.get(e,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,a,r,o){const s=[e,t,n,a,r,o];this.transformMatrix=i.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,a=e.fnArray,i=[];for(let r=0,o=a.length;r0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=c[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=i.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=i.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const{width:t,height:n}=this.viewport,a=i.Util.inverseTransform(this.transformMatrix),[r,o,s,l]=i.Util.getAxialAlignedBoundingBox([0,0,t,n],a),c=this.svgFactory.createElement("svg:rect");c.setAttributeNS(null,"x",r),c.setAttributeNS(null,"y",o),c.setAttributeNS(null,"width",s-r),c.setAttributeNS(null,"height",l-o),c.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&c.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(c)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],a=e[3]||i.IDENTITY_MATRIX,[r,o,s,l]=e[4],c=e[5],d=e[6],u=e[7],h="shading".concat(g++),[p,f,m,v]=i.Util.normalizeRect([...i.Util.applyTransform([r,o],a),...i.Util.applyTransform([s,l],a)]),[y,b]=i.Util.singularValueDecompose2dScale(a),_=c*y,x=d*b,w=this.svgFactory.createElement("svg:pattern");w.setAttributeNS(null,"id",h),w.setAttributeNS(null,"patternUnits","userSpaceOnUse"),w.setAttributeNS(null,"width",_),w.setAttributeNS(null,"height",x),w.setAttributeNS(null,"x","".concat(p)),w.setAttributeNS(null,"y","".concat(f));const C=this.svg,S=this.transformMatrix,A=this.current.fillColor,k=this.current.strokeColor,j=this.svgFactory.create(m-p,v-f);if(this.svg=j,this.transformMatrix=a,2===u){const e=i.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=C,this.transformMatrix=S,this.current.fillColor=A,this.current.strokeColor=k,w.append(j.childNodes[0]),this.defs.append(w),"url(#".concat(h,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading".concat(g++),n=e[3];let a;switch(e[1]){case"axial":const n=e[4],i=e[5];a=this.svgFactory.createElement("svg:linearGradient"),a.setAttributeNS(null,"id",t),a.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),a.setAttributeNS(null,"x1",n[0]),a.setAttributeNS(null,"y1",n[1]),a.setAttributeNS(null,"x2",i[0]),a.setAttributeNS(null,"y2",i[1]);break;case"radial":const r=e[4],o=e[5],s=e[6],l=e[7];a=this.svgFactory.createElement("svg:radialGradient"),a.setAttributeNS(null,"id",t),a.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),a.setAttributeNS(null,"cx",o[0]),a.setAttributeNS(null,"cy",o[1]),a.setAttributeNS(null,"r",l),a.setAttributeNS(null,"fx",r[0]),a.setAttributeNS(null,"fy",r[1]),a.setAttributeNS(null,"fr",s);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),a.append(t)}return this.defs.append(a),"url(#".concat(t,")");case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let a=n.x,r=n.y,o=[],s=0;for(const l of e)switch(0|l){case i.OPS.rectangle:a=t[s++],r=t[s++];const e=a+t[s++],n=r+t[s++];o.push("M",p(a),p(r),"L",p(e),p(r),"L",p(e),p(n),"L",p(a),p(n),"Z");break;case i.OPS.moveTo:a=t[s++],r=t[s++],o.push("M",p(a),p(r));break;case i.OPS.lineTo:a=t[s++],r=t[s++],o.push("L",p(a),p(r));break;case i.OPS.curveTo:a=t[s+4],r=t[s+5],o.push("C",p(t[s]),p(t[s+1]),p(t[s+2]),p(t[s+3]),p(a),p(r)),s+=6;break;case i.OPS.curveTo2:o.push("C",p(a),p(r),p(t[s]),p(t[s+1]),p(t[s+2]),p(t[s+3])),a=t[s+2],r=t[s+3],s+=4;break;case i.OPS.curveTo3:a=t[s+2],r=t[s+3],o.push("C",p(t[s]),p(t[s+1]),p(a),p(r),p(a),p(r)),s+=4;break;case i.OPS.closePath:o.push("Z")}o=o.join(" "),n.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?o=n.path.getAttributeNS(null,"d")+o:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",o),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(a,r)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath".concat(m++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",f(this.transformMatrix));const a=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?a.setAttributeNS(null,"clip-rule","evenodd"):a.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(a),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,i.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this.current;let a=n.dashArray;1!==t&&a.length>0&&(a=a.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",p(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",p(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",a.map(p).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",p(t*n.dashPhase)+"px")}eoFill(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const 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().append(e)}paintImageXObject(e){const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}paintInlineImageXObject(e,t){const n=e.width,a=e.height,i=u(e,this.forceDataSchema,!!t),r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x","0"),r.setAttributeNS(null,"y","0"),r.setAttributeNS(null,"width",p(n)),r.setAttributeNS(null,"height",p(a)),this.current.element=r,this.clip("nonzero");const o=this.svgFactory.createElement("svg:image");o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",p(-a)),o.setAttributeNS(null,"width",p(n)+"px"),o.setAttributeNS(null,"height",p(a)+"px"),o.setAttributeNS(null,"transform","scale(".concat(p(1/n)," ").concat(p(-1/a),")")),t?t.append(o):this._ensureTransformGroup().append(o)}paintImageMaskXObject(e){const t=this.getObject(e.data,e);if(t.bitmap)return void(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");const n=this.current,a=t.width,r=t.height,o=n.fillColor;n.maskId="mask".concat(v++);const s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",n.maskId);const l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",p(a)),l.setAttributeNS(null,"height",p(r)),l.setAttributeNS(null,"fill",o),l.setAttributeNS(null,"mask","url(#".concat(n.maskId,")")),this.defs.append(s),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,s)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=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",p(e)),a.setAttributeNS(null,"height",p(n)),this.current.element=a,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const a=this.svgFactory.createElement("svg:g");return a.setAttributeNS(null,"transform",f(e.transform)),t.append(a),this.svg=a,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",f(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],a={items:t,styles:Object.create(null)};return function e(a){var i;if(!a)return;let r=null;const o=a.name;if("#text"===o)r=a.value;else{if(!n.shouldBuildText(o))return;null!==a&&void 0!==a&&null!==(i=a.attributes)&&void 0!==i&&i.textContent?r=a.attributes.textContent:a.value&&(r=a.value)}if(null!==r&&t.push({str:r}),a.children)for(const t of a.children)e(t)}(e),a}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,i.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);const{container:t,viewport:n}=e,a=getComputedStyle(t),r=a.getPropertyValue("visibility"),o=parseFloat(a.getPropertyValue("--scale-factor"));"visible"===r&&(!o||Math.abs(o-n.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const s=new u(e);return s._render(),s},t.updateTextLayer=function(e){let{container:t,viewport:n,textDivs:a,textDivProperties:r,isOffscreenCanvasSupported:o,mustRotate:s=!0,mustRescale:c=!0}=e;if(s&&(0,i.setLayerDimensions)(t,{rotation:n.rotation}),c){const e=l(0,o),t={prevFontSize:null,prevFontFamily:null,div:null,scale:n.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:e};for(const n of a)t.properties=r.get(n),t.div=n,d(t)}};var a=n(1),i=n(6);const r=30,o=.8,s=new Map;function l(e,t){let n;if(t&&a.FeatureTest.isOffscreenCanvasSupported)n=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{const t=document.createElement("canvas");t.width=t.height=e,n=t.getContext("2d",{alpha:!1})}return n}function c(e,t,n){const i=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);const d=a.Util.transform(e._transform,t.transform);let u=Math.atan2(d[1],d[0]);const h=n[t.fontName];h.vertical&&(u+=Math.PI/2);const p=Math.hypot(d[2],d[3]),f=p*function(e,t){const n=s.get(e);if(n)return n;const a=l(r,t);a.font="".concat(r,"px ").concat(e);const i=a.measureText("");let c=i.fontBoundingBoxAscent,d=Math.abs(i.fontBoundingBoxDescent);if(c){const t=c/(c+d);return s.set(e,t),a.canvas.width=a.canvas.height=0,t}a.strokeStyle="red",a.clearRect(0,0,r,r),a.strokeText("g",0,0);let u=a.getImageData(0,0,r,r).data;d=0;for(let o=u.length-1-3;o>=0;o-=4)if(u[o]>0){d=Math.ceil(o/4/r);break}a.clearRect(0,0,r,r),a.strokeText("A",0,r),u=a.getImageData(0,0,r,r).data,c=0;for(let o=0,s=u.length;o0){c=r-Math.floor(o/4/r);break}if(a.canvas.width=a.canvas.height=0,c){const t=c/(c+d);return s.set(e,t),t}return s.set(e,o),o}(h.fontFamily,e._isOffscreenCanvasSupported);let m,v;0===u?(m=d[4],v=d[5]-f):(m=d[4]+f*Math.sin(u),v=d[5]-f*Math.cos(u));const g="calc(var(--scale-factor)*",y=i.style;e._container===e._rootContainer?(y.left="".concat((100*m/e._pageWidth).toFixed(2),"%"),y.top="".concat((100*v/e._pageHeight).toFixed(2),"%")):(y.left="".concat(g).concat(m.toFixed(2),"px)"),y.top="".concat(g).concat(v.toFixed(2),"px)")),y.fontSize="".concat(g).concat(p.toFixed(2),"px)"),y.fontFamily=h.fontFamily,c.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==u&&(c.angle=u*(180/Math.PI));let b=!1;if(t.str.length>1)b=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(b=!0)}b&&(c.canvasWidth=h.vertical?t.height:t.width),e._textDivProperties.set(i,c),e._isReadableStream&&e._layoutText(i)}function d(e){const{div:t,scale:n,properties:a,ctx:i,prevFontSize:r,prevFontFamily:o}=e,{style:s}=t;let l="";if(0!==a.canvasWidth&&a.hasText){const{fontFamily:c}=s,{canvasWidth:d,fontSize:u}=a;r===u&&o===c||(i.font="".concat(u*n,"px ").concat(c),e.prevFontSize=u,e.prevFontFamily=c);const{width:h}=i.measureText(t.textContent);h>0&&(l="scaleX(".concat(d*n/h,")"))}0!==a.angle&&(l="rotate(".concat(a.angle,"deg) ").concat(l)),l.length>0&&(s.transform=l)}class u{constructor(e){var t;let{textContentSource:n,container:r,viewport:o,textDivs:s,textDivProperties:c,textContentItemsStr:d,isOffscreenCanvasSupported:u}=e;this._textContentSource=n,this._isReadableStream=n instanceof ReadableStream,this._container=this._rootContainer=r,this._textDivs=s||[],this._textContentItemsStr=d||[],this._isOffscreenCanvasSupported=u,this._fontInspectorEnabled=!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled),this._reader=null,this._textDivProperties=c||new WeakMap,this._canceled=!1,this._capability=new a.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:o.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,u)};const{pageWidth:h,pageHeight:p,pageX:f,pageY:m}=o.rawDims;this._transform=[1,0,0,-1,-f,m+p],this._pageWidth=h,this._pageHeight=p,(0,i.setLayerDimensions)(r,o),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new a.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new a.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(const n of e)if(void 0!==n.str)this._textContentItemsStr.push(n.str),c(this,n,t);else if("beginMarkedContentProps"===n.type||"beginMarkedContent"===n.type){const e=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==n.id&&this._container.setAttribute("id","".concat(n.id)),e.append(this._container)}else"endMarkedContent"===n.type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,d(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){const e=new a.PromiseCapability;let t=Object.create(null);if(this._isReadableStream){const n=()=>{this._reader.read().then((a=>{let{value:i,done:r}=a;r?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),n())}),e.reject)};this._reader=this._textContentSource.getReader(),n()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:t,styles:n}=this._textContentSource;this._processItems(t,n),e.resolve()}}e.promise.then((()=>{t=null,function(e){if(e._canceled)return;const t=e._textDivs,n=e._capability;if(t.length>1e5)n.resolve();else{if(!e._isReadableStream)for(const n of t)e._layoutText(n);n.resolve()}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var a=n(1),i=n(4),r=n(28),o=n(33),s=n(6),l=n(34),c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakSet;class _{constructor(e){let{uiManager:t,pageIndex:n,div:a,accessibilityManager:i,annotationLayer:s,viewport:x,l10n:w}=e;_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,c,void 0),_classPrivateFieldInitSpec(this,d,!1),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,h,this.pointerup.bind(this)),_classPrivateFieldInitSpec(this,p,this.pointerdown.bind(this)),_classPrivateFieldInitSpec(this,f,new Map),_classPrivateFieldInitSpec(this,m,!1),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,y,void 0);const C=[r.FreeTextEditor,o.InkEditor,l.StampEditor];if(!_._initialized){_._initialized=!0;for(const e of C)e.initialize(w)}t.registerEditorTypes(C),_classPrivateFieldSet(y,this,t),this.pageIndex=n,this.div=a,_classPrivateFieldSet(c,this,i),_classPrivateFieldSet(u,this,s),this.viewport=x,_classPrivateFieldGet(y,this).addLayer(this)}get isEmpty(){return 0===_classPrivateFieldGet(f,this).size}updateToolbar(e){_classPrivateFieldGet(y,this).updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(y,this).getMode();_assertClassBrand(b,this,S).call(this),e===a.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==a.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===a.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===a.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===a.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(y,this).getMode()===a.AnnotationEditorType.INK){if(!e)for(const e of _classPrivateFieldGet(f,this).values())if(e.isEmpty())return void e.setInBackground();_assertClassBrand(b,this,w).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){_classPrivateFieldGet(y,this).setEditingState(e)}addCommands(e){_classPrivateFieldGet(y,this).addCommands(e)}enable(){this.div.style.pointerEvents="auto";const e=new Set;for(const n of _classPrivateFieldGet(f,this).values())n.enableEditing(),n.annotationElementId&&e.add(n.annotationElementId);if(!_classPrivateFieldGet(u,this))return;const t=_classPrivateFieldGet(u,this).getEditableAnnotations();for(const n of t){if(n.hide(),_classPrivateFieldGet(y,this).isDeletedAnnotationElement(n.data.id))continue;if(e.has(n.data.id))continue;const t=this.deserialize(n);t&&(this.addOrRebuild(t),t.enableEditing())}}disable(){_classPrivateFieldSet(g,this,!0),this.div.style.pointerEvents="none";const e=new Set;for(const n of _classPrivateFieldGet(f,this).values()){var t;n.disableEditing(),n.annotationElementId&&null===n.serialize()?(null===(t=this.getEditableAnnotation(n.annotationElementId))||void 0===t||t.show(),n.remove()):e.add(n.annotationElementId)}if(_classPrivateFieldGet(u,this)){const t=_classPrivateFieldGet(u,this).getEditableAnnotations();for(const n of t){const{id:t}=n.data;e.has(t)||_classPrivateFieldGet(y,this).isDeletedAnnotationElement(t)||n.show()}}_assertClassBrand(b,this,S).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(g,this,!1)}getEditableAnnotation(e){var t;return(null===(t=_classPrivateFieldGet(u,this))||void 0===t?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){_classPrivateFieldGet(y,this).getActive()!==e&&_classPrivateFieldGet(y,this).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(p,this)),this.div.addEventListener("pointerup",_classPrivateFieldGet(h,this))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(p,this)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(h,this))}attach(e){_classPrivateFieldGet(f,this).set(e.id,e);const{annotationElementId:t}=e;t&&_classPrivateFieldGet(y,this).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(y,this).removeDeletedAnnotationElement(e)}detach(e){var t;_classPrivateFieldGet(f,this).delete(e.id),null===(t=_classPrivateFieldGet(c,this))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(g,this)&&e.annotationElementId&&_classPrivateFieldGet(y,this).addDeletedAnnotationElement(e)}remove(e){this.detach(e),_classPrivateFieldGet(y,this).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{_classPrivateFieldGet(y,this).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(v,this)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(y,this).addDeletedAnnotationElement(e.annotationElementId),i.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),_classPrivateFieldGet(y,this).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(y,this).addToAnnotationStorage(e)}moveEditorInDOM(e){var t;if(!e.isAttachedToDOM)return;const{activeElement:n}=document;e.div.contains(n)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),n.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(c,this))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return _classPrivateFieldGet(y,this).getId()}pasteEditor(e,t){_classPrivateFieldGet(y,this).updateToolbar(e),_classPrivateFieldGet(y,this).updateMode(e);const{offsetX:n,offsetY:a}=_assertClassBrand(b,this,C).call(this),i=this.getNextId(),r=_assertClassBrand(b,this,x).call(this,{parent:this,id:i,x:n,y:a,uiManager:_classPrivateFieldGet(y,this),isCentered:!0,...t});r&&this.add(r)}deserialize(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case a.AnnotationEditorType.FREETEXT:return r.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(y,this));case a.AnnotationEditorType.INK:return o.InkEditor.deserialize(e,this,_classPrivateFieldGet(y,this));case a.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,_classPrivateFieldGet(y,this))}return null}addNewEditor(){_assertClassBrand(b,this,w).call(this,_assertClassBrand(b,this,C).call(this),!0)}setSelected(e){_classPrivateFieldGet(y,this).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(y,this).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(y,this).isSelected(e)}unselect(e){_classPrivateFieldGet(y,this).unselect(e)}pointerup(e){const{isMac:t}=a.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(m,this)&&(_classPrivateFieldSet(m,this,!1),_classPrivateFieldGet(d,this)?_classPrivateFieldGet(y,this).getMode()!==a.AnnotationEditorType.STAMP?_assertClassBrand(b,this,w).call(this,e,!1):_classPrivateFieldGet(y,this).unselectAll():_classPrivateFieldSet(d,this,!0))}pointerdown(e){if(_classPrivateFieldGet(m,this))return void _classPrivateFieldSet(m,this,!1);const{isMac:t}=a.FeatureTest.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;_classPrivateFieldSet(m,this,!0);const n=_classPrivateFieldGet(y,this).getActive();_classPrivateFieldSet(d,this,!n||n.isEmpty())}findNewParent(e,t,n){const a=_classPrivateFieldGet(y,this).findParent(t,n);return null!==a&&a!==this&&(a.changeParent(e),!0)}destroy(){var e;(null===(e=_classPrivateFieldGet(y,this).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(y,this).commitOrRemove(),_classPrivateFieldGet(y,this).setActiveEditor(null));for(const n of _classPrivateFieldGet(f,this).values()){var t;null===(t=_classPrivateFieldGet(c,this))||void 0===t||t.removePointerInTextLayer(n.contentDiv),n.setParent(null),n.isAttachedToDOM=!1,n.div.remove()}this.div=null,_classPrivateFieldGet(f,this).clear(),_classPrivateFieldGet(y,this).removeLayer(this)}render(e){let{viewport:t}=e;this.viewport=t,(0,s.setLayerDimensions)(this.div,t);for(const n of _classPrivateFieldGet(y,this).getEditors(this.pageIndex))this.add(n);this.updateMode()}update(e){let{viewport:t}=e;_classPrivateFieldGet(y,this).commitOrRemove(),this.viewport=t,(0,s.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}function x(e){switch(_classPrivateFieldGet(y,this).getMode()){case a.AnnotationEditorType.FREETEXT:return new r.FreeTextEditor(e);case a.AnnotationEditorType.INK:return new o.InkEditor(e);case a.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}function w(e,t){const n=this.getNextId(),a=_assertClassBrand(b,this,x).call(this,{parent:this,id:n,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(y,this),isCentered:t});return a&&this.add(a),a}function C(){const{x:e,y:t,width:n,height:a}=this.div.getBoundingClientRect(),i=Math.max(0,e),r=Math.max(0,t),o=(i+Math.min(window.innerWidth,e+n))/2-e,s=(r+Math.min(window.innerHeight,t+a))/2-t,[l,c]=this.viewport.rotation%180===0?[o,s]:[s,o];return{offsetX:l,offsetY:c}}function S(){_classPrivateFieldSet(v,this,!0);for(const e of _classPrivateFieldGet(f,this).values())e.isEmpty()&&e.remove();_classPrivateFieldSet(v,this,!1)}_defineProperty(_,"_initialized",!1),t.AnnotationEditorLayer=_},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=n(1),r=n(5),o=n(4),s=n(29),l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakSet;class y extends o.AnnotationEditor{static get _keyboardManager(){const e=y.prototype,t=e=>e.isEmpty(),n=r.AnnotationEditorUIManager.TRANSLATE_SMALL,a=r.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new r.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-a,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[a,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-a],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,a],checker:t}]]))}constructor(e){super({...e,name:"freeTextEditor"}),_classPrivateMethodInitSpec(this,g),_classPrivateFieldInitSpec(this,l,this.editorDivBlur.bind(this)),_classPrivateFieldInitSpec(this,c,this.editorDivFocus.bind(this)),_classPrivateFieldInitSpec(this,d,this.editorDivInput.bind(this)),_classPrivateFieldInitSpec(this,u,this.editorDivKeydown.bind(this)),_classPrivateFieldInitSpec(this,h,void 0),_classPrivateFieldInitSpec(this,p,""),_classPrivateFieldInitSpec(this,f,"".concat(this.id,"-editor")),_classPrivateFieldInitSpec(this,m,void 0),_classPrivateFieldInitSpec(this,v,null),_classPrivateFieldSet(h,this,e.color||y._defaultColor||o.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(m,this,e.fontSize||y._defaultFontSize)}static initialize(e){o.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:y._defaultFontSize=t;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:y._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:_assertClassBrand(g,this,b).call(this,t);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:_assertClassBrand(g,this,_).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,y._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,y._defaultColor||o.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(m,this)],[i.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(h,this)]]}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale;return[-y._internalPadding*e,-(y._internalPadding+_classPrivateFieldGet(m,this))*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(u,this)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(c,this)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(l,this)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(d,this)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(f,this)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(u,this)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(c,this)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(l,this)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(d,this)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var e;this.width?_assertClassBrand(g,this,A).call(this):(this.enableEditMode(),this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=_classPrivateFieldGet(p,this),t=_classPrivateFieldSet(p,this,_assertClassBrand(g,this,x).call(this).trimEnd());if(e===t)return;const n=e=>{_classPrivateFieldSet(p,this,e),e?(_assertClassBrand(g,this,C).call(this),this._uiManager.rebuild(this),_assertClassBrand(g,this,w).call(this)):this.remove()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),_assertClassBrand(g,this,w).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){y._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(f,this)),this.enableEditing(),o.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),o.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize="calc(".concat(_classPrivateFieldGet(m,this),"px * var(--scale-factor))"),n.color=_classPrivateFieldGet(h,this),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,r.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,a]=this.parentDimensions;if(this.annotationElementId){const{position:i}=_classPrivateFieldGet(v,this);let[r,o]=this.getInitialTranslation();[r,o]=this.pageTranslationToScreen(r,o);const[s,l]=this.pageDimensions,[c,d]=this.pageTranslation;let u,h;switch(this.rotation){case 0:u=e+(i[0]-c)/s,h=t+this.height-(i[1]-d)/l;break;case 90:u=e+(i[0]-c)/s,h=t-(i[1]-d)/l,[r,o]=[o,-r];break;case 180:u=e-this.width+(i[0]-c)/s,h=t-(i[1]-d)/l,[r,o]=[-r,-o];break;case 270:u=e+(i[0]-c-this.height*l)/s,h=t+(i[1]-d-this.width*s)/l,[r,o]=[-o,r]}this.setAt(u*n,h*a,r,o)}else this.setAt(e*n,t*a,this.width*n,this.height*a);_assertClassBrand(g,this,C).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t,n){let a=null;if(e instanceof s.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:t,fontColor:n},rect:r,rotation:o,id:s},textContent:l,textPosition:c,parent:{page:{pageNumber:d}}}=e;if(!l||0===l.length)return null;a=e={annotationType:i.AnnotationEditorType.FREETEXT,color:Array.from(n),fontSize:t,value:l.join("\n"),position:c,pageIndex:d-1,rect:r,rotation:o,id:s,deleted:!1}}const r=super.deserialize(e,t,n);return _classPrivateFieldSet(m,r,e.fontSize),_classPrivateFieldSet(h,r,i.Util.makeHexColor(...e.color)),_classPrivateFieldSet(p,r,e.value),r.annotationElementId=e.id||null,_classPrivateFieldSet(v,r,a),r}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const t=y._internalPadding*this.parentScale,n=this.getRect(t,t),a=o.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(h,this)),r={annotationType:i.AnnotationEditorType.FREETEXT,color:a,fontSize:_classPrivateFieldGet(m,this),value:_classPrivateFieldGet(p,this),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?r:this.annotationElementId&&!_assertClassBrand(g,this,S).call(this,r)?null:(r.id=this.annotationElementId,r)}}function b(e){const t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(m,this))*this.parentScale),_classPrivateFieldSet(m,this,e),_assertClassBrand(g,this,w).call(this)},n=_classPrivateFieldGet(m,this);this.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function _(e){const t=_classPrivateFieldGet(h,this);this.addCommands({cmd:()=>{_classPrivateFieldSet(h,this,this.editorDiv.style.color=e)},undo:()=>{_classPrivateFieldSet(h,this,this.editorDiv.style.color=t)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function x(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(const n of e)t.push(n.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}function w(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,a=t.style.display;t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=a}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}function C(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(p,this))for(const e of _classPrivateFieldGet(p,this).split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function S(e){const{value:t,fontSize:n,color:a,rect:i,pageIndex:r}=_classPrivateFieldGet(v,this);return e.value!==t||e.fontSize!==n||e.rect.some(((e,t)=>Math.abs(e-i[t])>=1))||e.color.some(((e,t)=>e!==a[t]))||e.pageIndex!==r}function A(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.annotationElementId)return;if(_assertClassBrand(g,this,w).call(this),!e&&(0===this.width||0===this.height))return void setTimeout((()=>_assertClassBrand(g,this,A).call(this,!0)),0);const t=a._internalPadding*this.parentScale;_classPrivateFieldGet(v,this).rect=this.getRect(t,t)}a=y,_defineProperty(y,"_freeTextDefaultContent",""),_defineProperty(y,"_internalPadding",0),_defineProperty(y,"_defaultColor",null),_defineProperty(y,"_defaultFontSize",10),_defineProperty(y,"_type","freetext"),t.FreeTextEditor=y},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var a=n(1),i=n(6),r=n(3),o=n(30),s=n(31),l=n(32);const c=1e3,d=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class h{static create(e){switch(e.data.annotationType){case a.AnnotationType.LINK:return new v(e);case a.AnnotationType.TEXT:return new b(e);case a.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new x(e);case"Btn":return e.data.radioButton?new S(e):e.data.checkBox?new C(e):new A(e);case"Ch":return new k(e);case"Sig":return new w(e)}return new _(e);case a.AnnotationType.POPUP:return new j(e);case a.AnnotationType.FREETEXT:return new J(e);case a.AnnotationType.LINE:return new Q(e);case a.AnnotationType.SQUARE:return new te(e);case a.AnnotationType.CIRCLE:return new ae(e);case a.AnnotationType.POLYLINE:return new re(e);case a.AnnotationType.CARET:return new se(e);case a.AnnotationType.INK:return new ce(e);case a.AnnotationType.POLYGON:return new oe(e);case a.AnnotationType.HIGHLIGHT:return new de(e);case a.AnnotationType.UNDERLINE:return new ue(e);case a.AnnotationType.SQUIGGLY:return new he(e);case a.AnnotationType.STRIKEOUT:return new pe(e);case a.AnnotationType.STAMP:return new fe(e);case a.AnnotationType.FILEATTACHMENT:return new ge(e);default:return new f(e)}}}var p=new WeakMap;class f{constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classPrivateFieldInitSpec(this,p,!1),this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),a&&this._createQuadrilaterals()}static _hasPopupData(e){let{titleObj:t,contentsObj:n,richText:a}=e;return!!(null!==t&&void 0!==t&&t.str||null!==n&&void 0!==n&&n.str||null!==a&&void 0!==a&&a.str)}get hasPopupData(){return f._hasPopupData(this.data)}_createContainer(e){const{data:t,parent:{page:n,viewport:i}}=this,r=document.createElement("section");r.setAttribute("data-annotation-id",t.id),this instanceof _||(r.tabIndex=c),r.style.zIndex=this.parent.zIndex++,this.data.popupRef&&r.setAttribute("aria-haspopup","dialog"),t.noRotate&&r.classList.add("norotate");const{pageWidth:o,pageHeight:s,pageX:l,pageY:d}=i.rawDims;if(!t.rect||this instanceof j){const{rotation:e}=t;return t.hasOwnCanvas||0===e||this.setRotation(e,r),r}const{width:h,height:f}=u(t.rect),m=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(!e&&t.borderStyle.width>0){r.style.borderWidth="".concat(t.borderStyle.width,"px");const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t="calc(".concat(e,"px * var(--scale-factor)) / calc(").concat(n,"px * var(--scale-factor))");r.style.borderRadius=t}else if(this instanceof S){const e="calc(".concat(h,"px * var(--scale-factor)) / calc(").concat(f,"px * var(--scale-factor))");r.style.borderRadius=e}switch(t.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:r.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:r.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:r.style.borderBottomStyle="solid"}const i=t.borderColor||null;i?(_classPrivateFieldSet(p,this,!0),r.style.borderColor=a.Util.makeHexColor(0|i[0],0|i[1],0|i[2])):r.style.borderWidth=0}r.style.left="".concat(100*(m[0]-l)/o,"%"),r.style.top="".concat(100*(m[1]-d)/s,"%");const{rotation:v}=t;return t.hasOwnCanvas||0===v?(r.style.width="".concat(100*h/o,"%"),r.style.height="".concat(100*f/s,"%")):this.setRotation(v,r),r}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(!this.data.rect)return;const{pageWidth:n,pageHeight:a}=this.parent.viewport.rawDims,{width:i,height:r}=u(this.data.rect);let o,s;e%180===0?(o=100*i/n,s=100*r/a):(o=100*r/n,s=100*i/a),t.style.width="".concat(o,"%"),t.style.height="".concat(s,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const a=n.detail[e],i=a[0],r=a.slice(1);n.target.style[t]=o.ColorConverters["".concat(i,"_HTML")](r),this.annotationStorage.setValue(this.data.id,{[t]:o.ColorConverters["".concat(i,"_rgb")](r)})};return(0,a.shadow)(this,"_commonActions",{display:e=>{const{display:t}=e.detail,n=t%2===1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const a of Object.keys(t.detail)){const i=e[a]||n[a];null===i||void 0===i||i(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[a,i]of Object.entries(t)){const r=n[a];r&&(r({detail:{[a]:i},target:e}),delete t[a])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,n,a,i]=this.data.rect;if(1===e.length){const[,{x:r,y:o},{x:s,y:l}]=e[0];if(a===r&&i===o&&t===s&&n===l)return}const{style:r}=this.container;let o;if(_classPrivateFieldGet(p,this)){const{borderColor:e,borderWidth:t}=r;r.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'','')],this.container.classList.add("hasBorder")}const s=a-t,l=i-n,{svgFactory:c}=this,d=c.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0);const u=c.createElement("defs");d.append(u);const h=c.createElement("clipPath"),f="clippath_".concat(this.data.id);h.setAttribute("id",f),h.setAttribute("clipPathUnits","objectBoundingBox"),u.append(h);for(const[,{x:p,y:v},{x:g,y:y}]of e){var m;const e=c.createElement("rect"),n=(g-t)/s,a=(i-v)/l,r=(p-g)/s,d=(v-y)/l;e.setAttribute("x",n),e.setAttribute("y",a),e.setAttribute("width",r),e.setAttribute("height",d),h.append(e),null===(m=o)||void 0===m||m.push(''))}_classPrivateFieldGet(p,this)&&(o.push("')"),r.backgroundImage=o.join("")),this.container.append(d),this.container.style.clipPath="url(#".concat(f,")")}_createPopup(){const{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");const n=new j({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:e,id:r,exportValues:o}of i){if(-1===e)continue;if(r===t)continue;const i="string"===typeof o?o:null,s=document.querySelector('[data-element-id="'.concat(r,'"]'));!s||d.has(s)?n.push({id:r,exportValue:i,domElement:s}):(0,a.warn)("_getElementsByName - element not allowed: ".concat(r))}return n}for(const a of document.getElementsByName(e)){const{exportValue:e}=a,i=a.getAttribute("data-element-id");i!==t&&d.has(a)&&n.push({id:i,exportValue:e,domElement:a})}return n}show(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{var n;null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}var m=new WeakSet;class v extends f{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),_classPrivateMethodInitSpec(this,m),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let a=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),a=!0):e.action?(this._bindNamedAction(n,e.action),a=!0):e.attachment?(this._bindAttachment(n,e.attachment),a=!0):e.setOCGState?(_assertClassBrand(m,this,y).call(this,n,e.setOCGState),a=!0):e.dest?(this._bindLink(n,e.dest),a=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),a=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),a=!0):this.isTooltipOnly&&!a&&(this._bindLink(n,""),a=!0)),this.container.classList.add("linkAnnotation"),a&&this.container.append(n),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&_assertClassBrand(m,this,g).call(this)}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),_assertClassBrand(m,this,g).call(this)}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>{var e;return null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,t.content,t.filename),!1},_assertClassBrand(m,this,g).call(this)}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const a of Object.keys(t.actions)){const i=n.get(a);i&&(e[i]=()=>{var e;return null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:a}}),!1})}e.onclick||(e.onclick=()=>!1),_assertClassBrand(m,this,g).call(this)}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),_assertClassBrand(m,this,g).call(this),!this._fieldObjects)return(0,a.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{null===n||void 0===n||n();const{fields:e,refs:i,include:r}=t,o=[];if(0!==e.length||0!==i.length){const t=new Set(i);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===r&&o.push(n)}else for(const t of Object.values(this._fieldObjects))o.push(...t);const s=this.annotationStorage,l=[];for(const t of o){const{id:e}=t;switch(l.push(e),t.type){case"text":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;s.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}default:continue}const n=document.querySelector('[data-element-id="'.concat(e,'"]'));n&&(d.has(n)?n.dispatchEvent(new Event("resetform")):(0,a.warn)("_bindResetFormAction - element not allowed: ".concat(e)))}var c;return this.enableScripting&&(null===(c=this.linkService.eventBus)||void 0===c||c.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}})),!1}}}function g(){this.container.setAttribute("data-internal-link","")}function y(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),_assertClassBrand(m,this,g).call(this)}class b extends f{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return 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.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class _ extends f{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&("CANVAS"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){const{isWin:t,isMac:n}=a.FeatureTest.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,a,i){n.includes("mouse")?e.addEventListener(n,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:i(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(n,(e=>{var r;if("blur"===n){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===n){if(t.focused)return;t.focused=!0}i&&(null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:i(e)}}))}))}_setEventListeners(e,t,n,a){for(const[s,l]of n){var i,r,o;("Action"===l||null!==(i=this.data.actions)&&void 0!==i&&i[l])&&("Focus"!==l&&"Blur"!==l||t||(t={focused:!1}),this._setEventListener(e,t,s,l,a),"Focus"!==l||null!==(r=this.data.actions)&&void 0!==r&&r.Blur?"Blur"!==l||null!==(o=this.data.actions)&&void 0!==o&&o.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":a.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,r=e.style;let o;const s=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(a.LINE_FACTOR*i))||1);o=Math.min(i,s(t/a.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);o=Math.min(i,s(e/a.LINE_FACTOR))}r.fontSize="calc(".concat(o,"px * var(--scale-factor))"),r.color=a.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(r.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class x extends _{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,a){const i=this.annotationStorage;for(const r of this._getElementsByName(e.name,e.id))r.domElement&&(r.domElement[t]=n),i.setValue(r.id,{[a]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){var a;const s=e.getValue(t,{value:this.data.fieldValue});let l=s.value||"";const u=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;u&&l.length>u&&(l=l.slice(0,u));let h=s.formattedValue||(null===(a=this.data.textContent)||void 0===a?void 0:a.join("\n"))||null;h&&this.data.comb&&(h=h.replaceAll(/\s+/g,""));const p={userValue:l,formattedValue:h,lastCommittedValue:null,commitKey:1,focused:!1};var i,r;this.data.multiLine?(n=document.createElement("textarea"),n.textContent=null!==(i=h)&&void 0!==i?i:l,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",null!==(r=h)&&void 0!==r?r:l),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),d.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=c,this._setRequired(n,this.data.required),u&&(n.maxLength=u),n.addEventListener("input",(a=>{e.setValue(t,{value:a.target.value}),this.setPropertyOnSiblings(n,"value",a.target.value,"value"),p.formattedValue=null})),n.addEventListener("resetform",(e=>{var t;const a=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";n.value=p.userValue=a,p.formattedValue=null}));let f=e=>{const{formattedValue:t}=p;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var o;n.addEventListener("focus",(e=>{if(p.focused)return;const{target:t}=e;p.userValue&&(t.value=p.userValue),p.lastCommittedValue=t.value,p.commitKey=1,p.focused=!0})),n.addEventListener("updatefromsandbox",(n=>{this.showElementAndHideCanvas(n.target);const a={value(n){var a;p.userValue=null!==(a=n.detail.value)&&void 0!==a?a:"",e.setValue(t,{value:p.userValue.toString()}),n.target.value=p.userValue},formattedValue(n){const{formattedValue:a}=n.detail;p.formattedValue=a,null!==a&&void 0!==a&&n.target!==document.activeElement&&(n.target.value=a),e.setValue(t,{formattedValue:a})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{var a;const{charLimit:i}=n.detail,{target:r}=n;if(0===i)return void r.removeAttribute("maxLength");r.setAttribute("maxLength",i);let o=p.userValue;!o||o.length<=i||(o=o.slice(0,i),r.value=p.userValue=o,e.setValue(t,{value:o}),null===(a=this.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:1,selStart:r.selectionStart,selEnd:r.selectionEnd}}))}};this._dispatchEventFromSandbox(a,n)})),n.addEventListener("keydown",(e=>{var n;p.commitKey=1;let a=-1;if("Escape"===e.key?a=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(p.commitKey=3):a=2,-1===a)return;const{value:i}=e.target;p.lastCommittedValue!==i&&(p.lastCommittedValue=i,p.userValue=i,null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:a,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const a=f;f=null,n.addEventListener("blur",(e=>{if(!p.focused||!e.relatedTarget)return;p.focused=!1;const{value:n}=e.target;var i;p.userValue=n,p.lastCommittedValue!==n&&(null===(i=this.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:p.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),a(e)})),null!==(o=this.data.actions)&&void 0!==o&&o.Keystroke&&n.addEventListener("beforeinput",(e=>{var n;p.lastCommittedValue=null;const{data:a,target:i}=e,{value:r,selectionStart:o,selectionEnd:s}=i;let l=o,c=s;switch(e.inputType){case"deleteWordBackward":{const e=r.substring(0,o).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}case"deleteWordForward":{const e=r.substring(o).match(/^[^\w]*\w*/);e&&(c+=e[0].length);break}case"deleteContentBackward":o===s&&(l-=1);break;case"deleteContentForward":o===s&&(c+=1)}e.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,change:a||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(n,p,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(f&&n.addEventListener("blur",f),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/u;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(e,"px * var(--scale-factor) - 1ch)")}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class w extends _{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class C extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let a=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof a&&(a="Off"!==a,e.setValue(n,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const i=document.createElement("input");return d.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,a&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=c,i.addEventListener("change",(a=>{const{name:i,checked:r}=a.target;for(const o of this._getElementsByName(i,n)){const n=r&&o.exportValue===t.exportValue;o.domElement&&(o.domElement.checked=n),e.setValue(o.id,{value:n})}e.setValue(n,{value:r})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{const a={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(a,t)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class S extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,n=t.id;let a=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof a&&(a=a!==t.buttonValue,e.setValue(n,{value:a}));const i=document.createElement("input");if(d.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,a&&i.setAttribute("checked",!0),i.tabIndex=c,i.addEventListener("change",(t=>{const{name:a,checked:i}=t.target;for(const r of this._getElementsByName(a,n))e.setValue(r.id,{value:!1});e.setValue(n,{value:i})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const a=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{const i={value:t=>{const i=a===t.detail.value;for(const a of this._getElementsByName(t.target.name)){const t=i&&a.id===n;a.domElement&&(a.domElement.checked=t),e.setValue(a.id,{value:t})}}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class A extends v{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class k extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),a=document.createElement("select");d.add(a),a.setAttribute("data-element-id",t),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=c;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of a.options)n.selected=n.value===t}));for(const c of this.data.options){const e=document.createElement("option");e.textContent=c.displayValue,e.value=c.exportValue,n.value.includes(c.exportValue)&&(e.setAttribute("selected",!0),i=!1),a.append(e)}let r=null;if(i){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),a.prepend(e),r=()=>{e.remove(),a.removeEventListener("input",r),r=null},a.addEventListener("input",r)}const o=e=>{const t=e?"value":"textContent",{options:n,multiple:i}=a;return i?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[t])):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let s=o(!1);const l=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",(n=>{const i={value(n){var i;null===(i=r)||void 0===i||i();const l=n.detail.value,c=new Set(Array.isArray(l)?l:[l]);for(const e of a.options)e.selected=c.has(e.value);e.setValue(t,{value:o(!0)}),s=o(!1)},multipleSelection(e){a.multiple=!0},remove(n){const i=a.options,r=n.detail.remove;i[r].selected=!1,a.remove(r),i.length>0&&-1===Array.prototype.findIndex.call(i,(e=>e.selected))&&(i[0].selected=!0),e.setValue(t,{value:o(!0),items:l(n)}),s=o(!1)},clear(n){for(;0!==a.length;)a.remove(0);e.setValue(t,{value:null,items:[]}),s=o(!1)},insert(n){const{index:i,displayValue:r,exportValue:c}=n.detail.insert,d=a.children[i],u=document.createElement("option");u.textContent=r,u.value=c,d?d.before(u):a.append(u),e.setValue(t,{value:o(!0),items:l(n)}),s=o(!1)},items(n){const{items:i}=n.detail;for(;0!==a.length;)a.remove(0);for(const e of i){const{displayValue:t,exportValue:n}=e,i=document.createElement("option");i.textContent=t,i.value=n,a.append(i)}a.options.length>0&&(a.options[0].selected=!0),e.setValue(t,{value:o(!0),items:l(n)}),s=o(!1)},indices(n){const a=new Set(n.detail.indices);for(const e of n.target.options)e.selected=a.has(e.index);e.setValue(t,{value:o(!0)}),s=o(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,n)})),a.addEventListener("input",(n=>{var a;const i=o(!0);e.setValue(t,{value:i}),n.preventDefault(),null===(a=this.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):a.addEventListener("input",(function(n){e.setValue(t,{value:o(!0)})})),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class j extends f{constructor(e){const{data:t,elements:n}=e;super(e,{isRenderable:f._hasPopupData(t)}),this.elements=n}render(){this.container.classList.add("popupAnnotation");const e=new G({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(const n of this.elements)n.popup=e,t.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>"".concat(a.AnnotationPrefix).concat(e))).join(",")),this.container}}var I=new WeakMap,F=new WeakMap,T=new WeakMap,P=new WeakMap,E=new WeakMap,O=new WeakMap,N=new WeakMap,R=new WeakMap,M=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,W=new WeakMap,z=new WeakMap,U=new WeakMap,H=new WeakMap,q=new WeakMap,V=new WeakSet;class G{constructor(e){let{container:t,color:n,elements:a,titleObj:r,modificationDate:o,contentsObj:s,richText:l,parent:c,rect:d,parentRect:u,open:h}=e;_classPrivateMethodInitSpec(this,V),_classPrivateFieldInitSpec(this,I,null),_classPrivateFieldInitSpec(this,F,_assertClassBrand(V,this,$).bind(this)),_classPrivateFieldInitSpec(this,T,_assertClassBrand(V,this,Y).bind(this)),_classPrivateFieldInitSpec(this,P,_assertClassBrand(V,this,K).bind(this)),_classPrivateFieldInitSpec(this,E,_assertClassBrand(V,this,X).bind(this)),_classPrivateFieldInitSpec(this,O,null),_classPrivateFieldInitSpec(this,N,null),_classPrivateFieldInitSpec(this,R,null),_classPrivateFieldInitSpec(this,M,null),_classPrivateFieldInitSpec(this,D,null),_classPrivateFieldInitSpec(this,L,null),_classPrivateFieldInitSpec(this,B,!1),_classPrivateFieldInitSpec(this,W,null),_classPrivateFieldInitSpec(this,z,null),_classPrivateFieldInitSpec(this,U,null),_classPrivateFieldInitSpec(this,H,null),_classPrivateFieldInitSpec(this,q,!1),_classPrivateFieldSet(N,this,t),_classPrivateFieldSet(H,this,r),_classPrivateFieldSet(R,this,s),_classPrivateFieldSet(U,this,l),_classPrivateFieldSet(D,this,c),_classPrivateFieldSet(O,this,n),_classPrivateFieldSet(z,this,d),_classPrivateFieldSet(L,this,u),_classPrivateFieldSet(M,this,a);const p=i.PDFDateString.toDateObject(o);p&&_classPrivateFieldSet(I,this,c.l10n.get("annotation_date_string",{date:p.toLocaleDateString(),time:p.toLocaleTimeString()})),this.trigger=a.flatMap((e=>e.getElementsToTriggerPopup()));for(const i of this.trigger)i.addEventListener("click",_classPrivateFieldGet(E,this)),i.addEventListener("mouseenter",_classPrivateFieldGet(P,this)),i.addEventListener("mouseleave",_classPrivateFieldGet(T,this)),i.classList.add("popupTriggerArea");for(const i of a){var f;null===(f=i.container)||void 0===f||f.addEventListener("keydown",_classPrivateFieldGet(F,this))}_classPrivateFieldGet(N,this).hidden=!0,h&&_assertClassBrand(V,this,X).call(this)}render(){if(_classPrivateFieldGet(W,this))return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:i,pageY:r}}}=_classPrivateFieldGet(D,this),o=_classPrivateFieldSet(W,this,document.createElement("div"));if(o.className="popup",_classPrivateFieldGet(O,this)){const e=o.style.outlineColor=a.Util.makeHexColor(..._classPrivateFieldGet(O,this));if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))o.style.backgroundColor="color-mix(in srgb, ".concat(e," 30%, white)");else{const e=.7;o.style.backgroundColor=a.Util.makeHexColor(..._classPrivateFieldGet(O,this).map((t=>Math.floor(e*(255-t)+t))))}}const s=document.createElement("span");s.className="header";const c=document.createElement("h1");if(s.append(c),({dir:c.dir,str:c.textContent}=_classPrivateFieldGet(H,this)),o.append(s),_classPrivateFieldGet(I,this)){const e=document.createElement("span");e.classList.add("popupDate"),_classPrivateFieldGet(I,this).then((t=>{e.textContent=t})),s.append(e)}const d=_classPrivateFieldGet(R,this),u=_classPrivateFieldGet(U,this);if(null===u||void 0===u||!u.str||null!==d&&void 0!==d&&d.str&&d.str!==u.str){const e=this._formatContents(d);o.append(e)}else l.XfaLayer.render({xfaHtml:u.html,intent:"richText",div:o}),o.lastChild.classList.add("richText","popupContent");let h=!!_classPrivateFieldGet(L,this),p=_classPrivateFieldGet(h?L:z,this);for(const l of _classPrivateFieldGet(M,this))if(!p||null!==a.Util.intersect(l.data.rect,p)){p=l.data.rect,h=!0;break}const f=a.Util.normalizeRect([p[0],e[3]-p[1]+e[1],p[2],e[3]-p[3]+e[1]]),m=h?p[2]-p[0]+5:0,v=f[0]+m,g=f[1],{style:y}=_classPrivateFieldGet(N,this);y.left="".concat(100*(v-i)/t,"%"),y.top="".concat(100*(g-r)/n,"%"),_classPrivateFieldGet(N,this).append(o)}_formatContents(e){let{str:t,dir:n}=e;const a=document.createElement("p");a.classList.add("popupContent"),a.dir=n;const i=t.split(/(?:\r\n?|\n)/);for(let r=0,o=i.length;r{"Enter"===e.key&&(i?e.metaKey:e.ctrlKey)&&_assertClassBrand(ve,this,ye).call(this)})),!t.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return _classPrivateFieldGet(me,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}function ye(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}var be=new WeakMap,_e=new WeakMap,xe=new WeakMap,we=new WeakSet;function Ce(e,t){var n;const i=e.firstChild||e;i.id="".concat(a.AnnotationPrefix).concat(t),this.div.append(e),null===(n=_classPrivateFieldGet(be,this))||void 0===n||n.moveElementInDOM(this.div,e,i,!1)}function Se(){if(!_classPrivateFieldGet(_e,this))return;const e=this.div;for(const[t,n]of _classPrivateFieldGet(_e,this)){const a=e.querySelector('[data-annotation-id="'.concat(t,'"]'));if(!a)continue;const{firstChild:i}=a;i?"CANVAS"===i.nodeName?i.replaceWith(n):i.before(n):a.append(n)}_classPrivateFieldGet(_e,this).clear()}t.AnnotationLayer=class{constructor(e){let{div:t,accessibilityManager:n,annotationCanvasMap:a,l10n:i,page:r,viewport:o}=e;_classPrivateMethodInitSpec(this,we),_classPrivateFieldInitSpec(this,be,null),_classPrivateFieldInitSpec(this,_e,null),_classPrivateFieldInitSpec(this,xe,new Map),this.div=t,_classPrivateFieldSet(be,this,n),_classPrivateFieldSet(_e,this,a),this.l10n=i,this.page=r,this.viewport=o,this.zIndex=0,this.l10n||(this.l10n=s.NullL10n)}async render(e){const{annotations:t}=e,n=this.div;(0,i.setLayerDimensions)(n,this.viewport);const o=new Map,s={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new r.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const i of t){if(i.noHTML)continue;const e=i.annotationType===a.AnnotationType.POPUP;if(e){const e=o.get(i.id);if(!e)continue;s.elements=e}else{const{width:e,height:t}=u(i.rect);if(e<=0||t<=0)continue}s.data=i;const t=h.create(s);if(!t.isRenderable)continue;if(!e&&i.popupRef){const e=o.get(i.popupRef);e?e.push(t):o.set(i.popupRef,[t])}t.annotationEditorType>0&&_classPrivateFieldGet(xe,this).set(t.data.id,t);const n=t.render();i.hidden&&(n.style.visibility="hidden"),_assertClassBrand(we,this,Ce).call(this,n,i.id)}_assertClassBrand(we,this,Se).call(this),await this.l10n.translate(n)}update(e){let{viewport:t}=e;const n=this.div;this.viewport=t,(0,i.setLayerDimensions)(n,{rotation:t.rotation}),_assertClassBrand(we,this,Se).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(_classPrivateFieldGet(xe,this).values())}getEditableAnnotation(e){return _classPrivateFieldGet(xe,this).get(e)}}},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function a(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){let[t,n,a,i]=e;return["G",1-Math.min(1,.3*t+.59*a+.11*n+i)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_rgb(e){let[t]=e;return t=a(t),[t,t,t]}static G_HTML(e){let[t]=e;const a=n(t);return"#".concat(a).concat(a).concat(a)}static RGB_G(e){let[t,n,a]=e;return["G",.3*t+.59*n+.11*a]}static RGB_rgb(e){return e.map(a)}static RGB_HTML(e){return"#".concat(e.map(n).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){let[t,n,a,i]=e;return["RGB",1-Math.min(1,t+i),1-Math.min(1,a+i),1-Math.min(1,n+i)]}static CMYK_rgb(e){let[t,n,i,r]=e;return[a(1-Math.min(1,t+r)),a(1-Math.min(1,i+r)),a(1-Math.min(1,n+r))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,a]=e;const i=1-t,r=1-n,o=1-a;return["CMYK",i,r,o,Math.min(i,r,o)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=a;const n={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing\u2026",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function a(e,t){switch(e){case"find_match_count":e="find_match_count[".concat(1===t.total?"one":"other","]");break;case"find_match_count_limit":e="find_match_count_limit[".concat(1===t.limit?"one":"other","]")}return n[e]||""}n.print_progress_percent="{{progress}}%";const i={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",async get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:a(e,t),t)},async translate(e){}};t.NullL10n=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var a=n(25);t.XfaLayer=class{static setupStorage(e,t,n,a,i){const r=a.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==r.value&&(e.textContent=r.value),"print"===i)break;e.addEventListener("input",(e=>{a.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(r.value===n.attributes.xfaOn?e.setAttribute("checked",!0):r.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{a.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==r.value&&e.setAttribute("value",r.value),"print"===i)break;e.addEventListener("input",(e=>{a.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==r.value){e.setAttribute("value",r.value);for(const e of n.children)e.attributes.value===r.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",(e=>{const n=e.target.options,i=-1===n.selectedIndex?"":n[n.selectedIndex].value;a.setValue(t,{value:i})}))}}static setAttributes(e){let{html:t,element:n,storage:a=null,intent:i,linkService:r}=e;const{attributes:o}=n,s=t instanceof HTMLAnchorElement;"radio"===o.type&&(o.name="".concat(o.name,"-").concat(i));for(const[l,c]of Object.entries(o))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&r.addLinkAttributes(t,o.href,o.newWindow),a&&o.dataId&&this.setupStorage(t,o.dataId,n,a)}static render(e){const t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,r=e.intent||"display",o=document.createElement(i.name);i.attributes&&this.setAttributes({html:o,element:i,intent:r,linkService:n});const s=[[i,-1,o]],l=e.div;if(l.append(o),e.viewport){const t="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=t}"richText"!==r&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){var d;const[e,i,o]=s.at(-1);if(i+1===e.children.length){s.pop();continue}const l=e.children[++s.at(-1)[1]];if(null===l)continue;const{name:u}=l;if("#text"===u){const e=document.createTextNode(l.value);c.push(e),o.append(e);continue}const h=null!==l&&void 0!==l&&null!==(d=l.attributes)&&void 0!==d&&d.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u);if(o.append(h),l.attributes&&this.setAttributes({html:h,element:l,storage:t,intent:r,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,h]);else if(l.value){const e=document.createTextNode(l.value);a.XfaText.shouldBuildText(u)&&c.push(e),h.append(e)}}for(const a of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))a.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var i=n(1),r=n(4),o=n(29),s=n(6),l=n(5),c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakMap,_=new WeakMap,x=new WeakMap,w=new WeakMap,C=new WeakSet;class S extends r.AnnotationEditor{constructor(e){super({...e,name:"inkEditor"}),_classPrivateMethodInitSpec(this,C),_classPrivateFieldInitSpec(this,c,0),_classPrivateFieldInitSpec(this,d,0),_classPrivateFieldInitSpec(this,u,this.canvasPointermove.bind(this)),_classPrivateFieldInitSpec(this,h,this.canvasPointerleave.bind(this)),_classPrivateFieldInitSpec(this,p,this.canvasPointerup.bind(this)),_classPrivateFieldInitSpec(this,f,this.canvasPointerdown.bind(this)),_classPrivateFieldInitSpec(this,m,new Path2D),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,y,!1),_classPrivateFieldInitSpec(this,b,null),_classPrivateFieldInitSpec(this,_,0),_classPrivateFieldInitSpec(this,x,0),_classPrivateFieldInitSpec(this,w,null),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){r.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:S._defaultThickness=t;break;case i.AnnotationEditorParamsType.INK_COLOR:S._defaultColor=t;break;case i.AnnotationEditorParamsType.INK_OPACITY:S._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:_assertClassBrand(C,this,A).call(this,t);break;case i.AnnotationEditorParamsType.INK_COLOR:_assertClassBrand(C,this,k).call(this,t);break;case i.AnnotationEditorParamsType.INK_OPACITY:_assertClassBrand(C,this,j).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,S._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,S._defaultColor||r.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*S._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||S._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||S._defaultColor||r.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:S._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(_assertClassBrand(C,this,B).call(this),_assertClassBrand(C,this,W).call(this)),this.isAttachedToDOM||(this.parent.add(this),_assertClassBrand(C,this,z).call(this)),_assertClassBrand(C,this,Y).call(this)))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(b,this).disconnect(),_classPrivateFieldSet(b,this,null),super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){const[e,t]=this.parentDimensions,n=this.width*e,a=this.height*t;this.setDimensions(n,a)}enableEditMode(){_classPrivateFieldGet(v,this)||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(f,this)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(f,this)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(v,this)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(v,this,!0),this.div.classList.add("disabled"),_assertClassBrand(C,this,Y).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),this.enableEditMode())}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(v,this)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_assertClassBrand(C,this,T).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),_assertClassBrand(C,this,P).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),_assertClassBrand(C,this,L).call(this,e)}canvasPointerleave(e){_assertClassBrand(C,this,L).call(this,e)}get isResizable(){return!this.isEmpty()&&_classPrivateFieldGet(v,this)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),r.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>{var t;return null===(t=this.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));const[n,a,i,o]=_assertClassBrand(C,this,I).call(this);if(this.setAt(n,a,0,0),this.setDims(i,o),_assertClassBrand(C,this,B).call(this),this.width){const[n,a]=this.parentDimensions;this.setAspectRatio(this.width*n,this.height*a),this.setAt(e*n,t*a,this.width*n,this.height*a),_classPrivateFieldSet(y,this,!0),_assertClassBrand(C,this,z).call(this),this.setDims(this.width*n,this.height*a),_assertClassBrand(C,this,D).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _assertClassBrand(C,this,W).call(this),this.div}setDimensions(e,t){const n=Math.round(e),a=Math.round(t);if(_classPrivateFieldGet(_,this)===n&&_classPrivateFieldGet(x,this)===a)return;_classPrivateFieldSet(_,this,n),_classPrivateFieldSet(x,this,a),this.canvas.style.visibility="hidden";const[i,r]=this.parentDimensions;this.width=e/i,this.height=t/r,this.fixAndSetPosition(),_classPrivateFieldGet(v,this)&&_assertClassBrand(C,this,U).call(this,e,t),_assertClassBrand(C,this,z).call(this),_assertClassBrand(C,this,D).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(e,t,n){if(e instanceof o.InkAnnotationElement)return null;const a=super.deserialize(e,t,n);a.thickness=e.thickness,a.color=i.Util.makeHexColor(...e.color),a.opacity=e.opacity;const[s,l]=a.pageDimensions,u=a.width*s,h=a.height*l,p=a.parentScale,f=e.thickness/2;_classPrivateFieldSet(v,a,!0),_classPrivateFieldSet(_,a,Math.round(u)),_classPrivateFieldSet(x,a,Math.round(h));const{paths:m,rect:g,rotation:y}=e;for(let{bezier:i}of m){i=G.call(S,i,g,y);const e=[];a.paths.push(e);let t=p*(i[0]-f),n=p*(i[1]-f);for(let a=2,o=i.length;a{this.thickness=e,_assertClassBrand(C,this,Y).call(this)},undo:()=>{this.thickness=t,_assertClassBrand(C,this,Y).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function k(e){const t=this.color;this.addCommands({cmd:()=>{this.color=e,_assertClassBrand(C,this,D).call(this)},undo:()=>{this.color=t,_assertClassBrand(C,this,D).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function j(e){e/=100;const t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,_assertClassBrand(C,this,D).call(this)},undo:()=>{this.opacity=t,_assertClassBrand(C,this,D).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function I(){const{parentRotation:e,parentDimensions:[t,n]}=this;switch(e){case 90:return[0,n,n,t];case 180:return[t,n,t,n];case 270:return[t,0,n,t];default:return[0,0,t,n]}}function F(){const{ctx:e,color:t,opacity:n,thickness:a,parentScale:i,scaleFactor:r}=this;e.lineWidth=a*i/r,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,l.opacityToHex)(n))}function T(e,t){var n;this.canvas.addEventListener("contextmenu",s.noContextMenu),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(h,this)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(u,this)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(p,this)),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(f,this)),this.isEditing=!0,_classPrivateFieldGet(y,this)||(_classPrivateFieldSet(y,this,!0),_assertClassBrand(C,this,z).call(this),this.thickness||(this.thickness=a._defaultThickness),this.color||(this.color=a._defaultColor||r.AnnotationEditor._defaultLineColor),null!==(n=this.opacity)&&void 0!==n||(this.opacity=a._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(g,this,!1),_assertClassBrand(C,this,F).call(this),_classPrivateFieldSet(w,this,(()=>{_assertClassBrand(C,this,N).call(this),_classPrivateFieldGet(w,this)&&window.requestAnimationFrame(_classPrivateFieldGet(w,this))})),window.requestAnimationFrame(_classPrivateFieldGet(w,this))}function P(e,t){const[n,a]=this.currentPath.at(-1);if(this.currentPath.length>1&&e===n&&t===a)return;const i=this.currentPath;let r=_classPrivateFieldGet(m,this);if(i.push([e,t]),_classPrivateFieldSet(g,this,!0),i.length<=2)return r.moveTo(...i[0]),void r.lineTo(e,t);3===i.length&&(_classPrivateFieldSet(m,this,r=new Path2D),r.moveTo(...i[0])),_assertClassBrand(C,this,R).call(this,r,...i.at(-3),...i.at(-2),e,t)}function E(){if(0===this.currentPath.length)return;const e=this.currentPath.at(-1);_classPrivateFieldGet(m,this).lineTo(...e)}function O(e,t){let n;if(_classPrivateFieldSet(w,this,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_assertClassBrand(C,this,P).call(this,e,t),_assertClassBrand(C,this,E).call(this),1!==this.currentPath.length)n=_assertClassBrand(C,this,M).call(this);else{const a=[e,t];n=[[a,a.slice(),a.slice(),a]]}const a=_classPrivateFieldGet(m,this),i=this.currentPath;this.currentPath=[],_classPrivateFieldSet(m,this,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(i),this.paths.push(n),this.bezierPath2D.push(a),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_assertClassBrand(C,this,B).call(this),_assertClassBrand(C,this,W).call(this)),_assertClassBrand(C,this,Y).call(this))},mustExec:!0})}function N(){if(!_classPrivateFieldGet(g,this))return;_classPrivateFieldSet(g,this,!1);Math.ceil(this.thickness*this.parentScale);const e=this.currentPath.slice(-3),t=e.map((e=>e[0])),n=e.map((e=>e[1])),{ctx:a}=(Math.min(...t),Math.max(...t),Math.min(...n),Math.max(...n),this);a.save(),a.clearRect(0,0,this.canvas.width,this.canvas.height);for(const i of this.bezierPath2D)a.stroke(i);a.stroke(_classPrivateFieldGet(m,this)),a.restore()}function R(e,t,n,a,i,r,o){const s=(t+a)/2,l=(n+i)/2,c=(a+r)/2,d=(i+o)/2;e.bezierCurveTo(s+2*(a-s)/3,l+2*(i-l)/3,c+2*(a-c)/3,d+2*(i-d)/3,c,d)}function M(){const e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];const t=[];let n,[a,i]=e[0];for(n=1;n{this.canvas.removeEventListener("contextmenu",s.noContextMenu)}),10),_assertClassBrand(C,this,O).call(this,e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function B(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",r.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>{var t;return null===(t=this.canvas)||void 0===t?void 0:t.setAttribute("aria-label",e)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function W(){_classPrivateFieldSet(b,this,new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}))),_classPrivateFieldGet(b,this).observe(this.div)}function z(){if(!_classPrivateFieldGet(y,this))return;const[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_assertClassBrand(C,this,H).call(this)}function U(e,t){const n=_assertClassBrand(C,this,K).call(this),a=(e-n)/_classPrivateFieldGet(d,this),i=(t-n)/_classPrivateFieldGet(c,this);this.scaleFactor=Math.min(a,i)}function H(){const e=_assertClassBrand(C,this,K).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function q(e){const t=new Path2D;for(let n=0,a=e.length;n0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!_classPrivateFieldGet(v,this))return void _assertClassBrand(C,this,D).call(this);const t=_assertClassBrand(C,this,X).call(this),n=_assertClassBrand(C,this,K).call(this);_classPrivateFieldSet(d,this,Math.max(r.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(c,this,Math.max(r.AnnotationEditor.MIN_SIZE,t[3]-t[1]));const a=Math.ceil(n+_classPrivateFieldGet(d,this)*this.scaleFactor),i=Math.ceil(n+_classPrivateFieldGet(c,this)*this.scaleFactor),[o,s]=this.parentDimensions;this.width=a/o,this.height=i/s,this.setAspectRatio(a,i);const l=this.translationX,u=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_assertClassBrand(C,this,z).call(this),_assertClassBrand(C,this,D).call(this),_classPrivateFieldSet(_,this,a),_classPrivateFieldSet(x,this,i),this.setDims(a,i);const h=e?n/this.scaleFactor/2:0;this.translate(l-this.translationX-h,u-this.translationY-h)}a=S,_defineProperty(S,"_defaultColor",null),_defineProperty(S,"_defaultOpacity",1),_defineProperty(S,"_defaultThickness",1),_defineProperty(S,"_type","ink"),t.InkEditor=S},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var i=n(1),r=n(4),o=n(6),s=n(29),l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakSet;class b extends r.AnnotationEditor{constructor(e){super({...e,name:"stampEditor"}),_classPrivateMethodInitSpec(this,y),_classPrivateFieldInitSpec(this,l,null),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,h,null),_classPrivateFieldInitSpec(this,p,null),_classPrivateFieldInitSpec(this,f,null),_classPrivateFieldInitSpec(this,m,null),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldSet(u,this,e.bitmapUrl),_classPrivateFieldSet(h,this,e.bitmapFile)}static initialize(e){r.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,i.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>"image/".concat(e))))}static get supportedTypesStr(){return(0,i.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(i.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}remove(){var e,t;_classPrivateFieldGet(c,this)&&(_classPrivateFieldSet(l,this,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(c,this)),null===(e=_classPrivateFieldGet(p,this))||void 0===e||e.remove(),_classPrivateFieldSet(p,this,null),null===(t=_classPrivateFieldGet(f,this))||void 0===t||t.disconnect(),_classPrivateFieldSet(f,this,null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(_classPrivateFieldGet(c,this)&&_assertClassBrand(y,this,w).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(c,this)&&_assertClassBrand(y,this,w).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(_classPrivateFieldGet(d,this)||_classPrivateFieldGet(l,this)||_classPrivateFieldGet(u,this)||_classPrivateFieldGet(h,this))}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,_classPrivateFieldGet(l,this)?_assertClassBrand(y,this,C).call(this):_assertClassBrand(y,this,w).call(this),this.width){const[n,a]=this.parentDimensions;this.setAt(e*n,t*a,this.width*n,this.height*a)}return this.div}static deserialize(e,t,n){if(e instanceof s.StampAnnotationElement)return null;const a=super.deserialize(e,t,n),{rect:i,bitmapUrl:r,bitmapId:o,isSvg:l,accessibilityData:d}=e;o&&n.imageManager.isValidId(o)?_classPrivateFieldSet(c,a,o):_classPrivateFieldSet(u,a,r),_classPrivateFieldSet(v,a,l);const[h,p]=a.pageDimensions;return a.width=(i[2]-i[0])/h,a.height=(i[3]-i[1])/p,d&&(a.altTextData=d),a}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;const n={annotationType:i.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(c,this),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(v,this),structTreeParentId:this._structTreeParentId};if(e)return n.bitmapUrl=_assertClassBrand(y,this,j).call(this,!0),n.accessibilityData=this.altTextData,n;const{decorative:a,altText:r}=this.altTextData;if(!a&&r&&(n.accessibilityData={type:"Figure",alt:r}),null===t)return n;t.stamps||(t.stamps=new Map);const o=_classPrivateFieldGet(v,this)?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(c,this))){if(_classPrivateFieldGet(v,this)){const e=t.stamps.get(_classPrivateFieldGet(c,this));o>e.area&&(e.area=o,e.serialized.bitmap.close(),e.serialized.bitmap=_assertClassBrand(y,this,j).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(c,this),{area:o,serialized:n}),n.bitmap=_assertClassBrand(y,this,j).call(this,!1);return n}}function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(l,this,e.bitmap),t||(_classPrivateFieldSet(c,this,e.id),_classPrivateFieldSet(v,this,e.isSvg)),_assertClassBrand(y,this,C).call(this)):this.remove()}function x(){_classPrivateFieldSet(d,this,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(p,this)&&this.div.focus()}function w(){if(_classPrivateFieldGet(c,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(c,this)).then((e=>_assertClassBrand(y,this,_).call(this,e,!0))).finally((()=>_assertClassBrand(y,this,x).call(this)));if(_classPrivateFieldGet(u,this)){const e=_classPrivateFieldGet(u,this);return _classPrivateFieldSet(u,this,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(d,this,this._uiManager.imageManager.getFromUrl(e).then((e=>_assertClassBrand(y,this,_).call(this,e))).finally((()=>_assertClassBrand(y,this,x).call(this))))}if(_classPrivateFieldGet(h,this)){const e=_classPrivateFieldGet(h,this);return _classPrivateFieldSet(h,this,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(d,this,this._uiManager.imageManager.getFromFile(e).then((e=>_assertClassBrand(y,this,_).call(this,e))).finally((()=>_assertClassBrand(y,this,x).call(this))))}const e=document.createElement("input");e.type="file",e.accept=a.supportedTypesStr,_classPrivateFieldSet(d,this,new Promise((t=>{e.addEventListener("change",(async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);_assertClassBrand(y,this,_).call(this,t)}else this.remove();t()})),e.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>_assertClassBrand(y,this,x).call(this)))),e.click()}function C(){const{div:e}=this;let{width:t,height:n}=_classPrivateFieldGet(l,this);const[a,i]=this.pageDimensions,r=.75;if(this.width)t=this.width*a,n=this.height*i;else if(t>r*a||n>r*i){const e=Math.min(r*a/t,r*i/n);t*=e,n*=e}const[o,s]=this.parentDimensions;this.setDims(t*o/a,n*s/i),this._uiManager.enableWaiting(!1);const c=_classPrivateFieldSet(p,this,document.createElement("canvas"));e.append(c),e.hidden=!1,_assertClassBrand(y,this,k).call(this,t,n),_assertClassBrand(y,this,I).call(this),_classPrivateFieldGet(g,this)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(g,this,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function S(e,t){var n;const[a,i]=this.parentDimensions;this.width=e/a,this.height=t/i,this.setDims(e,t),null!==(n=this._initialOptions)&&void 0!==n&&n.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(m,this)&&clearTimeout(_classPrivateFieldGet(m,this)),_classPrivateFieldSet(m,this,setTimeout((()=>{_classPrivateFieldSet(m,this,null),_assertClassBrand(y,this,k).call(this,e,t)}),200))}function A(e,t){const{width:n,height:a}=_classPrivateFieldGet(l,this);let i=n,r=a,o=_classPrivateFieldGet(l,this);for(;i>2*e||r>2*t;){const n=i,a=r;i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2)),r>2*t&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2));const s=new OffscreenCanvas(i,r);s.getContext("2d").drawImage(o,0,0,n,a,0,0,i,r),o=s.transferToImageBitmap()}return o}function k(e,t){e=Math.ceil(e),t=Math.ceil(t);const n=_classPrivateFieldGet(p,this);if(!n||n.width===e&&n.height===t)return;n.width=e,n.height=t;const a=_classPrivateFieldGet(v,this)?_classPrivateFieldGet(l,this):_assertClassBrand(y,this,A).call(this,e,t),i=n.getContext("2d");i.filter=this._uiManager.hcmFilter,i.drawImage(a,0,0,a.width,a.height,0,0,e,t)}function j(e){if(e){if(_classPrivateFieldGet(v,this)){const e=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(c,this));if(e)return e}const e=document.createElement("canvas");return({width:e.width,height:e.height}=_classPrivateFieldGet(l,this)),e.getContext("2d").drawImage(_classPrivateFieldGet(l,this),0,0),e.toDataURL()}if(_classPrivateFieldGet(v,this)){const[e,t]=this.pageDimensions,n=Math.round(this.width*e*o.PixelsPerInch.PDF_TO_CSS_UNITS),a=Math.round(this.height*t*o.PixelsPerInch.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(n,a);return i.getContext("2d").drawImage(_classPrivateFieldGet(l,this),0,0,_classPrivateFieldGet(l,this).width,_classPrivateFieldGet(l,this).height,0,0,n,a),i.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(l,this))}function I(){_classPrivateFieldSet(f,this,new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&_assertClassBrand(y,this,S).call(this,t.width,t.height)}))),_classPrivateFieldGet(f,this).observe(this.div)}a=b,_defineProperty(b,"_type","stamp"),t.StampEditor=b}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return r.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return o.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return a.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return a.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return a.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return a.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return n.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return a.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return a.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return a.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return a.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return a.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return a.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return a.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return i.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return a.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return i.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),a=__w_pdfjs_require__(6),i=__w_pdfjs_require__(26),r=__w_pdfjs_require__(27),o=__w_pdfjs_require__(5),s=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__nested_webpack_exports__})(),module.exports=root.pdfjsLib=factory()},6644:(e,t,n)=>{("undefined"!==typeof window?window:{}).pdfjsWorker=n(3726)},3726:(e,t,n)=>{var a,i,r=n(8212).default,o=n(9333).default,s=n(6337).default,l=n(8740).default,c=n(9159).default,d=n(3675).default;a=globalThis,i=()=>(()=>{"use strict";var e=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var a,i=n(2),r=n(3),o=n(4),s=n(6),l=n(10),c=n(68),d=n(73),u=n(104),h=n(105),p=n(72);class f{constructor(e){this.name=e,this.terminated=!1,this._capability=new i.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=f;class m{static setup(e,t){let n=!1;e.on("test",(function(t){n||(n=!0,e.send("test",t instanceof Uint8Array))})),e.on("configure",(function(e){(0,i.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return m.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let n,a=!1,m=null;const v=new Set,g=(0,i.getVerbosityLevel)(),{docId:y,apiVersion:b}=e,_="3.11.174";if(b!==_)throw new Error('The API version "'.concat(b,'" does not match ')+'the Worker version "'.concat(_,'".'));const x=[];for(const i in[])x.push(i);if(x.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+x.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");const w=y+"_worker";let C=new u.MessageHandler(w,y,t);function S(){if(a)throw new Error("Worker was terminated")}function A(e){v.add(e)}function k(e){e.finish(),v.delete(e)}async function j(e){await n.ensureDoc("checkHeader"),await n.ensureDoc("parseStartXRef"),await n.ensureDoc("parse",[e]),await n.ensureDoc("checkFirstPage",[e]),await n.ensureDoc("checkLastPage",[e]);const t=await n.ensureDoc("isPureXfa");if(t){const e=new f("loadXfaFonts");A(e),await Promise.all([n.loadXfaFonts(C,e).catch((e=>{})).then((()=>k(e))),n.loadXfaImages()])}const[a,i]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprints")]);return{numPages:a,fingerprints:i,htmlForXfa:t?await n.ensureDoc("htmlForXfa"):null}}function I(e){let{data:t,password:n,disableAutoFetch:a,rangeChunkSize:o,length:l,docBaseUrl:c,enableXfa:d,evaluatorOptions:u}=e;const p={source:null,disableAutoFetch:a,docBaseUrl:c,docId:y,enableXfa:d,evaluatorOptions:u,handler:C,length:l,password:n,rangeChunkSize:o},f=new i.PromiseCapability;let v;if(t){try{p.source=t,v=new s.LocalPdfManager(p),f.resolve(v)}catch(w){f.reject(w)}return f.promise}let g,b=[];try{g=new h.PDFWorkerStream(C)}catch(w){return f.reject(w),f.promise}const _=g.getFullReader();_.headersReady.then((function(){if(_.isRangeSupported){p.source=g,p.length=_.contentLength,p.disableAutoFetch||(p.disableAutoFetch=_.isStreamingSupported),v=new s.NetworkPdfManager(p);for(const e of b)v.sendProgressiveData(e);b=[],f.resolve(v),m=null}})).catch((function(e){f.reject(e),m=null}));let x=0;return new Promise((function(e,t){const n=function(e){let{value:a,done:o}=e;try{if(S(),o)return v||function(){const e=(0,r.arrayBuffersToBytes)(b);l&&e.length!==l&&(0,i.warn)("reported HTTP length is different from actual");try{p.source=e,v=new s.LocalPdfManager(p),f.resolve(v)}catch(w){f.reject(w)}b=[]}(),void(m=null);x+=a.byteLength,_.isStreamingSupported||C.send("DocProgress",{loaded:x,total:Math.max(x,_.contentLength||0)}),v?v.sendProgressiveData(a):b.push(a),_.read().then(n,t)}catch(c){t(c)}};_.read().then(n,t)})).catch((function(e){f.reject(e),m=null})),m=function(e){g.cancelAllRequests(e)},f.promise}return C.on("GetPage",(function(e){return n.getPage(e.pageIndex).then((function(e){return Promise.all([n.ensure(e,"rotate"),n.ensure(e,"ref"),n.ensure(e,"userUnit"),n.ensure(e,"view")]).then((function(e){let[t,n,a,i]=e;return{rotate:t,ref:n,userUnit:a,view:i}}))}))})),C.on("GetPageIndex",(function(e){const t=o.Ref.get(e.num,e.gen);return n.ensureCatalog("getPageIndex",[t])})),C.on("GetDestinations",(function(e){return n.ensureCatalog("destinations")})),C.on("GetDestination",(function(e){return n.ensureCatalog("getDestination",[e.id])})),C.on("GetPageLabels",(function(e){return n.ensureCatalog("pageLabels")})),C.on("GetPageLayout",(function(e){return n.ensureCatalog("pageLayout")})),C.on("GetPageMode",(function(e){return n.ensureCatalog("pageMode")})),C.on("GetViewerPreferences",(function(e){return n.ensureCatalog("viewerPreferences")})),C.on("GetOpenAction",(function(e){return n.ensureCatalog("openAction")})),C.on("GetAttachments",(function(e){return n.ensureCatalog("attachments")})),C.on("GetDocJSActions",(function(e){return n.ensureCatalog("jsActions")})),C.on("GetPageJSActions",(function(e){let{pageIndex:t}=e;return n.getPage(t).then((function(e){return n.ensure(e,"jsActions")}))})),C.on("GetOutline",(function(e){return n.ensureCatalog("documentOutline")})),C.on("GetOptionalContentConfig",(function(e){return n.ensureCatalog("optionalContentConfig")})),C.on("GetPermissions",(function(e){return n.ensureCatalog("permissions")})),C.on("GetMetadata",(function(e){return Promise.all([n.ensureDoc("documentInfo"),n.ensureCatalog("metadata")])})),C.on("GetMarkInfo",(function(e){return n.ensureCatalog("markInfo")})),C.on("GetData",(function(e){return n.requestLoadedStream().then((function(e){return e.bytes}))})),C.on("GetAnnotations",(function(e){let{pageIndex:t,intent:a}=e;return n.getPage(t).then((function(e){const n=new f("GetAnnotations: page ".concat(t));return A(n),e.getAnnotationsData(C,n,a).then((e=>(k(n),e)),(e=>{throw k(n),e}))}))})),C.on("GetFieldObjects",(function(e){return n.ensureDoc("fieldObjects")})),C.on("HasJSActions",(function(e){return n.ensureDoc("hasJSActions")})),C.on("GetCalculationOrderIds",(function(e){return n.ensureDoc("calculationOrderIds")})),C.on("SaveDocument",(async function(e){let{isPureXfa:t,numPages:a,annotationStorage:s,filename:c}=e;const u=[n.requestLoadedStream(),n.ensureCatalog("acroForm"),n.ensureCatalog("acroFormRef"),n.ensureDoc("startXRef"),n.ensureDoc("xref"),n.ensureDoc("linearization"),n.ensureCatalog("structTreeRoot")],h=[],m=t?null:(0,r.getNewAnnotationsMap)(s),[v,g,y,b,_,x,w]=await Promise.all(u),S=_.trailer.getRaw("Root")||null;let A;if(m){w?await w.canUpdateStructTree({pdfManager:n,newAnnotationsByPage:m})&&(A=w):await p.StructTreeRoot.canCreateStructureTree({catalogRef:S,pdfManager:n,newAnnotationsByPage:m})&&(A=null);const e=l.AnnotationFactory.generateImages(s.values(),_,n.evaluatorOptions.isOffscreenCanvasSupported),t=void 0===A?h:[];for(const[a,i]of m)t.push(n.getPage(a).then((t=>{const n=new f("Save (editor): page ".concat(a));return t.saveNewAnnotations(C,n,i,e).finally((function(){k(n)}))})));null===A?h.push(Promise.all(t).then((async e=>(await p.StructTreeRoot.createStructureTree({newAnnotationsByPage:m,xref:_,catalogRef:S,pdfManager:n,newRefs:e}),e)))):A&&h.push(Promise.all(t).then((async e=>(await A.updateStructureTree({newAnnotationsByPage:m,pdfManager:n,newRefs:e}),e))))}if(t)h.push(n.serializeXfaData(s));else for(let i=0;ie.needAppearances)),P=g instanceof o.Dict&&g.get("XFA")||null;let E=null,O=!1;if(Array.isArray(P)){for(let e=0,t=P.length;e{"string"===typeof n&&(e[t]=(0,i.stringToPDFString)(n))})),N={rootRef:S,encryptRef:_.trailer.getRaw("Encrypt")||null,newRef:_.getNewTemporaryRef(),infoRef:_.trailer.getRaw("Info")||null,info:e,fileIds:_.trailer.get("ID")||null,startXRef:x?b:null!==(R=_.lastXRefStreamPos)&&void 0!==R?R:b,filename:c}}return(0,d.incrementalUpdate)({originalData:v.bytes,xrefInfo:N,newRefs:I,xref:_,hasXfa:!!P,xfaDatasetsRef:E,hasXfaDatasetsEntry:O,needAppearances:T,acroFormRef:y,acroForm:g,xfaData:F}).finally((()=>{_.resetNewTemporaryRef()}))})),C.on("GetOperatorList",(function(e,t){const a=e.pageIndex;n.getPage(a).then((function(n){const r=new f("GetOperatorList: page ".concat(a));A(r);const o=g>=i.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:C,sink:t,task:r,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){k(r),o&&(0,i.info)("page=".concat(a+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){k(r),r.terminated||t.error(e)}))}))})),C.on("GetTextContent",(function(e,t){const{pageIndex:a,includeMarkedContent:r,disableNormalization:o}=e;n.getPage(a).then((function(e){const n=new f("GetTextContent: page "+a);A(n);const s=g>=i.VerbosityLevel.INFOS?Date.now():0;e.extractTextContent({handler:C,task:n,sink:t,includeMarkedContent:r,disableNormalization:o}).then((function(){k(n),s&&(0,i.info)("page=".concat(a+1," - getTextContent: time=")+"".concat(Date.now()-s,"ms")),t.close()}),(function(e){k(n),n.terminated||t.error(e)}))}))})),C.on("GetStructTree",(function(e){return n.getPage(e.pageIndex).then((function(e){return n.ensure(e,"getStructTree")}))})),C.on("FontFallback",(function(e){return n.fontFallback(e.id,C)})),C.on("Cleanup",(function(e){return n.cleanup(!0)})),C.on("Terminate",(function(e){a=!0;const t=[];if(n){n.terminate(new i.AbortException("Worker was terminated."));const e=n.cleanup();t.push(e),n=null}else(0,c.clearGlobalCaches)();m&&m(new i.AbortException("Worker was terminated."));for(const n of v)t.push(n.finished),n.terminate();return Promise.all(t).then((function(){C.destroy(),C=null}))})),C.on("Ready",(function(t){!function(e){function t(e){S(),C.send("GetDoc",{pdfInfo:e})}function o(e){if(S(),e instanceof i.PasswordException){const t=new f("PasswordException: response ".concat(e.code));A(t),C.sendWithPromise("PasswordRequest",e).then((function(e){let{password:a}=e;k(t),n.updatePassword(a),s()})).catch((function(){k(t),C.send("DocException",e)}))}else e instanceof i.InvalidPDFException||e instanceof i.MissingPDFException||e instanceof i.UnexpectedResponseException||e instanceof i.UnknownErrorException?C.send("DocException",e):C.send("DocException",new i.UnknownErrorException(e.message,e.toString()))}function s(){S(),j(!1).then(t,(function(e){S(),e instanceof r.XRefParseException?n.requestLoadedStream().then((function(){S(),j(!0).then(t,o)})):o(e)}))}S(),I(e).then((function(e){if(a)throw e.terminate(new i.AbortException("Worker was terminated.")),new Error("Worker was terminated");n=e,n.requestLoadedStream(!0).then((e=>{C.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(s,o)}(e),e=null})),w}static initializeFromPort(e){const t=new u.MessageHandler("worker","main",e);m.setup(t,e),t.send("ready",null)}}t.WorkerMessageHandler=m,"undefined"===typeof window&&!i.isNodeJS&&"undefined"!==typeof self&&"function"===typeof(a=self).postMessage&&"onmessage"in a&&m.initializeFromPort(self)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=p,t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);(null===t||void 0===t?void 0:t.length)>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=g(e)}catch{}}const a=t?new URL(e,t):new URL(e);if(function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch{}return null},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){var e,t;if("undefined"!==typeof crypto&&"function"===typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();const n=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(n);else for(let a=0;a<32;a++)n[a]=Math.floor(255*Math.random());return p(n)},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=i.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,a=e.length;nt?t.normalize("NFKC"):_.get(n)))},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,a]of e)t[n]=a;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=u,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=f,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),a=f(e);return n.decode(a)}catch(n){o('stringToPDFString: "'.concat(n,'".'))}}const t=[];for(let a=0,i=e.length;a=i.WARNINGS&&console.log("Warning: ".concat(e))}function s(e){throw new Error(e)}function u(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!a,configurable:!0,writable:!1}),n}const h=function(){function e(t,n){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function p(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||s("Invalid argument for bytesToString");const t=e.length,n=8192;if(te.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,n){return"#".concat(m[e]).concat(m[t]).concat(m[n])}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=this.applyTransform(e,t),a=this.applyTransform(e.slice(2,4),t),i=this.applyTransform([e[0],e[3]],t),r=this.applyTransform([e[2],e[1]],t);return[Math.min(n[0],a[0],i[0],r[0]),Math.min(n[1],a[1],i[1],r[1]),Math.max(n[0],a[0],i[0],r[0]),Math.max(n[1],a[1],i[1],r[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],r=e[2]*t[1]+e[3]*t[3],o=(n+r)/2,s=Math.sqrt((n+r)**2-4*(n*r-i*a))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>a)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),r=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>r?null:[n,i,a,r]}static bezierBoundingBox(e,t,n,a,i,r,o,s){const l=[],c=[[],[]];let d,u,h,p,f,m,v,g;for(let x=0;x<2;++x)if(0===x?(u=6*e-12*n+6*i,d=-3*e+9*n-9*i+3*o,h=3*n-3*e):(u=6*t-12*a+6*r,d=-3*t+9*a-9*r+3*s,h=3*a-3*t),Math.abs(d)<1e-12){if(Math.abs(u)<1e-12)continue;p=-h/u,0{this.resolve=t=>{d(y,this,!0),e(t)},this.reject=e=>{d(y,this,!0),t(e)}}))}get settled(){return c(y,this)}};let b=null,_=null;t.AnnotationPrefix="pdfjs_internal_id_"},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.PDF_VERSION_REGEXP=t.MissingDataException=void 0,t.arrayBuffersToBytes=function(e){const t=e.length;if(0===t)return new Uint8Array(0);if(1===t)return new Uint8Array(e[0]);let n=0;for(let r=0;r=0;a--){const t=o[a];if(t instanceof i.Dict)for(const a of t.getKeys()){const o=n[a];if(!o)continue;const s=[];h(t.getRaw(a),e,s,new i.RefSet),s.length>0&&(r[o]=s)}}if(t.has("A")){const n=[];h(t.get("A"),e,n,new i.RefSet),n.length>0&&(r.Action=n)}return(0,a.objectSize)(r)>0?r:null},t.encodeToXmlString=function(e){const t=[];let n=0;for(let a=0,i=e.length;a55295&&(i<57344||i>65533)&&a++,n=a+1}return 0===t.length?e:(n126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(n"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)))},t.getInheritableProperty=d,t.getLookupTableFactory=function(e){let t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getNewAnnotationsMap=function(e){if(!e)return null;const t=new Map;for(const[n,i]of e){if(!n.startsWith(a.AnnotationEditorPrefix))continue;let e=t.get(i.pageIndex);e||(e=[],t.set(i.pageIndex,e)),e.push(i)}return t.size>0?t:null},t.getRotationMatrix=function(e,t,n){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,n];case 270:return[0,-1,1,0,0,n];default:throw new Error("Invalid rotation")}},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.numberToString=function(e){if(Number.isInteger(e))return e.toString();const t=Math.round(100*e);return t%100===0?(t/100).toString():t%10===0?e.toFixed(1):e.toFixed(2)},t.parseXFAPath=function(e){const t=/(.+)\[(\d+)\]$/;return e.split(".").map((e=>{const n=e.match(t);return n?{name:n[1],pos:parseInt(n[2],10)}:{name:e,pos:0}}))},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.recoverJsURL=function(e){const t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);if(null!==t&&void 0!==t&&t[2]){const e=t[2];let n=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(n=!0),{url:e,newWindow:n}}return null},t.stringToUTF16HexString=function(e){const t=[];for(let n=0,a=e.length;n>8&255).toString(16).padStart(2,"0"),(255&a).toString(16).padStart(2,"0"))}return t.join("")},t.stringToUTF16String=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[];t&&n.push("\xfe\xff");for(let a=0,i=e.length;a>8&255),String.fromCharCode(255&t))}return n.join("")},t.toRomanNumerals=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const n=[];let i;for(;e>=1e3;)e-=1e3,n.push("M");i=e/100|0,e%=100,n.push(u[i]),i=e/10|0,e%=10,n.push(u[10+i]),n.push(u[20+e]);const r=n.join("");return t?r.toLowerCase():r},t.validateCSSFont=function(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:n,fontWeight:a,italicAngle:i}=e;if(!f(n,!0))return!1;const r=a?a.toString():"";e.fontWeight=t.has(r)?r:"400";const o=parseFloat(i);return e.italicAngle=isNaN(o)||o<-90||o>90?"14":i.toString(),!0},t.validateFontName=f;var a=n(2),i=n(4),r=n(5);t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;class o extends a.BaseException{constructor(e,t){super("Missing data [".concat(e,", ").concat(t,")"),"MissingDataException"),this.begin=e,this.end=t}}t.MissingDataException=o;class s extends a.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=s;class l extends a.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=l;class c extends a.BaseException{constructor(e){super(e,"XRefParseException")}}function d(e){let t,{dict:n,key:a,getArray:r=!1,stopWhenFound:o=!0}=e;const s=new i.RefSet;for(;n instanceof i.Dict&&(!n.objId||!s.has(n.objId));){n.objId&&s.put(n.objId);const e=r?n.getArray(a):n.get(a);if(void 0!==e){if(o)return e;(t||(t=[])).push(e)}n=n.get("Parent")}return t}t.XRefParseException=c;const u=["","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 h(e,t,n,o){if(!e)return;let s=null;if(e instanceof i.Ref){if(o.has(e))return;s=e,o.put(s),e=t.fetch(e)}if(Array.isArray(e))for(const a of e)h(a,t,n,o);else if(e instanceof i.Dict){if((0,i.isName)(e.get("S"),"JavaScript")){const t=e.get("JS");let i;t instanceof r.BaseStream?i=t.getString():"string"===typeof t&&(i=t),i&&(i=(0,a.stringToPDFString)(i).replaceAll("\0","")),i&&n.push(i)}h(e.getRaw("Next"),t,n,o)}s&&o.remove(s)}const p={60:"<",62:">",38:"&",34:""",39:"'"};function f(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=/^("|').*("|')$/.exec(e);if(n&&n[1]===n[2]){if(new RegExp("[^\\\\]".concat(n[1])).test(e.slice(1,-1)))return t&&(0,a.warn)("FontFamily contains unescaped ".concat(n[1],": ").concat(e,".")),!1}else for(const i of e.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(i)||!/^[\w-\\]+$/.test(i))return t&&(0,a.warn)("FontFamily contains invalid : ".concat(e,".")),!1;return!0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){o=Object.create(null),s=Object.create(null),l=Object.create(null)},t.isCmd=function(e,t){return e instanceof d&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof h&&(void 0===t||v(e.get("Type"),t))},t.isName=v,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen};var a=n(2);const i=Symbol("CIRCULAR_REF");t.CIRCULAR_REF=i;const r=Symbol("EOF");t.EOF=r;let o=Object.create(null),s=Object.create(null),l=Object.create(null);class c{constructor(e){this.name=e}static get(e){var t;return(t=s)[e]||(t[e]=new c(e))}}t.Name=c;class d{constructor(e){this.cmd=e}static get(e){var t;return(t=o)[e]||(t[e]=new d(e))}}t.Cmd=d;const u=function(){return u};class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=u}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,n){let a=this._map[e];return void 0===a&&void 0!==t&&(a=this._map[t],void 0===a&&void 0!==n&&(a=this._map[n])),a instanceof p&&this.xref?this.xref.fetch(a,this.suppressEncryption):a}async getAsync(e,t,n){let a=this._map[e];return void 0===a&&void 0!==t&&(a=this._map[t],void 0===a&&void 0!==n&&(a=this._map[n])),a instanceof p&&this.xref?this.xref.fetchAsync(a,this.suppressEncryption):a}getArray(e,t,n){let a=this._map[e];if(void 0===a&&void 0!==t&&(a=this._map[t],void 0===a&&void 0!==n&&(a=this._map[n])),a instanceof p&&this.xref&&(a=this.xref.fetch(a,this.suppressEncryption)),Array.isArray(a)){a=a.slice();for(let e=0,t=a.length;e{(0,a.unreachable)("Should not call `set` on the empty dictionary.")},(0,a.shadow)(this,"empty",e)}static merge(e){let{xref:t,dictArray:n,mergeSubDicts:a=!1}=e;const i=new h(t),r=new Map;for(const o of n)if(o instanceof h)for(const[e,t]of Object.entries(o._map)){let n=r.get(e);if(void 0===n)n=[],r.set(e,n);else if(!a||!(t instanceof h))continue;n.push(t)}for(const[o,s]of r){if(1===s.length||!(s[0]instanceof h)){i._map[o]=s[0];continue}const e=new h(t);for(const t of s)for(const[n,a]of Object.entries(t._map))void 0===e._map[n]&&(e._map[n]=a);e.size>0&&(i._map[o]=e)}return r.clear(),i.size>0?i:h.empty}clone(){const e=new h(this.xref);for(const t of this.getKeys())e.set(t,this.getRaw(t));return e}}t.Dict=h;class p{constructor(e,t){this.num=e,this.gen=t}toString(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}static fromString(e){const t=l[e];if(t)return t;const n=/^(\d+)R(\d*)$/.exec(e);return n&&"0"!==n[1]?l[e]=new p(parseInt(n[1]),n[2]?parseInt(n[2]):0):null}static get(e,t){var n;const a=0===t?"".concat(e,"R"):"".concat(e,"R").concat(t);return(n=l)[a]||(n[a]=new p(e,t))}}t.Ref=p;class f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._set=new Set(null===e||void 0===e?void 0:e._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=f;class m{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}function v(e,t){return e instanceof c&&(void 0===t||e.name===t)}t.RefSetCache=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var a=n(2);class i{constructor(){this.constructor===i&&(0,a.unreachable)("Cannot initialize BaseStream.")}get length(){(0,a.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,a.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,a.shadow)(this,"isDataLoaded",!0)}getByte(){(0,a.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,a.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e){const t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,a.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,a.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,a.unreachable)("Abstract method `reset` called")}moveStart(){(0,a.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t){(0,a.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}t.BaseStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var a=n(2),i=n(7),r=n(3),o=n(9),s=n(8);class l{constructor(e){var t;this.constructor===l&&(0,a.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=function(e){if(e){const t=(0,a.createValidAbsoluteUrl)(e);if(t)return t.href;(0,a.warn)('Invalid absolute docBaseUrl: "'.concat(e,'".'))}return null}(e.docBaseUrl),this._docId=e.docId,this._password=e.password,this.enableXfa=e.enableXfa,(t=e.evaluatorOptions).isOffscreenCanvasSupported&&(t.isOffscreenCanvasSupported=a.FeatureTest.isOffscreenCanvasSupported),this.evaluatorOptions=e.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}async ensure(e,t,n){(0,a.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,a.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,a.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,a.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,a.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends l{constructor(e){super(e);const t=new s.Stream(e.source);this.pdfDocument=new o.PDFDocument(this,t),this._loadedStreamPromise=Promise.resolve(t)}async ensure(e,t,n){const a=e[t];return"function"===typeof a?a.apply(e,n):a}requestRange(e,t){return Promise.resolve()}requestLoadedStream(){return this._loadedStreamPromise}terminate(e){}},t.NetworkPdfManager=class extends l{constructor(e){super(e),this.streamManager=new i.ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),this.pdfDocument=new o.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,n){try{const a=e[t];return"function"===typeof a?a.apply(e,n):a}catch(a){if(!(a instanceof r.MissingDataException))throw a;return await this.requestRange(a.begin,a.end),this.ensure(e,t,n)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=n(3),i=n(2),r=n(8);class o extends r.Stream{constructor(e,t,n){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,n=this.numChunks;t=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let i=n;ithis.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new a.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const n=Math.floor(e/this.chunkSize);if(n>this.numChunks)return;const i=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let r=n;r=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){const t=this.bytes,n=this.pos,a=this.end;if(!e)return a>this.progressiveDataLength&&this.ensureRange(n,a),t.subarray(n,a);let i=n+e;return i>a&&(i=a),i>this.progressiveDataLength&&this.ensureRange(n,i),this.pos=i,t.subarray(n,i)}getByteRange(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)}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function a(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),a.prototype=Object.create(this),a.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,a=[];for(let i=t;i{const o=s=>{let{value:l,done:c}=s;try{if(c){const t=(0,a.arrayBuffersToBytes)(i);return i=null,void e(t)}r+=l.byteLength,n.isStreamingSupported&&this.onProgress({loaded:r}),i.push(l),n.read().then(o,t)}catch(d){t(d)}};n.read().then(o,t)})).then((t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})}))}requestAllChunks(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])){const e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(t,n);for(const i of e)this.stream.hasChunk(i)||n.add(i);if(0===n.size)return Promise.resolve();const a=new i.PromiseCapability;this._promisesByRequest.set(t,a);const r=[];for(const i of n){let e=this._requestsByChunk.get(i);e||(e=[],this._requestsByChunk.set(i,e),r.push(i)),e.push(t)}if(r.length>0){const e=this.groupChunks(r);for(const t of e){const e=t.beginChunk*this.chunkSize,n=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,n).catch(a.reject)}}return a.promise.catch((e=>{if(!this.aborted)throw e}))}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const n=this.getBeginChunk(e),a=this.getEndChunk(t),i=[];for(let r=n;r0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e){const e=this.getBeginChunk(n.begin),a=this.getEndChunk(n.end);for(let n=e;n=0&&a+1!==r&&(t.push({beginChunk:n,endChunk:a+1}),n=r),i+1===e.length&&t.push({beginChunk:n,endChunk:r+1}),a=r}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,n=void 0===e.begin,a=n?this.progressiveDataLength:e.begin,i=a+t.byteLength,r=Math.floor(a/this.chunkSize),o=i0||s.push(t)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(o);Number.isInteger(e)&&this._requestChunks([e])}for(const l of s){const e=this._promisesByRequest.get(l);this._promisesByRequest.delete(l),e.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){var t;this.aborted=!0,null===(t=this.pdfNetworkStream)||void 0===t||t.cancelAllRequests(e);for(const n of this._promisesByRequest.values())n.reject(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var a=n(5),i=n(2);class r extends a.BaseStream{constructor(e,t,n,a){super(),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=a}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const t=this.bytes,n=this.pos,a=this.end;if(!e)return t.subarray(n,a);let i=n+e;return i>a&&(i=a),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new r(this.bytes.buffer,e,t,n)}}t.Stream=r,t.StringStream=class extends r{constructor(e){super((0,i.stringToBytes)(e))}},t.NullStream=class extends r{constructor(){super(new Uint8Array(0))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0;var a=n(2),i=n(10),r=n(3),l=n(4),c=n(51),d=n(5),u=n(74),h=n(66),p=n(68),f=n(102),m=n(16),v=n(8),g=n(76),y=n(64),b=n(13),_=n(18),x=n(72),w=n(73),C=n(77),S=n(103);const A=[0,0,612,792];var k=new WeakSet;class j{constructor(e){let{pdfManager:t,xref:n,pageIndex:a,pageDict:i,ref:r,globalIdFactory:s,fontCache:l,builtInCMapCache:c,standardFontDataCache:d,globalImageCache:u,systemFontCache:h,nonBlendModesSet:p,xfaFactory:f}=e;o(this,k),this.pdfManager=t,this.pageIndex=a,this.pageDict=i,this.xref=n,this.ref=r,this.fontCache=l,this.builtInCMapCache=c,this.standardFontDataCache=d,this.globalImageCache=u,this.systemFontCache=h,this.nonBlendModesSet=p,this.evaluatorOptions=t.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=f;const m={obj:0};this._localIdFactory=class extends s{static createObjId(){return"p".concat(a,"_").concat(++m.obj)}static getPageObjId(){return"p".concat(r.toString())}}}_getInheritableProperty(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,r.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?1!==n.length&&n[0]instanceof l.Dict?l.Dict.merge({xref:this.xref,dictArray:n}):n[0]:n}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=this._getInheritableProperty("Resources");return(0,a.shadow)(this,"resources",e instanceof l.Dict?e:l.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;let t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t=a.Util.normalizeRect(t),t[2]-t[0]>0&&t[3]-t[1]>0)return t;(0,a.warn)("Empty, or invalid, /".concat(e," entry."))}return null}get mediaBox(){return(0,a.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||A)}get cropBox(){return(0,a.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return("number"!==typeof e||e<=0)&&(e=1),(0,a.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this;if(e!==t&&!(0,a.isArrayEqual)(e,t)){const n=a.Util.intersect(e,t);if(n&&n[2]-n[0]>0&&n[3]-n[1]>0)return(0,a.shadow)(this,"view",n);(0,a.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,a.shadow)(this,"view",t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!==0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,a.shadow)(this,"rotate",e)}_onSubStreamError(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;(0,a.warn)("getContentStream - ignoring sub-stream (".concat(t,'): "').concat(e,'".'))}getContentStream(){return this.pdfManager.ensure(this,"content").then((e=>e instanceof d.BaseStream?e:Array.isArray(e)?new _.StreamsSequenceStream(e,this._onSubStreamError.bind(this)):new v.NullStream))}get xfaData(){return(0,a.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(e,t,n,a){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const r=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),o=new l.RefSet,c=new l.RefSet;s(k,this,I).call(this,n,o,c);const d=this.pageDict,u=this.annotations.filter((e=>!(e instanceof l.Ref&&o.has(e)))),h=await i.AnnotationFactory.saveNewAnnotations(r,t,n,a);for(const{ref:i}of h.annotations)i instanceof l.Ref&&!c.has(i)&&u.push(i);const p=d.get("Annots");d.set("Annots",u);const f=[];await(0,w.writeObject)(this.ref,d,f,this.xref),p&&d.set("Annots",p);const m=h.dependencies;return m.push({ref:this.ref,data:f.join("")},...h.annotations),m}save(e,t,n){const i=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){const r=[];for(const o of e)o.mustBePrinted(n)&&r.push(o.save(i,t,n).catch((function(e){return(0,a.warn)("save - ignoring annotation data during "+'"'.concat(t.name,'" task: "').concat(e,'".')),null})));return Promise.all(r).then((function(e){return e.filter((e=>!!e))}))}))}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((()=>new g.ObjectLoader(this.resources,e,this.xref).load()))}getOperatorList(e){let{handler:t,sink:n,task:o,intent:c,cacheKey:d,annotationStorage:u=null}=e;const h=this.getContentStream(),p=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),f=new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),m=this.xfaFactory?null:(0,r.getNewAnnotationsMap)(u);let v=null,g=Promise.resolve(null);if(m){const e=m.get(this.pageIndex);if(e){const t=this.pdfManager.ensureDoc("annotationGlobals");let n;const r=new Set;for(const{bitmapId:a,bitmap:i}of e)!a||i||r.has(a)||r.add(a);const{isOffscreenCanvasSupported:c}=this.evaluatorOptions;if(r.size>0){const t=e.slice();for(const[e,n]of u)e.startsWith(a.AnnotationEditorPrefix)&&n.bitmap&&r.has(n.bitmapId)&&t.push(n);n=i.AnnotationFactory.generateImages(t,this.xref,c)}else n=i.AnnotationFactory.generateImages(e,this.xref,c);v=new l.RefSet,s(k,this,I).call(this,e,v,null),g=t.then((t=>t?i.AnnotationFactory.printNewAnnotations(t,f,o,e,n):null))}}const _=Promise.all([h,p]).then((e=>{let[a]=e;const i=new y.OperatorList(c,n);return t.send("StartRenderPage",{transparency:f.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:d}),f.getOperatorList({stream:a,task:o,resources:this.resources,operatorList:i}).then((function(){return i}))}));return Promise.all([_,this._parsedAnnotations,g]).then((function(e){let[t,n,i]=e;if(i){n=n.filter((e=>!(e.ref&&v.has(e.ref))));for(let e=0,t=i.length;ee.ref&&(0,l.isRefsEqual)(e.ref,a.refToReplace)));r>=0&&(n.splice(r,1,a),i.splice(e--,1),t--)}}n=n.concat(i)}if(0===n.length||c&a.RenderingIntentFlag.ANNOTATIONS_DISABLE)return t.flush(!0),{length:t.totalLength};const r=!!(c&a.RenderingIntentFlag.ANNOTATIONS_FORMS),s=!!(c&a.RenderingIntentFlag.ANY),d=!!(c&a.RenderingIntentFlag.DISPLAY),h=!!(c&a.RenderingIntentFlag.PRINT),p=[];for(const l of n)(s||d&&l.mustBeViewed(u,r)||h&&l.mustBePrinted(u))&&p.push(l.getOperatorList(f,o,c,r,u).catch((function(e){return(0,a.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(o.name,'" task: "').concat(e,'".')),{opList:null,separateForm:!1,separateCanvas:!1}})));return Promise.all(p).then((function(e){let n=!1,a=!1;for(const{opList:i,separateForm:r,separateCanvas:o}of e)t.addOpList(i),n||(n=r),a||(a=o);return t.flush(!0,{form:n,canvas:a}),{length:t.totalLength}}))}))}extractTextContent(e){let{handler:t,task:n,includeMarkedContent:a,disableNormalization:i,sink:r}=e;const o=this.getContentStream(),s=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([o,s]).then((e=>{let[o]=e;return new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}).getTextContent({stream:o,task:n,resources:this.resources,includeMarkedContent:a,disableNormalization:i,sink:r,viewBox:this.view})}))}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot");return e?(await this._parsedAnnotations,(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable):null}_parseStructTree(e){const t=new x.StructTreePage(e,this.pageDict);return t.parse(this.ref),t}async getAnnotationsData(e,t,n){const i=await this._parsedAnnotations;if(0===i.length)return i;const r=[],o=[];let s;const l=!!(n&a.RenderingIntentFlag.ANY),c=!!(n&a.RenderingIntentFlag.DISPLAY),d=!!(n&a.RenderingIntentFlag.PRINT);for(const u of i){const n=l||c&&u.viewable;(n||d&&u.printable)&&r.push(u.data),u.hasTextContent&&n&&(s||(s=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})),o.push(u.extractTextContent(s,t,[-1/0,-1/0,1/0,1/0]).catch((function(e){(0,a.warn)('getAnnotationsData - ignoring textContent during "'.concat(t.name,'" task: "').concat(e,'".'))}))))}return await Promise.all(o),r}get annotations(){const e=this._getInheritableProperty("Annots");return(0,a.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then((async e=>{if(0===e.length)return e;const t=await this.pdfManager.ensureDoc("annotationGlobals");if(!t)return[];const n=[];for(const s of e)n.push(i.AnnotationFactory.create(this.xref,s,t,this._localIdFactory,!1,this.ref).catch((function(e){return(0,a.warn)('_parsedAnnotations: "'.concat(e,'".')),null})));const r=[];let o;for(const a of await Promise.all(n))a&&(a instanceof i.PopupAnnotation?(o||(o=[])).push(a):r.push(a));return o&&r.push(...o),r}));return(0,a.shadow)(this,"_parsedAnnotations",e)}get jsActions(){const e=(0,r.collectActions)(this.xref,this.pageDict,a.PageActionEventType);return(0,a.shadow)(this,"jsActions",e)}}function I(e,t,n){for(const i of e)if(i.id){const e=l.Ref.fromString(i.id);if(!e){(0,a.warn)("A non-linked annotation cannot be modified: ".concat(i.id));continue}if(i.deleted){t.put(e);continue}null===n||void 0===n||n.put(e),i.ref=e,delete i.id}}t.Page=j;const F=new Uint8Array([37,80,68,70,45]),T=new Uint8Array([115,116,97,114,116,120,114,101,102]),P=new Uint8Array([101,110,100,111,98,106]);function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t.length,r=e.peekBytes(n),o=r.length-i;if(o<=0)return!1;if(a){const n=i-1;let a=r.length-1;for(;a>=n;){let o=0;for(;o=i)return e.pos+=a-n,!0;a--}}else{let n=0;for(;n<=o;){let a=0;for(;a=i)return e.pos+=n,!0;n++}}return!1}var O=new WeakSet;function N(e,t,n,r){const o=this.xref.fetchIfRef(t);if(o.has("T")){const t=(0,a.stringToPDFString)(o.get("T"));e=""===e?t:"".concat(e,".").concat(t)}if(n.has(e)||n.set(e,[]),n.get(e).push(i.AnnotationFactory.create(this.xref,t,r,this._localIdFactory,!0,null).then((e=>null===e||void 0===e?void 0:e.getFieldObject())).catch((function(e){return(0,a.warn)('#collectFieldObjects: "'.concat(e,'".')),null}))),o.has("Kids"))for(const a of o.get("Kids"))s(O,this,N).call(this,e,a,n,r)}t.PDFDocument=class{constructor(e,t){if(o(this,O),t.length<=0)throw new a.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=t,this.xref=new S.XRef(t,e),this._pagePromises=new Map,this._version=null;const n={font:0};this._globalIdFactory=class{static getDocId(){return"g_".concat(e.docId)}static createFontId(){return"f".concat(++n.font)}static createObjId(){(0,a.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,a.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new h.Catalog(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=m.Linearization.create(this.stream)}catch(t){if(t instanceof r.MissingDataException)throw t;(0,a.info)(t)}return(0,a.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization)e.reset(),E(e,P)&&(t=e.pos+6-e.start);else{const n=1024,a=T.length;let i=!1,o=e.end;for(;!i&&o>0;)o-=n-a,o<0&&(o=0),e.pos=o,i=E(e,T,n,!0);if(i){let n;e.skip(9);do{n=e.getByte()}while((0,r.isWhiteSpace)(n));let a="";for(;n>=32&&n<=57;)a+=String.fromCharCode(n),n=e.getByte();t=parseInt(a,10),isNaN(t)&&(t=0)}}return(0,a.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;if(e.reset(),!E(e,F))return;e.moveStart(),e.skip(F.length);let t,n="";for(;(t=e.getByte())>32&&n.length<7;)n+=String.fromCharCode(t);r.PDF_VERSION_REGEXP.test(n)?this._version=n:(0,a.warn)("Invalid PDF header version: ".concat(n))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,a.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every((e=>{if(!((e=this.xref.fetchIfRef(e))instanceof l.Dict))return!1;if(e.has("Kids"))return++t>10?((0,a.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(e.get("Kids"),t);const n=(0,l.isName)(e.get("FT"),"Sig"),i=e.get("Rect"),r=Array.isArray(i)&&i.every((e=>0===e));return n&&r}))}get _xfaStreams(){const e=this.catalog.acroForm;if(!e)return null;const t=e.get("XFA"),n={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof d.BaseStream&&!t.isEmpty)return n["xdp:xdp"]=t,n;if(!Array.isArray(t)||0===t.length)return null;for(let a=0,i=t.length;a{m.set(e,t)}));const v=[];for(const[c,g]of m){const e=g.get("FontDescriptor");if(!(e instanceof l.Dict))continue;let n=e.get("FontFamily");n=n.replaceAll(/[ ]+(\d)/g,"$1");const o={fontFamily:n,fontWeight:e.get("FontWeight"),italicAngle:-e.get("ItalicAngle")};(0,r.validateCSSFont)(o)&&v.push(u.handleSetFont(i,[l.Name.get(c),1],null,h,t,f,null,o).catch((function(e){return(0,a.warn)('loadXfaFonts: "'.concat(e,'".')),null})))}await Promise.all(v);const _=this.xfaFactory.setFonts(p);if(!_)return;d.ignoreErrors=!0,v.length=0,p.length=0;const x=new Set;for(const a of _)(0,c.getXfaFontName)("".concat(a,"-Regular"))||x.add(a);x.size&&_.push("PdfJS-Fallback");for(const r of _)if(!x.has(r))for(const e of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const n="".concat(r,"-").concat(e.name),o=(0,c.getXfaFontDict)(n);v.push(u.handleSetFont(i,[l.Name.get(n),1],null,h,t,f,o,{fontFamily:r,fontWeight:e.fontWeight,italicAngle:e.italicAngle}).catch((function(e){return(0,a.warn)('loadXfaFonts: "'.concat(e,'".')),null})))}await Promise.all(v),this.xfaFactory.appendFonts(p,x)}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this._version}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,a.shadow)(this,"formInfo",e);try{const n=t.get("Fields"),a=Array.isArray(n)&&n.length>0;e.hasFields=a;const i=t.get("XFA");e.hasXfa=Array.isArray(i)&&i.length>0||i instanceof d.BaseStream&&!i.isEmpty;const r=!!(1&t.get("SigFlags")),o=r&&this._hasOnlyDocumentSignatures(n);e.hasAcroForm=a&&!o,e.hasSignatures=r}catch(n){if(n instanceof r.MissingDataException)throw n;(0,a.warn)('Cannot fetch form information: "'.concat(n,'".'))}return(0,a.shadow)(this,"formInfo",e)}get documentInfo(){const e={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let t;try{t=this.xref.trailer.get("Info")}catch(n){if(n instanceof r.MissingDataException)throw n;(0,a.info)("The document information dictionary is invalid.")}if(!(t instanceof l.Dict))return(0,a.shadow)(this,"documentInfo",e);for(const i of t.getKeys()){const n=t.get(i);switch(i){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"===typeof n){e[i]=(0,a.stringToPDFString)(n);continue}break;case"Trapped":if(n instanceof l.Name){e[i]=n;continue}break;default:let t;switch(typeof n){case"string":t=(0,a.stringToPDFString)(n);break;case"number":case"boolean":t=n;break;default:n instanceof l.Name&&(t=n)}if(void 0===t){(0,a.warn)('Bad value, for custom key "'.concat(i,'", in Info: ').concat(n,"."));continue}e.Custom||(e.Custom=Object.create(null)),e.Custom[i]=t;continue}(0,a.warn)('Bad value, for key "'.concat(i,'", in Info: ').concat(n,"."))}return(0,a.shadow)(this,"documentInfo",e)}get fingerprints(){function e(e){return"string"===typeof e&&e.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){const t=[];for(const n of e){const e=n.toString(16);t.push(e.padStart(2,"0"))}return t.join("")}const n=this.xref.trailer.get("ID");let i,r;return Array.isArray(n)&&e(n[0])?(i=(0,a.stringToBytes)(n[0]),n[1]!==n[0]&&e(n[1])&&(r=(0,a.stringToBytes)(n[1]))):i=(0,u.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,a.shadow)(this,"fingerprints",[t(i),r?t(r):null])}async _getLinearizationPage(e){const{catalog:t,linearization:n,xref:i}=this,r=l.Ref.get(n.objectNumberFirst,0);try{const e=await i.fetchAsync(r);if(e instanceof l.Dict){let n=e.getRaw("Type");if(n instanceof l.Ref&&(n=await i.fetchAsync(n)),(0,l.isName)(n,"Page")||!e.has("Type")&&!e.has("Kids"))return t.pageKidsCountCache.has(r)||t.pageKidsCountCache.put(r,1),t.pageIndexCache.has(r)||t.pageIndexCache.put(r,0),[e,r]}throw new a.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(o){return(0,a.warn)('_getLinearizationPage: "'.concat(o.message,'".')),t.getPageDict(e)}}getPage(e){const t=this._pagePromises.get(e);if(t)return t;const{catalog:n,linearization:a,xfaFactory:i}=this;let r;return r=i?Promise.resolve([l.Dict.empty,null]):(null===a||void 0===a?void 0:a.pageFirst)===e?this._getLinearizationPage(e):n.getPageDict(e),r=r.then((t=>{let[a,r]=t;return new j({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:a,ref:r,globalIdFactory:this._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalImageCache:n.globalImageCache,systemFontCache:n.systemFontCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:i})})),this._pagePromises.set(e,r),r}async checkFirstPage(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))try{await this.getPage(0)}catch(e){if(e instanceof r.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new r.XRefParseException}}async checkLastPage(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{catalog:t,pdfManager:n}=this;let i;t.setActualNumPages();try{if(await Promise.all([n.ensureDoc("xfaFactory"),n.ensureDoc("linearization"),n.ensureCatalog("numPages")]),this.xfaFactory)return;if(i=this.linearization?this.linearization.numPages:t.numPages,!Number.isInteger(i))throw new a.FormatError("Page count is not an integer.");if(i<=1)return;await this.getPage(i-1)}catch(o){if(this._pagePromises.delete(i-1),await this.cleanup(),o instanceof r.XRefEntryException&&!e)throw new r.XRefParseException;let l;(0,a.warn)("checkLastPage - invalid /Pages tree /Count: ".concat(i,"."));try{l=await t.getAllPageDicts(e)}catch(s){if(s instanceof r.XRefEntryException&&!e)throw new r.XRefParseException;return void t.setActualNumPages(1)}for(const[e,[a,i]]of l){let r;a instanceof Error?(r=Promise.reject(a),r.catch((()=>{}))):r=Promise.resolve(new j({pdfManager:n,xref:this.xref,pageIndex:e,pageDict:a,ref:i,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,systemFontCache:t.systemFontCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(e,r)}t.setActualNumPages(l.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.catalog?this.catalog.cleanup(e):(0,p.clearGlobalCaches)()}get fieldObjects(){if(!this.formInfo.hasFields)return(0,a.shadow)(this,"fieldObjects",Promise.resolve(null));const e=this.pdfManager.ensureDoc("annotationGlobals").then((async e=>{if(!e)return null;const t=Object.create(null),n=new Map;for(const i of this.catalog.acroForm.get("Fields"))s(O,this,N).call(this,"",i,n,e);const a=[];for(const[i,r]of n)a.push(Promise.all(r).then((e=>{(e=e.filter((e=>!!e))).length>0&&(t[i]=e)})));return await Promise.all(a),t}));return(0,a.shadow)(this,"fieldObjects",e)}get hasJSActions(){const e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,a.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){const[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t&&Object.values(t).some((e=>e.some((e=>null!==e.actions))))}get calculationOrderIds(){const e=this.catalog.acroForm;if(null===e||void 0===e||!e.has("CO"))return(0,a.shadow)(this,"calculationOrderIds",null);const t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,a.shadow)(this,"calculationOrderIds",null);const n=[];for(const a of t)a instanceof l.Ref&&n.push(a.toString());return 0===n.length?(0,a.shadow)(this,"calculationOrderIds",null):(0,a.shadow)(this,"calculationOrderIds",n)}get annotationGlobals(){return(0,a.shadow)(this,"annotationGlobals",i.AnnotationFactory.createGlobals(this.pdfManager))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0,t.getQuadPoints=_;var a=n(2),i=n(3),r=n(11),o=n(4),s=n(8),l=n(5),c=n(60),d=n(66),u=n(12),h=n(69),p=n(26),f=n(76),m=n(64),v=n(73),g=n(77);function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;const n=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return u.ColorSpace.singletons.gray.getRgbItem(e,0,n,0),n;case 3:return u.ColorSpace.singletons.rgb.getRgbItem(e,0,n,0),n;case 4:return u.ColorSpace.singletons.cmyk.getRgbItem(e,0,n,0),n;default:return t}}function b(e){return Array.from(e,(e=>e/255))}function _(e,t){const n=e.getArray("QuadPoints");if(!Array.isArray(n)||0===n.length||n.length%8>0)return null;const a=[];for(let i=0,r=n.length/8;it[2]||ot[3]))return null;a.push([{x:e,y:s},{x:r,y:s},{x:e,y:o},{x:r,y:o}])}return a}function x(e,t,n){const[i,r,o,s]=a.Util.getAxialAlignedBoundingBox(t,n);if(i===o||r===s)return[1,0,0,1,e[0],e[1]];const l=(e[2]-e[0])/(o-i),c=(e[3]-e[1])/(s-r);return[l,0,0,c,e[0]-i*l,e[1]-r*c]}t.AnnotationFactory=class{static createGlobals(e){return Promise.all([e.ensureCatalog("acroForm"),e.ensureDoc("xfaDatasets"),e.ensureCatalog("structTreeRoot"),e.ensureCatalog("baseUrl"),e.ensureCatalog("attachments")]).then((t=>{let[n,a,i,r,s]=t;return{pdfManager:e,acroForm:n instanceof o.Dict?n:o.Dict.empty,xfaDatasets:a,structTreeRoot:i,baseUrl:r,attachments:s}}),(e=>((0,a.warn)('createGlobals: "'.concat(e,'".')),null)))}static async create(e,t,n,a,i,r){const o=i?await this._getPageIndex(e,t,n.pdfManager):null;return n.pdfManager.ensure(this,"_create",[e,t,n,a,i,o,r])}static _create(e,t,n,r){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;const d=e.fetchIfRef(t);if(!(d instanceof o.Dict))return;const{acroForm:u,pdfManager:h}=n,p=t instanceof o.Ref?t.toString():"annot_".concat(r.createObjId());let f=d.get("Subtype");f=f instanceof o.Name?f.name:null;const m={xref:e,ref:t,dict:d,subtype:f,id:p,annotationGlobals:n,collectFields:s,needAppearances:!s&&!0===u.get("NeedAppearances"),pageIndex:l,evaluatorOptions:h.evaluatorOptions,pageRef:c};switch(f){case"Link":return new P(m);case"Text":return new T(m);case"Widget":let e=(0,i.getInheritableProperty)({dict:d,key:"FT"});switch(e=e instanceof o.Name?e.name:null,e){case"Tx":return new k(m);case"Btn":return new j(m);case"Ch":return new I(m);case"Sig":return new F(m)}return(0,a.warn)('Unimplemented widget field type "'.concat(e,'", ')+"falling back to base field type."),new A(m);case"Popup":return new E(m);case"FreeText":return new O(m);case"Line":return new N(m);case"Square":return new R(m);case"Circle":return new M(m);case"PolyLine":return new D(m);case"Polygon":return new L(m);case"Caret":return new B(m);case"Ink":return new W(m);case"Highlight":return new z(m);case"Underline":return new U(m);case"Squiggly":return new H(m);case"StrikeOut":return new q(m);case"Stamp":return new V(m);case"FileAttachment":return new G(m);default:return s||(f?(0,a.warn)('Unimplemented annotation type "'.concat(f,'", ')+"falling back to base annotation."):(0,a.warn)("Annotation is missing the required /Subtype.")),new w(m)}}static async _getPageIndex(e,t,n){try{const r=await e.fetchIfRefAsync(t);if(!(r instanceof o.Dict))return-1;const s=r.getRaw("P");if(s instanceof o.Ref)try{return await n.ensureCatalog("getPageIndex",[s])}catch(i){(0,a.info)('_getPageIndex -- not a valid page reference: "'.concat(i,'".'))}if(r.has("Kids"))return-1;const l=await n.ensureDoc("numPages");for(let e=0;e=0?n:-1,r.structTreeRoot.addAnnotationIdToPage(e.pageRef,n)}if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&a.AnnotationFlag.NOROTATE),noHTML:l&&c},e.collectFields){const r=t.get("Kids");if(Array.isArray(r)){const e=[];for(const t of r)t instanceof o.Ref&&e.push(t.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,i.collectActions)(n,t,a.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(t),this.data.pageIndex=e.pageIndex}this._isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,a.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,a.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,a.AnnotationFlag.PRINT)&&!this._hasFlag(e,a.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,a.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){var n;const i=null===e||void 0===e||null===(n=e.get(this.data.id))||void 0===n?void 0:n.noView;return void 0!==i?!i:this.viewable&&!this._hasFlag(this.flags,a.AnnotationFlag.HIDDEN)}mustBePrinted(e){var t;const n=null===e||void 0===e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.noPrint;return void 0!==n?!n:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(e){const t="string"===typeof e?(0,a.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,c.bidi)(t).dir?"rtl":"ltr"}}setDefaultAppearance(e){const{dict:t,annotationGlobals:n}=e,a=(0,i.getInheritableProperty)({dict:t,key:"DA"})||n.acroForm.get("DA");this._defaultAppearance="string"===typeof a?a:"",this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"===typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){this.rectangle=Array.isArray(e)&&4===e.length?a.Util.normalizeRect(e):[0,0,0,0]}setColor(e){this.color=y(e)}setLineEndings(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const n=e[t];if(n instanceof o.Name)switch(n.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=n.name;continue}(0,a.warn)("Ignoring invalid lineEnding: ".concat(n))}}setRotation(e,t){this.rotation=0;let n=e instanceof o.Dict?e.get("R")||0:t.get("Rotate")||0;Number.isInteger(n)&&0!==n&&(n%=360,n<0&&(n+=360),n%90===0&&(this.rotation=n))}setBorderAndBackgroundColors(e){e instanceof o.Dict?(this.borderColor=y(e.getArray("BC"),null),this.backgroundColor=y(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){if(this.borderStyle=new C,e instanceof o.Dict)if(e.has("BS")){const t=e.get("BS"),n=t.get("Type");n&&!(0,o.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")){const t=e.getArray("Border");Array.isArray(t)&&t.length>=3&&(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),4===t.length&&this.borderStyle.setDashArray(t[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(t instanceof o.Dict))return;const n=t.get("N");if(n instanceof l.BaseStream)return void(this.appearance=n);if(!(n instanceof o.Dict))return;const a=e.get("AS");if(!(a instanceof o.Name)||!n.has(a.name))return;const i=n.get(a.name);i instanceof l.BaseStream&&(this.appearance=i)}setOptionalContent(e){this.oc=null;const t=e.get("OC");t instanceof o.Name?(0,a.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof o.Dict&&(this.oc=t)}loadResources(e,t){return t.dict.getAsync("Resources").then((t=>{if(t)return new f.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}async getOperatorList(e,t,n,i,r){const l=this.data;let c=this.appearance;const d=!!(this.data.hasOwnCanvas&&n&a.RenderingIntentFlag.DISPLAY);if(!c){if(!d)return{opList:new m.OperatorList,separateForm:!1,separateCanvas:!1};c=new s.StringStream(""),c.dict=new o.Dict}const u=c.dict,h=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c),p=u.getArray("BBox")||[0,0,1,1],f=u.getArray("Matrix")||[1,0,0,1,0,0],v=x(l.rect,p,f),g=new m.OperatorList;let y;return this.oc&&(y=await e.parseMarkedContentProps(this.oc,null)),void 0!==y&&g.addOp(a.OPS.beginMarkedContentProps,["OC",y]),g.addOp(a.OPS.beginAnnotation,[l.id,l.rect,v,f,d]),await e.getOperatorList({stream:c,task:t,resources:h,operatorList:g,fallbackFontDict:this._fallbackFontDict}),g.addOp(a.OPS.endAnnotation,[]),void 0!==y&&g.addOp(a.OPS.endMarkedContent,[]),this.reset(),{opList:g,separateForm:!1,separateCanvas:d}}async save(e,t,n){return null}get hasTextContent(){return!1}async extractTextContent(e,t,n){if(!this.appearance)return;const i=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),r=[],o=[];let s=null;const l={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const n of e.items)void 0!==n.str&&(s||(s=n.transform.slice(-2)),o.push(n.str),n.hasEOL&&(r.push(o.join("")),o.length=0))}};if(await e.getTextContent({stream:this.appearance,task:t,resources:i,includeMarkedContent:!0,sink:l,viewBox:n}),this.reset(),o.length&&r.push(o.join("")),r.length>1||r[0]){const e=this.appearance.dict,t=e.getArray("BBox")||[0,0,1,1],n=e.getArray("Matrix")||[1,0,0,1,0,0],i=this.data.rect,o=x(i,t,n);o[4]-=i[0],o[5]-=i[1],s=a.Util.applyTransform(s,o),s=a.Util.applyTransform(s,n),this.data.textPosition=s,this.data.textContent=r}}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,a.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,a.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,a.stringToPDFString)(e.get("T")));let n=e;const i=new o.RefSet;for(e.objId&&i.put(e.objId);n.has("Parent")&&(n=n.get("Parent"),n instanceof o.Dict&&(!n.objId||!i.has(n.objId)));)n.objId&&i.put(n.objId),n.has("T")&&t.unshift((0,a.stringToPDFString)(n.get("T")));return t.join(".")}}t.Annotation=w;class C{constructor(){this.width=1,this.style=a.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof o.Name)this.width=0;else if("number"===typeof e){if(e>0){const n=(t[2]-t[0])/2,i=(t[3]-t[1])/2;n>0&&i>0&&(e>n||e>i)&&((0,a.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}setStyle(e){if(e instanceof o.Name)switch(e.name){case"S":this.style=a.AnnotationBorderStyleType.SOLID;break;case"D":this.style=a.AnnotationBorderStyleType.DASHED;break;case"B":this.style=a.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=a.AnnotationBorderStyleType.INSET;break;case"U":this.style=a.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0){let n=!0,a=!0;for(const t of e){if(!(+t>=0)){n=!1;break}t>0&&(a=!1)}n&&!a?(this.dashArray=e,t&&this.setStyle(o.Name.get("D"))):this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=C;class S extends w{constructor(e){super(e);const{dict:t}=e;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=e instanceof o.Ref?e.toString():null;const n=t.get("RT");this.data.replyType=n instanceof o.Name?n.name:a.AnnotationReplyType.REPLY}let n=null;if(this.data.replyType===a.AnnotationReplyType.GROUP){const e=t.get("IRT");this.setTitle(e.get("T")),this.data.titleObj=this._title,this.setContents(e.get("Contents")),this.data.contentsObj=this._contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n=e.getRaw("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,n=t.getRaw("Popup"),t.has("C")||(this.data.color=null);this.data.popupRef=n instanceof o.Ref?n.toString():null,t.has("RC")&&(this.data.richText=g.XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"===typeof e?e:null}_setDefaultAppearance(e){let{xref:t,extra:n,strokeColor:a,fillColor:i,blendMode:r,strokeAlpha:l,fillAlpha:c,pointsCallback:d}=e,u=Number.MAX_VALUE,h=Number.MAX_VALUE,p=Number.MIN_VALUE,f=Number.MIN_VALUE;const m=["q"];n&&m.push(n),a&&m.push("".concat(a[0]," ").concat(a[1]," ").concat(a[2]," RG")),i&&m.push("".concat(i[0]," ").concat(i[1]," ").concat(i[2]," rg"));let v=this.data.quadPoints;v||(v=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const o of v){const[e,t,n,a]=d(m,o);u=Math.min(u,e),p=Math.max(p,t),h=Math.min(h,n),f=Math.max(f,a)}m.push("Q");const g=new o.Dict(t),y=new o.Dict(t);y.set("Subtype",o.Name.get("Form"));const b=new s.StringStream(m.join(" "));b.dict=y,g.set("Fm0",b);const _=new o.Dict(t);r&&_.set("BM",o.Name.get(r)),"number"===typeof l&&_.set("CA",l),"number"===typeof c&&_.set("ca",c);const x=new o.Dict(t);x.set("GS0",_);const w=new o.Dict(t);w.set("ExtGState",x),w.set("XObject",g);const C=new o.Dict(t);C.set("Resources",w);const S=this.data.rect=[u,h,p,f];C.set("BBox",S),this.appearance=new s.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=C,this._streams.push(this.appearance,b)}static async createNewAnnotation(e,t,n,a){const i=t.ref||(t.ref=e.getNewTemporaryRef()),r=await this.createNewAppearanceStream(t,e,a),o=[];let s;if(r){const a=e.getNewTemporaryRef();s=this.createNewDict(t,e,{apRef:a}),await(0,v.writeObject)(a,r,o,e),n.push({ref:a,data:o.join("")})}else s=this.createNewDict(t,e,{});return Number.isInteger(t.parentTreeId)&&s.set("StructParent",t.parentTreeId),o.length=0,await(0,v.writeObject)(i,s,o,e),{ref:i,data:o.join("")}}static async createNewPrintAnnotation(e,t,n,a){const i=await this.createNewAppearanceStream(n,t,a),r=this.createNewDict(n,t,{ap:i}),o=new this.prototype.constructor({dict:r,xref:t,annotationGlobals:e,evaluatorOptions:a.evaluatorOptions});return n.ref&&(o.ref=o.refToReplace=n.ref),o}}t.MarkupAnnotation=S;class A extends w{constructor(e){var t;super(e);const{dict:n,xref:r,annotationGlobals:s}=e,l=this.data;this._needAppearances=e.needAppearances,l.annotationType=a.AnnotationType.WIDGET,void 0===l.fieldName&&(l.fieldName=this._constructFieldName(n)),void 0===l.actions&&(l.actions=(0,i.collectActions)(r,n,a.AnnotationActionEventType));let c=(0,i.getInheritableProperty)({dict:n,key:"V",getArray:!0});l.fieldValue=this._decodeFormValue(c);const d=(0,i.getInheritableProperty)({dict:n,key:"DV",getArray:!0});if(l.defaultFieldValue=this._decodeFormValue(d),void 0===c&&s.xfaDatasets){const e=this._title.str;e&&(this._hasValueFromXFA=!0,l.fieldValue=c=s.xfaDatasets.getValue(e))}void 0===c&&null!==l.defaultFieldValue&&(l.fieldValue=l.defaultFieldValue),l.alternativeText=(0,a.stringToPDFString)(n.get("TU")||""),this.setDefaultAppearance(e),l.hasAppearance||(l.hasAppearance=this._needAppearances&&void 0!==l.fieldValue&&null!==l.fieldValue);const u=(0,i.getInheritableProperty)({dict:n,key:"FT"});l.fieldType=u instanceof o.Name?u.name:null;const h=(0,i.getInheritableProperty)({dict:n,key:"DR"}),p=s.acroForm.get("DR"),f=null===(t=this.appearance)||void 0===t?void 0:t.dict.get("Resources");this._fieldResources={localResources:h,acroFormResources:p,appearanceResources:f,mergedResources:o.Dict.merge({xref:r,dictArray:[h,f,p],mergeSubDicts:!0})},l.fieldFlags=(0,i.getInheritableProperty)({dict:n,key:"Ff"}),(!Number.isInteger(l.fieldFlags)||l.fieldFlags<0)&&(l.fieldFlags=0),l.readOnly=this.hasFieldFlag(a.AnnotationFieldFlag.READONLY),l.required=this.hasFieldFlag(a.AnnotationFieldFlag.REQUIRED),l.hidden=this._hasFlag(l.annotationFlags,a.AnnotationFlag.HIDDEN)||this._hasFlag(l.annotationFlags,a.AnnotationFlag.NOVIEW)}_decodeFormValue(e){return Array.isArray(e)?e.filter((e=>"string"===typeof e)).map((e=>(0,a.stringToPDFString)(e))):e instanceof o.Name?(0,a.stringToPDFString)(e.name):"string"===typeof e?(0,a.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!this._hasFlag(e,a.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){return t?this.viewable:super.mustBeViewed(e,t)&&!this._hasFlag(this.flags,a.AnnotationFlag.NOVIEW)}getRotationMatrix(e){var t;let n=null===e||void 0===e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.rotation;if(void 0===n&&(n=this.rotation),0===n)return a.IDENTITY_MATRIX;const r=this.data.rect[2]-this.data.rect[0],o=this.data.rect[3]-this.data.rect[1];return(0,i.getRotationMatrix)(n,r,o)}getBorderAndBackgroundAppearances(e){var t;let n=null===e||void 0===e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.rotation;if(void 0===n&&(n=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const a=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1],o=0===n||180===n?"0 0 ".concat(a," ").concat(i," re"):"0 0 ".concat(i," ").concat(a," re");let s="";if(this.backgroundColor&&(s="".concat((0,r.getPdfColor)(this.backgroundColor,!0)," ").concat(o," f ")),this.borderColor){const e=this.borderStyle.width||1;s+="".concat(e," w ").concat((0,r.getPdfColor)(this.borderColor,!1)," ").concat(o," S ")}return s}async getOperatorList(e,t,n,i,r){if(i&&!(this instanceof F)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new m.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,n,i,r);const o=await this._getAppearance(e,t,n,r);if(this.appearance&&null===o)return super.getOperatorList(e,t,n,i,r);const l=new m.OperatorList;if(!this._defaultAppearance||null===o)return{opList:l,separateForm:!1,separateCanvas:!1};const c=!!(this.data.hasOwnCanvas&&n&a.RenderingIntentFlag.DISPLAY),d=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],u=x(this.data.rect,d,[1,0,0,1,0,0]);let h;this.oc&&(h=await e.parseMarkedContentProps(this.oc,null)),void 0!==h&&l.addOp(a.OPS.beginMarkedContentProps,["OC",h]),l.addOp(a.OPS.beginAnnotation,[this.data.id,this.data.rect,u,this.getRotationMatrix(r),c]);const p=new s.StringStream(o);return await e.getOperatorList({stream:p,task:t,resources:this._fieldResources.mergedResources,operatorList:l}),l.addOp(a.OPS.endAnnotation,[]),void 0!==h&&l.addOp(a.OPS.endMarkedContent,[]),{opList:l,separateForm:!1,separateCanvas:c}}_getMKDict(e){const t=new o.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",b(this.borderColor)),this.backgroundColor&&t.set("BG",b(this.backgroundColor)),t.size>0?t:null}amendSavedDict(e,t){}async save(e,t,n){var r;const l=null===n||void 0===n?void 0:n.get(this.data.id);let c=null===l||void 0===l?void 0:l.value,d=null===l||void 0===l?void 0:l.rotation;if(c===this.data.fieldValue||void 0===c){if(!this._hasValueFromXFA&&void 0===d)return null;c||(c=this.data.fieldValue)}if(void 0===d&&!this._hasValueFromXFA&&Array.isArray(c)&&Array.isArray(this.data.fieldValue)&&c.length===this.data.fieldValue.length&&c.every(((e,t)=>e===this.data.fieldValue[t])))return null;void 0===d&&(d=this.rotation);let u=null;if(!this._needAppearances&&(u=await this._getAppearance(e,t,a.RenderingIntentFlag.SAVE,n),null===u))return null;let h=!1;null!==(r=u)&&void 0!==r&&r.needAppearances&&(h=!0,u=null);const{xref:p}=e,f=p.fetchIfRef(this.ref);if(!(f instanceof o.Dict))return null;const m=new o.Dict(p);for(const a of f.getKeys())"AP"!==a&&m.set(a,f.getRaw(a));const g={path:this.data.fieldName,value:c},y=e=>(0,i.isAscii)(e)?e:(0,i.stringToUTF16String)(e,!0);m.set("V",Array.isArray(c)?c.map(y):y(c)),this.amendSavedDict(n,m);const b=this._getMKDict(d);b&&m.set("MK",b);const _=[],x=[{ref:this.ref,data:"",xfa:g,needAppearances:h}];if(null!==u){const e=p.getNewTemporaryRef(),t=new o.Dict(p);m.set("AP",t),t.set("N",e);const i=this._getSaveFieldResources(p),r=new s.StringStream(u),l=r.dict=new o.Dict(p);l.set("Subtype",o.Name.get("Form")),l.set("Resources",i),l.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const c=this.getRotationMatrix(n);c!==a.IDENTITY_MATRIX&&l.set("Matrix",c),await(0,v.writeObject)(e,r,_,p),x.push({ref:e,data:_.join(""),xfa:null,needAppearances:!1}),_.length=0}return m.set("M","D:".concat((0,a.getModificationDate)())),await(0,v.writeObject)(this.ref,m,_,p),x[0].data=_.join(""),x}async _getAppearance(e,t,n,o){if(this.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD))return null;const s=null===o||void 0===o?void 0:o.get(this.data.id);let l,c;if(s&&(l=s.formattedValue||s.value,c=s.rotation),void 0===c&&void 0===l&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const d=this.getBorderAndBackgroundAppearances(o);if(void 0===l&&(l=this.data.fieldValue,!l))return"/Tx BMC q ".concat(d,"Q EMC");if(Array.isArray(l)&&1===l.length&&(l=l[0]),(0,a.assert)("string"===typeof l,"Expected `value` to be a string."),l=l.trim(),this.data.combo){const e=this.data.options.find((e=>{let{exportValue:t}=e;return l===t}));l=(null===e||void 0===e?void 0:e.displayValue)||l}if(""===l)return"/Tx BMC q ".concat(d,"Q EMC");void 0===c&&(c=this.rotation);let u,h=-1;this.data.multiLine?(u=l.split(/\r\n?|\n/).map((e=>e.normalize("NFC"))),h=u.length):u=[l.replace(/\r\n?|\n/,"").normalize("NFC")];let p=this.data.rect[3]-this.data.rect[1],f=this.data.rect[2]-this.data.rect[0];90!==c&&270!==c||([f,p]=[p,f]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let m,v,g,y=await A._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const b=[];let _=!1;for(const a of u){const e=y.encodeString(a);e.length>1&&(_=!0),b.push(e.join(""))}if(_&&n&a.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(_&&this._isOffscreenCanvasSupported){const n=this.data.comb?"monospace":"sans-serif",a=new r.FakeUnicodeFont(e.xref,n),o=a.createFontResources(u.join("")),s=o.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font");for(const t of s.getKeys())e.set(t,s.getRaw(t))}else this._fieldResources.mergedResources.set("Font",s);const c=a.fontName.name;y=await A._getFontData(e,t,{fontName:c,fontSize:0},o);for(let e=0,t=b.length;e2)return"/Tx BMC q ".concat(d,"BT ")+m+" 1 0 0 1 ".concat((0,i.numberToString)(2)," ").concat((0,i.numberToString)(S)," Tm (").concat((0,i.escapeString)(b[0]),") Tj")+" ET Q EMC";const k=this._renderText(b[0],y,v,f,C,{shift:0},2,S);return"/Tx BMC q ".concat(d,"BT ")+m+" 1 0 0 1 0 0 Tm ".concat(k)+" ET Q EMC"}static async _getFontData(e,t,n,a){const i=new m.OperatorList,r={font:null,clone(){return this}},{fontName:s,fontSize:l}=n;return await e.handleSetFont(a,[s&&o.Name.get(s),l],null,i,t,r,null),r.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce(((e,t)=>e+t.width),0)/1e3}_computeFontSize(e,t,n,i,o){let{fontSize:s}=this.data.defaultAppearanceData,l=(s||12)*a.LINE_FACTOR,c=Math.round(e/l);if(!s){const d=e=>Math.floor(100*e)/100;if(-1===o){const r=this._getTextWidth(n,i);s=d(Math.min(e/a.LINE_FACTOR,r>t?t/r:1/0)),c=1}else{const r=n.split(/\r\n?|\n/),u=[];for(const e of r){const t=i.encodeString(e).join(""),n=i.charsToGlyphs(t),a=i.getCharPositions(t);u.push({line:t,glyphs:n,positions:a})}const h=n=>{let a=0;for(const r of u)if(a+=this._splitLine(null,i,n,t,r).length*n,a>e)return!0;return!1};for(c=Math.max(c,o);l=e/c,s=d(l/a.LINE_FACTOR),h(s);)c++}const{fontName:u,fontColor:h}=this.data.defaultAppearanceData;this._defaultAppearance=(0,r.createDefaultAppearance)({fontSize:s,fontName:u,fontColor:h})}return[this._defaultAppearance,s,e/c]}_renderText(e,t,n,a,r,o,s,l){let c;c=1===r?(a-this._getTextWidth(e,t)*n)/2:2===r?a-this._getTextWidth(e,t)*n-s:s;const d=(0,i.numberToString)(c-o.shift);return o.shift=c,l=(0,i.numberToString)(l),"".concat(d," ").concat(l," Td (").concat((0,i.escapeString)(e),") Tj")}_getSaveFieldResources(e){var t;const{localResources:n,appearanceResources:a,acroFormResources:i}=this._fieldResources,r=null===(t=this.data.defaultAppearanceData)||void 0===t?void 0:t.fontName;if(!r)return n||o.Dict.empty;for(const s of[n,a])if(s instanceof o.Dict){const e=s.get("Font");if(e instanceof o.Dict&&e.has(r))return s}if(i instanceof o.Dict){const t=i.get("Font");if(t instanceof o.Dict&&t.has(r)){const a=new o.Dict(e);a.set(r,t.getRaw(r));const i=new o.Dict(e);return i.set("Font",a),o.Dict.merge({xref:e,dictArray:[i,n],mergeSubDicts:!0})}}return n||o.Dict.empty}getFieldObject(){return null}}class k extends A{constructor(e){super(e),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0;const t=e.dict;"string"!==typeof this.data.fieldValue&&(this.data.fieldValue="");let n=(0,i.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let r=(0,i.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(r)||r<0)&&(r=0),this.data.maxLen=r,this.data.multiLine=this.hasFieldFlag(a.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(a.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(a.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(a.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(a.AnnotationFieldFlag.DONOTSCROLL)}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(e,t,n,a,r,o,s,l,c,d,u){const h=r/this.data.maxLen,p=this.getBorderAndBackgroundAppearances(u),f=[],m=t.getCharPositions(n);for(const[g,y]of m)f.push("(".concat((0,i.escapeString)(n.substring(g,y)),") Tj"));const v=f.join(" ".concat((0,i.numberToString)(h)," 0 Td "));return"/Tx BMC q ".concat(p,"BT ")+e+" 1 0 0 1 ".concat((0,i.numberToString)(s)," ").concat((0,i.numberToString)(l+c)," Tm ").concat(v)+" ET Q EMC"}_getMultilineAppearance(e,t,n,a,r,o,s,l,c,d,u,h){const p=[],f=r-2*l,m={shift:0};for(let i=0,y=t.length;i4&&void 0!==arguments[4]?arguments[4]:{};e=i.line||e;const r=i.glyphs||t.charsToGlyphs(e);if(r.length<=1)return[e];const o=i.positions||t.getCharPositions(e),s=n/1e3,l=[];let c=-1,d=-1,u=-1,h=0,p=0;for(let f=0,m=r.length;fa?(l.push(e.substring(h,t)),h=t,p=m,c=-1,u=-1):(p+=m,c=t,d=n,u=f):p+m>a?-1!==c?(l.push(e.substring(h,d)),h=d,f=u+1,c=-1,p=0):(l.push(e.substring(h,t)),h=t,p=m):p+=m}return h"Off"!==e));r.length=0,r.push("Off",e)}r.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=r[1];const s=n.get(this.data.exportValue);this.checkedAppearance=s instanceof l.BaseStream?s:null;const c=n.get("Off");this.uncheckedAppearance=c instanceof l.BaseStream?c:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;const t=e.dict.get("Parent");if(t instanceof o.Dict){this.parent=e.dict.getRaw("Parent");const n=t.get("V");n instanceof o.Name&&(this.data.fieldValue=this._decodeFormValue(n))}const n=e.dict.get("AP");if(!(n instanceof o.Dict))return;const a=n.get("N");if(!(a instanceof o.Dict))return;for(const o of a.getKeys())if("Off"!==o){this.data.buttonValue=this._decodeFormValue(o);break}const i=a.get(this.data.buttonValue);this.checkedAppearance=i instanceof l.BaseStream?i:null;const r=a.get("Off");this.uncheckedAppearance=r instanceof l.BaseStream?r:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processPushButton(e){const{dict:t,annotationGlobals:n}=e;t.has("A")||t.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!t.has("A")&&!t.has("AA"),d.Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:n.baseUrl,docAttachments:n.attachments})):(0,a.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const e=new o.Dict;return e.set("BaseFont",o.Name.get("ZapfDingbats")),e.set("Type",o.Name.get("FallbackType")),e.set("Subtype",o.Name.get("FallbackType")),e.set("Encoding",o.Name.get("ZapfDingbatsEncoding")),(0,a.shadow)(this,"fallbackFontDict",e)}}class I extends A{constructor(e){super(e);const{dict:t,xref:n}=e;this.indices=t.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];const r=(0,i.getInheritableProperty)({dict:t,key:"Opt"});if(Array.isArray(r))for(let a=0,i=r.length;a=0&&t0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}amendSavedDict(e,t){var n;if(!this.hasIndices)return;let a=null===e||void 0===e||null===(n=e.get(this.data.id))||void 0===n?void 0:n.value;Array.isArray(a)||(a=[a]);const i=[],{options:r}=this.data;for(let o=0,s=0,l=r.length;on&&(n=e,t=a)}[f,m]=this._computeFontSize(e,d-4,t,p,-1)}const v=m*a.LINE_FACTOR,g=(v-m)/2,y=Math.floor(c/v);let b=0;if(h.length>0){const e=Math.min(...h),t=Math.max(...h);b=Math.max(0,t-y+1),b>e&&(b=e)}const _=Math.min(b+y+1,u),x=["/Tx BMC q","1 1 ".concat(d," ").concat(c," re W n")];if(h.length){x.push("0.600006 0.756866 0.854904 rg");for(const e of h)b<=e&&e<_&&x.push("1 ".concat(c-(e-b+1)*v," ").concat(d," ").concat(v," re f"))}x.push("BT",f,"1 0 0 1 0 ".concat(c," Tm"));const w={shift:0};for(let a=b;a<_;a++){const{displayValue:e}=this.data.options[a],t=a===b?g:0;x.push(this._renderText(e,p,m,d,0,w,2,-v+t))}return x.push("ET Q EMC"),x.join("\n")}}class F extends A{constructor(e){super(e),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class T extends S{constructor(e){super(e),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate;const{dict:t}=e;this.data.annotationType=a.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=t.has("Name")?t.get("Name").name:"Note"),t.has("State")?(this.data.state=t.get("State")||null,this.data.stateModel=t.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class P extends w{constructor(e){var t;super(e);const{dict:n,annotationGlobals:i}=e;this.data.annotationType=a.AnnotationType.LINK;const r=_(n,this.rectangle);r&&(this.data.quadPoints=r),(t=this.data).borderColor||(t.borderColor=this.data.color),d.Catalog.parseDestDictionary({destDict:n,resultObj:this.data,docBaseUrl:i.baseUrl,docAttachments:i.attachments})}}class E extends w{constructor(e){super(e);const{dict:t}=e;this.data.annotationType=a.AnnotationType.POPUP,this.data.rect[0]!==this.data.rect[2]&&this.data.rect[1]!==this.data.rect[3]||(this.data.rect=null);let n=t.get("Parent");if(!n)return void(0,a.warn)("Popup annotation has a missing or invalid parent annotation.");const i=n.getArray("Rect");this.data.parentRect=Array.isArray(i)&&4===i.length?a.Util.normalizeRect(i):null;const r=n.get("RT");if((0,o.isName)(r,a.AnnotationReplyType.GROUP)&&(n=n.get("IRT")),n.has("M")?(this.setModificationDate(n.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n.has("C")?(this.setColor(n.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const e=n.get("F");this._isViewable(e)&&this.setFlags(e)}this.setTitle(n.get("T")),this.data.titleObj=this._title,this.setContents(n.get("Contents")),this.data.contentsObj=this._contents,n.has("RC")&&(this.data.richText=g.XFAFactory.getRichTextAsHtml(n.get("RC"))),this.data.open=!!t.get("Open")}}t.PopupAnnotation=E;class O extends S{constructor(e){super(e),this.data.hasOwnCanvas=!0;const{evaluatorOptions:t,xref:n}=e;if(this.data.annotationType=a.AnnotationType.FREETEXT,this.setDefaultAppearance(e),this.appearance){const{fontColor:e,fontSize:a}=(0,r.parseAppearanceStream)(this.appearance,t,n);this.data.defaultAppearanceData.fontColor=e,this.data.defaultAppearanceData.fontSize=a||10}else if(this._isOffscreenCanvasSupported){var i;const t=e.dict.get("CA"),a=new r.FakeUnicodeFont(n,"sans-serif");(i=this.data.defaultAppearanceData).fontSize||(i.fontSize=10);const{fontColor:o,fontSize:s}=this.data.defaultAppearanceData;this.appearance=a.createAppearance(this._contents.str,this.rectangle,this.rotation,s,o,t),this._streams.push(this.appearance,r.FakeUnicodeFont.toUnicodeStream)}else(0,a.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(e,t,n){let{apRef:s,ap:l}=n;const{color:c,fontSize:d,rect:u,rotation:h,user:p,value:f}=e,m=new o.Dict(t);m.set("Type",o.Name.get("Annot")),m.set("Subtype",o.Name.get("FreeText")),m.set("CreationDate","D:".concat((0,a.getModificationDate)())),m.set("Rect",u);const v="/Helv ".concat(d," Tf ").concat((0,r.getPdfColor)(c,!0));if(m.set("DA",v),m.set("Contents",(0,i.isAscii)(f)?f:(0,i.stringToUTF16String)(f,!0)),m.set("F",4),m.set("Border",[0,0,0]),m.set("Rotate",h),p&&m.set("T",(0,i.isAscii)(p)?p:(0,i.stringToUTF16String)(p,!0)),s||l){const e=new o.Dict(t);m.set("AP",e),s?e.set("N",s):e.set("N",l)}return m}static async createNewAppearanceStream(e,t,n){const{baseFontRef:l,evaluator:c,task:d}=n,{color:u,fontSize:h,rect:p,rotation:f,value:m}=e,v=new o.Dict(t),g=new o.Dict(t);if(l)g.set("Helv",l);else{const e=new o.Dict(t);e.set("BaseFont",o.Name.get("Helvetica")),e.set("Type",o.Name.get("Font")),e.set("Subtype",o.Name.get("Type1")),e.set("Encoding",o.Name.get("WinAnsiEncoding")),g.set("Helv",e)}v.set("Font",g);const y=await A._getFontData(c,d,{fontName:"Helv",fontSize:h},v),[b,_,x,w]=p;let C=x-b,S=w-_;f%180!==0&&([C,S]=[S,C]);const k=m.split("\n"),j=h/1e3;let I=-1/0;const F=[];for(let a of k){const e=y.encodeString(a);if(e.length>1)return null;a=e.join(""),F.push(a);let t=0;const n=y.charsToGlyphs(a);for(const a of n)t+=a.width*j;I=Math.max(I,t)}let T=1;I>C&&(T=C/I);let P=1;const E=a.LINE_FACTOR*h,O=(a.LINE_FACTOR-a.LINE_DESCENT_FACTOR)*h,N=E*k.length;N>S&&(P=S/N);const R=h*Math.min(T,P);let M,D,L;switch(f){case 0:L=[1,0,0,1],D=[p[0],p[1],C,S],M=[p[0],p[3]-O];break;case 90:L=[0,1,-1,0],D=[p[1],-p[2],C,S],M=[p[1],-p[0]-O];break;case 180:L=[-1,0,0,-1],D=[-p[2],-p[3],C,S],M=[-p[2],-p[1]-O];break;case 270:L=[0,-1,1,0],D=[-p[3],p[0],C,S],M=[-p[3],p[2]-O]}const B=["q","".concat(L.join(" ")," 0 0 cm"),"".concat(D.join(" ")," re W n"),"BT","".concat((0,r.getPdfColor)(u,!0)),"0 Tc /Helv ".concat((0,i.numberToString)(R)," Tf")];B.push("".concat(M.join(" ")," Td (").concat((0,i.escapeString)(F[0]),") Tj"));const W=(0,i.numberToString)(E);for(let a=1,r=F.length;a(e.push("".concat(i[0]," ").concat(i[1]," m"),"".concat(i[2]," ").concat(i[3]," l"),"S"),[t[0].x-c,t[1].x+c,t[3].y-c,t[1].y+c])})}}}class R extends S{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=a.AnnotationType.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,!this.appearance){const e=this.color?b(this.color):[0,0,0],a=t.get("CA"),i=y(t.getArray("IC"),null),r=i?b(i):null,o=r?a:null;if(0===this.borderStyle.width&&!r)return;this._setDefaultAppearance({xref:n,extra:"".concat(this.borderStyle.width," w"),strokeColor:e,fillColor:r,strokeAlpha:a,fillAlpha:o,pointsCallback:(e,t)=>{const n=t[2].x+this.borderStyle.width/2,a=t[2].y+this.borderStyle.width/2,i=t[3].x-t[2].x-this.borderStyle.width,o=t[1].y-t[3].y-this.borderStyle.width;return e.push("".concat(n," ").concat(a," ").concat(i," ").concat(o," re")),r?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class M extends S{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=a.AnnotationType.CIRCLE,!this.appearance){const e=this.color?b(this.color):[0,0,0],a=t.get("CA"),i=y(t.getArray("IC"),null),r=i?b(i):null,o=r?a:null;if(0===this.borderStyle.width&&!r)return;const s=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:n,extra:"".concat(this.borderStyle.width," w"),strokeColor:e,fillColor:r,strokeAlpha:a,fillAlpha:o,pointsCallback:(e,t)=>{const n=t[0].x+this.borderStyle.width/2,a=t[0].y-this.borderStyle.width/2,i=t[3].x-this.borderStyle.width/2,o=t[3].y+this.borderStyle.width/2,l=n+(i-n)/2,c=a+(o-a)/2,d=(i-n)/2*s,u=(o-a)/2*s;return e.push("".concat(l," ").concat(o," m"),"".concat(l+d," ").concat(o," ").concat(i," ").concat(c+u," ").concat(i," ").concat(c," c"),"".concat(i," ").concat(c-u," ").concat(l+d," ").concat(a," ").concat(l," ").concat(a," c"),"".concat(l-d," ").concat(a," ").concat(n," ").concat(c-u," ").concat(n," ").concat(c," c"),"".concat(n," ").concat(c+u," ").concat(l-d," ").concat(o," ").concat(l," ").concat(o," c"),"h"),r?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class D extends S{constructor(e){super(e);const{dict:t,xref:n}=e;this.data.annotationType=a.AnnotationType.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.vertices=[],this instanceof L||(this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings);const i=t.getArray("Vertices");if(Array.isArray(i)){for(let e=0,t=i.length;e{const n=this.data.vertices;for(let a=0,i=n.length;a{for(const n of this.data.inkLists){for(let t=0,a=n.length;te.points))),p.set("F",4),p.set("Rotate",u);const f=new o.Dict(t);p.set("BS",f),f.set("W",h),p.set("C",Array.from(s,(e=>e/255))),p.set("CA",l);const m=new o.Dict(t);return p.set("AP",m),i?m.set("N",i):m.set("N",r),p}static async createNewAppearanceStream(e,t,n){const{color:a,rect:l,paths:c,thickness:d,opacity:u}=e,h=["".concat(d," w 1 J 1 j"),"".concat((0,r.getPdfColor)(a,!1))];1!==u&&h.push("/R0 gs");const p=[];for(const{bezier:r}of c){p.length=0,p.push("".concat((0,i.numberToString)(r[0])," ").concat((0,i.numberToString)(r[1])," m"));for(let e=2,t=r.length;e(e.push("".concat(t[0].x," ").concat(t[0].y," m"),"".concat(t[1].x," ").concat(t[1].y," l"),"".concat(t[3].x," ").concat(t[3].y," l"),"".concat(t[2].x," ").concat(t[2].y," l"),"f"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class U extends S{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=a.AnnotationType.UNDERLINE,this.data.quadPoints=_(t,null)){if(!this.appearance){const e=this.color?b(this.color):[0,0,0],a=t.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 0.571 w",strokeColor:e,strokeAlpha:a,pointsCallback:(e,t)=>(e.push("".concat(t[2].x," ").concat(t[2].y+1.3," m"),"".concat(t[3].x," ").concat(t[3].y+1.3," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class H extends S{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=a.AnnotationType.SQUIGGLY,this.data.quadPoints=_(t,null)){if(!this.appearance){const e=this.color?b(this.color):[0,0,0],a=t.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:a,pointsCallback:(e,t)=>{const n=(t[0].y-t[2].y)/6;let a=n,i=t[2].x;const r=t[2].y,o=t[3].x;e.push("".concat(i," ").concat(r+a," m"));do{i+=2,a=0===a?n:0,e.push("".concat(i," ").concat(r+a," l"))}while(i(e.push("".concat((t[0].x+t[2].x)/2," ")+"".concat((t[0].y+t[2].y)/2," m"),"".concat((t[1].x+t[3].x)/2," ")+"".concat((t[1].y+t[3].y)/2," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class V extends S{constructor(e){super(e),this.data.annotationType=a.AnnotationType.STAMP,this.data.hasOwnCanvas=this.data.noRotate}static async createImage(e,t){const{width:n,height:i}=e,r=new OffscreenCanvas(n,i),l=r.getContext("2d",{alpha:!0});l.drawImage(e,0,0);const c=l.getImageData(0,0,n,i).data,d=new Uint32Array(c.buffer),u=d.some(a.FeatureTest.isLittleEndian?e=>e>>>24!==255:e=>255!==(255&e));u&&(l.fillStyle="white",l.fillRect(0,0,n,i),l.drawImage(e,0,0));const h=r.convertToBlob({type:"image/jpeg",quality:1}).then((e=>e.arrayBuffer())),p=o.Name.get("XObject"),f=o.Name.get("Image"),m=new o.Dict(t);m.set("Type",p),m.set("Subtype",f),m.set("BitsPerComponent",8),m.set("ColorSpace",o.Name.get("DeviceRGB")),m.set("Filter",o.Name.get("DCTDecode")),m.set("BBox",[0,0,n,i]),m.set("Width",n),m.set("Height",i);let v=null;if(u){const e=new Uint8Array(d.length);if(a.FeatureTest.isLittleEndian)for(let t=0,n=d.length;t>>24;else for(let t=0,n=d.length;t=0&&s<=1?s:null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FakeUnicodeFont=void 0,t.createDefaultAppearance=function(e){let{fontSize:t,fontName:n,fontColor:a}=e;return"/".concat((0,i.escapePDFName)(n)," ").concat(t," Tf ").concat(p(a,!0))},t.getPdfColor=p,t.parseAppearanceStream=function(e,t,n){return new h(e,t,n).parse()},t.parseDefaultAppearance=function(e){return new u(e).parse()};var a=n(4),i=n(3),r=n(2),o=n(12),s=n(13),l=n(59),c=n(57),d=n(8);class u extends s.EvaluatorPreprocessor{constructor(e){super(new d.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);){if(0!==this.savedStatesDepth)continue;const{fn:n,args:i}=e;switch(0|n){case r.OPS.setFont:const[e,n]=i;e instanceof a.Name&&(t.fontName=e.name),"number"===typeof n&&n>0&&(t.fontSize=n);break;case r.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(i,0,t.fontColor,0);break;case r.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(i,0,t.fontColor,0);break;case r.OPS.setFillCMYKColor:o.ColorSpace.singletons.cmyk.getRgbItem(i,0,t.fontColor,0)}}}catch(n){(0,r.warn)('parseDefaultAppearance - ignoring errors: "'.concat(n,'".'))}return t}}class h extends s.EvaluatorPreprocessor{constructor(e,t,n){var a;super(e),this.stream=e,this.evaluatorOptions=t,this.xref=n,this.resources=null===(a=e.dict)||void 0===a?void 0:a.get("Resources")}parse(){const e={fn:0,args:[]};let t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:o.ColorSpace.singletons.gray},n=!1;const i=[];try{for(;e.args.length=0,!n&&this.read(e);){const{fn:s,args:l}=e;switch(0|s){case r.OPS.save:i.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case r.OPS.restore:t=i.pop()||t;break;case r.OPS.setTextMatrix:t.scaleFactor*=Math.hypot(l[0],l[1]);break;case r.OPS.setFont:const[e,s]=l;e instanceof a.Name&&(t.fontName=e.name),"number"===typeof s&&s>0&&(t.fontSize=s*t.scaleFactor);break;case r.OPS.setFillColorSpace:t.fillColorSpace=o.ColorSpace.parse({cs:l[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case r.OPS.setFillColor:t.fillColorSpace.getRgbItem(l,0,t.fontColor,0);break;case r.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(l,0,t.fontColor,0);break;case r.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(l,0,t.fontColor,0);break;case r.OPS.setFillCMYKColor:o.ColorSpace.singletons.cmyk.getRgbItem(l,0,t.fontColor,0);break;case r.OPS.showText:case r.OPS.showSpacedText:case r.OPS.nextLineShowText:case r.OPS.nextLineSetSpacingShowText:n=!0}}}catch(s){(0,r.warn)('parseAppearanceStream - ignoring errors: "'.concat(s,'".'))}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}get _localColorSpaceCache(){return(0,r.shadow)(this,"_localColorSpaceCache",new l.LocalColorSpaceCache)}get _pdfFunctionFactory(){const e=new c.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,r.shadow)(this,"_pdfFunctionFactory",e)}}function p(e,t){if(e[0]===e[1]&&e[1]===e[2]){const n=e[0]/255;return"".concat((0,i.numberToString)(n)," ").concat(t?"g":"G")}return Array.from(e,(e=>(0,i.numberToString)(e/255))).join(" ")+" ".concat(t?"rg":"RG")}class f{constructor(e,t){this.xref=e,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=t;const n=new OffscreenCanvas(1,1);this.ctxMeasure=n.getContext("2d"),f._fontNameId||(f._fontNameId=1),this.fontName=a.Name.get("InvalidPDFjsFont_".concat(t,"_").concat(f._fontNameId++))}get toUnicodeRef(){if(!f._toUnicodeRef){const e="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> \nendcodespacerange\n1 beginbfrange\n<0000> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end",t=f.toUnicodeStream=new d.StringStream(e),n=new a.Dict(this.xref);t.dict=n,n.set("Length",e.length),f._toUnicodeRef=this.xref.getNewPersistentRef(t)}return f._toUnicodeRef}get fontDescriptorRef(){if(!f._fontDescriptorRef){const e=new a.Dict(this.xref);e.set("Type",a.Name.get("FontDescriptor")),e.set("FontName",this.fontName),e.set("FontFamily","MyriadPro Regular"),e.set("FontBBox",[0,0,0,0]),e.set("FontStretch",a.Name.get("Normal")),e.set("FontWeight",400),e.set("ItalicAngle",0),f._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return f._fontDescriptorRef}get descendantFontRef(){const e=new a.Dict(this.xref);e.set("BaseFont",this.fontName),e.set("Type",a.Name.get("Font")),e.set("Subtype",a.Name.get("CIDFontType0")),e.set("CIDToGIDMap",a.Name.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);const t=[],n=[...this.widths.entries()].sort();let i=null,r=null;for(const[a,s]of n)i?a===i+r.length?r.push(s):(t.push(i,r),i=a,r=[s]):(i=a,r=[s]);i&&t.push(i,r),e.set("W",t);const o=new a.Dict(this.xref);return o.set("Ordering","Identity"),o.set("Registry","Adobe"),o.set("Supplement",0),e.set("CIDSystemInfo",o),this.xref.getNewPersistentRef(e)}get baseFontRef(){const e=new a.Dict(this.xref);return e.set("BaseFont",this.fontName),e.set("Type",a.Name.get("Font")),e.set("Subtype",a.Name.get("Type0")),e.set("Encoding",a.Name.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(e)}get resources(){const e=new a.Dict(this.xref),t=new a.Dict(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font="1000px ".concat(this.fontFamily),this.ctxMeasure}createFontResources(e){const t=this._createContext();for(const n of e.split(/\r\n?|\n/))for(const e of n.split("")){const n=e.charCodeAt(0);if(this.widths.has(n))continue;const a=t.measureText(e),i=Math.ceil(a.width);this.widths.set(n,i),this.firstChar=Math.min(n,this.firstChar),this.lastChar=Math.max(n,this.lastChar)}return this.resources}createAppearance(e,t,n,o,s,l){const c=this._createContext(),u=[];let h=-1/0;for(const a of e.split(/\r\n?|\n/)){u.push(a);const e=c.measureText(a).width;h=Math.max(h,e);for(const t of a.split("")){const e=t.charCodeAt(0);let n=this.widths.get(e);if(void 0===n){const a=c.measureText(t);n=Math.ceil(a.width),this.widths.set(e,n),this.firstChar=Math.min(e,this.firstChar),this.lastChar=Math.max(e,this.lastChar)}}}h*=o/1e3;const[f,m,v,g]=t;let y=v-f,b=g-m;n%180!==0&&([y,b]=[b,y]);let _=1;h>y&&(_=y/h);let x=1;const w=r.LINE_FACTOR*o,C=r.LINE_DESCENT_FACTOR*o,S=w*u.length;S>b&&(x=b/S);const A=o*Math.min(_,x),k=["q","0 0 ".concat((0,i.numberToString)(y)," ").concat((0,i.numberToString)(b)," re W n"),"BT","1 0 0 1 0 ".concat((0,i.numberToString)(b+C)," Tm 0 Tc ").concat(p(s,!0)),"/".concat(this.fontName.name," ").concat((0,i.numberToString)(A)," Tf")],{resources:j}=this;if(1!==(l="number"===typeof l&&l>=0&&l<=1?l:1)){k.push("/R0 gs");const e=new a.Dict(this.xref),t=new a.Dict(this.xref);t.set("ca",l),t.set("CA",l),t.set("Type",a.Name.get("ExtGState")),e.set("R0",t),j.set("ExtGState",e)}const I=(0,i.numberToString)(w);for(const a of u)k.push("0 -".concat(I," Td <").concat((0,i.stringToUTF16HexString)(a),"> Tj"));k.push("ET","Q");const F=k.join("\n"),T=new a.Dict(this.xref);if(T.set("Subtype",a.Name.get("Form")),T.set("Type",a.Name.get("XObject")),T.set("BBox",[0,0,y,b]),T.set("Length",F.length),T.set("Resources",j),n){const e=(0,i.getRotationMatrix)(n,y,b);T.set("Matrix",e)}const P=new d.StringStream(F);return P.dict=T,P}}t.FakeUnicodeFont=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var a=n(2),i=n(4),r=n(5),l=n(3);class c{constructor(e,t){this.constructor===c&&(0,a.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){const n=new Uint8ClampedArray(3);return this.getRgbItem(e,t,n,0),n}getRgbItem(e,t,n,i){(0,a.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,n,i,r,o,s){(0,a.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,a.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return c.isDefaultDecode(e,this.numComps)}fillRgb(e,t,n,a,i,r,o,s,l){const c=t*n;let d=null;const u=1<u&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=o<=8?new Uint8Array(u):new Uint16Array(u);for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof i.Name)switch(e.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new u(null);default:if(n instanceof i.Dict){const a=n.get("ColorSpace");if(a instanceof i.Dict){const o=a.get(e.name);if(o){if(o instanceof i.Name)return this._parse(o,t,n,r);e=o;break}}}throw new a.FormatError("Unrecognized ColorSpace: ".concat(e.name))}if(Array.isArray(e)){const i=t.fetchIfRef(e[0]).name;let o,s,l,c,p,f;switch(i){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return o=t.fetchIfRef(e[1]),c=o.getArray("WhitePoint"),p=o.getArray("BlackPoint"),f=o.get("Gamma"),new b(c,p,f);case"CalRGB":o=t.fetchIfRef(e[1]),c=o.getArray("WhitePoint"),p=o.getArray("BlackPoint"),f=o.getArray("Gamma");const m=o.getArray("Matrix");return new w(c,p,f,m);case"ICCBased":const v=t.fetchIfRef(e[1]).dict;s=v.get("N");const g=v.get("Alternate");if(g){const e=this._parse(g,t,n,r);if(e.numComps===s)return e;(0,a.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===s)return this.singletons.gray;if(3===s)return this.singletons.rgb;if(4===s)return this.singletons.cmyk;break;case"Pattern":return l=e[1]||null,l&&(l=this._parse(l,t,n,r)),new u(l);case"I":case"Indexed":l=this._parse(e[1],t,n,r);const y=t.fetchIfRef(e[2])+1,_=t.fetchIfRef(e[3]);return new h(l,y,_);case"Separation":case"DeviceN":const x=t.fetchIfRef(e[1]);s=Array.isArray(x)?x.length:1,l=this._parse(e[2],t,n,r);const C=r.create(e[3]);return new d(s,l,C);case"Lab":o=t.fetchIfRef(e[1]),c=o.getArray("WhitePoint"),p=o.getArray("BlackPoint");const S=o.getArray("Range");return new U(c,p,S);default:throw new a.FormatError("Unimplemented ColorSpace object: ".concat(i))}}throw new a.FormatError("Unrecognized ColorSpace object: ".concat(e))}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,a.warn)("The decode map is not the correct length"),!0;for(let n=0,a=e.length;n=.99554525?1:s(x,this,j).call(this,0,1,1.055*e**(1/2.4)-.055)}function j(e,t,n){return Math.max(e,Math.min(t,n))}function I(e){return e<0?-s(x,this,I).call(this,-e):e>8?((e+16)/116)**3:e*W._}function F(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]);const a=s(x,this,I).call(this,0),i=(1-a)/(1-s(x,this,I).call(this,e[0])),r=1-i,o=(1-a)/(1-s(x,this,I).call(this,e[1])),l=1-o,c=(1-a)/(1-s(x,this,I).call(this,e[2])),d=1-c;n[0]=t[0]*i+r,n[1]=t[1]*o+l,n[2]=t[2]*c+d}function T(e,t,n){if(1===e[0]&&1===e[2])return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);const a=n;s(x,this,C).call(this,O._,t,a);const i=D._;s(x,this,S).call(this,e,a,i),s(x,this,C).call(this,N._,i,n)}function P(e,t,n){const a=n;s(x,this,C).call(this,O._,t,a);const i=D._;s(x,this,A).call(this,e,a,i),s(x,this,C).call(this,N._,i,n)}function E(e,t,n,a,i){const r=s(x,this,j).call(this,0,1,e[t]*i),o=s(x,this,j).call(this,0,1,e[t+1]*i),l=s(x,this,j).call(this,0,1,e[t+2]*i),c=1===r?1:r**this.GR,d=1===o?1:o**this.GG,u=1===l?1:l**this.GB,h=this.MXA*c+this.MXB*d+this.MXC*u,p=this.MYA*c+this.MYB*d+this.MYC*u,f=this.MZA*c+this.MZB*d+this.MZC*u,m=L._;m[0]=h,m[1]=p,m[2]=f;const v=B._;s(x,this,T).call(this,this.whitePoint,m,v);const g=L._;s(x,this,F).call(this,this.blackPoint,v,g);const y=B._;s(x,this,P).call(this,M._,g,y);const b=L._;s(x,this,C).call(this,R._,y,b),n[a]=255*s(x,this,k).call(this,b[0]),n[a+1]=255*s(x,this,k).call(this,b[1]),n[a+2]=255*s(x,this,k).call(this,b[2])}var O={_:new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])},N={_:new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])},R={_:new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])},M={_:new Float32Array([1,1,1])},D={_:new Float32Array(3)},L={_:new Float32Array(3)},B={_:new Float32Array(3)},W={_:(24/116)**3/8},z=new WeakSet;class U extends c{constructor(e,t,n){if(super("Lab",3),o(this,z),!e)throw new a.FormatError("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=e,[this.amin,this.amax,this.bmin,this.bmax]=n||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=t||[0,0,0],this.XW<0||this.ZW<0||1!==this.YW)throw new a.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,a.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,a.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(e,t,n,a){s(z,this,V).call(this,e,t,!1,n,a)}getRgbBuffer(e,t,n,a,i,r,o){const l=(1<=6/29?e**3:108/841*(e-4/29)}function q(e,t,n,a){return n+e*(a-n)/t}function V(e,t,n,a,i){let r=e[t],o=e[t+1],l=e[t+2];!1!==n&&(r=s(z,this,q).call(this,r,n,0,100),o=s(z,this,q).call(this,o,n,this.amin,this.amax),l=s(z,this,q).call(this,l,n,this.bmin,this.bmax)),o>this.amax?o=this.amax:othis.bmax?l=this.bmax:l{Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var a=n(2),i=n(14),o=n(4),s=n(34),l=n(37),c=n(41),d=n(50),u=n(51),h=n(42),p=n(57),f=n(16),m=n(59),v=n(8),g=n(5),y=n(60),b=n(12),_=n(18),x=n(38),w=n(61),C=n(39),S=n(45),A=n(40),k=n(62),j=n(63),I=n(64),F=n(65);const T=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),P=1,E=2,O=Promise.resolve();function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(const t of e){const e=N(t,!0);if(e)return e}return(0,a.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(e instanceof o.Name))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,a.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}function R(e){var t;e.fn===a.OPS.paintImageMaskXObject&&(null===(t=e.args[0])||void 0===t?void 0:t.count)>0&&e.args[0].count++}class M{constructor(){this.reset()}check(){return!(++this.checked0&&void 0!==arguments[0]?arguments[0]:null;const t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(!(e instanceof o.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;const n=new o.RefSet(t);e.objId&&n.put(e.objId);const i=[e],r=this.xref;for(;i.length;){const e=i.shift(),t=e.get("ExtGState");if(t instanceof o.Dict)for(let i of t.getRawValues()){if(i instanceof o.Ref){if(n.has(i))continue;try{i=r.fetch(i)}catch(s){n.put(i),(0,a.info)('hasBlendModes - ignoring ExtGState: "'.concat(s,'".'));continue}}if(!(i instanceof o.Dict))continue;i.objId&&n.put(i.objId);const e=i.get("BM");if(e instanceof o.Name){if("Normal"!==e.name)return!0}else if(void 0!==e&&Array.isArray(e))for(const t of e)if(t instanceof o.Name&&"Normal"!==t.name)return!0}const l=e.get("XObject");if(l instanceof o.Dict)for(let c of l.getRawValues()){if(c instanceof o.Ref){if(n.has(c))continue;try{c=r.fetch(c)}catch(s){n.put(c),(0,a.info)('hasBlendModes - ignoring XObject: "'.concat(s,'".'));continue}}if(!(c instanceof g.BaseStream))continue;c.dict.objId&&n.put(c.dict.objId);const e=c.dict.get("Resources");e instanceof o.Dict&&(e.objId&&n.has(e.objId)||(i.push(e),e.objId&&n.put(e.objId)))}}for(const a of n)t.put(a);return!1}async fetchBuiltInCMap(e){const t=this.builtInCMapCache.get(e);if(t)return t;let n;if(null!==this.options.cMapUrl){const t="".concat(this.options.cMapUrl).concat(e,".bcmap"),i=await fetch(t);if(!i.ok)throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(t,'" with "').concat(i.statusText,'".'));n={cMapData:new Uint8Array(await i.arrayBuffer()),compressionType:a.CMapCompressionType.BINARY}}else n=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:e});return n.compressionType!==a.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,n),n}async fetchStandardFontData(e){const t=this.standardFontDataCache.get(e);if(t)return new v.Stream(t);if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null;const n=(0,c.getFontNameToFileMap)()[e];let i;if(null!==this.options.standardFontDataUrl){const e="".concat(this.options.standardFontDataUrl).concat(n),t=await fetch(e);t.ok?i=await t.arrayBuffer():(0,a.warn)('fetchStandardFontData: failed to fetch file "'.concat(e,'" with "').concat(t.statusText,'".'))}else try{i=await this.handler.sendWithPromise("FetchStandardFontData",{filename:n})}catch(r){(0,a.warn)('fetchStandardFontData: failed to fetch file "'.concat(n,'" with "').concat(r,'".'))}return i?(this.standardFontDataCache.set(e,i),new v.Stream(i)):null}async buildFormXObject(e,t,n,i,r,s,l){const c=t.dict,d=c.getArray("Matrix");let u,h,p=c.getArray("BBox");p=Array.isArray(p)&&4===p.length?a.Util.normalizeRect(p):null,c.has("OC")&&(u=await this.parseMarkedContentProps(c.get("OC"),e)),void 0!==u&&i.addOp(a.OPS.beginMarkedContentProps,["OC",u]);const f=c.get("Group");if(f){h={matrix:d,bbox:p,smask:n,isolated:!1,knockout:!1};const t=f.get("S");let r=null;if((0,o.isName)(t,"Transparency")&&(h.isolated=f.get("I")||!1,h.knockout=f.get("K")||!1,f.has("CS"))){const t=f.getRaw("CS"),n=b.ColorSpace.getCached(t,this.xref,l);r=n||await this.parseColorSpace({cs:t,resources:e,localColorSpaceCache:l})}null!==n&&void 0!==n&&n.backdrop&&(r||(r=b.ColorSpace.singletons.rgb),n.backdrop=r.getRgb(n.backdrop,0)),i.addOp(a.OPS.beginGroup,[h])}const m=f?[d,null]:[d,p];return i.addOp(a.OPS.paintFormXObjectBegin,m),this.getOperatorList({stream:t,task:r,resources:c.get("Resources")||e,operatorList:i,initialState:s}).then((function(){i.addOp(a.OPS.paintFormXObjectEnd,[]),f&&i.addOp(a.OPS.endGroup,[h]),void 0!==u&&i.addOp(a.OPS.endMarkedContent,[])}))}_sendImgData(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||n?this.handler.send("commonobj",[e,"Image",t],a):this.handler.send("obj",[e,this.pageIndex,"Image",t],a)}async buildPaintImageXObject(e){let{resources:t,image:n,isInline:i=!1,operatorList:r,cacheKey:o,localImageCache:s,localColorSpaceCache:l}=e;const c=n.dict,d=c.objId,u=c.get("W","Width"),h=c.get("H","Height");if(!u||"number"!==typeof u||!h||"number"!==typeof h)return void(0,a.warn)("Image dimensions are missing, or not numbers.");const p=this.options.maxImageSize;if(-1!==p&&u*h>p){const e="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors)return void(0,a.warn)(e);throw new Error(e)}let f,m,v;if(c.has("OC")&&(f=await this.parseMarkedContentProps(c.get("OC"),t)),c.get("IM","ImageMask")){const e=c.get("I","Interpolate"),t=u+7>>3,i=n.getBytes(t*h),l=c.getArray("D","Decode");if(this.parsingType3Font){if(m=F.PDFImage.createRawMask({imgArray:i,width:u,height:h,imageIsFromDecodeStream:n instanceof _.DecodeStream,inverseDecode:(null===l||void 0===l?void 0:l[0])>0,interpolate:e}),m.cached=!!o,v=[m],r.addImageOps(a.OPS.paintImageMaskXObject,v,f),o){const e={fn:a.OPS.paintImageMaskXObject,args:v,optionalContent:f};s.set(o,d,e),d&&this._regionalImageCache.set(null,d,e)}return}if(m=await F.PDFImage.createMask({imgArray:i,width:u,height:h,imageIsFromDecodeStream:n instanceof _.DecodeStream,inverseDecode:(null===l||void 0===l?void 0:l[0])>0,interpolate:e,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),m.isSingleOpaquePixel){if(r.addImageOps(a.OPS.paintSolidColorImageMask,[],f),o){const e={fn:a.OPS.paintSolidColorImageMask,args:[],optionalContent:f};s.set(o,d,e),d&&this._regionalImageCache.set(null,d,e)}return}const p="mask_".concat(this.idFactory.createObjId());if(r.addDependency(p),this._sendImgData(p,m),v=[{data:p,width:m.width,height:m.height,interpolate:m.interpolate,count:1}],r.addImageOps(a.OPS.paintImageMaskXObject,v,f),o){const e={fn:a.OPS.paintImageMaskXObject,args:v,optionalContent:f};s.set(o,d,e),d&&this._regionalImageCache.set(null,d,e)}return}if(i&&!c.has("SMask")&&!c.has("Mask")&&u+h<200){const e=new F.PDFImage({xref:this.xref,res:t,image:n,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l});return m=await e.createImageData(!0,!1),r.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,void r.addImageOps(a.OPS.paintInlineImageXObject,[m],f)}let g="img_".concat(this.idFactory.createObjId()),y=!1;if(this.parsingType3Font?g="".concat(this.idFactory.getDocId(),"_type3_").concat(g):d&&(y=this.globalImageCache.shouldCache(d,this.pageIndex),y&&(g="".concat(this.idFactory.getDocId(),"_").concat(g))),r.addDependency(g),v=[g,u,h],F.PDFImage.buildImage({xref:this.xref,res:t,image:n,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}).then((async e=>{if(m=await e.createImageData(!1,this.options.isOffscreenCanvasSupported),o&&d&&y){const e=m.bitmap?m.width*m.height*4:m.data.length;this.globalImageCache.addByteSize(d,e)}return this._sendImgData(g,m,y)})).catch((e=>((0,a.warn)('Unable to decode image "'.concat(g,'": "').concat(e,'".')),this._sendImgData(g,null,y)))),r.addImageOps(a.OPS.paintImageXObject,v,f),o){const e={fn:a.OPS.paintImageXObject,args:v,optionalContent:f};s.set(o,d,e),d&&(this._regionalImageCache.set(null,d,e),y&&((0,a.assert)(!i,"Cannot cache an inline image globally."),this.globalImageCache.setData(d,{objId:g,fn:a.OPS.paintImageXObject,args:v,optionalContent:f,byteSize:0})))}}handleSMask(e,t,n,a,i,r){const o=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},l=e.get("TR");if((0,p.isPDFFunction)(l)){const e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),n=new Float32Array(1);for(let a=0;a<256;a++)n[0]=a/255,e(n,0,n,0),t[a]=255*n[0]|0;s.transferMap=t}return this.buildFormXObject(t,o,s,n,a,i.state.clone(),r)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!(0,p.isPDFFunction)(e))return null;t=[e]}const n=[];let a=0,i=0;for(const r of t){const e=this.xref.fetchIfRef(r);if(a++,(0,o.isName)(e,"Identity")){n.push(null);continue}if(!(0,p.isPDFFunction)(e))return null;const t=this._pdfFunctionFactory.create(e),s=new Uint8Array(256),l=new Float32Array(1);for(let n=0;n<256;n++)l[0]=n/255,t(l,0,l,0),s[n]=255*l[0]|0;n.push(s),i++}return 1!==a&&4!==a||0===i?null:n}handleTilingType(e,t,n,i,r,s,l,c){const u=new I.OperatorList,h=o.Dict.merge({xref:this.xref,dictArray:[r.get("Resources"),n]});return this.getOperatorList({stream:i,task:l,resources:h,operatorList:u}).then((function(){const n=u.getIR(),a=(0,d.getTilingPatternIR)(n,r,t);s.addDependencies(u.dependencies),s.addOp(e,a),r.objId&&c.set(null,r.objId,{operatorListIR:n,dict:r})})).catch((e=>{if(!(e instanceof a.AbortException)){if(!this.options.ignoreErrors)throw e;(0,a.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'))}}))}handleSetFont(e,t,n,a,i,r){let l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;const d=(null===t||void 0===t?void 0:t[0])instanceof o.Name?t[0].name:null;return this.loadFont(d,n,e,l,c).then((t=>t.font.isType3Font?t.loadType3Data(this,e,i).then((function(){return a.addDependencies(t.type3Dependencies),t})).catch((e=>new L({loadedName:"g_font_error",font:new s.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,evaluatorOptions:this.options}))):t)).then((e=>(r.font=e.font,e.send(this.handler),e.loadedName)))}handleText(e,t){const n=t.font,i=n.charsToGlyphs(e);return n.data&&(t.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===t.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&D.buildFontPaths(n,i,this.handler,this.options),i}ensureStateFont(e){if(e.font)return;const t=new a.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;(0,a.warn)('ensureStateFont: "'.concat(t,'".'))}async setGState(e){let{resources:t,gState:n,operatorList:i,cacheKey:r,task:s,stateManager:l,localGStateCache:c,localColorSpaceCache:d}=e;const u=n.objId;let h=!0;const p=[];let f=Promise.resolve();for(const m of n.getKeys()){const e=n.get(m);switch(m){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":p.push([m,e]);break;case"Font":h=!1,f=f.then((()=>this.handleSetFont(t,null,e[0],i,s,l.state).then((function(t){i.addDependency(t),p.push([m,[t,e[1]]])}))));break;case"BM":p.push([m,N(e)]);break;case"SMask":if((0,o.isName)(e,"None")){p.push([m,!1]);break}e instanceof o.Dict?(h=!1,f=f.then((()=>this.handleSMask(e,t,i,s,l,d))),p.push([m,!0])):(0,a.warn)("Unsupported SMask type");break;case"TR":const n=this.handleTransferFunction(e);p.push([m,n]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,a.info)("graphic state operator "+m);break;default:(0,a.info)("Unknown graphic state operator "+m)}}return f.then((function(){p.length>0&&i.addOp(a.OPS.setGState,[p]),h&&c.set(r,u,p)}))}loadFont(e,t,n){var i;let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const c=async()=>new L({loadedName:"g_font_error",font:new s.ErrorFont('Font "'.concat(e,'" is not available.')),dict:t,evaluatorOptions:this.options});let d;if(t)t instanceof o.Ref&&(d=t);else{const t=n.get("Font");t&&(d=t.getRaw(e))}if(d){if(this.parsingType3Font&&this.type3FontRefs.has(d))return c();if(this.fontCache.has(d))return this.fontCache.get(d);t=this.xref.fetchIfRef(d)}if(!(t instanceof o.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,a.warn)('Font "'.concat(e,'" is not available.')),c();(0,a.warn)('Font "'.concat(e,'" is not available -- attempting to fallback to a default font.')),t=r||D.fallbackFontDict}if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const u=new a.PromiseCapability;let h;try{h=this.preEvaluateFont(t),h.cssFontInfo=l}catch(g){return(0,a.warn)('loadFont - preEvaluateFont failed: "'.concat(g,'".')),c()}const{descriptor:p,hash:f}=h,m=d instanceof o.Ref;let v;if(f&&p instanceof o.Dict){const e=p.fontAliases||(p.fontAliases=Object.create(null));if(e[f]){const t=e[f].aliasRef;if(m&&t&&this.fontCache.has(t))return this.fontCache.putAlias(d,t),this.fontCache.get(d)}else e[f]={fontID:this.idFactory.createFontId()};m&&(e[f].aliasRef=d),v=e[f].fontID}else v=this.idFactory.createFontId();return(0,a.assert)(null===(i=v)||void 0===i?void 0:i.startsWith("f"),'The "fontID" must be (correctly) defined.'),m?this.fontCache.put(d,u.promise):(t.cacheKey="cacheKey_".concat(v),this.fontCache.put(t.cacheKey,u.promise)),t.loadedName="".concat(this.idFactory.getDocId(),"_").concat(v),this.translateFont(h).then((e=>{u.resolve(new L({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:this.options}))})).catch((e=>{(0,a.warn)('loadFont - translateFont failed: "'.concat(e,'".')),u.resolve(new L({loadedName:t.loadedName,font:new s.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:this.options}))})),u.promise}buildPath(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=e.length-1;if(n||(n=[]),r<0||e.fnArray[r]!==a.OPS.constructPath){let r;switch(i&&((0,a.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(a.OPS.save,null)),t){case a.OPS.rectangle:const e=n[0]+n[2],t=n[1]+n[3];r=[Math.min(n[0],e),Math.max(n[0],e),Math.min(n[1],t),Math.max(n[1],t)];break;case a.OPS.moveTo:case a.OPS.lineTo:r=[n[0],n[0],n[1],n[1]];break;default:r=[1/0,-1/0,1/0,-1/0]}e.addOp(a.OPS.constructPath,[[t],n,r]),i&&e.addOp(a.OPS.restore,null)}else{const i=e.argsArray[r];i[0].push(t),i[1].push(...n);const o=i[2];switch(t){case a.OPS.rectangle:const e=n[0]+n[2],t=n[1]+n[3];o[0]=Math.min(o[0],n[0],e),o[1]=Math.max(o[1],n[0],e),o[2]=Math.min(o[2],n[1],t),o[3]=Math.max(o[3],n[1],t);break;case a.OPS.moveTo:case a.OPS.lineTo:o[0]=Math.min(o[0],n[0]),o[1]=Math.max(o[1],n[0]),o[2]=Math.min(o[2],n[1]),o[3]=Math.max(o[3],n[1])}}}parseColorSpace(e){let{cs:t,resources:n,localColorSpaceCache:i}=e;return b.ColorSpace.parseAsync({cs:t,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:i}).catch((e=>{if(e instanceof a.AbortException)return null;if(this.options.ignoreErrors)return(0,a.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}parseShading(e){let{shading:t,resources:n,localColorSpaceCache:a,localShadingPatternCache:i}=e,r=i.get(t);if(!r){const e=d.Pattern.parseShading(t,this.xref,n,this._pdfFunctionFactory,a).getIR();r="pattern_".concat(this.idFactory.createObjId()),this.parsingType3Font&&(r="".concat(this.idFactory.getDocId(),"_type3_").concat(r)),i.set(t,r),this.parsingType3Font?this.handler.send("commonobj",[r,"Pattern",e]):this.handler.send("obj",[r,this.pageIndex,"Pattern",e])}return r}handleColorN(e,t,n,i,r,s,l,c,u,h){const p=n.pop();if(p instanceof o.Name){const f=r.getRaw(p.name),m=f instanceof o.Ref&&u.getByRef(f);if(m)try{const a=i.base?i.base.getRgb(n,0):null,r=(0,d.getTilingPatternIR)(m.operatorListIR,m.dict,a);return void e.addOp(t,r)}catch{}const v=this.xref.fetchIfRef(f);if(v){const r=v instanceof g.BaseStream?v.dict:v,o=r.get("PatternType");if(o===P){const a=i.base?i.base.getRgb(n,0):null;return this.handleTilingType(t,a,s,v,r,e,l,u)}if(o===E){const n=r.get("Shading"),a=r.getArray("Matrix"),i=this.parseShading({shading:n,resources:s,localColorSpaceCache:c,localShadingPatternCache:h});return void e.addOp(t,["Shading",i,a])}throw new a.FormatError("Unknown PatternType: ".concat(o))}}throw new a.FormatError("Unknown PatternName: ".concat(p))}_parseVisibilityExpression(e,t,n){if(++t>10)return void(0,a.warn)("Visibility expression is too deeply nested");const i=e.length,r=this.xref.fetchIfRef(e[0]);if(!(i<2)&&r instanceof o.Name){switch(r.name){case"And":case"Or":case"Not":n.push(r.name);break;default:return void(0,a.warn)("Invalid operator ".concat(r.name," in visibility expression"))}for(let a=1;a0)return{type:"OCMD",expression:t}}const t=i.get("OCGs");if(Array.isArray(t)||t instanceof o.Dict){const e=[];if(Array.isArray(t))for(const n of t)e.push(n.toString());else e.push(t.objId);return{type:r,ids:e,policy:i.get("P")instanceof o.Name?i.get("P").name:null,expression:null}}if(t instanceof o.Ref)return{type:r,id:t.toString()}}return null}getOperatorList(e){let{stream:t,task:n,resources:i,operatorList:r,initialState:s=null,fallbackFontDict:l=null}=e;if(i||(i=o.Dict.empty),s||(s=new z),!r)throw new Error('getOperatorList: missing "operatorList" parameter');const c=this,d=this.xref;let u=!1;const h=new m.LocalImageCache,p=new m.LocalColorSpaceCache,f=new m.LocalGStateCache,v=new m.LocalTilingPatternCache,y=new Map,_=i.get("XObject")||o.Dict.empty,x=i.get("Pattern")||o.Dict.empty,w=new B(s),C=new U(t,d,w),S=new M;function A(e){for(let t=0,n=C.savedStatesDepth;t0&&r.addOp(a.OPS.setGState,[t]),e=null;continue}}return void m(new Promise((function(e,t){if(!E)throw new a.FormatError("GState must be referred to by name.");const s=i.get("ExtGState");if(!(s instanceof o.Dict))throw new a.FormatError("ExtGState should be a dictionary.");const l=s.get(P);if(!(l instanceof o.Dict))throw new a.FormatError("GState should be a dictionary.");c.setGState({resources:i,gState:l,operatorList:r,cacheKey:P,task:n,stateManager:w,localGStateCache:f,localColorSpaceCache:p}).then(e,t)})).catch((function(e){if(!(e instanceof a.AbortException)){if(!c.options.ignoreErrors)throw e;(0,a.warn)('getOperatorList - ignoring ExtGState: "'.concat(e,'".'))}})));case a.OPS.moveTo:case a.OPS.lineTo:case a.OPS.curveTo:case a.OPS.curveTo2:case a.OPS.curveTo3:case a.OPS.closePath:case a.OPS.rectangle:c.buildPath(r,t,e,u);continue;case a.OPS.markPoint:case a.OPS.markPointProps:case a.OPS.beginCompat:case a.OPS.endCompat:continue;case a.OPS.beginMarkedContentProps:if(!(e[0]instanceof o.Name)){(0,a.warn)("Expected name for beginMarkedContentProps arg0=".concat(e[0]));continue}if("OC"===e[0].name)return void m(c.parseMarkedContentProps(e[1],i).then((e=>{r.addOp(a.OPS.beginMarkedContentProps,["OC",e])})).catch((e=>{if(!(e instanceof a.AbortException)){if(!c.options.ignoreErrors)throw e;(0,a.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".'))}})));e=[e[0].name,e[1]instanceof o.Dict?e[1].get("MCID"):null];break;case a.OPS.beginMarkedContent:case a.OPS.endMarkedContent:default:if(null!==e){for(I=0,F=e.length;I{if(!(e instanceof a.AbortException)){if(this.options.ignoreErrors)return(0,a.warn)('getOperatorList - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),void A();throw e}}))}getTextContent(e){let{stream:t,task:n,resources:i,stateManager:r=null,includeMarkedContent:s=!1,sink:l,seenStyles:c=new Set,viewBox:d,markedContentData:u=null,disableNormalization:h=!1}=e;i||(i=o.Dict.empty),r||(r=new B(new W)),s&&(u||(u={level:0}));const p={items:[],styles:Object.create(null)},f={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},v=[" "," "];let b=0;function _(e){const t=(b+1)%2,n=" "!==v[b]&&" "===v[t];return v[b]=e,b=t,n}function x(){return" "!==v[b]&&" "===v[(b+1)%2]}function w(){v[0]=v[1]=" ",b=0}const C=this,S=this.xref,A=[];let k=null;const j=new m.LocalImageCache,I=new m.LocalGStateCache,F=new U(t,S,r);let T;function P(e){let{width:t=0,height:n=0,transform:a=f.prevTransform,fontName:i=f.fontName}=e;p.items.push({str:" ",dir:"ltr",width:t,height:n,transform:a,fontName:i,hasEOL:!1})}function E(){const e=T.font,t=[T.fontSize*T.textHScale,0,0,T.fontSize,0,T.textRise];if(e.isType3Font&&(T.fontSize<=1||e.isCharBBox)&&!(0,a.isArrayEqual)(T.fontMatrix,a.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*T.fontMatrix[3])}return a.Util.transform(T.ctm,a.Util.transform(T.textMatrix,t))}function N(){if(f.initialized)return f;const{font:e,loadedName:t}=T;c.has(t)||(c.add(t),p.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),f.fontName=t;const n=f.transform=E();e.vertical?(f.width=f.totalWidth=Math.hypot(n[0],n[1]),f.height=f.totalHeight=0,f.vertical=!0):(f.width=f.totalWidth=0,f.height=f.totalHeight=Math.hypot(n[2],n[3]),f.vertical=!1);const a=Math.hypot(T.textLineMatrix[0],T.textLineMatrix[1]),i=Math.hypot(T.ctm[0],T.ctm[1]);f.textAdvanceScale=i*a;const{fontSize:r}=T;return f.trackingSpaceMin=.102*r,f.notASpace=.03*r,f.negativeSpaceMax=-.2*r,f.spaceInFlowMin=.102*r,f.spaceInFlowMax=.6*r,f.hasEOL=!1,f.initialized=!0,f}function R(){if(!f.initialized)return;const e=Math.hypot(T.textLineMatrix[0],T.textLineMatrix[1]),t=Math.hypot(T.ctm[0],T.ctm[1])*e;t!==f.textAdvanceScale&&(f.vertical?(f.totalHeight+=f.height*f.textAdvanceScale,f.height=0):(f.totalWidth+=f.width*f.textAdvanceScale,f.width=0),f.textAdvanceScale=t)}function D(e,t){return C.loadFont(e,t,i).then((function(e){return e.font.isType3Font?e.loadType3Data(C,i,n).catch((function(){})).then((function(){return e})):e})).then((function(e){T.loadedName=e.loadedName,T.font=e.font,T.fontMatrix=e.font.fontMatrix||a.FONT_IDENTITY_MATRIX}))}function L(e,t,n){const a=Math.hypot(n[0],n[1]);return[(n[0]*e+n[1]*t)/a,(n[2]*e+n[3]*t)/a]}function z(e){var t;const n=E();let a=n[4],i=n[5];if(null!==(t=T.font)&&void 0!==t&&t.vertical){if(ad[2]||i+ed[3])return!1}else if(a+ed[2]||id[3])return!1;if(!T.font||!f.prevTransform)return!0;let r=f.prevTransform[4],o=f.prevTransform[5];if(r===a&&o===i)return!0;let s=-1;switch(n[0]&&0===n[1]&&0===n[2]?s=n[0]>0?0:180:n[1]&&0===n[0]&&0===n[3]&&(s=n[1]>0?90:270),s){case 0:break;case 90:[a,i]=[i,a],[r,o]=[o,r];break;case 180:[a,i,r,o]=[-a,-i,-r,-o];break;case 270:[a,i]=[-i,-a],[r,o]=[-o,-r];break;default:[a,i]=L(a,i,n),[r,o]=L(r,o,f.prevTransform)}if(T.font.vertical){const e=(o-i)/f.textAdvanceScale,t=a-r,n=Math.sign(f.height);return e.5*f.width?(q(),!0):(w(),G(),!0):Math.abs(t)>f.width?(q(),!0):(e<=n*f.notASpace&&w(),e<=n*f.trackingSpaceMin?x()?(w(),G(),P({height:Math.abs(e)})):f.height+=e:V(e,f.prevTransform,n)||(0===f.str.length?(w(),P({height:Math.abs(e)})):f.height+=e),Math.abs(t)>.25*f.width&&G(),!0)}const l=(a-r)/f.textAdvanceScale,c=i-o,u=Math.sign(f.width);return l.5*f.height?(q(),!0):(w(),G(),!0):Math.abs(c)>f.height?(q(),!0):(l<=u*f.notASpace&&w(),l<=u*f.trackingSpaceMin?x()?(w(),G(),P({width:Math.abs(l)})):f.width+=l:V(l,f.prevTransform,u)||(0===f.str.length?(w(),P({width:Math.abs(l)})):f.width+=l),Math.abs(c)>.25*f.height&&G(),!0)}function H(e){let{chars:t,extraSpacing:n}=e;const a=T.font;if(!t){const e=T.charSpacing+n;return void(e&&(a.vertical?T.translateTextMatrix(0,-e):T.translateTextMatrix(e*T.textHScale,0)))}const i=a.charsToGlyphs(t),r=T.fontMatrix[0]*T.fontSize;for(let o=0,s=i.length;o0&&void 0!==arguments[0]&&arguments[0];const t=p.items.length;0!==t&&(e&&t<10||(l.enqueue(p,t),p.items=[],p.styles=Object.create(null)))}const X=new M;return new Promise((function e(t,f){const m=function(n){$(!0),Promise.all([n,l.ready]).then((function(){try{e(t,f)}catch(n){f(n)}}),f)};n.ensureNotTerminated(),X.reset();const v={};let y,b=[];for(;!(y=X.check())&&(b.length=0,v.args=b,F.read(v));){const e=T;T=r.state;const t=v.fn;switch(b=v.args,0|t){case a.OPS.setFont:var _=b[0].name,x=b[1];if(T.font&&_===T.fontName&&x===T.fontSize)break;return G(),T.fontName=_,T.fontSize=x,void m(D(_,null));case a.OPS.setTextRise:T.textRise=b[0];break;case a.OPS.setHScale:T.textHScale=b[0]/100;break;case a.OPS.setLeading:T.leading=b[0];break;case a.OPS.moveText:T.translateTextLineMatrix(b[0],b[1]),T.textMatrix=T.textLineMatrix.slice();break;case a.OPS.setLeadingMoveText:T.leading=-b[1],T.translateTextLineMatrix(b[0],b[1]),T.textMatrix=T.textLineMatrix.slice();break;case a.OPS.nextLine:T.carriageReturn();break;case a.OPS.setTextMatrix:T.setTextMatrix(b[0],b[1],b[2],b[3],b[4],b[5]),T.setTextLineMatrix(b[0],b[1],b[2],b[3],b[4],b[5]),R();break;case a.OPS.setCharSpacing:T.charSpacing=b[0];break;case a.OPS.setWordSpacing:T.wordSpacing=b[0];break;case a.OPS.beginText:T.textMatrix=a.IDENTITY_MATRIX.slice(),T.textLineMatrix=a.IDENTITY_MATRIX.slice();break;case a.OPS.showSpacedText:if(!r.state.font){C.ensureStateFont(r.state);continue}const t=(T.font.vertical?1:-1)*T.fontSize/1e3,f=b[0];for(let e=0,n=f.length;e0){const e=A.join("");A.length=0,H({chars:e,extraSpacing:0})}break;case a.OPS.showText:if(!r.state.font){C.ensureStateFont(r.state);continue}H({chars:b[0],extraSpacing:0});break;case a.OPS.nextLineShowText:if(!r.state.font){C.ensureStateFont(r.state);continue}T.carriageReturn(),H({chars:b[0],extraSpacing:0});break;case a.OPS.nextLineSetSpacingShowText:if(!r.state.font){C.ensureStateFont(r.state);continue}T.wordSpacing=b[0],T.charSpacing=b[1],T.carriageReturn(),H({chars:b[2],extraSpacing:0});break;case a.OPS.paintXObject:G(),k||(k=i.get("XObject")||o.Dict.empty);var w=b[0]instanceof o.Name,P=b[0].name;if(w&&j.getByName(P))break;return void m(new Promise((function(e,t){if(!w)throw new a.FormatError("XObject must be referred to by name.");let p=k.getRaw(P);if(p instanceof o.Ref){if(j.getByRef(p))return void e();if(C.globalImageCache.getData(p,C.pageIndex))return void e();p=S.fetch(p)}if(!(p instanceof g.BaseStream))throw new a.FormatError("XObject should be a stream");const f=p.dict.get("Subtype");if(!(f instanceof o.Name))throw new a.FormatError("XObject should have a Name subtype");if("Form"!==f.name)return j.set(P,p.dict.objId,!0),void e();const m=r.state.clone(),v=new B(m),y=p.dict.getArray("Matrix");Array.isArray(y)&&6===y.length&&v.transform(y),$();const b={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,l.enqueue(e,t)},get desiredSize(){return l.desiredSize},get ready(){return l.ready}};C.getTextContent({stream:p,task:n,resources:p.dict.get("Resources")||i,stateManager:v,includeMarkedContent:s,sink:b,seenStyles:c,viewBox:d,markedContentData:u,disableNormalization:h}).then((function(){b.enqueueInvoked||j.set(P,p.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof a.AbortException)){if(!C.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case a.OPS.setGState:if(w=b[0]instanceof o.Name,P=b[0].name,w&&I.getByName(P))break;return void m(new Promise((function(e,t){if(!w)throw new a.FormatError("GState must be referred to by name.");const n=i.get("ExtGState");if(!(n instanceof o.Dict))throw new a.FormatError("ExtGState should be a dictionary.");const r=n.get(P);if(!(r instanceof o.Dict))throw new a.FormatError("GState should be a dictionary.");const s=r.get("Font");if(!s)return I.set(P,r.objId,!0),void e();G(),T.fontName=null,T.fontSize=s[1],D(null,s[0]).then(e,t)})).catch((function(e){if(!(e instanceof a.AbortException)){if(!C.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case a.OPS.beginMarkedContent:G(),s&&(u.level++,p.items.push({type:"beginMarkedContent",tag:b[0]instanceof o.Name?b[0].name:null}));break;case a.OPS.beginMarkedContentProps:if(G(),s){u.level++;let e=null;b[1]instanceof o.Dict&&(e=b[1].get("MCID")),p.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?"".concat(C.idFactory.getPageObjId(),"_mc").concat(e):null,tag:b[0]instanceof o.Name?b[0].name:null})}break;case a.OPS.endMarkedContent:if(G(),s){if(0===u.level)break;u.level--,p.items.push({type:"endMarkedContent"})}break;case a.OPS.restore:!e||e.font===T.font&&e.fontSize===T.fontSize&&e.fontName===T.fontName||G()}if(p.items.length>=l.desiredSize){y=!0;break}}y?m(O):(G(),$(),t())})).catch((e=>{if(!(e instanceof a.AbortException)){if(this.options.ignoreErrors)return(0,a.warn)('getTextContent - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),G(),void $();throw e}}))}extractDataStructures(e,t,n){const i=this.xref;let r;const s=this.readToUnicode(n.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(n.composite){const t=e.get("CIDSystemInfo");t instanceof o.Dict&&(n.cidSystemInfo={registry:(0,a.stringToPDFString)(t.get("Registry")),ordering:(0,a.stringToPDFString)(t.get("Ordering")),supplement:t.get("Supplement")});try{const t=e.get("CIDToGIDMap");t instanceof g.BaseStream&&(r=t.getBytes())}catch(m){if(!this.options.ignoreErrors)throw m;(0,a.warn)('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(m,'".'))}}const d=[];let u,h=null;if(e.has("Encoding")){if(u=e.get("Encoding"),u instanceof o.Dict){if(h=u.get("BaseEncoding"),h=h instanceof o.Name?h.name:null,u.has("Differences")){const e=u.get("Differences");let t=0;for(const n of e){const e=i.fetchIfRef(n);if("number"===typeof e)t=e;else{if(!(e instanceof o.Name))throw new a.FormatError("Invalid entry in 'Differences' array: ".concat(e));d[t++]=e.name}}}}else if(u instanceof o.Name)h=u.name;else{const e="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new a.FormatError(e);(0,a.warn)(e)}"MacRomanEncoding"!==h&&"MacExpertEncoding"!==h&&"WinAnsiEncoding"!==h&&(h=null)}const p=!n.file||n.isInternalFont,f=(0,c.getSymbolsFonts)()[n.name];if(h&&p&&f&&(h=null),h)n.defaultEncoding=(0,l.getEncoding)(h);else{const e=!!(n.flags&x.FontFlags.Symbolic),t=!!(n.flags&x.FontFlags.Nonsymbolic);u=l.StandardEncoding,"TrueType"!==n.type||t||(u=l.WinAnsiEncoding),(e||f)&&(u=l.MacRomanEncoding,p&&(/Symbol/i.test(n.name)?u=l.SymbolSetEncoding:/Dingbats/i.test(n.name)?u=l.ZapfDingbatsEncoding:/Wingdings/i.test(n.name)&&(u=l.WinAnsiEncoding))),n.defaultEncoding=u}return n.differences=d,n.baseEncodingName=h,n.hasEncoding=!!h||d.length>0,n.dict=e,s.then((e=>(n.toUnicode=e,this.buildToUnicode(n)))).then((e=>(n.toUnicode=e,r&&(n.cidToGidMap=this.readCidToGidMap(r,e)),n)))}_simpleFontToUnicode(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(!e.composite,"Must be a simple font.");const n=[],i=e.defaultEncoding.slice(),r=e.baseEncodingName,o=e.differences;for(const a in o){const e=o[a];".notdef"!==e&&(i[a]=e)}const s=(0,C.getGlyphsUnicode)();for(const a in i){let o=i[a];if(""===o)continue;let c=s[o];if(void 0!==c){n[a]=String.fromCharCode(c);continue}let d=0;switch(o[0]){case"G":3===o.length&&(d=parseInt(o.substring(1),16));break;case"g":5===o.length&&(d=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){const n=o.substring(1);if(t){d=parseInt(n,16);break}if(d=+n,Number.isNaN(d)&&Number.isInteger(parseInt(n,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":c=(0,A.getUnicodeForGlyph)(o,s),-1!==c&&(d=c);break;default:switch(o){case"f_h":case"f_t":case"T_h":n[a]=o.replaceAll("_","");continue}}if(d>0&&d<=1114111&&Number.isInteger(d)){if(r&&d===+a){const e=(0,l.getEncoding)(r);if(e&&(o=e[a])){n[a]=String.fromCharCode(s[o]);continue}}n[a]=String.fromCodePoint(d)}}return n}async buildToUnicode(e){var t;if(e.hasIncludedToUnicodeMap=(null===(t=e.toUnicode)||void 0===t?void 0:t.length)>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new h.ToUnicodeMap(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof i.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const{registry:t,ordering:n}=e.cidSystemInfo,r=o.Name.get("".concat(t,"-").concat(n,"-UCS2")),s=await i.CMapFactory.create({encoding:r,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),l=[],c=[];return e.cMap.forEach((function(e,t){if(t>65535)throw new a.FormatError("Max size of CID is 65,535");const n=s.lookup(t);if(n){c.length=0;for(let e=0,t=n.length;e{if(e instanceof a.AbortException)return null;if(this.options.ignoreErrors)return(0,a.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(e,t){const n=[];for(let a=0,i=e.length;a>1;(0!==i||t.has(r))&&(n[r]=i)}return n}extractWidths(e,t,n){const a=this.xref;let i=[],r=0;const s=[];let l,c,d,u,h,p,f,m;if(n.composite){if(r=e.has("DW")?e.get("DW"):1e3,m=e.get("W"),m)for(c=0,d=m.length;c{if(r){const e=[];let t=f;for(const n of r)e[t++]=this.xref.fetchIfRef(n);n.widths=e}else n.widths=this.buildCharCodeToWidth(t.widths,n);return new s.Font(e,h,n)}))}r=new o.Dict(null),r.set("FontName",o.Name.get(p)),r.set("FontBBox",l.getArray("FontBBox")||[0,0,0,0])}let C=r.get("FontName"),S=l.get("BaseFont");"string"===typeof C&&(C=o.Name.get(C)),"string"===typeof S&&(S=o.Name.get(S));const A=null===(t=C)||void 0===t?void 0:t.name,k=null===(n=S)||void 0===n?void 0:n.name;if(b||A===k||((0,a.info)("The FontDescriptor's FontName is \"".concat(A,'" but ')+"should be the same as the Font's BaseFont \"".concat(k,'".')),A&&k&&(k.startsWith(A)||!(0,c.isKnownFontName)(A)&&(0,c.isKnownFontName)(k))&&(C=null)),C||(C=S),!(C instanceof o.Name))throw new a.FormatError("invalid font name");let j,I,F,T,P;try{j=r.get("FontFile","FontFile2","FontFile3")}catch(R){if(!this.options.ignoreErrors)throw R;(0,a.warn)('translateFont - fetching "'.concat(C.name,'" font file: "').concat(R,'".')),j=new v.NullStream}let E=!1,O=null,N=null;if(j){if(j.dict){const e=j.dict.get("Subtype");e instanceof o.Name&&(I=e.name),F=j.dict.get("Length1"),T=j.dict.get("Length2"),P=j.dict.get("Length3")}}else if(y){const e=(0,u.getXfaFontName)(C.name);e&&(y.fontFamily="".concat(y.fontFamily,"-PdfJS-XFA"),y.metrics=e.metrics||null,O=e.factors||null,j=await this.fetchStandardFontData(e.name),E=!!j,d=l=(0,u.getXfaFontDict)(C.name),h=!0)}else if(!b){const e=(0,c.getStandardFontName)(C.name);e&&(j=await this.fetchStandardFontData(e),E=!!j),!E&&this.options.useSystemFonts&&(N=(0,w.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,C.name,e))}if(_={type:p,name:C.name,subtype:I,file:j,length1:F,length2:T,length3:P,isInternalFont:E,loadedName:d.loadedName,composite:h,fixedPitch:!1,fontMatrix:l.getArray("FontMatrix")||a.FONT_IDENTITY_MATRIX,firstChar:f,lastChar:m,toUnicode:g,bbox:r.getArray("FontBBox")||l.getArray("FontBBox"),ascent:r.get("Ascent"),descent:r.get("Descent"),xHeight:r.get("XHeight")||0,capHeight:r.get("CapHeight")||0,flags:r.get("Flags"),italicAngle:r.get("ItalicAngle")||0,isType3Font:b,cssFontInfo:y,scaleFactors:O,systemFontInfo:N},h){const e=d.get("Encoding");e instanceof o.Name&&(_.cidEncoding=e.name);const t=await i.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});_.cMap=t,_.vertical=_.cMap.vertical}return this.extractDataStructures(l,d,_).then((e=>(this.extractWidths(l,r,e),new s.Font(C.name,j,e))))}static buildFontPaths(e,t,n,i){function r(t){const r="".concat(e.loadedName,"_path_").concat(t);try{if(e.renderer.hasBuiltPath(t))return;n.send("commonobj",[r,"FontPath",e.renderer.getPathJs(t)])}catch(o){if(i.ignoreErrors)return void(0,a.warn)("buildFontPaths - ignoring ".concat(r,' glyph: "').concat(o,'".'));throw o}}for(const a of t){r(a.fontChar);const e=a.accent;null!==e&&void 0!==e&&e.fontChar&&r(e.fontChar)}}static get fallbackFontDict(){const e=new o.Dict;return e.set("BaseFont",o.Name.get("Helvetica")),e.set("Type",o.Name.get("FallbackType")),e.set("Subtype",o.Name.get("FallbackType")),e.set("Encoding",o.Name.get("WinAnsiEncoding")),(0,a.shadow)(this,"fallbackFontDict",e)}}t.PartialEvaluator=D;class L{constructor(e){let{loadedName:t,font:n,dict:a,evaluatorOptions:i}=e;this.loadedName=t,this.font=n,this.dict=a,this._evaluatorOptions=i||T,this.type3Loaded=null,this.type3Dependencies=n.isType3Font?new Set:null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(e){this.font.data&&(this.font.disableFontFace=!0,D.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}loadType3Data(e,t,n){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const i=e.clone({ignoreErrors:!1});i.parsingType3Font=!0;const r=new o.RefSet(e.type3FontRefs);this.dict.objId&&!r.has(this.dict.objId)&&r.put(this.dict.objId),i.type3FontRefs=r;const s=this.font,l=this.type3Dependencies;let c=Promise.resolve();const d=this.dict.get("CharProcs"),u=this.dict.get("Resources")||t,h=Object.create(null),p=a.Util.normalizeRect(s.bbox||[0,0,0,0]),f=p[2]-p[0],m=p[3]-p[1],v=Math.hypot(f,m);for(const o of d.getKeys())c=c.then((()=>{const e=d.get(o),t=new I.OperatorList;return i.getOperatorList({stream:e,task:n,resources:u,operatorList:t}).then((()=>{t.fnArray[0]===a.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(t,v),h[o]=t.getIR();for(const e of t.dependencies)l.add(e)})).catch((function(e){(0,a.warn)('Type3 font resource "'.concat(o,'" is not available.'));const t=new I.OperatorList;h[o]=t.getIR()}))}));return this.type3Loaded=c.then((()=>{s.charProcOperatorList=h,this._bbox&&(s.isCharBBox=!0,s.bbox=this._bbox)})),this.type3Loaded}_removeType3ColorOperators(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;const n=a.Util.normalizeRect(e.argsArray[0].slice(2)),i=n[2]-n[0],r=n[3]-n[1],o=Math.hypot(i,r);0===i||0===r?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(o/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],n[0]),this._bbox[1]=Math.min(this._bbox[1],n[1]),this._bbox[2]=Math.max(this._bbox[2],n[2]),this._bbox[3]=Math.max(this._bbox[3],n[3]));let s=0,l=e.length;for(;s0&&void 0!==arguments[0]?arguments[0]:new z;this.state=e,this.stateStack=[]}save(){const e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){const e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=a.Util.transform(this.state.ctm,e)}}class W{constructor(){this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.textMatrix=a.IDENTITY_MATRIX.slice(),this.textLineMatrix=a.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(e,t,n,a,i,r){const o=this.textMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=a,o[4]=i,o[5]=r}setTextLineMatrix(e,t,n,a,i,r){const o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=a,o[4]=i,o[5]=r}translateTextMatrix(e,t){const n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}translateTextLineMatrix(e,t){const n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}class z{constructor(){this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=a.TextRenderingMode.FILL,this.fillColorSpace=b.ColorSpace.singletons.gray,this.strokeColorSpace=b.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class U{static get opMap(){return(0,a.shadow)(this,"opMap",{w:{id:a.OPS.setLineWidth,numArgs:1,variableArgs:!1},J:{id:a.OPS.setLineCap,numArgs:1,variableArgs:!1},j:{id:a.OPS.setLineJoin,numArgs:1,variableArgs:!1},M:{id:a.OPS.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:a.OPS.setDash,numArgs:2,variableArgs:!1},ri:{id:a.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:a.OPS.setFlatness,numArgs:1,variableArgs:!1},gs:{id:a.OPS.setGState,numArgs:1,variableArgs:!1},q:{id:a.OPS.save,numArgs:0,variableArgs:!1},Q:{id:a.OPS.restore,numArgs:0,variableArgs:!1},cm:{id:a.OPS.transform,numArgs:6,variableArgs:!1},m:{id:a.OPS.moveTo,numArgs:2,variableArgs:!1},l:{id:a.OPS.lineTo,numArgs:2,variableArgs:!1},c:{id:a.OPS.curveTo,numArgs:6,variableArgs:!1},v:{id:a.OPS.curveTo2,numArgs:4,variableArgs:!1},y:{id:a.OPS.curveTo3,numArgs:4,variableArgs:!1},h:{id:a.OPS.closePath,numArgs:0,variableArgs:!1},re:{id:a.OPS.rectangle,numArgs:4,variableArgs:!1},S:{id:a.OPS.stroke,numArgs:0,variableArgs:!1},s:{id:a.OPS.closeStroke,numArgs:0,variableArgs:!1},f:{id:a.OPS.fill,numArgs:0,variableArgs:!1},F:{id:a.OPS.fill,numArgs:0,variableArgs:!1},"f*":{id:a.OPS.eoFill,numArgs:0,variableArgs:!1},B:{id:a.OPS.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:a.OPS.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:a.OPS.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:a.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:a.OPS.endPath,numArgs:0,variableArgs:!1},W:{id:a.OPS.clip,numArgs:0,variableArgs:!1},"W*":{id:a.OPS.eoClip,numArgs:0,variableArgs:!1},BT:{id:a.OPS.beginText,numArgs:0,variableArgs:!1},ET:{id:a.OPS.endText,numArgs:0,variableArgs:!1},Tc:{id:a.OPS.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:a.OPS.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:a.OPS.setHScale,numArgs:1,variableArgs:!1},TL:{id:a.OPS.setLeading,numArgs:1,variableArgs:!1},Tf:{id:a.OPS.setFont,numArgs:2,variableArgs:!1},Tr:{id:a.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:a.OPS.setTextRise,numArgs:1,variableArgs:!1},Td:{id:a.OPS.moveText,numArgs:2,variableArgs:!1},TD:{id:a.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:a.OPS.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:a.OPS.nextLine,numArgs:0,variableArgs:!1},Tj:{id:a.OPS.showText,numArgs:1,variableArgs:!1},TJ:{id:a.OPS.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:a.OPS.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:a.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:a.OPS.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:a.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:a.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:a.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:a.OPS.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:a.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:a.OPS.setFillColor,numArgs:4,variableArgs:!0},scn:{id:a.OPS.setFillColorN,numArgs:33,variableArgs:!0},G:{id:a.OPS.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:a.OPS.setFillGray,numArgs:1,variableArgs:!1},RG:{id:a.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:a.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:a.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:a.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:a.OPS.shadingFill,numArgs:1,variableArgs:!1},BI:{id:a.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:a.OPS.beginImageData,numArgs:0,variableArgs:!1},EI:{id:a.OPS.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:a.OPS.paintXObject,numArgs:1,variableArgs:!1},MP:{id:a.OPS.markPoint,numArgs:1,variableArgs:!1},DP:{id:a.OPS.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:a.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:a.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:a.OPS.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:a.OPS.beginCompat,numArgs:0,variableArgs:!1},EX:{id:a.OPS.endCompat,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null})}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new B;this.parser=new f.Parser({lexer:new f.Lexer(e,U.opMap),xref:t}),this.stateManager=n,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let t=e.args;for(;;){const n=this.parser.getObj();if(n instanceof o.Cmd){const i=n.cmd,r=U.opMap[i];if(!r){(0,a.warn)('Unknown command "'.concat(i,'".'));continue}const o=r.id,s=r.numArgs;let l=null!==t?t.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=o>=a.OPS.moveTo&&o<=a.OPS.endPath,r.variableArgs)l>s&&(0,a.info)("Command ".concat(i,": expected [0, ").concat(s,"] args, ")+"but received ".concat(l," args."));else{if(l!==s){const e=this.nonProcessedArgs;for(;l>s;)e.push(t.shift()),l--;for(;lU.MAX_INVALID_PATH_OPS)throw new a.FormatError("Invalid ".concat(e));(0,a.warn)("Skipping ".concat(e)),null!==t&&(t.length=0);continue}}return this.preprocessCommand(o,t),e.fn=o,e.args=t,!0}if(n===o.EOF)return!1;if(null!==n&&(null===t&&(t=[]),t.push(n),t.length>33))throw new a.FormatError("Too many arguments")}}preprocessCommand(e,t){switch(0|e){case a.OPS.save:this.stateManager.save();break;case a.OPS.restore:this.stateManager.restore();break;case a.OPS.transform:this.stateManager.transform(t)}}}r(U,"MAX_INVALID_PATH_OPS",10),t.EvaluatorPreprocessor=U},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var a=n(2),i=n(4),r=n(5),o=n(15),s=n(16),l=n(3),c=n(8);const d=["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"],u=2**24-1;class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>u)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>u)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const a=n.length-1;for(;e<=t;){this._map[e++]=n;const t=n.charCodeAt(a)+1;n=t>255?n.substring(0,a-1)+String.fromCharCode(n.charCodeAt(a-1)+1)+"\0":n.substring(0,a)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,n){if(t-e>u)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const a=n.length;let i=0;for(;e<=t&&i>>0;const o=i[r];for(let e=0,t=o.length;e=t&&a<=i)return n.charcode=a,void(n.length=r+1)}}n.charcode=0,n.length=1}getCharCodeLength(e){const t=this.codespaceRanges;for(let n=0,a=t.length;n=i&&e<=r)return n+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}t.CMap=h;class p extends h{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){(0,a.unreachable)("should not call mapCidRange")}mapBfRange(e,t,n){(0,a.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,n){(0,a.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,a.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){(0,a.unreachable)("should not access .isIdentityCMap")}}function f(e){let t=0;for(let n=0;n>>0}function m(e){if("string"!==typeof e)throw new a.FormatError("Malformed CMap: expected string.")}function v(e){if(!Number.isInteger(e))throw new a.FormatError("Malformed CMap: expected int.")}function g(e,t){for(;;){let n=t.getObj();if(n===i.EOF)break;if((0,i.isCmd)(n,"endbfchar"))return;m(n);const a=f(n);n=t.getObj(),m(n);const r=n;e.mapOne(a,r)}}function y(e,t){for(;;){let n=t.getObj();if(n===i.EOF)break;if((0,i.isCmd)(n,"endbfrange"))return;m(n);const a=f(n);n=t.getObj(),m(n);const r=f(n);if(n=t.getObj(),Number.isInteger(n)||"string"===typeof n){const t=Number.isInteger(n)?String.fromCharCode(n):n;e.mapBfRange(a,r,t)}else{if(!(0,i.isCmd)(n,"["))break;{n=t.getObj();const o=[];for(;!(0,i.isCmd)(n,"]")&&n!==i.EOF;)o.push(n),n=t.getObj();e.mapBfRangeToArray(a,r,o)}}}throw new a.FormatError("Invalid bf range.")}function b(e,t){for(;;){let n=t.getObj();if(n===i.EOF)break;if((0,i.isCmd)(n,"endcidchar"))return;m(n);const a=f(n);n=t.getObj(),v(n);const r=n;e.mapOne(a,r)}}function _(e,t){for(;;){let n=t.getObj();if(n===i.EOF)break;if((0,i.isCmd)(n,"endcidrange"))return;m(n);const a=f(n);n=t.getObj(),m(n);const r=f(n);n=t.getObj(),v(n);const o=n;e.mapCidRange(a,r,o)}}function x(e,t){for(;;){let n=t.getObj();if(n===i.EOF)break;if((0,i.isCmd)(n,"endcodespacerange"))return;if("string"!==typeof n)break;const a=f(n);if(n=t.getObj(),"string"!==typeof n)break;const r=f(n);e.addCodespaceRange(n.length,a,r)}throw new a.FormatError("Invalid codespace range.")}function w(e,t){const n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function C(e,t){const n=t.getObj();n instanceof i.Name&&(e.name=n.name)}async function S(e,t,n,r){let o,s;e:for(;;)try{const n=t.getObj();if(n===i.EOF)break;if(n instanceof i.Name)"WMode"===n.name?w(e,t):"CMapName"===n.name&&C(e,t),o=n;else if(n instanceof i.Cmd)switch(n.cmd){case"endcmap":break e;case"usecmap":o instanceof i.Name&&(s=o.name);break;case"begincodespacerange":x(e,t);break;case"beginbfchar":g(e,t);break;case"begincidchar":b(e,t);break;case"beginbfrange":y(e,t);break;case"begincidrange":_(e,t)}}catch(c){if(c instanceof l.MissingDataException)throw c;(0,a.warn)("Invalid cMap data: "+c);continue}return!r&&s&&(r=s),r?A(e,n,r):e}async function A(e,t,n){if(e.useCMap=await k(n,t),0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges;for(let n=0;nA(r,t,e)));if(i===a.CMapCompressionType.NONE){const e=new s.Lexer(new c.Stream(n));return S(r,e,t,null)}throw new Error('Invalid CMap "compressionType" value: '.concat(i))}t.IdentityCMap=p,t.CMapFactory=class{static async create(e){let{encoding:t,fetchBuiltInCMap:n,useCMap:a}=e;if(t instanceof i.Name)return k(t.name,n);if(t instanceof r.BaseStream){const e=await S(new h,new s.Lexer(t),n,a);return e.isIdentityCMap?k(e.name,n):e}throw new Error("Encoding required.")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryCMapReader=void 0;var a=n(2);function i(e,t){let n=0;for(let a=0;a<=t;a++)n=n<<8|e[a];return n>>>0}function r(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(...e.subarray(0,t+1))}function o(e,t,n){let a=0;for(let i=n;i>=0;i--)a+=e[i]+t[i],e[i]=255&a,a>>=8}function s(e,t){let n=1;for(let a=t;a>=0&&n>0;a--)n+=e[a],e[a]=255&n,n>>=8}const l=16;class c{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{const n=this.readByte();if(n<0)throw new a.FormatError("unexpected EOF in bcmap");e=!(128&n),t=t<<7|127&n}while(!e);return t}readSigned(){const e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){let n;const i=this.tmpBuf;let r=0;do{const e=this.readByte();if(e<0)throw new a.FormatError("unexpected EOF in bcmap");n=!(128&e),i[r++]=127&e}while(!n);let o=t,s=0,l=0;for(;o>=0;){for(;l<8&&i.length>0;)s|=i[--r]<>=8,l-=8}}readHexSigned(e,t){this.readHexNumber(e,t);const n=1&e[t]?255:0;let a=0;for(let i=0;i<=t;i++)a=(1&a)<<8|e[i],e[i]=a>>1^n}readString(){const e=this.readNumber(),t=new Array(e);for(let n=0;n=0;){const e=y>>5;if(7===e){switch(31&y){case 0:a.readString();break;case 1:u=a.readString()}continue}const n=!!(16&y),c=15&y;if(c+1>l)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const d=1,b=a.readNumber();switch(e){case 0:a.readHex(h,c),a.readHexNumber(p,c),o(p,h,c),t.addCodespaceRange(c+1,i(h,c),i(p,c));for(let e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var a=n(2),i=n(4),r=n(3),o=n(8),s=n(17),l=n(19),c=n(20),d=n(22),u=n(23),h=n(26),p=n(29),f=n(31),m=n(32),v=n(33);class g{constructor(e){let{lexer:t,xref:n,allowStreams:a=!1,recoveryMode:i=!1}=e;this.lexer=t,this.xref=n,this.allowStreams=a,this.recoveryMode=i,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof i.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof r.MissingDataException)throw e;return!1}}getObj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.buf1;if(this.shift(),t instanceof i.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const n=[];for(;!(0,i.isCmd)(this.buf1,"]")&&this.buf1!==i.EOF;)n.push(this.getObj(e));if(this.buf1===i.EOF){if(this.recoveryMode)return n;throw new r.ParserEOFException("End of file inside array.")}return this.shift(),n;case"<<":const o=new i.Dict(this.xref);for(;!(0,i.isCmd)(this.buf1,">>")&&this.buf1!==i.EOF;){if(!(this.buf1 instanceof i.Name)){(0,a.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const t=this.buf1.name;if(this.shift(),this.buf1===i.EOF)break;o.set(t,this.getObj(e))}if(this.buf1===i.EOF){if(this.recoveryMode)return o;throw new r.ParserEOFException("End of file inside dictionary.")}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(o,e):o:(this.shift(),o);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){const e=i.Ref.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return"string"===typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const{knownCommands:t}=this.lexer,n=e.pos;let s,l,c=0;for(;-1!==(s=e.getByte());)if(0===c)c=69===s?1:0;else if(1===c)c=73===s?2:0;else if(32===s||10===s||13===s){l=e.pos;const n=e.peekBytes(15),r=n.length;if(0===r)break;for(let e=0;e127)){c=0;break}if(2!==c)continue;if(!t){(0,a.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const d=new _(new o.Stream(n.slice()),t);d._hexStringWarn=()=>{};let u=0;for(;;){const e=d.getObj();if(e===i.EOF){c=0;break}if(e instanceof i.Cmd){const n=t[e.cmd];if(!n){c=0;break}if(n.variableArgs?u<=n.numArgs:u===n.numArgs)break;u=0}else u++}if(2===c)break}else c=0;-1===s&&((0,a.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),l&&((0,a.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-l))));let d=4;return e.skip(-d),s=e.peekByte(),e.skip(d),(0,r.isWhiteSpace)(s)||d--,e.pos-d-n}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let n,i,r=!1;for(;-1!==(n=e.getByte());)if(255===n){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:r=!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:i=e.getUint16(),i>2?e.skip(i-2):e.skip(-2)}if(r)break}const o=e.pos-t;return-1===n?((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)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte());)if(126===n){const t=e.pos;for(n=e.peekByte();(0,r.isWhiteSpace)(n);)e.skip(),n=e.peekByte();if(62===n){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const i=e.pos-t;return-1===n?((0,a.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte())&&62!==n;);const i=e.pos-t;return-1===n?((0,a.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}inlineStreamSkipEI(e){let t,n=0;for(;-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}makeInlineImage(e){const t=this.lexer,n=t.stream,r=Object.create(null);let o;for(;!(0,i.isCmd)(this.buf1,"ID")&&this.buf1!==i.EOF;){if(!(this.buf1 instanceof i.Name))throw new a.FormatError("Dictionary key must be a name object");const t=this.buf1.name;if(this.shift(),this.buf1===i.EOF)break;r[t]=this.getObj(e)}-1!==t.beginInlineImagePos&&(o=n.pos-t.beginInlineImagePos);const s=this.xref.fetchIfRef(r.F||r.Filter);let l;if(s instanceof i.Name)l=s.name;else if(Array.isArray(s)){const e=this.xref.fetchIfRef(s[0]);e instanceof i.Name&&(l=e.name)}const c=n.pos;let d,u;switch(l){case"DCT":case"DCTDecode":d=this.findDCTDecodeInlineStreamEnd(n);break;case"A85":case"ASCII85Decode":d=this.findASCII85DecodeInlineStreamEnd(n);break;case"AHx":case"ASCIIHexDecode":d=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:d=this.findDefaultInlineStreamEnd(n)}if(d<1e3&&o>0){const e=n.pos;n.pos=t.beginInlineImagePos,u=function(e){const t=[],n=e.length;let a=0;for(;a=a)return n.pos+=o,n.pos-e;o++}n.pos+=r}return-1}makeStream(e,t){const n=this.lexer;let o=n.stream;n.skipToNextLine();const s=o.pos-1;let l=e.get("Length");if(Number.isInteger(l)||((0,a.info)('Bad length "'.concat(l&&l.toString(),'" in stream.')),l=0),o.pos=s+l,n.nextChar(),this.tryShift()&&(0,i.isCmd)(this.buf2,"endstream"))this.shift();else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(s,e);if(t<0){const n=1;for(let i=1;i<=n;i++){const n=e.length-i,l=e.slice(0,n),c=this._findStreamLength(s,l);if(c>=0){const e=o.peekBytes(n+1)[n];if(!(0,r.isWhiteSpace)(e))break;(0,a.info)('Found "'.concat((0,a.bytesToString)(l),'" when ')+"searching for endstream command."),t=c;break}}if(t<0)throw new a.FormatError("Missing endstream command.")}l=t,n.nextChar(),this.shift(),this.shift()}return this.shift(),o=o.makeSubStream(s,l,e),t&&(o=t.createStream(o,l)),o=this.filter(o,e,l),o.dict=e,o}filter(e,t,n){let r=t.get("F","Filter"),o=t.get("DP","DecodeParms");if(r instanceof i.Name)return Array.isArray(o)&&(0,a.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,r.name,n,o);let s=n;if(Array.isArray(r)){const t=r,n=o;for(let l=0,c=t.length;l=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class _{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,i=1;if(45===e?(i=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(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){const t="Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")");if((0,r.isWhiteSpace)(e)||-1===e)return(0,a.info)('Lexer.getNumber - "'.concat(t,'".')),0;throw new a.FormatError(t)}let o=e-48,s=0,l=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const a=e-48;t?s=10*s+a:(0!==n&&(n*=10),o=10*o+a)}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(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==n&&(o/=n),t&&(o*=10**(l*s)),i*o}getString(){let e=1,t=!1;const n=this.strBuf;n.length=0;let i=this.nextChar();for(;;){let r=!1;switch(0|i){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(i=this.nextChar(),i){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(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&i;i=this.nextChar(),r=!0,i>=48&&i<=55&&(e=(e<<3)+(15&i),i=this.nextChar(),i>=48&&i<=55&&(r=!1,e=(e<<3)+(15&i))),n.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(i))}break;default:n.push(String.fromCharCode(i))}if(t)break;r||(i=this.nextChar())}return n.join("")}getName(){let e,t;const n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!y[e];)if(35===e){if(e=this.nextChar(),y[e]){(0,a.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const i=b(e);if(-1!==i){t=e,e=this.nextChar();const r=b(e);if(-1===r){if((0,a.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),n.push("#",String.fromCharCode(t)),y[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(i<<4|r))}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(""))}_hexStringWarn(e){5!==this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,a.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,a.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t,n,i=this.currentChar,r=!0;for(this._hexStringNumWarn=0;;){if(i<0){(0,a.warn)("Unterminated hex string");break}if(62===i){this.nextChar();break}if(1!==y[i]){if(r){if(t=b(i),-1===t){this._hexStringWarn(i),i=this.nextChar();continue}}else{if(n=b(i),-1===n){this._hexStringWarn(i),i=this.nextChar();continue}e.push(String.fromCharCode(t<<4|n))}r=!r,i=this.nextChar()}else i=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==y[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 t=this.nextChar(),60===t?(this.nextChar(),i.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(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))}let n=String.fromCharCode(t);if(t<32||t>127){const e=this.peekChar();if(e>=32&&e<=127)return this.nextChar(),i.Cmd.get(n)}const r=this.knownCommands;let o=void 0!==(null===r||void 0===r?void 0:r[n]);for(;(t=this.nextChar())>=0&&!y[t];){const e=n+String.fromCharCode(t);if(o&&void 0===r[e])break;if(128===n.length)throw new a.FormatError("Command token too long: ".concat(n.length));n=e,o=void 0!==(null===r||void 0===r?void 0:r[n])}return"true"===n||"false"!==n&&("null"===n?null:("BI"===n&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(n)))}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=_,t.Linearization=class{static create(e){function t(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=e.get(t);if(Number.isInteger(a)&&(n?a>=0:a>0))return a;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}const n=new g({lexer:new _(e),xref:null}),a=n.getObj(),r=n.getObj(),o=n.getObj(),s=n.getObj();let l,c;if(!(Number.isInteger(a)&&Number.isInteger(r)&&(0,i.isCmd)(o,"obj")&&s instanceof i.Dict&&"number"===typeof(l=s.get("Linearized"))&&l>0))return null;if((c=t(s,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:c,hints:function(e){const t=e.get("H");let n;if(Array.isArray(t)&&(2===(n=t.length)||4===n)){for(let e=0;e0))throw new Error("Hint (".concat(e,") in the linearization dictionary is invalid."))}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(s),objectNumberFirst:t(s,"O"),endFirst:t(s,"E"),numPages:t(s,"N"),mainXRefEntriesOffset:t(s,"T"),pageFirst:s.has("P")?t(s,"P",!0):0}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var a=n(18),i=n(3);class r extends a.DecodeStream{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const e=this.str;let t=e.getByte();for(;(0,i.isWhiteSpace)(t);)t=e.getByte();if(-1===t||126===t)return void(this.eof=!0);const n=this.bufferLength;let a,r;if(122===t){for(a=this.ensureBuffer(n+4),r=0;r<4;++r)a[n+r]=0;this.bufferLength+=4}else{const o=this.input;for(o[0]=t,r=1;r<5;++r){for(t=e.getByte();(0,i.isWhiteSpace)(t);)t=e.getByte();if(o[r]=t,-1===t||126===t)break}if(a=this.ensureBuffer(n+r-1),this.bufferLength+=r-1,r<5){for(;r<5;++r)o[r]=117;this.eof=!0}let s=0;for(r=0;r<5;++r)s=85*s+(o[r]-33);for(r=3;r>=0;--r)a[n+r]=255&s,s>>=8}}}t.Ascii85Stream=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var a=n(5),i=n(8);const r=new Uint8Array(0);class o extends a.BaseStream{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=r,this.minBufferLength=512,e)for(;this.minBufferLengtha&&(n=a)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(t,n)}reset(){this.pos=0}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else{const n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock()}return new i.Stream(this.buffer,e,t,n)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=o,t.StreamsSequenceStream=class extends o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0;for(const a of e)n+=a instanceof o?a._rawMinBufferLength:a.length;super(n),this.streams=e,this._onError=t}readBlock(){const e=this.streams;if(0===e.length)return void(this.eof=!0);const t=e.shift();let n;try{n=t.getBytes()}catch(o){var a;if(this._onError)return void this._onError(o,null===(a=t.dict)||void 0===a?void 0:a.objId);throw o}const i=this.bufferLength,r=i+n.length;this.ensureBuffer(r).set(n,i),this.bufferLength=r}getBaseStreams(){const e=[];for(const t of this.streams){const n=t.getBaseStreams();n&&e.push(...n)}return e.length>0?e:null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var a=n(18);class i extends a.DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length)return void(this.eof=!0);const t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t);let a=this.bufferLength,i=this.firstDigit;for(const r of e){let e;if(r>=48&&r<=57)e=15&r;else{if(!(r>=65&&r<=70||r>=97&&r<=102)){if(62===r){this.eof=!0;break}continue}e=9+(15&r)}i<0?i=e:(n[a++]=i<<4|e,i=-1)}i>=0&&this.eof&&(n[a++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=a}}t.AsciiHexStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var a=n(21),i=n(18),r=n(4);class o extends i.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,n instanceof r.Dict||(n=r.Dict.empty);const i={next:()=>e.getByte()};this.ccittFaxDecoder=new a.CCITTFaxDecoder(i,{K:n.get("K"),EndOfLine:n.get("EndOfLine"),EncodedByteAlign:n.get("EncodedByteAlign"),Columns:n.get("Columns"),Rows:n.get("Rows"),EndOfBlock:n.get("EndOfBlock"),BlackIs1:n.get("BlackIs1")})}readBlock(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var a=n(2);const i=-1,r=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],o=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],s=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],l=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],c=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],d=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];t.CCITTFaxDecoder=class{constructor(e){var t;let n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!==typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');for(this.source=e,this.eof=!1,this.encoding=a.K||0,this.eoline=a.EndOfLine||!1,this.byteAlign=a.EncodedByteAlign||!1,this.columns=a.Columns||1728,this.rows=a.Rows||0,this.eoblock=null===(t=a.EndOfBlock)||void 0===t||t,this.black=a.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))}readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,n=this.columns;let r,o,s,l,c;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let s,c,d;if(this.err=!1,this.nextLine2D){for(l=0;t[l]=64);do{c+=d=this._getWhiteCode()}while(d>=64)}else{do{s+=d=this._getWhiteCode()}while(d>=64);do{c+=d=this._getBlackCode()}while(d>=64)}for(this._addPixels(t[this.codingPos]+s,o),t[this.codingPos]0?--r:++r;e[r]<=t[this.codingPos]&&e[r]0?--r:++r;e[r]<=t[this.codingPos]&&e[r]0?--r:++r;e[r]<=t[this.codingPos]&&e[r]=64);else do{s+=d=this._getWhiteCode()}while(d>=64);this._addPixels(t[this.codingPos]+s,o),o^=1}let u=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(s=this._lookBits(12),this.eoline)for(;s!==i&&1!==s;)this._eatBits(1),s=this._lookBits(12);else for(;0===s;)this._eatBits(1),s=this._lookBits(12);1===s?(this._eatBits(12),u=!0):s===i&&(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&&u&&this.byteAlign){if(s=this._lookBits(12),1===s){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(l=0;l<4;++l)s=this._lookBits(12),1!==s&&(0,a.info)("bad rtc code: "+s),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(s=this._lookBits(13),s===i)return this.eof=!0,-1;if(s>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&s))}this.outputBits=t[0]>0?t[this.codingPos=0]:t[this.codingPos=1],this.row++}if(this.outputBits>=8)c=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&t[this.codingPos]s?(c<<=s,1&this.codingPos||(c|=255>>8-s),this.outputBits-=s,s=0):(c<<=this.outputBits,1&this.codingPos||(c|=255>>8-this.outputBits),s-=this.outputBits,this.outputBits=0,t[this.codingPos]0&&(c<<=s,s=0))}while(s)}return this.black&&(c^=255),c}_addPixels(e,t){const n=this.codingLine;let i=this.codingPos;e>n[i]&&(e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e),this.codingPos=i}_addPixelsNeg(e,t){const n=this.codingLine;let i=this.codingPos;if(e>n[i])e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e;else if(e0&&e=r){const t=n[e-r];if(t[0]===o)return this._eatBits(o),[!0,t[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){var n;if(t=this._lookBits(7),e=r[t],(null===(n=e)||void 0===n?void 0:n[0])>0)return this._eatBits(e[0]),e[1]}else{const e=this._findTableCode(1,7,r);if(e[0]&&e[2])return e[1]}return(0,a.info)("Bad two dim code"),i}_getWhiteCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(12),t===i)return 1;if(e=t>>5===0?o[t]:s[t>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,s);if(e[0])return e[1];if(e=this._findTableCode(11,12,o),e[0])return e[1]}return(0,a.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let e,t;if(this.eoblock){if(e=this._lookBits(13),e===i)return 1;if(t=e>>7===0?l[e]:e>>9===0&&e>>7!==0?c[(e>>1)-64]:d[e>>7],t[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,d);if(e[0])return e[1];if(e=this._findTableCode(7,12,c,64),e[0])return e[1];if(e=this._findTableCode(10,13,l),e[0])return e[1]}return(0,a.info)("bad black code"),this._eatBits(1),1}_lookBits(e){let t;for(;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var a=n(18),i=n(2);const r=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),s=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),l=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],c=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class d extends a.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict;const n=e.getByte(),a=e.getByte();if(-1===n||-1===a)throw new i.FormatError("Invalid header in flate stream: ".concat(n,", ").concat(a));if(8!==(15&n))throw new i.FormatError("Unknown compression method in flate stream: ".concat(n,", ").concat(a));if(((n<<8)+a)%31!==0)throw new i.FormatError("Bad FCHECK in flate stream: ".concat(n,", ").concat(a));if(32&a)throw new i.FormatError("FDICT bit set in flate stream: ".concat(n,", ").concat(a));this.codeSize=0,this.codeBuf=0}getBits(e){const t=this.str;let n,a=this.codeSize,r=this.codeBuf;for(;a>e,this.codeSize=a-=e,n}getCode(e){const t=this.str,n=e[0],a=e[1];let r,o=this.codeSize,s=this.codeBuf;for(;o>16,d=65535&l;if(c<1||o>c,this.codeSize=o-c,d}generateHuffmanTable(e){const t=e.length;let n,a=0;for(n=0;na&&(a=e[n]);const i=1<>=1;for(n=e;n>=1,0===u){let t;if(-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");let a=t;if(-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");if(a|=t<<8,-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");let r=t;if(-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");if(r|=t<<8,r!==(65535&~a)&&(0!==a||0!==r))throw new i.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const o=this.bufferLength,s=o+a;if(e=this.ensureBuffer(s),this.bufferLength=s,0===a)-1===n.peekByte()&&(this.eof=!0);else{const t=n.getBytes(a);e.set(t,o),t.length0;)u[s++]=f}a=this.generateHuffmanTable(u.subarray(0,e)),d=this.generateHuffmanTable(u.subarray(e,c))}}e=this.buffer;let h=e?e.length:0,p=this.bufferLength;for(;;){let n=this.getCode(a);if(n<256){p+1>=h&&(e=this.ensureBuffer(p+1),h=e.length),e[p++]=n;continue}if(256===n)return void(this.bufferLength=p);n-=257,n=o[n];let i=n>>16;i>0&&(i=this.getBits(i)),t=(65535&n)+i,n=this.getCode(d),n=s[n],i=n>>16,i>0&&(i=this.getBits(i));const r=(65535&n)+i;p+t>=h&&(e=this.ensureBuffer(p+t),h=e.length);for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var a=n(5),i=n(18),r=n(4),o=n(24),s=n(2);class l extends i.DecodeStream{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new o.Jbig2Image,t=[];if(this.params instanceof r.Dict){const e=this.params.get("JBIG2Globals");if(e instanceof a.BaseStream){const n=e.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const n=e.parseChunks(t),i=n.length;for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var a=n(2),i=n(3),r=n(25),o=n(21);class s extends a.BaseException{constructor(e){super("JBIG2 error: ".concat(e),"Jbig2Error")}}class l{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class c{constructor(e,t,n){this.data=e,this.start=t,this.end=n}get decoder(){const e=new r.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,"decoder",e)}get contextCache(){const e=new l;return(0,a.shadow)(this,"contextCache",e)}}const d=2**31-1,u=-(2**31);function h(e,t,n){const a=e.getContexts(t);let i=1;function r(e){let t=0;for(let r=0;r>>0}const o=r(1),s=r(1)?r(1)?r(1)?r(1)?r(1)?r(32)+4436:r(12)+340:r(8)+84:r(6)+20:r(4)+4:r(2);let l;return 0===o?l=s:s>0&&(l=-s),l>=u&&l<=d?l:null}function p(e,t,n){const a=e.getContexts("IAID");let i=1;for(let r=0;r=k&&R=j)for(U=U<<1&y,v=0;v=0&&L=0&&(B=P[M][L],B&&(U|=B<=e?l<<=1:l=l<<1|S[o][s];for(f=0;f=w||s<0||s>=x?l<<=1:l=l<<1|a[o][s];const c=A.readBit(k,l);t[n]=c}}return S}function x(e,t,n,a,i,r,o,l,c,d,u,f,m,v,g,y,b,x,w){if(e&&t)throw new s("refinement with Huffman is not supported");const C=[];let S,A;for(S=0;S1&&(i=e?w.readBits(x):h(j,"IAIT",k));const r=o*I+i,F=e?v.symbolIDTable.decode(w):p(j,k,c),T=t&&(e?w.readBit():h(j,"IARI",k));let P=l[F],E=P[0].length,O=P.length;if(T){const e=h(j,"IARDW",k),t=h(j,"IARDH",k);E+=e,O+=t,P=_(E,O,g,P,(e>>1)+h(j,"IARDX",k),(t>>1)+h(j,"IARDY",k),!1,y,b)}const N=r-(1&f?0:O-1),R=a-(2&f?E-1:0);let M,D,L;if(d){for(M=0;M>5&7;const d=[31&l];let u=t+6;if(7===l){c=536870911&(0,i.readUint32)(e,u-1),u+=3;let t=c+7>>3;for(d[0]=e[u++];--t>0;)d.push(e[u++])}else if(5===l||6===l)throw new s("invalid referred-to flags");n.retainBits=d;let h=4;n.number<=256?h=1:n.number<=65536&&(h=2);const p=[];let m,v;for(m=0;m>>24&255,r[3]=t.height>>16&255,r[4]=t.height>>8&255,r[5]=255&t.height,m=u,v=e.length;m>2&3,e.huffmanDWSelector=t>>4&3,e.bitmapSizeSelector=t>>6&1,e.aggregationInstancesSelector=t>>7&1,e.bitmapCodingContextUsed=!!(256&t),e.bitmapCodingContextRetained=!!(512&t),e.template=t>>10&3,e.refinementTemplate=t>>12&1,u+=2,!e.huffman){for(d=0===e.template?4:1,l=[],c=0;c>2&3,h.stripSize=1<>4&3,h.transposed=!!(64&p),h.combinationOperator=p>>7&3,h.defaultPixelValue=p>>9&1,h.dsOffset=p<<17>>27,h.refinementTemplate=p>>15&1,h.huffman){const e=(0,i.readUint16)(a,u);u+=2,h.huffmanFS=3&e,h.huffmanDS=e>>2&3,h.huffmanDT=e>>4&3,h.huffmanRefinementDW=e>>6&3,h.huffmanRefinementDH=e>>8&3,h.huffmanRefinementDX=e>>10&3,h.huffmanRefinementDY=e>>12&3,h.huffmanRefinementSizeSelector=!!(16384&e)}if(h.refinement&&!h.refinementTemplate){for(l=[],c=0;c<2;c++)l.push({x:(0,i.readInt8)(a,u),y:(0,i.readInt8)(a,u+1)}),u+=2;h.refinementAt=l}h.numberOfSymbolInstances=(0,i.readUint32)(a,u),u+=4,o=[h,n.referredTo,a,u,r];break;case 16:const f={},m=a[u++];f.mmr=!!(1&m),f.template=m>>1&3,f.patternWidth=a[u++],f.patternHeight=a[u++],f.maxPatternIndex=(0,i.readUint32)(a,u),u+=4,o=[f,n.number,a,u,r];break;case 22:case 23:const v={};v.info=S(a,u),u+=A;const g=a[u++];v.mmr=!!(1&g),v.template=g>>1&3,v.enableSkip=!!(8&g),v.combinationOperator=g>>4&7,v.defaultPixelValue=g>>7&1,v.gridWidth=(0,i.readUint32)(a,u),u+=4,v.gridHeight=(0,i.readUint32)(a,u),u+=4,v.gridOffsetX=4294967295&(0,i.readUint32)(a,u),u+=4,v.gridOffsetY=4294967295&(0,i.readUint32)(a,u),u+=4,v.gridVectorX=(0,i.readUint16)(a,u),u+=2,v.gridVectorY=(0,i.readUint16)(a,u),u+=2,o=[v,n.referredTo,a,u,r];break;case 38:case 39:const y={};y.info=S(a,u),u+=A;const b=a[u++];if(y.mmr=!!(1&b),y.template=b>>1&3,y.prediction=!!(8&b),!y.mmr){for(d=0===y.template?4:1,l=[],c=0;c>2&1,_.combinationOperator=x>>3&3,_.requiresBuffer=!!(32&x),_.combinationOperatorOverride=!!(64&x),o=[_];break;case 49:case 50:case 51:case 62:break;case 53:o=[n.number,a,u,r];break;default:throw new s("segment type ".concat(n.typeName,"(").concat(n.type,") is not implemented"))}const h="on"+n.typeName;h in t&&t[h].apply(t,o)}function j(e,t){for(let n=0,a=e.length;n>3,n=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&n.fill(255),this.buffer=n}drawBitmap(e,t){const n=this.currentPageInfo,a=e.width,i=e.height,r=n.width+7>>3,o=n.combinationOperatorOverride?e.combinationOperator:n.combinationOperator,l=this.buffer,c=128>>(7&e.x);let d,u,h,p,f=e.y*r+(e.x>>3);switch(o){case 0:for(d=0;d>=1,h||(h=128,p++);f+=r}break;case 2:for(d=0;d>=1,h||(h=128,p++);f+=r}break;default:throw new s("operator ".concat(o," is not supported"))}}onImmediateGenericRegion(e,t,n,a){const i=e.info,r=new c(t,n,a),o=b(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,r);this.drawBitmap(i,o)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,n,a,r,o){let l,d;e.huffman&&(l=function(e,t,n){let a,i,r,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:a=O(e.huffmanDHSelector+4);break;case 3:a=R(l,t,n),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:i=O(e.huffmanDWSelector+2);break;case 3:i=R(l,t,n),l++;break;default:throw new s("invalid Huffman DW selector")}return e.bitmapSizeSelector?(r=R(l,t,n),l++):r=O(1),o=e.aggregationInstancesSelector?R(l,t,n):O(1),{tableDeltaHeight:a,tableDeltaWidth:i,tableBitmapSize:r,tableAggregateInstances:o}}(e,n,this.customTables),d=new N(a,r,o));let u=this.symbols;u||(this.symbols=u={});const f=[];for(const i of n){const e=u[i];e&&f.push(...e)}const m=new c(a,r,o);u[t]=function(e,t,n,a,r,o,l,c,d,u,f,m){if(e&&t)throw new s("symbol refinement with Huffman is not supported");const v=[];let g=0,y=(0,i.log2)(n.length+a);const w=f.decoder,C=f.contextCache;let S,A;for(e&&(S=O(1),A=[],y=Math.max(y,1));v.length1)s=x(e,t,a,g,0,i,1,n.concat(v),y,0,0,1,0,o,d,u,f,0,m);else{const e=p(C,w,y),t=h(C,"IARDX",w),i=h(C,"IARDY",w);s=_(a,g,d,e=32){let t,n,a;switch(e){case 32:if(0===p)throw new s("no previous value in symbol ID table");n=i.readBits(2)+3,t=r[p-1].prefixLength;break;case 33:n=i.readBits(3)+3,t=0;break;case 34:n=i.readBits(7)+11,t=0;break;default:throw new s("invalid code length in symbol ID table")}for(a=0;a=0;y--)T=e?D(F,d,u,!0):b(!1,d,u,n,!1,null,j,v),I[y]=T;for(P=0;P=0;_--)O^=I[_][P][E],R|=O<<_;if(M=t[R],L=h+P*m+E*f>>8,B=p+P*f-E*m>>8,L>=0&&L+S<=a&&B>=0&&B+A<=r)for(y=0;y=r))for(z=g[t],W=M[y],_=0;_=0&&e>1&7),c=1+(a>>4&7),d=[];let u,h,p=r;do{u=s.readBits(l),h=s.readBits(c),d.push(new F([p,u,h,0])),p+=1<>t&1;if(t<=0)this.children[n]=new T(e);else{let a=this.children[n];a||(this.children[n]=a=new T(null)),a.buildTree(e,t-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new s("invalid Huffman data");return t.decodeNode(e)}}class P{constructor(e,t){t||this.assignPrefixCodes(e),this.rootNode=new T(null);for(let n=0,a=e.length;n0&&this.rootNode.buildTree(t,t.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){const t=e.length;let n=0;for(let c=0;c=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<=this.end?-1:this.data[this.position++]}}function R(e,t,n){let a=0;for(let i=0,r=t.length;i>n&1,n--}if(a&&!c){const e=5;for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const n=[{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}];t.ArithmeticDecoder=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],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}byteIn(){const e=this.data;let 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)}readBit(e,t){let a=e[t]>>1,i=1&e[t];const r=n[a],o=r.qe;let s,l=this.a-o;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,s}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var a=n(18),i=n(4),r=n(27),o=n(2);class s extends a.DecodeStream{constructor(e,t,n){let a;for(;-1!==(a=e.getByte());)if(255===a){e.skip(-1);break}super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){const n=this.dict.get("BPC","BitsPerComponent")||8,a=t.length,i=new Int32Array(a);let r=!1;const o=(1<{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var a=n(2),i=n(28),r=n(3);class o extends a.BaseException{constructor(e){super("JPEG error: ".concat(e),"JpegError")}}class s extends a.BaseException{constructor(e,t){super(e,"DNLMarkerError"),this.scanLines=t}}class l extends a.BaseException{constructor(e){super(e,"EOIMarkerError")}}const c=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]),d=4017,u=799,h=3406,p=2276,f=1567,m=3784,v=5793,g=2896;function y(e,t){let n,a,i=0,r=16;for(;r>0&&!e[r-1];)r--;const o=[{children:[],index:0}];let s,l=o[0];for(n=0;n0;)l=o.pop();for(l.index++,o.push(l);o.length<=n;)o.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;i++}n+19&&void 0!==arguments[9]&&arguments[9];const v=n.mcusPerLine,g=n.progressive,y=t;let _=0,x=0;function w(){if(x>0)return x--,_>>x&1;if(_=e[t++],255===_){const a=e[t++];if(a){if(220===a&&m){t+=2;const a=(0,r.readUint16)(e,t);if(t+=2,a>0&&a!==n.scanLines)throw new s("Found DNL marker (0xFFDC) while parsing scan data",a)}else if(217===a){if(m){const e=T*(8===n.precision?8:0);if(e>0&&Math.round(n.scanLines/e)>=5)throw new s("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new l("Found EOI marker (0xFFD9) while parsing scan data")}throw new o("unexpected marker ".concat((_<<8|a).toString(16)))}}return x=7,_>>>7}function S(e){let t=e;for(;;){switch(t=t[w()],typeof t){case"number":return t;case"object":continue}throw new o("invalid huffman sequence")}}function A(e){let t=0;for(;e>0;)t=t<<1|w(),e--;return t}function k(e){if(1===e)return 1===w()?1:-1;const t=A(e);return t>=1<0)return void I--;let n=u;const a=h;for(;n<=a;){const a=S(e.huffmanTableAC),i=15&a,r=a>>4;if(0===i){if(r<15){I=A(r)+(1<>4,0===i)s<15?(I=A(s)+(1<>4;if(0===a){if(r<15)break;i+=16;continue}i+=r;const o=c[i];e.blockData[t+o]=k(a),i++}};let W,z=0;const U=1===O?i[0].blocksPerLine*i[0].blocksPerColumn:v*n.mcusPerColumn;let H,q;for(;z<=U;){const n=d?Math.min(U-z,d):U;if(n>0){for(R=0;R0?"unexpected":"excessive";(0,a.warn)("decodeScan - ".concat(e," MCU data, current marker is: ").concat(W.invalid)),t=W.offset}if(!(W.marker>=65488&&W.marker<=65495))break;t+=2}return t-y}function x(e,t,n){const a=e.quantizationTable,i=e.blockData;let r,s,l,c,y,b,_,x,w,C,S,A,k,j,I,F,T;if(!a)throw new o("missing required Quantization Table.");for(let o=0;o<64;o+=8)w=i[t+o],C=i[t+o+1],S=i[t+o+2],A=i[t+o+3],k=i[t+o+4],j=i[t+o+5],I=i[t+o+6],F=i[t+o+7],w*=a[o],0!==(C|S|A|k|j|I|F)?(C*=a[o+1],S*=a[o+2],A*=a[o+3],k*=a[o+4],j*=a[o+5],I*=a[o+6],F*=a[o+7],r=v*w+128>>8,s=v*k+128>>8,l=S,c=I,y=g*(C-F)+128>>8,x=g*(C+F)+128>>8,b=A<<4,_=j<<4,r=r+s+1>>1,s=r-s,T=l*m+c*f+128>>8,l=l*f-c*m+128>>8,c=T,y=y+_+1>>1,_=y-_,x=x+b+1>>1,b=x-b,r=r+c+1>>1,c=r-c,s=s+l+1>>1,l=s-l,T=y*p+x*h+2048>>12,y=y*h-x*p+2048>>12,x=T,T=b*u+_*d+2048>>12,b=b*d-_*u+2048>>12,_=T,n[o]=r+x,n[o+7]=r-x,n[o+1]=s+_,n[o+6]=s-_,n[o+2]=l+b,n[o+5]=l-b,n[o+3]=c+y,n[o+4]=c-y):(T=v*w+512>>10,n[o]=T,n[o+1]=T,n[o+2]=T,n[o+3]=T,n[o+4]=T,n[o+5]=T,n[o+6]=T,n[o+7]=T);for(let o=0;o<8;++o)w=n[o],C=n[o+8],S=n[o+16],A=n[o+24],k=n[o+32],j=n[o+40],I=n[o+48],F=n[o+56],0!==(C|S|A|k|j|I|F)?(r=v*w+2048>>12,s=v*k+2048>>12,l=S,c=I,y=g*(C-F)+2048>>12,x=g*(C+F)+2048>>12,b=A,_=j,r=4112+(r+s+1>>1),s=r-s,T=l*m+c*f+2048>>12,l=l*f-c*m+2048>>12,c=T,y=y+_+1>>1,_=y-_,x=x+b+1>>1,b=x-b,r=r+c+1>>1,c=r-c,s=s+l+1>>1,l=s-l,T=y*p+x*h+2048>>12,y=y*h-x*p+2048>>12,x=T,T=b*u+_*d+2048>>12,b=b*d-_*u+2048>>12,_=T,w=r+x,F=r-x,C=s+_,I=s-_,S=l+b,j=l-b,A=c+y,k=c-y,w<16?w=0:w>=4080?w=255:w>>=4,C<16?C=0:C>=4080?C=255:C>>=4,S<16?S=0:S>=4080?S=255:S>>=4,A<16?A=0:A>=4080?A=255:A>>=4,k<16?k=0:k>=4080?k=255:k>>=4,j<16?j=0:j>=4080?j=255:j>>=4,I<16?I=0:I>=4080?I=255:I>>=4,F<16?F=0:F>=4080?F=255:F>>=4,i[t+o]=w,i[t+o+8]=C,i[t+o+16]=S,i[t+o+24]=A,i[t+o+32]=k,i[t+o+40]=j,i[t+o+48]=I,i[t+o+56]=F):(T=v*w+8192>>14,T=T<-2040?0:T>=2024?255:T+2056>>4,i[t+o]=T,i[t+o+8]=T,i[t+o+16]=T,i[t+o+24]=T,i[t+o+32]=T,i[t+o+40]=T,i[t+o+48]=T,i[t+o+56]=T)}function w(e,t){const n=t.blocksPerLine,a=t.blocksPerColumn,i=new Int16Array(64);for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:t;const a=e.length-1;let i=n=a)return null;const o=(0,r.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};let s=(0,r.readUint16)(e,i);for(;!(s>=65472&&s<=65534);){if(++i>=a)return null;s=(0,r.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}t.JpegImage=class{constructor(){let{decodeTransform:e=null,colorTransform:t=-1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._decodeTransform=e,this._colorTransform=t}parse(e){let{dnlScanLines:t=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function n(){const t=(0,r.readUint16)(e,h);h+=2;let n=h+t-2;const i=C(e,n,h);null!==i&&void 0!==i&&i.invalid&&((0,a.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),n=i.offset);const o=e.subarray(h,n);return h+=o.length,o}function i(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV);for(const a of e.components){const i=Math.ceil(Math.ceil(e.samplesPerLine/8)*a.h/e.maxH),r=Math.ceil(Math.ceil(e.scanLines/8)*a.v/e.maxV),o=t*a.h,s=n*a.v*64*(o+1);a.blockData=new Int16Array(s),a.blocksPerLine=i,a.blocksPerColumn=r}e.mcusPerLine=t,e.mcusPerColumn=n}let d,u,h=0,p=null,f=null,m=0;const v=[],g=[],b=[];let x=(0,r.readUint16)(e,h);if(h+=2,65496!==x)throw new o("SOI not found");x=(0,r.readUint16)(e,h),h+=2;e:for(;65497!==x;){let w,A,k;switch(x){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const j=n();65504===x&&74===j[0]&&70===j[1]&&73===j[2]&&70===j[3]&&0===j[4]&&(p={version:{major:j[5],minor:j[6]},densityUnits:j[7],xDensity:j[8]<<8|j[9],yDensity:j[10]<<8|j[11],thumbWidth:j[12],thumbHeight:j[13],thumbData:j.subarray(14,14+3*j[12]*j[13])}),65518===x&&65===j[0]&&100===j[1]&&111===j[2]&&98===j[3]&&101===j[4]&&(f={version:j[5]<<8|j[6],flags0:j[7]<<8|j[8],flags1:j[9]<<8|j[10],transformCode:j[11]});break;case 65499:const I=(0,r.readUint16)(e,h);h+=2;const F=I+h-2;let T;for(;h>4===0)for(A=0;A<64;A++)T=c[A],n[T]=e[h++];else{if(t>>4!==1)throw new o("DQT - invalid table spec");for(A=0;A<64;A++)T=c[A],n[T]=(0,r.readUint16)(e,h),h+=2}v[15&t]=n}break;case 65472:case 65473:case 65474:if(d)throw new o("Only single frame JPEGs supported");h+=2,d={},d.extended=65473===x,d.progressive=65474===x,d.precision=e[h++];const P=(0,r.readUint16)(e,h);h+=2,d.scanLines=t||P,d.samplesPerLine=(0,r.readUint16)(e,h),h+=2,d.components=[],d.componentIds={};const E=e[h++];let O=0,N=0;for(w=0;w>4,a=15&e[h+1];O>4===0?b:g)[15&t]=y(n,i)}break;case 65501:h+=2,u=(0,r.readUint16)(e,h),h+=2;break;case 65498:const M=1===++m&&!t;h+=2;const D=e[h++],L=[];for(w=0;w>4],a.huffmanTableAC=g[15&i],L.push(a)}const B=e[h++],W=e[h++],z=e[h++];try{const t=_(e,h,d,L,u,B,W,z>>4,15&z,M);h+=t}catch(S){if(S instanceof s)return(0,a.warn)("".concat(S.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:S.scanLines});if(S instanceof l){(0,a.warn)("".concat(S.message," -- ignoring the rest of the image data."));break e}throw S}break;case 65500:h+=4;break;case 65535:255!==e[h]&&h--;break;default:const U=C(e,h-2,h-3);if(null!==U&&void 0!==U&&U.invalid){(0,a.warn)("JpegImage.parse - unexpected data, current marker is: "+U.invalid),h=U.offset;break}if(!U||h>=e.length-1){(0,a.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new o("JpegImage.parse - unknown marker: "+x.toString(16))}x=(0,r.readUint16)(e,h),h+=2}this.width=d.samplesPerLine,this.height=d.scanLines,this.jfif=p,this.adobe=f,this.components=[];for(const a of d.components){const e=v[a.quantizationId];e&&(a.quantizationTable=e),this.components.push({index:a.index,output:w(0,a),scaleX:a.h/d.maxH,scaleY:a.v/d.maxV,blocksPerLine:a.blocksPerLine,blocksPerColumn:a.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=this.width/e,i=this.height/t;let r,o,s,l,c,d,u,h,p,f,m,v=0;const g=this.components.length,y=e*t*g,b=new Uint8ClampedArray(y),_=new Uint32Array(e),x=4294967288;let w;for(u=0;u>8)+C[p+1];return b}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(e){let t,n,a;for(let i=0,r=e.length;i4)throw new o("Unsupported color mode");const l=this._getLinearizedBlockData(t,n,s);if(1===this.numComponents&&(a||r)){const e=l.length*(a?4:3),t=new Uint8ClampedArray(e);let n=0;if(a)(0,i.grayToRGBA)(l,new Uint32Array(t.buffer));else for(const a of l)t[n++]=a,t[n++]=a,t[n++]=a;return t}if(3===this.numComponents&&this._isColorConversionNeeded){if(a){const e=new Uint8ClampedArray(l.length/3*4);return this._convertYccToRgba(l,e)}return this._convertYccToRgb(l)}if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgba(l):r?this._convertYcckToRgb(l):this._convertYcckToCmyk(l);if(a)return this._convertCmykToRgba(l);if(r)return this._convertCmykToRgb(l)}return l}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=i,t.convertToRGBA=function(e){switch(e.kind){case a.ImageKind.GRAYSCALE_1BPP:return i(e);case a.ImageKind.RGB_24BPP:return function(e){let{src:t,srcPos:n=0,dest:i,destPos:r=0,width:o,height:s}=e,l=0;const c=t.length>>2,d=new Uint32Array(t.buffer,n,c);if(a.FeatureTest.isLittleEndian){for(;l>>24|t<<8|4278190080,i[r+2]=t>>>16|n<<16|4278190080,i[r+3]=n>>>8|4278190080}for(let e=4*l,n=t.length;e>>8|255,i[r+2]=t<<16|n>>>16|255,i[r+3]=n<<8|255}for(let e=4*l,n=t.length;e>3,p=7&r,f=t.length;i=new Uint32Array(i.buffer);let m=0;for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var a=n(18),i=n(30),r=n(2);class o extends a.DecodeStream{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,r.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new i.JpxImage;e.parse(this.bytes);const t=e.width,n=e.height,a=e.componentsCount,r=e.tiles.length;if(1===r)this.buffer=e.tiles[0].items;else{const i=new Uint8ClampedArray(t*n*a);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var a=n(2),i=n(3),o=n(25);class s extends a.BaseException{constructor(e){super("JPX error: ".concat(e),"JpxError")}}const l={LL:0,LH:1,HL:1,HH:2};function c(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function d(e,t){const n=e.SIZ,a=[];let i;const r=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),o=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz);for(let s=0;s0?Math.min(a.xcb,i.PPx-1):Math.min(a.xcb,i.PPx),i.ycb_=n>0?Math.min(a.ycb,i.PPy-1):Math.min(a.ycb,i.PPy),i}function h(e,t,n){const a=1<t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,c=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,d=l*c;t.precinctParameters={precinctWidth:a,precinctHeight:i,numprecinctswide:l,numprecinctshigh:c,numprecincts:d,precinctWidthInSubband:o,precinctHeightInSubband:s}}function p(e,t,n){const a=n.xcb_,i=n.ycb_,r=1<>a,l=t.tby0>>i,c=t.tbx1+r-1>>a,d=t.tby1+o-1>>i,u=t.resolution.precinctParameters,h=[],p=[];let f,m,v,g;for(m=l;me.cbxMax&&(e.cbxMax=f),me.cbyMax&&(e.cbyMax=m)):p[g]=e={cbxMin:f,cbyMin:m,cbxMax:f,cbyMax:m},v.precinct=e}t.codeblockParameters={codeblockWidth:a,codeblockHeight:i,numcodeblockwide:c-s+1,numcodeblockhigh:d-l+1},t.codeblocks=h,t.precincts=p}function f(e,t,n){const a=[],i=e.subbands;for(let r=0,o=i.length;re.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[c],n=t.precinctParameters.numprecincts;for(;ue.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[l],n=t.precinctParameters.numprecincts;for(;ue.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[l],n=t.precinctParameters.numprecincts;if(!(d>=n)){for(;o=0;--e){const n=t.resolutions[e],a=f*n.precinctParameters.precinctWidth,i=f*n.precinctParameters.precinctHeight;d=Math.min(d,a),u=Math.min(u,i),h=Math.max(h,n.precinctParameters.numprecinctswide),p=Math.max(p,n.precinctParameters.numprecinctshigh),c[e]={width:a,height:i},f<<=1}n=Math.min(n,d),a=Math.min(a,u),i=Math.max(i,h),r=Math.max(r,p),o[s]={resolutions:c,minWidth:d,minHeight:u,maxNumWide:h,maxNumHigh:p}}return{components:o,minWidth:n,minHeight:a,maxNumWide:i,maxNumHigh:r}}function w(e){const t=e.SIZ,n=e.currentTile.index,a=e.tiles[n],i=t.Csiz;for(let o=0;o>>l&(1<0;){const e=r.shift();l=e.codeblock,void 0===l.data&&(l.data=[]),l.data.push({data:t,start:n+o,end:n+o+e.dataLength,codingpasses:e.codingpasses}),o+=e.dataLength}}return o}function S(e,t,n,a,i,r,s,l,c){const d=a.tbx0,u=a.tby0,h=a.tbx1-a.tbx0,p=a.codeblocks,f="H"===a.type.charAt(0)?1:0,m="H"===a.type.charAt(1)?t:0;for(let v=0,g=p.length;v=r?D:D*(1<0?1-b:0));const o=e.subbands[a],m=l[o.type];S(i,t,0,o,f?1:2**(p+m-r)*(1+n/2048),d+r-1,f,u,h)}v.push({width:t,height:n,items:i})}const y=m.calculate(v,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:y.width,height:y.height,items:y.items}}function k(e,t){const n=e.SIZ.Csiz,a=e.tiles[t];for(let i=0;i>24&255,l>>16&255,l>>8&255,255&l);(0,a.warn)("Unsupported header type ".concat(l," (").concat(r,")."))}d&&(n+=c)}}parseImageProperties(e){let t=e.getByte();for(;t>=0;){const n=t;if(t=e.getByte(),65361===(n<<8|t)){e.skip(4);const t=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);const r=e.getUint16();return this.width=t-a,this.height=n-i,this.componentsCount=r,void(this.bitsPerComponent=8)}}throw new s("No size marker found in JPX stream")}parseCodestream(e,t,n){const r={};let o=!1;try{let s=t;for(;s+1>5,u=[];n>3,t.mu=0):(t.epsilon=e[n]>>3,t.mu=(7&e[n])<<8|e[n+1],n+=2),u.push(t)}b.SPqcds=u,r.mainHeader?r.QCD=b:(r.currentTile.QCD=b,r.currentTile.QCC=[]);break;case 65373:m=(0,i.readUint16)(e,s);const _={};let x;switch(n=s+2,r.SIZ.Csiz<257?x=e[n++]:(x=(0,i.readUint16)(e,n),n+=2),l=e[n++],31&l){case 0:h=8,p=!0;break;case 1:h=16,p=!1;break;case 2:h=16,p=!0;break;default:throw new Error("Invalid SQcd value "+l)}for(_.noQuantization=8===h,_.scalarExpounded=p,_.guardBits=l>>5,u=[];n>3,t.mu=0):(t.epsilon=e[n]>>3,t.mu=(7&e[n])<<8|e[n+1],n+=2),u.push(t)}_.SPqcds=u,r.mainHeader?r.QCC[x]=_:r.currentTile.QCC[x]=_;break;case 65362:m=(0,i.readUint16)(e,s);const S={};n=s+2;const A=e[n++];S.entropyCoderWithCustomPrecincts=!!(1&A),S.sopMarkerUsed=!!(2&A),S.ephMarkerUsed=!!(4&A),S.progressionOrder=e[n++],S.layersCount=(0,i.readUint16)(e,n),n+=2,S.multipleComponentTransform=e[n++],S.decompositionLevelsCount=e[n++],S.xcb=2+(15&e[n++]),S.ycb=2+(15&e[n++]);const j=e[n++];if(S.selectiveArithmeticCodingBypass=!!(1&j),S.resetContextProbabilities=!!(2&j),S.terminationOnEachCodingPass=!!(4&j),S.verticallyStripe=!!(8&j),S.predictableTermination=!!(16&j),S.segmentationSymbolUsed=!!(32&j),S.reversibleTransformation=e[n++],S.entropyCoderWithCustomPrecincts){const t=[];for(;n>4})}S.precinctsSizes=t}const I=[];S.selectiveArithmeticCodingBypass&&I.push("selectiveArithmeticCodingBypass"),S.terminationOnEachCodingPass&&I.push("terminationOnEachCodingPass"),S.verticallyStripe&&I.push("verticallyStripe"),S.predictableTermination&&I.push("predictableTermination"),I.length>0&&(o=!0,(0,a.warn)("JPX: Unsupported COD options (".concat(I.join(", "),")."))),r.mainHeader?r.COD=S:(r.currentTile.COD=S,r.currentTile.COC=[]);break;case 65424:m=(0,i.readUint16)(e,s),f={},f.index=(0,i.readUint16)(e,s+2),f.length=(0,i.readUint32)(e,s+4),f.dataEnd=f.length+s-2,f.partIndex=e[s+8],f.partsCount=e[s+9],r.mainHeader=!1,0===f.partIndex&&(f.COD=r.COD,f.COC=r.COC.slice(0),f.QCD=r.QCD,f.QCC=r.QCC.slice(0)),r.currentTile=f;break;case 65427:f=r.currentTile,0===f.partIndex&&(k(r,f.index),w(r)),m=f.dataEnd-s,C(r,e,s,m);break;case 65363:(0,a.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:m=(0,i.readUint16)(e,s);break;default:throw new Error("Unknown codestream code: "+t.toString(16))}s+=m}}catch(l){if(o||this.failOnCorruptedImage)throw new s(l.message);(0,a.warn)('JPX: Trying to recover from: "'.concat(l.message,'".'))}this.tiles=function(e){const t=e.SIZ,n=e.components,a=t.Csiz,i=[];for(let r=0,o=e.tiles.length;r>2);l[g++]=e+v>>d,l[g++]=e>>d,l[g++]=e+m>>d}else for(h=0;h>d,l[g++]=f-.34413*m-.71414*v>>d,l[g++]=f+1.772*m>>d;if(e)for(h=0,g=3;h>d}else for(let e=0;e>d,g+=a}i.push(c)}return i}(r),this.width=r.SIZ.Xsiz-r.SIZ.XOsiz,this.height=r.SIZ.Ysiz-r.SIZ.YOsiz,this.componentsCount=r.SIZ.Csiz}};class j{constructor(e,t){const n=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(let a=0;a>=1,t>>=1,a++}a--,n=this.levels[a],n.items[n.index]=i,this.currentLevel=a,delete this.value}incrementValue(){const e=this.levels[this.currentLevel];e.items[e.index]++}nextLevel(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];return e--,e<0?(this.value=n,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=n,!0)}}class I{constructor(e,t,n){const a=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(let i=0;in)return this.currentLevel=a,this.propagateValues(),!1;e>>=1,t>>=1,a++}return this.currentLevel=a-1,!0}incrementValue(e){const t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}propagateValues(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];for(;--e>=0;)t=this.levels[e],t.items[t.index]=n}nextLevel(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=n,!0)}}class F{constructor(e,t,n,a,i){let r;this.width=e,this.height=t,r="HH"===n?F.HHContextLabel:"HL"===n?F.HLContextLabel:F.LLAndLHContextsLabel,this.contextLabelTable=r;const o=e*t;let s;this.neighborsSignificance=new Uint8Array(o),this.coefficentsSign=new Uint8Array(o),s=i>14?new Uint32Array(o):i>6?new Uint16Array(o):new Uint8Array(o),this.coefficentsMagnitude=s,this.processingFlags=new Uint8Array(o);const l=new Uint8Array(o);if(0!==a)for(let c=0;c0,s=t+10&&(l=n-i,o&&(a[l-1]+=16),s&&(a[l+1]+=16),a[l]+=4),e+1=n)break;if(o[h]&=-2,a[h]||!r[h])continue;const f=l[r[h]];if(e.readBit(s,f)){const e=this.decodeSignBit(t,u,h);i[h]=e,a[h]=1,this.setNeighborsSignificance(t,u,h),o[h]|=2}c[h]++,o[h]|=1}}}decodeSignBit(e,t,n){const a=this.width,i=this.height,r=this.coefficentsMagnitude,o=this.coefficentsSign;let s,l,c,d,u,h;d=t>0&&0!==r[n-1],t+10&&0!==r[n-a],e+1=0?(u=9+s,h=this.decoder.readBit(this.contexts,u)):(u=9-s,h=1^this.decoder.readBit(this.contexts,u)),h}runMagnitudeRefinementPass(){const e=this.decoder,t=this.width,n=this.height,a=this.coefficentsMagnitude,i=this.neighborsSignificance,r=this.contexts,o=this.bitsDecoded,s=this.processingFlags,l=t*n,c=4*t;for(let d,u=0;u>1;let i,r,o,s;const l=-1.586134342059924,c=-.052980118572961,d=.882911075530934,u=.443506852043971,h=1.230174104914001,p=1/h;for(i=(t|=0)-3,r=a+4;r--;i+=2)e[i]*=p;for(i=t-2,o=u*e[i-1],r=a+3;r--&&(s=u*e[i+1],e[i]=h*e[i]-o-s,r--);i+=2)i+=2,o=u*e[i+1],e[i]=h*e[i]-o-s;for(i=t-1,o=d*e[i-1],r=a+2;r--&&(s=d*e[i+1],e[i]-=o+s,r--);i+=2)i+=2,o=d*e[i+1],e[i]-=o+s;for(i=t,o=c*e[i-1],r=a+1;r--&&(s=c*e[i+1],e[i]-=o+s,r--);i+=2)i+=2,o=c*e[i+1],e[i]-=o+s;if(0!==a)for(i=t+1,o=l*e[i-1],r=a;r--&&(s=l*e[i+1],e[i]-=o+s,r--);i+=2)i+=2,o=l*e[i+1],e[i]-=o+s}}class E extends T{filter(e,t,n){const a=n>>1;let i,r;for(i=t|=0,r=a+1;r--;i+=2)e[i]-=e[i-1]+e[i+1]+2>>2;for(i=t+1,r=a;r--;i+=2)e[i]+=e[i-1]+e[i+1]>>1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;var a=n(18);class i extends a.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;const a=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(a),dictionaryLengths:new Uint16Array(a),dictionaryPrevCodes:new Uint16Array(a),currentSequence:new Uint8Array(a),currentSequenceLength:0};for(let r=0;r<256;++r)i.dictionaryValues[r]=r,i.dictionaryLengths[r]=1;this.lzwState=i}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t>>t&(1<0;if(e<256)h[0]=e,p=1;else{if(!(e>=258)){if(256===e){d=9,o=258,p=0;continue}this.eof=!0,delete this.lzwState;break}if(e=0;t--)h[t]=s[n],n=c[n];else h[p++]=h[0]}if(i&&(c[o]=u,l[o]=l[u]+1,s[o]=h[0],o++,d=o+r&o+r-1?d:0|Math.min(Math.log(o+r)/.6931471805599453+1,12)),u=e,f+=p,a{Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var a=n(18),i=n(4),r=n(2);class o extends a.DecodeStream{constructor(e,t,n){if(super(t),!(n instanceof i.Dict))return e;const a=this.predictor=n.get("Predictor")||1;if(a<=1)return e;if(2!==a&&(a<10||a>15))throw new r.FormatError("Unsupported predictor: ".concat(a));this.readBlock=2===a?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;const o=this.colors=n.get("Colors")||1,s=this.bits=n.get("BPC","BitsPerComponent")||8,l=this.columns=n.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=l*o*s+7>>3,this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),a=this.bits,i=this.colors,r=this.str.getBytes(e);if(this.eof=!r.length,this.eof)return;let o,s=0,l=0,c=0,d=0,u=t;if(1===a&&1===i)for(o=0;o>1,e^=e>>2,e^=e>>4,s=(1&e)<<7,n[u++]=e}else if(8===a){for(o=0;o>8&255,n[u++]=255&e}}else{const e=new Uint8Array(i+1),u=(1<>c-a)&u,c-=a,l=l<=8&&(n[p++]=l>>d-8&255,d-=8);d>0&&(n[p++]=(l<<8-d)+(s&(1<<8-d)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),a=this.str.getBytes(e);if(this.eof=!a.length,this.eof)return;const i=this.bufferLength,o=this.ensureBuffer(i+e);let s=o.subarray(i-e,i);0===s.length&&(s=new Uint8Array(e));let l,c,d,u=i;switch(n){case 0:for(l=0;l>1)+a[l];for(;l>1)+a[l]&255,u++;break;case 4:for(l=0;l{Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;var a=n(18);class i extends a.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])return void(this.eof=!0);let t,n=this.bufferLength,a=e[0];if(a<128){if(t=this.ensureBuffer(n+a+1),t[n++]=e[1],a>0){const e=this.str.getBytes(a);t.set(e,n),n+=a}}else{a=257-a;const i=e[1];t=this.ensureBuffer(n+a+1);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0;var a=n(2),i=n(35),r=n(38),o=n(40),s=n(39),l=n(37),c=n(41),d=n(42),u=n(43),h=n(44),p=n(45),f=n(46),m=n(14),v=n(47),g=n(3),y=n(8),b=n(48);const _=[[57344,63743],[1048576,1114109]],x=1e3,w=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"],C=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function S(e){if(!e.fontMatrix)return;if(e.fontMatrix[0]===a.FONT_IDENTITY_MATRIX[0])return;const t=.001/e.fontMatrix[0],n=e.widths;for(const a in n)n[a]*=t;e.defaultWidth*=t}function A(e){if(!e.fallbackToUnicode)return;if(e.toUnicode instanceof d.IdentityToUnicodeMap)return;const t=[];for(const n in e.fallbackToUnicode)e.toUnicode.has(n)||(t[n]=e.fallbackToUnicode[n]);t.length>0&&e.toUnicode.amend(t)}class k{constructor(e,t,n,a,i,r,o,s,l){this.originalCharCode=e,this.fontChar=t,this.unicode=n,this.accent=a,this.width=i,this.vmetric=r,this.operatorListId=o,this.isSpace=s,this.isInFont=l}get category(){return(0,a.shadow)(this,"category",(0,o.getCharUnicodeCategory)(this.unicode),!0)}}function j(e,t){return(e<<8)+t}function I(e,t,n){e[t+1]=n,e[t]=n>>>8}function F(e,t){const n=(e<<8)+t;return 32768&n?n-65536:n}function T(e){return String.fromCharCode(e>>8&255,255&e)}function P(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function E(e){const t=e.peekBytes(4);return"ttcf"===(0,a.bytesToString)(t)}function O(e,t){let n,i,{type:r,subtype:o,composite:s}=t;return function(e){const t=e.peekBytes(4);return 65536===(0,g.readUint32)(t,0)||"true"===(0,a.bytesToString)(t)}(e)||E(e)?n=s?"CIDFontType2":"TrueType":function(e){const t=e.peekBytes(4);return"OTTO"===(0,a.bytesToString)(t)}(e)?n=s?"CIDFontType2":"OpenType":function(e){const t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?n=s?"CIDFontType0":"MMType1"===r?"MMType1":"Type1":function(e){const t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?s?(n="CIDFontType0",i="CIDFontType0C"):(n="MMType1"===r?"MMType1":"Type1",i="Type1C"):((0,a.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),n=r,i=o),[n,i]}function N(e,t){for(const n in t)e[+n]=t[n]}function R(e,t,n){const a=[];let i;for(let r=0,s=e.length;r2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}const i="Unsupported CID string (charCode ".concat(e,'): "').concat(t,'".');if(n)throw new a.FormatError(i);return(0,a.warn)(i),t}function B(e,t,n,i){const r=Object.create(null),o=new Map,s=[],l=new Set;let c=0,d=_[c][0],u=_[c][1];for(let p in e){p|=0;let f=e[p];if(!t(f))continue;if(d>u){if(c++,c>=_.length){(0,a.warn)("Ran out of space in font private use area.");break}d=_[c][0],u=_[c][1]}const m=d++;0===f&&(f=n);let v=i.get(p);"string"===typeof v&&(v=v.codePointAt(0)),!v||(h=v,_[0][0]<=h&&h<=_[0][1]||_[1][0]<=h&&h<=_[1][1])||l.has(f)||(o.set(v,f),l.add(f)),r[m]=f,s[p]=m}var h;return{toFontChar:s,charCodeToGlyphId:r,toUnicodeExtraMap:o,nextAvailableFontCharCode:d}}function W(e,t,n){const i=function(e,t,n){const a=[];for(const o in e)e[o]>=n||a.push({fontCharCode:0|o,glyphId:e[o]});if(t)for(const[o,s]of t)s>=n||a.push({fontCharCode:o,glyphId:s});0===a.length&&a.push({fontCharCode:0,glyphId:0}),a.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));const i=[],r=a.length;for(let o=0;o65535?2:1;let o,s,l,c,d="\0\0"+T(r)+"\0\x03\0\x01"+(0,a.string32)(4+8*r);for(o=i.length-1;o>=0&&!(i[o][0]<=65535);--o);const u=o+1;i[o][0]<65535&&65535===i[o][1]&&(i[o][1]=65534);const h=i[o][1]<65535?1:0,p=u+h,f=v.OpenTypeFileBuilder.getSearchParams(p,2);let m,g,y,b,_="",x="",w="",C="",S="",A=0;for(o=0,s=u;o0&&(x+="\xff\xff",_+="\xff\xff",w+="\0\x01",C+="\0\0");const k="\0\0"+T(2*p)+T(f.range)+T(f.entry)+T(f.rangeShift)+x+"\0\0"+_+w+C+S;let j="",I="";if(r>1){for(d+="\0\x03\0\n"+(0,a.string32)(4+8*r+4+k.length),j="",o=0,s=i.length;oe||!c)&&(c=e),d 123 are reserved for internal usage");l|=1<65535&&(d=65535)}else c=0,d=255;const h=e.bbox||[0,0,0,0],p=n.unitsPerEm||1/(e.fontMatrix||a.FONT_IDENTITY_MATRIX)[0],f=e.ascentScaled?1:p/x,m=n.ascent||Math.round(f*(e.ascent||h[3]));let v=n.descent||Math.round(f*(e.descent||h[1]));v>0&&e.descent>0&&h[1]<0&&(v=-v);const g=n.yMax||m,y=-n.yMin||-v;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,a.string32)(i)+(0,a.string32)(r)+(0,a.string32)(s)+(0,a.string32)(l)+"*21*"+T(e.italicAngle?1:0)+T(c||e.firstChar)+T(d||e.lastChar)+T(m)+T(v)+"\0d"+T(g)+T(y)+"\0\0\0\0\0\0\0\0"+T(e.xHeight)+T(e.capHeight)+T(0)+T(c||e.firstChar)+"\0\x03"}function U(e){const t=Math.floor(65536*e.italicAngle);return"\0\x03\0\0"+(0,a.string32)(t)+"\0\0\0\0"+(0,a.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function H(e){return e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function q(e,t){t||(t=[[],[]]);const n=[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]||H(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],a=[];let i,r,o,s,l;for(i=0,r=n.length;i0&&void 0!==arguments[0]&&arguments[0]?[...w,...C]:w,t=Object.create(null);let n,a;for(n of e)a=this[n],void 0!==a&&(t[n]=a);return t}fallbackToSystemFont(e){this.missingFile=!0;const{name:t,type:n}=this;let a=(0,r.normalizeFontName)(t);const i=(0,c.getStdFontMap)(),u=(0,c.getNonStdFontMap)(),h=!!i[a],f=!(!u[a]||!i[u[a]]);a=i[a]||u[a]||a;const m=(0,p.getFontBasicMetrics)()[a];m&&(isNaN(this.ascent)&&(this.ascent=m.ascent/x),isNaN(this.descent)&&(this.descent=m.descent/x),isNaN(this.capHeight)&&(this.capHeight=m.capHeight/x)),this.bold=/bold/gi.test(a),this.italic=/oblique|italic/gi.test(a),this.black=/Black/g.test(t);const v=/Narrow/g.test(t);if(this.remeasure=(!h||v)&&Object.keys(this.widths).length>0,(h||f)&&"CIDFontType2"===n&&this.cidEncoding.startsWith("Identity-")){const n=e.cidToGidMap,a=[];if(N(a,(0,c.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(t)?N(a,(0,c.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&N(a,(0,c.getSupplementalGlyphMapForCalibri)()),n){for(const e in a){const t=a[e];void 0!==n[t]&&(a[+e]=n[t])}n.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof d.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){const i=a[e];void 0===n[i]&&(a[+e]=t)}))}this.toUnicode instanceof d.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){a[+e]=t})),this.toFontChar=a,this.toUnicode=new d.ToUnicodeMap(a)}else if(/Symbol/i.test(a))this.toFontChar=R(l.SymbolSetEncoding,(0,s.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(a))this.toFontChar=R(l.ZapfDingbatsEncoding,(0,s.getDingbatsGlyphsUnicode)(),this.differences);else if(h){const e=R(this.defaultEncoding,(0,s.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==n||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof d.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,n){e[+t]=n})),this.toFontChar=e}else{const e=(0,s.getGlyphsUnicode)(),n=[];this.toUnicode.forEach(((t,a)=>{if(!this.composite){const n=this.differences[t]||this.defaultEncoding[t],i=(0,o.getUnicodeForGlyph)(n,e);-1!==i&&(a=i)}n[+t]=a})),this.composite&&this.toUnicode instanceof d.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(t)&&N(n,(0,c.getGlyphMapForStandardFonts)()),this.toFontChar=n}A(e),this.loadedName=a.split("-")[0]}checkAndRepair(e,t,n){var o,c;const h=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function p(e,t){const 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(let a=0;a>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,r=e.pos;e.pos=e.start||0,e.skip(a);const o=e.getBytes(i);return e.pos=r,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:n,length:i,offset:a,data:o}}function b(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function _(e,t,n,a,i,r){const o={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||n>e.length||n-t<=12)return o;const s=e.subarray(t,n),l=F(s[2],s[3]),c=F(s[4],s[5]),d=F(s[6],s[7]),u=F(s[8],s[9]);l>d&&(I(s,2,d),I(s,6,l)),c>u&&(I(s,4,u),I(s,8,c));const h=F(s[0],s[1]);if(h<0)return h<-1||(a.set(s,i),o.length=s.length),o;let p,f=10,m=0;for(p=0;ps.length?o:!r&&g>0?(a.set(s.subarray(0,v),i),a.set([0,0],i+v),a.set(s.subarray(y,_),i+v+2),_-=g,s.length-_>3&&(_=_+3&-4),o.length=_,o):s.length-_>3?(_=_+3&-4,a.set(s.subarray(0,_),i),o.length=_,o):(a.set(s,i),o.length=s.length,o)}function x(e){const n=(t.start||0)+e.offset;t.pos=n;const a=[[],[]],i=[],r=e.length,o=n+r;if(0!==t.getUint16()||r<6)return[a,i];const s=t.getUint16(),l=t.getUint16();let c,d;for(c=0;co)continue;t.pos=r;const s=e.name;if(e.encoding){let n="";for(let a=0,i=e.length;a0&&(c+=e-1)}}else(v||y)&&((0,a.warn)("TT: nested FDEFs not allowed"),m=!0),v=!0,u=c,o=h.pop(),t.functionsDefined[o]={data:l,i:c};else if(!v&&!y)if(o=h.at(-1),isNaN(o))(0,a.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){const e=h.length+t.functionsStackDeltas[o];if(e<0)return(0,a.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=e}else if(o in t.functionsDefined&&!f.includes(o)){if(p.push({data:l,i:c,stackTop:h.length-1}),f.push(o),s=t.functionsDefined[o],!s)return(0,a.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!v&&!y){let t=0;for(e<=142?t=w[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2),e>=113&&e<=117&&(i=h.pop(),isNaN(i)||(t=2*-i));t<0&&h.length>0;)h.pop(),t++;for(;t>0;)h.push(NaN),t--}}t.tooComplexToFollowFunctions=m;const b=[l];c>l.length&&b.push(new Uint8Array(c-l.length)),u>d&&((0,a.warn)("TT: complementing a missing function tail"),b.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){let n,a,i=0;for(n=0,a=t.length;n>>0,o=[];for(let a=0;a>>0);const s={ttcTag:t,majorVersion:n,minorVersion:i,numFonts:r,offsetTable:o};switch(n){case 1:return s;case 2:return s.dsigTag=e.getInt32()>>>0,s.dsigLength=e.getInt32()>>>0,s.dsigOffset=e.getInt32()>>>0,s}throw new a.FormatError("Invalid TrueType Collection majorVersion: ".concat(n,"."))}(e),r=t.split("+");let o;for(let l=0;l0||!(n.cMap instanceof m.IdentityCMap));if("OTTO"===A.version&&!t||!k.head||!k.hhea||!k.maxp||!k.post)return P=new y.Stream(k["CFF "].data),T=new u.CFFFont(P,n),S(n),this.convert(e,T,n);delete k.glyf,delete k.loca,delete k.fpgm,delete k.prep,delete k["cvt "],this.isOpenType=!0}if(!k.maxp)throw new a.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+k.maxp.offset;const R=t.getInt32(),H=t.getUint16();if((null===(o=n.scaleFactors)||void 0===o?void 0:o.length)===H&&O){const{scaleFactors:e}=n,t=j(k.head.data[50],k.head.data[51]),a=new f.GlyfTable({glyfTable:k.glyf.data,isGlyphLocationsLong:t,locaTable:k.loca.data,numGlyphs:H});a.scale(e);const{glyf:i,loca:r,isLocationLong:o}=a.write();k.glyf.data=i,k.loca.data=r,o!==!!t&&(k.head.data[50]=0,k.head.data[51]=o?1:0);const s=k.hmtx.data;for(let n=0;n>8&255,s[t+1]=255&a,I(s,t+2,Math.round(e[n]*F(s[t+2],s[t+3])))}}let V=H+1,G=!0;V>65535&&(G=!1,V=H,(0,a.warn)("Not enough space in glyfs to duplicate first glyph."));let $=0,X=0;R>=65536&&k.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(k.maxp.data[14]=0,k.maxp.data[15]=2),t.pos+=4,$=t.getUint16(),t.pos+=4,X=t.getUint16()),k.maxp.data[4]=V>>8,k.maxp.data[5]=255&V;const K=function(e,t,n,i){const r={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&C(e,r),t&&C(t,r),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,a.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(let n=0,i=e.functionsUsed.length;nt)return(0,a.warn)("TT: invalid function id: "+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return(0,a.warn)("TT: undefined function: "+n),void(e.hintsValid=!1)}}}(r,i),n&&1&n.length){const e=new Uint8Array(n.length+1);e.set(n.data),n.data=e}return r.hintsValid}(k.fpgm,k.prep,k["cvt "],$);if(K||(delete k.fpgm,delete k.prep,delete k["cvt "]),function(e,t,n,i,r,o){if(!t)return void(n&&(n.data=null));e.pos=(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;const s=e.getUint16();e.pos+=8,e.pos+=2;let l=e.getUint16();0!==s&&(2&j(i.data[44],i.data[45])||(t.data[22]=0,t.data[23]=0)),l>r&&((0,a.info)("The numOfMetrics (".concat(l,") should not be ")+"greater than the numGlyphs (".concat(r,").")),l=r,t.data[34]=(65280&l)>>8,t.data[35]=255&l);const c=r-l-(n.length-4*l>>1);if(c>0){const e=new Uint8Array(n.length+2*c);e.set(n.data),o&&(e[n.length]=n.data[2],e[n.length+1]=n.data[3]),n.data=e}}(t,k.hhea,k.hmtx,k.head,V,G),!k.head)throw new a.FormatError('Required "head" table is not found');!function(e,t,n){const i=e.data,r=(o=i[0],s=i[1],l=i[2],c=i[3],(o<<24)+(s<<16)+(l<<8)+c);var o,s,l,c;r>>16!==1&&((0,a.info)("Attempting to fix invalid version in head table: "+r),i[0]=0,i[1]=1,i[2]=0,i[3]=0);const d=j(i[50],i[51]);if(d<0||d>1){(0,a.info)("Attempting to fix invalid indexToLocFormat in head table: "+d);const e=t+1;if(n===e<<1)i[50]=0,i[51]=0;else{if(n!==e<<2)throw new a.FormatError("Could not fix indexToLocFormat: "+d);i[50]=0,i[51]=1}}}(k.head,H,O?k.loca.length:0);let Y=Object.create(null);if(O){const e=j(k.head.data[50],k.head.data[51]),t=function(e,t,n,a,i,r,o){let s,l,c;a?(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});const d=r?n+1:n,u=s*(1+d),h=new Uint8Array(u);h.set(e.data.subarray(0,u)),e.data=h;const p=t.data,f=p.length,m=new Uint8Array(f);let v,g;const y=[];for(v=0,g=0;vf&&(e=f),y.push({index:v,offset:e,endOffset:0})}for(y.sort(((e,t)=>e.offset-t.offset)),v=0;ve.index-t.index)),v=0;vo&&(o=e.sizeOfInstructions),x+=t,c(h,g,x)}if(0===x){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(v=0,g=s;vn+x?t.data=m.subarray(0,n+x):(t.data=new Uint8Array(n+x),t.data.set(m.subarray(0,x))),t.data.set(m.subarray(0,n),x),c(e.data,h.length-s,x+n)}else t.data=m.subarray(0,x);return{missingGlyphs:b,maxSizeOfInstructions:o}}(k.loca,k.glyf,H,e,K,G,X);Y=t.missingGlyphs,R>=65536&&k.maxp.length>=22&&(k.maxp.data[26]=t.maxSizeOfInstructions>>8,k.maxp.data[27]=255&t.maxSizeOfInstructions)}if(!k.hhea)throw new a.FormatError('Required "hhea" table is not found');0===k.hhea.data[10]&&0===k.hhea.data[11]&&(k.hhea.data[10]=255,k.hhea.data[11]=255);const J={unitsPerEm:j(k.head.data[18],k.head.data[19]),yMax:F(k.head.data[42],k.head.data[43]),yMin:F(k.head.data[38],k.head.data[39]),ascent:F(k.hhea.data[4],k.hhea.data[5]),descent:F(k.hhea.data[6],k.hhea.data[7]),lineGap:F(k.hhea.data[8],k.hhea.data[9])};this.ascent=J.ascent/J.unitsPerEm,this.descent=J.descent/J.unitsPerEm,this.lineGap=J.lineGap/J.unitsPerEm,null!==(c=this.cssFontInfo)&&void 0!==c&&c.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,k.post&&function(e,n,i){const o=(t.start||0)+e.offset;t.pos=o;const s=o+e.length,l=t.getInt32();let c;t.skip(28);let d,u=!0;switch(l){case 65536:c=r.MacStandardGlyphOrdering;break;case 131072:const e=t.getUint16();if(e!==i){u=!1;break}const o=[];for(d=0;d=32768){u=!1;break}o.push(e)}if(!u)break;const h=[],p=[];for(;t.pos65535)throw new a.FormatError("Max size of CID is 65,535");let r=-1;t?r=i:void 0!==e[i]&&(r=e[i]),r>=0&&r>>0;let h=!1;if((null===(d=l)||void 0===d?void 0:d.platformId)!==e||(null===(u=l)||void 0===u?void 0:u.encodingId)!==r){if(0!==e||0!==r&&1!==r&&3!==r)if(1===e&&0===r)h=!0;else if(3!==e||1!==r||!i&&l){if(n&&3===e&&0===r){h=!0;let n=!0;if(a>3;e.push(a),n=Math.max(a,n)}const a=[];for(let i=0;i<=n;i++)a.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:F(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let i=0;i<256;i++)if(0===e[i])t.pos=a[0].idRangePos+2*i,v=t.getUint16(),f.push({charCode:i,glyphId:v});else{const n=a[e[i]];for(m=0;m>1;t.skip(6);const n=[];let a;for(a=0;a>1)-(e-a),r.offsetIndex=i,s=Math.max(s,i+r.end-r.start+1)):r.offsetIndex=-1}const l=[];for(m=0;m>>0;for(m=0;m>>0,n=t.getInt32()>>>0;let a=t.getInt32()>>>0;for(let t=e;t<=n;t++)f.push({charCode:t,glyphId:a++})}}}f.sort((function(e,t){return e.charCode-t.charCode}));for(let a=1;a=61440&&e<=61695&&(e&=255),Z[e]=t.glyphId}if(n.glyphNames&&(u.length||this.differences.length))for(let t=0;t<256;++t){if(!h&&void 0!==Z[t])continue;const e=this.differences[t]||u[t];if(!e)continue;const a=n.glyphNames.indexOf(e);a>0&&Q(a)&&(Z[t]=a)}}0===Z.length&&(Z[0]=0);let ee=V-1;if(G||(ee=0),!n.cssFontInfo){const e=B(Z,Q,ee,this.toUnicode);this.toFontChar=e.toFontChar,k.cmap={tag:"cmap",data:W(e.charCodeToGlyphId,e.toUnicodeExtraMap,V)},k["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;const n=t.getUint16();t.skip(60);const a=t.getUint16();return!(n<4&&768&a)&&!(t.getUint16()>t.getUint16())&&(t.skip(6),0!==t.getUint16()&&(e.data[8]=e.data[9]=0,!0))}(k["OS/2"],t)||(k["OS/2"]={tag:"OS/2",data:z(n,e.charCodeToGlyphId,J)})}if(!O)try{P=new y.Stream(k["CFF "].data),T=new i.CFFParser(P,n,r.SEAC_ANALYSIS_ENABLED).parse(),T.duplicateFirstGlyph();const e=new i.CFFCompiler(T);k["CFF "].data=e.compile()}catch{(0,a.warn)("Failed to compile font "+n.loadedName)}if(k.name){const[t,a]=x(k.name);k.name.data=q(e,t),this.psName=t[0][6]||null,n.composite||function(e,t,n){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(e.hasEncoding)return;if(e.toUnicode instanceof d.IdentityToUnicodeMap)return;if(!t)return;if(0===n.length)return;if(e.defaultEncoding===l.WinAnsiEncoding)return;for(const o of n)if(!D(o))return;const a=l.WinAnsiEncoding,i=[],r=(0,s.getGlyphsUnicode)();for(const o in a){const e=a[o];if(""===e)continue;const t=r[e];void 0!==t&&(i[o]=String.fromCharCode(t))}i.length>0&&e.toUnicode.amend(i)}(n,this.isSymbolicFont,a)}else k.name={tag:"name",data:q(this.name)};const te=new v.OpenTypeFileBuilder(A.version);for(const a in k)te.addTable(a,k[a].data);return te.toArray()}convert(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&function(e,t){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof d.IdentityToUnicodeMap)return;const n=[],a=(0,s.getGlyphsUnicode)();for(const i in t){if(e.hasEncoding&&(e.baseEncodingName||void 0!==e.differences[i]))continue;const r=t[i],s=(0,o.getUnicodeForGlyph)(r,a);-1!==s&&(n[i]=String.fromCharCode(s))}n.length>0&&e.toUnicode.amend(n)}(n,n.builtInEncoding);let i=1;t instanceof u.CFFFont&&(i=t.numGlyphs-1);const c=t.getGlyphMapping(n);let h=null,p=c,f=null;n.cssFontInfo||(h=B(c,t.hasGlyphId.bind(t),i,this.toUnicode),this.toFontChar=h.toFontChar,p=h.charCodeToGlyphId,f=h.toUnicodeExtraMap);const m=t.numGlyphs;function g(e,t){let n=null;for(const a in e)t===e[a]&&(n||(n=[])).push(0|a);return n}function y(e,t){for(const n in e)if(t===e[n])return 0|n;return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}const b=t.seacs;if(h&&r.SEAC_ANALYSIS_ENABLED&&null!==b&&void 0!==b&&b.length){const e=n.fontMatrix||a.FONT_IDENTITY_MATRIX,i=t.getCharset(),r=Object.create(null);for(let t in b){t|=0;const n=b[t],a=l.StandardEncoding[n[2]],o=l.StandardEncoding[n[3]],s=i.indexOf(a),d=i.indexOf(o);if(s<0||d<0)continue;const u={x:n[0]*e[0]+n[1]*e[2]+e[4],y:n[0]*e[1]+n[1]*e[3]+e[5]},p=g(c,t);if(p)for(const e of p){const t=h.charCodeToGlyphId,n=y(t,s),a=y(t,d);r[e]={baseFontCharCode:n,accentFontCharCode:a,accentOffset:u}}}n.seacMap=r}const _=1/(n.fontMatrix||a.FONT_IDENTITY_MATRIX)[0],x=new v.OpenTypeFileBuilder("OTTO");return x.addTable("CFF ",t.data),x.addTable("OS/2",z(n,p)),x.addTable("cmap",W(p,f,m)),x.addTable("head","\0\x01\0\0\0\0\x10\0\0\0\0\0_\x0f<\xf5\0\0"+P(_)+"\0\0\0\0\x9e\v~'\0\0\0\0\x9e\v~'\0\0"+P(n.descent)+"\x0f\xff"+P(n.ascent)+T(n.italicAngle?2:0)+"\0\x11\0\0\0\0\0\0"),x.addTable("hhea","\0\x01\0\0"+P(n.ascent)+P(n.descent)+"\0\0\xff\xff\0\0\0\0\0\0"+P(n.capHeight)+P(Math.tan(n.italicAngle)*n.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+T(m)),x.addTable("hmtx",function(){const e=t.charstrings,n=t.cff?t.cff.widths:null;let a="\0\0\0\0";for(let t=1,i=m;t1&&void 0!==arguments[1]&&arguments[1],u=this._glyphCache[e];if((null===(t=u)||void 0===t?void 0:t.isSpace)===d)return u;let h=e;null!==(n=this.cMap)&&void 0!==n&&n.contains(e)&&(h=this.cMap.lookup(e),"string"===typeof h&&(h=L(e,h))),l=this.widths[h],"number"!==typeof l&&(l=this.defaultWidth);const p=null===(i=this.vmetrics)||void 0===i?void 0:i[h];let f=this.toUnicode.get(e)||e;"number"===typeof f&&(f=String.fromCharCode(f));let m=void 0!==this.toFontChar[e];if(s=this.toFontChar[e]||e,this.missingFile){const t=this.differences[e]||this.defaultEncoding[e];".notdef"!==t&&""!==t||"Type1"!==this.type||(s=32),s=(0,o.mapSpecialUnicodeValues)(s)}this.isType3Font&&(c=s);let v=null;if(null!==(r=this.seacMap)&&void 0!==r&&r[e]){m=!0;const t=this.seacMap[e];s=t.baseFontCharCode,v={fontChar:String.fromCodePoint(t.accentFontCharCode),offset:t.accentOffset}}let g="";return"number"===typeof s&&(s<=1114111?g=String.fromCodePoint(s):(0,a.warn)("charToGlyph - invalid fontCharCode: ".concat(s))),u=new k(e,g,f,v,l,p,c,d,m),this._glyphCache[e]=u}charsToGlyphs(e){let t=this._charsCache[e];if(t)return t;if(t=[],this.cMap){const n=Object.create(null),a=e.length;let i=0;for(;it.length%2===1,i=this.toUnicode instanceof d.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let r=0,o=e.length;r55295&&(o<57344||o>65533)&&r++,this.toUnicode){const e=i(o);if(-1!==e){a()&&(t.push(n.join("")),n.length=0);for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)n.push(String.fromCharCode(e>>8*t&255));continue}}a()||(t.push(n.join("")),n.length=0),n.push(String.fromCodePoint(o))}return t.push(n.join("")),t}},t.ErrorFont=class{constructor(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var a=n(2),i=n(36),r=n(37);const o=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=o;const s=391,l=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],c=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];t.CFFParser=class{constructor(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}parse(){const e=this.properties,t=new d;this.cff=t;const n=this.parseHeader(),a=this.parseIndex(n.endPos),i=this.parseIndex(a.endPos),r=this.parseIndex(i.endPos),o=this.parseIndex(r.endPos),s=this.parseDict(i.obj.get(0)),l=this.createDict(v,s,t.strings);t.header=n.obj,t.names=this.parseNameIndex(a.obj),t.strings=this.parseStringIndex(r.obj),t.topDict=l,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS");const c=l.getByName("CharStrings"),u=this.parseIndex(c).obj,h=l.getByName("FontMatrix");h&&(e.fontMatrix=h);const p=l.getByName("FontBBox");let f,m;if(p&&(e.ascent=Math.max(p[3],p[1]),e.descent=Math.min(p[1],p[3]),e.ascentScaled=!0),t.isCIDFont){const e=this.parseIndex(l.getByName("FDArray")).obj;for(let n=0,a=e.count;n=t)throw new a.FormatError("Invalid CFF header");0!==n&&((0,a.info)("cff data is shifted"),e=e.subarray(n),this.bytes=e);const i=e[0],r=e[1],o=e[2],s=e[3];return{obj:new u(i,r,o,s),endPos:o}}parseDict(e){let t=0;function n(){let n=e[t++];return 30===n?function(){let n="";const a=15,i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],r=e.length;for(;t>4,s=15&r;if(o===a)break;if(n+=i[o],s===a)break;n+=i[s]}return parseFloat(n)}():28===n?(n=e[t++],n=(n<<24|e[t++]<<16)>>16,n):29===n?(n=e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n):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,a.warn)('CFFParser_parseDict: "'+n+'" is a reserved command.'),NaN)}let i=[];const r=[];t=0;const o=e.length;for(;t10)return!1;let r=e.stackSize;const o=e.stack;let s=t.length;for(let d=0;d>16,d+=2,r++;else if(14===u){if(r>=4&&(r-=4,this.seacAnalysisEnabled))return e.seac=o.slice(r,r+4),!1;h=l[u]}else if(u>=32&&u<=246)o[r]=u-139,r++;else if(u>=247&&u<=254)o[r]=u<251?(u-247<<8)+t[d]+108:-(u-251<<8)-t[d]-108,d++,r++;else if(255===u)o[r]=(t[d]<<24|t[d+1]<<16|t[d+2]<<8|t[d+3])/65536,d+=4,r++;else if(19===u||20===u){if(e.hints+=r>>1,0===e.hints){t.copyWithin(d-1,d,-1),d-=1,s-=1;continue}d+=e.hints+7>>3,r%=2,h=l[u]}else{if(10===u||29===u){const t=10===u?n:i;if(!t)return h=l[u],(0,a.warn)("Missing subrsIndex for "+h.id),!1;let s=32768;t.count<1240?s=107:t.count<33900&&(s=1131);const c=o[--r]+s;if(c<0||c>=t.count||isNaN(c))return h=l[u],(0,a.warn)("Out of bounds subrIndex for "+h.id),!1;if(e.stackSize=r,e.callDepth++,!this.parseCharString(e,t.get(c),n,i))return!1;e.callDepth--,r=e.stackSize;continue}if(11===u)return e.stackSize=r,!0;if(0===u&&d===t.length)t[d-1]=14,h=l[14];else{if(9===u){t.copyWithin(d-1,d,-1),d-=1,s-=1;continue}h=l[u]}}if(h){if(h.stem&&(e.hints+=r>>1,3===u||23===u?e.hasVStems=!0:!e.hasVStems||1!==u&&18!==u||((0,a.warn)("CFF stem hints are in wrong order"),t[d-1]=1===u?3:23)),"min"in h&&!e.undefStack&&r=2&&h.stem?r%=2:r>1&&(0,a.warn)("Found too many parameters for stack-clearing command"),r>0&&(e.width=o[r-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(o,r),r+=h.stackDelta):h.stackClearing?r=0:h.resetStack?(r=0,e.undefStack=!1):h.undefStack&&(r=0,e.undefStack=!0,e.firstStackClearing=!1)}}return s=o.length&&((0,a.warn)("Invalid fd index for glyph index."),h=!1),h&&(f=o[e].privateDict,p=f.subrsIndex)}else n&&(p=n);if(h&&(h=this.parseCharString(d,e,p,i)),null!==d.width){const e=f.getByName("nominalWidthX");c[u]=e+d.width}else{const e=f.getByName("defaultWidthX");c[u]=e}null!==d.seac&&(l[u]=d.seac),h||t.set(u,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}}emptyPrivateDictionary(e){const t=this.createDict(y,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private"))return void this.emptyPrivateDictionary(e);const t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length)return void e.removeByName("Private");const n=t[0],a=t[1];if(0===n||a>=this.bytes.length)return void this.emptyPrivateDictionary(e);const i=a+n,r=this.bytes.subarray(a,i),o=this.parseDict(r),s=this.createDict(y,o,e.strings);if(e.privateDict=s,0===s.getByName("ExpansionFactor")&&s.setByName("ExpansionFactor",.06),!s.getByName("Subrs"))return;const l=s.getByName("Subrs"),c=a+l;if(0===l||c>=this.bytes.length)return void this.emptyPrivateDictionary(e);const d=this.parseIndex(c);s.subrsIndex=d.obj}parseCharsets(e,t,n,r){if(0===e)return new _(!0,b.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new _(!0,b.EXPERT,i.ExpertCharset);if(2===e)return new _(!0,b.EXPERT_SUBSET,i.ExpertSubsetCharset);const o=this.bytes,s=e,l=o[e++],c=[r?0:".notdef"];let d,u,h;switch(t-=1,l){case 0:for(h=0;h=65535)return void(0,a.warn)("Not enough space in charstrings to duplicate first glyph.");const e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}t.CFF=d;class u{constructor(e,t,n,a){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=a}}t.CFFHeader=u;class h{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?o[e]:e-s<=this.strings.length?this.strings[e-s]:o[0]}getSID(e){let t=o.indexOf(e);return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+s:-1)}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=h;class p{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=p;class f{constructor(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)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;for(const i of t)if(isNaN(i))return(0,a.warn)('Invalid CFFDict value: "'.concat(t,'" for key "').concat(e,'".')),!0;const n=this.types[e];return"num"!==n&&"sid"!==n&&"offset"!==n||(t=t[0]),this.values[e]=t,!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new a.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new a.FormatError("Invalid dictionary name ".concat(e,'"'));const t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){const t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const n of e){const e=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[e]=n[1],t.nameToKeyMap[n[1]]=e,t.types[e]=n[2],t.defaults[e]=n[3],t.opcodes[e]=Array.isArray(n[0])?n[0]:[n[0]],t.order.push(e)}return t}}const m=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class v extends f{static get tables(){return(0,a.shadow)(this,"tables",this.createTables(m))}constructor(e){super(v.tables,e),this.privateDict=null}}t.CFFTopDict=v;const g=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class y extends f{static get tables(){return(0,a.shadow)(this,"tables",this.createTables(g))}constructor(e){super(y.tables,e),this.subrsIndex=null}}t.CFFPrivateDict=y;const b={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class _{constructor(e,t,n,a){this.predefined=e,this.format=t,this.charset=n,this.raw=a}}t.CFFCharset=_;class x{constructor(e,t,n,a){this.predefined=e,this.format=t,this.encoding=n,this.raw=a}}class w{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=w;class C{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new a.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,n){if(!(e in this.offsets))throw new a.FormatError("Not tracking location of ".concat(e));const i=n.data,r=this.offsets[e];for(let o=0,s=t.length;o>24&255,i[s]=d>>16&255,i[l]=d>>8&255,i[c]=255&d}}}class S{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){try{this.data.push(...e)}catch{this.data=this.data.concat(e)}this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);const i=this.compileNameIndex(e.names);if(t.add(i),e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(const n of e.fdArray){let e=t.slice(0);n.hasName("FontMatrix")&&(e=a.Util.transform(e,n.getByName("FontMatrix"))),n.setByName("FontMatrix",e)}}const r=e.topDict.getByName("XUID");(null===r||void 0===r?void 0:r.length)>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);let o=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(o.output);const s=o.trackers[0],l=this.compileStringIndex(e.strings.strings);t.add(l);const c=this.compileIndex(e.globalSubrIndex);if(t.add(c),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)s.setEntryLocation("Encoding",[e.encoding.format],t);else{const n=this.compileEncoding(e.encoding);s.setEntryLocation("Encoding",[t.length],t),t.add(n)}const d=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);s.setEntryLocation("charset",[t.length],t),t.add(d);const u=this.compileCharStrings(e.charStrings);if(s.setEntryLocation("CharStrings",[t.length],t),t.add(u),e.isCIDFont){s.setEntryLocation("FDSelect",[t.length],t);const n=this.compileFDSelect(e.fdSelect);t.add(n),o=this.compileTopDicts(e.fdArray,t.length,!0),s.setEntryLocation("FDArray",[t.length],t),t.add(o.output);const a=o.trackers;this.compilePrivateDicts(e.fdArray,a,t)}return this.compilePrivateDicts([e.topDict],[s],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,a.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();const n=S.EncodeFloatRegExp.exec(t);if(n){const a=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*a)/a).toString()}let a,i,r="";for(a=0,i=t.length;a=-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],t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new p;for(const n of e){const e=Math.min(n.length,127);let i=new Array(e);for(let t=0;t"~"||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_"),i[t]=e}i=i.join(""),""===i&&(i="Bad_Font_Name"),t.add((0,a.stringToBytes)(i))}return this.compileIndex(t)}compileTopDicts(e,t,n){const a=[];let i=new p;for(const r of e){n&&(r.removeByName("CIDFontVersion"),r.removeByName("CIDFontRevision"),r.removeByName("CIDFontType"),r.removeByName("CIDCount"),r.removeByName("UIDBase"));const e=new C,o=this.compileDict(r,e);a.push(e),i.add(o),e.offset(t)}return i=this.compileIndex(i,a),{trackers:a,output:i}}compilePrivateDicts(e,t,n){for(let i=0,r=e.length;i>8&255,255&o]);else{r=new Uint8Array(1+2*o),r[0]=0;let t=0;const i=e.charset.length;let s=!1;for(let o=1;o>8&255,r[o+1]=255&l}}return this.compileTypedArray(r)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){const t=e.format;let n,a;switch(t){case 0:for(n=new Uint8Array(1+e.fdSelect.length),n[0]=t,a=0;a>8&255,255&i,r];for(a=1;a>8&255,255&a,t),r=t)}const s=(o.length-3)/3;o[1]=s>>8&255,o[2]=255&s,o.push(a>>8&255,255&a),n=new Uint8Array(o)}return this.compileTypedArray(n)}compileTypedArray(e){return Array.from(e)}compileIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.objects,a=n.length;if(0===a)return[0,0];const i=[a>>8&255,255&a];let r,o,s=1;for(r=0;r>8&255,255&l):3===o?i.push(l>>16&255,l>>8&255,255&l):i.push(l>>>24&255,l>>16&255,l>>8&255,255&l),n[r]&&(l+=n[r].length);for(r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0,t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return o;case"StandardEncoding":return r;case"MacRomanEncoding":return i;case"SymbolSetEncoding":return s;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return n;case"MacExpertEncoding":return a;default:return null}};const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=n;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=i;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=r;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=o;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=s;const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.normalizeFontName=function(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")},t.recoverGlyphName=l,t.type1FontGlyphMapping=function(e,t,n){const r=Object.create(null);let o,c,d;const u=!!(e.flags&s.Symbolic);if(e.isInternalFont)for(d=t,c=0;c=0?o:0;else if(e.baseEncodingName)for(d=(0,a.getEncoding)(e.baseEncodingName),c=0;c=0?o:0;else if(u)for(c in t)r[c]=t[c];else for(d=a.StandardEncoding,c=0;c=0?o:0;const h=e.differences;let p;if(h)for(c in h){const e=h[c];if(o=n.indexOf(e),-1===o){p||(p=(0,i.getGlyphsUnicode)());const t=l(e,p);t!==e&&(o=n.indexOf(t))}r[c]=o>=0?o:0}return r};var a=n(37),i=n(39),r=n(40),o=n(2);t.SEAC_ANALYSIS_ENABLED=!0;const s={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function l(e,t){if(void 0!==t[e])return e;const n=(0,r.getUnicodeForGlyph)(e,t);if(-1!==n)for(const a in t)if(t[a]===n)return a;return(0,o.info)("Unable to recover a standard glyph name for: "+e),e}t.FontFlags=s,t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getGlyphsUnicode=t.getDingbatsGlyphsUnicode=void 0;var a=n(3);const i=(0,a.getLookupTableFactory)((function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595;e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524;e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663;e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}));t.getGlyphsUnicode=i;const r=(0,a.getLookupTableFactory)((function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0}));t.getDingbatsGlyphsUnicode=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearUnicodeCaches=function(){o.clear()},t.getCharUnicodeCategory=function(e){const t=o.get(e);if(t)return t;const n=e.match(r),a={isWhitespace:!(null===n||void 0===n||!n[1]),isZeroWidthDiacritic:!(null===n||void 0===n||!n[2]),isInvisibleFormatMark:!(null===n||void 0===n||!n[3])};return o.set(e,a),a},t.getUnicodeForGlyph=function(e,t){let n=t[e];if(void 0!==n)return n;if(!e)return-1;if("u"===e[0]){const t=e.length;let a;if(7===t&&"n"===e[1]&&"i"===e[2])a=e.substring(3);else{if(!(t>=5&&t<=7))return-1;a=e.substring(1)}if(a===a.toUpperCase()&&(n=parseInt(a,16),n>=0))return n}return-1},t.getUnicodeRangeFor=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(-1!==t){const n=i[t];for(let a=0,i=n.length;a=n[a]&&e<=n[a+1])return t}for(let n=0,a=i.length;n=t[a]&&e<=t[a+1])return n}return-1},t.mapSpecialUnicodeValues=function(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?a()[e]||e:173===e?45:e};const a=(0,n(3).getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120})),i=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]],r=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),o=new Map},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){const t=(0,i.normalizeFontName)(e);return r()[t]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0,t.isKnownFontName=function(e){const t=(0,i.normalizeFontName)(e);return!!(r()[t]||s()[t]||l()[t]||c()[t])};var a=n(3),i=n(38);const r=(0,a.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",e["Arial-BoldMT-Bold"]="Helvetica-Bold",e["Arial-ItalicMT-Italic"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=r;const o=(0,a.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="LiberationSans-Regular.ttf",e["Helvetica-Bold"]="LiberationSans-Bold.ttf",e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",e["Helvetica-Oblique"]="LiberationSans-Italic.ttf",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));t.getFontNameToFileMap=o;const s=(0,a.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.Impact="Helvetica",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica"}));t.getNonStdFontMap=s;const l=(0,a.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinit\xe9"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=l;const c=(0,a.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0}));t.getSymbolsFonts=c;const d=(0,a.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=d;const u=(0,a.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=u;const h=(0,a.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var a=n(2);t.ToUnicodeMap=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1}amend(e){for(const t in e)this._map[t]=e[t]}},t.IdentityToUnicodeMap=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,a.unreachable)("Should not call amend()")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var a=n(35),i=n(38),r=n(2);t.CFFFont=class{constructor(e,t){this.properties=t;const n=new a.CFFParser(e,t,i.SEAC_ANALYSIS_ENABLED);this.cff=n.parse(),this.cff.duplicateFirstGlyph();const o=new a.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=o.compile()}catch{(0,r.warn)("Failed to compile font "+t.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,{cidToGidMap:n,cMap:a}=t,r=e.charset.charset;let o,s;if(t.composite){let t,i;if((null===n||void 0===n?void 0:n.length)>0){t=Object.create(null);for(let e=0,a=n.length;e=0){const t=n[e];t&&(i[r]=t)}}i.length>0&&(this.properties.builtInEncoding=i)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var a=n(2),i=n(35),r=n(39),o=n(37),s=n(8);function l(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return e[t]<<8|e[t+1]}function d(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function u(e,t){return e[t]<<24>>24}function h(e,t){return d(e,t)/16384}function p(e){const t=e.length;let n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function f(e,t,n){const i=1===c(e,t+2)?l(e,t+8):l(e,t+16),r=c(e,t+i);let o,s,d;if(4===r){c(e,t+i+2);const n=c(e,t+i+6)>>1;for(s=t+i+14,o=[],d=0;d>1;n0;)m.push({flags:l})}for(n=0;n>1,I=!0;break;case 4:u+=c.pop(),r(d,u),I=!0;break;case 5:for(;c.length>0;)d+=c.shift(),u+=c.shift(),s(d,u);break;case 6:for(;c.length>0&&(d+=c.shift(),s(d,u),0!==c.length);)u+=c.shift(),s(d,u);break;case 7:for(;c.length>0&&(u+=c.shift(),s(d,u),0!==c.length);)d+=c.shift(),s(d,u);break;case 8:for(;c.length>0;)b=d+c.shift(),x=u+c.shift(),_=b+c.shift(),w=x+c.shift(),d=_+c.shift(),u=w+c.shift(),l(b,x,_,w,d,u);break;case 10:if(k=c.pop(),j=null,n.isCFFCIDFont){const e=n.fdSelect.getFDIndex(i);if(e>=0&&eMath.abs(u-t)?d+=c.shift():u+=c.shift(),l(b,x,_,w,d,u);break;default:throw new a.FormatError("unknown operator: 12 ".concat(F))}break;case 14:if(c.length>=4){const e=c.pop(),a=c.pop();u=c.pop(),d=c.pop(),t.push({cmd:"save"},{cmd:"translate",args:[d,u]});let i=v(n.cmap,String.fromCharCode(n.glyphNameMap[o.StandardEncoding[e]]));y(n.glyphs[i.glyphId],t,n,i.glyphId),t.push({cmd:"restore"}),i=v(n.cmap,String.fromCharCode(n.glyphNameMap[o.StandardEncoding[a]])),y(n.glyphs[i.glyphId],t,n,i.glyphId)}return;case 19:case 20:h+=c.length>>1,m+=h+7>>3,I=!0;break;case 21:u+=c.pop(),d+=c.pop(),r(d,u),I=!0;break;case 22:d+=c.pop(),r(d,u),I=!0;break;case 24:for(;c.length>2;)b=d+c.shift(),x=u+c.shift(),_=b+c.shift(),w=x+c.shift(),d=_+c.shift(),u=w+c.shift(),l(b,x,_,w,d,u);d+=c.shift(),u+=c.shift(),s(d,u);break;case 25:for(;c.length>6;)d+=c.shift(),u+=c.shift(),s(d,u);b=d+c.shift(),x=u+c.shift(),_=b+c.shift(),w=x+c.shift(),d=_+c.shift(),u=w+c.shift(),l(b,x,_,w,d,u);break;case 26:for(c.length%2&&(d+=c.shift());c.length>0;)b=d,x=u+c.shift(),_=b+c.shift(),w=x+c.shift(),d=_,u=w+c.shift(),l(b,x,_,w,d,u);break;case 27:for(c.length%2&&(u+=c.shift());c.length>0;)b=d+c.shift(),x=u,_=b+c.shift(),w=x+c.shift(),d=_+c.shift(),u=w,l(b,x,_,w,d,u);break;case 28:c.push((f[m]<<24|f[m+1]<<16)>>16),m+=2;break;case 29:k=c.pop()+n.gsubrsBias,j=n.gsubrs[k],j&&e(j);break;case 30:for(;c.length>0&&(b=d,x=u+c.shift(),_=b+c.shift(),w=x+c.shift(),d=_+c.shift(),u=w+(1===c.length?c.shift():0),l(b,x,_,w,d,u),0!==c.length);)b=d+c.shift(),x=u,_=b+c.shift(),w=x+c.shift(),u=w+c.shift(),d=_+(1===c.length?c.shift():0),l(b,x,_,w,d,u);break;case 31:for(;c.length>0&&(b=d+c.shift(),x=u,_=b+c.shift(),w=x+c.shift(),u=w+c.shift(),d=_+(1===c.length?c.shift():0),l(b,x,_,w,d,u),0!==c.length);)b=d,x=u+c.shift(),_=b+c.shift(),w=x+c.shift(),d=_+c.shift(),u=w+(1===c.length?c.shift():0),l(b,x,_,w,d,u);break;default:if(F<32)throw new a.FormatError("unknown operator: ".concat(F));F<247?c.push(F-139):F<251?c.push(256*(F-247)+f[m++]+108):F<255?c.push(256*-(F-251)-f[m++]-108):(c.push((f[m]<<24|f[m+1]<<16|f[m+2]<<8|f[m+3])/65536),m+=4)}I&&(c.length=0)}}(e)}const b=[];class _{constructor(e){this.constructor===_&&(0,a.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const{charCode:t,glyphId:n}=v(this.cmap,e);let a=this.compiledGlyphs[n];if(!a)try{a=this.compileGlyph(this.glyphs[n],n),this.compiledGlyphs[n]=a}catch(i){throw this.compiledGlyphs[n]=b,void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=n),i}return void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=n),a}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return b;let n=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);e>=0&&e2*c(e,t));const r=[];let o=i(t,0);for(let s=a;s{Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0;var a=n(3);const i=(0,a.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,a.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,a.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,a.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,a.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,a.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,a.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,a.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,a.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,a.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,a.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=i;const r=(0,a.getLookupTableFactory)((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));t.getFontBasicMetrics=r},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0,t.GlyfTable=class{constructor(e){let{glyfTable:t,isGlyphLocationsLong:a,locaTable:i,numGlyphs:r}=e;this.glyphs=[];const o=new DataView(i.buffer,i.byteOffset,i.byteLength),s=new DataView(t.buffer,t.byteOffset,t.byteLength),l=a?4:2;let c=a?o.getUint32(0):2*o.getUint16(0),d=0;for(let u=0;ue+(t.getSize()+3&-4)),0)}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),n=e>131070,a=n?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*a));n?i.setUint32(0,0):i.setUint16(0,0);let r=0,o=0;for(const s of this.glyphs)r+=s.write(r,t),r=r+3&-4,o+=a,n?i.setUint32(o,r):i.setUint16(o,r>>1);return{isLocationLong:n,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,n=this.glyphs.length;te+t.getSize()),0);return this.header.getSize()+e}write(e,t){if(!this.header)return 0;const n=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(const a of this.composites)e+=a.write(e,t);return e-n}scale(e){if(!this.header)return;const t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(const n of this.composites)n.scale(t,e)}}class a{constructor(e){let{numberOfContours:t,xMin:n,yMin:a,xMax:i,yMax:r}=e;this.numberOfContours=t,this.xMin=n,this.yMin=a,this.xMax=i,this.yMax=r}static parse(e,t){return[10,new a({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}class i{constructor(e){let{flags:t,xCoordinates:n,yCoordinates:a}=e;this.xCoordinates=n,this.yCoordinates=a,this.flags=t}}class r{constructor(e){let{contours:t,instructions:n}=e;this.contours=t,this.instructions=n}static parse(e,t,n){const a=[];for(let i=0;i255?e+=2:s>0&&(e+=1),t=r,s=Math.abs(o-n),s>255?e+=2:s>0&&(e+=1),n=o}}return e}write(e,t){const n=e,a=[],i=[],r=[];let o=0,s=0;for(const l of this.contours){for(let e=0,t=l.xCoordinates.length;e=0?18:2,a.push(e)):a.push(c)}o=n;const d=l.yCoordinates[e];if(c=d-s,0===c)t|=32,i.push(0);else{const e=Math.abs(c);e<=255?(t|=c>=0?36:4,i.push(e)):i.push(c)}s=d,r.push(t)}t.setUint16(e,a.length-1),e+=2}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(const l of r)t.setUint8(e++,l);for(let l=0,c=a.length;l=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}write(e,t){const n=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-n}scale(e,t){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var a=n(3),i=n(2);function r(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function o(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 s(e,t,n){if(n instanceof Uint8Array)e.set(n,t);else if("string"===typeof n)for(let a=0,i=n.length;an;)n<<=1,a++;const i=n*t;return{range:i,entry:a,rangeShift:t*e-i}}toArray(){let e=this.sfnt;const t=this.tables,n=Object.keys(t);n.sort();const c=n.length;let d,u,h,p,f,m=12+16*c;const v=[m];for(d=0;d>>0,v.push(m);const g=new Uint8Array(m);for(d=0;d>>0;o(g,m+4,e),o(g,m+8,v[d]),o(g,m+12,t[f].length),m+=16}return g}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}t.OpenTypeFileBuilder=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var a=n(35),i=n(2),r=n(38),o=n(3),s=n(8),l=n(49);function c(e,t,n){const a=e.length,i=t.length,r=a-i;let s=n,l=!1;for(;s=i){for(s+=n;s=0&&(a[e]=i)}return(0,r.type1FontGlyphMapping)(e,a,n)}hasGlyphId(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}getSeacs(e){const t=[];for(let n=0,a=e.length;n0;n--)t[n]-=t[n-1];f.setByName(e,t)}o.topDict.privateDict=f;const v=new a.CFFIndex;for(u=0,h=i.length;u{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var a=n(37),i=n(3),r=n(8),o=n(2);const s=[4],l=[5],c=[6],d=[7],u=[8],h=[12,35],p=[14],f=[21],m=[22],v=[30],g=[31];class y{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(e,t,n){const a=e.length;let i,r,y,b=!1;for(let _=0;_a)return!0;const i=a-e;for(let r=i;r>8&255,255&e):(e=65536*e|0,this.output.push(255,e>>24&255,e>>16&255,e>>8&255,255&e))}return this.output.push(...t),n?this.stack.splice(i,e):this.stack.length=0,!1}}function b(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function _(e,t,n){if(n>=e.length)return new Uint8Array(0);let a,i,r=0|t;for(a=0;a>8,r=52845*(t+r)+22719&65535}return s}function x(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class{constructor(e,t,n){if(t){const t=e.getBytes(),n=!((b(t[0])||(0,i.isWhiteSpace)(t[0]))&&b(t[1])&&b(t[2])&&b(t[3])&&b(t[4])&&b(t[5])&&b(t[6])&&b(t[7]));e=new r.Stream(n?_(t,55665,4):function(e,t,n){let a=0|t;const i=e.length,r=new Uint8Array(i>>>1);let o,s;for(o=0,s=0;o>8,a=52845*(e+a)+22719&65535}}return r.slice(n,s)}(t,55665,4))}this.seacAnalysisEnabled=!!n,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();const e=[];for(;;){const t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken();return parseFloat(e||0)}readInt(){const e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}if(x(t))return this.nextChar(),String.fromCharCode(t);let n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,i.isWhiteSpace)(t)&&!x(t));return n}readCharStrings(e,t){return-1===t?e:_(e,4330,t)}extractFontProgram(e){const t=this.stream,n=[],a=[],i=Object.create(null);i.lenIV=4;const r={subrs:[],charstrings:[],properties:{privateData:i}};let o,s,l,c;for(;null!==(o=this.getToken());)if("/"===o)switch(o=this.getToken(),o){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();o=this.getToken(),null!==o&&"end"!==o;){if("/"!==o)continue;const e=this.getToken();s=this.readInt(),this.getToken(),l=s>0?t.getBytes(s):new Uint8Array(0),c=r.properties.privateData.lenIV;const n=this.readCharStrings(l,c);this.nextChar(),o=this.getToken(),"noaccess"===o?this.getToken():"/"===o&&this.prevChar(),a.push({glyph:e,encoded:n})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const e=this.readInt();s=this.readInt(),this.getToken(),l=s>0?t.getBytes(s):new Uint8Array(0),c=r.properties.privateData.lenIV;const a=this.readCharStrings(l,c);this.nextChar(),o=this.getToken(),"noaccess"===o&&this.getToken(),n[e]=a}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const e=this.readNumberArray();e.length>0&&e.length;break;case"StemSnapH":case"StemSnapV":r.properties.privateData[o]=this.readNumberArray();break;case"StdHW":case"StdVW":r.properties.privateData[o]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":r.properties.privateData[o]=this.readNumber();break;case"ExpansionFactor":r.properties.privateData[o]=this.readNumber()||.06;break;case"ForceBold":r.properties.privateData[o]=this.readBoolean()}for(const{encoded:d,glyph:u}of a){const t=new y,a=t.convert(d,n,this.seacAnalysisEnabled);let i=t.output;a&&(i=[14]);const o={glyphName:u,charstring:i,width:t.width,lsb:t.lsb,seac:t.seac};if(".notdef"===u?r.charstrings.unshift(o):r.charstrings.push(o),e.builtInEncoding){const n=e.builtInEncoding.indexOf(u);n>-1&&void 0===e.widths[n]&&n>=e.firstChar&&n<=e.lastChar&&(e.widths[n]=t.width)}}return r}extractFontHeader(e){let t;for(;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":const n=this.readNumberArray();e.fontMatrix=n;break;case"Encoding":const i=this.getToken();let r;if(/^\d+$/.test(i)){r=[];const e=0|parseInt(i,10);this.getToken();for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.clearPatternCaches=function(){g=Object.create(null)},t.getTilingPatternIR=function(e,t,n){const i=t.getArray("Matrix"),r=a.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(r[2]-r[0]===0||r[3]-r[1]===0)throw new a.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(r,"]."));return["TilingPattern",n,e,i,r,o,s,l,c]};var a=n(2),i=n(5),o=n(12),s=n(3);const l=2,c=3,d=4,u=5,h=6,p=7;t.Pattern=class{constructor(){(0,a.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,n,r,o){const f=e instanceof i.BaseStream?e.dict:e,v=f.get("ShadingType");try{switch(v){case l:case c:return new m(f,t,n,r,o);case d:case u:case h:case p:return new b(e,t,n,r,o);default:throw new a.FormatError("Unsupported ShadingType: "+v)}}catch(g){if(g instanceof s.MissingDataException)throw g;return(0,a.warn)(g),new _}}};class f{constructor(){this.constructor===f&&(0,a.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,a.unreachable)("Abstract method `getIR` called.")}}r(f,"SMALL_NUMBER",1e-6);class m extends f{constructor(e,t,n,i,r){super(),this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType");const s=o.ColorSpace.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:t,resources:n,pdfFunctionFactory:i,localColorSpaceCache:r}),l=e.getArray("BBox");this.bbox=Array.isArray(l)&&4===l.length?a.Util.normalizeRect(l):null;let d=0,u=1;if(e.has("Domain")){const t=e.getArray("Domain");d=t[0],u=t[1]}let h=!1,p=!1;if(e.has("Extend")){const t=e.getArray("Extend");h=t[0],p=t[1]}if(this.shadingType===c&&(!h||!p)){const[e,t,n,i,r,o]=this.coordsArr,s=Math.hypot(e-i,t-r);n<=o+s&&o<=n+s&&(0,a.warn)("Unsupported radial gradient.")}this.extendStart=h,this.extendEnd=p;const m=e.getRaw("Function"),v=i.createFromArray(m),g=(u-d)/840,y=this.colorStops=[];if(d>=u||g<=0)return void(0,a.info)("Bad shading domain.");const b=new Float32Array(s.numComps),_=new Float32Array(1);let x,w=0;_[0]=d,v(_,0,b,0);let C=s.getRgb(b,0);const S=a.Util.makeHexColor(C[0],C[1],C[2]);y.push([0,S]);let A=1;_[0]=d+g,v(_,0,b,0);let k=s.getRgb(b,0),j=k[0]-C[0]+1,I=k[1]-C[1]+1,F=k[2]-C[2]+1,T=k[0]-C[0]-1,P=k[1]-C[1]-1,E=k[2]-C[2]-1;for(let o=2;o<840;o++){_[0]=d+o*g,v(_,0,b,0),x=s.getRgb(b,0);const e=o-w;if(j=Math.min(j,(x[0]-C[0]+1)/e),I=Math.min(I,(x[1]-C[1]+1)/e),F=Math.min(F,(x[2]-C[2]+1)/e),T=Math.max(T,(x[0]-C[0]-1)/e),P=Math.max(P,(x[1]-C[1]-1)/e),E=Math.max(E,(x[2]-C[2]-1)/e),!(T<=j&&P<=I&&E<=F)){const e=a.Util.makeHexColor(k[0],k[1],k[2]);y.push([A/840,e]),j=x[0]-k[0]+1,I=x[1]-k[1]+1,F=x[2]-k[2]+1,T=x[0]-k[0]-1,P=x[1]-k[1]-1,E=x[2]-k[2]-1,w=A,C=k}A=o,k=x}const O=a.Util.makeHexColor(k[0],k[1],k[2]);y.push([1,O]);let N="transparent";e.has("Background")&&(x=s.getRgb(e.get("Background"),0),N=a.Util.makeHexColor(x[0],x[1],x[2])),h||(y.unshift([0,N]),y[1][0]+=f.SMALL_NUMBER),p||(y.at(-1)[0]-=f.SMALL_NUMBER,y.push([1,N])),this.colorStops=y}getIR(){const e=this.coordsArr,t=this.shadingType;let n,i,r,o,s;return t===l?(i=[e[0],e[1]],r=[e[2],e[3]],o=null,s=null,n="axial"):t===c?(i=[e[0],e[1]],r=[e[3],e[4]],o=e[2],s=e[5],n="radial"):(0,a.unreachable)("getPattern type unknown: ".concat(t)),["RadialAxial",n,this.bbox,this.colorStops,i,r,o,s]}}class v{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;const n=t.numComps;this.tmpCompsBuf=new Float32Array(n);const a=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(a):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos0)return!0;const e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)}readBits(e){let 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();const e=this.stream.getByte();return this.buffer=e&(1<>n)>>>0}if(8===e&&0===n)return this.stream.getByte();for(;n>n}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const e=this.context.bitsPerCoordinate,t=this.readBits(e),n=this.readBits(e),a=this.context.decode,i=e<32?1/((1<r?r:e,t=t>o?o:t,n=n{Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){const t=function(e){const t=h(e);if(!t)return null;const{baseWidths:n,baseMapping:a,factors:i}=t,r=i?n.map(((e,t)=>e*i[t])):n;let o,s=-2;const l=[];for(const[c,d]of a.map(((e,t)=>[e,t])).sort(((e,t)=>{let[n]=e,[a]=t;return n-a})))-1!==c&&(c===s+1?(o.push(r[d]),s+=1):(s=c,o=[r[d]],l.push(c,o)));return l}(e),n=new i.Dict(null);n.set("BaseFont",i.Name.get(e)),n.set("Type",i.Name.get("Font")),n.set("Subtype",i.Name.get("CIDFontType2")),n.set("Encoding",i.Name.get("Identity-H")),n.set("CIDToGIDMap",i.Name.get("Identity")),n.set("W",t),n.set("FirstChar",t[0]),n.set("LastChar",t.at(-2)+t.at(-1).length-1);const a=new i.Dict(null);n.set("FontDescriptor",a);const r=new i.Dict(null);return r.set("Ordering","Identity"),r.set("Registry","Adobe"),r.set("Supplement",0),n.set("CIDSystemInfo",r),n},t.getXfaFontName=h;var a=n(52),i=n(4),r=n(53),o=n(54),s=n(55),l=n(56),c=n(3),d=n(38);const u=(0,c.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:s.MyriadProRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:s.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:s.MyriadProBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:s.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:s.MyriadProItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:s.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:s.MyriadProBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:s.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:a.CalibriRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:a.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:a.CalibriBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:a.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:a.CalibriItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:a.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:a.CalibriBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:a.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:r.HelveticaRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:r.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:r.HelveticaBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:r.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:r.HelveticaItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:r.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.HelveticaBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:r.HelveticaBoldItalicMetrics}}));function h(e){const t=(0,d.normalizeFontName)(e);return u()[t]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0,t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0,t.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},t.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0,t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0,t.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0,t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=function(e){let t;if(e instanceof a.Dict)t=e;else{if(!(e instanceof s.BaseStream))return!1;t=e.dict}return t.has("FunctionType")};var a=n(4),i=n(2),o=n(58),s=n(5),l=n(59);function c(e){if(!Array.isArray(e))return null;const t=e.length;for(let n=0;n>l)*d,c&=(1<n?e=n:e0&&(h=s[u-1]);let p=r[1];u>1,f=s.length>>1,m=new h(u),v=Object.create(null);let g=8192;const y=new Float32Array(f);return function(e,t,n,a){let i,r,o="";const s=y;for(i=0;ie&&(r=e)),d[i]=r}g>0&&(g--,v[o]=d),n.set(d,a)}}}class u{constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(e){if(this.stack.length+e>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const t=this.stack;for(let n=t.length-e,a=e-1;a>=0;a--,n++)t.push(t[n])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const n=this.stack,a=n.length-e,i=n.length-1,r=a+(t-Math.floor(t/e)*e);for(let o=a,s=i;o0?t.push(s<>l);break;case"ceiling":s=t.pop(),t.push(Math.ceil(s));break;case"copy":s=t.pop(),t.copy(s);break;case"cos":s=t.pop(),t.push(Math.cos(s%360/180*Math.PI));break;case"cvi":s=0|t.pop(),t.push(s);break;case"cvr":break;case"div":l=t.pop(),s=t.pop(),t.push(s/l);break;case"dup":t.copy(1);break;case"eq":l=t.pop(),s=t.pop(),t.push(s===l);break;case"exch":t.roll(2,1);break;case"exp":l=t.pop(),s=t.pop(),t.push(s**l);break;case"false":t.push(!1);break;case"floor":s=t.pop(),t.push(Math.floor(s));break;case"ge":l=t.pop(),s=t.pop(),t.push(s>=l);break;case"gt":l=t.pop(),s=t.pop(),t.push(s>l);break;case"idiv":l=t.pop(),s=t.pop(),t.push(s/l|0);break;case"index":s=t.pop(),t.index(s);break;case"le":l=t.pop(),s=t.pop(),t.push(s<=l);break;case"ln":s=t.pop(),t.push(Math.log(s));break;case"log":s=t.pop(),t.push(Math.log10(s));break;case"lt":l=t.pop(),s=t.pop(),t.push(s=t?new m(t):e.max<=t?e:new g(e,t)}class A{compile(e,t,n){const a=[],i=[],r=t.length>>1,o=n.length>>1;let s,l,c,d,u,h,p,v,g=0;for(let m=0;me.min&&(o.unshift("Math.max(",i,", "),o.push(")")),r{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var a=n(2),i=n(4),r=n(3);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new a.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}parse(){return this.nextToken(),this.expect(o.LBRACE),this.parseBlock(),this.expect(o.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(o.NUMBER))this.operators.push(this.prev.value);else if(this.accept(o.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(o.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(o.RBRACE),this.accept(o.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(o.LBRACE))throw new a.FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const n=this.operators.length;this.parseBlock(),this.expect(o.RBRACE),this.expect(o.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=n,this.operators[e+1]="jz"}}}};const o={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class s{static get opCache(){return(0,a.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(e){var t;return(t=s.opCache)[e]||(t[e]=new s(o.OPERATOR,e))}static get LBRACE(){return(0,a.shadow)(this,"LBRACE",new s(o.LBRACE,"{"))}static get RBRACE(){return(0,a.shadow)(this,"RBRACE",new s(o.RBRACE,"}"))}static get IF(){return(0,a.shadow)(this,"IF",new s(o.IF,"IF"))}static get IFELSE(){return(0,a.shadow)(this,"IFELSE",new s(o.IFELSE,"IFELSE"))}}t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,r.isWhiteSpace)(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 new s(o.NUMBER,this.getNumber());case 123:return this.nextChar(),s.LBRACE;case 125:return this.nextChar(),s.RBRACE}const n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));const a=n.join("");switch(a.toLowerCase()){case"if":return s.IF;case"ifelse":return s.IFELSE;default:return s.getOperator(a)}}getNumber(){let e=this.currentChar;const 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));const n=parseFloat(t.join(""));if(isNaN(n))throw new a.FormatError("Invalid floating point number: ".concat(n));return n}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RegionalImageCache=t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var a=n(2),i=n(4);class o{constructor(e){this.constructor===o&&(0,a.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(null===e||void 0===e?void 0:e.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}getByName(e){this._onlyRefs&&(0,a.unreachable)("Should not call `getByName` method.");const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,n){(0,a.unreachable)("Abstract method `set` called.")}}t.LocalImageCache=class extends o{set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalColorSpaceCache=class extends o{set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalFunctionCache=class extends o{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}},t.LocalGStateCache=class extends o{set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalTilingPatternCache=class extends o{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}},t.RegionalImageCache=class extends o{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}};class s{constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}get _byteSize(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get _cacheLimitReached(){return!(this._imageCache.size0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear(),this._imageCache.clear()}}r(s,"NUM_PAGES_THRESHOLD",2),r(s,"MIN_IMAGES_TO_CACHE",10),r(s,"MAX_BYTE_SIZE",5*a.MAX_IMAGE_SIZE_TO_CACHE),t.GlobalImageCache=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=!0;const m=e.length;if(0===m||n)return u(e,f,n);h.length=m,p.length=m;let v,g,y=0;for(v=0;v4?(f=!0,t=0):(f=!1,t=1));const b=[];for(v=0;v=0&&"ET"===p[e];--e)p[e]="EN";for(let e=v+1;e0&&(t=p[v-1]);let n=w;e+1A&&o(A)&&(j=A);for(A=k;A>=j;--A){let e=-1;for(v=0,g=b.length;v=0&&(d(h,e,v),e=-1):e<0&&(e=v);e>=0&&d(h,e,b.length)}for(v=0,g=h.length;v"!==e||(h[v]="")}return u(h.join(""),f)};var a=n(2);const i=["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"],r=["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){let a,i;for(a=t,i=e.length;a2&&void 0!==arguments[2]&&arguments[2]?n="ttb":t||(n="rtl"),{str:e,dir:n}}const h=[],p=[]},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFontSubstitution=function(e,t,n,h,p){const f=h=(0,a.normalizeFontName)(h);let m=e.get(f);if(m)return m;let v=c.get(h);if(!v)for(const[a,i]of d)if(h.startsWith(a)){h="".concat(i).concat(h.substring(a.length)),v=c.get(h);break}let g=!1;v||(v=c.get(p),g=!0);const y="".concat(t.getDocId(),"_s").concat(t.createFontId());if(!v){if(!(0,i.validateFontName)(h))return e.set(f,null),null;const t=/bold/gi.test(h),n=/oblique|italic/gi.test(h),a=t&&n&&l||t&&o||n&&s||r;return m={css:y,guessFallback:!0,loadedName:y,baseFontName:h,src:"local(".concat(h,")"),style:a},e.set(f,m),m}const b=[];g&&(0,i.validateFontName)(h)&&b.push("local(".concat(h,")"));const{style:_,ultimate:x}=u(v,b,n),w=null===x,C=w?"":",".concat(x);return m={css:"".concat(y).concat(C),guessFallback:w,loadedName:y,baseFontName:h,src:b.join(","),style:_},e.set(f,m),m};var a=n(38),i=n(3);const r={style:"normal",weight:"normal"},o={style:"normal",weight:"bold"},s={style:"italic",weight:"normal"},l={style:"italic",weight:"bold"},c=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:r,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:o,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:s,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:l,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:r,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:o,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:s,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:l,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:r,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:o,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:s,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:l,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:r,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:o,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:s,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:l,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:r,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:o,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:s,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:l,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:r}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),d=new Map([["Arial-Black","ArialBlack"]]);function u(e,t,n){let{alias:a,local:i,path:r,fallback:d,style:h,ultimate:p}=e,f=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],m=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";const g={style:null,ultimate:null};if(i){const e=v?" ".concat(v):"";for(const n of i)t.push("local(".concat(n).concat(e,")"))}if(a){const e=c.get(a),i=v||function(e){switch(e){case o:return"Bold";case s:return"Italic";case l:return"Bold Italic";default:if("bold"===(null===e||void 0===e?void 0:e.weight))return"Bold";if("italic"===(null===e||void 0===e?void 0:e.style))return"Italic"}return""}(h);Object.assign(g,u(e,t,n,f&&!d,m&&!r,i))}if(h&&(g.style=h),p&&(g.ultimate=p),f&&d){const e=c.get(d),{ultimate:a}=u(e,t,n,f,m&&!r,v);g.ultimate||(g.ultimate=a)}return m&&r&&n&&t.push("url(".concat(n).concat(r,")")),g}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageResizer=void 0;var a=n(2);class i{constructor(e,t){this._imgData=e,this._isMask=t}static needsToBeResized(e,t){if(e<=this._goodSquareLength&&t<=this._goodSquareLength)return!1;const{MAX_DIM:n}=this;if(e>n||t>n)return!0;const a=e*t;return this._hasMaxArea?a>this.MAX_AREA:!(a(this.MAX_AREA=this._goodSquareLength**2)))}static get MAX_DIM(){return(0,a.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,(0,a.shadow)(this,"MAX_AREA",this._guessMax(i._goodSquareLength,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){e>=0&&(this._hasMaxArea=!0,(0,a.shadow)(this,"MAX_AREA",e))}static setMaxArea(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}static _areGoodDims(e,t){try{const n=new OffscreenCanvas(e,t),a=n.getContext("2d");a.fillRect(0,0,1,1);const i=a.getImageData(0,0,1,1).data[3];return n.width=n.height=1,0!==i}catch{return!1}}static _guessMax(e,t,n,a){for(;e+n+11&&void 0!==arguments[1]&&arguments[1])._createImage()}async _createImage(){const e=this._encodeBMP(),t=new Blob([e.buffer],{type:"image/bmp"}),n=createImageBitmap(t),{MAX_AREA:a,MAX_DIM:r}=i,{_imgData:o}=this,{width:s,height:l}=o,c=Math.max(s/r,l/r,Math.sqrt(s*l/a)),d=Math.max(c,2),u=Math.round(10*(c+1.25))/10/d,h=Math.floor(Math.log2(u)),p=new Array(h+2).fill(2);p[0]=d,p.splice(-1,1,u/(1<>3,a=n+3&-4;if(n!==a){const e=new Uint8Array(a*t);let i=0;for(let o=0,s=t*n;o{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var a=n(2);const i=3285377520,r=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let a=0,i=e.length;a>>8,t[n++]=255&i)}}else{if(!(0,a.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,s=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,d=0,u=this.h1,h=this.h2;const p=3432918353,f=461845907,m=11601,v=13715;for(let a=0;a>>17,c=c*f&r|c*v&o,u^=c,u=u<<13|u>>>19,u=5*u+3864292196):(d=l[a],d=d*p&r|d*m&o,d=d<<15|d>>>17,d=d*f&r|d*v&o,h^=d,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,s){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*p&r|c*m&o,c=c<<15|c>>>17,c=c*f&r|c*v&o,1&i?u^=c:h^=c}this.h1=u,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&r|36045*e&o,t=4283543511*t&r|(2950163797*(t<<16|e>>>16)&r)>>>16,e^=t>>>1,e=444984403*e&r|60499*e&o,t=3301882366*t&r|(3120437893*(t<<16|e>>>16)&r)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var i=n(2);function o(e,t,n,a,i){let r=e;for(let s=0,l=t.length-1;s1e3&&(d=Math.max(d,p),f+=h+2,p=0,h=0),u.push({transform:e,x:p,y:f,w:t.width,h:t.height}),p+=t.width+2,h=Math.max(h,t.height)}const m=Math.max(d,p)+1,v=f+h+1,g=new Uint8Array(m*v*4),y=m<<2;for(let i=0;i=0;)e[r-4]=e[r],e[r-3]=e[r+1],e[r-2]=e[r+2],e[r-1]=e[r+3],e[r+t]=e[r+t-4],e[r+t+1]=e[r+t-3],e[r+t+2]=e[r+t-2],e[r+t+3]=e[r+t-1],r-=y}const b={width:m,height:v};if(e.isOffscreenCanvasSupported){const e=new OffscreenCanvas(m,v);e.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(g.buffer),m,v),0,0),b.bitmap=e.transferToImageBitmap(),b.data=null}else b.kind=i.ImageKind.RGBA_32BPP,b.data=g;return n.splice(o,4*c,i.OPS.paintInlineImageXObjectGroup),a.splice(o,4*c,[b,u]),o+1})),o(s,[i.OPS.save,i.OPS.transform,i.OPS.paintImageMaskXObject,i.OPS.restore],null,(function(e,t){const n=e.fnArray,a=(t-(e.iCurr-3))%4;switch(a){case 0:return n[t]===i.OPS.save;case 1:return n[t]===i.OPS.transform;case 2:return n[t]===i.OPS.paintImageMaskXObject;case 3:return n[t]===i.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(a))}),(function(e,t){const n=e.fnArray,a=e.argsArray,r=e.iCurr,o=r-3,s=r-2,l=r-1;let c=Math.floor((t-o)/4);if(c<10)return t-(t-o)%4;let d,u,h=!1;const p=a[l][0],f=a[s][0],m=a[s][1],v=a[s][2],g=a[s][3];if(m===v){h=!0,d=s+4;let e=l+4;for(let t=1;t=4&&n[r-4]===n[o]&&n[r-3]===n[s]&&n[r-2]===n[l]&&n[r-1]===n[c]&&a[r-4][0]===d&&a[r-4][1]===u&&(h++,p-=5);let f=p+4;for(let m=1;m=n)break}a=(a||s)[e[t]],a&&!Array.isArray(a)?(r.iCurr=t,t++,!a.checkFn||(0,a.checkFn)(r)?(i=a,a=null):a=null):t++}this.state=a,this.match=i,this.lastProcessed=t}flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=!t||e&i.RenderingIntentFlag.OPLIST?new l(this):new c(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}set isOffscreenCanvasSupported(e){this.optimizer.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=d.CHUNK_SIZE||this.weight>=d.CHUNK_SIZE_ABOUT&&(e===i.OPS.restore||e===i.OPS.endText))&&this.flush()}addImageOps(e,t,n){void 0!==n&&this.addOp(i.OPS.beginMarkedContentProps,["OC",n]),this.addOp(e,t),void 0!==n&&this.addOp(i.OPS.endMarkedContent,[])}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(i.OPS.dependency,[e]))}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof d){for(const t of e.dependencies)this.dependencies.add(t);for(let t=0,n=e.length;t0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();const n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}a=d,r(d,"CHUNK_SIZE",1e3),r(d,"CHUNK_SIZE_ABOUT",a.CHUNK_SIZE-5),t.OperatorList=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var a=n(2),i=n(28),r=n(5),o=n(12),s=n(18),l=n(62),c=n(26),d=n(30),u=n(4);function h(e,t,n,a){return(e=t+e*n)<0?e=0:e>a&&(e=a),e}function p(e,t,n,a,i,r){const o=i*r;let s;s=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);const l=n/i,c=a/r;let d,u,h,p,f=0;const m=new Uint16Array(i),v=n;for(d=0;d0&&Number.isInteger(i.height)&&i.height>0&&(i.width!==b||i.height!==_)&&((0,a.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),b=i.width,_=i.height),b<1||_<1)throw new a.FormatError("Invalid image width: ".concat(b," or height: ").concat(_));this.width=b,this.height=_,this.interpolate=v.get("I","Interpolate"),this.imageMask=v.get("IM","ImageMask")||!1,this.matte=v.get("Matte")||!1;let x=i.bitsPerComponent;if(!x&&(x=v.get("BPC","BitsPerComponent"),!x)){if(!this.imageMask)throw new a.FormatError("Bits per component missing in image: ".concat(this.imageMask));x=1}if(this.bpc=x,!this.imageMask){let e=v.getRaw("CS")||v.getRaw("ColorSpace");if(!e)switch((0,a.info)("JPX images (which do not require color spaces)"),i.numComps){case 1:e=u.Name.get("DeviceGray");break;case 3:e=u.Name.get("DeviceRGB");break;case 4:e=u.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(i.numComps," color components not supported."))}this.colorSpace=o.ColorSpace.parse({cs:e,xref:t,resources:s?n:null,pdfFunctionFactory:p,localColorSpaceCache:m}),this.numComps=this.colorSpace.numComps}if(this.decode=v.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,x)||h&&!o.ColorSpace.isDefaultDecode(this.decode,1))){var w;this.needsDecode=!0;const e=(1<>3)*a,l=t.byteLength;let c,d;if(!i||r&&s!==l?r?(c=new Uint8Array(s),c.set(t),c.fill(255,l)):c=new Uint8Array(t):c=t,r)for(d=0;d>7&1,o[h+1]=u>>6&1,o[h+2]=u>>5&1,o[h+3]=u>>4&1,o[h+4]=u>>3&1,o[h+5]=u>>2&1,o[h+6]=u>>1&1,o[h+7]=1&u,h+=8;if(h>=1}}else{let n=0;for(u=0,h=0,d=r;h>a;i<0?i=0:i>c&&(i=c),o[h]=i,u&=(1<s[a+1]){t=255;break}}l[u]=t}}}if(l)for(u=0,m=3,h=t*i;u0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.drawWidth,i=this.drawHeight,r={width:n,height:i,interpolate:this.interpolate,kind:0,data:null},o=this.numComps,s=this.width,d=this.height,u=this.bpc,h=s*o*u+7>>3,p=t&&l.ImageResizer.needsToBeResized(n,i);if(!e){let e;if("DeviceGray"===this.colorSpace.name&&1===u?e=a.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==u||this.needsDecode||(e=a.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&n===s&&i===d){const o=this.getImageBytes(d*h,{});if(t)return p?l.ImageResizer.createImage({data:o,kind:e,width:n,height:i,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,s,d,o);if(r.kind=e,r.data=o,this.needsDecode){(0,a.assert)(e===a.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const t=r.data;for(let e=0,n=t.length;e>3,s=this.getImageBytes(i*o,{internal:!0}),l=this.getComponents(s);let c,d;if(1===r){if(d=n*i,this.needsDecode)for(c=0;c{Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var a=n(3),i=n(2),r=n(4),o=n(67),s=n(5),l=n(68),c=n(12),d=n(69),u=n(59),h=n(70),p=n(72);function f(e){return e instanceof r.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}class m{constructor(e,t){if(this.pdfManager=e,this.xref=t,this._catDict=t.getCatalogObj(),!(this._catDict instanceof r.Dict))throw new i.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new r.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new u.GlobalImageCache,this.pageKidsCountCache=new r.RefSetCache,this.pageIndexCache=new r.RefSetCache,this.nonBlendModesSet=new r.RefSet,this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){const e=this._catDict.get("Version");if(e instanceof r.Name){if(a.PDF_VERSION_REGEXP.test(e.name))return(0,i.shadow)(this,"version",e.name);(0,i.warn)("Invalid PDF catalog version: ".concat(e.name))}return(0,i.shadow)(this,"version",null)}get lang(){const e=this._catDict.get("Lang");return(0,i.shadow)(this,"lang","string"===typeof e?(0,i.stringToPDFString)(e):null)}get needsRendering(){const e=this._catDict.get("NeedsRendering");return(0,i.shadow)(this,"needsRendering","boolean"===typeof e&&e)}get collection(){let e=null;try{const t=this._catDict.get("Collection");t instanceof r.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,i.shadow)(this,"collection",e)}get acroForm(){let e=null;try{const t=this._catDict.get("AcroForm");t instanceof r.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,i.shadow)(this,"acroForm",e)}get acroFormRef(){const e=this._catDict.getRaw("AcroForm");return(0,i.shadow)(this,"acroFormRef",e instanceof r.Ref?e:null)}get metadata(){const e=this._catDict.getRaw("Metadata");if(!(e instanceof r.Ref))return(0,i.shadow)(this,"metadata",null);let t=null;try{var n;const a=this.xref.fetch(e,!(null!==(n=this.xref.encrypt)&&void 0!==n&&n.encryptMetadata));if(a instanceof s.BaseStream&&a.dict instanceof r.Dict){const e=a.dict.get("Type"),n=a.dict.get("Subtype");if((0,r.isName)(e,"Metadata")&&(0,r.isName)(n,"XML")){const e=(0,i.stringToUTF8String)(a.getString());e&&(t=new h.MetadataParser(e).serializable)}}}catch(o){if(o instanceof a.MissingDataException)throw o;(0,i.info)('Skipping invalid Metadata: "'.concat(o,'".'))}return(0,i.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=this._readMarkInfo()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.warn)("Unable to read mark info.")}return(0,i.shadow)(this,"markInfo",e)}_readMarkInfo(){const e=this._catDict.get("MarkInfo");if(!(e instanceof r.Dict))return null;const t={Marked:!1,UserProperties:!1,Suspects:!1};for(const n in t){const a=e.get(n);"boolean"===typeof a&&(t[n]=a)}return t}get structTreeRoot(){let e=null;try{e=this._readStructTreeRoot()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.warn)("Unable read to structTreeRoot info.")}return(0,i.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){const e=this._catDict.getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e);if(!(t instanceof r.Dict))return null;const n=new p.StructTreeRoot(t,e);return n.init(),n}get toplevelPagesDict(){const e=this._catDict.get("Pages");if(!(e instanceof r.Dict))throw new i.FormatError("Invalid top-level pages dictionary.");return(0,i.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.warn)("Unable to read document outline.")}return(0,i.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this._catDict.get("Outlines");if(!(e instanceof r.Dict))return null;if(e=e.getRaw("First"),!(e instanceof r.Ref))return null;const t={items:[]},n=[{obj:e,parent:t}],a=new r.RefSet;a.put(e);const o=this.xref,s=new Uint8ClampedArray(3);for(;n.length>0;){const t=n.shift(),l=o.fetchIfRef(t.obj);if(null===l)continue;if(!l.has("Title"))throw new i.FormatError("Invalid outline item encountered.");const d={url:null,dest:null,action:null};m.parseDestDictionary({destDict:l,resultObj:d,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const u=l.get("Title"),h=l.get("F")||0,p=l.getArray("C"),f=l.get("Count");let v=s;!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(v=c.ColorSpace.singletons.rgb.getRgb(p,0));const g={action:d.action,attachment:d.attachment,dest:d.dest,url:d.url,unsafeUrl:d.unsafeUrl,newWindow:d.newWindow,setOCGState:d.setOCGState,title:(0,i.stringToPDFString)(u),color:v,count:Number.isInteger(f)?f:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};t.parent.items.push(g),e=l.getRaw("First"),e instanceof r.Ref&&!a.has(e)&&(n.push({obj:e,parent:g}),a.put(e)),e=l.getRaw("Next"),e instanceof r.Ref&&!a.has(e)&&(n.push({obj:e,parent:t.parent}),a.put(e))}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.warn)("Unable to read permissions.")}return(0,i.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof r.Dict))return null;let t=e.get("P");if("number"!==typeof t)return null;t+=2**32;const n=[];for(const a in i.PermissionFlag){const e=i.PermissionFlag[a];t&e&&n.push(e)}return n}get optionalContentConfig(){let e=null;try{const t=this._catDict.get("OCProperties");if(!t)return(0,i.shadow)(this,"optionalContentConfig",null);const n=t.get("D");if(!n)return(0,i.shadow)(this,"optionalContentConfig",null);const a=t.get("OCGs");if(!Array.isArray(a))return(0,i.shadow)(this,"optionalContentConfig",null);const o=[],s=[];for(const e of a){if(!(e instanceof r.Ref))continue;s.push(e);const t=this.xref.fetchIfRef(e);o.push({id:e.toString(),name:"string"===typeof t.get("Name")?(0,i.stringToPDFString)(t.get("Name")):null,intent:"string"===typeof t.get("Intent")?(0,i.stringToPDFString)(t.get("Intent")):null})}e=this._readOptionalContentConfig(n,s),e.groups=o}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.warn)("Unable to read optional content config: ".concat(t))}return(0,i.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,t){function n(e){const n=[];if(Array.isArray(e))for(const a of e)a instanceof r.Ref&&t.includes(a)&&n.push(a.toString());return n}function a(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;const a=[];for(const s of e){if(s instanceof r.Ref&&t.includes(s)){l.put(s),a.push(s.toString());continue}const e=o(s,n);e&&a.push(e)}if(n>0)return a;const i=[];for(const r of t)l.has(r)||i.push(r.toString());return i.length&&a.push({name:null,order:i}),a}function o(e,t){if(++t>c)return(0,i.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const n=s.fetchIfRef(e);if(!Array.isArray(n))return null;const r=s.fetchIfRef(n[0]);if("string"!==typeof r)return null;const o=a(n.slice(1),t);return o&&o.length?{name:(0,i.stringToPDFString)(r),order:o}:null}const s=this.xref,l=new r.RefSet,c=10;return{name:"string"===typeof e.get("Name")?(0,i.stringToPDFString)(e.get("Name")):null,creator:"string"===typeof e.get("Creator")?(0,i.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof r.Name?e.get("BaseState").name:null,on:n(e.get("ON")),off:n(e.get("OFF")),order:a(e.get("Order")),groups:null}}setActualNumPages(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new i.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,i.shadow)(this,"_pagesCount",e)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),t=Object.create(null);if(e instanceof o.NameTree)for(const[n,a]of e.getAll()){const e=f(a);e&&(t[(0,i.stringToPDFString)(n)]=e)}else e instanceof r.Dict&&e.forEach((function(e,n){const a=f(n);a&&(t[e]=a)}));return(0,i.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests();if(t instanceof o.NameTree){const n=f(t.get(e));if(n)return n;const a=this.destinations[e];if(a)return(0,i.warn)('Found "'.concat(e,'" at an incorrect position in the NameTree.')),a}else if(t instanceof r.Dict){const n=f(t.get(e));if(n)return n}return null}_readDests(){const e=this._catDict.get("Names");return null!==e&&void 0!==e&&e.has("Dests")?new o.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,i.warn)("Unable to read page labels.")}return(0,i.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this._catDict.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let n=null,s="";const l=new o.NumberTree(e,this.xref).getAll();let c="",d=1;for(let o=0,u=this.numPages;o=1))throw new i.FormatError("Invalid start in PageLabel dictionary.");d=t}else d=1}switch(n){case"D":c=d;break;case"R":case"r":c=(0,a.toRomanNumerals)(d,"r"===n);break;case"A":case"a":const e=26,t="a"===n?97:65,r=d-1;c=String.fromCharCode(t+r%e).repeat(Math.floor(r/e)+1);break;default:if(n)throw new i.FormatError('Invalid style "'.concat(n,'" in PageLabel dictionary.'));c=""}t[o]=s+c,d++}return t}get pageLayout(){const e=this._catDict.get("PageLayout");let t="";if(e instanceof r.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,i.shadow)(this,"pageLayout",t)}get pageMode(){const e=this._catDict.get("PageMode");let t="UseNone";if(e instanceof r.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,i.shadow)(this,"pageMode",t)}get viewerPreferences(){const e=this._catDict.get("ViewerPreferences");if(!(e instanceof r.Dict))return(0,i.shadow)(this,"viewerPreferences",null);let t=null;for(const n of e.getKeys()){const a=e.get(n);let o;switch(n){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"===typeof a&&(o=a);break;case"NonFullScreenPageMode":if(a instanceof r.Name)switch(a.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=a.name;break;default:o="UseNone"}break;case"Direction":if(a instanceof r.Name)switch(a.name){case"L2R":case"R2L":o=a.name;break;default:o="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(a instanceof r.Name)switch(a.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=a.name;break;default:o="CropBox"}break;case"PrintScaling":if(a instanceof r.Name)switch(a.name){case"None":case"AppDefault":o=a.name;break;default:o="AppDefault"}break;case"Duplex":if(a instanceof r.Name)switch(a.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=a.name;break;default:o="None"}break;case"PrintPageRange":Array.isArray(a)&&a.length%2===0&&a.every(((e,t,n)=>Number.isInteger(e)&&e>0&&(0===t||e>=n[t-1])&&e<=this.numPages))&&(o=a);break;case"NumCopies":Number.isInteger(a)&&a>0&&(o=a);break;default:(0,i.warn)("Ignoring non-standard key in ViewerPreferences: ".concat(n,"."));continue}void 0!==o?(t||(t=Object.create(null)),t[n]=o):(0,i.warn)('Bad value, for key "'.concat(n,'", in ViewerPreferences: ').concat(a,"."))}return(0,i.shadow)(this,"viewerPreferences",t)}get openAction(){const e=this._catDict.get("OpenAction"),t=Object.create(null);if(e instanceof r.Dict){const n=new r.Dict(this.xref);n.set("A",e);const a={url:null,dest:null,action:null};m.parseDestDictionary({destDict:n,resultObj:a}),Array.isArray(a.dest)?t.dest=a.dest:a.action&&(t.action=a.action)}else Array.isArray(e)&&(t.dest=e);return(0,i.shadow)(this,"openAction",(0,i.objectSize)(t)>0?t:null)}get attachments(){const e=this._catDict.get("Names");let t=null;if(e instanceof r.Dict&&e.has("EmbeddedFiles")){const n=new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,a]of n.getAll()){const n=new d.FileSpec(a,this.xref);t||(t=Object.create(null)),t[(0,i.stringToPDFString)(e)]=n.serializable}}return(0,i.shadow)(this,"attachments",t)}get xfaImages(){const e=this._catDict.get("Names");let t=null;if(e instanceof r.Dict&&e.has("XFAImages")){const n=new o.NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,a]of n.getAll())t||(t=new r.Dict(this.xref)),t.set((0,i.stringToPDFString)(e),a)}return(0,i.shadow)(this,"xfaImages",t)}_collectJavaScript(){const e=this._catDict.get("Names");let t=null;function n(e,n){if(!(n instanceof r.Dict))return;if(!(0,r.isName)(n.get("S"),"JavaScript"))return;let a=n.get("JS");if(a instanceof s.BaseStream)a=a.getString();else if("string"!==typeof a)return;a=(0,i.stringToPDFString)(a).replaceAll("\0",""),a&&(t||(t=new Map)).set(e,a)}if(e instanceof r.Dict&&e.has("JavaScript")){const t=new o.NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,a]of t.getAll())n((0,i.stringToPDFString)(e),a)}const a=this._catDict.get("OpenAction");return a&&n("OpenAction",a),t}get jsActions(){const e=this._collectJavaScript();let t=(0,a.collectActions)(this.xref,this._catDict,i.DocumentActionEventType);if(e){t||(t=Object.create(null));for(const[n,a]of e)n in t?t[n].push(a):t[n]=[a]}return(0,i.shadow)(this,"jsActions",t)}async fontFallback(e,t){const n=await Promise.all(this.fontCache);for(const a of n)if(a.loadedName===e)return void a.fallback(t)}async cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,l.clearGlobalCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const t=await Promise.all(this.fontCache);for(const{dict:n}of t)delete n.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],n=new r.RefSet,a=this._catDict.getRaw("Pages");a instanceof r.Ref&&n.put(a);const o=this.xref,s=this.pageKidsCountCache,l=this.pageIndexCache;let c=0;for(;t.length;){const a=t.pop();if(a instanceof r.Ref){const d=s.get(a);if(d>=0&&c+d<=e){c+=d;continue}if(n.has(a))throw new i.FormatError("Pages tree contains circular reference.");n.put(a);const u=await o.fetchAsync(a);if(u instanceof r.Dict){let t=u.getRaw("Type");if(t instanceof r.Ref&&(t=await o.fetchAsync(t)),(0,r.isName)(t,"Page")||!u.has("Kids")){if(s.has(a)||s.put(a,1),l.has(a)||l.put(a,c),c===e)return[u,a];c++;continue}}t.push(u);continue}if(!(a instanceof r.Dict))throw new i.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:d}=a;let u=a.getRaw("Count");if(u instanceof r.Ref&&(u=await o.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(d&&!s.has(d)&&s.put(d,u),c+u<=e)){c+=u;continue}let h=a.getRaw("Kids");if(h instanceof r.Ref&&(h=await o.fetchAsync(h)),!Array.isArray(h)){let t=a.getRaw("Type");if(t instanceof r.Ref&&(t=await o.fetchAsync(t)),(0,r.isName)(t,"Page")||!a.has("Kids")){if(c===e)return[a,null];c++;continue}throw new i.FormatError("Page dictionary kids object is not an array.")}for(let e=h.length-1;e>=0;e--)t.push(h[e])}throw new Error("Page index ".concat(e," not found."))}async getAllPageDicts(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{ignoreErrors:t}=this.pdfManager.evaluatorOptions,n=[{currentNode:this.toplevelPagesDict,posInKids:0}],o=new r.RefSet,s=this._catDict.getRaw("Pages");s instanceof r.Ref&&o.put(s);const l=new Map,c=this.xref,d=this.pageIndexCache;let u=0;function h(n){if(n instanceof a.XRefEntryException&&!e)throw n;e&&t&&0===u&&((0,i.warn)('getAllPageDicts - Skipping invalid first page: "'.concat(n,'".')),n=r.Dict.empty),l.set(u++,[n,null])}for(;n.length>0;){const e=n.at(-1),{currentNode:t,posInKids:a}=e;let s=t.getRaw("Kids");if(s instanceof r.Ref)try{s=await c.fetchAsync(s)}catch(m){h(m);break}if(!Array.isArray(s)){h(new i.FormatError("Page dictionary kids object is not an array."));break}if(a>=s.length){n.pop();continue}const v=s[a];let g;if(v instanceof r.Ref){if(o.has(v)){h(new i.FormatError("Pages tree contains circular reference."));break}o.put(v);try{g=await c.fetchAsync(v)}catch(m){h(m);break}}else g=v;if(!(g instanceof r.Dict)){h(new i.FormatError("Page dictionary kid reference points to wrong type of object."));break}let y=g.getRaw("Type");if(y instanceof r.Ref)try{y=await c.fetchAsync(y)}catch(m){h(m);break}(0,r.isName)(y,"Page")||!g.has("Kids")?(p=g,(f=v instanceof r.Ref?v:null)&&!d.has(f)&&d.put(f,u),l.set(u++,[p,f])):n.push({currentNode:g,posInKids:0}),e.posInKids++}var p,f;return l}getPageIndex(e){const t=this.pageIndexCache.get(e);if(void 0!==t)return Promise.resolve(t);const n=this.xref;let a=0;const o=t=>function(t){let a,o=0;return n.fetchAsync(t).then((function(n){if((0,r.isRefsEqual)(t,e)&&!(0,r.isDict)(n,"Page")&&!(n instanceof r.Dict&&!n.has("Type")&&n.has("Contents")))throw new i.FormatError("The reference does not point to a /Page dictionary.");if(!n)return null;if(!(n instanceof r.Dict))throw new i.FormatError("Node must be a dictionary.");return a=n.getRaw("Parent"),n.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof r.Dict))throw new i.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;const s=[];let l=!1;for(const a of e){if(!(a instanceof r.Ref))throw new i.FormatError("Kid must be a reference.");if((0,r.isRefsEqual)(a,t)){l=!0;break}s.push(n.fetchAsync(a).then((function(e){if(!(e instanceof r.Dict))throw new i.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++})))}if(!l)throw new i.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then((function(){return[o,a]}))}))}(t).then((t=>{if(!t)return this.pageIndexCache.put(e,a),a;const[n,i]=t;return a+=n,o(i)}));return o(e)}get baseUrl(){const e=this._catDict.get("URI");if(e instanceof r.Dict){const t=e.get("Base");if("string"===typeof t){const e=(0,i.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(e)return(0,i.shadow)(this,"baseUrl",e.href)}}return(0,i.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary(e){let{destDict:t,resultObj:n,docBaseUrl:o=null,docAttachments:l=null}=e;if(!(t instanceof r.Dict))return void(0,i.warn)("parseDestDictionary: `destDict` must be a dictionary.");let c,d,u=t.get("A");if(u instanceof r.Dict||(t.has("Dest")?u=t.get("Dest"):(u=t.get("AA"),u instanceof r.Dict&&(u.has("D")?u=u.get("D"):u.has("U")&&(u=u.get("U"))))),u instanceof r.Dict){const e=u.get("S");if(!(e instanceof r.Name))return void(0,i.warn)("parseDestDictionary: Invalid type in Action dictionary.");const t=e.name;switch(t){case"ResetForm":const e=u.get("Flags"),o=0===(1&("number"===typeof e?e:0)),h=[],p=[];for(const t of u.get("Fields")||[])t instanceof r.Ref?p.push(t.toString()):"string"===typeof t&&h.push((0,i.stringToPDFString)(t));n.resetForm={fields:h,refs:p,include:o};break;case"URI":c=u.get("URI"),c instanceof r.Name&&(c="/"+c.name);break;case"GoTo":d=u.get("D");break;case"Launch":case"GoToR":const f=u.get("F");f instanceof r.Dict?c=f.get("F")||null:"string"===typeof f&&(c=f);let m=u.get("D");if(m&&(m instanceof r.Name&&(m=m.name),"string"===typeof c)){const e=c.split("#")[0];"string"===typeof m?c=e+"#"+m:Array.isArray(m)&&(c=e+"#"+JSON.stringify(m))}const v=u.get("NewWindow");"boolean"===typeof v&&(n.newWindow=v);break;case"GoToE":const g=u.get("T");let y;if(l&&g instanceof r.Dict){const e=g.get("R"),t=g.get("N");(0,r.isName)(e,"C")&&"string"===typeof t&&(y=l[(0,i.stringToPDFString)(t)])}y?n.attachment=y:(0,i.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const b=u.get("N");b instanceof r.Name&&(n.action=b.name);break;case"SetOCGState":const _=u.get("State"),x=u.get("PreserveRB");if(!Array.isArray(_)||0===_.length)break;const w=[];for(const t of _)if(t instanceof r.Name)switch(t.name){case"ON":case"OFF":case"Toggle":w.push(t.name)}else t instanceof r.Ref&&w.push(t.toString());if(w.length!==_.length)break;n.setOCGState={state:w,preserveRB:"boolean"!==typeof x||x};break;case"JavaScript":const C=u.get("JS");let S;C instanceof s.BaseStream?S=C.getString():"string"===typeof C&&(S=C);const A=S&&(0,a.recoverJsURL)((0,i.stringToPDFString)(S));if(A){c=A.url,n.newWindow=A.newWindow;break}default:if("JavaScript"===t||"SubmitForm"===t)break;(0,i.warn)('parseDestDictionary - unsupported action: "'.concat(t,'".'))}}else t.has("Dest")&&(d=t.get("Dest"));if("string"===typeof c){const e=(0,i.createValidAbsoluteUrl)(c,o,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(n.url=e.href),n.unsafeUrl=c}d&&(d instanceof r.Name&&(d=d.name),"string"===typeof d?n.dest=(0,i.stringToPDFString)(d):Array.isArray(d)&&(n.dest=d))}}t.Catalog=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var a=n(4),i=n(2);class r{constructor(e,t,n){this.constructor===r&&(0,i.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=n}getAll(){const e=new Map;if(!this.root)return e;const t=this.xref,n=new a.RefSet;n.put(this.root);const r=[this.root];for(;r.length>0;){const o=t.fetchIfRef(r.shift());if(!(o instanceof a.Dict))continue;if(o.has("Kids")){const e=o.get("Kids");if(!Array.isArray(e))continue;for(const t of e){if(n.has(t))throw new i.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));r.push(t),n.put(t)}continue}const s=o.get(this._type);if(Array.isArray(s))for(let n=0,a=s.length;n10)return(0,i.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;const r=n.get("Kids");if(!Array.isArray(r))return null;let o=0,s=r.length-1;for(;o<=s;){const a=o+s>>1,i=t.fetchIfRef(r[a]),l=i.get("Limits");if(et.fetchIfRef(l[1]))){n=i;break}o=a+1}}if(o>s)return null}const r=n.get(this._type);if(Array.isArray(r)){let n=0,a=r.length-2;for(;n<=a;){const i=n+a>>1,o=i+(1&i),s=t.fetchIfRef(r[o]);if(es))return t.fetchIfRef(r[o+1]);n=o+2}}}return null}}t.NameTree=class extends r{constructor(e,t){super(e,t,"Names")}},t.NumberTree=class extends r{constructor(e,t){super(e,t,"Nums")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,a.clearPatternCaches)(),(0,i.clearPrimitiveCaches)(),(0,r.clearUnicodeCaches)()};var a=n(50),i=n(4),r=n(40)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var a=n(2),i=n(5),r=n(4);function o(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class{constructor(e,t){e instanceof r.Dict&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,a.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,a.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,a.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const e=o(this.root)||"unnamed";this._filename=(0,a.stringToPDFString)(e).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=o(this.root.get("EF")));let e=null;if(this.contentRef){const t=this.xref.fetchIfRef(this.contentRef);t instanceof i.BaseStream?e=t.getBytes():(0,a.warn)("Embedded file specification points to non-existing/invalid content")}else(0,a.warn)("Embedded file specification does not have a content");return e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var a=n(71);t.MetadataParser=class{constructor(e){e=this._repair(e);const t=new a.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(e,t){const n=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(e,t,n,a){return String.fromCharCode(64*t+8*n+1*a)})).replaceAll(/&(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."))})),a=[">"];for(let i=0,r=n.length;i=32&&e<127&&60!==e&&62!==e&&38!==e?a.push(String.fromCharCode(e)):a.push("&#x"+(65536+e).toString(16).substring(1)+";")}return a.join("")}))}_getSequence(e){const t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((e=>"rdf:li"===e.nodeName))}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,n=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,n.map((e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const n of t.childNodes)if("rdf:description"===n.nodeName)for(const e of n.childNodes){const t=e.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(e);continue}this._metadataMap.set(t,e.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var a=n(3);const i={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function r(e,t){const n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}t.XMLParserErrorCode=i;class o{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,((e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(t)}))}_parseContent(e,t){const n=[];let a=t;function i(){for(;a"!==e[a]&&"/"!==e[a];)++a;const o=e.substring(t,a);for(i();a"!==e[a]&&"/"!==e[a]&&"?"!==e[a];){i();let t="",o="";for(;a"!==e[n]&&"?"!==e[n]&&"/"!==e[n];)++n;const a=e.substring(t,n);!function(){for(;n"!==e[n+1]);)++n;return{name:a,value:e.substring(i,n),parsed:n-t}}parseXml(e){let t=0;for(;t",n),t<0)return void this.onError(i.UnterminatedElement);this.onEndElement(e.substring(n,t)),n=t+1;break;case"?":++n;const a=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+a.parsed,n+a.parsed+2))return void this.onError(i.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),n+=a.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(t=e.indexOf("--\x3e",n+3),t<0)return void this.onError(i.UnterminatedComment);this.onComment(e.substring(n+3,t)),n=t+3}else if("[CDATA["===e.substring(n+1,n+8)){if(t=e.indexOf("]]>",n+8),t<0)return void this.onError(i.UnterminatedCdat);this.onCdata(e.substring(n+8,t)),n=t+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(i.MalformedElement);{const a=e.indexOf("[",n+8);let r=!1;if(t=e.indexOf(">",n+8),t<0)return void this.onError(i.UnterminatedDoctypeDeclaration);if(a>0&&t>a){if(t=e.indexOf("]>",n+8),t<0)return void this.onError(i.UnterminatedDoctypeDeclaration);r=!0}const o=e.substring(n+8,t+(r?1:0));this.onDoctype(o),n=t+(r?2:1)}}break;default:const r=this._parseContent(e,n);if(null===r)return void this.onError(i.MalformedElement);let o=!1;if("/>"===e.substring(n+r.parsed,n+r.parsed+2))o=!0;else if(">"!==e.substring(n+r.parsed,n+r.parsed+1))return void this.onError(i.UnterminatedElement);this.onBeginElement(r.name,r.attributes,o),n+=r.parsed+(o?2:1)}}else{for(;n0}searchNode(e,t){if(t>=e.length)return this;const n=e[t];if(n.name.startsWith("#")&&t0)a.push([i,0]),i=i.childNodes[0];else{if(0===a.length)return null;for(;0!==a.length;){const[e,t]=a.pop(),n=t+1;if(n");for(const t of this.childNodes)t.dump(e);e.push(""))}else this.nodeValue?e.push(">".concat((0,a.encodeToXmlString)(this.nodeValue),"")):e.push("/>")}else e.push((0,a.encodeToXmlString)(this.nodeValue))}}t.SimpleDOMNode=s,t.SimpleXMLParser=class extends o{constructor(e){let{hasAttributes:t=!1,lowerCaseName:n=!1}=e;super(),this._currentFragment=null,this._stack=null,this._errorCode=i.NoError,this._hasAttributes=t,this._lowerCaseName=n}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=i.NoError,this.parseXml(e),this._errorCode!==i.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function(e){for(let t=0,n=e.length;t{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var i=n(2),r=n(4),l=n(67),c=n(73);const d=1,u=2,h=3,p=4,f=5;var m=new WeakSet;class v{constructor(e,t){o(this,m),this.dict=e,this.ref=t instanceof r.Ref?t:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}addAnnotationIdToPage(e,t){s(m,this,g).call(this,e,t,p)}readRoleMap(){const e=this.dict.get("RoleMap");e instanceof r.Dict&&e.forEach(((e,t)=>{t instanceof r.Name&&this.roleMap.set(e,t.name)}))}static async canCreateStructureTree(e){let{catalogRef:t,pdfManager:n,newAnnotationsByPage:a}=e;if(!(t instanceof r.Ref))return(0,i.warn)("Cannot save the struct tree: no catalog reference."),!1;let o=0,s=!0;for(const[c,d]of a){const{ref:e}=await n.getPage(c);if(!(e instanceof r.Ref)){(0,i.warn)("Cannot save the struct tree: page ".concat(c," has no ref.")),s=!0;break}for(const t of d){var l;null!==(l=t.accessibilityData)&&void 0!==l&&l.type&&(t.parentTreeId=o++,s=!1)}}if(s){for(const e of a.values())for(const t of e)delete t.parentTreeId;return!1}return!0}static async createStructureTree(e){let{newAnnotationsByPage:t,xref:n,catalogRef:a,pdfManager:i,newRefs:o}=e;const l=i.catalog.cloneDict(),d=n.getNewTemporaryRef();l.set("StructTreeRoot",d);const u=[];await(0,c.writeObject)(a,l,u,n),o.push({ref:a,data:u.join("")});const h=new r.Dict(n);h.set("Type",r.Name.get("StructTreeRoot"));const p=n.getNewTemporaryRef();h.set("ParentTree",p);const f=[];h.set("K",f);const m=new r.Dict(n),g=[];m.set("Nums",g);const b=await s(v,this,y).call(this,{newAnnotationsByPage:t,structTreeRootRef:d,kids:f,nums:g,xref:n,pdfManager:i,newRefs:o,buffer:u});h.set("ParentTreeNextKey",b),u.length=0,await(0,c.writeObject)(p,m,u,n),o.push({ref:p,data:u.join("")}),u.length=0,await(0,c.writeObject)(d,h,u,n),o.push({ref:d,data:u.join("")})}async canUpdateStructTree(e){let{pdfManager:t,newAnnotationsByPage:n}=e;if(!this.ref)return(0,i.warn)("Cannot update the struct tree: no root reference."),!1;let a=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(a)||a<0)return(0,i.warn)("Cannot update the struct tree: invalid next key."),!1;const o=this.dict.get("ParentTree");if(!(o instanceof r.Dict))return(0,i.warn)("Cannot update the struct tree: ParentTree isn't a dict."),!1;const s=o.get("Nums");if(!Array.isArray(s))return(0,i.warn)("Cannot update the struct tree: nums isn't an array."),!1;const{numPages:l}=t.catalog;for(const u of n.keys()){const{pageDict:e,ref:n}=await t.getPage(u);if(!(n instanceof r.Ref))return(0,i.warn)("Cannot save the struct tree: page ".concat(u," has no ref.")),!1;const a=e.get("StructParents");if(!Number.isInteger(a)||a<0||a>=l)return(0,i.warn)("Cannot save the struct tree: page ".concat(u," has no id.")),!1}let c=!0;for(const[i,r]of n){const{pageDict:e}=await t.getPage(i);b.call(v,{elements:r,xref:this.dict.xref,pageDict:e,parentTree:o});for(const t of r){var d;null!==(d=t.accessibilityData)&&void 0!==d&&d.type&&(t.parentTreeId=a++,c=!1)}}if(c){for(const e of n.values())for(const t of e)delete t.parentTreeId,delete t.structTreeParent;return!1}return!0}async updateStructureTree(e){let{newAnnotationsByPage:t,pdfManager:n,newRefs:a}=e;const i=this.dict.xref,o=this.dict.clone(),s=this.ref;let l,d=o.getRaw("ParentTree");d instanceof r.Ref?l=i.fetch(d):(l=d,d=i.getNewTemporaryRef(),o.set("ParentTree",d)),l=l.clone();let u=l.getRaw("Nums"),h=null;u instanceof r.Ref&&(h=u,u=i.fetch(h)),u=u.slice(),h||l.set("Nums",u);let p=o.getRaw("K"),f=null;p instanceof r.Ref?(f=p,p=i.fetch(f)):(f=i.getNewTemporaryRef(),o.set("K",f)),p=Array.isArray(p)?p.slice():[p];const m=[],g=await y.call(v,{newAnnotationsByPage:t,structTreeRootRef:s,kids:p,nums:u,xref:i,pdfManager:n,newRefs:a,buffer:m});o.set("ParentTreeNextKey",g),m.length=0,await(0,c.writeObject)(f,p,m,i),a.push({ref:f,data:m.join("")}),h&&(m.length=0,await(0,c.writeObject)(h,u,m,i),a.push({ref:h,data:m.join("")})),m.length=0,await(0,c.writeObject)(d,l,m,i),a.push({ref:d,data:m.join("")}),m.length=0,await(0,c.writeObject)(s,o,m,i),a.push({ref:s,data:m.join("")})}}function g(e,t,n){if(!(e instanceof r.Ref)||t<0)return;this.structParentIds||(this.structParentIds=new r.RefSetCache);let a=this.structParentIds.get(e);a||(a=[],this.structParentIds.put(e,a)),a.push([t,n])}async function y(e){let{newAnnotationsByPage:t,structTreeRootRef:n,kids:i,nums:o,xref:l,pdfManager:d,newRefs:u,buffer:h}=e;const p=r.Name.get("OBJR");let f=-1/0;for(const[m,v]of t){const{ref:e}=await d.getPage(m);for(const{accessibilityData:{type:t,title:d,lang:m,alt:g,expanded:y,actualText:b},ref:x,parentTreeId:w,structTreeParent:C}of v){f=Math.max(f,w);const v=l.getNewTemporaryRef(),S=new r.Dict(l);S.set("S",r.Name.get(t)),d&&S.set("T",d),m&&S.set("Lang",m),g&&S.set("Alt",g),y&&S.set("E",y),b&&S.set("ActualText",b),C?await s(a,this,_).call(this,{structTreeParent:C,tagDict:S,newTagRef:v,fallbackRef:n,xref:l,newRefs:u,buffer:h}):S.set("P",n);const A=new r.Dict(l);S.set("K",A),A.set("Type",p),A.set("Pg",e),A.set("Obj",x),h.length=0,await(0,c.writeObject)(v,S,h,l),u.push({ref:v,data:h.join("")}),o.push(w,v),i.push(v)}}return f+1}function b(e){let{elements:t,xref:n,pageDict:a,parentTree:i}=e;const o=new Map;for(const r of t)if(r.structTreeParentId){const e=parseInt(r.structTreeParentId.split("_mc")[1],10);o.set(e,r)}const s=a.get("StructParents"),c=new l.NumberTree(i,n).get(s);if(!Array.isArray(c))return;const d=(e,t,a)=>{const i=o.get(e);if(i){const e=t.getRaw("P"),o=n.fetchIfRef(e);return e instanceof r.Ref&&o instanceof r.Dict&&(i.structTreeParent={ref:a,dict:t}),!0}return!1};for(const l of c){if(!(l instanceof r.Ref))continue;const e=n.fetch(l),t=e.get("K");if(Number.isInteger(t))d(t,e,l);else if(Array.isArray(t))for(let a of t)if(a=n.fetchIfRef(a),Number.isInteger(a)&&d(a,e,l))break}}async function _(e){let{structTreeParent:{ref:t,dict:n},tagDict:a,newTagRef:o,fallbackRef:s,xref:l,newRefs:d,buffer:u}=e;const h=n.getRaw("P");let p=l.fetchIfRef(h);a.set("P",h);let f,m=!1,v=p.getRaw("K");if(v instanceof r.Ref?f=l.fetch(v):(f=v,v=l.getNewTemporaryRef(),p=p.clone(),p.set("K",v),m=!0),Array.isArray(f)){const e=f.indexOf(t);if(!(e>=0))return(0,i.warn)("Cannot update the struct tree: parent kid not found."),void a.set("P",s);f=f.slice(),f.splice(e+1,0,o)}else f instanceof r.Dict&&(f=[v,o],v=l.getNewTemporaryRef(),p.set("K",v),m=!0);u.length=0,await(0,c.writeObject)(v,f,u,l),d.push({ref:v,data:u.join("")}),m&&(u.length=0,await(0,c.writeObject)(h,p,u,l),d.push({ref:h,data:u.join("")}))}a=v,t.StructTreeRoot=v;class x{constructor(e,t){this.tree=e,this.dict=t,this.kids=[],this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof r.Name?e.name:"",{root:n}=this.tree;return n.roleMap.has(t)?n.roleMap.get(t):t}parseKids(){let e=null;const t=this.dict.getRaw("Pg");t instanceof r.Ref&&(e=t.toString());const n=this.dict.get("K");if(Array.isArray(n))for(const a of n){const t=this.parseKid(e,a);t&&this.kids.push(t)}else{const t=this.parseKid(e,n);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new w({type:d,mcid:t,pageObjId:e});let n=null;if(t instanceof r.Ref?n=this.dict.xref.fetch(t):t instanceof r.Dict&&(n=t),!n)return null;const a=n.getRaw("Pg");a instanceof r.Ref&&(e=a.toString());const i=n.get("Type")instanceof r.Name?n.get("Type").name:null;if("MCR"===i){if(this.tree.pageDict.objId!==e)return null;const t=n.getRaw("Stm");return new w({type:u,refObjId:t instanceof r.Ref?t.toString():null,pageObjId:e,mcid:n.get("MCID")})}if("OBJR"===i){if(this.tree.pageDict.objId!==e)return null;const t=n.getRaw("Obj");return new w({type:h,refObjId:t instanceof r.Ref?t.toString():null,pageObjId:e})}return new w({type:f,dict:n})}}class w{constructor(e){let{type:t,dict:n=null,mcid:a=null,pageObjId:i=null,refObjId:r=null}=e;this.type=t,this.dict=n,this.mcid=a,this.pageObjId=i,this.refObjId=r,this.parentNode=null}}t.StructTreePage=class{constructor(e,t){this.root=e,this.rootDict=e?e.dict:null,this.pageDict=t,this.nodes=[]}parse(e){var t;if(!this.root||!this.rootDict)return;const n=this.rootDict.get("ParentTree");if(!n)return;const a=this.pageDict.get("StructParents"),i=e instanceof r.Ref&&(null===(t=this.root.structParentIds)||void 0===t?void 0:t.get(e));if(!Number.isInteger(a)&&!i)return;const o=new Map,s=new l.NumberTree(n,this.rootDict.xref);if(Number.isInteger(a)){const e=s.get(a);if(Array.isArray(e))for(const t of e)t instanceof r.Ref&&this.addNode(this.rootDict.xref.fetch(t),o)}if(i)for(const[r,l]of i){const e=s.get(r);if(e){var c;const t=this.addNode(this.rootDict.xref.fetchIfRef(e),o);1===(null===t||void 0===t||null===(c=t.kids)||void 0===c?void 0:c.length)&&t.kids[0].type===h&&(t.kids[0].type=l)}}}addNode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>40)return(0,i.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);const a=new x(this,e);t.set(e,a);const o=e.get("P");if(!o||(0,r.isName)(o.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,a)||t.delete(e),a;const s=this.addNode(o,t,n+1);if(!s)return a;let l=!1;for(const i of s.kids)i.type===f&&i.dict===e&&(i.parentNode=a,l=!0);return l||t.delete(e),a}addTopLevelNode(e,t){const n=this.rootDict.get("K");if(!n)return!1;if(n instanceof r.Dict)return n.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(n))return!0;let a=!1;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:0;if(a>40)return void(0,i.warn)("StructTree too deep to be fully serialized.");const r=Object.create(null);r.role=t.role,r.children=[],n.children.push(r);const o=t.dict.get("Alt");"string"===typeof o&&(r.alt=(0,i.stringToPDFString)(o));const s=t.dict.get("Lang");"string"===typeof s&&(r.lang=(0,i.stringToPDFString)(s));for(const l of t.kids){const t=l.type===f?l.parentNode:null;t?e(t,r,a+1):l.type===d||l.type===u?r.children.push({type:"content",id:"p".concat(l.pageObjId,"_mc").concat(l.mcid)}):l.type===h?r.children.push({type:"object",id:l.refObjId}):l.type===p&&r.children.push({type:"annotation",id:"".concat(i.AnnotationPrefix).concat(l.refObjId)})}}const t=Object.create(null);t.children=[],t.role="Root";for(const n of this.nodes)n&&e(n,t);return t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=async function(e){let{originalData:t,xrefInfo:n,newRefs:s,xref:u=null,hasXfa:h=!1,xfaDatasetsRef:p=null,hasXfaDatasetsEntry:v=!1,needAppearances:g,acroFormRef:y=null,acroForm:b=null,xfaData:_=null}=e;await async function(e){let{xref:t,acroForm:n,acroFormRef:i,hasXfa:r,hasXfaDatasetsEntry:o,xfaDatasetsRef:s,needAppearances:l,newRefs:d}=e;if(!r||o||s||(0,a.warn)("XFA - Cannot save it"),!l&&(!r||!s||o))return;const u=n.clone();if(r&&!o){const e=n.get("XFA").slice();e.splice(2,0,"datasets"),e.splice(3,0,s),u.set("XFA",e)}l&&u.set("NeedAppearances",!0);const h=[];await c(i,u,h,t),d.push({ref:i,data:h.join("")})}({xref:u,acroForm:b,acroFormRef:y,hasXfa:h,hasXfaDatasetsEntry:v,xfaDatasetsRef:p,needAppearances:g,newRefs:s}),h&&function(e){let{xfaData:t,xfaDatasetsRef:n,newRefs:i,xref:s}=e;null===t&&(t=function(e,t){const n=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:s}of t){if(!s)continue;const{path:e,value:t}=s;if(!e)continue;const i=(0,r.parseXFAPath)(e);let l=n.documentElement.searchNode(i,0);!l&&i.length>1&&(l=n.documentElement.searchNode([i.at(-1)],0)),l?l.childNodes=Array.isArray(t)?t.map((e=>new o.SimpleDOMNode("value",e))):[new o.SimpleDOMNode("#text",t)]:(0,a.warn)("Node not found for path: ".concat(e))}const i=[];return n.documentElement.dump(i),i.join("")}(s.fetchIfRef(n).getString(),i));const l=s.encrypt;l&&(t=l.createCipherTransform(n.num,n.gen).encryptString(t));const c="".concat(n.num," ").concat(n.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\nstream\n")+t+"\nendstream\nendobj\n";i.push({ref:n,data:c})}({xfaData:_,xfaDatasetsRef:p,newRefs:s,xref:u});const x=new i.Dict(null),w=n.newRef;let C,S;const A=t.at(-1);10===A||13===A?(C=[],S=t.length):(C=["\n"],S=t.length+1),x.set("Size",w.num+1),x.set("Prev",n.startXRef),x.set("Type",i.Name.get("XRef")),null!==n.rootRef&&x.set("Root",n.rootRef),null!==n.infoRef&&x.set("Info",n.infoRef),null!==n.encryptRef&&x.set("Encrypt",n.encryptRef),s.push({ref:w,data:""}),s=s.sort(((e,t)=>e.ref.num-t.ref.num));const k=[[0,1,65535]],j=[0,1];let I=0;for(const{ref:a,data:i}of s)I=Math.max(I,S),k.push([1,S,Math.min(a.gen,65535)]),S+=i.length,j.push(a.num,1),C.push(i);if(x.set("Index",j),Array.isArray(n.fileIds)&&n.fileIds.length>0){const e=function(e,t){const n=Math.floor(Date.now()/1e3),i=t.filename||"",r=[n.toString(),i,e.toString()];let o=r.reduce(((e,t)=>e+t.length),0);for(const a of Object.values(t.info))r.push(a),o+=a.length;const s=new Uint8Array(o);let c=0;for(const a of r)m(a,c,s),c+=a.length;return(0,a.bytesToString)((0,l.calculateMD5)(s))}(S,n);x.set("ID",[n.fileIds[0],e])}const F=[1,Math.ceil(Math.log2(I)/8),2],T=(F[0]+F[1]+F[2])*k.length;x.set("W",F),x.set("Length",T),C.push("".concat(w.num," ").concat(w.gen," obj\n")),await d(x,C,null),C.push(" stream\n");const P=C.reduce(((e,t)=>e+t.length),0),E="\nendstream\nendobj\nstartxref\n".concat(S,"\n%%EOF\n"),O=new Uint8Array(t.length+P+T+E.length);O.set(t);let N=t.length;for(const a of C)m(a,N,O),N+=a.length;for(const[a,i,r]of k)N=f(a,F[0],N,O),N=f(i,F[1],N,O),N=f(r,F[2],N,O);return m(E,N,O),O},t.writeDict=d,t.writeObject=c;var a=n(2),i=n(4),r=n(3),o=n(71),s=n(5),l=n(74);async function c(e,t,n,a){let{encrypt:r=null}=a;const o=null===r||void 0===r?void 0:r.createCipherTransform(e.num,e.gen);n.push("".concat(e.num," ").concat(e.gen," obj\n")),t instanceof i.Dict?await d(t,n,o):t instanceof s.BaseStream?await u(t,n,o):Array.isArray(t)&&await h(t,n,o),n.push("\nendobj\n")}async function d(e,t,n){t.push("<<");for(const a of e.getKeys())t.push(" /".concat((0,r.escapePDFName)(a)," ")),await p(e.getRaw(a),t,n);t.push(">>")}async function u(e,t,n){let r=e.getString();const{dict:o}=e,[s,l]=await Promise.all([o.getAsync("Filter"),o.getAsync("DecodeParms")]),c=Array.isArray(s)?await o.xref.fetchIfRefAsync(s[0]):s,u=(0,i.isName)(c,"FlateDecode");if("undefined"!==typeof CompressionStream&&(r.length>=256||u))try{const e=(0,a.stringToBytes)(r),t=new CompressionStream("deflate"),n=t.writable.getWriter();n.write(e),n.close();const c=await new Response(t.readable).arrayBuffer();let d,h;r=(0,a.bytesToString)(new Uint8Array(c)),s?u||(d=Array.isArray(s)?[i.Name.get("FlateDecode"),...s]:[i.Name.get("FlateDecode"),s],l&&(h=Array.isArray(l)?[null,...l]:[null,l])):d=i.Name.get("FlateDecode"),d&&o.set("Filter",d),h&&o.set("DecodeParms",h)}catch(h){(0,a.info)('writeStream - cannot compress data: "'.concat(h,'".'))}n&&(r=n.encryptString(r)),o.set("Length",r.length),await d(o,t,n),t.push(" stream\n",r,"\nendstream")}async function h(e,t,n){t.push("[");let a=!0;for(const i of e)a?a=!1:t.push(" "),await p(i,t,n);t.push("]")}async function p(e,t,n){e instanceof i.Name?t.push("/".concat((0,r.escapePDFName)(e.name))):e instanceof i.Ref?t.push("".concat(e.num," ").concat(e.gen," R")):Array.isArray(e)?await h(e,t,n):"string"===typeof e?(n&&(e=n.encryptString(e)),t.push("(".concat((0,r.escapeString)(e),")"))):"number"===typeof e?t.push((0,r.numberToString)(e)):"boolean"===typeof e?t.push(e.toString()):e instanceof i.Dict?await d(e,t,n):e instanceof s.BaseStream?await u(e,t,n):null===e?t.push("null"):(0,a.warn)("Unhandled value in writer: ".concat(typeof e,", please file a bug."))}function f(e,t,n,a){for(let i=t+n-1;i>n-1;i--)a[i]=255&e,e>>=8;return n+t}function m(e,t,n){for(let a=0,i=e.length;a{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=p,t.calculateSHA512=void 0;var a=n(2),i=n(4),r=n(75);class l{constructor(e){this.a=0,this.b=0;const t=new Uint8Array(256),n=e.length;for(let a=0;a<256;++a)t[a]=a;for(let a=0,i=0;a<256;++a){const r=t[a];i=i+r+e[a%n]&255,t[a]=t[i],t[i]=r}this.s=t}encryptBlock(e){let t=this.a,n=this.b;const a=this.s,i=e.length,r=new Uint8Array(i);for(let o=0;o>5&255,d[u++]=i>>13&255,d[u++]=i>>21&255,d[u++]=i>>>29&255,d[u++]=0,d[u++]=0,d[u++]=0;const f=new Int32Array(16);for(u=0;u>>32-s)|0,i=r}r=r+i|0,o=o+c|0,s=s+p|0,l=l+m|0}return new Uint8Array([255&r,r>>8&255,r>>16&255,r>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255])}}();t.calculateMD5=c;class d{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(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(e){e>=32?(this.high=this.low<>>32-e,this.low<<=e)}rotateRight(e){let t,n;32&e?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=0|t,this.high=0|n}copyTo(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(e){this.high=e.high,this.low=e.low}}const u=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 a(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function r(t){return e(t,7)^e(t,18)^t>>>3}const 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){let d=1779033703,u=3144134277,h=1013904242,p=2773480762,f=1359893119,m=2600822924,v=528734635,g=1541459225;const y=64*Math.ceil((c+9)/64),b=new Uint8Array(y);let _,x;for(_=0;_>>29&255,b[_++]=c>>21&255,b[_++]=c>>13&255,b[_++]=c>>5&255,b[_++]=c<<3&255;const C=new Uint32Array(64);for(_=0;_>>10)+C[x-7]+r(C[x-15])+C[x-16];let s,l,c=d,y=u,w=h,A=p,k=f,j=m,I=v,F=g;for(x=0;x<64;++x)s=F+i(k)+t(k,j,I)+o[x]+C[x],l=a(c)+n(c,y,w),F=I,I=j,j=k,k=A+s|0,A=w,w=y,y=c,c=s+l|0;d=d+c|0,u=u+y|0,h=h+w|0,p=p+A|0,f=f+k|0,m=m+j|0,v=v+I|0,g=g+F|0}var S;return new Uint8Array([d>>24&255,d>>16&255,d>>8&255,255&d,u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g])}}();t.calculateSHA256=u;const h=function(){function e(e,t,n,a,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(a),e.xor(i)}function t(e,t,n,a,i){e.assign(t),e.and(n),i.assign(t),i.and(a),e.xor(i),i.assign(n),i.and(a),e.xor(i)}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 a(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 i(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 r(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)}const o=[new d(1116352408,3609767458),new d(1899447441,602891725),new d(3049323471,3964484399),new d(3921009573,2173295548),new d(961987163,4081628472),new d(1508970993,3053834265),new d(2453635748,2937671579),new d(2870763221,3664609560),new d(3624381080,2734883394),new d(310598401,1164996542),new d(607225278,1323610764),new d(1426881987,3590304994),new d(1925078388,4068182383),new d(2162078206,991336113),new d(2614888103,633803317),new d(3248222580,3479774868),new d(3835390401,2666613458),new d(4022224774,944711139),new d(264347078,2341262773),new d(604807628,2007800933),new d(770255983,1495990901),new d(1249150122,1856431235),new d(1555081692,3175218132),new d(1996064986,2198950837),new d(2554220882,3999719339),new d(2821834349,766784016),new d(2952996808,2566594879),new d(3210313671,3203337956),new d(3336571891,1034457026),new d(3584528711,2466948901),new d(113926993,3758326383),new d(338241895,168717936),new d(666307205,1188179964),new d(773529912,1546045734),new d(1294757372,1522805485),new d(1396182291,2643833823),new d(1695183700,2343527390),new d(1986661051,1014477480),new d(2177026350,1206759142),new d(2456956037,344077627),new d(2730485921,1290863460),new d(2820302411,3158454273),new d(3259730800,3505952657),new d(3345764771,106217008),new d(3516065817,3606008344),new d(3600352804,1432725776),new d(4094571909,1467031594),new d(275423344,851169720),new d(430227734,3100823752),new d(506948616,1363258195),new d(659060556,3750685593),new d(883997877,3785050280),new d(958139571,3318307427),new d(1322822218,3812723403),new d(1537002063,2003034995),new d(1747873779,3602036899),new d(1955562222,1575990012),new d(2024104815,1125592928),new d(2227730452,2716904306),new d(2361852424,442776044),new d(2428436474,593698344),new d(2756734187,3733110249),new d(3204031479,2999351573),new d(3329325298,3815920427),new d(3391569614,3928383900),new d(3515267271,566280711),new d(3940187606,3454069534),new d(4118630271,4000239992),new d(116418474,1914138554),new d(174292421,2731055270),new d(289380356,3203993006),new d(460393269,320620315),new d(685471733,587496836),new d(852142971,1086792851),new d(1017036298,365543100),new d(1126000580,2618297676),new d(1288033470,3409855158),new d(1501505948,4234509866),new d(1607167915,987167468),new d(1816402316,1246189591)];return function(s,l,c){let u,h,p,f,m,v,g,y,b=arguments.length>3&&void 0!==arguments[3]&&arguments[3];b?(u=new d(3418070365,3238371032),h=new d(1654270250,914150663),p=new d(2438529370,812702999),f=new d(355462360,4144912697),m=new d(1731405415,4290775857),v=new d(2394180231,1750603025),g=new d(3675008525,1694076839),y=new d(1203062813,3204075428)):(u=new d(1779033703,4089235720),h=new d(3144134277,2227873595),p=new d(1013904242,4271175723),f=new d(2773480762,1595750129),m=new d(1359893119,2917565137),v=new d(2600822924,725511199),g=new d(528734635,4215389547),y=new d(1541459225,327033209));const _=128*Math.ceil((c+17)/128),x=new Uint8Array(_);let w,C;for(w=0;w>>29&255,x[w++]=c>>21&255,x[w++]=c>>13&255,x[w++]=c>>5&255,x[w++]=c<<3&255;const A=new Array(80);for(w=0;w<80;w++)A[w]=new d(0,0);let k=new d(0,0),j=new d(0,0),I=new d(0,0),F=new d(0,0),T=new d(0,0),P=new d(0,0),E=new d(0,0),O=new d(0,0);const N=new d(0,0),R=new d(0,0),M=new d(0,0),D=new d(0,0);let L,B;for(w=0;w<_;){for(C=0;C<16;++C)A[C].high=x[w]<<24|x[w+1]<<16|x[w+2]<<8|x[w+3],A[C].low=x[w+4]<<24|x[w+5]<<16|x[w+6]<<8|x[w+7],w+=8;for(C=16;C<80;++C)L=A[C],r(L,A[C-2],D),L.add(A[C-7]),i(M,A[C-15],D),L.add(M),L.add(A[C-16]);for(k.assign(u),j.assign(h),I.assign(p),F.assign(f),T.assign(m),P.assign(v),E.assign(g),O.assign(y),C=0;C<80;++C)N.assign(O),a(M,T,D),N.add(M),e(M,T,P,E,D),N.add(M),N.add(o[C]),N.add(A[C]),n(R,k,D),t(M,k,j,I,D),R.add(M),L=O,O=E,E=P,P=T,F.add(N),T=F,F=I,I=j,j=k,L.assign(N),L.add(R),k=L;u.add(k),h.add(j),p.add(I),f.add(F),m.add(T),v.add(P),g.add(E),y.add(O)}return b?(B=new Uint8Array(48),u.copyTo(B,0),h.copyTo(B,8),p.copyTo(B,16),f.copyTo(B,24),m.copyTo(B,32),v.copyTo(B,40)):(B=new Uint8Array(64),u.copyTo(B,0),h.copyTo(B,8),p.copyTo(B,16),f.copyTo(B,24),m.copyTo(B,32),v.copyTo(B,40),g.copyTo(B,48),y.copyTo(B,56)),B}}();function p(e,t,n){return h(e,t,n,!0)}t.calculateSHA512=h;class f{decryptBlock(e){return e}encrypt(e){return e}}class m{constructor(){this.constructor===m&&(0,a.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,a.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,a,i;const r=new Uint8Array(16);r.set(e);for(let o=0,s=this._keySize;o<16;++o,++s)r[o]^=t[s];for(let o=this._cyclesOfRepetition-1;o>=1;--o){n=r[13],r[13]=r[9],r[9]=r[5],r[5]=r[1],r[1]=n,n=r[14],a=r[10],r[14]=r[6],r[10]=r[2],r[6]=n,r[2]=a,n=r[15],a=r[11],i=r[7],r[15]=r[3],r[11]=n,r[7]=a,r[3]=i;for(let e=0;e<16;++e)r[e]=this._inv_s[r[e]];for(let e=0,n=16*o;e<16;++e,++n)r[e]^=t[n];for(let e=0;e<16;e+=4){const t=this._mix[r[e]],a=this._mix[r[e+1]],i=this._mix[r[e+2]],o=this._mix[r[e+3]];n=t^a>>>8^a<<24^i>>>16^i<<16^o>>>24^o<<8,r[e]=n>>>24&255,r[e+1]=n>>16&255,r[e+2]=n>>8&255,r[e+3]=255&n}}n=r[13],r[13]=r[9],r[9]=r[5],r[5]=r[1],r[1]=n,n=r[14],a=r[10],r[14]=r[6],r[10]=r[2],r[6]=n,r[2]=a,n=r[15],a=r[11],i=r[7],r[15]=r[3],r[11]=n,r[7]=a,r[3]=i;for(let o=0;o<16;++o)r[o]=this._inv_s[r[o]],r[o]^=t[o];return r}_encrypt(e,t){const n=this._s;let a,i,r;const o=new Uint8Array(16);o.set(e);for(let s=0;s<16;++s)o[s]^=t[s];for(let s=1;s=a;--n)if(e[n]!==t){t=0;break}s-=t,r[r.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(s);for(let c=0,d=0,u=r.length;c2&&void 0!==arguments[2]?arguments[2]:null;const a=e.length,i=this.buffer;let r=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;r<16&&t=256&&(s=255&(27^s)));for(let e=0;e<4;++e)n[l]=a^=n[l-32],l++,n[l]=i^=n[l-32],l++,n[l]=r^=n[l-32],l++,n[l]=o^=n[l-32],l++}return n}}t.AES256Cipher=g;class y{checkOwnerPassword(e,t,n,i){const r=new Uint8Array(e.length+56);r.set(e,0),r.set(t,e.length),r.set(n,e.length+t.length);const o=u(r,0,r.length);return(0,a.isArrayEqual)(o,i)}checkUserPassword(e,t,n){const i=new Uint8Array(e.length+8);i.set(e,0),i.set(t,e.length);const r=u(i,0,i.length);return(0,a.isArrayEqual)(r,n)}getOwnerKey(e,t,n,a){const i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);const r=u(i,0,i.length);return new g(r).decryptBlock(a,!1,new Uint8Array(16))}getUserKey(e,t,n){const a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);const i=u(a,0,a.length);return new g(i).decryptBlock(n,!1,new Uint8Array(16))}}t.PDF17=y;class b{_hash(e,t,n){let a=u(t,0,t.length).subarray(0,32),i=[0],r=0;for(;r<64||i.at(-1)>r-32;){const t=e.length+a.length+n.length,o=new Uint8Array(t);let s=0;o.set(e,s),s+=e.length,o.set(a,s),s+=a.length,o.set(n,s);const l=new Uint8Array(64*t);for(let e=0,n=0;e<64;e++,n+=t)l.set(o,n);i=new v(a.subarray(0,16)).encrypt(l,a.subarray(16,32));const c=i.slice(0,16).reduce(((e,t)=>e+t),0)%3;0===c?a=u(i,0,i.length):1===c?a=p(i,0,i.length):2===c&&(a=h(i,0,i.length)),r++}return a.subarray(0,32)}checkOwnerPassword(e,t,n,i){const r=new Uint8Array(e.length+56);r.set(e,0),r.set(t,e.length),r.set(n,e.length+t.length);const o=this._hash(e,r,n);return(0,a.isArrayEqual)(o,i)}checkUserPassword(e,t,n){const i=new Uint8Array(e.length+8);i.set(e,0),i.set(t,e.length);const r=this._hash(e,i,[]);return(0,a.isArrayEqual)(r,n)}getOwnerKey(e,t,n,a){const i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);const r=this._hash(e,i,n);return new g(r).decryptBlock(a,!1,new Uint8Array(16))}getUserKey(e,t,n){const a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);const i=this._hash(e,a,[]);return new g(i).decryptBlock(n,!1,new Uint8Array(16))}}t.PDF20=b;class _{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const n=new this.StreamCipherConstructor;return new r.DecryptStream(e,t,(function(e,t){return n.decryptBlock(e,t)}))}decryptString(e){const t=new this.StringCipherConstructor;let n=(0,a.stringToBytes)(e);return n=t.decryptBlock(n,!0),(0,a.bytesToString)(n)}encryptString(e){const t=new this.StringCipherConstructor;if(t instanceof m){const n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);const i=new Uint8Array(16);if("undefined"!==typeof crypto)crypto.getRandomValues(i);else for(let e=0;e<16;e++)i[e]=Math.floor(256*Math.random());let r=(0,a.stringToBytes)(e);r=t.encrypt(r,i);const o=new Uint8Array(16+r.length);return o.set(i),o.set(r,16),(0,a.bytesToString)(o)}let n=(0,a.stringToBytes)(e);return n=t.encrypt(n),(0,a.bytesToString)(n)}}var x=new WeakSet;function w(e,t,n,a,i,r,o,s,l,c,d,u){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];const h=6===e?new b:new y;return h.checkUserPassword(t,s,o)?h.getUserKey(t,l,d):t.length&&h.checkOwnerPassword(t,a,r,n)?h.getOwnerKey(t,i,r,c):null}function C(e,t,n,a,i,r,o,s){const d=40+n.length+e.length,u=new Uint8Array(d);let h,p,f=0;if(t)for(p=Math.min(32,t.length);f>8&255,u[f++]=i>>16&255,u[f++]=i>>>24&255,h=0,p=e.length;h=4&&!s&&(u[f++]=255,u[f++]=255,u[f++]=255,u[f++]=255);let m=c(u,0,f);const v=o>>3;if(r>=3)for(h=0;h<50;++h)m=c(m,0,v);const g=m.subarray(0,v);let y,b;if(r>=3){for(f=0;f<32;++f)u[f]=j._[f];for(h=0,p=e.length;h>3;if(n>=3)for(s=0;s<50;++s)d=c(d,0,d.length);let h,p;if(n>=3){p=t;const e=new Uint8Array(u);for(s=19;s>=0;s--){for(let t=0;t3&&void 0!==arguments[3]&&arguments[3];const i=new Uint8Array(n.length+9),r=n.length;let o;for(o=0;o>8&255,i[o++]=e>>16&255,i[o++]=255&t,i[o++]=t>>8&255,a&&(i[o++]=115,i[o++]=65,i[o++]=108,i[o++]=84),c(i,0,o).subarray(0,Math.min(n.length+5,16))}function k(e,t,n,r,o){if(!(t instanceof i.Name))throw new a.FormatError("Invalid crypt filter name.");const c=this,d=e.get(t.name),u=null===d||void 0===d?void 0:d.get("CFM");if(!u||"None"===u.name)return function(){return new f};if("V2"===u.name)return function(){return new l(s(x,c,A).call(c,n,r,o,!1))};if("AESV2"===u.name)return function(){return new v(s(x,c,A).call(c,n,r,o,!0))};if("AESV3"===u.name)return function(){return new g(o)};throw new a.FormatError("Unknown crypto method")}var j={_:new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122])};t.CipherTransformFactory=class{constructor(e,t,n){o(this,x);const r=e.get("Filter");if(!(0,i.isName)(r,"Standard"))throw new a.FormatError("unknown encryption method");this.filterName=r.name,this.dict=e;const l=e.get("V");if(!Number.isInteger(l)||1!==l&&2!==l&&4!==l&&5!==l)throw new a.FormatError("unsupported encryption algorithm");this.algorithm=l;let c=e.get("Length");if(!c)if(l<=3)c=40;else{const t=e.get("CF"),n=e.get("StmF");if(t instanceof i.Dict&&n instanceof i.Name){t.suppressEncryption=!0;const e=t.get(n.name);c=(null===e||void 0===e?void 0:e.get("Length"))||128,c<40&&(c<<=3)}}if(!Number.isInteger(c)||c<40||c%8!==0)throw new a.FormatError("invalid key length");const d=(0,a.stringToBytes)(e.get("O")),u=(0,a.stringToBytes)(e.get("U")),h=d.subarray(0,32),p=u.subarray(0,32),f=e.get("P"),m=e.get("R"),v=(4===l||5===l)&&!1!==e.get("EncryptMetadata");this.encryptMetadata=v;const g=(0,a.stringToBytes)(t);let y,b;if(n){if(6===m)try{n=(0,a.utf8StringToString)(n)}catch{(0,a.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}y=(0,a.stringToBytes)(n)}if(5!==l)b=s(x,this,C).call(this,g,y,h,p,f,m,c,v);else{const t=d.subarray(32,40),n=d.subarray(40,48),i=u.subarray(0,48),r=u.subarray(32,40),o=u.subarray(40,48),l=(0,a.stringToBytes)(e.get("OE")),c=(0,a.stringToBytes)(e.get("UE")),f=(0,a.stringToBytes)(e.get("Perms"));b=s(x,this,w).call(this,m,y,h,t,n,i,p,r,o,l,c,f)}if(!b&&!n)throw new a.PasswordException("No password given",a.PasswordResponses.NEED_PASSWORD);if(!b&&n){const e=s(x,this,S).call(this,y,h,m,c);b=s(x,this,C).call(this,g,e,h,p,f,m,c,v)}if(!b)throw new a.PasswordException("Incorrect Password",a.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=b,l>=4){const t=e.get("CF");t instanceof i.Dict&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get("StmF")||i.Name.get("Identity"),this.strf=e.get("StrF")||i.Name.get("Identity"),this.eff=e.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new _(s(x,this,k).call(this,this.cf,this.strf,e,t,this.encryptionKey),s(x,this,k).call(this,this.cf,this.stmf,e,t,this.encryptionKey));const n=s(x,this,A).call(this,e,t,this.encryptionKey,!1),a=function(){return new l(n)};return new _(a,a)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var a=n(18);class i extends a.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.decrypt=n,this.nextChunk=null,this.initialized=!1}readBlock(){var e;let t;if(this.initialized?t=this.nextChunk:(t=this.str.getBytes(512),this.initialized=!0),!t||0===t.length)return void(this.eof=!0);this.nextChunk=this.str.getBytes(512);const n=(null===(e=this.nextChunk)||void 0===e?void 0:e.length)>0;t=(0,this.decrypt)(t,!n);const a=this.bufferLength,i=a+t.length;this.ensureBuffer(i).set(t,a),this.bufferLength=i}}t.DecryptStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var a=n(4),i=n(5),r=n(3),o=n(2);function s(e,t){if(e instanceof a.Dict)e=e.getRawValues();else if(e instanceof i.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const r of e)((n=r)instanceof a.Ref||n instanceof a.Dict||n instanceof i.BaseStream||Array.isArray(n))&&t.push(r);var n}t.ObjectLoader=class{constructor(e,t,n){this.dict=e,this.keys=t,this.xref=n,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:e,dict:t}=this;this.refSet=new a.RefSet;const n=[];for(const a of e){const e=t.getRaw(a);void 0!==e&&n.push(e)}return this._walk(n)}async _walk(e){const t=[],n=[];for(;e.length;){let c=e.pop();if(c instanceof a.Ref){if(this.refSet.has(c))continue;try{this.refSet.put(c),c=this.xref.fetch(c)}catch(l){if(!(l instanceof r.MissingDataException)){(0,o.warn)('ObjectLoader._walk - requesting all data: "'.concat(l,'".')),this.refSet=null;const{manager:e}=this.xref.stream;return e.requestAllChunks()}t.push(c),n.push({begin:l.begin,end:l.end})}}if(c instanceof i.BaseStream){const e=c.getBaseStreams();if(e){let a=!1;for(const t of e)t.isDataLoaded||(a=!0,n.push({begin:t.start,end:t.end}));a&&t.push(c)}}s(c,e)}if(n.length){await this.xref.stream.manager.requestRanges(n);for(const e of t)e instanceof a.Ref&&this.refSet.remove(e);return this._walk(t)}this.refSet=null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var a=n(78),i=n(79),r=n(89),o=n(85),s=n(84),l=n(2),c=n(90),d=n(100);class u{constructor(e){try{this.root=(new c.XFAParser).parse(u._createDocument(e));const t=new i.Binder(this.root);this.form=t.bind(),this.dataHandler=new r.DataHandler(this.root,t.getData()),this.form[a.$globalData].template=this.form}catch(t){(0,l.warn)("XFA - an error occurred during parsing and binding: ".concat(t))}}isValid(){return this.root&&this.form}_createPagesHelper(){const e=this.form[a.$toPages]();return new Promise(((t,n)=>{const a=()=>{try{const n=e.next();n.done?t(n.value):setTimeout(a,0)}catch(i){n(i)}};setTimeout(a,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map((e=>{const{width:t,height:n}=e.attributes.style;return[0,0,parseInt(t),parseInt(n)]}))}catch(e){(0,l.warn)("XFA - an error occurred during layout: ".concat(e))}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[a.$globalData].images=e}setFonts(e){this.form[a.$globalData].fontFinder=new o.FontFinder(e);const t=[];for(let n of this.form[a.$globalData].usedTypefaces)n=(0,s.stripQuotes)(n),this.form[a.$globalData].fontFinder.find(n)||t.push(n);return t.length>0?t:null}appendFonts(e,t){this.form[a.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();const e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(e){if(!e||"string"!==typeof e)return null;try{let t=new c.XFAParser(d.XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[a.$nodeName])){const e=d.XhtmlNamespace.body({});e[a.$appendChild](t),t=e}const n=t[a.$toHTML]();if(!n.success)return null;const{html:i}=n,{attributes:r}=i;return r&&(r.class&&(r.class=r.class.filter((e=>!e.startsWith("xfa")))),r.dir="auto"),{html:i,str:t[a.$text]()}}catch(t){(0,l.warn)("XFA - an error occurred during parsing of rich text: ".concat(t))}return null}}t.XFAFactory=u},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$lastAttribute=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;const n=Symbol();t.$acceptWhitespace=n;const a=Symbol();t.$addHTML=a;const i=Symbol();t.$appendChild=i;const r=Symbol();t.$childrenToHTML=r;const o=Symbol();t.$clean=o;const s=Symbol();t.$cleanPage=s;const l=Symbol();t.$cleanup=l;const c=Symbol();t.$clone=c;const d=Symbol();t.$consumed=d;const u=Symbol("content");t.$content=u;const h=Symbol("data");t.$data=h;const p=Symbol();t.$dump=p;const f=Symbol("extra");t.$extra=f;const m=Symbol();t.$finalize=m;const v=Symbol();t.$flushHTML=v;const g=Symbol();t.$getAttributeIt=g;const y=Symbol();t.$getAttributes=y;const b=Symbol();t.$getAvailableSpace=b;const _=Symbol();t.$getChildrenByClass=_;const x=Symbol();t.$getChildrenByName=x;const w=Symbol();t.$getChildrenByNameIt=w;const C=Symbol();t.$getDataValue=C;const S=Symbol();t.$getExtra=S;const A=Symbol();t.$getRealChildrenByNameIt=A;const k=Symbol();t.$getChildren=k;const j=Symbol();t.$getContainedChildren=j;const I=Symbol();t.$getNextPage=I;const F=Symbol();t.$getSubformParent=F;const T=Symbol();t.$getParent=T;const P=Symbol();t.$getTemplateRoot=P;const E=Symbol();t.$globalData=E;const O=Symbol();t.$hasSettableValue=O;const N=Symbol();t.$ids=N;const R=Symbol();t.$indexOf=R;const M=Symbol();t.$insertAt=M;const D=Symbol();t.$isCDATAXml=D;const L=Symbol();t.$isBindable=L;const B=Symbol();t.$isDataValue=B;const W=Symbol();t.$isDescendent=W;const z=Symbol();t.$isNsAgnostic=z;const U=Symbol();t.$isSplittable=U;const H=Symbol();t.$isThereMoreWidth=H;const q=Symbol();t.$isTransparent=q;const V=Symbol();t.$isUsable=V;const G=Symbol();t.$lastAttribute=G;const $=Symbol("namespaceId");t.$namespaceId=$;const X=Symbol("nodeName");t.$nodeName=X;const K=Symbol();t.$nsAttributes=K;const Y=Symbol();t.$onChild=Y;const J=Symbol();t.$onChildCheck=J;const Z=Symbol();t.$onText=Z;const Q=Symbol();t.$pushGlyphs=Q;const ee=Symbol();t.$popPara=ee;const te=Symbol();t.$pushPara=te;const ne=Symbol();t.$removeChild=ne;const ae=Symbol("root");t.$root=ae;const ie=Symbol();t.$resolvePrototypes=ie;const re=Symbol();t.$searchNode=re;const oe=Symbol();t.$setId=oe;const se=Symbol();t.$setSetAttributes=se;const le=Symbol();t.$setValue=le;const ce=Symbol();t.$tabIndex=ce;const de=Symbol();t.$text=de;const ue=Symbol();t.$toPages=ue;const he=Symbol();t.$toHTML=he;const pe=Symbol();t.$toString=pe;const fe=Symbol();t.$toStyle=fe;const me=Symbol("uid");t.$uid=me},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var a=n(78),i=n(80),r=n(88),o=n(87),s=n(81),l=n(2);const c=s.NamespaceIds.datasets.id;function d(e){const t=new i.Text({});return t[a.$content]=e,t}t.Binder=class{constructor(e){var t;this.root=e,this.datasets=e.datasets,this.data=(null===(t=e.datasets)||void 0===t?void 0:t.data)||new o.XmlObject(s.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[a.$getChildren]().length,this.root.form=this.form=e.template[a.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(e,t,n){var r;if(e[a.$data]=t,e[a.$hasSettableValue]())if(t[a.$isDataValue]()){const n=t[a.$getDataValue]();e[a.$setValue](d(n))}else if(e instanceof i.Field&&"multiSelect"===(null===(r=e.ui)||void 0===r||null===(r=r.choiceList)||void 0===r?void 0:r.open)){const n=t[a.$getChildren]().map((e=>e[a.$content].trim())).join("\n");e[a.$setValue](d(n))}else this._isConsumeData()&&(0,l.warn)("XFA - Nodes haven't the same type.");else!t[a.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,l.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(e,t,n,i){var r;if(!e)return null;let o,l;for(let c=0;c<3;c++){for(o=n[a.$getRealChildrenByNameIt](e,!1,!0);l=o.next().value,l;)if(t===l[a.$isDataValue]())return l;if(n[a.$namespaceId]===s.NamespaceIds.datasets.id&&"data"===n[a.$nodeName])break;n=n[a.$getParent]()}return i?(o=this.data[a.$getRealChildrenByNameIt](e,!0,!1),l=o.next().value,l||(o=this.data[a.$getAttributeIt](e,!0),l=o.next().value,null!==(r=l)&&void 0!==r&&r[a.$isDataValue]()?l:null)):null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(const{ref:n,target:s,connection:c}of e.setProperty.children){if(c)continue;if(!n)continue;const d=(0,r.searchNode)(this.root,t,n,!1,!1);if(!d){(0,l.warn)("XFA - Invalid reference: ".concat(n,"."));continue}const[u]=d;if(!u[a.$isDescendent](this.data)){(0,l.warn)("XFA - Invalid node: must be a data node.");continue}const h=(0,r.searchNode)(this.root,e,s,!1,!1);if(!h){(0,l.warn)("XFA - Invalid target: ".concat(s,"."));continue}const[p]=h;if(!p[a.$isDescendent](e)){(0,l.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const f=p[a.$getParent]();if(p instanceof i.SetProperty||f instanceof i.SetProperty){(0,l.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(p instanceof i.BindItems||f instanceof i.BindItems){(0,l.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const m=u[a.$text](),v=p[a.$nodeName];if(p instanceof o.XFAAttribute){const e=Object.create(null);e[v]=m;const t=Reflect.construct(Object.getPrototypeOf(f).constructor,[e]);f[v]=t[v]}else p.hasOwnProperty(a.$content)?(p[a.$data]=u,p[a.$content]=m,p[a.$finalize]()):(0,l.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!e.hasOwnProperty("items")||!e.hasOwnProperty("bindItems")||e.bindItems.isEmpty())return;for(const i of e.items.children)e[a.$removeChild](i);e.items.clear();const n=new i.Items({}),o=new i.Items({});e[a.$appendChild](n),e.items.push(n),e[a.$appendChild](o),e.items.push(o);for(const{ref:i,labelRef:s,valueRef:c,connection:u}of e.bindItems.children){if(u)continue;if(!i)continue;const e=(0,r.searchNode)(this.root,t,i,!1,!1);if(e)for(const t of e){if(!t[a.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid ref (".concat(i,"): must be a datasets child."));continue}const e=(0,r.searchNode)(this.root,t,s,!0,!1);if(!e){(0,l.warn)("XFA - Invalid label: ".concat(s,"."));continue}const[u]=e;if(!u[a.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid label: must be a datasets child.");continue}const h=(0,r.searchNode)(this.root,t,c,!0,!1);if(!h){(0,l.warn)("XFA - Invalid value: ".concat(c,"."));continue}const[p]=h;if(!p[a.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid value: must be a datasets child.");continue}const f=d(u[a.$text]()),m=d(p[a.$text]());n[a.$appendChild](f),n.text.push(f),o[a.$appendChild](m),o.text.push(m)}else(0,l.warn)("XFA - Invalid reference: ".concat(i,"."))}}_bindOccurrences(e,t,n){let i;if(t.length>1&&(i=e[a.$clone](),i[a.$removeChild](i.occur),i.occur=null),this._bindValue(e,t[0],n),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1===t.length)return;const r=e[a.$getParent](),o=e[a.$nodeName],s=r[a.$indexOf](e);for(let l=1,c=t.length;lt.name===e.name)).length:n[i].children.length;const s=n[a.$indexOf](e)+1,l=t.initial-r;if(l){const t=e[a.$clone]();t[a.$removeChild](t.occur),t.occur=null,n[i].push(t),n[a.$insertAt](s,t);for(let e=1;e0)this._bindOccurrences(i,[e[0]],null);else if(this.emptyMerge){const e=t[a.$namespaceId]===c?-1:t[a.$namespaceId],n=i[a.$data]=new o.XmlObject(e,i.name||"root");t[a.$appendChild](n),this._bindElement(i,n)}continue}if(!i[a.$isBindable]())continue;let e=!1,s=null,d=null,u=null;if(i.bind){switch(i.bind.match){case"none":this._setAndBind(i,t);continue;case"global":e=!0;break;case"dataRef":if(!i.bind.ref){(0,l.warn)("XFA - ref is empty in node ".concat(i[a.$nodeName],".")),this._setAndBind(i,t);continue}d=i.bind.ref}i.bind.picture&&(s=i.bind.picture[a.$content])}const[h,p]=this._getOccurInfo(i);if(d){if(u=(0,r.searchNode)(this.root,t,d,!0,!1),null===u){if(u=(0,r.createDataNode)(this.data,t,d),!u)continue;this._isConsumeData()&&(u[a.$consumed]=!0),this._setAndBind(i,u);continue}this._isConsumeData()&&(u=u.filter((e=>!e[a.$consumed]))),u.length>p?u=u.slice(0,p):0===u.length&&(u=null),u&&this._isConsumeData()&&u.forEach((e=>{e[a.$consumed]=!0}))}else{if(!i.name){this._setAndBind(i,t);continue}if(this._isConsumeData()){const n=[];for(;n.length0?n:null}else{if(u=t[a.$getRealChildrenByNameIt](i.name,!1,this.emptyMerge).next().value,!u){if(0===h){n.push(i);continue}const e=t[a.$namespaceId]===c?-1:t[a.$namespaceId];u=i[a.$data]=new o.XmlObject(e,i.name),this.emptyMerge&&(u[a.$consumed]=!0),t[a.$appendChild](u),this._setAndBind(i,u);continue}this.emptyMerge&&(u[a.$consumed]=!0),u=[u]}}u?this._bindOccurrences(i,u,s):h>0?this._setAndBind(i,t):n.push(i)}n.forEach((e=>e[a.$getParent]()[a.$removeChild](e)))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var a=n(78),i=n(81),r=n(82),o=n(83),s=n(87),l=n(84),c=n(2),d=n(85),u=n(3),h=n(88);const p=i.NamespaceIds.template.id,f="http://www.w3.org/2000/svg",m=/^H(\d+)$/,v=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),g=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function y(e){if(!e||!e.border)return{w:0,h:0};const t=e.border[a.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function b(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function _(e,t){if(!e.value){const t=new Nt({});e[a.$appendChild](t),e.value=t}e.value[a.$setValue](t)}function*x(e){for(const t of e[a.$getChildren]())t instanceof _t?yield*t[a.$getContainedChildren]():yield t}function w(e){var t;return"error"===(null===(t=e.validate)||void 0===t?void 0:t.nullTest)}function C(e){for(;e;){if(!e.traversal)return void(e[a.$tabIndex]=e[a.$getParent]()[a.$tabIndex]);if(e[a.$tabIndex])return;let t=null;for(const r of e.traversal[a.$getChildren]())if("next"===r.operation){t=r;break}if(!t||!t.ref)return void(e[a.$tabIndex]=e[a.$getParent]()[a.$tabIndex]);const n=e[a.$getTemplateRoot]();e[a.$tabIndex]=++n[a.$tabIndex];const i=n[a.$searchNode](t.ref,e);if(!i)return;e=i[0]}}function S(e,t){const n=e.assist;if(n){const e=n[a.$toHTML]();e&&(t.title=e);const i=n.role.match(m);if(i){const e="heading",n=i[1];t.role=e,t["aria-level"]=n}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const n=e[a.$getParent]();var i;"row"===n.layout&&(t.role="TH"===(null===(i=n.assist)||void 0===i?void 0:i.role)?"columnheader":"cell")}}function A(e){if(!e.assist)return null;const t=e.assist;return t.speak&&""!==t.speak[a.$content]?t.speak[a.$content]:t.toolTip?t.toolTip[a.$content]:null}function k(e){return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function j(e){const t=e[a.$getTemplateRoot]();null===t[a.$extra].firstUnsplittable&&(t[a.$extra].firstUnsplittable=e,t[a.$extra].noLayoutFailure=!0)}function I(e){const t=e[a.$getTemplateRoot]();t[a.$extra].firstUnsplittable===e&&(t[a.$extra].noLayoutFailure=!1)}function F(e){if(e[a.$extra])return!1;if(e[a.$extra]=Object.create(null),"auto"===e.targetType)return!1;const t=e[a.$getTemplateRoot]();let n=null;if(e.target){if(n=t[a.$searchNode](e.target,e[a.$getParent]()),!n)return!1;n=n[0]}const{currentPageArea:i,currentContentArea:r}=t[a.$extra];if("pageArea"===e.targetType)return n instanceof Qe||(n=null),e.startNew?(e[a.$extra].target=n||i,!0):!(!n||n===i)&&(e[a.$extra].target=n,!0);n instanceof ee||(n=null);const o=n&&n[a.$getParent]();let s,l=o;if(e.startNew)if(n){const e=o.contentArea.children,t=e.indexOf(r),a=e.indexOf(n);-1!==t&&te,i[a.$extra].noLayoutFailure=!0;const s=t[a.$toHTML](n);e[a.$addHTML](s.html,s.bbox),i[a.$extra].noLayoutFailure=r,t[a.$getSubformParent]=o}class P extends s.StringObject{constructor(e){super(p,"appearanceFilter"),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class E extends s.XFAObject{constructor(e){super(p,"arc",!0),this.circular=(0,l.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e}),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.startAngle=(0,l.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=(0,l.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null,this.fill=null}[a.$toHTML](){var e;const t=this.edge||new ue({}),n=t[a.$toStyle](),i=Object.create(null);let r;"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)?Object.assign(i,this.fill[a.$toStyle]()):i.fill="transparent",i.strokeWidth=(0,o.measureToString)("visible"===t.presence?t.thickness:0),i.stroke=n.color;const s={xmlns:f,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)r={name:"ellipse",attributes:{xmlns:f,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:i}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,n=this.sweepAngle>180?1:0,[a,o,l,c]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];r={name:"path",attributes:{xmlns:f,d:"M ".concat(a," ").concat(o," A 50 50 0 ").concat(n," 0 ").concat(l," ").concat(c),vectorEffect:"non-scaling-stroke",style:i}},Object.assign(s,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const c={name:"svg",children:[r],attributes:s};return b(this[a.$getParent]()[a.$getParent]())?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[c]}):(c.attributes.style.position="absolute",l.HTMLResult.success(c))}}class O extends s.XFAObject{constructor(e){super(p,"area",!0),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null,this.area=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray}*[a.$getContainedChildren](){yield*x(this)}[a.$isTransparent](){return!0}[a.$isBindable](){return!0}[a.$addHTML](e,t){const[n,i,r,o]=t;this[a.$extra].width=Math.max(this[a.$extra].width,n+r),this[a.$extra].height=Math.max(this[a.$extra].height,i+o),this[a.$extra].children.push(e)}[a.$getAvailableSpace](){return this[a.$extra].availableSpace}[a.$toHTML](e){const t=(0,o.toStyle)(this,"position"),n={style:t,id:this[a.$uid],class:["xfaArea"]};(0,o.isPrintOnly)(this)&&n.class.push("xfaPrintOnly"),this.name&&(n.xfaName=this.name);const i=[];this[a.$extra]={children:i,width:0,height:0,availableSpace:e};const r=this[a.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!r.success)return r.isBreak()?r:(delete this[a.$extra],l.HTMLResult.FAILURE);t.width=(0,o.measureToString)(this[a.$extra].width),t.height=(0,o.measureToString)(this[a.$extra].height);const s={name:"div",attributes:n,children:i},c=[this.x,this.y,this[a.$extra].width,this[a.$extra].height];return delete this[a.$extra],l.HTMLResult.success(s,c)}}class N extends s.XFAObject{constructor(e){super(p,"assist",!0),this.id=e.id||"",this.role=e.role||"",this.use=e.use||"",this.usehref=e.usehref||"",this.speak=null,this.toolTip=null}[a.$toHTML](){var e;return(null===(e=this.toolTip)||void 0===e?void 0:e[a.$content])||null}}class R extends s.XFAObject{constructor(e){super(p,"barcode",!0),this.charEncoding=(0,l.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.checksum=(0,l.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,l.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0}),this.dataLength=(0,l.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>e>=0}),this.dataPrep=(0,l.getStringOption)(e.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,l.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0}),this.endChar=e.endChar||"",this.errorCorrectionLevel=(0,l.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8}),this.id=e.id||"",this.moduleHeight=(0,l.getMeasurement)(e.moduleHeight,"5mm"),this.moduleWidth=(0,l.getMeasurement)(e.moduleWidth,"0.25mm"),this.printCheckDigit=(0,l.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e}),this.rowColumnRatio=(0,l.getRatio)(e.rowColumnRatio),this.startChar=e.startChar||"",this.textLocation=(0,l.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,l.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e}),this.type=(0,l.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,l.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=e.use||"",this.usehref=e.usehref||"",this.wideNarrowRatio=(0,l.getRatio)(e.wideNarrowRatio),this.encrypt=null,this.extras=null}}class M extends s.XFAObject{constructor(e){super(p,"bind",!0),this.match=(0,l.getStringOption)(e.match,["once","dataRef","global","none"]),this.ref=e.ref||"",this.picture=null}}class D extends s.XFAObject{constructor(e){super(p,"bindItems"),this.connection=e.connection||"",this.labelRef=e.labelRef||"",this.ref=e.ref||"",this.valueRef=e.valueRef||""}}t.BindItems=D;class L extends s.XFAObject{constructor(e){super(p,"bookend"),this.id=e.id||"",this.leader=e.leader||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}}class B extends s.Option01{constructor(e){super(p,"boolean"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$toHTML](e){return k(1===this[a.$content]?"1":"0")}}class W extends s.XFAObject{constructor(e){super(p,"border",!0),this.break=(0,l.getStringOption)(e.break,["close","open"]),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new s.XFAObjectArray(4),this.edge=new s.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[a.$getExtra](){if(!this[a.$extra]){const e=this.edge.children.slice();if(e.length<4){const t=e.at(-1)||new ue({});for(let n=e.length;n<4;n++)e.push(t)}const t=e.map((e=>e.thickness)),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[a.$extra]={widths:t,insets:n,edges:e}}return this[a.$extra]}[a.$toStyle](){var e;const{edges:t}=this[a.$getExtra](),n=t.map((e=>{const t=e[a.$toStyle]();return t.color||(t.color="#000000"),t})),i=Object.create(null);if(this.margin&&Object.assign(i,this.margin[a.$toStyle]()),"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)&&Object.assign(i,this.fill[a.$toStyle]()),this.corner.children.some((e=>0!==e.radius))){const e=this.corner.children.map((e=>e[a.$toStyle]()));if(2===e.length||3===e.length){const t=e.at(-1);for(let n=e.length;n<4;n++)e.push(t)}i.borderRadius=e.map((e=>e.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":i.borderStyle="";break;case"inactive":i.borderStyle="none";break;default:i.borderStyle=n.map((e=>e.style)).join(" ")}return i.borderWidth=n.map((e=>e.width)).join(" "),i.borderColor=n.map((e=>e.color)).join(" "),i}}class z extends s.XFAObject{constructor(e){super(p,"break",!0),this.after=(0,l.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=e.afterTarget||"",this.before=(0,l.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=e.beforeTarget||"",this.bookendLeader=e.bookendLeader||"",this.bookendTrailer=e.bookendTrailer||"",this.id=e.id||"",this.overflowLeader=e.overflowLeader||"",this.overflowTarget=e.overflowTarget||"",this.overflowTrailer=e.overflowTrailer||"",this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class U extends s.XFAObject{constructor(e){super(p,"breakAfter",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}}class H extends s.XFAObject{constructor(e){super(p,"breakBefore",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}[a.$toHTML](e){return this[a.$extra]={},l.HTMLResult.FAILURE}}class q extends s.XFAObject{constructor(e){super(p,"button",!0),this.highlight=(0,l.getStringOption)(e.highlight,["inverted","none","outline","push"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[a.$toHTML](e){const t=this[a.$getParent]()[a.$getParent](),n={name:"button",attributes:{id:this[a.$uid],class:["xfaButton"],style:{}},children:[]};for(const i of t.event.children){if("click"!==i.activity||!i.script)continue;const e=(0,u.recoverJsURL)(i.script[a.$content]);if(!e)continue;const t=(0,o.fixURL)(e.url);t&&n.children.push({name:"a",attributes:{id:"link"+this[a.$uid],href:t,newWindow:e.newWindow,class:["xfaLink"],style:{}},children:[]})}return l.HTMLResult.success(n)}}class V extends s.XFAObject{constructor(e){super(p,"calculate",!0),this.id=e.id||"",this.override=(0,l.getStringOption)(e.override,["disabled","error","ignore","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.script=null}}class G extends s.XFAObject{constructor(e){super(p,"caption",!0),this.id=e.id||"",this.placement=(0,l.getStringOption)(e.placement,["left","bottom","inline","right","top"]),this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,l.getMeasurement)(e.reserve)),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[a.$setValue](e){_(this,e)}[a.$getExtra](e){if(!this[a.$extra]){let{width:t,height:n}=e;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":n=this.reserve<=0?n:this.reserve}this[a.$extra]=(0,o.layoutNode)(this,{width:t,height:n})}return this[a.$extra]}[a.$toHTML](e){if(!this.value)return l.HTMLResult.EMPTY;this[a.$pushPara]();const t=this.value[a.$toHTML](e).html;if(!t)return this[a.$popPara](),l.HTMLResult.EMPTY;const n=this.reserve;if(this.reserve<=0){const{w:t,h:n}=this[a.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=n}}const i=[];"string"===typeof t?i.push({name:"#text",value:t}):i.push(t);const r=(0,o.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(r.width=(0,o.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(r.height=(0,o.measureToString)(this.reserve))}return(0,o.setPara)(this,null,t),this[a.$popPara](),this.reserve=n,l.HTMLResult.success({name:"div",attributes:{style:r,class:["xfaCaption"]},children:i})}}class $ extends s.StringObject{constructor(e){super(p,"certificate"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class X extends s.XFAObject{constructor(e){super(p,"certificates",!0),this.credentialServerPolicy=(0,l.getStringOption)(e.credentialServerPolicy,["optional","required"]),this.id=e.id||"",this.url=e.url||"",this.urlPolicy=e.urlPolicy||"",this.use=e.use||"",this.usehref=e.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class K extends s.XFAObject{constructor(e){super(p,"checkButton",!0),this.id=e.id||"",this.mark=(0,l.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,l.getStringOption)(e.shape,["square","round"]),this.size=(0,l.getMeasurement)(e.size,"10pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[a.$toHTML](e){var t;const n=(0,o.toStyle)("margin"),i=(0,o.measureToString)(this.size);let r,s,c;n.width=n.height=i;const d=this[a.$getParent]()[a.$getParent](),u=d.items.children.length&&d.items.children[0][a.$toHTML]().html||[],h={on:(void 0!==u[0]?u[0]:"on").toString(),off:(void 0!==u[1]?u[1]:"off").toString()},p=((null===(t=d.value)||void 0===t?void 0:t[a.$text]())||"off")===h.on||void 0,f=d[a.$getSubformParent](),m=d[a.$uid];let v;var g,y;f instanceof we?(c=f[a.$uid],r="radio",s="xfaRadio",v=(null===(g=f[a.$data])||void 0===g?void 0:g[a.$uid])||f[a.$uid]):(r="checkbox",s="xfaCheckbox",v=(null===(y=d[a.$data])||void 0===y?void 0:y[a.$uid])||d[a.$uid]);const b={name:"input",attributes:{class:[s],style:n,fieldId:m,dataId:v,type:r,checked:p,xfaOn:h.on,xfaOff:h.off,"aria-label":A(d),"aria-required":!1}};return c&&(b.attributes.name=c),w(d)&&(b.attributes["aria-required"]=!0,b.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[b]})}}class Y extends s.XFAObject{constructor(e){super(p,"choiceList",!0),this.commitOn=(0,l.getStringOption)(e.commitOn,["select","exit"]),this.id=e.id||"",this.open=(0,l.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,l.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[a.$toHTML](e){var t,n;const i=(0,o.toStyle)(this,"border","margin"),r=this[a.$getParent]()[a.$getParent](),s=(null===(t=r.font)||void 0===t?void 0:t.size)||10,c={fontSize:"calc(".concat(s,"px * var(--scale-factor))")},d=[];if(r.items.children.length>0){var u;const e=r.items;let t=0,n=0;2===e.children.length&&(t=e.children[0].save,n=1-t);const i=e.children[t][a.$toHTML]().html,o=e.children[n][a.$toHTML]().html;let s=!1;const l=(null===(u=r.value)||void 0===u?void 0:u[a.$text]())||"";for(let a=0,r=i.length;ae>=0}),this.use=e.use||"",this.usehref=e.usehref||""}}class Q extends s.XFAObject{constructor(e){super(p,"connect",!0),this.connection=e.connection||"",this.id=e.id||"",this.ref=e.ref||"",this.usage=(0,l.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),this.use=e.use||"",this.usehref=e.usehref||"",this.picture=null}}class ee extends s.XFAObject{constructor(e){super(p,"contentArea",!0),this.h=(0,l.getMeasurement)(e.h),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=(0,l.getMeasurement)(e.w),this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null}[a.$toHTML](e){const t={left:(0,o.measureToString)(this.x),top:(0,o.measureToString)(this.y),width:(0,o.measureToString)(this.w),height:(0,o.measureToString)(this.h)},n=["xfaContentarea"];return(0,o.isPrintOnly)(this)&&n.push("xfaPrintOnly"),l.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:n,id:this[a.$uid]}})}}class te extends s.XFAObject{constructor(e){super(p,"corner",!0),this.id=e.id||"",this.inverted=(0,l.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e}),this.join=(0,l.getStringOption)(e.join,["square","round"]),this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,l.getMeasurement)(e.radius),this.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[a.$toStyle](){const e=(0,o.toStyle)(this,"visibility");return e.radius=(0,o.measureToString)("square"===this.join?0:this.radius),e}}class ne extends s.ContentObject{constructor(e){super(p,"date"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){const e=this[a.$content].trim();this[a.$content]=e?new Date(e):null}[a.$toHTML](e){return k(this[a.$content]?this[a.$content].toString():"")}}class ae extends s.ContentObject{constructor(e){super(p,"dateTime"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){const e=this[a.$content].trim();this[a.$content]=e?new Date(e):null}[a.$toHTML](e){return k(this[a.$content]?this[a.$content].toString():"")}}class ie extends s.XFAObject{constructor(e){super(p,"dateTimeEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.picker=(0,l.getStringOption)(e.picker,["host","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[a.$toHTML](e){var t;const n=(0,o.toStyle)(this,"border","font","margin"),i=this[a.$getParent]()[a.$getParent](),r={name:"input",attributes:{type:"text",fieldId:i[a.$uid],dataId:(null===(t=i[a.$data])||void 0===t?void 0:t[a.$uid])||i[a.$uid],class:["xfaTextfield"],style:n,"aria-label":A(i),"aria-required":!1}};return w(i)&&(r.attributes["aria-required"]=!0,r.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class re extends s.ContentObject{constructor(e){super(p,"decimal"),this.fracDigits=(0,l.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||"",this.leadDigits=(0,l.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){const e=parseFloat(this[a.$content].trim());this[a.$content]=isNaN(e)?null:e}[a.$toHTML](e){return k(null!==this[a.$content]?this[a.$content].toString():"")}}class oe extends s.XFAObject{constructor(e){super(p,"defaultUi",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class se extends s.XFAObject{constructor(e){super(p,"desc",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}}class le extends s.OptionObject{constructor(e){super(p,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ce extends s.XFAObject{constructor(e){super(p,"digestMethods",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.digestMethod=new s.XFAObjectArray}}class de extends s.XFAObject{constructor(e){super(p,"draw",!0),this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90===0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new s.XFAObjectArray}[a.$setValue](e){_(this,e)}[a.$toHTML](e){if(C(this),"hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;(0,o.fixDimensions)(this),this[a.$pushPara]();const t=this.w,n=this.h,{w:i,h:s,isBroken:c}=(0,o.layoutNode)(this,e);if(i&&""===this.w){if(c&&this[a.$getSubformParent]()[a.$isThereMoreWidth]())return this[a.$popPara](),l.HTMLResult.FAILURE;this.w=i}if(s&&""===this.h&&(this.h=s),j(this),!(0,r.checkDimensions)(this,e))return this.w=t,this.h=n,this[a.$popPara](),l.HTMLResult.FAILURE;I(this);const d=(0,o.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,o.setMinMaxDimensions)(this,d),d.margin&&(d.padding=d.margin,delete d.margin);const u=["xfaDraw"];this.font&&u.push("xfaFont"),(0,o.isPrintOnly)(this)&&u.push("xfaPrintOnly");const h={style:d,id:this[a.$uid],class:u};this.name&&(h.xfaName=this.name);const p={name:"div",attributes:h,children:[]};S(this,h);const f=(0,o.computeBbox)(this,p,e),m=this.value?this.value[a.$toHTML](e).html:null;return null===m?(this.w=t,this.h=n,this[a.$popPara](),l.HTMLResult.success((0,o.createWrapper)(this,p),f)):(p.children.push(m),(0,o.setPara)(this,d,m),this.w=t,this.h=n,this[a.$popPara](),l.HTMLResult.success((0,o.createWrapper)(this,p),f))}}class ue extends s.XFAObject{constructor(e){super(p,"edge",!0),this.cap=(0,l.getStringOption)(e.cap,["square","butt","round"]),this.id=e.id||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[a.$toStyle](){const e=(0,o.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,o.measureToString)(this.thickness),color:this.color?this.color[a.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class he extends s.OptionObject{constructor(e){super(p,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class pe extends s.XFAObject{constructor(e){super(p,"encodings",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encoding=new s.XFAObjectArray}}class fe extends s.XFAObject{constructor(e){super(p,"encrypt",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=null}}class me extends s.XFAObject{constructor(e){super(p,"encryptData",!0),this.id=e.id||"",this.operation=(0,l.getStringOption)(e.operation,["encrypt","decrypt"]),this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ve extends s.XFAObject{constructor(e){super(p,"encryption",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new s.XFAObjectArray}}class ge extends s.OptionObject{constructor(e){super(p,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ye extends s.XFAObject{constructor(e){super(p,"encryptionMethods",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encryptionMethod=new s.XFAObjectArray}}class be extends s.XFAObject{constructor(e){super(p,"event",!0),this.activity=(0,l.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=e.id||"",this.listen=(0,l.getStringOption)(e.listen,["refOnly","refAndDescendents"]),this.name=e.name||"",this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class _e extends s.ContentObject{constructor(e){super(p,"exData"),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.maxLength=(0,l.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1}),this.name=e.name||"",this.rid=e.rid||"",this.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["none","base64","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[a.$isCDATAXml](){return"text/html"===this.contentType}[a.$onChild](e){return("text/html"===this.contentType&&e[a.$namespaceId]===i.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[a.$content]=e,!0)}[a.$toHTML](e){return"text/html"===this.contentType&&this[a.$content]?this[a.$content][a.$toHTML](e):l.HTMLResult.EMPTY}}class xe extends s.XFAObject{constructor(e){super(p,"exObject",!0),this.archive=e.archive||"",this.classId=e.classId||"",this.codeBase=e.codeBase||"",this.codeType=e.codeType||"",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}}class we extends s.XFAObject{constructor(e){super(p,"exclGroup",!0),this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray}[a.$isBindable](){return!0}[a.$hasSettableValue](){return!0}[a.$setValue](e){for(const t of this.field.children){if(!t.value){const e=new Nt({});t[a.$appendChild](e),t.value=e}t.value[a.$setValue](e)}}[a.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[a.$extra].attempt&&this[a.$extra].numberInLine>0||this[a.$getParent]()[a.$isThereMoreWidth]()}[a.$isSplittable](){var e;const t=this[a.$getSubformParent]();return!!t[a.$isSplittable]()&&(void 0!==this[a.$extra]._isSplittable?this[a.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[a.$extra]._isSplittable=!1,!1):(null===(e=t.layout)||void 0===e||!e.endsWith("-tb")||0===t[a.$extra].numberInLine)&&(this[a.$extra]._isSplittable=!0,!0))}[a.$flushHTML](){return(0,r.flushHTML)(this)}[a.$addHTML](e,t){(0,r.addHTML)(this,e,t)}[a.$getAvailableSpace](){return(0,r.getAvailableSpace)(this)}[a.$toHTML](e){if(C(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;(0,o.fixDimensions)(this);const t=[],n={id:this[a.$uid],class:[]};(0,o.setAccess)(this,n.class),this[a.$extra]||(this[a.$extra]=Object.create(null)),Object.assign(this[a.$extra],{children:t,attributes:n,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const i=this[a.$isSplittable]();if(i||j(this),!(0,r.checkDimensions)(this,e))return l.HTMLResult.FAILURE;const s=new Set(["field"]);if(this.layout.includes("row")){const e=this[a.$getSubformParent]().columnWidths;Array.isArray(e)&&e.length>0&&(this[a.$extra].columnWidths=e,this[a.$extra].currentColumn=0)}const c=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),d=["xfaExclgroup"],u=(0,o.layoutClass)(this);u&&d.push(u),(0,o.isPrintOnly)(this)&&d.push("xfaPrintOnly"),n.style=c,n.class=d,this.name&&(n.xfaName=this.name),this[a.$pushPara]();const h="lr-tb"===this.layout||"rl-tb"===this.layout,p=h?2:1;for(;this[a.$extra].attempte>=1||-1===e}),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90===0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new s.XFAObjectArray(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new s.XFAObjectArray,this.connect=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray}[a.$isBindable](){return!0}[a.$setValue](e){_(this,e)}[a.$toHTML](e){var t;if(C(this),!this.ui){let e;switch(this.ui=new Et({}),this.ui[a.$globalData]=this[a.$globalData],this[a.$appendChild](this.ui),this.items.children.length){case 0:e=new kt({}),this.ui.textEdit=e;break;case 1:e=new K({}),this.ui.checkButton=e;break;case 2:e=new Y({}),this.ui.choiceList=e}this.ui[a.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;this.caption&&delete this.caption[a.$extra],this[a.$pushPara]();const n=this.caption?this.caption[a.$toHTML](e).html:null,i=this.w,s=this.h;let c=0,u=0;this.margin&&(c=this.margin.leftInset+this.margin.rightInset,u=this.margin.topInset+this.margin.bottomInset);let h=null;if(""===this.w||""===this.h){let t=null,n=null,i=0,r=0;if(this.ui.checkButton)i=r=this.ui.checkButton.size;else{const{w:t,h:n}=(0,o.layoutNode)(this,e);null!==t?(i=t,r=n):r=(0,d.getMetrics)(this.font,!0).lineNoGap}if(h=y(this.ui[a.$getExtra]()),i+=h.w,r+=h.h,this.caption){const{w:o,h:s,isBroken:c}=this.caption[a.$getExtra](e);if(c&&this[a.$getSubformParent]()[a.$isThereMoreWidth]())return this[a.$popPara](),l.HTMLResult.FAILURE;switch(t=o,n=s,this.caption.placement){case"left":case"right":case"inline":t+=i;break;case"top":case"bottom":n+=r}}else t=i,n=r;t&&""===this.w&&(t+=c,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1e>=1&&e<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class Ie extends s.ContentObject{constructor(e){super(p,"float"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){const e=parseFloat(this[a.$content].trim());this[a.$content]=isNaN(e)?null:e}[a.$toHTML](e){return k(null!==this[a.$content]?this[a.$content].toString():"")}}class Fe extends s.XFAObject{constructor(e){super(p,"font",!0),this.baselineShift=(0,l.getMeasurement)(e.baselineShift),this.fontHorizontalScale=(0,l.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0}),this.fontVerticalScale=(0,l.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0}),this.id=e.id||"",this.kerningMode=(0,l.getStringOption)(e.kerningMode,["none","pair"]),this.letterSpacing=(0,l.getMeasurement)(e.letterSpacing,"0"),this.lineThrough=(0,l.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e}),this.lineThroughPeriod=(0,l.getStringOption)(e.lineThroughPeriod,["all","word"]),this.overline=(0,l.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e}),this.overlinePeriod=(0,l.getStringOption)(e.overlinePeriod,["all","word"]),this.posture=(0,l.getStringOption)(e.posture,["normal","italic"]),this.size=(0,l.getMeasurement)(e.size,"10pt"),this.typeface=e.typeface||"Courier",this.underline=(0,l.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e}),this.underlinePeriod=(0,l.getStringOption)(e.underlinePeriod,["all","word"]),this.use=e.use||"",this.usehref=e.usehref||"",this.weight=(0,l.getStringOption)(e.weight,["normal","bold"]),this.extras=null,this.fill=null}[a.$clean](e){super[a.$clean](e),this[a.$globalData].usedTypefaces.add(this.typeface)}[a.$toStyle](){const e=(0,o.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,o.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,o.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,o.measureToString)(.99*this.size),(0,o.setFontFamily)(this,this,this[a.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}class Te extends s.XFAObject{constructor(e){super(p,"format",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null}}class Pe extends s.StringObject{constructor(e){super(p,"handler"),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ee extends s.XFAObject{constructor(e){super(p,"hyphenation"),this.excludeAllCaps=(0,l.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e}),this.excludeInitialCap=(0,l.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e}),this.hyphenate=(0,l.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.pushCharacterCount=(0,l.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0}),this.remainCharacterCount=(0,l.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0}),this.use=e.use||"",this.usehref=e.usehref||"",this.wordCharacterCount=(0,l.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Oe extends s.StringObject{constructor(e){super(p,"image"),this.aspect=(0,l.getStringOption)(e.aspect,["fit","actual","height","none","width"]),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.name=e.name||"",this.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["base64","none","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[a.$toHTML](){if(this.contentType&&!v.has(this.contentType.toLowerCase()))return l.HTMLResult.EMPTY;let e=this[a.$globalData].images&&this[a.$globalData].images.get(this.href);if(!e&&(this.href||!this[a.$content]))return l.HTMLResult.EMPTY;if(e||"base64"!==this.transferEncoding||(e=(0,c.stringToBytes)(atob(this[a.$content]))),!e)return l.HTMLResult.EMPTY;if(!this.contentType){for(const[t,n]of g)if(e.length>t.length&&t.every(((t,n)=>t===e[n]))){this.contentType=n;break}if(!this.contentType)return l.HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType});let n;switch(this.aspect){case"fit":case"actual":break;case"height":n={height:"100%",objectFit:"fill"};break;case"none":n={width:"100%",height:"100%",objectFit:"fill"};break;case"width":n={width:"100%",objectFit:"fill"}}const i=this[a.$getParent]();return l.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:n,src:URL.createObjectURL(t),alt:i?A(i[a.$getParent]()):null}})}}class Ne extends s.XFAObject{constructor(e){super(p,"imageEdit",!0),this.data=(0,l.getStringOption)(e.data,["link","embed"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[a.$toHTML](e){return"embed"===this.data?l.HTMLResult.success({name:"div",children:[],attributes:{}}):l.HTMLResult.EMPTY}}class Re extends s.ContentObject{constructor(e){super(p,"integer"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){const e=parseInt(this[a.$content].trim(),10);this[a.$content]=isNaN(e)?null:e}[a.$toHTML](e){return k(null!==this[a.$content]?this[a.$content].toString():"")}}class Me extends s.XFAObject{constructor(e){super(p,"issuers",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new s.XFAObjectArray}}class De extends s.XFAObject{constructor(e){super(p,"items",!0),this.id=e.id||"",this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.ref=e.ref||"",this.save=(0,l.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}[a.$toHTML](){const e=[];for(const t of this[a.$getChildren]())e.push(t[a.$text]());return l.HTMLResult.success(e)}}t.Items=De;class Le extends s.XFAObject{constructor(e){super(p,"keep",!0),this.id=e.id||"";const t=["none","contentArea","pageArea"];this.intact=(0,l.getStringOption)(e.intact,t),this.next=(0,l.getStringOption)(e.next,t),this.previous=(0,l.getStringOption)(e.previous,t),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class Be extends s.XFAObject{constructor(e){super(p,"keyUsage");const t=["","yes","no"];this.crlSign=(0,l.getStringOption)(e.crlSign,t),this.dataEncipherment=(0,l.getStringOption)(e.dataEncipherment,t),this.decipherOnly=(0,l.getStringOption)(e.decipherOnly,t),this.digitalSignature=(0,l.getStringOption)(e.digitalSignature,t),this.encipherOnly=(0,l.getStringOption)(e.encipherOnly,t),this.id=e.id||"",this.keyAgreement=(0,l.getStringOption)(e.keyAgreement,t),this.keyCertSign=(0,l.getStringOption)(e.keyCertSign,t),this.keyEncipherment=(0,l.getStringOption)(e.keyEncipherment,t),this.nonRepudiation=(0,l.getStringOption)(e.nonRepudiation,t),this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class We extends s.XFAObject{constructor(e){super(p,"line",!0),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.slope=(0,l.getStringOption)(e.slope,["\\","/"]),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null}[a.$toHTML](){const e=this[a.$getParent]()[a.$getParent](),t=this.edge||new ue({}),n=t[a.$toStyle](),i=Object.create(null),r="visible"===t.presence?t.thickness:0;let s,c,d,u;i.strokeWidth=(0,o.measureToString)(r),i.stroke=n.color;let h="100%",p="100%";e.w<=r?([s,c,d,u]=["50%",0,"50%","100%"],h=i.strokeWidth):e.h<=r?([s,c,d,u]=[0,"50%","100%","50%"],p=i.strokeWidth):"\\"===this.slope?[s,c,d,u]=[0,0,"100%","100%"]:[s,c,d,u]=[0,"100%","100%",0];const m={name:"svg",children:[{name:"line",attributes:{xmlns:f,x1:s,y1:c,x2:d,y2:u,style:i}}],attributes:{xmlns:f,width:h,height:p,style:{overflow:"visible"}}};return b(e)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[m]}):(m.attributes.style.position="absolute",l.HTMLResult.success(m))}}class ze extends s.XFAObject{constructor(e){super(p,"linear",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[a.$toStyle](e){e=e?e[a.$toStyle]():"#FFFFFF";const t=this.type.replace(/([RBLT])/," $1").toLowerCase(),n=this.color?this.color[a.$toStyle]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(n,")")}}class Ue extends s.ContentObject{constructor(e){super(p,"lockDocument"),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){this[a.$content]=(0,l.getStringOption)(this[a.$content],["auto","0","1"])}}class He extends s.XFAObject{constructor(e){super(p,"manifest",!0),this.action=(0,l.getStringOption)(e.action,["include","all","exclude"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.ref=new s.XFAObjectArray}}class qe extends s.XFAObject{constructor(e){super(p,"margin",!0),this.bottomInset=(0,l.getMeasurement)(e.bottomInset,"0"),this.id=e.id||"",this.leftInset=(0,l.getMeasurement)(e.leftInset,"0"),this.rightInset=(0,l.getMeasurement)(e.rightInset,"0"),this.topInset=(0,l.getMeasurement)(e.topInset,"0"),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[a.$toStyle](){return{margin:(0,o.measureToString)(this.topInset)+" "+(0,o.measureToString)(this.rightInset)+" "+(0,o.measureToString)(this.bottomInset)+" "+(0,o.measureToString)(this.leftInset)}}}class Ve extends s.XFAObject{constructor(e){super(p,"mdp"),this.id=e.id||"",this.permissions=(0,l.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e}),this.signatureType=(0,l.getStringOption)(e.signatureType,["filler","author"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ge extends s.XFAObject{constructor(e){super(p,"medium"),this.id=e.id||"",this.imagingBBox=(0,l.getBBox)(e.imagingBBox),this.long=(0,l.getMeasurement)(e.long),this.orientation=(0,l.getStringOption)(e.orientation,["portrait","landscape"]),this.short=(0,l.getMeasurement)(e.short),this.stock=e.stock||"",this.trayIn=(0,l.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,l.getStringOption)(e.trayOut,["auto","delegate"]),this.use=e.use||"",this.usehref=e.usehref||""}}class $e extends s.XFAObject{constructor(e){super(p,"message",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.text=new s.XFAObjectArray}}class Xe extends s.XFAObject{constructor(e){super(p,"numericEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[a.$toHTML](e){var t;const n=(0,o.toStyle)(this,"border","font","margin"),i=this[a.$getParent]()[a.$getParent](),r={name:"input",attributes:{type:"text",fieldId:i[a.$uid],dataId:(null===(t=i[a.$data])||void 0===t?void 0:t[a.$uid])||i[a.$uid],class:["xfaTextfield"],style:n,"aria-label":A(i),"aria-required":!1}};return w(i)&&(r.attributes["aria-required"]=!0,r.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class Ke extends s.XFAObject{constructor(e){super(p,"occur",!0),this.id=e.id||"",this.initial=""!==e.initial?(0,l.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"",this.max=""!==e.max?(0,l.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"",this.min=""!==e.min?(0,l.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[a.$clean](){const e=this[a.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof Qe||e instanceof et?0:1),""===this.max&&(this.max=""===t?e instanceof Qe||e instanceof et?-1:1:this.min),-1!==this.max&&this.max!0}),this.name=e.name||"",this.numbered=(0,l.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=(0,l.getStringOption)(e.oddOrEven,["any","even","odd"]),this.pagePosition=(0,l.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new s.XFAObjectArray,this.contentArea=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.subform=new s.XFAObjectArray}[a.$isUsable](){return this[a.$extra]?!this.occur||-1===this.occur.max||this[a.$extra].numberOfUsee.oddOrEven===t&&e.pagePosition===n));return i||(i=this.pageArea.children.find((e=>"any"===e.oddOrEven&&e.pagePosition===n)),i||(i=this.pageArea.children.find((e=>"any"===e.oddOrEven&&"any"===e.pagePosition)),i||this.pageArea.children[0]))}}class tt extends s.XFAObject{constructor(e){super(p,"para",!0),this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.lineHeight=e.lineHeight?(0,l.getMeasurement)(e.lineHeight,"0pt"):"",this.marginLeft=e.marginLeft?(0,l.getMeasurement)(e.marginLeft,"0pt"):"",this.marginRight=e.marginRight?(0,l.getMeasurement)(e.marginRight,"0pt"):"",this.orphans=(0,l.getInteger)({data:e.orphans,defaultValue:0,validate:e=>e>=0}),this.preserve=e.preserve||"",this.radixOffset=e.radixOffset?(0,l.getMeasurement)(e.radixOffset,"0pt"):"",this.spaceAbove=e.spaceAbove?(0,l.getMeasurement)(e.spaceAbove,"0pt"):"",this.spaceBelow=e.spaceBelow?(0,l.getMeasurement)(e.spaceBelow,"0pt"):"",this.tabDefault=e.tabDefault?(0,l.getMeasurement)(this.tabDefault):"",this.tabStops=(e.tabStops||"").trim().split(/\s+/).map(((e,t)=>t%2===1?(0,l.getMeasurement)(e):e)),this.textIndent=e.textIndent?(0,l.getMeasurement)(e.textIndent,"0pt"):"",this.use=e.use||"",this.usehref=e.usehref||"",this.vAlign=(0,l.getStringOption)(e.vAlign,["top","bottom","middle"]),this.widows=(0,l.getInteger)({data:e.widows,defaultValue:0,validate:e=>e>=0}),this.hyphenation=null}[a.$toStyle](){const e=(0,o.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,o.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,o.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,o.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,o.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,o.measureToString)(this.textIndent),(0,o.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,o.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,o.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[a.$toStyle]()),e}}class nt extends s.XFAObject{constructor(e){super(p,"passwordEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.passwordChar=e.passwordChar||"*",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}}class at extends s.XFAObject{constructor(e){super(p,"pattern",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[a.$toStyle](e){e=e?e[a.$toStyle]():"#FFFFFF";const t=this.color?this.color[a.$toStyle]():"#000000",n="repeating-linear-gradient",i="".concat(e,",").concat(e," ").concat(5,"px,").concat(t," ").concat(5,"px,").concat(t," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(n,"(to top,").concat(i,") ").concat(n,"(to right,").concat(i,")");case"crossDiagonal":return"".concat(n,"(45deg,").concat(i,") ").concat(n,"(-45deg,").concat(i,")");case"diagonalLeft":return"".concat(n,"(45deg,").concat(i,")");case"diagonalRight":return"".concat(n,"(-45deg,").concat(i,")");case"horizontal":return"".concat(n,"(to top,").concat(i,")");case"vertical":return"".concat(n,"(to right,").concat(i,")")}return""}}class it extends s.StringObject{constructor(e){super(p,"picture"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class rt extends s.XFAObject{constructor(e){super(p,"proto",!0),this.appearanceFilter=new s.XFAObjectArray,this.arc=new s.XFAObjectArray,this.area=new s.XFAObjectArray,this.assist=new s.XFAObjectArray,this.barcode=new s.XFAObjectArray,this.bindItems=new s.XFAObjectArray,this.bookend=new s.XFAObjectArray,this.boolean=new s.XFAObjectArray,this.border=new s.XFAObjectArray,this.break=new s.XFAObjectArray,this.breakAfter=new s.XFAObjectArray,this.breakBefore=new s.XFAObjectArray,this.button=new s.XFAObjectArray,this.calculate=new s.XFAObjectArray,this.caption=new s.XFAObjectArray,this.certificate=new s.XFAObjectArray,this.certificates=new s.XFAObjectArray,this.checkButton=new s.XFAObjectArray,this.choiceList=new s.XFAObjectArray,this.color=new s.XFAObjectArray,this.comb=new s.XFAObjectArray,this.connect=new s.XFAObjectArray,this.contentArea=new s.XFAObjectArray,this.corner=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.dateTimeEdit=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.defaultUi=new s.XFAObjectArray,this.desc=new s.XFAObjectArray,this.digestMethod=new s.XFAObjectArray,this.digestMethods=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.edge=new s.XFAObjectArray,this.encoding=new s.XFAObjectArray,this.encodings=new s.XFAObjectArray,this.encrypt=new s.XFAObjectArray,this.encryptData=new s.XFAObjectArray,this.encryption=new s.XFAObjectArray,this.encryptionMethod=new s.XFAObjectArray,this.encryptionMethods=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.execute=new s.XFAObjectArray,this.extras=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.fill=new s.XFAObjectArray,this.filter=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.font=new s.XFAObjectArray,this.format=new s.XFAObjectArray,this.handler=new s.XFAObjectArray,this.hyphenation=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.imageEdit=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.issuers=new s.XFAObjectArray,this.items=new s.XFAObjectArray,this.keep=new s.XFAObjectArray,this.keyUsage=new s.XFAObjectArray,this.line=new s.XFAObjectArray,this.linear=new s.XFAObjectArray,this.lockDocument=new s.XFAObjectArray,this.manifest=new s.XFAObjectArray,this.margin=new s.XFAObjectArray,this.mdp=new s.XFAObjectArray,this.medium=new s.XFAObjectArray,this.message=new s.XFAObjectArray,this.numericEdit=new s.XFAObjectArray,this.occur=new s.XFAObjectArray,this.oid=new s.XFAObjectArray,this.oids=new s.XFAObjectArray,this.overflow=new s.XFAObjectArray,this.pageArea=new s.XFAObjectArray,this.pageSet=new s.XFAObjectArray,this.para=new s.XFAObjectArray,this.passwordEdit=new s.XFAObjectArray,this.pattern=new s.XFAObjectArray,this.picture=new s.XFAObjectArray,this.radial=new s.XFAObjectArray,this.reason=new s.XFAObjectArray,this.reasons=new s.XFAObjectArray,this.rectangle=new s.XFAObjectArray,this.ref=new s.XFAObjectArray,this.script=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray,this.signData=new s.XFAObjectArray,this.signature=new s.XFAObjectArray,this.signing=new s.XFAObjectArray,this.solid=new s.XFAObjectArray,this.speak=new s.XFAObjectArray,this.stipple=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray,this.subjectDN=new s.XFAObjectArray,this.subjectDNs=new s.XFAObjectArray,this.submit=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.textEdit=new s.XFAObjectArray,this.time=new s.XFAObjectArray,this.timeStamp=new s.XFAObjectArray,this.toolTip=new s.XFAObjectArray,this.traversal=new s.XFAObjectArray,this.traverse=new s.XFAObjectArray,this.ui=new s.XFAObjectArray,this.validate=new s.XFAObjectArray,this.value=new s.XFAObjectArray,this.variables=new s.XFAObjectArray}}class ot extends s.XFAObject{constructor(e){super(p,"radial",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["toEdge","toCenter"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[a.$toStyle](e){e=e?e[a.$toStyle]():"#FFFFFF";const t=this.color?this.color[a.$toStyle]():"#000000",n="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle at center, ".concat(n,")")}}class st extends s.StringObject{constructor(e){super(p,"reason"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class lt extends s.XFAObject{constructor(e){super(p,"reasons",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.reason=new s.XFAObjectArray}}class ct extends s.XFAObject{constructor(e){super(p,"rectangle",!0),this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new s.XFAObjectArray(4),this.edge=new s.XFAObjectArray(4),this.fill=null}[a.$toHTML](){var e;const t=this.edge.children.length?this.edge.children[0]:new ue({}),n=t[a.$toStyle](),i=Object.create(null);"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)?Object.assign(i,this.fill[a.$toStyle]()):i.fill="transparent",i.strokeWidth=(0,o.measureToString)("visible"===t.presence?t.thickness:0),i.stroke=n.color;const r=(this.corner.children.length?this.corner.children[0]:new te({}))[a.$toStyle](),s={name:"svg",children:[{name:"rect",attributes:{xmlns:f,width:"100%",height:"100%",x:0,y:0,rx:r.radius,ry:r.radius,style:i}}],attributes:{xmlns:f,style:{overflow:"visible"},width:"100%",height:"100%"}};return b(this[a.$getParent]()[a.$getParent]())?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[s]}):(s.attributes.style.position="absolute",l.HTMLResult.success(s))}}class dt extends s.StringObject{constructor(e){super(p,"ref"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ut extends s.StringObject{constructor(e){super(p,"script"),this.binding=e.binding||"",this.contentType=e.contentType||"",this.id=e.id||"",this.name=e.name||"",this.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class ht extends s.XFAObject{constructor(e){super(p,"setProperty"),this.connection=e.connection||"",this.ref=e.ref||"",this.target=e.target||""}}t.SetProperty=ht;class pt extends s.XFAObject{constructor(e){super(p,"signData",!0),this.id=e.id||"",this.operation=(0,l.getStringOption)(e.operation,["sign","clear","verify"]),this.ref=e.ref||"",this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ft extends s.XFAObject{constructor(e){super(p,"signature",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["PDF1.3","PDF1.6"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class mt extends s.XFAObject{constructor(e){super(p,"signing",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new s.XFAObjectArray}}class vt extends s.XFAObject{constructor(e){super(p,"solid",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[a.$toStyle](e){return e?e[a.$toStyle]():"#FFFFFF"}}class gt extends s.StringObject{constructor(e){super(p,"speak"),this.disable=(0,l.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.priority=(0,l.getStringOption)(e.priority,["custom","caption","name","toolTip"]),this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class yt extends s.XFAObject{constructor(e){super(p,"stipple",!0),this.id=e.id||"",this.rate=(0,l.getInteger)({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100}),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[a.$toStyle](e){const t=this.rate/100;return c.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class bt extends s.XFAObject{constructor(e){super(p,"subform",!0),this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,l.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e}),this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((e=>"-1"===e?-1:(0,l.getMeasurement)(e))),this.h=e.h?(0,l.getMeasurement)(e.h):"",this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=e.locale||"",this.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),this.mergeMode=(0,l.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,l.getMeasurement)(e.minH,"0pt"),this.minW=(0,l.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(e.relevant),this.restoreState=(0,l.getStringOption)(e.restoreState,["manual","auto"]),this.scope=(0,l.getStringOption)(e.scope,["name","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,l.getMeasurement)(e.w):"",this.x=(0,l.getMeasurement)(e.x,"0pt"),this.y=(0,l.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new s.XFAObjectArray,this.breakAfter=new s.XFAObjectArray,this.breakBefore=new s.XFAObjectArray,this.connect=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.proto=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray}[a.$getSubformParent](){const e=this[a.$getParent]();return e instanceof _t?e[a.$getSubformParent]():e}[a.$isBindable](){return!0}[a.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[a.$extra].attempt&&this[a.$extra].numberInLine>0||this[a.$getParent]()[a.$isThereMoreWidth]()}*[a.$getContainedChildren](){yield*x(this)}[a.$flushHTML](){return(0,r.flushHTML)(this)}[a.$addHTML](e,t){(0,r.addHTML)(this,e,t)}[a.$getAvailableSpace](){return(0,r.getAvailableSpace)(this)}[a.$isSplittable](){var e;const t=this[a.$getSubformParent]();return!!t[a.$isSplittable]()&&(void 0!==this[a.$extra]._isSplittable?this[a.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[a.$extra]._isSplittable=!1,!1):(null===(e=t.layout)||void 0===e||!e.endsWith("-tb")||0===t[a.$extra].numberInLine)&&(this[a.$extra]._isSplittable=!0,!0))}[a.$toHTML](e){var t;if(C(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new U({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[a.$globalData]=this[a.$globalData],this[a.$appendChild](e),this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new H({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[a.$globalData]=this[a.$globalData],this[a.$appendChild](e),this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new Ze({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[a.$globalData]=this[a.$globalData],this[a.$appendChild](e),this.overflow.push(e)}this[a.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,c.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const e=this.breakBefore.children[0];if(F(e))return l.HTMLResult.breakNode(e)}if(null!==(t=this[a.$extra])&&void 0!==t&&t.afterBreakAfter)return l.HTMLResult.EMPTY;(0,o.fixDimensions)(this);const n=[],i={id:this[a.$uid],class:[]};(0,o.setAccess)(this,i.class),this[a.$extra]||(this[a.$extra]=Object.create(null)),Object.assign(this[a.$extra],{children:n,line:null,attributes:i,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const s=this[a.$getTemplateRoot](),d=s[a.$extra].noLayoutFailure,u=this[a.$isSplittable]();if(u||j(this),!(0,r.checkDimensions)(this,e))return l.HTMLResult.FAILURE;const h=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[a.$getSubformParent]().columnWidths;Array.isArray(e)&&e.length>0&&(this[a.$extra].columnWidths=e,this[a.$extra].currentColumn=0)}const p=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),f=["xfaSubform"],m=(0,o.layoutClass)(this);if(m&&f.push(m),i.style=p,i.class=f,this.name&&(i.xfaName=this.name),this.overflow){const t=this.overflow[a.$getExtra]();t.addLeader&&(t.addLeader=!1,T(this,t.leader,e))}this[a.$pushPara]();const v="lr-tb"===this.layout||"rl-tb"===this.layout,g=v?2:1;for(;this[a.$extra].attempt=1){const e=this.breakAfter.children[0];if(F(e))return this[a.$extra].afterBreakAfter=k,l.HTMLResult.breakNode(e)}return delete this[a.$extra],k}}class _t extends s.XFAObject{constructor(e){super(p,"subformSet",!0),this.id=e.id||"",this.name=e.name||"",this.relation=(0,l.getStringOption)(e.relation,["ordered","choice","unordered"]),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new s.XFAObjectArray,this.breakBefore=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray}*[a.$getContainedChildren](){yield*x(this)}[a.$getSubformParent](){let e=this[a.$getParent]();for(;!(e instanceof bt);)e=e[a.$getParent]();return e}[a.$isBindable](){return!0}}class xt extends s.ContentObject{constructor(e){super(p,"subjectDN"),this.delimiter=e.delimiter||",",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){this[a.$content]=new Map(this[a.$content].split(this.delimiter).map((e=>((e=e.split("=",2))[0]=e[0].trim(),e))))}}class wt extends s.XFAObject{constructor(e){super(p,"subjectDNs",!0),this.id=e.id||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.subjectDN=new s.XFAObjectArray}}class Ct extends s.XFAObject{constructor(e){super(p,"submit",!0),this.embedPDF=(0,l.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e}),this.format=(0,l.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=e.id||"",this.target=e.target||"",this.textEncoding=(0,l.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.use=e.use||"",this.usehref=e.usehref||"",this.xdpContent=e.xdpContent||"",this.encrypt=null,this.encryptData=new s.XFAObjectArray,this.signData=new s.XFAObjectArray}}class St extends s.XFAObject{constructor(e){super(p,"template",!0),this.baseProfile=(0,l.getStringOption)(e.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new s.XFAObjectArray}[a.$finalize](){0===this.subform.children.length&&(0,c.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,c.warn)("XFA - Several subforms in template node: please file a bug."),this[a.$tabIndex]=5e3}[a.$isSplittable](){return!0}[a.$searchNode](e,t){return e.startsWith("#")?[this[a.$ids].get(e.slice(1))]:(0,h.searchNode)(this,t,e,!0,!0)}*[a.$toPages](){var e,t;if(!this.subform.children.length)return l.HTMLResult.success({name:"div",children:[]});this[a.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const n=this.subform.children[0];n.pageSet[a.$cleanPage]();const i=n.pageSet.pageArea.children,r={name:"div",children:[]};let o=null,s=null,d=null;if(n.breakBefore.children.length>=1?(s=n.breakBefore.children[0],d=s.target):n.subform.children.length>=1&&n.subform.children[0].breakBefore.children.length>=1?(s=n.subform.children[0].breakBefore.children[0],d=s.target):null!==(e=n.break)&&void 0!==e&&e.beforeTarget?(s=n.break,d=s.beforeTarget):n.subform.children.length>=1&&null!==(t=n.subform.children[0].break)&&void 0!==t&&t.beforeTarget&&(s=n.subform.children[0].break,d=s.beforeTarget),s){const e=this[a.$searchNode](d,s[a.$getParent]());e instanceof Qe&&(o=e,s[a.$extra]={})}o||(o=i[0]),o[a.$extra]={numberOfUse:1};const u=o[a.$getParent]();let h;u[a.$extra]={numberOfUse:1,pageIndex:u.pageArea.children.indexOf(o),pageSetIndex:0};let p=null,f=null,m=!0,v=0,g=0;for(;;){if(m)v=0;else if(r.children.pop(),3===++v)return(0,c.warn)("XFA - Something goes wrong: please file a bug."),r;h=null,this[a.$extra].currentPageArea=o;const e=o[a.$toHTML]().html;r.children.push(e),p&&(this[a.$extra].noLayoutFailure=!0,e.children.push(p[a.$toHTML](o[a.$extra].space).html),p=null),f&&(this[a.$extra].noLayoutFailure=!0,e.children.push(f[a.$toHTML](o[a.$extra].space).html),f=null);const t=o.contentArea.children,i=e.children.filter((e=>e.attributes.class.includes("xfaContentarea")));m=!1,this[a.$extra].firstUnsplittable=null,this[a.$extra].noLayoutFailure=!1;const s=e=>{const t=n[a.$flushHTML]();var r;t&&(m||(m=(null===(r=t.children)||void 0===r?void 0:r.length)>0),i[e].children.push(t))};for(let o=g,l=t.length;o0),i[o].children.push(c.html)):!m&&r.children.length>1&&r.children.pop(),r;if(c.isBreak()){const e=c.breakNode;if(s(o),"auto"===e.targetType)continue;e.leader&&(p=this[a.$searchNode](e.leader,e[a.$getParent]()),p=p?p[0]:null),e.trailer&&(f=this[a.$searchNode](e.trailer,e[a.$getParent]()),f=f?f[0]:null),"pageArea"===e.targetType?(h=e[a.$extra].target,o=1/0):e[a.$extra].target?(h=e[a.$extra].target,g=e[a.$extra].index+1,o=1/0):o=e[a.$extra].index}else if(this[a.$extra].overflowNode){const e=this[a.$extra].overflowNode;this[a.$extra].overflowNode=null;const n=e[a.$getExtra](),i=n.target;n.addLeader=null!==n.leader,n.addTrailer=null!==n.trailer,s(o);const r=o;if(o=1/0,i instanceof Qe)h=i;else if(i instanceof ee){const e=t.indexOf(i);-1!==e?e>r?o=e-1:g=e:(h=i[a.$getParent](),g=h.contentArea.children.indexOf(i))}}else s(o)}this[a.$extra].pageNumber+=1,h&&(h[a.$isUsable]()?h[a.$extra].numberOfUse+=1:h=null),o=h||o[a.$getNextPage](),yield null}}}t.Template=St;class At extends s.ContentObject{constructor(e){super(p,"text"),this.id=e.id||"",this.maxChars=(0,l.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>e>=0}),this.name=e.name||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$acceptWhitespace](){return!0}[a.$onChild](e){return e[a.$namespaceId]===i.NamespaceIds.xhtml.id?(this[a.$content]=e,!0):((0,c.warn)("XFA - Invalid content in Text: ".concat(e[a.$nodeName],".")),!1)}[a.$onText](e){this[a.$content]instanceof s.XFAObject||super[a.$onText](e)}[a.$finalize](){"string"===typeof this[a.$content]&&(this[a.$content]=this[a.$content].replaceAll("\r\n","\n"))}[a.$getExtra](){return"string"===typeof this[a.$content]?this[a.$content].split(/[\u2029\u2028\n]/).reduce(((e,t)=>(t&&e.push(t),e)),[]).join("\n"):this[a.$content][a.$text]()}[a.$toHTML](e){if("string"===typeof this[a.$content]){const e=k(this[a.$content]).html;return this[a.$content].includes("\u2029")?(e.name="div",e.children=[],this[a.$content].split("\u2029").map((e=>e.split(/[\u2028\n]/).reduce(((e,t)=>(e.push({name:"span",value:t},{name:"br"}),e)),[]))).forEach((t=>{e.children.push({name:"p",children:t})}))):/[\u2028\n]/.test(this[a.$content])&&(e.name="div",e.children=[],this[a.$content].split(/[\u2028\n]/).forEach((t=>{e.children.push({name:"span",value:t},{name:"br"})}))),l.HTMLResult.success(e)}return this[a.$content][a.$toHTML](e)}}t.Text=At;class kt extends s.XFAObject{constructor(e){super(p,"textEdit",!0),this.allowRichText=(0,l.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e}),this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.multiLine=(0,l.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.vScrollPolicy=(0,l.getStringOption)(e.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[a.$toHTML](e){const t=(0,o.toStyle)(this,"border","font","margin");let n;const i=this[a.$getParent]()[a.$getParent]();var r,s;return""===this.multiLine&&(this.multiLine=i instanceof de?1:0),n=1===this.multiLine?{name:"textarea",attributes:{dataId:(null===(r=i[a.$data])||void 0===r?void 0:r[a.$uid])||i[a.$uid],fieldId:i[a.$uid],class:["xfaTextfield"],style:t,"aria-label":A(i),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:(null===(s=i[a.$data])||void 0===s?void 0:s[a.$uid])||i[a.$uid],fieldId:i[a.$uid],class:["xfaTextfield"],style:t,"aria-label":A(i),"aria-required":!1}},w(i)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class jt extends s.StringObject{constructor(e){super(p,"time"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[a.$finalize](){const e=this[a.$content].trim();this[a.$content]=e?new Date(e):null}[a.$toHTML](e){return k(this[a.$content]?this[a.$content].toString():"")}}class It extends s.XFAObject{constructor(e){super(p,"timeStamp"),this.id=e.id||"",this.server=e.server||"",this.type=(0,l.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ft extends s.StringObject{constructor(e){super(p,"toolTip"),this.id=e.id||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Tt extends s.XFAObject{constructor(e){super(p,"traversal",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.traverse=new s.XFAObjectArray}}class Pt extends s.XFAObject{constructor(e){super(p,"traverse",!0),this.id=e.id||"",this.operation=(0,l.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[a.$isTransparent](){return!1}}class Et extends s.XFAObject{constructor(e){super(p,"ui",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[a.$getExtra](){if(void 0===this[a.$extra]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue;const t=this[e];if(t instanceof s.XFAObject)return this[a.$extra]=t,t}this[a.$extra]=null}return this[a.$extra]}[a.$toHTML](e){const t=this[a.$getExtra]();return t?t[a.$toHTML](e):l.HTMLResult.EMPTY}}class Ot extends s.XFAObject{constructor(e){super(p,"validate",!0),this.formatTest=(0,l.getStringOption)(e.formatTest,["warning","disabled","error"]),this.id=e.id||"",this.nullTest=(0,l.getStringOption)(e.nullTest,["disabled","error","warning"]),this.scriptTest=(0,l.getStringOption)(e.scriptTest,["error","disabled","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Nt extends s.XFAObject{constructor(e){super(p,"value",!0),this.id=e.id||"",this.override=(0,l.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e}),this.relevant=(0,l.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[a.$setValue](e){const t=this[a.$getParent]();var n;if(t instanceof Ae&&null!==(n=t.ui)&&void 0!==n&&n.imageEdit)return this.image||(this.image=new Oe({}),this[a.$appendChild](this.image)),void(this.image[a.$content]=e[a.$content]);const i=e[a.$nodeName];if(null===this[i]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];t instanceof s.XFAObject&&(this[e]=null,this[a.$removeChild](t))}this[e[a.$nodeName]]=e,this[a.$appendChild](e)}else this[i][a.$content]=e[a.$content]}[a.$text](){if(this.exData)return"string"===typeof this.exData[a.$content]?this.exData[a.$content].trim():this.exData[a.$content][a.$text]().trim();for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue;const t=this[e];if(t instanceof s.XFAObject)return(t[a.$content]||"").toString().trim()}return null}[a.$toHTML](e){for(const t of Object.getOwnPropertyNames(this)){const n=this[t];if(n instanceof s.XFAObject)return n[a.$toHTML](e)}return l.HTMLResult.EMPTY}}t.Value=Nt;class Rt extends s.XFAObject{constructor(e){super(p,"variables",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.manifest=new s.XFAObjectArray,this.script=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}[a.$isTransparent](){return!0}}class Mt{static[i.$buildXFAObject](e,t){if(Mt.hasOwnProperty(e)){const n=Mt[e](t);return n[a.$setSetAttributes](t),n}}static appearanceFilter(e){return new P(e)}static arc(e){return new E(e)}static area(e){return new O(e)}static assist(e){return new N(e)}static barcode(e){return new R(e)}static bind(e){return new M(e)}static bindItems(e){return new D(e)}static bookend(e){return new L(e)}static boolean(e){return new B(e)}static border(e){return new W(e)}static break(e){return new z(e)}static breakAfter(e){return new U(e)}static breakBefore(e){return new H(e)}static button(e){return new q(e)}static calculate(e){return new V(e)}static caption(e){return new G(e)}static certificate(e){return new $(e)}static certificates(e){return new X(e)}static checkButton(e){return new K(e)}static choiceList(e){return new Y(e)}static color(e){return new J(e)}static comb(e){return new Z(e)}static connect(e){return new Q(e)}static contentArea(e){return new ee(e)}static corner(e){return new te(e)}static date(e){return new ne(e)}static dateTime(e){return new ae(e)}static dateTimeEdit(e){return new ie(e)}static decimal(e){return new re(e)}static defaultUi(e){return new oe(e)}static desc(e){return new se(e)}static digestMethod(e){return new le(e)}static digestMethods(e){return new ce(e)}static draw(e){return new de(e)}static edge(e){return new ue(e)}static encoding(e){return new he(e)}static encodings(e){return new pe(e)}static encrypt(e){return new fe(e)}static encryptData(e){return new me(e)}static encryption(e){return new ve(e)}static encryptionMethod(e){return new ge(e)}static encryptionMethods(e){return new ye(e)}static event(e){return new be(e)}static exData(e){return new _e(e)}static exObject(e){return new xe(e)}static exclGroup(e){return new we(e)}static execute(e){return new Ce(e)}static extras(e){return new Se(e)}static field(e){return new Ae(e)}static fill(e){return new ke(e)}static filter(e){return new je(e)}static float(e){return new Ie(e)}static font(e){return new Fe(e)}static format(e){return new Te(e)}static handler(e){return new Pe(e)}static hyphenation(e){return new Ee(e)}static image(e){return new Oe(e)}static imageEdit(e){return new Ne(e)}static integer(e){return new Re(e)}static issuers(e){return new Me(e)}static items(e){return new De(e)}static keep(e){return new Le(e)}static keyUsage(e){return new Be(e)}static line(e){return new We(e)}static linear(e){return new ze(e)}static lockDocument(e){return new Ue(e)}static manifest(e){return new He(e)}static margin(e){return new qe(e)}static mdp(e){return new Ve(e)}static medium(e){return new Ge(e)}static message(e){return new $e(e)}static numericEdit(e){return new Xe(e)}static occur(e){return new Ke(e)}static oid(e){return new Ye(e)}static oids(e){return new Je(e)}static overflow(e){return new Ze(e)}static pageArea(e){return new Qe(e)}static pageSet(e){return new et(e)}static para(e){return new tt(e)}static passwordEdit(e){return new nt(e)}static pattern(e){return new at(e)}static picture(e){return new it(e)}static proto(e){return new rt(e)}static radial(e){return new ot(e)}static reason(e){return new st(e)}static reasons(e){return new lt(e)}static rectangle(e){return new ct(e)}static ref(e){return new dt(e)}static script(e){return new ut(e)}static setProperty(e){return new ht(e)}static signData(e){return new pt(e)}static signature(e){return new ft(e)}static signing(e){return new mt(e)}static solid(e){return new vt(e)}static speak(e){return new gt(e)}static stipple(e){return new yt(e)}static subform(e){return new bt(e)}static subformSet(e){return new _t(e)}static subjectDN(e){return new xt(e)}static subjectDNs(e){return new wt(e)}static submit(e){return new Ct(e)}static template(e){return new St(e)}static text(e){return new At(e)}static textEdit(e){return new kt(e)}static time(e){return new jt(e)}static timeStamp(e){return new It(e)}static toolTip(e){return new Ft(e)}static traversal(e){return new Tt(e)}static traverse(e){return new Pt(e)}static ui(e){return new Et(e)}static validate(e){return new Ot(e)}static value(e){return new Nt(e)}static variables(e){return new Rt(e)}}t.TemplateNamespace=Mt},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;const n=Symbol();t.$buildXFAObject=n,t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,n){const o=e[a.$extra],s=o.availableSpace,[l,c,d,u]=n;switch(e.layout){case"position":o.width=Math.max(o.width,l+d),o.height=Math.max(o.height,c+u),o.children.push(t);break;case"lr-tb":case"rl-tb":o.line&&1!==o.attempt||(o.line=r(e,[]),o.children.push(o.line),o.numberInLine=0),o.numberInLine+=1,o.line.children.push(t),0===o.attempt?(o.currentWidth+=d,o.height=Math.max(o.height,o.prevHeight+u)):(o.currentWidth=d,o.prevHeight=o.height,o.height+=u,o.attempt=0),o.width=Math.max(o.width,o.currentWidth);break;case"rl-row":case"row":{o.children.push(t),o.width+=d,o.height=Math.max(o.height,u);const e=(0,i.measureToString)(o.height);for(const t of o.children)t.attributes.style.height=e;break}case"table":case"tb":o.width=Math.min(s.width,Math.max(o.width,d)),o.height+=u,o.children.push(t)}},t.checkDimensions=function(e,t){var n;if(null===e[a.$getTemplateRoot]()[a.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;const i=e[a.$getSubformParent](),r=(null===(n=i[a.$extra])||void 0===n?void 0:n.attempt)||0,[,o,s,l]=function(e){let t,n,a=""===e.w?NaN:e.w,i=""===e.h?NaN:e.h,[r,o]=[0,0];switch(e.anchorType||""){case"bottomCenter":[r,o]=[a/2,i];break;case"bottomLeft":[r,o]=[0,i];break;case"bottomRight":[r,o]=[a,i];break;case"middleCenter":[r,o]=[a/2,i/2];break;case"middleLeft":[r,o]=[0,i/2];break;case"middleRight":[r,o]=[a,i/2];break;case"topCenter":[r,o]=[a/2,0];break;case"topRight":[r,o]=[a,0]}switch(e.rotate||0){case 0:[t,n]=[-r,-o];break;case 90:[t,n]=[-o,r],[a,i]=[i,-a];break;case 180:[t,n]=[r,o],[a,i]=[-a,-i];break;case 270:[t,n]=[o,-r],[a,i]=[-i,a]}return[e.x+t+Math.min(0,a),e.y+n+Math.min(0,i),Math.abs(a),Math.abs(i)]}(e);switch(i.layout){case"lr-tb":case"rl-tb":return 0===r?e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure?""!==e.w?Math.round(s-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(l-t.height)>2)&&(""!==e.w?Math.round(s-t.width)<=2||0===i[a.$extra].numberInLine&&t.height>2:t.width>2):!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||!(""!==e.h&&Math.round(l-t.height)>2)&&(""===e.w||Math.round(s-t.width)<=2||!i[a.$isThereMoreWidth]())&&t.height>2;case"table":case"tb":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||(""===e.h||e[a.$isSplittable]()?(""===e.w||Math.round(s-t.width)<=2||!i[a.$isThereMoreWidth]())&&t.height>2:Math.round(l-t.height)<=2);case"position":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||(""===e.h||Math.round(l+o-t.height)<=2||l+o>e[a.$getTemplateRoot]()[a.$extra].currentContentArea.h);case"rl-row":case"row":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||""===e.h||Math.round(l-t.height)<=2;default:return!0}},t.flushHTML=function(e){if(!e[a.$extra])return null;const t={name:"div",attributes:e[a.$extra].attributes,children:e[a.$extra].children};if(e[a.$extra].failingNode){const n=e[a.$extra].failingNode[a.$flushHTML]();n&&(e.layout.endsWith("-tb")?t.children.push(r(e,[n])):t.children.push(n))}return 0===t.children.length?null:t},t.getAvailableSpace=function(e){const t=e[a.$extra].availableSpace,n=e.margin?e.margin.topInset+e.margin.bottomInset:0,i=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[a.$extra].attempt?{width:t.width-i-e[a.$extra].currentWidth,height:t.height-n-e[a.$extra].prevHeight}:{width:t.width-i,height:t.height-n-e[a.$extra].height};case"rl-row":case"row":return{width:e[a.$extra].columnWidths.slice(e[a.$extra].currentColumn).reduce(((e,t)=>e+t)),height:t.height-i};case"table":case"tb":return{width:t.width-i,height:t.height-n-e[a.$extra].height};default:return t}};var a=n(78),i=n(83);function r(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(e,t,n){let i;if(""!==e.w&&""!==e.h)i=[e.x,e.y,e.w,e.h];else{if(!n)return null;let r=e.w;if(""===r){if(0===e.maxW){const t=e[a.$getSubformParent]();r="position"===t.layout&&""!==t.w?0:e.minW}else r=Math.min(e.maxW,n.width);t.attributes.style.width=c(r)}let o=e.h;if(""===o){if(0===e.maxH){const t=e[a.$getSubformParent]();o="position"===t.layout&&""!==t.h?0:e.minH}else o=Math.min(e.maxH,n.height);t.attributes.style.height=c(o)}i=[e.x,e.y,r,o]}return i},t.createWrapper=function(e,t){const{attributes:n}=t,{style:i}=n,r={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(n.class.push("xfaWrapped"),e.border){const{widths:n,insets:o}=e.border[a.$extra];let s,l,c=o[0],d=o[3];const u=o[0]+o[2],p=o[1]+o[3];switch(e.border.hand){case"even":c-=n[0]/2,d-=n[3]/2,s="calc(100% + ".concat((n[1]+n[3])/2-p,"px)"),l="calc(100% + ".concat((n[0]+n[2])/2-u,"px)");break;case"left":c-=n[0],d-=n[3],s="calc(100% + ".concat(n[1]+n[3]-p,"px)"),l="calc(100% + ".concat(n[0]+n[2]-u,"px)");break;case"right":s=p?"calc(100% - ".concat(p,"px)"):"100%",l=u?"calc(100% - ".concat(u,"px)"):"100%"}const f=["xfaBorder"];h(e.border)&&f.push("xfaPrintOnly");const m={name:"div",attributes:{class:f,style:{top:"".concat(c,"px"),left:"".concat(d,"px"),width:s,height:l}},children:[]};for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==i[e]&&(m.attributes.style[e]=i[e],delete i[e]);r.children.push(m,t)}else r.children.push(t);for(const a of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==i[a]&&(r.attributes.style[a]=i[a],delete i[a]);return r.attributes.style.position="absolute"===i.position?"absolute":"relative",delete i.position,i.alignSelf&&(r.attributes.style.alignSelf=i.alignSelf,delete i.alignSelf),r},t.fixDimensions=function(e){var t;const n=e[a.$getSubformParent]();if(null!==(t=n.layout)&&void 0!==t&&t.includes("row")){const t=n[a.$extra],i=e.colSpan;let r;r=-1===i?t.columnWidths.slice(t.currentColumn).reduce(((e,t)=>e+t),0):t.columnWidths.slice(t.currentColumn,t.currentColumn+i).reduce(((e,t)=>e+t),0),isNaN(r)||(e.w=r)}n.layout&&"position"!==n.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce(((e,t)=>e+t),0))},t.fixTextIndent=function(e){const t=(0,r.getMeasurement)(e.textIndent,"0px");if(t>=0)return;const n="padding"+("left"===("right"===e.textAlign?"right":"left")?"Left":"Right"),a=(0,r.getMeasurement)(e[n],"0px");e[n]="".concat(a-t,"px")},t.fixURL=function(e){const t=(0,i.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null},t.isPrintOnly=h,t.layoutClass=function(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}},t.layoutNode=function(e,t){let n=null,i=null,r=!1;if((!e.w||!e.h)&&e.value){let o=0,s=0;e.margin&&(o=e.margin.leftInset+e.margin.rightInset,s=e.margin.topInset+e.margin.bottomInset);let l=null,c=null;e.para&&(c=Object.create(null),l=""===e.para.lineHeight?null:e.para.lineHeight,c.top=""===e.para.spaceAbove?0:e.para.spaceAbove,c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,c.left=""===e.para.marginLeft?0:e.para.marginLeft,c.right=""===e.para.marginRight?0:e.para.marginRight);let d=e.font;if(!d){const t=e[a.$getTemplateRoot]();let n=e[a.$getParent]();for(;n&&n!==t;){if(n.font){d=n.font;break}n=n[a.$getParent]()}}const h=(e.w||t.width)-o,p=e[a.$globalData].fontFinder;if(e.value.exData&&e.value.exData[a.$content]&&"text/html"===e.value.exData.contentType){const t=u(e.value.exData[a.$content],d,c,l,p,h);i=t.width,n=t.height,r=t.isBroken}else{const t=e.value[a.$text]();if(t){const e=u(t,d,c,l,p,h);i=e.width,n=e.height,r=e.isBroken}}null===i||e.w||(i+=o),null===n||e.h||(n+=s)}return{w:i,h:n,isBroken:r}},t.measureToString=c,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,n,a){if(!n)return void delete a.fontFamily;const i=(0,r.stripQuotes)(e.typeface);a.fontFamily='"'.concat(i,'"');const s=n.find(i);if(s){const{fontFamily:n}=s.regular.cssFontInfo;n!==i&&(a.fontFamily='"'.concat(n,'"'));const r=p(t);if(r&&""!==r.lineHeight)return;if(a.lineHeight)return;const l=(0,o.selectFont)(e,s);l&&(a.lineHeight=Math.max(1.2,l.lineHeight))}},t.setMinMaxDimensions=function(e,t){"position"===e[a.$getSubformParent]().layout&&(e.minW>0&&(t.minWidth=c(e.minW)),e.maxW>0&&(t.maxWidth=c(e.maxW)),e.minH>0&&(t.minHeight=c(e.minH)),e.maxH>0&&(t.maxHeight=c(e.maxH)))},t.setPara=function(e,t,n){var i;if(null!==(i=n.attributes.class)&&void 0!==i&&i.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));const i=p(e);if(i){const e=n.attributes.style;switch(e.display="flex",e.flexDirection="column",i.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=i[a.$toStyle]();for(const[n,a]of Object.entries(t))n in e||(e[n]=a)}}},t.toStyle=function(e){const t=Object.create(null);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;oe+t),0),t.currentColumn=0):(o=t.columnWidths.slice(t.currentColumn,t.currentColumn+n).reduce(((e,t)=>e+t),0),t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length),isNaN(o)||(r=e.w=o)}t.width=""!==r?c(r):"auto",t.height=""!==o?c(o):"auto"},position(e,t){const n=e[a.$getSubformParent]();null!==n&&void 0!==n&&n.layout&&"position"!==n.layout||(t.position="absolute",t.left=c(e.x),t.top=c(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+="rotate(-".concat(e.rotate,"deg)"),t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[a.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[a.$toStyle]().margin)}};function u(e,t,n,i,r,o){const l=new s.TextMeasure(t,n,i,r);return"string"===typeof e?l.addString(e):e[a.$pushGlyphs](l),l.compute(o)}function h(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function p(e){const t=e[a.$getTemplateRoot]()[a.$extra].paraStack;return t.length?t.at(-1):null}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){const t=-1;if(!e)return{x:t,y:t,width:t,height:t};const n=e.trim().split(/\s*,\s*/).map((e=>s(e,"-1")));if(n.length<4||n[2]<0||n[3]<0)return{x:t,y:t,width:t,height:t};const[a,i,r,o]=n;return{x:a,y:i,width:r,height:o}},t.getColor=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],[n,a,i]=t;if(!e)return{r:n,g:a,b:i};const r=e.trim().split(/\s*,\s*/).map((e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255))).map((e=>isNaN(e)?0:e));return r.length<3||([n,a,i]=r),{r:n,g:a,b:i}},t.getFloat=function(e){let{data:t,defaultValue:n,validate:a}=e;if(!t)return n;t=t.trim();const i=parseFloat(t);return!isNaN(i)&&a(i)?i:n},t.getInteger=function(e){let{data:t,defaultValue:n,validate:a}=e;if(!t)return n;t=t.trim();const i=parseInt(t,10);return!isNaN(i)&&a(i)?i:n},t.getKeyword=o,t.getMeasurement=s,t.getRatio=function(e){if(!e)return{num:1,den:1};const t=e.trim().split(/\s*:\s*/).map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};const[n,a]=t;return{num:n,den:a}},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map((e=>({excluded:"-"===e[0],viewname:e.substring(1)}))):[]},t.getStringOption=function(e,t){return o({data:e,defaultValue:t[0],validate:e=>t.includes(e)})},t.stripQuotes=function(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,-1):e};var a=n(2);const i={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},r=/([+-]?\d+\.?\d*)(.*)/;function o(e){let{data:t,defaultValue:n,validate:a}=e;return t?(t=t.trim(),a(t)?t:n):n}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t||(t="0"),!e)return s(t);const n=e.trim().match(r);if(!n)return s(t);const[,a,o]=n,l=parseFloat(a);if(isNaN(l))return s(t);if(0===l)return 0;const c=i[o];return c?c(l):l}class l{static get FAILURE(){return(0,a.shadow)(this,"FAILURE",new l(!1,null,null,null))}static get EMPTY(){return(0,a.shadow)(this,"EMPTY",new l(!0,null,null,null))}constructor(e,t,n,a){this.success=e,this.html=t,this.bbox=n,this.breakNode=a}isBreak(){return!!this.breakNode}static breakNode(e){return new l(!1,null,null,e)}static success(e){return new l(!0,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}t.HTMLResult=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;if(e){const t=(0,i.stripQuotes)(e.typeface),r=e[a.$globalData].fontFinder.find(t);n=o(e,r)}if(!n)return{lineHeight:12,lineGap:2,lineNoGap:10};const r=e.size||10,s=n.lineHeight?Math.max(t?0:1.2,n.lineHeight):1.2,l=void 0===n.lineGap?.2:n.lineGap;return{lineHeight:s*r,lineGap:l*r,lineNoGap:Math.max(1,s-l)*r}},t.selectFont=o;var a=n(78),i=n(84),r=n(2);function o(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;for(const a of e)this.addPdfFont(a);for(const a of this.fonts.values())a.regular||(a.regular=a.italic||a.bold||a.bolditalic);if(!t||0===t.size)return;const n=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const a of t)this.fonts.set(a,n)}addPdfFont(e){const t=e.cssFontInfo,n=t.fontFamily;let a=this.fonts.get(n);a||(a=Object.create(null),this.fonts.set(n,a),this.defaultFont||(this.defaultFont=a));let i="";const r=parseFloat(t.fontWeight);var o,s,l;0!==parseFloat(t.italicAngle)?i=r>=700?"bolditalic":"italic":r>=700&&(i="bold"),i||((e.name.includes("Bold")||null!==(o=e.psName)&&void 0!==o&&o.includes("Bold"))&&(i="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||null!==(s=e.psName)&&void 0!==s&&s.includes("Italic")||null!==(l=e.psName)&&void 0!==l&&l.endsWith("It"))&&(i+="italic")),i||(i="regular"),a[i]=e}getDefault(){return this.defaultFont}find(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.fonts.get(e)||this.cache.get(e);if(n)return n;const a=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let i=e.replaceAll(a,"");if(n=this.fonts.get(i),n)return this.cache.set(e,n),n;i=i.toLowerCase();const o=[];for(const[r,c]of this.fonts.entries())r.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(c);if(0===o.length)for(const[,r]of this.fonts.entries()){var s;null!==(s=r.regular.name)&&void 0!==s&&s.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(r)}if(0===o.length){i=i.replaceAll(/psmt|mt/gi,"");for(const[e,t]of this.fonts.entries())e.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(t)}if(0===o.length)for(const r of this.fonts.values()){var l;null!==(l=r.regular.name)&&void 0!==l&&l.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(r)}return o.length>=1?(1!==o.length&&t&&(0,r.warn)("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,o[0]),o[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,r.warn)("XFA - Cannot find the font: ".concat(e))),null)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var a=n(85);class i{constructor(e,t,n,i){if(this.lineHeight=n,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e)return void([this.pdfFont,this.xfaFont]=this.defaultFont(i));this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const r=i.find(e.typeface);r?(this.pdfFont=(0,a.selectFont)(e,r),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(i))):[this.pdfFont,this.xfaFont]=this.defaultFont(i)}defaultFont(e){const t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(null!==t&&void 0!==t&&t.regular){const e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class r{constructor(e,t,n,a){this.fontFinder=a,this.stack=[new i(e,t,n,a)]}pushData(e,t,n){const a=this.stack.at(-1);for(const i of["typeface","posture","weight","size","letterSpacing"])e[i]||(e[i]=a.xfaFont[i]);for(const i of["top","bottom","left","right"])isNaN(t[i])&&(t[i]=a.paraMargin[i]);const r=new i(e,t,n||a.lineHeight,this.fontFinder);r.pdfFont||(r.pdfFont=a.pdfFont),this.stack.push(r)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class{constructor(e,t,n,a){this.glyphs=[],this.fontSelector=new r(e,t,n,a),this.extraHeight=0}pushData(e,t,n){this.fontSelector.pushData(e,t,n)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const t=this.fontSelector.topFont(),n=t.xfaFont.size;if(t.pdfFont){const a=t.xfaFont.letterSpacing,i=t.pdfFont,r=i.lineHeight||1.2,o=t.lineHeight||Math.max(1.2,r)*n,s=r-(void 0===i.lineGap?.2:i.lineGap),l=Math.max(1,s)*n,c=n/1e3,d=i.defaultWidth||i.charsToGlyphs(" ")[0].width;for(const t of e.split(/[\u2029\n]/)){const e=i.encodeString(t).join(""),n=i.charsToGlyphs(e);for(const t of n){const e=t.width||d;this.glyphs.push([e*c+a,o,l,t.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}else{for(const t of e.split(/[\u2029\n]/)){for(const e of t.split(""))this.glyphs.push([n,1.2*n,n,e,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(e){let t=-1,n=0,a=0,i=0,r=0,o=0,s=!1,l=!0;for(let c=0,d=this.glyphs.length;ce?(a=Math.max(a,r),r=0,i+=o,o=v,t=-1,n=0,s=!0,l=!1):(o=Math.max(v,o),n=r,r+=d,t=c):r+d>e?(i+=o,o=v,-1!==t?(c=t,a=Math.max(a,n),r=0,t=-1,n=0):(a=Math.max(a,r),r=d),s=!0,l=!1):(r+=d,o=Math.max(v,o))}return a=Math.max(a,r),i+=o+this.extraHeight,{width:1.02*a,height:i,isBroken:s}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=void 0;var a=n(78),i=n(84),r=n(2),o=n(3),s=n(81),l=n(88);const c=Symbol(),d=Symbol(),u=Symbol(),h=Symbol("_children"),p=Symbol(),f=Symbol(),m=Symbol(),v=Symbol(),g=Symbol(),y=Symbol(),b=Symbol(),_=Symbol(),x=Symbol(),w=Symbol("parent"),C=Symbol(),S=Symbol(),A=Symbol();let k=0;const j=s.NamespaceIds.datasets.id;class I{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[a.$namespaceId]=e,this[a.$nodeName]=t,this[b]=n,this[w]=null,this[h]=[],this[a.$uid]="".concat(t).concat(k++),this[a.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let t=this,n=null;for(const{name:i,index:r}of e){for(let e=0,o=isFinite(r)?r:0;e<=o;e++){const e=t[a.$namespaceId]===j?-1:t[a.$namespaceId];n=new P(e,i),t[a.$appendChild](n)}t=n}return n}[a.$onChild](e){if(!this[b]||!this[a.$onChildCheck](e))return!1;const t=e[a.$nodeName],n=this[t];if(!(n instanceof F))return null!==n&&this[a.$removeChild](n),this[t]=e,this[a.$appendChild](e),!0;if(n.push(e))return this[a.$appendChild](e),!0;let i="";return this.id?i=" (id: ".concat(this.id,")"):this.name&&(i=" (name: ".concat(this.name," ").concat(this.h.value,")")),(0,r.warn)('XFA - node "'.concat(this[a.$nodeName],'"').concat(i,' has already enough "').concat(t,'"!')),!1}[a.$onChildCheck](e){return this.hasOwnProperty(e[a.$nodeName])&&e[a.$namespaceId]===this[a.$namespaceId]}[a.$isNsAgnostic](){return!1}[a.$acceptWhitespace](){return!1}[a.$isCDATAXml](){return!1}[a.$isBindable](){return!1}[a.$popPara](){this.para&&this[a.$getTemplateRoot]()[a.$extra].paraStack.pop()}[a.$pushPara](){this[a.$getTemplateRoot]()[a.$extra].paraStack.push(this.para)}[a.$setId](e){this.id&&this[a.$namespaceId]===s.NamespaceIds.template.id&&e.set(this.id,this)}[a.$getTemplateRoot](){return this[a.$globalData].template}[a.$isSplittable](){return!1}[a.$isThereMoreWidth](){return!1}[a.$appendChild](e){e[w]=this,this[h].push(e),!e[a.$globalData]&&this[a.$globalData]&&(e[a.$globalData]=this[a.$globalData])}[a.$removeChild](e){const t=this[h].indexOf(e);this[h].splice(t,1)}[a.$hasSettableValue](){return this.hasOwnProperty("value")}[a.$setValue](e){}[a.$onText](e){}[a.$finalize](){}[a.$clean](e){delete this[b],this[a.$cleanup]&&(e.clean(this[a.$cleanup]),delete this[a.$cleanup])}[a.$indexOf](e){return this[h].indexOf(e)}[a.$insertAt](e,t){t[w]=this,this[h].splice(e,0,t),!t[a.$globalData]&&this[a.$globalData]&&(t[a.$globalData]=this[a.$globalData])}[a.$isTransparent](){return!this.name}[a.$lastAttribute](){return""}[a.$text](){return 0===this[h].length?this[a.$content]:this[h].map((e=>e[a.$text]())).join("")}get[u](){const e=Object.getPrototypeOf(this);if(!e._attributes){const t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof I||this[e]instanceof F)break;t.add(e)}}return(0,r.shadow)(this,u,e._attributes)}[a.$isDescendent](e){let t=this;for(;t;){if(t===e)return!0;t=t[a.$getParent]()}return!1}[a.$getParent](){return this[w]}[a.$getSubformParent](){return this[a.$getParent]()}[a.$getChildren](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[h]}[a.$dump](){const e=Object.create(null);this[a.$content]&&(e.$content=this[a.$content]);for(const t of Object.getOwnPropertyNames(this)){const n=this[t];null!==n&&(n instanceof I?e[t]=n[a.$dump]():n instanceof F?n.isEmpty()||(e[t]=n.dump()):e[t]=n)}return e}[a.$toStyle](){return null}[a.$toHTML](){return i.HTMLResult.EMPTY}*[a.$getContainedChildren](){for(const e of this[a.$getChildren]())yield e}*[v](e,t){for(const n of this[a.$getContainedChildren]())if(!e||t===e.has(n[a.$nodeName])){const e=this[a.$getAvailableSpace](),t=n[a.$toHTML](e);t.success||(this[a.$extra].failingNode=n),yield t}}[a.$flushHTML](){return null}[a.$addHTML](e,t){this[a.$extra].children.push(e)}[a.$getAvailableSpace](){}[a.$childrenToHTML](e){let{filter:t=null,include:n=!0}=e;if(this[a.$extra].generator){const e=this[a.$getAvailableSpace](),t=this[a.$extra].failingNode[a.$toHTML](e);if(!t.success)return t;t.html&&this[a.$addHTML](t.html,t.bbox),delete this[a.$extra].failingNode}else this[a.$extra].generator=this[v](t,n);for(;;){const e=this[a.$extra].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[a.$addHTML](t.html,t.bbox)}return this[a.$extra].generator=null,i.HTMLResult.EMPTY}[a.$setSetAttributes](e){this[S]=new Set(Object.keys(e))}[y](e){const t=this[u],n=this[S];return[...e].filter((e=>t.has(e)&&!n.has(e)))}[a.$resolvePrototypes](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of this[h])n[C](e,t)}[C](e,t){const n=this[g](e,t);n?this[c](n,e,t):this[a.$resolvePrototypes](e,t)}[g](e,t){const{use:n,usehref:i}=this;if(!n&&!i)return null;let o=null,s=null,d=null,u=n;if(i?(u=i,i.startsWith("#som(")&&i.endsWith(")")?s=i.slice(5,-1):i.startsWith(".#som(")&&i.endsWith(")")?s=i.slice(6,-1):i.startsWith("#")?d=i.slice(1):i.startsWith(".#")&&(d=i.slice(2))):n.startsWith("#")?d=n.slice(1):s=n,this.use=this.usehref="",d?o=e.get(d):(o=(0,l.searchNode)(e.get(a.$root),this,s,!0,!1),o&&(o=o[0])),!o)return(0,r.warn)("XFA - Invalid prototype reference: ".concat(u,".")),null;if(o[a.$nodeName]!==this[a.$nodeName])return(0,r.warn)("XFA - Incompatible prototype: ".concat(o[a.$nodeName]," !== ").concat(this[a.$nodeName],".")),null;if(t.has(o))return(0,r.warn)("XFA - Cycle detected in prototypes use."),null;t.add(o);const h=o[g](e,t);return h&&o[c](h,e,t),o[a.$resolvePrototypes](e,t),t.delete(o),o}[c](e,t,n){if(n.has(e))(0,r.warn)("XFA - Cycle detected in prototypes use.");else{!this[a.$content]&&e[a.$content]&&(this[a.$content]=e[a.$content]),new Set(n).add(e);for(const t of this[y](e[S]))this[t]=e[t],this[S]&&this[S].add(t);for(const i of Object.getOwnPropertyNames(this)){if(this[u].has(i))continue;const r=this[i],o=e[i];if(r instanceof F){for(const e of r[h])e[C](t,n);for(let i=r[h].length,s=o[h].length;iI[p](e))):"object"===typeof e&&null!==e?Object.assign({},e):e}[a.$clone](){const e=Object.create(Object.getPrototypeOf(this));for(const t of Object.getOwnPropertySymbols(this))try{e[t]=this[t]}catch{(0,r.shadow)(e,t,this[t])}e[a.$uid]="".concat(e[a.$nodeName]).concat(k++),e[h]=[];for(const t of Object.getOwnPropertyNames(this)){if(this[u].has(t)){e[t]=I[p](this[t]);continue}const n=this[t];e[t]=n instanceof F?new F(n[_]):null}for(const t of this[h]){const n=t[a.$nodeName],i=t[a.$clone]();e[h].push(i),i[w]=e,null===e[n]?e[n]=i:e[n][h].push(i)}return e}[a.$getChildren](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[h].filter((t=>t[a.$nodeName]===e)):this[h]}[a.$getChildrenByClass](e){return this[e]}[a.$getChildrenByName](e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[a.$getChildrenByNameIt](e,t,n))}[a.$getChildrenByNameIt](e,t){var n=this;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function*(){if("parent"!==e){for(const i of n[h])i[a.$nodeName]===e&&(yield i),i.name===e&&(yield i),(t||i[a.$isTransparent]())&&(yield*i[a.$getChildrenByNameIt](e,t,!1));i&&n[u].has(e)&&(yield new T(n,e,n[e]))}else yield n[w]}()}}t.XFAObject=I;class F{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this[_]=e,this[h]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){return this[h].length<=this[_]?(this[h].push(e),!0):((0,r.warn)('XFA - node "'.concat(e[a.$nodeName],'" accepts no more than ').concat(this[_]," children")),!1)}isEmpty(){return 0===this[h].length}dump(){return 1===this[h].length?this[h][0][a.$dump]():this[h].map((e=>e[a.$dump]()))}[a.$clone](){const e=new F(this[_]);return e[h]=this[h].map((e=>e[a.$clone]())),e}get children(){return this[h]}clear(){this[h].length=0}}t.XFAObjectArray=F;class T{constructor(e,t,n){this[w]=e,this[a.$nodeName]=t,this[a.$content]=n,this[a.$consumed]=!1,this[a.$uid]="attribute".concat(k++)}[a.$getParent](){return this[w]}[a.$isDataValue](){return!0}[a.$getDataValue](){return this[a.$content].trim()}[a.$setValue](e){e=e.value||"",this[a.$content]=e.toString()}[a.$text](){return this[a.$content]}[a.$isDescendent](e){return this[w]===e||this[w][a.$isDescendent](e)}}t.XFAAttribute=T;class P extends I{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(super(e,t),this[a.$content]="",this[f]=null,"#text"!==t){const e=new Map;this[d]=e;for(const[t,a]of Object.entries(n))e.set(t,new T(this,t,a));if(n.hasOwnProperty(a.$nsAttributes)){const e=n[a.$nsAttributes].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[f]=!1:"dataValue"===e&&(this[f]=!0))}}this[a.$consumed]=!1}[a.$toString](e){const t=this[a.$nodeName];if("#text"===t)return void e.push((0,o.encodeToXmlString)(this[a.$content]));const n=(0,r.utf8StringToString)(t),i=this[a.$namespaceId]===j?"xfa:":"";e.push("<".concat(i).concat(n));for(const[s,l]of this[d].entries()){const t=(0,r.utf8StringToString)(s);e.push(" ".concat(t,'="').concat((0,o.encodeToXmlString)(l[a.$content]),'"'))}if(null!==this[f]&&(this[f]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[a.$content]||0!==this[h].length){if(e.push(">"),this[a.$content])"string"===typeof this[a.$content]?e.push((0,o.encodeToXmlString)(this[a.$content])):this[a.$content][a.$toString](e);else for(const t of this[h])t[a.$toString](e);e.push(""))}else e.push("/>")}[a.$onChild](e){if(this[a.$content]){const e=new P(this[a.$namespaceId],"#text");this[a.$appendChild](e),e[a.$content]=this[a.$content],this[a.$content]=""}return this[a.$appendChild](e),!0}[a.$onText](e){this[a.$content]+=e}[a.$finalize](){if(this[a.$content]&&this[h].length>0){const e=new P(this[a.$namespaceId],"#text");this[a.$appendChild](e),e[a.$content]=this[a.$content],delete this[a.$content]}}[a.$toHTML](){return"#text"===this[a.$nodeName]?i.HTMLResult.success({name:"#text",value:this[a.$content]}):i.HTMLResult.EMPTY}[a.$getChildren](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[h].filter((t=>t[a.$nodeName]===e)):this[h]}[a.$getAttributes](){return this[d]}[a.$getChildrenByClass](e){const t=this[d].get(e);return void 0!==t?t:this[a.$getChildren](e)}*[a.$getChildrenByNameIt](e,t){const n=this[d].get(e);n&&(yield n);for(const i of this[h])i[a.$nodeName]===e&&(yield i),t&&(yield*i[a.$getChildrenByNameIt](e,t))}*[a.$getAttributeIt](e,t){const n=this[d].get(e);!n||t&&n[a.$consumed]||(yield n);for(const i of this[h])yield*i[a.$getAttributeIt](e,t)}*[a.$getRealChildrenByNameIt](e,t,n){for(const i of this[h])i[a.$nodeName]!==e||n&&i[a.$consumed]||(yield i),t&&(yield*i[a.$getRealChildrenByNameIt](e,t,n))}[a.$isDataValue](){return null===this[f]?0===this[h].length||this[h][0][a.$namespaceId]===s.NamespaceIds.xhtml.id:this[f]}[a.$getDataValue](){return null===this[f]?0===this[h].length?this[a.$content].trim():this[h][0][a.$namespaceId]===s.NamespaceIds.xhtml.id?this[h][0][a.$text]().trim():null:this[a.$content].trim()}[a.$setValue](e){e=e.value||"",this[a.$content]=e.toString()}[a.$dump](){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=Object.create(null);e&&(t.$ns=this[a.$namespaceId]),this[a.$content]&&(t.$content=this[a.$content]),t.$name=this[a.$nodeName],t.children=[];for(const n of this[h])t.children.push(n[a.$dump](e));t.attributes=Object.create(null);for(const[n,i]of this[d])t.attributes[n]=i[a.$content];return t}}t.XmlObject=P;class E extends I{constructor(e,t){super(e,t),this[a.$content]=""}[a.$onText](e){this[a.$content]+=e}[a.$finalize](){}}t.ContentObject=E;class O extends E{constructor(e,t,n){super(e,t),this[x]=n}[a.$finalize](){this[a.$content]=(0,i.getKeyword)({data:this[a.$content],defaultValue:this[x][0],validate:e=>this[x].includes(e)})}[a.$clean](e){super[a.$clean](e),delete this[x]}}t.OptionObject=O;class N extends E{[a.$finalize](){this[a.$content]=this[a.$content].trim()}}t.StringObject=N;class R extends E{constructor(e,t,n,a){super(e,t),this[m]=n,this[A]=a}[a.$finalize](){this[a.$content]=(0,i.getInteger)({data:this[a.$content],defaultValue:this[m],validate:this[A]})}[a.$clean](e){super[a.$clean](e),delete this[m],delete this[A]}}t.IntegerObject=R,t.Option01=class extends R{constructor(e,t){super(e,t,0,(e=>1===e))}},t.Option10=class extends R{constructor(e,t){super(e,t,1,(e=>0===e))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,n){const r=d(n);if(!r)return null;if(r.some((e=>e.operator===s.dotDot)))return null;const o=l.get(r[0].name);let c=0;o?(e=o(e,t),c=1):e=t||e;for(let l=r.length;c3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const o=d(n,i);if(!o)return null;const u=l.get(o[0].name);let h,p=0;u?(h=!0,e=[u(e,t)],p=1):(h=null===t,e=[t||e]);for(let l=o.length;p0&&u.push(e)}if(0!==u.length||h||0!==p)e=isFinite(d)?u.filter((e=>de[d])):u.flat();else{const n=t[a.$getParent]();if(!(t=n))return null;p=-1,e=[t]}}return 0===e.length?null:e};var a=n(78),i=n(2);const r=/^[^.[]+/,o=/^[^\]]+/,s={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},l=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[a.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),c=new WeakMap;function d(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e.match(r);if(!a)return null;let[l]=a;const c=[{name:l,cacheName:"."+l,index:0,js:null,formCalc:null,operator:s.dot}];let d=l.length;for(;d{Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var a=n(78);t.DataHandler=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[a.$getChildren]()]];for(;t.length>0;){const n=t.at(-1),[i,r]=n;if(i+1===r.length){t.pop();continue}const o=r[++n[0]],s=e.get(o[a.$uid]);if(s)o[a.$setValue](s);else{const t=o[a.$getAttributes]();for(const n of t.values()){const t=e.get(n[a.$uid]);if(t){n[a.$setValue](t);break}}}const l=o[a.$getChildren]();l.length>0&&t.push([-1,l])}const n=[''];if(this.dataset)for(const i of this.dataset[a.$getChildren]())"data"!==i[a.$nodeName]&&i[a.$toString](n);return this.data[a.$toString](n),n.push(""),n.join("")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var a=n(78),i=n(71),r=n(91),o=n(2);class s extends i.XMLParserBase{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this._builder=new r.Builder(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=i.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===i.XMLParserErrorCode.NoError)return this._current[a.$finalize](),this._current.element}onText(e){e=e.replace(this._nbsps,(e=>e.slice(1)+" ")),this._richText||this._current[a.$acceptWhitespace]()?this._current[a.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[a.$onText](e.trim())}onCdata(e){this._current[a.$onText](e)}_mkAttributes(e,t){let n=null,i=null;const r=Object.create({});for(const{name:l,value:c}of e)if("xmlns"===l)n?(0,o.warn)("XFA - multiple namespace definition in <".concat(t,">")):n=c;else if(l.startsWith("xmlns:")){const e=l.substring(6);i||(i=[]),i.push({prefix:e,value:c})}else{const e=l.indexOf(":");if(-1===e)r[l]=c;else{var s;let t=r[a.$nsAttributes];t||(t=r[a.$nsAttributes]=Object.create(null));const[n,i]=[l.slice(0,e),l.slice(e+1)];((s=t)[n]||(s[n]=Object.create(null)))[i]=c}}return[n,i,r]}_getNameAndPrefix(e,t){const n=e.indexOf(":");return-1===n?[e,null]:[e.substring(n+1),t?"":e.substring(0,n)]}onBeginElement(e,t,n){const[i,r,o]=this._mkAttributes(t,e),[s,l]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:l,name:s,attributes:o,namespace:i,prefixes:r});if(c[a.$globalData]=this._globalData,n)return c[a.$finalize](),this._current[a.$onChild](c)&&c[a.$setId](this._ids),void c[a.$clean](this._builder);this._stack.push(this._current),this._current=c}onEndElement(e){const t=this._current;if(t[a.$isCDATAXml]()&&"string"===typeof t[a.$content]){const e=new s;e._globalData=this._globalData;const n=e.parse(t[a.$content]);t[a.$content]=null,t[a.$onChild](n)}t[a.$finalize](),this._current=this._stack.pop(),this._current[a.$onChild](t)&&t[a.$setId](this._ids),t[a.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var a=n(81),i=n(78),r=n(92),o=n(80),s=n(101),l=n(2),c=n(87);class d extends c.XFAObject{constructor(e){super(-1,"root",Object.create(null)),this.element=null,this[i.$ids]=e}[i.$onChild](e){return this.element=e,!0}[i.$finalize](){super[i.$finalize](),this.element.template instanceof o.Template&&(this[i.$ids].set(i.$root,this.element),this.element.template[i.$resolvePrototypes](this[i.$ids]),this.element.template[i.$ids]=this[i.$ids])}}class u extends c.XFAObject{constructor(){super(-1,"",Object.create(null))}[i.$onChild](e){return!1}}t.Builder=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(a.NamespaceIds).map((e=>{let{id:t}=e;return t}))),this._currentNamespace=e||new s.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new d(e)}build(e){let{nsPrefix:t,name:n,attributes:o,namespace:s,prefixes:l}=e;const c=null!==s;if(c&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(s)),l&&this._addNamespacePrefix(l),o.hasOwnProperty(i.$nsAttributes)){const e=r.NamespaceSetUp.datasets,t=o[i.$nsAttributes];let n=null;for(const[a,i]of Object.entries(t))if(this._getNamespaceToUse(a)===e){n={xfa:i};break}n?o[i.$nsAttributes]=n:delete o[i.$nsAttributes]}const d=this._getNamespaceToUse(t),h=(null===d||void 0===d?void 0:d[a.$buildXFAObject](n,o))||new u;return h[i.$isNsAgnostic]()&&this._nsAgnosticLevel++,(c||l||h[i.$isNsAgnostic]())&&(h[i.$cleanup]={hasNamespace:c,prefixes:l,nsAgnostic:h[i.$isNsAgnostic]()}),h}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(const[n,{check:i}]of Object.entries(a.NamespaceIds))if(i(e)){if(t=r.NamespaceSetUp[n],t)return this._namespaces.set(e,t),t;break}return t=new s.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}_addNamespacePrefix(e){for(const{prefix:t,value:n}of e){const e=this._searchNamespace(n);let a=this._namespacePrefixes.get(t);a||(a=[],this._namespacePrefixes.set(t,a)),a.push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;const t=this._namespacePrefixes.get(e);return(null===t||void 0===t?void 0:t.length)>0?t.at(-1):((0,l.warn)("Unknown namespace prefix: ".concat(e,".")),null)}clean(e){const{hasNamespace:t,prefixes:n,nsAgnostic:a}=e;t&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach((e=>{let{prefix:t}=e;this._namespacePrefixes.get(t).pop()})),a&&this._nsAgnosticLevel--}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var a=n(93),i=n(94),r=n(95),o=n(96),s=n(97),l=n(98),c=n(80),d=n(99),u=n(100);const h={config:a.ConfigNamespace,connection:i.ConnectionSetNamespace,datasets:r.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:s.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:d.XdpNamespace,xhtml:u.XhtmlNamespace};t.NamespaceSetUp=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0;var a=n(81),i=n(78),r=n(87),o=n(84),s=n(2);const l=a.NamespaceIds.config.id;class c extends r.XFAObject{constructor(e){super(l,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new r.XFAObjectArray}}class d extends r.XFAObject{constructor(e){super(l,"acrobat7",!0),this.dynamicRender=null}}class u extends r.OptionObject{constructor(e){super(l,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class h extends r.OptionObject{constructor(e){super(l,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class p extends r.Option01{constructor(e){super(l,"addSilentPrint")}}class f extends r.Option01{constructor(e){super(l,"addViewerPreferences")}}class m extends r.Option10{constructor(e){super(l,"adjustData")}}class v extends r.IntegerObject{constructor(e){super(l,"adobeExtensionLevel",0,(e=>e>=1&&e<=8))}}class g extends r.XFAObject{constructor(e){super(l,"agent",!0),this.name=e.name?e.name.trim():"",this.common=new r.XFAObjectArray}}class y extends r.ContentObject{constructor(e){super(l,"alwaysEmbed")}}class b extends r.StringObject{constructor(e){super(l,"amd")}}class _ extends r.XFAObject{constructor(e){super(l,"area"),this.level=(0,o.getInteger)({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3}),this.name=(0,o.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class x extends r.OptionObject{constructor(e){super(l,"attributes",["preserve","delegate","ignore"])}}class w extends r.OptionObject{constructor(e){super(l,"autoSave",["disabled","enabled"])}}class C extends r.StringObject{constructor(e){super(l,"base")}}class S extends r.XFAObject{constructor(e){super(l,"batchOutput"),this.format=(0,o.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class A extends r.ContentObject{constructor(e){super(l,"behaviorOverride")}[i.$finalize](){this[i.$content]=new Map(this[i.$content].trim().split(/\s+/).filter((e=>e.includes(":"))).map((e=>e.split(":",2))))}}class k extends r.XFAObject{constructor(e){super(l,"cache",!0),this.templateCache=null}}class j extends r.Option01{constructor(e){super(l,"change")}}class I extends r.XFAObject{constructor(e){super(l,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new r.XFAObjectArray}}class F extends r.XFAObject{constructor(e){super(l,"compress"),this.scope=(0,o.getStringOption)(e.scope,["imageOnly","document"])}}class T extends r.Option01{constructor(e){super(l,"compressLogicalStructure")}}class P extends r.Option10{constructor(e){super(l,"compressObjectStream")}}class E extends r.XFAObject{constructor(e){super(l,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class O extends r.XFAObject{constructor(e){super(l,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new r.XFAObjectArray}}class N extends r.OptionObject{constructor(e){super(l,"conformance",["A","B"])}}class R extends r.Option01{constructor(e){super(l,"contentCopy")}}class M extends r.IntegerObject{constructor(e){super(l,"copies",1,(e=>e>=1))}}class D extends r.StringObject{constructor(e){super(l,"creator")}}class L extends r.IntegerObject{constructor(e){super(l,"currentPage",0,(e=>e>=0))}}class B extends r.XFAObject{constructor(e){super(l,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new r.XFAObjectArray,this.transform=new r.XFAObjectArray}}class W extends r.XFAObject{constructor(e){super(l,"debug",!0),this.uri=null}}class z extends r.ContentObject{constructor(e){super(l,"defaultTypeface"),this.writingScript=(0,o.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class U extends r.OptionObject{constructor(e){super(l,"destination",["pdf","pcl","ps","webClient","zpl"])}}class H extends r.Option01{constructor(e){super(l,"documentAssembly")}}class q extends r.XFAObject{constructor(e){super(l,"driver",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class V extends r.OptionObject{constructor(e){super(l,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class G extends r.OptionObject{constructor(e){super(l,"dynamicRender",["forbidden","required"])}}class $ extends r.Option01{constructor(e){super(l,"embed")}}class X extends r.Option01{constructor(e){super(l,"encrypt")}}class K extends r.XFAObject{constructor(e){super(l,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class Y extends r.OptionObject{constructor(e){super(l,"encryptionLevel",["40bit","128bit"])}}class J extends r.StringObject{constructor(e){super(l,"enforce")}}class Z extends r.XFAObject{constructor(e){super(l,"equate"),this.force=(0,o.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e}),this.from=e.from||"",this.to=e.to||""}}class Q extends r.XFAObject{constructor(e){super(l,"equateRange"),this.from=e.from||"",this.to=e.to||"",this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\+([0-9a-fA-F]+)/,n=this._unicodeRange;for(let a of n.split(",").map((e=>e.trim())).filter((e=>!!e)))a=a.split("-",2).map((e=>{const n=e.match(t);return n?parseInt(n[1],16):0})),1===a.length&&a.push(a[0]),e.push(a);return(0,s.shadow)(this,"unicodeRange",e)}}class ee extends r.ContentObject{constructor(e){super(l,"exclude")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter((e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)))}}class te extends r.StringObject{constructor(e){super(l,"excludeNS")}}class ne extends r.OptionObject{constructor(e){super(l,"flipLabel",["usePrinterSetting","on","off"])}}class ae extends r.XFAObject{constructor(e){super(l,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new r.XFAObjectArray,this.defaultTypeface=new r.XFAObjectArray,this.neverEmbed=new r.XFAObjectArray}}class ie extends r.Option01{constructor(e){super(l,"formFieldFilling")}}class re extends r.StringObject{constructor(e){super(l,"groupParent")}}class oe extends r.OptionObject{constructor(e){super(l,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class se extends r.StringObject{constructor(e){super(l,"includeXDPContent")}}class le extends r.OptionObject{constructor(e){super(l,"incrementalLoad",["none","forwardOnly"])}}class ce extends r.Option01{constructor(e){super(l,"incrementalMerge")}}class de extends r.Option01{constructor(e){super(l,"interactive")}}class ue extends r.OptionObject{constructor(e){super(l,"jog",["usePrinterSetting","none","pageSet"])}}class he extends r.XFAObject{constructor(e){super(l,"labelPrinter",!0),this.name=(0,o.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class pe extends r.OptionObject{constructor(e){super(l,"layout",["paginate","panel"])}}class fe extends r.IntegerObject{constructor(e){super(l,"level",0,(e=>e>0))}}class me extends r.Option01{constructor(e){super(l,"linearized")}}class ve extends r.StringObject{constructor(e){super(l,"locale")}}class ge extends r.StringObject{constructor(e){super(l,"localeSet")}}class ye extends r.XFAObject{constructor(e){super(l,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class be extends r.XFAObject{constructor(e){super(l,"map",!0),this.equate=new r.XFAObjectArray,this.equateRange=new r.XFAObjectArray}}class _e extends r.XFAObject{constructor(e){super(l,"mediumInfo",!0),this.map=null}}class xe extends r.XFAObject{constructor(e){super(l,"message",!0),this.msgId=null,this.severity=null}}class we extends r.XFAObject{constructor(e){super(l,"messaging",!0),this.message=new r.XFAObjectArray}}class Ce extends r.OptionObject{constructor(e){super(l,"mode",["append","overwrite"])}}class Se extends r.Option01{constructor(e){super(l,"modifyAnnots")}}class Ae extends r.IntegerObject{constructor(e){super(l,"msgId",1,(e=>e>=1))}}class ke extends r.StringObject{constructor(e){super(l,"nameAttr")}}class je extends r.ContentObject{constructor(e){super(l,"neverEmbed")}}class Ie extends r.IntegerObject{constructor(e){super(l,"numberOfCopies",null,(e=>e>=2&&e<=5))}}class Fe extends r.XFAObject{constructor(e){super(l,"openAction",!0),this.destination=null}}class Te extends r.XFAObject{constructor(e){super(l,"output",!0),this.to=null,this.type=null,this.uri=null}}class Pe extends r.StringObject{constructor(e){super(l,"outputBin")}}class Ee extends r.XFAObject{constructor(e){super(l,"outputXSL",!0),this.uri=null}}class Oe extends r.OptionObject{constructor(e){super(l,"overprint",["none","both","draw","field"])}}class Ne extends r.StringObject{constructor(e){super(l,"packets")}[i.$finalize](){"*"!==this[i.$content]&&(this[i.$content]=this[i.$content].trim().split(/\s+/).filter((e=>["config","datasets","template","xfdf","xslt"].includes(e))))}}class Re extends r.XFAObject{constructor(e){super(l,"pageOffset"),this.x=(0,o.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0}),this.y=(0,o.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class Me extends r.StringObject{constructor(e){super(l,"pageRange")}[i.$finalize](){const e=this[i.$content].trim().split(/\s+/).map((e=>parseInt(e,10))),t=[];for(let n=0,a=e.length;n!1))}}class We extends r.XFAObject{constructor(e){super(l,"pcl",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class ze extends r.XFAObject{constructor(e){super(l,"pdf",!0),this.name=e.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class Ue extends r.XFAObject{constructor(e){super(l,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class He extends r.XFAObject{constructor(e){super(l,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class qe extends r.Option01{constructor(e){super(l,"pickTrayByPDFSize")}}class Ve extends r.StringObject{constructor(e){super(l,"picture")}}class Ge extends r.Option01{constructor(e){super(l,"plaintextMetadata")}}class $e extends r.OptionObject{constructor(e){super(l,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Xe extends r.XFAObject{constructor(e){super(l,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new r.XFAObjectArray,this.labelPrinter=new r.XFAObjectArray,this.pcl=new r.XFAObjectArray,this.pdf=new r.XFAObjectArray,this.ps=new r.XFAObjectArray,this.submitUrl=new r.XFAObjectArray,this.webClient=new r.XFAObjectArray,this.zpl=new r.XFAObjectArray}}class Ke extends r.Option01{constructor(e){super(l,"print")}}class Ye extends r.Option01{constructor(e){super(l,"printHighQuality")}}class Je extends r.OptionObject{constructor(e){super(l,"printScaling",["appdefault","noScaling"])}}class Ze extends r.StringObject{constructor(e){super(l,"printerName")}}class Qe extends r.StringObject{constructor(e){super(l,"producer")}}class et extends r.XFAObject{constructor(e){super(l,"ps",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class tt extends r.ContentObject{constructor(e){super(l,"range")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s*,\s*/,2).map((e=>e.split("-").map((e=>parseInt(e.trim(),10))))).filter((e=>e.every((e=>!isNaN(e))))).map((e=>(1===e.length&&e.push(e[0]),e)))}}class nt extends r.ContentObject{constructor(e){super(l,"record")}[i.$finalize](){this[i.$content]=this[i.$content].trim();const e=parseInt(this[i.$content],10);!isNaN(e)&&e>=0&&(this[i.$content]=e)}}class at extends r.ContentObject{constructor(e){super(l,"relevant")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/)}}class it extends r.ContentObject{constructor(e){super(l,"rename")}[i.$finalize](){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[i.$content]))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}class rt extends r.OptionObject{constructor(e){super(l,"renderPolicy",["server","client"])}}class ot extends r.OptionObject{constructor(e){super(l,"runScripts",["both","client","none","server"])}}class st extends r.XFAObject{constructor(e){super(l,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class lt extends r.OptionObject{constructor(e){super(l,"scriptModel",["XFA","none"])}}class ct extends r.OptionObject{constructor(e){super(l,"severity",["ignore","error","information","trace","warning"])}}class dt extends r.XFAObject{constructor(e){super(l,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class ut extends r.XFAObject{constructor(e){super(l,"staple"),this.mode=(0,o.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class ht extends r.StringObject{constructor(e){super(l,"startNode")}}class pt extends r.IntegerObject{constructor(e){super(l,"startPage",0,(e=>!0))}}class ft extends r.OptionObject{constructor(e){super(l,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class mt extends r.StringObject{constructor(e){super(l,"submitUrl")}}class vt extends r.IntegerObject{constructor(e){super(l,"subsetBelow",100,(e=>e>=0&&e<=100))}}class gt extends r.Option01{constructor(e){super(l,"suppressBanner")}}class yt extends r.Option01{constructor(e){super(l,"tagged")}}class bt extends r.XFAObject{constructor(e){super(l,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class _t extends r.OptionObject{constructor(e){super(l,"threshold",["trace","error","information","warning"])}}class xt extends r.OptionObject{constructor(e){super(l,"to",["null","memory","stderr","stdout","system","uri"])}}class wt extends r.XFAObject{constructor(e){super(l,"templateCache"),this.maxEntries=(0,o.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class Ct extends r.XFAObject{constructor(e){super(l,"trace",!0),this.area=new r.XFAObjectArray}}class St extends r.XFAObject{constructor(e){super(l,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class At extends r.OptionObject{constructor(e){super(l,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class kt extends r.StringObject{constructor(e){super(l,"uri")}}class jt extends r.OptionObject{constructor(e){super(l,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class It extends r.ContentObject{constructor(e){super(l,"validateApprovalSignatures")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter((e=>["docReady","postSign"].includes(e)))}}class Ft extends r.OptionObject{constructor(e){super(l,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Tt extends r.OptionObject{constructor(e){super(l,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Pt extends r.XFAObject{constructor(e){super(l,"VersionControl"),this.outputBelow=(0,o.getStringOption)(e.outputBelow,["warn","error","update"]),this.sourceAbove=(0,o.getStringOption)(e.sourceAbove,["warn","error"]),this.sourceBelow=(0,o.getStringOption)(e.sourceBelow,["update","maintain"])}}class Et extends r.XFAObject{constructor(e){super(l,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class Ot extends r.XFAObject{constructor(e){super(l,"webClient",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class Nt extends r.OptionObject{constructor(e){super(l,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Rt extends r.ContentObject{constructor(e){super(l,"window")}[i.$finalize](){const e=this[i.$content].trim().split(/\s*,\s*/,2).map((e=>parseInt(e,10)));e.some((e=>isNaN(e)))?this[i.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[i.$content]=e)}}class Mt extends r.XFAObject{constructor(e){super(l,"xdc",!0),this.uri=new r.XFAObjectArray,this.xsl=new r.XFAObjectArray}}class Dt extends r.XFAObject{constructor(e){super(l,"xdp",!0),this.packets=null}}class Lt extends r.XFAObject{constructor(e){super(l,"xsl",!0),this.debug=null,this.uri=null}}class Bt extends r.XFAObject{constructor(e){super(l,"zpl",!0),this.name=e.name?e.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class Wt{static[a.$buildXFAObject](e,t){if(Wt.hasOwnProperty(e))return Wt[e](t)}static acrobat(e){return new c(e)}static acrobat7(e){return new d(e)}static ADBE_JSConsole(e){return new u(e)}static ADBE_JSDebugger(e){return new h(e)}static addSilentPrint(e){return new p(e)}static addViewerPreferences(e){return new f(e)}static adjustData(e){return new m(e)}static adobeExtensionLevel(e){return new v(e)}static agent(e){return new g(e)}static alwaysEmbed(e){return new y(e)}static amd(e){return new b(e)}static area(e){return new _(e)}static attributes(e){return new x(e)}static autoSave(e){return new w(e)}static base(e){return new C(e)}static batchOutput(e){return new S(e)}static behaviorOverride(e){return new A(e)}static cache(e){return new k(e)}static change(e){return new j(e)}static common(e){return new I(e)}static compress(e){return new F(e)}static compressLogicalStructure(e){return new T(e)}static compressObjectStream(e){return new P(e)}static compression(e){return new E(e)}static config(e){return new O(e)}static conformance(e){return new N(e)}static contentCopy(e){return new R(e)}static copies(e){return new M(e)}static creator(e){return new D(e)}static currentPage(e){return new L(e)}static data(e){return new B(e)}static debug(e){return new W(e)}static defaultTypeface(e){return new z(e)}static destination(e){return new U(e)}static documentAssembly(e){return new H(e)}static driver(e){return new q(e)}static duplexOption(e){return new V(e)}static dynamicRender(e){return new G(e)}static embed(e){return new $(e)}static encrypt(e){return new X(e)}static encryption(e){return new K(e)}static encryptionLevel(e){return new Y(e)}static enforce(e){return new J(e)}static equate(e){return new Z(e)}static equateRange(e){return new Q(e)}static exclude(e){return new ee(e)}static excludeNS(e){return new te(e)}static flipLabel(e){return new ne(e)}static fontInfo(e){return new ae(e)}static formFieldFilling(e){return new ie(e)}static groupParent(e){return new re(e)}static ifEmpty(e){return new oe(e)}static includeXDPContent(e){return new se(e)}static incrementalLoad(e){return new le(e)}static incrementalMerge(e){return new ce(e)}static interactive(e){return new de(e)}static jog(e){return new ue(e)}static labelPrinter(e){return new he(e)}static layout(e){return new pe(e)}static level(e){return new fe(e)}static linearized(e){return new me(e)}static locale(e){return new ve(e)}static localeSet(e){return new ge(e)}static log(e){return new ye(e)}static map(e){return new be(e)}static mediumInfo(e){return new _e(e)}static message(e){return new xe(e)}static messaging(e){return new we(e)}static mode(e){return new Ce(e)}static modifyAnnots(e){return new Se(e)}static msgId(e){return new Ae(e)}static nameAttr(e){return new ke(e)}static neverEmbed(e){return new je(e)}static numberOfCopies(e){return new Ie(e)}static openAction(e){return new Fe(e)}static output(e){return new Te(e)}static outputBin(e){return new Pe(e)}static outputXSL(e){return new Ee(e)}static overprint(e){return new Oe(e)}static packets(e){return new Ne(e)}static pageOffset(e){return new Re(e)}static pageRange(e){return new Me(e)}static pagination(e){return new De(e)}static paginationOverride(e){return new Le(e)}static part(e){return new Be(e)}static pcl(e){return new We(e)}static pdf(e){return new ze(e)}static pdfa(e){return new Ue(e)}static permissions(e){return new He(e)}static pickTrayByPDFSize(e){return new qe(e)}static picture(e){return new Ve(e)}static plaintextMetadata(e){return new Ge(e)}static presence(e){return new $e(e)}static present(e){return new Xe(e)}static print(e){return new Ke(e)}static printHighQuality(e){return new Ye(e)}static printScaling(e){return new Je(e)}static printerName(e){return new Ze(e)}static producer(e){return new Qe(e)}static ps(e){return new et(e)}static range(e){return new tt(e)}static record(e){return new nt(e)}static relevant(e){return new at(e)}static rename(e){return new it(e)}static renderPolicy(e){return new rt(e)}static runScripts(e){return new ot(e)}static script(e){return new st(e)}static scriptModel(e){return new lt(e)}static severity(e){return new ct(e)}static silentPrint(e){return new dt(e)}static staple(e){return new ut(e)}static startNode(e){return new ht(e)}static startPage(e){return new pt(e)}static submitFormat(e){return new ft(e)}static submitUrl(e){return new mt(e)}static subsetBelow(e){return new vt(e)}static suppressBanner(e){return new gt(e)}static tagged(e){return new yt(e)}static template(e){return new bt(e)}static templateCache(e){return new wt(e)}static threshold(e){return new _t(e)}static to(e){return new xt(e)}static trace(e){return new Ct(e)}static transform(e){return new St(e)}static type(e){return new At(e)}static uri(e){return new kt(e)}static validate(e){return new jt(e)}static validateApprovalSignatures(e){return new It(e)}static validationMessaging(e){return new Ft(e)}static version(e){return new Tt(e)}static versionControl(e){return new Pt(e)}static viewerPreferences(e){return new Et(e)}static webClient(e){return new Ot(e)}static whitespace(e){return new Nt(e)}static window(e){return new Rt(e)}static xdc(e){return new Mt(e)}static xdp(e){return new Dt(e)}static xsl(e){return new Lt(e)}static zpl(e){return new Bt(e)}}t.ConfigNamespace=Wt},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var a=n(81),i=n(87);const r=a.NamespaceIds.connectionSet.id;class o extends i.XFAObject{constructor(e){super(r,"connectionSet",!0),this.wsdlConnection=new i.XFAObjectArray,this.xmlConnection=new i.XFAObjectArray,this.xsdConnection=new i.XFAObjectArray}}class s extends i.XFAObject{constructor(e){super(r,"effectiveInputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class l extends i.XFAObject{constructor(e){super(r,"effectiveOutputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class c extends i.StringObject{constructor(e){super(r,"operation"),this.id=e.id||"",this.input=e.input||"",this.name=e.name||"",this.output=e.output||"",this.use=e.use||"",this.usehref=e.usehref||""}}class d extends i.StringObject{constructor(e){super(r,"rootElement"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class u extends i.StringObject{constructor(e){super(r,"soapAction"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class h extends i.StringObject{constructor(e){super(r,"soapAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class p extends i.StringObject{constructor(e){super(r,"uri"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class f extends i.StringObject{constructor(e){super(r,"wsdlAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class m extends i.XFAObject{constructor(e){super(r,"wsdlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class v extends i.XFAObject{constructor(e){super(r,"xmlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.uri=null}}class g extends i.XFAObject{constructor(e){super(r,"xsdConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.rootElement=null,this.uri=null}}class y{static[a.$buildXFAObject](e,t){if(y.hasOwnProperty(e))return y[e](t)}static connectionSet(e){return new o(e)}static effectiveInputPolicy(e){return new s(e)}static effectiveOutputPolicy(e){return new l(e)}static operation(e){return new c(e)}static rootElement(e){return new d(e)}static soapAction(e){return new u(e)}static soapAddress(e){return new h(e)}static uri(e){return new p(e)}static wsdlAddress(e){return new f(e)}static wsdlConnection(e){return new m(e)}static xmlConnection(e){return new v(e)}static xsdConnection(e){return new g(e)}}t.ConnectionSetNamespace=y},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var a=n(78),i=n(81),r=n(87);const o=i.NamespaceIds.datasets.id;class s extends r.XmlObject{constructor(e){super(o,"data",e)}[a.$isNsAgnostic](){return!0}}class l extends r.XFAObject{constructor(e){super(o,"datasets",!0),this.data=null,this.Signature=null}[a.$onChild](e){const t=e[a.$nodeName];("data"===t&&e[a.$namespaceId]===o||"Signature"===t&&e[a.$namespaceId]===i.NamespaceIds.signature.id)&&(this[t]=e),this[a.$appendChild](e)}}class c{static[i.$buildXFAObject](e,t){if(c.hasOwnProperty(e))return c[e](t)}static datasets(e){return new l(e)}static data(e){return new s(e)}}t.DatasetsNamespace=c},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var a=n(81),i=n(87),r=n(84);const o=a.NamespaceIds.localeSet.id;class s extends i.XFAObject{constructor(e){super(o,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new i.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new i.XFAObjectArray(2)}}class l extends i.StringObject{constructor(e){super(o,"currencySymbol"),this.name=(0,r.getStringOption)(e.name,["symbol","isoname","decimal"])}}class c extends i.XFAObject{constructor(e){super(o,"currencySymbols",!0),this.currencySymbol=new i.XFAObjectArray(3)}}class d extends i.StringObject{constructor(e){super(o,"datePattern"),this.name=(0,r.getStringOption)(e.name,["full","long","med","short"])}}class u extends i.XFAObject{constructor(e){super(o,"datePatterns",!0),this.datePattern=new i.XFAObjectArray(4)}}class h extends i.ContentObject{constructor(e){super(o,"dateTimeSymbols")}}class p extends i.StringObject{constructor(e){super(o,"day")}}class f extends i.XFAObject{constructor(e){super(o,"dayNames",!0),this.abbr=(0,r.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.day=new i.XFAObjectArray(7)}}class m extends i.StringObject{constructor(e){super(o,"era")}}class v extends i.XFAObject{constructor(e){super(o,"eraNames",!0),this.era=new i.XFAObjectArray(2)}}class g extends i.XFAObject{constructor(e){super(o,"locale",!0),this.desc=e.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class y extends i.XFAObject{constructor(e){super(o,"localeSet",!0),this.locale=new i.XFAObjectArray}}class b extends i.StringObject{constructor(e){super(o,"meridiem")}}class _ extends i.XFAObject{constructor(e){super(o,"meridiemNames",!0),this.meridiem=new i.XFAObjectArray(2)}}class x extends i.StringObject{constructor(e){super(o,"month")}}class w extends i.XFAObject{constructor(e){super(o,"monthNames",!0),this.abbr=(0,r.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.month=new i.XFAObjectArray(12)}}class C extends i.StringObject{constructor(e){super(o,"numberPattern"),this.name=(0,r.getStringOption)(e.name,["full","long","med","short"])}}class S extends i.XFAObject{constructor(e){super(o,"numberPatterns",!0),this.numberPattern=new i.XFAObjectArray(4)}}class A extends i.StringObject{constructor(e){super(o,"numberSymbol"),this.name=(0,r.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class k extends i.XFAObject{constructor(e){super(o,"numberSymbols",!0),this.numberSymbol=new i.XFAObjectArray(5)}}class j extends i.StringObject{constructor(e){super(o,"timePattern"),this.name=(0,r.getStringOption)(e.name,["full","long","med","short"])}}class I extends i.XFAObject{constructor(e){super(o,"timePatterns",!0),this.timePattern=new i.XFAObjectArray(4)}}class F extends i.XFAObject{constructor(e){super(o,"typeFace",!0),this.name=""|e.name}}class T extends i.XFAObject{constructor(e){super(o,"typeFaces",!0),this.typeFace=new i.XFAObjectArray}}class P{static[a.$buildXFAObject](e,t){if(P.hasOwnProperty(e))return P[e](t)}static calendarSymbols(e){return new s(e)}static currencySymbol(e){return new l(e)}static currencySymbols(e){return new c(e)}static datePattern(e){return new d(e)}static datePatterns(e){return new u(e)}static dateTimeSymbols(e){return new h(e)}static day(e){return new p(e)}static dayNames(e){return new f(e)}static era(e){return new m(e)}static eraNames(e){return new v(e)}static locale(e){return new g(e)}static localeSet(e){return new y(e)}static meridiem(e){return new b(e)}static meridiemNames(e){return new _(e)}static month(e){return new x(e)}static monthNames(e){return new w(e)}static numberPattern(e){return new C(e)}static numberPatterns(e){return new S(e)}static numberSymbol(e){return new A(e)}static numberSymbols(e){return new k(e)}static timePattern(e){return new j(e)}static timePatterns(e){return new I(e)}static typeFace(e){return new F(e)}static typeFaces(e){return new T(e)}}t.LocaleSetNamespace=P},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var a=n(81),i=n(87);const r=a.NamespaceIds.signature.id;class o extends i.XFAObject{constructor(e){super(r,"signature",!0)}}class s{static[a.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static signature(e){return new o(e)}}t.SignatureNamespace=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var a=n(81),i=n(87);const r=a.NamespaceIds.stylesheet.id;class o extends i.XFAObject{constructor(e){super(r,"stylesheet",!0)}}class s{static[a.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static stylesheet(e){return new o(e)}}t.StylesheetNamespace=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var a=n(81),i=n(78),r=n(87);const o=a.NamespaceIds.xdp.id;class s extends r.XFAObject{constructor(e){super(o,"xdp",!0),this.uuid=e.uuid||"",this.timeStamp=e.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new r.XFAObjectArray,this.template=null}[i.$onChildCheck](e){const t=a.NamespaceIds[e[i.$nodeName]];return t&&e[i.$namespaceId]===t.id}}class l{static[a.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static xdp(e){return new s(e)}}t.XdpNamespace=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var a=n(78),i=n(81),r=n(83),o=n(84),s=n(87);const l=i.NamespaceIds.xhtml.id,c=Symbol(),d=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),u=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")],["xfa-font-vertical-scale",e=>"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>(e=t.fontSize=(0,o.getMeasurement)(e),(0,r.measureToString)(.99*e))],["letter-spacing",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["line-height",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["margin",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["margin-bottom",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["margin-left",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["margin-right",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["margin-top",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["text-indent",e=>(0,r.measureToString)((0,o.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,r.measureToString)((0,o.getMeasurement)(e))]]),h=/\s+/g,p=/[\r\n]+/g,f=/\r\n?/g;function m(e,t,n){const i=Object.create(null);if(!e)return i;const s=Object.create(null);for(const[a,r]of e.split(";").map((e=>e.split(":",2)))){const e=u.get(a);if(""===e)continue;let t=r;e&&(t="string"===typeof e?e:e(r,s)),a.endsWith("scale")?i.transform=i.transform?"".concat(i[a]," ").concat(t):t:i[a.replaceAll(/-([a-zA-Z])/g,((e,t)=>t.toUpperCase()))]=t}if(i.fontFamily&&(0,r.setFontFamily)({typeface:i.fontFamily,weight:i.fontWeight||"normal",posture:i.fontStyle||"normal",size:s.fontSize||0},t,t[a.$globalData].fontFinder,i),n&&i.verticalAlign&&"0px"!==i.verticalAlign&&i.fontSize){const e=.583,t=.333,n=(0,o.getMeasurement)(i.fontSize);i.fontSize=(0,r.measureToString)(n*e),i.verticalAlign=(0,r.measureToString)(Math.sign((0,o.getMeasurement)(i.verticalAlign))*n*t)}return n&&i.fontSize&&(i.fontSize="calc(".concat(i.fontSize," * var(--scale-factor))")),(0,r.fixTextIndent)(i),i}const v=new Set(["body","html"]);class g extends s.XmlObject{constructor(e,t){super(l,t),this[c]=!1,this.style=e.style||""}[a.$clean](e){var t;super[a.$clean](e),this.style=(t=this).style?t.style.trim().split(/\s*;\s*/).filter((e=>!!e)).map((e=>e.split(/\s*:\s*/,2))).filter((e=>{let[n,i]=e;return"font-family"===n&&t[a.$globalData].usedTypefaces.add(i),d.has(n)})).map((e=>e.join(":"))).join(";"):""}[a.$acceptWhitespace](){return!v.has(this[a.$nodeName])}[a.$onText](e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this[c]=!0:(e=e.replaceAll(p,""),this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(h," "))),e&&(this[a.$content]+=e)}[a.$pushGlyphs](e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN};let r=null;for(const[a,s]of this.style.split(";").map((e=>e.split(":",2))))switch(a){case"font-family":n.typeface=(0,o.stripQuotes)(s);break;case"font-size":n.size=(0,o.getMeasurement)(s);break;case"font-weight":n.weight=s;break;case"font-style":n.posture=s;break;case"letter-spacing":n.letterSpacing=(0,o.getMeasurement)(s);break;case"margin":const e=s.split(/ \t/).map((e=>(0,o.getMeasurement)(e)));switch(e.length){case 1:i.top=i.bottom=i.left=i.right=e[0];break;case 2:i.top=i.bottom=e[0],i.left=i.right=e[1];break;case 3:i.top=e[0],i.bottom=e[2],i.left=i.right=e[1];break;case 4:i.top=e[0],i.left=e[1],i.bottom=e[2],i.right=e[3]}break;case"margin-top":i.top=(0,o.getMeasurement)(s);break;case"margin-bottom":i.bottom=(0,o.getMeasurement)(s);break;case"margin-left":i.left=(0,o.getMeasurement)(s);break;case"margin-right":i.right=(0,o.getMeasurement)(s);break;case"line-height":r=(0,o.getMeasurement)(s)}if(e.pushData(n,i,r),this[a.$content])e.addString(this[a.$content]);else for(const o of this[a.$getChildren]())"#text"!==o[a.$nodeName]?o[a.$pushGlyphs](e):e.addString(o[a.$content]);t&&e.popFont()}[a.$toHTML](e){const t=[];if(this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0===t.length&&!this[a.$content])return o.HTMLResult.EMPTY;let n;return n=this[c]?this[a.$content]?this[a.$content].replaceAll(f,"\n"):void 0:this[a.$content]||void 0,o.HTMLResult.success({name:this[a.$nodeName],attributes:{href:this.href,style:m(this.style,this,this[c])},children:t,value:n})}}class y extends g{constructor(e){super(e,"a"),this.href=(0,r.fixURL)(e.href)||""}}class b extends g{constructor(e){super(e,"b")}[a.$pushGlyphs](e){e.pushFont({weight:"bold"}),super[a.$pushGlyphs](e),e.popFont()}}class _ extends g{constructor(e){super(e,"body")}[a.$toHTML](e){const t=super[a.$toHTML](e),{html:n}=t;return n?(n.name="div",n.attributes.class=["xfaRich"],t):o.HTMLResult.EMPTY}}class x extends g{constructor(e){super(e,"br")}[a.$text](){return"\n"}[a.$pushGlyphs](e){e.addString("\n")}[a.$toHTML](e){return o.HTMLResult.success({name:"br"})}}class w extends g{constructor(e){super(e,"html")}[a.$toHTML](e){const t=[];if(this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0===t.length)return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[a.$content]||""});if(1===t.length){var n;const e=t[0];if(null!==(n=e.attributes)&&void 0!==n&&n.class.includes("xfaRich"))return o.HTMLResult.success(e)}return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class C extends g{constructor(e){super(e,"i")}[a.$pushGlyphs](e){e.pushFont({posture:"italic"}),super[a.$pushGlyphs](e),e.popFont()}}class S extends g{constructor(e){super(e,"li")}}class A extends g{constructor(e){super(e,"ol")}}class k extends g{constructor(e){super(e,"p")}[a.$pushGlyphs](e){super[a.$pushGlyphs](e,!1),e.addString("\n"),e.addPara(),e.popFont()}[a.$text](){return this[a.$getParent]()[a.$getChildren]().at(-1)===this?super[a.$text]():super[a.$text]()+"\n"}}class j extends g{constructor(e){super(e,"span")}}class I extends g{constructor(e){super(e,"sub")}}class F extends g{constructor(e){super(e,"sup")}}class T extends g{constructor(e){super(e,"ul")}}class P{static[i.$buildXFAObject](e,t){if(P.hasOwnProperty(e))return P[e](t)}static a(e){return new y(e)}static b(e){return new b(e)}static body(e){return new _(e)}static br(e){return new x(e)}static html(e){return new w(e)}static i(e){return new C(e)}static li(e){return new S(e)}static ol(e){return new A(e)}static p(e){return new k(e)}static span(e){return new j(e)}static sub(e){return new I(e)}static sup(e){return new F(e)}static ul(e){return new T(e)}}t.XhtmlNamespace=P},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var a=n(81),i=n(87);class r{constructor(e){this.namespaceId=e}[a.$buildXFAObject](e,t){return new i.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0;var a=n(2),i=n(3),r=n(71);function o(e){try{return(0,a.stringToUTF8String)(e)}catch(t){return(0,a.warn)('UTF-8 decoding failed: "'.concat(t,'".')),e}}class s extends r.SimpleXMLParser{constructor(e){super(e),this.node=null}onEndElement(e){const t=super.onEndElement(e);if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}t.DatasetReader=class{constructor(e){if(e.datasets)this.node=new r.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{const t=new s({hasAttributes:!0});try{t.parseFromString(e["xdp:xdp"])}catch{}this.node=t.node}}getValue(e){if(!this.node||!e)return"";const t=this.node.searchNode((0,i.parseXFAPath)(e),0);if(!t)return"";const n=t.firstChild;return"value"===(null===n||void 0===n?void 0:n.nodeName)?t.children.map((e=>o(e.textContent))):o(t.textContent)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var a=n(2),i=n(4),r=n(16),o=n(3),s=n(5),u=n(74),h=new WeakMap;t.XRef=class{constructor(e,t){l(this,h,null),this.stream=e,this.pdfManager=t,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new i.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);const t=this._newPersistentRefNum++;return this._cacheMap.set(t,e),i.Ref.get(t,0)}getNewTemporaryRef(){return null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1),i.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(){let e,t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r?((0,a.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(s){if(s instanceof o.MissingDataException)throw s;(0,a.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(s,'".'))}if(t instanceof i.Dict){const n=e.get("ID"),a=null!==n&&void 0!==n&&n.length?n[0]:"";t.suppressEncryption=!0,this.encrypt=new u.CipherTransformFactory(t,a,this.pdfManager.password)}try{n=e.get("Root")}catch(s){if(s instanceof o.MissingDataException)throw s;(0,a.warn)('XRef.parse - Invalid "Root" reference: "'.concat(s,'".'))}if(n instanceof i.Dict)try{if(n.get("Pages")instanceof i.Dict)return void(this.root=n)}catch(s){if(s instanceof o.MissingDataException)throw s;(0,a.warn)('XRef.parse - Invalid "Pages" reference: "'.concat(s,'".'))}if(!r)throw new o.XRefParseException;throw new a.InvalidPDFException("Invalid Root reference.")}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});const t=this.readXRefTable(e);if(!(0,i.isCmd)(t,"trailer"))throw new a.FormatError("Invalid XRef table: could not find trailer dictionary");let n=e.getObj();if(n instanceof i.Dict||!n.dict||(n=n.dict),!(n instanceof i.Dict))throw new a.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,n}readXRefTable(e){const t=e.lexer.stream,n=this.tableState;let r;for(t.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if((0,i.isCmd)(r=e.getObj(),"trailer"))break;n.firstEntryNum=r,n.entryCount=e.getObj()}let o=n.firstEntryNum;const s=n.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new a.FormatError("Invalid XRef table: wrong types in subsection header");for(let r=n.entryNum;r0;){const[s,l]=o;if(!Number.isInteger(s)||!Number.isInteger(l))throw new a.FormatError("Invalid XRef range fields: ".concat(s,", ").concat(l));if(!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(r))throw new a.FormatError("Invalid XRef entry fields length: ".concat(s,", ").concat(l));for(let o=t.entryNum;o=e.length);)n+=String.fromCharCode(a),a=e[t];return n}function t(e,t,n){const a=n.length,i=e.length;let r=0;for(;t=a)break;t++,r++}return r}const n=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,s=/\b(startxref|\d+\s+\d+\s+obj)\b/g,l=/^(\d+)\s+(\d+)\s+obj\b/,c=new Uint8Array([116,114,97,105,108,101,114]),d=new Uint8Array([115,116,97,114,116,120,114,101,102]),u=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const h=this.stream;h.pos=0;const p=h.getBytes(),f=(0,a.bytesToString)(p),m=p.length;let v=h.start;const g=[],y=[];for(;v=m)break;i=p[v]}while(10!==i&&13!==i);continue}const b=e(p,v);let _;if(b.startsWith("xref")&&(4===b.length||/\s/.test(b[4])))v+=t(p,v,c),g.push(v),v+=t(p,v,d);else if(_=l.exec(b)){const e=0|_[1],i=0|_[2],s=v+b.length;let l,c=!1;if(this.entries[e]){if(this.entries[e].gen===i)try{new r.Parser({lexer:new r.Lexer(h.makeSubStream(s))}).getObj(),c=!0}catch(C){C instanceof o.ParserEOFException?(0,a.warn)("indexObjects -- checking object (".concat(b,'): "').concat(C,'".')):c=!0}}else c=!0;c&&(this.entries[e]={offset:v-h.start,gen:i,uncompressed:!0}),n.lastIndex=s;const d=n.exec(f);d?(l=n.lastIndex+1-v,"endobj"!==d[1]&&((0,a.warn)('indexObjects: Found "'.concat(d[1],'" inside of another "obj", ')+'caused by missing "endobj" -- trying to recover.'),l-=d[1].length+1)):l=m-v;const g=p.subarray(v,v+l),x=t(g,0,u);x0&&void 0!==arguments[0]&&arguments[0];const t=this.stream,n=new Set;for(;this.startXRefQueue.length;){try{const e=this.startXRefQueue[0];if(n.has(e)){(0,a.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}n.add(e),t.pos=e+t.start;const o=new r.Parser({lexer:new r.Lexer(t),xref:this,allowStreams:!0});let u,p=o.getObj();if((0,i.isCmd)(p,"xref")){var l;u=this.processXRefTable(o),this.topDict||(this.topDict=u),p=u.get("XRefStm"),Number.isInteger(p)&&!this._xrefStms.has(p)&&(this._xrefStms.add(p),this.startXRefQueue.push(p),null!==(l=c(h,this))&&void 0!==l||d(h,this,p))}else{if(!Number.isInteger(p))throw new a.FormatError("Invalid XRef stream header");if(!Number.isInteger(o.getObj())||!(0,i.isCmd)(o.getObj(),"obj")||!((p=o.getObj())instanceof s.BaseStream))throw new a.FormatError("Invalid XRef stream");if(u=this.processXRefStream(p),this.topDict||(this.topDict=u),!u)throw new a.FormatError("Failed to read XRef stream")}p=u.get("Prev"),Number.isInteger(p)?this.startXRefQueue.push(p):p instanceof i.Ref&&this.startXRefQueue.push(p.num)}catch(u){if(u instanceof o.MissingDataException)throw u;(0,a.info)("(while reading XRef): "+u)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new o.XRefParseException}get lastXRefStreamPos(){var e;return null!==(e=c(h,this))&&void 0!==e?e:this._xrefStms.size>0?Math.max(...this._xrefStms):null}getEntry(e){const t=this.entries[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof i.Ref?this.fetch(e,t):e}fetch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof i.Ref))throw new Error("ref object is not a reference");const n=e.num,r=this._cacheMap.get(n);if(void 0!==r)return r instanceof i.Dict&&!r.objId&&(r.objId=e.toString()),r;let o=this.getEntry(n);if(null===o)return this._cacheMap.set(n,o),o;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,a.warn)("Ignoring circular reference: ".concat(e,".")),i.CIRCULAR_REF;this._pendingRefs.put(e);try{o=o.uncompressed?this.fetchUncompressed(e,o,t):this.fetchCompressed(e,o,t),this._pendingRefs.remove(e)}catch(l){throw this._pendingRefs.remove(e),l}return o instanceof i.Dict?o.objId=e.toString():o instanceof s.BaseStream&&(o.dict.objId=e.toString()),o}fetchUncompressed(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=e.gen;let c=e.num;if(t.gen!==l){const r="Inconsistent generation in XRef: ".concat(e);if(this._generationFallback&&t.gen{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var a=n(2);const i=1,r=2,l=1,c=2,d=3,u=4,h=5,p=6,f=7,m=8;function v(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,a.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"PasswordException":return new a.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}var g=new WeakSet;function y(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj,o=this,s=this.actionHandler[e.action],l={enqueue(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=new a.PromiseCapability,this.ready=this.sinkCapability.promise),r.postMessage({sourceName:n,targetName:i,stream:u,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:d,streamId:t}),delete o.streamSinks[t])},error(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:v(e)}))},sinkCapability:new a.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[t]=l,new Promise((function(t){t(s(e.data,l))})).then((function(){r.postMessage({sourceName:n,targetName:i,stream:m,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:m,streamId:t,reason:v(e)})}))}function b(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj,o=this.streamControllers[t],y=this.streamSinks[t];switch(e.stream){case m:e.success?o.startCall.resolve():o.startCall.reject(v(e.reason));break;case f:e.success?o.pullCall.resolve():o.pullCall.reject(v(e.reason));break;case p:if(!y){r.postMessage({sourceName:n,targetName:i,stream:f,streamId:t,success:!0});break}y.desiredSize<=0&&e.desiredSize>0&&y.sinkCapability.resolve(),y.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=y.onPull)||void 0===t?void 0:t.call(y))})).then((function(){r.postMessage({sourceName:n,targetName:i,stream:f,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:f,streamId:t,reason:v(e)})}));break;case u:if((0,a.assert)(o,"enqueue should have stream controller"),o.isClosed)break;o.controller.enqueue(e.chunk);break;case d:if((0,a.assert)(o,"close should have stream controller"),o.isClosed)break;o.isClosed=!0,o.controller.close(),s(g,this,_).call(this,o,t);break;case h:(0,a.assert)(o,"error should have stream controller"),o.controller.error(v(e.reason)),s(g,this,_).call(this,o,t);break;case c:e.success?o.cancelCall.resolve():o.cancelCall.reject(v(e.reason)),s(g,this,_).call(this,o,t);break;case l:if(!y)break;new Promise((function(t){var n;t(null===(n=y.onCancel)||void 0===n?void 0:n.call(y,v(e.reason)))})).then((function(){r.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,reason:v(e)})})),y.sinkCapability.reject(v(e.reason)),y.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async function _(e,t){var n,a,i;await Promise.allSettled([null===(n=e.startCall)||void 0===n?void 0:n.promise,null===(a=e.pullCall)||void 0===a?void 0:a.promise,null===(i=e.cancelCall)||void 0===i?void 0:i.promise]),delete this.streamControllers[t]}t.MessageHandler=class{constructor(e,t,n){o(this,g),this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void s(g,this,b).call(this,t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==r)throw new Error("Unexpected callback case");n.reject(v(t.reason))}return}const a=this.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,o=t.sourceName;new Promise((function(e){e(a(t.data))})).then((function(a){n.postMessage({sourceName:e,targetName:o,callback:i,callbackId:t.callbackId,data:a})}),(function(a){n.postMessage({sourceName:e,targetName:o,callback:r,callbackId:t.callbackId,reason:v(a)})}))}else t.streamId?s(g,this,y).call(this,t):a(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,r=new a.PromiseCapability;this.callbackCapabilities[i]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(o){r.reject(o)}return r.promise}sendWithStream(e,t,n,i){const r=this.streamId++,o=this.sourceName,s=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const l=new a.PromiseCapability;return this.streamControllers[r]={controller:n,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:o,targetName:s,action:e,streamId:r,data:t,desiredSize:n.desiredSize},i),l.promise},pull:e=>{const t=new a.PromiseCapability;return this.streamControllers[r].pullCall=t,c.postMessage({sourceName:o,targetName:s,stream:p,streamId:r,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,a.assert)(e instanceof Error,"cancel must have a valid reason");const t=new a.PromiseCapability;return this.streamControllers[r].cancelCall=t,this.streamControllers[r].isClosed=!0,c.postMessage({sourceName:o,targetName:s,stream:l,streamId:r,reason:v(e)}),t.promise}},n)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var a=n(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){const n=new r(e,t,this._msgHandler);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class i{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength}))}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class r{constructor(e,t,n){this._msgHandler=n,this.onProgress=null;const a=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=a.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=n(1)})(),a})(),e.exports=a.pdfjsWorker=i()},330:(e,t,n)=>{"use strict";var a=n(777);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,o){if(o!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},2704:(e,t,n)=>{e.exports=n(330)()},777:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5394:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,a,i){n=n||"&",a=a||"=";var r={};if("string"!==typeof e||0===e.length)return r;var o=/\+/g;e=e.split(n);var s=1e3;i&&"number"===typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(d=f.substr(0,m),u=f.substr(m+1)):(d=f,u=""),h=decodeURIComponent(d),p=decodeURIComponent(u),t(r,h)?Array.isArray(r[h])?r[h].push(p):r[h]=[r[h],p]:r[h]=p}return r}},2646:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,a,i){return n=n||"&",a=a||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(i){var r=encodeURIComponent(t(i))+a;return Array.isArray(e[i])?e[i].map((function(e){return r+encodeURIComponent(t(e))})).join(n):r+encodeURIComponent(t(e[i]))})).filter(Boolean).join(n):i?encodeURIComponent(t(i))+a+encodeURIComponent(t(e)):""}},4174:(e,t,n)=>{"use strict";t.decode=t.parse=n(5394),t.encode=t.stringify=n(2646)},4451:(e,t,n)=>{"use strict";var a=n(16),i=n(2346);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n