/*! For license information please see 7397.beeb16d9.js.LICENSE.txt */ (self.webpackChunkapp=self.webpackChunkapp||[]).push([[7397],{9109:function(module,__unused_webpack_exports,__webpack_require__){function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t(()=>{"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||o(t)},t.bytesToString=c,t.createValidAbsoluteUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"===typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var n=e.match(/\./g);(null===n||void 0===n?void 0:n.length)>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=h(e)}catch(a){}}var i=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}}(i))return i}catch(o){}return null},t.getModificationDate=function(){var 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();var r=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(r);else for(var n=0;n<32;n++)r[n]=Math.floor(255*Math.random());return c(r)},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=n.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(var r=0,n=e.length;rt?t.normalize("NFKC"):g.get(r)))},t.objectFromMap=function(e){var t=Object.create(null);for(var[r,n]of e)t[r]=n;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=s,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){var t;if(e[0]>="\xef"&&("\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{var r=new TextDecoder(t,{fatal:!0}),n=u(e);return r.decode(n)}catch(c){a('stringToPDFString: "'.concat(c,'".'))}for(var i=[],o=0,s=e.length;o=n.WARNINGS&&console.log("Warning: ".concat(e))}function o(e){throw new Error(e)}function s(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}var l=function(){function e(t,r){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();function c(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||o("Invalid argument for bytesToString");var t=e.length,r=8192;if(te.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,r){return"#".concat(d[e]).concat(d[t]).concat(d[r])}static scaleMinMax(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),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){var r=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])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){var r=this.applyTransform(e,t),n=this.applyTransform(e.slice(2,4),t),i=this.applyTransform([e[0],e[3]],t),a=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],n[0],i[0],a[0]),Math.min(r[1],n[1],i[1],a[1]),Math.max(r[0],n[0],i[0],a[0]),Math.max(r[1],n[1],i[1],a[1])]}static inverseTransform(e){var 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){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(r+a)/2,s=Math.sqrt((r+a)**2-4*(r*a-i*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){var 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){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),n=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>n)return null;var i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>a?null:[r,i,n,a]}static bezierBoundingBox(e,t,r,n,i,a,o,s){for(var l,c,u,d,p,h,f,v,g=[],m=[[],[]],b=0;b<2;++b)if(0===b?(c=6*e-12*r+6*i,l=-3*e+9*r-9*i+3*o,u=3*r-3*e):(c=6*t-12*n+6*a,l=-3*t+9*n-9*a+3*s,u=3*n-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;0<(d=-u/c)&&d<1&&g.push(d)}else f=c*c-4*u*l,v=Math.sqrt(f),f<0||(0<(p=(-c+v)/(2*l))&&p<1&&g.push(p),0<(h=(-c-v)/(2*l))&&h<1&&g.push(h));for(var y,_=g.length,A=_;_--;)y=1-(d=g[_]),m[0][_]=y*y*y*e+3*y*y*d*r+3*y*d*d*i+d*d*d*o,m[1][_]=y*y*y*t+3*y*y*d*n+3*y*d*d*a+d*d*d*s;return m[0][A]=e,m[1][A]=t,m[0][A+1]=o,m[1][A+1]=s,m[0].length=m[1].length=A+2,[Math.min(...m[0]),Math.min(...m[1]),Math.max(...m[0]),Math.max(...m[1])]}};var p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function h(e){return decodeURIComponent(escape(e))}var f=new WeakMap;t.PromiseCapability=class{constructor(){_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),this.promise=new Promise(((e,t)=>{this.resolve=t=>{_classPrivateFieldSet(this,f,!0),e(t)},this.reject=e=>{_classPrivateFieldSet(this,f,!0),t(e)}}))}get settled(){return _classPrivateFieldGet(this,f)}};var 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),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;var DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;var DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,r;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");var n=new PDFDocumentLoadingTask,{docId:i}=n,a=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,u=e.range instanceof PDFDataRangeTransport?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE,p=e.worker instanceof PDFWorker?e.worker:null,h=e.verbosity,f="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,v="string"===typeof e.cMapUrl?e.cMapUrl:null,g=!1!==e.cMapPacked,m=e.CMapReaderFactory||DefaultCMapReaderFactory,b="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,y=e.StandardFontDataFactory||DefaultStandardFontDataFactory,_=!0!==e.stopAtErrors,A=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,C=!1!==e.isEvalSupported,w="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,S=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,k="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,x=!0===e.fontExtraProperties,P=!0===e.enableXfa,E=e.ownerDocument||globalThis.document,O=!0===e.disableRange,T=!0===e.disableStream,R=!0===e.disableAutoFetch,M=!0===e.pdfBug,F=u?u.length:null!==(r=e.length)&&void 0!==r?r:NaN,I="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!k,D="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&y===_display_utils.DOMStandardFontDataFactory&&v&&b&&(0,_display_utils.isValidFetchUrl)(v,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(b,document.baseURI),B=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:E}),j=e.filterFactory||new DefaultFilterFactory({docId:i,ownerDocument:E});(0,_util.setVerbosityLevel)(h);var N={canvasFactory:B,filterFactory:j};if(D||(N.cMapReaderFactory=new m({baseUrl:v,isCompressed:g}),N.standardFontDataFactory=new y({baseUrl:b})),!p){var L={verbosity:h,port:_worker_options.GlobalWorkerOptions.workerPort};p=L.port?PDFWorker.fromPort(L):new PDFWorker(L),n._worker=p}var Z={docId:i,apiVersion:"3.11.174",data:o,password:c,disableAutoFetch:R,rangeChunkSize:d,length:F,docBaseUrl:f,enableXfa:P,evaluatorOptions:{maxImageSize:A,disableFontFace:k,ignoreErrors:_,isEvalSupported:C,isOffscreenCanvasSupported:w,canvasMaxAreaInBytes:S,fontExtraProperties:x,useSystemFonts:I,cMapUrl:D?v:null,standardFontDataUrl:D?b:null}},G={ignoreErrors:_,isEvalSupported:C,disableFontFace:k,fontExtraProperties:x,enableXfa:P,ownerDocument:E,disableAutoFetch:R,pdfBug:M,styleElement:null};return p.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(p,Z),t=new Promise((function(e){var t,r;u?t=new _transport_stream.PDFDataTransportStream({length:F,initialData:u.initialData,progressiveDone:u.progressiveDone,contentDispositionFilename:u.contentDispositionFilename,disableRange:O,disableStream:T},u):o||(r={url:a,length:F,httpHeaders:s,withCredentials:l,rangeChunkSize:d,disableRange:O,disableStream:T},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(r):(0,_display_utils.isValidFetchUrl)(r.url)?new _displayFetch_stream.PDFFetchStream(r):new _displayNetwork.PDFNetworkStream(r)),e(t)}));return Promise.all([e,t]).then((function(e){var[t,r]=e;if(n.destroyed)throw new Error("Loading aborted");var a=new _message_handler.MessageHandler(i,t,p.port),o=new WorkerTransport(a,n,r,G,N);n._transport=o,a.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(e,t){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator((function*(e,t){if(e.destroyed)throw new Error("Worker was destroyed");var r=yield e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return r}))).apply(this,arguments)}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch(t){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((_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(e=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),t=e++,e)),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}destroy(){var e=this;return _asyncToGenerator((function*(){e.destroyed=!0;try{var t,r;null!==(t=e._worker)&&void 0!==t&&t.port&&(e._worker._pendingDestroy=!0),yield null===(r=e._transport)||void 0===r?void 0:r.destroy()}catch(i){var n;throw null!==(n=e._worker)&&void 0!==n&&n.port&&delete e._worker._pendingDestroy,i}e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))()}}var _docId={writable:!0,value:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=n,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(var r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(var r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(var t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(var 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;var t=[];for(var r in e)t.push(...e[r]);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(){var 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,_tryCleanup=new WeakSet,_abortDelayedCleanup=new WeakSet;class PDFPageProxy{constructor(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classPrivateMethodInitSpec(this,_abortDelayedCleanup),_classPrivateMethodInitSpec(this,_tryCleanup),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pendingCleanup,{writable:!0,value:!1}),this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=n?new _display_utils.StatTimer:null,this._pdfBug=n,this.commonObjs=r.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(){var{scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:n=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:r,offsetY:n,dontFlip:i})}getAnnotations(){var{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},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)}getXfa(){var e=this;return _asyncToGenerator((function*(){var t;return(null===(t=e._transport._htmlForXfa)||void 0===t?void 0:t.children[e._pageIndex])||null}))()}render(e){var t,r,{canvasContext:n,viewport:i,intent:a="display",annotationMode:o=_util.AnnotationMode.ENABLE,transform:s=null,background:l=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:p=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");var h=this._transport.getRenderingIntent(a,o,p);_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),c||(c=this._transport.getOptionalContentConfig());var f=this._intentStates.get(h.cacheKey);f||(f=Object.create(null),this._intentStates.set(h.cacheKey,f)),f.streamReaderCancelTimeout&&(clearTimeout(f.streamReaderCancelTimeout),f.streamReaderCancelTimeout=null);var v,g=!!(h.renderingIntent&_util.RenderingIntentFlag.PRINT);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(h));var m=e=>{var t,r;f.renderTasks.delete(b),(this._maybeCleanupAfterRender||g)&&_classPrivateFieldSet(this,_pendingCleanup,!0),_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!g),e?(b.capability.reject(e),this._abortOperatorList({intentState:f,reason:e instanceof Error?e:new Error(e)})):b.capability.resolve(),null===(t=this._stats)||void 0===t||t.timeEnd("Rendering"),null===(r=this._stats)||void 0===r||r.timeEnd("Overall")},b=new InternalRenderTask({callback:m,params:{canvasContext:n,viewport:i,transform:s,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:f.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:d});((r=f).renderTasks||(r.renderTasks=new Set)).add(b);var y=b.task;return Promise.all([f.displayReadyCapability.promise,c]).then((e=>{var t,[r,n]=e;this.destroyed?m():(null===(t=this._stats)||void 0===t||t.time("Rendering"),b.initializeGraphics({transparency:r,optionalContentConfig:n}),b.operatorListChanged())})).catch(m),y}getOperatorList(){var e,t,r,{intent:n="display",annotationMode:i=_util.AnnotationMode.ENABLE,printAnnotationStorage:a=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=this._transport.getRenderingIntent(n,i,a,!0),s=this._intentStates.get(o.cacheKey);return s||(s=Object.create(null),this._intentStates.set(o.cacheKey,s)),s.opListReadCapability||((e=Object.create(null)).operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(e))},s.opListReadCapability=new _util.PromiseCapability,((t=s).renderTasks||(t.renderTasks=new Set)).add(e),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(r=this._stats)||void 0===r||r.time("Page Request"),this._pumpOperatorList(o)),s.opListReadCapability.promise}streamTextContent(){var{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){return e.items.length}})}getTextContent(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));var t=this.streamTextContent(e);return new Promise((function(e,r){var n=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){n.read().then((function(r){var{value:n,done:a}=r;a?e(i):(Object.assign(i.styles,n.styles),i.items.push(...n.items),t())}),r)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;var e=[];for(var t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(var r of t.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),Promise.all(e)}cleanup(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(this,_pendingCleanup,!0);var t=_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}_startRenderPage(e,t){var r,n,i=this._intentStates.get(t);i&&(null===(r=this._stats)||void 0===r||r.timeEnd("Page Request"),null===(n=i.displayReadyCapability)||void 0===n||n.resolve(e))}_renderPageChunk(e,t){for(var r=0,n=e.length;r{o.read().then((e=>{var{value:t,done:r}=e;r?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,s),l())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){for(var t of(s.operatorList.lastChunk=!0,s.renderTasks))t.operatorListChanged();_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}_abortOperatorList(e){var{intentState:t,reason:r,force:n=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof _display_utils.RenderingCancelledException){var i=RENDERING_CANCELLED_TIMEOUT;return r.extraDelay>0&&r.extraDelay<1e3&&(i+=r.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})}),i))}}if(t.streamReader.cancel(new _util.AbortException(r.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(var[a,o]of this._intentStates)if(o===t){this._intentStates.delete(a);break}this.cleanup()}}}get stats(){return this._stats}}function _tryCleanup2(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),!_classPrivateFieldGet(this,_pendingCleanup)||this.destroyed)return!1;if(e)return _classPrivateFieldSet(this,_delayedCleanupTimeout,setTimeout((()=>{_classPrivateFieldSet(this,_delayedCleanupTimeout,null),_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;for(var{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),!0}function _abortDelayedCleanup2(){_classPrivateFieldGet(this,_delayedCleanupTimeout)&&(clearTimeout(_classPrivateFieldGet(this,_delayedCleanupTimeout)),_classPrivateFieldSet(this,_delayedCleanupTimeout,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap;class LoopbackPort{constructor(){_classPrivateFieldInitSpec(this,_listeners,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,_deferred,{writable:!0,value:Promise.resolve()})}postMessage(e,t){var r={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(this,_deferred).then((()=>{for(var e of _classPrivateFieldGet(this,_listeners))e.call(this,r)}))}addEventListener(e,t){_classPrivateFieldGet(this,_listeners).add(t)}removeEventListener(e,t){_classPrivateFieldGet(this,_listeners).delete(t)}terminate(){_classPrivateFieldGet(this,_listeners).clear()}}exports.LoopbackPort=LoopbackPort;var 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,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){var r;try{if(!(r=new URL(e)).origin||"null"===r.origin)return!1}catch(i){return!1}var n=new URL(t,r);return r.origin===n.origin},PDFWorkerUtil.createCDNWrapper=function(e){var t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){var{name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=e,this.destroyed=!1,this.verbosity=r,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){var n;if(null!==(n=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))&&void 0!==n&&n.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts)||_classStaticPrivateFieldSpecSet(PDFWorker,PDFWorker,_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){var{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));var t=new Worker(e),r=new _message_handler.MessageHandler("main","worker",t),n=()=>{t.removeEventListener("error",i),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||n()};t.addEventListener("error",i),r.on("test",(e=>{t.removeEventListener("error",i),this.destroyed?n():e?(this._messageHandler=r,this._port=t,this._webWorker=t,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",i),this.destroyed)n();else try{a()}catch(r){this._setupFakeWorker()}}));var a=()=>{var e=new Uint8Array;r.send("test",e,[e.buffer])};return void a()}catch(o){(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)this._readyCapability.reject(new Error("Worker was destroyed"));else{var t=new LoopbackPort;this._port=t;var r="fake".concat(PDFWorkerUtil.fakeWorkerId++),n=new _message_handler.MessageHandler(r+"_worker",r,t);e.setup(n,t);var i=new _message_handler.MessageHandler(r,r+"_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=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_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.");var r=null===(t=_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts))||void 0===t?void 0:t.get(e.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}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(t){return null}}static get _setupFakeWorkerGlobal(){var _this3=this,loader=function(){var _ref8=_asyncToGenerator((function*(){var mainWorkerMessageHandler=_this3._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){var worker=eval("require")(_this3.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this3.workerSrc),window.pdfjsWorker.WorkerMessageHandler}));return function(){return _ref8.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={writable:!0,value:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_cacheSimpleMethod=new WeakSet;class WorkerTransport{constructor(e,t,r,n,i){_classPrivateMethodInitSpec(this,_cacheSimpleMethod),_classPrivateFieldInitSpec(this,_methodPromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_passwordCapability,{writable:!0,value:null}),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this._params=n,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_util.RenderingIntentFlag.DISPLAY,a=_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:a=((i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE)&_util.RenderingIntentFlag.PRINT&&r instanceof _annotation_storage.PrintAnnotationStorage?r:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return n&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:"".concat(i,"_").concat(a.hash),annotationStorageSerializable:a}}destroy(){var e;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(this,_passwordCapability))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];for(var r of _classPrivateFieldGet(this,_pageCache).values())t.push(r._destroy());_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((()=>{var e;this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldGet(this,_methodPromises).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(){var{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){var{value:r,done:n}=e;n?t.close():((0,_util.assert)(r instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).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=>{var r=new _util.PromiseCapability,n=this._fullReader;return n.headersReady.then((()=>{var e;n.isStreamingSupported&&n.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),n.onProgress=e=>{var r;null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded,total:e.total})});r.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=this._networkStream.getRangeReader(e.begin,e.end);r?(t.onPull=()=>{r.read().then((function(e){var{value:r,done:n}=e;n?t.close():((0,_util.assert)(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{var{pdfInfo:r}=e;this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(r,this))})),e.on("DocException",(function(e){var r;switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":r=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":r=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(_classPrivateFieldSet(this,_passwordCapability,new _util.PromiseCapability),t.onPassword)try{t.onPassword((e=>{e instanceof Error?_classPrivateFieldGet(this,_passwordCapability).reject(e):_classPrivateFieldGet(this,_passwordCapability).resolve({password:e})}),e.code)}catch(r){_classPrivateFieldGet(this,_passwordCapability).reject(r)}else _classPrivateFieldGet(this,_passwordCapability).reject(new _util.PasswordException(e.message,e.code));return _classPrivateFieldGet(this,_passwordCapability).promise})),e.on("DataLoaded",(e=>{var r;null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(this,_pageCache).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var r,[n,i,a]=t;if(!this.destroyed&&!this.commonObjs.has(n))switch(i){case"Font":var o=this._params;if("error"in a){var s=a.error;(0,_util.warn)("Error during font loading: ".concat(s)),this.commonObjs.resolve(n,s);break}var l=o.pdfBug&&null!==(r=globalThis.FontInspector)&&void 0!==r&&r.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,c=new _font_loader.FontFaceObject(a,{isEvalSupported:o.isEvalSupported,disableFontFace:o.disableFontFace,ignoreErrors:o.ignoreErrors,inspectFont:l});this.fontLoader.bind(c).catch((t=>e.sendWithPromise("FontFallback",{id:n}))).finally((()=>{!o.fontExtraProperties&&c.data&&(c.data=null),this.commonObjs.resolve(n,c)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,a);break;default:throw new Error("Got unknown common object type ".concat(i))}})),e.on("obj",(e=>{var[t,r,n,i]=e;if(!this.destroyed){var a=_classPrivateFieldGet(this,_pageCache).get(r);if(!a.objs.has(t))switch(n){case"Image":if(a.objs.resolve(t,i),i){var o;if(i.bitmap){var{width:s,height:l}=i;o=s*l*4}else{var c;o=(null===(c=i.data)||void 0===c?void 0:c.length)||0}o>_util.MAX_IMAGE_SIZE_TO_CACHE&&(a._maybeCleanupAfterRender=!0)}break;case"Pattern":a.objs.resolve(t,i);break;default:throw new Error("Got unknown object type ".concat(n))}}})),e.on("DocProgress",(e=>{var r;this.destroyed||null===(r=t.onProgress)||void 0===r||r.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.");var{map:r,transfers:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:r,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},n).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));var t=e-1,r=_classPrivateFieldGet(this,_pagePromises).get(t);if(r)return r;var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(t,e,this,this._params.pdfBug);return _classPrivateFieldGet(this,_pageCache).set(t,r),r}));return _classPrivateFieldGet(this,_pagePromises).set(t,n),n}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 _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetFieldObjects")}hasJSActions(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).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 _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).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(){var e="GetMetadata",t=_classPrivateFieldGet(this,_methodPromises).get(e);if(t)return t;var r=this.messageHandler.sendWithPromise(e,null).then((e=>{var t,r,n,i;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(r=this._fullReader)||void 0===r?void 0:r.filename)&&void 0!==t?t:null,contentLength:null!==(n=null===(i=this._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==n?n:null}}));return _classPrivateFieldGet(this,_methodPromises).set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(){var e=arguments,t=this;return _asyncToGenerator((function*(){var r=e.length>0&&void 0!==e[0]&&e[0];if(!t.destroyed){for(var n of(yield t.messageHandler.sendWithPromise("Cleanup",null),_classPrivateFieldGet(t,_pageCache).values()))if(!n.cleanup())throw new Error("startCleanup: Page ".concat(n.pageNumber," is currently rendering."));t.commonObjs.clear(),r||t.fontLoader.clear(),_classPrivateFieldGet(t,_methodPromises).clear(),t.filterFactory.destroy(!0)}}))()}get loadingParams(){var{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}function _cacheSimpleMethod2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateFieldGet(this,_methodPromises).get(e);if(r)return r;var n=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(this,_methodPromises).set(e,n),n}var _objs=new WeakMap,_ensureObj=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);return r.capability.promise.then((()=>t(r.data))),null}var n=_classPrivateFieldGet(this,_objs)[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){var t=_classPrivateFieldGet(this,_objs)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);r.data=t,r.capability.resolve()}clear(){for(var e in _classPrivateFieldGet(this,_objs)){var t,{data:r}=_classPrivateFieldGet(this,_objs)[e];null===r||void 0===r||null===(t=r.bitmap)||void 0===t||t.close()}_classPrivateFieldSet(this,_objs,Object.create(null))}}function _ensureObj2(e){var t;return(t=_classPrivateFieldGet(this,_objs))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}cancel(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(this,_internalRenderTask).cancel(null,e)}get separateAnnots(){var{separateAnnots:e}=_classPrivateFieldGet(this,_internalRenderTask).operatorList;if(!e)return!1;var{annotationCanvasMap:t}=_classPrivateFieldGet(this,_internalRenderTask);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){var{callback:t,params:r,objs:n,commonObjs:i,annotationCanvasMap:a,operatorList:o,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:p=null}=e;this.callback=t,this.params=r,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"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=r.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,r,{transparency:n=!1,optionalContentConfig:i}=e;if(!this.cancelled){if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_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.");_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_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());var{canvasContext:a,viewport:o,transform:s,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:o,transparency:n,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(r=this.graphicsReadyCallback)||void 0===r||r.call(this)}}cancel(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=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(),_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),r))}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)}_next(){var e=this;return _asyncToGenerator((function*(){e.cancelled||(e.operatorListIdx=e.gfx.executeOperatorList(e.operatorList,e.operatorListIdx,e._continueBound,e.stepper),e.operatorListIdx===e.operatorList.argsArray.length&&(e.running=!1,e.operatorList.lastChunk&&(e.gfx.endDrawing(),_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(e._canvas),e.callback())))}))()}}var _canvasInUse={writable:!0,value:new WeakSet},version="3.11.174";exports.version=version;var build="ce8716743";exports.build=build},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var n=r(1),i=r(4),a=r(8),o=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=o;var s=new WeakMap,l=new WeakMap,c=new WeakSet;class u{constructor(){_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:new Map}),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){var r=_classPrivateFieldGet(this,l).get(e);return void 0===r?t:Object.assign(t,r)}getRawValue(e){return _classPrivateFieldGet(this,l).get(e)}remove(e){if(_classPrivateFieldGet(this,l).delete(e),0===_classPrivateFieldGet(this,l).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(var t of _classPrivateFieldGet(this,l).values())if(t instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){var r=_classPrivateFieldGet(this,l).get(e),n=!1;if(void 0!==r)for(var[a,o]of Object.entries(t))r[a]!==o&&(n=!0,r[a]=o);else n=!0,_classPrivateFieldGet(this,l).set(e,t);n&&_classPrivateMethodGet(this,c,d).call(this),t instanceof i.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return _classPrivateFieldGet(this,l).has(e)}getAll(){return _classPrivateFieldGet(this,l).size>0?(0,n.objectFromMap)(_classPrivateFieldGet(this,l)):null}setAll(e){for(var[t,r]of Object.entries(e))this.setValue(t,r)}get size(){return _classPrivateFieldGet(this,l).size}resetModified(){_classPrivateFieldGet(this,s)&&(_classPrivateFieldSet(this,s,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new h(this)}get serializable(){if(0===_classPrivateFieldGet(this,l).size)return o;var e=new Map,t=new a.MurmurHash3_64,r=[],n=Object.create(null),s=!1;for(var[c,u]of _classPrivateFieldGet(this,l)){var d=u instanceof i.AnnotationEditor?u.serialize(!1,n):u;d&&(e.set(c,d),t.update("".concat(c,":").concat(JSON.stringify(d))),s||(s=!!d.bitmap))}if(s)for(var p of e.values())p.bitmap&&r.push(p.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:r}:o}}function d(){_classPrivateFieldGet(this,s)||(_classPrivateFieldSet(this,s,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=u;var p=new WeakMap;class h extends u{constructor(e){super(),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0});var{map:t,hash:r,transfers:n}=e.serializable,i=structuredClone(t,n?{transfer:n}:null);_classPrivateFieldSet(this,p,{map:i,hash:r,transfers:n})}get print(){(0,n.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(this,p)}}t.PrintAnnotationStorage=h},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var i=r(5),a=r(1),o=r(6),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,_=new WeakMap,A=new WeakSet,C=new WeakSet,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet,P=new WeakSet,E=new WeakSet;class O{constructor(e){_classPrivateMethodInitSpec(this,E),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateFieldInitSpec(this,s,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.focusin.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:this.focusout.bind(this)}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:!1}),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,y,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:O._zIndex++}),this.constructor===O&&(0,a.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;var{rotation:t,rawDims:{pageWidth:r,pageHeight:n,pageX:i,pageY:o}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,n],this.pageTranslation=[i,o];var[T,R]=this.parentDimensions;this.x=e.x/T,this.y=e.y/R,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,a.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){var t=new Z({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(O._l10nPromise||(O._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(var r of t.strings)O._l10nPromise.set(r,e.get(r));if(-1===O._borderLineWidth){var n=getComputedStyle(document.documentElement);O._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,a.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return _classPrivateFieldGet(this,y)}set _isDraggable(e){var t;_classPrivateFieldSet(this,y,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}center(){var[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(this,g)?_classPrivateFieldSet(this,g,!1):this.parent.setSelected(this))}focusout(e){var t;if(this._focusEventsAllowed&&this.isAttachedToDOM){var r=e.relatedTarget;null!==r&&void 0!==r&&r.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,r,n){var[i,a]=this.parentDimensions;[r,n]=this.screenToPageTranslation(r,n),this.x=(e+r)/i,this.y=(t+n)/a,this.fixAndSetPosition()}translate(e,t){_classPrivateMethodGet(this,A,T).call(this,this.parentDimensions,e,t)}translateInPage(e,t){_classPrivateMethodGet(this,A,T).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){var[r,n]=this.parentDimensions;if(this.x+=e/r,this.y+=t/n,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){var{x:i,y:a}=this.div.getBoundingClientRect();this.parent.findNewParent(this,i,a)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var{x:o,y:s}=this,[l,c]=_classPrivateMethodGet(this,C,R).call(this);o+=l,s+=c,this.div.style.left="".concat((100*o).toFixed(2),"%"),this.div.style.top="".concat((100*s).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){var[e,t]=this.pageDimensions,{x:r,y:n,width:i,height:a}=this;switch(i*=e,a*=t,r*=e,n*=t,this.rotation){case 0:r=Math.max(0,Math.min(e-i,r)),n=Math.max(0,Math.min(t-a,n));break;case 90:r=Math.max(0,Math.min(e-a,r)),n=Math.min(t,Math.max(i,n));break;case 180:r=Math.min(e,Math.max(i,r)),n=Math.min(t,Math.max(a,n));break;case 270:r=Math.min(e,Math.max(a,r)),n=Math.max(0,Math.min(t-i,n))}this.x=r/=e,this.y=n/=t;var[o,s]=_classPrivateMethodGet(this,C,R).call(this);r+=o,n+=s;var{style:l}=this.div;l.left="".concat((100*r).toFixed(2),"%"),l.top="".concat((100*n).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(e,t){return _classStaticPrivateMethodGet(O,O,M).call(O,e,t,this.parentRotation)}pageTranslationToScreen(e,t){return _classStaticPrivateMethodGet(O,O,M).call(O,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){var{parentScale:e,pageDimensions:[t,r]}=this,n=t*e,i=r*e;return a.FeatureTest.isCSSRoundSupported?[Math.round(n),Math.round(i)]:[n,i]}setDims(e,t){var r,[n,i]=this.parentDimensions;this.div.style.width="".concat((100*e/n).toFixed(2),"%"),_classPrivateFieldGet(this,p)||(this.div.style.height="".concat((100*t/i).toFixed(2),"%")),null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.classList.toggle("small",ee.stopPropagation())),t.addEventListener("click",(t=>{t.preventDefault(),e._uiManager.editAltText(e)}),{capture:!0}),t.addEventListener("keydown",(r=>{r.target===t&&"Enter"===r.key&&(r.preventDefault(),e._uiManager.editAltText(e))})),_classPrivateMethodGet(e,P,j).call(e),e.div.append(t),O.SMALL_EDITOR_SIZE||(O.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*t.getBoundingClientRect().width)))}}))()}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:_classPrivateFieldGet(this,s),decorative:_classPrivateFieldGet(this,l)}}set altTextData(e){var{altText:t,decorative:r}=e;_classPrivateFieldGet(this,s)===t&&_classPrivateFieldGet(this,l)===r||(_classPrivateFieldSet(this,s,t),_classPrivateFieldSet(this,l,r),_classPrivateMethodGet(this,P,j).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(this,f)),this.div.addEventListener("focusout",_classPrivateFieldGet(this,v));var[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),"%"));var[r,n]=this.getInitialTranslation();return this.translate(r,n),(0,i.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){var{isMac:t}=a.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(_classPrivateFieldSet(this,g,!0),_classPrivateMethodGet(this,E,L).call(this,e))}moveInDOM(){var e;null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}_setParentAndPosition(e,t,r){e.changeParent(this),this.x=t,this.y=r,this.fixAndSetPosition()}getRect(e,t){var r=this.parentScale,[n,i]=this.pageDimensions,[a,o]=this.pageTranslation,s=e/r,l=t/r,c=this.x*n,u=this.y*i,d=this.width*n,p=this.height*i;switch(this.rotation){case 0:return[c+s+a,i-u-l-p+o,c+s+d+a,i-u-l+o];case 90:return[c+l+a,i-u+s+o,c+l+p+a,i-u+s+d+o];case 180:return[c-s-d+a,i-u+l+o,c-s+a,i-u+l+p+o];case 270:return[c-l-p+a,i-u-s-d+o,c-l+a,i-u-s+o];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){var[r,n,i,a]=e,o=i-r,s=a-n;switch(this.rotation){case 0:return[r,t-a,o,s];case 90:return[r,t-n,s,o];case 180:return[i,t-n,o,s];case 270:return[i,t-a,s,o];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(this,b,!0)}disableEditMode(){_classPrivateFieldSet(this,b,!1)}isInEditMode(){return _classPrivateFieldGet(this,b)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e,t;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(this,f)),null===(t=this.div)||void 0===t||t.addEventListener("focusout",_classPrivateFieldGet(this,v))}serialize(){(0,a.unreachable)("An editor must be serializable")}static deserialize(e,t,r){var n=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:r});n.rotation=e.rotation;var[i,a]=n.pageDimensions,[o,s,l,c]=n.getRectInCurrentCoords(e.rect,a);return n.x=o/i,n.y=s/a,n.width=l/i,n.height=c/a,n}remove(){var e;this.div.removeEventListener("focusin",_classPrivateFieldGet(this,f)),this.div.removeEventListener("focusout",_classPrivateFieldGet(this,v)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null===(e=_classPrivateFieldGet(this,c))||void 0===e||e.remove(),_classPrivateFieldSet(this,c,null),_classPrivateFieldSet(this,u,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(_classPrivateMethodGet(this,S,I).call(this),_classPrivateFieldGet(this,h).classList.remove("hidden"))}select(){var e;this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e,t,r;null===(e=_classPrivateFieldGet(this,h))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(r=this.div)&&void 0!==r&&r.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).hidden=!0)}enableEditing(){_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(this,m)}set isEditing(e){_classPrivateFieldSet(this,m,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){_classPrivateFieldSet(this,p,!0);var r=e/t,{style:n}=this.div;n.aspectRatio=r,n.height="auto"}static get MIN_SIZE(){return 16}}function T(e,t,r){var[n,i]=e;[t,r]=this.screenToPageTranslation(t,r),this.x+=t/n,this.y+=r/i,this.fixAndSetPosition()}function R(){var[e,t]=this.parentDimensions,{_borderLineWidth:r}=n,i=r/e,a=r/t;switch(this.rotation){case 90:return[-i,a];case 180:return[i,a];case 270:return[i,-a];default:return[-i,-a]}}function M(e,t,r){switch(r){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function F(e){switch(e){case 90:var[t,r]=this.pageDimensions;return[0,-t/r,r/t,0];case 180:return[-1,0,0,-1];case 270:var[n,i]=this.pageDimensions;return[0,n/i,-i/n,0];default:return[1,0,0,1]}}function I(){if(!_classPrivateFieldGet(this,h)){_classPrivateFieldSet(this,h,document.createElement("div")),_classPrivateFieldGet(this,h).classList.add("resizers");var e=["topLeft","topRight","bottomRight","bottomLeft"];for(var t of(this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft"),e)){var r=document.createElement("div");_classPrivateFieldGet(this,h).append(r),r.classList.add("resizer",t),r.addEventListener("pointerdown",_classPrivateMethodGet(this,k,D).bind(this,t)),r.addEventListener("contextmenu",o.noContextMenu)}this.div.prepend(_classPrivateFieldGet(this,h))}}function D(e,t){t.preventDefault();var{isMac:r}=a.FeatureTest.platform;if(!(0!==t.button||t.ctrlKey&&r)){var n=_classPrivateMethodGet(this,x,B).bind(this,e),i=this._isDraggable;this._isDraggable=!1;var o={passive:!0,capture:!0};window.addEventListener("pointermove",n,o);var s=this.x,l=this.y,c=this.width,u=this.height,d=this.parent.div.style.cursor,p=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;var h=()=>{this._isDraggable=i,window.removeEventListener("pointerup",h),window.removeEventListener("blur",h),window.removeEventListener("pointermove",n,o),this.parent.div.style.cursor=d,this.div.style.cursor=p;var e=this.x,t=this.y,r=this.width,a=this.height;e===s&&t===l&&r===c&&a===u||this.addCommands({cmd:()=>{this.width=r,this.height=a,this.x=e,this.y=t;var[n,i]=this.parentDimensions;this.setDims(n*r,i*a),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=u,this.x=s,this.y=l;var[e,t]=this.parentDimensions;this.setDims(e*c,t*u),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",h),window.addEventListener("blur",h)}}function B(e,t){var r,i,[a,o]=this.parentDimensions,s=this.x,l=this.y,c=this.width,u=this.height,d=n.MIN_SIZE/a,p=n.MIN_SIZE/o,h=e=>Math.round(1e4*e)/1e4,f=_classPrivateMethodGet(this,w,F).call(this,this.rotation),v=(e,t)=>[f[0]*e+f[2]*t,f[1]*e+f[3]*t],g=_classPrivateMethodGet(this,w,F).call(this,360-this.rotation),m=!1,b=!1;switch(e){case"topLeft":m=!0,r=(e,t)=>[0,0],i=(e,t)=>[e,t];break;case"topMiddle":r=(e,t)=>[e/2,0],i=(e,t)=>[e/2,t];break;case"topRight":m=!0,r=(e,t)=>[e,0],i=(e,t)=>[0,t];break;case"middleRight":b=!0,r=(e,t)=>[e,t/2],i=(e,t)=>[0,t/2];break;case"bottomRight":m=!0,r=(e,t)=>[e,t],i=(e,t)=>[0,0];break;case"bottomMiddle":r=(e,t)=>[e/2,t],i=(e,t)=>[e/2,0];break;case"bottomLeft":m=!0,r=(e,t)=>[0,t],i=(e,t)=>[e,0];break;case"middleLeft":b=!0,r=(e,t)=>[0,t/2],i=(e,t)=>[e,t/2]}var y,_,A=r(c,u),C=i(c,u),S=v(...C),k=h(s+S[0]),x=h(l+S[1]),P=1,E=1,[O,T]=this.screenToPageTranslation(t.movementX,t.movementY);if([O,T]=(y=O/a,_=T/o,[g[0]*y+g[2]*_,g[1]*y+g[3]*_]),m){var R=Math.hypot(c,u);P=E=Math.max(Math.min(Math.hypot(C[0]-A[0]-O,C[1]-A[1]-T)/R,1/c,1/u),d/c,p/u)}else b?P=Math.max(d,Math.min(1,Math.abs(C[0]-A[0]-O)))/c:E=Math.max(p,Math.min(1,Math.abs(C[1]-A[1]-T)))/u;var M=h(c*P),I=h(u*E),D=k-(S=v(...i(M,I)))[0],B=x-S[1];this.width=M,this.height=I,this.x=D,this.y=B,this.setDims(a*M,o*I),this.fixAndSetPosition()}function j(){return N.apply(this,arguments)}function N(){return(N=_asyncToGenerator((function*(){var e=_classPrivateFieldGet(this,c);if(e){var t;if(!_classPrivateFieldGet(this,s)&&!_classPrivateFieldGet(this,l))return e.classList.remove("done"),void(null===(t=_classPrivateFieldGet(this,u))||void 0===t||t.remove());n._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}));var r=_classPrivateFieldGet(this,u);if(!r){_classPrivateFieldSet(this,u,r=document.createElement("span")),r.className="tooltip",r.setAttribute("role","tooltip");var i=r.id="alt-text-tooltip-".concat(this.id);e.setAttribute("aria-describedby",i),e.addEventListener("mouseenter",(()=>{_classPrivateFieldSet(this,d,setTimeout((()=>{_classPrivateFieldSet(this,d,null),_classPrivateFieldGet(this,u).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),100))})),e.addEventListener("mouseleave",(()=>{var e;clearTimeout(_classPrivateFieldGet(this,d)),_classPrivateFieldSet(this,d,null),null===(e=_classPrivateFieldGet(this,u))||void 0===e||e.classList.remove("show")}))}e.classList.add("done"),r.innerText=_classPrivateFieldGet(this,l)?yield n._l10nPromise.get("editor_alt_text_decorative_tooltip"):_classPrivateFieldGet(this,s),r.parentNode||e.append(r)}}))).apply(this,arguments)}function L(e){if(this._isDraggable){var t,r,n=this._uiManager.isSelected(this);this._uiManager.setUpDragSession(),n&&(t={passive:!0,capture:!0},r=e=>{var[t,r]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,r)},window.addEventListener("pointermove",r,t));var i=()=>{if(window.removeEventListener("pointerup",i),window.removeEventListener("blur",i),n&&window.removeEventListener("pointermove",r,t),_classPrivateFieldSet(this,g,!1),!this._uiManager.endDragSession()){var{isMac:o}=a.FeatureTest.platform;e.ctrlKey&&!o||e.shiftKey||e.metaKey&&o?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",i),window.addEventListener("blur",i)}}n=O,_defineProperty(O,"_borderLineWidth",-1),_defineProperty(O,"_colorManager",new i.ColorManager),_defineProperty(O,"_zIndex",1),_defineProperty(O,"SMALL_EDITOR_SIZE",0),t.AnnotationEditor=O;class Z extends O{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,r){for(var n of r)t.addEventListener(n,e[n].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var i=r(1),a=r(6),o=new WeakMap;class s{constructor(){_classPrivateFieldInitSpec(this,o,{writable:!0,value:0})}getId(){var e,t;return"".concat(i.AnnotationEditorPrefix).concat((_classPrivateFieldSet(this,o,(e=_classPrivateFieldGet(this,o),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;class p{constructor(){_classPrivateMethodInitSpec(this,d),_classPrivateFieldInitSpec(this,l,{writable:!0,value:(0,i.getUuid)()}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null})}static get _isSVGFittingCanvas(){var e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,';var r=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",r)}getFromFile(e){var t=this;return _asyncToGenerator((function*(){var{lastModified:r,name:n,size:i,type:a}=e;return _classPrivateMethodGet(t,d,h).call(t,"".concat(r,"_").concat(n,"_").concat(i,"_").concat(a),e)}))()}getFromUrl(e){var t=this;return _asyncToGenerator((function*(){return _classPrivateMethodGet(t,d,h).call(t,e,e)}))()}getFromId(e){var t=this;return _asyncToGenerator((function*(){_classPrivateFieldGet(t,u)||_classPrivateFieldSet(t,u,new Map);var r=_classPrivateFieldGet(t,u).get(e);return r?r.bitmap?(r.refCounter+=1,r):r.file?t.getFromFile(r.file):t.getFromUrl(r.url):null}))()}getSvgUrl(e){var t=_classPrivateFieldGet(this,u).get(e);return null!==t&&void 0!==t&&t.isSvg?t.svgUrl:null}deleteId(e){_classPrivateFieldGet(this,u)||_classPrivateFieldSet(this,u,new Map);var t=_classPrivateFieldGet(this,u).get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith("image_".concat(_classPrivateFieldGet(this,l),"_"))}}function h(e,t){return f.apply(this,arguments)}function f(){return(f=_asyncToGenerator((function*(e,t){var r;_classPrivateFieldGet(this,u)||_classPrivateFieldSet(this,u,new Map);var i=_classPrivateFieldGet(this,u).get(e);if(null===i)return null;if(null!==(r=i)&&void 0!==r&&r.bitmap)return i.refCounter+=1,i;try{var a,o,s;if(i||(i={bitmap:null,id:"image_".concat(_classPrivateFieldGet(this,l),"_").concat((_classPrivateFieldSet(this,c,(a=_classPrivateFieldGet(this,c),o=a++,a)),o)),refCounter:0,isSvg:!1}),"string"===typeof t){i.url=t;var d=yield fetch(t);if(!d.ok)throw new Error(d.statusText);s=yield d.blob()}else s=i.file=t;if("image/svg+xml"===s.type){var p=n._isSVGFittingCanvas,h=new FileReader,f=new Image,v=new Promise(((e,t)=>{f.onload=()=>{i.bitmap=f,i.isSvg=!0,e()},h.onload=_asyncToGenerator((function*(){var e=i.svgUrl=h.result;f.src=(yield p)?"".concat(e,"#svgView(preserveAspectRatio(none))"):e})),f.onerror=h.onerror=t}));h.readAsDataURL(s),yield v}else i.bitmap=yield createImageBitmap(s);i.refCounter=1}catch(g){console.error(g),i=null}return _classPrivateFieldGet(this,u).set(e,i),i&&_classPrivateFieldGet(this,u).set(i.id,i),i}))).apply(this,arguments)}n=p;var v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap;class y{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,v,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:-1}),_classPrivateFieldSet(this,m,e)}add(e){var{cmd:t,undo:r,mustExec:n,type:i=NaN,overwriteIfSameType:a=!1,keepUndo:o=!1}=e;if(n&&t(),!_classPrivateFieldGet(this,g)){var s={cmd:t,undo:r,type:i};if(-1===_classPrivateFieldGet(this,b))return _classPrivateFieldGet(this,v).length>0&&(_classPrivateFieldGet(this,v).length=0),_classPrivateFieldSet(this,b,0),void _classPrivateFieldGet(this,v).push(s);if(a&&_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].type===i)return o&&(s.undo=_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].undo),void(_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)]=s);var l=_classPrivateFieldGet(this,b)+1;l===_classPrivateFieldGet(this,m)?_classPrivateFieldGet(this,v).splice(0,1):(_classPrivateFieldSet(this,b,l),l<_classPrivateFieldGet(this,v).length&&_classPrivateFieldGet(this,v).splice(l)),_classPrivateFieldGet(this,v).push(s)}}undo(){-1!==_classPrivateFieldGet(this,b)&&(_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].undo(),_classPrivateFieldSet(this,g,!1),_classPrivateFieldSet(this,b,_classPrivateFieldGet(this,b)-1))}redo(){_classPrivateFieldGet(this,b)<_classPrivateFieldGet(this,v).length-1&&(_classPrivateFieldSet(this,b,_classPrivateFieldGet(this,b)+1),_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].cmd(),_classPrivateFieldSet(this,g,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(this,b)}hasSomethingToRedo(){return _classPrivateFieldGet(this,b)<_classPrivateFieldGet(this,v).length-1}destroy(){_classPrivateFieldSet(this,v,null)}}t.CommandManager=y;var _=new WeakSet;class A{constructor(e){_classPrivateMethodInitSpec(this,_),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var{isMac:t}=i.FeatureTest.platform;for(var[r,n,a={}]of e)for(var o of r){var s=o.startsWith("mac+");t&&s?(this.callbacks.set(o.slice(4),{callback:n,options:a}),this.allKeys.add(o.split("+").at(-1))):t||s||(this.callbacks.set(o,{callback:n,options:a}),this.allKeys.add(o.split("+").at(-1)))}}exec(e,t){if(this.allKeys.has(t.key)){var r=this.callbacks.get(_classPrivateMethodGet(this,_,C).call(this,t));if(r){var{callback:n,options:{bubbles:i=!1,args:a=[],checker:o=null}}=r;o&&!o(e,t)||(n.bind(e,...a)(),i||(t.stopPropagation(),t.preventDefault()))}}}}function C(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);var t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=A;class w{get _colors(){var e=new Map([["CanvasText",null],["Canvas",null]]);return(0,a.getColorValues)(e),(0,i.shadow)(this,"_colors",e)}convert(e){var t=(0,a.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(var[r,n]of this._colors)if(n.every(((e,r)=>e===t[r])))return w._colorsMapping.get(r);return t}getHexCode(e){var 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 S=new WeakMap,k=new WeakMap,x=new WeakMap,P=new WeakMap,E=new WeakMap,O=new WeakMap,T=new WeakMap,R=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,N=new WeakMap,L=new WeakMap,Z=new WeakMap,G=new WeakMap,z=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakMap,V=new WeakMap,Y=new WeakMap,K=new WeakMap,X=new WeakMap,$=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakSet,ae=new WeakSet,oe=new WeakSet,se=new WeakSet,le=new WeakSet,ce=new WeakSet,ue=new WeakSet,de=new WeakSet,pe=new WeakSet,he=new WeakSet,fe=new WeakSet,ve=new WeakSet,ge=new WeakSet;class me{static get _keyboardManager(){var e=me.prototype,t=e=>{var{activeElement:t}=document;return t&&_classPrivateFieldGet(e,re).contains(t)&&e.hasSomethingToControl()},r=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new A([[["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:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}]]))}constructor(e,t,r,n,o,l){_classPrivateMethodInitSpec(this,ge),_classPrivateMethodInitSpec(this,ve),_classPrivateMethodInitSpec(this,fe),_classPrivateMethodInitSpec(this,he),_classPrivateMethodInitSpec(this,pe),_classPrivateMethodInitSpec(this,de),_classPrivateMethodInitSpec(this,ue),_classPrivateMethodInitSpec(this,ce),_classPrivateMethodInitSpec(this,le),_classPrivateMethodInitSpec(this,se),_classPrivateMethodInitSpec(this,oe),_classPrivateMethodInitSpec(this,ae),_classPrivateMethodInitSpec(this,ie),_classPrivateFieldInitSpec(this,S,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,k,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,x,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,P,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,E,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:new y}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:new s}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:i.AnnotationEditorType.NONE}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:this.blur.bind(this)}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:this.focus.bind(this)}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:this.copy.bind(this)}),_classPrivateFieldInitSpec(this,H,{writable:!0,value:this.cut.bind(this)}),_classPrivateFieldInitSpec(this,V,{writable:!0,value:this.paste.bind(this)}),_classPrivateFieldInitSpec(this,Y,{writable:!0,value:this.keydown.bind(this)}),_classPrivateFieldInitSpec(this,K,{writable:!0,value:this.onEditingAction.bind(this)}),_classPrivateFieldInitSpec(this,X,{writable:!0,value:this.onPageChanging.bind(this)}),_classPrivateFieldInitSpec(this,$,{writable:!0,value:this.onScaleChanging.bind(this)}),_classPrivateFieldInitSpec(this,Q,{writable:!0,value:this.onRotationChanging.bind(this)}),_classPrivateFieldInitSpec(this,J,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),_classPrivateFieldInitSpec(this,ee,{writable:!0,value:[0,0]}),_classPrivateFieldInitSpec(this,te,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,re,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ne,{writable:!0,value:null}),_classPrivateFieldSet(this,re,e),_classPrivateFieldSet(this,ne,t),_classPrivateFieldSet(this,P,r),this._eventBus=n,this._eventBus._on("editingaction",_classPrivateFieldGet(this,K)),this._eventBus._on("pagechanging",_classPrivateFieldGet(this,X)),this._eventBus._on("scalechanging",_classPrivateFieldGet(this,$)),this._eventBus._on("rotationchanging",_classPrivateFieldGet(this,Q)),_classPrivateFieldSet(this,E,o.annotationStorage),_classPrivateFieldSet(this,D,o.filterFactory),_classPrivateFieldSet(this,z,l),this.viewParameters={realScale:a.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){for(var e of(_classPrivateMethodGet(this,se,Ae).call(this),_classPrivateMethodGet(this,ae,ye).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(this,K)),this._eventBus._off("pagechanging",_classPrivateFieldGet(this,X)),this._eventBus._off("scalechanging",_classPrivateFieldGet(this,$)),this._eventBus._off("rotationchanging",_classPrivateFieldGet(this,Q)),_classPrivateFieldGet(this,x).values()))e.destroy();_classPrivateFieldGet(this,x).clear(),_classPrivateFieldGet(this,k).clear(),_classPrivateFieldGet(this,I).clear(),_classPrivateFieldSet(this,S,null),_classPrivateFieldGet(this,G).clear(),_classPrivateFieldGet(this,O).destroy(),_classPrivateFieldGet(this,P).destroy()}get hcmFilter(){return(0,i.shadow)(this,"hcmFilter",_classPrivateFieldGet(this,z)?_classPrivateFieldGet(this,D).addHCMFilter(_classPrivateFieldGet(this,z).foreground,_classPrivateFieldGet(this,z).background):"none")}get direction(){return(0,i.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(this,re)).direction)}editAltText(e){var t;null===(t=_classPrivateFieldGet(this,P))||void 0===t||t.editAltText(this,e)}onPageChanging(e){var{pageNumber:t}=e;_classPrivateFieldSet(this,T,t-1)}focusMainContainer(){_classPrivateFieldGet(this,re).focus()}findParent(e,t){for(var r of _classPrivateFieldGet(this,x).values()){var{x:n,y:i,width:a,height:o}=r.div.getBoundingClientRect();if(e>=n&&e<=n+a&&t>=i&&t<=i+o)return r}return null}disableUserSelect(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(this,ne).classList.toggle("noUserSelect",e)}addShouldRescale(e){_classPrivateFieldGet(this,I).add(e)}removeShouldRescale(e){_classPrivateFieldGet(this,I).delete(e)}onScaleChanging(e){var{scale:t}=e;for(var r of(this.commitOrRemove(),this.viewParameters.realScale=t*a.PixelsPerInch.PDF_TO_CSS_UNITS,_classPrivateFieldGet(this,I)))r.onScaleChanging()}onRotationChanging(e){var{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!_classPrivateFieldGet(this,E)||_classPrivateFieldGet(this,E).has(e.id)||_classPrivateFieldGet(this,E).setValue(e.id,e)}blur(){if(this.hasSelection){var{activeElement:e}=document;for(var t of _classPrivateFieldGet(this,G))if(t.div.contains(e)){_classPrivateFieldSet(this,L,[t,e]),t._focusEventsAllowed=!1;break}}}focus(){if(_classPrivateFieldGet(this,L)){var[e,t]=_classPrivateFieldGet(this,L);_classPrivateFieldSet(this,L,null),t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}}addEditListeners(){_classPrivateMethodGet(this,oe,_e).call(this),_classPrivateMethodGet(this,le,Ce).call(this)}removeEditListeners(){_classPrivateMethodGet(this,se,Ae).call(this),_classPrivateMethodGet(this,ce,we).call(this)}copy(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(this,S))||void 0===t||t.commitOrRemove(),this.hasSelection){var r=[];for(var n of _classPrivateFieldGet(this,G)){var i=n.serialize(!0);i&&r.push(i)}0!==r.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(r))}}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();var{clipboardData:t}=e;for(var r of t.items)for(var n of _classPrivateFieldGet(this,F))if(n.isHandlingMimeForPasting(r.type))return void n.paste(r,this.currentLayer);var a=t.getData("application/pdfjs");if(a){try{a=JSON.parse(a)}catch(u){return void(0,i.warn)('paste: "'.concat(u.message,'".'))}if(Array.isArray(a)){this.unselectAll();var o=this.currentLayer;try{var s=[];for(var l of a){var c=o.deserialize(l);if(!c)return;s.push(c)}this.addCommands({cmd:()=>{for(var e of s)_classPrivateMethodGet(this,fe,Ee).call(this,e);_classPrivateMethodGet(this,ge,Te).call(this,s)},undo:()=>{for(var e of s)e.remove()},mustExec:!0})}catch(u){(0,i.warn)('paste: "'.concat(u.message,'".'))}}}}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||me._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_classPrivateMethodGet(this,ie,be).call(this),_classPrivateMethodGet(this,oe,_e).call(this),_classPrivateMethodGet(this,le,Ce).call(this),_classPrivateMethodGet(this,ue,Se).call(this,{isEditing:_classPrivateFieldGet(this,Z)!==i.AnnotationEditorType.NONE,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this),hasSomethingToUndo:_classPrivateFieldGet(this,O).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(this,O).hasSomethingToRedo(),hasSelectedEditor:!1})):(_classPrivateMethodGet(this,ae,ye).call(this),_classPrivateMethodGet(this,se,Ae).call(this),_classPrivateMethodGet(this,ce,we).call(this),_classPrivateMethodGet(this,ue,Se).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!_classPrivateFieldGet(this,F))for(var t of(_classPrivateFieldSet(this,F,e),_classPrivateFieldGet(this,F)))_classPrivateMethodGet(this,de,ke).call(this,t.defaultPropertiesToUpdate)}getId(){return _classPrivateFieldGet(this,B).getId()}get currentLayer(){return _classPrivateFieldGet(this,x).get(_classPrivateFieldGet(this,T))}getLayer(e){return _classPrivateFieldGet(this,x).get(e)}get currentPageIndex(){return _classPrivateFieldGet(this,T)}addLayer(e){_classPrivateFieldGet(this,x).set(e.pageIndex,e),_classPrivateFieldGet(this,j)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(this,x).delete(e.pageIndex)}updateMode(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(this,Z)!==e){if(_classPrivateFieldSet(this,Z,e),e===i.AnnotationEditorType.NONE)return this.setEditingState(!1),void _classPrivateMethodGet(this,he,Pe).call(this);for(var r of(this.setEditingState(!0),_classPrivateMethodGet(this,pe,xe).call(this),this.unselectAll(),_classPrivateFieldGet(this,x).values()))r.updateMode(e);if(t)for(var n of _classPrivateFieldGet(this,k).values())if(n.annotationElementId===t){this.setSelected(n),n.enterInEditMode();break}}}updateToolbar(e){e!==_classPrivateFieldGet(this,Z)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(_classPrivateFieldGet(this,F))if(e!==i.AnnotationEditorParamsType.CREATE){for(var r of _classPrivateFieldGet(this,G))r.updateParams(e,t);for(var n of _classPrivateFieldGet(this,F))n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(this,N)!==e)for(var t of(_classPrivateFieldSet(this,N,e),_classPrivateFieldGet(this,x).values()))e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}getEditors(e){var t=[];for(var r of _classPrivateFieldGet(this,k).values())r.pageIndex===e&&t.push(r);return t}getEditor(e){return _classPrivateFieldGet(this,k).get(e)}addEditor(e){_classPrivateFieldGet(this,k).set(e.id,e)}removeEditor(e){var t;_classPrivateFieldGet(this,k).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(this,R).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(this,E))||void 0===t||t.remove(e.id)}addDeletedAnnotationElement(e){_classPrivateFieldGet(this,R).add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return _classPrivateFieldGet(this,R).has(e)}removeDeletedAnnotationElement(e){_classPrivateFieldGet(this,R).delete(e.annotationElementId),e.deleted=!1}setActiveEditor(e){_classPrivateFieldGet(this,S)!==e&&(_classPrivateFieldSet(this,S,e),e&&_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(this,G).has(e))return _classPrivateFieldGet(this,G).delete(e),e.unselect(),void _classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(this,G).add(e),e.select(),_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}setSelected(e){for(var t of _classPrivateFieldGet(this,G))t!==e&&t.unselect();_classPrivateFieldGet(this,G).clear(),_classPrivateFieldGet(this,G).add(e),e.select(),_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(this,G).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(this,G).delete(e),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(this,G).size}undo(){_classPrivateFieldGet(this,O).undo(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,O).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}redo(){_classPrivateFieldGet(this,O).redo(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(this,O).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}addCommands(e){_classPrivateFieldGet(this,O).add(e),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}delete(){if(this.commitOrRemove(),this.hasSelection){var e=[..._classPrivateFieldGet(this,G)];this.addCommands({cmd:()=>{for(var t of e)t.remove()},undo:()=>{for(var t of e)_classPrivateMethodGet(this,fe,Ee).call(this,t)},mustExec:!0})}}commitOrRemove(){var e;null===(e=_classPrivateFieldGet(this,S))||void 0===e||e.commitOrRemove()}hasSomethingToControl(){return _classPrivateFieldGet(this,S)||this.hasSelection}selectAll(){for(var e of _classPrivateFieldGet(this,G))e.commit();_classPrivateMethodGet(this,ge,Te).call(this,_classPrivateFieldGet(this,k).values())}unselectAll(){if(_classPrivateFieldGet(this,S))_classPrivateFieldGet(this,S).commitOrRemove();else if(this.hasSelection){for(var e of _classPrivateFieldGet(this,G))e.unselect();_classPrivateFieldGet(this,G).clear(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){_classPrivateFieldGet(this,ee)[0]+=e,_classPrivateFieldGet(this,ee)[1]+=t;var[r,n]=_classPrivateFieldGet(this,ee),i=[..._classPrivateFieldGet(this,G)];for(var a of(_classPrivateFieldGet(this,te)&&clearTimeout(_classPrivateFieldGet(this,te)),_classPrivateFieldSet(this,te,setTimeout((()=>{_classPrivateFieldSet(this,te,null),_classPrivateFieldGet(this,ee)[0]=_classPrivateFieldGet(this,ee)[1]=0,this.addCommands({cmd:()=>{for(var e of i)_classPrivateFieldGet(this,k).has(e.id)&&e.translateInPage(r,n)},undo:()=>{for(var e of i)_classPrivateFieldGet(this,k).has(e.id)&&e.translateInPage(-r,-n)},mustExec:!1})}),1e3)),i))a.translateInPage(e,t)}}setUpDragSession(){if(this.hasSelection)for(var e of(this.disableUserSelect(!0),_classPrivateFieldSet(this,M,new Map),_classPrivateFieldGet(this,G)))_classPrivateFieldGet(this,M).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}endDragSession(){if(!_classPrivateFieldGet(this,M))return!1;this.disableUserSelect(!1);var e=_classPrivateFieldGet(this,M);_classPrivateFieldSet(this,M,null);var t=!1;for(var[{x:r,y:n,pageIndex:i},a]of e)a.newX=r,a.newY=n,a.newPageIndex=i,t||(t=r!==a.savedX||n!==a.savedY||i!==a.savedPageIndex);if(!t)return!1;var o=(e,t,r,n)=>{if(_classPrivateFieldGet(this,k).has(e.id)){var i=_classPrivateFieldGet(this,x).get(n);i?e._setParentAndPosition(i,t,r):(e.pageIndex=n,e.x=t,e.y=r)}};return this.addCommands({cmd:()=>{for(var[t,{newX:r,newY:n,newPageIndex:i}]of e)o(t,r,n,i)},undo:()=>{for(var[t,{savedX:r,savedY:n,savedPageIndex:i}]of e)o(t,r,n,i)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(_classPrivateFieldGet(this,M))for(var r of _classPrivateFieldGet(this,M).keys())r.drag(e,t)}rebuild(e){if(null===e.parent){var 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(this,S)===e}getActive(){return _classPrivateFieldGet(this,S)}getMode(){return _classPrivateFieldGet(this,Z)}get imageManager(){return(0,i.shadow)(this,"imageManager",new p)}}function be(){window.addEventListener("focus",_classPrivateFieldGet(this,W)),window.addEventListener("blur",_classPrivateFieldGet(this,U))}function ye(){window.removeEventListener("focus",_classPrivateFieldGet(this,W)),window.removeEventListener("blur",_classPrivateFieldGet(this,U))}function _e(){window.addEventListener("keydown",_classPrivateFieldGet(this,Y),{capture:!0})}function Ae(){window.removeEventListener("keydown",_classPrivateFieldGet(this,Y),{capture:!0})}function Ce(){document.addEventListener("copy",_classPrivateFieldGet(this,q)),document.addEventListener("cut",_classPrivateFieldGet(this,H)),document.addEventListener("paste",_classPrivateFieldGet(this,V))}function we(){document.removeEventListener("copy",_classPrivateFieldGet(this,q)),document.removeEventListener("cut",_classPrivateFieldGet(this,H)),document.removeEventListener("paste",_classPrivateFieldGet(this,V))}function Se(e){Object.entries(e).some((e=>{var[t,r]=e;return _classPrivateFieldGet(this,J)[t]!==r}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(this,J),e)})}function ke(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function xe(){if(!_classPrivateFieldGet(this,j))for(var e of(_classPrivateFieldSet(this,j,!0),_classPrivateFieldGet(this,x).values()))e.enable()}function Pe(){if(this.unselectAll(),_classPrivateFieldGet(this,j))for(var e of(_classPrivateFieldSet(this,j,!1),_classPrivateFieldGet(this,x).values()))e.disable()}function Ee(e){var t=_classPrivateFieldGet(this,x).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function Oe(){if(0===_classPrivateFieldGet(this,k).size)return!0;if(1===_classPrivateFieldGet(this,k).size)for(var e of _classPrivateFieldGet(this,k).values())return e.isEmpty();return!1}function Te(e){for(var t of(_classPrivateFieldGet(this,G).clear(),e))t.isEmpty()||(_classPrivateFieldGet(this,G).add(t),t.select());_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}_defineProperty(me,"TRANSLATE_SMALL",1),_defineProperty(me,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=me},(e,t,r)=>{var n;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){var t=document.createElement("span");for(var r of(t.style.visibility="hidden",document.body.append(t),e.keys())){t.style.color=r;var n=window.getComputedStyle(t).color;e.set(r,q(n))}t.remove()},t.getCurrentTransform=function(e){var{a:t,b:r,c:n,d:i,e:a,f:o}=e.getTransform();return[t,r,n,i,a,o]},t.getCurrentTransformInverse=function(e){var{a:t,b:r,c:n,d:i,e:a,f:o}=e.getTransform().invertSelf();return[t,r,n,i,a,o]},t.getFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(U(e))return(0,a.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),i=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(i&&(i=i[0]).includes("%"))try{i=r.exec(decodeURIComponent(i))[0]}catch(o){}return i||t},t.getRGB=q,t.getXfaPageViewport=function(e,t){var{scale:r=1,rotation:n=0}=t,{width:i,height:a}=e.attributes.style,o=[0,0,parseInt(i),parseInt(a)];return new G({viewBox:o,scale:r,rotation:n})},t.isDataScheme=U,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=W,t.loadScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((r,n)=>{var i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),r(e)},i.onerror=function(){n(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){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof G){var{pageWidth:i,pageHeight:o}=t.rawDims,{style:s}=e,l=a.FeatureTest.isCSSRoundSupported,c="var(--scale-factor) * ".concat(i,"px"),u="var(--scale-factor) * ".concat(o,"px"),d=l?"round(".concat(c,", 1px)"):"calc(".concat(c,")"),p=l?"round(".concat(u,", 1px)"):"calc(".concat(u,")");r&&t.rotation%180!==0?(s.width=p,s.height=d):(s.width=d,s.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)};var i=r(7),a=r(1),o="http://www.w3.org/2000/svg";class s{}n=s,_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",n.CSS/n.PDF),t.PixelsPerInch=s;var l,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,_=new WeakMap,A=new WeakMap,C=new WeakSet,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet;class P extends i.BaseFilterFactory{constructor(){var{docId:e,ownerDocument:t=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateFieldInitSpec(this,A,{get:O,set:void 0}),_classPrivateFieldInitSpec(this,_,{get:E,set:void 0}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:0}),_classPrivateFieldSet(this,d,e),_classPrivateFieldSet(this,p,t)}addFilter(e){var t,r;if(!e)return"none";var n,i,a,o,s=_classPrivateFieldGet(this,_).get(e);if(s)return s;if(1===e.length){for(var l=e[0],c=new Array(256),u=0;u<256;u++)c[u]=l[u]/255;o=n=i=a=c.join(",")}else{for(var[p,h,f]=e,v=new Array(256),g=new Array(256),m=new Array(256),b=0;b<256;b++)v[b]=p[b]/255,g[b]=h[b]/255,m[b]=f[b]/255;n=v.join(","),i=g.join(","),a=m.join(","),o="".concat(n).concat(i).concat(a)}if(s=_classPrivateFieldGet(this,_).get(o))return _classPrivateFieldGet(this,_).set(e,s),s;var A="g_".concat(_classPrivateFieldGet(this,d),"_transfer_map_").concat((_classPrivateFieldSet(this,y,(t=_classPrivateFieldGet(this,y),r=t++,t)),r)),C="url(#".concat(A,")");_classPrivateFieldGet(this,_).set(e,C),_classPrivateFieldGet(this,_).set(o,C);var S=_classPrivateMethodGet(this,w,R).call(this,A);return _classPrivateMethodGet(this,k,F).call(this,n,i,a,S),C}addHCMFilter(e,t){var r,n="".concat(e,"-").concat(t);if(_classPrivateFieldGet(this,f)===n)return _classPrivateFieldGet(this,v);if(_classPrivateFieldSet(this,f,n),_classPrivateFieldSet(this,v,"none"),null===(r=_classPrivateFieldGet(this,h))||void 0===r||r.remove(),!e||!t)return _classPrivateFieldGet(this,v);var i=_classPrivateMethodGet(this,x,I).call(this,e);e=a.Util.makeHexColor(...i);var o=_classPrivateMethodGet(this,x,I).call(this,t);if(t=a.Util.makeHexColor(...o),_classPrivateFieldGet(this,A).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(this,v);for(var s=new Array(256),l=0;l<=255;l++){var c=l/255;s[l]=c<=.03928?c/12.92:((c+.055)/1.055)**2.4}var u=s.join(","),p="g_".concat(_classPrivateFieldGet(this,d),"_hcm_filter"),m=_classPrivateFieldSet(this,g,_classPrivateMethodGet(this,w,R).call(this,p));_classPrivateMethodGet(this,k,F).call(this,u,u,u,m),_classPrivateMethodGet(this,C,T).call(this,m);var b=(e,t)=>{for(var r=i[e]/255,n=o[e]/255,a=new Array(t+1),s=0;s<=t;s++)a[s]=r+s/t*(n-r);return a.join(",")};return _classPrivateMethodGet(this,k,F).call(this,b(0,5),b(1,5),b(2,5),m),_classPrivateFieldSet(this,v,"url(#".concat(p,")")),_classPrivateFieldGet(this,v)}addHighlightHCMFilter(e,t,r,n){var i,a="".concat(e,"-").concat(t,"-").concat(r,"-").concat(n);if(_classPrivateFieldGet(this,m)===a)return _classPrivateFieldGet(this,b);if(_classPrivateFieldSet(this,m,a),_classPrivateFieldSet(this,b,"none"),null===(i=_classPrivateFieldGet(this,g))||void 0===i||i.remove(),!e||!t)return _classPrivateFieldGet(this,b);var[o,s]=[e,t].map(_classPrivateMethodGet(this,x,I).bind(this)),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,p]=[r,n].map(_classPrivateMethodGet(this,x,I).bind(this));c{for(var n=new Array(256),i=(c-l)/r,a=e/255,o=(t-e)/(255*r),s=0,u=0;u<=r;u++){for(var d=Math.round(l+u*i),p=a+u*o,h=s;h<=d;h++)n[h]=p;s=d+1}for(var f=s;f<256;f++)n[f]=n[s-1];return n.join(",")},f="g_".concat(_classPrivateFieldGet(this,d),"_hcm_highlight_filter"),v=_classPrivateFieldSet(this,g,_classPrivateMethodGet(this,w,R).call(this,f));return _classPrivateMethodGet(this,C,T).call(this,v),_classPrivateMethodGet(this,k,F).call(this,h(u[0],p[0],5),h(u[1],p[1],5),h(u[2],p[2],5),v),_classPrivateFieldSet(this,b,"url(#".concat(f,")")),_classPrivateFieldGet(this,b)}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(this,v)||_classPrivateFieldGet(this,b))||(_classPrivateFieldGet(this,u)&&(_classPrivateFieldGet(this,u).parentNode.parentNode.remove(),_classPrivateFieldSet(this,u,null)),_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).clear(),_classPrivateFieldSet(this,c,null)),_classPrivateFieldSet(this,y,0))}}function E(){return _classPrivateFieldGet(this,c)||_classPrivateFieldSet(this,c,new Map)}function O(){if(!_classPrivateFieldGet(this,u)){var e=_classPrivateFieldGet(this,p).createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;var r=_classPrivateFieldGet(this,p).createElementNS(o,"svg");r.setAttribute("width",0),r.setAttribute("height",0),_classPrivateFieldSet(this,u,_classPrivateFieldGet(this,p).createElementNS(o,"defs")),e.append(r),r.append(_classPrivateFieldGet(this,u)),_classPrivateFieldGet(this,p).body.append(e)}return _classPrivateFieldGet(this,u)}function T(e){var t=_classPrivateFieldGet(this,p).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 R(e){var t=_classPrivateFieldGet(this,p).createElementNS(o,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateFieldGet(this,A).append(t),t}function M(e,t,r){var n=_classPrivateFieldGet(this,p).createElementNS(o,t);n.setAttribute("type","discrete"),n.setAttribute("tableValues",r),e.append(n)}function F(e,t,r,n){var i=_classPrivateFieldGet(this,p).createElementNS(o,"feComponentTransfer");n.append(i),_classPrivateMethodGet(this,S,M).call(this,i,"feFuncR",e),_classPrivateMethodGet(this,S,M).call(this,i,"feFuncG",t),_classPrivateMethodGet(this,S,M).call(this,i,"feFuncB",r)}function I(e){return _classPrivateFieldGet(this,A).style.color=e,q(getComputedStyle(_classPrivateFieldGet(this,A)).getPropertyValue("color"))}t.DOMFilterFactory=P;class D extends i.BaseCanvasFactory{constructor(){var{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){var r=this._document.createElement("canvas");return r.width=e,r.height=t,r}}function B(e){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(W(e,document.baseURI)){var r=yield fetch(e);if(!r.ok)throw new Error(r.statusText);return t?new Uint8Array(yield r.arrayBuffer()):(0,a.stringToBytes)(yield r.text())}return new Promise(((r,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),t&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){var e;if((200===i.status||0===i.status)&&(t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,a.stringToBytes)(i.responseText)),e))return void r(e);n(new Error(i.statusText))}},i.send(null)}))})),j.apply(this,arguments)}t.DOMCanvasFactory=D;class N extends i.BaseCMapReaderFactory{_fetchData(e,t){return B(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=N;class L extends i.BaseStandardFontDataFactory{_fetchData(e){return B(e,!0)}}t.DOMStandardFontDataFactory=L;class Z extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS(o,e)}}t.DOMSVGFactory=Z;class G{constructor(e){var{viewBox:t,scale:r,rotation:n,offsetX:i=0,offsetY:a=0,dontFlip:o=!1}=e;this.viewBox=t,this.scale=r,this.rotation=n,this.offsetX=i,this.offsetY=a;var s,l,c,u,d,p,h,f,v=(t[2]+t[0])/2,g=(t[3]+t[1])/2;switch((n%=360)<0&&(n+=360),n){case 180:s=-1,l=0,c=0,u=1;break;case 90:s=0,l=1,c=1,u=0;break;case 270:s=0,l=-1,c=-1,u=0;break;case 0:s=1,l=0,c=0,u=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(c=-c,u=-u),0===s?(d=Math.abs(g-t[1])*r+i,p=Math.abs(v-t[0])*r+a,h=(t[3]-t[1])*r,f=(t[2]-t[0])*r):(d=Math.abs(v-t[0])*r+i,p=Math.abs(g-t[1])*r+a,h=(t[2]-t[0])*r,f=(t[3]-t[1])*r),this.transform=[s*r,l*r,c*r,u*r,d-s*r*v-c*r*g,p-l*r*v-u*r*g],this.width=h,this.height=f}get rawDims(){var{viewBox:e}=this;return(0,a.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){var{scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new G({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:i})}convertToViewportPoint(e,t){return a.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){var t=a.Util.applyTransform([e[0],e[1]],this.transform),r=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=G;class z extends a.BaseException{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function U(e){for(var t=e.length,r=0;r>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,a.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=z,t.StatTimer=class{constructor(){_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}time(e){e in this.started&&(0,a.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,a.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(){var e=[],t=0;for(var{name:r}of this.times)t=Math.max(r.length,t);for(var{name:n,start:i,end:a}of this.times)e.push("".concat(n.padEnd(t)," ").concat(a-i,"ms\n"));return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;l||(l=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=l.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;var o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(a+=u,o+=d):"+"===c&&(a-=u,o-=d),new Date(Date.UTC(r,n,i,a,o,s))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var n=r(1);class i{constructor(){this.constructor===i&&(0,n.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,r,n){return"none"}destroy(){}}t.BaseFilterFactory=i;class a{constructor(){this.constructor===a&&(0,n.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=this._createCanvas(e,t);return{canvas:r,context:r.getContext("2d")}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}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,n.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=a;class o{constructor(e){var{baseUrl:t=null,isCompressed:r=!0}=e;this.constructor===o&&(0,n.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=r}fetch(e){var t=this;return _asyncToGenerator((function*(){var{name:r}=e;if(!t.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!r)throw new Error("CMap name must be specified.");var i=t.baseUrl+r+(t.isCompressed?".bcmap":""),a=t.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE;return t._fetchData(i,a).catch((e=>{throw new Error("Unable to load ".concat(t.isCompressed?"binary ":"","CMap at: ").concat(i))}))}))()}_fetchData(e,t){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=o;class s{constructor(e){var{baseUrl:t=null}=e;this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}fetch(e){var t=this;return _asyncToGenerator((function*(){var{filename:r}=e;if(!t.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!r)throw new Error("Font filename must be specified.");var n="".concat(t.baseUrl).concat(r);return t._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}))()}_fetchData(e){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class l{constructor(){this.constructor===l&&(0,n.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),r||(n.setAttribute("width","".concat(e,"px")),n.setAttribute("height","".concat(t,"px"))),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),n}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,n.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(1),i=3285377520,a=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){var t,r;if("string"===typeof e){t=new Uint8Array(2*e.length),r=0;for(var i=0,s=e.length;i>>8,t[r++]=255&l)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e.slice()).byteLength}for(var c=r>>2,u=r-4*c,d=new Uint32Array(t.buffer,0,c),p=0,h=0,f=this.h1,v=this.h2,g=3432918353,m=461845907,b=11601,y=13715,_=0;_>>17)*m&a|p*y&o)<<13|f>>>19)+3864292196:v=5*(v=(v^=h=(h=(h=(h=d[_])*g&a|h*b&o)<<15|h>>>17)*m&a|h*y&o)<<13|v>>>19)+3864292196;switch(p=0,u){case 3:p^=t[4*c+2]<<16;case 2:p^=t[4*c+1]<<8;case 1:p=(p=(p=(p^=t[4*c])*g&a|p*b&o)<<15|p>>>17)*m&a|p*y&o,1&c?f^=p:v^=p}this.h1=f,this.h2=v}hexdigest(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&a|36045*e&o,e=444984403*(e^=(t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16)>>>1)&a|60499*e&o,((e^=(t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=r(1),i=new WeakMap;t.FontLoader=class{constructor(e){var{ownerDocument:t=globalThis.document,styleElement:r=null}=e;_classPrivateFieldInitSpec(this,i,{writable:!0,value: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));var t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(var e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),_classPrivateFieldGet(this,i).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}loadSystemFont(e){var t=this;return _asyncToGenerator((function*(){if(e&&!_classPrivateFieldGet(t,i).has(e.loadedName))if((0,n.assert)(!t.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),t.isFontLoadingAPISupported){var{loadedName:r,src:a,style:o}=e,s=new FontFace(r,a,o);t.addNativeFontFace(s);try{yield s.load(),_classPrivateFieldGet(t,i).add(r)}catch(l){(0,n.warn)("Cannot load system font: ".concat(e.baseFontName,", installing it could help to improve PDF rendering.")),t.removeNativeFontFace(s)}}else(0,n.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}))()}bind(e){var t=this;return _asyncToGenerator((function*(){if(!(e.attached||e.missingFile&&!e.systemFontInfo))if(e.attached=!0,e.systemFontInfo)yield t.loadSystemFont(e.systemFontInfo);else if(t.isFontLoadingAPISupported){var r=e.createNativeFontFace();if(r){t.addNativeFontFace(r);try{yield r.loaded}catch(a){throw(0,n.warn)("Failed to load font '".concat(r.family,"': '").concat(a,"'.")),e.disableFontFace=!0,a}}}else{var i=e.createFontFaceRule();if(i){if(t.insertRule(i),t.isSyncFontLoadingSupported)return;yield new Promise((r=>{var n=t._queueLoadingCallback(r);t._prepareFontLoadEvent(e,n)}))}}}))()}get isFontLoadingAPISupported(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,n.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){var e=!1;return(n.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){var{loadingRequests:t}=this,r={done:!1,complete:function(){for((0,n.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.length>0&&t[0].done;){var e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(r),r}get _loadTestFont(){var e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,n.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}var a,o,s=this._document.createElement("canvas");s.width=1,s.height=1;var l=s.getContext("2d"),c=0,u="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,p=1482184792,h=r(d=i(d,976,u.length,u),16);for(a=0,o=u.length-3;a30)return(0,n.warn)("Load test font never loaded."),void r();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(u,(()=>{g.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){var{isEvalSupported:r=!0,disableFontFace:n=!1,ignoreErrors:i=!1,inspectFont:a=null}=t;for(var o in this.compiledGlyphs=Object.create(null),e)this[o]=e[o];this.isEvalSupported=!1!==r,this.disableFontFace=!0===n,this.ignoreErrors=!0===i,this._inspectFont=a}createNativeFontFace(){var e,t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}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;var t,r=(0,n.bytesToString)(this.data),i="url(data:".concat(this.mimetype,";base64,").concat(btoa(r),");");if(this.cssFontInfo){var a="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(a+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),t='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(a,"src:").concat(i,"}")}else t='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(i,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,i),t}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r;try{r=e.get(this.loadedName+"_path_"+t)}catch(s){if(!this.ignoreErrors)throw s;return(0,n.warn)('getPathGenerator - ignoring character: "'.concat(s,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.FeatureTest.isEvalSupported){var i=[];for(var a of r){var o=void 0!==a.args?a.args.join(","):"";i.push("c.",a.cmd,"(",o,");\n")}return this.compiledGlyphs[t]=new Function("c","size",i.join(""))}return this.compiledGlyphs[t]=function(e,t){for(var n of r)"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var n=r(7),i=(r(1),function(e){return new Promise(((t,r)=>{__webpack_require__(70172).readFile(e,((e,n)=>{!e&&n?t(new Uint8Array(n)):r(new Error(e))}))}))});class a extends n.BaseFilterFactory{}t.NodeFilterFactory=a;class o extends n.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(93414).createCanvas(e,t)}}t.NodeCanvasFactory=o;class s extends n.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class l extends n.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var n=r(1),i=r(6),a=r(12),o=r(13),s=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r){var n;return void 0!==this.cache[e]?(n=this.cache[e],this.canvasFactory.reset(n,t,r)):(n=this.canvasFactory.create(t,r),this.cache[e]=n),n}delete(e){delete this.cache[e]}clear(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,r,n,a,o,s,l,c,u){var[d,p,h,f,v,g]=(0,i.getCurrentTransform)(e);if(0===p&&0===h){var m=s*d+v,b=Math.round(m),y=l*f+g,_=Math.round(y),A=(s+c)*d+v,C=Math.abs(Math.round(A)-b)||1,w=(l+u)*f+g,S=Math.abs(Math.round(w)-_)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(f),b,_),e.drawImage(t,r,n,a,o,0,0,C,S),e.setTransform(d,p,h,f,v,g),[C,S]}if(0===d&&0===f){var k=l*h+v,x=Math.round(k),P=s*p+g,E=Math.round(P),O=(l+u)*h+v,T=Math.abs(Math.round(O)-x)||1,R=(s+c)*p+g,M=Math.abs(Math.round(R)-E)||1;return e.setTransform(0,Math.sign(p),Math.sign(h),0,x,E),e.drawImage(t,r,n,a,o,0,0,M,T),e.setTransform(d,p,h,f,v,g),[M,T]}return e.drawImage(t,r,n,a,o,s,l,c,u),[Math.hypot(d,p)*c,Math.hypot(h,f)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.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=n.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(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,r){[t,r]=n.Util.applyTransform([t,r],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(e,t){var r=n.Util.applyTransform(t,e),i=n.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,r[0],i[0]),this.minY=Math.min(this.minY,r[1],i[1]),this.maxX=Math.max(this.maxX,r[0],i[0]),this.maxY=Math.max(this.maxY,r[1],i[1])}updateScalingPathMinMax(e,t){n.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,r,i,a,o,s,l,c,u){var d=n.Util.bezierBoundingBox(t,r,i,a,o,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[this.minX,this.minY,this.maxX,this.maxY];if(e===a.PathType.STROKE){t||(0,n.unreachable)("Stroke bounding box must include transform.");var i=n.Util.singularValueDecompose2dScale(t),o=i[0]*this.lineWidth/2,s=i[1]*this.lineWidth/2;r[0]-=o,r[1]-=s,r[2]+=o,r[3]+=s}return r}updateClipFromPath(){var e=n.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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function p(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,i,a,o,s,c=t.height,u=t.width,d=c%l,p=(c-d)/l,h=0===d?p:p+1,f=e.createImageData(u,l),v=0,g=t.data,m=f.data;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var b=g.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),_=y.length,A=u+7>>3,C=4294967295,w=n.FeatureTest.isLittleEndian?4278190080:255;for(i=0;iA?u:8*S-7,P=-8&x,E=0,O=0;k>=1}for(;r<_;)y[r++]=0;e.putImageData(f,0,i*l)}}else if(t.kind===n.ImageKind.RGBA_32BPP){for(a=0,s=u*l*4,i=0;i=p&&(s=u*(o=d)),r=0,a=s;a--;)m[r++]=g[v++],m[r++]=g[v++],m[r++]=g[v++],m[r++]=255;e.putImageData(f,0,i*l)}}}}function h(e,t){if(t.bitmap)e.drawImage(t.bitmap,0,0);else for(var r=t.height,n=t.width,i=r%l,a=(r-i)/l,s=0===i?a:a+1,c=e.createImageData(n,l),u=0,d=t.data,p=c.data,h=0;h>8,e[a-2]=e[a-2]*o+r*s>>8,e[a-1]=e[a-1]*o+n*s>>8}}}function m(e,t,r){for(var n=e.length,i=3;i>8]>>8:t[i]*a>>16}}function y(e,t,r,n){var i=n[0],a=n[1],o=n[2]-i,s=n[3]-a;0!==o&&0!==s&&(function(e,t,r,n,i,a,o,s,l,c,u){for(var d=!!a,p=d?a[0]:0,h=d?a[1]:0,f=d?a[2]:0,v="Luminosity"===i?b:m,y=Math.min(n,Math.ceil(1048576/r)),_=0;_1&&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){var{transform:t,viewport:r,transparency:n=!1,background:a=null}=e,o=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=a||"#ffffff",this.ctx.fillRect(0,0,o,s),this.ctx.fillStyle=l,n){var c=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...(0,i.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),v(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=(0,i.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,r,i){var a=e.argsArray,o=e.fnArray,s=t||0,l=a.length;if(l===s)return s;for(var c,u=l-s>10&&"function"===typeof r,d=u?Date.now()+15:0,p=0,h=this.commonObjs,f=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,r),s;if((c=o[s])!==n.OPS.dependency)this[c].apply(this,a[s]);else for(var v of a[s]){var g=v.startsWith("g_")?h:f;if(!g.has(v))return g.get(v,r),s}if(++s===l)return s;if(u&&++p>10){if(Date.now()>d)return r(),s;p=0}}}endDrawing(){for(var e of(_classPrivateMethodGet(this,k,E).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this._cachedBitmapsMap.values())){for(var t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),_classPrivateMethodGet(this,x,O).call(this)}_scaleImage(e,t){for(var r,n,i=e.width,a=e.height,o=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=i,c=a,u="prescale1";o>2&&l>1||s>2&&c>1;){var d=l,p=c;o>2&&l>1&&(o/=l/(d=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2))),s>2&&c>1&&(s/=c/(p=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(n=(r=this.cachedCanvases.getCanvas(u,d,p)).context).clearRect(0,0,d,p),n.drawImage(e,0,0,l,c,0,0,d,p),e=r.canvas,l=d,c=p,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){var t,r,o,s,l=this.ctx,{width:c,height:d}=e,p=this.current.fillColor,f=this.current.patternFill,v=(0,i.getCurrentTransform)(l);if((e.bitmap||e.data)&&e.count>1){var g=e.bitmap||e.data.buffer;r=JSON.stringify(f?v:[v.slice(0,4),p]),(t=this._cachedBitmapsMap.get(g))||(t=new Map,this._cachedBitmapsMap.set(g,t));var m=t.get(r);if(m&&!f)return{canvas:m,offsetX:Math.round(Math.min(v[0],v[2])+v[4]),offsetY:Math.round(Math.min(v[1],v[3])+v[5])};o=m}o||h((s=this.cachedCanvases.getCanvas("maskCanvas",c,d)).context,e);var b=n.Util.transform(v,[1/c,0,0,-1/d,0,0]);b=n.Util.transform(b,[1,0,0,1,0,-d]);var y=n.Util.applyTransform([0,0],b),A=n.Util.applyTransform([c,d],b),C=n.Util.normalizeRect([y[0],y[1],A[0],A[1]]),w=Math.round(C[2]-C[0])||1,S=Math.round(C[3]-C[1])||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,S),x=k.context,P=Math.min(y[0],A[0]),E=Math.min(y[1],A[1]);x.translate(-P,-E),x.transform(...b),o||(o=(o=this._scaleImage(s.canvas,(0,i.getCurrentTransformInverse)(x))).img,t&&f&&t.set(r,o)),x.imageSmoothingEnabled=_((0,i.getCurrentTransform)(x),e.interpolate),u(x,o,0,0,o.width,o.height,0,0,c,d),x.globalCompositeOperation="source-in";var O=n.Util.transform((0,i.getCurrentTransformInverse)(x),[1,0,0,1,-P,-E]);return x.fillStyle=f?p.getPattern(l,this,O,a.PathType.FILL):p,x.fillRect(0,0,c,d),t&&!f&&(this.cachedCanvases.delete("fillCanvas"),t.set(r,k.canvas)),{canvas:k.canvas,offsetX:Math.round(P),offsetY:Math.round(E)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=A[e]}setLineJoin(e){this.ctx.lineJoin=C[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(var[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=r;break;case"ca":this.current.fillAlpha=r,this.ctx.globalAlpha=r;break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){var 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");var e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(r,e,t);this.suspendedCtx=this.ctx,this.ctx=n.context;var a=this.ctx;a.setTransform(...(0,i.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,a),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,r){t.translate(e,r),this.__originalTranslate(e,r)},e.scale=function(e,r){t.scale(e,r),this.__originalScale(e,r)},e.transform=function(e,r,n,i,a,o){t.transform(e,r,n,i,a,o),this.__originalTransform(e,r,n,i,a,o)},e.setTransform=function(e,r,n,i,a,o){t.setTransform(e,r,n,i,a,o),this.__originalSetTransform(e,r,n,i,a,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,r){t.moveTo(e,r),this.__originalMoveTo(e,r)},e.lineTo=function(e,r){t.lineTo(e,r),this.__originalLineTo(e,r)},e.bezierCurveTo=function(e,r,n,i,a,o){t.bezierCurveTo(e,r,n,i,a,o),this.__originalBezierCurveTo(e,r,n,i,a,o)},e.rect=function(e,r,n,i){t.rect(e,r,n,i),this.__originalRect(e,r,n,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(a,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){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];var t=this.current.activeSMask;y(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();var 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,r,n,i,a){this.ctx.transform(e,t,r,n,i,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,r){for(var a,o,s=this.ctx,l=this.current,c=l.x,u=l.y,d=(0,i.getCurrentTransform)(s),p=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],h=p?r.slice(0):null,f=0,v=0,g=e.length;f0&&void 0!==arguments[0])||arguments[0],t=this.ctx,r=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof r&&null!==r&&void 0!==r&&r.getPattern?(t.save(),t.strokeStyle=r.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),a.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(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.ctx,r=this.current.fillColor,n=!1;this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),a.PathType.FILL),n=!0);var o=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==o&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),n&&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=w}eoClip(){this.pendingClip=S}beginText(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){for(var r of(t.save(),t.beginPath(),e))t.setTransform(...r.transform),t.translate(r.x,r.y),r.addToPath(t,r.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 r,i=this.commonObjs.get(e),a=this.current;if(!i)throw new Error("Can't find font for ".concat(e));if(a.fontMatrix=i.fontMatrix||n.FONT_IDENTITY_MATRIX,0!==a.fontMatrix[0]&&0!==a.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,a.fontDirection=-1):a.fontDirection=1,this.current.font=i,this.current.fontSize=t,!i.isType3Font){var o=i.loadedName||"sans-serif",s=(null===(r=i.systemFontInfo)||void 0===r?void 0:r.css)||'"'.concat(o,'", ').concat(i.fallbackName),l="normal";i.black?l="900":i.bold&&(l="bold");var c=i.italic?"italic":"normal",u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(c," ").concat(l," ").concat(u,"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,r,n,i,a){this.current.textMatrix=[e,t,r,n,i,a],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,r,a){var o,s=this.ctx,l=this.current,c=l.font,u=l.textRenderingMode,d=l.fontSize/l.fontSizeScale,p=u&n.TextRenderingMode.FILL_STROKE_MASK,h=!!(u&n.TextRenderingMode.ADD_TO_PATH_FLAG),f=l.patternFill&&!c.missingFile;(c.disableFontFace||h||f)&&(o=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||f?(s.save(),s.translate(t,r),s.beginPath(),o(s,d),a&&s.setTransform(...a),p!==n.TextRenderingMode.FILL&&p!==n.TextRenderingMode.FILL_STROKE||s.fill(),p!==n.TextRenderingMode.STROKE&&p!==n.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(p!==n.TextRenderingMode.FILL&&p!==n.TextRenderingMode.FILL_STROKE||s.fillText(e,t,r),p!==n.TextRenderingMode.STROKE&&p!==n.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,r)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,i.getCurrentTransform)(s),x:t,y:r,fontSize:d,addToPath:o})}get isFontSubpixelAAEnabled(){var{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,i=3;i0&&t[i]<255){r=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)}showText(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var o=t.fontSize;if(0!==o){var s,l=this.ctx,c=t.fontSizeScale,u=t.charSpacing,d=t.wordSpacing,p=t.fontDirection,h=t.textHScale*p,f=e.length,v=r.vertical,g=v?1:-1,m=r.defaultVMetrics,b=o*t.fontMatrix[0],y=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(l.save(),l.transform(...t.textMatrix),l.translate(t.x,t.y+t.textRise),p>0?l.scale(h,-1):l.scale(h,1),t.patternFill){l.save();var _=t.fillColor.getPattern(l,this,(0,i.getCurrentTransformInverse)(l),a.PathType.FILL);s=(0,i.getCurrentTransform)(l),l.restore(),l.fillStyle=_}var A=t.lineWidth,C=t.textMatrixScale;if(0===C||0===A){var w=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;w!==n.TextRenderingMode.STROKE&&w!==n.TextRenderingMode.FILL_STROKE||(A=this.getSinglePixelWidth())}else A/=C;if(1!==c&&(l.scale(c,c),A/=c),l.lineWidth=A,r.isInvalidPDFjsFont){var S=[],k=0;for(var x of e)S.push(x.unicode),k+=x.width;return l.fillText(S.join(""),0,0),t.x+=k*b*h,l.restore(),void this.compose()}var P,E=0;for(P=0;P0){var Z=1e3*l.measureText(M).width/o*c;if(Bnew P(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new a.TilingPattern(e,r,this.ctx,o,n)}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,r){var i=n.Util.makeHexColor(e,t,r);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(e,t,r){var i=n.Util.makeHexColor(e,t,r);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,a.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),r&&(t.matrix=r),t}shadingFill(e){if(this.contentVisible){var t=this.ctx;this.save();var r=this._getPattern(e);t.fillStyle=r.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),a.PathType.SHADING);var o=(0,i.getCurrentTransformInverse)(t);if(o){var{width:s,height:l}=t.canvas,[c,u,d,p]=n.Util.getAxialAlignedBoundingBox([0,0,s,l],o);this.ctx.fillRect(c,u,d-c,p-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}beginInlineImage(){(0,n.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,n.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)){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,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){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=(0,i.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");var a=n.Util.getAxialAlignedBoundingBox(e.bbox,(0,i.getCurrentTransform)(t)),o=[0,0,t.canvas.width,t.canvas.height];a=n.Util.intersect(a,o)||[0,0,0,0];var l=Math.floor(a[0]),c=Math.floor(a[1]),u=Math.max(Math.ceil(a[2])-l,1),d=Math.max(Math.ceil(a[3])-c,1),p=1,h=1;u>s&&(p=u/s,u=s),d>s&&(h=d/s,d=s),this.current.startNewPathAndClipBox([0,0,u,d]);var v="groupAt"+this.groupLevel;e.smask&&(v+="_smask_"+this.smaskCounter++%2);var g=this.cachedCanvases.getCanvas(v,u,d),m=g.context;m.scale(1/p,1/h),m.translate(-l,-c),m.transform(...r),e.smask?this.smaskStack.push({canvas:g.canvas,context:m,offsetX:l,offsetY:c,scaleX:p,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(p,h),t.save()),f(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}}endGroup(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();var a=(0,i.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);var o=n.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],a);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(o)}}}beginAnnotation(e,t,r,a,o){if(_classPrivateMethodGet(this,k,E).call(this),v(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){var s=t[2]-t[0],l=t[3]-t[1];if(o&&this.annotationCanvasMap){(r=r.slice())[4]-=t[0],r[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=l;var[c,u]=n.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(this.ctx)),{viewportScale:p}=this,h=Math.ceil(s*this.outputScaleX*p),f=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(h,f);var{canvas:g,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(e,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(c,0,0,-u,0,l*u),v(this.ctx)}else v(this.ctx),this.ctx.rect(t[0],t[1],s,l),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),_classPrivateMethodGet(this,x,O).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(this.contentVisible){var t=e.count;(e=this.getObject(e.data,e)).count=t;var r=this.ctx,n=this.processingType3;if(n&&(void 0===n.compiled&&(n.compiled=function(e){var{width:t,height:r}=e;if(t>1e3||r>1e3)return null;var n,i,a,o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),s=t+1,l=new Uint8Array(s*(r+1)),c=t+7&-8,u=new Uint8Array(c*r),d=0;for(var p of e.data)for(var h=128;h>0;)u[d++]=p&h?0:255,h>>=1;var f=0;for(0!==u[d=0]&&(l[0]=1,++f),i=1;i>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0)]&&(l[a+i]=o[v],++f),d++;if(u[d-c]!==u[d]&&(l[a+i]=u[d]?2:4,++f),f>1e3)return null}for(a=n*s,0!==u[d=c*(r-1)]&&(l[a]=8,++f),i=1;i1e3)return null;var g=new Int32Array([0,s,-1,0,-s,0,0,0,1]),m=new Path2D;for(n=0;f&&n<=r;n++){for(var b=n*s,y=b+t;b>4,l[b]&=A>>2|A<<2),m.lineTo(b%s,b/s|0),l[b]||--f}while(_!==b);--n}}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/r),e.translate(0,-r),e.fill(m),e.beginPath(),e.restore()}}(e)),n.compiled))n.compiled(r);else{var i=this._createMaskCanvas(e),a=i.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(a,i.offsetX,i.offsetY),r.restore(),this.compose()}}}paintImageMaskXObjectRepeat(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=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){e=this.getObject(e.data,e);var l=this.ctx;l.save();var c=(0,i.getCurrentTransform)(l);l.transform(t,r,a,o,0,0);var u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(var d=0,p=s.length;dv?f/v:1,t=h>v?h/v:1}}this._cachedScaleForStroking[0]=e,this._cachedScaleForStroking[1]=t}return this._cachedScaleForStroking}rescaleAndStroke(e){var{ctx:t}=this,{lineWidth:r}=this.current,[n,i]=this.getScaleForStroking();if(t.lineWidth=r||1,1!==n||1!==i){var a=t.getLineDash();if(e&&t.save(),t.scale(n,i),a.length>0){var o=Math.max(n,i);t.setLineDash(a.map((e=>e/o))),t.lineDashOffset/=o}t.stroke(),e&&t.restore()}else t.stroke()}isContentVisible(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function E(){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 O(){if(this.pageColors){var e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){var t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}for(var T in t.CanvasGraphics=P,n.OPS)void 0!==P.prototype[T]&&(P.prototype[n.OPS[T]]=P.prototype[T])},(e,t,r)=>{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 d(e);case"Dummy":return new p}throw new Error("Unknown IR type: ".concat(e[0]))};var n=r(1),i=r(6),a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function o(e,t){if(t){var r=t[2]-t[0],n=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],r,n),e.clip(i)}}t.PathType=a;class s{constructor(){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,n.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){var t;for(var r of("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)),this._colorStops))t.addColorStop(r[0],r[1]);return t}getPattern(e,t,r,s){var l;if(s===a.STROKE||s===a.FILL){var c=t.current.getClippedPathBoundingBox(s,(0,i.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(c[2]-c[0])||1,d=Math.ceil(c[3]-c[1])||1,p=t.cachedCanvases.getCanvas("pattern",u,d,!0),h=p.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(-c[0],-c[1]),r=n.Util.transform(r,[1,0,0,1,c[0],c[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(p.canvas,"no-repeat");var f=new DOMMatrix(r);l.setTransform(f)}else o(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,r,n,i,a,o,s){var l,c=t.coords,u=t.colors,d=e.data,p=4*e.width;c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=a,a=o,o=l),c[n+1]>c[i+1]&&(l=n,n=i,i=l,l=o,o=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=a,a=o,o=l);var h=(c[r]+t.offsetX)*t.scaleX,f=(c[r+1]+t.offsetY)*t.scaleY,v=(c[n]+t.offsetX)*t.scaleX,g=(c[n+1]+t.offsetY)*t.scaleY,m=(c[i]+t.offsetX)*t.scaleX,b=(c[i+1]+t.offsetY)*t.scaleY;if(!(f>=b))for(var y,_,A,C,w,S,k,x,P=u[a],E=u[a+1],O=u[a+2],T=u[o],R=u[o+1],M=u[o+2],F=u[s],I=u[s+1],D=u[s+2],B=Math.round(f),j=Math.round(b),N=B;N<=j;N++){if(Nb?1:g===b?0:(g-N)/(g-b)),_=T-(T-F)*Z,A=R-(R-I)*Z,C=M-(M-D)*Z}var G=void 0;w=h-(h-m)*(G=Nb?1:(f-N)/(f-b)),S=P-(P-F)*G,k=E-(E-I)*G,x=O-(O-D)*G;for(var z=Math.round(Math.min(y,w)),U=Math.round(Math.max(y,w)),W=p*N+4*z,q=z;q<=U;q++)(G=(y-q)/(y-w))<0?G=0:G>1&&(G=1),d[W++]=_-(_-S)*G|0,d[W++]=A-(A-k)*G|0,d[W++]=C-(C-x)*G|0,d[W++]=255}}function u(e,t,r){var n,i,a=t.coords,o=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(a.length/s)-1,u=s-1;for(n=0;n=n?i=n:r=i/e,{scale:r,size:i}}clipBbox(e,t,r,n,a){var o=n-t,s=a-r;e.ctx.rect(t,r,o,s),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,r,n,a]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){var i=e.ctx,a=e.current;switch(t){case h:var o=this.ctx;i.fillStyle=o.fillStyle,i.strokeStyle=o.strokeStyle,a.fillColor=o.fillStyle,a.strokeColor=o.strokeStyle;break;case f:var s=n.Util.makeHexColor(r[0],r[1],r[2]);i.fillStyle=s,i.strokeStyle=s,a.fillColor=s,a.strokeColor=s;break;default:throw new n.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,r,i){var o=r;i!==a.SHADING&&(o=n.Util.transform(o,t.baseTransform),this.matrix&&(o=n.Util.transform(o,this.matrix)));var s=this.createPatternCanvas(t),l=new DOMMatrix(o);l=(l=l.translate(s.offsetX,s.offsetY)).scale(1/s.scaleX,1/s.scaleY);var c=e.createPattern(s.canvas,"repeat");return c.setTransform(l),c}}_defineProperty(v,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=v},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=i,t.convertToRGBA=function(e){switch(e.kind){case n.ImageKind.GRAYSCALE_1BPP:return i(e);case n.ImageKind.RGB_24BPP:return function(e){var{src:t,srcPos:r=0,dest:i,destPos:a=0,width:o,height:s}=e,l=0,c=t.length>>2,u=new Uint32Array(t.buffer,r,c);if(n.FeatureTest.isLittleEndian){for(;l>>24|p<<8|4278190080,i[a+2]=p>>>16|h<<16|4278190080,i[a+3]=h>>>8|4278190080}for(var f=4*l,v=t.length;f>>8|255,i[a+2]=m<<16|b>>>16|255,i[a+3]=b<<8|255}for(var y=4*l,_=t.length;y<_;y+=3)i[a++]=t[y]<<24|t[y+1]<<16|t[y+2]<<8|255}return{srcPos:r,destPos:a}}(e)}return null},t.grayToRGBA=function(e,t){if(n.FeatureTest.isLittleEndian)for(var r=0,i=e.length;r>3,h=7&a,f=t.length;i=new Uint32Array(i.buffer);for(var v=0,g=0;g{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=null,r.workerSrc=""},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(1),i=1,a=2,o=1,s=2,l=3,c=4,u=5,d=6,p=7,h=8;function f(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"PasswordException":return new n.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var v=new WeakSet,g=new WeakSet,m=new WeakSet;function b(e){var t=e.streamId,r=this.sourceName,i=e.sourceName,a=this.comObj,o=this,s=this.actionHandler[e.action],d={enqueue(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=new n.PromiseCapability,this.ready=this.sinkCapability.promise),a.postMessage({sourceName:r,targetName:i,stream:c,streamId:t,chunk:e},s)}},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:i,stream:l,streamId:t}),delete o.streamSinks[t])},error(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:i,stream:u,streamId:t,reason:f(e)}))},sinkCapability:new n.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){a.postMessage({sourceName:r,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:i,stream:h,streamId:t,reason:f(e)})}))}function y(e){var t=e.streamId,r=this.sourceName,i=e.sourceName,a=this.comObj,v=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case h:e.success?v.startCall.resolve():v.startCall.reject(f(e.reason));break;case p:e.success?v.pullCall.resolve():v.pullCall.reject(f(e.reason));break;case d:if(!g){a.postMessage({sourceName:r,targetName:i,stream:p,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(){a.postMessage({sourceName:r,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:i,stream:p,streamId:t,reason:f(e)})}));break;case c:if((0,n.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case l:if((0,n.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_classPrivateMethodGet(this,m,_).call(this,v,t);break;case u:(0,n.assert)(v,"error should have stream controller"),v.controller.error(f(e.reason)),_classPrivateMethodGet(this,m,_).call(this,v,t);break;case s:e.success?v.cancelCall.resolve():v.cancelCall.reject(f(e.reason)),_classPrivateMethodGet(this,m,_).call(this,v,t);break;case o:if(!g)break;new Promise((function(t){var r;t(null===(r=g.onCancel)||void 0===r?void 0:r.call(g,f(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:i,stream:s,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,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")}}function _(e,t){return A.apply(this,arguments)}function A(){return(A=_asyncToGenerator((function*(e,t){var r,n,i;yield Promise.allSettled([null===(r=e.startCall)||void 0===r?void 0:r.promise,null===(n=e.pullCall)||void 0===n?void 0:n.promise,null===(i=e.cancelCall)||void 0===i?void 0:i.promise]),delete this.streamControllers[t]}))).apply(this,arguments)}t.MessageHandler=class{constructor(e,t,r){_classPrivateMethodInitSpec(this,m),_classPrivateMethodInitSpec(this,g),_classPrivateMethodInitSpec(this,v),this.sourceName=e,this.targetName=t,this.comObj=r,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=>{var t=e.data;if(t.targetName===this.sourceName)if(t.stream)_classPrivateMethodGet(this,g,y).call(this,t);else if(t.callback){var n=t.callbackId,o=this.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete this.callbackCapabilities[n],t.callback===i)o.resolve(t.data);else{if(t.callback!==a)throw new Error("Unexpected callback case");o.reject(f(t.reason))}}else{var s=this.actionHandler[t.action];if(!s)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var l=this.sourceName,c=t.sourceName;new Promise((function(e){e(s(t.data))})).then((function(e){r.postMessage({sourceName:l,targetName:c,callback:i,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:l,targetName:c,callback:a,callbackId:t.callbackId,reason:f(e)})}))}else t.streamId?_classPrivateMethodGet(this,v,b).call(this,t):s(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){var i=this.callbackId++,a=new n.PromiseCapability;this.callbackCapabilities[i]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},r)}catch(o){a.reject(o)}return a.promise}sendWithStream(e,t,r,i){var a=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:r=>{var o=new n.PromiseCapability;return this.streamControllers[a]={controller:r,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:a,data:t,desiredSize:r.desiredSize},i),o.promise},pull:e=>{var t=new n.PromiseCapability;return this.streamControllers[a].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:a,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=new n.PromiseCapability;return this.streamControllers[a].cancelCall=t,this.streamControllers[a].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:o,streamId:a,reason:f(e)}),t.promise}},r)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(1),i=new WeakMap,a=new WeakMap;t.Metadata=class{constructor(e){var{parsedData:t,rawData:r}=e;_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,a,{writable:!0,value:void 0}),_classPrivateFieldSet(this,i,t),_classPrivateFieldSet(this,a,r)}getRaw(){return _classPrivateFieldGet(this,a)}get(e){var t;return null!==(t=_classPrivateFieldGet(this,i).get(e))&&void 0!==t?t:null}getAll(){return(0,n.objectFromMap)(_classPrivateFieldGet(this,i))}has(e){return _classPrivateFieldGet(this,i).has(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var n=r(1),i=r(8),a=Symbol("INTERNAL"),o=new WeakMap;class s{constructor(e,t){_classPrivateFieldInitSpec(this,o,{writable:!0,value:!0}),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(this,o)}_setVisible(e,t){e!==a&&(0,n.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,o,t)}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakSet;function h(e){var t=e.length;if(t<2)return!0;for(var r=e[0],i=1;i1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(a,!!t),_classPrivateFieldSet(this,l,null)):(0,n.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){return null===_classPrivateFieldGet(this,u)||this.getHash()===_classPrivateFieldGet(this,u)}getOrder(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():[..._classPrivateFieldGet(this,c).keys()]:null}getGroups(){return _classPrivateFieldGet(this,c).size>0?(0,n.objectFromMap)(_classPrivateFieldGet(this,c)):null}getGroup(e){return _classPrivateFieldGet(this,c).get(e)||null}getHash(){if(null!==_classPrivateFieldGet(this,l))return _classPrivateFieldGet(this,l);var e=new i.MurmurHash3_64;for(var[t,r]of _classPrivateFieldGet(this,c))e.update("".concat(t,":").concat(r.visible));return _classPrivateFieldSet(this,l,e.hexdigest())}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var n=r(1),i=r(6);t.PDFDataTransportStream=class{constructor(e,t){var{length:r,initialData:i,progressiveDone:a=!1,contentDispositionFilename:o=null,disableRange:s=!1,disableStream:l=!1}=e;if((0,n.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=o,(null===i||void 0===i?void 0:i.length)>0){var c=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!s,this._contentLength=r,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){var{begin:t,chunk:r}=e,i=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{var a=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(i),!0)}));(0,n.assert)(a,"_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,r,n,i;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded}):null===(n=this._fullRequestReader)||void 0===n||null===(i=n.onProgress)||void 0===i||i.call(n,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new a(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=new o(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeReaders.slice(0)))r.cancel(e);this._pdfDataRangeTransport.abort()}};class a{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var a of(this._stream=e,this._done=r||!1,this._filename=(0,i.isPdfFile)(n)?n:null,this._queuedChunks=t||[],this._loaded=0,this._queuedChunks))this._loaded+=a.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}read(){var e=this;return _asyncToGenerator((function*(){if(e._queuedChunks.length>0)return{value:e._queuedChunks.shift(),done:!1};if(e._done)return{value:void 0,done:!0};var t=new n.PromiseCapability;return e._requests.push(t),t.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class o{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,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{var t=this._requests.shift();for(var r of(t.resolve({value:e,done:!1}),this._requests))r.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var e=this;return _asyncToGenerator((function*(){if(e._queuedChunk){var t=e._queuedChunk;return e._queuedChunk=null,{value:t,done:!1}}if(e._done)return{value:void 0,done:!0};var r=new n.PromiseCapability;return e._requests.push(r),r.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=r(1),i=r(20);function a(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){var t=new Headers;for(var r in e){var n=e[r];void 0!==n&&t.append(r,n)}return t}function s(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,n.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,n.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;var r=new c(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new n.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);var r=t.url;fetch(r,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,r);this._reader=e.body.getReader(),this._headersCapability.resolve();var t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.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}read(){var e=this;return _asyncToGenerator((function*(){var t;yield e._headersCapability.promise;var{value:r,done:n}=yield e._reader.read();return n?{value:r,done:n}:(e._loaded+=r.byteLength,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded,total:e._contentLength}),{value:s(r),done:!1})}))()}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class c{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;var s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=new n.PromiseCapability,this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=o(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(r-1));var l=s.url;fetch(l,a(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}read(){var e=this;return _asyncToGenerator((function*(){var t;yield e._readCapability.promise;var{value:r,done:n}=yield e._reader.read();return n?{value:r,done:n}:(e._loaded+=r.byteLength,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded}),{value:s(r),done:!1})}))()}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var r=(0,i.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if((0,a.isPdfFile)(r))return r}return null},t.validateRangeRequestCapabilities=function(e){var{getResponseHeader:t,isHttp:r,rangeChunkSize:n,disableRange:i}=e,a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(t("Content-Length"),10);return Number.isInteger(o)?(a.suggestedLength=o,o<=2*n||i||!r||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a},t.validateResponseStatus=function(e){return 200===e||206===e};var n=r(1),i=r(21),a=r(6)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,r=o("filename\\*","i").exec(e);if(r){var i=c(r=r[1]);return l(i=d(i=u(i=unescape(i))))}if(r=function(e){for(var t,r=[],n=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=n.exec(e));){var[,i,a,s]=t;if((i=parseInt(i,10))in r){if(0===i)break}else r[i]=[a,s]}for(var l=[],d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var n=r(1),i=r(20);class a{constructor(e){var 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,r){var n={begin:e,end:t};for(var i in r)n[i]=r[i];return this.request(n)}requestFull(e){return this.request(e)}request(e){var t=new XMLHttpRequest,r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};for(var i in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var a=this.httpHeaders[i];void 0!==a&&t.setRequestHeader(i,a)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){var r,n=this.pendingRequests[e];n&&(null===(r=n.onProgress)||void 0===r||r.call(n,t))}onStateChange(e,t){var r=this.pendingRequests[e];if(r){var i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===i.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===i.status&&this.isHttp){var a;null===(a=r.onError)||void 0===a||a.call(r,i.status)}else{var o=i.status||200;if(200===o&&206===r.expectedStatus||o===r.expectedStatus){var s=function(e){var t=e.response;return"string"!==typeof t?t:(0,n.stringToBytes)(t).buffer}(i);if(206===o){var l=i.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);r.onDone({begin:parseInt(c[1],10),chunk:s})}else if(s)r.onDone({begin:0,chunk:s});else{var u;null===(u=r.onError)||void 0===u||u.call(r,i.status)}}else{var d;null===(d=r.onError)||void 0===d||d.call(r,i.status)}}}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new o(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){var r=new s(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class o{constructor(e,t){this._manager=e;var r={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(r),this._headersReceivedCapability=new n.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(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});n&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(r),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(var t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){for(var t of(this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError),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}read(){var e=this;return _asyncToGenerator((function*(){if(e._storedError)throw e._storedError;if(e._cachedChunks.length>0)return{value:e._cachedChunks.shift(),done:!1};if(e._done)return{value:void 0,done:!0};var t=new n.PromiseCapability;return e._requests.push(t),t.promise}))()}cancel(e){for(var t of(this._done=!0,this._headersReceivedCapability.reject(e),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,r){this._manager=e;var n={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,r,n),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){var t=e.chunk;for(var r of(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests))r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){for(var t of(this._storedError=(0,i.createResponseStatusError)(e,this._url),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}read(){var e=this;return _asyncToGenerator((function*(){if(e._storedError)throw e._storedError;if(null!==e._queuedChunk){var t=e._queuedChunk;return e._queuedChunk=null,{value:t,done:!1}}if(e._done)return{value:void 0,done:!0};var r=new n.PromiseCapability;return e._requests.push(r),r.promise}))()}cancel(e){for(var t of(this._done=!0,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,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=r(1),i=r(20),a=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){var t=__webpack_require__(66558),r=t.parse(e);return"file:"===r.protocol||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse("file:///".concat(e)):(r.host||(r.protocol="file:"),r)}(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,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new d(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new p(this,e,t):new u(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class o{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var 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 n.PromiseCapability,this._headersCapability=new n.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}read(){var e=this;return _asyncToGenerator((function*(){var t;if(yield e._readCapability.promise,e._done)return{value:void 0,done:!0};if(e._storedError)throw e._storedError;var r=e._readableStream.read();return null===r?(e._readCapability=new n.PromiseCapability,e.read()):(e._loaded+=r.length,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded,total:e._contentLength}),{value:new Uint8Array(r).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 n.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 n.PromiseCapability;var t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;if(yield e._readCapability.promise,e._done)return{value:void 0,done:!0};if(e._storedError)throw e._storedError;var r=e._readableStream.read();return null===r?(e._readCapability=new n.PromiseCapability,e.read()):(e._loaded+=r.length,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded}),{value:new Uint8Array(r).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);var t=t=>{if(404===t.statusCode){var r=new n.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=r,void this._headersCapability.reject(r)}this._headersCapability.resolve(),this._setReadableStream(t);var a=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:o,suggestedLength:s}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=s||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(a)};if(this._request=null,"http:"===this._url.protocol){var r=__webpack_require__(2001);this._request=r.request(l(this._url,e.httpHeaders),t)}else{var a=__webpack_require__(33779);this._request=a.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class u extends s{constructor(e,t,r){for(var i in super(e),this._httpHeaders={},e.httpHeaders){var a=e.httpHeaders[i];void 0!==a&&(this._httpHeaders[i]=a)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(r-1);var o=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{var t=new n.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=t}};if(this._request=null,"http:"===this._url.protocol){var s=__webpack_require__(2001);this._request=s.request(l(this._url,this._httpHeaders),o)}else{var c=__webpack_require__(33779);this._request=c.request(l(this._url,this._httpHeaders),o)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class d extends o{constructor(e){super(e);var t=decodeURIComponent(this._url.path);a.test(this._url.href)&&(t=t.replace(/^\//,""));var r=__webpack_require__(70172);r.lstat(t,((e,i)=>{if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=i.size,this._setReadableStream(r.createReadStream(t)),this._headersCapability.resolve()}))}}class p extends s{constructor(e,t,r){super(e);var n=decodeURIComponent(this._url.path);a.test(this._url.href)&&(n=n.replace(/^\//,""));var i=__webpack_require__(70172);this._setReadableStream(i.createReadStream(n,{start:t,end:r-1}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(6),i=r(1),a="normal",o="normal",s="#000000",l=["butt","round","square"],c=["miter","round","bevel"],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!r)return URL.createObjectURL(new Blob([e],{type:t}));for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="data:".concat(t,";base64,"),a=0,o=e.length;a>2]+n[(3&s)<<4|l>>4]+n[a+1>6:64]+n[a+2>1&2147483647:n>>1&2147483647;t[r]=n}function o(e,r,n,i){var a=i,o=r.length;n[a]=o>>24&255,n[a+1]=o>>16&255,n[a+2]=o>>8&255,n[a+3]=255&o,n[a+=4]=255&e.charCodeAt(0),n[a+1]=255&e.charCodeAt(1),n[a+2]=255&e.charCodeAt(2),n[a+3]=255&e.charCodeAt(3),a+=4,n.set(r,a);var s=function(e,r,n){for(var i=-1,a=r;a>>8^t[o]}return-1^i}(n,i+4,a+=r.length);n[a]=s>>24&255,n[a+1]=s>>16&255,n[a+2]=s>>8&255,n[a+3]=255&s}function s(e){var t=e.length,r=65535,n=Math.ceil(t/r),i=new Uint8Array(2+t+5*n+4),a=0;i[a++]=120,i[a++]=156;for(var o=0;t>r;)i[a++]=0,i[a++]=255,i[a++]=255,i[a++]=0,i[a++]=0,i.set(e.subarray(o,o+r),a),a+=r,o+=r,t-=r;i[a++]=1,i[a++]=255&t,i[a++]=t>>8&255,i[a++]=255&~t,i[a++]=(65535&~t)>>8&255,i.set(e.subarray(o),a),a+=e.length-o;var s=function(e,t,r){for(var n=1,i=0,a=t;a>24&255,i[a++]=s>>16&255,i[a++]=s>>8&255,i[a++]=255&s,i}function l(t,r,n,a){var l,c,d,p=t.width,h=t.height,f=t.data;switch(r){case i.ImageKind.GRAYSCALE_1BPP:c=0,l=1,d=p+7>>3;break;case i.ImageKind.RGB_24BPP:c=2,l=8,d=3*p;break;case i.ImageKind.RGBA_32BPP:c=6,l=8,d=4*p;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+d)*h),g=0,m=0,b=0;b>24&255,p>>16&255,p>>8&255,255&p,h>>24&255,h>>16&255,h>>8&255,255&h,l,c,0,0,0]),C=function(e){if(!i.isNodeJS)return s(e);try{var t=parseInt(process.versions.node)>=8?e:Buffer.from(e),r=__webpack_require__(82258).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(n){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+n)}return s(e)}(v),w=e.length+36+A.length+C.length,S=new Uint8Array(w),k=0;return S.set(e,k),o("IHDR",A,S,k+=e.length),o("IDATA",C,S,k+=12+A.length),k+=12+C.length,o("IEND",new Uint8Array(0),S,k),u(S,"image/png",n)}return function(e,t,r){return l(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}();class p{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 h(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+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(h(e[0])," ").concat(h(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(h(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(h(e[4])," ").concat(h(e[5]),")");return"matrix(".concat(h(e[0])," ").concat(h(e[1])," ").concat(h(e[2])," ").concat(h(e[3])," ").concat(h(e[4])," ")+"".concat(h(e[5]),")")}var v=0,g=0,m=0;t.SVGGraphics=class{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var a in(0,n.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new n.DOMSVGFactory,this.current=new p,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=!!r,this._operatorIdMapping=[],i.OPS)this._operatorIdMapping[i.OPS[a]]=a}getObject(e){var 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);var 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){for(var t=this,r=e.fnArray,n=e.argsArray,a=0,o=r.length;a{r.get(e,t)}));t.current.dependencies.push(n)};for(var l of n[a])s(l)}return Promise.all(this.current.dependencies)}transform(e,t,r,n,a,o){var s=[e,t,r,n,a,o];this.transformMatrix=i.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;var r=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,i=[],a=0,o=n.length;a0&&(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,r){this.current.strokeColor=i.Util.makeHexColor(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=i.Util.makeHexColor(e,t,r),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){var{width:t,height:r}=this.viewport,n=i.Util.inverseTransform(this.transformMatrix),[a,o,s,l]=i.Util.getAxialAlignedBoundingBox([0,0,t,r],n),c=this.svgFactory.createElement("svg:rect");c.setAttributeNS(null,"x",a),c.setAttributeNS(null,"y",o),c.setAttributeNS(null,"width",s-a),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){var t=e[1],r=e[2],n=e[3]||i.IDENTITY_MATRIX,[a,o,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading".concat(m++),[h,f,v,g]=i.Util.normalizeRect([...i.Util.applyTransform([a,o],n),...i.Util.applyTransform([s,l],n)]),[b,y]=i.Util.singularValueDecompose2dScale(n),_=c*b,A=u*y,C=this.svgFactory.createElement("svg:pattern");C.setAttributeNS(null,"id",p),C.setAttributeNS(null,"patternUnits","userSpaceOnUse"),C.setAttributeNS(null,"width",_),C.setAttributeNS(null,"height",A),C.setAttributeNS(null,"x","".concat(h)),C.setAttributeNS(null,"y","".concat(f));var w=this.svg,S=this.transformMatrix,k=this.current.fillColor,x=this.current.strokeColor,P=this.svgFactory.create(v-h,g-f);if(this.svg=P,this.transformMatrix=n,2===d){var E=i.Util.makeHexColor(...t);this.current.fillColor=E,this.current.strokeColor=E}return this.executeOpTree(this.convertOpList(r)),this.svg=w,this.transformMatrix=S,this.current.fillColor=k,this.current.strokeColor=x,C.append(P.childNodes[0]),this.defs.append(C),"url(#".concat(p,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":var t,r="shading".concat(m++),n=e[3];switch(e[1]){case"axial":var a=e[4],o=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",a[0]),t.setAttributeNS(null,"y1",a[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(var d of n){var p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),t.append(p)}return this.defs.append(t),"url(#".concat(r,")");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){var r=this.current,n=r.x,a=r.y,o=[],s=0;for(var l of e)switch(0|l){case i.OPS.rectangle:n=t[s++],a=t[s++];var c=n+t[s++],u=a+t[s++];o.push("M",h(n),h(a),"L",h(c),h(a),"L",h(c),h(u),"L",h(n),h(u),"Z");break;case i.OPS.moveTo:n=t[s++],a=t[s++],o.push("M",h(n),h(a));break;case i.OPS.lineTo:n=t[s++],a=t[s++],o.push("L",h(n),h(a));break;case i.OPS.curveTo:n=t[s+4],a=t[s+5],o.push("C",h(t[s]),h(t[s+1]),h(t[s+2]),h(t[s+3]),h(n),h(a)),s+=6;break;case i.OPS.curveTo2:o.push("C",h(n),h(a),h(t[s]),h(t[s+1]),h(t[s+2]),h(t[s+3])),n=t[s+2],a=t[s+3],s+=4;break;case i.OPS.curveTo3:n=t[s+2],a=t[s+3],o.push("C",h(t[s]),h(t[s+1]),h(n),h(a),h(n),h(a)),s+=4;break;case i.OPS.closePath:o.push("Z")}o=o.join(" "),r.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?o=r.path.getAttributeNS(null,"d")+o:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(r.path)),r.path.setAttributeNS(null,"d",o),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(n,a)}endPath(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(v++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",f(this.transformMatrix));var n=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.append(n),this.defs.append(r),e.activeClipUrl){for(var i of(e.clipGroup=null,this.extraStack))i.clipGroup=null;r.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}clip(e){this.pendingClip=e}closePath(){var e=this.current;if(e.path){var 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(var[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r);break;case"CA":this.setStrokeAlpha(r);break;case"ca":this.setFillAlpha(r);break;default:(0,i.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",h(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",h(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(h).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",h(t*r.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(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){var 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){var r=e.width,n=e.height,i=d(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",h(r)),a.setAttributeNS(null,"height",h(n)),this.current.element=a,this.clip("nonzero");var 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",h(-n)),o.setAttributeNS(null,"width",h(r)+"px"),o.setAttributeNS(null,"height",h(n)+"px"),o.setAttributeNS(null,"transform","scale(".concat(h(1/r)," ").concat(h(-1/n),")")),t?t.append(o):this._ensureTransformGroup().append(o)}paintImageMaskXObject(e){var t=this.getObject(e.data,e);if(t.bitmap)(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");else{var r=this.current,n=t.width,a=t.height,o=r.fillColor;r.maskId="mask".concat(g++);var s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",r.maskId);var l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",h(n)),l.setAttributeNS(null,"height",h(a)),l.setAttributeNS(null,"fill",o),l.setAttributeNS(null,"mask","url(#".concat(r.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){var r=t[2]-t[0],n=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",h(r)),i.setAttributeNS(null,"height",h(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.append(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",f(e.transform)),t.append(n),this.svg=n,t}_ensureClipGroup(){if(!this.current.clipGroup){var 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 r{static textContent(e){var t=[],n={items:t,styles:Object.create(null)};return function e(n){var i;if(n){var a=null,o=n.name;if("#text"===o)a=n.value;else{if(!r.shouldBuildText(o))return;null!==n&&void 0!==n&&null!==(i=n.attributes)&&void 0!==i&&i.textContent?a=n.attributes.textContent:n.value&&(a=n.value)}if(null!==a&&t.push({str:a}),n.children)for(var s of n.children)e(s)}}(e),n}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=r},(e,t,r)=>{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);var{container:t,viewport:r}=e,n=getComputedStyle(t),a=n.getPropertyValue("visibility"),o=parseFloat(n.getPropertyValue("--scale-factor"));"visible"===a&&(!o||Math.abs(o-r.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.");var s=new d(e);return s._render(),s},t.updateTextLayer=function(e){var{container:t,viewport:r,textDivs:n,textDivProperties:a,isOffscreenCanvasSupported:o,mustRotate:s=!0,mustRescale:c=!0}=e;if(s&&(0,i.setLayerDimensions)(t,{rotation:r.rotation}),c){var d=l(0,o),p={prevFontSize:null,prevFontFamily:null,div:null,scale:r.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:d};for(var h of n)p.properties=a.get(h),p.div=h,u(p)}};var n=r(1),i=r(6),a=30,o=.8,s=new Map;function l(e,t){var r;if(t&&n.FeatureTest.isOffscreenCanvasSupported)r=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{var i=document.createElement("canvas");i.width=i.height=e,r=i.getContext("2d",{alpha:!1})}return r}function c(e,t,r){var i=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);var u=n.Util.transform(e._transform,t.transform),d=Math.atan2(u[1],u[0]),p=r[t.fontName];p.vertical&&(d+=Math.PI/2);var h,f,v=Math.hypot(u[2],u[3]),g=v*function(e,t){var r=s.get(e);if(r)return r;var n=l(a,t);n.font="".concat(a,"px ").concat(e);var i=n.measureText(""),c=i.fontBoundingBoxAscent,u=Math.abs(i.fontBoundingBoxDescent);if(c){var d=c/(c+u);return s.set(e,d),n.canvas.width=n.canvas.height=0,d}n.strokeStyle="red",n.clearRect(0,0,a,a),n.strokeText("g",0,0);var p=n.getImageData(0,0,a,a).data;u=0;for(var h=p.length-1-3;h>=0;h-=4)if(p[h]>0){u=Math.ceil(h/4/a);break}n.clearRect(0,0,a,a),n.strokeText("A",0,a),c=0;for(var f=0,v=(p=n.getImageData(0,0,a,a).data).length;f0){c=a-Math.floor(f/4/a);break}if(n.canvas.width=n.canvas.height=0,c){var g=c/(c+u);return s.set(e,g),g}return s.set(e,o),o}(p.fontFamily,e._isOffscreenCanvasSupported);0===d?(h=u[4],f=u[5]-g):(h=u[4]+g*Math.sin(d),f=u[5]-g*Math.cos(d));var m="calc(var(--scale-factor)*",b=i.style;e._container===e._rootContainer?(b.left="".concat((100*h/e._pageWidth).toFixed(2),"%"),b.top="".concat((100*f/e._pageHeight).toFixed(2),"%")):(b.left="".concat(m).concat(h.toFixed(2),"px)"),b.top="".concat(m).concat(f.toFixed(2),"px)")),b.fontSize="".concat(m).concat(v.toFixed(2),"px)"),b.fontFamily=p.fontFamily,c.fontSize=v,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));var y=!1;if(t.str.length>1)y=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var _=Math.abs(t.transform[0]),A=Math.abs(t.transform[3]);_!==A&&Math.max(_,A)/Math.min(_,A)>1.5&&(y=!0)}y&&(c.canvasWidth=p.vertical?t.height:t.width),e._textDivProperties.set(i,c),e._isReadableStream&&e._layoutText(i)}function u(e){var{div:t,scale:r,properties:n,ctx:i,prevFontSize:a,prevFontFamily:o}=e,{style:s}=t,l="";if(0!==n.canvasWidth&&n.hasText){var{fontFamily:c}=s,{canvasWidth:u,fontSize:d}=n;a===d&&o===c||(i.font="".concat(d*r,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);var{width:p}=i.measureText(t.textContent);p>0&&(l="scaleX(".concat(u*r/p,")"))}0!==n.angle&&(l="rotate(".concat(n.angle,"deg) ").concat(l)),l.length>0&&(s.transform=l)}class d{constructor(e){var t,{textContentSource:r,container:a,viewport:o,textDivs:s,textDivProperties:c,textContentItemsStr:u,isOffscreenCanvasSupported:d}=e;this._textContentSource=r,this._isReadableStream=r instanceof ReadableStream,this._container=this._rootContainer=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._isOffscreenCanvasSupported=d,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 n.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:o.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,d)};var{pageWidth:p,pageHeight:h,pageX:f,pageY:v}=o.rawDims;this._transform=[1,0,0,-1,-f,v+h],this._pageWidth=p,this._pageHeight=h,(0,i.setLayerDimensions)(a,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 n.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new n.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(var r of e)if(void 0!==r.str)this._textContentItemsStr.push(r.str),c(this,r,t);else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){var n=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==r.id&&this._container.setAttribute("id","".concat(r.id)),n.append(this._container)}else"endMarkedContent"===r.type&&(this._container=this._container.parentNode)}_layoutText(e){var t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){var r=document.createElement("br");r.setAttribute("role","presentation"),this._container.append(r)}}_render(){var e=new n.PromiseCapability,t=Object.create(null);if(this._isReadableStream){var r=()=>{this._reader.read().then((n=>{var{value:i,done:a}=n;a?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),r())}),e.reject)};this._reader=this._textContentSource.getReader(),r()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');var{items:i,styles:a}=this._textContentSource;this._processItems(i,a),e.resolve()}e.promise.then((()=>{t=null,function(e){if(!e._canceled){var t=e._textDivs,r=e._capability;if(t.length>1e5)r.resolve();else{if(!e._isReadableStream)for(var n of t)e._layoutText(n);r.resolve()}}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var n=r(1),i=r(4),a=r(28),o=r(33),s=r(6),l=r(34),c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakSet,_=new WeakSet,A=new WeakSet,C=new WeakSet;class w{constructor(e){var{uiManager:t,pageIndex:r,div:n,accessibilityManager:i,annotationLayer:s,viewport:S,l10n:k}=e;_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,y),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.pointerup.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.pointerdown.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:void 0});var x=[a.FreeTextEditor,o.InkEditor,l.StampEditor];if(!w._initialized)for(var P of(w._initialized=!0,x))P.initialize(k);t.registerEditorTypes(x),_classPrivateFieldSet(this,b,t),this.pageIndex=r,this.div=n,_classPrivateFieldSet(this,c,i),_classPrivateFieldSet(this,d,s),this.viewport=S,_classPrivateFieldGet(this,b).addLayer(this)}get isEmpty(){return 0===_classPrivateFieldGet(this,f).size}updateToolbar(e){_classPrivateFieldGet(this,b).updateToolbar(e)}updateMode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(this,b).getMode();_classPrivateMethodGet(this,C,P).call(this),e===n.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==n.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===n.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===n.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===n.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(this,b).getMode()===n.AnnotationEditorType.INK){if(!e)for(var t of _classPrivateFieldGet(this,f).values())if(t.isEmpty())return void t.setInBackground();_classPrivateMethodGet(this,_,k).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){_classPrivateFieldGet(this,b).setEditingState(e)}addCommands(e){_classPrivateFieldGet(this,b).addCommands(e)}enable(){this.div.style.pointerEvents="auto";var e=new Set;for(var t of _classPrivateFieldGet(this,f).values())t.enableEditing(),t.annotationElementId&&e.add(t.annotationElementId);if(_classPrivateFieldGet(this,d)){var r=_classPrivateFieldGet(this,d).getEditableAnnotations();for(var n of r)if(n.hide(),!_classPrivateFieldGet(this,b).isDeletedAnnotationElement(n.data.id)&&!e.has(n.data.id)){var i=this.deserialize(n);i&&(this.addOrRebuild(i),i.enableEditing())}}}disable(){_classPrivateFieldSet(this,m,!0),this.div.style.pointerEvents="none";var e=new Set;for(var t of _classPrivateFieldGet(this,f).values()){var r;t.disableEditing(),t.annotationElementId&&null===t.serialize()?(null===(r=this.getEditableAnnotation(t.annotationElementId))||void 0===r||r.show(),t.remove()):e.add(t.annotationElementId)}if(_classPrivateFieldGet(this,d)){var n=_classPrivateFieldGet(this,d).getEditableAnnotations();for(var i of n){var{id:a}=i.data;e.has(a)||_classPrivateFieldGet(this,b).isDeletedAnnotationElement(a)||i.show()}}_classPrivateMethodGet(this,C,P).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(this,m,!1)}getEditableAnnotation(e){var t;return(null===(t=_classPrivateFieldGet(this,d))||void 0===t?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){_classPrivateFieldGet(this,b).getActive()!==e&&_classPrivateFieldGet(this,b).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(this,h)),this.div.addEventListener("pointerup",_classPrivateFieldGet(this,p))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(this,h)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(this,p))}attach(e){_classPrivateFieldGet(this,f).set(e.id,e);var{annotationElementId:t}=e;t&&_classPrivateFieldGet(this,b).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(this,b).removeDeletedAnnotationElement(e)}detach(e){var t;_classPrivateFieldGet(this,f).delete(e.id),null===(t=_classPrivateFieldGet(this,c))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(this,m)&&e.annotationElementId&&_classPrivateFieldGet(this,b).addDeletedAnnotationElement(e)}remove(e){this.detach(e),_classPrivateFieldGet(this,b).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{_classPrivateFieldGet(this,b).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(this,g)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(this,b).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(this,b).addEditor(e),this.attach(e),!e.isAttachedToDOM){var t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(this,b).addToAnnotationStorage(e)}moveEditorInDOM(e){var t;if(e.isAttachedToDOM){var{activeElement:r}=document;e.div.contains(r)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),r.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(this,c))||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(this,b).getId()}pasteEditor(e,t){_classPrivateFieldGet(this,b).updateToolbar(e),_classPrivateFieldGet(this,b).updateMode(e);var{offsetX:r,offsetY:n}=_classPrivateMethodGet(this,A,x).call(this),i=this.getNextId(),a=_classPrivateMethodGet(this,y,S).call(this,_objectSpread({parent:this,id:i,x:r,y:n,uiManager:_classPrivateFieldGet(this,b),isCentered:!0},t));a&&this.add(a)}deserialize(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case n.AnnotationEditorType.FREETEXT:return a.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(this,b));case n.AnnotationEditorType.INK:return o.InkEditor.deserialize(e,this,_classPrivateFieldGet(this,b));case n.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,_classPrivateFieldGet(this,b))}return null}addNewEditor(){_classPrivateMethodGet(this,_,k).call(this,_classPrivateMethodGet(this,A,x).call(this),!0)}setSelected(e){_classPrivateFieldGet(this,b).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(this,b).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(this,b).isSelected(e)}unselect(e){_classPrivateFieldGet(this,b).unselect(e)}pointerup(e){var{isMac:t}=n.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(this,v)&&(_classPrivateFieldSet(this,v,!1),_classPrivateFieldGet(this,u)?_classPrivateFieldGet(this,b).getMode()!==n.AnnotationEditorType.STAMP?_classPrivateMethodGet(this,_,k).call(this,e,!1):_classPrivateFieldGet(this,b).unselectAll():_classPrivateFieldSet(this,u,!0))}pointerdown(e){if(_classPrivateFieldGet(this,v))_classPrivateFieldSet(this,v,!1);else{var{isMac:t}=n.FeatureTest.platform;if(!(0!==e.button||e.ctrlKey&&t)&&e.target===this.div){_classPrivateFieldSet(this,v,!0);var r=_classPrivateFieldGet(this,b).getActive();_classPrivateFieldSet(this,u,!r||r.isEmpty())}}}findNewParent(e,t,r){var n=_classPrivateFieldGet(this,b).findParent(t,r);return null!==n&&n!==this&&(n.changeParent(e),!0)}destroy(){var e;for(var t of((null===(e=_classPrivateFieldGet(this,b).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(this,b).commitOrRemove(),_classPrivateFieldGet(this,b).setActiveEditor(null)),_classPrivateFieldGet(this,f).values())){var r;null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove()}this.div=null,_classPrivateFieldGet(this,f).clear(),_classPrivateFieldGet(this,b).removeLayer(this)}render(e){var{viewport:t}=e;for(var r of(this.viewport=t,(0,s.setLayerDimensions)(this.div,t),_classPrivateFieldGet(this,b).getEditors(this.pageIndex)))this.add(r);this.updateMode()}update(e){var{viewport:t}=e;_classPrivateFieldGet(this,b).commitOrRemove(),this.viewport=t,(0,s.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){var{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}function S(e){switch(_classPrivateFieldGet(this,b).getMode()){case n.AnnotationEditorType.FREETEXT:return new a.FreeTextEditor(e);case n.AnnotationEditorType.INK:return new o.InkEditor(e);case n.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}function k(e,t){var r=this.getNextId(),n=_classPrivateMethodGet(this,y,S).call(this,{parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(this,b),isCentered:t});return n&&this.add(n),n}function x(){var{x:e,y:t,width:r,height:n}=this.div.getBoundingClientRect(),i=Math.max(0,e),a=Math.max(0,t),o=(i+Math.min(window.innerWidth,e+r))/2-e,s=(a+Math.min(window.innerHeight,t+n))/2-t,[l,c]=this.viewport.rotation%180===0?[o,s]:[s,o];return{offsetX:l,offsetY:c}}function P(){for(var e of(_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,f).values()))e.isEmpty()&&e.remove();_classPrivateFieldSet(this,g,!1)}_defineProperty(w,"_initialized",!1),t.AnnotationEditorLayer=w},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=r(1),a=r(5),o=r(4),s=r(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakSet,b=new WeakSet,y=new WeakSet,_=new WeakSet,A=new WeakSet,C=new WeakSet,w=new WeakSet;class S extends o.AnnotationEditor{static get _keyboardManager(){var e=S.prototype,t=e=>e.isEmpty(),r=a.AnnotationEditorUIManager.TRANSLATE_SMALL,n=a.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new a.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:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}]]))}constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"freeTextEditor"})),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,b),_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,l,{writable:!0,value:this.editorDivBlur.bind(this)}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:this.editorDivFocus.bind(this)}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:this.editorDivInput.bind(this)}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.editorDivKeydown.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:"".concat(this.id,"-editor")}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:null}),_classPrivateFieldSet(this,p,e.color||S._defaultColor||o.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(this,v,e.fontSize||S._defaultFontSize)}static initialize(e){o.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});var t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:S._defaultFontSize=t;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:S._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,m,k).call(this,t);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,b,x).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,S._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,S._defaultColor||o.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,v)],[i.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,p)]]}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){var e=this.parentScale;return[-S._internalPadding*e,-(S._internalPadding+_classPrivateFieldGet(this,v))*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(this,d)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(this,l)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(this,u)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(this,f)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(this,l)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(this,u)),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?_classPrivateMethodGet(this,w,R).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()){super.commit(),this.disableEditMode();var e=_classPrivateFieldGet(this,h),t=_classPrivateFieldSet(this,h,_classPrivateMethodGet(this,y,P).call(this).trimEnd());if(e!==t){var r=e=>{_classPrivateFieldSet(this,h,e),e?(_classPrivateMethodGet(this,A,O).call(this),this._uiManager.rebuild(this),_classPrivateMethodGet(this,_,E).call(this)):this.remove()};this.addCommands({cmd:()=>{r(t)},undo:()=>{r(e)},mustExec:!1}),_classPrivateMethodGet(this,_,E).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){S._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;var 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(this,f)),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;var{style:r}=this.editorDiv;if(r.fontSize="calc(".concat(_classPrivateFieldGet(this,v),"px * var(--scale-factor))"),r.color=_classPrivateFieldGet(this,p),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,a.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){var[n,i]=this.parentDimensions;if(this.annotationElementId){var{position:s}=_classPrivateFieldGet(this,g),[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);var u,d,[h,m]=this.pageDimensions,[b,y]=this.pageTranslation;switch(this.rotation){case 0:u=e+(s[0]-b)/h,d=t+this.height-(s[1]-y)/m;break;case 90:u=e+(s[0]-b)/h,d=t-(s[1]-y)/m,[l,c]=[c,-l];break;case 180:u=e-this.width+(s[0]-b)/h,d=t-(s[1]-y)/m,[l,c]=[-l,-c];break;case 270:u=e+(s[0]-b-this.height*m)/h,d=t+(s[1]-y-this.width*h)/m,[l,c]=[-c,l]}this.setAt(u*n,d*i,l,c)}else this.setAt(e*n,t*i,this.width*n,this.height*i);_classPrivateMethodGet(this,A,O).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,r){var n=null;if(e instanceof s.FreeTextAnnotationElement){var{data:{defaultAppearanceData:{fontSize:a,fontColor:o},rect:l,rotation:c,id:u},textContent:d,textPosition:f,parent:{page:{pageNumber:m}}}=e;if(!d||0===d.length)return null;n=e={annotationType:i.AnnotationEditorType.FREETEXT,color:Array.from(o),fontSize:a,value:d.join("\n"),position:f,pageIndex:m-1,rect:l,rotation:c,id:u,deleted:!1}}var b=super.deserialize(e,t,r);return _classPrivateFieldSet(b,v,e.fontSize),_classPrivateFieldSet(b,p,i.Util.makeHexColor(...e.color)),_classPrivateFieldSet(b,h,e.value),b.annotationElementId=e.id||null,_classPrivateFieldSet(b,g,n),b}serialize(){var 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};var t=S._internalPadding*this.parentScale,r=this.getRect(t,t),n=o.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(this,p)),a={annotationType:i.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(this,v),value:_classPrivateFieldGet(this,h),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?a:this.annotationElementId&&!_classPrivateMethodGet(this,C,T).call(this,a)?null:(a.id=this.annotationElementId,a)}}function k(e){var t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(this,v))*this.parentScale),_classPrivateFieldSet(this,v,e),_classPrivateMethodGet(this,_,E).call(this)},r=_classPrivateFieldGet(this,v);this.addCommands({cmd:()=>{t(e)},undo:()=>{t(r)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function x(e){var t=_classPrivateFieldGet(this,p);this.addCommands({cmd:()=>{_classPrivateFieldSet(this,p,this.editorDiv.style.color=e)},undo:()=>{_classPrivateFieldSet(this,p,this.editorDiv.style.color=t)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function P(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;var t=[];for(var r of e)t.push(r.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}function E(){var e,[t,r]=this.parentDimensions;if(this.isAttachedToDOM)e=this.div.getBoundingClientRect();else{var{currentLayer:n,div:i}=this,a=i.style.display;i.style.display="hidden",n.div.append(this.div),e=i.getBoundingClientRect(),i.remove(),i.style.display=a}this.rotation%180===this.parentRotation%180?(this.width=e.width/t,this.height=e.height/r):(this.width=e.height/t,this.height=e.width/r),this.fixAndSetPosition()}function O(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(this,h))for(var e of _classPrivateFieldGet(this,h).split("\n")){var t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function T(e){var{value:t,fontSize:r,color:n,rect:i,pageIndex:a}=_classPrivateFieldGet(this,g);return e.value!==t||e.fontSize!==r||e.rect.some(((e,t)=>Math.abs(e-i[t])>=1))||e.color.some(((e,t)=>e!==n[t]))||e.pageIndex!==a}function R(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.annotationElementId)if(_classPrivateMethodGet(this,_,E).call(this),e||0!==this.width&&0!==this.height){var t=n._internalPadding*this.parentScale;_classPrivateFieldGet(this,g).rect=this.getRect(t,t)}else setTimeout((()=>_classPrivateMethodGet(this,w,R).call(this,!0)),0)}n=S,_defineProperty(S,"_freeTextDefaultContent",""),_defineProperty(S,"_internalPadding",0),_defineProperty(S,"_defaultColor",null),_defineProperty(S,"_defaultFontSize",10),_defineProperty(S,"_type","freetext"),t.FreeTextEditor=S},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var n=r(1),i=r(6),a=r(3),o=r(30),s=r(31),l=r(32),c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class p{static create(e){switch(e.data.annotationType){case n.AnnotationType.LINK:return new m(e);case n.AnnotationType.TEXT:return new _(e);case n.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new C(e);case"Btn":return e.data.radioButton?new k(e):e.data.checkBox?new S(e):new x(e);case"Ch":return new P(e);case"Sig":return new w(e)}return new A(e);case n.AnnotationType.POPUP:return new E(e);case n.AnnotationType.FREETEXT:return new te(e);case n.AnnotationType.LINE:return new ne(e);case n.AnnotationType.SQUARE:return new ae(e);case n.AnnotationType.CIRCLE:return new se(e);case n.AnnotationType.POLYLINE:return new ce(e);case n.AnnotationType.CARET:return new de(e);case n.AnnotationType.INK:return new he(e);case n.AnnotationType.POLYGON:return new ue(e);case n.AnnotationType.HIGHLIGHT:return new fe(e);case n.AnnotationType.UNDERLINE:return new ve(e);case n.AnnotationType.SQUIGGLY:return new ge(e);case n.AnnotationType.STRIKEOUT:return new me(e);case n.AnnotationType.STAMP:return new be(e);case n.AnnotationType.FILEATTACHMENT:return new Ae(e);default:return new f(e)}}}var h=new WeakMap;class f{constructor(e){var{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classPrivateFieldInitSpec(this,h,{writable:!0,value:!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(r)),n&&this._createQuadrilaterals()}static _hasPopupData(e){var{titleObj:t,contentsObj:r,richText:n}=e;return!!(null!==t&&void 0!==t&&t.str||null!==r&&void 0!==r&&r.str||null!==n&&void 0!==n&&n.str)}get hasPopupData(){return f._hasPopupData(this.data)}_createContainer(e){var{data:t,parent:{page:r,viewport:i}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",t.id),this instanceof A||(a.tabIndex=c),a.style.zIndex=this.parent.zIndex++,this.data.popupRef&&a.setAttribute("aria-haspopup","dialog"),t.noRotate&&a.classList.add("norotate");var{pageWidth:o,pageHeight:s,pageX:l,pageY:u}=i.rawDims;if(!t.rect||this instanceof E){var{rotation:p}=t;return t.hasOwnCanvas||0===p||this.setRotation(p,a),a}var{width:f,height:v}=d(t.rect),g=n.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px");var m=t.borderStyle.horizontalCornerRadius,b=t.borderStyle.verticalCornerRadius;if(m>0||b>0){var y="calc(".concat(m,"px * var(--scale-factor)) / calc(").concat(b,"px * var(--scale-factor))");a.style.borderRadius=y}else if(this instanceof k){var _="calc(".concat(f,"px * var(--scale-factor)) / calc(").concat(v,"px * var(--scale-factor))");a.style.borderRadius=_}switch(t.borderStyle.style){case n.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case n.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case n.AnnotationBorderStyleType.BEVELED:(0,n.warn)("Unimplemented border style: beveled");break;case n.AnnotationBorderStyleType.INSET:(0,n.warn)("Unimplemented border style: inset");break;case n.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}var C=t.borderColor||null;C?(_classPrivateFieldSet(this,h,!0),a.style.borderColor=n.Util.makeHexColor(0|C[0],0|C[1],0|C[2])):a.style.borderWidth=0}a.style.left="".concat(100*(g[0]-l)/o,"%"),a.style.top="".concat(100*(g[1]-u)/s,"%");var{rotation:w}=t;return t.hasOwnCanvas||0===w?(a.style.width="".concat(100*f/o,"%"),a.style.height="".concat(100*v/s,"%")):this.setRotation(w,a),a}setRotation(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var r,n,{pageWidth:i,pageHeight:a}=this.parent.viewport.rawDims,{width:o,height:s}=d(this.data.rect);e%180===0?(r=100*o/i,n=100*s/a):(r=100*s/i,n=100*o/a),t.style.width="".concat(r,"%"),t.style.height="".concat(n,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}}get _commonActions(){var e=(e,t,r)=>{var n=r.detail[e],i=n[0],a=n.slice(1);r.target.style[t]=o.ColorConverters["".concat(i,"_HTML")](a),this.annotationStorage.setValue(this.data.id,{[t]:o.ColorConverters["".concat(i,"_rgb")](a)})};return(0,n.shadow)(this,"_commonActions",{display:e=>{var{display:t}=e.detail,r=t%2===1;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{var{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=>{var t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){var r=this._commonActions;for(var n of Object.keys(t.detail)){var i=e[n]||r[n];null===i||void 0===i||i(t)}}_setDefaultPropertiesFromJS(e){if(this.enableScripting){var t=this.annotationStorage.getRawValue(this.data.id);if(t){var r=this._commonActions;for(var[n,i]of Object.entries(t)){var a=r[n];a&&(a({detail:{[n]:i},target:e}),delete t[n])}}}}_createQuadrilaterals(){if(this.container){var{quadPoints:e}=this.data;if(e){var[t,r,n,i]=this.data.rect;if(1===e.length){var[,{x:a,y:o},{x:s,y:l}]=e[0];if(n===a&&i===o&&t===s&&r===l)return}var c,{style:u}=this.container;if(_classPrivateFieldGet(this,h)){var{borderColor:d,borderWidth:p}=u;u.borderWidth=0,c=["url('data:image/svg+xml;utf8,",'','')],this.container.classList.add("hasBorder")}var f=n-t,v=i-r,{svgFactory:g}=this,m=g.createElement("svg");m.classList.add("quadrilateralsContainer"),m.setAttribute("width",0),m.setAttribute("height",0);var b=g.createElement("defs");m.append(b);var y=g.createElement("clipPath"),_="clippath_".concat(this.data.id);for(var[,{x:A,y:C},{x:w,y:S}]of(y.setAttribute("id",_),y.setAttribute("clipPathUnits","objectBoundingBox"),b.append(y),e)){var k,x=g.createElement("rect"),P=(w-t)/f,E=(i-C)/v,O=(A-w)/f,T=(C-S)/v;x.setAttribute("x",P),x.setAttribute("y",E),x.setAttribute("width",O),x.setAttribute("height",T),y.append(x),null===(k=c)||void 0===k||k.push(''))}_classPrivateFieldGet(this,h)&&(c.push("')"),u.backgroundImage=c.join("")),this.container.append(m),this.container.style.clipPath="url(#".concat(_,")")}}}_createPopup(){var{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");var r=new E({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(r.render())}render(){(0,n.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];if(this._fieldObjects){var i=this._fieldObjects[e];if(i)for(var{page:a,id:o,exportValues:s}of i)if(-1!==a&&o!==t){var l="string"===typeof s?s:null,c=document.querySelector('[data-element-id="'.concat(o,'"]'));!c||u.has(c)?r.push({id:o,exportValue:l,domElement:c}):(0,n.warn)("_getElementsByName - element not allowed: ".concat(o))}return r}for(var d of document.getElementsByName(e)){var{exportValue:p}=d,h=d.getAttribute("data-element-id");h!==t&&u.has(d)&&r.push({id:h,exportValue:p,domElement:d})}return r}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(){var e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(var t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){var{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{var r;null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}var v=new WeakSet,g=new WeakSet;class m extends f{constructor(e){var 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,g),_classPrivateMethodInitSpec(this,v),this.isTooltipOnly=e.data.isTooltipOnly}render(){var{data:e,linkService:t}=this,r=document.createElement("a");r.setAttribute("data-element-id",e.id);var n=!1;return e.url?(t.addLinkAttributes(r,e.url,e.newWindow),n=!0):e.action?(this._bindNamedAction(r,e.action),n=!0):e.attachment?(this._bindAttachment(r,e.attachment),n=!0):e.setOCGState?(_classPrivateMethodGet(this,g,y).call(this,r,e.setOCGState),n=!0):e.dest?(this._bindLink(r,e.dest),n=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),n=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),n=!0):this.isTooltipOnly&&!n&&(this._bindLink(r,""),n=!0)),this.container.classList.add("linkAnnotation"),n&&this.container.append(r),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&_classPrivateMethodGet(this,v,b).call(this)}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),_classPrivateMethodGet(this,v,b).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},_classPrivateMethodGet(this,v,b).call(this)}_bindJSAction(e,t){var r=this;e.href=this.linkService.getAnchorUrl("");var n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),i=function(i){var a=n.get(i);if(!a)return 1;e[a]=()=>{var e;return null===(e=r.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:r,detail:{id:t.id,name:i}}),!1}};for(var a of Object.keys(t.actions))i(a);e.onclick||(e.onclick=()=>!1),_classPrivateMethodGet(this,v,b).call(this)}_bindResetFormAction(e,t){var r=e.onclick;if(r||(e.href=this.linkService.getAnchorUrl("")),_classPrivateMethodGet(this,v,b).call(this),!this._fieldObjects)return(0,n.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(r||(e.onclick=()=>!1));e.onclick=()=>{null===r||void 0===r||r();var{fields:e,refs:i,include:a}=t,o=[];if(0!==e.length||0!==i.length){var s=new Set(i);for(var l of e){var c=this._fieldObjects[l]||[];for(var{id:d}of c)s.add(d)}for(var p of Object.values(this._fieldObjects))for(var h of p)s.has(h.id)===a&&o.push(h)}else for(var f of Object.values(this._fieldObjects))o.push(...f);var v,g=this.annotationStorage,m=[];for(var b of o){var{id:y}=b;switch(m.push(y),b.type){case"text":var _=b.defaultValue||"";g.setValue(y,{value:_});break;case"checkbox":case"radiobutton":var A=b.defaultValue===b.exportValues;g.setValue(y,{value:A});break;case"combobox":case"listbox":var C=b.defaultValue||"";g.setValue(y,{value:C});break;default:continue}var w=document.querySelector('[data-element-id="'.concat(y,'"]'));w&&(u.has(w)?w.dispatchEvent(new Event("resetform")):(0,n.warn)("_bindResetFormAction - element not allowed: ".concat(y)))}return this.enableScripting&&(null===(v=this.linkService.eventBus)||void 0===v||v.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:m,name:"ResetForm"}})),!1}}}function b(){this.container.setAttribute("data-internal-link","")}function y(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),_classPrivateMethodGet(this,v,b).call(this)}class _ extends f{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");var 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 A 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){var{isWin:t,isMac:r}=n.FeatureTest.platform;return t&&e.ctrlKey||r&&e.metaKey}_setEventListener(e,t,r,n,i){r.includes("mouse")?e.addEventListener(r,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:i(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(r,(e=>{var a;if("blur"===r){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===r){if(t.focused)return;t.focused=!0}i&&(null===(a=this.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:i(e)}}))}))}_setEventListeners(e,t,r,n){for(var[i,a]of r){var o,s,l;("Action"===a||null!==(o=this.data.actions)&&void 0!==o&&o[a])&&("Focus"!==a&&"Blur"!==a||t||(t={focused:!1}),this._setEventListener(e,t,i,a,n),"Focus"!==a||null!==(s=this.data.actions)&&void 0!==s&&s.Blur?"Blur"!==a||null!==(l=this.data.actions)&&void 0!==l&&l.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}}_setBackgroundColor(e){var t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":n.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){var t,{fontColor:r}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,a=e.style,o=e=>Math.round(10*e)/10;if(this.data.multiLine){var s=Math.abs(this.data.rect[3]-this.data.rect[1]-2),l=s/(Math.round(s/(n.LINE_FACTOR*i))||1);t=Math.min(i,o(l/n.LINE_FACTOR))}else{var c=Math.abs(this.data.rect[3]-this.data.rect[1]-2);t=Math.min(i,o(c/n.LINE_FACTOR))}a.fontSize="calc(".concat(t,"px * var(--scale-factor))"),a.color=n.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(a.textAlign=["left","center","right"][this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class C extends A{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,n){var i=this.annotationStorage;for(var a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=r),i.setValue(a.id,{[n]:r})}render(){var e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");var r=null;if(this.renderForms){var n,i=e.getValue(t,{value:this.data.fieldValue}),a=i.value||"",o=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;o&&a.length>o&&(a=a.slice(0,o));var s=i.formattedValue||(null===(n=this.data.textContent)||void 0===n?void 0:n.join("\n"))||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));var l,d,p={userValue:a,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((r=document.createElement("textarea")).textContent=null!==(l=s)&&void 0!==l?l:a,this.data.doNotScroll&&(r.style.overflowY="hidden")):((r=document.createElement("input")).type="text",r.setAttribute("value",null!==(d=s)&&void 0!==d?d:a),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),u.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=c,this._setRequired(r,this.data.required),o&&(r.maxLength=o),r.addEventListener("input",(n=>{e.setValue(t,{value:n.target.value}),this.setPropertyOnSiblings(r,"value",n.target.value,"value"),p.formattedValue=null})),r.addEventListener("resetform",(e=>{var t,n=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";r.value=p.userValue=n,p.formattedValue=null}));var h=e=>{var{formattedValue:t}=p;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var f;r.addEventListener("focus",(e=>{if(!p.focused){var{target:t}=e;p.userValue&&(t.value=p.userValue),p.lastCommittedValue=t.value,p.commitKey=1,p.focused=!0}})),r.addEventListener("updatefromsandbox",(r=>{this.showElementAndHideCanvas(r.target);var n={value(r){var n;p.userValue=null!==(n=r.detail.value)&&void 0!==n?n:"",e.setValue(t,{value:p.userValue.toString()}),r.target.value=p.userValue},formattedValue(r){var{formattedValue:n}=r.detail;p.formattedValue=n,null!==n&&void 0!==n&&r.target!==document.activeElement&&(r.target.value=n),e.setValue(t,{formattedValue:n})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:r=>{var n,{charLimit:i}=r.detail,{target:a}=r;if(0!==i){a.setAttribute("maxLength",i);var o=p.userValue;!o||o.length<=i||(o=o.slice(0,i),a.value=p.userValue=o,e.setValue(t,{value:o}),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:1,selStart:a.selectionStart,selEnd:a.selectionEnd}}))}else a.removeAttribute("maxLength")}};this._dispatchEventFromSandbox(n,r)})),r.addEventListener("keydown",(e=>{var r;p.commitKey=1;var n=-1;if("Escape"===e.key?n=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(p.commitKey=3):n=2,-1!==n){var{value:i}=e.target;p.lastCommittedValue!==i&&(p.lastCommittedValue=i,p.userValue=i,null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}}));var v=h;h=null,r.addEventListener("blur",(e=>{if(p.focused&&e.relatedTarget){p.focused=!1;var r,{value:n}=e.target;p.userValue=n,p.lastCommittedValue!==n&&(null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:p.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),v(e)}})),null!==(f=this.data.actions)&&void 0!==f&&f.Keystroke&&r.addEventListener("beforeinput",(e=>{var r;p.lastCommittedValue=null;var{data:n,target:i}=e,{value:a,selectionStart:o,selectionEnd:s}=i,l=o,c=s;switch(e.inputType){case"deleteWordBackward":var u=a.substring(0,o).match(/\w*[^\w]*$/);u&&(l-=u[0].length);break;case"deleteWordForward":var d=a.substring(o).match(/^[^\w]*\w*/);d&&(c+=d[0].length);break;case"deleteContentBackward":o===s&&(l-=1);break;case"deleteContentForward":o===s&&(c+=1)}e.preventDefault(),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,change:n||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(r,p,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(h&&r.addEventListener("blur",h),this.data.comb){var g=(this.data.rect[2]-this.data.rect[0])/o;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(g,"px * var(--scale-factor) - 1ch)")}}else(r=document.createElement("div")).textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class w extends A{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class S extends A{constructor(e){super(e,{isRenderable:e.renderForms})}render(){var e=this.annotationStorage,t=this.data,r=t.id,n=e.getValue(r,{value:t.exportValue===t.fieldValue}).value;"string"===typeof n&&(n="Off"!==n,e.setValue(r,{value:n})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var i=document.createElement("input");return u.add(i),i.setAttribute("data-element-id",r),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,n&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=c,i.addEventListener("change",(n=>{var{name:i,checked:a}=n.target;for(var o of this._getElementsByName(i,r)){var s=a&&o.exportValue===t.exportValue;o.domElement&&(o.domElement.checked=s),e.setValue(o.id,{value:s})}e.setValue(r,{value:a})})),i.addEventListener("resetform",(e=>{var r=t.defaultFieldValue||"Off";e.target.checked=r===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{var n={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(r,{value:t.target.checked})}};this._dispatchEventFromSandbox(n,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 k extends A{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");var e=this.annotationStorage,t=this.data,r=t.id,n=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof n&&(n=n!==t.buttonValue,e.setValue(r,{value:n}));var i=document.createElement("input");if(u.add(i),i.setAttribute("data-element-id",r),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,n&&i.setAttribute("checked",!0),i.tabIndex=c,i.addEventListener("change",(t=>{var{name:n,checked:i}=t.target;for(var a of this._getElementsByName(n,r))e.setValue(a.id,{value:!1});e.setValue(r,{value:i})})),i.addEventListener("resetform",(e=>{var r=t.defaultFieldValue;e.target.checked=null!==r&&void 0!==r&&r===t.buttonValue})),this.enableScripting&&this.hasJSActions){var a=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{var n={value:t=>{var n=a===t.detail.value;for(var i of this._getElementsByName(t.target.name)){var o=n&&i.id===r;i.domElement&&(i.domElement.checked=o),e.setValue(i.id,{value:o})}}};this._dispatchEventFromSandbox(n,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 x extends m{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){var e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);var t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class P extends A{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");var e=this.annotationStorage,t=this.data.id,r=e.getValue(t,{value:this.data.fieldValue}),n=document.createElement("select");u.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,this._setRequired(n,this.data.required),n.name=this.data.fieldName,n.tabIndex=c;var i=this.data.combo&&this.data.options.length>0;for(var a of(this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0)),n.addEventListener("resetform",(e=>{var t=this.data.defaultFieldValue;for(var r of n.options)r.selected=r.value===t})),this.data.options)){var o=document.createElement("option");o.textContent=a.displayValue,o.value=a.exportValue,r.value.includes(a.exportValue)&&(o.setAttribute("selected",!0),i=!1),n.append(o)}var s=null;if(i){var l=document.createElement("option");l.value=" ",l.setAttribute("hidden",!0),l.setAttribute("selected",!0),n.prepend(l),s=()=>{l.remove(),n.removeEventListener("input",s),s=null},n.addEventListener("input",s)}var d=e=>{var t=e?"value":"textContent",{options:r,multiple:i}=n;return i?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[t])):-1===r.selectedIndex?null:r[r.selectedIndex][t]},p=d(!1),h=e=>{var t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(n.addEventListener("updatefromsandbox",(r=>{var i={value(r){var i;null===(i=s)||void 0===i||i();var a=r.detail.value,o=new Set(Array.isArray(a)?a:[a]);for(var l of n.options)l.selected=o.has(l.value);e.setValue(t,{value:d(!0)}),p=d(!1)},multipleSelection(e){n.multiple=!0},remove(r){var i=n.options,a=r.detail.remove;if(i[a].selected=!1,n.remove(a),i.length>0){var o=Array.prototype.findIndex.call(i,(e=>e.selected));-1===o&&(i[0].selected=!0)}e.setValue(t,{value:d(!0),items:h(r)}),p=d(!1)},clear(r){for(;0!==n.length;)n.remove(0);e.setValue(t,{value:null,items:[]}),p=d(!1)},insert(r){var{index:i,displayValue:a,exportValue:o}=r.detail.insert,s=n.children[i],l=document.createElement("option");l.textContent=a,l.value=o,s?s.before(l):n.append(l),e.setValue(t,{value:d(!0),items:h(r)}),p=d(!1)},items(r){for(var{items:i}=r.detail;0!==n.length;)n.remove(0);for(var a of i){var{displayValue:o,exportValue:s}=a,l=document.createElement("option");l.textContent=o,l.value=s,n.append(l)}n.options.length>0&&(n.options[0].selected=!0),e.setValue(t,{value:d(!0),items:h(r)}),p=d(!1)},indices(r){var n=new Set(r.detail.indices);for(var i of r.target.options)i.selected=n.has(i.index);e.setValue(t,{value:d(!0)}),p=d(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,r)})),n.addEventListener("input",(r=>{var n,i=d(!0);e.setValue(t,{value:i}),r.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:p,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(n,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))):n.addEventListener("input",(function(r){e.setValue(t,{value:d(!0)})})),this.data.combo&&this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class E extends f{constructor(e){var{data:t,elements:r}=e;super(e,{isRenderable:f._hasPopupData(t)}),this.elements=r}render(){this.container.classList.add("popupAnnotation");var e=new X({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(var r of this.elements)r.popup=e,t.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>"".concat(n.AnnotationPrefix).concat(e))).join(",")),this.container}}var O=new WeakMap,T=new WeakMap,R=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,N=new WeakMap,L=new WeakMap,Z=new WeakMap,G=new WeakMap,z=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakSet,V=new WeakSet,Y=new WeakSet,K=new WeakSet;class X{constructor(e){var{container:t,color:r,elements:n,titleObj:a,modificationDate:o,contentsObj:s,richText:l,parent:c,rect:u,parentRect:d,open:p}=e;_classPrivateMethodInitSpec(this,K),_classPrivateMethodInitSpec(this,Y),_classPrivateMethodInitSpec(this,V),_classPrivateMethodInitSpec(this,H),_classPrivateFieldInitSpec(this,O,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:_classPrivateMethodGet(this,H,$).bind(this)}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:_classPrivateMethodGet(this,K,ee).bind(this)}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:_classPrivateMethodGet(this,Y,J).bind(this)}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:_classPrivateMethodGet(this,V,Q).bind(this)}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:!1}),_classPrivateFieldSet(this,D,t),_classPrivateFieldSet(this,W,a),_classPrivateFieldSet(this,B,s),_classPrivateFieldSet(this,U,l),_classPrivateFieldSet(this,N,c),_classPrivateFieldSet(this,I,r),_classPrivateFieldSet(this,z,u),_classPrivateFieldSet(this,L,d),_classPrivateFieldSet(this,j,n);var h=i.PDFDateString.toDateObject(o);for(var f of(h&&_classPrivateFieldSet(this,O,c.l10n.get("annotation_date_string",{date:h.toLocaleDateString(),time:h.toLocaleTimeString()})),this.trigger=n.flatMap((e=>e.getElementsToTriggerPopup())),this.trigger))f.addEventListener("click",_classPrivateFieldGet(this,F)),f.addEventListener("mouseenter",_classPrivateFieldGet(this,M)),f.addEventListener("mouseleave",_classPrivateFieldGet(this,R)),f.classList.add("popupTriggerArea");for(var v of n){var g;null===(g=v.container)||void 0===g||g.addEventListener("keydown",_classPrivateFieldGet(this,T))}_classPrivateFieldGet(this,D).hidden=!0,p&&_classPrivateMethodGet(this,V,Q).call(this)}render(){if(!_classPrivateFieldGet(this,G)){var{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:r,pageX:i,pageY:a}}}=_classPrivateFieldGet(this,N),o=_classPrivateFieldSet(this,G,document.createElement("div"));if(o.className="popup",_classPrivateFieldGet(this,I)){var s=o.style.outlineColor=n.Util.makeHexColor(..._classPrivateFieldGet(this,I));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?o.style.backgroundColor="color-mix(in srgb, ".concat(s," 30%, white)"):o.style.backgroundColor=n.Util.makeHexColor(..._classPrivateFieldGet(this,I).map((e=>Math.floor(.7*(255-e)+e))))}var c=document.createElement("span");c.className="header";var u=document.createElement("h1");if(c.append(u),({dir:u.dir,str:u.textContent}=_classPrivateFieldGet(this,W)),o.append(c),_classPrivateFieldGet(this,O)){var d=document.createElement("span");d.classList.add("popupDate"),_classPrivateFieldGet(this,O).then((e=>{d.textContent=e})),c.append(d)}var p=_classPrivateFieldGet(this,B),h=_classPrivateFieldGet(this,U);if(null===h||void 0===h||!h.str||null!==p&&void 0!==p&&p.str&&p.str!==h.str){var f=this._formatContents(p);o.append(f)}else l.XfaLayer.render({xfaHtml:h.html,intent:"richText",div:o}),o.lastChild.classList.add("richText","popupContent");var v=!!_classPrivateFieldGet(this,L),g=_classPrivateFieldGet(this,v?L:z);for(var m of _classPrivateFieldGet(this,j))if(!g||null!==n.Util.intersect(m.data.rect,g)){g=m.data.rect,v=!0;break}var b=n.Util.normalizeRect([g[0],e[3]-g[1]+e[1],g[2],e[3]-g[3]+e[1]]),y=v?g[2]-g[0]+5:0,_=b[0]+y,A=b[1],{style:C}=_classPrivateFieldGet(this,D);C.left="".concat(100*(_-i)/t,"%"),C.top="".concat(100*(A-a)/r,"%"),_classPrivateFieldGet(this,D).append(o)}}_formatContents(e){var{str:t,dir:r}=e,n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;for(var i=t.split(/(?:\r\n?|\n)/),a=0,o=i.length;a{"Enter"===e.key&&(i?e.metaKey:e.ctrlKey)&&_classPrivateMethodGet(this,_e,Ce).call(this)})),!r.popupRef&&this.hasPopupData?this._createPopup():e.classList.add("popupTriggerArea"),t.append(e),t}getElementsToTriggerPopup(){return _classPrivateFieldGet(this,ye)}addHighlightArea(){this.container.classList.add("highlightArea")}}function Ce(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}var we=new WeakMap,Se=new WeakMap,ke=new WeakMap,xe=new WeakSet,Pe=new WeakSet;function Ee(e,t){var r,i=e.firstChild||e;i.id="".concat(n.AnnotationPrefix).concat(t),this.div.append(e),null===(r=_classPrivateFieldGet(this,we))||void 0===r||r.moveElementInDOM(this.div,e,i,!1)}function Oe(){if(_classPrivateFieldGet(this,Se)){var e=this.div;for(var[t,r]of _classPrivateFieldGet(this,Se)){var n=e.querySelector('[data-annotation-id="'.concat(t,'"]'));if(n){var{firstChild:i}=n;i?"CANVAS"===i.nodeName?i.replaceWith(r):i.before(r):n.append(r)}}_classPrivateFieldGet(this,Se).clear()}}t.AnnotationLayer=class{constructor(e){var{div:t,accessibilityManager:r,annotationCanvasMap:n,l10n:i,page:a,viewport:o}=e;_classPrivateMethodInitSpec(this,Pe),_classPrivateMethodInitSpec(this,xe),_classPrivateFieldInitSpec(this,we,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Se,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ke,{writable:!0,value:new Map}),this.div=t,_classPrivateFieldSet(this,we,r),_classPrivateFieldSet(this,Se,n),this.l10n=i,this.page=a,this.viewport=o,this.zIndex=0,this.l10n||(this.l10n=s.NullL10n)}render(e){var t=this;return _asyncToGenerator((function*(){var{annotations:r}=e,o=t.div;(0,i.setLayerDimensions)(o,t.viewport);var s=new Map,l={data:null,layer:o,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new a.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:t,elements:null};for(var c of r)if(!c.noHTML){var u=c.annotationType===n.AnnotationType.POPUP;if(u){var h=s.get(c.id);if(!h)continue;l.elements=h}else{var{width:f,height:v}=d(c.rect);if(f<=0||v<=0)continue}l.data=c;var g=p.create(l);if(g.isRenderable){if(!u&&c.popupRef){var m=s.get(c.popupRef);m?m.push(g):s.set(c.popupRef,[g])}g.annotationEditorType>0&&_classPrivateFieldGet(t,ke).set(g.data.id,g);var b=g.render();c.hidden&&(b.style.visibility="hidden"),_classPrivateMethodGet(t,xe,Ee).call(t,b,c.id)}}_classPrivateMethodGet(t,Pe,Oe).call(t),yield t.l10n.translate(o)}))()}update(e){var{viewport:t}=e,r=this.div;this.viewport=t,(0,i.setLayerDimensions)(r,{rotation:t.rotation}),_classPrivateMethodGet(this,Pe,Oe).call(this),r.hidden=!1}getEditableAnnotations(){return Array.from(_classPrivateFieldGet(this,ke).values())}getEditableAnnotation(e){return _classPrivateFieldGet(this,ke).get(e)}}},(e,t)=>{function r(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function n(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){var[t,r,n,i]=e;return["G",1-Math.min(1,.3*t+.59*n+.11*r+i)]}static G_CMYK(e){var[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){var[t]=e;return["RGB",t,t,t]}static G_rgb(e){var[t]=e;return[t=n(t),t,t]}static G_HTML(e){var[t]=e,n=r(t);return"#".concat(n).concat(n).concat(n)}static RGB_G(e){var[t,r,n]=e;return["G",.3*t+.59*r+.11*n]}static RGB_rgb(e){return e.map(n)}static RGB_HTML(e){return"#".concat(e.map(r).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){var[t,r,n,i]=e;return["RGB",1-Math.min(1,t+i),1-Math.min(1,n+i),1-Math.min(1,r+i)]}static CMYK_rgb(e){var[t,r,i,a]=e;return[n(1-Math.min(1,t+a)),n(1-Math.min(1,i+a)),n(1-Math.min(1,r+a))]}static CMYK_HTML(e){var t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){var[t,r,n]=e,i=1-t,a=1-r,o=1-n;return["CMYK",i,a,o,Math.min(i,a,o)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=n;var r={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 n(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 r[e]||""}r.print_progress_percent="{{progress}}%";var i={getLanguage(){return _asyncToGenerator((function*(){return"en-us"}))()},getDirection(){return _asyncToGenerator((function*(){return"ltr"}))()},get(e){var t=arguments;return _asyncToGenerator((function*(){var r=t.length>1&&void 0!==t[1]?t[1]:null;return function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(t.length>2&&void 0!==t[2]?t[2]:n(e,r),r)}))()},translate(e){return _asyncToGenerator((function*(){}))()}};t.NullL10n=i},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var n=r(25);t.XfaLayer=class{static setupStorage(e,t,r,n,i){var a=n.getValue(t,{value:null});switch(r.name){case"textarea":if(null!==a.value&&(e.textContent=a.value),"print"===i)break;e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(a.value===r.attributes.xfaOn?e.setAttribute("checked",!0):a.value===r.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{n.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&e.setAttribute("value",a.value),"print"===i)break;e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==a.value)for(var o of(e.setAttribute("value",a.value),r.children))o.attributes.value===a.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected;e.addEventListener("input",(e=>{var r=e.target.options,i=-1===r.selectedIndex?"":r[r.selectedIndex].value;n.setValue(t,{value:i})}))}}static setAttributes(e){var{html:t,element:r,storage:n=null,intent:i,linkService:a}=e,{attributes:o}=r,s=t instanceof HTMLAnchorElement;for(var[l,c]of("radio"===o.type&&(o.name="".concat(o.name,"-").concat(i)),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&&a.addLinkAttributes(t,o.href,o.newWindow),n&&o.dataId&&this.setupStorage(t,o.dataId,r,n)}static render(e){var t=e.annotationStorage,r=e.linkService,i=e.xfaHtml,a=e.intent||"display",o=document.createElement(i.name);i.attributes&&this.setAttributes({html:o,element:i,intent:a,linkService:r});var s=[[i,-1,o]],l=e.div;if(l.append(o),e.viewport){var c="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=c}"richText"!==a&&l.setAttribute("class","xfaLayer xfaFont");for(var u=[];s.length>0;){var d,[p,h,f]=s.at(-1);if(h+1!==p.children.length){var v=p.children[++s.at(-1)[1]];if(null!==v){var{name:g}=v;if("#text"!==g){var m=null!==v&&void 0!==v&&null!==(d=v.attributes)&&void 0!==d&&d.xmlns?document.createElementNS(v.attributes.xmlns,g):document.createElement(g);if(f.append(m),v.attributes&&this.setAttributes({html:m,element:v,storage:t,intent:a,linkService:r}),v.children&&v.children.length>0)s.push([v,-1,m]);else if(v.value){var b=document.createTextNode(v.value);n.XfaText.shouldBuildText(g)&&u.push(b),m.append(b)}}else{var y=document.createTextNode(v.value);u.push(y),f.append(y)}}}else s.pop()}for(var _ of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))_.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var i=r(1),a=r(4),o=r(29),s=r(6),l=r(5),c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,_=new WeakMap,A=new WeakMap,C=new WeakMap,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet,P=new WeakSet,E=new WeakSet,O=new WeakSet,T=new WeakSet,R=new WeakSet,M=new WeakSet,F=new WeakSet,I=new WeakSet,D=new WeakSet,B=new WeakSet,j=new WeakSet,N=new WeakSet,L=new WeakSet,Z=new WeakSet,G=new WeakSet,z=new WeakSet,U=new WeakSet,W=new WeakSet,q=new WeakSet;class H extends a.AnnotationEditor{constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"inkEditor"})),_classPrivateMethodInitSpec(this,q),_classPrivateMethodInitSpec(this,W),_classPrivateMethodInitSpec(this,U),_classPrivateMethodInitSpec(this,z),_classPrivateMethodInitSpec(this,G),_classPrivateMethodInitSpec(this,Z),_classPrivateMethodInitSpec(this,L),_classPrivateMethodInitSpec(this,N),_classPrivateMethodInitSpec(this,j),_classPrivateMethodInitSpec(this,B),_classPrivateMethodInitSpec(this,D),_classPrivateMethodInitSpec(this,I),_classPrivateMethodInitSpec(this,F),_classPrivateMethodInitSpec(this,M),_classPrivateMethodInitSpec(this,R),_classPrivateMethodInitSpec(this,T),_classPrivateMethodInitSpec(this,O),_classPrivateMethodInitSpec(this,E),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateFieldInitSpec(this,c,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.canvasPointermove.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.canvasPointerleave.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.canvasPointerup.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.canvasPointerdown.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:new Path2D}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,C,{writable:!0,value: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){a.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:H._defaultThickness=t;break;case i.AnnotationEditorParamsType.INK_COLOR:H._defaultColor=t;break;case i.AnnotationEditorParamsType.INK_OPACITY:H._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,w,V).call(this,t);break;case i.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,S,Y).call(this,t);break;case i.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,k,K).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,H._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,H._defaultColor||a.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*H._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||H._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||H._defaultColor||a.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:H._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(_classPrivateMethodGet(this,j,se).call(this),_classPrivateMethodGet(this,N,le).call(this)),this.isAttachedToDOM||(this.parent.add(this),_classPrivateMethodGet(this,L,ce).call(this)),_classPrivateMethodGet(this,q,be).call(this)))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(this,y).disconnect(),_classPrivateFieldSet(this,y,null),super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){var[e,t]=this.parentDimensions,r=this.width*e,n=this.height*t;this.setDimensions(r,n)}enableEditMode(){_classPrivateFieldGet(this,g)||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(this,f)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,f)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(this,g)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(this,g,!0),this.div.classList.add("disabled"),_classPrivateMethodGet(this,q,be).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(this,g)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_classPrivateMethodGet(this,E,Q).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),_classPrivateMethodGet(this,O,J).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),_classPrivateMethodGet(this,B,oe).call(this,e)}canvasPointerleave(e){_classPrivateMethodGet(this,B,oe).call(this,e)}get isResizable(){return!this.isEmpty()&&_classPrivateFieldGet(this,g)}render(){if(this.div)return this.div;var e,t;this.width&&(e=this.x,t=this.y),super.render(),a.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)}));var[r,n,i,o]=_classPrivateMethodGet(this,x,X).call(this);if(this.setAt(r,n,0,0),this.setDims(i,o),_classPrivateMethodGet(this,j,se).call(this),this.width){var[s,l]=this.parentDimensions;this.setAspectRatio(this.width*s,this.height*l),this.setAt(e*s,t*l,this.width*s,this.height*l),_classPrivateFieldSet(this,b,!0),_classPrivateMethodGet(this,L,ce).call(this),this.setDims(this.width*s,this.height*l),_classPrivateMethodGet(this,D,ae).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _classPrivateMethodGet(this,N,le).call(this),this.div}setDimensions(e,t){var r=Math.round(e),n=Math.round(t);if(_classPrivateFieldGet(this,_)!==r||_classPrivateFieldGet(this,A)!==n){_classPrivateFieldSet(this,_,r),_classPrivateFieldSet(this,A,n),this.canvas.style.visibility="hidden";var[i,a]=this.parentDimensions;this.width=e/i,this.height=t/a,this.fixAndSetPosition(),_classPrivateFieldGet(this,g)&&_classPrivateMethodGet(this,Z,ue).call(this,e,t),_classPrivateMethodGet(this,L,ce).call(this),_classPrivateMethodGet(this,D,ae).call(this),this.canvas.style.visibility="visible",this.fixDims()}}static deserialize(e,t,r){if(e instanceof o.InkAnnotationElement)return null;var n=super.deserialize(e,t,r);n.thickness=e.thickness,n.color=i.Util.makeHexColor(...e.color),n.opacity=e.opacity;var[s,l]=n.pageDimensions,d=n.width*s,p=n.height*l,h=n.parentScale,f=e.thickness/2;_classPrivateFieldSet(n,g,!0),_classPrivateFieldSet(n,_,Math.round(d)),_classPrivateFieldSet(n,A,Math.round(p));var{paths:v,rect:m,rotation:b}=e;for(var{bezier:y}of v){y=_classStaticPrivateMethodGet(H,H,fe).call(H,y,m,b);var C=[];n.paths.push(C);for(var w=h*(y[0]-f),S=h*(y[1]-f),k=2,x=y.length;k{this.thickness=e,_classPrivateMethodGet(this,q,be).call(this)},undo:()=>{this.thickness=t,_classPrivateMethodGet(this,q,be).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function Y(e){var t=this.color;this.addCommands({cmd:()=>{this.color=e,_classPrivateMethodGet(this,D,ae).call(this)},undo:()=>{this.color=t,_classPrivateMethodGet(this,D,ae).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function K(e){e/=100;var t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,_classPrivateMethodGet(this,D,ae).call(this)},undo:()=>{this.opacity=t,_classPrivateMethodGet(this,D,ae).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function X(){var{parentRotation:e,parentDimensions:[t,r]}=this;switch(e){case 90:return[0,r,r,t];case 180:return[t,r,t,r];case 270:return[t,0,r,t];default:return[0,0,t,r]}}function $(){var{ctx:e,color:t,opacity:r,thickness:n,parentScale:i,scaleFactor:a}=this;e.lineWidth=n*i/a,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,l.opacityToHex)(r))}function Q(e,t){var r;this.canvas.addEventListener("contextmenu",s.noContextMenu),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(this,p)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(this,d)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(this,h)),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.isEditing=!0,_classPrivateFieldGet(this,b)||(_classPrivateFieldSet(this,b,!0),_classPrivateMethodGet(this,L,ce).call(this),this.thickness||(this.thickness=n._defaultThickness),this.color||(this.color=n._defaultColor||a.AnnotationEditor._defaultLineColor),null!==(r=this.opacity)&&void 0!==r||(this.opacity=n._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(this,m,!1),_classPrivateMethodGet(this,P,$).call(this),_classPrivateFieldSet(this,C,(()=>{_classPrivateMethodGet(this,M,re).call(this),_classPrivateFieldGet(this,C)&&window.requestAnimationFrame(_classPrivateFieldGet(this,C))})),window.requestAnimationFrame(_classPrivateFieldGet(this,C))}function J(e,t){var[r,n]=this.currentPath.at(-1);if(!(this.currentPath.length>1&&e===r&&t===n)){var i=this.currentPath,a=_classPrivateFieldGet(this,v);if(i.push([e,t]),_classPrivateFieldSet(this,m,!0),i.length<=2)return a.moveTo(...i[0]),void a.lineTo(e,t);3===i.length&&(_classPrivateFieldSet(this,v,a=new Path2D),a.moveTo(...i[0])),_classPrivateMethodGet(this,F,ne).call(this,a,...i.at(-3),...i.at(-2),e,t)}}function ee(){if(0!==this.currentPath.length){var e=this.currentPath.at(-1);_classPrivateFieldGet(this,v).lineTo(...e)}}function te(e,t){var r;if(_classPrivateFieldSet(this,C,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_classPrivateMethodGet(this,O,J).call(this,e,t),_classPrivateMethodGet(this,T,ee).call(this),1!==this.currentPath.length)r=_classPrivateMethodGet(this,I,ie).call(this);else{var n=[e,t];r=[[n,n.slice(),n.slice(),n]]}var i=_classPrivateFieldGet(this,v),a=this.currentPath;this.currentPath=[],_classPrivateFieldSet(this,v,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(a),this.paths.push(r),this.bezierPath2D.push(i),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_classPrivateMethodGet(this,j,se).call(this),_classPrivateMethodGet(this,N,le).call(this)),_classPrivateMethodGet(this,q,be).call(this))},mustExec:!0})}function re(){if(_classPrivateFieldGet(this,m)){_classPrivateFieldSet(this,m,!1);Math.ceil(this.thickness*this.parentScale);var e=this.currentPath.slice(-3),t=e.map((e=>e[0])),r=e.map((e=>e[1])),{ctx:n}=(Math.min(...t),Math.max(...t),Math.min(...r),Math.max(...r),this);for(var i of(n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height),this.bezierPath2D))n.stroke(i);n.stroke(_classPrivateFieldGet(this,v)),n.restore()}}function ne(e,t,r,n,i,a,o){var s=(t+n)/2,l=(r+i)/2,c=(n+a)/2,u=(i+o)/2;e.bezierCurveTo(s+2*(n-s)/3,l+2*(i-l)/3,c+2*(n-c)/3,u+2*(i-u)/3,c,u)}function ie(){var e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];var t,r=[],[n,i]=e[0];for(t=1;t{this.canvas.removeEventListener("contextmenu",s.noContextMenu)}),10),_classPrivateMethodGet(this,R,te).call(this,e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function se(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",a.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 le(){_classPrivateFieldSet(this,y,new ResizeObserver((e=>{var t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}))),_classPrivateFieldGet(this,y).observe(this.div)}function ce(){if(_classPrivateFieldGet(this,b)){var[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_classPrivateMethodGet(this,G,de).call(this)}}function ue(e,t){var r=_classPrivateMethodGet(this,W,me).call(this),n=(e-r)/_classPrivateFieldGet(this,u),i=(t-r)/_classPrivateFieldGet(this,c);this.scaleFactor=Math.min(n,i)}function de(){var e=_classPrivateMethodGet(this,W,me).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function pe(e){for(var t=new Path2D,r=0,n=e.length;r0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(_classPrivateFieldGet(this,g)){var t=_classPrivateMethodGet(this,U,ge).call(this),r=_classPrivateMethodGet(this,W,me).call(this);_classPrivateFieldSet(this,u,Math.max(a.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(this,c,Math.max(a.AnnotationEditor.MIN_SIZE,t[3]-t[1]));var n=Math.ceil(r+_classPrivateFieldGet(this,u)*this.scaleFactor),i=Math.ceil(r+_classPrivateFieldGet(this,c)*this.scaleFactor),[o,s]=this.parentDimensions;this.width=n/o,this.height=i/s,this.setAspectRatio(n,i);var l=this.translationX,d=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_classPrivateMethodGet(this,L,ce).call(this),_classPrivateMethodGet(this,D,ae).call(this),_classPrivateFieldSet(this,_,n),_classPrivateFieldSet(this,A,i),this.setDims(n,i);var p=e?r/this.scaleFactor/2:0;this.translate(l-this.translationX-p,d-this.translationY-p)}else _classPrivateMethodGet(this,D,ae).call(this)}n=H,_defineProperty(H,"_defaultColor",null),_defineProperty(H,"_defaultOpacity",1),_defineProperty(H,"_defaultThickness",1),_defineProperty(H,"_type","ink"),t.InkEditor=H},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var i=r(1),a=r(4),o=r(6),s=r(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakSet,y=new WeakSet,_=new WeakSet,A=new WeakSet,C=new WeakSet,w=new WeakSet,S=new WeakSet,k=new WeakSet,x=new WeakSet;class P extends a.AnnotationEditor{constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"stampEditor"})),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,l,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldSet(this,d,e.bitmapUrl),_classPrivateFieldSet(this,p,e.bitmapFile)}static initialize(e){a.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(this,c)&&(_classPrivateFieldSet(this,l,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(this,c)),null===(e=_classPrivateFieldGet(this,h))||void 0===e||e.remove(),_classPrivateFieldSet(this,h,null),null===(t=_classPrivateFieldGet(this,f))||void 0===t||t.disconnect(),_classPrivateFieldSet(this,f,null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,_,T).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,_,T).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(_classPrivateFieldGet(this,u)||_classPrivateFieldGet(this,l)||_classPrivateFieldGet(this,d)||_classPrivateFieldGet(this,p))}get isResizable(){return!0}render(){if(this.div)return this.div;var e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,_classPrivateFieldGet(this,l)?_classPrivateMethodGet(this,A,R).call(this):_classPrivateMethodGet(this,_,T).call(this),this.width){var[r,n]=this.parentDimensions;this.setAt(e*r,t*n,this.width*r,this.height*n)}return this.div}static deserialize(e,t,r){if(e instanceof s.StampAnnotationElement)return null;var n=super.deserialize(e,t,r),{rect:i,bitmapUrl:a,bitmapId:o,isSvg:l,accessibilityData:u}=e;o&&r.imageManager.isValidId(o)?_classPrivateFieldSet(n,c,o):_classPrivateFieldSet(n,d,a),_classPrivateFieldSet(n,g,l);var[p,h]=n.pageDimensions;return n.width=(i[2]-i[0])/p,n.height=(i[3]-i[1])/h,u&&(n.altTextData=u),n}serialize(){var 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;var r={annotationType:i.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(this,c),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(this,g),structTreeParentId:this._structTreeParentId};if(e)return r.bitmapUrl=_classPrivateMethodGet(this,k,D).call(this,!0),r.accessibilityData=this.altTextData,r;var{decorative:n,altText:a}=this.altTextData;if(!n&&a&&(r.accessibilityData={type:"Figure",alt:a}),null===t)return r;t.stamps||(t.stamps=new Map);var o=_classPrivateFieldGet(this,g)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(this,c))){if(_classPrivateFieldGet(this,g)){var s=t.stamps.get(_classPrivateFieldGet(this,c));o>s.area&&(s.area=o,s.serialized.bitmap.close(),s.serialized.bitmap=_classPrivateMethodGet(this,k,D).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(this,c),{area:o,serialized:r}),r.bitmap=_classPrivateMethodGet(this,k,D).call(this,!1);return r}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(this,l,e.bitmap),t||(_classPrivateFieldSet(this,c,e.id),_classPrivateFieldSet(this,g,e.isSvg)),_classPrivateMethodGet(this,A,R).call(this)):this.remove()}function O(){_classPrivateFieldSet(this,u,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(this,h)&&this.div.focus()}function T(){var e=this;if(_classPrivateFieldGet(this,c))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(this,c)).then((e=>_classPrivateMethodGet(this,b,E).call(this,e,!0))).finally((()=>_classPrivateMethodGet(this,y,O).call(this)));if(_classPrivateFieldGet(this,d)){var t=_classPrivateFieldGet(this,d);return _classPrivateFieldSet(this,d,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromUrl(t).then((e=>_classPrivateMethodGet(this,b,E).call(this,e))).finally((()=>_classPrivateMethodGet(this,y,O).call(this))))}if(_classPrivateFieldGet(this,p)){var r=_classPrivateFieldGet(this,p);return _classPrivateFieldSet(this,p,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromFile(r).then((e=>_classPrivateMethodGet(this,b,E).call(this,e))).finally((()=>_classPrivateMethodGet(this,y,O).call(this))))}var i=document.createElement("input");i.type="file",i.accept=n.supportedTypesStr,_classPrivateFieldSet(this,u,new Promise((t=>{i.addEventListener("change",_asyncToGenerator((function*(){if(i.files&&0!==i.files.length){e._uiManager.enableWaiting(!0);var r=yield e._uiManager.imageManager.getFromFile(i.files[0]);_classPrivateMethodGet(e,b,E).call(e,r)}else e.remove();t()}))),i.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>_classPrivateMethodGet(this,y,O).call(this)))),i.click()}function R(){var{div:e}=this,{width:t,height:r}=_classPrivateFieldGet(this,l),[n,i]=this.pageDimensions,a=.75;if(this.width)t=this.width*n,r=this.height*i;else if(t>a*n||r>a*i){var o=Math.min(a*n/t,a*i/r);t*=o,r*=o}var[s,c]=this.parentDimensions;this.setDims(t*s/n,r*c/i),this._uiManager.enableWaiting(!1);var u=_classPrivateFieldSet(this,h,document.createElement("canvas"));e.append(u),e.hidden=!1,_classPrivateMethodGet(this,S,I).call(this,t,r),_classPrivateMethodGet(this,x,B).call(this),_classPrivateFieldGet(this,m)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(this,m,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function M(e,t){var r,[n,i]=this.parentDimensions;this.width=e/n,this.height=t/i,this.setDims(e,t),null!==(r=this._initialOptions)&&void 0!==r&&r.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(this,v)&&clearTimeout(_classPrivateFieldGet(this,v)),_classPrivateFieldSet(this,v,setTimeout((()=>{_classPrivateFieldSet(this,v,null),_classPrivateMethodGet(this,S,I).call(this,e,t)}),200))}function F(e,t){for(var{width:r,height:n}=_classPrivateFieldGet(this,l),i=r,a=n,o=_classPrivateFieldGet(this,l);i>2*e||a>2*t;){var s=i,c=a;i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2)),a>2*t&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));var u=new OffscreenCanvas(i,a);u.getContext("2d").drawImage(o,0,0,s,c,0,0,i,a),o=u.transferToImageBitmap()}return o}function I(e,t){e=Math.ceil(e),t=Math.ceil(t);var r=_classPrivateFieldGet(this,h);if(r&&(r.width!==e||r.height!==t)){r.width=e,r.height=t;var n=_classPrivateFieldGet(this,g)?_classPrivateFieldGet(this,l):_classPrivateMethodGet(this,w,F).call(this,e,t),i=r.getContext("2d");i.filter=this._uiManager.hcmFilter,i.drawImage(n,0,0,n.width,n.height,0,0,e,t)}}function D(e){if(e){if(_classPrivateFieldGet(this,g)){var t=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(this,c));if(t)return t}var r=document.createElement("canvas");return({width:r.width,height:r.height}=_classPrivateFieldGet(this,l)),r.getContext("2d").drawImage(_classPrivateFieldGet(this,l),0,0),r.toDataURL()}if(_classPrivateFieldGet(this,g)){var[n,i]=this.pageDimensions,a=Math.round(this.width*n*o.PixelsPerInch.PDF_TO_CSS_UNITS),s=Math.round(this.height*i*o.PixelsPerInch.PDF_TO_CSS_UNITS),u=new OffscreenCanvas(a,s);return u.getContext("2d").drawImage(_classPrivateFieldGet(this,l),0,0,_classPrivateFieldGet(this,l).width,_classPrivateFieldGet(this,l).height,0,0,a,s),u.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(this,l))}function B(){_classPrivateFieldSet(this,f,new ResizeObserver((e=>{var t=e[0].contentRect;t.width&&t.height&&_classPrivateMethodGet(this,C,M).call(this,t.width,t.height)}))),_classPrivateFieldGet(this,f).observe(this.div)}n=P,_defineProperty(P,"_type","stamp"),t.StampEditor=P}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __webpack_exports__={};return(()=>{var e=__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 a.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 n.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 r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.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 n.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return r.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 r.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return n.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return n.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 n.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 r.version}});var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(2),n=__w_pdfjs_require__(6),i=__w_pdfjs_require__(26),a=__w_pdfjs_require__(27),o=__w_pdfjs_require__(5),s=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__webpack_exports__})(),module.exports=root.pdfjsLib=factory()},81199:function(e,t,r){"use strict";r.d(t,{yV:function(){return lt},S1:function(){return ct},mc:function(){return ut},Iv:function(){return dt},j:function(){return pt}});var n,i=r(27006);!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(n||(n={}));var a,o=function(e){return function(){var t=(0,i.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},s=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var a=(0,i.XA)(t.split(".")),o=a.next();!o.done;o=a.next()){var s=o.value;if(!(s in e))return;e=e[s]}}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return e},l=function(e,t){return function(){var r,n,a={};try{for(var o=(0,i.XA)(t),l=o.next();!l.done;l=o.next()){var c=l.value;a[c]=s(e,c)}}catch(u){r={error:u}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}},c=function(e,t,r,i,a){return void 0===a&&(a=null),function(){for(var o=[],s=0;s>t/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,e)};function _(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(r){}return t}var A=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){var r,n=this;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(d.f1,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=y()),new Promise((function(r){var n={event:e,attempts:0,callback:function(e){return r(e)},timeout:0};t.addToQueue(n)}))},e.prototype.getTryableList=function(e){var t=this;return e.filter((function(e){return e.attempts0&&t.schedule(e)}))}),e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,i.mG)(this,void 0,void 0,(function(){var t,r,n,a=this;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(t=[],r=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):r.push(e)})),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),n=function(e,t){var r=Math.max(t,1);return e.reduce((function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e}),[])}(t,this.config.flushQueueSize),[4,Promise.all(n.map((function(t){return a.send(t,e)})))]);case 1:return i.sent(),this.scheduleTryable(r),[2]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,i.mG)(this,void 0,void 0,(function(){var r,n,o,s,l;return(0,i.Jh)(this,(function(c){switch(c.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map((function(e){var t=e.event;t.extra;return(0,i._T)(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString()},c.label=1;case 1:return c.trys.push([1,3,,4]),n=b(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:return null===(o=c.sent())?(this.fulfillRequest(e,0,"Unexpected error occurred"),[2]):t?(this.handleResponse(o,e),[3,4]):("body"in o?this.fulfillRequest(e,o.statusCode,"".concat(o.status,": ").concat(_(o))):this.fulfillRequest(e,o.statusCode,o.status),[2]);case 3:return s=c.sent(),l=(u=s)instanceof Error?u.message:String(u),this.config.loggerProvider.error(l),this.handleResponse({status:a.Failed,statusCode:0},e),[3,4];case 4:return[2]}var u}))}))},e.prototype.handleResponse=function(e,t){var r=e.status;switch(r){case a.Success:this.handleSuccessResponse(e,t);break;case a.Invalid:this.handleInvalidResponse(e,t);break;case a.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case a.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))this.fulfillRequest(t,e.statusCode,e.body.error);else{var n=(0,i.ev)((0,i.ev)((0,i.ev)((0,i.ev)([],(0,i.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,i.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,i.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,i.CR)(e.body.silencedEvents),!1).flat(),a=new Set(n),o=t.filter((function(t,n){if(!a.has(n))return!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));o.length>0&&this.config.loggerProvider.warn(_(e));var s=this.getTryableList(o);this.scheduleTryable(s)}},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(_(e)),this.config.flushQueueSize/=2;var r=this.getTryableList(t);this.scheduleTryable(r)}else this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),a=e.body.throttledEvents,o=new Set(n),s=new Set(i),l=new Set(a),c=t.filter((function(t,n){if(!(t.event.user_id&&o.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)))return l.has(n)&&(t.timeout=r.throttleTimeout),!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));c.length>0&&this.config.loggerProvider.warn(_(e));var u=this.getTryableList(c);this.scheduleTryable(u)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),n=this.getTryableList(r);this.scheduleTryable(n)},e.prototype.fulfillRequest=function(e,t,r){this.removeEvents(e),e.forEach((function(e){return e.callback(p(e.event,t,r))}))},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},e}(),C=r(52523),w=r(12778),S=r(46552),k=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return(0,S.L)(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,i.pi)({},this.properties):{};return e[w.al.REVENUE_PRODUCT_ID]=this.productId,e[w.al.REVENUE_QUANTITY]=this.quantity,e[w.al.REVENUE_PRICE]=this.price,e[w.al.REVENUE_TYPE]=this.revenueType,e[w.al.REVENUE]=this.revenue,e},e}(),x=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var r,n,a;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return e.name=null!==(r=e.name)&&void 0!==r?r:y(),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(a=e.setup)||void 0===a?void 0:a.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}}))}))},e.prototype.deregister=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){var r,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return r=this.plugins.findIndex((function(t){return t.name===e})),n=this.plugins[r],this.plugins.splice(r,1),[4,null===(t=n.teardown)||void 0===t?void 0:t.call(n)];case 1:return i.sent(),[2]}}))}))},e.prototype.reset=function(e){this.applying=!1,this.plugins.map((function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)})),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise((function(r){t.queue.push([e,r]),t.scheduleApply(0)}))},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout((function(){t.apply(t.queue.shift()).then((function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)}))}),e))},e.prototype.apply=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n,a,o,s,l,c,u,d,h,f,v,g,m,b,y,_,A,C;return(0,i.Jh)(this,(function(w){switch(w.label){case 0:if(!e)return[2];t=(0,i.CR)(e,1),r=t[0],n=(0,i.CR)(e,2),a=n[1],o=this.plugins.filter((function(e){return"before"===e.type})),w.label=1;case 1:w.trys.push([1,6,7,8]),s=(0,i.XA)(o),l=s.next(),w.label=2;case 2:return l.done?[3,5]:(f=l.value).execute?[4,f.execute((0,i.pi)({},r))]:[3,4];case 3:if(null===(v=w.sent()))return a({event:r,code:0,message:""}),[2];r=v,w.label=4;case 4:return l=s.next(),[3,2];case 5:return[3,8];case 6:return c=w.sent(),y={error:c},[3,8];case 7:try{l&&!l.done&&(_=s.return)&&_.call(s)}finally{if(y)throw y.error}return[7];case 8:u=this.plugins.filter((function(e){return"enrichment"===e.type||void 0===e.type})),w.label=9;case 9:w.trys.push([9,14,15,16]),d=(0,i.XA)(u),h=d.next(),w.label=10;case 10:return h.done?[3,13]:(f=h.value).execute?[4,f.execute((0,i.pi)({},r))]:[3,12];case 11:if(null===(v=w.sent()))return a({event:r,code:0,message:""}),[2];r=v,w.label=12;case 12:return h=d.next(),[3,10];case 13:return[3,16];case 14:return g=w.sent(),A={error:g},[3,16];case 15:try{h&&!h.done&&(C=d.return)&&C.call(d)}finally{if(A)throw A.error}return[7];case 16:return m=this.plugins.filter((function(e){return"destination"===e.type})),b=m.map((function(e){var t=(0,i.pi)({},r);return e.execute(t).catch((function(e){return p(t,0,String(e))}))})),Promise.all(b).then((function(e){var t=(0,i.CR)(e,1)[0]||p(r,100,"Event not tracked, no destination plugins on the instance");a(t)})),[2]}}))}))},e.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,(function(){var e,t,r,n=this;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map((function(e){return n.apply(e)})))];case 1:return i.sent(),t=this.plugins.filter((function(e){return"destination"===e.type})),r=t.map((function(e){return e.flush&&e.flush()})),[4,Promise.all(r)];case 2:return i.sent(),[2]}}))}))},e}(),P=function(e,t){return(0,i.pi)((0,i.pi)({},t),{event_type:w.JU.IDENTIFY,user_properties:e.getUserProperties()})},E=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new x(this),this.name=e}return e.prototype._init=function(e){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}}))}))},e.prototype.runQueuedFunctions=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n,a,o,s,l,c;return(0,i.Jh)(this,(function(u){switch(u.label){case 0:t=this[e],this[e]=[],u.label=1;case 1:u.trys.push([1,8,9,10]),r=(0,i.XA)(t),n=r.next(),u.label=2;case 2:return n.done?[3,7]:(a=n.value,(o=a())&&"promise"in o?[4,o.promise]:[3,4]);case 3:return u.sent(),[3,6];case 4:return[4,o];case 5:u.sent(),u.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return s=u.sent(),l={error:s},[3,10];case 9:try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(l)throw l.error}return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[2]}}))}))},e.prototype.track=function(e,t,r){var n=function(e,t,r){var n="string"===typeof e?{event_type:e}:e;return(0,i.pi)((0,i.pi)((0,i.pi)({},n),r),t&&{event_properties:t})}(e,t,r);return u(this.dispatch(n))},e.prototype.identify=function(e,t){var r=P(e,t);return u(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var a=function(e,t,r,n){var a;return(0,i.pi)((0,i.pi)({},n),{event_type:w.JU.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(a={},a[e]=t,a)})}(e,t,r,n);return u(this.dispatch(a))},e.prototype.setGroup=function(e,t,r){var n=function(e,t,r){var n,a=new C.h;return a.set(e,t),(0,i.pi)((0,i.pi)({},r),{event_type:w.JU.IDENTIFY,user_properties:a.getUserProperties(),groups:(n={},n[e]=t,n)})}(e,t,r);return u(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=function(e,t){return(0,i.pi)((0,i.pi)({},t),{event_type:w.JU.REVENUE,event_properties:e.getEventProperties()})}(e,t);return u(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),u())},e.prototype._addPlugin=function(e){return u(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),u())},e.prototype._removePlugin=function(e){return u(this.timeline.deregister(e))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(p(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t=this;return(0,i.Jh)(this,(function(r){return this.isReady?[2,this.process(e)]:[2,new Promise((function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))}))]}))}))},e.prototype.process=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.config.optOut?[2,p(e,0,"Event skipped due to optOut config")]:[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return t=i.sent(),r=String(t),this.config.loggerProvider.error(r),[2,n=p(e,0,r)];case 3:return[2]}}))}))},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,Boolean(e)))},e.prototype._setOptOut=function(e){this.config.optOut=Boolean(e)},e.prototype.flush=function(){return u(this.timeline.flush())},e}(),O=function(e,t){return"boolean"===typeof e?e:!1!==(null===e||void 0===e?void 0:e[t])},T=function(e){return O(e,"attribution")},R=function(e){return O(e,"pageViews")},M=function(e){return O(e,"sessions")},F=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return R(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"===typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"===typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},I="dclid",D="fbclid",B="gbraid",j="gclid",N="ko_click_id",L="li_fat_id",Z="msclkid",G="rtd_cid",z="ttclid",U="twclid",W="wbraid",q={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},H=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},V=function(e,t,r,n){void 0===n&&(n=!0);e.referrer;var a=e.referring_domain,o=(0,i._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),c=(0,i._T)(s,["referrer","referring_domain"]);if(Y(r.excludeReferrers,e.referring_domain))return!1;if(!n&&function(e){return Object.values(e).every((function(e){return!e}))}(e)&&t)return!1;var u=JSON.stringify(o)!==JSON.stringify(c),d=H(a||"")!==H(l||"");return!t||u||d},Y=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))},K=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},X=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof r.g?r.g:void 0},$=function(){var e,t=X();return(null===(e=null===t||void 0===t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce((function(e,t){var r=t.split("=",2),n=Q(r[0]),i=Q(r[1]);return i?(e[n]=i,e):e}),{}):{}},Q=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(t){return""}},J=function(){function e(){}return e.prototype.parse=function(){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){return[2,(0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},q),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},e.prototype.getUtmParam=function(){var e=$();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!==(t=null===(e=r.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(n){}return r},e.prototype.getClickIds=function(){var e,t=$();return(e={})[I]=t[I],e[D]=t[D],e[B]=t[B],e[j]=t[j],e[N]=t[N],e[L]=t[L],e[Z]=t[Z],e[G]=t[G],e[z]=t[z],e[U]=t[U],e[W]=t[W],e},e}(),ee=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},te=function(){function e(e,t){var r,n,a,o;this.shouldTrackNewCampaign=!1,this.options=(0,i.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:K(null===(r=t.cookieOptions)||void 0===r?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=(n=t.apiKey,void 0===(a="MKTG")&&(a=""),void 0===o&&(o=10),[d.xp,a,n.substring(0,o)].filter(Boolean).join("_")),this.currentCampaign=q,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,i.mG)(this,void 0,void 0,(function(){var e,t;return(0,i.Jh)(this,(function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return t=i.CR.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ee(this.sessionTimeout,this.lastEventTime),V(this.currentCampaign,this.previousCampaign,this.options,e)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},e.prototype.fetchCampaign=function(){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([(new J).parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}}))}))},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=function(e,t){var r=(0,i.pi)((0,i.pi)({},q),e),n=Object.entries(r).reduce((function(e,r){var n,a=(0,i.CR)(r,2),o=a[0],s=a[1];return e.setOnce("initial_".concat(o),null!==(n=null!==s&&void 0!==s?s:t.initialEmptyValue)&&void 0!==n?n:"EMPTY"),s?e.set(o,s):e.unset(o)}),new C.h);return P(n)}(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),re=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ne(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),ne=function(){return"undefined"!==typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},ie=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),ae=function(){return ae=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=200&&e<300?a.Success:429===e?a.RateLimit:413===e?a.PayloadTooLarge:408===e?a.Timeout:e>=400&&e<500?a.Invalid:e>=500?a.Failed:a.Unknown},e}(),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.send=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var r,n,a;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:if("undefined"===typeof fetch)throw new Error("FetchTransport is not supported");return r={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,r)];case 1:return[4,(n=i.sent()).text()];case 2:return a=i.sent(),[2,this.buildResponse(a?JSON.parse(a):{code:n.status})]}}))}))},t}(ye),Ae=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,i.mG)(this,void 0,void 0,(function(){var t,r,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return i.sent(),[4,r.get(n)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}}))}))},e.prototype.get=function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t;return(0,i.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=r.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}}))}))},e.prototype.getRaw=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(r){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]}))}))},e.prototype.set=function(e,t){var r;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){try{null===(r=this.storage)||void 0===r||r.setItem(e,JSON.stringify(t))}catch(i){}return[2]}))}))},e.prototype.remove=function(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(r){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(n){}return[2]}))}))},e.prototype.reset=function(){var e;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(r){}return[2]}))}))},e}(),Ce=1e3,we=function(e){function t(t){var r,n=this;return(n=e.call(this,null===(r=X())||void 0===r?void 0:r.localStorage)||this).loggerProvider=null===t||void 0===t?void 0:t.loggerProvider,n}return(0,i.ZT)(t,e),t.prototype.set=function(t,r){var n;return(0,i.mG)(this,void 0,void 0,(function(){var a;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return Array.isArray(r)&&r.length>Ce?(a=r.length-Ce,[4,e.prototype.set.call(this,t,r.slice(0,Ce))]):[3,2];case 1:return i.sent(),null===(n=this.loggerProvider)||void 0===n||n.error("Failed to save ".concat(a," events because the queue length exceeded ").concat(Ce,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},t}(Ae),Se=function(e){function t(){var t;return e.call(this,null===(t=X())||void 0===t?void 0:t.sessionStorage)||this}return(0,i.ZT)(t,e),t}(Ae),ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,i.ZT)(t,e),t.prototype.send=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var r=this;return(0,i.Jh)(this,(function(n){return[2,new Promise((function(n,i){"undefined"===typeof XMLHttpRequest&&i(new Error("XHRTransport is not supported."));var a=new XMLHttpRequest;a.open("POST",e,!0),a.onreadystatechange=function(){if(a.readyState===r.state.done){var e=a.responseText,t=e?JSON.parse(e):{code:a.status},i=r.buildResponse(t);n(i)}},a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("Accept","*/*"),a.send(JSON.stringify(t))}))]}))}))},t}(ye),xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.send=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var r=this;return(0,i.Jh)(this,(function(n){return[2,new Promise((function(n,i){var a=X();if(!(null===a||void 0===a?void 0:a.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var o=JSON.stringify(t);return n(a.navigator.sendBeacon(e,JSON.stringify(t))?r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:o.length,server_upload_time:Date.now()}):r.buildResponse({code:500}))}catch(s){i(s)}}))]}))}))},t}(ye),Pe=function(e,t,r){return void 0===r&&(r=!0),(0,i.mG)(void 0,void 0,void 0,(function(){var n,a,o,s,l,c,u,p,h;return(0,i.Jh)(this,(function(f){switch(f.label){case 0:return n=function(e){return"".concat(d.xp.toLowerCase(),"_").concat(e.substring(0,6))}(e),[4,t.getRaw(n)];case 1:return(a=f.sent())?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:f.sent(),f.label=3;case 3:return o=(0,i.CR)(a.split("."),6),s=o[0],l=o[1],c=o[2],u=o[3],p=o[4],h=o[5],[2,{deviceId:s,userId:Oe(l),sessionId:Ee(u),lastEventId:Ee(h),lastEventTime:Ee(p),optOut:Boolean(c)}]}}))}))},Ee=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},Oe=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(t){return}},Te="[Amplitude]",Re=("".concat(Te," Page Viewed"),"".concat(Te," Form Started")),Me="".concat(Te," Form Submitted"),Fe="".concat(Te," File Downloaded"),Ie="session_start",De="session_end",Be="".concat(Te," File Extension"),je="".concat(Te," File Name"),Ne="".concat(Te," Link ID"),Le="".concat(Te," Link Text"),Ze="".concat(Te," Link URL"),Ge="".concat(Te," Form ID"),ze="".concat(Te," Form Name"),Ue="".concat(Te," Form Destination"),We="cookie",qe=function(e){function t(t,r,i,a,o,s,l,c,u,d,p,h,v,g,m,b,y,_,A,C,w,S,k,x,P,E,O,T,R,M,F){void 0===i&&(i=new ge),void 0===a&&(a={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===c&&(c=5),void 0===u&&(u=30),void 0===d&&(d=We),void 0===m&&(m=new f),void 0===b&&(b=n.Warn),void 0===_&&(_=!1),void 0===A&&(A=!1),void 0===S&&(S=""),void 0===k&&(k="US"),void 0===P&&(P=18e5),void 0===E&&(E=new we({loggerProvider:m})),void 0===O&&(O={ipAddress:!0,language:!0,platform:!0}),void 0===T&&(T="fetch"),void 0===R&&(R=!1);var I=e.call(this,{apiKey:t,storageProvider:E,transportProvider:Ye(T)})||this;return I.apiKey=t,I.appVersion=r,I.cookieOptions=a,I.defaultTracking=o,I.flushIntervalMillis=l,I.flushMaxRetries=c,I.flushQueueSize=u,I.identityStorage=d,I.ingestionMetadata=p,I.instanceName=h,I.loggerProvider=m,I.logLevel=b,I.minIdLength=y,I.offline=_,I.partnerId=C,I.plan=w,I.serverUrl=S,I.serverZone=k,I.sessionTimeout=P,I.storageProvider=E,I.trackingOptions=O,I.transport=T,I.useBatch=R,I._optOut=!1,I._cookieStorage=i,I.deviceId=s,I.lastEventId=v,I.lastEventTime=g,I.optOut=A,I.sessionId=x,I.pageCounter=F,I.userId=M,I.loggerProvider.enable(I.logLevel),I}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter};this.cookieStorage.set(me(this.apiKey),e)},t}(g),He=function(e,t,r){return void 0===t&&(t={}),(0,i.mG)(void 0,void 0,void 0,(function(){var n,a,o,s,l,c,u,d,p,h,f,v,g,m,b,_,A,C,w,S,k,x,P,E,O,T,R,M,F,I,D,B,j,N,L,Z,G,z,U,W,q;return(0,i.Jh)(this,(function(H){switch(H.label){case 0:return n=t.identityStorage||We,A={},n===We?[3,1]:(o="",[3,5]);case 1:return null===(w=null===(C=t.cookieOptions)||void 0===C?void 0:C.domain)||void 0===w?[3,2]:(s=w,[3,4]);case 2:return[4,Ke()];case 3:s=H.sent(),H.label=4;case 4:o=s,H.label=5;case 5:return a=i.pi.apply(void 0,[(A.domain=o,A.expiration=365,A.sameSite="Lax",A.secure=!1,A.upgrade=!0,A),t.cookieOptions]),l=Ve(t.identityStorage,a),[4,Pe(e,l,null===(k=null===(S=t.cookieOptions)||void 0===S?void 0:S.upgrade)||void 0===k||k)];case 6:return c=H.sent(),[4,l.get(me(e))];case 7:return u=H.sent(),d=$(),p=null!==(T=null!==(O=null!==(E=null!==(P=null!==(x=t.deviceId)&&void 0!==x?x:d.ampDeviceId)&&void 0!==P?P:d.deviceId)&&void 0!==E?E:null===u||void 0===u?void 0:u.deviceId)&&void 0!==O?O:c.deviceId)&&void 0!==T?T:y(),h=null!==(R=null===u||void 0===u?void 0:u.lastEventId)&&void 0!==R?R:c.lastEventId,f=null!==(M=null===u||void 0===u?void 0:u.lastEventTime)&&void 0!==M?M:c.lastEventTime,v=null!==(I=null!==(F=t.optOut)&&void 0!==F?F:null===u||void 0===u?void 0:u.optOut)&&void 0!==I?I:c.optOut,g=null!==(D=null===u||void 0===u?void 0:u.sessionId)&&void 0!==D?D:c.sessionId,m=null!==(j=null!==(B=t.userId)&&void 0!==B?B:null===u||void 0===u?void 0:u.userId)&&void 0!==j?j:c.userId,r.previousSessionDeviceId=null!==(N=null===u||void 0===u?void 0:u.deviceId)&&void 0!==N?N:c.deviceId,r.previousSessionUserId=null!==(L=null===u||void 0===u?void 0:u.userId)&&void 0!==L?L:c.userId,b={ipAddress:null===(G=null===(Z=t.trackingOptions)||void 0===Z?void 0:Z.ipAddress)||void 0===G||G,language:null===(U=null===(z=t.trackingOptions)||void 0===z?void 0:z.language)||void 0===U||U,platform:null===(q=null===(W=t.trackingOptions)||void 0===W?void 0:W.platform)||void 0===q||q},_=null===u||void 0===u?void 0:u.pageCounter,[2,new qe(e,t.appVersion,l,a,t.defaultTracking,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,n,t.ingestionMetadata,t.instanceName,h,f,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,v,t.partnerId,t.plan,t.serverUrl,t.serverZone,g,t.sessionTimeout,t.storageProvider,b,t.transport,t.useBatch,m,_)]}}))}))},Ve=function(e,t){switch(void 0===e&&(e=We),void 0===t&&(t={}),e){case"localStorage":return new we;case"sessionStorage":return new Se;case"none":return new ge;default:return new be((0,i.pi)((0,i.pi)({},t),{expirationDays:t.expiration}))}},Ye=function(e){return"xhr"===e?new ke:"beacon"===e?new xe:new _e},Ke=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){var t,r,n,a,o,s,l;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,(new be).isEnabled()];case 1:if(!i.sent()||!e&&("undefined"===typeof location||!location.hostname))return[2,""];for(t=null!==e&&void 0!==e?e:location.hostname,r=t.split("."),n=[],a="AMP_TLDTEST",o=r.length-2;o>=0;--o)n.push(r.slice(o).join("."));o=0,i.label=2;case 2:return o2?(n=t,a=r):"string"===typeof t?(n=t,a=void 0):(n=null===t||void 0===t?void 0:t.userId,a=t),u(this._init((0,i.pi)((0,i.pi)({},a),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,a;return(0,i.mG)(this,void 0,void 0,(function(){var o,s,l,c,u,d=this;return(0,i.Jh)(this,(function(p){switch(p.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,He(t.apiKey,t,this)]);case 1:return o=p.sent(),[4,e.prototype._init.call(this,o)];case 2:return p.sent(),T(this.config.defaultTracking)?(f=this.config,s=T(f.defaultTracking)&&f.defaultTracking&&"object"===typeof f.defaultTracking&&f.defaultTracking.attribution&&"object"===typeof f.defaultTracking.attribution?(0,i.pi)({},f.defaultTracking.attribution):{},this.webAttribution=new te(s,this.config),[4,this.webAttribution.init()]):[3,4];case 3:p.sent(),p.label=4;case 4:return l=$(),c=Number.isNaN(Number(l.ampSessionId))?void 0:Number(l.ampSessionId),this.setSessionId(null!==(a=null!==(n=null!==(r=t.sessionId)&&void 0!==r?r:c)&&void 0!==n?n:this.config.sessionId)&&void 0!==a?a:Date.now()),(u=ue(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline?[3,6]:[4,this.add(at()).promise];case 5:p.sent(),p.label=6;case 6:return[4,this.add(new A).promise];case 7:return p.sent(),[4,this.add(new ve).promise];case 8:return p.sent(),[4,this.add(new de).promise];case 9:return p.sent(),function(e){it||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),it=!0)}(this.config),h=this.config.defaultTracking,O(h,"fileDownloads")?[4,this.add(nt()).promise]:[3,11];case 10:p.sent(),p.label=11;case 11:return function(e){return O(e,"formInteractions")}(this.config.defaultTracking)?[4,this.add(tt()).promise]:[3,13];case 12:p.sent(),p.label=13;case 13:return R(this.config.defaultTracking)?[4,this.add($e(F(this.config))).promise]:[3,15];case 14:p.sent(),p.label=15;case 15:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 16:return p.sent(),u.eventBridge.setEventReceiver((function(e){d.track(e.eventType,e.eventProperties)})),[2]}var h,f}))}))},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?e===this.config.userId&&void 0!==e||(this.config.userId=e,function(e,t){ue(t).identityStore.editIdentity().setUserId(e).commit()}(e,this.config.instanceName)):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.deviceId=e,function(e,t){ue(t).identityStore.editIdentity().setDeviceId(e).commit()}(e,this.config.instanceName)):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(y()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),u(Promise.resolve());if(e===this.config.sessionId)return u(Promise.resolve());var n=this.getSessionId(),i=this.config.lastEventTime,a=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,M(this.config.defaultTracking)&&(n&&i&&r.push(this.track(De,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var o=this.trackCampaignEventIfNeeded(++a,r);return M(this.config.defaultTracking)&&r.push(this.track(Ie,void 0,{event_id:o?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,u(Promise.all(r))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=Ye(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,r){if(he(t)){var n=t._q;t._q=[],t=pe(new C.h,n)}return(null===r||void 0===r?void 0:r.user_id)&&this.setUserId(r.user_id),(null===r||void 0===r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(he(n)){var a=n._q;n._q=[],n=pe(new C.h,a)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(he(t)){var n=t._q;t._q=[],t=pe(new k,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,i.mG)(this,void 0,void 0,(function(){var r,n,a;return(0,i.Jh)(this,(function(i){return r=Date.now(),n=ee(this.config.sessionTimeout,this.config.lastEventTime),a=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===Ie||t.event_type===De||t.session_id&&t.session_id!==this.getSessionId()||(n||a?(this.setSessionId(r),a&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]}))}))},t}(E),st=function(){var e=new ot;return{init:c(e.init.bind(e),"init",o(e),l(e,["config"])),add:c(e.add.bind(e),"add",o(e),l(e,["config.apiKey","timeline.plugins"])),remove:c(e.remove.bind(e),"remove",o(e),l(e,["config.apiKey","timeline.plugins"])),track:c(e.track.bind(e),"track",o(e),l(e,["config.apiKey","timeline.queue.length"])),logEvent:c(e.logEvent.bind(e),"logEvent",o(e),l(e,["config.apiKey","timeline.queue.length"])),identify:c(e.identify.bind(e),"identify",o(e),l(e,["config.apiKey","timeline.queue.length"])),groupIdentify:c(e.groupIdentify.bind(e),"groupIdentify",o(e),l(e,["config.apiKey","timeline.queue.length"])),setGroup:c(e.setGroup.bind(e),"setGroup",o(e),l(e,["config.apiKey","timeline.queue.length"])),revenue:c(e.revenue.bind(e),"revenue",o(e),l(e,["config.apiKey","timeline.queue.length"])),flush:c(e.flush.bind(e),"flush",o(e),l(e,["config.apiKey","timeline.queue.length"])),getUserId:c(e.getUserId.bind(e),"getUserId",o(e),l(e,["config","config.userId"])),setUserId:c(e.setUserId.bind(e),"setUserId",o(e),l(e,["config","config.userId"])),getDeviceId:c(e.getDeviceId.bind(e),"getDeviceId",o(e),l(e,["config","config.deviceId"])),setDeviceId:c(e.setDeviceId.bind(e),"setDeviceId",o(e),l(e,["config","config.deviceId"])),reset:c(e.reset.bind(e),"reset",o(e),l(e,["config","config.userId","config.deviceId"])),getSessionId:c(e.getSessionId.bind(e),"getSessionId",o(e),l(e,["config"])),setSessionId:c(e.setSessionId.bind(e),"setSessionId",o(e),l(e,["config"])),extendSession:c(e.extendSession.bind(e),"extendSession",o(e),l(e,["config"])),setOptOut:c(e.setOptOut.bind(e),"setOptOut",o(e),l(e,["config"])),setTransport:c(e.setTransport.bind(e),"setTransport",o(e),l(e,["config"]))}}(),lt=(st.add,st.extendSession,st.flush,st.getDeviceId,st.getSessionId,st.getUserId,st.groupIdentify,st.identify),ct=st.init,ut=(st.logEvent,st.remove,st.reset),dt=(st.revenue,st.setDeviceId,st.setGroup,st.setOptOut,st.setSessionId,st.setTransport,st.setUserId),pt=st.track},62113:function(e,t,r){"use strict";r.d(t,{EG:function(){return o},RE:function(){return c},f1:function(){return a},h8:function(){return l},q$:function(){return n},xp:function(){return i},y_:function(){return s}});var n="-",i="AMP",a="".concat(i,"_unsent"),o="https://api2.amplitude.com/2/httpapi",s="https://api.eu.amplitude.com/2/httpapi",l="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},52523:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(27006),i=r(12778),a=r(62113),o=r(46552),s=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,n.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(i.h9.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(i.h9.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(i.h9.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(i.h9.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(i.h9.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(i.h9.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(i.h9.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(i.h9.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(i.h9.UNSET,e,a.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[i.h9.CLEAR_ALL]=a.q$,this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return void 0===this._properties[i.h9.CLEAR_ALL]&&(!this._propertySet.has(t)&&(e===i.h9.ADD?"number"===typeof r:e===i.h9.UNSET||e===i.h9.REMOVE||(0,o.T)(t,r)))},e}()},46552:function(e,t,r){"use strict";r.d(t,{L:function(){return i},T:function(){return a}});var n=r(27006),i=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!a(t,r))return!1}return!0},a=function(e,t){var r,a;if("string"!==typeof e)return!1;if(Array.isArray(t)){var o=!0;try{for(var s=(0,n.XA)(t),l=s.next();!l.done;l=s.next()){var c=l.value;if(Array.isArray(c))return!1;if("object"===typeof c)o=o&&i(c);else if(!["number","string"].includes(typeof c))return!1;if(!o)return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}}else{if(null===t||void 0===t)return!1;if("object"===typeof t)return i(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0}},12778:function(e,t,r){"use strict";var n,i,a;r.d(t,{JU:function(){return a},al:function(){return i},h9:function(){return n}}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(n||(n={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE="$revenue"}(i||(i={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(a||(a={}))},95796:function(e,t,r){"use strict";r.d(t,{Z:function(){return ie}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(_,--b):0,g--,10===y&&(g=1,v--),y}function S(){return y=b2||E(y)>3?"":" "}function F(e,t){for(;--t&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return P(e,x()+(t<6&&32==k()&&32==S()))}function I(e){for(;S();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&I(y);break;case 40:41===e&&I(e);break;case 92:S()}return b}function D(e,t){for(;S()&&e+y!==57&&(e+y!==84||47!==k()););return"/*"+P(t,b-1)+"*"+a(47===e?e:S())}function B(e){for(;!E(k());)S();return P(e,b)}var j="-ms-",N="-moz-",L="-webkit-",Z="comm",G="rule",z="decl",U="@keyframes";function W(e,t){for(var r="",n=h(e),i=0;i0&&p(N)-m&&f(y>32?X(N+";",n,r,m-1):X(l(N," ","")+";",n,r,m-2),h);break;case 59:N+=";";default:if(f(j=Y(N,t,r,v,g,i,d,O,T=[],I=[],m),o),123===E)if(0===g)V(N,t,j,j,T,o,m,d,I);else switch(99===b&&110===u(N,3)?100:b){case 100:case 108:case 109:case 115:V(e,j,j,n&&f(Y(e,j,j,0,0,i,d,O,i,T=[],m),I),i,I,m,d,n?T:I);break;default:V(N,j,j,j,[""],I,0,d,I)}}v=g=y=0,A=P=1,O=N="",m=s;break;case 58:m=1+p(N),y=_;default:if(A<1)if(123==E)--A;else if(125==E&&0==A++&&125==w())continue;switch(N+=a(E),E*A){case 38:P=g>0?1:(N+="\f",-1);break;case 44:d[v++]=(p(N)-1)*P,P=1;break;case 64:45===k()&&(N+=R(S())),b=k(),g=m=p(O=N+=B(x())),E++;break;case 45:45===_&&2==p(N)&&(A=0)}}return o}function Y(e,t,r,n,a,o,c,u,p,f,v){for(var g=a-1,m=0===a?o:[""],b=h(m),y=0,_=0,C=0;y0?m[w]+" "+S:l(S,/&\f/g,m[w])))&&(p[C++]=k);return A(e,t,r,0===a?G:u,p,f,v)}function K(e,t,r){return A(e,t,r,Z,a(y),d(e,2,-2),0)}function X(e,t,r,n){return A(e,t,r,z,d(e,0,n),d(e,n+1,-1),n)}var $=function(e,t,r){for(var n=0,i=0;n=i,i=k(),38===n&&12===i&&(t[r]=1),!E(i);)S();return P(e,b)},Q=function(e,t){return T(function(e,t){var r=-1,n=44;do{switch(E(n)){case 0:38===n&&12===k()&&(t[r]=1),e[r]+=$(b-1,t,r);break;case 2:e[r]+=R(n);break;case 4:if(44===n){e[++r]=58===k()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(n)}}while(n=S());return e}(O(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(r))&&!n){J.set(e,!0);for(var i=[],a=Q(t,i),o=r.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+L)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===u(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return L+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+j+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+j+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=re(e.value,e.length);break;case U:return W([C(e,{value:l(e.value,"@","@"+L)})],n);case G:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return W([C(e,{props:[l(t,/:(plac\w+)/,":"+L+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,j+"input-$1")]})],n)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ne;var a,o,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:p}}},40310:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(90957),i=r(21914),a=r(95627),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,a.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(12009),c=r(35414),u=r(92384),d=r(95308),p=s,h=function(e){return"theme"!==e},f=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:h},v=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,d.L)((function(){return(0,c.My)(t,r,n)})),null},m=function e(t,r){var a,o,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(a=r.label,o=r.target);var p=v(t,r,s),h=p||f(d),m=!h("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var _=b.length,A=1;A<_;A++)y.push(b[A],b[0][A])}var C=(0,l.w)((function(e,t,r){var n=m&&e.as||d,a="",s=[],v=e;if(null==e.theme){for(var b in v={},e)v[b]=e[b];v.theme=i.useContext(l.T)}"string"===typeof e.className?a=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var _=(0,u.O)(y.concat(s),t.registered,v);a+=t.key+"-"+_.name,void 0!==o&&(a+=" "+o);var A=m&&void 0===p?f(n):h,C={};for(var w in e)m&&"as"===w||A(w)&&(C[w]=e[w]);return C.className=a,C.ref=r,i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:_,isStringTag:"string"===typeof n}),i.createElement(n,C))}));return C.displayName=void 0!==a?a:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=y,C.__emotion_forwardProp=p,Object.defineProperty(C,"toString",{value:function(){return"."+o}}),C.withComponent=function(t,i){return e(t,(0,n.Z)({},r,i,{shouldForwardProp:v(C,i,!0)})).apply(void 0,y)},C}}},95308:function(e,t,r){"use strict";var n;r.d(t,{L:function(){return o},j:function(){return s}});var i=r(21914),a=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,o=a||function(e){return e()},s=a||i.useLayoutEffect},35414:function(e,t,r){"use strict";r.d(t,{My:function(){return a},fp:function(){return n},hC:function(){return i}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},18686:function(e,t,r){"use strict";r.d(t,{h:function(){return c}});var n=r(21914),i=r(10579),a=r(43064),o=r(8031),s=r(224),l=r(56552);var c=n.forwardRef((function(e,t){var{children:r,container:c,disablePortal:u=!1}=e,[d,p]=n.useState(null),h=(0,a.Z)(n.isValidElement(r)?r.ref:null,t);if((0,o.Z)((()=>{u||p(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,u]),(0,o.Z)((()=>{if(d&&!u)return(0,s.Z)(t,d),()=>{(0,s.Z)(t,null)}}),[t,d,u]),u){if(n.isValidElement(r)){var f={ref:h};return n.cloneElement(r,f)}return(0,l.jsx)(n.Fragment,{children:r})}return(0,l.jsx)(n.Fragment,{children:d?i.createPortal(r,d):d})}))},48283:function(e,t,r){"use strict";r.d(t,{u:function(){return g}});var n=r(90957),i=r(39324),a=r(21914),o=r(10579),s=r(43064),l=r(75979),c=r(8031),u=r(89844),d=r(56552),p=["onChange","maxRows","minRows","style","value"];function h(e){return parseInt(e,10)||0}var f={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var g=a.forwardRef((function(e,t){var{onChange:r,maxRows:g,minRows:m=1,style:b,value:y}=e,_=(0,i.Z)(e,p),{current:A}=a.useRef(null!=y),C=a.useRef(null),w=(0,s.Z)(t,C),S=a.useRef(null),k=a.useRef(0),[x,P]=a.useState({outerHeightStyle:0}),E=a.useCallback((()=>{var t=C.current,r=(0,l.Z)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};var n=S.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var i=r.boxSizing,a=h(r.paddingBottom)+h(r.paddingTop),o=h(r.borderBottomWidth)+h(r.borderTopWidth),s=n.scrollHeight;n.value="x";var c=n.scrollHeight,u=s;return m&&(u=Math.max(Number(m)*c,u)),g&&(u=Math.min(Number(g)*c,u)),{outerHeightStyle:(u=Math.max(u,c))+("border-box"===i?a+o:0),overflow:Math.abs(u-s)<=1}}),[g,m,e.placeholder]),O=(e,t)=>{var{outerHeightStyle:r,overflow:n}=t;return k.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(k.current+=1,{overflow:n,outerHeightStyle:r}):e},T=a.useCallback((()=>{var e=E();v(e)||P((t=>O(t,e)))}),[E]);(0,c.Z)((()=>{var e,t,r=()=>{k.current=0,(()=>{var e=E();v(e)||o.flushSync((()=>{P((t=>O(t,e)))}))})()},n=(0,u.Z)(r),i=C.current,a=(0,l.Z)(i);return a.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(r)).observe(i),()=>{n.clear(),cancelAnimationFrame(e),a.removeEventListener("resize",n),t&&t.disconnect()}}),[E]),(0,c.Z)((()=>{T()})),a.useEffect((()=>{k.current=0}),[y]);return(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{k.current=0,A||T(),r&&r(e)},ref:w,rows:m,style:(0,n.Z)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":void 0},b)},_)),(0,d.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,n.Z)({},f,b,{paddingTop:0,paddingBottom:0})})]})}))},2399:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(90957),i=r(13161);function a(e,t,r){return void 0===e||(0,i.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},1332:function(e,t,r){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"===typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}r.d(t,{_:function(){return n}})},13161:function(e,t,r){"use strict";function n(e){return"string"===typeof e}r.d(t,{X:function(){return n}})},78627:function(e,t,r){"use strict";r.d(t,{y:function(){return d}});var n=r(90957),i=r(39324),a=r(43064),o=r(2399),s=r(51118),l=r(1332);function c(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}var u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function d(e){var t,{elementType:r,externalSlotProps:d,ownerState:p,skipResolvingSlotProps:h=!1}=e,f=(0,i.Z)(e,u),v=h?{}:function(e,t,r){return"function"===typeof e?e(t,r):e}(d,p),{props:g,internalRef:m}=function(e){var{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:a,className:o}=e;if(!t){var u=(0,s.Z)(null==a?void 0:a.className,null==i?void 0:i.className,o,null==r?void 0:r.className),d=(0,n.Z)({},null==r?void 0:r.style,null==a?void 0:a.style,null==i?void 0:i.style),p=(0,n.Z)({},r,a,i);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:void 0}}var h=(0,l._)((0,n.Z)({},a,i)),f=c(i),v=c(a),g=t(h),m=(0,s.Z)(null==g?void 0:g.className,null==r?void 0:r.className,o,null==a?void 0:a.className,null==i?void 0:i.className),b=(0,n.Z)({},null==g?void 0:g.style,null==r?void 0:r.style,null==a?void 0:a.style,null==i?void 0:i.style),y=(0,n.Z)({},g,r,v,f);return m.length>0&&(y.className=m),Object.keys(b).length>0&&(y.style=b),{props:y,internalRef:g.ref}}((0,n.Z)({},f,{externalSlotProps:v})),b=(0,a.Z)(m,null==v?void 0:v.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,o.$)(r,(0,n.Z)({},g,{ref:b}),p)}},35953:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}),"AccessAlarm");t.Z=o},44306:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=o},24425:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.Z=o},68004:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}),"ArrowForwardOutlined");t.Z=o},93516:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline");t.Z=o},45369:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M19 6.41 17.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.Z=o},77154:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=o},85431:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.Z=o},64665:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=o},22927:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0-8 4.99L4 6h16zm0 12H4V8l8 5 8-5v10z"}),"MailOutlined");t.Z=o},2709:function(e,t,r){"use strict";var n=r(81399);t.Z=void 0;var i=n(r(41900)),a=r(56552),o=(0,i.default)((0,a.jsx)("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"}),"MoreVert");t.Z=o},22700:function(e,t,r){"use strict";var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4")},40610:function(e,t,r){"use strict";var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"m15 5-1.41 1.41L18.17 11H2v2h16.17l-4.59 4.59L15 19l7-7-7-7z"}),"East")},63362:function(e,t,r){"use strict";var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings")},41900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(71682)},13706:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(18085),p=r(37395),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiAlert",e)}var g=(0,h.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),m=r(51929),b=r(44326),y=r(56552),_=(0,b.Z)((0,y.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),A=(0,b.Z)((0,y.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,b.Z)((0,y.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),w=(0,b.Z)((0,y.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),S=r(74512),k=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],x=(0,c.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,d.Z)(r.color||r.severity))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?l._j:l.$n,a="light"===t.palette.mode?l.$n:l._j,o=r.color||r.severity;return(0,i.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===r.variant&&{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:n(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:a(t.palette[o].light,.9),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}},o&&"outlined"===r.variant&&{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:n(t.palette[o].light,.6),border:"1px solid ".concat((t.vars||t).palette[o].light),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}},o&&"filled"===r.variant&&(0,i.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(o,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(o,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main,color:t.palette.getContrastText(t.palette[o].main)}))})),P=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),T={success:(0,y.jsx)(_,{fontSize:"inherit"}),warning:(0,y.jsx)(A,{fontSize:"inherit"}),error:(0,y.jsx)(C,{fontSize:"inherit"}),info:(0,y.jsx)(w,{fontSize:"inherit"})},R=a.forwardRef((function(e,t){var r,a,l,c,p,h,f=(0,u.Z)({props:e,name:"MuiAlert"}),{action:g,children:b,className:_,closeText:A="Close",color:C,components:w={},componentsProps:R={},icon:M,iconMapping:F=T,onClose:I,role:D="alert",severity:B="success",slotProps:j={},slots:N={},variant:L="standard"}=f,Z=(0,n.Z)(f,k),G=(0,i.Z)({},f,{color:C,severity:B,variant:L}),z=(e=>{var{variant:t,color:r,severity:n,classes:i}=e,a={root:["root","".concat(t).concat((0,d.Z)(r||n)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,s.Z)(a,v,i)})(G),U=null!=(r=null!=(a=N.closeButton)?a:w.CloseButton)?r:m.Z,W=null!=(l=null!=(c=N.closeIcon)?c:w.CloseIcon)?l:S.Z,q=null!=(p=j.closeButton)?p:R.closeButton,H=null!=(h=j.closeIcon)?h:R.closeIcon;return(0,y.jsxs)(x,(0,i.Z)({role:D,elevation:0,ownerState:G,className:(0,o.Z)(z.root,_),ref:t},Z,{children:[!1!==M?(0,y.jsx)(P,{ownerState:G,className:z.icon,children:M||F[B]||T[B]}):null,(0,y.jsx)(E,{ownerState:G,className:z.message,children:b}),null!=g?(0,y.jsx)(O,{ownerState:G,className:z.action,children:g}):null,null==g&&I?(0,y.jsx)(O,{ownerState:G,className:z.action,children:(0,y.jsx)(U,(0,i.Z)({size:"small","aria-label":A,title:A,color:"inherit",onClick:I},q,{children:(0,y.jsx)(W,(0,i.Z)({fontSize:"small"},H))}))}):null]}))}))},53530:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(18085),d=r(37395),p=r(40059),h=r(46051);function f(e){return(0,h.Z)("MuiAppBar",e)}(0,p.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var v=r(56552),g=["className","color","enableColorOnDark","position"],m=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,b=(0,l.ZP)(d.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["position".concat((0,u.Z)(r.position))],t["color".concat((0,u.Z)(r.color))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,i.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,i.Z)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,i.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,i.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:m(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:m(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:m(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:m(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),y=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiAppBar"}),{className:a,color:l="primary",enableColorOnDark:d=!1,position:p="fixed"}=r,h=(0,n.Z)(r,g),m=(0,i.Z)({},r,{color:l,position:p,enableColorOnDark:d}),y=(e=>{var{color:t,position:r,classes:n}=e,i={root:["root","color".concat((0,u.Z)(t)),"position".concat((0,u.Z)(r))]};return(0,s.Z)(i,f,n)})(m);return(0,v.jsx)(b,(0,i.Z)({square:!0,component:"header",ownerState:m,elevation:4,className:(0,o.Z)(y.root,a,"fixed"===p&&"mui-fixed"),ref:t},h))}))},10374:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(44326),d=r(56552),p=(0,u.Z)((0,d.jsx)("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"),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiAvatar",e)}(0,h.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var g=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],m=(0,l.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===r.variant&&{borderRadius:0},r.colorDefault&&(0,i.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),b=(0,l.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y=(0,l.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var _=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiAvatar"}),{alt:l,children:u,className:p,component:h="div",imgProps:f,sizes:_,src:A,srcSet:C,variant:w="circular"}=r,S=(0,n.Z)(r,g),k=null,x=function(e){var{crossOrigin:t,referrerPolicy:r,src:n,srcSet:i}=e,[o,s]=a.useState(!1);return a.useEffect((()=>{if(n||i){s(!1);var e=!0,a=new Image;return a.onload=()=>{e&&s("loaded")},a.onerror=()=>{e&&s("error")},a.crossOrigin=t,a.referrerPolicy=r,a.src=n,i&&(a.srcset=i),()=>{e=!1}}}),[t,r,n,i]),o}((0,i.Z)({},f,{src:A,srcSet:C})),P=A||C,E=P&&"error"!==x,O=(0,i.Z)({},r,{colorDefault:!E,component:h,variant:w}),T=(e=>{var{classes:t,variant:r,colorDefault:n}=e,i={root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,s.Z)(i,v,t)})(O);return k=E?(0,d.jsx)(b,(0,i.Z)({alt:l,srcSet:C,src:A,sizes:_,ownerState:O,className:T.img},f)):null!=u?u:P&&l?l[0]:(0,d.jsx)(y,{ownerState:O,className:T.fallback}),(0,d.jsx)(m,(0,i.Z)({as:h,ownerState:O,className:(0,o.Z)(T.root,p),ref:t},S,{children:k}))}))},65037:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(55120),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var f=r(56552),v=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),m=a.forwardRef((function(e,t){var r,a,l,d=(0,c.Z)({props:e,name:"MuiBackdrop"}),{children:p,className:m,component:b="div",components:y={},componentsProps:_={},invisible:A=!1,open:C,slotProps:w={},slots:S={},TransitionComponent:k=u.Z,transitionDuration:x}=d,P=(0,n.Z)(d,v),E=(0,i.Z)({},d,{component:b,invisible:A}),O=(e=>{var{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,s.Z)(n,h,t)})(E),T=null!=(r=w.root)?r:_.root;return(0,f.jsx)(k,(0,i.Z)({in:C,timeout:x},P,{children:(0,f.jsx)(g,(0,i.Z)({"aria-hidden":!0},T,{as:null!=(a=null!=(l=S.root)?l:y.Root)?a:b,className:(0,o.Z)(O.root,m,null==T?void 0:T.className),ownerState:(0,i.Z)({},E,null==T?void 0:T.ownerState),classes:O,ref:t,children:p}))}))}))},33246:function(e,t,r){"use strict";var n=r(61589),i=r(93351),a=r(94832),o=r(88464),s=(0,a.Z)(),l=(0,n.Z)({themeId:o.Z,defaultTheme:s,defaultClassName:"MuiBox-root",generateClassName:i.Z.generate});t.Z=l},3613:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(57737),l=r(43232),c=r(5216),u=r(24077),d=r(67336),p=r(9912),h=r(18085),f=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiButton",e)}var m=(0,f.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var b=a.createContext({});var y=a.createContext(void 0),_=r(56552),A=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],C=e=>(0,i.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),w=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,h.Z)(r.color))],t["size".concat((0,h.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,h.Z)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{var t,r,{theme:n,ownerState:a}=e,o="light"===n.palette.mode?n.palette.grey[300]:n.palette.grey[800],s="light"===n.palette.mode?n.palette.grey.A100:n.palette.grey[700];return(0,i.Z)({},n.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":(0,i.Z)({textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[a.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[a.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((n.vars||n).palette[a.color].main),backgroundColor:n.vars?"rgba(".concat(n.vars.palette[a.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[a.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:n.vars?n.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2],backgroundColor:(n.vars||n).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(n.vars||n).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[a.color].main}}),"&:active":(0,i.Z)({},"contained"===a.variant&&{boxShadow:(n.vars||n).shadows[8]}),["&.".concat(m.focusVisible)]:(0,i.Z)({},"contained"===a.variant&&{boxShadow:(n.vars||n).shadows[6]}),["&.".concat(m.disabled)]:(0,i.Z)({color:(n.vars||n).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)},"contained"===a.variant&&{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).palette.action.disabledBackground})},"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(n.vars||n).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(n.vars||n).palette[a.color].main,border:n.vars?"1px solid rgba(".concat(n.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,c.Fq)(n.palette[a.color].main,.5))},"contained"===a.variant&&{color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:n.vars?n.vars.palette.Button.inheritContainedBg:o,boxShadow:(n.vars||n).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(n.vars||n).palette[a.color].contrastText,backgroundColor:(n.vars||n).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:n.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:n.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:n.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:n.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:n.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:n.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})}),(e=>{var{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(m.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(m.disabled)]:{boxShadow:"none"}}})),S=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.startIcon,t["iconSize".concat((0,h.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},C(t))})),k=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.endIcon,t["iconSize".concat((0,h.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},C(t))})),x=a.forwardRef((function(e,t){var r=a.useContext(b),c=a.useContext(y),u=(0,s.Z)(r,e),p=(0,d.Z)({props:u,name:"MuiButton"}),{children:f,color:v="primary",component:m="button",className:C,disabled:x=!1,disableElevation:P=!1,disableFocusRipple:E=!1,endIcon:O,focusVisibleClassName:T,fullWidth:R=!1,size:M="medium",startIcon:F,type:I,variant:D="text"}=p,B=(0,n.Z)(p,A),j=(0,i.Z)({},p,{color:v,component:m,disabled:x,disableElevation:P,disableFocusRipple:E,fullWidth:R,size:M,type:I,variant:D}),N=(e=>{var{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,c={root:["root",o,"".concat(o).concat((0,h.Z)(t)),"size".concat((0,h.Z)(a)),"".concat(o,"Size").concat((0,h.Z)(a)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,h.Z)(a))],endIcon:["endIcon","iconSize".concat((0,h.Z)(a))]},u=(0,l.Z)(c,g,s);return(0,i.Z)({},s,u)})(j),L=F&&(0,_.jsx)(S,{className:N.startIcon,ownerState:j,children:F}),Z=O&&(0,_.jsx)(k,{className:N.endIcon,ownerState:j,children:O}),G=c||"";return(0,_.jsxs)(w,(0,i.Z)({ownerState:j,className:(0,o.Z)(r.className,N.root,C,G),component:m,disabled:x,focusRipple:!E,focusVisibleClassName:(0,o.Z)(N.focusVisible,T),ref:t,type:I},B,{classes:N,children:[L,f,Z]}))}))},9912:function(e,t,r){"use strict";r.d(t,{Z:function(){return X}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(7023),d=r(85715),p=r(14175),h=r(53816),f=r(94782),v=r(15560),g=r(20902);function m(e,t){var r=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),r}function b(e,t,r){return null!=r[t]?r[t]:e.props[t]}function y(e,t,r){var n=m(e.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(i[l])for(n=0;n{if(!c&&null!=u){var e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,S.jsx)("span",{className:f,style:v,children:(0,S.jsx)("span",{className:g})})},x=r(40059);var P,E,O,T,R,M,F,I,D=(0,x.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),B=["center","classes","className"],j=(0,w.F4)(R||(R=P||(P=(0,h.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),N=(0,w.F4)(M||(M=E||(E=(0,h.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),L=(0,w.F4)(F||(F=O||(O=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),Z=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),G=(0,l.ZP)(k,{name:"MuiTouchRipple",slot:"Ripple"})(I||(I=T||(T=(0,h.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),D.rippleVisible,j,550,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut}),D.ripplePulsate,(e=>{var{theme:t}=e;return t.transitions.duration.shorter}),D.child,D.childLeaving,N,550,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut}),D.childPulsate,L,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut})),z=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=r,d=(0,i.Z)(r,B),[p,h]=a.useState([]),f=a.useRef(0),v=a.useRef(null);a.useEffect((()=>{v.current&&(v.current(),v.current=null)}),[p]);var g=a.useRef(!1),m=a.useRef(0),b=a.useRef(null),y=a.useRef(null);a.useEffect((()=>()=>{m.current&&clearTimeout(m.current)}),[]);var _=a.useCallback((e=>{var{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;h((e=>[...e,(0,S.jsx)(G,{classes:{ripple:(0,o.Z)(l.ripple,D.ripple),rippleVisible:(0,o.Z)(l.rippleVisible,D.rippleVisible),ripplePulsate:(0,o.Z)(l.ripplePulsate,D.ripplePulsate),child:(0,o.Z)(l.child,D.child),childLeaving:(0,o.Z)(l.childLeaving,D.childLeaving),childPulsate:(0,o.Z)(l.childPulsate,D.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},f.current)])),f.current+=1,v.current=a}),[l]),A=a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:n=!1,center:i=s||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)g.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);var o,l,c,u=a?null:y.current,d=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)o=Math.round(d.width/2),l=Math.round(d.height/2);else{var{clientX:p,clientY:h}=e.touches&&e.touches.length>0?e.touches[0]:e;o=Math.round(p-d.left),l=Math.round(h-d.top)}if(i)(c=Math.sqrt((2*d.width**2+d.height**2)/3))%2===0&&(c+=1);else{var f=2*Math.max(Math.abs((u?u.clientWidth:0)-o),o)+2,v=2*Math.max(Math.abs((u?u.clientHeight:0)-l),l)+2;c=Math.sqrt(f**2+v**2)}null!=e&&e.touches?null===b.current&&(b.current=()=>{_({pulsate:n,rippleX:o,rippleY:l,rippleSize:c,cb:r})},m.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):_({pulsate:n,rippleX:o,rippleY:l,rippleSize:c,cb:r})}}),[s,_]),w=a.useCallback((()=>{A({},{pulsate:!0})}),[A]),k=a.useCallback(((e,t)=>{if(clearTimeout(m.current),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void(m.current=setTimeout((()=>{k(e,t)})));b.current=null,h((e=>e.length>0?e.slice(1):e)),v.current=t}),[]);return a.useImperativeHandle(t,(()=>({pulsate:w,start:A,stop:k})),[w,A,k]),(0,S.jsx)(Z,(0,n.Z)({className:(0,o.Z)(D.root,l.root,u),ref:y},d,{children:(0,S.jsx)(C,{component:null,exit:!0,children:p})}))})),U=z,W=r(46051);function q(e){return(0,W.Z)("MuiButtonBase",e)}var H=(0,x.Z)("MuiButtonBase",["root","disabled","focusVisible"]),V=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Y=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(H.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:h=!1,children:f,className:v,component:g="button",disabled:m=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:_=!1,LinkComponent:A="a",onBlur:C,onClick:w,onContextMenu:k,onDragLeave:x,onFocus:P,onFocusVisible:E,onKeyDown:O,onKeyUp:T,onMouseDown:R,onMouseLeave:M,onMouseUp:F,onTouchEnd:I,onTouchMove:D,onTouchStart:B,tabIndex:j=0,TouchRippleProps:N,touchRippleRef:L,type:Z}=r,G=(0,i.Z)(r,V),z=a.useRef(null),W=a.useRef(null),H=(0,u.Z)(W,L),{isFocusVisibleRef:K,onFocus:X,onBlur:$,ref:Q}=(0,p.Z)(),[J,ee]=a.useState(!1);m&&J&&ee(!1),a.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),z.current.focus()}})),[]);var[te,re]=a.useState(!1);a.useEffect((()=>{re(!0)}),[]);var ne=te&&!b&&!m;function ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,d.Z)((n=>(t&&t(n),!r&&W.current&&W.current[e](n),!0)))}a.useEffect((()=>{J&&_&&!b&&te&&W.current.pulsate()}),[b,_,J,te]);var ae=ie("start",R),oe=ie("stop",k),se=ie("stop",x),le=ie("stop",F),ce=ie("stop",(e=>{J&&e.preventDefault(),M&&M(e)})),ue=ie("start",B),de=ie("stop",I),pe=ie("stop",D),he=ie("stop",(e=>{$(e),!1===K.current&&ee(!1),C&&C(e)}),!1),fe=(0,d.Z)((e=>{z.current||(z.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),E&&E(e)),P&&P(e)})),ve=()=>{var e=z.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=a.useRef(!1),me=(0,d.Z)((e=>{_&&!ge.current&&J&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,(()=>{W.current.start(e)}))),e.target===e.currentTarget&&ve()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ve()&&"Enter"===e.key&&!m&&(e.preventDefault(),w&&w(e))})),be=(0,d.Z)((e=>{_&&" "===e.key&&W.current&&J&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,(()=>{W.current.pulsate(e)}))),T&&T(e),w&&e.target===e.currentTarget&&ve()&&" "===e.key&&!e.defaultPrevented&&w(e)})),ye=g;"button"===ye&&(G.href||G.to)&&(ye=A);var _e={};"button"===ye?(_e.type=void 0===Z?"button":Z,_e.disabled=m):(G.href||G.to||(_e.role="button"),m&&(_e["aria-disabled"]=m));var Ae=(0,u.Z)(t,Q,z);var Ce=(0,n.Z)({},r,{centerRipple:h,component:g,disabled:m,disableRipple:b,disableTouchRipple:y,focusRipple:_,tabIndex:j,focusVisible:J}),we=(e=>{var{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a={root:["root",t&&"disabled",r&&"focusVisible"]},o=(0,s.Z)(a,q,i);return r&&n&&(o.root+=" ".concat(n)),o})(Ce);return(0,S.jsxs)(Y,(0,n.Z)({as:ye,className:(0,o.Z)(we.root,v),ownerState:Ce,onBlur:he,onClick:w,onContextMenu:oe,onFocus:fe,onKeyDown:me,onKeyUp:be,onMouseDown:ae,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ue,ref:Ae,tabIndex:m?-1:j,type:Z},_e,G,{children:[f,ne?(0,S.jsx)(U,(0,n.Z)({ref:H,center:h},N)):null]}))})),X=K},18749:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(37395),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var f=r(56552),v=["className","raised"],g=(0,l.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),m=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCard"}),{className:a,raised:l=!1}=r,u=(0,i.Z)(r,v),d=(0,n.Z)({},r,{raised:l}),p=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(d);return(0,f.jsx)(g,(0,n.Z)({className:(0,o.Z)(p.root,a),elevation:l?8:void 0,ref:t,ownerState:d},u))}))},51230:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiCardActions",e)}(0,u.Z)("MuiCardActions",["root","spacing"]);var h=r(56552),f=["disableSpacing","className"],v=(0,l.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),g=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:a=!1,className:l}=r,u=(0,n.Z)(r,f),d=(0,i.Z)({},r,{disableSpacing:a}),g=(e=>{var{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.Z)(n,p,t)})(d);return(0,h.jsx)(v,(0,i.Z)({className:(0,o.Z)(g.root,l),ownerState:d,ref:t},u))}))},34930:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var h=r(56552),f=["className","component"],v=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),g=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCardContent"}),{className:a,component:l="div"}=r,u=(0,i.Z)(r,f),d=(0,n.Z)({},r,{component:l}),g=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,h.jsx)(v,(0,n.Z)({as:l,className:(0,o.Z)(g.root,a),ownerState:d,ref:t},u))}))},33022:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(28501),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiCardHeader",e)}var f=(0,d.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),v=r(56552),g=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],m=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,i.Z)({["& .".concat(f.title)]:t.title,["& .".concat(f.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),b=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),y=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),_=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),A=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiCardHeader"}),{action:a,avatar:u,className:d,component:p="div",disableTypography:f=!1,subheader:A,subheaderTypographyProps:C,title:w,titleTypographyProps:S}=r,k=(0,n.Z)(r,g),x=(0,i.Z)({},r,{component:p,disableTypography:f}),P=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},h,t)})(x),E=w;null==E||E.type===l.Z||f||(E=(0,v.jsx)(l.Z,(0,i.Z)({variant:u?"body2":"h5",className:P.title,component:"span",display:"block"},S,{children:E})));var O=A;return null==O||O.type===l.Z||f||(O=(0,v.jsx)(l.Z,(0,i.Z)({variant:u?"body2":"body1",className:P.subheader,color:"text.secondary",component:"span",display:"block"},C,{children:O}))),(0,v.jsxs)(m,(0,i.Z)({className:(0,o.Z)(P.root,d),as:p,ref:t,ownerState:x},k,{children:[u&&(0,v.jsx)(b,{className:P.avatar,ownerState:x,children:u}),(0,v.jsxs)(_,{className:P.content,ownerState:x,children:[E,O]}),a&&(0,v.jsx)(y,{className:P.action,ownerState:x,children:a})]}))}))},90933:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(44326),u=r(56552),d=(0,c.Z)((0,u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),p=r(7023),h=r(18085),f=r(9912),v=r(67336),g=r(24077),m=r(40059),b=r(46051);function y(e){return(0,b.Z)("MuiChip",e)}var _=(0,m.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),A=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],C=(0,g.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e,{color:n,iconColor:i,clickable:a,onDelete:o,size:s,variant:l}=r;return[{["& .".concat(_.avatar)]:t.avatar},{["& .".concat(_.avatar)]:t["avatar".concat((0,h.Z)(s))]},{["& .".concat(_.avatar)]:t["avatarColor".concat((0,h.Z)(n))]},{["& .".concat(_.icon)]:t.icon},{["& .".concat(_.icon)]:t["icon".concat((0,h.Z)(s))]},{["& .".concat(_.icon)]:t["iconColor".concat((0,h.Z)(i))]},{["& .".concat(_.deleteIcon)]:t.deleteIcon},{["& .".concat(_.deleteIcon)]:t["deleteIcon".concat((0,h.Z)(s))]},{["& .".concat(_.deleteIcon)]:t["deleteIconColor".concat((0,h.Z)(n))]},{["& .".concat(_.deleteIcon)]:t["deleteIcon".concat((0,h.Z)(l),"Color").concat((0,h.Z)(n))]},t.root,t["size".concat((0,h.Z)(s))],t["color".concat((0,h.Z)(n))],a&&t.clickable,a&&"default"!==n&&t["clickableColor".concat((0,h.Z)(n),")")],o&&t.deletable,o&&"default"!==n&&t["deletableColor".concat((0,h.Z)(n))],t[l],t["".concat(l).concat((0,h.Z)(n))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,i.Z)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(_.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(_.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},["& .".concat(_.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(_.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(_.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(_.icon)]:(0,i.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,i.Z)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"})),["& .".concat(_.deleteIcon)]:(0,i.Z)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,l.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,l.Fq)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?"rgba(".concat(t.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})},"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&{["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},r.onDelete&&"default"!==r.color&&{["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},r.clickable&&"default"!==r.color&&{["&:hover, &.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"outlined"===r.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(_.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(_.avatar)]:{marginLeft:4},["& .".concat(_.avatarSmall)]:{marginLeft:2},["& .".concat(_.icon)]:{marginLeft:4},["& .".concat(_.iconSmall)]:{marginLeft:2},["& .".concat(_.deleteIcon)]:{marginRight:5},["& .".concat(_.deleteIconSmall)]:{marginRight:3}},"outlined"===r.variant&&"default"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].main,.7)),["&.".concat(_.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity)},["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.focusOpacity)},["& .".concat(_.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}})})),w=(0,g.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{var{ownerState:r}=e,{size:n}=r;return[t.label,t["label".concat((0,h.Z)(n))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function S(e){return"Backspace"===e.key||"Delete"===e.key}var k=a.forwardRef((function(e,t){var r=(0,v.Z)({props:e,name:"MuiChip"}),{avatar:l,className:c,clickable:g,color:m="default",component:b,deleteIcon:_,disabled:k=!1,icon:x,label:P,onClick:E,onDelete:O,onKeyDown:T,onKeyUp:R,size:M="medium",variant:F="filled",tabIndex:I,skipFocusWhenDisabled:D=!1}=r,B=(0,n.Z)(r,A),j=a.useRef(null),N=(0,p.Z)(j,t),L=e=>{e.stopPropagation(),O&&O(e)},Z=!(!1===g||!E)||g,G=Z||O?f.Z:b||"div",z=(0,i.Z)({},r,{component:G,disabled:k,size:M,color:m,iconColor:a.isValidElement(x)&&x.props.color||m,onDelete:!!O,clickable:Z,variant:F}),U=(e=>{var{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:o,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled","size".concat((0,h.Z)(n)),"color".concat((0,h.Z)(i)),l&&"clickable",l&&"clickableColor".concat((0,h.Z)(i)),o&&"deletable",o&&"deletableColor".concat((0,h.Z)(i)),"".concat(c).concat((0,h.Z)(i))],label:["label","label".concat((0,h.Z)(n))],avatar:["avatar","avatar".concat((0,h.Z)(n)),"avatarColor".concat((0,h.Z)(i))],icon:["icon","icon".concat((0,h.Z)(n)),"iconColor".concat((0,h.Z)(a))],deleteIcon:["deleteIcon","deleteIcon".concat((0,h.Z)(n)),"deleteIconColor".concat((0,h.Z)(i)),"deleteIcon".concat((0,h.Z)(c),"Color").concat((0,h.Z)(i))]};return(0,s.Z)(u,y,t)})(z),W=G===f.Z?(0,i.Z)({component:b||"div",focusVisibleClassName:U.focusVisible},O&&{disableRipple:!0}):{},q=null;O&&(q=_&&a.isValidElement(_)?a.cloneElement(_,{className:(0,o.Z)(_.props.className,U.deleteIcon),onClick:L}):(0,u.jsx)(d,{className:(0,o.Z)(U.deleteIcon),onClick:L}));var H=null;l&&a.isValidElement(l)&&(H=a.cloneElement(l,{className:(0,o.Z)(U.avatar,l.props.className)}));var V=null;return x&&a.isValidElement(x)&&(V=a.cloneElement(x,{className:(0,o.Z)(U.icon,x.props.className)})),(0,u.jsxs)(C,(0,i.Z)({as:G,className:(0,o.Z)(U.root,c),disabled:!(!Z||!k)||void 0,onClick:E,onKeyDown:e=>{e.currentTarget===e.target&&S(e)&&e.preventDefault(),T&&T(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&S(e)?O(e):"Escape"===e.key&&j.current&&j.current.blur()),R&&R(e)},ref:N,tabIndex:D&&k?-1:I,ownerState:z},W,B,{children:[H||V,(0,u.jsx)(w,{className:(0,o.Z)(U.label),ownerState:z,children:P}),q]}))}))},69691:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n=r(53816),i=r(39324),a=r(90957),o=r(21914),s=r(51118),l=r(43232),c=r(45717),u=r(18085),d=r(67336),p=r(24077),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiCircularProgress",e)}(0,h.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,m,b,y,_,A,C,w,S=r(56552),k=["className","color","disableShrink","size","style","thickness","value","variant"],x=44,P=(0,c.F4)(_||(_=g||(g=(0,n.Z)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),E=(0,c.F4)(A||(A=m||(m=(0,n.Z)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),O=(0,p.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,u.Z)(r.color))]]}})((e=>{var{ownerState:t,theme:r}=e;return(0,a.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{var{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.iv)(C||(C=b||(b=(0,n.Z)(["\n animation: "," 1.4s linear infinite;\n "]))),P)})),T=(0,p.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),R=(0,p.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.circle,t["circle".concat((0,u.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{var{ownerState:t,theme:r}=e;return(0,a.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{var{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.iv)(w||(w=y||(y=(0,n.Z)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),E)})),M=o.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:c=!1,size:p=40,style:h,thickness:f=3.6,value:g=0,variant:m="indeterminate"}=r,b=(0,i.Z)(r,k),y=(0,a.Z)({},r,{color:o,disableShrink:c,size:p,thickness:f,value:g,variant:m}),_=(e=>{var{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,"color".concat((0,u.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.Z)(r)),i&&"circleDisableShrink"]};return(0,l.Z)(a,v,t)})(y),A={},C={},w={};if("determinate"===m){var P=2*Math.PI*((x-f)/2);A.strokeDasharray=P.toFixed(3),w["aria-valuenow"]=Math.round(g),A.strokeDashoffset="".concat(((100-g)/100*P).toFixed(3),"px"),C.transform="rotate(-90deg)"}return(0,S.jsx)(O,(0,a.Z)({className:(0,s.Z)(_.root,n),style:(0,a.Z)({width:p,height:p},C,h),ownerState:y,ref:t,role:"progressbar"},w,b,{children:(0,S.jsx)(T,{className:_.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(x," ").concat(x),children:(0,S.jsx)(R,{className:_.circle,style:A,ownerState:y,cx:x,cy:x,r:(x-f)/2,fill:"none",strokeWidth:f})})}))}))},28025:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(76704),l=r(46051),c=r(43232),u=r(83849),d=r(9878),p=r(6319),h=r(56552),f=["className","component","disableGutters","fixed","maxWidth","classes"],v=(0,p.Z)(),g=(0,d.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,s.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),m=e=>(0,u.Z)({props:e,name:"MuiContainer",defaultTheme:v});var b=r(18085),y=r(24077),_=r(67336),A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=g,useThemeProps:r=m,componentName:u="MuiContainer"}=e,d=t((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{var{theme:t,ownerState:r}=e;return r.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{var n=r,i=t.breakpoints.values[n];return 0!==i&&(e[t.breakpoints.up(n)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"xs"===r.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[t.breakpoints.up(r.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}})})),p=a.forwardRef((function(e,t){var a=r(e),{className:p,component:v="div",disableGutters:g=!1,fixed:m=!1,maxWidth:b="lg"}=a,y=(0,n.Z)(a,f),_=(0,i.Z)({},a,{component:v,disableGutters:g,fixed:m,maxWidth:b}),A=((e,t)=>{var{classes:r,fixed:n,disableGutters:i,maxWidth:a}=e,o={root:["root",a&&"maxWidth".concat((0,s.Z)(String(a))),n&&"fixed",i&&"disableGutters"]};return(0,c.Z)(o,(e=>(0,l.Z)(t,e)),r)})(_,u);return(0,h.jsx)(d,(0,i.Z)({as:v,ownerState:_,className:(0,o.Z)(A.root,p),ref:t},y))}));return p}({createStyledComponent:(0,y.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,b.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,_.Z)({props:e,name:"MuiContainer"})}),C=A},49266:function(e,t,r){"use strict";var n=r(90957),i=r(21914),a=r(67336),o=r(62890),s=r(56552),l=(e,t)=>(0,n.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),c=e=>(0,n.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});t.ZP=function(e){var t=(0,a.Z)({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:u=!1}=t;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(o.Z,{styles:e=>function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{var r,[n,a]=t;i[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(r=a.palette)?void 0:r.mode}}));var a=(0,n.Z)({html:l(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,n.Z)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},i),o=null==(t=e.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return o&&(a=[a,o]),a}(e,u)}),r]})}},36385:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(3363),c=r(18085),u=r(99413),d=r(55120),p=r(37395),h=r(67336),f=r(24077),v=r(40059),g=r(46051);function m(e){return(0,g.Z)("MuiDialog",e)}var b=(0,v.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),y=r(40300),_=r(65037),A=r(2846),C=r(56552),w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],S=(0,f.ZP)(_.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),k=(0,f.ZP)(u.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),x=(0,f.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.container,t["scroll".concat((0,c.Z)(r.scroll))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),P=(0,f.ZP)(p.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,c.Z)(r.scroll))],t["paperWidth".concat((0,c.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(b.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(b.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(b.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),E=a.forwardRef((function(e,t){var r=(0,h.Z)({props:e,name:"MuiDialog"}),u=(0,A.Z)(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":v,"aria-labelledby":g,BackdropComponent:b,BackdropProps:_,children:E,className:O,disableEscapeKeyDown:T=!1,fullScreen:R=!1,fullWidth:M=!1,maxWidth:F="sm",onBackdropClick:I,onClose:D,open:B,PaperComponent:j=p.Z,PaperProps:N={},scroll:L="paper",TransitionComponent:Z=d.Z,transitionDuration:G=f,TransitionProps:z}=r,U=(0,n.Z)(r,w),W=(0,i.Z)({},r,{disableEscapeKeyDown:T,fullScreen:R,fullWidth:M,maxWidth:F,scroll:L}),q=(e=>{var{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:a}=e,o={root:["root"],container:["container","scroll".concat((0,c.Z)(r))],paper:["paper","paperScroll".concat((0,c.Z)(r)),"paperWidth".concat((0,c.Z)(String(n))),i&&"paperFullWidth",a&&"paperFullScreen"]};return(0,s.Z)(o,m,t)})(W),H=a.useRef(),V=(0,l.Z)(g),Y=a.useMemo((()=>({titleId:V})),[V]);return(0,C.jsx)(k,(0,i.Z)({className:(0,o.Z)(q.root,O),closeAfterTransition:!0,components:{Backdrop:S},componentsProps:{backdrop:(0,i.Z)({transitionDuration:G,as:b},_)},disableEscapeKeyDown:T,onClose:D,open:B,ref:t,onClick:e=>{H.current&&(H.current=null,I&&I(e),D&&D(e,"backdropClick"))},ownerState:W},U,{children:(0,C.jsx)(Z,(0,i.Z)({appear:!0,in:B,timeout:G,role:"presentation"},z,{children:(0,C.jsx)(x,{className:(0,o.Z)(q.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:W,children:(0,C.jsx)(P,(0,i.Z)({as:j,elevation:24,role:"dialog","aria-describedby":v,"aria-labelledby":V},N,{className:(0,o.Z)(q.paper,N.className),ownerState:W,children:(0,C.jsx)(y.Z.Provider,{value:Y,children:E})}))})}))}))}))},40300:function(e,t,r){"use strict";var n=r(21914).createContext({});t.Z=n},53263:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiDialogContent",e)}(0,u.Z)("MuiDialogContent",["root","dividers"]);var h=r(55973),f=r(56552),v=["className","dividers"],g=(0,l.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(h.Z.root," + &")]:{paddingTop:0}})})),m=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiDialogContent"}),{className:a,dividers:l=!1}=r,u=(0,n.Z)(r,v),d=(0,i.Z)({},r,{dividers:l}),h=(e=>{var{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.Z)(n,p,t)})(d);return(0,f.jsx)(g,(0,i.Z)({className:(0,o.Z)(h.root,a),ownerState:d,ref:t},u))}))},55973:function(e,t,r){"use strict";r.d(t,{a:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiDialogTitle",e)}var o=(0,n.Z)("MuiDialogTitle",["root"]);t.Z=o},59836:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(45338),p=r(56552),h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,c.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{var{ownerState:t}=e;return(0,i.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{var{ownerState:t}=e;return(0,i.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),v=(0,c.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),g=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:a=!1,children:l,className:c,component:g=(l?"div":"hr"),flexItem:m=!1,light:b=!1,orientation:y="horizontal",role:_=("hr"!==g?"separator":void 0),textAlign:A="center",variant:C="fullWidth"}=r,w=(0,n.Z)(r,h),S=(0,i.Z)({},r,{absolute:a,component:g,flexItem:m,light:b,orientation:y,role:_,textAlign:A,variant:C}),k=(e=>{var{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,a&&"light","vertical"===o&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===o&&"withChildrenVertical","right"===l&&"vertical"!==o&&"textAlignRight","left"===l&&"vertical"!==o&&"textAlignLeft"],wrapper:["wrapper","vertical"===o&&"wrapperVertical"]};return(0,s.Z)(u,d.V,n)})(S);return(0,p.jsx)(f,(0,i.Z)({as:g,className:(0,o.Z)(k.root,c),role:_,ref:t,ownerState:S},w,{children:l?(0,p.jsx)(v,{className:k.wrapper,ownerState:S,children:l}):null}))}));g.muiSkipListHighlight=!0,t.Z=g},45338:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiDivider",e)}var o=(0,n.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=o},24994:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(99413),c=r(76623),u=r(37395),d=r(18085),p=r(2846),h=r(67336),f=r(24077),v=r(40059),g=r(46051);function m(e){return(0,g.Z)("MuiDrawer",e)}(0,v.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var b=r(56552),y=["BackdropProps"],_=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],A=(e,t)=>{var{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},C=(0,f.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:A})((e=>{var{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),w=(0,f.ZP)("div",{shouldForwardProp:f.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:A})({flex:"0 0 auto"}),S=(0,f.ZP)(u.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,d.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,d.Z)(r.anchor))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),k={left:"right",right:"left",top:"down",bottom:"up"};var x=a.forwardRef((function(e,t){var r=(0,h.Z)({props:e,name:"MuiDrawer"}),l=(0,p.Z)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:v,children:g,className:A,elevation:x=16,hideBackdrop:P=!1,ModalProps:{BackdropProps:E}={},onClose:O,open:T=!1,PaperProps:R={},SlideProps:M,TransitionComponent:F=c.Z,transitionDuration:I=u,variant:D="temporary"}=r,B=(0,n.Z)(r.ModalProps,y),j=(0,n.Z)(r,_),N=a.useRef(!1);a.useEffect((()=>{N.current=!0}),[]);var L=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?k[t]:t}(l,f),Z=f,G=(0,i.Z)({},r,{anchor:Z,elevation:x,open:T,variant:D},j),z=(e=>{var{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,d.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,d.Z)(r))]};return(0,s.Z)(i,m,t)})(G),U=(0,b.jsx)(S,(0,i.Z)({elevation:"temporary"===D?x:0,square:!0},R,{className:(0,o.Z)(z.paper,R.className),ownerState:G,children:g}));if("permanent"===D)return(0,b.jsx)(w,(0,i.Z)({className:(0,o.Z)(z.root,z.docked,A),ownerState:G,ref:t},j,{children:U}));var W=(0,b.jsx)(F,(0,i.Z)({in:T,direction:k[L],timeout:I,appear:N.current},M,{children:U}));return"persistent"===D?(0,b.jsx)(w,(0,i.Z)({className:(0,o.Z)(z.root,z.docked,A),ownerState:G,ref:t},j,{children:W})):(0,b.jsx)(C,(0,i.Z)({BackdropProps:(0,i.Z)({},v,E,{transitionDuration:I}),className:(0,o.Z)(z.root,z.modal,A),open:T,ownerState:G,onClose:O,hideBackdrop:P,ref:t},j,B,{children:W}))}))},55120:function(e,t,r){"use strict";var n=r(90957),i=r(39324),a=r(21914),o=r(5248),s=r(2846),l=r(85478),c=r(7023),u=r(56552),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},h=a.forwardRef((function(e,t){var r=(0,s.Z)(),h={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:f,appear:v=!0,children:g,easing:m,in:b,onEnter:y,onEntered:_,onEntering:A,onExit:C,onExited:w,onExiting:S,style:k,timeout:x=h,TransitionComponent:P=o.ZP}=e,E=(0,i.Z)(e,d),O=a.useRef(null),T=(0,c.Z)(O,g.ref,t),R=e=>t=>{if(e){var r=O.current;void 0===t?e(r):e(r,t)}},M=R(A),F=R(((e,t)=>{(0,l.n)(e);var n=(0,l.C)({style:k,timeout:x,easing:m},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),y&&y(e,t)})),I=R(_),D=R(S),B=R((e=>{var t=(0,l.C)({style:k,timeout:x,easing:m},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),C&&C(e)})),j=R(w);return(0,u.jsx)(P,(0,n.Z)({appear:v,in:b,nodeRef:O,onEnter:F,onEntered:I,onEntering:M,onExit:B,onExited:j,onExiting:D,addEndListener:e=>{f&&f(O.current,e)},timeout:x},E,{children:(e,t)=>a.cloneElement(g,(0,n.Z)({style:(0,n.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],k,g.props.style),ref:T},t))}))}));t.Z=h},52294:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(61082),s=r(43232),l=r(48237),c=r(24077),u=r(67336),d=r(31961),p=r(56552),h=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],f=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((e=>{var t,{theme:r,ownerState:n}=e,a="light"===r.palette.mode,o=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.Z)({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s}},["&.".concat(d.Z.focused)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s},["&.".concat(d.Z.disabled)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:c}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat(null==(t=(r.vars||r).palette[n.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.Z.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.Z.error)]:{"&:before, &:after":{borderBottomColor:(r.vars||r).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")"):o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.Z.disabled,", .").concat(d.Z.error,"):before")]:{borderBottom:"1px solid ".concat((r.vars||r).palette.text.primary)},["&.".concat(d.Z.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,i.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),v=(0,c.ZP)(l.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9})})),g=a.forwardRef((function(e,t){var r,a,c,g,m=(0,u.Z)({props:e,name:"MuiFilledInput"}),{components:b={},componentsProps:y,fullWidth:_=!1,inputComponent:A="input",multiline:C=!1,slotProps:w,slots:S={},type:k="text"}=m,x=(0,n.Z)(m,h),P=(0,i.Z)({},m,{fullWidth:_,inputComponent:A,multiline:C,type:k}),E=(e=>{var{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},a=(0,s.Z)(n,d._,t);return(0,i.Z)({},t,a)})(m),O={root:{ownerState:P},input:{ownerState:P}},T=(null!=w?w:y)?(0,o.Z)(null!=w?w:y,O):O,R=null!=(r=null!=(a=S.root)?a:b.Root)?r:f,M=null!=(c=null!=(g=S.input)?g:b.Input)?c:v;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:R,input:M},componentsProps:T,fullWidth:_,inputComponent:A,multiline:C,ref:t,type:k},x,{classes:E}))}));g.muiName="Input",t.Z=g},31961:function(e,t,r){"use strict";r.d(t,{_:function(){return s}});var n=r(90957),i=r(40059),a=r(46051),o=r(62010);function s(e){return(0,a.Z)("MuiFilledInput",e)}var l=(0,n.Z)({},o.Z,(0,i.Z)("MuiFilledInput",["root","underline","input"]));t.Z=l},27460:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(67336),c=r(24077),u=r(19804),d=r(18085),p=r(7703),h=r(56069),f=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiFormControl",e)}(0,f.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var m=r(56552),b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return(0,i.Z)({},t.root,t["margin".concat((0,d.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((e=>{var{ownerState:t}=e;return(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),_=a.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:v="primary",component:_="div",disabled:A=!1,error:C=!1,focused:w,fullWidth:S=!1,hiddenLabel:k=!1,margin:x="none",required:P=!1,size:E="medium",variant:O="outlined"}=r,T=(0,n.Z)(r,b),R=(0,i.Z)({},r,{color:v,component:_,disabled:A,error:C,fullWidth:S,hiddenLabel:k,margin:x,required:P,size:E,variant:O}),M=(e=>{var{classes:t,margin:r,fullWidth:n}=e,i={root:["root","none"!==r&&"margin".concat((0,d.Z)(r)),n&&"fullWidth"]};return(0,s.Z)(i,g,t)})(R),[F,I]=a.useState((()=>{var e=!1;return c&&a.Children.forEach(c,(t=>{if((0,p.Z)(t,["Input","Select"])){var r=(0,p.Z)(t,["Select"])?t.props.input:t;r&&(0,u.B7)(r.props)&&(e=!0)}})),e})),[D,B]=a.useState((()=>{var e=!1;return c&&a.Children.forEach(c,(t=>{(0,p.Z)(t,["Input","Select"])&&((0,u.vd)(t.props,!0)||(0,u.vd)(t.props.inputProps,!0))&&(e=!0)})),e})),[j,N]=a.useState(!1);A&&j&&N(!1);var L,Z=void 0===w||A?j:w,G=a.useMemo((()=>({adornedStart:F,setAdornedStart:I,color:v,disabled:A,error:C,filled:D,focused:Z,fullWidth:S,hiddenLabel:k,size:E,onBlur:()=>{N(!1)},onEmpty:()=>{B(!1)},onFilled:()=>{B(!0)},onFocus:()=>{N(!0)},registerEffect:L,required:P,variant:O})),[F,v,A,C,D,Z,S,k,L,P,E,O]);return(0,m.jsx)(h.Z.Provider,{value:G,children:(0,m.jsx)(y,(0,i.Z)({as:_,ownerState:R,className:(0,o.Z)(M.root,f),ref:t},T,{children:c}))})}))},56069:function(e,t,r){"use strict";var n=r(21914).createContext(void 0);t.Z=n},31877:function(e,t,r){"use strict";function n(e){var{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e)),{})}r.d(t,{Z:function(){return n}})},73028:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(21914),i=r(56069);function a(){return n.useContext(i.Z)}},74890:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(73028),c=r(51869),u=r(28501),d=r(18085),p=r(24077),h=r(67336),f=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiFormControlLabel",e)}var m=(0,f.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),b=r(31877),y=r(56552),_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],A=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(m.label)]:t.label},t.root,t["labelPlacement".concat((0,d.Z)(r.labelPlacement))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(m.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(m.label)]:{["&.".concat(m.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),C=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{var{theme:t}=e;return{["&.".concat(m.error)]:{color:(t.vars||t).palette.error.main}}})),w=a.forwardRef((function(e,t){var r,p,f=(0,h.Z)({props:e,name:"MuiFormControlLabel"}),{className:v,componentsProps:m={},control:w,disabled:S,disableTypography:k,label:x,labelPlacement:P="end",required:E,slotProps:O={}}=f,T=(0,n.Z)(f,_),R=(0,l.Z)(),M=null!=(r=null!=S?S:w.props.disabled)?r:null==R?void 0:R.disabled,F=null!=E?E:w.props.required,I={disabled:M,required:F};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof w.props[e]&&"undefined"!==typeof f[e]&&(I[e]=f[e])}));var D=(0,b.Z)({props:f,muiFormControl:R,states:["error"]}),B=(0,i.Z)({},f,{disabled:M,labelPlacement:P,required:F,error:D.error}),j=(e=>{var{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled","labelPlacement".concat((0,d.Z)(n)),i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,s.Z)(o,g,t)})(B),N=null!=(p=O.typography)?p:m.typography,L=x;return null==L||L.type===u.Z||k||(L=(0,y.jsx)(u.Z,(0,i.Z)({component:"span"},N,{className:(0,o.Z)(j.label,null==N?void 0:N.className),children:L}))),(0,y.jsxs)(A,(0,i.Z)({className:(0,o.Z)(j.root,v),ownerState:B,ref:t},T,{children:[a.cloneElement(w,I),F?(0,y.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[L,(0,y.jsxs)(C,{ownerState:B,"aria-hidden":!0,className:j.asterisk,children:["\u2009","*"]})]}):L]}))}))},74149:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(31877),c=r(73028),u=r(24077),d=r(18085),p=r(40059),h=r(46051);function f(e){return(0,h.Z)("MuiFormHelperText",e)}var v,g=(0,p.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),m=r(67336),b=r(56552),y=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=(0,u.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,d.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),A=a.forwardRef((function(e,t){var r=(0,m.Z)({props:e,name:"MuiFormHelperText"}),{children:a,className:u,component:p="p"}=r,h=(0,n.Z)(r,y),g=(0,c.Z)(),A=(0,l.Z)({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),C=(0,i.Z)({},r,{component:p,contained:"filled"===A.variant||"outlined"===A.variant,variant:A.variant,size:A.size,disabled:A.disabled,error:A.error,filled:A.filled,focused:A.focused,required:A.required}),w=(e=>{var{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:l,required:c}=e,u={root:["root",i&&"disabled",a&&"error",n&&"size".concat((0,d.Z)(n)),r&&"contained",l&&"focused",o&&"filled",c&&"required"]};return(0,s.Z)(u,f,t)})(C);return(0,b.jsx)(_,(0,i.Z)({as:p,ownerState:C,className:(0,o.Z)(w.root,u),ref:t},h,{children:" "===a?v||(v=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):a}))}))},62890:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(90957),i=(r(21914),r(45717)),a=r(56552);function o(e){var{styles:t,defaultTheme:r={}}=e,n="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,a.jsx)(i.xB,{styles:n})}var s=r(90151);var l=function(e){var{styles:t,themeId:r,defaultTheme:n={}}=e,i=(0,s.Z)(n),l="function"===typeof t?t(r&&i[r]||i):t;return(0,a.jsx)(o,{styles:l})},c=r(64747),u=r(88464);var d=function(e){return(0,a.jsx)(l,(0,n.Z)({},e,{defaultTheme:c.Z,themeId:u.Z}))}},92423:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(3927),l=r(28240),c=r(43232),u=r(24077),d=r(67336),p=r(2846);var h=a.createContext(),f=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiGrid",e)}var m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],b=(0,f.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...m.map((e=>"grid-xs-".concat(e))),...m.map((e=>"grid-sm-".concat(e))),...m.map((e=>"grid-md-".concat(e))),...m.map((e=>"grid-lg-".concat(e))),...m.map((e=>"grid-xl-".concat(e)))]),y=r(56552),_=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function A(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function C(e){var{breakpoints:t,values:r}=e,n="";Object.keys(r).forEach((e=>{""===n&&0!==r[e]&&(n=e)}));var i=Object.keys(t).sort(((e,r)=>t[e]-t[r]));return i.slice(0,i.indexOf(n))}var w=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e,{container:n,direction:i,item:a,spacing:o,wrap:s,zeroMinWidth:l,breakpoints:c}=r,u=[];n&&(u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[r["spacing-xs-".concat(String(e))]];var n=[];return t.forEach((t=>{var i=e[t];Number(i)>0&&n.push(r["spacing-".concat(t,"-").concat(String(i))])})),n}(o,c,t));var d=[];return c.forEach((e=>{var n=r[e];n&&d.push(t["grid-".concat(e,"-").concat(String(n))])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var{theme:t,ownerState:r}=e,n=(0,l.P$)({values:r.direction,breakpoints:t.breakpoints.values});return(0,l.k9)({theme:t},n,(e=>{var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(b.item)]={maxWidth:"none"}),t}))}),(function(e){var{theme:t,ownerState:r}=e,{container:n,rowSpacing:i}=r,a={};if(n&&0!==i){var o,s=(0,l.P$)({values:i,breakpoints:t.breakpoints.values});"object"===typeof s&&(o=C({breakpoints:t.breakpoints.values,values:s})),a=(0,l.k9)({theme:t},s,((e,r)=>{var n,i=t.spacing(e);return"0px"!==i?{marginTop:"-".concat(A(i)),["& > .".concat(b.item)]:{paddingTop:A(i)}}:null!=(n=o)&&n.includes(r)?{}:{marginTop:0,["& > .".concat(b.item)]:{paddingTop:0}}}))}return a}),(function(e){var{theme:t,ownerState:r}=e,{container:n,columnSpacing:i}=r,a={};if(n&&0!==i){var o,s=(0,l.P$)({values:i,breakpoints:t.breakpoints.values});"object"===typeof s&&(o=C({breakpoints:t.breakpoints.values,values:s})),a=(0,l.k9)({theme:t},s,((e,r)=>{var n,i=t.spacing(e);return"0px"!==i?{width:"calc(100% + ".concat(A(i),")"),marginLeft:"-".concat(A(i)),["& > .".concat(b.item)]:{paddingLeft:A(i)}}:null!=(n=o)&&n.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(b.item)]:{paddingLeft:0}}}))}return a}),(function(e){var t,{theme:r,ownerState:n}=e;return r.breakpoints.keys.reduce(((e,a)=>{var o={};if(n[a]&&(t=n[a]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var s=(0,l.P$)({values:n.columns,breakpoints:r.breakpoints.values}),c="object"===typeof s?s[a]:s;if(void 0===c||null===c)return e;var u="".concat(Math.round(t/c*1e8)/1e6,"%"),d={};if(n.container&&n.item&&0!==n.columnSpacing){var p=r.spacing(n.columnSpacing);if("0px"!==p){var h="calc(".concat(u," + ").concat(A(p),")");d={flexBasis:h,maxWidth:h}}}o=(0,i.Z)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===r.breakpoints.values[a]?Object.assign(e,o):e[r.breakpoints.up(a)]=o,e}),{})}));var S=e=>{var{classes:t,container:r,direction:n,item:i,spacing:a,wrap:o,zeroMinWidth:s,breakpoints:l}=e,u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var r=[];return t.forEach((t=>{var n=e[t];if(Number(n)>0){var i="spacing-".concat(t,"-").concat(String(n));r.push(i)}})),r}(a,l));var d=[];l.forEach((t=>{var r=e[t];r&&d.push("grid-".concat(t,"-").concat(String(r)))}));var p={root:["root",r&&"container",i&&"item",s&&"zeroMinWidth",...u,"row"!==n&&"direction-xs-".concat(String(n)),"wrap"!==o&&"wrap-xs-".concat(String(o)),...d]};return(0,c.Z)(p,g,t)},k=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiGrid"}),{breakpoints:l}=(0,p.Z)(),c=(0,s.Z)(r),{className:u,columns:f,columnSpacing:v,component:g="div",container:m=!1,direction:b="row",item:A=!1,rowSpacing:C,spacing:k=0,wrap:x="wrap",zeroMinWidth:P=!1}=c,E=(0,n.Z)(c,_),O=C||k,T=v||k,R=a.useContext(h),M=m?f||12:R,F={},I=(0,i.Z)({},E);l.keys.forEach((e=>{null!=E[e]&&(F[e]=E[e],delete I[e])}));var D=(0,i.Z)({},c,{columns:M,container:m,direction:b,item:A,rowSpacing:O,columnSpacing:T,wrap:x,zeroMinWidth:P,spacing:k},F,{breakpoints:l.keys}),B=S(D);return(0,y.jsx)(h.Provider,{value:M,children:(0,y.jsx)(w,(0,i.Z)({ownerState:D,className:(0,o.Z)(B.root,u),as:g,ref:t},I))})})),x=k},26794:function(e,t,r){"use strict";var n=r(90957),i=r(39324),a=r(21914),o=r(5248),s=r(2846),l=r(85478),c=r(7023),u=r(56552),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return"scale(".concat(e,", ").concat(e**2,")")}var h={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},f="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),v=a.forwardRef((function(e,t){var{addEndListener:r,appear:v=!0,children:g,easing:m,in:b,onEnter:y,onEntered:_,onEntering:A,onExit:C,onExited:w,onExiting:S,style:k,timeout:x="auto",TransitionComponent:P=o.ZP}=e,E=(0,i.Z)(e,d),O=a.useRef(),T=a.useRef(),R=(0,s.Z)(),M=a.useRef(null),F=(0,c.Z)(M,g.ref,t),I=e=>t=>{if(e){var r=M.current;void 0===t?e(r):e(r,t)}},D=I(A),B=I(((e,t)=>{(0,l.n)(e);var r,{duration:n,delay:i,easing:a}=(0,l.C)({style:k,timeout:x,easing:m},{mode:"enter"});"auto"===x?(r=R.transitions.getAutoHeightDuration(e.clientHeight),T.current=r):r=n,e.style.transition=[R.transitions.create("opacity",{duration:r,delay:i}),R.transitions.create("transform",{duration:f?r:.666*r,delay:i,easing:a})].join(","),y&&y(e,t)})),j=I(_),N=I(S),L=I((e=>{var t,{duration:r,delay:n,easing:i}=(0,l.C)({style:k,timeout:x,easing:m},{mode:"exit"});"auto"===x?(t=R.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[R.transitions.create("opacity",{duration:t,delay:n}),R.transitions.create("transform",{duration:f?t:.666*t,delay:f?n:n||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=p(.75),C&&C(e)})),Z=I(w);return a.useEffect((()=>()=>{clearTimeout(O.current)}),[]),(0,u.jsx)(P,(0,n.Z)({appear:v,in:b,nodeRef:M,onEnter:B,onEntered:j,onEntering:D,onExit:L,onExited:Z,onExiting:N,addEndListener:e=>{"auto"===x&&(O.current=setTimeout(e,T.current||0)),r&&r(M.current,e)},timeout:"auto"===x?null:x},E,{children:(e,t)=>a.cloneElement(g,(0,n.Z)({style:(0,n.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden"},h[e],k,g.props.style),ref:F},t))}))}));v.muiSupportAuto=!0,t.Z=v},51929:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(9912),p=r(18085),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiIconButton",e)}var g=(0,h.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),m=r(56552),b=["edge","children","className","color","disabled","disableFocusRipple","size"],y=(0,c.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,p.Z)(r.color))],r.edge&&t["edge".concat((0,p.Z)(r.edge))],t["size".concat((0,p.Z)(r.size))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{var t,{theme:r,ownerState:n}=e,a=null==(t=(r.vars||r).palette)?void 0:t[n.color];return(0,i.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,i.Z)({color:null==a?void 0:a.main},!n.disableRipple&&{"&:hover":(0,i.Z)({},a&&{backgroundColor:r.vars?"rgba(".concat(a.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(a.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:r.typography.pxToRem(28)},{["&.".concat(g.disabled)]:{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}})})),_=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:a=!1,children:l,className:c,color:d="default",disabled:h=!1,disableFocusRipple:f=!1,size:g="medium"}=r,_=(0,n.Z)(r,b),A=(0,i.Z)({},r,{edge:a,color:d,disabled:h,disableFocusRipple:f,size:g}),C=(e=>{var{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled","default"!==n&&"color".concat((0,p.Z)(n)),i&&"edge".concat((0,p.Z)(i)),"size".concat((0,p.Z)(a))]};return(0,s.Z)(o,v,t)})(A);return(0,m.jsx)(y,(0,i.Z)({className:(0,o.Z)(C.root,c),centerRipple:!0,focusRipple:!f,disabled:h,ref:t,ownerState:A},_,{children:l}))}))},17631:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(43232),s=r(61082),l=r(48237),c=r(24077),u=r(67336),d=r(74281),p=r(56552),h=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],f=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,i.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.Z.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.Z.error)]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.Z.disabled,", .").concat(d.Z.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(d.Z.disabled,":before")]:{borderBottomStyle:"dotted"}})})),v=(0,c.ZP)(l.rA,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),g=a.forwardRef((function(e,t){var r,a,c,g,m=(0,u.Z)({props:e,name:"MuiInput"}),{disableUnderline:b,components:y={},componentsProps:_,fullWidth:A=!1,inputComponent:C="input",multiline:w=!1,slotProps:S,slots:k={},type:x="text"}=m,P=(0,n.Z)(m,h),E=(e=>{var{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},a=(0,o.Z)(n,d.l,t);return(0,i.Z)({},t,a)})(m),O={root:{ownerState:{disableUnderline:b}}},T=(null!=S?S:_)?(0,s.Z)(null!=S?S:_,O):O,R=null!=(r=null!=(a=k.root)?a:y.Root)?r:f,M=null!=(c=null!=(g=k.input)?g:y.Input)?c:v;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:R,input:M},slotProps:T,fullWidth:A,inputComponent:C,multiline:w,ref:t,type:x},P,{classes:E}))}));g.muiName="Input",t.Z=g},74281:function(e,t,r){"use strict";r.d(t,{l:function(){return s}});var n=r(90957),i=r(40059),a=r(46051),o=r(62010);function s(e){return(0,a.Z)("MuiInput",e)}var l=(0,n.Z)({},o.Z,(0,i.Z)("MuiInput",["root","underline","input"]));t.Z=l},54589:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(18085),c=r(28501),u=r(56069),d=r(73028),p=r(24077),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiInputAdornment",e)}var g,m=(0,h.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),b=r(67336),y=r(56552),_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],A=(0,p.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["position".concat((0,l.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(m.positionStart,"&:not(.").concat(m.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),C=a.forwardRef((function(e,t){var r=(0,b.Z)({props:e,name:"MuiInputAdornment"}),{children:p,className:h,component:f="div",disablePointerEvents:m=!1,disableTypography:C=!1,position:w,variant:S}=r,k=(0,n.Z)(r,_),x=(0,d.Z)()||{},P=S;S&&x.variant,x&&!P&&(P=x.variant);var E=(0,i.Z)({},r,{hiddenLabel:x.hiddenLabel,size:x.size,disablePointerEvents:m,position:w,variant:P}),O=(e=>{var{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:o}=e,c={root:["root",r&&"disablePointerEvents",i&&"position".concat((0,l.Z)(i)),o,n&&"hiddenLabel",a&&"size".concat((0,l.Z)(a))]};return(0,s.Z)(c,v,t)})(E);return(0,y.jsx)(u.Z.Provider,{value:null,children:(0,y.jsx)(A,(0,i.Z)({as:f,ownerState:E,className:(0,o.Z)(O.root,h),ref:t},k,{children:"string"!==typeof p||C?(0,y.jsxs)(a.Fragment,{children:["start"===w?g||(g=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,y.jsx)(c.Z,{color:"text.secondary",children:p})}))})}))},48237:function(e,t,r){"use strict";r.d(t,{Ej:function(){return x},Gx:function(){return S},_o:function(){return k},rA:function(){return P}});var n=r(39324),i=r(90957),a=r(47208),o=r(21914),s=r(51118),l=r(43232),c=r(48283),u=r(13161),d=r(31877),p=r(56069),h=r(73028),f=r(24077),v=r(67336),g=r(18085),m=r(7023),b=r(30607),y=r(62890),_=r(19804),A=r(62010),C=r(56552),w=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],S=(e,t)=>{var{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,g.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},k=(e,t)=>{var{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},x=(0,f.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:S})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(A.Z.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,i.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),P=(0,f.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode,a=(0,i.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(A.Z.formControl," &")]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&.".concat(A.Z.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),E=(0,C.jsx)(y.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),O=o.forwardRef((function(e,t){var r,f=(0,v.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":y,autoComplete:S,autoFocus:k,className:O,components:T={},componentsProps:R={},defaultValue:M,disabled:F,disableInjectingGlobalStyles:I,endAdornment:D,fullWidth:B=!1,id:j,inputComponent:N="input",inputProps:L={},inputRef:Z,maxRows:G,minRows:z,multiline:U=!1,name:W,onBlur:q,onChange:H,onClick:V,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:$,readOnly:Q,renderSuffix:J,rows:ee,slotProps:te={},slots:re={},startAdornment:ne,type:ie="text",value:ae}=f,oe=(0,n.Z)(f,w),se=null!=L.value?L.value:ae,{current:le}=o.useRef(null!=se),ce=o.useRef(),ue=o.useCallback((e=>{0}),[]),de=(0,m.Z)(ce,Z,L.ref,ue),[pe,he]=o.useState(!1),fe=(0,h.Z)();var ve=(0,d.Z)({props:f,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=fe?fe.focused:pe,o.useEffect((()=>{!fe&&F&&pe&&(he(!1),q&&q())}),[fe,F,pe,q]);var ge=fe&&fe.onFilled,me=fe&&fe.onEmpty,be=o.useCallback((e=>{(0,_.vd)(e)?ge&&ge():me&&me()}),[ge,me]);(0,b.Z)((()=>{le&&be({value:se})}),[se,be,le]);o.useEffect((()=>{be(ce.current)}),[]);var ye=N,_e=L;U&&"input"===ye&&(_e=ee?(0,i.Z)({type:void 0,minRows:ee,maxRows:ee},_e):(0,i.Z)({type:void 0,maxRows:G,minRows:z},_e),ye=c.u);o.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(ne))}),[fe,ne]);var Ae=(0,i.Z)({},f,{color:ve.color||"primary",disabled:ve.disabled,endAdornment:D,error:ve.error,focused:ve.focused,formControl:fe,fullWidth:B,hiddenLabel:ve.hiddenLabel,multiline:U,size:ve.size,startAdornment:ne,type:ie}),Ce=(e=>{var{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:f,type:v}=e,m={root:["root","color".concat((0,g.Z)(r)),n&&"disabled",i&&"error",c&&"fullWidth",o&&"focused",s&&"formControl",h&&"medium"!==h&&"size".concat((0,g.Z)(h)),d&&"multiline",f&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled","search"===v&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.Z)(m,A.u,t)})(Ae),we=re.root||T.Root||x,Se=te.root||R.root||{},ke=re.input||T.Input||P;return _e=(0,i.Z)({},_e,null!=(r=te.input)?r:R.input),(0,C.jsxs)(o.Fragment,{children:[!I&&E,(0,C.jsxs)(we,(0,i.Z)({},Se,!(0,u.X)(we)&&{ownerState:(0,i.Z)({},Ae,Se.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),V&&V(e)}},oe,{className:(0,s.Z)(Ce.root,Se.className,O,Q&&"MuiInputBase-readOnly"),children:[ne,(0,C.jsx)(p.Z.Provider,{value:null,children:(0,C.jsx)(ke,(0,i.Z)({ownerState:Ae,"aria-invalid":ve.error,"aria-describedby":y,autoComplete:S,autoFocus:k,defaultValue:M,disabled:ve.disabled,id:j,onAnimationStart:e=>{be("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:W,placeholder:$,readOnly:Q,required:ve.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},_e,!(0,u.X)(ke)&&{as:ye,ownerState:(0,i.Z)({},Ae,_e.ownerState)},{ref:de,className:(0,s.Z)(Ce.input,_e.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{q&&q(e),L.onBlur&&L.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):he(!1)},onChange:function(e){if(!le){var t=e.target||ce.current;if(null==t)throw new Error((0,a.Z)(1));be({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i{ve.disabled?e.stopPropagation():(Y&&Y(e),L.onFocus&&L.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):he(!0))}}))}),D,J?J((0,i.Z)({},ve,{startAdornment:ne})):null]}))]})}));t.ZP=O},62010:function(e,t,r){"use strict";r.d(t,{u:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiInputBase",e)}var o=(0,n.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.Z=o},19804:function(e,t,r){"use strict";function n(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&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}r.d(t,{B7:function(){return a},vd:function(){return i}})},23482:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),a=r(21914),o=r(43232),s=r(51118),l=r(31877),c=r(73028),u=r(18085),d=r(67336),p=r(24077),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiFormLabel",e)}var g=(0,h.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),m=r(56552),b=["children","className","color","component","disabled","error","filled","focused","required"],y=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return(0,i.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(g.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}})})),_=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{var{theme:t}=e;return{["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}}})),A=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:a,className:p,component:h="label"}=r,f=(0,n.Z)(r,b),g=(0,c.Z)(),A=(0,l.Z)({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C=(0,i.Z)({},r,{color:A.color||"primary",component:h,disabled:A.disabled,error:A.error,filled:A.filled,focused:A.focused,required:A.required}),w=(e=>{var{classes:t,color:r,focused:n,disabled:i,error:a,filled:s,required:l}=e,c={root:["root","color".concat((0,u.Z)(r)),i&&"disabled",a&&"error",s&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return(0,o.Z)(c,v,t)})(C);return(0,m.jsxs)(y,(0,i.Z)({as:h,ownerState:C,className:(0,s.Z)(w.root,p),ref:t},f,{children:[a,A.required&&(0,m.jsxs)(_,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}))}));function C(e){return(0,f.Z)("MuiInputLabel",e)}(0,h.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var w=["disableAnimation","margin","shrink","variant","className"],S=(0,p.ZP)(A,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(g.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),k=a.forwardRef((function(e,t){var r=(0,d.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,shrink:p,className:h}=r,f=(0,n.Z)(r,w),v=(0,c.Z)(),g=p;"undefined"===typeof g&&v&&(g=v.filled||v.focused||v.adornedStart);var b=(0,l.Z)({props:r,muiFormControl:v,states:["size","variant","required"]}),y=(0,i.Z)({},r,{disableAnimation:a,formControl:v,shrink:g,size:b.size,variant:b.variant,required:b.required}),_=(e=>{var{classes:t,formControl:r,size:n,shrink:a,disableAnimation:s,variant:l,required:c}=e,d={root:["root",r&&"formControl",!s&&"animated",a&&"shrink",n&&"normal"!==n&&"size".concat((0,u.Z)(n)),l],asterisk:[c&&"asterisk"]},p=(0,o.Z)(d,C,t);return(0,i.Z)({},t,p)})(y);return(0,m.jsx)(S,(0,i.Z)({"data-shrink":g,ownerState:y,ref:t,className:(0,s.Z)(_.root,h)},f,{classes:_}))}))},48006:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(18085),c=r(24077),u=r(67336),d=r(14175),p=r(7023),h=r(28501),f=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiLink",e)}var m=(0,f.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),b=r(5216),y=r(97013),_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=e=>{var{theme:t,ownerState:r}=e,n=(e=>_[e]||e)(r.color),i=(0,y.DW)(t,"palette.".concat(n),!1)||r.color,a=(0,y.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,b.Fq)(i,.4)},C=r(56552),w=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],S=(0,c.ZP)(h.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["underline".concat((0,l.Z)(r.underline))],"button"===r.component&&t.button]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,i.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:A({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(m.focusVisible)]:{outline:"auto"}})})),k=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiLink"}),{className:c,color:h="primary",component:f="a",onBlur:v,onFocus:m,TypographyClasses:b,underline:y="always",variant:A="inherit",sx:k}=r,x=(0,n.Z)(r,w),{isFocusVisibleRef:P,onBlur:E,onFocus:O,ref:T}=(0,d.Z)(),[R,M]=a.useState(!1),F=(0,p.Z)(t,T),I=(0,i.Z)({},r,{color:h,component:f,focusVisible:R,underline:y,variant:A}),D=(e=>{var{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root","underline".concat((0,l.Z)(i)),"button"===r&&"button",n&&"focusVisible"]};return(0,s.Z)(a,g,t)})(I);return(0,C.jsx)(S,(0,i.Z)({color:h,className:(0,o.Z)(D.root,c),classes:b,component:f,onBlur:e=>{E(e),!1===P.current&&M(!1),v&&v(e)},onFocus:e=>{O(e),!0===P.current&&M(!0),m&&m(e)},ref:F,ownerState:I,variant:A,sx:[...Object.keys(_).includes(h)?[]:[{color:h}],...Array.isArray(k)?k:[k]]},x))}))},6197:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(60998),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiList",e)}(0,d.Z)("MuiList",["root","padding","dense","subheader"]);var f=r(56552),v=["children","className","component","dense","disablePadding","subheader"],g=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),m=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiList"}),{children:l,className:d,component:p="ul",dense:m=!1,disablePadding:b=!1,subheader:y}=r,_=(0,n.Z)(r,v),A=a.useMemo((()=>({dense:m})),[m]),C=(0,i.Z)({},r,{component:p,dense:m,disablePadding:b}),w=(e=>{var{classes:t,disablePadding:r,dense:n,subheader:i}=e,a={root:["root",!r&&"padding",n&&"dense",i&&"subheader"]};return(0,s.Z)(a,h,t)})(C);return(0,f.jsx)(u.Z.Provider,{value:A,children:(0,f.jsxs)(g,(0,i.Z)({as:p,className:(0,o.Z)(w.root,d),ref:t,ownerState:C},_,{children:[y,l]}))})}))},60998:function(e,t,r){"use strict";var n=r(21914).createContext({});t.Z=n},71488:function(e,t,r){"use strict";r.d(t,{ZP:function(){return M}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(13161),c=r(5216),u=r(24077),d=r(67336),p=r(9912),h=r(7703),f=r(30607),v=r(7023),g=r(60998),m=r(40059),b=r(46051);function y(e){return(0,b.Z)("MuiListItem",e)}var _=(0,m.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),A=r(51427);function C(e){return(0,b.Z)("MuiListItemSecondaryAction",e)}(0,m.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var w=r(56552),S=["className"],k=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),x=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:l}=r,c=(0,n.Z)(r,S),u=a.useContext(g.Z),p=(0,i.Z)({},r,{disableGutters:u.disableGutters}),h=(e=>{var{disableGutters:t,classes:r}=e,n={root:["root",t&&"disableGutters"]};return(0,s.Z)(n,C,r)})(p);return(0,w.jsx)(k,(0,i.Z)({className:(0,o.Z)(h.root,l),ownerState:p,ref:t},c))}));x.muiName="ListItemSecondaryAction";var P=x,E=["className"],O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],T=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,i.Z)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{["& > .".concat(A.Z.root)]:{paddingRight:48}},{["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(_.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(_.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(_.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})})),R=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),M=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:u=!1,button:m=!1,children:b,className:A,component:C,components:S={},componentsProps:k={},ContainerComponent:x="li",ContainerProps:{className:M}={},dense:F=!1,disabled:I=!1,disableGutters:D=!1,disablePadding:B=!1,divider:j=!1,focusVisibleClassName:N,secondaryAction:L,selected:Z=!1,slotProps:G={},slots:z={}}=r,U=(0,n.Z)(r.ContainerProps,E),W=(0,n.Z)(r,O),q=a.useContext(g.Z),H=a.useMemo((()=>({dense:F||q.dense||!1,alignItems:c,disableGutters:D})),[c,q.dense,F,D]),V=a.useRef(null);(0,f.Z)((()=>{u&&V.current&&V.current.focus()}),[u]);var Y=a.Children.toArray(b),K=Y.length&&(0,h.Z)(Y[Y.length-1],["ListItemSecondaryAction"]),X=(0,i.Z)({},r,{alignItems:c,autoFocus:u,button:m,dense:H.dense,disabled:I,disableGutters:D,disablePadding:B,divider:j,hasSecondaryAction:K,selected:Z}),$=(e=>{var{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e,p={root:["root",i&&"dense",!o&&"gutters",!l&&"padding",c&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,n)})(X),Q=(0,v.Z)(V,t),J=z.root||S.Root||T,ee=G.root||k.root||{},te=(0,i.Z)({className:(0,o.Z)($.root,ee.className,A),disabled:I},W),re=C||"li";return m&&(te.component=C||"div",te.focusVisibleClassName=(0,o.Z)(_.focusVisible,N),re=p.Z),K?(re=te.component||C?re:"div","li"===x&&("li"===re?re="div":"li"===te.component&&(te.component="div")),(0,w.jsx)(g.Z.Provider,{value:H,children:(0,w.jsxs)(R,(0,i.Z)({as:x,className:(0,o.Z)($.container,M),ref:Q,ownerState:X},U,{children:[(0,w.jsx)(J,(0,i.Z)({},ee,!(0,l.X)(J)&&{as:re,ownerState:(0,i.Z)({},X,ee.ownerState)},te,{children:Y})),Y.pop()]}))})):(0,w.jsx)(g.Z.Provider,{value:H,children:(0,w.jsxs)(J,(0,i.Z)({},ee,{as:re,ref:Q},!(0,l.X)(J)&&{ownerState:(0,i.Z)({},X,ee.ownerState)},te,{children:[Y,L&&(0,w.jsx)(P,{children:L})]}))})}))},86111:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(9912),p=r(30607),h=r(7023),f=r(60998),v=r(51427),g=r(56552),m=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],b=(0,c.ZP)(d.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(v.Z.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(v.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(v.Z.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(v.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(v.Z.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})})),y=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:c=!1,component:d="div",children:y,dense:_=!1,disableGutters:A=!1,divider:C=!1,focusVisibleClassName:w,selected:S=!1,className:k}=r,x=(0,n.Z)(r,m),P=a.useContext(f.Z),E=a.useMemo((()=>({dense:_||P.dense||!1,alignItems:l,disableGutters:A})),[l,P.dense,_,A]),O=a.useRef(null);(0,p.Z)((()=>{c&&O.current&&O.current.focus()}),[c]);var T=(0,i.Z)({},r,{alignItems:l,dense:E.dense,disableGutters:A,divider:C,selected:S}),R=(e=>{var{alignItems:t,classes:r,dense:n,disabled:a,disableGutters:o,divider:l,selected:c}=e,u={root:["root",n&&"dense",!o&&"gutters",l&&"divider",a&&"disabled","flex-start"===t&&"alignItemsFlexStart",c&&"selected"]},d=(0,s.Z)(u,v.t,r);return(0,i.Z)({},r,d)})(T),M=(0,h.Z)(O,t);return(0,g.jsx)(f.Z.Provider,{value:E,children:(0,g.jsx)(b,(0,i.Z)({ref:M,href:x.href||x.to,component:(x.href||x.to)&&"div"===d?"button":d,focusVisibleClassName:(0,o.Z)(R.focusVisible,w),ownerState:T,className:(0,o.Z)(R.root,k)},x,{classes:R,children:y}))})}));t.Z=y},51427:function(e,t,r){"use strict";r.d(t,{t:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiListItemButton",e)}var o=(0,n.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=o},13569:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(77832),d=r(60998),p=r(56552),h=["className"],f=(0,l.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),v=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiListItemIcon"}),{className:l}=r,v=(0,n.Z)(r,h),g=a.useContext(d.Z),m=(0,i.Z)({},r,{alignItems:g.alignItems}),b=(e=>{var{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(n,u.f,r)})(m);return(0,p.jsx)(f,(0,i.Z)({className:(0,o.Z)(b.root,l),ownerState:m,ref:t},v))}));t.Z=v},77832:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiListItemIcon",e)}var o=(0,n.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=o},82309:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(28501),c=r(60998),u=r(67336),d=r(24077),p=r(21230),h=r(56552),f=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],v=(0,d.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(p.Z.primary)]:t.primary},{["& .".concat(p.Z.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),g=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiListItemText"}),{children:d,className:g,disableTypography:m=!1,inset:b=!1,primary:y,primaryTypographyProps:_,secondary:A,secondaryTypographyProps:C}=r,w=(0,n.Z)(r,f),{dense:S}=a.useContext(c.Z),k=null!=y?y:d,x=A,P=(0,i.Z)({},r,{disableTypography:m,inset:b,primary:!!k,secondary:!!x,dense:S}),E=(e=>{var{classes:t,inset:r,primary:n,secondary:i,dense:a}=e,o={root:["root",r&&"inset",a&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,s.Z)(o,p.L,t)})(P);return null==k||k.type===l.Z||m||(k=(0,h.jsx)(l.Z,(0,i.Z)({variant:S?"body2":"body1",className:E.primary,component:null!=_&&_.variant?void 0:"span",display:"block"},_,{children:k}))),null==x||x.type===l.Z||m||(x=(0,h.jsx)(l.Z,(0,i.Z)({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},C,{children:x}))),(0,h.jsxs)(v,(0,i.Z)({className:(0,o.Z)(E.root,g),ownerState:P,ref:t},w,{children:[k,x]}))}));t.Z=g},21230:function(e,t,r){"use strict";r.d(t,{L:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiListItemText",e)}var o=(0,n.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=o},67062:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(90957),i=r(39324),a=r(21914),o=(r(45211),r(51118)),s=r(43232),l=r(78627),c=r(77036),u=r(6197),d=r(34508).Z,p=r(7023),h=r(30607),f=r(56552),v=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function g(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function m(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function b(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function y(e,t,r,n,i,a){for(var o=!1,s=i(e,t,!!t&&r);s;){if(s===e.firstChild){if(o)return!1;o=!0}var l=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&b(s,a)&&!l)return s.focus(),!0;s=i(e,s,r)}return!1}var _=a.forwardRef((function(e,t){var{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:_,disabledItemsFocusable:A=!1,disableListWrap:C=!1,onKeyDown:w,variant:S="selectedMenu"}=e,k=(0,i.Z)(e,v),x=a.useRef(null),P=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,h.Z)((()=>{o&&x.current.focus()}),[o]),a.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{var r=!x.current.style.width;if(e.clientHeight{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1)>=l.length&&(O=-1)):O===t&&(O+=1)>=l.length&&(O=-1)}));var T=a.Children.map(l,((e,t)=>{if(t===O){var r={};return s&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===S&&(r.tabIndex=0),a.cloneElement(e,r)}return e}));return(0,f.jsx)(u.Z,(0,n.Z)({role:"menu",ref:E,className:_,onKeyDown:e=>{var t=x.current,r=e.key,n=(0,c.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),y(t,n,C,A,g);else if("ArrowUp"===r)e.preventDefault(),y(t,n,C,A,m);else if("Home"===r)e.preventDefault(),y(t,null,C,A,g);else if("End"===r)e.preventDefault(),y(t,null,C,A,m);else if(1===r.length){var i=P.current,a=r.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);var s=n&&!i.repeating&&b(n,i);i.previousKeyMatched&&(s||y(t,n,!1,A,g,i))?e.preventDefault():i.previousKeyMatched=!1}w&&w(e)},tabIndex:o?0:-1},k,{children:T}))})),A=r(13161),C=r(24077),w=r(67336),S=r(38822),k=r(67171),x=r(26794),P=r(99413),E=r(37395),O=r(40059),T=r(46051);function R(e){return(0,T.Z)("MuiPopover",e)}(0,O.Z)("MuiPopover",["root","paper"]);var M=["onEntering"],F=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],I=["slotProps"];function D(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function B(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function j(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function N(e){return"function"===typeof e?e():e}var L=(0,C.ZP)(P.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z=(0,C.ZP)(E.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),G=a.forwardRef((function(e,t){var r,u,d,h=(0,w.Z)({props:e,name:"MuiPopover"}),{action:v,anchorEl:g,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:b,anchorReference:y="anchorEl",children:_,className:C,container:P,elevation:E=8,marginThreshold:O=16,open:T,PaperProps:G={},slots:z,slotProps:U,transformOrigin:W={vertical:"top",horizontal:"left"},TransitionComponent:q=x.Z,transitionDuration:H="auto",TransitionProps:{onEntering:V}={},disableScrollLock:Y=!1}=h,K=(0,i.Z)(h.TransitionProps,M),X=(0,i.Z)(h,F),$=null!=(r=null==U?void 0:U.paper)?r:G,Q=a.useRef(),J=(0,p.Z)(Q,$.ref),ee=(0,n.Z)({},h,{anchorOrigin:m,anchorReference:y,elevation:E,marginThreshold:O,externalPaperSlotProps:$,transformOrigin:W,TransitionComponent:q,transitionDuration:H,TransitionProps:K}),te=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},R,t)})(ee),re=a.useCallback((()=>{if("anchorPosition"===y)return b;var e=N(g),t=(e&&1===e.nodeType?e:(0,c.Z)(Q.current).body).getBoundingClientRect();return{top:t.top+D(t,m.vertical),left:t.left+B(t,m.horizontal)}}),[g,m.horizontal,m.vertical,b,y]),ne=a.useCallback((e=>({vertical:D(e,W.vertical),horizontal:B(e,W.horizontal)})),[W.horizontal,W.vertical]),ie=a.useCallback((e=>{var t={width:e.offsetWidth,height:e.offsetHeight},r=ne(t);if("none"===y)return{top:null,left:null,transformOrigin:j(r)};var n=re(),i=n.top-r.vertical,a=n.left-r.horizontal,o=i+t.height,s=a+t.width,l=(0,k.Z)(N(g)),c=l.innerHeight-O,u=l.innerWidth-O;if(null!==O&&ic){var p=o-c;i-=p,r.vertical+=p}if(null!==O&&au){var f=s-u;a-=f,r.horizontal+=f}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:j(r)}}),[g,y,re,ne,O]),[ae,oe]=a.useState(T),se=a.useCallback((()=>{var e=Q.current;if(e){var t=ie(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,oe(!0)}}),[ie]);a.useEffect((()=>(Y&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[g,Y,se]);a.useEffect((()=>{T&&se()})),a.useImperativeHandle(v,(()=>T?{updatePosition:()=>{se()}}:null),[T,se]),a.useEffect((()=>{if(T){var e=(0,S.Z)((()=>{se()})),t=(0,k.Z)(g);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}}),[g,T,se]);var le=H;"auto"!==H||q.muiSupportAuto||(le=void 0);var ce=P||(g?(0,c.Z)(N(g)).body:void 0),ue=null!=(u=null==z?void 0:z.root)?u:L,de=null!=(d=null==z?void 0:z.paper)?d:Z,pe=(0,l.y)({elementType:de,externalSlotProps:(0,n.Z)({},$,{style:ae?$.style:(0,n.Z)({},$.style,{opacity:0})}),additionalProps:{elevation:E,ref:J},ownerState:ee,className:(0,o.Z)(te.paper,null==$?void 0:$.className)}),he=(0,l.y)({elementType:ue,externalSlotProps:(null==U?void 0:U.root)||{},externalForwardedProps:X,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:T},ownerState:ee,className:(0,o.Z)(te.root,C)}),{slotProps:fe}=he,ve=(0,i.Z)(he,I);return(0,f.jsx)(ue,(0,n.Z)({},ve,!(0,A.X)(ue)&&{slotProps:fe,disableScrollLock:Y},{children:(0,f.jsx)(q,(0,n.Z)({appear:!0,in:T,onEntering:(e,t)=>{V&&V(e,t),se()},onExited:()=>{oe(!1)},timeout:le},K,{children:(0,f.jsx)(de,(0,n.Z)({},pe,{children:_}))}))}))})),z=r(2846);function U(e){return(0,T.Z)("MuiMenu",e)}(0,O.Z)("MuiMenu",["root","paper","list"]);var W=["onEntering"],q=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],H={vertical:"top",horizontal:"right"},V={vertical:"top",horizontal:"left"},Y=(0,C.ZP)(G,{shouldForwardProp:e=>(0,C.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),K=(0,C.ZP)(Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),X=(0,C.ZP)(_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$=a.forwardRef((function(e,t){var r,c,u=(0,w.Z)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:p,className:h,disableAutoFocusItem:v=!1,MenuListProps:g={},onClose:m,open:b,PaperProps:y={},PopoverClasses:_,transitionDuration:A="auto",TransitionProps:{onEntering:C}={},variant:S="selectedMenu",slots:k={},slotProps:x={}}=u,P=(0,i.Z)(u.TransitionProps,W),E=(0,i.Z)(u,q),O=(0,z.Z)(),T="rtl"===O.direction,R=(0,n.Z)({},u,{autoFocus:d,disableAutoFocusItem:v,MenuListProps:g,onEntering:C,PaperProps:y,transitionDuration:A,TransitionProps:P,variant:S}),M=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},U,t)})(R),F=d&&!v&&b,I=a.useRef(null),D=-1;a.Children.map(p,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===D)&&(D=t))}));var B=null!=(r=k.paper)?r:K,j=null!=(c=x.paper)?c:y,N=(0,l.y)({elementType:k.root,externalSlotProps:x.root,ownerState:R,className:[M.root,h]}),L=(0,l.y)({elementType:B,externalSlotProps:j,ownerState:R,className:M.paper});return(0,f.jsx)(Y,(0,n.Z)({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?H:V,slots:{paper:B,root:k.root},slotProps:{root:N,paper:L},open:b,ref:t,transitionDuration:A,TransitionProps:(0,n.Z)({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,O),C&&C(e,t)}},P),ownerState:R},E,{classes:_,children:(0,f.jsx)(X,(0,n.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:I,autoFocus:d&&(-1===D||v),autoFocusItem:F,variant:S},g,{className:(0,o.Z)(M.list,g.className),children:p}))}))}))},68686:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(24077),u=r(67336),d=r(60998),p=r(9912),h=r(30607),f=r(7023),v=r(45338),g=r(77832),m=r(21230),b=r(40059),y=r(46051);function _(e){return(0,y.Z)("MuiMenuItem",e)}var A=(0,b.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),C=r(56552),w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],S=(0,c.ZP)(p.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(A.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(A.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(A.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(A.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(A.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(v.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(v.Z.inset)]:{marginLeft:52},["& .".concat(m.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(m.Z.inset)]:{paddingLeft:36},["& .".concat(g.Z.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(g.Z.root," svg")]:{fontSize:"1.25rem"}}))})),k=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:p=!1,divider:v=!1,disableGutters:g=!1,focusVisibleClassName:m,role:b="menuitem",tabIndex:y,className:A}=r,k=(0,n.Z)(r,w),x=a.useContext(d.Z),P=a.useMemo((()=>({dense:p||x.dense||!1,disableGutters:g})),[x.dense,p,g]),E=a.useRef(null);(0,h.Z)((()=>{l&&E.current&&E.current.focus()}),[l]);var O,T=(0,i.Z)({},r,{dense:P.dense,divider:v,disableGutters:g}),R=(e=>{var{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:l}=e,c={root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},u=(0,s.Z)(c,_,l);return(0,i.Z)({},l,u)})(r),M=(0,f.Z)(E,t);return r.disabled||(O=void 0!==y?y:-1),(0,C.jsx)(d.Z.Provider,{value:P,children:(0,C.jsx)(S,(0,i.Z)({ref:M,role:b,tabIndex:O,component:c,focusVisibleClassName:(0,o.Z)(R.focusVisible,m),className:(0,o.Z)(R.root,A)},k,{ownerState:T,classes:R}))})}))},99413:function(e,t,r){"use strict";r.d(t,{Z:function(){return N}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(78627),l=r(43064),c=r(91313),u=r(22713),d=r(82856),p=r(1332),h=r(75979),f=r(34508);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function m(e,t,r,n,i){var a=[t,r,...n];[].forEach.call(e.children,(e=>{var t=-1===a.indexOf(e),r=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&v(e,i)}))}function b(e,t){var r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function y(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,c.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var i=(0,f.Z)((0,c.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(g(n)+i,"px");var a=(0,c.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(a,(e=>{r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(g(e)+i,"px")}))}var o;if(n.parentNode instanceof DocumentFragment)o=(0,c.Z)(n).body;else{var s=n.parentElement,l=(0,h.Z)(n);o="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach((e=>{var{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}var _=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);m(t,e.mount,e.modalRef,n,!0);var i=b(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){var r=b(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=y(n,t))}remove(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=b(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&v(e.modalRef,t),m(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{var a=i.modals[i.modals.length-1];a.modalRef&&v(a.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function A(e){var{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=_,closeAfterTransition:s=!1,onTransitionEnter:h,onTransitionExited:f,children:g,onClose:m,open:b,rootRef:y}=e,A=a.useRef({}),C=a.useRef(null),w=a.useRef(null),S=(0,l.Z)(w,y),[k,x]=a.useState(!b),P=function(e){return!!e&&e.props.hasOwnProperty("in")}(g),E=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(E=!1);var O=()=>(A.current.modalRef=w.current,A.current.mount=C.current,A.current),T=()=>{o.mount(O(),{disableScrollLock:n}),w.current&&(w.current.scrollTop=0)},R=(0,u.Z)((()=>{var e=function(e){return"function"===typeof e?e():e}(t)||(0,c.Z)(C.current).body;o.add(O(),e),w.current&&T()})),M=a.useCallback((()=>o.isTopModal(O())),[o]),F=(0,u.Z)((e=>{C.current=e,e&&(b&&M()?T():w.current&&v(w.current,E))})),I=a.useCallback((()=>{o.remove(O(),E)}),[E,o]);a.useEffect((()=>()=>{I()}),[I]),a.useEffect((()=>{b?R():P&&s||I()}),[b,I,P,s,R]);var D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&M()&&(r||(t.stopPropagation(),m&&m(t,"escapeKeyDown")))},B=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&m&&m(t,"backdropClick")};return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,p._)(e);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,i.Z)({},r,t);return(0,i.Z)({role:"presentation"},n,{onKeyDown:D(n),ref:S})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({"aria-hidden":!0},e,{onClick:B(e),open:b})},getTransitionProps:()=>({onEnter:(0,d.Z)((()=>{x(!1),h&&h()}),null==g?void 0:g.props.onEnter),onExited:(0,d.Z)((()=>{x(!0),f&&f(),s&&I()}),null==g?void 0:g.props.onExited)}),rootRef:S,portalRef:F,isTopModal:M,exited:k,hasTransition:P}}var C=r(43232),w=r(56552),S=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function k(e){var t=[],r=[];return Array.from(e.querySelectorAll(S)).forEach(((e,n)=>{var i=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function x(){return!0}function P(e){var{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=k,isEnabled:s=x,open:u}=e,d=a.useRef(!1),p=a.useRef(null),h=a.useRef(null),f=a.useRef(null),v=a.useRef(null),g=a.useRef(!1),m=a.useRef(null),b=(0,l.Z)(t.ref,m),y=a.useRef(null);a.useEffect((()=>{u&&m.current&&(g.current=!r)}),[r,u]),a.useEffect((()=>{if(u&&m.current){var e=(0,c.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(d.current=!0,f.current.focus()),f.current=null)}}}),[u]),a.useEffect((()=>{if(u&&m.current){var e=(0,c.Z)(m.current),t=t=>{y.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(d.current=!0,h.current&&h.current.focus())},r=()=>{var t=m.current;if(null!==t)if(e.hasFocus()&&s()&&!d.current){if(!t.contains(e.activeElement)&&(!n||e.activeElement===p.current||e.activeElement===h.current)){if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(g.current){var r=[];if(e.activeElement!==p.current&&e.activeElement!==h.current||(r=o(m.current)),r.length>0){var i,a,l=Boolean((null==(i=y.current)?void 0:i.shiftKey)&&"Tab"===(null==(a=y.current)?void 0:a.key)),c=r[0],u=r[r.length-1];"string"!==typeof c&&"string"!==typeof u&&(l?u.focus():c.focus())}else t.focus()}}}else d.current=!1};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);var i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}}),[r,n,i,s,u,o]);var _=e=>{null===f.current&&(f.current=e.relatedTarget),g.current=!0};return(0,w.jsxs)(a.Fragment,{children:[(0,w.jsx)("div",{tabIndex:u?0:-1,onFocus:_,ref:p,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:b,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),g.current=!0,v.current=e.target;var r=t.props.onFocus;r&&r(e)}}),(0,w.jsx)("div",{tabIndex:u?0:-1,onFocus:_,ref:h,"data-testid":"sentinelEnd"})]})}var E=r(18686),O=r(24077),T=r(67336),R=r(65037),M=r(40059),F=r(46051);function I(e){return(0,F.Z)("MuiModal",e)}(0,M.Z)("MuiModal",["root","hidden","backdrop"]);var D=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],B=(0,O.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),j=(0,O.ZP)(R.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),N=a.forwardRef((function(e,t){var r,l,c,u,d,p,h=(0,T.Z)({name:"MuiModal",props:e}),{BackdropComponent:f=j,BackdropProps:v,className:g,closeAfterTransition:m=!1,children:b,container:y,component:_,components:S={},componentsProps:k={},disableAutoFocus:x=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:R=!1,disablePortal:M=!1,disableRestoreFocus:F=!1,disableScrollLock:N=!1,hideBackdrop:L=!1,keepMounted:Z=!1,onBackdropClick:G,open:z,slotProps:U,slots:W}=h,q=(0,n.Z)(h,D),H=(0,i.Z)({},h,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:O,disableEscapeKeyDown:R,disablePortal:M,disableRestoreFocus:F,disableScrollLock:N,hideBackdrop:L,keepMounted:Z}),{getRootProps:V,getBackdropProps:Y,getTransitionProps:K,portalRef:X,isTopModal:$,exited:Q,hasTransition:J}=A((0,i.Z)({},H,{rootRef:t})),ee=(0,i.Z)({},H,{exited:Q}),te=(e=>{var{open:t,exited:r,classes:n}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,C.Z)(i,I,n)})(ee),re={};if(void 0===b.props.tabIndex&&(re.tabIndex="-1"),J){var{onEnter:ne,onExited:ie}=K();re.onEnter=ne,re.onExited=ie}var ae=null!=(r=null!=(l=null==W?void 0:W.root)?l:S.Root)?r:B,oe=null!=(c=null!=(u=null==W?void 0:W.backdrop)?u:S.Backdrop)?c:f,se=null!=(d=null==U?void 0:U.root)?d:k.root,le=null!=(p=null==U?void 0:U.backdrop)?p:k.backdrop,ce=(0,s.y)({elementType:ae,externalSlotProps:se,externalForwardedProps:q,getSlotProps:V,additionalProps:{ref:t,as:_},ownerState:ee,className:(0,o.Z)(g,null==se?void 0:se.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),ue=(0,s.y)({elementType:oe,externalSlotProps:le,additionalProps:v,getSlotProps:e=>Y((0,i.Z)({},e,{onClick:t=>{G&&G(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,o.Z)(null==le?void 0:le.className,null==v?void 0:v.className,null==te?void 0:te.backdrop),ownerState:ee});return Z||z||J&&!Q?(0,w.jsx)(E.h,{ref:X,container:y,disablePortal:M,children:(0,w.jsxs)(ae,(0,i.Z)({},ce,{children:[!L&&f?(0,w.jsx)(oe,(0,i.Z)({},ue)):null,(0,w.jsx)(P,{disableEnforceFocus:O,disableAutoFocus:x,disableRestoreFocus:F,isEnabled:$,open:z,children:a.cloneElement(b,re)})]}))}):null}))},47628:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n,i=r(39324),a=r(90957),o=r(21914),s=r(43232),l=r(24077),c=r(56552),u=["children","classes","className","label","notched"],d=(0,l.ZP)("fieldset")({textAlign:"left",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",minWidth:"0%"}),p=(0,l.ZP)("legend")((e=>{var{ownerState:t,theme:r}=e;return(0,a.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,a.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));var h=r(73028),f=r(31877),v=r(48974),g=r(48237),m=r(67336),b=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],y=(0,l.ZP)(g.Ej,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:g.Gx})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,a.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(v.Z.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(v.Z.focused," .").concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(v.Z.error," .").concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(v.Z.disabled," .").concat(v.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,a.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),_=(0,l.ZP)((function(e){var{className:t,label:r,notched:o}=e,s=(0,i.Z)(e,u),l=null!=r&&""!==r,h=(0,a.Z)({},e,{notched:o,withLabel:l});return(0,c.jsx)(d,(0,a.Z)({"aria-hidden":!0,className:t,ownerState:h},s,{children:(0,c.jsx)(p,{ownerState:h,children:l?(0,c.jsx)("span",{children:r}):n||(n=(0,c.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{var{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),A=(0,l.ZP)(g.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g._o})((e=>{var{theme:t,ownerState:r}=e;return(0,a.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),C=o.forwardRef((function(e,t){var r,n,l,u,d,p=(0,m.Z)({props:e,name:"MuiOutlinedInput"}),{components:C={},fullWidth:w=!1,inputComponent:S="input",label:k,multiline:x=!1,notched:P,slots:E={},type:O="text"}=p,T=(0,i.Z)(p,b),R=(e=>{var{classes:t}=e,r=(0,s.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v.e,t);return(0,a.Z)({},t,r)})(p),M=(0,h.Z)(),F=(0,f.Z)({props:p,muiFormControl:M,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=(0,a.Z)({},p,{color:F.color||"primary",disabled:F.disabled,error:F.error,focused:F.focused,formControl:M,fullWidth:w,hiddenLabel:F.hiddenLabel,multiline:x,size:F.size,type:O}),D=null!=(r=null!=(n=E.root)?n:C.Root)?r:y,B=null!=(l=null!=(u=E.input)?u:C.Input)?l:A;return(0,c.jsx)(g.ZP,(0,a.Z)({slots:{root:D,input:B},renderSuffix:e=>(0,c.jsx)(_,{ownerState:I,className:R.notchedOutline,label:null!=k&&""!==k&&F.required?d||(d=(0,c.jsxs)(o.Fragment,{children:[k,"\u2009","*"]})):k,notched:"undefined"!==typeof P?P:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:w,inputComponent:S,multiline:x,ref:t,type:O},T,{classes:(0,a.Z)({},R,{notchedOutline:null})}))}));C.muiName="Input";var w=C},48974:function(e,t,r){"use strict";r.d(t,{e:function(){return s}});var n=r(90957),i=r(40059),a=r(46051),o=r(62010);function s(e){return(0,a.Z)("MuiOutlinedInput",e)}var l=(0,n.Z)({},o.Z,(0,i.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));t.Z=l},74128:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(67336),c=r(40059),u=r(46051);function d(e){return(0,u.Z)("MuiPagination",e)}(0,c.Z)("MuiPagination",["root","ul","outlined","text"]);var p=r(23151),h=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var f=r(81797),v=r(24077),g=r(56552),m=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],b=(0,v.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),y=(0,v.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function _(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var A=a.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiPagination"}),{boundaryCount:a=1,className:c,color:u="standard",count:v=1,defaultPage:A=1,disabled:C=!1,getItemAriaLabel:w=_,hideNextButton:S=!1,hidePrevButton:k=!1,renderItem:x=(e=>(0,g.jsx)(f.Z,(0,n.Z)({},e))),shape:P="circular",showFirstButton:E=!1,showLastButton:O=!1,siblingCount:T=1,size:R="medium",variant:M="text"}=r,F=(0,i.Z)(r,m),{items:I}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{boundaryCount:t=1,componentName:r="usePagination",count:a=1,defaultPage:o=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:u,page:d,showFirstButton:f=!1,showLastButton:v=!1,siblingCount:g=1}=e,m=(0,i.Z)(e,h),[b,y]=(0,p.Z)({controlled:d,default:o,name:r,state:"page"}),_=(e,t)=>{d||y(t),u&&u(e,t)},A=(e,t)=>{var r=t-e+1;return Array.from({length:r},((t,r)=>e+r))},C=A(1,Math.min(t,a)),w=A(Math.max(a-t+1,t+1),a),S=Math.max(Math.min(b-g,a-t-2*g-1),t+2),k=Math.min(Math.max(b+g,t+2*g+2),w.length>0?w[0]-2:a-1),x=[...f?["first"]:[],...c?[]:["previous"],...C,...S>t+2?["start-ellipsis"]:t+1t?[a-t]:[],...w,...l?[]:["next"],...v?["last"]:[]],P=e=>{switch(e){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return a;default:return null}},E=x.map((e=>"number"===typeof e?{onClick:t=>{_(t,e)},type:"page",page:e,selected:e===b,disabled:s,"aria-current":e===b?"true":void 0}:{onClick:t=>{_(t,P(e))},type:e,page:P(e),selected:!1,disabled:s||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?b>=a:b<=1)}));return(0,n.Z)({items:E},m)}((0,n.Z)({},r,{componentName:"Pagination"})),D=(0,n.Z)({},r,{boundaryCount:a,color:u,count:v,defaultPage:A,disabled:C,getItemAriaLabel:w,hideNextButton:S,hidePrevButton:k,renderItem:x,shape:P,showFirstButton:E,showLastButton:O,siblingCount:T,size:R,variant:M}),B=(e=>{var{classes:t,variant:r}=e,n={root:["root",r],ul:["ul"]};return(0,s.Z)(n,d,t)})(D);return(0,g.jsx)(b,(0,n.Z)({"aria-label":"pagination navigation",className:(0,o.Z)(B.root,c),ownerState:D,ref:t},F,{children:(0,g.jsx)(y,{className:B.ul,ownerState:D,children:I.map(((e,t)=>(0,g.jsx)("li",{children:x((0,n.Z)({},e,{color:u,"aria-label":w(e.type,e.page,e.selected),shape:P,size:R,variant:M}))},t)))})}))})),C=A},81797:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiPaginationItem",e)}var h=(0,u.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),f=r(2846),v=r(9912),g=r(18085),m=r(7511),b=r(98958),y=r(44326),_=r(56552),A=(0,y.Z)((0,_.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),C=(0,y.Z)((0,_.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),w=r(24077),S=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],k=(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,g.Z)(r.size))],"text"===r.variant&&t["text".concat((0,g.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,g.Z)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},x=(0,w.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(h.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),P=(0,w.ZP)(v.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(h.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(h.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selected," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(h.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selected," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(h.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},"text"===r.variant&&{["&.".concat(h.selected)]:(0,i.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(h.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(h.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(h.selected)]:(0,i.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,l.Fq)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(h.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})})),E=(0,w.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})})),O=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiPaginationItem"}),{className:a,color:l="standard",component:u,components:d={},disabled:h=!1,page:v,selected:y=!1,shape:w="circular",size:k="medium",slots:O={},type:T="page",variant:R="text"}=r,M=(0,n.Z)(r,S),F=(0,i.Z)({},r,{color:l,disabled:h,selected:y,shape:w,size:k,type:T,variant:R}),I=(0,f.Z)(),D=(e=>{var{classes:t,color:r,disabled:n,selected:i,size:a,shape:o,type:l,variant:c}=e,u={root:["root","size".concat((0,g.Z)(a)),c,o,"standard"!==r&&"".concat(c).concat((0,g.Z)(r)),n&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,s.Z)(u,p,t)})(F),B=("rtl"===I.direction?{previous:O.next||d.next||C,next:O.previous||d.previous||A,last:O.first||d.first||m.Z,first:O.last||d.last||b.Z}:{previous:O.previous||d.previous||A,next:O.next||d.next||C,first:O.first||d.first||m.Z,last:O.last||d.last||b.Z})[T];return"start-ellipsis"===T||"end-ellipsis"===T?(0,_.jsx)(x,{ref:t,ownerState:F,className:(0,o.Z)(D.root,a),children:"\u2026"}):(0,_.jsxs)(P,(0,i.Z)({ref:t,ownerState:F,component:u,disabled:h,className:(0,o.Z)(D.root,a)},M,{children:["page"===T&&v,B?(0,_.jsx)(E,{as:B,ownerState:F,className:D.icon}):null]}))}))},37395:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(24077),u=e=>((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2),d=r(67336),p=r(40059),h=r(46051);function f(e){return(0,h.Z)("MuiPaper",e)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var v=r(56552),g=["className","component","elevation","square","variant"],m=(0,c.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((e=>{var t,{theme:r,ownerState:n}=e;return(0,i.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&(0,i.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",u(n.elevation)),", ").concat((0,l.Fq)("#fff",u(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),b=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiPaper"}),{className:a,component:l="div",elevation:c=1,square:u=!1,variant:p="elevation"}=r,h=(0,n.Z)(r,g),b=(0,i.Z)({},r,{component:l,elevation:c,square:u,variant:p}),y=(e=>{var{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,s.Z)(a,f,i)})(b);return(0,v.jsx)(m,(0,i.Z)({as:l,ownerState:b,className:(0,o.Z)(y.root,a),ref:t},h))}))},6409:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(72795),u=r(67336),d=r(44326),p=r(56552),h=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),f=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),v=r(24077),g=(0,v.ZP)("span")({position:"relative",display:"flex"}),m=(0,v.ZP)(h)({transform:"scale(1)"}),b=(0,v.ZP)(f)((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var y=function(e){var{checked:t=!1,classes:r={},fontSize:n}=e,a=(0,i.Z)({},e,{checked:t});return(0,p.jsxs)(g,{className:r.root,ownerState:a,children:[(0,p.jsx)(m,{fontSize:n,className:r.background,ownerState:a}),(0,p.jsx)(b,{fontSize:n,className:r.dot,ownerState:a})]})},_=r(18085),A=r(19504),C=r(2918);var w=r(40059),S=r(46051);function k(e){return(0,S.Z)("MuiRadio",e)}var x=(0,w.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),P=["checked","checkedIcon","color","icon","name","onChange","size","className"],E=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["color".concat((0,_.Z)(r.color))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(x.checked)]:{color:(t.vars||t).palette[r.color].main}},{["&.".concat(x.disabled)]:{color:(t.vars||t).palette.action.disabled}})}));var O=(0,p.jsx)(y,{checked:!0}),T=(0,p.jsx)(y,{}),R=a.forwardRef((function(e,t){var r,l,c,d,h=(0,u.Z)({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:v=O,color:g="primary",icon:m=T,name:b,onChange:y,size:w="medium",className:S}=h,x=(0,n.Z)(h,P),R=(0,i.Z)({},h,{color:g,size:w}),M=(e=>{var{classes:t,color:r,size:n}=e,a={root:["root","color".concat((0,_.Z)(r)),"medium"!==n&&"size".concat((0,_.Z)(n))]};return(0,i.Z)({},t,(0,s.Z)(a,k,t))})(R),F=a.useContext(C.Z),I=f,D=(0,A.Z)(y,F&&F.onChange),B=b;return F&&("undefined"===typeof I&&(c=F.value,I="object"===typeof(d=h.value)&&null!==d?c===d:String(c)===String(d)),"undefined"===typeof B&&(B=F.name)),(0,p.jsx)(E,(0,i.Z)({type:"radio",icon:a.cloneElement(m,{fontSize:null!=(r=T.props.fontSize)?r:w}),checkedIcon:a.cloneElement(v,{fontSize:null!=(l=O.props.fontSize)?l:w}),ownerState:R,classes:M,name:B,checked:I,onChange:D,ref:t,className:(0,o.Z)(M.root,S)},x))}))},62381:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(24077),c=r(67336),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiFormGroup",e)}(0,u.Z)("MuiFormGroup",["root","row","error"]);var h=r(73028),f=r(31877),v=r(56552),g=["className","row"],m=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{var{ownerState:t}=e;return(0,n.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),b=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:a,row:l=!1}=r,u=(0,i.Z)(r,g),d=(0,h.Z)(),b=(0,f.Z)({props:r,muiFormControl:d,states:["error"]}),y=(0,n.Z)({},r,{row:l,error:b.error}),_=(e=>{var{classes:t,row:r,error:n}=e,i={root:["root",r&&"row",n&&"error"]};return(0,s.Z)(i,p,t)})(y);return(0,v.jsx)(m,(0,n.Z)({className:(0,o.Z)(_.root,a),ownerState:y,ref:t},u))})),y=r(7023),_=r(31509),A=r(2918),C=r(25964),w=["actions","children","defaultValue","name","onChange","value"],S=a.forwardRef((function(e,t){var{actions:r,children:o,defaultValue:s,name:l,onChange:c,value:u}=e,d=(0,i.Z)(e,w),p=a.useRef(null),[h,f]=(0,_.Z)({controlled:u,default:s,name:"RadioGroup"});a.useImperativeHandle(r,(()=>({focus:()=>{var e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);var g=(0,y.Z)(t,p),m=(0,C.Z)(l),S=a.useMemo((()=>({name:m,onChange(e){f(e.target.value),c&&c(e,e.target.value)},value:h})),[m,c,f,h]);return(0,v.jsx)(A.Z.Provider,{value:S,children:(0,v.jsx)(b,(0,n.Z)({role:"radiogroup",ref:g},d,{children:o}))})}))},2918:function(e,t,r){"use strict";var n=r(21914).createContext(void 0);t.Z=n},96806:function(e,t,r){"use strict";r.d(t,{Z:function(){return J}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(61082),l=r(47208),c=(r(45211),r(43232)),u=r(3363),d=r(77036),p=r(18085),h=r(67062),f=r(40059),v=r(46051);function g(e){return(0,v.Z)("MuiNativeSelect",e)}var m=(0,f.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b=r(24077),y=r(56552),_=["className","disabled","error","IconComponent","inputRef","variant"],A=e=>{var{ownerState:t,theme:r}=e;return(0,n.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,n.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(m.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},C=(0,b.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:b.FO,overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(m.multiple)]:t.multiple}]}})(A),w=e=>{var{ownerState:t,theme:r}=e;return(0,n.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(m.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},S=(0,b.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,p.Z)(r.variant))],r.open&&t.iconOpen]}})(w),k=a.forwardRef((function(e,t){var{className:r,disabled:s,error:l,IconComponent:u,inputRef:d,variant:h="standard"}=e,f=(0,i.Z)(e,_),v=(0,n.Z)({},e,{disabled:s,variant:h,error:l}),m=(e=>{var{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon","icon".concat((0,p.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,c.Z)(s,g,t)})(v);return(0,y.jsxs)(a.Fragment,{children:[(0,y.jsx)(C,(0,n.Z)({ownerState:v,className:(0,o.Z)(m.select,r),disabled:s,ref:d||t},f)),e.multiple?null:(0,y.jsx)(S,{as:u,ownerState:v,className:m.icon})]})})),x=r(19804),P=r(7023),E=r(31509);function O(e){return(0,v.Z)("MuiSelect",e)}var T,R=(0,f.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),M=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],F=(0,b.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["&.".concat(R.select)]:t.select},{["&.".concat(R.select)]:t[r.variant]},{["&.".concat(R.error)]:t.error},{["&.".concat(R.multiple)]:t.multiple}]}})(A,{["&.".concat(R.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),I=(0,b.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,p.Z)(r.variant))],r.open&&t.iconOpen]}})(w),D=(0,b.ZP)("input",{shouldForwardProp:e=>(0,b.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function j(e){return null==e||"string"===typeof e&&!e.trim()}var N=a.forwardRef((function(e,t){var r,{"aria-describedby":s,"aria-label":f,autoFocus:v,autoWidth:g,children:m,className:b,defaultOpen:_,defaultValue:A,disabled:C,displayEmpty:w,error:S=!1,IconComponent:k,inputRef:R,labelId:N,MenuProps:L={},multiple:Z,name:G,onBlur:z,onChange:U,onClose:W,onFocus:q,onOpen:H,open:V,readOnly:Y,renderValue:K,SelectDisplayProps:X={},tabIndex:$,value:Q,variant:J="standard"}=e,ee=(0,i.Z)(e,M),[te,re]=(0,E.Z)({controlled:Q,default:A,name:"Select"}),[ne,ie]=(0,E.Z)({controlled:V,default:_,name:"Select"}),ae=a.useRef(null),oe=a.useRef(null),[se,le]=a.useState(null),{current:ce}=a.useRef(null!=V),[ue,de]=a.useState(),pe=(0,P.Z)(t,R),he=a.useCallback((e=>{oe.current=e,e&&le(e)}),[]),fe=null==se?void 0:se.parentNode;a.useImperativeHandle(pe,(()=>({focus:()=>{oe.current.focus()},node:ae.current,value:te})),[te]),a.useEffect((()=>{_&&ne&&se&&!ce&&(de(g?null:fe.clientWidth),oe.current.focus())}),[se,g]),a.useEffect((()=>{v&&oe.current.focus()}),[v]),a.useEffect((()=>{if(N){var e=(0,d.Z)(oe.current).getElementById(N);if(e){var t=()=>{getSelection().isCollapsed&&oe.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}}),[N]);var ve,ge,me=(e,t)=>{e?H&&H(t):W&&W(t),ce||(de(g?null:fe.clientWidth),ie(e))},be=a.Children.toArray(m),ye=e=>t=>{var r;if(t.currentTarget.hasAttribute("tabindex")){if(Z){r=Array.isArray(te)?te.slice():[];var n=te.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==r&&(re(r),U)){var i=t.nativeEvent||t,a=new i.constructor(i.type,i);Object.defineProperty(a,"target",{writable:!0,value:{value:r,name:G}}),U(a,e)}Z||me(!1,t)}},_e=null!==se&≠delete ee["aria-invalid"];var Ae=[],Ce=!1;((0,x.vd)({value:te})||w)&&(K?ve=K(te):Ce=!0);var we=be.map((e=>{if(!a.isValidElement(e))return null;var t;if(Z){if(!Array.isArray(te))throw new Error((0,l.Z)(2));(t=te.some((t=>B(t,e.props.value))))&&Ce&&Ae.push(e.props.children)}else(t=B(te,e.props.value))&&Ce&&(ge=e.props.children);return t&&!0,a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ye(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Ce&&(ve=Z?0===Ae.length?null:Ae.reduce(((e,t,r)=>(e.push(t),r{var{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon","icon".concat((0,p.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,c.Z)(s,O,t)})(Pe),Oe=(0,n.Z)({},L.PaperProps,null==(r=L.slotProps)?void 0:r.paper),Te=(0,u.Z)();return(0,y.jsxs)(a.Fragment,{children:[(0,y.jsx)(F,(0,n.Z)({ref:he,tabIndex:Se,role:"combobox","aria-controls":Te,"aria-disabled":C?"true":void 0,"aria-expanded":_e?"true":"false","aria-haspopup":"listbox","aria-label":f,"aria-labelledby":[N,xe].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),me(!0,e))}},onMouseDown:C||Y?null:e=>{0===e.button&&(e.preventDefault(),oe.current.focus(),me(!0,e))},onBlur:e=>{!_e&&z&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:G}}),z(e))},onFocus:q},X,{ownerState:Pe,className:(0,o.Z)(X.className,Ee.select,b),id:xe,children:j(ve)?T||(T=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):ve})),(0,y.jsx)(D,(0,n.Z)({"aria-invalid":S,value:Array.isArray(te)?te.join(","):te,name:G,ref:ae,"aria-hidden":!0,onChange:e=>{var t=be.find((t=>t.props.value===e.target.value));void 0!==t&&(re(t.props.value),U&&U(e,t))},tabIndex:-1,disabled:C,className:Ee.nativeInput,autoFocus:v,ownerState:Pe},ee)),(0,y.jsx)(I,{as:k,className:Ee.icon,ownerState:Pe}),(0,y.jsx)(h.Z,(0,n.Z)({id:"menu-".concat(G||""),anchorEl:fe,open:_e,onClose:e=>{me(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},L,{MenuListProps:(0,n.Z)({"aria-labelledby":N,role:"listbox","aria-multiselectable":Z?"true":void 0,disableListWrap:!0,id:Te},L.MenuListProps),slotProps:(0,n.Z)({},L.slotProps,{paper:(0,n.Z)({},Oe,{style:(0,n.Z)({minWidth:ke},null!=Oe?Oe.style:null)})}),children:we}))]})})),L=r(31877),Z=r(73028),G=r(57266),z=r(17631),U=r(52294),W=r(47628),q=r(67336),H=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],V=["root"],Y={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,b.FO)(e)&&"variant"!==e,slot:"Root"},K=(0,b.ZP)(z.Z,Y)(""),X=(0,b.ZP)(W.Z,Y)(""),$=(0,b.ZP)(U.Z,Y)(""),Q=a.forwardRef((function(e,t){var r=(0,q.Z)({name:"MuiSelect",props:e}),{autoWidth:l=!1,children:c,classes:u={},className:d,defaultOpen:p=!1,displayEmpty:h=!1,IconComponent:f=G.Z,id:v,input:g,inputProps:m,label:b,labelId:_,MenuProps:A,multiple:C=!1,native:w=!1,onClose:S,onOpen:x,open:E,renderValue:O,SelectDisplayProps:T,variant:R="outlined"}=r,M=(0,i.Z)(r,H),F=w?k:N,I=(0,Z.Z)(),D=(0,L.Z)({props:r,muiFormControl:I,states:["variant","error"]}),B=D.variant||R,j=(0,n.Z)({},r,{variant:B,classes:u}),z=(e=>{var{classes:t}=e;return t})(j),U=(0,i.Z)(z,V),W=g||{standard:(0,y.jsx)(K,{ownerState:j}),outlined:(0,y.jsx)(X,{label:b,ownerState:j}),filled:(0,y.jsx)($,{ownerState:j})}[B],Y=(0,P.Z)(t,W.ref);return(0,y.jsx)(a.Fragment,{children:a.cloneElement(W,(0,n.Z)({inputComponent:F,inputProps:(0,n.Z)({children:c,error:D.error,IconComponent:f,variant:B,type:void 0,multiple:C},w?{id:v}:{autoWidth:l,defaultOpen:p,displayEmpty:h,labelId:_,MenuProps:A,onClose:S,onOpen:x,open:E,renderValue:O,SelectDisplayProps:(0,n.Z)({id:v},T)},m,{classes:m?(0,s.Z)(U,m.classes):U},g?g.props.inputProps:{})},C&&w&&"outlined"===B?{notched:!0}:{},{ref:Y,className:(0,o.Z)(W.props.className,d,z.root)},!g&&{variant:B},M))})}));Q.muiName="Select";var J=Q},76623:function(e,t,r){"use strict";var n=r(90957),i=r(39324),a=r(21914),o=r(5248),s=r(38822),l=r(7023),c=r(2846),u=r(85478),d=r(67171),p=r(56552),h=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(e,t,r){var n,i=function(e,t,r){var n,i=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=(0,d.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{var s=o.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,c=0;if(n&&"none"!==n&&"string"===typeof n){var u=n.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return"left"===e?"translateX(".concat(a?a.right+l-i.left:o.innerWidth+l-i.left,"px)"):"right"===e?"translateX(-".concat(a?i.right-a.left-l:i.left+i.width-l,"px)"):"up"===e?"translateY(".concat(a?a.bottom+c-i.top:o.innerHeight+c-i.top,"px)"):"translateY(-".concat(a?i.top-a.top+i.height-c:i.top+i.height-c,"px)")}(e,t,"function"===typeof(n=r)?n():n);i&&(t.style.webkitTransform=i,t.style.transform=i)}var v=a.forwardRef((function(e,t){var r=(0,c.Z)(),v={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},g={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:m,appear:b=!0,children:y,container:_,direction:A="down",easing:C=v,in:w,onEnter:S,onEntered:k,onEntering:x,onExit:P,onExited:E,onExiting:O,style:T,timeout:R=g,TransitionComponent:M=o.ZP}=e,F=(0,i.Z)(e,h),I=a.useRef(null),D=(0,l.Z)(y.ref,I,t),B=e=>t=>{e&&(void 0===t?e(I.current):e(I.current,t))},j=B(((e,t)=>{f(A,e,_),(0,u.n)(e),S&&S(e,t)})),N=B(((e,t)=>{var i=(0,u.C)({timeout:R,style:T,easing:C},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,n.Z)({},i)),e.style.transition=r.transitions.create("transform",(0,n.Z)({},i)),e.style.webkitTransform="none",e.style.transform="none",x&&x(e,t)})),L=B(k),Z=B(O),G=B((e=>{var t=(0,u.C)({timeout:R,style:T,easing:C},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),f(A,e,_),P&&P(e)})),z=B((e=>{e.style.webkitTransition="",e.style.transition="",E&&E(e)})),U=a.useCallback((()=>{I.current&&f(A,I.current,_)}),[A,_]);return a.useEffect((()=>{if(!w&&"down"!==A&&"right"!==A){var e=(0,s.Z)((()=>{I.current&&f(A,I.current,_)})),t=(0,d.Z)(I.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}}),[A,w,_]),a.useEffect((()=>{w||U()}),[w,U]),(0,p.jsx)(M,(0,n.Z)({nodeRef:I,onEnter:j,onEntered:L,onEntering:N,onExit:G,onExited:z,onExiting:Z,addEndListener:e=>{m&&m(I.current,e)},appear:b,in:w,timeout:R},F,{children:(e,t)=>a.cloneElement(y,(0,n.Z)({ref:D,style:(0,n.Z)({visibility:"exited"!==e||w?void 0:"hidden"},T,y.props.style)},t))}))}));t.Z=v},66269:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(39324),i=r(90957),a=r(21914),o=r(43232),s=r(78627),l=r(43064),c=r(22713),u=r(91313),d=r(56552);function p(e){return e.substring(2).toLowerCase()}function h(e){var{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,s=a.useRef(!1),h=a.useRef(null),f=a.useRef(!1),v=a.useRef(!1);a.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);var g=(0,l.Z)(t.ref,h),m=(0,c.Z)((e=>{var t=v.current;v.current=!1;var n=(0,u.Z)(h.current);!f.current||!h.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||h.current.contains(e.target))||!r&&t||i(e))})),b=e=>r=>{v.current=!0;var n=t.props[e];n&&n(r)},y={ref:g};return!1!==o&&(y[o]=b(o)),a.useEffect((()=>{if(!1!==o){var e=p(o),t=(0,u.Z)(h.current),r=()=>{s.current=!0};return t.addEventListener(e,m),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,m),t.removeEventListener("touchmove",r)}}}),[m,o]),!1!==n&&(y[n]=b(n)),a.useEffect((()=>{if(!1!==n){var e=p(n),t=(0,u.Z)(h.current);return t.addEventListener(e,m),()=>{t.removeEventListener(e,m)}}}),[m,n]),(0,d.jsx)(a.Fragment,{children:a.cloneElement(t,y)})}var f=r(1332);var v=r(24077),g=r(2846),m=r(67336),b=r(18085),y=r(26794),_=r(51118),A=r(5216),C=r(37395),w=r(40059),S=r(46051);function k(e){return(0,S.Z)("MuiSnackbarContent",e)}(0,w.Z)("MuiSnackbarContent",["root","message","action"]);var x=["action","className","message","role"],P=(0,v.ZP)(C.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{var{theme:t}=e,r="light"===t.palette.mode?.8:.98,n=(0,A._4)(t.palette.background.default,r);return(0,i.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),E=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),O=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=a.forwardRef((function(e,t){var r=(0,m.Z)({props:e,name:"MuiSnackbarContent"}),{action:a,className:s,message:l,role:c="alert"}=r,u=(0,n.Z)(r,x),p=r,h=(e=>{var{classes:t}=e;return(0,o.Z)({root:["root"],action:["action"],message:["message"]},k,t)})(p);return(0,d.jsxs)(P,(0,i.Z)({role:c,square:!0,elevation:6,className:(0,_.Z)(h.root,s),ownerState:p,ref:t},u,{children:[(0,d.jsx)(E,{className:h.message,ownerState:p,children:l}),a?(0,d.jsx)(O,{className:h.action,ownerState:p,children:a}):null]}))}));function R(e){return(0,S.Z)("MuiSnackbar",e)}(0,w.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var M=["onEnter","onExited"],F=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],I=(0,v.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,b.Z)(r.anchorOrigin.vertical)).concat((0,b.Z)(r.anchorOrigin.horizontal))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,i.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),D=a.forwardRef((function(e,t){var r=(0,m.Z)({props:e,name:"MuiSnackbar"}),l=(0,g.Z)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:p,anchorOrigin:{vertical:v,horizontal:_}={vertical:"bottom",horizontal:"left"},autoHideDuration:A=null,children:C,className:w,ClickAwayListenerProps:S,ContentProps:k,disableWindowBlurListener:x=!1,message:P,open:E,TransitionComponent:O=y.Z,transitionDuration:D=u,TransitionProps:{onEnter:B,onExited:j}={}}=r,N=(0,n.Z)(r.TransitionProps,M),L=(0,n.Z)(r,F),Z=(0,i.Z)({},r,{anchorOrigin:{vertical:v,horizontal:_},autoHideDuration:A,disableWindowBlurListener:x,TransitionComponent:O,transitionDuration:D}),G=(e=>{var{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,b.Z)(r.vertical)).concat((0,b.Z)(r.horizontal))]};return(0,o.Z)(n,R,t)})(Z),{getRootProps:z,onClickAway:U}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=e,l=a.useRef();a.useEffect((()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}}),[o,n]);var u=(0,c.Z)(((e,t)=>{null==n||n(e,t)})),d=(0,c.Z)((e=>{n&&null!=e&&(clearTimeout(l.current),l.current=setTimeout((()=>{u(null,"timeout")}),e))}));a.useEffect((()=>(o&&d(t),()=>{clearTimeout(l.current)})),[o,t,d]);var p=()=>{clearTimeout(l.current)},h=a.useCallback((()=>{null!=t&&d(null!=s?s:.5*t)}),[t,s,d]),v=e=>t=>{var r=e.onFocus;null==r||r(t),p()},g=e=>t=>{var r=e.onMouseEnter;null==r||r(t),p()},m=e=>t=>{var r=e.onMouseLeave;null==r||r(t),h()};return a.useEffect((()=>{if(!r&&o)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}}),[r,h,o]),{getRootProps:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.Z)({},(0,f._)(e),(0,f._)(r));return(0,i.Z)({role:"presentation"},r,n,{onBlur:(t=n,e=>{var r=t.onBlur;null==r||r(e),h()}),onFocus:v(n),onMouseEnter:g(n),onMouseLeave:m(n)})},onClickAway:e=>{null==n||n(e,"clickaway")}}}((0,i.Z)({},Z)),[W,q]=a.useState(!0),H=(0,s.y)({elementType:I,getSlotProps:z,externalForwardedProps:L,ownerState:Z,additionalProps:{ref:t},className:[G.root,w]});return!E&&W?null:(0,d.jsx)(h,(0,i.Z)({onClickAway:U},S,{children:(0,d.jsx)(I,(0,i.Z)({},H,{children:(0,d.jsx)(O,(0,i.Z)({appear:!0,in:E,timeout:D,direction:"top"===v?"down":"up",onEnter:(e,t)=>{q(!1),B&&B(e,t)},onExited:e=>{q(!0),j&&j(e)}},N,{children:C||(0,d.jsx)(T,(0,i.Z)({message:P,action:p},k))}))}))}))})),B=D},51869:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(61082),l=r(43232),c=r(46051),u=r(9878),d=r(83849),p=r(3927),h=r(6319),f=r(28240),v=r(74935),g=r(56552),m=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,h.Z)(),y=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:b})}function A(e,t){var r=a.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,i)=>(e.push(n),i{var{ownerState:t,theme:r}=e,n=(0,i.Z)({display:"flex",flexDirection:"column"},(0,f.k9)({theme:r},(0,f.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){var a=(0,v.hB)(r),o=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),l=(0,f.P$)({values:t.direction,base:o}),c=(0,f.P$)({values:t.spacing,base:o});"object"===typeof l&&Object.keys(l).forEach(((e,t,r)=>{if(!l[e]){var n=t>0?l[r[t-1]]:"column";l[e]=n}}));n=(0,s.Z)(n,(0,f.k9)({theme:r},c,((e,r)=>{return t.useFlexGap?{gap:(0,v.NA)(a,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((n=r?l[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n]))]:(0,v.NA)(a,e)}};var n})))}return n=(0,f.dt)(r.breakpoints,n)};var w=r(24077),S=r(67336),k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=y,useThemeProps:r=_,componentName:s="MuiStack"}=e,u=t(C),d=a.forwardRef((function(e,t){var a=r(e),d=(0,p.Z)(a),{component:h="div",direction:f="column",spacing:v=0,divider:b,children:y,className:_,useFlexGap:C=!1}=d,w=(0,n.Z)(d,m),S={direction:f,spacing:v,useFlexGap:C},k=(0,l.Z)({root:["root"]},(e=>(0,c.Z)(s,e)),{});return(0,g.jsx)(u,(0,i.Z)({as:h,ownerState:S,ref:t,className:(0,o.Z)(k.root,_)},w,{children:b?A(y,b):y}))}));return d}({createStyledComponent:(0,w.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,S.Z)({props:e,name:"MuiStack"})}),x=k},58789:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(18085),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=r(56552),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.Z)(r.color))],t["fontSize".concat((0,l.Z)(r.fontSize))]]}})((e=>{var t,r,n,i,a,o,s,l,c,u,d,p,h,{theme:f,ownerState:v}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:v.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=f.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=f.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(i=f.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(o=f.typography)||null==(s=o.pxToRem)?void 0:s.call(o,24))||"1.5rem",large:(null==(l=f.typography)||null==(c=l.pxToRem)?void 0:c.call(l,35))||"2.1875rem"}[v.fontSize],color:null!=(u=null==(d=(f.vars||f).palette)||null==(d=d[v.color])?void 0:d.main)?u:{action:null==(p=(f.vars||f).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(f.vars||f).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[v.color]}})),m=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:m="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:_=!1,titleAccess:A,viewBox:C="0 0 24 24"}=r,w=(0,i.Z)(r,v),S=a.isValidElement(u)&&"svg"===u.type,k=(0,n.Z)({},r,{color:p,component:m,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:_,viewBox:C,hasSvgAsChild:S}),x={};_||(x.viewBox=C);var P=(e=>{var{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(r))]};return(0,s.Z)(i,h,n)})(k);return(0,f.jsxs)(g,(0,n.Z)({as:m,className:(0,o.Z)(P.root,d),focusable:"false",color:y,"aria-hidden":!A||void 0,role:A?"img":void 0,ref:t},x,w,S&&u.props,{ownerState:k,children:[S?u.props.children:u,A?(0,f.jsx)("title",{children:A}):null]}))}));m.muiName="SvgIcon";var b=m},74872:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(18085),u=r(72795),d=r(67336),p=r(24077),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("MuiSwitch",e)}var g=(0,h.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),m=r(56552),b=["className","color","edge","size","sx"],y=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,c.Z)(r.edge))],t["size".concat((0,c.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,i.Z)({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"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(g.thumb)]:{width:16,height:16},["& .".concat(g.switchBase)]:{padding:4,["&.".concat(g.checked)]:{transform:"translateX(16px)"}}})})),_=(0,p.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.switchBase,{["& .".concat(g.input)]:t.input},"default"!==r.color&&t["color".concat((0,c.Z)(r.color))]]}})((e=>{var{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(g.checked)]:{transform:"translateX(20px)"},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(g.checked," + .").concat(g.track)]:{opacity:.5},["&.".concat(g.disabled," + .").concat(g.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(g.input)]:{left:"-100%",width:"300%"}}}),(e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(g.checked)]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,l.$n)(t.palette[r.color].main,.62):(0,l._j)(t.palette[r.color].main,.55))}},["&.".concat(g.checked," + .").concat(g.track)]:{backgroundColor:(t.vars||t).palette[r.color].main}})})),A=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{var{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),C=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{var{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),w=a.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:a,color:l="primary",edge:u=!1,size:p="medium",sx:h}=r,f=(0,n.Z)(r,b),g=(0,i.Z)({},r,{color:l,edge:u,size:p}),w=(e=>{var{classes:t,edge:r,size:n,color:a,checked:o,disabled:l}=e,u={root:["root",r&&"edge".concat((0,c.Z)(r)),"size".concat((0,c.Z)(n))],switchBase:["switchBase","color".concat((0,c.Z)(a)),o&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.Z)(u,v,t);return(0,i.Z)({},t,d)})(g),S=(0,m.jsx)(C,{className:w.thumb,ownerState:g});return(0,m.jsxs)(y,{className:(0,o.Z)(w.root,a),sx:h,ownerState:g,children:[(0,m.jsx)(_,(0,i.Z)({type:"checkbox",icon:S,checkedIcon:S,ref:t,ownerState:g},f,{classes:(0,i.Z)({},w,{root:w.switchBase})})),(0,m.jsx)(A,{className:w.track,ownerState:g})]})}))},10205:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(87080),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiTable",e)}(0,d.Z)("MuiTable",["root","stickyHeader"]);var f=r(56552),v=["className","component","padding","size","stickyHeader"],g=(0,u.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,i.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),m="table",b=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTable"}),{className:u,component:d=m,padding:p="normal",size:b="medium",stickyHeader:y=!1}=r,_=(0,n.Z)(r,v),A=(0,i.Z)({},r,{component:d,padding:p,size:b,stickyHeader:y}),C=(e=>{var{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,s.Z)(n,h,t)})(A),w=a.useMemo((()=>({padding:p,size:b,stickyHeader:y})),[p,b,y]);return(0,f.jsx)(l.Z.Provider,{value:w,children:(0,f.jsx)(g,(0,i.Z)({as:d,role:d===m?null:"table",ref:t,className:(0,o.Z)(C.root,u),ownerState:A},_))})}))},87080:function(e,t,r){"use strict";var n=r(21914).createContext();t.Z=n},99338:function(e,t,r){"use strict";var n=r(21914).createContext();t.Z=n},68036:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(99338),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiTableBody",e)}(0,d.Z)("MuiTableBody",["root"]);var f=r(56552),v=["className","component"],g=(0,u.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),m={variant:"body"},b="tbody",y=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTableBody"}),{className:a,component:u=b}=r,d=(0,i.Z)(r,v),p=(0,n.Z)({},r,{component:u}),y=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(p);return(0,f.jsx)(l.Z.Provider,{value:m,children:(0,f.jsx)(g,(0,n.Z)({className:(0,o.Z)(y.root,a),as:u,ref:t,role:u===b?null:"rowgroup",ownerState:p},d))})}))},93564:function(e,t,r){"use strict";var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(18085),u=r(87080),d=r(99338),p=r(67336),h=r(24077),f=r(95212),v=r(56552),g=["align","className","component","padding","scope","size","sortDirection","variant"],m=(0,h.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,c.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,c.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,c.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,l.$n)((0,l.Fq)(t.palette.divider,1),.88):(0,l._j)((0,l.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(f.Z.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),b=a.forwardRef((function(e,t){var r,l=(0,p.Z)({props:e,name:"MuiTableCell"}),{align:h="inherit",className:b,component:y,padding:_,scope:A,size:C,sortDirection:w,variant:S}=l,k=(0,n.Z)(l,g),x=a.useContext(u.Z),P=a.useContext(d.Z),E=P&&"head"===P.variant,O=A;"td"===(r=y||(E?"th":"td"))?O=void 0:!O&&E&&(O="col");var T=S||P&&P.variant,R=(0,i.Z)({},l,{align:h,component:r,padding:_||(x&&x.padding?x.padding:"normal"),size:C||(x&&x.size?x.size:"medium"),sortDirection:w,stickyHeader:"head"===T&&x&&x.stickyHeader,variant:T}),M=(e=>{var{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,l={root:["root",r,o&&"stickyHeader","inherit"!==n&&"align".concat((0,c.Z)(n)),"normal"!==i&&"padding".concat((0,c.Z)(i)),"size".concat((0,c.Z)(a))]};return(0,s.Z)(l,f.U,t)})(R),F=null;return w&&(F="asc"===w?"ascending":"descending"),(0,v.jsx)(m,(0,i.Z)({as:r,ref:t,className:(0,o.Z)(M.root,b),"aria-sort":F,scope:O,ownerState:R},k))}));t.Z=b},95212:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(40059),i=r(46051);function a(e){return(0,i.Z)("MuiTableCell",e)}var o=(0,n.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);t.Z=o},85709:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(67336),c=r(24077),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiTableContainer",e)}(0,u.Z)("MuiTableContainer",["root"]);var h=r(56552),f=["className","component"],v=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),g=a.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiTableContainer"}),{className:a,component:c="div"}=r,u=(0,i.Z)(r,f),d=(0,n.Z)({},r,{component:c}),g=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,h.jsx)(v,(0,n.Z)({ref:t,as:c,className:(0,o.Z)(g.root,a),ownerState:d},u))}))},66454:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(99338),c=r(67336),u=r(24077),d=r(40059),p=r(46051);function h(e){return(0,p.Z)("MuiTableHead",e)}(0,d.Z)("MuiTableHead",["root"]);var f=r(56552),v=["className","component"],g=(0,u.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),m={variant:"head"},b="thead",y=a.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiTableHead"}),{className:a,component:u=b}=r,d=(0,i.Z)(r,v),p=(0,n.Z)({},r,{component:u}),y=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(p);return(0,f.jsx)(l.Z.Provider,{value:m,children:(0,f.jsx)(g,(0,n.Z)({as:u,className:(0,o.Z)(y.root,a),ref:t,role:u===b?null:"rowgroup",ownerState:p},d))})}))},89655:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(5216),c=r(99338),u=r(67336),d=r(24077),p=r(40059),h=r(46051);function f(e){return(0,h.Z)("MuiTableRow",e)}var v=(0,p.Z)("MuiTableRow",["root","selected","hover","head","footer"]),g=r(56552),m=["className","component","hover","selected"],b=(0,d.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{var{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(v.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(v.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),y="tr",_=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiTableRow"}),{className:l,component:d=y,hover:p=!1,selected:h=!1}=r,v=(0,i.Z)(r,m),_=a.useContext(c.Z),A=(0,n.Z)({},r,{component:d,hover:p,selected:h,head:_&&"head"===_.variant,footer:_&&"footer"===_.variant}),C=(e=>{var{classes:t,selected:r,hover:n,head:i,footer:a}=e,o={root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]};return(0,s.Z)(o,f,t)})(A);return(0,g.jsx)(b,(0,n.Z)({as:d,ref:t,className:(0,o.Z)(C.root,l),role:d===y?null:"row",ownerState:A},v))}))},28312:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(43232),l=r(3363),c=r(24077),u=r(67336),d=r(17631),p=r(52294),h=r(47628),f=r(23482),v=r(27460),g=r(74149),m=r(96806),b=r(40059),y=r(46051);function _(e){return(0,y.Z)("MuiTextField",e)}(0,b.Z)("MuiTextField",["root"]);var A=r(56552),C=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w={standard:d.Z,filled:p.Z,outlined:h.Z},S=(0,c.ZP)(v.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:c=!1,children:d,className:p,color:h="primary",defaultValue:v,disabled:b=!1,error:y=!1,FormHelperTextProps:k,fullWidth:x=!1,helperText:P,id:E,InputLabelProps:O,inputProps:T,InputProps:R,inputRef:M,label:F,maxRows:I,minRows:D,multiline:B=!1,name:j,onBlur:N,onChange:L,onFocus:Z,placeholder:G,required:z=!1,rows:U,select:W=!1,SelectProps:q,type:H,value:V,variant:Y="outlined"}=r,K=(0,i.Z)(r,C),X=(0,n.Z)({},r,{autoFocus:c,color:h,disabled:b,error:y,fullWidth:x,multiline:B,required:z,select:W,variant:Y}),$=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},_,t)})(X);var Q={};"outlined"===Y&&(O&&"undefined"!==typeof O.shrink&&(Q.notched=O.shrink),Q.label=F),W&&(q&&q.native||(Q.id=void 0),Q["aria-describedby"]=void 0);var J=(0,l.Z)(E),ee=P&&J?"".concat(J,"-helper-text"):void 0,te=F&&J?"".concat(J,"-label"):void 0,re=w[Y],ne=(0,A.jsx)(re,(0,n.Z)({"aria-describedby":ee,autoComplete:a,autoFocus:c,defaultValue:v,fullWidth:x,multiline:B,name:j,rows:U,maxRows:I,minRows:D,type:H,value:V,id:J,inputRef:M,onBlur:N,onChange:L,onFocus:Z,placeholder:G,inputProps:T},Q,R));return(0,A.jsxs)(S,(0,n.Z)({className:(0,o.Z)($.root,p),disabled:b,error:y,fullWidth:x,ref:t,required:z,color:h,variant:Y,ownerState:X},K,{children:[null!=F&&""!==F&&(0,A.jsx)(f.Z,(0,n.Z)({htmlFor:J,id:te},O,{children:F})),W?(0,A.jsx)(m.Z,(0,n.Z)({"aria-describedby":ee,id:J,labelId:te,value:V,input:ne},q,{children:d})):ne,P&&(0,A.jsx)(g.Z,(0,n.Z)({id:ee},k,{children:P}))]}))}))},18013:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(67336),c=r(24077),u=r(40059),d=r(46051);function p(e){return(0,d.Z)("MuiToolbar",e)}(0,u.Z)("MuiToolbar",["root","gutters","regular","dense"]);var h=r(56552),f=["className","component","disableGutters","variant"],v=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})}),(e=>{var{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar})),g=a.forwardRef((function(e,t){var r=(0,l.Z)({props:e,name:"MuiToolbar"}),{className:a,component:c="div",disableGutters:u=!1,variant:d="regular"}=r,g=(0,n.Z)(r,f),m=(0,i.Z)({},r,{component:c,disableGutters:u,variant:d}),b=(e=>{var{classes:t,disableGutters:r,variant:n}=e,i={root:["root",!r&&"gutters",n]};return(0,s.Z)(i,p,t)})(m);return(0,h.jsx)(v,(0,i.Z)({as:c,className:(0,o.Z)(b.root,a),ref:t,ownerState:m},g))}))},28501:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(3927),l=r(43232),c=r(24077),u=r(67336),d=r(18085),p=r(40059),h=r(46051);function f(e){return(0,h.Z)("MuiTypography",e)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var v=r(56552),g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=(0,c.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,d.Z)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_=a.forwardRef((function(e,t){var r=(0,u.Z)({props:e,name:"MuiTypography"}),a=(e=>y[e]||e)(r.color),c=(0,s.Z)((0,i.Z)({},r,{color:a})),{align:p="inherit",className:h,component:_,gutterBottom:A=!1,noWrap:C=!1,paragraph:w=!1,variant:S="body1",variantMapping:k=b}=c,x=(0,n.Z)(c,g),P=(0,i.Z)({},c,{align:p,color:a,className:h,component:_,gutterBottom:A,noWrap:C,paragraph:w,variant:S,variantMapping:k}),E=_||(w?"p":k[S]||b[S])||"span",O=(e=>{var{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,d.Z)(t)),r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return(0,l.Z)(s,f,o)})(P);return(0,v.jsx)(m,(0,i.Z)({as:E,ref:t,ownerState:P,className:(0,o.Z)(O.root,h)},x))}))},33590:function(e,t){"use strict";t.Z={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"}},72795:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(39324),i=r(90957),a=r(21914),o=r(51118),s=r(43232),l=r(18085),c=r(24077),u=r(31509),d=r(73028),p=r(9912),h=r(40059),f=r(46051);function v(e){return(0,f.Z)("PrivateSwitchBase",e)}(0,h.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=r(56552),m=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,c.ZP)(p.Z)((e=>{var{ownerState:t}=e;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),y=(0,c.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_=a.forwardRef((function(e,t){var{autoFocus:r,checked:a,checkedIcon:c,className:p,defaultChecked:h,disabled:f,disableFocusRipple:_=!1,edge:A=!1,icon:C,id:w,inputProps:S,inputRef:k,name:x,onBlur:P,onChange:E,onFocus:O,readOnly:T,required:R=!1,tabIndex:M,type:F,value:I}=e,D=(0,n.Z)(e,m),[B,j]=(0,u.Z)({controlled:a,default:Boolean(h),name:"SwitchBase",state:"checked"}),N=(0,d.Z)(),L=f;N&&"undefined"===typeof L&&(L=N.disabled);var Z="checkbox"===F||"radio"===F,G=(0,i.Z)({},e,{checked:B,disabled:L,disableFocusRipple:_,edge:A}),z=(e=>{var{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&"edge".concat((0,l.Z)(i))],input:["input"]};return(0,s.Z)(a,v,t)})(G);return(0,g.jsxs)(b,(0,i.Z)({component:"span",className:(0,o.Z)(z.root,p),centerRipple:!0,focusRipple:!_,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{P&&P(e),N&&N.onBlur&&N.onBlur(e)},ownerState:G,ref:t},D,{children:[(0,g.jsx)(y,(0,i.Z)({autoFocus:r,checked:a,defaultChecked:h,className:z.input,disabled:L,id:Z?w:void 0,name:x,onChange:e=>{if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;j(t),E&&E(e,t)}},readOnly:T,ref:k,required:R,ownerState:G,tabIndex:M,type:F},"checkbox"===F&&void 0===I?{}:{value:I},S)),B?c:C]}))}))},57266:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},74512:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("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")},7511:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},98958:function(e,t,r){"use strict";r(21914);var n=r(44326),i=r(56552);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},65532:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(90957),i=r(39324),a=r(21914),o=r(79858),s=r(59872),l=r(74742),c=r(56552);var u=function(e){var{children:t,theme:r}=e,i=(0,o.Z)(),u=a.useMemo((()=>{var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,n.Z)({},e,t)}(i,r);return null!=e&&(e[l.Z]=null!==i),e}),[r,i]);return(0,c.jsx)(s.Z.Provider,{value:u,children:t})},d=r(12009),p=r(57880),h={};function f(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return a.useMemo((()=>{var a=e&&t[e]||t;if("function"===typeof r){var o=r(a),s=e?(0,n.Z)({},t,{[e]:o}):o;return i?()=>s:s}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)}),[e,t,r,i])}var v=function(e){var{children:t,theme:r,themeId:n}=e,i=(0,p.Z)(h),a=(0,o.Z)()||h,s=f(n,i,r),l=f(n,a,r,!0);return(0,c.jsx)(u,{theme:l,children:(0,c.jsx)(d.T.Provider,{value:s,children:t})})},g=r(88464),m=["theme"];function b(e){var{theme:t}=e,r=(0,i.Z)(e,m),a=t[g.Z];return(0,c.jsx)(v,(0,n.Z)({},r,{themeId:a?g.Z:void 0,theme:a||t}))}},94832:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}});var n=r(90957),i=r(39324),a=r(47208),o=r(61082),s=r(6319),l=r(49890),c=r(87053);var u=r(5216),d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},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"},v={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"},g={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"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b=r(33590),y=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},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}},A={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},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 C(e,t,r,n){var i=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.$n)(e.main,i):"dark"===t&&(e.dark=(0,u._j)(e.main,a)))}function w(e){var{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,i.Z)(e,y),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),w=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(t),x=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b.Z[400],light:b.Z[300],dark:b.Z[700]}:{main:b.Z[800],light:b.Z[500],dark:b.Z[900]}}(t),P=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:"#ed6c02",light:v[500],dark:v[900]}}(t);function E(e){return(0,u.mi)(e,A.text.primary)>=r?A.text.primary:_.text.primary}var O=e=>{var{color:t,name:r,mainShade:i=500,lightShade:o=300,darkShade:l=700}=e;if(!(t=(0,n.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,a.Z)(11,r?" (".concat(r,")"):"",i));if("string"!==typeof t.main)throw new Error((0,a.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return C(t,"light",o,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=E(t.main)),t},T={dark:A,light:_};return(0,o.Z)((0,n.Z)({common:(0,n.Z)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:S,name:"error"}),warning:O({color:P,name:"warning"}),info:O({color:k,name:"info"}),success:O({color:x,name:"success"}),grey:p,contrastThreshold:r,getContrastText:E,augmentColor:O,tonalOffset:s},T[t]),l)}var S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var k={textTransform:"uppercase"},x='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){var r="function"===typeof t?t(e):t,{fontFamily:a=x,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=r,v=(0,i.Z)(r,S);var g=s/14,m=f||(e=>"".concat(e/p*g,"rem")),b=(e,t,r,i,o)=>{return(0,n.Z)({fontFamily:a,fontWeight:e,fontSize:m(t),lineHeight:r},a===x?{letterSpacing:"".concat((s=i/t,Math.round(1e5*s)/1e5),"em")}:{},o,h);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,k),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)((0,n.Z)({htmlFontSize:p,pxToRem:m,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),v,{clone:!1})}function E(){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(",")}var O=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],T=["duration","easing","delay"],R={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)"},M={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function F(e){return"".concat(Math.round(e),"ms")}function I(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function D(e){var t=(0,n.Z)({},R,e.easing),r=(0,n.Z)({},M,e.duration);return(0,n.Z)({getAutoHeightDuration:I,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:a=r.standard,easing:o=t.easeInOut,delay:s=0}=n;(0,i.Z)(n,T);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:F(a)," ").concat(o," ").concat("string"===typeof s?s:F(s)))).join(",")}},e,{easing:t,duration:r})}var B={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mixins:t={},palette:r={},transitions:u={},typography:d={}}=e,p=(0,i.Z)(e,j);if(e.vars)throw new Error((0,a.Z)(18));var h,f,v=w(r),g=(0,s.Z)(e),m=(0,o.Z)(g,{mixins:(h=g.breakpoints,f=t,(0,n.Z)({toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}}},f)),palette:v,shadows:O.slice(),typography:P(v,d),transitions:D(u),zIndex:(0,n.Z)({},B)});m=(0,o.Z)(m,p);for(var b=arguments.length,y=new Array(b>1?b-1:0),_=1;_(0,o.Z)(e,t)),m)).unstable_sxConfig=(0,n.Z)({},l.Z,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},m}var L=N},64747:function(e,t,r){"use strict";var n=(0,r(94832).Z)();t.Z=n},88464:function(e,t){"use strict";t.Z="$$material"},24077:function(e,t,r){"use strict";r.d(t,{Dz:function(){return s},FO:function(){return o}});var n=r(21545),i=r(64747),a=r(88464),o=e=>(0,n.x9)(e)&&"classes"!==e,s=n.x9,l=(0,n.ZP)({themeId:a.Z,defaultTheme:i.Z,rootShouldForwardProp:o});t.ZP=l},2846:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});r(21914);var n=r(90151),i=r(64747),a=r(88464);function o(){var e=(0,n.Z)(i.Z);return e[a.Z]||e}},67336:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(83849),i=r(64747),a=r(88464);function o(e){var{props:t,name:r}=e;return(0,n.Z)({props:t,name:r,defaultTheme:i.Z,themeId:a.Z})}},85478:function(e,t,r){"use strict";r.d(t,{C:function(){return i},n:function(){return n}});var n=e=>e.scrollTop;function i(e,t){var r,n,{timeout:i,easing:a,style:o={}}=e;return{duration:null!=(r=o.transitionDuration)?r:"number"===typeof i?i:i[t.mode]||0,easing:null!=(n=o.transitionTimingFunction)?n:"object"===typeof a?a[t.mode]:a,delay:o.transitionDelay}}},18085:function(e,t,r){"use strict";var n=r(76704);t.Z=n.Z},19504:function(e,t,r){"use strict";var n=r(82856);t.Z=n.Z},44326:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(90957),i=r(21914),a=r(58789),o=r(56552);function s(e,t){function r(r,i){return(0,o.jsx)(a.Z,(0,n.Z)({"data-testid":"".concat(t,"Icon"),ref:i},r,{children:e}))}return r.muiName=a.Z.muiName,i.memo(i.forwardRef(r))}},38822:function(e,t,r){"use strict";var n=r(89844);t.Z=n.Z},71682:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return a.Z},createSvgIcon:function(){return o.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return h},unstable_ClassNameGenerator:function(){return A},unstable_useEnhancedEffect:function(){return f.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return g},useControlled:function(){return m.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return _.Z}});var n=r(93351),i=r(18085),a=r(19504),o=r(44326),s=r(38822);var l=function(e,t){return()=>null},c=r(7703),u=r(77036),d=r(67171);r(90957);var p=function(e,t){return()=>null},h=r(224).Z,f=r(30607),v=r(25964);var g=function(e,t,r,n,i){return null},m=r(31509),b=r(85715),y=r(7023),_=r(14175),A={configure:e=>{n.Z.configure(e)}}},7703:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914);var i=function(e,t){var r,i;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},77036:function(e,t,r){"use strict";var n=r(91313);t.Z=n.Z},67171:function(e,t,r){"use strict";var n=r(75979);t.Z=n.Z},31509:function(e,t,r){"use strict";var n=r(23151);t.Z=n.Z},30607:function(e,t,r){"use strict";var n=r(8031);t.Z=n.Z},85715:function(e,t,r){"use strict";var n=r(22713);t.Z=n.Z},7023:function(e,t,r){"use strict";var n=r(43064);t.Z=n.Z},25964:function(e,t,r){"use strict";var n=r(3363);t.Z=n.Z},14175:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n,i=r(21914),a=!0,o=!1,s={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 l(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function c(){a=!1}function u(){"hidden"===this.visibilityState&&o&&(a=!0)}function d(e){var{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return a||function(e){var{type:t,tagName:r}=e;return!("INPUT"!==r||!s[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}var p=function(){var e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(o=!0,window.clearTimeout(n),n=window.setTimeout((()=>{o=!1}),100),t.current=!1,!0)},ref:e}}},74742:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.Z=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},59872:function(e,t,r){"use strict";var n=r(21914).createContext(null);t.Z=n},79858:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(21914),i=r(59872);function a(){return n.useContext(i.Z)}},69553:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});r(21914);var n,i=r(12009),a=r(95796),o=r(56552);function s(e){var{injectFirst:t,children:r}=e;return t&&n?(0,o.jsx)(i.C,{value:n,children:r}):r}"object"===typeof document&&(n=(0,a.Z)({key:"css",prepend:!0}))},88553:function(e,t,r){"use strict";r.d(t,{ZP:function(){return a},Co:function(){return o}});var n=r(40310),i=(r(21914),r(92384),r(95308),n.Z.bind());function a(e,t){return i(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){i[e]=i(e)}));var o=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},12347:function(e,t,r){"use strict";r.d(t,{Z:function(){return vr}});var n=r(39324),i=r(90957),a=r(21914),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},s="object"===("undefined"===typeof window?"undefined":o(window))&&"object"===("undefined"===typeof document?"undefined":o(document))&&9===document.nodeType,l=r(33424),c=r(15560),u=r(94782),d={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==d)return e;var t={};for(var r in e)t[r]=p(e[r]);return t}function h(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=p(t),a=n.plugins.onCreateRule(e,i,r);return a||(e[0],null)}var f=function(e,t){for(var r="",n=0;n<+~=|^:(),"'`\s])/g,_="undefined"!==typeof CSS&&CSS.escape,A=function(e){return _?_(e):e.replace(y,"\\$1")},C=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var a=null==i||!1===i,o=e in this.style;if(a&&!o&&!n)return this;var s=a&&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}(),w=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var a=n.selector,o=n.scoped,s=n.sheet,l=n.generateId;return a?i.selectorText=a:!1!==o&&(i.id=l((0,u.Z)((0,u.Z)(i)),s),i.selectorText="."+A(i.id)),i}(0,c.Z)(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!==typeof r?e[t]=r:Array.isArray(r)&&(e[t]=v(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,r)},(0,l.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(C),S={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new w(e,t,r)}},k={indent:1,children:!0},x=/@([\w-]+)/,P=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(x);for(var a in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new $((0,i.Z)({},r,{parent:this})),t)this.rules.add(a,t[a]);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,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},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 r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),E=/@container|@media|@supports\s+/,O={onCreateRule:function(e,t,r){return E.test(e)?new P(e,t,r):null}},T={indent:1,children:!0},R=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(R);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var a=r.scoped,o=r.sheet,s=r.generateId;for(var l in this.id=!1===a?this.name:A(s(this,o)),this.rules=new $((0,i.Z)({},r,{parent:this})),t)this.rules.add(l,t[l],(0,i.Z)({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=T);var t=g(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),F=/@keyframes\s+/,I=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(I,(function(e,r){return r in t?t[r]:e})):e},B=function(e,t,r){var n=e[t],i=D(n,r);i!==n&&(e[t]=i)},j={onCreateRule:function(e,t,r){return"string"===typeof e&&F.test(e)?new M(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&B(e,"animation-name",r.keyframes),"animation"in e&&B(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return D(e,n.keyframes);default:return e}}},N=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,r)},t}(C),L={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new N(e,t,r):null}},Z=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=g(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n=this.index)t.push(e);else for(var n=0;nr)return void t.splice(n,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,r=t.attached,i=(0,n.Z)(t,["attached"]),a=g(i).linebreak,o="",s=0;s-1?n.substr(0,i-1):n;e.style.setProperty(t,a,i>-1?"important":"")}}catch(o){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(r){}},ue=function(e,t){return e.selectorText=t,e.selectorText===t},de=oe((function(){return document.querySelector("head")}));function pe(e){var t=te.registry;if(t.length>0){var r=function(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"===typeof n){var i=function(e){for(var t=de(),r=0;rr?r:t},ge=function(){function e(e){this.getPropertyValue=se,this.setProperty=le,this.removeProperty=ce,this.setSelector=ue,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var a=he();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=pe(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"===typeof r.nodeType){var i=r,a=i.parentNode;a&&a.insertBefore(e,i.nextSibling)}else de().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 r=0;r0&&void 0!==arguments[0]?arguments[0]:{},{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;var a=(0,i.Z)({},t);return Object.keys(r).forEach((e=>{r[e]&&(a[e]="".concat(t[e]," ").concat(r[e]))})),a}var we={set:(e,t,r,n)=>{var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(r,n)},get:(e,t,r)=>{var n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},Se=we,ke=r(17133),xe=r(74742),Pe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ee=Date.now(),Oe="fnValues"+Ee,Te="fnStyle"+ ++Ee,Re=function(){return{onCreateRule:function(e,t,r){if("function"!==typeof t)return null;var n=h(e,{},r);return n[Te]=t,n},onProcessStyle:function(e,t){if(Oe in t||Te in t)return e;var r={};for(var n in e){var i=e[n];"function"===typeof i&&(delete e[n],r[n]=i)}return t[Oe]=r,e},onUpdate:function(e,t,r,n){var i=t,a=i[Te];a&&(i.style=a(e)||{});var o=i[Oe];if(o)for(var s in o)i.prop(s,o[s](e),n)}}},Me="@global",Fe="@global ",Ie=function(){function e(e,t,r){for(var n in this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new $((0,i.Z)({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),De=function(){function e(e,t,r){this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,(0,i.Z)({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function je(e,t){for(var r=e.split(Be),n="",i=0;i-1){var i=jt[e];if(!Array.isArray(i))return vt.js+At(i)in t&&vt.css+i;if(!n)return!1;for(var a=0;at?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},i=Object.keys(t).sort(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,i=""===n?"":"".concat(n,"-"),a=0,o=()=>a+=1;return(e,a)=>{var s=a.options.name;if(s&&0===s.indexOf("Mui")&&!a.options.link&&!t){if(-1!==Pe.indexOf(e.key))return"Mui-".concat(e.key);var l="".concat(i).concat(s,"-").concat(e.key);return a.options.theme[xe.Z]&&""===n?"".concat(l,"-").concat(o()):l}return"".concat(i).concat(r).concat(o())}}(),ir={disableGeneration:!1,generateClassName:nr,jss:rr,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ar=a.createContext(ir);var or=-1e9;var sr=r(61082),lr=r(76704),cr=["variant"];function ur(e){return 0===e.length}function dr(e){var t="function"===typeof e;return{create:(r,a)=>{var o;try{o=t?e(r):e}catch(u){throw u}if(!a||!r.components||!r.components[a]||!r.components[a].styleOverrides&&!r.components[a].variants)return o;var s=r.components[a].styleOverrides||{},l=r.components[a].variants||[],c=(0,i.Z)({},o);return Object.keys(s).forEach((e=>{c[e]=(0,sr.Z)(c[e]||{},s[e])})),l.forEach((e=>{var t=function(e){var{variant:t}=e,r=(0,n.Z)(e,cr),i=t||"";return Object.keys(r).sort().forEach((t=>{i+="color"===t?ur(i)?e[t]:(0,lr.Z)(e[t]):"".concat(ur(i)?t:(0,lr.Z)(t)).concat((0,lr.Z)(e[t].toString()))})),i}(e.props);c[t]=(0,sr.Z)(c[t]||{},e.style)})),c},options:{}}}var pr={},hr=["name","classNamePrefix","Component","defaultTheme"];function fr(e,t){var{state:r,theme:n,stylesOptions:a,stylesCreator:o,name:s}=e;if(!a.disableGeneration){var l=Se.get(a.sheetsManager,o,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Se.set(a.sheetsManager,o,n,l));var c=(0,i.Z)({},o.options,a,{theme:n,flip:"boolean"===typeof a.flip?a.flip:"rtl"===n.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=a.sheetsRegistry;if(0===l.refs){var d;a.sheetsCache&&(d=Se.get(a.sheetsCache,o,n));var p=o.create(n,s);d||((d=a.jss.createStyleSheet(p,(0,i.Z)({link:!1},c))).attach(),a.sheetsCache&&Se.set(a.sheetsCache,o,n,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=Ae(p)}if(l.dynamicStyles){var h=a.jss.createStyleSheet(l.dynamicStyles,(0,i.Z)({link:!0},c));h.update(t),h.attach(),r.dynamicSheet=h,r.classes=Ce({baseClasses:l.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else r.classes=l.staticSheet.classes;l.refs+=1}}function vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{name:r,classNamePrefix:o,Component:s,defaultTheme:l=pr}=t,c=(0,n.Z)(t,hr),u=dr(e),d=r||o||"makeStyles";u.options={index:or+=1,name:r,meta:d,classNamePrefix:d};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.Z)()||l,n=(0,i.Z)({},a.useContext(ar),c),o=a.useRef(),d=a.useRef();!function(e,t){var r,n=a.useRef([]),i=a.useMemo((()=>({})),t);n.current!==i&&(n.current=i,r=e()),a.useEffect((()=>()=>{r&&r()}),[i])}((()=>{var i={name:r,state:{},stylesCreator:u,stylesOptions:n,theme:t};return fr(i,e),d.current=!1,o.current=i,()=>{!function(e){var{state:t,theme:r,stylesOptions:n,stylesCreator:i}=e;if(!n.disableGeneration){var a=Se.get(n.sheetsManager,i,r);a.refs-=1;var o=n.sheetsRegistry;0===a.refs&&(Se.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}}(i)}}),[t,u]),a.useEffect((()=>{d.current&&function(e,t){var{state:r}=e;r.dynamicSheet&&r.dynamicSheet.update(t)}(o.current,e),d.current=!0}));var p=function(e,t,r){var{state:n,stylesOptions:i}=e;if(i.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,a=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,a=!0),a&&(n.cacheClasses.value=Ce({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(o.current,e.classes,s);return p}}},17133:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(79858);function i(){var e,t=(0,n.Z)();return null!=(e=null==t?void 0:t.$$material)?e:t}},22173:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(90957),i=r(39324),a=r(21914),o=r(77531),s=r.n(o),l=r(12347);var c=r(17133),u=r(56552),d=["defaultTheme","withTheme","name"],p=["classes"],h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{var{defaultTheme:o,withTheme:h=!1,name:f}=t,v=(0,i.Z)(t,d);var g=f,m=(0,l.Z)(e,(0,n.Z)({defaultTheme:o,Component:r,name:f||r.displayName,classNamePrefix:g},v)),b=a.forwardRef((function(e,t){var a,s=(0,i.Z)(e,p),l=m((0,n.Z)({},r.defaultProps,e)),d=s;return("string"===typeof f||h)&&(a=(0,c.Z)()||o,f&&(d=function(e){var{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r]||!t.components[r].defaultProps)return i;var a,o=(0,n.Z)({},i),s=t.components[r].defaultProps;for(a in s)void 0===o[a]&&(o[a]=s[a]);return o}({theme:a,name:f,props:s})),h&&!d.theme&&(d.theme=a)),(0,u.jsx)(r,(0,n.Z)({ref:t,classes:l},d))}));return s()(b,r),b}}},28240:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return i},W8:function(){return s},dt:function(){return c},k9:function(){return o}});var n=r(61082),i={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(i[e],"px)")};function o(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var o=n.breakpoints||a;return t.reduce(((e,n,i)=>(e[o.up(o.keys[i])]=r(t[i]),e)),{})}if("object"===typeof t){var s=n.breakpoints||a;return Object.keys(t).reduce(((e,n)=>{if(-1!==Object.keys(s.values||i).indexOf(n)){e[s.up(n)]=r(t[n],n)}else{var a=n;e[a]=t[a]}return e}),{})}return r(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce(((e,r)=>(e[t.up(r)]={},e)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{var r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){for(var t=s(e),r=arguments.length,i=new Array(r>1?r-1:0),a=1;a(0,n.Z)(e,t)),{});return l(Object.keys(t),o)}function u(e){var t,{values:r,breakpoints:n,base:i}=e,a=i||function(e,t){if("object"!==typeof e)return{};var r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n{null!=e[t]&&(r[t]=!0)})),r}(r,n),o=Object.keys(a);return 0===o.length?r:o.reduce(((e,n,i)=>(Array.isArray(r)?(e[n]=null!=r[i]?r[i]:r[t],t=i):"object"===typeof r?(e[n]=null!=r[n]?r[n]:r[t],t=n):e[n]=r,e)),{})}},5216:function(e,t,r){"use strict";r.d(t,{$n:function(){return d},Fq:function(){return c},_4:function(){return p},_j:function(){return u},mi:function(){return l}});var n=r(47208);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.Z)(9,e));var i,o=e.substring(t+1,e.length-1);if("color"===r){if(i=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,n.Z)(10,i))}else o=o.split(",");return{type:r,values:o=o.map((e=>parseFloat(e))),colorSpace:i}}function o(e){var{type:t,colorSpace:r}=e,{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function s(e){var t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);var{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,s=n*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),o({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){var r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function c(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,o(e)}function u(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return o(e)}function d(e,t){if(e=a(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 r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?u(e,t):d(e,t)}},61589:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(90957),i=r(39324),a=r(21914),o=r(51118),s=r(88553),l=r(87053),c=r(3927),u=r(90151),d=r(56552),p=["className","component"];function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r,defaultClassName:h="MuiBox-root",generateClassName:f}=e,v=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return a.forwardRef((function(e,a){var s=(0,u.Z)(r),l=(0,c.Z)(e),{className:g,component:m="div"}=l,b=(0,i.Z)(l,p);return(0,d.jsx)(v,(0,n.Z)({as:m,ref:a,className:(0,o.Z)(g,f?f(h):h),theme:t&&s[t]||s},b))}))}},21545:function(e,t,r){"use strict";r.d(t,{ZP:function(){return k},x9:function(){return y}});var n=r(39324),i=r(90957),a=r(88553),o=r(61082),s=r(6319),l=r(76704),c=["variant"];function u(e){return 0===e.length}function d(e){var{variant:t}=e,r=(0,n.Z)(e,c),i=t||"";return Object.keys(r).sort().forEach((t=>{i+="color"===t?u(i)?e[t]:(0,l.Z)(e[t]):"".concat(u(i)?t:(0,l.Z)(t)).concat((0,l.Z)(e[t].toString()))})),i}var p=r(87053),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];var f=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,v=e=>{var t={};return e&&e.forEach((e=>{var r=d(e.props);t[r]=e.style})),t},g=(e,t)=>{var r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),v(r)},m=(e,t,r)=>{var{ownerState:n={}}=e,i=[];return r&&r.forEach((r=>{var a=!0;Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)})),a&&i.push(t[d(r.props)])})),i},b=(e,t,r,n)=>{var i,a=null==r||null==(i=r.components)||null==(i=i[n])?void 0:i.variants;return m(e,t,a)};function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var _=(0,s.Z)(),A=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function C(e){var t,{defaultTheme:r,theme:n,themeId:i}=e;return t=n,0===Object.keys(t).length?r:n[i]||n}function w(e){return e?(t,r)=>r[e]:null}var S=e=>{var t,{styledArg:r,props:n,defaultTheme:a,themeId:o}=e,s=r((0,i.Z)({},n,{theme:C((0,i.Z)({},n,{defaultTheme:a,themeId:o}))}));return s&&s.variants&&(t=s.variants,delete s.variants),t?[s,...m(n,v(t),t)]:s};function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r=_,rootShouldForwardProp:s=y,slotShouldForwardProp:l=y}=e,c=e=>(0,p.Z)((0,i.Z)({},e,{theme:C((0,i.Z)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));var{name:d,slot:p,skipVariantsResolver:_,skipSx:k,overridesResolver:x=w(A(p))}=u,P=(0,n.Z)(u,h),E=void 0!==_?_:p&&"Root"!==p&&"root"!==p||!1,O=k||!1;var T=y;"Root"===p||"root"===p?T=s:p?T=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(T=void 0);var R=(0,a.ZP)(e,(0,i.Z)({shouldForwardProp:T,label:undefined},P)),M=function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l{if("function"===typeof e&&e.__emotion_real!==e)return n=>S({styledArg:e,props:n,defaultTheme:r,themeId:t});if((0,o.P)(e)){var n,i=e;return e&&e.variants&&(n=e.variants,delete i.variants,i=t=>{var r=e;return m(t,v(n),n).forEach((e=>{r=(0,o.Z)(r,e)})),r}),i}return e})):[],h=n;(0,o.P)(n)?n&&n.variants&&(u=n.variants,delete h.variants,h=e=>{var t=n;return m(e,v(u),u).forEach((e=>{t=(0,o.Z)(t,e)})),t}):"function"===typeof n&&n.__emotion_real!==n&&(h=e=>S({styledArg:n,props:e,defaultTheme:r,themeId:t}));d&&x&&p.push((e=>{var n=C((0,i.Z)({},e,{defaultTheme:r,themeId:t})),a=f(d,n);if(a){var o={};return Object.entries(a).forEach((t=>{var[r,a]=t;o[r]="function"===typeof a?a((0,i.Z)({},e,{theme:n})):a})),x(e,o)}return null})),d&&!E&&p.push((e=>{var n=C((0,i.Z)({},e,{defaultTheme:r,themeId:t}));return b(e,g(d,n),n,d)})),O||p.push(c);var y=p.length-s.length;if(Array.isArray(n)&&y>0){var _=new Array(y).fill("");(h=[...n,..._]).raw=[...n.raw,..._]}var A=R(h,...p);return e.muiName&&(A.muiName=e.muiName),A};return R.withConfig&&(M.withConfig=R.withConfig),M}}},6319:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(90957),i=r(39324),a=r(61082),o=["values","unit","step"],s=e=>{var t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.Z)({},e,{[t.key]:t.val})),{})};var l={borderRadius:4},c=r(74935);var u=r(87053),d=r(49890),p=["breakpoints","palette","spacing","shape"];var h=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{breakpoints:t={},palette:r={},spacing:h,shape:f={}}=e,v=(0,i.Z)(e,p),g=function(e){var{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5}=e,l=(0,i.Z)(e,o),c=s(t),u=Object.keys(c);function d(e){var n="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(n).concat(r,")")}function p(e){var n="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(n-a/100).concat(r,")")}function h(e,n){var i=u.indexOf(n);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:n)-a/100).concat(r,")")}return(0,n.Z)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n{var r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(h),b=(0,a.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},r),spacing:m,shape:(0,n.Z)({},l,f)},v),y=arguments.length,_=new Array(y>1?y-1:0),A=1;A(0,a.Z)(e,t)),b)).unstable_sxConfig=(0,n.Z)({},d.Z,null==v?void 0:v.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},b}},54583:function(e,t,r){"use strict";var n=r(61082);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},74935:function(e,t,r){"use strict";r.d(t,{hB:function(){return f},eI:function(){return h},NA:function(){return v},e6:function(){return b},o3:function(){return y}});var n=r(28240),i=r(97013),a=r(54583);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 r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}var[t,r]=e.split(""),n=o[t],i=s[r]||"";return Array.isArray(i)?i.map((e=>n+e)):[n+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,r,n){var a,o=null!=(a=(0,i.DW)(e,t,!1))?a:r;return"number"===typeof o?e=>"string"===typeof e?e:o*e:Array.isArray(o)?e=>"string"===typeof e?e:o[e]:"function"===typeof o?o:()=>{}}function f(e){return h(e,"spacing",8)}function v(e,t){if("string"===typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function g(e,t,r,i){if(-1===t.indexOf(r))return null;var a=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=v(t,r),e)),{})}(c(r),i),o=e[r];return(0,n.k9)(e,o,a)}function m(e,t){var r=f(e.theme);return Object.keys(e).map((n=>g(e,t,n,r))).reduce(a.Z,{})}function b(e){return m(e,u)}function y(e){return m(e,d)}function _(e){return m(e,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,_.propTypes={},_.filterProps=p},97013:function(e,t,r){"use strict";r.d(t,{DW:function(){return a},Jq:function(){return o}});var n=r(76704),i=r(28240);function a(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,r){var n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||i:a(e,r)||i,t&&(n=t(n,i,e)),n}t.ZP=function(e){var{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;var c=e[t],u=a(e.theme,s)||{};return(0,i.k9)(e,c,(e=>{var i=o(u,l,e);return e===i&&"string"===typeof e&&(i=o(u,l,"".concat(t).concat("default"===e?"":(0,n.Z)(e)),e)),!1===r?i:{[r]:i}}))};return c.propTypes={},c.filterProps=[t],c}},49890:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(74935),i=r(97013),a=r(54583);var o=function(){for(var e=arguments.length,t=new Array(e),r=0;r(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,a.Z)(t,n[r](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i},s=r(28240);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),h=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),f=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,(e=>({borderRadius:(0,n.NA)(t,e)})))}return null};y.propTypes={},y.filterProps=["borderRadius"];o(c,u,d,p,h,f,v,g,m,b,y);var _=e=>{if(void 0!==e.gap&&null!==e.gap){var t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,(e=>({gap:(0,n.NA)(t,e)})))}return null};_.propTypes={},_.filterProps=["gap"];var A=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,(e=>({columnGap:(0,n.NA)(t,e)})))}return null};A.propTypes={},A.filterProps=["columnGap"];var C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,(e=>({rowGap:(0,n.NA)(t,e)})))}return null};C.propTypes={},C.filterProps=["rowGap"];o(_,A,C,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"}));function w(e,t){return"grey"===t?t:e}o((0,i.ZP)({prop:"color",themeKey:"palette",transform:w}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:w}));function S(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var k=(0,i.ZP)({prop:"width",transform:S}),x=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.k9)(e,e.maxWidth,(t=>{var r,n,i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(i).concat(e.theme.breakpoints.unit)}:{maxWidth:i}:{maxWidth:S(t)}}))}return null};x.filterProps=["maxWidth"];var P=(0,i.ZP)({prop:"minWidth",transform:S}),E=(0,i.ZP)({prop:"height",transform:S}),O=(0,i.ZP)({prop:"maxHeight",transform:S}),T=(0,i.ZP)({prop:"minHeight",transform:S}),R=((0,i.ZP)({prop:"size",cssProperty:"width",transform:S}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:S}),o(k,x,P,E,O,T,(0,i.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:y},color:{themeKey:"palette",transform:w},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w},backgroundColor:{themeKey:"palette",transform:w},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:C},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:S},maxWidth:{style:x},minWidth:{transform:S},height:{transform:S},maxHeight:{transform:S},minHeight:{transform:S},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},3927:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(90957),i=r(39324),a=r(61082),o=r(49890),s=["sx"],l=e=>{var t,r,n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:o.Z;return Object.keys(e).forEach((t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function c(e){var t,{sx:r}=e,o=(0,i.Z)(e,s),{systemProps:c,otherProps:u}=l(o);return t=Array.isArray(r)?[c,...r]:"function"===typeof r?function(){var e=r(...arguments);return(0,a.P)(e)?(0,n.Z)({},c,e):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},87053:function(e,t,r){"use strict";var n=r(76704),i=r(54583),a=r(97013),o=r(28240),s=r(49890);var l=function(){function e(e,t,r,i){var s={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};var{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};var h=(0,a.DW)(r,u)||{};if(p)return p(s);return(0,o.k9)(s,t,(t=>{var r=(0,a.Jq)(h,d,t);return t===r&&"string"===typeof t&&(r=(0,a.Jq)(h,d,"".concat(e).concat("default"===t?"":(0,n.Z)(t)),t)),!1===c?r:{[c]:r}}))}return function t(r){var n,{sx:a,theme:l={}}=r||{};if(!a)return null;var c=null!=(n=l.unstable_sxConfig)?n:s.Z;function u(r){var n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;var a=(0,o.W8)(l.breakpoints),s=Object.keys(a),u=a;return Object.keys(n).forEach((r=>{var a,s,d=(a=n[r],s=l,"function"===typeof a?a(s):a);if(null!==d&&void 0!==d)if("object"===typeof d)if(c[r])u=(0,i.Z)(u,e(r,d,l,c));else{var p=(0,o.k9)({theme:l},d,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;re.concat(Object.keys(t))),[]),i=new Set(n);return t.every((e=>i.size===Object.keys(e).length))}(p,d)?u=(0,i.Z)(u,p):u[r]=t({sx:d,theme:l})}else u=(0,i.Z)(u,e(r,d,l,c))})),(0,o.L7)(s,u)}return Array.isArray(a)?a.map(u):u(a)}}();l.filterProps=["sx"],t.Z=l},9878:function(e,t,r){"use strict";var n=(0,r(21545).ZP)();t.Z=n},90151:function(e,t,r){"use strict";var n=r(6319),i=r(57880),a=(0,n.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,i.Z)(e)}},83849:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(57737);var i=r(90151);function a(e){var{props:t,name:r,defaultTheme:a,themeId:o}=e,s=(0,i.Z)(a);o&&(s=s[o]||s);var l=function(e){var{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,i):i}({theme:s,name:r,props:t});return l}},57880:function(e,t,r){"use strict";var n=r(21914),i=r(12009);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n.useContext(i.T);return r&&(e=r,0!==Object.keys(e).length)?r:t}},93351:function(e,t){"use strict";var r=e=>e,n=(()=>{var e=r;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r}}})();t.Z=n},76704:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(47208);function i(e){if("string"!==typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},43232:function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((i=>{n[i]=e[i].reduce(((e,n)=>{if(n){var i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:function(){return n}})},82856:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;rnull==t?e:function(){for(var r=arguments.length,n=new Array(r),i=0;i{}))}r.d(t,{Z:function(){return n}})},89844:function(e,t,r){"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,i=new Array(n),a=0;a{e.apply(this,i)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{Z:function(){return n}})},61082:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return o}});var n=r(90957);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function a(e){if(!i(e))return e;var t={};return Object.keys(e).forEach((r=>{t[r]=a(e[r])})),t}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=r.clone?(0,n.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(i(t[n])&&n in e&&i(e[n])?s[n]=o(e[n],t[n],r):r.clone?s[n]=i(t[n])?a(t[n]):t[n]:s[n]=t[n])})),s}},47208:function(e,t,r){"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r2&&void 0!==arguments[2]?arguments[2]:"Mui",a=i[t];return a?"".concat(r,"-").concat(a):"".concat(n.Z.generate(e),"-").concat(t)}},40059:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(46051);function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((t=>{i[t]=(0,n.Z)(e,t,r)})),i}},34508:function(e,t,r){"use strict";function n(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}r.d(t,{Z:function(){return n}})},91313:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},75979:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91313);function i(e){return(0,n.Z)(e).defaultView||window}},57737:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(90957);function i(e,t){var r=(0,n.Z)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))r[a]=(0,n.Z)({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){var o=e[a]||{},s=t[a];r[a]={},s&&Object.keys(s)?o&&Object.keys(o)?(r[a]=(0,n.Z)({},s),Object.keys(o).forEach((e=>{r[a][e]=i(o[e],s[e])}))):r[a]=s:r[a]=o}else void 0===r[a]&&(r[a]=e[a])})),r}},224:function(e,t,r){"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},23151:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914);function i(e){var{controlled:t,default:r,name:i,state:a="value"}=e,{current:o}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[o?t:s,n.useCallback((e=>{o||l(e)}),[])]}},8031:function(e,t,r){"use strict";var n=r(21914),i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;t.Z=i},22713:function(e,t,r){"use strict";var n=r(21914),i=r(8031);t.Z=function(e){var t=n.useRef(e);return(0,i.Z)((()=>{t.current=e})),n.useCallback((function(){return(0,t.current)(...arguments)}),[])}},43064:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(21914),i=r(224);function a(){for(var e=arguments.length,t=new Array(e),r=0;rt.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.Z)(t,e)}))}),t)}},3363:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return s}});var i=r(21914),a=0;var o=(n||(n=r.t(i,2)))["useId".toString()];function s(e){if(void 0!==o){var t=o();return null!=e?e:t}return function(e){var[t,r]=i.useState(e),n=e||t;return i.useEffect((()=>{null==t&&r("mui-".concat(a+=1))}),[t]),n}(e)}},85042:function(e,t,r){"use strict";var n=r(21914),i=r(9109);function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o,s=a(n),l=a(i);t.AnnotationType=void 0,(o=t.AnnotationType||(t.AnnotationType={}))[o.Text=1]="Text",o[o.Link=2]="Link",o[o.FreeText=3]="FreeText",o[o.Line=4]="Line",o[o.Square=5]="Square",o[o.Circle=6]="Circle",o[o.Polygon=7]="Polygon",o[o.Polyline=8]="Polyline",o[o.Highlight=9]="Highlight",o[o.Underline=10]="Underline",o[o.Squiggly=11]="Squiggly",o[o.StrikeOut=12]="StrikeOut",o[o.Stamp=13]="Stamp",o[o.Caret=14]="Caret",o[o.Ink=15]="Ink",o[o.Popup=16]="Popup",o[o.FileAttachment=17]="FileAttachment";var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;rB}));if(!e.length)return-1;for(var t=e[0].pageIndex,n=e[e.length-1].pageIndex,i=e.length,o=0;o=0&&a.current.visibilities[t-1].renderStatus!==w.Rendered?t-1:-1},isInRange:function(e){return e>=a.current.startRange&&e<=a.current.endRange},markNotRendered:function(){for(var e=0;et)&&(a.current.visibilities[n].visibility=B,a.current.visibilities[n].renderStatus=w.NotRenderedYet)},setVisibility:o}},N={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},L=s.createContext({l10n:N,setL10n:function(){}}),Z=0,G=function(){return Z++},z=function(e,t,r){var n=function(e){var n=t.current;if(n){var i=e.target;if(i instanceof Element&&i.shadowRoot){var a=e.composedPath();a.length>0&&!n.contains(a[0])&&r()}else n.contains(i)||r()}};s.useEffect((function(){if(e){var t={capture:!0};return document.addEventListener("click",n,t),function(){document.removeEventListener("click",n,t)}}}),[])},U=function(e){var t=function(t){"Escape"===t.key&&e()};s.useEffect((function(){return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}}),[])},W=function(e){var r=e.ariaControlsSuffix,n=e.children,i=e.closeOnClickOutside,a=e.closeOnEscape,o=e.onToggle,l=s.useRef(),c=s.useContext(f).direction===t.TextDirection.RightToLeft;return s.useEffect((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}),[]),U((function(){l.current&&a&&o()})),z(i,l,o),g((function(){var e=l.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}}),[]),s.createElement("div",{"aria-modal":"true",className:v({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":c}),id:"rpv-core__modal-body-".concat(r),ref:l,role:"dialog",tabIndex:-1},n)},q=function(e){var t=e.children;return s.createElement("div",{className:"rpv-core__modal-overlay"},t)};t.ToggleStatus=void 0,(D=t.ToggleStatus||(t.ToggleStatus={})).Close="Close",D.Open="Open",D.Toggle="Toggle";var H,V=function(e){var r=s.useState(e),n=r[0],i=r[1];return{opened:n,toggle:function(e){switch(e){case t.ToggleStatus.Close:i(!1);break;case t.ToggleStatus.Open:i(!0);break;case t.ToggleStatus.Toggle:default:i((function(e){return!e}))}}}},Y=function(e){var t=e.content,r=e.isOpened,n=void 0!==r&&r,i=e.target,a=V(n),o=a.opened,l=a.toggle;return s.createElement(s.Fragment,null,i&&i(l,o),o&&t(l))};t.Position=void 0,(H=t.Position||(t.Position={})).TopLeft="TOP_LEFT",H.TopCenter="TOP_CENTER",H.TopRight="TOP_RIGHT",H.RightTop="RIGHT_TOP",H.RightCenter="RIGHT_CENTER",H.RightBottom="RIGHT_BOTTOM",H.BottomLeft="BOTTOM_LEFT",H.BottomCenter="BOTTOM_CENTER",H.BottomRight="BOTTOM_RIGHT",H.LeftTop="LEFT_TOP",H.LeftCenter="LEFT_CENTER",H.LeftBottom="LEFT_BOTTOM";var K,X,$,Q,J,ee,te,re,ne=function(e,r,n,i,a){g((function(){var o=r.current,s=e.current,l=n.current;if(s&&o&&l){var c=l.getBoundingClientRect(),u=function(e,r,n,i){var a=r.getBoundingClientRect(),o=e.getBoundingClientRect(),s=o.height,l=o.width,c=0,u=0;switch(n){case t.Position.TopLeft:c=a.top-s,u=a.left;break;case t.Position.TopCenter:c=a.top-s,u=a.left+a.width/2-l/2;break;case t.Position.TopRight:c=a.top-s,u=a.left+a.width-l;break;case t.Position.RightTop:c=a.top,u=a.left+a.width;break;case t.Position.RightCenter:c=a.top+a.height/2-s/2,u=a.left+a.width;break;case t.Position.RightBottom:c=a.top+a.height-s,u=a.left+a.width;break;case t.Position.BottomLeft:c=a.top+a.height,u=a.left;break;case t.Position.BottomCenter:c=a.top+a.height,u=a.left+a.width/2-l/2;break;case t.Position.BottomRight:c=a.top+a.height,u=a.left+a.width-l;break;case t.Position.LeftTop:c=a.top,u=a.left-l;break;case t.Position.LeftCenter:c=a.top+a.height/2-s/2,u=a.left-l;break;case t.Position.LeftBottom:c=a.top+a.height-s,u=a.left-l}return{left:u+(i.left||0),top:c+(i.top||0)}}(s,o,i,a),d=u.top,p=u.left;s.style.top="".concat(d-c.top,"px"),s.style.left="".concat(p-c.left,"px")}}),[])},ie=function(e){var r,n=e.customClassName,i=e.position;return s.createElement("div",{className:v((r={"rpv-core__arrow":!0,"rpv-core__arrow--tl":i===t.Position.TopLeft,"rpv-core__arrow--tc":i===t.Position.TopCenter,"rpv-core__arrow--tr":i===t.Position.TopRight,"rpv-core__arrow--rt":i===t.Position.RightTop,"rpv-core__arrow--rc":i===t.Position.RightCenter,"rpv-core__arrow--rb":i===t.Position.RightBottom,"rpv-core__arrow--bl":i===t.Position.BottomLeft,"rpv-core__arrow--bc":i===t.Position.BottomCenter,"rpv-core__arrow--br":i===t.Position.BottomRight,"rpv-core__arrow--lt":i===t.Position.LeftTop,"rpv-core__arrow--lc":i===t.Position.LeftCenter,"rpv-core__arrow--lb":i===t.Position.LeftBottom},r["".concat(n)]=""!==n,r))})},ae=function(e){var r=e.ariaControlsSuffix,n=e.children,i=e.closeOnClickOutside,a=e.offset,o=e.position,l=e.targetRef,c=e.onClose,u=s.useRef(),d=s.useRef(),p=s.useRef(),h=s.useContext(f).direction===t.TextDirection.RightToLeft;z(i,u,c),ne(u,l,p,o,a),g((function(){var e=d.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}}),[]);var m="rpv-core__popover-body-inner-".concat(r);return s.createElement(s.Fragment,null,s.createElement("div",{ref:p,style:{left:0,position:"absolute",top:0}}),s.createElement("div",{"aria-describedby":m,className:v({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":h}),id:"rpv-core__popover-body-".concat(r),ref:u,role:"dialog",tabIndex:-1},s.createElement(ie,{customClassName:"rpv-core__popover-body-arrow",position:o}),s.createElement("div",{id:m,ref:d},n)))},oe=function(e){var t=e.closeOnEscape,r=e.onClose,n=s.useRef();return U((function(){n.current&&t&&r()})),s.createElement("div",{className:"rpv-core__popover-overlay",ref:n})},se=function(e){var r=e.ariaControlsSuffix,n=e.children,i=e.contentRef,a=e.offset,o=e.position,l=e.targetRef,c=s.useRef(),u=s.useContext(f).direction===t.TextDirection.RightToLeft;return ne(i,l,c,o,a),s.createElement(s.Fragment,null,s.createElement("div",{ref:c,style:{left:0,position:"absolute",top:0}}),s.createElement("div",{className:v({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":u}),id:"rpv-core__tooltip-body-".concat(r),ref:i,role:"tooltip"},s.createElement(ie,{customClassName:"rpv-core__tooltip-body-arrow",position:o}),s.createElement("div",{className:"rpv-core__tooltip-body-content"},n)))};t.FullScreenMode=void 0,(K=t.FullScreenMode||(t.FullScreenMode={})).Normal="Normal",K.Entering="Entering",K.Entered="Entered",K.EnteredCompletely="EnteredCompletely",K.Exitting="Exitting",K.Exited="Exited",t.LayerRenderStatus=void 0,(X=t.LayerRenderStatus||(t.LayerRenderStatus={}))[X.PreRender=0]="PreRender",X[X.DidRender=1]="DidRender",t.PageMode=void 0,($=t.PageMode||(t.PageMode={})).Attachments="UseAttachments",$.Bookmarks="UseOutlines",$.ContentGroup="UseOC",$.Default="UserNone",$.FullScreen="FullScreen",$.Thumbnails="UseThumbs",t.PasswordStatus=void 0,(Q=t.PasswordStatus||(t.PasswordStatus={})).RequiredPassword="RequiredPassword",Q.WrongPassword="WrongPassword",t.RotateDirection=void 0,(J=t.RotateDirection||(t.RotateDirection={})).Backward="Backward",J.Forward="Forward",t.ScrollMode=void 0,(ee=t.ScrollMode||(t.ScrollMode={})).Page="Page",ee.Horizontal="Horizontal",ee.Vertical="Vertical",ee.Wrapped="Wrapped",t.SpecialZoomLevel=void 0,(te=t.SpecialZoomLevel||(t.SpecialZoomLevel={})).ActualSize="ActualSize",te.PageFit="PageFit",te.PageWidth="PageWidth",t.ViewMode=void 0,(re=t.ViewMode||(t.ViewMode={})).DualPage="DualPage",re.DualPageWithCover="DualPageWithCover",re.SinglePage="SinglePage";var le,ce=function(e,t){return e.reduce((function(e,r,n){return n%t?e[e.length-1].push(r):e.push([r]),e}),[])},ue=function(e,r){switch(r[1].name){case"XYZ":return{bottomOffset:function(e,t){return null===r[3]?t:r[3]},leftOffset:function(e,t){return null===r[2]?0:r[2]},pageIndex:e,scaleTo:r[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:r[2],leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:1}}},de=new Map,pe=new Map,he=function(e,t){return"".concat(e.loadingTask.docId,"___").concat(t.num,"R").concat(0===t.gen?"":t.gen)},fe=function(e,t,r){de.set(he(e,t),r)},ve=function(e,t){if(!e)return Promise.reject("The document is not loaded yet");var r="".concat(e.loadingTask.docId,"___").concat(t),n=pe.get(r);return n?Promise.resolve(n):new Promise((function(n,i){e.getPage(t+1).then((function(i){pe.set(r,i),i.ref&&fe(e,i.ref,t),n(i)}))}))},ge=function e(t,r){return new Promise((function(n){new Promise((function(e){"string"==typeof r?t.getDestination(r).then((function(t){e(t)})):e(r)})).then((function(i){if("object"==typeof i[0]&&null!==i[0]){var a=i[0],o=function(e,t){var r=he(e,t);return de.has(r)?de.get(r):null}(t,a);null===o?t.getPageIndex(a).then((function(i){fe(t,a,i),e(t,r).then((function(e){return n(e)}))})):n(ue(o,i))}else{var s=ue(i[0],i);n(s)}}))}))};!function(e){e[e.Solid=1]="Solid",e[e.Dashed=2]="Dashed",e[e.Beveled=3]="Beveled",e[e.Inset=4]="Inset",e[e.Underline=5]="Underline"}(le||(le={}));var me,be=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),ye=function(e,t,r,n){var i=parseInt(e,10);return i>=t&&i<=r?i:n},_e=function(e){return e.contentsObj?e.contentsObj.str:e.contents||""},Ae=function(e){return e.titleObj?e.titleObj.str:e.title||""},Ce=function(e){var r=e.annotation,n=s.useContext(f).direction,i=Ae(r),a=_e(r),o=n===t.TextDirection.RightToLeft,l=s.useRef(),c="";if(r.modificationDate){var u=function(e){var t=be.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=ye(t[2],1,12,1)-1,i=ye(t[3],1,31,1),a=ye(t[4],0,23,0),o=ye(t[5],0,59,0),s=ye(t[6],0,59,0),l=t[7]||"Z",c=ye(t[8],0,23,0),u=ye(t[9],0,59,0);switch(l){case"-":a+=c,o+=u;break;case"+":a-=c,o-=u}return new Date(Date.UTC(r,n,i,a,o,s))}(r.modificationDate);c=u?"".concat(u.toLocaleDateString(),", ").concat(u.toLocaleTimeString()):""}return s.useLayoutEffect((function(){if(l.current){var e=document.querySelector('[data-annotation-id="'.concat(r.id,'"]'));if(e){var t=e;return t.style.zIndex+=1,function(){t.style.zIndex="".concat(parseInt(t.style.zIndex,10)-1)}}}}),[]),s.createElement("div",{ref:l,className:v({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":o}),style:{top:r.annotationType===t.AnnotationType.Popup?"":"100%"}},i&&s.createElement(s.Fragment,null,s.createElement("div",{className:v({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!o,"rpv-core__annotation-popup-title--rtl":o})},i),s.createElement("div",{className:"rpv-core__annotation-popup-date"},c)),a&&s.createElement("div",{className:"rpv-core__annotation-popup-content"},a.split("\n").map((function(e,t){return s.createElement(s.Fragment,{key:t},e,s.createElement("br",null))}))))};!function(e){e.Click="Click",e.Hover="Hover"}(me||(me={}));var we,Se=function(e){var r,n=e.annotation,i=e.children,a=e.ignoreBorder,o=e.hasPopup,l=e.isRenderable,c=e.page,u=e.viewport,d=n.rect,p=function(){var e=V(!1),r=e.opened,n=e.toggle,i=s.useState(me.Hover),a=i[0],o=i[1];return{opened:r,closeOnHover:function(){a===me.Hover&&n(t.ToggleStatus.Close)},openOnHover:function(){a===me.Hover&&n(t.ToggleStatus.Open)},toggleOnClick:function(){switch(a){case me.Click:r&&o(me.Hover),n(t.ToggleStatus.Toggle);break;case me.Hover:o(me.Click),n(t.ToggleStatus.Open)}}}}(),h=p.closeOnHover,f=p.opened,v=p.openOnHover,g=p.toggleOnClick,m=(r=[d[0],c.view[3]+c.view[1]-d[1],d[2],c.view[3]+c.view[1]-d[3]],[Math.min(r[0],r[2]),Math.min(r[1],r[3]),Math.max(r[0],r[2]),Math.max(r[1],r[3])]),b=d[2]-d[0],y=d[3]-d[1],_={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!a&&n.borderStyle.width>0){switch(n.borderStyle.style){case le.Dashed:_.borderStyle="dashed";break;case le.Solid:_.borderStyle="solid";break;case le.Underline:_=Object.assign({borderBottomStyle:"solid"},_);case le.Beveled:case le.Inset:}var A=n.borderStyle.width;_.borderWidth="".concat(A,"px"),n.borderStyle.style!==le.Underline&&(b-=2*A,y-=2*A);var C=n.borderStyle,w=C.horizontalCornerRadius,S=C.verticalCornerRadius;(w>0||S>0)&&(_.borderRadius="".concat(w,"px / ").concat(S,"px")),n.color?_.borderColor="rgb(".concat(0|n.color[0],", ").concat(0|n.color[1],", ").concat(0|n.color[2],")"):_.borderWidth="0"}return s.createElement(s.Fragment,null,l&&i({popup:{opened:f,closeOnHover:h,openOnHover:v,toggleOnClick:g},slot:{attrs:{style:Object.assign({height:"".concat(y,"px"),left:"".concat(m[0],"px"),top:"".concat(m[1],"px"),transform:"matrix(".concat(u.transform.join(","),")"),transformOrigin:"-".concat(m[0],"px -").concat(m[1],"px"),width:"".concat(b,"px")},_)},children:s.createElement(s.Fragment,null,o&&f&&s.createElement(Ce,{annotation:n}))}}))},ke=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},xe=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],h=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("circle",{cy:d/2,fill:"none",rx:u/2-h/2,ry:d/2-h/2,stroke:"transparent",strokeWidth:h||1})),e.slot.children)}))},Pe=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=Ae(t),a=_e(t),o=!(!1!==t.hasPopup||!i&&!a),l=function(){var e,r,n,i,a=t.file;a&&(e=a.filename,n="string"==typeof(r=a.content)?"":URL.createObjectURL(new Blob([r],{type:""})),(i=document.createElement("a")).style.display="none",i.href=n||e,i.setAttribute("download",function(e){var t=e.split("/").pop();return t?t.split("#")[0].split("?")[0]:e}(e)),document.body.appendChild(i),i.click(),document.body.removeChild(i),n&&URL.revokeObjectURL(n))};return s.createElement(Se,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:!0,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onDoubleClick:l,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Ee=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Oe=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=Ae(t),a=_e(t),o=!(!i&&!a),l=!t.parentType||-1!==["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(t.parentType);return g((function(){if(t.parentId){var e=document.querySelector('[data-annotation-id="'.concat(t.parentId,'"]')),r=document.querySelector('[data-annotation-id="'.concat(t.id,'"]'));if(e&&r){var n=parseFloat(e.style.left),i=parseFloat(e.style.top)+parseFloat(e.style.height);r.style.left="".concat(n,"px"),r.style.top="".concat(i,"px"),r.style.transformOrigin="-".concat(n,"px -").concat(i,"px")}}}),[]),s.createElement(Se,{annotation:t,hasPopup:l,ignoreBorder:!1,isRenderable:o,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":t.id}),s.createElement(Ce,{annotation:t}))}))},Te=function e(r){var n=r.annotation,i=r.childAnnotation,a=r.page,o=r.viewport,l=!1===n.hasPopup,c=Ae(n),u=_e(n),d=!!(n.hasPopup||c||u);if(n.quadPoints&&n.quadPoints.length>0){var h=n.quadPoints.map((function(e){return Object.assign({},n,{rect:[e[2].x,e[2].y,e[1].x,e[1].y],quadPoints:[]})}));return s.createElement(s.Fragment,null,h.map((function(t,r){return s.createElement(e,{key:r,annotation:t,childAnnotation:i,page:a,viewport:o})})))}return s.createElement(Se,{annotation:n,hasPopup:l,ignoreBorder:!0,isRenderable:d,page:a,viewport:o},(function(e){return s.createElement(s.Fragment,null,s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":n.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children),i&&i.annotationType===t.AnnotationType.Popup&&e.popup.opened&&s.createElement(Oe,{annotation:i,page:a,viewport:o}))}))},Re=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],h=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.inkLists&&t.inkLists.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},t.inkLists.map((function(e,t){return s.createElement("polyline",{key:t,fill:"none",stroke:"transparent",strokeWidth:h||1,points:e.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})}))),e.slot.children)}))},Me=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],h=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("line",{stroke:"transparent",strokeWidth:h||1,x1:c[2]-t.lineCoordinates[0],x2:c[2]-t.lineCoordinates[2],y1:c[3]-t.lineCoordinates[1],y2:c[3]-t.lineCoordinates[3]})),e.slot.children)}))},Fe=/^([^\w]*)(javascript|data|vbscript)/im,Ie=/&#(\w+)(^\w|;)?/g,De=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Be=/^([^:]+):/gm,je=function(e){var t,r=e.annotation,n=e.annotationContainerRef,i=e.doc,a=e.outlines,o=e.page,l=e.pageIndex,c=e.scale,u=e.viewport,d=e.onExecuteNamedAction,h=e.onJumpFromLinkAnnotation,f=e.onJumpToDest,v=s.useRef(),g=a&&a.length&&r.dest&&"string"==typeof r.dest?null===(t=a.find((function(e){return e.dest===r.dest})))||void 0===t?void 0:t.title:"",m=!!(r.url||r.dest||r.action||r.unsafeUrl),b={};if(r.url||r.unsafeUrl){var y=function(e,t){void 0===t&&(t="about:blank");var r,n=(r=e||"",r.replace(Ie,(function(e,t){return String.fromCharCode(t)}))).replace(De,"").trim();if(!n)return t;var i=n[0];if("."===i||"/"===i)return n;var a=n.match(Be);if(!a)return n;var o=a[0];return Fe.test(o)?t:n}(r.url||r.unsafeUrl,"");y?b={"data-target":"external",href:y,rel:"noopener noreferrer nofollow",target:r.newWindow?"_blank":"",title:y}:m=!1}else b={href:"","data-annotation-link":r.id,onClick:function(e){e.preventDefault(),r.action?d(r.action):ge(i,r.dest).then((function(e){var t=v.current,r=n.current;if(t&&r){var i=t.getBoundingClientRect();r.style.setProperty("height","100%"),r.style.setProperty("width","100%");var a=r.getBoundingClientRect();r.style.removeProperty("height"),r.style.removeProperty("width");var o=(i.left-a.left)/c,s=(a.bottom-i.bottom+i.height)/c;h({bottomOffset:s,label:g,leftOffset:o,pageIndex:l})}f(e)}))}};return g&&(b=Object.assign({},b,{title:g,"aria-label":g})),s.createElement(Se,{annotation:r,hasPopup:!1,ignoreBorder:!1,isRenderable:m,page:o,viewport:u},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":r.id,"data-testid":"core__annotation--link-".concat(r.id)}),s.createElement("a",p({ref:v},b)))}))},Ne=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],h=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:h||1,points:t.vertices.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})),e.slot.children)}))},Le=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],h=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:h||1,points:t.vertices.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})),e.slot.children)}))},Ze=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],h=t.borderStyle.width;return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("rect",{height:d-h,fill:"none",stroke:"transparent",strokeWidth:h||1,x:h/2,y:h/2,width:u-h})),e.slot.children)}))},Ge=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},ze=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Ue=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},We=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M.5,16.5a1,1,0,0,0,1,1h2v4l4-4h15a1,1,0,0,0,1-1V3.5a1,1,0,0,0-1-1H1.5a1,1,0,0,0-1,1Z"}),s.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),s.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),s.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},qe=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M0.500 12.001 A11.500 11.500 0 1 0 23.500 12.001 A11.500 11.500 0 1 0 0.500 12.001 Z"}),s.createElement("path",{d:"M6.000 12.001 A6.000 6.000 0 1 0 18.000 12.001 A6.000 6.000 0 1 0 6.000 12.001 Z"}),s.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),s.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),s.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),s.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),s.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),s.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),s.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),s.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},He=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M4.000 18.500 A1.500 1.500 0 1 0 7.000 18.500 A1.500 1.500 0 1 0 4.000 18.500 Z"}),s.createElement("path",{d:"M20.5.5l-9.782,9.783a7,7,0,1,0,3,3L17,10h1.5V8.5L19,8h1.5V6.5L21,6h1.5V4.5l1-1V.5Z"}))},Ve=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),s.createElement("path",{d:"M6 4.5L6 0.5"}),s.createElement("path",{d:"M18 4.5L18 0.5"}),s.createElement("path",{d:"M10 4.5L10 0.5"}),s.createElement("path",{d:"M14 4.5L14 0.5"}))},Ye=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),s.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),s.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},Ke=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},Xe=function(e){var r=e.annotation,n=e.childAnnotation,i=e.page,a=e.viewport,o=!1===r.hasPopup,l=Ae(r),c=_e(r),u=!!(r.hasPopup||l||c),d=r.name?r.name.toLowerCase():"";return s.createElement(Se,{annotation:r,hasPopup:o,ignoreBorder:!1,isRenderable:u,page:i,viewport:a},(function(e){return s.createElement(s.Fragment,null,s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":r.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),d&&s.createElement("div",{className:"rpv-core__annotation-text-icon"},"check"===d&&s.createElement(y,null),"comment"===d&&s.createElement(We,null),"help"===d&&s.createElement(qe,null),"insert"===d&&s.createElement(Ke,null),"key"===d&&s.createElement(He,null),"note"===d&&s.createElement(Ve,null),("newparagraph"===d||"paragraph"===d)&&s.createElement(Ye,null)),e.slot.children),n&&n.annotationType===t.AnnotationType.Popup&&e.popup.opened&&s.createElement(Oe,{annotation:n,page:i,viewport:a}))}))},$e=function(e){var t=e.annotation,r=e.page,n=e.viewport,i=!1===t.hasPopup,a=Ae(t),o=_e(t),l=!!(t.hasPopup||a||o);return s.createElement(Se,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Qe=function(e){var r=e.annotations,n=e.doc,i=e.outlines,a=e.page,o=e.pageIndex,l=e.plugins,c=e.rotation,u=e.scale,d=e.onExecuteNamedAction,p=e.onJumpFromLinkAnnotation,h=e.onJumpToDest,f=s.useRef(),v=a.getViewport({rotation:c,scale:u}).clone({dontFlip:!0}),m=r.filter((function(e){return!e.parentId}));return g((function(){var e=f.current;e&&l.forEach((function(t){t.onAnnotationLayerRender&&t.onAnnotationLayerRender({annotations:m,container:e,pageIndex:o,rotation:c,scale:u})}))}),[]),s.createElement("div",{ref:f,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(o)},m.map((function(e){var l=r.find((function(t){return t.parentId===e.id}));switch(e.annotationType){case t.AnnotationType.Caret:return s.createElement(ke,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Circle:return s.createElement(xe,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.FileAttachment:return s.createElement(Pe,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.FreeText:return s.createElement(Ee,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Highlight:return s.createElement(Te,{key:e.id,annotation:e,childAnnotation:l,page:a,viewport:v});case t.AnnotationType.Ink:return s.createElement(Re,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Line:return s.createElement(Me,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Link:return s.createElement(je,{key:e.id,annotation:e,annotationContainerRef:f,doc:n,outlines:i,page:a,pageIndex:o,scale:u,viewport:v,onExecuteNamedAction:d,onJumpFromLinkAnnotation:p,onJumpToDest:h});case t.AnnotationType.Polygon:return s.createElement(Ne,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Polyline:return s.createElement(Le,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Popup:return s.createElement(Oe,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Square:return s.createElement(Ze,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Squiggly:return s.createElement(Ge,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Stamp:return s.createElement(ze,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.StrikeOut:return s.createElement(Ue,{key:e.id,annotation:e,page:a,viewport:v});case t.AnnotationType.Text:return s.createElement(Xe,{key:e.id,annotation:e,childAnnotation:l,page:a,viewport:v});case t.AnnotationType.Underline:return s.createElement($e,{key:e.id,annotation:e,page:a,viewport:v});default:return s.createElement(s.Fragment,{key:e.id})}})))},Je=function(e){var t=e.page,r=e.renderAnnotations,n=F(),i=s.useState({loading:!0,annotations:[]}),a=i[0],o=i[1];return s.useEffect((function(){t.getAnnotations({intent:"display"}).then((function(e){n.current&&o({loading:!1,annotations:e})}))}),[]),a.loading?s.createElement(s.Fragment,null):r(a.annotations)},et=function(e){var t=e.doc,r=e.outlines,n=e.page,i=e.pageIndex,a=e.plugins,o=e.rotation,l=e.scale,c=e.onExecuteNamedAction,u=e.onJumpFromLinkAnnotation,d=e.onJumpToDest;return s.createElement(Je,{page:n,renderAnnotations:function(e){return s.createElement(Qe,{annotations:e,doc:t,outlines:r,page:n,pageIndex:i,plugins:a,rotation:o,scale:l,onExecuteNamedAction:c,onJumpFromLinkAnnotation:u,onJumpToDest:d})}})},tt=function(e,t){var r=e%t;return 0===r?e:Math.floor(e-r)},rt=function(e){var r=e.canvasLayerRef,n=e.height,i=e.page,a=e.pageIndex,o=e.plugins,l=e.rotation,c=e.scale,u=e.width,d=e.onRenderCanvasCompleted,p=s.useRef();return g((function(){var e=p.current;e&&e.cancel();var n=r.current;n.removeAttribute("data-testid"),o.forEach((function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:n,pageIndex:a,rotation:l,scale:c,status:t.LayerRenderStatus.PreRender})}));var s=i.getViewport({rotation:l,scale:c}),u=window.devicePixelRatio||1,h=Math.sqrt(16777216/(s.width*s.height)),f=u>h;f?n.style.transform="scale(1, 1)":n.style.removeProperty("transform");var v=Math.min(h,u),g=function(e,t){var r,n;if(Math.floor(e)===e)return[e,1];var i=1/e;if(i>8)return[1,8];if(Math.floor(i)===i)return[1,i];for(var a=e>1?i:e,o=0,s=1,l=1,c=1;;){var u=o+l,d=s+c;if(d>8)break;a<=u/d?(l=(r=[u,d])[0],c=r[1]):(o=(n=[u,d])[0],s=n[1])}return a<(o/s+l/c)/2?a===e?[o,s]:[s,o]:a===e?[l,c]:[c,l]}(v),m=g[0],b=g[1];n.width=tt(s.width*v,m),n.height=tt(s.height*v,m),n.style.width="".concat(tt(s.width,b),"px"),n.style.height="".concat(tt(s.height,b),"px"),n.hidden=!0;var y=n.getContext("2d",{alpha:!1}),_=f||1!==u?[v,0,0,v,0,0]:null;return p.current=i.render({canvasContext:y,transform:_,viewport:s}),p.current.promise.then((function(){n.hidden=!1,n.setAttribute("data-testid","core__canvas-layer-".concat(a)),o.forEach((function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:n,pageIndex:a,rotation:l,scale:c,status:t.LayerRenderStatus.DidRender})})),d()}),(function(){d()})),function(){n&&(n.width=0,n.height=0)}}),[]),s.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(n,"px"),width:"".concat(u,"px")}},s.createElement("canvas",{ref:r}))},nt=function(e){var t=e.height,r=e.page,n=e.rotation,i=e.scale,a=e.width,o=s.useRef();return g((function(){var e=o.current,s=r.getViewport({rotation:n,scale:i});r.getOperatorList().then((function(n){!function(){var e=o.current;e&&(e.innerHTML="")}(),new l.SVGGraphics(r.commonObjs,r.objs).getSVG(n,s).then((function(r){r.style.height="".concat(t,"px"),r.style.width="".concat(a,"px"),e.appendChild(r)}))}))}),[]),s.createElement("div",{className:"rpv-core__svg-layer",ref:o})},it=function(e){var r=e.containerRef,n=e.page,i=e.pageIndex,a=e.plugins,o=e.rotation,c=e.scale,u=e.onRenderTextCompleted,d=s.useRef(),p=function(){var e=r.current;e&&([].slice.call(e.querySelectorAll(".rpv-core__text-layer-text")).forEach((function(t){return e.removeChild(t)})),[].slice.call(e.querySelectorAll('br[role="presentation"]')).forEach((function(t){return e.removeChild(t)})))};return g((function(){var e=d.current;e&&e.cancel();var s=r.current;if(s){s.removeAttribute("data-testid");var h=n.getViewport({rotation:o,scale:c});return a.forEach((function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:s,pageIndex:i,scale:c,status:t.LayerRenderStatus.PreRender})})),n.getTextContent().then((function(e){p(),d.current=l.renderTextLayer({container:s,textContent:e,textContentSource:e,viewport:h}),d.current.promise.then((function(){s.setAttribute("data-testid","core__text-layer-".concat(i)),[].slice.call(s.children).forEach((function(e){e.classList.contains("rpv-core__text-layer-text--not")||e.classList.add("rpv-core__text-layer-text")})),a.forEach((function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:s,pageIndex:i,scale:c,status:t.LayerRenderStatus.DidRender})})),u()}),(function(){s.removeAttribute("data-testid"),u()}))})),function(){var e;p(),null===(e=d.current)||void 0===e||e.cancel()}}}),[]),s.createElement("div",{className:"rpv-core__text-layer",ref:r})},at=function(e){var r=e.doc,n=e.measureRef,i=e.outlines,a=e.pageIndex,o=e.pageRotation,l=e.pageSize,c=e.plugins,u=e.renderPage,d=e.renderQueueKey,p=e.rotation,h=e.scale,f=e.shouldRender,g=e.viewMode,m=e.onExecuteNamedAction,b=e.onJumpFromLinkAnnotation,y=e.onJumpToDest,_=e.onRenderCompleted,C=e.onRotatePage,w=F(),S=s.useState(null),k=S[0],x=S[1],P=s.useState(!1),E=P[0],O=P[1],T=s.useState(!1),R=T[0],M=T[1],I=s.useRef(),D=s.useRef(),B=Math.abs(p+o)%180==0,j=l.pageWidth*h,N=l.pageHeight*h,L=B?j:N,Z=B?N:j,G=(l.rotation+p+o)%360,z=s.useRef(0),U=u||function(e){return s.createElement(s.Fragment,null,e.canvasLayer.children,e.textLayer.children,e.annotationLayer.children)};return s.useEffect((function(){x(null),O(!1),M(!1)}),[o,p,h]),s.useEffect((function(){f&&w.current&&!k&&ve(r,a).then((function(e){w.current&&(z.current=d,x(e))}))}),[f,k]),s.useEffect((function(){E&&R&&(d!==z.current?(x(null),O(!1),M(!1)):_(a))}),[E,R]),s.createElement("div",{className:v({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":g===t.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":g===t.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":g===t.ViewMode.SinglePage}),"data-testid":"core__page-layer-".concat(a),ref:n,style:{height:"".concat(Z,"px"),width:"".concat(L,"px")}},k?s.createElement(s.Fragment,null,U({annotationLayer:{attrs:{},children:s.createElement(et,{doc:r,outlines:i,page:k,pageIndex:a,plugins:c,rotation:G,scale:h,onExecuteNamedAction:m,onJumpFromLinkAnnotation:b,onJumpToDest:y})},canvasLayer:{attrs:{},children:s.createElement(rt,{canvasLayerRef:I,height:Z,page:k,pageIndex:a,plugins:c,rotation:G,scale:h,width:L,onRenderCanvasCompleted:function(){w.current&&O(!0)}})},canvasLayerRendered:E,doc:r,height:Z,pageIndex:a,rotation:G,scale:h,svgLayer:{attrs:{},children:s.createElement(nt,{height:Z,page:k,rotation:G,scale:h,width:L})},textLayer:{attrs:{},children:s.createElement(it,{containerRef:D,page:k,pageIndex:a,plugins:c,rotation:G,scale:h,onRenderTextCompleted:function(){w.current&&M(!0)}})},textLayerRendered:R,width:L,markRendered:_,onRotatePage:function(e){return C(a,e)}}),c.map((function(e,t){return e.renderPageLayer?s.createElement(s.Fragment,{key:t},e.renderPageLayer({canvasLayerRef:I,canvasLayerRendered:E,doc:r,height:Z,pageIndex:a,rotation:G,scale:h,textLayerRef:D,textLayerRendered:R,width:L})):s.createElement(s.Fragment,{key:t})}))):s.createElement(A,{testId:"core__page-layer-loading-".concat(a)}))},ot=function(e,t){var r=t.rect;return e.height!==r.height||e.width!==r.width?r:e};!function(e){e.Horizontal="Horizontal",e.Vertical="Vertical",e.Both="Both"}(we||(we={}));var st=function(e){return 1-Math.pow(1-e,4)},lt=1e-4,ct={left:0,top:0},ut={capture:!1,passive:!0},dt=function(e,t,r){return Math.max(e,Math.min(r,t))},pt=function(e,r){if(r!==t.ViewMode.DualPageWithCover)return 0;if(!function(e){var t=e.length;if(1===t)return!1;for(var r=1;rr))return i;t=i-1}}return e>0?e-1:0}(0,a,i,(function(r){switch(e){case we.Horizontal:return t[r].start.left;case we.Both:case we.Vertical:default:return t[r].start.top}}));if(e===we.Both)for(var s=t[o].start.top;o-1>=0&&t[o-1].start.top===s&&t[o-1].start.left>=n.left;)o--;for(var l=o;l<=a;){var c={top:t[l].start.top-n.top,left:t[l].start.left-n.left},u={height:r.height-c.top,width:r.width-c.left};if(e===we.Horizontal&&u.width<0)break;if(e===we.Vertical&&u.height<0)break;if(e===we.Both&&(u.width<0||u.height<0))break;l++}return{start:o,end:l}}(y,T,w,A),r=e.start,n=e.end,a=r+P.slice(dt(0,i,r),dt(0,i,n)).reduce((function(e,t,r,n){return t>n[e]?r:e}),0),s=a=dt(0,i-1,a),l=o({endPage:n,numPages:i,startPage:r}),c=l.startPage,d=l.endPage;switch(c=Math.max(c,0),d=Math.min(d,i-1),u){case t.ViewMode.DualPageWithCover:a>0&&(s=a%2==1?a:a-1),c=0===c?0:c%2==1?c:c-1,i-(d=d%2==1?d-1:d)<=2&&(d=i-1);break;case t.ViewMode.DualPage:s=a%2==0?a:a-1,c=c%2==0?c:c-1,d=d%2==1?d:d-1;break;case t.ViewMode.SinglePage:default:s=a}return{startPage:c,endPage:d,maxVisbilityIndex:s}}),[T,w,A,u,P]),F=M.startPage,I=M.endPage,D=M.maxVisbilityIndex,B=s.useMemo((function(){for(var e=[],t=function(t){var r=T[t],n=p(p({},r),{visibility:void 0!==P[t]?P[t]:-1,measureRef:function(e){e&&(e.setAttribute(yt,"".concat(t)),O.observe(e))}});e.push(n)},r=F;r<=I;r++)t(r);return e}),[F,I,P,T]),j=s.useCallback((function(e,n){var a=S.current.measurements[dt(0,i-1,e)],o=m.current===t.ScrollMode.Page?bt:n;return a?C({left:o.left+a.start.left,top:o.top+a.start.top},r):Promise.resolve()}),[C,r]),N=s.useCallback((function(e,r){var n=S.current.measurements,i=n[e].start,a=n.find((function(e){return e.start.top-i.top>1e-12}));if(!a)return Promise.resolve();var o=a.index;switch(b.current){case t.ViewMode.DualPage:o=o%2==0?o:o+1;break;case t.ViewMode.DualPageWithCover:o=o%2==1?o:o+1}return j(o,r)}),[]),L=s.useCallback((function(e,r){for(var n=S.current.measurements,a=n[e].start,o=e,s=!1,l=i-1;l>=0;l--)if(a.top-n[l].start.top>1e-12){s=!0,o=n[l].index;break}if(!s)return Promise.resolve();switch(b.current){case t.ViewMode.DualPage:o=o%2==0?o:o-1;break;case t.ViewMode.DualPageWithCover:o=o%2==0?o-1:o}return o===e&&(o=e-1),j(o,r)}),[]),Z=s.useCallback((function(e,r){if(b.current===t.ViewMode.DualPageWithCover||b.current===t.ViewMode.DualPage)return N(e,r);switch(m.current){case t.ScrollMode.Wrapped:return N(e,r);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return j(e+1,r)}}),[]),G=s.useCallback((function(e,r){if(b.current===t.ViewMode.DualPageWithCover||b.current===t.ViewMode.DualPage)return L(e,r);switch(m.current){case t.ScrollMode.Wrapped:return L(e,r);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return j(e-1,r)}}),[]),z=s.useCallback((function(){return function(e,r){switch(r){case t.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(e.width,"px")};case t.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(e.height,"px"),width:"100%"}}}(R,m.current)}),[R]),U=s.useCallback((function(e){return function(e,r,n){return n!==t.ScrollMode.Page?{}:{height:"".concat(r.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat(e.start.top,"px)")}}(e,w,m.current)}),[w]),W=s.useCallback((function(e){return function(e,r,n,i,a){var o,s,l,c,u,d,p,h=r?"right":"left",f=r?-1:1,v=n.length,g=e.start.left*f,m=e.size,b=m.height,y=m.width;if(i===t.ViewMode.DualPageWithCover){var _=a===t.ScrollMode.Page?0:e.start.top;return 0===e.index||v%2==0&&e.index===v-1?((o={height:"".concat(b,"px"),minWidth:"".concat(pt(n,i),"px"),width:"100%"})[h]=0,o.position="absolute",o.top=0,o.transform="translate(".concat(g,"px, ").concat(_,"px)"),o):((s={height:"".concat(b,"px"),width:"".concat(y,"px")})[h]=0,s.position="absolute",s.top=0,s.transform="translate(".concat(g,"px, ").concat(_,"px)"),s)}if(i===t.ViewMode.DualPage)return(l={height:"".concat(b,"px"),width:"".concat(y,"px")})[h]=0,l.position="absolute",l.top=0,l.transform="translate(".concat(g,"px, ").concat(a===t.ScrollMode.Page?0:e.start.top,"px)"),l;switch(a){case t.ScrollMode.Horizontal:return(c={height:"100%",width:"".concat(y,"px")})[h]=0,c.position="absolute",c.top=0,c.transform="translateX(".concat(g,"px)"),c;case t.ScrollMode.Page:return(u={height:"".concat(b,"px"),width:"".concat(y,"px")})[h]=0,u.position="absolute",u.top=0,u;case t.ScrollMode.Wrapped:return(d={height:"".concat(b,"px"),width:"".concat(y,"px")})[h]=0,d.position="absolute",d.top=0,d.transform="translate(".concat(g,"px, ").concat(e.start.top,"px)"),d;case t.ScrollMode.Vertical:default:return(p={height:"".concat(b,"px"),width:"100%"})[h]=0,p.position="absolute",p.top=0,p.transform="translateY(".concat(e.start.top,"px)"),p}}(e,n,l,b.current,m.current)}),[n,l]),q=s.useCallback((function(e,r){var n=S.current,a=n.measurements,o=n.scrollOffset,s=a[dt(0,i-1,r)];if(s){var l=m.current===t.ScrollMode.Page?{left:s.start.left,top:s.start.top}:{left:o.left*e,top:o.top*e};return C(l,!1)}return Promise.resolve()}),[]);return s.useEffect((function(){return function(){O.disconnect()}}),[]),{boundingClientRect:w,isSmoothScrolling:h,startPage:F,endPage:I,maxVisbilityIndex:D,virtualItems:B,getContainerStyles:z,getItemContainerStyles:U,getItemStyles:W,scrollToItem:j,scrollToNextItem:Z,scrollToPreviousItem:G,zoom:q}},Ct=function(e,r,n,i,a,o){var s=n;switch(!0){case a===t.ViewMode.DualPageWithCover&&o>=3:case a===t.ViewMode.DualPage&&o>=3:s=2*n;break;default:s=n}switch(i){case t.SpecialZoomLevel.ActualSize:return 1;case t.SpecialZoomLevel.PageFit:return Math.min((e.clientWidth-17)/s,(e.clientHeight-16)/r);case t.SpecialZoomLevel.PageWidth:return(e.clientWidth-17)/s}},wt=function e(t){var r=[];return t.map((function(t){r=r.concat(t).concat(function(t){var r=[];return t.items&&t.items.length>0&&(r=r.concat(e(t.items))),r}(t))})),r},St={capture:!1,passive:!0},kt={height:0,width:0},xt={height:0,width:0},Pt=function(e){var r=e.getCurrentPage,n=e.getCurrentScrollMode,i=e.jumpToPage,a=e.targetRef,o=s.useState(t.FullScreenMode.Normal),l=o[0],c=o[1],u=function(){var e=s.useState(kt),t=e[0],r=e[1],n=M((function(){r({height:window.innerHeight,width:window.innerWidth})}),100);return g((function(){return window.addEventListener("resize",n,St),function(){window.removeEventListener("resize",n,St)}}),[]),t}(),d=s.useState(xt),p=d[0],h=d[1],f=s.useRef(xt),v=s.useRef(r()),m=s.useRef(xt),b=s.useState(a.current),y=b[0],_=b[1],A=s.useRef();g((function(){a.current!==y&&_(a.current)}),[]),g((function(){if(y){var e=new ResizeObserver((function(e){e.forEach((function(e){var t=e.target.getBoundingClientRect(),r=t.height,n=t.width;h({height:r,width:n})}))}));return e.observe(y),function(){e.unobserve(y),e.disconnect()}}}),[y]);var C=s.useCallback((function(e){var r=R();return r&&r!==e?(c(t.FullScreenMode.Normal),T(r)):Promise.resolve()}),[]),w=s.useCallback((function(e){e&&O()&&(_(e),C(e).then((function(){A.current=e,c(t.FullScreenMode.Entering),function(e){P&&e[E.RequestFullScreen]()}(e)})))}),[]),S=s.useCallback((function(){R()&&(c(t.FullScreenMode.Exitting),T(document))}),[]),k=s.useCallback((function(){y&&R()!==y&&c(t.FullScreenMode.Exitting)}),[y]);return s.useEffect((function(){switch(l){case t.FullScreenMode.Entering:A.current&&(A.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),v.current=r(),f.current={height:window.innerHeight,width:window.innerWidth};break;case t.FullScreenMode.Entered:n()===t.ScrollMode.Page?i(v.current).then((function(){c(t.FullScreenMode.EnteredCompletely)})):c(t.FullScreenMode.EnteredCompletely);break;case t.FullScreenMode.Exitting:A.current&&(A.current.style.backgroundColor="",A.current=null),v.current=r();break;case t.FullScreenMode.Exited:c(t.FullScreenMode.Normal),n()===t.ScrollMode.Page&&i(v.current)}}),[l]),s.useEffect((function(){if(l!==t.FullScreenMode.Normal)return l===t.FullScreenMode.Entering&&u.height===p.height&&u.width===p.width&&u.height>0&&u.width>0&&(0===m.current.height||u.height==m.current.height)?(m.current={height:window.innerHeight,width:window.innerWidth},void c(t.FullScreenMode.Entered)):void(l===t.FullScreenMode.Exitting&&f.current.height===u.height&&f.current.width===u.width&&u.height>0&&u.width>0&&c(t.FullScreenMode.Exited))}),[l,u,p]),s.useEffect((function(){var e;return e=k,P&&document.addEventListener(E.FullScreenChange,e),function(){!function(e){P&&document.removeEventListener(E.FullScreenChange,e)}(k)}}),[y]),{enterFullScreenMode:w,exitFullScreenMode:S,fullScreenMode:l}},Et={buildPageStyles:function(){return{}},transformSize:function(e){return e.size}},Ot={left:0,top:0},Tt=function(e){var r=e.currentFile,n=e.defaultScale,i=e.doc,a=e.enableSmoothScroll,o=e.initialPage,l=e.initialRotation,c=e.initialScale,u=e.pageLayout,d=e.pageSizes,h=e.plugins,m=e.renderPage,b=e.scrollMode,y=e.setRenderRange,_=e.viewMode,A=e.viewerState,C=e.onDocumentLoad,w=e.onOpenFile,S=e.onPageChange,k=e.onRotate,x=e.onRotatePage,P=e.onZoom,E=i.numPages,O=i.loadingTask.docId,T=s.useContext(L).l10n,R=s.useContext(f),D=R.direction===t.TextDirection.RightToLeft,B=s.useRef(),N=s.useRef(),Z=s.useState(o),G=Z[0],z=Z[1],U=s.useRef(null),W=function(e){var t,r=e.getCurrentPage,n=(t=s.useRef([]),s.useEffect((function(){return function(){t.current=[]}}),[]),{push:function(e){var r=t.current;r.length+1>50&&r.shift(),r.push(e),t.current=r},map:function(e){return t.current.map((function(t){return e(t)}))},pop:function(){var e=t.current;if(0===e.length)return null;var r=e.pop();return t.current=e,r}}),i=function(e){var t=s.useRef([]);return s.useEffect((function(){return function(){t.current=[]}}),[]),{dequeue:function(){var e=t.current;if(0===e.length)return null;var r=e.shift();return t.current=e,r||null},enqueue:function(e){var r=t.current;r.length+1>50&&r.pop(),t.current=[e].concat(r)},map:function(e){return t.current.map((function(t){return e(t)}))}}}(),a=s.useCallback((function(e){n.push(e)}),[]);return{getNextDestination:function e(){var t=i.dequeue();return t&&n.push(t),t&&t.pageIndex===r()?e():t},getPreviousDestination:function e(){var t=n.pop();return t&&i.enqueue(t),t&&t.pageIndex===r()?e():t},markVisitedDestination:a}}({getCurrentPage:function(){return be.current.pageIndex}}),q=s.useState(l),H=q[0],V=q[1],Y=I(H),K=s.useState(!1),X=K[0],$=K[1],Q=s.useState(new Map),J=Q[0],ee=Q[1],te=s.useState(b),re=te[0],ne=te[1],ie=I(re),ae=s.useState(_),oe=ae[0],se=ae[1],le=I(oe),ue=function(e){var t=F(),r=s.useState([]),n=r[0],i=r[1];return s.useEffect((function(){e.getOutline().then((function(e){if(t.current&&null!==e){var r=wt(e);i(r)}}))}),[]),n}(i),he=s.useState(c),fe=he[0],ge=he[1],me=I(fe),be=s.useRef(A),ye=s.useRef("string"==typeof n?n:null),_e=s.useRef(-1),Ae=s.useRef(-1),Ce=s.useRef(o),we=Pt({getCurrentPage:function(){return be.current.pageIndex},getCurrentScrollMode:function(){return be.current.scrollMode},jumpToPage:function(e){return We(e)},targetRef:N}),Se=s.useState(-1),ke=Se[0],xe=Se[1],Pe=s.useState(0),Ee=Pe[0],Oe=Pe[1],Te=j({doc:i});s.useEffect((function(){return function(){de.clear(),pe.clear()}}),[O]);var Re=s.useMemo((function(){return Object.assign({},Et,u)}),[]),Me=s.useMemo((function(){return Array(E).fill(0).map((function(e,t){var r=[d[t].pageHeight,d[t].pageWidth],n=Math.abs(H)%180==0?{height:r[0],width:r[1]}:{height:r[1],width:r[0]},i={height:n.height*fe,width:n.width*fe};return Re.transformSize({numPages:E,pageIndex:t,size:i})}))}),[H,fe]),Fe=At({enableSmoothScroll:a,isRtl:D,numberOfItems:E,parentRef:N,scrollMode:re,setRenderRange:y,sizes:Me,viewMode:oe}),Ie=M((function(){!ye.current||be.current.fullScreenMode!==t.FullScreenMode.Normal||o>0&&Ce.current===o||$e(ye.current)}),200);!function(e){var t=e.targetRef,r=e.onResize;g((function(){var e=new ResizeObserver((function(e){e.forEach((function(e){r(e.target)}))})),n=t.current;if(n)return e.observe(n),function(){e.unobserve(n)}}),[])}({targetRef:N,onResize:Ie});var De=function(e){var t=e;h.forEach((function(e){e.onViewerStateChange&&(t=e.onViewerStateChange(t))})),be.current=t},Be=function(){return N.current},je=function(){return be.current},Ne=s.useCallback((function(e){W.markVisitedDestination(e)}),[]),Le=s.useCallback((function(e){var r=e.pageIndex,n=e.bottomOffset,a=e.leftOffset,o=e.scaleTo,s=N.current,l=be.current;return s&&l?new Promise((function(e,c){ve(i,r).then((function(i){var c=i.getViewport({scale:1}),u=0,p=("function"==typeof n?n(c.width,c.height):n)||0,h=("function"==typeof a?a(c.width,c.height):a)||0,f=l.scale;switch(o){case t.SpecialZoomLevel.PageFit:u=0,h=0,$e(t.SpecialZoomLevel.PageFit);break;case t.SpecialZoomLevel.PageWidth:f=Ct(s,d[r].pageHeight,d[r].pageWidth,t.SpecialZoomLevel.PageWidth,_,E),u=(c.height-p)*f,h*=f,$e(f);break;default:u=(c.height-p)*f,h*=f}switch(l.scrollMode){case t.ScrollMode.Horizontal:Fe.scrollToItem(r,{left:h,top:0}).then((function(){e()}));break;case t.ScrollMode.Vertical:default:Fe.scrollToItem(r,{left:0,top:u}).then((function(){e()}))}}))})):Promise.resolve()}),[]),Ze=s.useCallback((function(e){return W.markVisitedDestination(e),Le(e)}),[]),Ge=s.useCallback((function(){var e=W.getNextDestination();return e?Le(e):Promise.resolve()}),[]),ze=s.useCallback((function(){var e=W.getPreviousDestination();return e?Le(e):Promise.resolve()}),[]),Ue=s.useCallback((function(){return Fe.scrollToNextItem(be.current.pageIndex,Ot)}),[]),We=s.useCallback((function(e){return 0<=e&&e=E)){var n=d[r].pageHeight,a=d[r].pageWidth,o=t?"string"==typeof e?Ct(t,n,a,e,be.current.viewMode,E):e:1;ye.current="string"==typeof e?e:null,o!==be.current.scale&&(Oe((function(e){return e+1})),Te.markNotRendered(),ge(o),P({doc:i,scale:o}),De(p(p({},be.current),{scale:o})))}}),[]),Qe=s.useCallback((function(e){we.enterFullScreenMode(e)}),[]),Je=s.useCallback((function(){we.exitFullScreenMode()}),[]);s.useEffect((function(){De(p(p({},be.current),{fullScreenMode:we.fullScreenMode}))}),[we.fullScreenMode]),s.useEffect((function(){var e={enterFullScreenMode:Qe,exitFullScreenMode:Je,getPagesContainer:Be,getViewerState:je,jumpToDestination:Ze,jumpToNextDestination:Ge,jumpToPreviousDestination:ze,jumpToNextPage:Ue,jumpToPreviousPage:qe,jumpToPage:We,openFile:He,rotate:Ve,rotatePage:Ye,setViewerState:De,switchScrollMode:Ke,switchViewMode:Xe,zoom:$e};return h.forEach((function(t){t.install&&t.install(e)})),function(){h.forEach((function(t){t.uninstall&&t.uninstall(e)}))}}),[O]),s.useEffect((function(){C({doc:i,file:r}),h.forEach((function(e){e.onDocumentLoad&&e.onDocumentLoad({doc:i,file:r})}))}),[O]);var et,tt,rt,nt=Fe.boundingClientRect;et=function(){o&&We(o)},tt=nt.height>0&&nt.width>0,rt=s.useRef(!1),g((function(){tt&&!rt.current&&(rt.current=!0,et())}),[et,tt]),g((function(){var e=be.current.pageIndex;e>-1&&ie!==re&&Fe.scrollToItem(e,Ot).then((function(){we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(a||Te.markNotRendered(),_e.current=-1)}))}),[re]),g((function(){var e=be.current.pageIndex;e>-1&&Y!==H&&Fe.scrollToItem(e,Ot)}),[H]),g((function(){0!=me&&me!=be.current.scale&&Fe.zoom(be.current.scale/me,be.current.pageIndex).then((function(){we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(Ae.current=-1)}))}),[fe]),g((function(){if(le!==be.current.viewMode){var e=Fe.startPage,t=Fe.endPage,r=Fe.virtualItems;Te.markNotRendered(),Te.setRange(e,t);for(var n=function(e){var t=r.find((function(t){return t.index===e}));t&&Te.setVisibility(e,t.visibility)},i=e;i<=t;i++)n(i);ot()}}),[oe]),g((function(){var e=be.current.pageIndex;e>-1&&le!==oe&&Fe.scrollToItem(e,Ot)}),[oe]),g((function(){var e=be.current.pageIndex;e>0&&e===o&&Ce.current===o&&ye.current&&(Ce.current=-1,$e(ye.current))}),[G]),s.useEffect((function(){Fe.isSmoothScrolling||null!==U.current&&U.current===G||(U.current=G,S({currentPage:G,doc:i}))}),[G,Fe.isSmoothScrolling]),s.useEffect((function(){we.fullScreenMode===t.FullScreenMode.Entering&&be.current.scrollMode===t.ScrollMode.Page&&(_e.current=be.current.pageIndex),we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&be.current.scrollMode===t.ScrollMode.Page&&a&&(_e.current=-1),we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&ye.current&&(Ae.current=be.current.pageIndex,$e(ye.current))}),[we.fullScreenMode]),s.useEffect((function(){if(we.fullScreenMode!==t.FullScreenMode.Entering&&we.fullScreenMode!==t.FullScreenMode.Exitting&&!Fe.isSmoothScrolling){var e=Fe.startPage,r=Fe.endPage,n=Fe.maxVisbilityIndex,i=Fe.virtualItems,a=n,o=we.fullScreenMode===t.FullScreenMode.Entered||we.fullScreenMode===t.FullScreenMode.EnteredCompletely;if(!(o&&a!==_e.current&&_e.current>-1||o&&a!==Ae.current&&Ae.current>-1)){z(a),De(p(p({},be.current),{pageIndex:a})),Te.setRange(e,r);for(var s=function(e){var t=i.find((function(t){return t.index===e}));t&&Te.setVisibility(e,t.visibility)},l=e;l<=r;l++)s(l);ot()}}}),[Fe.startPage,Fe.endPage,Fe.isSmoothScrolling,Fe.maxVisbilityIndex,we.fullScreenMode,X,H,fe]);var it=s.useCallback((function(e){Te.markRendered(e),ot()}),[Ee]),ot=function(){var e=Te.getHighestPriorityPage();e>-1&&Te.isInRange(e)&&(Te.markRendering(e),xe(e))},st=function(e){var t=G-1,r=G+1;switch(e){case"FirstPage":We(0);break;case"LastPage":We(E-1);break;case"NextPage":r=0&&We(t)}},lt=s.useCallback((function(){var e=Fe.virtualItems,r=[];switch(oe){case t.ViewMode.DualPage:r=ce(e,2);break;case t.ViewMode.DualPageWithCover:e.length&&(r=0===e[0].index?[[e[0]]].concat(ce(e.slice(1),2)):ce(e,2));break;case t.ViewMode.SinglePage:default:r=ce(e,1)}var n=T&&T.core?T.core.pageLabel:"Page {{pageIndex}}",a={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:B,style:{height:"100%"}},children:s.createElement(s.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:v({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":re===t.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":D,"rpv-core__inner-pages--single":re===t.ScrollMode.Page,"rpv-core__inner-pages--vertical":re===t.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":re===t.ScrollMode.Wrapped}),ref:N,style:{height:"100%",position:"relative"}},children:s.createElement("div",{"data-testid":"core__inner-current-page-".concat(G),style:Object.assign({"--scale-factor":fe},Fe.getContainerStyles())},r.map((function(e){return s.createElement("div",{className:v({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":re===t.ScrollMode.Page}),style:Fe.getItemContainerStyles(e[0]),key:"".concat(e[0].index,"-").concat(oe)},e.map((function(e){var r=oe===t.ViewMode.DualPageWithCover&&(0===e.index||E%2==0&&e.index===E-1);return s.createElement("div",{"aria-label":n.replace("{{pageIndex}}","".concat(e.index+1)),className:v({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":oe===t.ViewMode.DualPage&&e.index%2==0,"rpv-core__inner-page--dual-odd":oe===t.ViewMode.DualPage&&e.index%2==1,"rpv-core__inner-page--dual-cover":r,"rpv-core__inner-page--dual-cover-even":oe===t.ViewMode.DualPageWithCover&&!r&&e.index%2==0,"rpv-core__inner-page--dual-cover-odd":oe===t.ViewMode.DualPageWithCover&&!r&&e.index%2==1,"rpv-core__inner-page--single":oe===t.ViewMode.SinglePage&&re===t.ScrollMode.Page}),role:"region",key:"".concat(e.index,"-").concat(oe),style:Object.assign({},Fe.getItemStyles(e),Re.buildPageStyles({numPages:E,pageIndex:e.index,scrollMode:re,viewMode:oe}))},s.createElement(at,{doc:i,measureRef:e.measureRef,outlines:ue,pageIndex:e.index,pageRotation:J.has(e.index)?J.get(e.index):0,pageSize:d[e.index],plugins:h,renderPage:m,renderQueueKey:Ee,rotation:H,scale:fe,shouldRender:ke===e.index,viewMode:oe,onExecuteNamedAction:st,onJumpFromLinkAnnotation:Ne,onJumpToDest:Ze,onRenderCompleted:it,onRotatePage:Ye}))})))})))}};return h.forEach((function(e){e.renderViewer&&(a=e.renderViewer({containerRef:B,doc:i,pagesContainerRef:N,pagesRotation:J,pageSizes:d,rotation:H,slot:a,themeContext:R,jumpToPage:We,openFile:He,rotate:Ve,rotatePage:Ye,switchScrollMode:Ke,switchViewMode:Xe,zoom:$e}))})),a}),[h,Fe]),ct=s.useCallback((function(e){return s.createElement("div",p({},e.attrs,{style:e.attrs&&e.attrs.style?e.attrs.style:{}}),e.children,e.subSlot&&ct(e.subSlot))}),[]);return ct(lt())},Rt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],Mt=function(e){var r=e.defaultScale,n=e.doc,i=e.render,a=e.scrollMode,o=e.viewMode,l=s.useRef(),c=s.useState({pageSizes:[],scale:0}),u=c[0],d=c[1];return s.useLayoutEffect((function(){var e=Array(n.numPages).fill(0).map((function(e,t){return new Promise((function(e,r){ve(n,t).then((function(t){var r=t.getViewport({scale:1});e({pageHeight:r.height,pageWidth:r.width,rotation:r.rotation})}))}))}));Promise.all(e).then((function(e){var i=l.current;if(i&&0!==e.length){var s=e[0].pageWidth,c=e[0].pageHeight,u=i.parentElement,p=(u.clientWidth-45)/s,h=(u.clientHeight-45)/c,f=p;switch(a){case t.ScrollMode.Horizontal:f=Math.min(p,h);break;case t.ScrollMode.Vertical:default:f=p}var v,g,m=r?"string"==typeof r?Ct(u,c,s,r,o,n.numPages):r:(v=f,-1===(g=Rt.findIndex((function(e){return e>=v})))||0===g?v:Rt[g-1]);d({pageSizes:e,scale:m})}}))}),[n.loadingTask.docId]),0===u.pageSizes.length||0===u.scale?s.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:l},s.createElement(A,null)):i(u.pageSizes,u.scale)},Ft=function(){},It=function(e){function t(t,r){var n=e.call(this)||this;return n.verifyPassword=t,n.passwordStatus=r,n}return u(t,e),t}(Ft),Dt=function(e){var r=e.passwordStatus,n=e.renderProtectedView,i=e.verifyPassword,a=e.onDocumentAskPassword,o=s.useContext(L).l10n,l=s.useState(""),c=l[0],u=l[1],d=s.useContext(f).direction===t.TextDirection.RightToLeft,p=function(){return i(c)};return s.useEffect((function(){a&&a({verifyPassword:i})}),[]),n?n({passwordStatus:r,verifyPassword:i}):s.createElement("div",{className:"rpv-core__asking-password-wrapper"},s.createElement("div",{className:v({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":d})},s.createElement("div",{className:"rpv-core__asking-password-message"},r===t.PasswordStatus.RequiredPassword&&o.core.askingPassword.requirePasswordToOpen,r===t.PasswordStatus.WrongPassword&&o.core.wrongPassword.tryAgain),s.createElement("div",{className:"rpv-core__asking-password-body"},s.createElement("div",{className:v({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!d,"rpv-core__asking-password-input--rtl":d})},s.createElement(C,{testId:"core__asking-password-input",type:"password",value:c,onChange:u,onKeyDown:function(e){"Enter"===e.key&&p()}})),s.createElement(_,{onClick:p},o.core.askingPassword.submit))))},Bt=function(e){function t(t){var r=e.call(this)||this;return r.doc=t,r}return u(t,e),t}(Ft),jt=function(e){function t(t){var r=e.call(this)||this;return r.error=t,r}return u(t,e),t}(Ft),Nt=function(e){function t(t){var r=e.call(this)||this;return r.percentages=t,r}return u(t,e),t}(Ft),Lt=function(e){var r=e.characterMap,n=e.file,i=e.httpHeaders,a=e.render,o=e.renderError,c=e.renderLoader,u=e.renderProtectedView,d=e.transformGetDocumentParams,p=e.withCredentials,h=e.onDocumentAskPassword,g=s.useContext(f).direction===t.TextDirection.RightToLeft,m=s.useState(new Nt(0)),b=m[0],y=m[1],_=s.useRef(""),C=F();return s.useEffect((function(){_.current="",y(new Nt(0));var e=new l.PDFWorker({name:"PDFWorker_".concat(Date.now())}),a=Object.assign({httpHeaders:i,withCredentials:p,worker:e},"string"==typeof n?{url:n}:{data:n},r?{cMapUrl:r.url,cMapPacked:r.isCompressed}:{}),o=d?d(a):a,s=l.getDocument(o);return s.onPassword=function(e,r){switch(r){case l.PasswordResponses.NEED_PASSWORD:C.current&&y(new It(e,t.PasswordStatus.RequiredPassword));break;case l.PasswordResponses.INCORRECT_PASSWORD:C.current&&y(new It(e,t.PasswordStatus.WrongPassword))}},s.onProgress=function(e){var t=e.total>0?Math.min(100,100*e.loaded/e.total):100;C.current&&""===_.current&&y(new Nt(t))},s.promise.then((function(e){_.current=e.loadingTask.docId,C.current&&y(new Bt(e))}),(function(t){return C.current&&!e.destroyed&&y(new jt({message:t.message||"Cannot load document",name:t.name}))})),function(){s.destroy(),e.destroy()}}),[n]),b instanceof It?s.createElement(Dt,{passwordStatus:b.passwordStatus,renderProtectedView:u,verifyPassword:b.verifyPassword,onDocumentAskPassword:h}):b instanceof Bt?a(b.doc):b instanceof jt?o?o(b.error):s.createElement("div",{className:v({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":g})},s.createElement("div",{className:"rpv-core__doc-error-text"},b.error.message)):s.createElement("div",{"data-testid":"core__doc-loading",className:v({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":g})},c?c(b.percentages):s.createElement(A,null))},Zt=function(e){return{startPage:e.startPage-3,endPage:e.endPage+3}};t.Button=function(e){var r=e.children,n=e.testId,i=e.onClick,a=s.useContext(f).direction===t.TextDirection.RightToLeft,o=n?{"data-testid":n}:{};return s.createElement("button",p({className:v({"rpv-core__button":!0,"rpv-core__button--rtl":a}),type:"button",onClick:i},o),r)},t.Icon=b,t.LazyRender=function(e){var t=e.attrs,r=e.children,n=e.testId,i=s.useState(!1),a=i[0],o=i[1],l=n?p(p({},t),{"data-testid":n}):t,c=m({once:!0,onVisibilityChanged:function(e){e.isVisible&&o(!0)}});return s.createElement("div",p({ref:c},l),a&&r)},t.LocalizationContext=L,t.Menu=function(e){var r=e.children,n=s.useRef(),i=s.useRef([]),a=s.useContext(f).direction===t.TextDirection.RightToLeft,o=function(e){if(n.current)switch(e.key){case"Tab":e.preventDefault();break;case"ArrowDown":e.preventDefault(),l((function(e,t){return t+1}));break;case"ArrowUp":e.preventDefault(),l((function(e,t){return t-1}));break;case"End":e.preventDefault(),l((function(e,t){return e.length-1}));break;case"Home":e.preventDefault(),l((function(e,t){return 0}))}},l=function(e){if(n.current){var t=i.current,r=t.findIndex((function(e){return"0"===e.getAttribute("tabindex")})),a=Math.min(t.length-1,Math.max(0,e(t,r)));r>=0&&r<=t.length-1&&t[r].setAttribute("tabindex","-1"),t[a].setAttribute("tabindex","0"),t[a].focus()}};return g((function(){var e=n.current;if(e){var t=function(e){var t=[];return e.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach((function(r){if(r instanceof HTMLElement){var n=r.parentElement;(n===e||"none"!==window.getComputedStyle(n).display)&&t.push(r)}})),t}(e);i.current=t}}),[]),g((function(){return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}}),[]),s.createElement("div",{ref:n,"aria-orientation":"vertical",className:v({"rpv-core__menu":!0,"rpv-core__menu--rtl":a}),role:"menu",tabIndex:0},r)},t.MenuDivider=function(){return s.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},t.MenuItem=function(e){var r=e.checked,n=void 0!==r&&r,i=e.children,a=e.icon,o=void 0===a?null:a,l=e.isDisabled,c=void 0!==l&&l,u=e.testId,d=e.onClick,h=s.useContext(f).direction===t.TextDirection.RightToLeft,g=u?{"data-testid":u}:{};return s.createElement("button",p({className:v({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":c,"rpv-core__menu-item--ltr":!h,"rpv-core__menu-item--rtl":h}),role:"menuitem",tabIndex:-1,type:"button",onClick:d},g),s.createElement("div",{className:v({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!h,"rpv-core__menu-item-icon--rtl":h})},o),s.createElement("div",{className:v({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!h,"rpv-core__menu-item-label--rtl":h})},i),s.createElement("div",{className:v({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!h,"rpv-core__menu-item-check--rtl":h})},n&&s.createElement(y,null)))},t.MinimalButton=function(e){var r=e.ariaLabel,n=void 0===r?"":r,i=e.ariaKeyShortcuts,a=void 0===i?"":i,o=e.children,l=e.isDisabled,c=void 0!==l&&l,u=e.isSelected,d=void 0!==u&&u,h=e.testId,g=e.onClick,m=s.useContext(f).direction===t.TextDirection.RightToLeft,b=h?{"data-testid":h}:{};return s.createElement("button",p({"aria-label":n},a&&{"aria-keyshortcuts":a},c&&{"aria-disabled":!0},{className:v({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":c,"rpv-core__minimal-button--rtl":m,"rpv-core__minimal-button--selected":d}),type:"button",onClick:g},b),o)},t.Modal=function(e){var t=e.ariaControlsSuffix,r=e.closeOnClickOutside,n=e.closeOnEscape,i=e.content,a=e.isOpened,o=void 0!==a&&a,l=e.target,c=t||"".concat(G());return s.createElement(Y,{target:l?function(e,t){return s.createElement("div",{"aria-expanded":t?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(c)},l(e,t))}:null,content:function(e){return s.createElement(q,null,s.createElement(W,{ariaControlsSuffix:c,closeOnClickOutside:r,closeOnEscape:n,onToggle:e},i(e)))},isOpened:o})},t.Popover=function(e){var t=e.ariaHasPopup,r=void 0===t?"dialog":t,n=e.ariaControlsSuffix,i=e.closeOnClickOutside,a=e.closeOnEscape,o=e.content,l=e.lockScroll,c=void 0===l||l,u=e.offset,d=e.position,p=e.target,h=V(!1),f=h.opened,v=h.toggle,g=s.useRef(),m=s.useMemo((function(){return n||"".concat(G())}),[]);return s.createElement("div",{ref:g,"aria-expanded":f?"true":"false","aria-haspopup":r,"aria-controls":"rpv-core__popver-body-".concat(m)},p(v,f),f&&s.createElement(s.Fragment,null,c&&s.createElement(oe,{closeOnEscape:a,onClose:v}),s.createElement(ae,{ariaControlsSuffix:m,closeOnClickOutside:i,offset:u,position:d,targetRef:g,onClose:v},o(v))))},t.PrimaryButton=_,t.ProgressBar=function(e){var r=e.progress,n=s.useContext(f).direction===t.TextDirection.RightToLeft;return s.createElement("div",{className:v({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":n})},s.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(r,"%")}},r,"%"))},t.Separator=function(){return s.createElement("div",{className:"rpv-core__separator"})},t.Spinner=A,t.Splitter=function(e){var r=e.constrain,n=s.useContext(f).direction===t.TextDirection.RightToLeft,i=s.useRef(),a=s.useRef(),o=s.useRef(),l=s.useRef(0),c=s.useRef(0),u=s.useRef(0),d=s.useRef(0),p={capture:!0},h=function(e){var t=i.current,s=a.current,c=o.current;if(t&&s&&c){var p=d.current,h=e.clientX-l.current,f=u.current+(n?-h:h),v=t.parentElement.getBoundingClientRect().width,g=100*f/v;if(t.classList.add("rpv-core__splitter--resizing"),r){var m=v-f-p;if(!r({firstHalfPercentage:g,firstHalfSize:f,secondHalfPercentage:100*m/v,secondHalfSize:m}))return}s.style.width="".concat(g,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),s.classList.add("rpv-core__splitter-sibling--resizing"),c.classList.add("rpv-core__splitter-sibling--resizing")}},v=function e(t){var r=i.current,n=a.current,s=o.current;r&&n&&s&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),r.classList.remove("rpv-core__splitter--resizing"),n.classList.remove("rpv-core__splitter-sibling--resizing"),s.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",h,p),document.removeEventListener("mouseup",e,p))};return s.useEffect((function(){var e=i.current;e&&(d.current=e.getBoundingClientRect().width,a.current=e.previousElementSibling,o.current=e.nextElementSibling)}),[]),s.createElement("div",{ref:i,className:"rpv-core__splitter",onMouseDown:function(e){var t=a.current;t&&(l.current=e.clientX,c.current=e.clientY,u.current=t.getBoundingClientRect().width,document.addEventListener("mousemove",h,p),document.addEventListener("mouseup",v,p))}})},t.TextBox=C,t.ThemeContext=f,t.Tooltip=function(e){var r=e.ariaControlsSuffix,n=e.content,i=e.offset,a=e.position,o=e.target,l=V(!1),c=l.opened,u=l.toggle,d=s.useRef(),p=s.useRef(),h=s.useMemo((function(){return r||"".concat(G())}),[]);U((function(){d.current&&document.activeElement&&d.current.contains(document.activeElement)&&v()}));var f=function(){u(t.ToggleStatus.Open)},v=function(){u(t.ToggleStatus.Close)};return s.createElement(s.Fragment,null,s.createElement("div",{ref:d,"aria-describedby":"rpv-core__tooltip-body-".concat(h),onBlur:function(e){e.relatedTarget instanceof HTMLElement&&e.currentTarget.parentElement&&e.currentTarget.parentElement.contains(e.relatedTarget)?p.current&&(p.current.style.display="none"):v()},onFocus:f,onMouseEnter:f,onMouseLeave:v},o),c&&s.createElement(se,{ariaControlsSuffix:h,contentRef:p,offset:i,position:a,targetRef:d},n()))},t.Viewer=function(e){var r=e.characterMap,n=e.defaultScale,i=e.enableSmoothScroll,a=void 0===i||i,o=e.fileUrl,l=e.httpHeaders,c=void 0===l?{}:l,u=e.initialPage,d=void 0===u?0:u,p=e.pageLayout,h=e.initialRotation,v=void 0===h?0:h,g=e.localization,b=e.plugins,y=void 0===b?[]:b,_=e.renderError,A=e.renderLoader,C=e.renderPage,w=e.renderProtectedView,S=e.scrollMode,k=void 0===S?t.ScrollMode.Vertical:S,x=e.setRenderRange,P=void 0===x?Zt:x,E=e.transformGetDocumentParams,O=e.theme,T=void 0===O?{direction:t.TextDirection.LeftToRight,theme:"light"}:O,R=e.viewMode,M=void 0===R?t.ViewMode.SinglePage:R,F=e.withCredentials,D=void 0!==F&&F,B=e.onDocumentAskPassword,j=e.onDocumentLoad,Z=void 0===j?function(){}:j,G=e.onPageChange,z=void 0===G?function(){}:G,U=e.onRotate,W=void 0===U?function(){}:U,q=e.onRotatePage,H=void 0===q?function(){}:q,V=e.onSwitchTheme,Y=void 0===V?function(){}:V,K=e.onZoom,X=void 0===K?function(){}:K,$=s.useState({data:o,name:"string"==typeof o?o:"",shouldLoad:!1}),Q=$[0],J=$[1],ee=function(e,t){J({data:t,name:e,shouldLoad:!0})},te=s.useState(!1),re=te[0],ne=te[1],ie=I(Q);s.useEffect((function(){var e,t,r,n;e=ie.data,n=typeof(t=o),"string"===(r=typeof e)&&"string"===n&&e===t||"object"===r&&"object"===n&&e.length===t.length&&e.every((function(e,r){return e===t[r]}))||J({data:o,name:"string"==typeof o?o:"",shouldLoad:re})}),[o,re]);var ae=m({onVisibilityChanged:function(e){ne(e.isVisible),e.isVisible&&J((function(e){return Object.assign({},e,{shouldLoad:!0})}))}}),oe="string"==typeof T?{direction:t.TextDirection.LeftToRight,theme:T}:T,se=s.useState(g||N),le=se[0],ce=se[1],ue={l10n:le,setL10n:ce},de=Object.assign({},{direction:oe.direction},function(e,t){var r=s.useMemo((function(){return"auto"===e?"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}),[]),n=s.useState(r),i=n[0],a=n[1],o=I(i);return s.useEffect((function(){if("auto"===e){var t=window.matchMedia("(prefers-color-scheme: dark)"),r=function(e){a(e.matches?"dark":"light")};return t.addEventListener("change",r),function(){return t.removeEventListener("change",r)}}}),[]),s.useEffect((function(){i!==o&&t&&t(i)}),[i]),s.useEffect((function(){e!==i&&a(e)}),[e]),{currentTheme:i,setCurrentTheme:a}}(oe.theme||"light",Y));return s.useEffect((function(){g&&ce(g)}),[g]),s.createElement(L.Provider,{value:ue},s.createElement(f.Provider,{value:de},s.createElement("div",{ref:ae,className:"rpv-core__viewer rpv-core__viewer--".concat(de.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},Q.shouldLoad&&s.createElement(Lt,{characterMap:r,file:Q.data,httpHeaders:c,render:function(e){return s.createElement(Mt,{defaultScale:n,doc:e,render:function(r,i){return s.createElement(Tt,{currentFile:{data:Q.data,name:Q.name},defaultScale:n,doc:e,enableSmoothScroll:a,initialPage:d,initialRotation:v,initialScale:i,pageLayout:p,pageSizes:r,plugins:y,renderPage:C,scrollMode:k,setRenderRange:P,viewMode:M,viewerState:{file:Q,fullScreenMode:t.FullScreenMode.Normal,pageIndex:-1,pageHeight:r[0].pageHeight,pageWidth:r[0].pageWidth,pagesRotation:new Map,rotation:v,scale:i,scrollMode:k,viewMode:M},onDocumentLoad:Z,onOpenFile:ee,onPageChange:z,onRotate:W,onRotatePage:H,onZoom:X})},scrollMode:k,viewMode:M})},renderError:_,renderLoader:A,renderProtectedView:w,transformGetDocumentParams:E,withCredentials:D,onDocumentAskPassword:B}))))},t.Worker=function(e){var t=e.children,r=e.workerUrl;return l.GlobalWorkerOptions.workerSrc=r,s.createElement(s.Fragment,null,t)},t.chunk=ce,t.classNames=v,t.createStore=function(e){var t=e||{},r={},n=function(e,n){var i;t=p(p({},t),((i={})[e]=n,i)),(r[e]||[]).forEach((function(r){return r(t[e])}))},i=function(e){return t[e]};return{subscribe:function(e,t){r[e]=(r[e]||[]).concat(t)},unsubscribe:function(e,t){r[e]=(r[e]||[]).filter((function(e){return e!==t}))},update:function(e,t){n(e,t)},updateCurrentValue:function(e,t){var r=i(e);void 0!==r&&n(e,t(r))},get:function(e){return i(e)}}},t.getDestination=ge,t.getPage=ve,t.isFullScreenEnabled=O,t.isMac=function(){return"undefined"!=typeof window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},t.useDebounceCallback=M,t.useIntersectionObserver=m,t.useIsMounted=F,t.useIsomorphicLayoutEffect=g,t.usePrevious=I,t.useRenderQueue=j},20422:function(e,t,r){"use strict";e.exports=r(85042)},83597:function(e,t,r){"use strict";var n=r(20422);var i=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}(r(21914)),a=function(){return i.createElement(n.Icon,{size:16},i.createElement("path",{d:"M5.5,11.5c-.275,0-.341.159-.146.354l6.292,6.293a.5.5,0,0,0,.709,0l6.311-6.275c.2-.193.13-.353-.145-.355L15.5,11.5V1.5a1,1,0,0,0-1-1h-5a1,1,0,0,0-1,1V11a.5.5,0,0,1-.5.5Z"}),i.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=200&&e.status<=299},R=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function M(e){if(!(0,a.PO)(e))return e;for(var t=y({},e),r=0,n=Object.entries(t);r=u)}var f=(0,a.hg)(r+"/executeQuery",p,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[a.s4]=!0,e},condition:function(e,t){var n,i,a,o=(0,t.getState)(),l=null==(i=null==(n=o[r])?void 0:n.queries)?void 0:i[e.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,u=e.originalArgs,d=null==l?void 0:l.originalArgs,p=s[e.endpointName];return!!H(e)||"pending"!==(null==l?void 0:l.status)&&(!!h(e,o)||!(!G(p)||!(null==(a=null==p?void 0:p.forceRefetch)?void 0:a.call(p,{currentArg:u,previousArg:d,endpointState:l,state:o})))||!c)},dispatchConditionRejection:!0}),v=(0,a.hg)(r+"/executeMutation",p,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[a.s4]=!0,e}});function g(e){return function(t){var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:f,mutationThunk:v,prefetch:function(e,t,r){return function(n,i){var a=function(e){return"force"in e}(r)&&r.force,o=function(e){return"ifOlderThan"in e}(r)&&r.ifOlderThan,s=function(r){return void 0===r&&(r=!0),c.endpoints[e].initiate(t,{forceRefetch:r})},l=c.endpoints[e].select(t)(i());if(a)n(s());else if(o){var u=null==l?void 0:l.fulfilledTimeStamp;if(!u)return void n(s());(Number(new Date)-Number(new Date(u)))/1e3>=o&&n(s())}else n(s(!1))}},updateQueryData:function(e,t,r,i){return void 0===i&&(i=!0),function(a,s){var l,u,d,p=c.endpoints[e].select(t)(s()),h={patches:[],inversePatches:[],undo:function(){return a(c.util.patchQueryData(e,t,h.inversePatches,i))}};if(p.status===n.uninitialized)return h;if("data"in p)if((0,o.o$)(p.data)){var f=(0,o.aS)(p.data,r),v=f[0],g=f[1],m=f[2];(l=h.patches).push.apply(l,g),(u=h.inversePatches).push.apply(u,m),d=v}else d=r(p.data),h.patches.push({op:"replace",path:[],value:d}),h.inversePatches.push({op:"replace",path:[],value:p.data});return a(c.util.patchQueryData(e,t,h.patches,i)),h}},upsertQueryData:function(e,t,r){return function(n){var i;return n(c.endpoints[e].initiate(t,((i={subscribe:!1,forceRefetch:!0})[q]=function(){return{data:r}},i)))}},patchQueryData:function(e,t,r,n){return function(i,a){var o=s[e],u=l({queryArgs:t,endpointDefinition:o,endpointName:e});if(i(c.internalActions.queryResultPatched({queryCacheKey:u,patches:r})),n){var p=c.endpoints[e].select(t)(a()),h=z(o.providesTags,p.data,void 0,t,{},d);i(c.internalActions.updateProvidedBy({queryCacheKey:u,providedTags:h}))}}},buildMatchThunkActions:function(e,t){return{matchPending:(0,a.A6)((0,a.zR)(e),g(t)),matchFulfilled:(0,a.A6)((0,a.KD)(e),g(t)),matchRejected:(0,a.A6)((0,a.Iv)(e),g(t))}}}}({baseQuery:i,reducerPath:s,context:r,api:e,serializeQueryArgs:l,assertTagType:v}),m=g.queryThunk,b=g.mutationThunk,y=g.patchQueryData,_=g.updateQueryData,A=g.upsertQueryData,w=g.prefetch,S=g.buildMatchThunkActions,k=J({context:r,queryThunk:m,mutationThunk:b,reducerPath:s,assertTagType:v,config:{refetchOnFocus:h,refetchOnReconnect:f,refetchOnMountOrArgChange:p,keepUnusedDataFor:c,reducerPath:s}}),x=k.reducer,P=k.actions;ye(e.util,{patchQueryData:y,updateQueryData:_,upsertQueryData:A,prefetch:w,resetApiState:P.resetApiState}),ye(e.internalActions,P);var E=be({reducerPath:s,context:r,queryThunk:m,mutationThunk:b,api:e,assertTagType:v}),O=E.middleware,T=E.actions;ye(e.util,T),ye(e,{reducer:x,middleware:O});var R=ie({serializeQueryArgs:l,reducerPath:s}),M=R.buildQuerySelector,F=R.buildMutationSelector,B=R.selectInvalidatedBy;ye(e.util,{selectInvalidatedBy:B});var U=function(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,c=l.unsubscribeQueryResult,p=l.removeMutationResult,h=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,n){return function a(s,l){var d=void 0===l?{}:l,p=d.subscribe,v=void 0===p||p,g=d.forceRefetch,m=d.subscriptionOptions,b=d[q];return function(l,d){var p,y,_=t({queryArgs:s,endpointDefinition:n,endpointName:e}),A=r(((p={type:"query",subscribe:v,forceRefetch:g,subscriptionOptions:m,endpointName:e,originalArgs:s,queryCacheKey:_})[q]=b,p)),w=i.endpoints[e].select(s),S=l(A),k=w(d());f(l);var x=S.requestId,P=S.abort,E=k.requestId!==x,O=null==(y=o.get(l))?void 0:y[_],T=function(){return w(d())},R=Object.assign(b?S.then(T):E&&!O?Promise.resolve(k):Promise.all([O,S]).then(T),{arg:s,requestId:x,subscriptionOptions:m,queryCacheKey:_,abort:P,unwrap:function(){return C(this,null,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,R];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return l(a(s,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){v&&l(c({queryCacheKey:_,requestId:x}))},updateSubscriptionOptions:function(t){R.subscriptionOptions=t,l(h({endpointName:e,requestId:x,queryCacheKey:_,options:t}))}});if(!O&&!E&&!b){var M=o.get(l)||{};M[_]=R,o.set(l,M),R.then((function(){delete M[_],Object.keys(M).length||o.delete(l)}))}return R}}},buildInitiateMutation:function(e){return function(t,r){var i=void 0===r?{}:r,a=i.track,o=void 0===a||a,l=i.fixedCacheKey;return function(r,i){var a=n({type:"mutation",endpointName:e,originalArgs:t,track:o,fixedCacheKey:l}),c=r(a);f(r);var u=c.requestId,d=c.abort,h=c.unwrap,v=c.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),g=function(){r(p({requestId:u,fixedCacheKey:l}))},m=Object.assign(v,{arg:c.arg,requestId:u,abort:d,unwrap:h,unsubscribe:g,reset:g}),b=s.get(r)||{};return s.set(r,b),b[u]=m,m.then((function(){delete b[u],Object.keys(b).length||s.delete(r)})),l&&(b[l]=m,m.then((function(){b[l]===m&&(delete b[l],Object.keys(b).length||s.delete(r))}))),m}}},getRunningQueryThunk:function(e,r){return function(n){var i,s=a.endpointDefinitions[e],l=t({queryArgs:r,endpointDefinition:s,endpointName:e});return null==(i=o.get(n))?void 0:i[l]}},getRunningMutationThunk:function(e,t){return function(e){var r;return null==(r=s.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(o.get(e)||{}).filter(W)}},getRunningMutationsThunk:function(){return function(e){return Object.values(s.get(e)||{}).filter(W)}},getRunningOperationPromises:function(){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return d(d([],e(o)),e(s)).filter(W)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}};function f(e){}}({queryThunk:m,mutationThunk:b,api:e,serializeQueryArgs:l,context:r}),Y=U.buildInitiateQuery,K=U.buildInitiateMutation,X=U.getRunningMutationThunk,$=U.getRunningMutationsThunk,Q=U.getRunningQueriesThunk,ee=U.getRunningQueryThunk,te=U.getRunningOperationPromises,re=U.removalWarning;return ye(e.util,{getRunningOperationPromises:te,getRunningOperationPromise:re,getRunningMutationThunk:X,getRunningMutationsThunk:$,getRunningQueryThunk:ee,getRunningQueriesThunk:Q}),{name:_e,injectEndpoint:function(t,r){var n,i=e;null!=(n=i.endpoints)[t]||(n[t]={}),G(r)?ye(i.endpoints[t],{name:t,select:M(t,r),initiate:Y(t,r)},S(m,t)):function(e){return e.type===D.mutation}(r)&&ye(i.endpoints[t],{name:t,select:F(),initiate:K(t)},S(b,t))}}}}};Ae()},37260:function(e,t,r){"use strict";r.d(t,{s4:function(){return Q},xC:function(){return T},PH:function(){return S},hg:function(){return N},oM:function(){return M},A6:function(){return z},Q:function(){return G},Gx:function(){return K},KD:function(){return Y},zR:function(){return q},PO:function(){return C},Iv:function(){return H},h_:function(){return V},x0:function(){return F},cw:function(){return J}});var n=r(59463),i=r(10348);function a(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"===typeof i?i(r,n,e):t(i)}}}}var o=a();o.withExtraArgument=a;var s=o,l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]-1;return r&&n}function W(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function q(){for(var e=[],t=0;t!!(0,a.$y)(e))).map((e=>{try{return r[e]()}catch(t){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}}()}e=r.hmd(e)},97626:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});var n="production"},57923:function(e,t,r){"use strict";r.d(t,{RP:function(){return d},cc:function(){return u},fH:function(){return c}});var n=r(16042),i=r(70468),a=r(63791),o=r(57732),s=r(21938);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(){return(0,i.YO)("globalEventProcessors",(()=>[]))}function u(e){c().push(e)}function d(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new a.cW(((a,c)=>{var u=e[i];if(null===t||"function"!==typeof u)a(t);else{var p=u(function(e){for(var t=1;td(e,t,r,i+1).then(a))).then(null,c):d(e,p,r,i+1).then(a).then(null,c)}}))}},66443:function(e,t,r){"use strict";r.d(t,{Gd:function(){return b},cu:function(){return g}});var n=r(16042),i=r(52859),a=r(90275),o=r(57732),s=r(70468),l=r(97626),c=r(11412),u=r(48606);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:new c.s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;this._version=r,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,p(p({originalException:e,syntheticException:n},t),{},{event_id:r}),a)})),r}captureMessage(e,t,r){var n=this._lastEventId=r&&r.event_id?r.event_id:(0,i.DM)(),a=new Error(e);return this._withClient(((i,o)=>{i.captureMessage(e,t,p(p({originalException:e,syntheticException:a},r),{},{event_id:n}),o)})),n}captureEvent(e,t){var r=t&&t.event_id?t.event_id:(0,i.DM)();return e.type||(this._lastEventId=r),this._withClient(((n,i)=>{n.captureEvent(e,p(p({},t),{},{event_id:r}),i)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){var{scope:r,client:n}=this.getStackTop();if(n){var{beforeBreadcrumb:i=null,maxBreadcrumbs:s=f}=n.getOptions&&n.getOptions()||{};if(!(s<=0)){var l=p({timestamp:(0,a.yW)()},e),c=i?(0,o.Cf)((()=>i(l,t))):l;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}}}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){var{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){var t=m(this);try{e(this)}finally{m(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,t){var r=this._callExtensionMethod("startTransaction",e,t);"undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||r||(this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"));return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop().scope,t=e.getSession();t&&(0,u.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){var{scope:t,client:r}=this.getStackTop(),{release:n,environment:i=l.J}=r&&r.getOptions()||{},{userAgent:a}=s.n2.navigator||{},o=(0,u.Hv)(p(p({release:n,environment:i,user:t.getUser()},a&&{userAgent:a}),e)),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,u.CT)(c,{status:"exited"}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){var{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_withClient(e){var{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e){var t=g().__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:g();return _(e)&&!A(e).isOlderThan(h)||C(e,new v),A(e)}function _(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function A(e){return(0,s.YO)("hub",(()=>new v),e)}function C(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},11412:function(e,t,r){"use strict";r.d(t,{s:function(){return d}});var n=r(16042),i=r(21938),a=r(90275),o=r(52859),s=r(57923),l=r(48606);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;tr?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(this._extra&&Object.keys(this._extra).length&&(e.extra=u(u({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=u(u({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=u(u({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=u(u({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=u({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction;if(n){e.sdkProcessingMetadata=u({dynamicSamplingContext:n.getDynamicSamplingContext()},e.sdkProcessingMetadata);var i=n.name;i&&(e.tags=u({transaction:i},e.tags))}}this._applyFingerprint(e);var a=this._getBreadcrumbs(),o=[...e.breadcrumbs||[],...a];return e.breadcrumbs=o.length>0?o:void 0,e.sdkProcessingMetadata=u(u(u({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{},{propagationContext:this._propagationContext}),(0,s.RP)([...r||[],...(0,s.fH)(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=u(u({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,o.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function p(){return{traceId:(0,o.DM)(),spanId:(0,o.DM)().substring(16)}}},48606:function(e,t,r){"use strict";r.d(t,{CT:function(){return s},Hv:function(){return o},RJ:function(){return l}});var n=r(90275),i=r(52859),a=r(42913);function o(e){var t=(0,n.ph)(),r={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,a.Jr)({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{var r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){var r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},25951:function(e,t,r){"use strict";r.d(t,{_:function(){return a}});var n=r(42913),i=r(97626);function a(e,t,r){var a=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},l=(0,n.Jr)({environment:a.environment||i.J,release:a.release,user_segment:s,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",l),l}},68584:function(e,t,r){"use strict";r.d(t,{T:function(){return _},l:function(){return y}});var n=r(16042),i=r(57732),a=r(21938),o=r(66443),s=r(50538),l=r(20134),c=r(58775),u=!1;function d(){var e=(0,c.x1)();if(e){var t="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}d.tag="sentry_tracingErrorCallback";var p=r(32480),h=r(24396);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1;return!0}(n)?n?(e.sampled=Math.random(){e.endTimestamp="number"===typeof t?t:(0,n.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class u extends o.Y{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.idleTimeout,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.finalTimeout,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.heartbeatInterval,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];super(e,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=n,this._heartbeatInterval=a,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=l[4],o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Setting idle transaction on scope. Span ID: ".concat(this.spanId)),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=l[3],this.finish())}),this._finalTimeout)}finish(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.ph)();if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(var t of(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var r=t.startTimestamp{this._finished||this._pushActivity(e)}),(e=>{this._finished||this._popActivity(e)}),this.spanId,e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e){var{restartOnChildSpanChange:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0};this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=l[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=l[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,n.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=l[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=l[0],this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},96752:function(e,t,r){"use strict";r.d(t,{Dr:function(){return p},Zd:function(){return h},gB:function(){return d}});var n=r(16042),i=r(52859),a=r(90275),o=r(57732),s=r(6777),l=r(42913);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1e3;this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class p{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.traceId=e.traceId||(0,i.DM)(),this.spanId=e.spanId||(0,i.DM)().substring(16),this.startTimestamp=e.startTimestamp||(0,a.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",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.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){var t=new p(u(u({},e),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){var r=e&&e.op||"< unknown op >",n=t.transaction.name||"< unknown name >",i=t.transaction.spanId,a="[Tracing] Starting '".concat(r,"' span on transaction '").concat(n,"' (").concat(i,").");t.transaction.metadata.spanMetadata[t.spanId]={logMessage:a},o.kg.log(a)}return t}setTag(e,t){return this.tags=u(u({},this.tags),{},{[e]:t}),this}setData(e,t){return this.data=u(u({},this.data),{},{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);var t=h(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&o.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof e?e:(0,a.ph)()}toTraceparent(){return(0,s.$p)(this.traceId,this.spanId,this.sampled)}toContext(){return(0,l.Jr)({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})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,l.Jr)({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})}toJSON(){return(0,l.Jr)({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,origin:this.origin})}}function h(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"}},24396:function(e,t,r){"use strict";r.d(t,{Y:function(){return d}});var n=r(16042),i=r(42913),a=r(57732),o=r(66443),s=r(25951),l=r(96752);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=e,this.metadata.source=t}initSpanRecorder(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new l.gB(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:r}}setMetadata(e){this.metadata=u(u({},this.metadata),e)}finish(e){var t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){var e=super.toContext();return(0,i.Jr)(u(u({},e),{},{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var e=this._hub||(0,o.Gd)(),t=e.getClient();if(!t)return{};var r=e.getScope(),n=(0,s._)(this.traceId,t,r),i=this.metadata.sampleRate;void 0!==i&&(n.sample_rate="".concat(i));var a=this.metadata.source;return a&&"url"!==a&&(n.transaction=this.name),void 0!==this.sampled&&(n.sampled=String(this.sampled)),n}setHub(e){this._hub=e}_finishTransaction(e){if(void 0===this.endTimestamp){this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);var t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));var r=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);var n=this.metadata,i=u({contexts:u(u({},this._contexts),{},{trace:this.getTraceContext()}),spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:u(u({},n),{},{dynamicSamplingContext:this.getDynamicSamplingContext()})},n.source&&{transaction_info:{source:n.source}});return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),i}}}},58775:function(e,t,r){"use strict";r.d(t,{x1:function(){return i}});var n=r(66443);function i(e){return(e||(0,n.Gd)()).getScope().getTransaction()}},50538:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(66443);function i(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var t=(0,n.Gd)().getClient(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}},34770:function(e,t,r){"use strict";r.d(t,{S:function(){return Kt}});var n="7.73.0",i=r(16042),a=r(57732),o=r(52859),s=r(82867),l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],c=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class u{static __initStatic(){this.id="InboundFilters"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=u.id,this._options=e}setupOnce(e,t){}processEvent(e,t,r){var n=r.getOptions(),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:c],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,n);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,o.jH)(e))),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){var t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(n){}t&&t.value&&(r.push(t.value),t.type&&r.push("".concat(t.type,": ").concat(t.value)));"undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==r.length||a.kg.error("Could not extract message for event ".concat((0,o.jH)(e)));return r}(e).some((e=>(0,s.U0)(e,t)))}(e,t.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,o.jH)(e))),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;var r=e.transaction;return!!r&&(0,s.U0)(r,t)}(e,t.ignoreTransactions))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,o.jH)(e))),!0;if(function(e,t){if(!t||!t.length)return!1;var r=d(e);return!!r&&(0,s.U0)(r,t)}(e,t.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,o.jH)(e),".\nUrl: ").concat(d(e))),!0;if(!function(e,t){if(!t||!t.length)return!0;var r=d(e);return!r||(0,s.U0)(r,t)}(e,t.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,o.jH)(e),".\nUrl: ").concat(d(e))),!0;return!1}(e,i)?null:e}}function d(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(r){}return t?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Cannot extract url for event ".concat((0,o.jH)(e))),null}}u.__initStatic();var p,h=r(42913);class f{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=f.id}setupOnce(){p=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=(0,h.HK)(this)||this,t=arguments.length,r=new Array(t),n=0;n{e.isDefaultInstance=!0}));var n=function(e){var t={};return e.forEach((e=>{var{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.keys(t).map((e=>t[e]))}(Array.isArray(r)?[...t,...r]:"function"===typeof r?(0,o.lE)(r(t)):t),i=function(e,t){for(var r=0;r"Debug"===e.name));if(-1!==i){var[a]=n.splice(i,1);n.push(a)}return n}function y(e,t,r){if(r[t.name]=t,-1===m.indexOf(t.name)&&(t.setupOnce(v.cc,g.Gd),m.push(t.name)),e.on&&"function"===typeof t.preprocessEvent){var n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"===typeof t.processEvent){var i=t.processEvent.bind(t),o=Object.assign(((t,r)=>i(t,r,e)),{id:t.name});e.addEventProcessor(o)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("Integration installed: ".concat(t.name))}var _=r(63373),A=r(58940),C=r(20134),w=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&i?":".concat(i):"")+"@".concat(r).concat(a?":".concat(a):"","/").concat(n?"".concat(n,"/"):n).concat(o)}function k(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function x(e){var t="string"===typeof e?function(e){var t=w.exec(e);if(t){var[r,n,i="",a,o="",s]=t.slice(1),l="",c=s,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){var d=c.match(/^\d+/);d&&(c=d[0])}return k({host:a,pass:i,path:l,projectId:c,port:o,protocol:r,publicKey:n})}console.error("Invalid Sentry Dsn: ".concat(e))}(e):k(e);if(t&&function(e){if("undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;var{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(a.kg.error("Invalid Sentry Dsn: ".concat(t," missing")),!0)))&&(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?!t||!isNaN(parseInt(t,10))||(a.kg.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):(a.kg.error("Invalid Sentry Dsn: Invalid protocol ".concat(n)),!1):(a.kg.error("Invalid Sentry Dsn: Invalid projectId ".concat(r)),!1))}(t))return t}var P=r(21938),E=r(63791);function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return R("",e,t,r)}catch(n){return{ERROR:"**non-serializable** (".concat(n,")")}}}function T(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=O(e,r);return t=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(t))>n?T(e,r-1,n):i}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(var n=0;n=i){d[v]="[MaxProperties ~]";break}var g=f[v];d[v]=R(v,g,c-1,i,a),p++}return s(t),d}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[]]}function D(e,t){var[r,n]=e;return[r,[...n,t]]}function B(e,t){var r=e[1];for(var n of r){if(t(n,n[0].type))return!0}return!1}function j(e,t){return(t||new TextEncoder).encode(e)}function N(e,t){var[r,n]=e,i=JSON.stringify(r);function a(e){"string"===typeof i?i="string"===typeof e?i+e:[j(i,t),e]:i.push("string"===typeof e?j(e,t):e)}for(var o of n){var[s,l]=o;if(a("\n".concat(JSON.stringify(s),"\n")),"string"===typeof l||l instanceof Uint8Array)a(l);else{var c=void 0;try{c=JSON.stringify(l)}catch(u){c=JSON.stringify(O(l))}a(c)}}return"string"===typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t),n=0;for(var i of e)r.set(i,n),n+=i.length;return r}(i)}function L(e,t){var r="string"===typeof e.data?j(e.data,t):e.data;return[(0,h.Jr)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}var Z={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function G(e){return Z[e]}function z(e){if(e&&e.sdk){var{name:t,version:r}=e.sdk;return{name:t,version:r}}}class U extends Error{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var q="7";function H(e){var t=e.protocol?"".concat(e.protocol,":"):"",r=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(r).concat(e.path?"/".concat(e.path):"","/api/")}function V(e,t){return(0,h._j)(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r="string"===typeof t?t:t.tunnel,n="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return r||"".concat(function(e){return"".concat(H(e)).concat(e.projectId,"/envelope/")}(e),"?").concat(V(e,n))}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;te.name));!function(e,t){var{environment:r,release:n,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:re.J);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,s.$G)(e.message,a));var o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,s.$G)(o.value,a));var l=e.request;l&&l.url&&(l.url=(0,s.$G)(l.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),void 0===t.type&&function(e,t){var r,n=te.n2._sentryDebugIds;if(!n)return;var i=se.get(t);i?r=i:(r=new Map,se.set(t,r));var a=Object.keys(n).reduce(((e,i)=>{var a,o=r.get(i);o?a=o:(a=t(i),r.set(i,a));for(var s=a.length-1;s>=0;s--){var l=a[s];if(l.filename){e[l.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(o){}}(c,e.stackParser);var d=n;r.captureContext&&(d=ne.s.clone(d).update(r.captureContext));var p=(0,E.WD)(c),h=i&&i.getEventProcessors?i.getEventProcessors():[];if(d){if(d.getAttachments){var f=[...r.attachments||[],...d.getAttachments()];f.length&&(r.attachments=f)}p=d.applyToEvent(c,r,h)}else p=(0,v.RP)([...h,...(0,v.fH)()],c,r);return p.then((e=>(e&&function(e){var t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(n){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var r=e.debug_meta.images;Object.keys(t).forEach((e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"===typeof a&&a>0?function(e,t,r){if(!e)return null;var n=ae(ae(ae(ae(ae({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>ae(ae({},e),e.data&&{data:O(e.data,t,r)})))}),e.user&&{user:O(e.user,t,r)}),e.contexts&&{contexts:O(e.contexts,t,r)}),e.extra&&{extra:O(e.extra,t,r)});e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=O(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>(e.data&&(e.data=O(e.data,t,r)),e))));return n}(e,a,l):e)))}var se=new WeakMap;function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;tthis._captureEvent(e,t,r))).then((e=>{n=e}))),n}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(ue)}captureMessage(e,t,r,n){var i=r&&r.event_id,a=(0,P.pt)(e)?this.eventFromMessage(String(e),t,r):this.eventFromException(e,r);return this._process(a.then((e=>this._captureEvent(e,r,n))).then((e=>{i=e}))),i}captureEvent(e,t,r){if(!(t&&t.originalException&&(0,o.YO)(t.originalException))){var n=t&&t.event_id;return this._process(this._captureEvent(e,t,r).then((e=>{n=e}))),n}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(ue)}captureSession(e){"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Q.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e)))):(0,E.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(e,t){var r={};return t.forEach((t=>{t&&y(e,t,r)})),r}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){y(this,e,this._integrations)}sendEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);var r=$(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=D(r,L(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));var i=this._sendEnvelope(r);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){var t=function(e,t,r,n){var i=z(r);return I(X(X({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!n&&t&&{dsn:S(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){var n="".concat(e,":").concat(t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log('Adding outcome: "'.concat(n,'"')),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne(...r)))}_updateSessionFromEvent(e,t){var r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(var a of(n=!0,i)){var o=a.mechanism;if(o&&!1===o.handled){r=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,Q.CT)(e,ce(ce({},r&&{status:"crashed"}),{},{errors:e.errors||Number(n||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new E.cW((t=>{var r=0,n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r){var n=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),oe(n,e,t,r,this).then((e=>{if(null===e)return e;var{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){var{traceId:n,spanId:i,parentSpanId:a,dsc:o}=t;e.contexts=ce({trace:{trace_id:n,span_id:i,parent_span_id:a}},e.contexts);var s=o||(0,J._)(n,this,r);e.sdkProcessingMetadata=ce({dynamicSamplingContext:s},e.sdkProcessingMetadata)}return e}))}_captureEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?a.kg.log(t.message):a.kg.warn(t)}}))}_processEvent(e,t,r){var n=this.getOptions(),{sampleRate:i}=n,a=he(e),o=pe(e),s=e.type||"error",l="before send for type `".concat(s,"`");if(o&&"number"===typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,E.$2)(new U("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));var c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,r).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",c,e),new U("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;var i=function(e,t,r){var{beforeSend:n,beforeSendTransaction:i}=e;if(pe(t)&&n)return n(t,r);if(he(t)&&i)return i(t,r);return t}(n,r,t);return function(e,t){var r="".concat(t," must return `null` or a valid event.");if((0,P.J8)(e))return e.then((e=>{if(!(0,P.PO)(e)&&null!==e)throw new U(r);return e}),(e=>{throw new U("".concat(t," rejected with ").concat(e))}));if(!(0,P.PO)(e)&&null!==e)throw new U(r);return e}(i,l)})).then((n=>{if(null===n)throw this.recordDroppedEvent("before_send",c,e),new U("".concat(l," returned `null`, will not send event."),"log");var i=r&&r.getSession();!a&&i&&this._updateSessionFromEvent(i,n);var o=n.transaction_info;if(a&&o&&n.transaction!==e.transaction){n.transaction_info=ce(ce({},o),{},{source:"custom"})}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof U)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new U("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Error while sending event:",e)}));("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{var[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}}))}}function pe(e){return void 0===e.type}function he(e){return"transaction"===e.type}var fe=r(93253);function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t0}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{var n=e.__sentry_wrapped__;if(n)return n;if((0,h.HK)(e))return e}catch(s){return e}var i=function(){var n,i=Array.prototype.slice.call(arguments);try{r&&"function"===typeof r&&r.apply(this,arguments);var a=i.map((e=>Te(e,t)));return e.apply(this,a)}catch(s){throw Ee++,setTimeout((()=>{Ee--})),n=e=>{var r,n;e.addEventProcessor((e=>(t.mechanism&&((0,o.Db)(e,void 0,void 0),(0,o.EG)(e,t.mechanism)),e.extra=xe(xe({},e.extra),{},{arguments:i}),e))),r=s,(0,g.Gd)().captureException(r,{captureContext:n})},(0,g.Gd)().withScope(n),s}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=e[a])}catch(l){}(0,h.$Q)(i,e),(0,h.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch(l){}return i}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t{"hidden"===Pe.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,r,n){var i=Ce(e,t,r&&r.syntheticException||void 0,n);return(0,o.EG)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,E.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",r=arguments.length>2?arguments[2]:void 0;return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=we(e,t,n&&n.syntheticException||void 0,i);return a.level=r,n&&n.event_id&&(a.event_id=n.event_id),(0,E.WD)(a)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(this._isEnabled()){var t=function(e,t){var{metadata:r,tunnel:n,dsn:i}=t,a=Me(Me({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&r.sdk&&{sdk:{name:r.sdk.name,version:r.sdk.version}}),!!n&&!!i&&{dsn:S(i)}),o=function(e){return[{type:"user_report"},e]}(e);return I(a,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("SDK not enabled, will not capture user feedback.")}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("Sending outcomes:",e);var t,r,n,i=(t=e,I((r=this._options.tunnel&&S(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:n||(0,ee.yW)(),discarded_events:t}]]));this._sendEnvelope(i)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("No outcomes to send")}}var Ie=r(20757);function De(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}class Be{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Be.id,this._options=function(e){for(var t=1;t{var[t,r,n]=Ge();if(t.getIntegration(Be)){var{msg:i,url:a,line:o,column:s,error:l}=e;if(!(Oe()||l&&l.__sentry_own_request__)){var c=void 0===l&&(0,P.HD)(i)?function(e,t,r,n){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=(0,P.VW)(e)?e.message:e,o="Error",s=a.match(i);s&&(o=s[1],a=s[2]);var l={exception:{values:[{type:o,value:a}]}};return Le(l,t,r,n)}(i,a,o,s):Le(Ce(r,l||i,void 0,n,!1),a,o,s);c.level="error",Ze(t,l,c,"onerror")}}}))}function Ne(){(0,C.oq)("unhandledrejection",(e=>{var[t,r,n]=Ge();if(t.getIntegration(Be)){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(o){}if(Oe()||i&&i.__sentry_own_request__)return!0;var a=(0,P.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:Ce(r,i,void 0,n,!0);a.level="error",Ze(t,i,a,"onunhandledrejection")}}))}function Le(e,t,r,n){var i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(n,10))?void 0:n,u=isNaN(parseInt(r,10))?void 0:r,d=(0,P.HD)(t)&&t.length>0?t:(0,Ie.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Ze(e,t,r,n){(0,o.EG)(r,{handled:!1,type:n}),e.captureEvent(r,{originalException:t})}function Ge(){var e=(0,g.Gd)(),t=e.getClient(),r=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,r.stackParser,r.attachStacktrace]}function ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Be.__initStatic();var Ue=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class We{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=We.id,this._options=function(e){for(var t=1;t{e in t&&"function"===typeof t[e]&&(0,h.hl)(t,e,(function(t){var r={mechanism:{data:{function:e,handler:(0,_.$P)(t)},handled:!1,type:"instrument"}},n=(0,h.HK)(t);return n&&(r.mechanism.data.handler=(0,_.$P)(n)),Te(t,r)}))}));for(var r=arguments.length,n=new Array(r),i=0;iet&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("`dom.maxStringLength` cannot exceed ".concat(et,", but a value of ").concat(i," was configured. Sentry will use ").concat(et," instead.")),i=et),"string"===typeof n&&(n=[n]);try{var o=t.event;r=function(e){return!!e&&!!e.target}(o)?(0,Ie.Rt)(o.target,{keyAttrs:n,maxStringLength:i}):(0,Ie.Rt)(o,{keyAttrs:n,maxStringLength:i})}catch(s){r=""}0!==r.length&&(0,g.Gd)().addBreadcrumb({category:"ui.".concat(t.name),message:r},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,C.oq)("xhr",it),this.options.fetch&&(0,C.oq)("fetch",at),this.options.history&&(0,C.oq)("history",ot),this.options.sentry){var e=(0,g.Gd)().getClient();e&&e.on&&e.on("beforeSendEvent",rt)}}}function rt(e){(0,g.Gd)().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,o.jH)(e)},{event:e})}function nt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Xe(e.level),message:(0,s.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: ".concat((0,s.nK)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,g.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function it(e){var{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[C.xU];if(t&&r&&n){var{method:i,url:a,status_code:o,body:s}=n,l={method:i,url:a,status_code:o},c={xhr:e.xhr,input:s,startTimestamp:t,endTimestamp:r};(0,g.Gd)().addBreadcrumb({category:"xhr",data:l,type:"http"},c)}}function at(e){var{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){var n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r};(0,g.Gd)().addBreadcrumb({category:"fetch",data:n,level:"error",type:"http"},i)}else{var a=Je(Je({},e.fetchData),{},{status_code:e.response&&e.response.status}),o={input:e.args,response:e.response,startTimestamp:t,endTimestamp:r};(0,g.Gd)().addBreadcrumb({category:"fetch",data:a,type:"http"},o)}}function ot(e){var t=e.from,r=e.to,n=(0,$e.en)(Pe.location.href),i=(0,$e.en)(t),a=(0,$e.en)(r);i.path||(i=n),n.protocol===a.protocol&&n.host===a.host&&(r=a.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),(0,g.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:r}})}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:250,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(a.exception&&a.exception.values&&o&&(0,P.V9)(o.originalException,Error)){var l,c,u=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;u&&(a.exception.values=(l=ut(e,t,i,o.originalException,n,a.exception.values,u,0),c=r,l.map((e=>(e.value&&(e.value=(0,s.$G)(e.value,c)),e)))))}}function ut(e,t,r,n,i,a,o,s){if(a.length>=r+1)return a;var l=[...a];if((0,P.V9)(n[i],Error)){dt(o,s);var c=e(t,n[i]),u=l.length;pt(c,i,u,s),l=ut(e,t,r,n[i],i,[c,...l],c,u)}return Array.isArray(n.errors)&&n.errors.forEach(((n,a)=>{if((0,P.V9)(n,Error)){dt(o,s);var c=e(t,n),u=l.length;pt(c,"errors[".concat(a,"]"),u,s),l=ut(e,t,r,n,i,[c,...l],c,u)}})),l}function dt(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=lt(lt({},e.mechanism),{},{is_exception_group:!0,exception_id:t})}function pt(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=lt(lt({},e.mechanism),{},{type:"chained",source:t,exception_id:r,parent_id:n})}tt.__initStatic();class ht{static __initStatic(){this.id="LinkedErrors"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=ht.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,r){var n=r.getOptions();ct(me,n.stackParser,n.maxValueLength,this._key,this._limit,e,t)}}function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vt(e){for(var t=1;t|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kt=/\((\S*)(?::(\d+))(?::(\d+))\)/,xt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Pt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Et=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ot=[[30,e=>{var t=St.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var r=kt.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var[n,i]=Rt(t[1]||Ct,t[2]);return wt(i,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=xt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r=Pt.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],i=t[1]||Ct;return[i,n]=Rt(i,n),wt(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Et.exec(e);return t?wt(t[2],t[1]||Ct,+t[3],t[4]?+t[4]:void 0):void 0}]],Tt=(0,_.pE)(...Ot),Rt=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Ct,r?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function Mt(e){var t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.lengthr(i))).then(null,(()=>r(i).then(null,(()=>{})))),i},drain:function(e){return new E.cW(((r,n)=>{var i=t.length;if(!i)return r(!0);var a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,E.WD)(e).then((()=>{--i||(clearTimeout(a),r(!0))}),n)}))}))}}}function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var It=6e4;function Dt(e,t){var{statusCode:r,headers:n}=t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),o=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=parseInt("".concat(e),10);if(!isNaN(r))return 1e3*r;var n=Date.parse("".concat(e));return isNaN(n)?It:n-t}(l,a):429===r&&(o.all=a+6e4);return o}var Bt=30;function jt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt(e.bufferSize||Bt),n={};function i(i){var o=[];if(B(i,((t,r)=>{var i=G(r);if(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>r}(n,i)){var a=Nt(t,r);e.recordDroppedEvent("ratelimit_backoff",i,a)}else o.push(t)})),0===o.length)return(0,E.WD)();var s=I(i[0],o),l=t=>{B(s,((r,n)=>{var i=Nt(r,n);e.recordDroppedEvent(t,G(n),i)}))};return r.add((()=>t({body:N(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),n=Dt(n,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof U)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,E.WD)();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>r.drain(e)}}function Nt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Lt=void 0;function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){if(Lt)return Lt;if((0,A.Du)(Pe.fetch))return Lt=Pe.fetch.bind(Pe);var e=Pe.document,t=Pe.fetch;if(e&&"function"===typeof e.createElement)try{var r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);var n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(i){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return Lt=t.bind(Pe)}(),r=0,n=0;return jt(e,(function(a){var o=a.body.length;r+=o,n++;var s=function(e){for(var t=1;t(r-=o,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(l){return Lt=void 0,r-=o,n--,(0,E.$2)(l)}}))}var zt=4;function Ut(e){return jt(e,(function(t){return new E.cW(((r,n)=>{var i=new XMLHttpRequest;for(var a in i.onerror=n,i.onreadystatechange=()=>{i.readyState===zt&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&i.setRequestHeader(a,e.headers[a]);i.send(t.body)}))}))}function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};void 0===e.defaultIntegrations&&(e.defaultIntegrations=Ht),void 0===e.release&&("string"===typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Pe.SENTRY_RELEASE&&Pe.SENTRY_RELEASE.id&&(e.release=Pe.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var t=qt(qt({},e),{},{stackParser:(0,_.Sq)(e.stackParser||Tt),integrations:b(e),transport:e.transport||((0,A.Ak)()?Gt:Ut)});!function(e,t){!0===t.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var r=(0,g.Gd)();r.getScope().update(t.initialScope);var n=new e(t);r.bindClient(n)}(Fe,t),e.autoSessionTracking&&function(){if("undefined"===typeof Pe.document)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=(0,g.Gd)();if(!e.captureSession)return;Yt(e),(0,C.oq)("history",(e=>{var{from:t,to:r}=e;void 0!==t&&t!==r&&Yt((0,g.Gd)())}))}()}function Yt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Kt(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:n}],version:n},Vt(e)}},84465:function(e,t,r){"use strict";r.d(t,{gE:function(){return Me}});var n=r(16042),i=r(32480),a=r(68584),o=r(58775),s=r(57732),l=r(6777),c=r(20757),u=r(70468).n2;var d=r(90275),p=(e,t,r)=>{var n,i;return a=>{t.value>=0&&(a||r)&&((i=t.value-(n||0))||void 0===n)&&(n=t.value,t.delta=i,e(t))}},h=()=>u.__WEB_VITALS_POLYFILL__?u.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{var e=u.performance.timing,t=u.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(r[n]=Math.max(e[n]-e.navigationStart,0));return r})()):u.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],f=()=>{var e=h();return e&&e.activationStart||0},v=(e,t)=>{var r=h(),n="navigate";return r&&(n=u.document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},g=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},m=(e,t)=>{var r=n=>{"pagehide"!==n.type&&"hidden"!==u.document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},b=e=>{var t,r=v("CLS",0),n=0,i=[],a=e=>{e.forEach((e=>{if(!e.hadRecentInput){var a=i[0],o=i[i.length-1];n&&0!==i.length&&e.startTime-o.startTime<1e3&&e.startTime-a.startTime<5e3?(n+=e.value,i.push(e)):(n=e.value,i=[e]),n>r.value&&(r.value=n,r.entries=i,t&&t())}}))},o=g("layout-shift",a);if(o){t=p(e,r);var s=()=>{a(o.takeRecords()),t(!0)};return m(s),s}},y=-1,_=()=>(y<0&&(y="hidden"!==u.document.visibilityState||u.document.prerendering?1/0:0,m((e=>{var{timeStamp:t}=e;y=t}),!0)),{get firstHiddenTime(){return y}}),A=e=>{var t,r=_(),n=v("FID"),i=e=>{e.startTime{e.forEach(i)},o=g("first-input",a);t=p(e,n),o&&m((()=>{a(o.takeRecords()),o.disconnect()}),!0)},C={},w=e=>{var t,r=_(),n=v("LCP"),i=e=>{var i=e[e.length-1];if(i){var a=Math.max(i.startTime-f(),0);a{C[n.id]||(i(a.takeRecords()),a.disconnect(),C[n.id]=!0,t(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,o,{once:!0,capture:!0})})),m(o,!0),o}},S=r(90355),k=["startTimestamp"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){return"number"===typeof e&&isFinite(e)}function E(e,t){var{startTimestamp:r}=t,i=(0,S.Z)(t,k);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(function(e){for(var t=1;t{var t=e.entries.pop();if(t){var r=O(d.Z1),n=O(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding FID"),I.fid={value:e.value,unit:"millisecond"},I["mark.fid"]={value:r+n,unit:"second"}}}));var t=b((e=>{var t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding CLS"),I.cls={value:e.value,unit:""},M=t)})),r=w((e=>{var t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding LCP"),I.lcp={value:e.value,unit:"millisecond"},R=t)}));return()=>{t&&t(),r&&r()}}return()=>{}}function B(e){var t=T();if(t&&u.performance.getEntries&&d.Z1){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Adding & adjusting spans using Performance API");var r,n,i=O(d.Z1),a=t.getEntries();if(a.slice(F).forEach((t=>{var a=O(t.startTime),o=O(t.duration);if(!("navigation"===e.op&&i+a{j(e,t,n,r)})),j(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),j(e,t,"fetch",r,"cache","domainLookupStart"),j(e,t,"domainLookup",r,"DNS"),function(e,t,r){E(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+O(t.requestStart),endTimestamp:r+O(t.responseEnd)}),E(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+O(t.responseStart),endTimestamp:r+O(t.responseEnd)})}(e,t,r)}(e,t,i),r=i+O(t.responseStart),n=i+O(t.requestStart);break;case"mark":case"paint":case"measure":!function(e,t,r,n,i){var a=i+r,o=a+n;E(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,a,o,i);var l=_(),c=t.startTime{if(I[t]&&!(i>=e.startTimestamp)){var r=I[t].value,n=i+O(r),a=Math.abs(1e3*(n-e.startTimestamp)),o=a-r;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Normalized ".concat(t," from ").concat(r," to ").concat(a," (").concat(o,")")),I[t].value=a}}));var o=I["mark.fid"];o&&I.fid&&(E(e,{description:"first input delay",endTimestamp:o.value+O(I.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete I["mark.fid"]),"fcp"in I||delete I.cls,Object.keys(I).forEach((t=>{e.setMeasurement(t,I[t].value,I[t].unit)})),function(e){R&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding LCP Data"),R.element&&e.setTag("lcp.element",(0,c.Rt)(R.element)),R.id&&e.setTag("lcp.id",R.id),R.url&&e.setTag("lcp.url",R.url.trim().slice(0,200)),e.setTag("lcp.size",R.size));M&&M.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding CLS Data"),M.sources.forEach(((t,r)=>e.setTag("cls.source.".concat(r+1),(0,c.Rt)(t.node)))))}(e)}R=void 0,M=void 0,I={}}}function j(e,t,r,n,i,a){var o=a?t[a]:t["".concat(r,"End")],s=t["".concat(r,"Start")];s&&o&&E(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+O(s),endTimestamp:n+O(o)})}var N=r(50538),L=r(66443),Z=r(25951),G=r(20134),z=r(82867),U=r(17074),W=r(21938);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t!0,c=e=>function(e,t){return(0,z.U0)(e,t||V)}(e,n||i),u={};t&&(0,G.oq)("fetch",(e=>{var t=function(e,t,r,n){if(!(0,N.z)()||!e.fetchData)return;var i=t(e.fetchData.url);if(e.endTimestamp&&i){var a=e.fetchData.__span;if(!a)return;var o=n[a];if(o){if(e.response){o.setHttpStatus(e.response.status);var s=e.response&&e.response.headers&&e.response.headers.get("content-length"),c=parseInt(s);c>0&&o.setData("http.response_content_length",c)}else e.error&&o.setStatus("internal_error");o.finish(),delete n[a]}return}var u=(0,L.Gd)(),d=u.getScope(),p=u.getClient(),h=d.getSpan(),{method:f,url:v}=e.fetchData,g=i&&h?h.startChild({data:{url:v,type:"fetch","http.method":f},description:"".concat(f," ").concat(v),op:"http.client",origin:"auto.http.browser"}):void 0;g&&(e.fetchData.__span=g.spanId,n[g.spanId]=g);if(r(e.fetchData.url)&&p){var m=e.args[0];e.args[1]=e.args[1]||{};var b=e.args[1];b.headers=function(e,t,r,n,i){var a=i||r.getSpan(),o=a&&a.transaction,{traceId:s,sampled:c,dsc:u}=r.getPropagationContext(),d=a?a.toTraceparent():(0,l.$p)(s,void 0,c),p=o?o.getDynamicSamplingContext():u||(0,Z._)(s,t,r),h=(0,U.IQ)(p),f="undefined"!==typeof Request&&(0,W.V9)(e,Request)?e.headers:n.headers;if(f){if("undefined"!==typeof Headers&&(0,W.V9)(f,Headers)){var v=new Headers(f);return v.append("sentry-trace",d),h&&v.append(U.bU,h),v}if(Array.isArray(f)){var g=[...f,["sentry-trace",d]];return h&&g.push([U.bU,h]),g}var m="baggage"in f?f.baggage:void 0,b=[];return Array.isArray(m)?b.push(...m):m&&b.push(m),h&&b.push(h),H(H({},f),{},{"sentry-trace":d,baggage:b.length>0?b.join(","):void 0})}return{"sentry-trace":d,baggage:h}}(m,p,d,b,g)}return g}(e,s,c,u);o&&t&&X(t)})),r&&(0,G.oq)("xhr",(e=>{var t=function(e,t,r,n){var i=e.xhr,a=i&&i[G.xU];if(!(0,N.z)()||i&&i.__sentry_own_request__||!i||!a)return;var o=t(a.url);if(e.endTimestamp&&o){var s=i.__sentry_xhr_span_id__;if(!s)return;var c=n[s];return void(c&&(c.setHttpStatus(a.status_code),c.finish(),delete n[s]))}var u=(0,L.Gd)(),d=u.getScope(),p=d.getSpan(),h=o&&p?p.startChild({data:H(H({},a.data),{},{type:"xhr","http.method":a.method,url:a.url}),description:"".concat(a.method," ").concat(a.url),op:"http.client",origin:"auto.http.browser"}):void 0;h&&(i.__sentry_xhr_span_id__=h.spanId,n[i.__sentry_xhr_span_id__]=h);if(i.setRequestHeader&&r(a.url))if(h){var f=h&&h.transaction,v=f&&f.getDynamicSamplingContext(),g=(0,U.IQ)(v);Q(i,h.toTraceparent(),g)}else{var m=u.getClient(),{traceId:b,sampled:y,dsc:_}=d.getPropagationContext(),A=(0,l.$p)(b,void 0,y),C=_||(m?(0,Z._)(b,m,d):void 0);Q(i,A,(0,U.IQ)(C))}return h}(e,s,c,u);o&&t&&X(t)}))}function X(e){var t=e.data.url,r=new PerformanceObserver((n=>{n.getEntries().forEach((n=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(n)&&n.name.endsWith(t)&&(function(e){var{name:t,version:r}=function(e){var t="unknown",r="unknown",n="";for(var i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}n===e&&(t=n);return{name:t,version:r}}(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",r],["network.protocol.name",t]),!d.Z1)return n;return[...n,["http.request.redirect_start",$(e.redirectStart)],["http.request.fetch_start",$(e.fetchStart)],["http.request.domain_lookup_start",$(e.domainLookupStart)],["http.request.domain_lookup_end",$(e.domainLookupEnd)],["http.request.connect_start",$(e.connectStart)],["http.request.secure_connection_start",$(e.secureConnectionStart)],["http.request.connection_end",$(e.connectEnd)],["http.request.request_start",$(e.requestStart)],["http.request.response_start",$(e.responseStart)],["http.request.response_end",$(e.responseEnd)]]}(n).forEach((t=>e.setData(...t))),r.disconnect())}))}));r.observe({entryTypes:["resource"]})}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((d.Z1||performance.timeOrigin)+e)/1e3}function Q(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(U.bU,r)}catch(n){}}function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(u&&u.location){var n,i=u.location.href;t&&(n=e({name:u.location.pathname,startTimestamp:d.Z1?d.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&(0,G.oq)("history",(t=>{var{to:r,from:a}=t;void 0===a&&i&&-1!==i.indexOf(r)?i=void 0:a!==r&&(i=void 0,n&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Finishing current transaction with op: ".concat(n.op)),n.finish()),n=e({name:u.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}},Y);function ne(e){var t=(0,c.qT)("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):void 0}var ie,ae=r(5430),oe=r(96752),se=r(24396),le=r(15734);function ce(e){for(var t=void 0,r=e[0],n=1;ne(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);return"sentry"!==(ce([t,"optionalAccess",e=>e.instrumenter])||"sentry")}class fe{static __initStatic(){this.id="Apollo"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{useNestjs:!1};this.name=fe.id,this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,ue.$y)("@nestjs/graphql"):this._module=this._module||(0,ue.$y)("apollo-server-core"),this._module}setupOnce(e,t){if(he(t))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){var r=this.loadDependency();if(!r)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,de.hl)(r.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(){(0,de.hl)(this.resolversExplorerService,"explore",(function(e){return function(){return ve((0,pe.lE)(e.call(this)),t)}}));for(var r=arguments.length,n=new Array(r),i=0;i(Object.keys(e).forEach((r=>{Object.keys(e[r]).forEach((n=>{"function"===typeof e[r][n]&&function(e,t,r,n){(0,de.hl)(e[t],r,(function(e){return function(){for(var i=ce([n().getScope().getSpan(),"optionalAccess",e=>e.startChild,"call",e=>e({description:"".concat(t,".").concat(r),op:"graphql.resolve",origin:"auto.graphql.apollo"})]),a=arguments.length,o=new Array(a),s=0;s(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}(e,r,n,t)}))})),e)))}fe.__initStatic();function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.method&&e.method.toUpperCase(),n="",i="url";t.customRoute||e.route?(n=t.customRoute||"".concat(e.baseUrl||"").concat(e.route&&e.route.path),i="route"):(e.originalUrl||e.url)&&(n=(0,le.rt)(e.originalUrl||e.url||""));var a="";return t.method&&r&&(a+=r),t.method&&t.path&&(a+=" "),t.path&&n&&(a+=n),[a,i]}class me{static __initStatic(){this.id="Express"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=me.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){this._router?he(t)?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.forEach((t=>function(e,t){var r=e[t];return e[t]=function(){for(var e=arguments.length,n=new Array(e),i=0;i"function"===typeof e?be(e,t):Array.isArray(e)?e.map((e=>"function"===typeof e?be(e,t):e)):e))}(n,t))},e}(e,t)))}(this._router,this._methods),function(e){var t="settings"in e;t&&void 0===e._router&&e.lazyrouter&&e.lazyrouter();var r=t?e._router:e;if(!r)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.debug("Routing instrumentation is currently only supported in Express 4."));var n=Object.getPrototypeOf(r),i=n.process_params;n.process_params=function(e,t,r,n,a){r._reconstructedRoute||(r._reconstructedRoute="");var{layerRoutePath:o,isRegex:s,isArray:l,numExtraSegments:c}=function(e){var t=ce([e,"access",e=>e.route,"optionalAccess",e=>e.path]),r=(0,W.Kj)(t),n=Array.isArray(t);if(!t)return{isRegex:r,isArray:n,numExtraSegments:0};var i=n?Math.max((o=t,o.reduce(((e,t)=>e+(0,le.$A)(t.toString())),0)-(0,le.$A)(e.path||"")),0):0,a=function(e,t){if(e)return t.map((e=>e.toString())).join(",");return t&&t.toString()}(n,t);var o;return{layerRoutePath:a,isRegex:r,isArray:n,numExtraSegments:i}}(e);(o||s||l)&&(r._hasParameters=!0);var u=(o||e.path||"").split("/").filter((e=>e.length>0&&(s||l||!e.includes("*")))).join("/");if(u&&u.length>0&&(r._reconstructedRoute+="/".concat(u).concat(s?"/":"")),(0,le.$A)(r.originalUrl||"")+c===(0,le.$A)(r._reconstructedRoute)){r._hasParameters||r._reconstructedRoute!==r.originalUrl&&(r._reconstructedRoute=r.originalUrl?(0,le.rt)(r.originalUrl):r.originalUrl);var d=n.__sentry_transaction;if(d&&"custom"!==d.metadata.source){var p=r._reconstructedRoute||"/";d.setName(...ge(r,{path:!0,method:!0,customRoute:p}))}}return i.call(this,e,t,r,n,a)}}(this._router)):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("ExpressIntegration is missing an Express instance")}}function be(e,t){var r=e.length;switch(r){case 2:return function(r,n){var i=n.__sentry_transaction;if(i){var a=i.startChild({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"});n.once("finish",(()=>{a.finish()}))}return e.call(this,r,n)};case 3:return function(r,n,i){var a=ce([n.__sentry_transaction,"optionalAccess",e=>e.startChild,"call",r=>r({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"})]);e.call(this,r,n,(function(){ce([a,"optionalAccess",e=>e.finish,"call",e=>e()]);for(var e=arguments.length,t=new Array(e),r=0;re.startChild,"call",r=>r({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"})]);e.call(this,r,n,i,(function(){ce([o,"optionalAccess",e=>e.finish,"call",e=>e()]);for(var e=arguments.length,t=new Array(e),r=0;re.startChild,"call",e=>e({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);ce([r,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]);for(var a=arguments.length,o=new Array(a),s=0;s(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),ce([r,"optionalAccess",e=>e.setSpan,"call",e=>e(n)]),e))):(ce([i,"optionalAccess",e=>e.finish,"call",e=>e()]),ce([r,"optionalAccess",e=>e.setSpan,"call",e=>e(n)]),l)}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}}ye.__initStatic();var _e=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],Ae={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class Ce{static __initStatic(){this.id="Mongo"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Ce.id,this._operations=Array.isArray(e.operations)?e.operations:_e,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}loadDependency(){var e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,ue.$y)(e)}setupOnce(e,t){if(he(t))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Mongo Integration is skipped because of instrumenter configuration.");else{var r=this.loadDependency();if(r)this._instrumentOperations(r.Collection,this._operations,t);else{var n=this._useMongoose?"mongoose":"mongodb";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Mongo Integration was unable to require `".concat(n,"` package."))}}}_instrumentOperations(e,t,r){t.forEach((t=>this._patchOperation(e,t,r)))}_patchOperation(e,t,r){if(t in e.prototype){var n=this._getSpanContextFromOperationArguments.bind(this);(0,de.hl)(e.prototype,t,(function(e){return function(){for(var i=arguments.length,a=new Array(i),o=0;oe.startChild,"call",e=>e(n(this,t,a))]),d=e.call(this,...a);if((0,W.J8)(d))return d.then((e=>(ce([u,"optionalAccess",e=>e.finish,"call",e=>e()]),e)));if((s=d)&&"object"===typeof s&&s.once&&"function"===typeof s.once){var p=d;try{p.once("close",(()=>{ce([u,"optionalAccess",e=>e.finish,"call",e=>e()])}))}catch(f){ce([u,"optionalAccess",e=>e.finish,"call",e=>e()])}return p}return ce([u,"optionalAccess",e=>e.finish,"call",e=>e()]),d}var h=ce([c,"optionalAccess",e=>e.startChild,"call",e=>e(n(this,t,a.slice(0,-1)))]);return e.call(this,...a.slice(0,-1),(function(e,t){ce([h,"optionalAccess",e=>e.finish,"call",e=>e()]),l(e,t)}))}}))}}_getSpanContextFromOperationArguments(e,t,r){var n={"db.system":"mongodb","db.name":e.dbName,"db.operation":t,"db.mongodb.collection":e.collectionName},i={op:"db",origin:"auto.db.mongo",description:t,data:n},a=Ae[t],o=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!a||!o)return i;try{if("mapReduce"===t){var[s,l]=r;n[a[0]]="string"===typeof s?s:s.name||"",n[a[1]]="string"===typeof l?l:l.name||""}else for(var c=0;ce.startChild,"call",e=>e({description:"string"===typeof r?r:r.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);return"function"===typeof a?e.call(this,r,n,(function(e,t,r){i(o),a(e,t,r)})):"function"===typeof n?e.call(this,r,(function(e,t,r){i(o),n(e,t,r)})):e.call(this,r,n,(function(){i(o)}))}}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Mysql Integration was unable to require `mysql` package.")}function i(e){if(e){var t=n?{"server.address":n.host,"server.port":n.port,"db.user":n.user}:{};Object.keys(t).forEach((r=>{e.setData(r,t[r])})),e.finish()}}}}we.__initStatic();class Se{static __initStatic(){this.id="Postgres"}constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Se.id,this._usePgNative=!!e.usePgNative}loadDependency(){return this._module=this._module||(0,ue.$y)("pg")}setupOnce(e,t){if(he(t))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("Postgres Integration is skipped because of instrumenter configuration.");else{var r=this.loadDependency();if(r)if(!this._usePgNative||ce([r,"access",e=>e.native,"optionalAccess",e=>e.Client])){var{Client:n}=this._usePgNative?r.native:r;(0,de.hl)(n.prototype,"query",(function(e){return function(r,n,i){var a=t().getScope().getSpan(),o={"db.system":"postgresql"};try{this.database&&(o["db.name"]=this.database),this.host&&(o["server.address"]=this.host),this.port&&(o["server.port"]=this.port),this.user&&(o["db.user"]=this.user)}catch(c){}var s=ce([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"===typeof r?r:r.text,op:"db",origin:"auto.db.postgres",data:o})]);if("function"===typeof i)return e.call(this,r,n,(function(e,t){ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),i(e,t)}));if("function"===typeof n)return e.call(this,r,(function(e,t){ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),n(e,t)}));var l="undefined"!==typeof n?e.call(this,r,n):e.call(this,r);return(0,W.J8)(l)?l.then((e=>(ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):(ce([s,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Postgres Integration was unable to access 'pg-native' bindings.");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Postgres Integration was unable to require `pg` package.")}}}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=Re.id,(e=t.client)&&e.$use&&!t.client._sentryInstrumented){(0,de.xp)(t.client,"_sentryInstrumented",!0);var r={};try{var n=t.client._engineConfig;if(n){var{activeProvider:i,clientVersion:a}=n;i&&(r["db.system"]=i),a&&(r["db.prisma.version"]=a)}}catch(o){}t.client.$use(((e,t)=>{if(he(L.Gd))return t(e);var n=e.action,i=e.model;return function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=Ee(e),a=(0,L.Gd)(),s=a.getScope(),l=s.getSpan(),c=Pe(a,l,i);function u(){c&&c.finish(),a.getScope().setSpan(l)}s.setSpan(c);try{r=t(c)}catch(o){throw c&&c.setStatus("internal_error"),n(o),u(),o}return(0,W.J8)(r)?Promise.resolve(r).then((()=>{u()}),(e=>{c&&c.setStatus("internal_error"),n(e),u()})):u(),r}({name:i?"".concat(i," ").concat(n):n,op:"db.sql.prisma",origin:"auto.db.prisma",data:Te(Te({},r),{},{"db.operation":n})},(()=>t(e)))}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",t.client)}setupOnce(){}}Re.__initStatic();var Me=class{constructor(e){this.name=te,this._hasSetTracePropagationTargets=!1,(0,a.T)(),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options=ee(ee({},re),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=D(),this.options.enableLongTask&&g("longtask",(e=>{for(var t of e){var r=(0,o.x1)();if(!r)return;var n=O(d.Z1+t.startTime),i=O(t.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),this.options._experiments.enableInteractions&&g("event",(e=>{for(var t of e){var r=(0,o.x1)();if(!r)return;if("click"===t.name){var n=O(d.Z1+t.startTime),i=O(t.duration);r.startChild({description:(0,c.Rt)(t.target),op:"ui.interaction.".concat(t.name),origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;var r=t().getClient(),n=r&&r.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:a,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:p,shouldCreateSpanForRequest:h,enableHTTPTimings:f,_experiments:v}=this.options,g=n&&n.tracePropagationTargets,m=g||this.options.tracePropagationTargets;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&g&&s.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{var r=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(r,e,t),r}),l,a),c&&(u&&u.document?u.document.addEventListener("visibilitychange",(()=>{var e=(0,o.x1)();if(u.document.hidden&&e){var t="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(e.op)),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),v.enableInteractions&&this._registerInteractionListener(),K({traceFetch:d,traceXHR:p,tracePropagationTargets:m,shouldCreateSpanForRequest:h,enableHTTPTimings:f})}_createRouteTransaction(e){if(this._getCurrentHub){var t=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:n,finalTimeout:i,heartbeatInterval:o}=this.options,c="pageload"===e.op,d=c?ne("sentry-trace"):"",p=c?ne("baggage"):"",{traceparentData:h,dynamicSamplingContext:f,propagationContext:v}=(0,l.KA)(d,p),g=ee(ee(ee({},e),h),{},{metadata:ee(ee({},e.metadata),{},{dynamicSamplingContext:h&&!f?{}:f}),trimEnd:!0}),m="function"===typeof r?r(g):g,b=void 0===m?ee(ee({},g),{},{sampled:!1}):m;b.metadata=b.name!==g.name?ee(ee({},b.metadata),{},{source:"custom"}):b.metadata,this._latestRouteName=b.name,this._latestRouteSource=b.metadata&&b.metadata.source,!1===b.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Will not send ".concat(b.op," transaction because of beforeNavigate.")),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Starting ".concat(b.op," transaction on scope"));var{location:y}=u,_=(0,a.l)(t,b,n,i,!0,{location:y},o),A=t.getScope();return c&&h?A.setPropagationContext(v):A.setPropagationContext({traceId:_.traceId,spanId:_.spanId,parentSpanId:_.parentSpanId,sampled:_.sampled}),_.registerBeforeFinishCallback((e=>{this._collectWebVitals(),B(e)})),_}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid."))}_registerInteractionListener(){var e,t=()=>{var{idleTimeout:t,finalTimeout:r,heartbeatInterval:n}=this.options,i="ui.action.click",l=(0,o.x1)();if(l&&l.op&&["navigation","pageload"].includes(l.op))("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(i," transaction because a pageload or navigation transaction is in progress."));else if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),this._getCurrentHub)if(this._latestRouteName){var c=this._getCurrentHub(),{location:d}=u,p={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=(0,a.l)(c,p,t,r,!0,{location:d},n)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(i," transaction because _latestRouteName is missing."));else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Did not create ".concat(i," transaction because _getCurrentHub is invalid."))};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}};ae.r,o.x1,l.qG,oe.Zd,se.Y,oe.Dr,N.z,le.rt,l.Ke,i.io,a.l;("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,ae.r)()},17074:function(e,t,r){"use strict";r.d(t,{EN:function(){return p},IQ:function(){return h},bU:function(){return l}});var n=r(16042),i=r(21938),a=r(57732);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{var r=f(t);return s(s({},e),r)}),{});else{if(!e)return;t=f(e)}var r=Object.entries(t).reduce(((e,t)=>{var[r,n]=t;r.match(u)&&(e[r.slice(c.length)]=n);return e}),{});return Object.keys(r).length>0?r:void 0}}function h(e){if(e)return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,t,r)=>{var[n,i]=t,o="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(i)),s=0===r?o:"".concat(e,",").concat(o);return s.length>d?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Not adding key: ".concat(n," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),e):s}),"")}(Object.entries(e).reduce(((e,t)=>{var[r,n]=t;return n&&(e["".concat(c).concat(r)]=n),e}),{}))}function f(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,t)=>{var[r,n]=t;return e[r]=n,e}),{})}},20757:function(e,t,r){"use strict";r.d(t,{Rt:function(){return o},l4:function(){return l},qT:function(){return c}});var n=r(21938),i=(0,r(70468).Rf)(),a=80;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{for(var r,n=e,i=[],o=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||a;n&&o++<5&&!("html"===(r=s(n,c))||o>1&&l+3*i.length+r.length>=u);)i.push(r),l+=r.length,n=n.parentNode;return i.reverse().join(" > ")}catch(d){return""}}function s(e,t){var r,i,a,o,s,l=e,c=[];if(!l||!l.tagName)return"";c.push(l.tagName.toLowerCase());var u=t&&t.length?t.filter((e=>l.getAttribute(e))).map((e=>[e,l.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{c.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(l.id&&c.push("#".concat(l.id)),(r=l.className)&&(0,n.HD)(r))for(i=r.split(/\s+/),s=0;s{var r=f[t]&&f[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,o.hl)(r,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{var a=this,o=a.__sentry_instrumentation_handlers__=a.__sentry_instrumentation_handlers__||{},s=o[r]=o[r]||{refCount:0};if(!s.handler){var l=x(e);s.handler=l,t.call(this,r,l,i)}s.refCount++}catch(c){}return t.call(this,r,n,i)}})),(0,o.hl)(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{var i=this,a=i.__sentry_instrumentation_handlers__||{},o=a[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete a[t]),0===Object.keys(a).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return e.call(this,t,r,n)}})))}))}();break;case"xhr":!function(){if(!f.XMLHttpRequest)return;var e=XMLHttpRequest.prototype;(0,o.hl)(e,"open",(function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n{var e=this[v];if(e&&4===this.readyState){try{e.status_code=this.status}catch(t){}_("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,o.hl)(this,"onreadystatechange",(function(e){return function(){l();for(var t=arguments.length,r=new Array(t),n=0;n(_("fetch",p(p({},o),{},{endTimestamp:Date.now(),response:e})),e)),(e=>{throw _("fetch",p(p({},o),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=u.chrome,t=e&&e.app&&e.app.runtime,r="history"in u&&!!u.history.pushState&&!!u.history.replaceState;return!t&&r}())return;var e=f.onpopstate;function t(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n2?r[2]:void 0;if(i){var a=h,o=String(i);h=o,_("history",{from:a,to:o})}return e.apply(this,r)}}f.onpopstate=function(){var t=f.location.href,r=h;if(h=t,_("history",{from:r,to:t}),e)try{for(var n=arguments.length,i=new Array(n),a=0;a1&&void 0!==arguments[1]&&arguments[1];return r=>{if(r&&S!==r&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(r){}return!0}(r)){var n="keypress"===r.type?"input":r.type;(void 0===w||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(r){}return!1}(S,r))&&(e({event:r,name:n,global:t}),S=r),clearTimeout(w),w=f.setTimeout((()=>{w=void 0}),k)}}}var P=null;var E=null},21938:function(e,t,r){"use strict";r.d(t,{Cy:function(){return g},HD:function(){return c},J8:function(){return v},Kj:function(){return f},PO:function(){return d},TX:function(){return s},V9:function(){return b},VW:function(){return o},VZ:function(){return i},cO:function(){return p},fm:function(){return l},i2:function(){return m},kK:function(){return h},pt:function(){return u},y1:function(){return y}});var n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function a(e,t){return n.call(e)==="[object ".concat(t,"]")}function o(e){return a(e,"ErrorEvent")}function s(e){return a(e,"DOMError")}function l(e){return a(e,"DOMException")}function c(e){return a(e,"String")}function u(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function d(e){return a(e,"Object")}function p(e){return"undefined"!==typeof Event&&b(e,Event)}function h(e){return"undefined"!==typeof Element&&b(e,Element)}function f(e){return a(e,"RegExp")}function v(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e){return"number"===typeof e&&e!==e}function b(e,t){try{return e instanceof t}catch(r){return!1}}function y(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}},57732:function(e,t,r){"use strict";r.d(t,{Cf:function(){return o},LD:function(){return a},RU:function(){return i},kg:function(){return s}});var n=r(70468),i=["debug","info","warn","error","log","assert","trace"],a={};function o(e){if(!("console"in n.n2))return e();var t=n.n2.console,r={},i=Object.keys(a);i.forEach((e=>{var n=a[e];r[e]=t[e],t[e]=n}));try{return e()}finally{i.forEach((e=>{t[e]=r[e]}))}}var s=function(){var e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((r=>{t[r]=function(){for(var t=arguments.length,i=new Array(t),a=0;a{n.n2.console[r]("".concat("Sentry Logger ","[").concat(r,"]:"),...i)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}()},52859:function(e,t,r){"use strict";r.d(t,{DM:function(){return l},Db:function(){return d},EG:function(){return p},YO:function(){return h},jH:function(){return u},lE:function(){return f}});var n=r(16042),i=r(42913),a=r(70468);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(n){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function c(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){var{message:t,event_id:r}=e;if(t)return t;var n=c(e);return n?n.type&&n.value?"".concat(n.type,": ").concat(n.value):n.type||n.value||r||"":r||""}function d(e,t,r){var n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function p(e,t){var r=c(e);if(r){var n=r.mechanism;if(r.mechanism=s(s(s({},{type:"generic",handled:!0}),n),t),t&&"data"in t){var i=s(s({},n&&n.data),t.data);r.mechanism.data=i}}}function h(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function f(e){return Array.isArray(e)?e:[e]}},43764:function(e,t,r){"use strict";r.d(t,{$y:function(){return o},KV:function(){return i},l$:function(){return a}});var n=r(93253);function i(){return!(0,n.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function a(e,t){return e.require(t)}function o(t){var r;try{r=a(e,t)}catch(i){}try{var{cwd:n}=a(e,"process");r=a(e,"".concat(n(),"/node_modules/").concat(t))}catch(i){}return r}e=r.hmd(e)},42913:function(e,t,r){"use strict";r.d(t,{$Q:function(){return p},HK:function(){return h},Jr:function(){return y},Sh:function(){return v},_j:function(){return f},hl:function(){return u},xp:function(){return d},zf:function(){return b}});var n=r(16042),i=r(20757),a=r(21938),o=r(57732),s=r(82867);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t])))).join("&")}function v(e){if((0,a.VZ)(e))return c({message:e.message,name:e.name,stack:e.stack},m(e));if((0,a.cO)(e)){var t=c({type:e.type,target:g(e.target),currentTarget:g(e.currentTarget)},m(e));return"undefined"!==typeof CustomEvent&&(0,a.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function g(e){try{return(0,a.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch(t){return""}}function m(e){if("object"===typeof e&&null!==e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,r=Object.keys(v(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,s.$G)(r[0],t);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length?i:(0,s.$G)(i,t)}return""}function y(e){return _(e,new Map)}function _(e,t){if((0,a.PO)(e)){var r=t.get(e);if(void 0!==r)return r;var n={};for(var i of(t.set(e,n),Object.keys(e)))"undefined"!==typeof e[i]&&(n[i]=_(e[i],t));return n}if(Array.isArray(e)){var o=t.get(e);if(void 0!==o)return o;var s=[];return t.set(e,s),e.forEach((e=>{s.push(_(e,t))})),s}return e}},63373:function(e,t,r){"use strict";r.d(t,{$P:function(){return p},Sq:function(){return u},pE:function(){return c}});var n=r(16042);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te[0]-t[0])).map((e=>e[1]));return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],i=e.split("\n"),c=t;c1024)){var d=s.test(u)?u.replace(s,"$1"):u;if(!d.match(/\S*Error: /)){for(var p of n){var h=p(d);if(h){r.push(h);break}}if(r.length>=o)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),l.test(t[t.length-1].function||"")&&(t.pop(),l.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,o).map((e=>a(a({},e),{},{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}function u(e){return Array.isArray(e)?c(...e):e}var d="";function p(e){try{return e&&"function"===typeof e&&e.name||d}catch(t){return d}}},82867:function(e,t,r){"use strict";r.d(t,{$G:function(){return i},U0:function(){return o},nK:function(){return a}});var n=r(21938);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function a(e,t){if(!Array.isArray(e))return"";for(var r=[],i=0;i2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((r=>function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))}(e,r,t)))}},58940:function(e,t,r){"use strict";r.d(t,{Ak:function(){return a},Du:function(){return o},t$:function(){return s}});var n=r(57732),i=(0,r(70468).Rf)();function a(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function o(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!a())return!1;if(o(i.fetch))return!0;var e=!1,t=i.document;if(t&&"function"===typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=o(r.contentWindow.fetch)),t.head.removeChild(r)}catch(s){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return e}},63791:function(e,t,r){"use strict";r.d(t,{$2:function(){return o},WD:function(){return a},cW:function(){return s}});var n,i=r(21938);function a(e){return new s((t=>{t(e)}))}function o(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(i){n(i)}else r(t)},e=>{if(t)try{r(t(e))}catch(i){n(i)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{var n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state!==n.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},90275:function(e,t,r){"use strict";r.d(t,{Z1:function(){return d},ph:function(){return u},yW:function(){return c}});var n=r(43764),i=r(70468);e=r.hmd(e);var a=(0,i.Rf)(),o={nowSeconds:()=>Date.now()/1e3};var s=(0,n.KV)()?function(){try{return(0,n.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){var{performance:e}=a;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?o:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=o.nowSeconds.bind(o),u=l.nowSeconds.bind(l),d=(()=>{var{performance:e}=a;if(e&&e.now){var t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,o=i0&&void 0!==arguments[0]?arguments[0]:(0,i.DM)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.DM)().substring(16),r=arguments.length>2?arguments[2]:void 0,n="";return void 0!==r&&(n=r?"-1":"-0"),"".concat(e,"-").concat(t).concat(n)}},15734:function(e,t,r){"use strict";function n(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/[\?#]/,1)[0]}function a(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}r.d(t,{$A:function(){return a},en:function(){return n},rt:function(){return i}})},70468:function(e,t,r){"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{Rf:function(){return a},YO:function(){return o},n2:function(){return i}});var i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function a(){return i}function o(e,t,r){var n=r||i,a=n.__SENTRY__=n.__SENTRY__||{};return a[e]||(a[e]=t())}},71085:function(e,t){var r="undefined"!==typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=f(t);return t.readAsArrayBuffer(e),r}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=f(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function A(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},m.call(y.prototype),m.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(k){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(n,a){var o=new y(e,r);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:A(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;n(new C(t,e))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=y,e.Response=C),t.Headers=p,t.Request=y,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},97284:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n="undefined"!==typeof t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,a){"string"===typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},56105:function(e){"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"===typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),a="/*# ".concat(i," */");return[t].concat([a]).join("\n")}return[t].join("\n")}},56259:function(e,t,r){"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},87140:function(e,t,r){"use strict";function n(e){return n="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},n(e)}r.d(t,{Z:function(){return a}});var i=r(56259);function a(e){return(0,i.Z)(1,arguments),function(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===n(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e).getTime()2)return r;/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],s.timeZoneDelimiter.test(r.date)&&(r.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length)));if(t){var i=s.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(g.date){var m=function(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((n[1]||n[2]).length)}}(g.date,o);v=function(e,t){if(null===t)return new Date(NaN);var r=e.match(l);if(!r)return new Date(NaN);var n=!!r[4],i=d(r[1]),a=d(r[2])-1,o=d(r[3]),s=d(r[4]),c=d(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,s,c)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=7*(t-1)+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(h[t]||(f(e)?29:28))}(t,a,o)&&function(e,t){return t>=1&&t<=(f(e)?366:365)}(t,i)?(u.setUTCFullYear(t,a,Math.max(i,o)),u):new Date(NaN)}(m.restDateString,m.year)}if(!v||isNaN(v.getTime()))return new Date(NaN);var b,y=v.getTime(),_=0;if(g.time&&(_=function(e){var t=e.match(c);if(!t)return NaN;var r=p(t[1]),a=p(t[2]),o=p(t[3]);if(!function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,a,o))return NaN;return r*i+a*n+1e3*o}(g.time),isNaN(_)))return new Date(NaN);if(!g.timezone){var A=new Date(y+_),C=new Date(0);return C.setFullYear(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()),C.setHours(A.getUTCHours(),A.getUTCMinutes(),A.getUTCSeconds(),A.getUTCMilliseconds()),C}return b=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var r="+"===t[1]?-1:1,a=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return r*(a*i+o*n)}(g.timezone),isNaN(b)?new Date(NaN):new Date(y+_+b)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400===0||e%4===0&&e%100!==0}},51148:function(e,t,r){"use strict";r.d(t,{Bc:function(){return Tn},gN:function(){return Cn},l0:function(){return wn},J9:function(){return mn},u6:function(){return rn}});var n=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return a(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||n;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=a(e[t],r)})),Object.keys(t).forEach((function(i){r.isMergeableObject(t[i])&&e[i]?n[i]=s(e[i],t[i],r):n[i]=a(t[i],r)})),n}(e,t,r):a(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var l=s,c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),p=d.Symbol,h=Object.prototype,f=h.hasOwnProperty,v=h.toString,g=p?p.toStringTag:void 0;var m=function(e){var t=f.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(a){}var i=v.call(e);return n&&(t?e[g]=r:delete e[g]),i},b=Object.prototype.toString;var y=function(e){return b.call(e)},_=p?p.toStringTag:void 0;var A=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?m(e):y(e)};var C=function(e,t){return function(r){return e(t(r))}},w=C(Object.getPrototypeOf,Object);var S=function(e){return null!=e&&"object"==typeof e},k=Function.prototype,x=Object.prototype,P=k.toString,E=x.hasOwnProperty,O=P.call(Object);var T=function(e){if(!S(e)||"[object Object]"!=A(e))return!1;var t=w(e);if(null===t)return!0;var r=E.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&P.call(r)==O},R=r(21914),M=r(42669),F=r.n(M);var I=function(e,t){};var D=function(){this.__data__=[],this.size=0};var B=function(e,t){return e===t||e!==e&&t!==t};var j=function(e,t){for(var r=e.length;r--;)if(B(e[r][0],t))return r;return-1},N=Array.prototype.splice;var L=function(e){var t=this.__data__,r=j(t,e);return!(r<0)&&(r==t.length-1?t.pop():N.call(t,r,1),--this.size,!0)};var Z=function(e){var t=this.__data__,r=j(t,e);return r<0?void 0:t[r][1]};var G=function(e){return j(this.__data__,e)>-1};var z=function(e,t){var r=this.__data__,n=j(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function U(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var nt=function(e){return S(e)&&tt(e.length)&&!!rt[A(e)]};var it=function(e){return function(t){return e(t)}},at="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=at&&"object"==typeof module&&module&&!module.nodeType&&module,st=ot&&ot.exports===at&&c.process,lt=function(){try{var e=ot&&ot.require&&ot.require("util").types;return e||st&&st.binding&&st.binding("util")}catch(t){}}(),ct=lt&<.isTypedArray,ut=ct?it(ct):nt,dt=Object.prototype.hasOwnProperty;var pt=function(e,t){var r=Ve(e),n=!r&&He(e),i=!r&&!n&&Qe(e),a=!r&&!n&&!i&&ut(e),o=r||n||i||a,s=o?Ze(e.length,String):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||et(c,l))||s.push(c);return s},ht=Object.prototype;var ft=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ht)},vt=C(Object.keys,Object),gt=Object.prototype.hasOwnProperty;var mt=function(e){if(!ft(e))return vt(e);var t=[];for(var r in Object(e))gt.call(e,r)&&"constructor"!=r&&t.push(r);return t};var bt=function(e){return null!=e&&tt(e.length)&&!X(e)};var yt=function(e){return bt(e)?pt(e):mt(e)};var _t=function(e,t){return e&&Le(t,yt(t),e)};var At=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Ct=Object.prototype.hasOwnProperty;var wt=function(e){if(!K(e))return At(e);var t=ft(e),r=[];for(var n in e)("constructor"!=n||!t&&Ct.call(e,n))&&r.push(n);return r};var St=function(e){return bt(e)?pt(e,!0):wt(e)};var kt=function(e,t){return e&&Le(t,St(t),e)},xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pt=xt&&"object"==typeof module&&module&&!module.nodeType&&module,Et=Pt&&Pt.exports===xt?d.Buffer:void 0,Ot=Et?Et.allocUnsafe:void 0;var Tt=function(e,t){if(t)return e.slice();var r=e.length,n=Ot?Ot(r):new e.constructor(r);return e.copy(n),n};var Rt=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jr=(0,R.createContext)(void 0);Jr.displayName="FormikContext";var en=Jr.Provider,tn=Jr.Consumer;function rn(){var e=(0,R.useContext)(Jr);return e||I(!1),e}var nn=function(e){return Array.isArray(e)&&0===e.length},an=function(e){return"function"===typeof e},on=function(e){return null!==e&&"object"===typeof e},sn=function(e){return String(Math.floor(Number(e)))===e},ln=function(e){return"[object String]"===Object.prototype.toString.call(e)},cn=function(e){return 0===R.Children.count(e)},un=function(e){return on(e)&&an(e.then)};function dn(e,t,r,n){void 0===n&&(n=0);for(var i=qr(t);e&&n=0?[]:{}}}return(0===a?e:i)[o[a]]===r?e:(void 0===r?delete i[o[a]]:i[o[a]]=r,0===a&&void 0===r&&delete n[o[a]],n)}function hn(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var i=0,a=Object.keys(e);i=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var o=a;dn(t,o.path)||(t=pn(t,o.path,o.message))}}return t}(r)):t(r)}))}))}),[h.validationSchema]),x=(0,R.useCallback)((function(e,t){return new Promise((function(r){return r(y.current[e].validate(t))}))}),[]),P=(0,R.useCallback)((function(e){var t=Object.keys(y.current).filter((function(e){return an(y.current[e].validate)})),r=t.length>0?t.map((function(t){return x(t,dn(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=pn(e,t[n],r)),e}),{})}))}),[x]),E=(0,R.useCallback)((function(e){return Promise.all([P(e),h.validationSchema?k(e):{},h.validate?S(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return l.all([t,r,n],{arrayMerge:yn})}))}),[h.validate,h.validationSchema,P,S,k]),O=An((function(e){return void 0===e&&(e=C.values),w({type:"SET_ISVALIDATING",payload:!0}),E(e).then((function(e){return b.current&&(w({type:"SET_ISVALIDATING",payload:!1}),w({type:"SET_ERRORS",payload:e})),e}))}));(0,R.useEffect)((function(){o&&!0===b.current&&F()(f.current,h.initialValues)&&O(f.current)}),[o,O]);var T=(0,R.useCallback)((function(e){var t=e&&e.values?e.values:f.current,r=e&&e.errors?e.errors:v.current?v.current:h.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:h.initialTouched||{},i=e&&e.status?e.status:m.current?m.current:h.initialStatus;f.current=t,v.current=r,g.current=n,m.current=i;var a=function(){w({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var o=h.onReset(C.values,$);un(o)?o.then(a):a()}else a()}),[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);(0,R.useEffect)((function(){!0!==b.current||F()(f.current,h.initialValues)||u&&(f.current=h.initialValues,T(),o&&O(f.current))}),[u,h.initialValues,T,o,O]),(0,R.useEffect)((function(){u&&!0===b.current&&!F()(v.current,h.initialErrors)&&(v.current=h.initialErrors||fn,w({type:"SET_ERRORS",payload:h.initialErrors||fn}))}),[u,h.initialErrors]),(0,R.useEffect)((function(){u&&!0===b.current&&!F()(g.current,h.initialTouched)&&(g.current=h.initialTouched||vn,w({type:"SET_TOUCHED",payload:h.initialTouched||vn}))}),[u,h.initialTouched]),(0,R.useEffect)((function(){u&&!0===b.current&&!F()(m.current,h.initialStatus)&&(m.current=h.initialStatus,w({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var M=An((function(e){if(y.current[e]&&an(y.current[e].validate)){var t=dn(C.values,e),r=y.current[e].validate(t);return un(r)?(w({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),w({type:"SET_ISVALIDATING",payload:!1})}))):(w({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(w({type:"SET_ISVALIDATING",payload:!0}),k(C.values,e).then((function(e){return e})).then((function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:dn(t,e)}}),w({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),I=(0,R.useCallback)((function(e,t){var r=t.validate;y.current[e]={validate:r}}),[]),D=(0,R.useCallback)((function(e){delete y.current[e]}),[]),B=An((function(e,t){return w({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?O(C.values):Promise.resolve()})),j=(0,R.useCallback)((function(e){w({type:"SET_ERRORS",payload:e})}),[]),N=An((function(e,t){var n=an(e)?e(C.values):e;return w({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?O(n):Promise.resolve()})),L=(0,R.useCallback)((function(e,t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),Z=An((function(e,t,n){return w({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?O(pn(C.values,e,t)):Promise.resolve()})),G=(0,R.useCallback)((function(e,t){var r,n=t,i=e;if(!ln(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,l=a.id,c=a.value,u=a.checked,d=(a.outerHTML,a.options),p=a.multiple;n=t||(s||l),i=/number|range/.test(o)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(o)?function(e,t,r){if("boolean"===typeof e)return Boolean(t);var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,i=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!i)return n.concat(r);if(!i)return n;return n.slice(0,a).concat(n.slice(a+1))}(dn(C.values,n),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}n&&Z(n,i)}),[Z,C.values]),z=An((function(e){if(ln(e))return function(t){return G(t,e)};G(e)})),U=An((function(e,t,r){return void 0===t&&(t=!0),w({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?O(C.values):Promise.resolve()})),W=(0,R.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id,a=(r.outerHTML,t||(n||i));U(a,!0)}),[U]),q=An((function(e){if(ln(e))return function(t){return W(t,e)};W(e)})),H=(0,R.useCallback)((function(e){an(e)?w({type:"SET_FORMIK_STATE",payload:e}):w({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),V=(0,R.useCallback)((function(e){w({type:"SET_STATUS",payload:e})}),[]),Y=(0,R.useCallback)((function(e){w({type:"SET_ISSUBMITTING",payload:e})}),[]),K=An((function(){return w({type:"SUBMIT_ATTEMPT"}),O().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Q()))return}catch(n){throw n}return Promise.resolve(r).then((function(e){return b.current&&w({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw w({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(w({type:"SUBMIT_FAILURE"}),t))throw e}))})),X=An((function(e){e&&e.preventDefault&&an(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&an(e.stopPropagation)&&e.stopPropagation(),K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),$={resetForm:T,validateForm:O,validateField:M,setErrors:j,setFieldError:L,setFieldTouched:U,setFieldValue:Z,setStatus:V,setSubmitting:Y,setTouched:B,setValues:N,setFormikState:H,submitForm:K},Q=An((function(){return d(C.values,$)})),J=An((function(e){e&&e.preventDefault&&an(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&an(e.stopPropagation)&&e.stopPropagation(),T()})),ee=(0,R.useCallback)((function(e){return{value:dn(C.values,e),error:dn(C.errors,e),touched:!!dn(C.touched,e),initialValue:dn(f.current,e),initialTouched:!!dn(g.current,e),initialError:dn(v.current,e)}}),[C.errors,C.touched,C.values]),te=(0,R.useCallback)((function(e){return{setValue:function(t,r){return Z(e,t,r)},setTouched:function(t,r){return U(e,t,r)},setError:function(t){return L(e,t)}}}),[Z,U,L]),re=(0,R.useCallback)((function(e){var t=on(e),r=t?e.name:e,n=dn(C.values,r),i={name:r,value:n,onChange:z,onBlur:q};if(t){var a=e.type,o=e.value,s=e.as,l=e.multiple;"checkbox"===a?void 0===o?i.checked=!!n:(i.checked=!(!Array.isArray(n)||!~n.indexOf(o)),i.value=o):"radio"===a?(i.checked=n===o,i.value=o):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[q,z,C.values]),ne=(0,R.useMemo)((function(){return!F()(f.current,C.values)}),[f.current,C.values]),ie=(0,R.useMemo)((function(){return"undefined"!==typeof s?ne?C.errors&&0===Object.keys(C.errors).length:!1!==s&&an(s)?s(h):s:C.errors&&0===Object.keys(C.errors).length}),[s,ne,C.errors,h]);return Kr({},C,{initialValues:f.current,initialErrors:v.current,initialTouched:g.current,initialStatus:m.current,handleBlur:q,handleChange:z,handleReset:J,handleSubmit:X,resetForm:T,setErrors:j,setFormikState:H,setFieldTouched:U,setFieldValue:Z,setFieldError:L,setStatus:V,setSubmitting:Y,setTouched:B,setValues:N,submitForm:K,validateForm:O,validateField:M,isValid:ie,dirty:ne,unregisterField:D,registerField:I,getFieldProps:re,getFieldMeta:ee,getFieldHelpers:te,validateOnBlur:i,validateOnChange:r,validateOnMount:o})}function mn(e){var t=gn(e),r=e.component,n=e.children,i=e.render,a=e.innerRef;return(0,R.useImperativeHandle)(a,(function(){return t})),(0,R.createElement)(en,{value:t},r?(0,R.createElement)(r,t):i?i(t):n?an(n)?n(t):cn(n)?null:R.Children.only(n):null)}function bn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||T(e)?bn(e):""!==e?e:void 0})):T(e[n])?t[n]=bn(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function yn(e,t,r){var n=e.slice();return t.forEach((function(t,i){if("undefined"===typeof n[i]){var a=!1!==r.clone&&r.isMergeableObject(t);n[i]=a?l(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=l(e[i],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var _n="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?R.useLayoutEffect:R.useEffect;function An(e){var t=(0,R.useRef)(e);return _n((function(){t.current=e})),(0,R.useCallback)((function(){for(var e=arguments.length,r=new Array(e),n=0;ne?t:e}),0);return Array.from(Kr({},e,{length:t+1}))}return[]},Pn=function(e,t){var r="function"===typeof e?e:t;return function(e){if(Array.isArray(e)||on(e)){var t=xn(e);return r(t)}return e}},En=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,a=i.name;(0,i.formik.setFormikState)((function(r){var i=Pn(n,e),o=Pn(t,e),s=pn(r.values,a,e(dn(r.values,a))),l=n?i(dn(r.errors,a)):void 0,c=t?o(dn(r.touched,a)):void 0;return nn(l)&&(l=void 0),nn(c)&&(c=void 0),Kr({},r,{values:s,errors:n?pn(r.errors,a,l):r.errors,touched:t?pn(r.touched,a,c):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(xn(t),[Yr(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=xn(e),i=n[t];return n[t]=n[r],n[r]=i,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=xn(e),i=n[t];return n.splice(t,1),n.splice(r,0,i),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return kn(r,e,t)}),(function(t){return kn(t,e,null)}),(function(t){return kn(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=xn(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t=n.length,n}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Qr(r)),r.pop=r.pop.bind(Qr(r)),r}Xr(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!F()(dn(e.formik.values,e.name),dn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?xn(r):[];return t||(t=n[e]),an(n.splice)&&n.splice(e,1),an(n.every)&&n.every((function(e){return void 0===e}))?[]:n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,i=t.children,a=t.name,o=Kr({},e,{form:$r(t.formik,["validate","validationSchema"]),name:a});return r?(0,R.createElement)(r,o):n?n(o):i?"function"===typeof i?i(o):cn(i)?null:R.Children.only(i):null},t}(R.Component);En.defaultProps={validateOnChange:!0};var On=function(e){function t(){return e.apply(this,arguments)||this}Xr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return dn(this.props.formik.errors,this.props.name)!==dn(e.formik.errors,this.props.name)||dn(this.props.formik.touched,this.props.name)!==dn(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,n=e.render,i=e.children,a=e.name,o=$r(e,["component","formik","render","children","name"]),s=dn(r.touched,a),l=dn(r.errors,a);return s&&l?n?an(n)?n(l):null:i?an(i)?i(l):null:t?(0,R.createElement)(t,o,l):l:null},t}(R.Component),Tn=Sn(On);R.Component},9778:function(e,t,r){"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function _(e,t){return[{usr:e.state,key:e.key,idx:t},b(e)]}function A(e,t,r){return!m.length||(m.call({action:e,location:t,retry:r}),!1)}function C(e){p=e;var t=u();f=t[0],v=t[1],g.call({action:p,location:v})}function w(e){c.go(e)}return null==f&&(f=0,c.replaceState(n({},c.state,{idx:f}),"")),{get action(){return p},get location(){return v},createHref:b,push:function e(t,n){var a=i.Push,o=y(t,n);if(A(a,o,(function(){e(t,n)}))){var s=_(o,f+1),l=s[0],u=s[1];try{c.pushState(l,"",u)}catch(d){r.location.assign(u)}C(a)}},replace:function e(t,r){var n=i.Replace,a=y(t,r);if(A(n,a,(function(){e(t,r)}))){var o=_(a,f),s=o[0],l=o[1];c.replaceState(s,"",l),C(n)}},go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(e){return g.push(e)},block:function(e){var t=m.push(e);return 1===m.length&&r.addEventListener(o,s),function(){t(),m.length||r.removeEventListener(o,s)}}}}()},69061:function(e,t,r){"use strict";var n;r.d(t,{aU:function(){return n}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}))},77531:function(e,t,r){"use strict";var n=r(18625),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={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 n.isMemo(e)?o:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var o=u(r);d&&(o=o.concat(d(r)));for(var s=l(t),v=l(r),g=0;go&&(n=l)}s+1>r.childNodes.length&&(s=r.childNodes.length-1),n||(n=r.childNodes.length);for(var d=s;da)break;p&&8!==p.nodeType&&(t=p)}}return t}(r);if(!n)return{};r.preventDefault(),r.stopPropagation();var a=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"===typeof t)return t.replace(/\n +/g,"").trim()}(n),l=o(n),c=n.getBoundingClientRect?n:n.parentElement,u=c.getBoundingClientRect(),d=u.top,p=u.left,h=u.width,f=u.height,v=window.getComputedStyle(c,null),g=parseFloat(v.getPropertyValue("padding-top")),m=parseFloat(v.getPropertyValue("padding-bottom")),b=parseFloat(v.getPropertyValue("padding-right")),y=parseFloat(v.getPropertyValue("padding-left")),_=v.getPropertyValue("box-sizing");e({tagName:c.tagName,text:a,key:l,ns:s(n)||function(){var e=t.getI18next();if(e&&e.options&&e.options.isLocizify)return e.options.defaultNS}(),box:{top:d,left:p,width:"border-box"===_?h:h-b-y,height:"border-box"===_?f:f-g-m},style:v.cssText})}}r.d(t,{yq:function(){return y}});var c,u,d,p,h,f,v=!0;try{v=self!==top}catch(C){}var g,m=[];function b(e){var t={message:"hrefChanged",href:e};c?c.postMessage(t,u):m.push(t)}var y={type:"3rdParty",init:function(e){g=e,h=function(t){t.updated.forEach((function(t){var r=t.lng,n=t.ns,i=t.key,a=t.data;e.addResource(r,n,i,a.value,{silent:!0}),e.emit("editorSaved")}))},v&&(e.options.missingKeyHandler=function(e,t,r,n,i,a){i||function(e,t,r,n){var i={message:"added",lng:e,ns:t,key:r,value:n};c?c.postMessage(i,u):m.push(i)}(e,t,r,n)}),g.on("languageChanged",(function(e){!function(e){var t={message:"setLng",lng:e};c?c.postMessage(t,u):m.push(t)}(e)}))}};function _(){return g}if("undefined"!==typeof window&&window.addEventListener("message",(function(e){if(e.data&&e.data.message)if("isLocizeEnabled"===e.data.message)c||(c=e.source,u=e.origin,d=l((function(e){c.postMessage({message:"clickedElement",payload:e},u)}),{getI18next:_})),c.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),m.forEach((function(t){c.postMessage(t,e.origin)})),m=[];else if("turnOn"===e.data.message){if(f)return c.postMessage({message:"forcedOff"},u);p||window.document.body.addEventListener("click",d,!0),p=!0,c.postMessage({message:"turnedOn"},u)}else if("turnOff"===e.data.message){if(f)return c.postMessage({message:"forcedOff"},u);p&&window.document.body.removeEventListener("click",d,!0),p=!1,c.postMessage({message:"turnedOff"},u)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),h&&h(t)}})),"undefined"!==typeof window){var A=window.document.location.href;window.addEventListener("load",(function(){b(window.document.location.href);var e=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){A!==window.document.location.href&&b(A=window.document.location.href)}))})).observe(e,{childList:!0,subtree:!0})}))}},70285:function(e,t,r){"use strict";function n(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,o="[^".concat(a(t.delimiter||"/#?"),"]+?"),s=[],l=0,c=0,u="",d=function(e){if(c-1:void 0===k;i||(b+="(?:".concat(m,"(?=").concat(g,"))?")),x||(b+="(?=".concat(m,"|").concat(g,")"))}return new RegExp(b,o(r))}(n(e,r),t,r)}function l(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map((function(e){return l(e,t,r).source}));return new RegExp("(?:".concat(n.join("|"),")"),o(r))}(e,t,r):s(e,t,r)}r.d(t,{EQ:function(){return i}})},50302:function(e,t,r){"use strict";var n=r(21914),i=r(58395);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r