@crystaldesign/media-upload 26.4.0-beta.1 → 26.4.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see media-upload.umd.min.js.LICENSE.txt */
|
|
2
|
-
var CrystaldesignMediaUpload;(()=>{var c,h,g,m,b={9094:(c,h,g)=>{"use strict";g.d(h,{$L:()=>m,Ab:()=>ae,Cq:()=>H,DO:()=>Pe,EC:()=>$,IE:()=>je,Ie:()=>fe,JK:()=>j,JY:()=>me,Ks:()=>Me,Mu:()=>Ce,O5:()=>oe,P5:()=>Be,Q:()=>Le,Qb:()=>Ee,RW:()=>K,Sg:()=>Ie,TU:()=>se,UA:()=>ge,Vm:()=>Oe,W8:()=>re,Wt:()=>be,XM:()=>pe,XZ:()=>De,Xu:()=>te,YI:()=>Te,Yo:()=>N,Yr:()=>ne,_H:()=>ce,dO:()=>de,e$:()=>Ze,e0:()=>Ne,gv:()=>ee,io:()=>I,jK:()=>_,jR:()=>he,k2:()=>ke,m$:()=>we,mU:()=>Fe,nv:()=>Se,nw:()=>xe,o2:()=>Ae,oZ:()=>B,os:()=>S,ot:()=>ve,p4:()=>ue,pS:()=>ze,pm:()=>ie,pn:()=>ye,r9:()=>O,s6:()=>Ge,sG:()=>He,wO:()=>Re,x9:()=>le,x_:()=>b,yw:()=>_e});var m="schedule",b="invoke",S="addEventListener",_=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],O=5e3,I=3e5,j=1e3,B="page-load",N="custom",H="user-interaction",$="http-request",K="temporary",ee="Unknown",te="page-exit",re=[B,"route-change",H,$,N,K],ne="success",oe="failure",ie="unknown",ae=60,se="transaction:start",le="transaction:end",ce="config:change",ue="queue:flush",de="queue:add_transaction",pe="transaction:ignore",fe="xmlhttprequest",he="fetch",ge="history",me="eventtarget",ve="click",ye="error",be=":before",Se=":after",we="elastic_apm_config",xe="longtask",_e="paint",Ce="measure",ke="navigation",Te="resource",Ee="first-contentful-paint",Pe="largest-contentful-paint",Oe="first-input",Ae="layout-shift",Me="event",Ie="errors",Re="transactions",je="ConfigService",De="LoggingService",Be="TransactionService",Le="ApmServer",Ne="PerformanceMonitoring",Fe="ErrorLogging",ze=".truncated",Ze=1024,He=18e5,Ge=1e4},5951:function(c,h,g){var m,b,S;!function(_,O){"use strict";b=[g(8742)],void 0===(S="function"==typeof(m=function ErrorStackParser(c){var h=/(^|@)\S+\:\d+/,g=/^\s*at .*(\S+\:\d+|\(native\))/m,m=/^(eval@)?(\[native code\])?$/;function _map(c,h,g){if("function"==typeof Array.prototype.map)return c.map(h,g);for(var m=new Array(c.length),b=0;b<c.length;b++)m[b]=h.call(g,c[b]);return m}function _filter(c,h,g){if("function"==typeof Array.prototype.filter)return c.filter(h,g);for(var m=[],b=0;b<c.length;b++)h.call(g,c[b])&&m.push(c[b]);return m}function _indexOf(c,h){if("function"==typeof Array.prototype.indexOf)return c.indexOf(h);for(var g=0;g<c.length;g++)if(c[g]===h)return g;return-1}return{parse:function ErrorStackParser$$parse(c){if(void 0!==c.stacktrace||void 0!==c["opera#sourceloc"])return this.parseOpera(c);if(c.stack&&c.stack.match(g))return this.parseV8OrIE(c);if(c.stack)return this.parseFFOrSafari(c);throw new Error("Cannot parse given Error object")},extractLocation:function ErrorStackParser$$extractLocation(c){if(-1===c.indexOf(":"))return[c];var h=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(c.replace(/[\(\)]/g,""));return[h[1],h[2]||void 0,h[3]||void 0]},parseV8OrIE:function ErrorStackParser$$parseV8OrIE(h){return _map(_filter(h.stack.split("\n"),(function(c){return!!c.match(g)}),this),(function(h){h.indexOf("(eval ")>-1&&(h=h.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var g=h.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),m=this.extractLocation(g.pop()),b=g.join(" ")||void 0,S=_indexOf(["eval","<anonymous>"],m[0])>-1?void 0:m[0];return new c(b,void 0,S,m[1],m[2],h)}),this)},parseFFOrSafari:function ErrorStackParser$$parseFFOrSafari(h){return _map(_filter(h.stack.split("\n"),(function(c){return!c.match(m)}),this),(function(h){if(h.indexOf(" > eval")>-1&&(h=h.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===h.indexOf("@")&&-1===h.indexOf(":"))return new c(h);var g=h.split("@"),m=this.extractLocation(g.pop()),b=g.join("@")||void 0;return new c(b,void 0,m[0],m[1],m[2],h)}),this)},parseOpera:function ErrorStackParser$$parseOpera(c){return!c.stacktrace||c.message.indexOf("\n")>-1&&c.message.split("\n").length>c.stacktrace.split("\n").length?this.parseOpera9(c):c.stack?this.parseOpera11(c):this.parseOpera10(c)},parseOpera9:function ErrorStackParser$$parseOpera9(h){for(var g=/Line (\d+).*script (?:in )?(\S+)/i,m=h.message.split("\n"),b=[],S=2,_=m.length;S<_;S+=2){var O=g.exec(m[S]);O&&b.push(new c(void 0,void 0,O[2],O[1],void 0,m[S]))}return b},parseOpera10:function ErrorStackParser$$parseOpera10(h){for(var g=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,m=h.stacktrace.split("\n"),b=[],S=0,_=m.length;S<_;S+=2){var O=g.exec(m[S]);O&&b.push(new c(O[3]||void 0,void 0,O[2],O[1],void 0,m[S]))}return b},parseOpera11:function ErrorStackParser$$parseOpera11(g){return _map(_filter(g.stack.split("\n"),(function(c){return!!c.match(h)&&!c.match(/^Error created at/)}),this),(function(h){var g,m=h.split("@"),b=this.extractLocation(m.pop()),S=m.shift()||"",_=S.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;S.match(/\(([^\)]*)\)/)&&(g=S.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var O=void 0===g||"[arguments not available]"===g?void 0:g.split(",");return new c(_,O,b[0],b[1],b[2],h)}),this)}}})?m.apply(h,b):m)||(c.exports=S)}()},8742:function(c,h){var g,m,b;!function(S,_){"use strict";m=[],void 0===(b="function"==typeof(g=function(){function _isNumber(c){return!isNaN(parseFloat(c))&&isFinite(c)}function StackFrame(c,h,g,m,b,S){void 0!==c&&this.setFunctionName(c),void 0!==h&&this.setArgs(h),void 0!==g&&this.setFileName(g),void 0!==m&&this.setLineNumber(m),void 0!==b&&this.setColumnNumber(b),void 0!==S&&this.setSource(S)}return StackFrame.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(c){this.functionName=String(c)},getArgs:function(){return this.args},setArgs:function(c){if("[object Array]"!==Object.prototype.toString.call(c))throw new TypeError("Args must be an Array");this.args=c},getFileName:function(){return this.fileName},setFileName:function(c){this.fileName=String(c)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(c){if(!_isNumber(c))throw new TypeError("Line Number must be a Number");this.lineNumber=Number(c)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(c){if(!_isNumber(c))throw new TypeError("Column Number must be a Number");this.columnNumber=Number(c)},getSource:function(){return this.source},setSource:function(c){this.source=String(c)},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(",")+")")+(this.getFileName()?"@"+this.getFileName():"")+(_isNumber(this.getLineNumber())?":"+this.getLineNumber():"")+(_isNumber(this.getColumnNumber())?":"+this.getColumnNumber():"")}},StackFrame})?g.apply(h,m):g)||(c.exports=b)}()},9010:(c,h,g)=>{"use strict";function createStackTraces(c,h){var g=h.error,m=h.filename,b=h.lineno,S=h.colno,_=[];if(g)try{_=c.parse(g)}catch(c){}return function isValidStackTrace(c){return 0!==c.length&&(1!==c.length||"lineNumber"in c[0])}(_)||(_=[{fileName:m,lineNumber:b,columnNumber:S}]),function normalizeStackFrames(c){return c.map((function(c){return c.functionName&&(c.functionName=function normalizeFunctionName(c){var h=c.split("/");return c=h.length>1?["Object",h[h.length-1]].join("."):h[0],c=(h=(c=(c=c.replace(/.<$/gi,".<anonymous>")).replace(/^Anonymous function$/,"<anonymous>")).split(".")).length>1?h[h.length-1]:h[0]}(c.functionName)),c}))}(_).map((function(c){var h=c.fileName,g=c.lineNumber,m=c.columnNumber,b=c.functionName,S=void 0===b?"<anonymous>":b;if(!h&&!g)return{};if(!m&&!g)return{};var _=function cleanFilePath(c){return void 0===c&&(c=""),"<anonymous>"===c&&(c=""),c}(h),O=function filePathToFileName(c){var h=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");return c.indexOf(h)>-1&&(c=c.replace(h+"/","")),c}(_);return function isFileInline(c){return!!c&&0===window.location.href.indexOf(c)}(_)&&(O="(inline script)"),{abs_path:h,filename:O,function:S,lineno:g,colno:m}}))}g.d(h,{tu:()=>ot,S1:()=>it});const m=function finallyConstructor(c){var h=this.constructor;return this.then((function(g){return h.resolve(c()).then((function(){return g}))}),(function(g){return h.resolve(c()).then((function(){return h.reject(g)}))}))};const b=function allSettled(c){return new this((function(h,g){if(!c||void 0===c.length)return g(new TypeError(typeof c+" "+c+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var m=Array.prototype.slice.call(c);if(0===m.length)return h([]);var b=m.length;function res(c,g){if(g&&("object"==typeof g||"function"==typeof g)){var S=g.then;if("function"==typeof S)return void S.call(g,(function(h){res(c,h)}),(function(g){m[c]={status:"rejected",reason:g},0==--b&&h(m)}))}m[c]={status:"fulfilled",value:g},0==--b&&h(m)}for(var S=0;S<m.length;S++)res(S,m[S])}))};var S=g(5108),_=setTimeout;function isArray(c){return Boolean(c&&void 0!==c.length)}function noop(){}function Promise(c){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if("function"!=typeof c)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],doResolve(c,this)}function handle(c,h){for(;3===c._state;)c=c._value;0!==c._state?(c._handled=!0,Promise._immediateFn((function(){var g=1===c._state?h.onFulfilled:h.onRejected;if(null!==g){var m;try{m=g(c._value)}catch(c){return void reject(h.promise,c)}resolve(h.promise,m)}else(1===c._state?resolve:reject)(h.promise,c._value)}))):c._deferreds.push(h)}function resolve(c,h){try{if(h===c)throw new TypeError("A promise cannot be resolved with itself.");if(h&&("object"==typeof h||"function"==typeof h)){var g=h.then;if(h instanceof Promise)return c._state=3,c._value=h,void finale(c);if("function"==typeof g)return void doResolve(function bind(c,h){return function(){c.apply(h,arguments)}}(g,h),c)}c._state=1,c._value=h,finale(c)}catch(h){reject(c,h)}}function reject(c,h){c._state=2,c._value=h,finale(c)}function finale(c){2===c._state&&0===c._deferreds.length&&Promise._immediateFn((function(){c._handled||Promise._unhandledRejectionFn(c._value)}));for(var h=0,g=c._deferreds.length;h<g;h++)handle(c,c._deferreds[h]);c._deferreds=null}function Handler(c,h,g){this.onFulfilled="function"==typeof c?c:null,this.onRejected="function"==typeof h?h:null,this.promise=g}function doResolve(c,h){var g=!1;try{c((function(c){g||(g=!0,resolve(h,c))}),(function(c){g||(g=!0,reject(h,c))}))}catch(c){if(g)return;g=!0,reject(h,c)}}Promise.prototype.catch=function(c){return this.then(null,c)},Promise.prototype.then=function(c,h){var g=new this.constructor(noop);return handle(this,new Handler(c,h,g)),g},Promise.prototype.finally=m,Promise.all=function(c){return new Promise((function(h,g){if(!isArray(c))return g(new TypeError("Promise.all accepts an array"));var m=Array.prototype.slice.call(c);if(0===m.length)return h([]);var b=m.length;function res(c,S){try{if(S&&("object"==typeof S||"function"==typeof S)){var _=S.then;if("function"==typeof _)return void _.call(S,(function(h){res(c,h)}),g)}m[c]=S,0==--b&&h(m)}catch(c){g(c)}}for(var S=0;S<m.length;S++)res(S,m[S])}))},Promise.allSettled=b,Promise.resolve=function(c){return c&&"object"==typeof c&&c.constructor===Promise?c:new Promise((function(h){h(c)}))},Promise.reject=function(c){return new Promise((function(h,g){g(c)}))},Promise.race=function(c){return new Promise((function(h,g){if(!isArray(c))return g(new TypeError("Promise.race accepts an array"));for(var m=0,b=c.length;m<b;m++)Promise.resolve(c[m]).then(h,g)}))},Promise._immediateFn="function"==typeof setImmediate&&function(c){setImmediate(c)}||function(c){_(c,0)},Promise._unhandledRejectionFn=function _unhandledRejectionFn(c){void 0!==S&&S&&S.warn("Possible Unhandled Promise Rejection:",c)};const O=Promise;var I={};N?I=window:"undefined"!=typeof self&&(I=self);var j="Promise"in I?I.Promise:O,B=[].slice,N="undefined"!=typeof window,H=N&&"undefined"!=typeof performance?performance:{};for(var $=[],K=0;K<256;++K)$[K]=(K+256).toString(16).substr(1);var ee=new Uint8Array(16);function generateRandomId(c){return function bytesToHex(c){for(var h=[],g=0;g<c.length;g++)h.push($[c[g]]);return h.join("")}(function rng(){return"undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues(ee):"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues?msCrypto.getRandomValues(ee):ee}()).substr(0,c)}function setRequestHeader(c,h,g){"function"==typeof c.setRequestHeader?c.setRequestHeader(h,g):c.headers&&"function"==typeof c.headers.append?c.headers.append(h,g):c[h]=g}function checkSameOrigin(c,h){var g=!1;return"string"==typeof h?g=c===h:h&&"function"==typeof h.test?g=h.test(c):Array.isArray(h)&&h.forEach((function(h){g||(g=checkSameOrigin(c,h))})),g}function isPlatformSupported(){return N&&"function"==typeof Set&&"function"==typeof JSON.stringify&&H&&"function"==typeof H.now&&function isCORSSupported(){return"withCredentials"in new window.XMLHttpRequest}()}function setLabel(c,h,g){if(g&&c){var m=removeInvalidChars(c),b=typeof h;return null!=h&&"boolean"!==b&&"number"!==b&&(h=String(h)),g[m]=h,g}}function stripQueryStringFromUrl(c){return c&&c.split("?")[0]}function isObject(c){return null!==c&&"object"==typeof c}function baseExtend(c,h,g){for(var m=0,b=h.length;m<b;++m){var S=h[m];if(isObject(S)||"function"==typeof S)for(var _=Object.keys(S),O=0,I=_.length;O<I;O++){var j=_[O],B=S[j];g&&isObject(B)?(isObject(c[j])||(c[j]=Array.isArray(B)?[]:{}),baseExtend(c[j],[B],!1)):c[j]=B}}return c}function getCurrentScript(){if("undefined"!=typeof document){var c=document.currentScript;return c||function getElasticScript(){if("undefined"!=typeof document)for(var c=document.getElementsByTagName("script"),h=0,g=c.length;h<g;h++){var m=c[h];if(m.src.indexOf("elastic")>0)return m}}()}}function extend(){return baseExtend(Object.create(null),B.call(arguments),!1)}function merge(){return baseExtend(Object.create(null),B.call(arguments),!0)}function isUndefined(c){return void 0===c}function utils_noop(){}function removeInvalidChars(c){return c.replace(/[.*"]/g,"_")}function getLatestSpan(c,h){for(var g=null,m=0;m<c.length;m++){var b=c[m];h&&h(b.type)&&(!g||g._end<b._end)&&(g=b)}return g}function now(){return H.now()}function getTime(c){return"number"==typeof c&&c>=0?c:now()}function getDuration(c,h){return isUndefined(h)||isUndefined(c)?null:parseInt(h-c)}function scheduleMicroTask(c){j.resolve().then(c)}function isPerfTimelineSupported(){return"function"==typeof H.getEntriesByType}function isPerfTypeSupported(c){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(c)>=0}function isPerfInteractionCountSupported(){return"interactionCount"in performance}function isRedirectInfoAvailable(c){return c.redirectStart>0}var te=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],re=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,ne=function(){function Url(c){var h,g=this.extractProtocol(c||""),m=g.protocol,b=g.address,S=g.slashes,_=!m&&!S,O=this.getLocation(),I=te.slice();b=b.replace("\\","/"),S||(I[2]=[NaN,"path"]);for(var j=0;j<I.length;j++){var B=I[j],N=B[0],H=B[1];if("string"==typeof N){if(~(h=b.indexOf(N))){var $=B[2];if($){var K=b.lastIndexOf(N);h=Math.max(h,K),this[H]=b.slice(0,h),b=b.slice(h+$)}else this[H]=b.slice(h),b=b.slice(0,h)}}else this[H]=b,b="";this[H]=this[H]||_&&B[3]&&O[H]||"",B[3]&&(this[H]=this[H].toLowerCase())}if(_&&"/"!==this.path.charAt(0)&&(this.path="/"+this.path),this.relative=_,this.protocol=m||O.protocol,this.hostname=this.host,this.port="",/:\d+$/.test(this.host)){var ee=this.host.split(":"),re=ee.pop(),ne=ee.join(":");!function isDefaultPort(c,h){switch(h){case"http:":return"80"===c;case"https:":return"443"===c}return!0}(re,this.protocol)?this.port=re:this.host=ne,this.hostname=ne}this.origin=this.protocol&&this.host&&"file:"!==this.protocol?this.protocol+"//"+this.host:"null",this.href=this.toString()}var c=Url.prototype;return c.toString=function toString(){var c=this.protocol;if(c+="//",this.auth){var h="[REDACTED]",g=this.auth.split(":");c+=(g[0]?h:"")+(g[1]?":"+h:"")+"@"}return c+=this.host,c+=this.path,c+=this.query,c+=this.hash},c.getLocation=function getLocation(){var c={};return N&&(c=window),c.location},c.extractProtocol=function extractProtocol(c){var h=re.exec(c);return{protocol:h[1]?h[1].toLowerCase():"",slashes:!!h[2],address:h[3]}},Url}();var oe=g(9094),ie=["tags"];function getResponseContext(c){var h={transfer_size:c.transferSize,encoded_body_size:c.encodedBodySize,decoded_body_size:c.decodedBodySize},g=function getServerTimingInfo(c){void 0===c&&(c=[]);for(var h=[],g=0;g<c.length;g++){var m=c[g],b=m.name,S=m.duration,_=m.description,O=b;_&&(O+=";desc="+_),S&&(O+=";dur="+S),h.push(O)}return h.join(", ")}(c.serverTiming);return g&&(h.headers={"server-timing":g}),h}function getDestination(c){var h=c.port,g=c.protocol,m=c.hostname,b=function getPortNumber(c,h){return""===c&&(c="http:"===h?"80":"https:"===h?"443":""),c}(h,g),S=91===m.charCodeAt(0)&&93===m.charCodeAt(m.length-1),_=m;return S&&(_=m.slice(1,-1)),{service:{resource:m+":"+b,name:"",type:""},address:_,port:Number(b)}}function getPageContext(){return{page:{referer:document.referrer,url:location.href}}}function addSpanContext(c,h){if(h){var g;switch(c.type){case"external":g=function getExternalContext(c){var h,g=c.url,m=c.method,b=c.target,S=c.response,_=new ne(g),O=getDestination(_),I={http:{method:m,url:_.href},destination:O};return b&&void 0!==b.status?h=b.status:S&&(h=S.status),I.http.status_code=h,I}(h);break;case"resource":g=function getResourceContext(c){var h=c.entry,g=c.url,m=getDestination(new ne(g));return{http:{url:g,response:getResponseContext(h)},destination:m}}(h);break;case"hard-navigation":g=function getNavigationContext(c){var h=c.url;return{destination:getDestination(new ne(h))}}(h)}c.addContext(g)}}function addTransactionContext(c,h){var g=void 0===h?{}:h,m=(g.tags,function _objectWithoutPropertiesLoose(c,h){if(null==c)return{};var g,m,b={},S=Object.keys(c);for(m=0;m<S.length;m++)g=S[m],h.indexOf(g)>=0||(b[g]=c[g]);return b}(g,ie)),b=getPageContext(),S={};if(c.type===oe.Xu)c.ensureContext(),c.context.page&&c.context.page.url&&(b.page.url=c.context.page.url);else if(c.type===oe.oZ&&isPerfTimelineSupported()){var _=H.getEntriesByType(oe.k2);_&&_.length>0&&(S={response:getResponseContext(_[0])})}c.addContext(b,S,m)}var ae={service:{name:[oe.e$,!0],version:!0,agent:{version:[oe.e$,!0]},environment:!0},labels:{"*":!0}},se={"*":!0,headers:{"*":!0}},le={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:se},destination:{address:[oe.e$],service:{"*":[oe.e$,!0]}},response:se},ce={name:[oe.e$,!0],type:[oe.e$,!0],id:[oe.e$,!0],trace_id:[oe.e$,!0],parent_id:[oe.e$,!0],transaction_id:[oe.e$,!0],subtype:!0,action:!0,context:le},ue={name:!0,parent_id:!0,type:[oe.e$,!0],id:[oe.e$,!0],trace_id:[oe.e$,!0],span_count:{started:[oe.e$,!0]},context:le},de={id:[oe.e$,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:le};function isEmpty(c){return null==c||""===c||void 0===c}function replaceValue(c,h,g){var m=function truncate(c,h,g,m){return void 0===h&&(h=oe.e$),void 0===g&&(g=!1),void 0===m&&(m="N/A"),g&&isEmpty(c)&&(c=m),"string"==typeof c?c.substring(0,h):c}(c[h],g[0],g[1]);isEmpty(m)?delete c[h]:c[h]=m}function truncateModel(c,h,g){void 0===c&&(c={}),void 0===g&&(g=h);for(var m=Object.keys(c),b=[],S=function _loop(S){var _=m[S],O=!0===c[_]?b:c[_];Array.isArray(O)?"*"===_?Object.keys(g).forEach((function(c){return replaceValue(g,c,O)})):replaceValue(g,_,O):truncateModel(O,h,g[_])},_=0;_<m.length;_++)S(_);return h}var pe=g(5951),fe=g.n(pe),he=["tags"];var ge=["stack","message"],me="Unhandled promise rejection: ";var ve=function(){function ErrorLogging(c,h,g){this._apmServer=c,this._configService=h,this._transactionService=g}var c=ErrorLogging.prototype;return c.createErrorDataModel=function createErrorDataModel(c,h){var g=function filterInvalidFrames(c){return c.filter((function(c){var h=c.filename,g=c.lineno;return void 0!==h&&void 0!==g}))}(createStackTraces(fe(),c)),m="(inline script)",b=g[g.length-1];b&&b.filename&&(m=b.filename);var S=c.message,_=c.error,O=S,I="",j={};if(_&&"object"==typeof _){O=O||_.message,I=_.name;var B=function getErrorProperties(c){var h=!1,g={};if(Object.keys(c).forEach((function(m){if(!(ge.indexOf(m)>=0)){var b=c[m];if(null!=b&&"function"!=typeof b){if("object"==typeof b){if("function"!=typeof b.toISOString)return;b=b.toISOString()}g[m]=b,h=!0}}})),h)return g}(_);B&&(j.custom=B)}if(h&&h.labels){var N=Object.keys(h.labels);j.tags={},N.forEach((function(c){return setLabel(c,h.labels[c],j.tags)}))}I||O&&O.indexOf(":")>-1&&(I=O.split(":")[0]);var H=this._transactionService.getCurrentTransaction(),$=H?H.context:{},K=this._configService.get("context"),ee=(K.tags,function error_logging_objectWithoutPropertiesLoose(c,h){if(null==c)return{};var g,m,b={},S=Object.keys(c);for(m=0;m<S.length;m++)g=S[m],h.indexOf(g)>=0||(b[g]=c[g]);return b}(K,he)),te=merge({},getPageContext(),$,ee,j),re={id:generateRandomId(),culprit:m,exception:{message:O,stacktrace:g,type:I},context:te};return H&&(re=extend(re,{trace_id:H.traceId,parent_id:H.id,transaction_id:H.id,transaction:{type:H.type,sampled:H.sampled}})),truncateModel(de,re)},c.logErrorEvent=function logErrorEvent(c,h){if(void 0!==c){var g=this.createErrorDataModel(c,h);void 0!==g.exception.message&&this._apmServer.addError(g)}},c.registerListeners=function registerListeners(){var c=this;window.addEventListener("error",(function(h){return c.logErrorEvent(h)})),window.addEventListener("unhandledrejection",(function(h){return c.logPromiseEvent(h)}))},c.logPromiseEvent=function logPromiseEvent(c){var h,g=c.reason;if(null==g&&(g="<no reason specified>"),"string"==typeof g.message){var m=g.name?g.name+": ":"";h={error:g,message:me+m+g.message}}else h=this._parseRejectReason(g);this.logErrorEvent(h)},c.logError=function logError(c,h){var g={};return"string"==typeof c?g.message=c:g.error=c,this.logErrorEvent(g,h)},c._parseRejectReason=function _parseRejectReason(c){var h={message:me};if(Array.isArray(c))h.message+="<object>";else if("object"==typeof c)try{h.message+=JSON.stringify(c),h.error=c}catch(c){h.message+="<object>"}else h.message+="function"==typeof c?"<function>":c;return h},ErrorLogging}();const ye=ve;const be=function(){function Queue(c,h){void 0===h&&(h={}),this.onFlush=c,this.items=[],this.queueLimit=h.queueLimit||-1,this.flushInterval=h.flushInterval||0,this.timeoutId=void 0}var c=Queue.prototype;return c._setTimer=function _setTimer(){var c=this;this.timeoutId=setTimeout((function(){return c.flush()}),this.flushInterval)},c._clear=function _clear(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},c.flush=function flush(){this.onFlush(this.items),this._clear()},c.add=function add(c){this.items.push(c),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},Queue}();const Se=function(){function NDJSON(){}return NDJSON.stringify=function stringify(c){return JSON.stringify(c)+"\n"},NDJSON}();var we=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],xe=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function getPageLoadMarks(c){var h=function getNavigationTimingMarks(c){var h=c.redirectStart,g=c.fetchStart,m=c.navigationStart,b=c.responseStart,S=c.responseEnd;if(g>=m&&b>=g&&S>=b){var _={};return we.forEach((function(m){var b=c[m];b&&b>=g&&(isRedirectInfoAvailable(c)?_[m]=parseInt(b-h):_[m]=parseInt(b-g))})),_}return null}(c);return null==h?null:{navigationTiming:h,agent:{timeToFirstByte:h.responseStart,domInteractive:h.domInteractive,domComplete:h.domComplete}}}function compressResponse(c){return{ts:c.transfer_size,ebs:c.encoded_body_size,dbs:c.decoded_body_size}}function compressContext(c){if(!c)return null;var h={},g=c.page,m=c.http,b=c.response,S=c.destination,_=c.user,O=c.custom;if(g&&(h.p={rf:g.referer,url:g.url}),m&&(h.h=function compressHTTP(c){var h={},g=c.method,m=c.status_code,b=c.url,S=c.response;return h.url=b,g&&(h.mt=g),m&&(h.sc=m),S&&(h.r=compressResponse(S)),h}(m)),b&&(h.r=compressResponse(b)),S){var I=S.service;h.dt={se:{n:I.name,t:I.type,rc:I.resource},ad:S.address,po:S.port}}return _&&(h.u={id:_.id,un:_.username,em:_.email}),O&&(h.cu=O),h}function compressMarks(c){if(!c)return null;var h=function compressNavigationTimingMarks(c){if(!c)return null;var h={};return xe.forEach((function(g,m){var b=we[m];h[g]=c[b]})),h}(c.navigationTiming);return{nt:h,a:compressAgentMarks(h,c.agent)}}function compressAgentMarks(c,h){var g={};if(c&&(g={fb:c.rs,di:c.di,dc:c.dc}),h){var m=h.firstContentfulPaint,b=h.largestContentfulPaint;m&&(g.fp=m),b&&(g.lp=b)}return 0===Object.keys(g).length?null:g}function compressPayload(c,h){void 0===h&&(h="gzip");var g="function"==typeof CompressionStream;return new j((function(m){if(!g)return m(c);if(function isBeaconInspectionEnabled(){var c="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(c))return!0;if(!window.URL||!window.URLSearchParams)return!1;try{var h=new URL(window.location.href).searchParams.has(c);return h&&sessionStorage.setItem(c,!0),h}catch(c){}return!1}())return m(c);var b=c.payload,S=c.headers,_=c.beforeSend,O=new Blob([b]).stream().pipeThrough(new CompressionStream(h));return new Response(O).blob().then((function(c){return S["Content-Encoding"]=h,m({payload:c,headers:S,beforeSend:_})}))}))}var _e=!1,Ce={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER};function isResponseSuccessful(c){return!(0===c||c>399&&c<600)}function _extends(){return _extends=Object.assign||function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},_extends.apply(this,arguments)}function shouldUseFetchWithKeepAlive(c,h){if(!isFetchSupported())return!1;if(!("keepalive"in new Request("")))return!1;var g=function calculateSize(c){if(!c)return 0;if(c instanceof Blob)return c.size;return new Blob([c]).size}(h);return"POST"===c&&g<6e4}function isFetchSupported(){return"function"==typeof window.fetch&&"function"==typeof window.Request}var ke={fetchInProgress:!1};function apmSymbol(c){return"__apm_symbol__"+c}function patchMethod(c,h,g){for(var m=c;m&&!m.hasOwnProperty(h);)m=Object.getPrototypeOf(m);!m&&c[h]&&(m=c);var b,S=apmSymbol(h);if(m&&!(b=m[S])&&(b=m[S]=m[h],function isPropertyWritable(c){return!c||!1!==c.writable&&!("function"==typeof c.get&&void 0===c.set)}(m&&Object.getOwnPropertyDescriptor(m,h)))){var _=g(b,S,h);m[h]=function(){return _(this,arguments)},function attachOriginToPatched(c,h){c[apmSymbol("OriginalDelegate")]=h}(m[h],b)}return b}var Te=apmSymbol("xhrIgnore"),Ee=apmSymbol("xhrSync"),Pe=apmSymbol("xhrURL"),Oe=apmSymbol("xhrMethod");function sendXHR(c,h,g){var m=g.timeout,b=void 0===m?HTTP_REQUEST_TIMEOUT:m,S=g.payload,_=g.headers,O=g.beforeSend,I=g.sendCredentials;return new j((function(g,m){var j=new window.XMLHttpRequest;if(j[Te]=!0,j.open(c,h,!0),j.timeout=b,j.withCredentials=I,_)for(var B in _)_.hasOwnProperty(B)&&j.setRequestHeader(B,_[B]);j.onreadystatechange=function(){if(4===j.readyState){var c=j.status,b=j.responseText;isResponseSuccessful(c)?g(j):m({url:h,status:c,responseText:b})}},j.onerror=function(){var c=j.status,g=j.responseText;m({url:h,status:c,responseText:g})};var N=!0;"function"==typeof O&&(N=O({url:h,method:c,headers:_,payload:S,xhr:j})),N?j.send(S):m({url:h,status:0,responseText:"Request rejected by user configuration."})}))}var Ae=function(){function ApmServer(c,h){this._configService=c,this._loggingService=h,this.queue=void 0,this.throttleEvents=utils_noop}var c=ApmServer.prototype;return c.init=function init(){var c=this,h=this._configService.get("queueLimit"),g=this._configService.get("flushInterval"),m=this._configService.get("eventsLimit");this.queue=new be((function onFlush(h){var g=c.sendEvents(h);g&&g.catch((function(h){c._loggingService.warn("Failed sending events!",c._constructError(h))}))}),{queueLimit:h,flushInterval:g}),this.throttleEvents=function throttle(c,h,g){var m,b=this,S=g.limit,_=g.interval,O=0;return function(){return O++,void 0===m&&(m=setTimeout((function(){O=0,m=void 0}),_)),O>S&&"function"==typeof h?h.apply(b,arguments):c.apply(b,arguments)}}(this.queue.add.bind(this.queue),(function(){return c._loggingService.warn("Dropped events due to throttling!")}),{limit:m,interval:6e4}),this._configService.observeEvent(oe.p4,(function(){c.queue.flush()}))},c._postJson=function _postJson(c,h){var g=this,m={payload:h,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return compressPayload(m).catch((function(c){return m})).then((function(h){return g._makeHttpRequest("POST",c,h)})).then((function(c){return c.responseText}))},c._constructError=function _constructError(c){var h=c.url,g=c.status;c.responseText;if(void 0===g)return c;var m=h+" HTTP status: "+g;return new Error(m)},c._makeHttpRequest=function _makeHttpRequest(c,h,g){var m=void 0===g?{}:g,b=m.timeout,S=void 0===b?oe.s6:b,_=m.payload,O=m.headers,I=m.beforeSend,j=this._configService.get("sendCredentials");return!I&&shouldUseFetchWithKeepAlive(c,_)?function sendFetchRequest(c,h,g){var m,b=g.keepalive,S=void 0!==b&&b,_=g.timeout,O=void 0===_?oe.s6:_,I=g.payload,j=g.headers,B=g.sendCredentials,N={};if("function"==typeof AbortController){var H=new AbortController;N.signal=H.signal,setTimeout((function(){return H.abort()}),O)}return window.fetch(h,_extends({body:I,headers:j,method:c,keepalive:S,credentials:B?"include":"omit"},N)).then((function(c){return(m=c).text()})).then((function(c){var g={url:h,status:m.status,responseText:c};if(!isResponseSuccessful(m.status))throw g;return g}))}(c,h,{keepalive:!0,timeout:S,payload:_,headers:O,sendCredentials:j}).catch((function(g){if(g instanceof TypeError)return sendXHR(c,h,{timeout:S,payload:_,headers:O,beforeSend:I,sendCredentials:j});throw g})):sendXHR(c,h,{timeout:S,payload:_,headers:O,beforeSend:I,sendCredentials:j})},c.fetchConfig=function fetchConfig(c,h){var g=this,m=this.getEndpoints().configEndpoint;if(!c)return j.reject("serviceName is required for fetching central config.");m+="?service.name="+c,h&&(m+="&service.environment="+h);var b=this._configService.getLocalConfig();b&&(m+="&ifnonematch="+b.etag);var S=this._configService.get("apmRequest");return this._makeHttpRequest("GET",m,{timeout:5e3,beforeSend:S}).then((function(c){var h=c.status,m=c.responseText;if(304===h)return b;var S=JSON.parse(m),_=c.getResponseHeader("etag");return _&&(S.etag=_.replace(/["]/g,""),g._configService.setLocalConfig(S,!0)),S})).catch((function(c){var h=g._constructError(c);return j.reject(h)}))},c.createMetaData=function createMetaData(){var c=this._configService,h={service:{name:c.get("serviceName"),version:c.get("serviceVersion"),agent:{name:"rum-js",version:c.version},language:{name:"javascript"},environment:c.get("environment")},labels:c.get("context.tags")};return truncateModel(ae,h)},c.addError=function addError(c){var h;this.throttleEvents(((h={})[oe.Sg]=c,h))},c.addTransaction=function addTransaction(c){var h;this.throttleEvents(((h={})[oe.wO]=c,h))},c.ndjsonErrors=function ndjsonErrors(c,h){var g=h?"e":"error";return c.map((function(c){var m;return Se.stringify(((m={})[g]=h?function compressError(c){var h,g=c.exception,m={id:c.id,cl:c.culprit,ex:{mg:g.message,st:(h=g.stacktrace,h.map((function(c){return{ap:c.abs_path,f:c.filename,fn:c.function,li:c.lineno,co:c.colno}}))),t:c.type},c:compressContext(c.context)},b=c.transaction;return b&&(m.tid=c.trace_id,m.pid=c.parent_id,m.xid=c.transaction_id,m.x={t:b.type,sm:b.sampled}),m}(c):c,m))}))},c.ndjsonMetricsets=function ndjsonMetricsets(c){return c.map((function(c){return Se.stringify({metricset:c})})).join("")},c.ndjsonTransactions=function ndjsonTransactions(c,h){var g=this,m=h?"x":"transaction";return c.map((function(c){var b,S="",_="";return h||(c.spans&&(S=c.spans.map((function(c){return Se.stringify({span:c})})).join(""),delete c.spans),c.breakdown&&(_=g.ndjsonMetricsets(c.breakdown),delete c.breakdown)),Se.stringify(((b={})[m]=h?function compressTransaction(c){var h,g=c.spans.map((function(h){var g={id:h.id,n:h.name,t:h.type,s:h.start,d:h.duration,c:compressContext(h.context),o:h.outcome,sr:h.sample_rate};return h.parent_id!==c.id&&(g.pid=h.parent_id),!0===h.sync&&(g.sy=!0),h.subtype&&(g.su=h.subtype),h.action&&(g.ac=h.action),g})),m={id:c.id,pid:c.parent_id,tid:c.trace_id,n:c.name,t:c.type,d:c.duration,c:compressContext(c.context),k:compressMarks(c.marks),me:(h=c.breakdown,h.map((function(c){var h=c.span,g=c.samples;return{y:{t:h.type},sa:{ysc:{v:g["span.self_time.count"].value},yss:{v:g["span.self_time.sum.us"].value}}}}))),y:g,yc:{sd:g.length},sm:c.sampled,sr:c.sample_rate,o:c.outcome};if(c.experience){var b=c.experience,S=b.cls,_=b.fid,O=b.tbt,I=b.longtask;m.exp={cls:S,fid:_,tbt:O,lt:I}}if(c.session){var j=c.session,B=j.id,N=j.sequence;m.ses={id:B,seq:N}}return m}(c):c,b))+S+_}))},c.sendEvents=function sendEvents(c){var h,g;if(0!==c.length){for(var m=[],b=[],S=0;S<c.length;S++){var _=c[S];_[oe.wO]&&m.push(_[oe.wO]),_[oe.Sg]&&b.push(_[oe.Sg])}if(0!==m.length||0!==b.length){var O=this._configService,I=((h={})[oe.wO]=m,h[oe.Sg]=b,h),j=O.applyFilters(I);if(j){var B=O.get("apiVersion")>2,N=[],H=this.createMetaData(),$=B?"m":"metadata";N.push(Se.stringify(((g={})[$]=B?function compressMetadata(c){var h=c.service,g=c.labels,m=h.agent,b=h.language;return{se:{n:h.name,ve:h.version,a:{n:m.name,ve:m.version},la:{n:b.name},en:h.environment},l:g}}(H):H,g)));var K=(N=N.concat(this.ndjsonErrors(j[oe.Sg],B),this.ndjsonTransactions(j[oe.wO],B))).join(""),ee=this.getEndpoints().intakeEndpoint;return this._postJson(ee,K)}this._loggingService.warn("Dropped payload due to filtering!")}}},c.getEndpoints=function getEndpoints(){var c=this._configService.get("serverUrl"),h=this._configService.get("apiVersion");return{intakeEndpoint:c+(this._configService.get("serverUrlPrefix")||"/intake/v"+h+"/rum/events"),configEndpoint:c+"/config/v1/rum/agents"}},ApmServer}();const Me=Ae;var Ie=g(5108);const Re=function(){function EventHandler(){this.observers={}}var c=EventHandler.prototype;return c.observe=function observe(c,h){var g=this;if("function"==typeof h)return this.observers[c]||(this.observers[c]=[]),this.observers[c].push(h),function(){var m=g.observers[c].indexOf(h);m>-1&&g.observers[c].splice(m,1)}},c.sendOnly=function sendOnly(c,h){var g=this.observers[c];g&&g.forEach((function(c){try{c.apply(void 0,h)}catch(c){Ie.log(c,c.stack)}}))},c.send=function send(c,h){this.sendOnly(c+oe.Wt,h),this.sendOnly(c,h),this.sendOnly(c+oe.nv,h)},EventHandler}();function config_service_extends(){return config_service_extends=Object.assign||function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},config_service_extends.apply(this,arguments)}var je=function(){function Config(){this.config={serviceName:"",serviceVersion:"",environment:"",serverUrl:"http://localhost:8200",serverUrlPrefix:"",active:!0,instrument:!0,disableInstrumentations:[],logLevel:"warn",breakdownMetrics:!1,ignoreTransactions:[],eventsLimit:80,queueLimit:-1,flushInterval:500,distributedTracing:!0,distributedTracingOrigins:[],distributedTracingHeaderName:"traceparent",pageLoadTraceId:"",pageLoadSpanId:"",pageLoadSampled:!1,pageLoadParentId:"",pageLoadTransactionName:"",propagateTracestate:!1,transactionSampleRate:1,centralConfig:!1,monitorLongtasks:!0,apiVersion:2,context:{},session:!1,apmRequest:null,sendCredentials:!1},this.events=new Re,this.filters=[],this.version=""}var c=Config.prototype;return c.init=function init(){var c=function getConfigFromScript(){var c=function getDataAttributesFromNode(c){if(!c)return{};for(var h={},g=/^data-([\w-]+)$/,m=c.attributes,b=0;b<m.length;b++){var S=m[b];g.test(S.nodeName)&&(h[S.nodeName.match(g)[1].split("-").map((function(c,h){return h>0?c.charAt(0).toUpperCase()+c.substring(1):c})).join("")]=S.value||S.nodeValue)}return h}(getCurrentScript());return c}();this.setConfig(c)},c.setVersion=function setVersion(c){this.version=c},c.addFilter=function addFilter(c){if("function"!=typeof c)throw new Error("Argument to must be function");this.filters.push(c)},c.applyFilters=function applyFilters(c){for(var h=0;h<this.filters.length;h++)if(!(c=this.filters[h](c)))return;return c},c.get=function get(c){return c.split(".").reduce((function(c,h){return c&&c[h]}),this.config)},c.setUserContext=function setUserContext(c){void 0===c&&(c={});var h={},g=c,m=g.id,b=g.username,S=g.email;"number"!=typeof m&&"string"!=typeof m||(h.id=m),"string"==typeof b&&(h.username=b),"string"==typeof S&&(h.email=S),this.config.context.user=extend(this.config.context.user||{},h)},c.setCustomContext=function setCustomContext(c){void 0===c&&(c={}),this.config.context.custom=extend(this.config.context.custom||{},c)},c.addLabels=function addLabels(c){var h=this;this.config.context.tags||(this.config.context.tags={}),Object.keys(c).forEach((function(g){return setLabel(g,c[g],h.config.context.tags)}))},c.setConfig=function setConfig(c){void 0===c&&(c={});var h=c,g=h.transactionSampleRate,m=h.serverUrl;m&&(c.serverUrl=m.replace(/\/+$/,"")),isUndefined(g)||(g<1e-4&&g>0&&(g=1e-4),c.transactionSampleRate=Math.round(1e4*g)/1e4),this.config=merge(this.config,c),this.events.send(oe._H,[this.config])},c.validate=function validate(c){void 0===c&&(c={});var h=["serviceName","serverUrl"],g=Object.keys(this.config),m={missing:[],invalid:[],unknown:[]};Object.keys(c).forEach((function(b){-1===h.indexOf(b)||c[b]||m.missing.push(b),-1===g.indexOf(b)&&m.unknown.push(b)})),c.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(c.serviceName)&&m.invalid.push({key:"serviceName",value:c.serviceName,allowed:"a-z, A-Z, 0-9, _, -, <space>"});var b=c.transactionSampleRate;return void 0!==b&&("number"!=typeof b||isNaN(b)||b<0||b>1)&&m.invalid.push({key:"transactionSampleRate",value:b,allowed:"Number between 0 and 1"}),m},c.getLocalConfig=function getLocalConfig(){var c=sessionStorage;this.config.session&&(c=localStorage);var h=c.getItem(oe.m$);if(h)return JSON.parse(h)},c.setLocalConfig=function setLocalConfig(c,h){if(c){if(h)c=config_service_extends({},this.getLocalConfig(),c);var g=sessionStorage;this.config.session&&(g=localStorage),g.setItem(oe.m$,JSON.stringify(c))}},c.dispatchEvent=function dispatchEvent(c,h){this.events.send(c,h)},c.observeEvent=function observeEvent(c,h){return this.events.observe(c,h)},Config}();const De=je;var Be=g(5108);const Le=function(){function LoggingService(c){void 0===c&&(c={}),this.levels=["trace","debug","info","warn","error"],this.level=c.level||"warn",this.prefix=c.prefix||"",this.resetLogMethods()}var c=LoggingService.prototype;return c.shouldLog=function shouldLog(c){return this.levels.indexOf(c)>=this.levels.indexOf(this.level)},c.setLevel=function setLevel(c){c!==this.level&&(this.level=c,this.resetLogMethods())},c.resetLogMethods=function resetLogMethods(){var c=this;this.levels.forEach((function(h){c[h]=c.shouldLog(h)?function log(){var c=h;"trace"!==h&&"debug"!==h||(c="info");var g=arguments;if(g[0]=this.prefix+g[0],Be){var m=Be[c]||Be.log;"function"==typeof m&&m.apply(Be,g)}}:utils_noop}))},LoggingService}();g(5108);var Ne,Fe=((Ne={})[oe.IE]=function(){return new De},Ne[oe.XZ]=function(){return new Le({prefix:"[Elastic APM] "})},Ne[oe.Q]=function(c){var h=c.getService([oe.IE,oe.XZ]),g=h[0],m=h[1];return new Me(g,m)},Ne),ze=function(){function ServiceFactory(){this.instances={},this.initialized=!1}var c=ServiceFactory.prototype;return c.init=function init(){if(!this.initialized){this.initialized=!0;var c=this.getService(oe.IE);c.init();var h=this.getService([oe.XZ,oe.Q]),g=h[0],m=h[1];c.events.observe(oe._H,(function(){var h=c.get("logLevel");g.setLevel(h)})),m.init()}},c.getService=function getService(c){var h=this;return"string"==typeof c?(this.instances[c]||"function"==typeof Fe[c]&&(this.instances[c]=Fe[c](this)),this.instances[c]):Array.isArray(c)?c.map((function(c){return h.getService(c)})):void 0},ServiceFactory}();function patchXMLHttpRequest(c){var h=XMLHttpRequest.prototype;if(h&&h[oe.os])var g="readystatechange",m="load",b="error",S=patchMethod(h,"open",(function(){return function(c,h){return c[Te]||(c[Oe]=h[0],c[Pe]=h[1],c[Ee]=!1===h[2]),S.apply(c,h)}})),_=patchMethod(h,"send",(function(){return function(h,S){if(h[Te])return _.apply(h,S);var O={source:oe.Ie,state:"",type:"macroTask",data:{target:h,method:h[Oe],sync:h[Ee],url:h[Pe],status:""}};try{return function scheduleTask(h){if(h.state!==oe.$L){h.state=oe.$L,c(oe.$L,h);var S=h.data.target;addListener(g),addListener(m),addListener("timeout"),addListener(b),addListener("abort")}function addListener(c){S[oe.os](c,(function(c){var b=c.type;b===g?4===S.readyState&&0!==S.status&&invokeTask(h,"success"):invokeTask(h,b===m?"success":b)}))}}(O),_.apply(h,S)}catch(c){throw invokeTask(O,b),c}}}));function invokeTask(h,g){h.state!==oe.x_&&(h.state=oe.x_,h.data.status=g,c(oe.x_,h))}}var Ze=new Re,He=!1;function patchAll(){return He||(He=!0,patchXMLHttpRequest((function(c,h){Ze.send(oe.Ie,[c,h])})),function patchFetch(c){if(isFetchSupported()){var h=window.fetch;window.fetch=function(c,g){var m,b,S=this,_=arguments,O=c instanceof URL;if("string"==typeof c||O)m=new Request(c,g),b=O?m.url:c;else{if(!c)return h.apply(S,_);b=(m=c).url}var I={source:oe.jR,state:"",type:"macroTask",data:{target:m,method:m.method,url:b,aborted:!1}};return new j((function(c,g){var b;ke.fetchInProgress=!0,scheduleTask(I);try{b=h.apply(S,[m])}catch(c){return g(c),I.data.error=c,invokeTask(I),void(ke.fetchInProgress=!1)}b.then((function(h){var g=h.clone?h.clone():{};c(h),scheduleMicroTask((function(){I.data.response=h;var c=g.body;c?readStream(c,I):invokeTask(I)}))}),(function(c){g(c),scheduleMicroTask((function(){handleResponseError(I,c)}))})),ke.fetchInProgress=!1}))}}function scheduleTask(h){h.state=oe.$L,c(oe.$L,h)}function invokeTask(h){h.state=oe.x_,c(oe.x_,h)}function handleResponseError(c,h){c.data.aborted=function isAbortError(c){return c&&"AbortError"===c.name}(h),c.data.error=h,invokeTask(c)}function readStream(c,h){var g=c.getReader();!function read(){g.read().then((function(c){c.done?invokeTask(h):read()}),(function(c){handleResponseError(h,c)}))}()}}((function(c,h){Ze.send(oe.jR,[c,h])})),function patchHistory(c){if(window.history){var h=history.pushState;"function"==typeof h&&(history.pushState=function(g,m,b){var S={source:oe.UA,data:{state:g,title:m,url:b}};c(oe.x_,S),h.apply(this,arguments)})}}((function(c,h){Ze.send(oe.UA,[c,h])}))),Ze}var Ge=function(){function PerformanceMonitoring(c,h,g,m){this._apmServer=c,this._configService=h,this._logginService=g,this._transactionService=m}var c=PerformanceMonitoring.prototype;return c.init=function init(c){var h=this;void 0===c&&(c={}),this._configService.events.observe(oe.x9+oe.nv,(function(c){var g=h.createTransactionPayload(c);g&&(h._apmServer.addTransaction(g),h._configService.dispatchEvent(oe.dO))})),c[oe.UA]&&Ze.observe(oe.UA,this.getHistorySub()),c[oe.Ie]&&Ze.observe(oe.Ie,this.getXHRSub()),c[oe.jR]&&Ze.observe(oe.jR,this.getFetchSub())},c.getHistorySub=function getHistorySub(){var c=this._transactionService;return function(h,g){g.source===oe.UA&&h===oe.x_&&c.startTransaction(g.data.title,"route-change",{managed:!0,canReuse:!0})}},c.getXHRSub=function getXHRSub(){var c=this;return function(h,g){g.source!==oe.Ie||ke.fetchInProgress||c.processAPICalls(h,g)}},c.getFetchSub=function getFetchSub(){var c=this;return function(h,g){g.source===oe.jR&&c.processAPICalls(h,g)}},c.processAPICalls=function processAPICalls(c,h){var g=this._configService,m=this._transactionService;if(h.data&&h.data.url){var b=this._apmServer.getEndpoints();if(Object.keys(b).some((function(c){return-1!==h.data.url.indexOf(b[c])})))return}if(c===oe.$L&&h.data){var S=h.data,_=new ne(S.url),O=S.method+" "+(_.relative?_.path:stripQueryStringFromUrl(_.href));m.getCurrentTransaction()||m.startTransaction(O,oe.EC,{managed:!0});var I=m.startSpan(O,"external.http",{blocking:!0});if(!I)return;var j=g.get("distributedTracing"),B=g.get("distributedTracingOrigins"),N=new ne(window.location.href),H=checkSameOrigin(_.origin,N.origin)||checkSameOrigin(_.origin,B),$=S.target;if(j&&H&&$)this.injectDtHeader(I,$),g.get("propagateTracestate")&&this.injectTSHeader(I,$);else _e;S.sync&&(I.sync=S.sync),S.span=I}else if(c===oe.x_){var K=h.data;if(K&&K.span){var ee,te,re=K.span,ie=K.response,ae=K.target;ee=ie?ie.status:ae.status,te="abort"==K.status||K.aborted?oe.pm:ee>=400||0==ee?oe.O5:oe.Yr,re.outcome=te;var se=m.getCurrentTransaction();se&&se.type===oe.EC&&(se.outcome=te),m.endSpan(re,K)}}},c.injectDtHeader=function injectDtHeader(c,h){var g=this._configService.get("distributedTracingHeaderName"),m=function getDtHeaderValue(c){if(c&&c.traceId&&c.id&&c.parentId){var h=c.sampled?"01":"00",g=c.sampled?c.id:c.parentId;return"00-"+c.traceId+"-"+g+"-"+h}}(c);(function isDtHeaderValid(c){return/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(c)&&"00000000000000000000000000000000"!==c.slice(3,35)&&"0000000000000000"!==c.slice(36,52)})(m)&&m&&g&&setRequestHeader(h,g,m)},c.injectTSHeader=function injectTSHeader(c,h){var g=function getTSHeaderValue(c){var h=c.sampleRate;if(!("number"!=typeof h||String(h).length>256))return"es=s:"+h}(c);g&&setRequestHeader(h,"tracestate",g)},c.extractDtHeader=function extractDtHeader(c){var h=this._configService.get("distributedTracingHeaderName");if(c)return function parseDtHeaderValue(c){var h=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(c);if(h){var g="00"!==h[4];return{traceId:h[2],id:h[3],sampled:g}}}(c[h])},c.filterTransaction=function filterTransaction(c){var h=c.duration();if(!h)return!1;if(c.isManaged()){if(h>6e4)return!1;if(c.sampled&&0===c.spans.length)return!1}return!0},c.createTransactionDataModel=function createTransactionDataModel(c){var h=c._start,g=c.spans.map((function(g){var m={id:g.id,transaction_id:c.id,parent_id:g.parentId||c.id,trace_id:c.traceId,name:g.name,type:g.type,subtype:g.subtype,action:g.action,sync:g.sync,start:parseInt(g._start-h),duration:g.duration(),context:g.context,outcome:g.outcome,sample_rate:g.sampleRate};return truncateModel(ce,m)})),m={id:c.id,parent_id:c.parentId,trace_id:c.traceId,session:c.session,name:c.name,type:c.type,duration:c.duration(),spans:g,context:c.context,marks:c.marks,breakdown:c.breakdownTimings,span_count:{started:g.length},sampled:c.sampled,sample_rate:c.sampleRate,experience:c.experience,outcome:c.outcome};return truncateModel(ue,m)},c.createTransactionPayload=function createTransactionPayload(c){var h=function adjustTransaction(c){if(c.sampled){var h=c.spans.filter((function(h){return h.duration()>0&&h._start>=c._start&&h._end<=c._end}));if(c.isManaged()){var g=function groupSmallContinuouslySimilarSpans(c,h,g){c.sort((function(c,h){return c._start-h._start}));var m=[],b=1;return c.forEach((function(S,_){if(0===m.length)m.push(S);else{var O=m[m.length-1],I=O.type===S.type&&O.subtype===S.subtype&&O.action===S.action&&O.name===S.name&&S.duration()/h<g&&(S._start-O._end)/h<g,j=c.length===_+1;I&&(b++,O._end=S._end),b>1&&(!I||j)&&(O.name=b+"x "+O.name,b=1),I||m.push(S)}})),m}(h,c.duration(),.05);c.spans=g}else c.spans=h}else c.resetFields();return c}(c);if(this.filterTransaction(h))return this.createTransactionDataModel(c);this._configService.dispatchEvent(oe.XM)},PerformanceMonitoring}();const Ue=function(){function SpanBase(c,h,g){void 0===g&&(g={}),c||(c=oe.gv),h||(h=oe.Yo),this.name=c,this.type=h,this.options=g,this.id=g.id||generateRandomId(16),this.traceId=g.traceId,this.sampled=g.sampled,this.sampleRate=g.sampleRate,this.timestamp=g.timestamp,this._start=getTime(g.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=g.onEnd}var c=SpanBase.prototype;return c.ensureContext=function ensureContext(){this.context||(this.context={})},c.addLabels=function addLabels(c){this.ensureContext();var h=this.context;h.tags||(h.tags={}),Object.keys(c).forEach((function(g){return setLabel(g,c[g],h.tags)}))},c.addContext=function addContext(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];0!==h.length&&(this.ensureContext(),this.context=merge.apply(void 0,[this.context].concat(h)))},c.end=function end(c){this.ended||(this.ended=!0,this._end=getTime(c),this.callOnEnd())},c.callOnEnd=function callOnEnd(){"function"==typeof this.onEnd&&this.onEnd(this)},c.duration=function duration(){return getDuration(this._start,this._end)},SpanBase}();function _setPrototypeOf(c,h){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(c,h){return c.__proto__=h,c},_setPrototypeOf(c,h)}const $e=function(c){function Span(h,g,m){var b;if((b=c.call(this,h,g,m)||this).parentId=b.options.parentId,b.subtype=void 0,b.action=void 0,-1!==b.type.indexOf(".")){var S=b.type.split(".",3);b.type=S[0],b.subtype=S[1],b.action=S[2]}return b.sync=b.options.sync,b}return function _inheritsLoose(c,h){c.prototype=Object.create(h.prototype),c.prototype.constructor=c,_setPrototypeOf(c,h)}(Span,c),Span.prototype.end=function end(h,g){c.prototype.end.call(this,h),addSpanContext(this,g)},Span}(Ue);var Ve=[["domainLookupStart","domainLookupEnd","DNS"],["connectStart","connectEnd","TCP"],["requestStart","responseStart","Request"],["responseStart","responseEnd","Response"],["domLoading","domComplete","Processing"],["loadEventStart","loadEventEnd","Load"]];function getValue(c){return{value:c}}function getSpanBreakdown(c,h){var g=h.details,m=h.count,b=void 0===m?1:m,S=h.duration;return{transaction:c,span:g,samples:{"span.self_time.count":getValue(b),"span.self_time.sum.us":getValue(1e3*S)}}}function breakdown_captureBreakdown(c,h){void 0===h&&(h=H.timing);var g=[],m=c.name,b=c.type,S=c.sampled,_={name:m,type:b};if(!S)return g;if(b===oe.oZ&&h)for(var O=0;O<Ve.length;O++){var I=Ve[O],j=getDuration(h[I[0]],h[I[1]]);0!==j&&null!=j&&g.push(getSpanBreakdown(_,{details:{type:I[2]},duration:j}))}else{var B=function groupSpans(c){var h={},g=function calculateSelfTime(c){var h=c.spans,g=c._start,m=c._end;if(0===h.length)return c.duration();h.sort((function(c,h){return c._start-h._start}));for(var b=h[0],S=b._end,_=b._start,O=S,I=_-g,j=1;j<h.length;j++)_=(b=h[j])._start,S=b._end,_>O?(I+=_-O,O=S):S>O&&(O=S);return O<m&&(I+=m-O),I}(c);h.app={count:1,duration:g};for(var m=c.spans,b=0;b<m.length;b++){var S=m[b],_=S.duration();if(0!==_&&null!=_){var O=S.type,I=S.subtype,j=O.replace(oe.pS,"");I&&(j+="."+I),h[j]||(h[j]={duration:0,count:0}),h[j].count++,h[j].duration+=_}}return h}(c);Object.keys(B).forEach((function(c){var h=c.split("."),m=h[0],b=h[1],S=B[c],O=S.duration,I=S.count;g.push(getSpanBreakdown(_,{details:{type:m,subtype:b},duration:O,count:I}))}))}return g}function transaction_setPrototypeOf(c,h){return transaction_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(c,h){return c.__proto__=h,c},transaction_setPrototypeOf(c,h)}const We=function(c){function Transaction(h,g,m){var b;return(b=c.call(this,h,g,m)||this).traceId=generateRandomId(),b.marks=void 0,b.spans=[],b._activeSpans={},b._activeTasks=new Set,b.blocked=!1,b.captureTimings=!1,b.breakdownTimings=[],b.sampleRate=b.options.transactionSampleRate,b.sampled=Math.random()<=b.sampleRate,b}!function transaction_inheritsLoose(c,h){c.prototype=Object.create(h.prototype),c.prototype.constructor=c,transaction_setPrototypeOf(c,h)}(Transaction,c);var h=Transaction.prototype;return h.addMarks=function addMarks(c){this.marks=merge(this.marks||{},c)},h.mark=function mark(c){var h=removeInvalidChars(c),g=now()-this._start,m={};m[h]=g,this.addMarks({custom:m})},h.canReuse=function canReuse(){var c=this.options.reuseThreshold||oe.r9;return!!this.options.canReuse&&!this.ended&&now()-this._start<c},h.redefine=function redefine(c,h,g){c&&(this.name=c),h&&(this.type=h),g&&(this.options.reuseThreshold=g.reuseThreshold,this.options=extend(this.options,g))},h.startSpan=function startSpan(c,h,g){var m=this;if(!this.ended){var b=extend({},g);b.onEnd=function(c){m._onSpanEnd(c)},b.traceId=this.traceId,b.sampled=this.sampled,b.sampleRate=this.sampleRate,b.parentId||(b.parentId=this.id);var S=new $e(c,h,b);return this._activeSpans[S.id]=S,b.blocking&&this.addTask(S.id),S}},h.isFinished=function isFinished(){return!this.blocked&&0===this._activeTasks.size},h.detectFinish=function detectFinish(){this.isFinished()&&this.end()},h.end=function end(c){if(!this.ended){for(var h in this.ended=!0,this._end=getTime(c),this._activeSpans){var g=this._activeSpans[h];g.type=g.type+oe.pS,g.end(c)}this.callOnEnd()}},h.captureBreakdown=function captureBreakdown(){this.breakdownTimings=breakdown_captureBreakdown(this)},h.block=function block(c){this.blocked=c,this.blocked||this.detectFinish()},h.addTask=function addTask(c){return c||(c="task-"+generateRandomId(16)),this._activeTasks.add(c),c},h.removeTask=function removeTask(c){this._activeTasks.delete(c)&&this.detectFinish()},h.resetFields=function resetFields(){this.spans=[],this.sampleRate=0},h._onSpanEnd=function _onSpanEnd(c){this.spans.push(c),delete this._activeSpans[c.id],this.removeTask(c.id)},h.isManaged=function isManaged(){return!!this.options.managed},Transaction}(Ue);function metrics_extends(){return metrics_extends=Object.assign||function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},metrics_extends.apply(this,arguments)}var qe={fid:0,fcp:0,tbt:{start:1/0,duration:0},cls:{score:0,firstEntryTime:Number.NEGATIVE_INFINITY,prevEntryTime:Number.NEGATIVE_INFINITY,currentSessionScore:0},longtask:{count:0,duration:0,max:0}};function captureObserverEntries(c,h){var g=h.isHardNavigation,m=h.trStart,b=c.getEntriesByType(oe.nw).filter((function(c){return c.startTime>=m})),S=function createLongTaskSpans(c,h){for(var g=[],m=0;m<c.length;m++){var b=c[m],S=b.name,_=b.startTime,O=b.duration,I=b.attribution,j=_+O,B=new $e("Longtask("+S+")",oe.nw,{startTime:_});if(h.count++,h.duration+=O,h.max=Math.max(O,h.max),I.length>0){var N=I[0],H=N.name,$=N.containerType,K=N.containerName,ee=N.containerId,te={attribution:H,type:$};K&&(te.name=K),ee&&(te.id=ee),B.addContext({custom:te})}B.end(j),g.push(B)}return g}(b,qe.longtask),_={spans:S,marks:{}};if(!g)return _;var O=c.getEntriesByType(oe.DO),I=O[O.length-1];if(I){var j=parseInt(I.startTime);qe.lcp=j,_.marks.largestContentfulPaint=j}var B=H.timing,N=B.fetchStart-B.navigationStart;isRedirectInfoAvailable(B)&&(N=0);var $=c.getEntriesByName(oe.Qb)[0];if($){var K=parseInt(N>=0?$.startTime-N:$.startTime);qe.fcp=K,_.marks.firstContentfulPaint=K}var ee=function createFirstInputDelaySpan(c){var h=c[0];if(h){var g=h.startTime,m=h.processingStart,b=new $e("First Input Delay",oe.Vm,{startTime:g});return b.end(m),b}}(c.getEntriesByType(oe.Vm));return ee&&(qe.fid=ee.duration(),_.spans.push(ee)),function calculateTotalBlockingTime(c){c.forEach((function(c){var h=c.name,g=c.startTime,m=c.duration;if(!(g<qe.fcp||"self"!==h&&-1===h.indexOf("same-origin"))){qe.tbt.start=Math.min(qe.tbt.start,g);var b=m-50;b>0&&(qe.tbt.duration+=b)}}))}(b),function calculateCumulativeLayoutShift(c){c.forEach((function(c){!c.hadRecentInput&&c.value&&((c.startTime-qe.cls.firstEntryTime>5e3||c.startTime-qe.cls.prevEntryTime>1e3)&&(qe.cls.firstEntryTime=c.startTime,qe.cls.currentSessionScore=0),qe.cls.prevEntryTime=c.startTime,qe.cls.currentSessionScore+=c.value,qe.cls.score=Math.max(qe.cls.score,qe.cls.currentSessionScore))}))}(c.getEntriesByType(oe.o2)),_}var Ke=function(){function PerfEntryRecorder(c){this.po={observe:utils_noop,disconnect:utils_noop},window.PerformanceObserver&&(this.po=new PerformanceObserver(c))}var c=PerfEntryRecorder.prototype;return c.start=function start(c,h){void 0===h&&(h={buffered:!0});try{if(!isPerfTypeSupported(c))return;this.po.observe(metrics_extends({type:c},h))}catch(c){}},c.stop=function stop(){this.po.disconnect()},PerfEntryRecorder}();function shouldCreateSpan(c,h,g,m,b){return void 0===b&&(b=0),"number"==typeof c&&"number"==typeof h&&c>=b&&h>c&&c-b>=g&&h-b<=m&&h-c<oe.io&&c-b<oe.io&&h-b<oe.io}var Xe=[["redirectStart","redirectEnd","Redirect"],["domainLookupStart","domainLookupEnd","Domain lookup"],["connectStart","connectEnd","Making a connection to the server"],["requestStart","responseEnd","Requesting and receiving the document"],["domLoading","domInteractive","Parsing the document, executing sync. scripts"],["domContentLoadedEventStart","domContentLoadedEventEnd",'Fire "DOMContentLoaded" event'],["loadEventStart","loadEventEnd",'Fire "load" event']];function createResourceTimingSpan(c){var h=c.name,g=c.initiatorType,m=c.startTime,b=c.responseEnd,S="resource";g&&(S+="."+g);var _=stripQueryStringFromUrl(h),O=new $e(_,S);return O._start=m,O.end(b,{url:h,entry:c}),O}function isCapturedByPatching(c,h){return null!=h&&c>h}function captureNavigation(c){if(c.captureTimings){var h=c._end;if(c.type===oe.oZ){if(c.marks&&c.marks.custom){var g=c.marks.custom;Object.keys(g).forEach((function(h){g[h]+=c._start}))}c._start=0;var m=H.timing;(function createNavigationTimingSpans(c,h,g,m){for(var b=[],S=0;S<Xe.length;S++){var _=c[Xe[S][0]],O=c[Xe[S][1]];if(shouldCreateSpan(_,O,g,m,h)){var I=new $e(Xe[S][2],"hard-navigation.browser-timing"),j=null;"requestStart"===Xe[S][0]&&(I.pageResponse=!0,j={url:location.origin}),I._start=_-h,I.end(O-h,j),b.push(I)}}return b})(m,isRedirectInfoAvailable(m)?m.redirectStart:m.fetchStart,0,h).forEach((function(h){h.traceId=c.traceId,h.sampled=c.sampled,h.pageResponse&&c.options.pageLoadSpanId&&(h.id=c.options.pageLoadSpanId),c.spans.push(h)})),c.options.pageLoadParentId&&(c.parentId=c.options.pageLoadParentId),c.addMarks(getPageLoadMarks(m))}if(isPerfTimelineSupported()){var b=c._start;(function createResourceTimingSpans(c,h,g,m){for(var b=[],S=0;S<c.length;S++){var _=c[S],O=_.initiatorType,I=_.name,j=_.startTime,B=_.responseEnd;-1!==oe.jK.indexOf(O)&&null!=I&&(("xmlhttprequest"===O||"fetch"===O)&&(/intake\/v\d+\/rum\/events/.test(I)||isCapturedByPatching(j,h))||shouldCreateSpan(j,B,g,m)&&b.push(createResourceTimingSpan(c[S])))}return b})(H.getEntriesByType(oe.YI),Ce.bootstrapTime,b,h).forEach((function(h){return c.spans.push(h)})),function createUserTimingSpans(c,h,g){for(var m=[],b=0;b<c.length;b++){var S=c[b],_=S.name,O=S.startTime,I=S.duration,j=O+I;if(!(I<=oe.Ab)&&shouldCreateSpan(O,j,h,g)){var B=new $e(_,"app");B._start=O,B.end(j),m.push(B)}}return m}(H.getEntriesByType(oe.Mu),b,h).forEach((function(h){return c.spans.push(h)}))}}else c.type===oe.oZ&&(c._start=0)}var Je=function(){function TransactionService(c,h){var g=this;this._config=h,this._logger=c,this.currentTransaction=void 0,this.respIntervalId=void 0,this.recorder=new Ke((function(c){var h=g.getCurrentTransaction();if(h&&h.captureTimings){var m,b=h.type===oe.oZ,S=captureObserverEntries(c,{isHardNavigation:b,trStart:b?0:h._start}),_=S.spans,O=S.marks;(m=h.spans).push.apply(m,_),h.addMarks({agent:O})}}))}var c=TransactionService.prototype;return c.createCurrentTransaction=function createCurrentTransaction(c,h,g){var m=new We(c,h,g);return this.currentTransaction=m,m},c.getCurrentTransaction=function getCurrentTransaction(){if(this.currentTransaction&&!this.currentTransaction.ended)return this.currentTransaction},c.createOptions=function createOptions(c){var h=this._config.config,g=extend({transactionSampleRate:h.transactionSampleRate},c);return g.managed&&(g=extend({pageLoadTraceId:h.pageLoadTraceId,pageLoadSampled:h.pageLoadSampled,pageLoadSpanId:h.pageLoadSpanId,pageLoadTransactionName:h.pageLoadTransactionName,pageLoadParentId:h.pageLoadParentId},g)),g},c.startManagedTransaction=function startManagedTransaction(c,h,g){var m=this.getCurrentTransaction(),b=!1;if(m)if(m.canReuse()&&g.canReuse){var S=m.type,_=oe.W8.indexOf(m.type),O=oe.W8.indexOf(h);_>=0&&O<_&&(S=h),m.redefine(c,S,g),b=!0}else m.end(),m=this.createCurrentTransaction(c,h,g);else m=this.createCurrentTransaction(c,h,g);return m.type===oe.oZ&&(b||(this.recorder.start(oe.DO),this.recorder.start(oe.yw),this.recorder.start(oe.Vm),this.recorder.start(oe.o2)),g.pageLoadTraceId&&(m.traceId=g.pageLoadTraceId),g.pageLoadSampled&&(m.sampled=g.pageLoadSampled),m.name===oe.gv&&g.pageLoadTransactionName&&(m.name=g.pageLoadTransactionName)),!b&&this._config.get("monitorLongtasks")&&this.recorder.start(oe.nw),m.sampled&&(m.captureTimings=!0),m},c.startTransaction=function startTransaction(c,h,g){var m,b=this,S=this.createOptions(g),_=!0;S.managed?this.currentTransaction===(m=this.startManagedTransaction(c,h,S))&&(_=!1):m=new We(c,h,S);return m.onEnd=function(){return b.handleTransactionEnd(m)},_&&this._config.events.send(oe.TU,[m]),m},c.handleTransactionEnd=function handleTransactionEnd(c){var h=this;this.recorder.stop();var g=window.location.href;return j.resolve().then((function(){var m=c.name,b=c.type;if(Ce.lastHiddenStart>=c._start)h._config.dispatchEvent(oe.XM);else if(h.shouldIgnoreTransaction(m)||b===oe.RW)h._config.dispatchEvent(oe.XM);else{if(b===oe.oZ){var S=h._config.get("pageLoadTransactionName");if(m===oe.gv&&S&&(c.name=S),c.captureTimings){var _=qe.cls,O=qe.fid,I=qe.tbt,j=qe.longtask;I.duration>0&&c.spans.push(function createTotalBlockingTimeSpan(c){var h=c.start,g=c.duration,m=new $e("Total Blocking Time",oe.nw,{startTime:h});return m.end(h+g),m}(I)),c.experience={},isPerfTypeSupported(oe.nw)&&(c.experience.tbt=I.duration),isPerfTypeSupported(oe.o2)&&(c.experience.cls=_.score),O>0&&(c.experience.fid=O),j.count>0&&(c.experience.longtask={count:j.count,sum:j.duration,max:j.max})}h.setSession(c)}c.name===oe.gv&&(c.name=function slugifyUrl(c,h){void 0===h&&(h=2);for(var g=new ne(c),m=g.query,b=g.path.substring(1).split("/"),S=":id",_=/\W|_/g,O=/[0-9]/g,I=/[a-z]/g,j=/[A-Z]/g,B=[],N=!1,H=0;H<b.length;H++){var $=b[H];if(N||H>h-1){$&&B.push("*");break}if(($.match(_)||[]).length>=2)B.push(S),N=!0;else{var K=($.match(O)||[]).length;if(K>3||$.length>3&&K/$.length>=.3)B.push(S),N=!0;else{var ee=($.match(j)||[]).length,te=($.match(I)||[]).length/$.length,re=ee/$.length;$.length>5&&(re>.3&&re<.6||te>.3&&te<.6)?(B.push(S),N=!0):$&&B.push($)}}}return"/"+(B.length>=2?B.join("/"):B.join(""))+(m?"?{query}":"")}(g)),captureNavigation(c),h.adjustTransactionTime(c),h._config.get("breakdownMetrics")&&c.captureBreakdown();var B=h._config.get("context");addTransactionContext(c,B),h._config.events.send(oe.x9,[c])}}),(function(c){_e}))},c.setSession=function setSession(c){var h=this._config.get("session");if(h){"boolean"==typeof h||h.timestamp&&Date.now()-h.timestamp>oe.sG?c.session={id:generateRandomId(16),sequence:1}:c.session={id:h.id,sequence:h.sequence?h.sequence+1:1};var g={session:{id:c.session.id,sequence:c.session.sequence,timestamp:Date.now()}};this._config.setConfig(g),this._config.setLocalConfig(g,!0)}},c.adjustTransactionTime=function adjustTransactionTime(c){var h=c.spans,g=function getEarliestSpan(c){for(var h=c[0],g=1;g<c.length;g++){var m=c[g];h._start>m._start&&(h=m)}return h}(h);g&&g._start<c._start&&(c._start=g._start);var m=function getLatestNonXHRSpan(c){return getLatestSpan(c,(function(c){return-1===String(c).indexOf("external")}))}(h)||{},b=m._end||0;if(c.type===oe.oZ){var S=c._end-oe.JK,_=qe.lcp||0,O=function getLatestXHRSpan(c){return getLatestSpan(c,(function(c){return-1!==String(c).indexOf("external")}))}(h)||{},I=O._end||0;c._end=Math.max(b,I,_,S)}else b>c._end&&(c._end=b);this.truncateSpans(h,c._end)},c.truncateSpans=function truncateSpans(c,h){for(var g=0;g<c.length;g++){var m=c[g];m._end>h&&(m._end=h,m.type+=oe.pS),m._start>h&&(m._start=h)}},c.shouldIgnoreTransaction=function shouldIgnoreTransaction(c){var h=this._config.get("ignoreTransactions");if(h&&h.length)for(var g=0;g<h.length;g++){var m=h[g];if("function"==typeof m.test){if(m.test(c))return!0}else if(m===c)return!0}return!1},c.startSpan=function startSpan(c,h,g){var m=this.getCurrentTransaction();m||(m=this.createCurrentTransaction(void 0,oe.RW,this.createOptions({canReuse:!0,managed:!0})));var b=m.startSpan(c,h,g);return b},c.endSpan=function endSpan(c,h){c&&c.end(null,h)},TransactionService}();const Ye=Je;function createServiceFactory(){return function performance_monitoring_registerServices(){Fe[oe.P5]=function(c){var h=c.getService([oe.XZ,oe.IE]),g=h[0],m=h[1];return new Ye(g,m)},Fe[oe.e0]=function(c){var h=c.getService([oe.Q,oe.IE,oe.XZ,oe.P5]),g=h[0],m=h[1],b=h[2],S=h[3];return new Ge(g,m,b,S)}}(),function registerServices(){Fe[oe.mU]=function(c){var h=c.getService([oe.Q,oe.IE,oe.P5]),g=h[0],m=h[1],b=h[2];return new ye(g,m,b)}}(),new ze}var Qe=g(5108),et=!1;function bootstrap(){return isPlatformSupported()?(patchAll(),Ce.bootstrapTime=now(),et=!0):N&&Qe.log("[Elastic APM] platform is not supported!"),et}var tt={minInteractionId:1/0,maxInteractionId:0,interactionCount:0,longestInteractions:[]};function processUserInteractions(c){c.getEntries().forEach((function(c){c.interactionId&&(!function updateInteractionCount(c){if(isPerfInteractionCountSupported())return;tt.minInteractionId=Math.min(tt.minInteractionId,c.interactionId),tt.maxInteractionId=Math.max(tt.maxInteractionId,c.interactionId),tt.interactionCount=(tt.maxInteractionId-tt.minInteractionId)/7+1}(c),c.duration<40||function storeUserInteraction(c){var h=tt.longestInteractions[tt.longestInteractions.length-1];if(void 0!==h&&c.duration<=h.duration&&c.interactionId!=h.id)return;var g=tt.longestInteractions.filter((function(h){return h.id===c.interactionId}));if(g.length>0){var m=g[0];m.duration=Math.max(m.duration,c.duration)}else tt.longestInteractions.push({id:c.interactionId,duration:c.duration});tt.longestInteractions.sort((function(c,h){return h.duration-c.duration})),tt.longestInteractions.splice(10)}(c))}))}function interactionCount(){return performance.interactionCount||tt.interactionCount}function reportInp(c){var h=function calculateInp(){if(0===tt.longestInteractions.length)return interactionCount()>0?0:void 0;var c=Math.min(tt.longestInteractions.length-1,Math.floor(interactionCount()/50));return tt.longestInteractions[c].duration}();if(h>=0){var g=now(),m=c.startTransaction(oe.Xu,oe.Xu,{startTime:g}),b=performance.getEntriesByType("navigation");if(b.length>0){var S=b[0].name;m.addContext({page:{url:S}})}m.addLabels({inp_value:h});var _=g+h+1;return m.end(_),function restoreINPState(){tt.minInteractionId=1/0,tt.maxInteractionId=0,tt.interactionCount=0,tt.longestInteractions=[]}(),m}}function onPageHidden(c,h){if(reportInp(h))var g=c.observeEvent(oe.dO,(function(){endManagedTransaction(c,h),g()}));else endManagedTransaction(c,h)}function endManagedTransaction(c,h){var g=h.getCurrentTransaction();if(g){var m=c.observeEvent(oe.XM,(function(){Ce.lastHiddenStart=now(),m(),b()})),b=c.observeEvent(oe.dO,(function(){c.dispatchEvent(oe.p4),Ce.lastHiddenStart=now(),b(),m()}));g.end()}else c.dispatchEvent(oe.p4),Ce.lastHiddenStart=now()}var rt="a[data-transaction-name], button[data-transaction-name]";function observePageClicks(c){var h=function clickHandler(h){h.target instanceof Element&&function createUserInteractionTransaction(c,h){var g=function getTransactionMetadata(c){var h={transactionName:null,context:null};h.transactionName=function buildTransactionName(c){var h=function findCustomTransactionName(c){var h="data-transaction-name",g=c.getAttribute(h);if(c.closest){var m=c.closest(rt);return m?m.getAttribute(h):g}return g}(c);if(h)return h;var g=c.tagName.toLowerCase(),m=c.getAttribute("name");if(m)return g+'["'+m+'"]';return g}(c);var g=c.getAttribute("class");g&&(h.context={custom:{classes:g}});return h}(h),m=g.transactionName,b=g.context,S=c.startTransaction("Click - "+m,oe.Cq,{managed:!0,canReuse:!0,reuseThreshold:300});S&&b&&S.addContext(b)}(c,h.target)},g="click";return window.addEventListener(g,h,true),function(){window.removeEventListener(g,h,true)}}var nt=function(){function ApmBase(c,h){this._disable=h,this.serviceFactory=c,this._initialized=!1}var c=ApmBase.prototype;return c.isEnabled=function isEnabled(){return!this._disable},c.isActive=function isActive(){var c=this.serviceFactory.getService(oe.IE);return this.isEnabled()&&this._initialized&&c.get("active")},c.init=function init(c){var h=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var g=this.serviceFactory.getService([oe.IE,oe.XZ,oe.P5]),m=g[0],b=g[1],S=g[2];m.setVersion("5.17.0"),this.config(c);var _=m.get("logLevel");if(b.setLevel(_),m.get("active")){this.serviceFactory.init();var O=function getInstrumentationFlags(c,h){var g,m=((g={})[oe.Ie]=!1,g[oe.jR]=!1,g[oe.UA]=!1,g[oe.oZ]=!1,g[oe.pn]=!1,g[oe.JY]=!1,g[oe.ot]=!1,g);return c?(Object.keys(m).forEach((function(c){-1===h.indexOf(c)&&(m[c]=!0)})),m):m}(m.get("instrument"),m.get("disableInstrumentations"));if(this.serviceFactory.getService(oe.e0).init(O),O[oe.pn])this.serviceFactory.getService(oe.mU).registerListeners();if(m.get("session")){var I=m.getLocalConfig();I&&I.session&&m.setConfig({session:I.session})}var j=function sendPageLoad(){return O[oe.oZ]&&h._sendPageLoadMetrics()};m.get("centralConfig")?this.fetchCentralConfig().then(j):j(),function observePageVisibility(c,h){"hidden"===document.visibilityState&&(Ce.lastHiddenStart=0);var g=function visibilityChangeHandler(){"hidden"===document.visibilityState&&onPageHidden(c,h)},m=function pageHideHandler(){return onPageHidden(c,h)},b=!0;return window.addEventListener("visibilitychange",g,b),window.addEventListener("pagehide",m,b),function(){window.removeEventListener("visibilitychange",g,b),window.removeEventListener("pagehide",m,b)}}(m,S),O[oe.JY]&&O[oe.ot]&&observePageClicks(S),function observeUserInteractions(c){void 0===c&&(c=new Ke(processUserInteractions));var h=isPerfInteractionCountSupported(),g=h?40:16;c.start(oe.Ks,{buffered:!0,durationThreshold:g}),h||c.start(oe.Vm)}()}else this._disable=!0,b.warn("RUM agent is inactive")}return this},c.fetchCentralConfig=function fetchCentralConfig(){var c=this.serviceFactory.getService([oe.Q,oe.XZ,oe.IE]),h=c[0],g=c[1],m=c[2];return h.fetchConfig(m.get("serviceName"),m.get("environment")).then((function(c){var h=c.transaction_sample_rate;if(h){var b={transactionSampleRate:h=Number(h)},S=m.validate(b).invalid;if(0===S.length)m.setConfig(b);else{var _=S[0],O=_.key,I=_.value,j=_.allowed;g.warn('invalid value "'+I+'" for '+O+". Allowed: "+j+".")}}return c})).catch((function(c){g.warn("failed fetching config:",c)}))},c._sendPageLoadMetrics=function _sendPageLoadMetrics(){var c=this.startTransaction(void 0,oe.oZ,{managed:!0,canReuse:!0});if(c){c.addTask(oe.oZ);var h=function sendPageLoadMetrics(){setTimeout((function(){return c.removeTask(oe.oZ)}),oe.JK)};"complete"===document.readyState?h():window.addEventListener("load",h)}},c.observe=function observe(c,h){this.serviceFactory.getService(oe.IE).events.observe(c,h)},c.config=function config(c){var h=this.serviceFactory.getService([oe.IE,oe.XZ]),g=h[0],m=h[1],b=g.validate(c),S=b.missing,_=b.invalid,O=b.unknown;if(O.length>0){var I="Unknown config options are specified for RUM agent: "+O.join(", ");m.warn(I)}if(0===S.length&&0===_.length)g.setConfig(c);else{var j=", ",B="RUM agent isn't correctly configured. ";S.length>0&&(B+=S.join(j)+" is missing",_.length>0&&(B+=j)),_.forEach((function(c,h){var g=c.key,m=c.value,b=c.allowed;B+=g+' "'+m+'" contains invalid characters! (allowed: '+b+")"+(h!==_.length-1?j:"")})),m.error(B),g.setConfig({active:!1})}},c.setUserContext=function setUserContext(c){this.serviceFactory.getService(oe.IE).setUserContext(c)},c.setCustomContext=function setCustomContext(c){this.serviceFactory.getService(oe.IE).setCustomContext(c)},c.addLabels=function addLabels(c){this.serviceFactory.getService(oe.IE).addLabels(c)},c.setInitialPageLoadName=function setInitialPageLoadName(c){this.serviceFactory.getService(oe.IE).setConfig({pageLoadTransactionName:c})},c.startTransaction=function startTransaction(c,h,g){if(this.isEnabled())return this.serviceFactory.getService(oe.P5).startTransaction(c,h,g)},c.startSpan=function startSpan(c,h,g){if(this.isEnabled())return this.serviceFactory.getService(oe.P5).startSpan(c,h,g)},c.getCurrentTransaction=function getCurrentTransaction(){if(this.isEnabled())return this.serviceFactory.getService(oe.P5).getCurrentTransaction()},c.captureError=function captureError(c,h){if(this.isEnabled())return this.serviceFactory.getService(oe.mU).logError(c,h)},c.addFilter=function addFilter(c){this.serviceFactory.getService(oe.IE).addFilter(c)},ApmBase}();var ot=function getApmBase(){if(N&&window.elasticApm)return window.elasticApm;var c=bootstrap(),h=createServiceFactory(),g=new nt(h,!c);return N&&(window.elasticApm=g),g}(),it=ot.init.bind(ot)},9521:(c,h,g)=>{"use strict";g.d(h,{Z:()=>de});var m=g(6375),b=Math.abs,S=String.fromCharCode,_=Object.assign;function trim(c){return c.trim()}function Utility_replace(c,h,g){return c.replace(h,g)}function indexof(c,h){return c.indexOf(h)}function Utility_charat(c,h){return 0|c.charCodeAt(h)}function Utility_substr(c,h,g){return c.slice(h,g)}function Utility_strlen(c){return c.length}function Utility_sizeof(c){return c.length}function Utility_append(c,h){return h.push(c),c}var O=1,I=1,j=0,B=0,N=0,H="";function node(c,h,g,m,b,S,_){return{value:c,root:h,parent:g,type:m,props:b,children:S,line:O,column:I,length:_,return:""}}function Tokenizer_copy(c,h){return _(node("",null,null,"",null,null,0),c,{length:-c.length},h)}function prev(){return N=B>0?Utility_charat(H,--B):0,I--,10===N&&(I=1,O--),N}function next(){return N=B<j?Utility_charat(H,B++):0,I++,10===N&&(I=1,O++),N}function peek(){return Utility_charat(H,B)}function caret(){return B}function slice(c,h){return Utility_substr(H,c,h)}function token(c){switch(c){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(c){return O=I=1,j=Utility_strlen(H=c),B=0,[]}function dealloc(c){return H="",c}function delimit(c){return trim(slice(B-1,delimiter(91===c?c+2:40===c?c+1:c)))}function whitespace(c){for(;(N=peek())&&N<33;)next();return token(c)>2||token(N)>3?"":" "}function escaping(c,h){for(;--h&&next()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return slice(c,caret()+(h<6&&32==peek()&&32==next()))}function delimiter(c){for(;next();)switch(N){case c:return B;case 34:case 39:34!==c&&39!==c&&delimiter(N);break;case 40:41===c&&delimiter(c);break;case 92:next()}return B}function commenter(c,h){for(;next()&&c+N!==57&&(c+N!==84||47!==peek()););return"/*"+slice(h,B-1)+"*"+S(47===c?c:next())}function identifier(c){for(;!token(peek());)next();return slice(c,B)}var $="-ms-",K="-moz-",ee="-webkit-",te="comm",re="rule",ne="decl",oe="@keyframes";function Serializer_serialize(c,h){for(var g="",m=Utility_sizeof(c),b=0;b<m;b++)g+=h(c[b],b,c,h)||"";return g}function stringify(c,h,g,m){switch(c.type){case"@layer":if(c.children.length)break;case"@import":case ne:return c.return=c.return||c.value;case te:return"";case oe:return c.return=c.value+"{"+Serializer_serialize(c.children,m)+"}";case re:c.value=c.props.join(",")}return Utility_strlen(g=Serializer_serialize(c.children,m))?c.return=c.value+"{"+g+"}":""}function compile(c){return dealloc(parse("",null,null,null,[""],c=alloc(c),0,[0],c))}function parse(c,h,g,m,b,_,O,I,j){for(var B=0,N=0,H=O,$=0,K=0,ee=0,te=1,re=1,ne=1,oe=0,ie="",ae=b,se=_,le=m,ce=ie;re;)switch(ee=oe,oe=next()){case 40:if(108!=ee&&58==Utility_charat(ce,H-1)){-1!=indexof(ce+=Utility_replace(delimit(oe),"&","&\f"),"&\f")&&(ne=-1);break}case 34:case 39:case 91:ce+=delimit(oe);break;case 9:case 10:case 13:case 32:ce+=whitespace(ee);break;case 92:ce+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),caret()),h,g),j);break;default:ce+="/"}break;case 123*te:I[B++]=Utility_strlen(ce)*ne;case 125*te:case 59:case 0:switch(oe){case 0:case 125:re=0;case 59+N:-1==ne&&(ce=Utility_replace(ce,/\f/g,"")),K>0&&Utility_strlen(ce)-H&&Utility_append(K>32?declaration(ce+";",m,g,H-1):declaration(Utility_replace(ce," ","")+";",m,g,H-2),j);break;case 59:ce+=";";default:if(Utility_append(le=ruleset(ce,h,g,B,N,b,I,ie,ae=[],se=[],H),_),123===oe)if(0===N)parse(ce,h,le,le,ae,_,H,I,se);else switch(99===$&&110===Utility_charat(ce,3)?100:$){case 100:case 108:case 109:case 115:parse(c,le,le,m&&Utility_append(ruleset(c,le,le,0,0,b,I,ie,b,ae=[],H),se),b,se,H,I,m?ae:se);break;default:parse(ce,le,le,le,[""],se,0,I,se)}}B=N=K=0,te=ne=1,ie=ce="",H=O;break;case 58:H=1+Utility_strlen(ce),K=ee;default:if(te<1)if(123==oe)--te;else if(125==oe&&0==te++&&125==prev())continue;switch(ce+=S(oe),oe*te){case 38:ne=N>0?1:(ce+="\f",-1);break;case 44:I[B++]=(Utility_strlen(ce)-1)*ne,ne=1;break;case 64:45===peek()&&(ce+=delimit(next())),$=peek(),N=H=Utility_strlen(ie=ce+=identifier(caret())),oe++;break;case 45:45===ee&&2==Utility_strlen(ce)&&(te=0)}}return _}function ruleset(c,h,g,m,S,_,O,I,j,B,N){for(var H=S-1,$=0===S?_:[""],K=Utility_sizeof($),ee=0,te=0,ne=0;ee<m;++ee)for(var oe=0,ie=Utility_substr(c,H+1,H=b(te=O[ee])),ae=c;oe<K;++oe)(ae=trim(te>0?$[oe]+" "+ie:Utility_replace(ie,/&\f/g,$[oe])))&&(j[ne++]=ae);return node(c,h,g,0===S?re:I,j,B,N)}function comment(c,h,g){return node(c,h,g,te,S(function Tokenizer_char(){return N}()),Utility_substr(c,2,-2),0)}function declaration(c,h,g,m){return node(c,h,g,ne,Utility_substr(c,0,m),Utility_substr(c,m+1,-1),m)}var ie=function identifierWithPointTracking(c,h,g){for(var m=0,b=0;m=b,b=peek(),38===m&&12===b&&(h[g]=1),!token(b);)next();return slice(c,B)},ae=function getRules(c,h){return dealloc(function toRules(c,h){var g=-1,m=44;do{switch(token(m)){case 0:38===m&&12===peek()&&(h[g]=1),c[g]+=ie(B-1,h,g);break;case 2:c[g]+=delimit(m);break;case 4:if(44===m){c[++g]=58===peek()?"&\f":"",h[g]=c[g].length;break}default:c[g]+=S(m)}}while(m=next());return c}(alloc(c),h))},se=new WeakMap,le=function compat(c){if("rule"===c.type&&c.parent&&!(c.length<1)){for(var h=c.value,g=c.parent,m=c.column===g.column&&c.line===g.line;"rule"!==g.type;)if(!(g=g.parent))return;if((1!==c.props.length||58===h.charCodeAt(0)||se.get(g))&&!m){se.set(c,!0);for(var b=[],S=ae(h,b),_=g.props,O=0,I=0;O<S.length;O++)for(var j=0;j<_.length;j++,I++)c.props[I]=b[O]?S[O].replace(/&\f/g,_[j]):_[j]+" "+S[O]}}},ce=function removeLabel(c){if("decl"===c.type){var h=c.value;108===h.charCodeAt(0)&&98===h.charCodeAt(2)&&(c.return="",c.value="")}};function emotion_cache_browser_esm_prefix(c,h){switch(function hash(c,h){return 45^Utility_charat(c,0)?(((h<<2^Utility_charat(c,0))<<2^Utility_charat(c,1))<<2^Utility_charat(c,2))<<2^Utility_charat(c,3):0}(c,h)){case 5103:return"-webkit-print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+c+K+c+$+c+c;case 6828:case 4268:return ee+c+$+c+c;case 6165:return ee+c+$+"flex-"+c+c;case 5187:return ee+c+Utility_replace(c,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+c;case 5443:return ee+c+$+"flex-item-"+Utility_replace(c,/flex-|-self/,"")+c;case 4675:return ee+c+$+"flex-line-pack"+Utility_replace(c,/align-content|flex-|-self/,"")+c;case 5548:return ee+c+$+Utility_replace(c,"shrink","negative")+c;case 5292:return ee+c+$+Utility_replace(c,"basis","preferred-size")+c;case 6060:return"-webkit-box-"+Utility_replace(c,"-grow","")+ee+c+$+Utility_replace(c,"grow","positive")+c;case 4554:return ee+Utility_replace(c,/([^-])(transform)/g,"$1-webkit-$2")+c;case 6187:return Utility_replace(Utility_replace(Utility_replace(c,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),c,"")+c;case 5495:case 3959:return Utility_replace(c,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return Utility_replace(Utility_replace(c,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+c+c;case 4095:case 3583:case 4068:case 2532:return Utility_replace(c,/(.+)-inline(.+)/,"-webkit-$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Utility_strlen(c)-1-h>6)switch(Utility_charat(c,h+1)){case 109:if(45!==Utility_charat(c,h+4))break;case 102:return Utility_replace(c,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Utility_charat(c,h+3)?"$3":"$2-$3"))+c;case 115:return~indexof(c,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(c,"stretch","fill-available"),h)+c:c}break;case 4949:if(115!==Utility_charat(c,h+1))break;case 6444:switch(Utility_charat(c,Utility_strlen(c)-3-(~indexof(c,"!important")&&10))){case 107:return Utility_replace(c,":",":-webkit-")+c;case 101:return Utility_replace(c,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Utility_charat(c,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+c}break;case 5936:switch(Utility_charat(c,h+11)){case 114:return ee+c+$+Utility_replace(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return ee+c+$+Utility_replace(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return ee+c+$+Utility_replace(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return ee+c+$+c+c}return c}var ue=[function prefixer(c,h,g,m){if(c.length>-1&&!c.return)switch(c.type){case ne:c.return=emotion_cache_browser_esm_prefix(c.value,c.length);break;case oe:return Serializer_serialize([Tokenizer_copy(c,{value:Utility_replace(c.value,"@","@-webkit-")})],m);case re:if(c.length)return function Utility_combine(c,h){return c.map(h).join("")}(c.props,(function(h){switch(function Utility_match(c,h){return(c=h.exec(c))?c[0]:c}(h,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(c,{props:[Utility_replace(h,/:(read-\w+)/,":-moz-$1")]})],m);case"::placeholder":return Serializer_serialize([Tokenizer_copy(c,{props:[Utility_replace(h,/:(plac\w+)/,":-webkit-input-$1")]}),Tokenizer_copy(c,{props:[Utility_replace(h,/:(plac\w+)/,":-moz-$1")]}),Tokenizer_copy(c,{props:[Utility_replace(h,/:(plac\w+)/,"-ms-input-$1")]})],m)}return""}))}}],de=function createCache(c){var h=c.key;if("css"===h){var g=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(g,(function(c){-1!==c.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(c),c.setAttribute("data-s",""))}))}var b,S,_=c.stylisPlugins||ue,O={},I=[];b=c.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+h+' "]'),(function(c){for(var h=c.getAttribute("data-emotion").split(" "),g=1;g<h.length;g++)O[h[g]]=!0;I.push(c)}));var j,B,N=[stringify,(B=function(c){j.insert(c)},function(c){c.root||(c=c.return)&&B(c)})],H=function middleware(c){var h=Utility_sizeof(c);return function(g,m,b,S){for(var _="",O=0;O<h;O++)_+=c[O](g,m,b,S)||"";return _}}([le,ce].concat(_,N));S=function insert(c,h,g,m){j=g,function stylis(c){Serializer_serialize(compile(c),H)}(c?c+"{"+h.styles+"}":h.styles),m&&($.inserted[h.name]=!0)};var $={key:h,sheet:new m.m({key:h,container:b,nonce:c.nonce,speedy:c.speedy,prepend:c.prepend,insertionPoint:c.insertionPoint}),nonce:c.nonce,inserted:O,registered:{},insert:S};return $.sheet.hydrate(I),$}},546:(c,h,g)=>{"use strict";function memoize(c){var h=Object.create(null);return function(g){return void 0===h[g]&&(h[g]=c(g)),h[g]}}g.d(h,{Z:()=>memoize})},5037:(c,h,g)=>{"use strict";g.d(h,{C:()=>j,E:()=>te,T:()=>N,c:()=>K,h:()=>H,w:()=>B});var m=g(7363),b=g(9521),S=g(5469),_=g(7267),O=g(5251),I=m.createContext("undefined"!=typeof HTMLElement?(0,b.Z)({key:"css"}):null),j=I.Provider,B=function withEmotionCache(c){return(0,m.forwardRef)((function(h,g){var b=(0,m.useContext)(I);return c(h,b,g)}))},N=m.createContext({});var H={}.hasOwnProperty,$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",K=function createEmotionProps(c,h){var g={};for(var m in h)H.call(h,m)&&(g[m]=h[m]);return g[$]=c,g},ee=function Insertion(c){var h=c.cache,g=c.serialized,m=c.isStringTag;return(0,S.hC)(h,g,m),(0,O.L)((function(){return(0,S.My)(h,g,m)})),null},te=B((function(c,h,g){var b=c.css;"string"==typeof b&&void 0!==h.registered[b]&&(b=h.registered[b]);var O=c[$],I=[b],j="";"string"==typeof c.className?j=(0,S.fp)(h.registered,I,c.className):null!=c.className&&(j=c.className+" ");var B=(0,_.O)(I,void 0,m.useContext(N));j+=h.key+"-"+B.name;var K={};for(var te in c)H.call(c,te)&&"css"!==te&&te!==$&&(K[te]=c[te]);return K.className=j,g&&(K.ref=g),m.createElement(m.Fragment,null,m.createElement(ee,{cache:h,serialized:B,isStringTag:"string"==typeof O}),m.createElement(O,K))}))},6502:(c,h,g)=>{"use strict";g.d(h,{F4:()=>keyframes,iv:()=>css,xB:()=>j});var m=g(5037),b=g(7363),S=g(5469),_=g(5251),O=g(7267),I=(g(9521),g(3790),function jsx(c,h){var g=arguments;if(null==h||!m.h.call(h,"css"))return b.createElement.apply(void 0,g);var S=g.length,_=new Array(S);_[0]=m.E,_[1]=(0,m.c)(c,h);for(var O=2;O<S;O++)_[O]=g[O];return b.createElement.apply(null,_)});!function(c){var h;h||(h=c.JSX||(c.JSX={}))}(I||(I={}));var j=(0,m.w)((function(c,h){var g=c.styles,I=(0,O.O)([g],void 0,b.useContext(m.T)),j=b.useRef();return(0,_.j)((function(){var c=h.key+"-global",g=new h.sheet.constructor({key:c,nonce:h.sheet.nonce,container:h.sheet.container,speedy:h.sheet.isSpeedy}),m=!1,b=document.querySelector('style[data-emotion="'+c+" "+I.name+'"]');return h.sheet.tags.length&&(g.before=h.sheet.tags[0]),null!==b&&(m=!0,b.setAttribute("data-emotion",c),g.hydrate([b])),j.current=[g,m],function(){g.flush()}}),[h]),(0,_.j)((function(){var c=j.current,g=c[0];if(c[1])c[1]=!1;else{if(void 0!==I.next&&(0,S.My)(h,I.next,!0),g.tags.length){var m=g.tags[g.tags.length-1].nextElementSibling;g.before=m,g.flush()}h.insert("",I,g,!1)}}),[h,I.name]),null}));function css(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];return(0,O.O)(h)}function keyframes(){var c=css.apply(void 0,arguments),h="animation-"+c.name;return{name:h,styles:"@keyframes "+h+"{"+c.styles+"}",anim:1,toString:function toString(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},7267:(c,h,g)=>{"use strict";g.d(h,{O:()=>serializeStyles});var m={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b=g(546),S=/[A-Z]|^ms/g,_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,O=function isCustomProperty(c){return 45===c.charCodeAt(1)},I=function isProcessableValue(c){return null!=c&&"boolean"!=typeof c},j=(0,b.Z)((function(c){return O(c)?c:c.replace(S,"-$&").toLowerCase()})),B=function processStyleValue(c,h){switch(c){case"animation":case"animationName":if("string"==typeof h)return h.replace(_,(function(c,h,g){return N={name:h,styles:g,next:N},h}))}return 1===m[c]||O(c)||"number"!=typeof h||0===h?h:h+"px"};function handleInterpolation(c,h,g){if(null==g)return"";var m=g;if(void 0!==m.__emotion_styles)return m;switch(typeof g){case"boolean":return"";case"object":var b=g;if(1===b.anim)return N={name:b.name,styles:b.styles,next:N},b.name;var S=g;if(void 0!==S.styles){var _=S.next;if(void 0!==_)for(;void 0!==_;)N={name:_.name,styles:_.styles,next:N},_=_.next;return S.styles+";"}return function createStringFromObject(c,h,g){var m="";if(Array.isArray(g))for(var b=0;b<g.length;b++)m+=handleInterpolation(c,h,g[b])+";";else for(var S in g){var _=g[S];if("object"!=typeof _){var O=_;null!=h&&void 0!==h[O]?m+=S+"{"+h[O]+"}":I(O)&&(m+=j(S)+":"+B(S,O)+";")}else if(!Array.isArray(_)||"string"!=typeof _[0]||null!=h&&void 0!==h[_[0]]){var N=handleInterpolation(c,h,_);switch(S){case"animation":case"animationName":m+=j(S)+":"+N+";";break;default:m+=S+"{"+N+"}"}}else for(var H=0;H<_.length;H++)I(_[H])&&(m+=j(S)+":"+B(S,_[H])+";")}return m}(c,h,g);case"function":if(void 0!==c){var O=N,H=g(c);return N=O,handleInterpolation(c,h,H)}}var $=g;if(null==h)return $;var K=h[$];return void 0!==K?K:$}var N,H=/label:\s*([^\s;{]+)\s*(;|$)/g;function serializeStyles(c,h,g){if(1===c.length&&"object"==typeof c[0]&&null!==c[0]&&void 0!==c[0].styles)return c[0];var m=!0,b="";N=void 0;var S=c[0];null==S||void 0===S.raw?(m=!1,b+=handleInterpolation(g,h,S)):b+=S[0];for(var _=1;_<c.length;_++){if(b+=handleInterpolation(g,h,c[_]),m)b+=S[_]}H.lastIndex=0;for(var O,I="";null!==(O=H.exec(b));)I+="-"+O[1];var j=function murmur2(c){for(var h,g=0,m=0,b=c.length;b>=4;++m,b-=4)h=1540483477*(65535&(h=255&c.charCodeAt(m)|(255&c.charCodeAt(++m))<<8|(255&c.charCodeAt(++m))<<16|(255&c.charCodeAt(++m))<<24))+(59797*(h>>>16)<<16),g=1540483477*(65535&(h^=h>>>24))+(59797*(h>>>16)<<16)^1540483477*(65535&g)+(59797*(g>>>16)<<16);switch(b){case 3:g^=(255&c.charCodeAt(m+2))<<16;case 2:g^=(255&c.charCodeAt(m+1))<<8;case 1:g=1540483477*(65535&(g^=255&c.charCodeAt(m)))+(59797*(g>>>16)<<16)}return(((g=1540483477*(65535&(g^=g>>>13))+(59797*(g>>>16)<<16))^g>>>15)>>>0).toString(36)}(b)+I;return{name:j,styles:b,next:N}}},6375:(c,h,g)=>{"use strict";g.d(h,{m:()=>m});var m=function(){function StyleSheet(c){var h=this;this._insertTag=function(c){var g;g=0===h.tags.length?h.insertionPoint?h.insertionPoint.nextSibling:h.prepend?h.container.firstChild:h.before:h.tags[h.tags.length-1].nextSibling,h.container.insertBefore(c,g),h.tags.push(c)},this.isSpeedy=void 0===c.speedy||c.speedy,this.tags=[],this.ctr=0,this.nonce=c.nonce,this.key=c.key,this.container=c.container,this.prepend=c.prepend,this.insertionPoint=c.insertionPoint,this.before=null}var c=StyleSheet.prototype;return c.hydrate=function hydrate(c){c.forEach(this._insertTag)},c.insert=function insert(c){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(c){var h=document.createElement("style");return h.setAttribute("data-emotion",c.key),void 0!==c.nonce&&h.setAttribute("nonce",c.nonce),h.appendChild(document.createTextNode("")),h.setAttribute("data-s",""),h}(this));var h=this.tags[this.tags.length-1];if(this.isSpeedy){var g=function sheetForTag(c){if(c.sheet)return c.sheet;for(var h=0;h<document.styleSheets.length;h++)if(document.styleSheets[h].ownerNode===c)return document.styleSheets[h]}(h);try{g.insertRule(c,g.cssRules.length)}catch(c){}}else h.appendChild(document.createTextNode(c));this.ctr++},c.flush=function flush(){this.tags.forEach((function(c){var h;return null==(h=c.parentNode)?void 0:h.removeChild(c)})),this.tags=[],this.ctr=0},StyleSheet}()},5251:(c,h,g)=>{"use strict";g.d(h,{L:()=>S,j:()=>_});var m=g(7363),b=!!m.useInsertionEffect&&m.useInsertionEffect,S=b||function syncFallback(c){return c()},_=b||m.useLayoutEffect},5469:(c,h,g)=>{"use strict";g.d(h,{My:()=>b,fp:()=>getRegisteredStyles,hC:()=>m});function getRegisteredStyles(c,h,g){var m="";return g.split(" ").forEach((function(g){void 0!==c[g]?h.push(c[g]+";"):g&&(m+=g+" ")})),m}var m=function registerStyles(c,h,g){var m=c.key+"-"+h.name;!1===g&&void 0===c.registered[m]&&(c.registered[m]=h.styles)},b=function insertStyles(c,h,g){m(c,h,g);var b=c.key+"-"+h.name;if(void 0===c.inserted[h.name]){var S=h;do{c.insert(h===S?"."+b:"",S,c.sheet,!0),S=S.next}while(void 0!==S)}}},1682:(c,h,g)=>{"use strict";g.d(h,{Z:()=>S});var m=g(6177),b=g(7514);const S=(0,m.Z)((0,b.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")},6033:(c,h,g)=>{"use strict";g.d(h,{Z:()=>ge});var m=g(7363),b=g(7726),S=g(9916),_=g(5689),O=g(7843),I=g(518),j=g(2893),B=g(7562),N=g(2791),H=g(8981),$=g(9173),K=g(4685),ee=g(9503);function getAlertUtilityClass(c){return(0,ee.ZP)("MuiAlert",c)}const te=(0,K.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var re=g(3697),ne=g(6177),oe=g(7514);const ie=(0,ne.Z)((0,oe.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"),ae=(0,ne.Z)((0,oe.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),se=(0,ne.Z)((0,oe.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"),le=(0,ne.Z)((0,oe.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"),ce=(0,ne.Z)((0,oe.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"),ue=(0,O.ZP)($.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.root,h[g.variant],h[`${g.variant}${(0,N.Z)(g.color||g.severity)}`]]}})((0,I.Z)((({theme:c})=>{const h="light"===c.palette.mode?_._j:_.$n,g="light"===c.palette.mode?_.$n:_._j;return{...c.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(c.palette).filter((0,H.Z)(["light"])).map((([m])=>({props:{colorSeverity:m,variant:"standard"},style:{color:c.vars?c.vars.palette.Alert[`${m}Color`]:h(c.palette[m].light,.6),backgroundColor:c.vars?c.vars.palette.Alert[`${m}StandardBg`]:g(c.palette[m].light,.9),[`& .${te.icon}`]:c.vars?{color:c.vars.palette.Alert[`${m}IconColor`]}:{color:c.palette[m].main}}}))),...Object.entries(c.palette).filter((0,H.Z)(["light"])).map((([g])=>({props:{colorSeverity:g,variant:"outlined"},style:{color:c.vars?c.vars.palette.Alert[`${g}Color`]:h(c.palette[g].light,.6),border:`1px solid ${(c.vars||c).palette[g].light}`,[`& .${te.icon}`]:c.vars?{color:c.vars.palette.Alert[`${g}IconColor`]}:{color:c.palette[g].main}}}))),...Object.entries(c.palette).filter((0,H.Z)(["dark"])).map((([h])=>({props:{colorSeverity:h,variant:"filled"},style:{fontWeight:c.typography.fontWeightMedium,...c.vars?{color:c.vars.palette.Alert[`${h}FilledColor`],backgroundColor:c.vars.palette.Alert[`${h}FilledBg`]}:{backgroundColor:"dark"===c.palette.mode?c.palette[h].dark:c.palette[h].main,color:c.palette.getContrastText(c.palette[h].main)}}})))]}}))),de=(0,O.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(c,h)=>h.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),pe=(0,O.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(c,h)=>h.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),fe=(0,O.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(c,h)=>h.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),he={success:(0,oe.jsx)(ie,{fontSize:"inherit"}),warning:(0,oe.jsx)(ae,{fontSize:"inherit"}),error:(0,oe.jsx)(se,{fontSize:"inherit"}),info:(0,oe.jsx)(le,{fontSize:"inherit"})},ge=m.forwardRef((function Alert(c,h){const g=(0,j.i)({props:c,name:"MuiAlert"}),{action:m,children:_,className:O,closeText:I="Close",color:H,components:$={},componentsProps:K={},icon:ee,iconMapping:te=he,onClose:ne,role:ie="alert",severity:ae="success",slotProps:se={},slots:le={},variant:ge="standard",...me}=g,ve={...g,color:H,severity:ae,variant:ge,colorSeverity:H||ae},ye=(c=>{const{variant:h,color:g,severity:m,classes:b}=c,_={root:["root",`color${(0,N.Z)(g||m)}`,`${h}${(0,N.Z)(g||m)}`,`${h}`],icon:["icon"],message:["message"],action:["action"]};return(0,S.Z)(_,getAlertUtilityClass,b)})(ve),be={slots:{closeButton:$.CloseButton,closeIcon:$.CloseIcon,...le},slotProps:{...K,...se}},[Se,we]=(0,B.Z)("root",{ref:h,shouldForwardComponentProp:!0,className:(0,b.Z)(ye.root,O),elementType:ue,externalForwardedProps:{...be,...me},ownerState:ve,additionalProps:{role:ie,elevation:0}}),[xe,_e]=(0,B.Z)("icon",{className:ye.icon,elementType:de,externalForwardedProps:be,ownerState:ve}),[Ce,ke]=(0,B.Z)("message",{className:ye.message,elementType:pe,externalForwardedProps:be,ownerState:ve}),[Te,Ee]=(0,B.Z)("action",{className:ye.action,elementType:fe,externalForwardedProps:be,ownerState:ve}),[Pe,Oe]=(0,B.Z)("closeButton",{elementType:re.Z,externalForwardedProps:be,ownerState:ve}),[Ae,Me]=(0,B.Z)("closeIcon",{elementType:ce,externalForwardedProps:be,ownerState:ve});return(0,oe.jsxs)(Se,{...we,children:[!1!==ee?(0,oe.jsx)(xe,{..._e,children:ee||te[ae]||he[ae]}):null,(0,oe.jsx)(Ce,{...ke,children:_}),null!=m?(0,oe.jsx)(Te,{...Ee,children:m}):null,null==m&&ne?(0,oe.jsx)(Te,{...Ee,children:(0,oe.jsx)(Pe,{size:"small","aria-label":I,title:I,color:"inherit",onClick:ne,...Oe,children:(0,oe.jsx)(Ae,{fontSize:"small",...Me})})}):null]})}))},6005:(c,h,g)=>{"use strict";g.d(h,{Z:()=>K});var m=g(7363),b=g(7726),S=g(9916),_=g(7843),O=g(2893),I=g(7562),j=g(7321),B=g(4685),N=g(9503);function getBackdropUtilityClass(c){return(0,N.ZP)("MuiBackdrop",c)}(0,B.Z)("MuiBackdrop",["root","invisible"]);var H=g(7514);const $=(0,_.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.root,g.invisible&&h.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),K=m.forwardRef((function Backdrop(c,h){const g=(0,O.i)({props:c,name:"MuiBackdrop"}),{children:m,className:_,component:B="div",invisible:N=!1,open:K,components:ee={},componentsProps:te={},slotProps:re={},slots:ne={},TransitionComponent:oe,transitionDuration:ie,...ae}=g,se={...g,component:B,invisible:N},le=(c=>{const{classes:h,invisible:g}=c,m={root:["root",g&&"invisible"]};return(0,S.Z)(m,getBackdropUtilityClass,h)})(se),ce={slots:{transition:oe,root:ee.Root,...ne},slotProps:{...te,...re}},[ue,de]=(0,I.Z)("root",{elementType:$,externalForwardedProps:ce,className:(0,b.Z)(le.root,_),ownerState:se}),[pe,fe]=(0,I.Z)("transition",{elementType:j.Z,externalForwardedProps:ce,ownerState:se});return(0,H.jsx)(pe,{in:K,timeout:ie,...ae,...fe,children:(0,H.jsx)(ue,{"aria-hidden":!0,...de,classes:le,ref:h,children:m})})}))},3335:(c,h,g)=>{"use strict";g.d(h,{Z:()=>fe});var m=g(7363),b=g(7726);function resolveProps(c,h){const g={...h};for(const m in c)if(Object.prototype.hasOwnProperty.call(c,m)){const b=m;if("components"===b||"slots"===b)g[b]={...c[b],...g[b]};else if("componentsProps"===b||"slotProps"===b){const m=c[b],S=h[b];if(S)if(m){g[b]={...S};for(const c in m)if(Object.prototype.hasOwnProperty.call(m,c)){const h=c;g[b][h]=resolveProps(m[h],S[h])}}else g[b]=S;else g[b]=m||{}}else void 0===g[b]&&(g[b]=c[b])}return g}var S=g(9916),_=g(5689),O=g(4532),I=g(4039),j=g(7843),B=g(518),N=g(2893),H=g(3688),$=g(3830),K=g(2791),ee=g(8981),te=g(4685),re=g(9503);function getButtonUtilityClass(c){return(0,re.ZP)("MuiButton",c)}const ne=(0,te.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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);const oe=m.createContext({});const ie=m.createContext(void 0);var ae=g(7514);const se=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],le=(0,j.ZP)(H.Z,{shouldForwardProp:c=>(0,I.Z)(c)||"classes"===c,name:"MuiButton",slot:"Root",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.root,h[g.variant],h[`${g.variant}${(0,K.Z)(g.color)}`],h[`size${(0,K.Z)(g.size)}`],h[`${g.variant}Size${(0,K.Z)(g.size)}`],"inherit"===g.color&&h.colorInherit,g.disableElevation&&h.disableElevation,g.fullWidth&&h.fullWidth,g.loading&&h.loading]}})((0,B.Z)((({theme:c})=>{const h="light"===c.palette.mode?c.palette.grey[300]:c.palette.grey[800],g="light"===c.palette.mode?c.palette.grey.A100:c.palette.grey[700];return{...c.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(c.vars||c).shape.borderRadius,transition:c.transitions.create(["background-color","box-shadow","border-color","color"],{duration:c.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ne.disabled}`]:{color:(c.vars||c).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(c.vars||c).shadows[2],"&:hover":{boxShadow:(c.vars||c).shadows[4],"@media (hover: none)":{boxShadow:(c.vars||c).shadows[2]}},"&:active":{boxShadow:(c.vars||c).shadows[8]},[`&.${ne.focusVisible}`]:{boxShadow:(c.vars||c).shadows[6]},[`&.${ne.disabled}`]:{color:(c.vars||c).palette.action.disabled,boxShadow:(c.vars||c).shadows[0],backgroundColor:(c.vars||c).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ne.disabled}`]:{border:`1px solid ${(c.vars||c).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(c.palette).filter((0,ee.Z)()).map((([h])=>({props:{color:h},style:{"--variant-textColor":(c.vars||c).palette[h].main,"--variant-outlinedColor":(c.vars||c).palette[h].main,"--variant-outlinedBorder":c.vars?`rgba(${c.vars.palette[h].mainChannel} / 0.5)`:(0,_.Fq)(c.palette[h].main,.5),"--variant-containedColor":(c.vars||c).palette[h].contrastText,"--variant-containedBg":(c.vars||c).palette[h].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(c.vars||c).palette[h].dark,"--variant-textBg":c.vars?`rgba(${c.vars.palette[h].mainChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette[h].main,c.palette.action.hoverOpacity),"--variant-outlinedBorder":(c.vars||c).palette[h].main,"--variant-outlinedBg":c.vars?`rgba(${c.vars.palette[h].mainChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette[h].main,c.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":c.vars?c.vars.palette.Button.inheritContainedBg:h,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":c.vars?c.vars.palette.Button.inheritContainedHoverBg:g,"--variant-textBg":c.vars?`rgba(${c.vars.palette.text.primaryChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette.text.primary,c.palette.action.hoverOpacity),"--variant-outlinedBg":c.vars?`rgba(${c.vars.palette.text.primaryChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette.text.primary,c.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:c.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:c.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:c.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:c.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:c.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:c.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ne.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ne.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:c.transitions.create(["background-color","box-shadow","border-color"],{duration:c.transitions.duration.short}),[`&.${ne.loading}`]:{color:"transparent"}}}]}}))),ce=(0,j.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.startIcon,g.loading&&h.startIconLoadingStart,h[`iconSize${(0,K.Z)(g.size)}`]]}})((({theme:c})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:c.transitions.create(["opacity"],{duration:c.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...se]}))),ue=(0,j.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.endIcon,g.loading&&h.endIconLoadingEnd,h[`iconSize${(0,K.Z)(g.size)}`]]}})((({theme:c})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:c.transitions.create(["opacity"],{duration:c.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...se]}))),de=(0,j.ZP)("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(c,h)=>h.loadingIndicator})((({theme:c})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(c.vars||c).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),pe=(0,j.ZP)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(c,h)=>h.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),fe=m.forwardRef((function Button(c,h){const g=m.useContext(oe),_=m.useContext(ie),I=resolveProps(g,c),j=(0,N.i)({props:I,name:"MuiButton"}),{children:B,color:H="primary",component:ee="button",className:te,disabled:re=!1,disableElevation:ne=!1,disableFocusRipple:se=!1,endIcon:fe,focusVisibleClassName:he,fullWidth:ge=!1,id:me,loading:ve=null,loadingIndicator:ye,loadingPosition:be="center",size:Se="medium",startIcon:we,type:xe,variant:_e="text",...Ce}=j,ke=(0,O.Z)(me),Te=ye??(0,ae.jsx)($.Z,{"aria-labelledby":ke,color:"inherit",size:16}),Ee={...j,color:H,component:ee,disabled:re,disableElevation:ne,disableFocusRipple:se,fullWidth:ge,loading:ve,loadingIndicator:Te,loadingPosition:be,size:Se,type:xe,variant:_e},Pe=(c=>{const{color:h,disableElevation:g,fullWidth:m,size:b,variant:_,loading:O,loadingPosition:I,classes:j}=c,B={root:["root",O&&"loading",_,`${_}${(0,K.Z)(h)}`,`size${(0,K.Z)(b)}`,`${_}Size${(0,K.Z)(b)}`,`color${(0,K.Z)(h)}`,g&&"disableElevation",m&&"fullWidth",O&&`loadingPosition${(0,K.Z)(I)}`],startIcon:["icon","startIcon",`iconSize${(0,K.Z)(b)}`],endIcon:["icon","endIcon",`iconSize${(0,K.Z)(b)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},N=(0,S.Z)(B,getButtonUtilityClass,j);return{...j,...N}})(Ee),Oe=(we||ve&&"start"===be)&&(0,ae.jsx)(ce,{className:Pe.startIcon,ownerState:Ee,children:we||(0,ae.jsx)(pe,{className:Pe.loadingIconPlaceholder,ownerState:Ee})}),Ae=(fe||ve&&"end"===be)&&(0,ae.jsx)(ue,{className:Pe.endIcon,ownerState:Ee,children:fe||(0,ae.jsx)(pe,{className:Pe.loadingIconPlaceholder,ownerState:Ee})}),Me=_||"",Ie="boolean"==typeof ve?(0,ae.jsx)("span",{className:Pe.loadingWrapper,style:{display:"contents"},children:ve&&(0,ae.jsx)(de,{className:Pe.loadingIndicator,ownerState:Ee,children:Te})}):null;return(0,ae.jsxs)(le,{ownerState:Ee,className:(0,b.Z)(g.className,Pe.root,te,Me),component:ee,disabled:re||ve,focusRipple:!se,focusVisibleClassName:(0,b.Z)(Pe.focusVisible,he),ref:h,type:xe,id:ve?ke:me,...Ce,classes:Pe,children:[Oe,"end"!==be&&Ie,B,"end"===be&&Ie,Ae]})}))},3688:(c,h,g)=>{"use strict";g.d(h,{Z:()=>be});var m=g(7363),b=g.n(m),S=g(7726),_=g(9916),O=g(5260),I=g(7843),j=g(2893),B=g(8080),N=g(8376),H=g(2035);class LazyRipple{static create(){return new LazyRipple}static use(){const c=(0,H.Z)(LazyRipple.create).current,[h,g]=m.useState(!1);return c.shouldMount=h,c.setShouldMount=g,m.useEffect(c.mountEffect,[h]),c}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function createControlledPromise(){let c,h;const g=new Promise(((g,m)=>{c=g,h=m}));return g.resolve=c,g.reject=h,g}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...c){this.mount().then((()=>this.ref.current?.start(...c)))}stop(...c){this.mount().then((()=>this.ref.current?.stop(...c)))}pulsate(...c){this.mount().then((()=>this.ref.current?.pulsate(...c)))}}var $=g(9451);function _extends(){return _extends=Object.assign?Object.assign.bind():function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)({}).hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},_extends.apply(null,arguments)}var K=g(1936),ee=g(5175);function getChildMapping(c,h){var g=Object.create(null);return c&&m.Children.map(c,(function(c){return c})).forEach((function(c){g[c.key]=function mapper(c){return h&&(0,m.isValidElement)(c)?h(c):c}(c)})),g}function getProp(c,h,g){return null!=g[h]?g[h]:c.props[h]}function getNextChildMapping(c,h,g){var b=getChildMapping(c.children),S=function mergeChildMappings(c,h){function getValueForKey(g){return g in h?h[g]:c[g]}c=c||{},h=h||{};var g,m=Object.create(null),b=[];for(var S in c)S in h?b.length&&(m[S]=b,b=[]):b.push(S);var _={};for(var O in h){if(m[O])for(g=0;g<m[O].length;g++){var I=m[O][g];_[m[O][g]]=getValueForKey(I)}_[O]=getValueForKey(O)}for(g=0;g<b.length;g++)_[b[g]]=getValueForKey(b[g]);return _}(h,b);return Object.keys(S).forEach((function(_){var O=S[_];if((0,m.isValidElement)(O)){var I=_ in h,j=_ in b,B=h[_],N=(0,m.isValidElement)(B)&&!B.props.in;!j||I&&!N?j||!I||N?j&&I&&(0,m.isValidElement)(B)&&(S[_]=(0,m.cloneElement)(O,{onExited:g.bind(null,O),in:B.props.in,exit:getProp(O,"exit",c),enter:getProp(O,"enter",c)})):S[_]=(0,m.cloneElement)(O,{in:!1}):S[_]=(0,m.cloneElement)(O,{onExited:g.bind(null,O),in:!0,exit:getProp(O,"exit",c),enter:getProp(O,"enter",c)})}})),S}var te=Object.values||function(c){return Object.keys(c).map((function(h){return c[h]}))},re=function(c){function TransitionGroup(h,g){var m,b=(m=c.call(this,h,g)||this).handleExited.bind(function _assertThisInitialized(c){if(void 0===c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}(m));return m.state={contextValue:{isMounting:!0},handleExited:b,firstRender:!0},m}(0,K.Z)(TransitionGroup,c);var h=TransitionGroup.prototype;return h.componentDidMount=function componentDidMount(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},h.componentWillUnmount=function componentWillUnmount(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function getDerivedStateFromProps(c,h){var g,b,S=h.children,_=h.handleExited;return{children:h.firstRender?(g=c,b=_,getChildMapping(g.children,(function(c){return(0,m.cloneElement)(c,{onExited:b.bind(null,c),in:!0,appear:getProp(c,"appear",g),enter:getProp(c,"enter",g),exit:getProp(c,"exit",g)})}))):getNextChildMapping(c,S,_),firstRender:!1}},h.handleExited=function handleExited(c,h){var g=getChildMapping(this.props.children);c.key in g||(c.props.onExited&&c.props.onExited(h),this.mounted&&this.setState((function(h){var g=_extends({},h.children);return delete g[c.key],{children:g}})))},h.render=function render(){var c=this.props,h=c.component,g=c.childFactory,m=(0,$.Z)(c,["component","childFactory"]),S=this.state.contextValue,_=te(this.state.children).map(g);return delete m.appear,delete m.enter,delete m.exit,null===h?b().createElement(ee.Z.Provider,{value:S},_):b().createElement(ee.Z.Provider,{value:S},b().createElement(h,m,_))},TransitionGroup}(b().Component);re.propTypes={},re.defaultProps={component:"div",childFactory:function childFactory(c){return c}};const ne=re;var oe=g(3968),ie=g(6502),ae=g(7514);const se=function Ripple(c){const{className:h,classes:g,pulsate:b=!1,rippleX:_,rippleY:O,rippleSize:I,in:j,onExited:B,timeout:N}=c,[H,$]=m.useState(!1),K=(0,S.Z)(h,g.ripple,g.rippleVisible,b&&g.ripplePulsate),ee={width:I,height:I,top:-I/2+O,left:-I/2+_},te=(0,S.Z)(g.child,H&&g.childLeaving,b&&g.childPulsate);return j||H||$(!0),m.useEffect((()=>{if(!j&&null!=B){const c=setTimeout(B,N);return()=>{clearTimeout(c)}}}),[B,j,N]),(0,ae.jsx)("span",{className:K,style:ee,children:(0,ae.jsx)("span",{className:te})})};var le=g(4685);const ce=(0,le.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ue=ie.F4`
|
|
2
|
+
var CrystaldesignMediaUpload;(()=>{var c,h,g,m,b={9094:(c,h,g)=>{"use strict";g.d(h,{$L:()=>m,Ab:()=>ae,Cq:()=>H,DO:()=>Pe,EC:()=>$,IE:()=>je,Ie:()=>fe,JK:()=>j,JY:()=>me,Ks:()=>Me,Mu:()=>Ce,O5:()=>oe,P5:()=>Be,Q:()=>Le,Qb:()=>Ee,RW:()=>K,Sg:()=>Ie,TU:()=>se,UA:()=>ge,Vm:()=>Oe,W8:()=>re,Wt:()=>be,XM:()=>pe,XZ:()=>De,Xu:()=>te,YI:()=>Te,Yo:()=>N,Yr:()=>ne,_H:()=>ce,dO:()=>de,e$:()=>Ze,e0:()=>Ne,gv:()=>ee,io:()=>I,jK:()=>_,jR:()=>he,k2:()=>ke,m$:()=>we,mU:()=>Fe,nv:()=>Se,nw:()=>xe,o2:()=>Ae,oZ:()=>B,os:()=>S,ot:()=>ve,p4:()=>ue,pS:()=>ze,pm:()=>ie,pn:()=>ye,r9:()=>O,s6:()=>Ge,sG:()=>He,wO:()=>Re,x9:()=>le,x_:()=>b,yw:()=>_e});var m="schedule",b="invoke",S="addEventListener",_=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],O=5e3,I=3e5,j=1e3,B="page-load",N="custom",H="user-interaction",$="http-request",K="temporary",ee="Unknown",te="page-exit",re=[B,"route-change",H,$,N,K],ne="success",oe="failure",ie="unknown",ae=60,se="transaction:start",le="transaction:end",ce="config:change",ue="queue:flush",de="queue:add_transaction",pe="transaction:ignore",fe="xmlhttprequest",he="fetch",ge="history",me="eventtarget",ve="click",ye="error",be=":before",Se=":after",we="elastic_apm_config",xe="longtask",_e="paint",Ce="measure",ke="navigation",Te="resource",Ee="first-contentful-paint",Pe="largest-contentful-paint",Oe="first-input",Ae="layout-shift",Me="event",Ie="errors",Re="transactions",je="ConfigService",De="LoggingService",Be="TransactionService",Le="ApmServer",Ne="PerformanceMonitoring",Fe="ErrorLogging",ze=".truncated",Ze=1024,He=18e5,Ge=1e4},5951:function(c,h,g){var m,b,S;!function(_,O){"use strict";b=[g(8742)],void 0===(S="function"==typeof(m=function ErrorStackParser(c){var h=/(^|@)\S+\:\d+/,g=/^\s*at .*(\S+\:\d+|\(native\))/m,m=/^(eval@)?(\[native code\])?$/;function _map(c,h,g){if("function"==typeof Array.prototype.map)return c.map(h,g);for(var m=new Array(c.length),b=0;b<c.length;b++)m[b]=h.call(g,c[b]);return m}function _filter(c,h,g){if("function"==typeof Array.prototype.filter)return c.filter(h,g);for(var m=[],b=0;b<c.length;b++)h.call(g,c[b])&&m.push(c[b]);return m}function _indexOf(c,h){if("function"==typeof Array.prototype.indexOf)return c.indexOf(h);for(var g=0;g<c.length;g++)if(c[g]===h)return g;return-1}return{parse:function ErrorStackParser$$parse(c){if(void 0!==c.stacktrace||void 0!==c["opera#sourceloc"])return this.parseOpera(c);if(c.stack&&c.stack.match(g))return this.parseV8OrIE(c);if(c.stack)return this.parseFFOrSafari(c);throw new Error("Cannot parse given Error object")},extractLocation:function ErrorStackParser$$extractLocation(c){if(-1===c.indexOf(":"))return[c];var h=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(c.replace(/[\(\)]/g,""));return[h[1],h[2]||void 0,h[3]||void 0]},parseV8OrIE:function ErrorStackParser$$parseV8OrIE(h){return _map(_filter(h.stack.split("\n"),(function(c){return!!c.match(g)}),this),(function(h){h.indexOf("(eval ")>-1&&(h=h.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var g=h.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),m=this.extractLocation(g.pop()),b=g.join(" ")||void 0,S=_indexOf(["eval","<anonymous>"],m[0])>-1?void 0:m[0];return new c(b,void 0,S,m[1],m[2],h)}),this)},parseFFOrSafari:function ErrorStackParser$$parseFFOrSafari(h){return _map(_filter(h.stack.split("\n"),(function(c){return!c.match(m)}),this),(function(h){if(h.indexOf(" > eval")>-1&&(h=h.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===h.indexOf("@")&&-1===h.indexOf(":"))return new c(h);var g=h.split("@"),m=this.extractLocation(g.pop()),b=g.join("@")||void 0;return new c(b,void 0,m[0],m[1],m[2],h)}),this)},parseOpera:function ErrorStackParser$$parseOpera(c){return!c.stacktrace||c.message.indexOf("\n")>-1&&c.message.split("\n").length>c.stacktrace.split("\n").length?this.parseOpera9(c):c.stack?this.parseOpera11(c):this.parseOpera10(c)},parseOpera9:function ErrorStackParser$$parseOpera9(h){for(var g=/Line (\d+).*script (?:in )?(\S+)/i,m=h.message.split("\n"),b=[],S=2,_=m.length;S<_;S+=2){var O=g.exec(m[S]);O&&b.push(new c(void 0,void 0,O[2],O[1],void 0,m[S]))}return b},parseOpera10:function ErrorStackParser$$parseOpera10(h){for(var g=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,m=h.stacktrace.split("\n"),b=[],S=0,_=m.length;S<_;S+=2){var O=g.exec(m[S]);O&&b.push(new c(O[3]||void 0,void 0,O[2],O[1],void 0,m[S]))}return b},parseOpera11:function ErrorStackParser$$parseOpera11(g){return _map(_filter(g.stack.split("\n"),(function(c){return!!c.match(h)&&!c.match(/^Error created at/)}),this),(function(h){var g,m=h.split("@"),b=this.extractLocation(m.pop()),S=m.shift()||"",_=S.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;S.match(/\(([^\)]*)\)/)&&(g=S.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var O=void 0===g||"[arguments not available]"===g?void 0:g.split(",");return new c(_,O,b[0],b[1],b[2],h)}),this)}}})?m.apply(h,b):m)||(c.exports=S)}()},8742:function(c,h){var g,m,b;!function(S,_){"use strict";m=[],void 0===(b="function"==typeof(g=function(){function _isNumber(c){return!isNaN(parseFloat(c))&&isFinite(c)}function StackFrame(c,h,g,m,b,S){void 0!==c&&this.setFunctionName(c),void 0!==h&&this.setArgs(h),void 0!==g&&this.setFileName(g),void 0!==m&&this.setLineNumber(m),void 0!==b&&this.setColumnNumber(b),void 0!==S&&this.setSource(S)}return StackFrame.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(c){this.functionName=String(c)},getArgs:function(){return this.args},setArgs:function(c){if("[object Array]"!==Object.prototype.toString.call(c))throw new TypeError("Args must be an Array");this.args=c},getFileName:function(){return this.fileName},setFileName:function(c){this.fileName=String(c)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(c){if(!_isNumber(c))throw new TypeError("Line Number must be a Number");this.lineNumber=Number(c)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(c){if(!_isNumber(c))throw new TypeError("Column Number must be a Number");this.columnNumber=Number(c)},getSource:function(){return this.source},setSource:function(c){this.source=String(c)},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(",")+")")+(this.getFileName()?"@"+this.getFileName():"")+(_isNumber(this.getLineNumber())?":"+this.getLineNumber():"")+(_isNumber(this.getColumnNumber())?":"+this.getColumnNumber():"")}},StackFrame})?g.apply(h,m):g)||(c.exports=b)}()},9010:(c,h,g)=>{"use strict";function createStackTraces(c,h){var g=h.error,m=h.filename,b=h.lineno,S=h.colno,_=[];if(g)try{_=c.parse(g)}catch(c){}return function isValidStackTrace(c){return 0!==c.length&&(1!==c.length||"lineNumber"in c[0])}(_)||(_=[{fileName:m,lineNumber:b,columnNumber:S}]),function normalizeStackFrames(c){return c.map((function(c){return c.functionName&&(c.functionName=function normalizeFunctionName(c){var h=c.split("/");return c=h.length>1?["Object",h[h.length-1]].join("."):h[0],c=(h=(c=(c=c.replace(/.<$/gi,".<anonymous>")).replace(/^Anonymous function$/,"<anonymous>")).split(".")).length>1?h[h.length-1]:h[0]}(c.functionName)),c}))}(_).map((function(c){var h=c.fileName,g=c.lineNumber,m=c.columnNumber,b=c.functionName,S=void 0===b?"<anonymous>":b;if(!h&&!g)return{};if(!m&&!g)return{};var _=function cleanFilePath(c){return void 0===c&&(c=""),"<anonymous>"===c&&(c=""),c}(h),O=function filePathToFileName(c){var h=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");return c.indexOf(h)>-1&&(c=c.replace(h+"/","")),c}(_);return function isFileInline(c){return!!c&&0===window.location.href.indexOf(c)}(_)&&(O="(inline script)"),{abs_path:h,filename:O,function:S,lineno:g,colno:m}}))}g.d(h,{tu:()=>nt,S1:()=>ot});const m=function finallyConstructor(c){var h=this.constructor;return this.then((function(g){return h.resolve(c()).then((function(){return g}))}),(function(g){return h.resolve(c()).then((function(){return h.reject(g)}))}))};const b=function allSettled(c){return new this((function(h,g){if(!c||void 0===c.length)return g(new TypeError(typeof c+" "+c+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var m=Array.prototype.slice.call(c);if(0===m.length)return h([]);var b=m.length;function res(c,g){if(g&&("object"==typeof g||"function"==typeof g)){var S=g.then;if("function"==typeof S)return void S.call(g,(function(h){res(c,h)}),(function(g){m[c]={status:"rejected",reason:g},0==--b&&h(m)}))}m[c]={status:"fulfilled",value:g},0==--b&&h(m)}for(var S=0;S<m.length;S++)res(S,m[S])}))};var S=g(5108),_=setTimeout;function isArray(c){return Boolean(c&&void 0!==c.length)}function noop(){}function Promise(c){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if("function"!=typeof c)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],doResolve(c,this)}function handle(c,h){for(;3===c._state;)c=c._value;0!==c._state?(c._handled=!0,Promise._immediateFn((function(){var g=1===c._state?h.onFulfilled:h.onRejected;if(null!==g){var m;try{m=g(c._value)}catch(c){return void reject(h.promise,c)}resolve(h.promise,m)}else(1===c._state?resolve:reject)(h.promise,c._value)}))):c._deferreds.push(h)}function resolve(c,h){try{if(h===c)throw new TypeError("A promise cannot be resolved with itself.");if(h&&("object"==typeof h||"function"==typeof h)){var g=h.then;if(h instanceof Promise)return c._state=3,c._value=h,void finale(c);if("function"==typeof g)return void doResolve(function bind(c,h){return function(){c.apply(h,arguments)}}(g,h),c)}c._state=1,c._value=h,finale(c)}catch(h){reject(c,h)}}function reject(c,h){c._state=2,c._value=h,finale(c)}function finale(c){2===c._state&&0===c._deferreds.length&&Promise._immediateFn((function(){c._handled||Promise._unhandledRejectionFn(c._value)}));for(var h=0,g=c._deferreds.length;h<g;h++)handle(c,c._deferreds[h]);c._deferreds=null}function Handler(c,h,g){this.onFulfilled="function"==typeof c?c:null,this.onRejected="function"==typeof h?h:null,this.promise=g}function doResolve(c,h){var g=!1;try{c((function(c){g||(g=!0,resolve(h,c))}),(function(c){g||(g=!0,reject(h,c))}))}catch(c){if(g)return;g=!0,reject(h,c)}}Promise.prototype.catch=function(c){return this.then(null,c)},Promise.prototype.then=function(c,h){var g=new this.constructor(noop);return handle(this,new Handler(c,h,g)),g},Promise.prototype.finally=m,Promise.all=function(c){return new Promise((function(h,g){if(!isArray(c))return g(new TypeError("Promise.all accepts an array"));var m=Array.prototype.slice.call(c);if(0===m.length)return h([]);var b=m.length;function res(c,S){try{if(S&&("object"==typeof S||"function"==typeof S)){var _=S.then;if("function"==typeof _)return void _.call(S,(function(h){res(c,h)}),g)}m[c]=S,0==--b&&h(m)}catch(c){g(c)}}for(var S=0;S<m.length;S++)res(S,m[S])}))},Promise.allSettled=b,Promise.resolve=function(c){return c&&"object"==typeof c&&c.constructor===Promise?c:new Promise((function(h){h(c)}))},Promise.reject=function(c){return new Promise((function(h,g){g(c)}))},Promise.race=function(c){return new Promise((function(h,g){if(!isArray(c))return g(new TypeError("Promise.race accepts an array"));for(var m=0,b=c.length;m<b;m++)Promise.resolve(c[m]).then(h,g)}))},Promise._immediateFn="function"==typeof setImmediate&&function(c){setImmediate(c)}||function(c){_(c,0)},Promise._unhandledRejectionFn=function _unhandledRejectionFn(c){void 0!==S&&S&&S.warn("Possible Unhandled Promise Rejection:",c)};const O=Promise;var I={};N?I=window:"undefined"!=typeof self&&(I=self);var j="Promise"in I?I.Promise:O,B=[].slice,N="undefined"!=typeof window,H=N&&"undefined"!=typeof performance?performance:{};for(var $=[],K=0;K<256;++K)$[K]=(K+256).toString(16).substr(1);var ee=new Uint8Array(16);function generateRandomId(c){return function bytesToHex(c){for(var h=[],g=0;g<c.length;g++)h.push($[c[g]]);return h.join("")}(function rng(){return"undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues(ee):"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues?msCrypto.getRandomValues(ee):ee}()).substr(0,c)}function setRequestHeader(c,h,g){"function"==typeof c.setRequestHeader?c.setRequestHeader(h,g):c.headers&&"function"==typeof c.headers.append?c.headers.append(h,g):c[h]=g}function checkSameOrigin(c,h){var g=!1;return"string"==typeof h?g=c===h:h&&"function"==typeof h.test?g=h.test(c):Array.isArray(h)&&h.forEach((function(h){g||(g=checkSameOrigin(c,h))})),g}function isPlatformSupported(){return N&&"function"==typeof Set&&"function"==typeof JSON.stringify&&H&&"function"==typeof H.now&&function isCORSSupported(){return"withCredentials"in new window.XMLHttpRequest}()}function setLabel(c,h,g){if(g&&c){var m=removeInvalidChars(c),b=typeof h;return null!=h&&"boolean"!==b&&"number"!==b&&(h=String(h)),g[m]=h,g}}function stripQueryStringFromUrl(c){return c&&c.split("?")[0]}function isObject(c){return null!==c&&"object"==typeof c}function baseExtend(c,h,g){for(var m=0,b=h.length;m<b;++m){var S=h[m];if(isObject(S)||"function"==typeof S)for(var _=Object.keys(S),O=0,I=_.length;O<I;O++){var j=_[O],B=S[j];g&&isObject(B)?(isObject(c[j])||(c[j]=Array.isArray(B)?[]:{}),baseExtend(c[j],[B],!1)):c[j]=B}}return c}function getCurrentScript(){if("undefined"!=typeof document){var c=document.currentScript;return c||function getElasticScript(){if("undefined"!=typeof document)for(var c=document.getElementsByTagName("script"),h=0,g=c.length;h<g;h++){var m=c[h];if(m.src.indexOf("elastic")>0)return m}}()}}function extend(){return baseExtend(Object.create(null),B.call(arguments),!1)}function merge(){return baseExtend(Object.create(null),B.call(arguments),!0)}function isUndefined(c){return void 0===c}function utils_noop(){}function removeInvalidChars(c){return c.replace(/[.*"]/g,"_")}function getLatestSpan(c,h){for(var g=null,m=0;m<c.length;m++){var b=c[m];h&&h(b.type)&&(!g||g._end<b._end)&&(g=b)}return g}function now(){return H.now()}function getTime(c){return"number"==typeof c&&c>=0?c:now()}function getDuration(c,h){return isUndefined(h)||isUndefined(c)?null:parseInt(h-c)}function scheduleMicroTask(c){j.resolve().then(c)}function isPerfTimelineSupported(){return"function"==typeof H.getEntriesByType}function isPerfTypeSupported(c){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(c)>=0}function isPerfInteractionCountSupported(){return"interactionCount"in performance}function isRedirectInfoAvailable(c){return c.redirectStart>0}var te=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],re=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,ne=function(){function Url(c){var h,g=this.extractProtocol(c||""),m=g.protocol,b=g.address,S=g.slashes,_=!m&&!S,O=this.getLocation(),I=te.slice();b=b.replace("\\","/"),S||(I[2]=[NaN,"path"]);for(var j=0;j<I.length;j++){var B=I[j],N=B[0],H=B[1];if("string"==typeof N){if(~(h=b.indexOf(N))){var $=B[2];if($){var K=b.lastIndexOf(N);h=Math.max(h,K),this[H]=b.slice(0,h),b=b.slice(h+$)}else this[H]=b.slice(h),b=b.slice(0,h)}}else this[H]=b,b="";this[H]=this[H]||_&&B[3]&&O[H]||"",B[3]&&(this[H]=this[H].toLowerCase())}if(_&&"/"!==this.path.charAt(0)&&(this.path="/"+this.path),this.relative=_,this.protocol=m||O.protocol,this.hostname=this.host,this.port="",/:\d+$/.test(this.host)){var ee=this.host.split(":"),re=ee.pop(),ne=ee.join(":");!function isDefaultPort(c,h){switch(h){case"http:":return"80"===c;case"https:":return"443"===c}return!0}(re,this.protocol)?this.port=re:this.host=ne,this.hostname=ne}this.origin=this.protocol&&this.host&&"file:"!==this.protocol?this.protocol+"//"+this.host:"null",this.href=this.toString()}var c=Url.prototype;return c.toString=function toString(){var c=this.protocol;if(c+="//",this.auth){var h="[REDACTED]",g=this.auth.split(":");c+=(g[0]?h:"")+(g[1]?":"+h:"")+"@"}return c+=this.host,c+=this.path,c+=this.query,c+=this.hash},c.getLocation=function getLocation(){var c={};return N&&(c=window),c.location},c.extractProtocol=function extractProtocol(c){var h=re.exec(c);return{protocol:h[1]?h[1].toLowerCase():"",slashes:!!h[2],address:h[3]}},Url}();var oe=g(9094),ie=["tags"];function getResponseContext(c){var h={transfer_size:c.transferSize,encoded_body_size:c.encodedBodySize,decoded_body_size:c.decodedBodySize},g=function getServerTimingInfo(c){void 0===c&&(c=[]);for(var h=[],g=0;g<c.length;g++){var m=c[g],b=m.name,S=m.duration,_=m.description,O=b;_&&(O+=";desc="+_),S&&(O+=";dur="+S),h.push(O)}return h.join(", ")}(c.serverTiming);return g&&(h.headers={"server-timing":g}),h}function getDestination(c){var h=c.port,g=c.protocol,m=c.hostname,b=function getPortNumber(c,h){return""===c&&(c="http:"===h?"80":"https:"===h?"443":""),c}(h,g),S=91===m.charCodeAt(0)&&93===m.charCodeAt(m.length-1),_=m;return S&&(_=m.slice(1,-1)),{service:{resource:m+":"+b,name:"",type:""},address:_,port:Number(b)}}function getPageContext(){return{page:{referer:document.referrer,url:location.href}}}function addSpanContext(c,h){if(h){var g;switch(c.type){case"external":g=function getExternalContext(c){var h,g=c.url,m=c.method,b=c.target,S=c.response,_=new ne(g),O=getDestination(_),I={http:{method:m,url:_.href},destination:O};return b&&void 0!==b.status?h=b.status:S&&(h=S.status),I.http.status_code=h,I}(h);break;case"resource":g=function getResourceContext(c){var h=c.entry,g=c.url,m=getDestination(new ne(g));return{http:{url:g,response:getResponseContext(h)},destination:m}}(h);break;case"hard-navigation":g=function getNavigationContext(c){var h=c.url;return{destination:getDestination(new ne(h))}}(h)}c.addContext(g)}}var ae={service:{name:[oe.e$,!0],version:!0,agent:{version:[oe.e$,!0]},environment:!0},labels:{"*":!0}},se={"*":!0,headers:{"*":!0}},le={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:se},destination:{address:[oe.e$],service:{"*":[oe.e$,!0]}},response:se},ce={name:[oe.e$,!0],type:[oe.e$,!0],id:[oe.e$,!0],trace_id:[oe.e$,!0],parent_id:[oe.e$,!0],transaction_id:[oe.e$,!0],subtype:!0,action:!0,context:le},ue={name:!0,parent_id:!0,type:[oe.e$,!0],id:[oe.e$,!0],trace_id:[oe.e$,!0],span_count:{started:[oe.e$,!0]},context:le},de={id:[oe.e$,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:le};function isEmpty(c){return null==c||""===c||void 0===c}function replaceValue(c,h,g){var m=function truncate(c,h,g,m){return void 0===h&&(h=oe.e$),void 0===g&&(g=!1),void 0===m&&(m="N/A"),g&&isEmpty(c)&&(c=m),"string"==typeof c?c.substring(0,h):c}(c[h],g[0],g[1]);isEmpty(m)?delete c[h]:c[h]=m}function truncateModel(c,h,g){void 0===c&&(c={}),void 0===g&&(g=h);for(var m=Object.keys(c),b=[],S=function _loop(){var S=m[_],O=!0===c[S]?b:c[S];Array.isArray(O)?"*"===S?Object.keys(g).forEach((function(c){return replaceValue(g,c,O)})):replaceValue(g,S,O):truncateModel(O,h,g[S])},_=0;_<m.length;_++)S();return h}var pe=g(5951),fe=g.n(pe),he=["tags"];var ge=["stack","message"],me="Unhandled promise rejection: ";const ve=function(){function ErrorLogging(c,h,g){this._apmServer=c,this._configService=h,this._transactionService=g}var c=ErrorLogging.prototype;return c.createErrorDataModel=function createErrorDataModel(c,h){var g=function filterInvalidFrames(c){return c.filter((function(c){var h=c.filename,g=c.lineno;return void 0!==h&&void 0!==g}))}(createStackTraces(fe(),c)),m="(inline script)",b=g[g.length-1];b&&b.filename&&(m=b.filename);var S=c.message,_=c.error,O=S,I="",j={};if(_&&"object"==typeof _){O=O||_.message,I=_.name;var B=function getErrorProperties(c){var h=!1,g={};if(Object.keys(c).forEach((function(m){if(!(ge.indexOf(m)>=0)){var b=c[m];if(null!=b&&"function"!=typeof b){if("object"==typeof b){if("function"!=typeof b.toISOString)return;b=b.toISOString()}g[m]=b,h=!0}}})),h)return g}(_);B&&(j.custom=B)}if(h&&h.labels){var N=Object.keys(h.labels);j.tags={},N.forEach((function(c){return setLabel(c,h.labels[c],j.tags)}))}I||O&&O.indexOf(":")>-1&&(I=O.split(":")[0]);var H=this._transactionService.getCurrentTransaction(),$=H?H.context:{},K=this._configService.get("context"),ee=(K.tags,function error_logging_objectWithoutPropertiesLoose(c,h){if(null==c)return{};var g={};for(var m in c)if({}.hasOwnProperty.call(c,m)){if(-1!==h.indexOf(m))continue;g[m]=c[m]}return g}(K,he)),te=merge({},getPageContext(),$,ee,j),re={id:generateRandomId(),culprit:m,exception:{message:O,stacktrace:g,type:I},context:te};return H&&(re=extend(re,{trace_id:H.traceId,parent_id:H.id,transaction_id:H.id,transaction:{type:H.type,sampled:H.sampled}})),truncateModel(de,re)},c.logErrorEvent=function logErrorEvent(c,h){if(void 0!==c){var g=this.createErrorDataModel(c,h);void 0!==g.exception.message&&this._apmServer.addError(g)}},c.registerListeners=function registerListeners(){var c=this;window.addEventListener("error",(function(h){return c.logErrorEvent(h)})),window.addEventListener("unhandledrejection",(function(h){return c.logPromiseEvent(h)}))},c.logPromiseEvent=function logPromiseEvent(c){var h,g=c.reason;if(null==g&&(g="<no reason specified>"),"string"==typeof g.message){var m=g.name?g.name+": ":"";h={error:g,message:me+m+g.message}}else h=this._parseRejectReason(g);this.logErrorEvent(h)},c.logError=function logError(c,h){var g={};return"string"==typeof c?g.message=c:g.error=c,this.logErrorEvent(g,h)},c._parseRejectReason=function _parseRejectReason(c){var h={message:me};if(Array.isArray(c))h.message+="<object>";else if("object"==typeof c)try{h.message+=JSON.stringify(c),h.error=c}catch(c){h.message+="<object>"}else h.message+="function"==typeof c?"<function>":c;return h},ErrorLogging}();const ye=function(){function Queue(c,h){void 0===h&&(h={}),this.onFlush=c,this.items=[],this.queueLimit=h.queueLimit||-1,this.flushInterval=h.flushInterval||0,this.timeoutId=void 0}var c=Queue.prototype;return c._setTimer=function _setTimer(){var c=this;this.timeoutId=setTimeout((function(){return c.flush()}),this.flushInterval)},c._clear=function _clear(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},c.flush=function flush(){this.onFlush(this.items),this._clear()},c.add=function add(c){this.items.push(c),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},Queue}();const be=function(){function NDJSON(){}return NDJSON.stringify=function stringify(c){return JSON.stringify(c)+"\n"},NDJSON}();var Se=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],we=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function getPageLoadMarks(c){var h=function getNavigationTimingMarks(c){var h=c.redirectStart,g=c.fetchStart,m=c.navigationStart,b=c.responseStart,S=c.responseEnd;if(g>=m&&b>=g&&S>=b){var _={};return Se.forEach((function(m){var b=c[m];b&&b>=g&&(isRedirectInfoAvailable(c)?_[m]=parseInt(b-h):_[m]=parseInt(b-g))})),_}return null}(c);return null==h?null:{navigationTiming:h,agent:{timeToFirstByte:h.responseStart,domInteractive:h.domInteractive,domComplete:h.domComplete}}}function compressResponse(c){return{ts:c.transfer_size,ebs:c.encoded_body_size,dbs:c.decoded_body_size}}function compressContext(c){if(!c)return null;var h={},g=c.page,m=c.http,b=c.response,S=c.destination,_=c.user,O=c.custom,I=c.tags;if(g&&(h.p={rf:g.referer,url:g.url}),m&&(h.h=function compressHTTP(c){var h={},g=c.method,m=c.status_code,b=c.url,S=c.response;return h.url=b,g&&(h.mt=g),m&&(h.sc=m),S&&(h.r=compressResponse(S)),h}(m)),b&&(h.r=compressResponse(b)),S){var j=S.service;h.dt={se:{n:j.name,t:j.type,rc:j.resource},ad:S.address,po:S.port}}return _&&(h.u={id:_.id,un:_.username,em:_.email}),O&&(h.cu=O),I&&(h.g=I),h}function compressMarks(c){if(!c)return null;var h=function compressNavigationTimingMarks(c){if(!c)return null;var h={};return we.forEach((function(g,m){var b=Se[m];h[g]=c[b]})),h}(c.navigationTiming);return{nt:h,a:compressAgentMarks(h,c.agent)}}function compressAgentMarks(c,h){var g={};if(c&&(g={fb:c.rs,di:c.di,dc:c.dc}),h){var m=h.firstContentfulPaint,b=h.largestContentfulPaint;m&&(g.fp=m),b&&(g.lp=b)}return 0===Object.keys(g).length?null:g}function compressPayload(c,h){void 0===h&&(h="gzip");var g="function"==typeof CompressionStream;return new j((function(m){if(!g)return m(c);if(function isBeaconInspectionEnabled(){var c="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(c))return!0;if(!window.URL||!window.URLSearchParams)return!1;try{var h=new URL(window.location.href).searchParams.has(c);return h&&sessionStorage.setItem(c,!0),h}catch(c){}return!1}())return m(c);var b=c.payload,S=c.headers,_=c.beforeSend,O=new Blob([b]).stream().pipeThrough(new CompressionStream(h));return new Response(O).blob().then((function(c){return S["Content-Encoding"]=h,m({payload:c,headers:S,beforeSend:_})}))}))}var xe=!1,_e={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER};function isResponseSuccessful(c){return!(0===c||c>399&&c<600)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)({}).hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},_extends.apply(null,arguments)}function shouldUseFetchWithKeepAlive(c,h){if(!isFetchSupported())return!1;if(!("keepalive"in new Request("")))return!1;var g=function calculateSize(c){if(!c)return 0;if(c instanceof Blob)return c.size;return new Blob([c]).size}(h);return"POST"===c&&g<6e4}function isFetchSupported(){return"function"==typeof window.fetch&&"function"==typeof window.Request}var Ce={fetchInProgress:!1};function apmSymbol(c){return"__apm_symbol__"+c}function patchMethod(c,h,g){for(var m=c;m&&!m.hasOwnProperty(h);)m=Object.getPrototypeOf(m);!m&&c[h]&&(m=c);var b,S=apmSymbol(h);if(m&&!(b=m[S])&&(b=m[S]=m[h],function isPropertyWritable(c){return!c||!1!==c.writable&&!("function"==typeof c.get&&void 0===c.set)}(m&&Object.getOwnPropertyDescriptor(m,h)))){var _=g(b,S,h);m[h]=function(){return _(this,arguments)},function attachOriginToPatched(c,h){c[apmSymbol("OriginalDelegate")]=h}(m[h],b)}return b}var ke=apmSymbol("xhrIgnore"),Te=apmSymbol("xhrSync"),Ee=apmSymbol("xhrURL"),Pe=apmSymbol("xhrMethod");function sendXHR(c,h,g){var m=g.timeout,b=void 0===m?HTTP_REQUEST_TIMEOUT:m,S=g.payload,_=g.headers,O=g.beforeSend,I=g.sendCredentials;return new j((function(g,m){var j=new window.XMLHttpRequest;if(j[ke]=!0,j.open(c,h,!0),j.timeout=b,j.withCredentials=I,_)for(var B in _)_.hasOwnProperty(B)&&j.setRequestHeader(B,_[B]);j.onreadystatechange=function(){if(4===j.readyState){var c=j.status,b=j.responseText;isResponseSuccessful(c)?g(j):m({url:h,status:c,responseText:b})}},j.onerror=function(){var c=j.status,g=j.responseText;m({url:h,status:c,responseText:g})};var N=!0;"function"==typeof O&&(N=O({url:h,method:c,headers:_,payload:S,xhr:j})),N?j.send(S):m({url:h,status:0,responseText:"Request rejected by user configuration."})}))}var Oe=function(){function ApmServer(c,h){this._configService=c,this._loggingService=h,this.queue=void 0,this.throttleEvents=utils_noop}var c=ApmServer.prototype;return c.init=function init(){var c=this,h=this._configService.get("queueLimit"),g=this._configService.get("flushInterval"),m=this._configService.get("eventsLimit");this.queue=new ye((function onFlush(h){var g=c.sendEvents(h);g&&g.catch((function(h){c._loggingService.warn("Failed sending events!",c._constructError(h))}))}),{queueLimit:h,flushInterval:g}),this.throttleEvents=function throttle(c,h,g){var m,b=this,S=g.limit,_=g.interval,O=0;return function(){return O++,void 0===m&&(m=setTimeout((function(){O=0,m=void 0}),_)),O>S&&"function"==typeof h?h.apply(b,arguments):c.apply(b,arguments)}}(this.queue.add.bind(this.queue),(function(){return c._loggingService.warn("Dropped events due to throttling!")}),{limit:m,interval:6e4}),this._configService.observeEvent(oe.p4,(function(){c.queue.flush()}))},c._postJson=function _postJson(c,h){var g=this,m={payload:h,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return compressPayload(m).catch((function(c){return m})).then((function(h){return g._makeHttpRequest("POST",c,h)})).then((function(c){return c.responseText}))},c._constructError=function _constructError(c){var h=c.url,g=c.status;c.responseText;if(void 0===g)return c;var m=h+" HTTP status: "+g;return new Error(m)},c._makeHttpRequest=function _makeHttpRequest(c,h,g){var m=void 0===g?{}:g,b=m.timeout,S=void 0===b?oe.s6:b,_=m.payload,O=m.headers,I=m.beforeSend,j=this._configService.get("sendCredentials");return!I&&shouldUseFetchWithKeepAlive(c,_)?function sendFetchRequest(c,h,g){var m,b=g.keepalive,S=void 0!==b&&b,_=g.timeout,O=void 0===_?oe.s6:_,I=g.payload,j=g.headers,B=g.sendCredentials,N={};if("function"==typeof AbortController){var H=new AbortController;N.signal=H.signal,setTimeout((function(){return H.abort()}),O)}return window.fetch(h,_extends({body:I,headers:j,method:c,keepalive:S,credentials:B?"include":"omit"},N)).then((function(c){return(m=c).text()})).then((function(c){var g={url:h,status:m.status,responseText:c};if(!isResponseSuccessful(m.status))throw g;return g}))}(c,h,{keepalive:!0,timeout:S,payload:_,headers:O,sendCredentials:j}).catch((function(g){if(g instanceof TypeError)return sendXHR(c,h,{timeout:S,payload:_,headers:O,beforeSend:I,sendCredentials:j});throw g})):sendXHR(c,h,{timeout:S,payload:_,headers:O,beforeSend:I,sendCredentials:j})},c.fetchConfig=function fetchConfig(c,h){var g=this,m=this.getEndpoints().configEndpoint;if(!c)return j.reject("serviceName is required for fetching central config.");m+="?service.name="+c,h&&(m+="&service.environment="+h);var b=this._configService.getLocalConfig();b&&(m+="&ifnonematch="+b.etag);var S=this._configService.get("apmRequest");return this._makeHttpRequest("GET",m,{timeout:5e3,beforeSend:S}).then((function(c){var h=c.status,m=c.responseText;if(304===h)return b;var S=JSON.parse(m),_=c.getResponseHeader("etag");return _&&(S.etag=_.replace(/["]/g,""),g._configService.setLocalConfig(S,!0)),S})).catch((function(c){var h=g._constructError(c);return j.reject(h)}))},c.createMetaData=function createMetaData(){var c=this._configService,h={service:{name:c.get("serviceName"),version:c.get("serviceVersion"),agent:{name:"rum-js",version:c.version},language:{name:"javascript"},environment:c.get("environment")},labels:c.get("context.tags")};return truncateModel(ae,h)},c.addError=function addError(c){var h;this.throttleEvents(((h={})[oe.Sg]=c,h))},c.addTransaction=function addTransaction(c){var h;this.throttleEvents(((h={})[oe.wO]=c,h))},c.ndjsonErrors=function ndjsonErrors(c,h){var g=h?"e":"error";return c.map((function(c){var m;return be.stringify(((m={})[g]=h?function compressError(c){var h,g=c.exception,m={id:c.id,cl:c.culprit,ex:{mg:g.message,st:(h=g.stacktrace,h.map((function(c){return{ap:c.abs_path,f:c.filename,fn:c.function,li:c.lineno,co:c.colno}}))),t:c.type},c:compressContext(c.context)},b=c.transaction;return b&&(m.tid=c.trace_id,m.pid=c.parent_id,m.xid=c.transaction_id,m.x={t:b.type,sm:b.sampled}),m}(c):c,m))}))},c.ndjsonMetricsets=function ndjsonMetricsets(c){return c.map((function(c){return be.stringify({metricset:c})})).join("")},c.ndjsonTransactions=function ndjsonTransactions(c,h){var g=this,m=h?"x":"transaction";return c.map((function(c){var b,S="",_="";return h||(c.spans&&(S=c.spans.map((function(c){return be.stringify({span:c})})).join(""),delete c.spans),c.breakdown&&(_=g.ndjsonMetricsets(c.breakdown),delete c.breakdown)),be.stringify(((b={})[m]=h?function compressTransaction(c){var h,g=c.spans.map((function(h){var g={id:h.id,n:h.name,t:h.type,s:h.start,d:h.duration,c:compressContext(h.context),o:h.outcome,sr:h.sample_rate};return h.parent_id!==c.id&&(g.pid=h.parent_id),!0===h.sync&&(g.sy=!0),h.subtype&&(g.su=h.subtype),h.action&&(g.ac=h.action),g})),m={id:c.id,pid:c.parent_id,tid:c.trace_id,n:c.name,t:c.type,d:c.duration,c:compressContext(c.context),k:compressMarks(c.marks),me:(h=c.breakdown,h.map((function(c){var h=c.span,g=c.samples;return{y:{t:h.type},sa:{ysc:{v:g["span.self_time.count"].value},yss:{v:g["span.self_time.sum.us"].value}}}}))),y:g,yc:{sd:g.length},sm:c.sampled,sr:c.sample_rate,o:c.outcome};if(c.experience){var b=c.experience,S=b.cls,_=b.fid,O=b.tbt,I=b.longtask;m.exp={cls:S,fid:_,tbt:O,lt:I}}if(c.session){var j=c.session,B=j.id,N=j.sequence;m.ses={id:B,seq:N}}return m}(c):c,b))+S+_}))},c.sendEvents=function sendEvents(c){var h,g;if(0!==c.length){for(var m=[],b=[],S=0;S<c.length;S++){var _=c[S];_[oe.wO]&&m.push(_[oe.wO]),_[oe.Sg]&&b.push(_[oe.Sg])}if(0!==m.length||0!==b.length){var O=this._configService,I=((h={})[oe.wO]=m,h[oe.Sg]=b,h),j=O.applyFilters(I);if(j){var B=O.get("apiVersion")>2,N=[],H=this.createMetaData(),$=B?"m":"metadata";N.push(be.stringify(((g={})[$]=B?function compressMetadata(c){var h=c.service,g=c.labels,m=h.agent,b=h.language;return{se:{n:h.name,ve:h.version,a:{n:m.name,ve:m.version},la:{n:b.name},en:h.environment},l:g}}(H):H,g)));var K=(N=N.concat(this.ndjsonErrors(j[oe.Sg],B),this.ndjsonTransactions(j[oe.wO],B))).join(""),ee=this.getEndpoints().intakeEndpoint;return this._postJson(ee,K)}this._loggingService.warn("Dropped payload due to filtering!")}}},c.getEndpoints=function getEndpoints(){var c=this._configService.get("serverUrl"),h=this._configService.get("apiVersion");return{intakeEndpoint:c+(this._configService.get("serverUrlPrefix")||"/intake/v"+h+"/rum/events"),configEndpoint:c+"/config/v1/rum/agents"}},ApmServer}();const Ae=Oe;var Me=g(5108);const Ie=function(){function EventHandler(){this.observers={}}var c=EventHandler.prototype;return c.observe=function observe(c,h){var g=this;if("function"==typeof h)return this.observers[c]||(this.observers[c]=[]),this.observers[c].push(h),function(){var m=g.observers[c].indexOf(h);m>-1&&g.observers[c].splice(m,1)}},c.sendOnly=function sendOnly(c,h){var g=this.observers[c];g&&g.forEach((function(c){try{c.apply(void 0,h)}catch(c){Me.log(c,c.stack)}}))},c.send=function send(c,h){this.sendOnly(c+oe.Wt,h),this.sendOnly(c,h),this.sendOnly(c+oe.nv,h)},EventHandler}();g(5108);function config_service_extends(){return config_service_extends=Object.assign?Object.assign.bind():function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)({}).hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},config_service_extends.apply(null,arguments)}var Re=function(){function Config(){this.config={serviceName:"",serviceVersion:"",environment:"",serverUrl:"http://localhost:8200",serverUrlPrefix:"",active:!0,instrument:!0,disableInstrumentations:[],logLevel:"warn",breakdownMetrics:!1,ignoreTransactions:[],eventsLimit:80,queueLimit:-1,flushInterval:500,distributedTracing:!0,distributedTracingOrigins:[],distributedTracingHeaderName:"traceparent",pageLoadTraceId:"",pageLoadSpanId:"",pageLoadSampled:!1,pageLoadParentId:"",pageLoadTransactionName:"",propagateTracestate:!1,transactionSampleRate:1,centralConfig:!1,monitorLongtasks:!0,apiVersion:2,context:{},session:!1,apmRequest:null,sendCredentials:!1,reportTransactionsWithoutSpans:!1},this.events=new Ie,this.filters=[],this.version=""}var c=Config.prototype;return c.init=function init(){var c=function getConfigFromScript(){var c=function getDataAttributesFromNode(c){if(!c)return{};for(var h={},g=/^data-([\w-]+)$/,m=c.attributes,b=0;b<m.length;b++){var S=m[b];g.test(S.nodeName)&&(h[S.nodeName.match(g)[1].split("-").map((function(c,h){return h>0?c.charAt(0).toUpperCase()+c.substring(1):c})).join("")]=S.value||S.nodeValue)}return h}(getCurrentScript());return c}();this.setConfig(c)},c.setVersion=function setVersion(c){this.version=c},c.addFilter=function addFilter(c){if("function"!=typeof c)throw new Error("Argument to must be function");this.filters.push(c)},c.applyFilters=function applyFilters(c){try{for(var h=0;h<this.filters.length;h++)if(!(c=this.filters[h](c)))return;if(c.transactions=c.transactions.filter((function(c){return c})),c.errors=c.errors.filter((function(c){return c})),0===c.transactions.length&&0===c.errors.length)return}catch(c){return void 0}return c},c.get=function get(c){return c.split(".").reduce((function(c,h){return c&&c[h]}),this.config)},c.setUserContext=function setUserContext(c){void 0===c&&(c={});var h={},g=c,m=g.id,b=g.username,S=g.email;"number"!=typeof m&&"string"!=typeof m||(h.id=m),"string"==typeof b&&(h.username=b),"string"==typeof S&&(h.email=S),this.config.context.user=extend(this.config.context.user||{},h)},c.setCustomContext=function setCustomContext(c){void 0===c&&(c={}),this.config.context.custom=extend(this.config.context.custom||{},c)},c.addLabels=function addLabels(c){var h=this;this.config.context.tags||(this.config.context.tags={}),Object.keys(c).forEach((function(g){return setLabel(g,c[g],h.config.context.tags)}))},c.setConfig=function setConfig(c){void 0===c&&(c={});var h=c,g=h.transactionSampleRate,m=h.serverUrl;m&&(c.serverUrl=m.replace(/\/+$/,"")),isUndefined(g)||(g<1e-4&&g>0&&(g=1e-4),c.transactionSampleRate=Math.round(1e4*g)/1e4),this.config=merge(this.config,c),this.events.send(oe._H,[this.config])},c.validate=function validate(c){void 0===c&&(c={});var h=["serviceName","serverUrl"],g=Object.keys(this.config),m={missing:[],invalid:[],unknown:[]};Object.keys(c).forEach((function(b){-1===h.indexOf(b)||c[b]||m.missing.push(b),-1===g.indexOf(b)&&m.unknown.push(b)})),c.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(c.serviceName)&&m.invalid.push({key:"serviceName",value:c.serviceName,allowed:"a-z, A-Z, 0-9, _, -, <space>"});var b=c.transactionSampleRate;return void 0!==b&&("number"!=typeof b||isNaN(b)||b<0||b>1)&&m.invalid.push({key:"transactionSampleRate",value:b,allowed:"Number between 0 and 1"}),m},c.getLocalConfig=function getLocalConfig(){var c=sessionStorage;this.config.session&&(c=localStorage);var h=c.getItem(oe.m$);if(h)return JSON.parse(h)},c.setLocalConfig=function setLocalConfig(c,h){if(c){if(h)c=config_service_extends({},this.getLocalConfig(),c);var g=sessionStorage;this.config.session&&(g=localStorage),g.setItem(oe.m$,JSON.stringify(c))}},c.dispatchEvent=function dispatchEvent(c,h){this.events.send(c,h)},c.observeEvent=function observeEvent(c,h){return this.events.observe(c,h)},Config}();const je=Re;var De=g(5108);const Be=function(){function LoggingService(c){void 0===c&&(c={}),this.levels=["trace","debug","info","warn","error"],this.level=c.level||"warn",this.prefix=c.prefix||"",this.resetLogMethods()}var c=LoggingService.prototype;return c.shouldLog=function shouldLog(c){return this.levels.indexOf(c)>=this.levels.indexOf(this.level)},c.setLevel=function setLevel(c){c!==this.level&&(this.level=c,this.resetLogMethods())},c.resetLogMethods=function resetLogMethods(){var c=this;this.levels.forEach((function(h){c[h]=c.shouldLog(h)?function log(){var c=h;"trace"!==h&&"debug"!==h||(c="info");var g=arguments;if(g[0]=this.prefix+g[0],De){var m=De[c]||De.log;"function"==typeof m&&m.apply(De,g)}}:utils_noop}))},LoggingService}();g(5108);var Le,Ne=((Le={})[oe.IE]=function(){return new je},Le[oe.XZ]=function(){return new Be({prefix:"[Elastic APM] "})},Le[oe.Q]=function(c){var h=c.getService([oe.IE,oe.XZ]),g=h[0],m=h[1];return new Ae(g,m)},Le),Fe=function(){function ServiceFactory(){this.instances={},this.initialized=!1}var c=ServiceFactory.prototype;return c.init=function init(){if(!this.initialized){this.initialized=!0;var c=this.getService(oe.IE);c.init();var h=this.getService([oe.XZ,oe.Q]),g=h[0],m=h[1];c.events.observe(oe._H,(function(){var h=c.get("logLevel");g.setLevel(h)})),m.init()}},c.getService=function getService(c){var h=this;return"string"==typeof c?(this.instances[c]||"function"==typeof Ne[c]&&(this.instances[c]=Ne[c](this)),this.instances[c]):Array.isArray(c)?c.map((function(c){return h.getService(c)})):void 0},ServiceFactory}();function patchXMLHttpRequest(c){var h=XMLHttpRequest.prototype;if(h&&h[oe.os])var g="readystatechange",m="load",b="error",S=patchMethod(h,"open",(function(){return function(c,h){return c[ke]||(c[Pe]=h[0],c[Ee]=h[1],c[Te]=!1===h[2]),S.apply(c,h)}})),_=patchMethod(h,"send",(function(){return function(h,S){if(h[ke])return _.apply(h,S);var O={source:oe.Ie,state:"",type:"macroTask",data:{target:h,method:h[Pe],sync:h[Te],url:h[Ee],status:""}};try{return function scheduleTask(h){if(h.state!==oe.$L){h.state=oe.$L,c(oe.$L,h);var S=h.data.target;addListener(g),addListener(m),addListener("timeout"),addListener(b),addListener("abort")}function addListener(c){S[oe.os](c,(function(c){var b=c.type;b===g?4===S.readyState&&0!==S.status&&invokeTask(h,"success"):invokeTask(h,b===m?"success":b)}))}}(O),_.apply(h,S)}catch(c){throw invokeTask(O,b),c}}}));function invokeTask(h,g){h.state!==oe.x_&&(h.state=oe.x_,h.data.status=g,c(oe.x_,h))}}var ze=new Ie,Ze=!1;function patchAll(){return Ze||(Ze=!0,patchXMLHttpRequest((function(c,h){ze.send(oe.Ie,[c,h])})),function patchFetch(c){if(isFetchSupported()){var h=window.fetch;window.fetch=function(c,g){var m,b,S=this,_=arguments,O=c instanceof URL;if("string"==typeof c||O)m=new Request(c,g),b=O?m.url:c;else{if(!c)return h.apply(S,_);b=(m=new Request(c,g)).url}var I={source:oe.jR,state:"",type:"macroTask",data:{target:m,method:m.method,url:b,aborted:!1}};return new j((function(c,g){var b;Ce.fetchInProgress=!0,scheduleTask(I);try{b=h.apply(S,[m])}catch(c){return g(c),I.data.error=c,invokeTask(I),void(Ce.fetchInProgress=!1)}b.then((function(h){var g=h.clone?h.clone():{};c(h),scheduleMicroTask((function(){I.data.response=h;var c=g.body;c?readStream(c,I):invokeTask(I)}))}),(function(c){g(c),scheduleMicroTask((function(){handleResponseError(I,c)}))})),Ce.fetchInProgress=!1}))}}function scheduleTask(h){h.state=oe.$L,c(oe.$L,h)}function invokeTask(h){h.state=oe.x_,c(oe.x_,h)}function handleResponseError(c,h){c.data.aborted=function isAbortError(c){return c&&"AbortError"===c.name}(h),c.data.error=h,invokeTask(c)}function readStream(c,h){var g=c.getReader(),m=function read(){g.read().then((function(c){c.done?invokeTask(h):m()}),(function(c){handleResponseError(h,c)}))};m()}}((function(c,h){ze.send(oe.jR,[c,h])})),function patchHistory(c){if(window.history){var h=history.pushState;"function"==typeof h&&(history.pushState=function(g,m,b){var S={source:oe.UA,data:{state:g,title:m,url:b}};c(oe.x_,S),h.apply(this,arguments)})}}((function(c,h){ze.send(oe.UA,[c,h])}))),ze}var He=function(){function PerformanceMonitoring(c,h,g,m){this._apmServer=c,this._configService=h,this._logginService=g,this._transactionService=m}var c=PerformanceMonitoring.prototype;return c.init=function init(c){var h=this;void 0===c&&(c={}),this._configService.events.observe(oe.x9+oe.nv,(function(c){var g=h.createTransactionPayload(c);g&&(h._apmServer.addTransaction(g),h._configService.dispatchEvent(oe.dO))})),c[oe.UA]&&ze.observe(oe.UA,this.getHistorySub()),c[oe.Ie]&&ze.observe(oe.Ie,this.getXHRSub()),c[oe.jR]&&ze.observe(oe.jR,this.getFetchSub())},c.getHistorySub=function getHistorySub(){var c=this._transactionService;return function(h,g){g.source===oe.UA&&h===oe.x_&&c.startTransaction(g.data.title,"route-change",{managed:!0,canReuse:!0})}},c.getXHRSub=function getXHRSub(){var c=this;return function(h,g){g.source!==oe.Ie||Ce.fetchInProgress||c.processAPICalls(h,g)}},c.getFetchSub=function getFetchSub(){var c=this;return function(h,g){g.source===oe.jR&&c.processAPICalls(h,g)}},c.processAPICalls=function processAPICalls(c,h){var g=this._configService,m=this._transactionService;if(h.data&&h.data.url){var b=this._apmServer.getEndpoints();if(Object.keys(b).some((function(c){return-1!==h.data.url.indexOf(b[c])})))return}if(c===oe.$L&&h.data){var S=h.data,_=new ne(S.url),O=S.method+" "+(_.relative?_.path:stripQueryStringFromUrl(_.href));m.getCurrentTransaction()||m.startTransaction(O,oe.EC,{managed:!0});var I=m.startSpan(O,"external.http",{blocking:!0});if(!I)return;var j=g.get("distributedTracing"),B=g.get("distributedTracingOrigins"),N=new ne(window.location.href),H=checkSameOrigin(_.origin,N.origin)||checkSameOrigin(_.origin,B),$=S.target;if(j&&H&&$)this.injectDtHeader(I,$),g.get("propagateTracestate")&&this.injectTSHeader(I,$);else xe;S.sync&&(I.sync=S.sync),S.span=I}else if(c===oe.x_){var K=h.data;if(K&&K.span){var ee,te,re=K.span,ie=K.response,ae=K.target;ee=ie?ie.status:ae.status,te="abort"==K.status||K.aborted?oe.pm:ee>=400||0==ee?oe.O5:oe.Yr,re.outcome=te;var se=m.getCurrentTransaction();se&&se.type===oe.EC&&(se.outcome=te),m.endSpan(re,K)}}},c.injectDtHeader=function injectDtHeader(c,h){var g=this._configService.get("distributedTracingHeaderName"),m=function getDtHeaderValue(c){if(c&&c.traceId&&c.id&&c.parentId){var h=c.sampled?"01":"00",g=c.sampled?c.id:c.parentId;return"00-"+c.traceId+"-"+g+"-"+h}}(c);(function isDtHeaderValid(c){return/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(c)&&"00000000000000000000000000000000"!==c.slice(3,35)&&"0000000000000000"!==c.slice(36,52)})(m)&&m&&g&&setRequestHeader(h,g,m)},c.injectTSHeader=function injectTSHeader(c,h){var g=function getTSHeaderValue(c){var h=c.sampleRate;if(!("number"!=typeof h||String(h).length>256))return"es=s:"+h}(c);g&&setRequestHeader(h,"tracestate",g)},c.extractDtHeader=function extractDtHeader(c){var h=this._configService.get("distributedTracingHeaderName");if(c)return function parseDtHeaderValue(c){var h=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(c);if(h){var g="00"!==h[4];return{traceId:h[2],id:h[3],sampled:g}}}(c[h])},c.filterTransaction=function filterTransaction(c){var h=c.duration();if(!h)return!1;if(c.isManaged()){if(h>6e4)return!1;var g=this._configService.get("reportTransactionsWithoutSpans");if(c.sampled&&0===c.spans.length&&!g)return!1}return!0},c.createTransactionDataModel=function createTransactionDataModel(c){var h=c._start,g=c.spans.map((function(g){var m={id:g.id,transaction_id:c.id,parent_id:g.parentId||c.id,trace_id:c.traceId,name:g.name,type:g.type,subtype:g.subtype,action:g.action,sync:g.sync,start:parseInt(g._start-h),duration:g.duration(),context:g.context,outcome:g.outcome,sample_rate:g.sampleRate};return truncateModel(ce,m)})),m={id:c.id,parent_id:c.parentId,trace_id:c.traceId,session:c.session,name:c.name,type:c.type,duration:c.duration(),spans:g,context:c.context,marks:c.marks,breakdown:c.breakdownTimings,span_count:{started:g.length},sampled:c.sampled,sample_rate:c.sampleRate,experience:c.experience,outcome:c.outcome};return truncateModel(ue,m)},c.createTransactionPayload=function createTransactionPayload(c){var h=function adjustTransaction(c){if(c.sampled){var h=c.spans.filter((function(h){return h.duration()>0&&h._start>=c._start&&h._end<=c._end}));if(c.isManaged()){var g=function groupSmallContinuouslySimilarSpans(c,h,g){c.sort((function(c,h){return c._start-h._start}));var m=[],b=1;return c.forEach((function(S,_){if(0===m.length)m.push(S);else{var O=m[m.length-1],I=O.type===S.type&&O.subtype===S.subtype&&O.action===S.action&&O.name===S.name&&S.duration()/h<g&&(S._start-O._end)/h<g,j=c.length===_+1;I&&(b++,O._end=S._end),b>1&&(!I||j)&&(O.name=b+"x "+O.name,b=1),I||m.push(S)}})),m}(h,c.duration(),.05);c.spans=g}else c.spans=h}else c.resetFields();return c}(c);if(this.filterTransaction(h))return this.createTransactionDataModel(c);this._configService.dispatchEvent(oe.XM)},PerformanceMonitoring}();const Ge=function(){function SpanBase(c,h,g){void 0===g&&(g={}),c||(c=oe.gv),h||(h=oe.Yo),this.name=c,this.type=h,this.options=g,this.id=g.id||generateRandomId(16),this.traceId=g.traceId,this.sampled=g.sampled,this.sampleRate=g.sampleRate,this.timestamp=g.timestamp,this._start=getTime(g.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=g.onEnd}var c=SpanBase.prototype;return c.ensureContext=function ensureContext(){this.context||(this.context={})},c.addLabels=function addLabels(c){this.ensureContext();var h=this.context;h.tags||(h.tags={}),Object.keys(c).forEach((function(g){return setLabel(g,c[g],h.tags)}))},c.addContext=function addContext(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];0!==h.length&&(this.ensureContext(),this.context=merge.apply(void 0,[this.context].concat(h)))},c.end=function end(c){this.ended||(this.ended=!0,this._end=getTime(c),this.callOnEnd())},c.callOnEnd=function callOnEnd(){"function"==typeof this.onEnd&&this.onEnd(this)},c.duration=function duration(){return getDuration(this._start,this._end)},SpanBase}();function _setPrototypeOf(c,h){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,h){return c.__proto__=h,c},_setPrototypeOf(c,h)}const Ue=function(c){function Span(h,g,m){var b;if((b=c.call(this,h,g,m)||this).parentId=b.options.parentId,b.subtype=void 0,b.action=void 0,-1!==b.type.indexOf(".")){var S=b.type.split(".",3);b.type=S[0],b.subtype=S[1],b.action=S[2]}return b.sync=b.options.sync,b}return function _inheritsLoose(c,h){c.prototype=Object.create(h.prototype),c.prototype.constructor=c,_setPrototypeOf(c,h)}(Span,c),Span.prototype.end=function end(h,g){c.prototype.end.call(this,h),addSpanContext(this,g)},Span}(Ge);var $e=[["domainLookupStart","domainLookupEnd","DNS"],["connectStart","connectEnd","TCP"],["requestStart","responseStart","Request"],["responseStart","responseEnd","Response"],["domLoading","domComplete","Processing"],["loadEventStart","loadEventEnd","Load"]];function getValue(c){return{value:c}}function getSpanBreakdown(c,h){var g=h.details,m=h.count,b=void 0===m?1:m,S=h.duration;return{transaction:c,span:g,samples:{"span.self_time.count":getValue(b),"span.self_time.sum.us":getValue(1e3*S)}}}function breakdown_captureBreakdown(c,h){void 0===h&&(h=H.timing);var g=[],m=c.name,b=c.type,S=c.sampled,_={name:m,type:b};if(!S)return g;if(b===oe.oZ&&h)for(var O=0;O<$e.length;O++){var I=$e[O],j=getDuration(h[I[0]],h[I[1]]);0!==j&&null!=j&&g.push(getSpanBreakdown(_,{details:{type:I[2]},duration:j}))}else{var B=function groupSpans(c){var h={},g=function calculateSelfTime(c){var h=c.spans,g=c._start,m=c._end;if(0===h.length)return c.duration();h.sort((function(c,h){return c._start-h._start}));for(var b=h[0],S=b._end,_=b._start,O=S,I=_-g,j=1;j<h.length;j++)_=(b=h[j])._start,S=b._end,_>O?(I+=_-O,O=S):S>O&&(O=S);return O<m&&(I+=m-O),I}(c);h.app={count:1,duration:g};for(var m=c.spans,b=0;b<m.length;b++){var S=m[b],_=S.duration();if(0!==_&&null!=_){var O=S.type,I=S.subtype,j=O.replace(oe.pS,"");I&&(j+="."+I),h[j]||(h[j]={duration:0,count:0}),h[j].count++,h[j].duration+=_}}return h}(c);Object.keys(B).forEach((function(c){var h=c.split("."),m=h[0],b=h[1],S=B[c],O=S.duration,I=S.count;g.push(getSpanBreakdown(_,{details:{type:m,subtype:b},duration:O,count:I}))}))}return g}function transaction_setPrototypeOf(c,h){return transaction_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,h){return c.__proto__=h,c},transaction_setPrototypeOf(c,h)}const Ve=function(c){function Transaction(h,g,m){var b;return(b=c.call(this,h,g,m)||this).traceId=generateRandomId(),b.marks=void 0,b.spans=[],b._activeSpans={},b._activeTasks=new Set,b.blocked=!1,b.captureTimings=!1,b.breakdownTimings=[],b.sampleRate=b.options.transactionSampleRate,b.sampled=Math.random()<=b.sampleRate,b}!function transaction_inheritsLoose(c,h){c.prototype=Object.create(h.prototype),c.prototype.constructor=c,transaction_setPrototypeOf(c,h)}(Transaction,c);var h=Transaction.prototype;return h.addMarks=function addMarks(c){this.marks=merge(this.marks||{},c)},h.mark=function mark(c){var h=removeInvalidChars(c),g=now()-this._start,m={};m[h]=g,this.addMarks({custom:m})},h.canReuse=function canReuse(){var c=this.options.reuseThreshold||oe.r9;return!!this.options.canReuse&&!this.ended&&now()-this._start<c},h.redefine=function redefine(c,h,g){c&&(this.name=c),h&&(this.type=h),g&&(this.options.reuseThreshold=g.reuseThreshold,this.options=extend(this.options,g))},h.startSpan=function startSpan(c,h,g){var m=this;if(!this.ended){var b=extend({},g);b.onEnd=function(c){m._onSpanEnd(c)},b.traceId=this.traceId,b.sampled=this.sampled,b.sampleRate=this.sampleRate,b.parentId||(b.parentId=this.id);var S=new Ue(c,h,b);return this._activeSpans[S.id]=S,b.blocking&&this.addTask(S.id),S}},h.isFinished=function isFinished(){return!this.blocked&&0===this._activeTasks.size},h.detectFinish=function detectFinish(){this.isFinished()&&this.end()},h.end=function end(c){if(!this.ended){for(var h in this.ended=!0,this._end=getTime(c),this._activeSpans){var g=this._activeSpans[h];g.type=g.type+oe.pS,g.end(c)}this.callOnEnd()}},h.captureBreakdown=function captureBreakdown(){this.breakdownTimings=breakdown_captureBreakdown(this)},h.block=function block(c){this.blocked=c,this.blocked||this.detectFinish()},h.addTask=function addTask(c){return c||(c="task-"+generateRandomId(16)),this._activeTasks.add(c),c},h.removeTask=function removeTask(c){this._activeTasks.delete(c)&&this.detectFinish()},h.resetFields=function resetFields(){this.spans=[],this.sampleRate=0},h._onSpanEnd=function _onSpanEnd(c){this.spans.push(c),delete this._activeSpans[c.id],this.removeTask(c.id)},h.isManaged=function isManaged(){return!!this.options.managed},Transaction}(Ge);function metrics_extends(){return metrics_extends=Object.assign?Object.assign.bind():function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)({}).hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},metrics_extends.apply(null,arguments)}var We={fid:0,fcp:0,tbt:{start:1/0,duration:0},cls:{score:0,firstEntryTime:Number.NEGATIVE_INFINITY,prevEntryTime:Number.NEGATIVE_INFINITY,currentSessionScore:0},longtask:{count:0,duration:0,max:0}};function captureObserverEntries(c,h){var g=h.isHardNavigation,m=h.trStart,b=c.getEntriesByType(oe.nw).filter((function(c){return c.startTime>=m})),S=function createLongTaskSpans(c,h){for(var g=[],m=0;m<c.length;m++){var b=c[m],S=b.name,_=b.startTime,O=b.duration,I=b.attribution,j=_+O,B=new Ue("Longtask("+S+")",oe.nw,{startTime:_});if(h.count++,h.duration+=O,h.max=Math.max(O,h.max),I.length>0){var N=I[0],H=N.name,$=N.containerType,K=N.containerName,ee=N.containerId,te={attribution:H,type:$};K&&(te.name=K),ee&&(te.id=ee),B.addContext({custom:te})}B.end(j),g.push(B)}return g}(b,We.longtask),_={spans:S,marks:{}};if(!g)return _;var O=c.getEntriesByType(oe.DO),I=O[O.length-1];if(I){var j=parseInt(I.startTime);We.lcp=j,_.marks.largestContentfulPaint=j}var B=H.timing,N=B.fetchStart-B.navigationStart;isRedirectInfoAvailable(B)&&(N=0);var $=c.getEntriesByName(oe.Qb)[0];if($){var K=parseInt(N>=0?$.startTime-N:$.startTime);We.fcp=K,_.marks.firstContentfulPaint=K}var ee=function createFirstInputDelaySpan(c){var h=c[0];if(h){var g=h.startTime,m=h.processingStart,b=new Ue("First Input Delay",oe.Vm,{startTime:g});return b.end(m),b}}(c.getEntriesByType(oe.Vm));return ee&&(We.fid=ee.duration(),_.spans.push(ee)),function calculateTotalBlockingTime(c){c.forEach((function(c){var h=c.name,g=c.startTime,m=c.duration;if(!(g<We.fcp||"self"!==h&&-1===h.indexOf("same-origin"))){We.tbt.start=Math.min(We.tbt.start,g);var b=m-50;b>0&&(We.tbt.duration+=b)}}))}(b),function calculateCumulativeLayoutShift(c){c.forEach((function(c){!c.hadRecentInput&&c.value&&((c.startTime-We.cls.firstEntryTime>5e3||c.startTime-We.cls.prevEntryTime>1e3)&&(We.cls.firstEntryTime=c.startTime,We.cls.currentSessionScore=0),We.cls.prevEntryTime=c.startTime,We.cls.currentSessionScore+=c.value,We.cls.score=Math.max(We.cls.score,We.cls.currentSessionScore))}))}(c.getEntriesByType(oe.o2)),_}var qe=function(){function PerfEntryRecorder(c){this.po={observe:utils_noop,disconnect:utils_noop},window.PerformanceObserver&&(this.po=new PerformanceObserver(c))}var c=PerfEntryRecorder.prototype;return c.start=function start(c,h){void 0===h&&(h={buffered:!0});try{if(!isPerfTypeSupported(c))return;this.po.observe(metrics_extends({type:c},h))}catch(c){}},c.stop=function stop(){this.po.disconnect()},PerfEntryRecorder}();function shouldCreateSpan(c,h,g,m,b){return void 0===b&&(b=0),"number"==typeof c&&"number"==typeof h&&c>=b&&h>c&&c-b>=g&&h-b<=m&&h-c<oe.io&&c-b<oe.io&&h-b<oe.io}var Ke=[["redirectStart","redirectEnd","Redirect"],["domainLookupStart","domainLookupEnd","Domain lookup"],["connectStart","connectEnd","Making a connection to the server"],["requestStart","responseEnd","Requesting and receiving the document"],["domLoading","domInteractive","Parsing the document, executing sync. scripts"],["domContentLoadedEventStart","domContentLoadedEventEnd",'Fire "DOMContentLoaded" event'],["loadEventStart","loadEventEnd",'Fire "load" event']];function createResourceTimingSpan(c){var h=c.name,g=c.initiatorType,m=c.startTime,b=c.responseEnd,S="resource";g&&(S+="."+g);var _=stripQueryStringFromUrl(h),O=new Ue(_,S);return O._start=m,O.end(b,{url:h,entry:c}),O}function isCapturedByPatching(c,h){return null!=h&&c>h}function captureNavigation(c){if(c.captureTimings){var h=c._end;if(c.type===oe.oZ){if(c.marks&&c.marks.custom){var g=c.marks.custom;Object.keys(g).forEach((function(h){g[h]+=c._start}))}c._start=0;var m=H.timing;(function createNavigationTimingSpans(c,h,g,m){for(var b=[],S=0;S<Ke.length;S++){var _=c[Ke[S][0]],O=c[Ke[S][1]];if(shouldCreateSpan(_,O,g,m,h)){var I=new Ue(Ke[S][2],"hard-navigation.browser-timing"),j=null;"requestStart"===Ke[S][0]&&(I.pageResponse=!0,j={url:location.origin}),I._start=_-h,I.end(O-h,j),b.push(I)}}return b})(m,isRedirectInfoAvailable(m)?m.redirectStart:m.fetchStart,0,h).forEach((function(h){h.traceId=c.traceId,h.sampled=c.sampled,h.pageResponse&&c.options.pageLoadSpanId&&(h.id=c.options.pageLoadSpanId),c.spans.push(h)})),c.options.pageLoadParentId&&(c.parentId=c.options.pageLoadParentId),c.addMarks(getPageLoadMarks(m))}if(isPerfTimelineSupported()){var b=c._start;(function createResourceTimingSpans(c,h,g,m){for(var b=[],S=0;S<c.length;S++){var _=c[S],O=_.initiatorType,I=_.name,j=_.startTime,B=_.responseEnd;-1!==oe.jK.indexOf(O)&&null!=I&&(("xmlhttprequest"===O||"fetch"===O)&&(/intake\/v\d+\/rum\/events/.test(I)||isCapturedByPatching(j,h))||shouldCreateSpan(j,B,g,m)&&b.push(createResourceTimingSpan(c[S])))}return b})(H.getEntriesByType(oe.YI),_e.bootstrapTime,b,h).forEach((function(h){return c.spans.push(h)})),function createUserTimingSpans(c,h,g){for(var m=[],b=0;b<c.length;b++){var S=c[b],_=S.name,O=S.startTime,I=S.duration,j=O+I;if(!(I<=oe.Ab)&&shouldCreateSpan(O,j,h,g)){var B=new Ue(_,"app");B._start=O,B.end(j),m.push(B)}}return m}(H.getEntriesByType(oe.Mu),b,h).forEach((function(h){return c.spans.push(h)}))}}else c.type===oe.oZ&&(c._start=0)}var Xe=function(){function TransactionService(c,h){var g=this;this._config=h,this._logger=c,this.currentTransaction=void 0,this.respIntervalId=void 0,this.recorder=new qe((function(c){var h=g.getCurrentTransaction();if(h&&h.captureTimings){var m,b=h.type===oe.oZ,S=captureObserverEntries(c,{isHardNavigation:b,trStart:b?0:h._start}),_=S.spans,O=S.marks;(m=h.spans).push.apply(m,_),h.addMarks({agent:O})}}))}var c=TransactionService.prototype;return c.createCurrentTransaction=function createCurrentTransaction(c,h,g){var m=new Ve(c,h,g);return this.currentTransaction=m,m},c.getCurrentTransaction=function getCurrentTransaction(){if(this.currentTransaction&&!this.currentTransaction.ended)return this.currentTransaction},c.createOptions=function createOptions(c){var h=this._config.config,g=extend({transactionSampleRate:h.transactionSampleRate},c);return g.managed&&(g=extend({pageLoadTraceId:h.pageLoadTraceId,pageLoadSampled:h.pageLoadSampled,pageLoadSpanId:h.pageLoadSpanId,pageLoadTransactionName:h.pageLoadTransactionName,pageLoadParentId:h.pageLoadParentId},g)),g},c.startManagedTransaction=function startManagedTransaction(c,h,g){var m=this.getCurrentTransaction(),b=!1;if(m)if(m.canReuse()&&g.canReuse){var S=m.type,_=oe.W8.indexOf(m.type),O=oe.W8.indexOf(h);_>=0&&O<_&&(S=h),m.redefine(c,S,g),b=!0}else m.end(),m=this.createCurrentTransaction(c,h,g);else m=this.createCurrentTransaction(c,h,g);return m.type===oe.oZ&&(b||(this.recorder.start(oe.DO),this.recorder.start(oe.yw),this.recorder.start(oe.Vm),this.recorder.start(oe.o2)),g.pageLoadTraceId&&(m.traceId=g.pageLoadTraceId),g.pageLoadSampled&&(m.sampled=g.pageLoadSampled),m.name===oe.gv&&g.pageLoadTransactionName&&(m.name=g.pageLoadTransactionName)),!b&&this._config.get("monitorLongtasks")&&this.recorder.start(oe.nw),m.sampled&&(m.captureTimings=!0),m},c.startTransaction=function startTransaction(c,h,g){var m,b=this,S=this.createOptions(g),_=!0;S.managed?this.currentTransaction===(m=this.startManagedTransaction(c,h,S))&&(_=!1):m=new Ve(c,h,S);return m.onEnd=function(){return b.handleTransactionEnd(m)},_&&this._config.events.send(oe.TU,[m]),m},c.handleTransactionEnd=function handleTransactionEnd(c){var h=this;this.recorder.stop();var g=window.location.href;return j.resolve().then((function(){var m=c.name,b=c.type;if(_e.lastHiddenStart>=c._start)h._config.dispatchEvent(oe.XM);else if(h.shouldIgnoreTransaction(m)||b===oe.RW)h._config.dispatchEvent(oe.XM);else{if(b===oe.oZ){var S=h._config.get("pageLoadTransactionName");if(m===oe.gv&&S&&(c.name=S),c.captureTimings){var _=We.cls,O=We.fid,I=We.tbt,j=We.longtask;I.duration>0&&c.spans.push(function createTotalBlockingTimeSpan(c){var h=c.start,g=c.duration,m=new Ue("Total Blocking Time",oe.nw,{startTime:h});return m.end(h+g),m}(I)),c.experience={},isPerfTypeSupported(oe.nw)&&(c.experience.tbt=I.duration),isPerfTypeSupported(oe.o2)&&(c.experience.cls=_.score),O>0&&(c.experience.fid=O),j.count>0&&(c.experience.longtask={count:j.count,sum:j.duration,max:j.max})}h.setSession(c)}c.name===oe.gv&&(c.name=function slugifyUrl(c,h){void 0===h&&(h=2);for(var g=new ne(c),m=g.query,b=g.path.substring(1).split("/"),S=":id",_=/\W|_/g,O=/[0-9]/g,I=/[a-z]/g,j=/[A-Z]/g,B=[],N=!1,H=0;H<b.length;H++){var $=b[H];if(N||H>h-1){$&&B.push("*");break}if(($.match(_)||[]).length>=2)B.push(S),N=!0;else{var K=($.match(O)||[]).length;if(K>3||$.length>3&&K/$.length>=.3)B.push(S),N=!0;else{var ee=($.match(j)||[]).length,te=($.match(I)||[]).length/$.length,re=ee/$.length;$.length>5&&(re>.3&&re<.6||te>.3&&te<.6)?(B.push(S),N=!0):$&&B.push($)}}}return"/"+(B.length>=2?B.join("/"):B.join(""))+(m?"?{query}":"")}(g)),captureNavigation(c),h.adjustTransactionTime(c),h._config.get("breakdownMetrics")&&c.captureBreakdown();var B=h._config.get("context");!function addTransactionContext(c,h){var g=void 0===h?{}:h,m=(g.tags,function _objectWithoutPropertiesLoose(c,h){if(null==c)return{};var g={};for(var m in c)if({}.hasOwnProperty.call(c,m)){if(-1!==h.indexOf(m))continue;g[m]=c[m]}return g}(g,ie)),b=getPageContext(),S={};if(c.type===oe.Xu)c.ensureContext(),c.context.page&&c.context.page.url&&(b.page.url=c.context.page.url);else if(c.type===oe.oZ&&isPerfTimelineSupported()){var _=H.getEntriesByType(oe.k2);_&&_.length>0&&(S={response:getResponseContext(_[0])})}c.addContext(b,S,m)}(c,B),h._config.events.send(oe.x9,[c])}}),(function(c){xe}))},c.setSession=function setSession(c){var h=this._config.get("session");if(h){"boolean"==typeof h||h.timestamp&&Date.now()-h.timestamp>oe.sG?c.session={id:generateRandomId(16),sequence:1}:c.session={id:h.id,sequence:h.sequence?h.sequence+1:1};var g={session:{id:c.session.id,sequence:c.session.sequence,timestamp:Date.now()}};this._config.setConfig(g),this._config.setLocalConfig(g,!0)}},c.adjustTransactionTime=function adjustTransactionTime(c){var h=c.spans,g=function getEarliestSpan(c){for(var h=c[0],g=1;g<c.length;g++){var m=c[g];h._start>m._start&&(h=m)}return h}(h);g&&g._start<c._start&&(c._start=g._start);var m=function getLatestNonXHRSpan(c){return getLatestSpan(c,(function(c){return-1===String(c).indexOf("external")}))}(h)||{},b=m._end||0;if(c.type===oe.oZ){var S=c._end-oe.JK,_=We.lcp||0,O=function getLatestXHRSpan(c){return getLatestSpan(c,(function(c){return-1!==String(c).indexOf("external")}))}(h)||{},I=O._end||0;c._end=Math.max(b,I,_,S)}else b>c._end&&(c._end=b);this.truncateSpans(h,c._end)},c.truncateSpans=function truncateSpans(c,h){for(var g=0;g<c.length;g++){var m=c[g];m._end>h&&(m._end=h,m.type+=oe.pS),m._start>h&&(m._start=h)}},c.shouldIgnoreTransaction=function shouldIgnoreTransaction(c){var h=this._config.get("ignoreTransactions");if(h&&h.length)for(var g=0;g<h.length;g++){var m=h[g];if("function"==typeof m.test){if(m.test(c))return!0}else if(m===c)return!0}return!1},c.startSpan=function startSpan(c,h,g){var m=this.getCurrentTransaction();m||(m=this.createCurrentTransaction(void 0,oe.RW,this.createOptions({canReuse:!0,managed:!0})));var b=m.startSpan(c,h,g);return b},c.endSpan=function endSpan(c,h){c&&c.end(null,h)},TransactionService}();const Je=Xe;function createServiceFactory(){return function performance_monitoring_registerServices(){Ne[oe.P5]=function(c){var h=c.getService([oe.XZ,oe.IE]),g=h[0],m=h[1];return new Je(g,m)},Ne[oe.e0]=function(c){var h=c.getService([oe.Q,oe.IE,oe.XZ,oe.P5]),g=h[0],m=h[1],b=h[2],S=h[3];return new He(g,m,b,S)}}(),function registerServices(){Ne[oe.mU]=function(c){var h=c.getService([oe.Q,oe.IE,oe.P5]),g=h[0],m=h[1],b=h[2];return new ve(g,m,b)}}(),new Fe}var Ye=g(5108),Qe=!1;function bootstrap(){return isPlatformSupported()?(patchAll(),_e.bootstrapTime=now(),Qe=!0):N&&Ye.log("[Elastic APM] platform is not supported!"),Qe}var et={minInteractionId:1/0,maxInteractionId:0,interactionCount:0,longestInteractions:[]};function processUserInteractions(c){c.getEntries().forEach((function(c){c.interactionId&&(!function updateInteractionCount(c){if(isPerfInteractionCountSupported())return;et.minInteractionId=Math.min(et.minInteractionId,c.interactionId),et.maxInteractionId=Math.max(et.maxInteractionId,c.interactionId),et.interactionCount=(et.maxInteractionId-et.minInteractionId)/7+1}(c),c.duration<40||function storeUserInteraction(c){var h=et.longestInteractions[et.longestInteractions.length-1];if(void 0!==h&&c.duration<=h.duration&&c.interactionId!=h.id)return;var g=et.longestInteractions.filter((function(h){return h.id===c.interactionId}));if(g.length>0){var m=g[0];m.duration=Math.max(m.duration,c.duration)}else et.longestInteractions.push({id:c.interactionId,duration:c.duration});et.longestInteractions.sort((function(c,h){return h.duration-c.duration})),et.longestInteractions.splice(10)}(c))}))}function interactionCount(){return performance.interactionCount||et.interactionCount}function reportInp(c){var h=function calculateInp(){if(0===et.longestInteractions.length)return interactionCount()>0?0:void 0;var c=Math.min(et.longestInteractions.length-1,Math.floor(interactionCount()/50));return et.longestInteractions[c].duration}();if(h>=0){var g=now(),m=c.startTransaction(oe.Xu,oe.Xu,{startTime:g}),b=performance.getEntriesByType("navigation");if(b.length>0){var S=b[0].name;m.addContext({page:{url:S}})}m.addLabels({inp_value:h});var _=g+h+1;return m.end(_),function restoreINPState(){et.minInteractionId=1/0,et.maxInteractionId=0,et.interactionCount=0,et.longestInteractions=[]}(),m}}function onPageHidden(c,h){if(reportInp(h))var g=c.observeEvent(oe.dO,(function(){endManagedTransaction(c,h),g()}));else endManagedTransaction(c,h)}function endManagedTransaction(c,h){var g=h.getCurrentTransaction();if(g){var m=c.observeEvent(oe.XM,(function(){_e.lastHiddenStart=now(),m(),b()})),b=c.observeEvent(oe.dO,(function(){c.dispatchEvent(oe.p4),_e.lastHiddenStart=now(),b(),m()}));g.end()}else c.dispatchEvent(oe.p4),_e.lastHiddenStart=now()}var tt="a[data-transaction-name], button[data-transaction-name]";function observePageClicks(c){var h=function clickHandler(h){h.target instanceof Element&&function createUserInteractionTransaction(c,h){var g=function getTransactionMetadata(c){var h={transactionName:null,context:null};h.transactionName=function buildTransactionName(c){var h=function findCustomTransactionName(c){var h="data-transaction-name",g=c.getAttribute(h);if(c.closest){var m=c.closest(tt);return m?m.getAttribute(h):g}return g}(c);if(h)return h;var g=c.tagName.toLowerCase(),m=c.getAttribute("name");if(m)return g+'["'+m+'"]';return g}(c);var g=c.getAttribute("class");g&&(h.context={custom:{classes:g}});return h}(h),m=g.transactionName,b=g.context,S=c.startTransaction("Click - "+m,oe.Cq,{managed:!0,canReuse:!0,reuseThreshold:300});S&&b&&S.addContext(b)}(c,h.target)},g="click";return window.addEventListener(g,h,true),function(){window.removeEventListener(g,h,true)}}var rt=function(){function ApmBase(c,h){this._disable=h,this.serviceFactory=c,this._initialized=!1}var c=ApmBase.prototype;return c.isEnabled=function isEnabled(){return!this._disable},c.isActive=function isActive(){var c=this.serviceFactory.getService(oe.IE);return this.isEnabled()&&this._initialized&&c.get("active")},c.init=function init(c){var h=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var g=this.serviceFactory.getService([oe.IE,oe.XZ,oe.P5]),m=g[0],b=g[1],S=g[2];m.setVersion("5.17.4"),this.config(c);var _=m.get("logLevel");if(b.setLevel(_),m.get("active")){this.serviceFactory.init();var O=function getInstrumentationFlags(c,h){var g,m=((g={})[oe.Ie]=!1,g[oe.jR]=!1,g[oe.UA]=!1,g[oe.oZ]=!1,g[oe.pn]=!1,g[oe.JY]=!1,g[oe.ot]=!1,g);return c?(Object.keys(m).forEach((function(c){-1===h.indexOf(c)&&(m[c]=!0)})),m):m}(m.get("instrument"),m.get("disableInstrumentations"));if(this.serviceFactory.getService(oe.e0).init(O),O[oe.pn])this.serviceFactory.getService(oe.mU).registerListeners();if(m.get("session")){var I=m.getLocalConfig();I&&I.session&&m.setConfig({session:I.session})}var j=function sendPageLoad(){return O[oe.oZ]&&h._sendPageLoadMetrics()};m.get("centralConfig")?this.fetchCentralConfig().then(j):j(),function observePageVisibility(c,h){"hidden"===document.visibilityState&&(_e.lastHiddenStart=0);var g=function visibilityChangeHandler(){"hidden"===document.visibilityState&&onPageHidden(c,h)},m=function pageHideHandler(){return onPageHidden(c,h)},b=!0;return window.addEventListener("visibilitychange",g,b),window.addEventListener("pagehide",m,b),function(){window.removeEventListener("visibilitychange",g,b),window.removeEventListener("pagehide",m,b)}}(m,S),O[oe.JY]&&O[oe.ot]&&observePageClicks(S),function observeUserInteractions(c){void 0===c&&(c=new qe(processUserInteractions));var h=isPerfInteractionCountSupported(),g=h?40:16;c.start(oe.Ks,{buffered:!0,durationThreshold:g}),h||c.start(oe.Vm)}()}else this._disable=!0,b.warn("RUM agent is inactive")}return this},c.fetchCentralConfig=function fetchCentralConfig(){var c=this.serviceFactory.getService([oe.Q,oe.XZ,oe.IE]),h=c[0],g=c[1],m=c[2];return h.fetchConfig(m.get("serviceName"),m.get("environment")).then((function(c){var h=c.transaction_sample_rate;if(h){var b={transactionSampleRate:h=Number(h)},S=m.validate(b).invalid;if(0===S.length)m.setConfig(b);else{var _=S[0],O=_.key,I=_.value,j=_.allowed;g.warn('invalid value "'+I+'" for '+O+". Allowed: "+j+".")}}return c})).catch((function(c){g.warn("failed fetching config:",c)}))},c._sendPageLoadMetrics=function _sendPageLoadMetrics(){var c=this.startTransaction(void 0,oe.oZ,{managed:!0,canReuse:!0});if(c){c.addTask(oe.oZ);var h=function sendPageLoadMetrics(){setTimeout((function(){return c.removeTask(oe.oZ)}),oe.JK)};"complete"===document.readyState?h():window.addEventListener("load",h)}},c.observe=function observe(c,h){this.serviceFactory.getService(oe.IE).events.observe(c,h)},c.config=function config(c){var h=this.serviceFactory.getService([oe.IE,oe.XZ]),g=h[0],m=h[1],b=g.validate(c),S=b.missing,_=b.invalid,O=b.unknown;if(O.length>0){var I="Unknown config options are specified for RUM agent: "+O.join(", ");m.warn(I)}if(0===S.length&&0===_.length)g.setConfig(c);else{var j=", ",B="RUM agent isn't correctly configured. ";S.length>0&&(B+=S.join(j)+" is missing",_.length>0&&(B+=j)),_.forEach((function(c,h){var g=c.key,m=c.value,b=c.allowed;B+=g+' "'+m+'" contains invalid characters! (allowed: '+b+")"+(h!==_.length-1?j:"")})),m.error(B),g.setConfig({active:!1})}},c.setUserContext=function setUserContext(c){this.serviceFactory.getService(oe.IE).setUserContext(c)},c.setCustomContext=function setCustomContext(c){this.serviceFactory.getService(oe.IE).setCustomContext(c)},c.addLabels=function addLabels(c){this.serviceFactory.getService(oe.IE).addLabels(c)},c.setInitialPageLoadName=function setInitialPageLoadName(c){this.serviceFactory.getService(oe.IE).setConfig({pageLoadTransactionName:c})},c.startTransaction=function startTransaction(c,h,g){if(this.isEnabled())return this.serviceFactory.getService(oe.P5).startTransaction(c,h,g)},c.startSpan=function startSpan(c,h,g){if(this.isEnabled())return this.serviceFactory.getService(oe.P5).startSpan(c,h,g)},c.getCurrentTransaction=function getCurrentTransaction(){if(this.isEnabled())return this.serviceFactory.getService(oe.P5).getCurrentTransaction()},c.captureError=function captureError(c,h){if(this.isEnabled())return this.serviceFactory.getService(oe.mU).logError(c,h)},c.addFilter=function addFilter(c){this.serviceFactory.getService(oe.IE).addFilter(c)},ApmBase}();var nt=function getApmBase(){if(N&&window.elasticApm)return window.elasticApm;var c=bootstrap(),h=createServiceFactory(),g=new rt(h,!c);return N&&(window.elasticApm=g),g}(),ot=nt.init.bind(nt)},9521:(c,h,g)=>{"use strict";g.d(h,{Z:()=>de});var m=g(6375),b=Math.abs,S=String.fromCharCode,_=Object.assign;function trim(c){return c.trim()}function Utility_replace(c,h,g){return c.replace(h,g)}function indexof(c,h){return c.indexOf(h)}function Utility_charat(c,h){return 0|c.charCodeAt(h)}function Utility_substr(c,h,g){return c.slice(h,g)}function Utility_strlen(c){return c.length}function Utility_sizeof(c){return c.length}function Utility_append(c,h){return h.push(c),c}var O=1,I=1,j=0,B=0,N=0,H="";function node(c,h,g,m,b,S,_){return{value:c,root:h,parent:g,type:m,props:b,children:S,line:O,column:I,length:_,return:""}}function Tokenizer_copy(c,h){return _(node("",null,null,"",null,null,0),c,{length:-c.length},h)}function prev(){return N=B>0?Utility_charat(H,--B):0,I--,10===N&&(I=1,O--),N}function next(){return N=B<j?Utility_charat(H,B++):0,I++,10===N&&(I=1,O++),N}function peek(){return Utility_charat(H,B)}function caret(){return B}function slice(c,h){return Utility_substr(H,c,h)}function token(c){switch(c){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(c){return O=I=1,j=Utility_strlen(H=c),B=0,[]}function dealloc(c){return H="",c}function delimit(c){return trim(slice(B-1,delimiter(91===c?c+2:40===c?c+1:c)))}function whitespace(c){for(;(N=peek())&&N<33;)next();return token(c)>2||token(N)>3?"":" "}function escaping(c,h){for(;--h&&next()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return slice(c,caret()+(h<6&&32==peek()&&32==next()))}function delimiter(c){for(;next();)switch(N){case c:return B;case 34:case 39:34!==c&&39!==c&&delimiter(N);break;case 40:41===c&&delimiter(c);break;case 92:next()}return B}function commenter(c,h){for(;next()&&c+N!==57&&(c+N!==84||47!==peek()););return"/*"+slice(h,B-1)+"*"+S(47===c?c:next())}function identifier(c){for(;!token(peek());)next();return slice(c,B)}var $="-ms-",K="-moz-",ee="-webkit-",te="comm",re="rule",ne="decl",oe="@keyframes";function Serializer_serialize(c,h){for(var g="",m=Utility_sizeof(c),b=0;b<m;b++)g+=h(c[b],b,c,h)||"";return g}function stringify(c,h,g,m){switch(c.type){case"@layer":if(c.children.length)break;case"@import":case ne:return c.return=c.return||c.value;case te:return"";case oe:return c.return=c.value+"{"+Serializer_serialize(c.children,m)+"}";case re:c.value=c.props.join(",")}return Utility_strlen(g=Serializer_serialize(c.children,m))?c.return=c.value+"{"+g+"}":""}function compile(c){return dealloc(parse("",null,null,null,[""],c=alloc(c),0,[0],c))}function parse(c,h,g,m,b,_,O,I,j){for(var B=0,N=0,H=O,$=0,K=0,ee=0,te=1,re=1,ne=1,oe=0,ie="",ae=b,se=_,le=m,ce=ie;re;)switch(ee=oe,oe=next()){case 40:if(108!=ee&&58==Utility_charat(ce,H-1)){-1!=indexof(ce+=Utility_replace(delimit(oe),"&","&\f"),"&\f")&&(ne=-1);break}case 34:case 39:case 91:ce+=delimit(oe);break;case 9:case 10:case 13:case 32:ce+=whitespace(ee);break;case 92:ce+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),caret()),h,g),j);break;default:ce+="/"}break;case 123*te:I[B++]=Utility_strlen(ce)*ne;case 125*te:case 59:case 0:switch(oe){case 0:case 125:re=0;case 59+N:-1==ne&&(ce=Utility_replace(ce,/\f/g,"")),K>0&&Utility_strlen(ce)-H&&Utility_append(K>32?declaration(ce+";",m,g,H-1):declaration(Utility_replace(ce," ","")+";",m,g,H-2),j);break;case 59:ce+=";";default:if(Utility_append(le=ruleset(ce,h,g,B,N,b,I,ie,ae=[],se=[],H),_),123===oe)if(0===N)parse(ce,h,le,le,ae,_,H,I,se);else switch(99===$&&110===Utility_charat(ce,3)?100:$){case 100:case 108:case 109:case 115:parse(c,le,le,m&&Utility_append(ruleset(c,le,le,0,0,b,I,ie,b,ae=[],H),se),b,se,H,I,m?ae:se);break;default:parse(ce,le,le,le,[""],se,0,I,se)}}B=N=K=0,te=ne=1,ie=ce="",H=O;break;case 58:H=1+Utility_strlen(ce),K=ee;default:if(te<1)if(123==oe)--te;else if(125==oe&&0==te++&&125==prev())continue;switch(ce+=S(oe),oe*te){case 38:ne=N>0?1:(ce+="\f",-1);break;case 44:I[B++]=(Utility_strlen(ce)-1)*ne,ne=1;break;case 64:45===peek()&&(ce+=delimit(next())),$=peek(),N=H=Utility_strlen(ie=ce+=identifier(caret())),oe++;break;case 45:45===ee&&2==Utility_strlen(ce)&&(te=0)}}return _}function ruleset(c,h,g,m,S,_,O,I,j,B,N){for(var H=S-1,$=0===S?_:[""],K=Utility_sizeof($),ee=0,te=0,ne=0;ee<m;++ee)for(var oe=0,ie=Utility_substr(c,H+1,H=b(te=O[ee])),ae=c;oe<K;++oe)(ae=trim(te>0?$[oe]+" "+ie:Utility_replace(ie,/&\f/g,$[oe])))&&(j[ne++]=ae);return node(c,h,g,0===S?re:I,j,B,N)}function comment(c,h,g){return node(c,h,g,te,S(function Tokenizer_char(){return N}()),Utility_substr(c,2,-2),0)}function declaration(c,h,g,m){return node(c,h,g,ne,Utility_substr(c,0,m),Utility_substr(c,m+1,-1),m)}var ie=function identifierWithPointTracking(c,h,g){for(var m=0,b=0;m=b,b=peek(),38===m&&12===b&&(h[g]=1),!token(b);)next();return slice(c,B)},ae=function getRules(c,h){return dealloc(function toRules(c,h){var g=-1,m=44;do{switch(token(m)){case 0:38===m&&12===peek()&&(h[g]=1),c[g]+=ie(B-1,h,g);break;case 2:c[g]+=delimit(m);break;case 4:if(44===m){c[++g]=58===peek()?"&\f":"",h[g]=c[g].length;break}default:c[g]+=S(m)}}while(m=next());return c}(alloc(c),h))},se=new WeakMap,le=function compat(c){if("rule"===c.type&&c.parent&&!(c.length<1)){for(var h=c.value,g=c.parent,m=c.column===g.column&&c.line===g.line;"rule"!==g.type;)if(!(g=g.parent))return;if((1!==c.props.length||58===h.charCodeAt(0)||se.get(g))&&!m){se.set(c,!0);for(var b=[],S=ae(h,b),_=g.props,O=0,I=0;O<S.length;O++)for(var j=0;j<_.length;j++,I++)c.props[I]=b[O]?S[O].replace(/&\f/g,_[j]):_[j]+" "+S[O]}}},ce=function removeLabel(c){if("decl"===c.type){var h=c.value;108===h.charCodeAt(0)&&98===h.charCodeAt(2)&&(c.return="",c.value="")}};function emotion_cache_browser_esm_prefix(c,h){switch(function hash(c,h){return 45^Utility_charat(c,0)?(((h<<2^Utility_charat(c,0))<<2^Utility_charat(c,1))<<2^Utility_charat(c,2))<<2^Utility_charat(c,3):0}(c,h)){case 5103:return"-webkit-print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+c+K+c+$+c+c;case 6828:case 4268:return ee+c+$+c+c;case 6165:return ee+c+$+"flex-"+c+c;case 5187:return ee+c+Utility_replace(c,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+c;case 5443:return ee+c+$+"flex-item-"+Utility_replace(c,/flex-|-self/,"")+c;case 4675:return ee+c+$+"flex-line-pack"+Utility_replace(c,/align-content|flex-|-self/,"")+c;case 5548:return ee+c+$+Utility_replace(c,"shrink","negative")+c;case 5292:return ee+c+$+Utility_replace(c,"basis","preferred-size")+c;case 6060:return"-webkit-box-"+Utility_replace(c,"-grow","")+ee+c+$+Utility_replace(c,"grow","positive")+c;case 4554:return ee+Utility_replace(c,/([^-])(transform)/g,"$1-webkit-$2")+c;case 6187:return Utility_replace(Utility_replace(Utility_replace(c,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),c,"")+c;case 5495:case 3959:return Utility_replace(c,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return Utility_replace(Utility_replace(c,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+c+c;case 4095:case 3583:case 4068:case 2532:return Utility_replace(c,/(.+)-inline(.+)/,"-webkit-$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Utility_strlen(c)-1-h>6)switch(Utility_charat(c,h+1)){case 109:if(45!==Utility_charat(c,h+4))break;case 102:return Utility_replace(c,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Utility_charat(c,h+3)?"$3":"$2-$3"))+c;case 115:return~indexof(c,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(c,"stretch","fill-available"),h)+c:c}break;case 4949:if(115!==Utility_charat(c,h+1))break;case 6444:switch(Utility_charat(c,Utility_strlen(c)-3-(~indexof(c,"!important")&&10))){case 107:return Utility_replace(c,":",":-webkit-")+c;case 101:return Utility_replace(c,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Utility_charat(c,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+c}break;case 5936:switch(Utility_charat(c,h+11)){case 114:return ee+c+$+Utility_replace(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return ee+c+$+Utility_replace(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return ee+c+$+Utility_replace(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return ee+c+$+c+c}return c}var ue=[function prefixer(c,h,g,m){if(c.length>-1&&!c.return)switch(c.type){case ne:c.return=emotion_cache_browser_esm_prefix(c.value,c.length);break;case oe:return Serializer_serialize([Tokenizer_copy(c,{value:Utility_replace(c.value,"@","@-webkit-")})],m);case re:if(c.length)return function Utility_combine(c,h){return c.map(h).join("")}(c.props,(function(h){switch(function Utility_match(c,h){return(c=h.exec(c))?c[0]:c}(h,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(c,{props:[Utility_replace(h,/:(read-\w+)/,":-moz-$1")]})],m);case"::placeholder":return Serializer_serialize([Tokenizer_copy(c,{props:[Utility_replace(h,/:(plac\w+)/,":-webkit-input-$1")]}),Tokenizer_copy(c,{props:[Utility_replace(h,/:(plac\w+)/,":-moz-$1")]}),Tokenizer_copy(c,{props:[Utility_replace(h,/:(plac\w+)/,"-ms-input-$1")]})],m)}return""}))}}],de=function createCache(c){var h=c.key;if("css"===h){var g=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(g,(function(c){-1!==c.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(c),c.setAttribute("data-s",""))}))}var b,S,_=c.stylisPlugins||ue,O={},I=[];b=c.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+h+' "]'),(function(c){for(var h=c.getAttribute("data-emotion").split(" "),g=1;g<h.length;g++)O[h[g]]=!0;I.push(c)}));var j,B,N=[stringify,(B=function(c){j.insert(c)},function(c){c.root||(c=c.return)&&B(c)})],H=function middleware(c){var h=Utility_sizeof(c);return function(g,m,b,S){for(var _="",O=0;O<h;O++)_+=c[O](g,m,b,S)||"";return _}}([le,ce].concat(_,N));S=function insert(c,h,g,m){j=g,function stylis(c){Serializer_serialize(compile(c),H)}(c?c+"{"+h.styles+"}":h.styles),m&&($.inserted[h.name]=!0)};var $={key:h,sheet:new m.m({key:h,container:b,nonce:c.nonce,speedy:c.speedy,prepend:c.prepend,insertionPoint:c.insertionPoint}),nonce:c.nonce,inserted:O,registered:{},insert:S};return $.sheet.hydrate(I),$}},546:(c,h,g)=>{"use strict";function memoize(c){var h=Object.create(null);return function(g){return void 0===h[g]&&(h[g]=c(g)),h[g]}}g.d(h,{Z:()=>memoize})},5037:(c,h,g)=>{"use strict";g.d(h,{C:()=>j,E:()=>te,T:()=>N,c:()=>K,h:()=>H,w:()=>B});var m=g(7363),b=g(9521),S=g(5469),_=g(7267),O=g(5251),I=m.createContext("undefined"!=typeof HTMLElement?(0,b.Z)({key:"css"}):null),j=I.Provider,B=function withEmotionCache(c){return(0,m.forwardRef)((function(h,g){var b=(0,m.useContext)(I);return c(h,b,g)}))},N=m.createContext({});var H={}.hasOwnProperty,$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",K=function createEmotionProps(c,h){var g={};for(var m in h)H.call(h,m)&&(g[m]=h[m]);return g[$]=c,g},ee=function Insertion(c){var h=c.cache,g=c.serialized,m=c.isStringTag;return(0,S.hC)(h,g,m),(0,O.L)((function(){return(0,S.My)(h,g,m)})),null},te=B((function(c,h,g){var b=c.css;"string"==typeof b&&void 0!==h.registered[b]&&(b=h.registered[b]);var O=c[$],I=[b],j="";"string"==typeof c.className?j=(0,S.fp)(h.registered,I,c.className):null!=c.className&&(j=c.className+" ");var B=(0,_.O)(I,void 0,m.useContext(N));j+=h.key+"-"+B.name;var K={};for(var te in c)H.call(c,te)&&"css"!==te&&te!==$&&(K[te]=c[te]);return K.className=j,g&&(K.ref=g),m.createElement(m.Fragment,null,m.createElement(ee,{cache:h,serialized:B,isStringTag:"string"==typeof O}),m.createElement(O,K))}))},6502:(c,h,g)=>{"use strict";g.d(h,{F4:()=>keyframes,iv:()=>css,xB:()=>j});var m=g(5037),b=g(7363),S=g(5469),_=g(5251),O=g(7267),I=(g(9521),g(3790),function jsx(c,h){var g=arguments;if(null==h||!m.h.call(h,"css"))return b.createElement.apply(void 0,g);var S=g.length,_=new Array(S);_[0]=m.E,_[1]=(0,m.c)(c,h);for(var O=2;O<S;O++)_[O]=g[O];return b.createElement.apply(null,_)});!function(c){var h;h||(h=c.JSX||(c.JSX={}))}(I||(I={}));var j=(0,m.w)((function(c,h){var g=c.styles,I=(0,O.O)([g],void 0,b.useContext(m.T)),j=b.useRef();return(0,_.j)((function(){var c=h.key+"-global",g=new h.sheet.constructor({key:c,nonce:h.sheet.nonce,container:h.sheet.container,speedy:h.sheet.isSpeedy}),m=!1,b=document.querySelector('style[data-emotion="'+c+" "+I.name+'"]');return h.sheet.tags.length&&(g.before=h.sheet.tags[0]),null!==b&&(m=!0,b.setAttribute("data-emotion",c),g.hydrate([b])),j.current=[g,m],function(){g.flush()}}),[h]),(0,_.j)((function(){var c=j.current,g=c[0];if(c[1])c[1]=!1;else{if(void 0!==I.next&&(0,S.My)(h,I.next,!0),g.tags.length){var m=g.tags[g.tags.length-1].nextElementSibling;g.before=m,g.flush()}h.insert("",I,g,!1)}}),[h,I.name]),null}));function css(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];return(0,O.O)(h)}function keyframes(){var c=css.apply(void 0,arguments),h="animation-"+c.name;return{name:h,styles:"@keyframes "+h+"{"+c.styles+"}",anim:1,toString:function toString(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},7267:(c,h,g)=>{"use strict";g.d(h,{O:()=>serializeStyles});var m={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b=g(546),S=/[A-Z]|^ms/g,_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,O=function isCustomProperty(c){return 45===c.charCodeAt(1)},I=function isProcessableValue(c){return null!=c&&"boolean"!=typeof c},j=(0,b.Z)((function(c){return O(c)?c:c.replace(S,"-$&").toLowerCase()})),B=function processStyleValue(c,h){switch(c){case"animation":case"animationName":if("string"==typeof h)return h.replace(_,(function(c,h,g){return N={name:h,styles:g,next:N},h}))}return 1===m[c]||O(c)||"number"!=typeof h||0===h?h:h+"px"};function handleInterpolation(c,h,g){if(null==g)return"";var m=g;if(void 0!==m.__emotion_styles)return m;switch(typeof g){case"boolean":return"";case"object":var b=g;if(1===b.anim)return N={name:b.name,styles:b.styles,next:N},b.name;var S=g;if(void 0!==S.styles){var _=S.next;if(void 0!==_)for(;void 0!==_;)N={name:_.name,styles:_.styles,next:N},_=_.next;return S.styles+";"}return function createStringFromObject(c,h,g){var m="";if(Array.isArray(g))for(var b=0;b<g.length;b++)m+=handleInterpolation(c,h,g[b])+";";else for(var S in g){var _=g[S];if("object"!=typeof _){var O=_;null!=h&&void 0!==h[O]?m+=S+"{"+h[O]+"}":I(O)&&(m+=j(S)+":"+B(S,O)+";")}else if(!Array.isArray(_)||"string"!=typeof _[0]||null!=h&&void 0!==h[_[0]]){var N=handleInterpolation(c,h,_);switch(S){case"animation":case"animationName":m+=j(S)+":"+N+";";break;default:m+=S+"{"+N+"}"}}else for(var H=0;H<_.length;H++)I(_[H])&&(m+=j(S)+":"+B(S,_[H])+";")}return m}(c,h,g);case"function":if(void 0!==c){var O=N,H=g(c);return N=O,handleInterpolation(c,h,H)}}var $=g;if(null==h)return $;var K=h[$];return void 0!==K?K:$}var N,H=/label:\s*([^\s;{]+)\s*(;|$)/g;function serializeStyles(c,h,g){if(1===c.length&&"object"==typeof c[0]&&null!==c[0]&&void 0!==c[0].styles)return c[0];var m=!0,b="";N=void 0;var S=c[0];null==S||void 0===S.raw?(m=!1,b+=handleInterpolation(g,h,S)):b+=S[0];for(var _=1;_<c.length;_++){if(b+=handleInterpolation(g,h,c[_]),m)b+=S[_]}H.lastIndex=0;for(var O,I="";null!==(O=H.exec(b));)I+="-"+O[1];var j=function murmur2(c){for(var h,g=0,m=0,b=c.length;b>=4;++m,b-=4)h=1540483477*(65535&(h=255&c.charCodeAt(m)|(255&c.charCodeAt(++m))<<8|(255&c.charCodeAt(++m))<<16|(255&c.charCodeAt(++m))<<24))+(59797*(h>>>16)<<16),g=1540483477*(65535&(h^=h>>>24))+(59797*(h>>>16)<<16)^1540483477*(65535&g)+(59797*(g>>>16)<<16);switch(b){case 3:g^=(255&c.charCodeAt(m+2))<<16;case 2:g^=(255&c.charCodeAt(m+1))<<8;case 1:g=1540483477*(65535&(g^=255&c.charCodeAt(m)))+(59797*(g>>>16)<<16)}return(((g=1540483477*(65535&(g^=g>>>13))+(59797*(g>>>16)<<16))^g>>>15)>>>0).toString(36)}(b)+I;return{name:j,styles:b,next:N}}},6375:(c,h,g)=>{"use strict";g.d(h,{m:()=>m});var m=function(){function StyleSheet(c){var h=this;this._insertTag=function(c){var g;g=0===h.tags.length?h.insertionPoint?h.insertionPoint.nextSibling:h.prepend?h.container.firstChild:h.before:h.tags[h.tags.length-1].nextSibling,h.container.insertBefore(c,g),h.tags.push(c)},this.isSpeedy=void 0===c.speedy||c.speedy,this.tags=[],this.ctr=0,this.nonce=c.nonce,this.key=c.key,this.container=c.container,this.prepend=c.prepend,this.insertionPoint=c.insertionPoint,this.before=null}var c=StyleSheet.prototype;return c.hydrate=function hydrate(c){c.forEach(this._insertTag)},c.insert=function insert(c){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(c){var h=document.createElement("style");return h.setAttribute("data-emotion",c.key),void 0!==c.nonce&&h.setAttribute("nonce",c.nonce),h.appendChild(document.createTextNode("")),h.setAttribute("data-s",""),h}(this));var h=this.tags[this.tags.length-1];if(this.isSpeedy){var g=function sheetForTag(c){if(c.sheet)return c.sheet;for(var h=0;h<document.styleSheets.length;h++)if(document.styleSheets[h].ownerNode===c)return document.styleSheets[h]}(h);try{g.insertRule(c,g.cssRules.length)}catch(c){}}else h.appendChild(document.createTextNode(c));this.ctr++},c.flush=function flush(){this.tags.forEach((function(c){var h;return null==(h=c.parentNode)?void 0:h.removeChild(c)})),this.tags=[],this.ctr=0},StyleSheet}()},5251:(c,h,g)=>{"use strict";g.d(h,{L:()=>S,j:()=>_});var m=g(7363),b=!!m.useInsertionEffect&&m.useInsertionEffect,S=b||function syncFallback(c){return c()},_=b||m.useLayoutEffect},5469:(c,h,g)=>{"use strict";g.d(h,{My:()=>b,fp:()=>getRegisteredStyles,hC:()=>m});function getRegisteredStyles(c,h,g){var m="";return g.split(" ").forEach((function(g){void 0!==c[g]?h.push(c[g]+";"):g&&(m+=g+" ")})),m}var m=function registerStyles(c,h,g){var m=c.key+"-"+h.name;!1===g&&void 0===c.registered[m]&&(c.registered[m]=h.styles)},b=function insertStyles(c,h,g){m(c,h,g);var b=c.key+"-"+h.name;if(void 0===c.inserted[h.name]){var S=h;do{c.insert(h===S?"."+b:"",S,c.sheet,!0),S=S.next}while(void 0!==S)}}},1682:(c,h,g)=>{"use strict";g.d(h,{Z:()=>S});var m=g(6177),b=g(7514);const S=(0,m.Z)((0,b.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")},6033:(c,h,g)=>{"use strict";g.d(h,{Z:()=>ge});var m=g(7363),b=g(7726),S=g(9916),_=g(5689),O=g(7843),I=g(518),j=g(2893),B=g(7562),N=g(2791),H=g(8981),$=g(9173),K=g(4685),ee=g(9503);function getAlertUtilityClass(c){return(0,ee.ZP)("MuiAlert",c)}const te=(0,K.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var re=g(3697),ne=g(6177),oe=g(7514);const ie=(0,ne.Z)((0,oe.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"),ae=(0,ne.Z)((0,oe.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),se=(0,ne.Z)((0,oe.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"),le=(0,ne.Z)((0,oe.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"),ce=(0,ne.Z)((0,oe.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"),ue=(0,O.ZP)($.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.root,h[g.variant],h[`${g.variant}${(0,N.Z)(g.color||g.severity)}`]]}})((0,I.Z)((({theme:c})=>{const h="light"===c.palette.mode?_._j:_.$n,g="light"===c.palette.mode?_.$n:_._j;return{...c.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(c.palette).filter((0,H.Z)(["light"])).map((([m])=>({props:{colorSeverity:m,variant:"standard"},style:{color:c.vars?c.vars.palette.Alert[`${m}Color`]:h(c.palette[m].light,.6),backgroundColor:c.vars?c.vars.palette.Alert[`${m}StandardBg`]:g(c.palette[m].light,.9),[`& .${te.icon}`]:c.vars?{color:c.vars.palette.Alert[`${m}IconColor`]}:{color:c.palette[m].main}}}))),...Object.entries(c.palette).filter((0,H.Z)(["light"])).map((([g])=>({props:{colorSeverity:g,variant:"outlined"},style:{color:c.vars?c.vars.palette.Alert[`${g}Color`]:h(c.palette[g].light,.6),border:`1px solid ${(c.vars||c).palette[g].light}`,[`& .${te.icon}`]:c.vars?{color:c.vars.palette.Alert[`${g}IconColor`]}:{color:c.palette[g].main}}}))),...Object.entries(c.palette).filter((0,H.Z)(["dark"])).map((([h])=>({props:{colorSeverity:h,variant:"filled"},style:{fontWeight:c.typography.fontWeightMedium,...c.vars?{color:c.vars.palette.Alert[`${h}FilledColor`],backgroundColor:c.vars.palette.Alert[`${h}FilledBg`]}:{backgroundColor:"dark"===c.palette.mode?c.palette[h].dark:c.palette[h].main,color:c.palette.getContrastText(c.palette[h].main)}}})))]}}))),de=(0,O.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(c,h)=>h.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),pe=(0,O.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(c,h)=>h.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),fe=(0,O.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(c,h)=>h.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),he={success:(0,oe.jsx)(ie,{fontSize:"inherit"}),warning:(0,oe.jsx)(ae,{fontSize:"inherit"}),error:(0,oe.jsx)(se,{fontSize:"inherit"}),info:(0,oe.jsx)(le,{fontSize:"inherit"})},ge=m.forwardRef((function Alert(c,h){const g=(0,j.i)({props:c,name:"MuiAlert"}),{action:m,children:_,className:O,closeText:I="Close",color:H,components:$={},componentsProps:K={},icon:ee,iconMapping:te=he,onClose:ne,role:ie="alert",severity:ae="success",slotProps:se={},slots:le={},variant:ge="standard",...me}=g,ve={...g,color:H,severity:ae,variant:ge,colorSeverity:H||ae},ye=(c=>{const{variant:h,color:g,severity:m,classes:b}=c,_={root:["root",`color${(0,N.Z)(g||m)}`,`${h}${(0,N.Z)(g||m)}`,`${h}`],icon:["icon"],message:["message"],action:["action"]};return(0,S.Z)(_,getAlertUtilityClass,b)})(ve),be={slots:{closeButton:$.CloseButton,closeIcon:$.CloseIcon,...le},slotProps:{...K,...se}},[Se,we]=(0,B.Z)("root",{ref:h,shouldForwardComponentProp:!0,className:(0,b.Z)(ye.root,O),elementType:ue,externalForwardedProps:{...be,...me},ownerState:ve,additionalProps:{role:ie,elevation:0}}),[xe,_e]=(0,B.Z)("icon",{className:ye.icon,elementType:de,externalForwardedProps:be,ownerState:ve}),[Ce,ke]=(0,B.Z)("message",{className:ye.message,elementType:pe,externalForwardedProps:be,ownerState:ve}),[Te,Ee]=(0,B.Z)("action",{className:ye.action,elementType:fe,externalForwardedProps:be,ownerState:ve}),[Pe,Oe]=(0,B.Z)("closeButton",{elementType:re.Z,externalForwardedProps:be,ownerState:ve}),[Ae,Me]=(0,B.Z)("closeIcon",{elementType:ce,externalForwardedProps:be,ownerState:ve});return(0,oe.jsxs)(Se,{...we,children:[!1!==ee?(0,oe.jsx)(xe,{..._e,children:ee||te[ae]||he[ae]}):null,(0,oe.jsx)(Ce,{...ke,children:_}),null!=m?(0,oe.jsx)(Te,{...Ee,children:m}):null,null==m&&ne?(0,oe.jsx)(Te,{...Ee,children:(0,oe.jsx)(Pe,{size:"small","aria-label":I,title:I,color:"inherit",onClick:ne,...Oe,children:(0,oe.jsx)(Ae,{fontSize:"small",...Me})})}):null]})}))},6005:(c,h,g)=>{"use strict";g.d(h,{Z:()=>K});var m=g(7363),b=g(7726),S=g(9916),_=g(7843),O=g(2893),I=g(7562),j=g(7321),B=g(4685),N=g(9503);function getBackdropUtilityClass(c){return(0,N.ZP)("MuiBackdrop",c)}(0,B.Z)("MuiBackdrop",["root","invisible"]);var H=g(7514);const $=(0,_.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.root,g.invisible&&h.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),K=m.forwardRef((function Backdrop(c,h){const g=(0,O.i)({props:c,name:"MuiBackdrop"}),{children:m,className:_,component:B="div",invisible:N=!1,open:K,components:ee={},componentsProps:te={},slotProps:re={},slots:ne={},TransitionComponent:oe,transitionDuration:ie,...ae}=g,se={...g,component:B,invisible:N},le=(c=>{const{classes:h,invisible:g}=c,m={root:["root",g&&"invisible"]};return(0,S.Z)(m,getBackdropUtilityClass,h)})(se),ce={slots:{transition:oe,root:ee.Root,...ne},slotProps:{...te,...re}},[ue,de]=(0,I.Z)("root",{elementType:$,externalForwardedProps:ce,className:(0,b.Z)(le.root,_),ownerState:se}),[pe,fe]=(0,I.Z)("transition",{elementType:j.Z,externalForwardedProps:ce,ownerState:se});return(0,H.jsx)(pe,{in:K,timeout:ie,...ae,...fe,children:(0,H.jsx)(ue,{"aria-hidden":!0,...de,classes:le,ref:h,children:m})})}))},3335:(c,h,g)=>{"use strict";g.d(h,{Z:()=>fe});var m=g(7363),b=g(7726);function resolveProps(c,h){const g={...h};for(const m in c)if(Object.prototype.hasOwnProperty.call(c,m)){const b=m;if("components"===b||"slots"===b)g[b]={...c[b],...g[b]};else if("componentsProps"===b||"slotProps"===b){const m=c[b],S=h[b];if(S)if(m){g[b]={...S};for(const c in m)if(Object.prototype.hasOwnProperty.call(m,c)){const h=c;g[b][h]=resolveProps(m[h],S[h])}}else g[b]=S;else g[b]=m||{}}else void 0===g[b]&&(g[b]=c[b])}return g}var S=g(9916),_=g(5689),O=g(4532),I=g(4039),j=g(7843),B=g(518),N=g(2893),H=g(3688),$=g(3830),K=g(2791),ee=g(8981),te=g(4685),re=g(9503);function getButtonUtilityClass(c){return(0,re.ZP)("MuiButton",c)}const ne=(0,te.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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);const oe=m.createContext({});const ie=m.createContext(void 0);var ae=g(7514);const se=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],le=(0,j.ZP)(H.Z,{shouldForwardProp:c=>(0,I.Z)(c)||"classes"===c,name:"MuiButton",slot:"Root",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.root,h[g.variant],h[`${g.variant}${(0,K.Z)(g.color)}`],h[`size${(0,K.Z)(g.size)}`],h[`${g.variant}Size${(0,K.Z)(g.size)}`],"inherit"===g.color&&h.colorInherit,g.disableElevation&&h.disableElevation,g.fullWidth&&h.fullWidth,g.loading&&h.loading]}})((0,B.Z)((({theme:c})=>{const h="light"===c.palette.mode?c.palette.grey[300]:c.palette.grey[800],g="light"===c.palette.mode?c.palette.grey.A100:c.palette.grey[700];return{...c.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(c.vars||c).shape.borderRadius,transition:c.transitions.create(["background-color","box-shadow","border-color","color"],{duration:c.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ne.disabled}`]:{color:(c.vars||c).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(c.vars||c).shadows[2],"&:hover":{boxShadow:(c.vars||c).shadows[4],"@media (hover: none)":{boxShadow:(c.vars||c).shadows[2]}},"&:active":{boxShadow:(c.vars||c).shadows[8]},[`&.${ne.focusVisible}`]:{boxShadow:(c.vars||c).shadows[6]},[`&.${ne.disabled}`]:{color:(c.vars||c).palette.action.disabled,boxShadow:(c.vars||c).shadows[0],backgroundColor:(c.vars||c).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ne.disabled}`]:{border:`1px solid ${(c.vars||c).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(c.palette).filter((0,ee.Z)()).map((([h])=>({props:{color:h},style:{"--variant-textColor":(c.vars||c).palette[h].main,"--variant-outlinedColor":(c.vars||c).palette[h].main,"--variant-outlinedBorder":c.vars?`rgba(${c.vars.palette[h].mainChannel} / 0.5)`:(0,_.Fq)(c.palette[h].main,.5),"--variant-containedColor":(c.vars||c).palette[h].contrastText,"--variant-containedBg":(c.vars||c).palette[h].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(c.vars||c).palette[h].dark,"--variant-textBg":c.vars?`rgba(${c.vars.palette[h].mainChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette[h].main,c.palette.action.hoverOpacity),"--variant-outlinedBorder":(c.vars||c).palette[h].main,"--variant-outlinedBg":c.vars?`rgba(${c.vars.palette[h].mainChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette[h].main,c.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":c.vars?c.vars.palette.Button.inheritContainedBg:h,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":c.vars?c.vars.palette.Button.inheritContainedHoverBg:g,"--variant-textBg":c.vars?`rgba(${c.vars.palette.text.primaryChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette.text.primary,c.palette.action.hoverOpacity),"--variant-outlinedBg":c.vars?`rgba(${c.vars.palette.text.primaryChannel} / ${c.vars.palette.action.hoverOpacity})`:(0,_.Fq)(c.palette.text.primary,c.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:c.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:c.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:c.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:c.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:c.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:c.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ne.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ne.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:c.transitions.create(["background-color","box-shadow","border-color"],{duration:c.transitions.duration.short}),[`&.${ne.loading}`]:{color:"transparent"}}}]}}))),ce=(0,j.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.startIcon,g.loading&&h.startIconLoadingStart,h[`iconSize${(0,K.Z)(g.size)}`]]}})((({theme:c})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:c.transitions.create(["opacity"],{duration:c.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...se]}))),ue=(0,j.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(c,h)=>{const{ownerState:g}=c;return[h.endIcon,g.loading&&h.endIconLoadingEnd,h[`iconSize${(0,K.Z)(g.size)}`]]}})((({theme:c})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:c.transitions.create(["opacity"],{duration:c.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...se]}))),de=(0,j.ZP)("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(c,h)=>h.loadingIndicator})((({theme:c})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(c.vars||c).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),pe=(0,j.ZP)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(c,h)=>h.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),fe=m.forwardRef((function Button(c,h){const g=m.useContext(oe),_=m.useContext(ie),I=resolveProps(g,c),j=(0,N.i)({props:I,name:"MuiButton"}),{children:B,color:H="primary",component:ee="button",className:te,disabled:re=!1,disableElevation:ne=!1,disableFocusRipple:se=!1,endIcon:fe,focusVisibleClassName:he,fullWidth:ge=!1,id:me,loading:ve=null,loadingIndicator:ye,loadingPosition:be="center",size:Se="medium",startIcon:we,type:xe,variant:_e="text",...Ce}=j,ke=(0,O.Z)(me),Te=ye??(0,ae.jsx)($.Z,{"aria-labelledby":ke,color:"inherit",size:16}),Ee={...j,color:H,component:ee,disabled:re,disableElevation:ne,disableFocusRipple:se,fullWidth:ge,loading:ve,loadingIndicator:Te,loadingPosition:be,size:Se,type:xe,variant:_e},Pe=(c=>{const{color:h,disableElevation:g,fullWidth:m,size:b,variant:_,loading:O,loadingPosition:I,classes:j}=c,B={root:["root",O&&"loading",_,`${_}${(0,K.Z)(h)}`,`size${(0,K.Z)(b)}`,`${_}Size${(0,K.Z)(b)}`,`color${(0,K.Z)(h)}`,g&&"disableElevation",m&&"fullWidth",O&&`loadingPosition${(0,K.Z)(I)}`],startIcon:["icon","startIcon",`iconSize${(0,K.Z)(b)}`],endIcon:["icon","endIcon",`iconSize${(0,K.Z)(b)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},N=(0,S.Z)(B,getButtonUtilityClass,j);return{...j,...N}})(Ee),Oe=(we||ve&&"start"===be)&&(0,ae.jsx)(ce,{className:Pe.startIcon,ownerState:Ee,children:we||(0,ae.jsx)(pe,{className:Pe.loadingIconPlaceholder,ownerState:Ee})}),Ae=(fe||ve&&"end"===be)&&(0,ae.jsx)(ue,{className:Pe.endIcon,ownerState:Ee,children:fe||(0,ae.jsx)(pe,{className:Pe.loadingIconPlaceholder,ownerState:Ee})}),Me=_||"",Ie="boolean"==typeof ve?(0,ae.jsx)("span",{className:Pe.loadingWrapper,style:{display:"contents"},children:ve&&(0,ae.jsx)(de,{className:Pe.loadingIndicator,ownerState:Ee,children:Te})}):null;return(0,ae.jsxs)(le,{ownerState:Ee,className:(0,b.Z)(g.className,Pe.root,te,Me),component:ee,disabled:re||ve,focusRipple:!se,focusVisibleClassName:(0,b.Z)(Pe.focusVisible,he),ref:h,type:xe,id:ve?ke:me,...Ce,classes:Pe,children:[Oe,"end"!==be&&Ie,B,"end"===be&&Ie,Ae]})}))},3688:(c,h,g)=>{"use strict";g.d(h,{Z:()=>be});var m=g(7363),b=g.n(m),S=g(7726),_=g(9916),O=g(5260),I=g(7843),j=g(2893),B=g(8080),N=g(8376),H=g(2035);class LazyRipple{static create(){return new LazyRipple}static use(){const c=(0,H.Z)(LazyRipple.create).current,[h,g]=m.useState(!1);return c.shouldMount=h,c.setShouldMount=g,m.useEffect(c.mountEffect,[h]),c}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function createControlledPromise(){let c,h;const g=new Promise(((g,m)=>{c=g,h=m}));return g.resolve=c,g.reject=h,g}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...c){this.mount().then((()=>this.ref.current?.start(...c)))}stop(...c){this.mount().then((()=>this.ref.current?.stop(...c)))}pulsate(...c){this.mount().then((()=>this.ref.current?.pulsate(...c)))}}var $=g(9451);function _extends(){return _extends=Object.assign?Object.assign.bind():function(c){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)({}).hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c},_extends.apply(null,arguments)}var K=g(1936),ee=g(5175);function getChildMapping(c,h){var g=Object.create(null);return c&&m.Children.map(c,(function(c){return c})).forEach((function(c){g[c.key]=function mapper(c){return h&&(0,m.isValidElement)(c)?h(c):c}(c)})),g}function getProp(c,h,g){return null!=g[h]?g[h]:c.props[h]}function getNextChildMapping(c,h,g){var b=getChildMapping(c.children),S=function mergeChildMappings(c,h){function getValueForKey(g){return g in h?h[g]:c[g]}c=c||{},h=h||{};var g,m=Object.create(null),b=[];for(var S in c)S in h?b.length&&(m[S]=b,b=[]):b.push(S);var _={};for(var O in h){if(m[O])for(g=0;g<m[O].length;g++){var I=m[O][g];_[m[O][g]]=getValueForKey(I)}_[O]=getValueForKey(O)}for(g=0;g<b.length;g++)_[b[g]]=getValueForKey(b[g]);return _}(h,b);return Object.keys(S).forEach((function(_){var O=S[_];if((0,m.isValidElement)(O)){var I=_ in h,j=_ in b,B=h[_],N=(0,m.isValidElement)(B)&&!B.props.in;!j||I&&!N?j||!I||N?j&&I&&(0,m.isValidElement)(B)&&(S[_]=(0,m.cloneElement)(O,{onExited:g.bind(null,O),in:B.props.in,exit:getProp(O,"exit",c),enter:getProp(O,"enter",c)})):S[_]=(0,m.cloneElement)(O,{in:!1}):S[_]=(0,m.cloneElement)(O,{onExited:g.bind(null,O),in:!0,exit:getProp(O,"exit",c),enter:getProp(O,"enter",c)})}})),S}var te=Object.values||function(c){return Object.keys(c).map((function(h){return c[h]}))},re=function(c){function TransitionGroup(h,g){var m,b=(m=c.call(this,h,g)||this).handleExited.bind(function _assertThisInitialized(c){if(void 0===c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}(m));return m.state={contextValue:{isMounting:!0},handleExited:b,firstRender:!0},m}(0,K.Z)(TransitionGroup,c);var h=TransitionGroup.prototype;return h.componentDidMount=function componentDidMount(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},h.componentWillUnmount=function componentWillUnmount(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function getDerivedStateFromProps(c,h){var g,b,S=h.children,_=h.handleExited;return{children:h.firstRender?(g=c,b=_,getChildMapping(g.children,(function(c){return(0,m.cloneElement)(c,{onExited:b.bind(null,c),in:!0,appear:getProp(c,"appear",g),enter:getProp(c,"enter",g),exit:getProp(c,"exit",g)})}))):getNextChildMapping(c,S,_),firstRender:!1}},h.handleExited=function handleExited(c,h){var g=getChildMapping(this.props.children);c.key in g||(c.props.onExited&&c.props.onExited(h),this.mounted&&this.setState((function(h){var g=_extends({},h.children);return delete g[c.key],{children:g}})))},h.render=function render(){var c=this.props,h=c.component,g=c.childFactory,m=(0,$.Z)(c,["component","childFactory"]),S=this.state.contextValue,_=te(this.state.children).map(g);return delete m.appear,delete m.enter,delete m.exit,null===h?b().createElement(ee.Z.Provider,{value:S},_):b().createElement(ee.Z.Provider,{value:S},b().createElement(h,m,_))},TransitionGroup}(b().Component);re.propTypes={},re.defaultProps={component:"div",childFactory:function childFactory(c){return c}};const ne=re;var oe=g(3968),ie=g(6502),ae=g(7514);const se=function Ripple(c){const{className:h,classes:g,pulsate:b=!1,rippleX:_,rippleY:O,rippleSize:I,in:j,onExited:B,timeout:N}=c,[H,$]=m.useState(!1),K=(0,S.Z)(h,g.ripple,g.rippleVisible,b&&g.ripplePulsate),ee={width:I,height:I,top:-I/2+O,left:-I/2+_},te=(0,S.Z)(g.child,H&&g.childLeaving,b&&g.childPulsate);return j||H||$(!0),m.useEffect((()=>{if(!j&&null!=B){const c=setTimeout(B,N);return()=>{clearTimeout(c)}}}),[B,j,N]),(0,ae.jsx)("span",{className:K,style:ee,children:(0,ae.jsx)("span",{className:te})})};var le=g(4685);const ce=(0,le.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ue=ie.F4`
|
|
3
3
|
0% {
|
|
4
4
|
transform: scale(0);
|
|
5
5
|
opacity: 0.1;
|