PageSourceSearch

https://welovedevs.com/_next/static/chunks/7973-0c1286b2b276c3f8.js

js welovedevs.com collected 2026-10-03 21:38:40 UTC 81,474 bytes, 10 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7973],{50693:function(t,e,n){"use strict";var r=n(93117);e.Z=void 0;var i=r(n(72951)),a=n(57437);e.Z=(0,i.default)((0,a.jsx)("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"}),"BugReport")},93568:function(t,e,n){"use strict";var r=n(93117);e.Z=void 0;var i=r(n(72951)),a=n(57437);e.Z=(0,i.default)((0,a.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email")},31996:function(t,e,n){"use strict";var r=n(93117);e.Z=void 0;var i=r(n(72951)),a=n(57437);e.Z=(0,i.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},10944:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(16745),i=n(2265),a=n(32350),s=n(24491),o=n(47907),c=n(57437);function u(t){let{options:e,CacheProvider:n=s.C,children:u}=t,[f]=i.useState(()=>{var t;let n=(0,a.Z)((0,r.Z)({},e,{key:null!=(t=null==e?void 0:e.key)?t:"mui"}));n.compat=!0;let i=n.insert,s=[];return n.insert=function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];null!=e&&e.enableCssLayer&&(r[1].styles="@layer mui {".concat(r[1].styles,"}"));let[o,c]=r;return void 0===n.inserted[c.name]&&s.push({name:c.name,isGlobal:!o}),i(...r)},{cache:n,flush:()=>{let t=s;return s=[],t}}});return(0,o.useServerInsertedHTML)(()=>{let t=f.flush();if(0===t.length)return null;let n="",r=f.cache.key,a=[];return t.forEach(t=>{let{name:e,isGlobal:i}=t,s=f.cache.inserted[e];"boolean"!=typeof s&&(i?a.push({name:e,style:s}):(n+=s,r+=" ".concat(e)))}),(0,c.jsxs)(i.Fragment,{children:[a.map(t=>{let{name:n,style:r}=t;return(0,c.jsx)("style",{nonce:null==e?void 0:e.nonce,"data-emotion":"".concat(f.cache.key,"-global ").concat(n),dangerouslySetInnerHTML:{__html:r}},n)}),n&&(0,c.jsx)("style",{nonce:null==e?void 0:e.nonce,"data-emotion":r,dangerouslySetInnerHTML:{__html:n}})]})}),(0,c.jsx)(n,{value:f.cache,children:u})}},79918:function(t,e,n){"use strict";n.d(e,{Z:function(){return _}});var r=n(16745),i=n(4505),a=n(2265),s=n(91836),o=n(98046),c=n(96597),u=n(57437),f=function(t){let{children:e,theme:n}=t,i=(0,s.Z)(),f=a.useMemo(()=>{let t=null===i?n:"function"==typeof n?n(i):(0,r.Z)({},i,n);return null!=t&&(t[c.Z]=null!==i),t},[n,i]);return(0,u.jsx)(o.Z.Provider,{value:f,children:e})},l=n(24491),d=n(63053);let h=["value"],p=a.createContext();var v=function(t){let{value:e}=t,n=(0,i.Z)(t,h);return(0,u.jsx)(p.Provider,(0,r.Z)({value:null==e||e},n))};let m={};function g(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return a.useMemo(()=>{let a=t&&e[t]||e;if("function"==typeof n){let s=n(a),o=t?(0,r.Z)({},e,{[t]:s}):s;return i?()=>o:o}return t?(0,r.Z)({},e,{[t]:n}):(0,r.Z)({},e,n)},[t,e,n,i])}var y=function(t){let{children:e,theme:n,themeId:r}=t,i=(0,d.Z)(m),a=(0,s.Z)()||m,o=g(r,i,n),c=g(r,a,n,!0),h="rtl"===o.direction;return(0,u.jsx)(f,{theme:c,children:(0,u.jsx)(l.T.Provider,{value:o,children:(0,u.jsx)(v,{value:h,children:e})})})},b=n(61062);let S=["theme"];function _(t){let{theme:e}=t,n=(0,i.Z)(t,S),a=e[b.Z];return(0,u.jsx)(y,(0,r.Z)({},n,{themeId:a?b.Z:void 0,theme:a||e}))}},92789:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(16745),i=n(4505),a=n(2265),s=n(25555),o=n(48854),c=n.n(o),u=n(91893),f=n(57437);let l=["name"],d=["children","className","clone","component"];function h(t){return(e,n={})=>{let o;let{name:h}=n,p=(0,i.Z)(n,l),v=(0,u.Z)("function"==typeof e?t=>({root:n=>e((0,r.Z)({theme:t},n))}):{root:e},(0,r.Z)({Component:t,name:h||t.displayName,classNamePrefix:h},p));e.filterProps&&(o=e.filterProps,delete e.filterProps),e.propTypes&&(e.propT
1ypes,delete e.propTypes);let m=a.forwardRef(function(e,n){let{children:c,className:u,clone:l,component:h}=e,p=(0,i.Z)(e,d),m=v(e),g=(0,s.Z)(m.root,u),y=p;if(o&&(y=function(t,e){let n={};return Object.keys(t).forEach(r=>{-1===e.indexOf(r)&&(n[r]=t[r])}),n}(y,o)),l)return a.cloneElement(c,(0,r.Z)({className:(0,s.Z)(c.props.className,g)},y));if("function"==typeof c)return c((0,r.Z)({className:g},y));let b=h||t;return(0,f.jsx)(b,(0,r.Z)({ref:n,className:g},y,{children:c}))});return c()(m,t),m}}},41678:function(t,e,n){"use strict";function r(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}n.d(e,{S1:function(){return eR}}),r.prototype=Error.prototype;var i,a=setTimeout;function s(t){return!!(t&&void 0!==t.length)}function o(){}function c(t){if(!(this instanceof c))throw TypeError("Promises must be constructed via new");if("function"!=typeof t)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(t,this)}function u(t,e){for(;3===t._state;)t=t._value;if(0===t._state){t._deferreds.push(e);return}t._handled=!0,c._immediateFn(function(){var n,r=1===t._state?e.onFulfilled:e.onRejected;if(null===r){(1===t._state?f:l)(e.promise,t._value);return}try{n=r(t._value)}catch(t){l(e.promise,t);return}f(e.promise,n)})}function f(t,e){try{if(e===t)throw TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof c){t._state=3,t._value=e,d(t);return}if("function"==typeof n){p(function(){n.apply(e,arguments)},t);return}}t._state=1,t._value=e,d(t)}catch(e){l(t,e)}}function l(t,e){t._state=2,t._value=e,d(t)}function d(t){2===t._state&&0===t._deferreds.length&&c._immediateFn(function(){t._handled||c._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)u(t,t._deferreds[e]);t._deferreds=null}function h(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function p(t,e){var n=!1;try{t(function(t){n||(n=!0,f(e,t))},function(t){n||(n=!0,l(e,t))})}catch(t){if(n)return;n=!0,l(e,t)}}c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){var n=new this.constructor(o);return u(this,new h(t,e,n)),n},c.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},c.all=function(t){return new c(function(e,n){if(!s(t))return n(TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);for(var i=r.length,a=0;a<r.length;a++)!function t(a,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var o=s.then;if("function"==typeof o){o.call(s,function(e){t(a,e)},n);return}}r[a]=s,0==--i&&e(r)}catch(t){n(t)}}(a,r[a])})},c.any=function(t){var e=this;return new e(function(n,i){if(!(t&&void 0!==t.length))return i(TypeError("Promise.any accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return i();for(var s=[],o=0;o<a.length;o++)try{e.resolve(a[o]).then(n).catch(function(t){s.push(t),s.length===a.length&&i(new r(s,"All promises were rejected"))})}catch(t){i(t)}})},c.allSettled=function(t){return new this(function(e,n){if(!(t&&void 0!==t.length))return n(TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);for(var i=r.length,a=0;a<r.length;a++)!function t(n,a){if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s){s.call(a,function(e){t(n,e)},function(t){r[n]={status:"rejected",reason:t},0==--i&&e(r)});return}}r[n]={status:"fulfilled",value:a},0==--i&&e(r)}(a,r[a])})},c.resolve=function(t){return t&&"object"==typeof t&&t.constructor===c?t:new c(function(e){e(t)})}
1,c.reject=function(t){return new c(function(e,n){n(t)})},c.race=function(t){return new c(function(e,n){if(!s(t))return n(TypeError("Promise.race accepts an array"));for(var r=0,i=t.length;r<i;r++)c.resolve(t[r]).then(e,n)})},c._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){a(t,0)},c._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var v={};y?v=window:"undefined"!=typeof self&&(v=self);for(var m=("Promise"in v)?v.Promise:c,g=[].slice,y="undefined"!=typeof window,b=y&&"undefined"!=typeof performance?performance:{},S=[],_=0;_<256;++_)S[_]=(_+256).toString(16).substr(1);var w=new Uint8Array(16);function T(t){return(function(t){for(var e=[],n=0;n<t.length;n++)e.push(S[t[n]]);return e.join("")})("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues(w):"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues?msCrypto.getRandomValues(w):w).substr(0,t)}function E(t,e,n){"function"==typeof t.setRequestHeader?t.setRequestHeader(e,n):t.headers&&"function"==typeof t.headers.append?t.headers.append(e,n):t[e]=n}function x(t,e){var n=!1;return"string"==typeof e?n=t===e:e&&"function"==typeof e.test?n=e.test(t):Array.isArray(e)&&e.forEach(function(e){n||(n=x(t,e))}),n}function C(t,e,n){if(n&&t){var r=q(t),i=typeof e;return void 0!=e&&"boolean"!==i&&"number"!==i&&(e=String(e)),n[r]=e,n}}function O(t){return t&&t.split("?")[0]}function I(t){return null!==t&&"object"==typeof t}function k(t,e,n){for(var r=0,i=e.length;r<i;++r){var a=e[r];if(I(a)||"function"==typeof a)for(var s=Object.keys(a),o=0,c=s.length;o<c;o++){var u=s[o],f=a[u];n&&I(f)?(I(t[u])||(t[u]=Array.isArray(f)?[]:{}),k(t[u],[f],!1)):t[u]=f}}return t}function L(){return k(Object.create(null),g.call(arguments),!1)}function N(){return k(Object.create(null),g.call(arguments),!0)}function P(t){return void 0===t}function j(){}function q(t){return t.replace(/[.*"]/g,"_")}function R(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r];e&&e(i.type)&&(!n||n._end<i._end)&&(n=i)}return n}function A(){return b.now()}function M(t){return"number"==typeof t&&t>=0?t:A()}function F(t,e){return P(e)||P(t)?null:parseInt(e-t)}function Z(t){m.resolve().then(t)}function H(){return"function"==typeof b.getEntriesByType}function D(t){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(t)>=0}function Q(){return"interactionCount"in performance}function V(t){return t.redirectStart>0}var z={fetchInProgress:!1};function U(t){return"__apm_symbol__"+t}function B(t,e,n){for(var r,i=t;i&&!i.hasOwnProperty(e);)i=Object.getPrototypeOf(i);!i&&t[e]&&(i=t);var a=U(e);if(i&&!(r=i[a])&&(r=i[a]=i[e],!(s=i&&Object.getOwnPropertyDescriptor(i,e))||!1!==s.writable&&!("function"==typeof s.get&&void 0===s.set))){var s,o,c,u=n(r,a,e);i[e]=function(){return u(this,arguments)},o=i[e],c=r,o[U("OriginalDelegate")]=c}return r}var $=U("xhrIgnore"),K=U("xhrSync"),G=U("xhrURL"),J=U("xhrMethod"),X="schedule",Y="invoke",W="addEventListener",tt=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],te="page-load",tn="custom",tr="user-interaction",ti="http-request",ta="temporary",ts="Unknown",to="page-exit",tc=[te,"route-change",tr,ti,tn,ta],tu="transaction:end",tf="config:change",tl="queue:flush",td="queue:add_transaction",th="transaction:ignore",tp="xmlhttprequest",tv="fetch",tm="history",tg="eventtarget",ty="click",tb="error",tS=":after",t_="elastic_apm_config",tw="longtask",tT="largest-contentful-paint",tE="first-input",tx="layout-shift",tC="errors",tO="transactions",tI="ConfigService",tk="LoggingService",tL="TransactionService",tN="ApmServer",tP="PerformanceMonitoring",tj="ErrorLogging",tq=".truncated";function tR(t){return 0!==t&&(!(t>399)||!(t<600))}function tA(){return(tA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}function tM(){return"function"==typeof window.fetch&&"function"==typeof window.Request}var tF=function(){function t(){this.observers={}}var e=t.prototype;return e.observe=function(t,e){var n=this;if("function"==typeof e)return this.observers[t]||(this.observers[t]=[]),this.observers[t].push(e),function(){var r=n.observers[t].indexOf(e);r>-1&&n.observers[t].splice(r,1)}}
1,e.sendOnly=function(t,e){var n=this.observers[t];n&&n.forEach(function(t){try{t.apply(void 0,e)}catch(t){console.log(t,t.stack)}})},e.send=function(t,e){this.sendOnly(t+":before",e),this.sendOnly(t,e),this.sendOnly(t+tS,e)},t}(),tZ=new tF,tH=!1,tD={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER},tQ=!1,tV=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],tz=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,tU=function(){function t(t){var e,n=this.extractProtocol(t||""),r=n.protocol,i=n.address,a=n.slashes,s=!r&&!a,o=this.getLocation(),c=tV.slice();i=i.replace("\\","/"),a||(c[2]=[NaN,"path"]);for(var u=0;u<c.length;u++){var f=c[u],l=f[0],d=f[1];if("string"==typeof l){if(~(e=i.indexOf(l))){var h=f[2];h?(e=Math.max(e,i.lastIndexOf(l)),this[d]=i.slice(0,e),i=i.slice(e+h)):(this[d]=i.slice(e),i=i.slice(0,e))}}else this[d]=i,i="";this[d]=this[d]||s&&f[3]&&o[d]||"",f[3]&&(this[d]=this[d].toLowerCase())}if(s&&"/"!==this.path.charAt(0)&&(this.path="/"+this.path),this.relative=s,this.protocol=r||o.protocol,this.hostname=this.host,this.port="",/:\d+$/.test(this.host)){var p=this.host.split(":"),v=p.pop(),m=p.join(":");!function(t,e){switch(e){case"http:":return"80"===t;case"https:":return"443"===t}return!0}(v,this.protocol)?this.port=v:this.host=m,this.hostname=m}this.origin=this.protocol&&this.host&&"file:"!==this.protocol?this.protocol+"//"+this.host:"null",this.href=this.toString()}var e=t.prototype;return e.toString=function(){var t=this.protocol;if(t+="//",this.auth){var e="[REDACTED]",n=this.auth.split(":");t+=(n[0]?e:"")+(n[1]?":"+e:"")+"@"}return t+(this.host+this.path+this.query+this.hash)},e.getLocation=function(){var t={};return y&&(t=window),t.location},e.extractProtocol=function(t){var e=tz.exec(t);return{protocol:e[1]?e[1].toLowerCase():"",slashes:!!e[2],address:e[3]}},t}(),tB=["tags"];function t$(t){var e=t.transferSize,n=t.encodedBodySize,r=t.decodedBodySize,i=t.serverTiming,a={transfer_size:e,encoded_body_size:n,decoded_body_size:r},s=function(t){void 0===t&&(t=[]);for(var e=[],n=0;n<t.length;n++){var r=t[n],i=r.name,a=r.duration,s=r.description,o=i;s&&(o+=";desc="+s),a&&(o+=";dur="+a),e.push(o)}return e.join(", ")}(i);return s&&(a.headers={"server-timing":s}),a}function tK(t){var e,n=t.port,r=t.protocol,i=t.hostname,a=(""===(e=n)&&(e="http:"===r?"80":"https:"===r?"443":""),e),s=91===i.charCodeAt(0)&&93===i.charCodeAt(i.length-1),o=i;return s&&(o=i.slice(1,-1)),{service:{resource:i+":"+a,name:"",type:""},address:o,port:Number(a)}}function tG(){return{page:{referer:document.referrer,url:location.href}}}var tJ={service:{name:[1024,!0],version:!0,agent:{version:[1024,!0]},environment:!0},labels:{"*":!0}},tX={"*":!0,headers:{"*":!0}},tY={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:tX},destination:{address:[1024],service:{"*":[1024,!0]}},response:tX},tW={name:[1024,!0],type:[1024,!0],id:[1024,!0],trace_id:[1024,!0],parent_id:[1024,!0],transaction_id:[1024,!0],subtype:!0,action:!0,context:tY},t0={name:!0,parent_id:!0,type:[1024,!0],id:[1024,!0],trace_id:[1024,!0],span_count:{started:[1024,!0]},context:tY},t1={id:[1024,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:tY};function t2(t){return null==t||""===t||void 0===t}function t4(t,e,n){var r,i,a,s,o=(r=t[e],(void 0===(i=n[0])&&(i=1024),void 0===(a=n[1])&&(a=!1),void 0===s&&(s="N/A"),a&&t2(r)&&(r=s),"string"==typeof r)?r.substring(0,i):r);if(t2(o)){delete t[e];return}t[e]=o}function t3(t,e,n){void 0===t&&(t={}),void 0===n&&(n=e);for(var r=Object.keys(t),i=[],a=0;a<r.length;a++)!function(){var s=r[a],o=!0===t[s]?i:t[s];Array.isArray(o)?"*"===s?Object.keys(n).forEach(function(t){return t4(n,t,o)}):t4(n,s,o):t3(o,e,n[s])}();return e}var t5=n(51508),t9=n.n(t5),t6=["tags"],t7=["stack","message"],t8="Unhandled promise rejection: ",et=function(){function t(t,e,n){this._apmServer=t,this._configService=e,this._transactionService=n}var e=t.prototype;return e.createErrorDataModel=function(t,e){var n=(function(t,e){var n,r=e.error,i=e.filename,a=e.lineno,s=e.colno,o=[];if(r)try{o=t.parse(r)}catch(t){}return 0!==(n=o).length&&(1!==n.length||"lineNumber"in n[0])||(o=[{fileName:i,lineNumber:a,columnNumber:s}]),o.map(function(t){var e,n;return t.functionName&&(t.functionName=(n=((n=(0,t.functionName).split("/")).length>1?["Object",n[n.length-1]].join("."):n[0]).replace(/.<$/gi,".<anonymous>").replace(/^Anonymous function$/,"<anonymous>").split(".")).length>1?n[n.length-1]:n[0]),t}).map(function(t){var e,n,r,i=t.fileName,a=t.lineNumber,s=t.columnNumber,o=t.functionName;if(!i&&!a||!s&&!a)return{};var c=(void 0===(e=i)&&(e=""),"<anonymous>"===e&&(e=""),e),u=(n=c,r=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),n.indexOf(r)>-1&&(n=n.replace(r+"/","")),n);return c&&0===window.location.href.indexOf(c)&&(u="(inline script)"),{abs_path:i,filename:u,function:void 0===o?"<anonymous>":o,lineno:a,colno:s}})})(t9(),t).filter(function(t){var e=t.filename,n=t.lineno;return void 0!==e&&void 0!==n}),r="(inline script)",i=n[n.length-1];i&&i.filename&&(r=i.filename);var a=t.message,s=t.error,o=a,c="",u={};if(s&&"object"==typeof s){o=o||s.message,c=s.name;var f=function(t){var e=!1,n={};if(Object.keys(t).forEach(function(r){if(!(t7.indexOf(r)>=0)){var i=t[r];
1if(null!=i&&"function"!=typeof i){if("object"==typeof i){if("function"!=typeof i.toISOString)return;i=i.toISOString()}n[r]=i,e=!0}}}),e)return n}(s);f&&(u.custom=f)}if(e&&e.labels){var l=Object.keys(e.labels);u.tags={},l.forEach(function(t){return C(t,e.labels[t],u.tags)})}!c&&o&&o.indexOf(":")>-1&&(c=o.split(":")[0]);var d=this._transactionService.getCurrentTransaction(),h=d?d.context:{},p=this._configService.get("context"),v=(p.tags,function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(p,t6)),m=N({},tG(),h,v,u),g={id:T(),culprit:r,exception:{message:o,stacktrace:n,type:c},context:m};return d&&(g=L(g,{trace_id:d.traceId,parent_id:d.id,transaction_id:d.id,transaction:{type:d.type,sampled:d.sampled}})),t3(t1,g)},e.logErrorEvent=function(t,e){if(void 0!==t){var n=this.createErrorDataModel(t,e);void 0!==n.exception.message&&this._apmServer.addError(n)}},e.registerListeners=function(){var t=this;window.addEventListener("error",function(e){return t.logErrorEvent(e)}),window.addEventListener("unhandledrejection",function(e){return t.logPromiseEvent(e)})},e.logPromiseEvent=function(t){var e,n=t.reason;if(null==n&&(n="<no reason specified>"),"string"==typeof n.message){var r=n.name?n.name+": ":"";e={error:n,message:t8+r+n.message}}else e=this._parseRejectReason(n);this.logErrorEvent(e)},e.logError=function(t,e){var n={};return"string"==typeof t?n.message=t:n.error=t,this.logErrorEvent(n,e)},e._parseRejectReason=function(t){var e={message:t8};if(Array.isArray(t))e.message+="<object>";else if("object"==typeof t)try{e.message+=JSON.stringify(t),e.error=t}catch(t){e.message+="<object>"}else"function"==typeof t?e.message+="<function>":e.message+=t;return e},t}(),ee=function(){function t(t,e){void 0===e&&(e={}),this.onFlush=t,this.items=[],this.queueLimit=e.queueLimit||-1,this.flushInterval=e.flushInterval||0,this.timeoutId=void 0}var e=t.prototype;return e._setTimer=function(){var t=this;this.timeoutId=setTimeout(function(){return t.flush()},this.flushInterval)},e._clear=function(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},e.flush=function(){this.onFlush(this.items),this._clear()},e.add=function(t){this.items.push(t),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},t}(),en=function(){function t(){}return t.stringify=function(t){return JSON.stringify(t)+"\n"},t}(),er=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],ei=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function ea(t){return{ts:t.transfer_size,ebs:t.encoded_body_size,dbs:t.decoded_body_size}}function es(t){if(!t)return null;var e,n,r,i,a,s={},o=t.page,c=t.http,u=t.response,f=t.destination,l=t.user,d=t.custom,h=t.tags;if(o&&(s.p={rf:o.referer,url:o.url}),c&&(s.h=(e={},n=c.method,r=c.status_code,i=c.url,a=c.response,e.url=i,n&&(e.mt=n),r&&(e.sc=r),a&&(e.r=ea(a)),e)),u&&(s.r=ea(u)),f){var p=f.service;s.dt={se:{n:p.name,t:p.type,rc:p.resource},ad:f.address,po:f.port}}return l&&(s.u={id:l.id,un:l.username,em:l.email}),d&&(s.cu=d),h&&(s.g=h),s}function eo(t,e,n){var r=n.timeout,i=void 0===r?HTTP_REQUEST_TIMEOUT:r,a=n.payload,s=n.headers,o=n.beforeSend,c=n.sendCredentials;return new m(function(n,r){var u=new window.XMLHttpRequest;if(u[$]=!0,u.open(t,e,!0),u.timeout=i,u.withCredentials=c,s)for(var f in s)s.hasOwnProperty(f)&&u.setRequestHeader(f,s[f]);u.onreadystatechange=function(){if(4===u.readyState){var t=u.status,i=u.responseText;tR(t)?n(u):r({url:e,status:t,responseText:i})}},u.onerror=function(){r({url:e,status:u.status,responseText:u.responseText})};var l=!0;"function"==typeof o&&(l=o({url:e,method:t,headers:s,payload:a,xhr:u})),l?u.send(a):r({url:e,status:0,responseText:"Request rejected by user configuration."})})}var ec=function(){function t(t,e){this._configService=t,this._loggingService=e,this.queue=void 0,this.throttleEvents=j}var e=t.prototype;return e.init=function(){var t=this,e=this._configService.get("queueLimit"),n=this._configService.get("flushInterval"),r=this._configService.get("eventsLimit");this.queue=new ee(function(e){var n=t.sendEvents(e);n&&n.catch(function(e){t._loggingService.warn("Failed sending events!",t._constructError(e))})},{queueLimit:e,flushInterval:n}),this.throttleEvents=function(t,e,n){var r,i=this,a=n.limit,s=n.interval,o=0;return function(){return(o++,void 0===r&&(r=setTimeout(function(){o=0,r=void 0},s)),o>a&&"function"==typeof e)?e.apply(i,arguments):t.apply(i,arguments)}}(this.queue.add.bind(this.queue),function(){return t._loggingService.warn("Dropped events due to throttling!")},{limit:r,interval:6e4}),this._configService.observeEvent(tl,function(){t.queue.flush()})},e._postJson=function(t,e){var n,r,i=this,a={payload:e,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return(void 0===n&&(n="gzip"),r="function"==typeof CompressionStream,new m(function(t){if(!r||function(){var t="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(t))return!0;
1if(!window.URL||!window.URLSearchParams)return!1;try{var e=new URL(window.location.href).searchParams.has(t);return e&&sessionStorage.setItem(t,!0),e}catch(t){}return!1}())return t(a);var e=a.payload,i=a.headers,s=a.beforeSend,o=new Blob([e]).stream().pipeThrough(new CompressionStream(n));return new Response(o).blob().then(function(e){return i["Content-Encoding"]=n,t({payload:e,headers:i,beforeSend:s})})})).catch(function(t){return a}).then(function(e){return i._makeHttpRequest("POST",t,e)}).then(function(t){return t.responseText})},e._constructError=function(t){var e=t.url,n=t.status;return(t.responseText,void 0===n)?t:Error(e+" HTTP status: "+n)},e._makeHttpRequest=function(t,e,n){var r=void 0===n?{}:n,i=r.timeout,a=void 0===i?1e4:i,s=r.payload,o=r.headers,c=r.beforeSend,u=this._configService.get("sendCredentials");return!c&&function(t,e){if(!tM()||!("keepalive"in new Request("")))return!1;var n=e?e instanceof Blob?e.size:new Blob([e]).size:0;return"POST"===t&&n<6e4}(t,s)?(function(t,e,n){var r,i=n.keepalive,a=n.timeout,s=n.payload,o=n.headers,c=n.sendCredentials,u={};if("function"==typeof AbortController){var f=new AbortController;u.signal=f.signal,setTimeout(function(){return f.abort()},void 0===a?1e4:a)}return window.fetch(e,tA({body:s,headers:o,method:t,keepalive:void 0!==i&&i,credentials:c?"include":"omit"},u)).then(function(t){return(r=t).text()}).then(function(t){var n={url:e,status:r.status,responseText:t};if(!tR(r.status))throw n;return n})})(t,e,{keepalive:!0,timeout:a,payload:s,headers:o,sendCredentials:u}).catch(function(n){if(n instanceof TypeError)return eo(t,e,{timeout:a,payload:s,headers:o,beforeSend:c,sendCredentials:u});throw n}):eo(t,e,{timeout:a,payload:s,headers:o,beforeSend:c,sendCredentials:u})},e.fetchConfig=function(t,e){var n=this,r=this.getEndpoints().configEndpoint;if(!t)return m.reject("serviceName is required for fetching central config.");r+="?service.name="+t,e&&(r+="&service.environment="+e);var i=this._configService.getLocalConfig();i&&(r+="&ifnonematch="+i.etag);var a=this._configService.get("apmRequest");return this._makeHttpRequest("GET",r,{timeout:5e3,beforeSend:a}).then(function(t){var e=t.status,r=t.responseText;if(304===e)return i;var a=JSON.parse(r),s=t.getResponseHeader("etag");return s&&(a.etag=s.replace(/["]/g,""),n._configService.setLocalConfig(a,!0)),a}).catch(function(t){var e=n._constructError(t);return m.reject(e)})},e.createMetaData=function(){var t=this._configService;return t3(tJ,{service:{name:t.get("serviceName"),version:t.get("serviceVersion"),agent:{name:"rum-js",version:t.version},language:{name:"javascript"},environment:t.get("environment")},labels:t.get("context.tags")})},e.addError=function(t){var e;this.throttleEvents(((e={})[tC]=t,e))},e.addTransaction=function(t){var e;this.throttleEvents(((e={})[tO]=t,e))},e.ndjsonErrors=function(t,e){var n=e?"e":"error";return t.map(function(t){var r,i,a,s;return en.stringify(((r={})[n]=e?(i=t.exception,a={id:t.id,cl:t.culprit,ex:{mg:i.message,st:i.stacktrace.map(function(t){return{ap:t.abs_path,f:t.filename,fn:t.function,li:t.lineno,co:t.colno}}),t:t.type},c:es(t.context)},(s=t.transaction)&&(a.tid=t.trace_id,a.pid=t.parent_id,a.xid=t.transaction_id,a.x={t:s.type,sm:s.sampled}),a):t,r))})},e.ndjsonMetricsets=function(t){return t.map(function(t){return en.stringify({metricset:t})}).join("")},e.ndjsonTransactions=function(t,e){var n=this,r=e?"x":"transaction";return t.map(function(t){var i,a="",s="";return!e&&(t.spans&&(a=t.spans.map(function(t){return en.stringify({span:t})}).join(""),delete t.spans),t.breakdown&&(s=n.ndjsonMetricsets(t.breakdown),delete t.breakdown)),en.stringify(((i={})[r]=e?function(t){var e=t.spans.map(function(e){var n={id:e.id,n:e.name,t:e.type,s:e.start,d:e.duration,c:es(e.context),o:e.outcome,sr:e.sample_rate};return e.parent_id!==t.id&&(n.pid=e.parent_id),!0===e.sync&&(n.sy=!0),e.subtype&&(n.su=e.subtype),e.action&&(n.ac=e.action),n}),n={id:t.id,pid:t.parent_id,tid:t.trace_id,n:t.name,t:t.type,d:t.duration,c:es(t.context),k:function(t){if(!t)return null;var e=function(t){if(!t)return null;var e={};
1return ei.forEach(function(n,r){var i=er[r];e[n]=t[i]}),e}(t.navigationTiming);return{nt:e,a:function(t,e){var n={};if(t&&(n={fb:t.rs,di:t.di,dc:t.dc}),e){var r=e.firstContentfulPaint,i=e.largestContentfulPaint;r&&(n.fp=r),i&&(n.lp=i)}return 0===Object.keys(n).length?null:n}(e,t.agent)}}(t.marks),me:t.breakdown.map(function(t){var e=t.span,n=t.samples;return{y:{t:e.type},sa:{ysc:{v:n["span.self_time.count"].value},yss:{v:n["span.self_time.sum.us"].value}}}}),y:e,yc:{sd:e.length},sm:t.sampled,sr:t.sample_rate,o:t.outcome};if(t.experience){var r=t.experience,i=r.cls,a=r.fid,s=r.tbt,o=r.longtask;n.exp={cls:i,fid:a,tbt:s,lt:o}}if(t.session){var c=t.session,u=c.id,f=c.sequence;n.ses={id:u,seq:f}}return n}(t):t,i))+a+s})},e.sendEvents=function(t){if(0!==t.length){for(var e,n,r,i,a,s,o=[],c=[],u=0;u<t.length;u++){var f=t[u];f[tO]&&o.push(f[tO]),f[tC]&&c.push(f[tC])}if(0!==o.length||0!==c.length){var l=this._configService,d=((a={})[tO]=o,a[tC]=c,a),h=l.applyFilters(d);if(!h){this._loggingService.warn("Dropped payload due to filtering!");return}var p=l.get("apiVersion")>2,v=[],m=this.createMetaData(),g=p?"m":"metadata";v.push(en.stringify(((s={})[g]=p?(e=m.service,n=m.labels,r=e.agent,i=e.language,{se:{n:e.name,ve:e.version,a:{n:r.name,ve:r.version},la:{n:i.name},en:e.environment},l:n}):m,s)));var y=(v=v.concat(this.ndjsonErrors(h[tC],p),this.ndjsonTransactions(h[tO],p))).join(""),b=this.getEndpoints().intakeEndpoint;return this._postJson(b,y)}}},e.getEndpoints=function(){var t=this._configService.get("serverUrl"),e=this._configService.get("apiVersion");return{intakeEndpoint:t+(this._configService.get("serverUrlPrefix")||"/intake/v"+e+"/rum/events"),configEndpoint:t+"/config/v1/rum/agents"}},t}();function eu(){return(eu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}var ef=function(){function t(){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 tF,this.filters=[],this.version=""}var e=t.prototype;return e.init=function(){var t=function(t){if(!t)return{};for(var e={},n=/^data-([\w-]+)$/,r=t.attributes,i=0;i<r.length;i++){var a=r[i];n.test(a.nodeName)&&(e[a.nodeName.match(n)[1].split("-").map(function(t,e){return e>0?t.charAt(0).toUpperCase()+t.substring(1):t}).join("")]=a.value||a.nodeValue)}return e}(function(){if("undefined"!=typeof document)return document.currentScript||function(){if("undefined"!=typeof document)for(var t=document.getElementsByTagName("script"),e=0,n=t.length;e<n;e++){var r=t[e];if(r.src.indexOf("elastic")>0)return r}}()}());this.setConfig(t)},e.setVersion=function(t){this.version=t},e.addFilter=function(t){if("function"!=typeof t)throw Error("Argument to must be function");this.filters.push(t)},e.applyFilters=function(t){try{for(var e=0;e<this.filters.length;e++)if(!(t=this.filters[e](t)))return;if(t.transactions=t.transactions.filter(function(t){return t}),t.errors=t.errors.filter(function(t){return t}),0===t.transactions.length&&0===t.errors.length)return}catch(t){return}return t},e.get=function(t){return t.split(".").reduce(function(t,e){return t&&t[e]},this.config)},e.setUserContext=function(t){void 0===t&&(t={});var e={},n=t,r=n.id,i=n.username,a=n.email;("number"==typeof r||"string"==typeof r)&&(e.id=r),"string"==typeof i&&(e.username=i),"string"==typeof a&&(e.email=a),this.config.context.user=L(this.config.context.user||{},e)},e.setCustomContext=function(t){void 0===t&&(t={}),this.config.context.custom=L(this.config.context.custom||{},t)},e.addLabels=function(t){var e=this;this.config.context.tags||(this.config.context.tags={}),Object.keys(t).forEach(function(n){return C(n,t[n],e.config.context.tags)})},e.setConfig=function(t){void 0===t&&(t={});var e=t,n=e.transactionSampleRate,r=e.serverUrl;r&&(t.serverUrl=r.replace(/\/+$/,"")),P(n)||(n<1e-4&&n>0&&(n=1e-4),t.transactionSampleRate=Math.round(1e4*n)/1e4),this.config=N(this.config,t),this.events.send(tf,[this.config])},e.validate=function(t){void 0===t&&(t={});var e=["serviceName","serverUrl"],n=Object.keys(this.config),r={missing:[],invalid:[],unknown:[]};Object.keys(t).forEach(function(i){-1===e.indexOf(i)||t[i]||r.missing.push(i),-1===n.indexOf(i)&&r.unknown.push(i)}),t.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(t.serviceName)&&r.invalid.push({key:"serviceName",value:t.serviceName,allowed:"a-z, A-Z, 0-9, _, -, <space>"});var i=t.transactionSampleRate;return void 0!==i&&("number"!=typeof i||isNaN(i)||i<0||i>1)&&r.invalid.push({key:"transactionSampleRate",value:i,allowed:"Number between 0 and 1"}),r},e.getLocalConfig=function(){var t=sessionStorage;this.config.session&&(t=localStorage);var e=t.getItem(t_);if(e)return JSON.parse(e)},e.setLocalConfig=function(t,e){if(t){if(e){var n=this.getLocalConfig();t=eu({},n,t)}var r=sessionStorage;this.config.session&&(r=localStorage),r.setItem(t_,JSON.stringify(t))}},e.dispatchEvent=function(t,e){this.events.send(t,e)},e.observeEvent=function(t,e){return this.events.observe(t,e)},t}(),el=function(){function t(t){void 0===t&&(t={}),this.levels=["trace","debug","info","warn","error"],this.level=t.level||"warn",this.prefix=t.prefix||"",this.resetLogMethods()}var e=t.prototype;return e.shouldLog=function(t){return this.levels.indexOf(t)>=this.levels.indexOf(this.level)},e.setLevel=function(t){t!==this.level&&(this.level=t,this.resetLogMethods())},e.resetLogMethods=function(){var t=this;
1this.levels.forEach(function(e){t[e]=t.shouldLog(e)?function(){var t=e;("trace"===e||"debug"===e)&&(t="info");var n=arguments;if(n[0]=this.prefix+n[0],console){var r=console[t]||console.log;"function"==typeof r&&r.apply(console,n)}}:j})},t}(),ed=((i={})[tI]=function(){return new ef},i[tk]=function(){return new el({prefix:"[Elastic APM] "})},i[tN]=function(t){var e=t.getService([tI,tk]);return new ec(e[0],e[1])},i),eh=function(){function t(){this.instances={},this.initialized=!1}var e=t.prototype;return e.init=function(){if(!this.initialized){this.initialized=!0;var t=this.getService(tI);t.init();var e=this.getService([tk,tN]),n=e[0],r=e[1];t.events.observe(tf,function(){var e=t.get("logLevel");n.setLevel(e)}),r.init()}},e.getService=function(t){var e=this;return"string"==typeof t?(this.instances[t]||"function"!=typeof ed[t]||(this.instances[t]=ed[t](this)),this.instances[t]):Array.isArray(t)?t.map(function(t){return e.getService(t)}):void 0},t}(),ep=function(){function t(t,e,n,r){this._apmServer=t,this._configService=e,this._logginService=n,this._transactionService=r}var e=t.prototype;return e.init=function(t){var e=this;void 0===t&&(t={}),this._configService.events.observe(tu+tS,function(t){var n=e.createTransactionPayload(t);n&&(e._apmServer.addTransaction(n),e._configService.dispatchEvent(td))}),t[tm]&&tZ.observe(tm,this.getHistorySub()),t[tp]&&tZ.observe(tp,this.getXHRSub()),t[tv]&&tZ.observe(tv,this.getFetchSub())},e.getHistorySub=function(){var t=this._transactionService;
1return function(e,n){n.source===tm&&e===Y&&t.startTransaction(n.data.title,"route-change",{managed:!0,canReuse:!0})}},e.getXHRSub=function(){var t=this;return function(e,n){n.source!==tp||z.fetchInProgress||t.processAPICalls(e,n)}},e.getFetchSub=function(){var t=this;return function(e,n){n.source===tv&&t.processAPICalls(e,n)}},e.processAPICalls=function(t,e){var n=this._configService,r=this._transactionService;if(e.data&&e.data.url){var i=this._apmServer.getEndpoints();if(Object.keys(i).some(function(t){return -1!==e.data.url.indexOf(i[t])}))return}if(t===X&&e.data){var a=e.data,s=new tU(a.url),o=a.method+" "+(s.relative?s.path:O(s.href));r.getCurrentTransaction()||r.startTransaction(o,ti,{managed:!0});var c=r.startSpan(o,"external.http",{blocking:!0});if(!c)return;var u=n.get("distributedTracing"),f=n.get("distributedTracingOrigins"),l=new tU(window.location.href),d=x(s.origin,l.origin)||x(s.origin,f),h=a.target;u&&d&&h&&(this.injectDtHeader(c,h),n.get("propagateTracestate")&&this.injectTSHeader(c,h)),a.sync&&(c.sync=a.sync),a.span=c}else if(t===Y){var p=e.data;if(p&&p.span){var v,m,g=p.span,y=p.response,b=p.target;v=y?y.status:b.status,m="abort"==p.status||p.aborted?"unknown":v>=400||0==v?"failure":"success",g.outcome=m;var S=r.getCurrentTransaction();S&&S.type===ti&&(S.outcome=m),r.endSpan(g,p)}}},e.injectDtHeader=function(t,e){var n=this._configService.get("distributedTracingHeaderName"),r=function(t){if(t&&t.traceId&&t.id&&t.parentId){var e=t.sampled?"01":"00",n=t.sampled?t.id:t.parentId;return"00-"+t.traceId+"-"+n+"-"+e}}(t);/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(r)&&"00000000000000000000000000000000"!==r.slice(3,35)&&"0000000000000000"!==r.slice(36,52)&&r&&n&&E(e,n,r)},e.injectTSHeader=function(t,e){var n=function(t){var e=t.sampleRate;if("number"==typeof e&&!(String(e).length>
1256))return"es=s:"+e}(t);n&&E(e,"tracestate",n)},e.extractDtHeader=function(t){var e=this._configService.get("distributedTracingHeaderName");if(t)return function(t){var e=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(t);if(e){var n=e[4];return{traceId:e[2],id:e[3],sampled:"00"!==n}}}(t[e])},e.filterTransaction=function(t){var e=t.duration();if(!e)return!1;if(t.isManaged()){if(e>6e4)return!1;var n=this._configService.get("reportTransactionsWithoutSpans");if(t.sampled&&0===t.spans.length&&!n)return!1}return!0},e.createTransactionDataModel=function(t){var e=t._start,n=t.spans.map(function(n){return t3(tW,{id:n.id,transaction_id:t.id,parent_id:n.parentId||t.id,trace_id:t.traceId,name:n.name,type:n.type,subtype:n.subtype,action:n.action,sync:n.sync,start:parseInt(n._start-e),duration:n.duration(),context:n.context,outcome:n.outcome,sample_rate:n.sampleRate})});return t3(t0,{id:t.id,parent_id:t.parentId,trace_id:t.traceId,session:t.session,name:t.name,type:t.type,duration:t.duration(),spans:n,context:t.context,marks:t.marks,breakdown:t.breakdownTimings,span_count:{started:n.length},sampled:t.sampled,sample_rate:t.sampleRate,experience:t.experience,outcome:t.outcome})},e.createTransactionPayload=function(t){var e=function(t){if(t.sampled){var e=t.spans.filter(function(e){return e.duration()>0&&e._start>=t._start&&e._end<=t._end});if(t.isManaged()){var n=function(t,e,n){t.sort(function(t,e){return t._start-e._start});var r=[],i=1;return t.forEach(function(a,s){if(0===r.length)r.push(a);else{var o=r[r.length-1],c=o.type===a.type&&o.subtype===a.subtype&&o.action===a.action&&o.name===a.name&&a.duration()/e<n&&(a._start-o._end)/e<n,u=t.length===s+1;c&&(i++,o._end=a._end),i>1&&(!c||u)&&(o.name=i+"x "+o.name,i=1),c||r.push(a)}}),r}(e,t.duration(),.05);t.spans=n}else t.spans=e}else t.resetFields();return t}(t);if(this.filterTransaction(e))return this.createTransactionDataModel(t);this._configService.dispatchEvent(th)},t}(),ev=function(){function t(t,e,n){void 0===n&&(n={}),t||(t=ts),e||(e=tn),this.name=t,this.type=e,this.options=n,this.id=n.id||T(16),this.traceId=n.traceId,this.sampled=n.sampled,this.sampleRate=n.sampleRate,this.timestamp=n.timestamp,this._start=M(n.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=n.onEnd}var e=t.prototype;return e.ensureContext=function(){this.context||(this.context={})},e.addLabels=function(t){this.ensureContext();var e=this.context;e.tags||(e.tags={}),Object.keys(t).forEach(function(n){return C(n,t[n],e.tags)})},e.addContext=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];0!==e.length&&(this.ensureContext(),this.context=N.apply(void 0,[this.context].concat(e)))},e.end=function(t){this.ended||(this.ended=!0,this._end=M(t),this.callOnEnd())},e.callOnEnd=function(){"function"==typeof this.onEnd&&this.onEnd(this)},e.duration=function(){return F(this._start,this._end)},t}();function em(t,e){return(em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eg=function(t){function e(e,n,r){var i;if((i=t.call(this,e,n,r)||this).parentId=i.options.parentId,i.subtype=void 0,i.action=void 0,-1!==i.type.indexOf(".")){var a=i.type.split(".",3);i.type=a[0],i.subtype=a[1],i.action=a[2]}return i.sync=i.options.sync,i}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,em(e,t),e.prototype.end=function(e,n){t.prototype.end.call(this,e),function(t,e){var n,r,i,a,s,o,c,u,f,l,d,h;if(e){switch(t.type){case"external":i=e.url,a=e.method,s=e.target,o=e.response,u=tK(c=new tU(i)),f={http:{method:a,url:c.href},destination:u},s&&void 0!==s.status?r=s.status:o&&(r=o.status),f.http.status_code=r,n=f;break;case"resource":l=e.entry,h=tK(new tU(d=e.url)),n={http:{url:d,response:t$(l)},destination:h};break;case"hard-navigation":n={destination:tK(new tU(e.url))}}t.addContext(n)}}(this,n)},e}(ev),ey=[["domainLookupStart","domainLookupEnd","DNS"],["connectStart","connectEnd","TCP"],["requestStart","responseStart","Request"],["responseStart","responseEnd","Re
1sponse"],["domLoading","domComplete","Processing"],["loadEventStart","loadEventEnd","Load"]];function eb(t,e){var n=e.details,r=e.count;return{transaction:t,span:n,samples:{"span.self_time.count":{value:void 0===r?1:r},"span.self_time.sum.us":{value:1e3*e.duration}}}}function eS(t,e){return(eS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var e_=function(t){function e(e,n,r){var i;return(i=t.call(this,e,n,r)||this).traceId=T(),i.marks=void 0,i.spans=[],i._activeSpans={},i._activeTasks=new Set,i.blocked=!1,i.captureTimings=!1,i.breakdownTimings=[],i.sampleRate=i.options.transactionSampleRate,i.sampled=Math.random()<=i.sampleRate,i}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eS(e,t);var n=e.prototype;return n.addMarks=function(t){this.marks=N(this.marks||{},t)},n.mark=function(t){var e=q(t),n=A()-this._start,r={};r[e]=n,this.addMarks({custom:r})},n.canReuse=function(){var t=this.options.reuseThreshold||5e3;return!!this.options.canReuse&&!this.ended&&A()-this._start<t},n.redefine=function(t,e,n){t&&(this.name=t),e&&(this.type=e),n&&(this.options.reuseThreshold=n.reuseThreshold,this.options=L(this.options,n))},n.startSpan=function(t,e,n){var r=this;if(!this.ended){var i=L({},n);i.onEnd=function(t){r._onSpanEnd(t)},i.traceId=this.traceId,i.sampled=this.sampled,i.sampleRate=this.sampleRate,i.parentId||(i.parentId=this.id);var a=new eg(t,e,i);return this._activeSpans[a.id]=a,i.blocking&&this.addTask(a.id),a}},n.isFinished=function(){return!this.blocked&&0===this._activeTasks.size},n.detectFinish=function(){this.isFinished()&&this.end()},n.end=function(t){if(!this.ended){for(var e in this.ended=!0,this._end=M(t),this._activeSpans){var n=this._activeSpans[e];n.type=n.type+tq,n.end(t)}this.callOnEnd()}},n.captureBreakdown=function(){this.breakdownTimings=function(t,e){void 0===e&&(e=b.timing);var n=[],r=t.name,i=t.type,a=t.sampled,s={name:r,type:i};if(!a)return n;if(i===te&&e)for(var o=0;o<ey.length;o++){var c=ey[o],u=F(e[c[0]],e[c[1]]);0!==u&&null!=u&&n.push(eb(s,{details:{type:c[2]},duration:u}))}else{var f=function(t){var e={},n=function(t){var e=t.spans,n=t._start,r=t._end;if(0===e.length)return t.duration();e.sort(function(t,e){return t._start-e._start});for(var i=e[0],a=i._end,s=i._start,o=a,c=s-n,u=1;u<e.length;u++)s=(i=e[u])._start,a=i._end,s>o?(c+=s-o,o=a):a>o&&(o=a);return o<r&&(c+=r-o),c}(t);e.app={count:1,duration:n};for(var r=t.spans,i=0;i<r.length;i++){var a=r[i],s=a.duration();if(0!==s&&null!=s){var o=a.type,c=a.subtype,u=o.replace(tq,"");c&&(u+="."+c),e[u]||(e[u]={duration:0,count:0}),e[u].count++,e[u].duration+=s}}return e}(t);Object.keys(f).forEach(function(t){var e=t.split("."),r=e[0],i=e[1],a=f[t],o=a.duration,c=a.count;n.push(eb(s,{details:{type:r,subtype:i},duration:o,count:c}))})}return n}(this)},n.block=function(t){this.blocked=t,this.blocked||this.detectFinish()},n.addTask=function(t){return t||(t="task-"+T(16)),this._activeTasks.add(t),t},n.removeTask=function(t){this._activeTasks.delete(t)&&this.detectFinish()},n.resetFields=function(){this.spans=[],this.sampleRate=0},n._onSpanEnd=function(t){this.spans.push(t),delete this._activeSpans[t.id],this.removeTask(t.id)},n.isManaged=function(){return!!this.options.managed},e}(ev);function ew(){return(ew=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}var eT={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}},eE=function(){function t(t){this.po={observe:j,disconnect:j},window.PerformanceObserver&&(this.po=new PerformanceObserver(t))}var e=t.prototype;return e.start=function(t,e){void 0===e&&(e={buffered:!0});try{if(!D(t))return;this.po.observe(ew({type:t},e))}catch(t){}},e.stop=function(){this.po.disconnect()},t}();function ex(t,e,n,r,i){return void 0===i&&(i=0),"number"==typeof t&&"number"==typeof e&&t>=i&&e>t&&t-i>=n&&e-i<=r&&e-t<3e5&&t-i<3e5&&e-i<3e5}var eC=[["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']],eO=function(){function t(t,e){var n=this;this._config=e,this._logger=t,this.currentTransaction=void 0,this.respIntervalId=void 0,this.recorder=new eE(function(t){var e=n.getCurrentTransaction();if(e&&e.captureTimings){var r,i=e.type===te,a=function(t,e){var n=e.isHardNavigation,r=e.trStart,i=t.getEntriesByType(tw).filter(function(t){return t.startTime>=r}),a={spans:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=i.name,s=i.startTime,o=i.duration,c=i.attribution,u=s+o,f=new eg("Longtask("+a+")",tw,{startTime:s});if(e.count++,e.duration+=o,e.max=Math.max(o,e.max),c.length>0){var l=c[0],d=l.name,h=l.containerType,p=l.containerName,v=l.containerId,m={attribution:d,type:h};p&&(m.name=p),v&&(m.id=v),f.addContext({custom:m})}f.end(u),n.push(f)}return n}(i,eT.longtask),marks:{}};if(!n)return a;var s=t.getEntriesByType(tT),o=s[s.length-1];if(o){var c=parseInt(o.startTime);eT.lcp=c,a.marks.largestContentfulPaint=c}var u=b.timing,f=u.fetchStart-u.navigationStart;V(u)&&(f=0);var l=t.getEntriesByName("first-contentful-paint")[0];if(l){var d=parseInt(f>=0?l.startTime-f:l.startTime);eT.fcp=d,a.marks.firstContentfulPaint=d}var h=function(t){var e=t[0];if(e){var n=e.startTime,r=e.processingStart,i=new eg("First Input Delay",tE,{startTime:n});return i.end(r),i}}(t.getEntriesByType(tE));return h&&(eT.fid=h.duration(),a.spans.push(h)),function(t){t.forEach(function(t){var e=t.name,n=t.startTime,r=t.duration;if(!(n<eT.fcp)&&("self"===e||-1!==e.indexOf("same-origin"))){eT.tbt.start=Math.min(eT.tbt.start,n);var i=r-50;i>0&&(eT.tbt.duration+=i)}})}(i),function(t){t.forEach(function(t){!t.hadRecentInput&&t.value&&((t.startTime-eT.cls.firstEntryTime>5e3||t.startTime-eT.cls.prevEntryTime>1e3)&&(eT.cls.firstEntryTime=t.startTime,eT.cls.currentSessionScore=0),eT.cls.prevEntryTime=t.startTime,eT.cls.currentSessionScore+=t.value,eT.cls.score=Math.max(eT.cls.score,eT.cls.currentSessionScore))})}(t.getEntriesByType(tx)),a}(t,{isHardNavigation:i,trStart:i?0:e._start}),s=a.spans,o=a.marks;(r=e.spans).push.apply(r,s),e.addMarks({agent:o})}})}var e=t.prototype;return e.createCurrentTransaction=function(t,e,n){var r=new e_(t,e,n);return this.currentTransaction=r,r},e.getCurrentTransaction=function(){if(this.currentTransaction&&!this.currentTransaction.ended)return this.currentTransaction},e.createOptions=function(t){var e=this._config.config,n=L({transactionSampleRate:e.transactionSampleRate},t);return n.managed&&(n=L({pageLoadTraceId:e.pageLoadTraceId,pageLoadSampled:e.pageLoadSampled,pageLoadSpanId:e.pageLoadSpanId,pageLoadTransactionName:e.pageLoadTransactionName,pageLoadParentId:e.pageLoadParentId},n)),n},e.startManagedTransaction=function(t,e,n){var r=this.getCurrentTransaction(),i=!1;if(r){if(r.canReuse()&&n.canReuse){var a=r.type,s=tc.indexOf(r.type),o=tc.indexOf(e);s>=0&&o<s&&(a=e),r.redefine(t,a,n),i=!0}else r.end(),r=this.createCurrentTransaction(t,e,n)}else r=this.createCurrentTransaction(t,e,n);return r.type===te&&(i||(this.recorder.start(tT),this.recorder.start("paint"),this.recorder.start(tE),this.recorder.start(tx)),n.pageLoadTraceId&&(r.traceId=n.pageLoadTraceId),n.pageLoadSampled&&(r.sampled=n.pageLoadSampled),r.name===ts&&n.pageLoadTransactionName&&(r.name=n.pageLoadTransactionName)),!i&&this._config.get("monitorLongtasks")&&this.recorder.start(tw),r.sampled&&(r.captureTimings=!0),r},e.startTransaction=function(t,e,n){var r,i=this,a=this.createOptions(n),s=!0;return a.managed?this.currentTransaction===(r=this.startManagedTransaction(t,e,a))&&(s=!1):r=new e_(t,e,a),r.onEnd=function(){return i.handleTransactionEnd(r)},s&&this._config.events.send("transaction:start",[r]),r},e.handleTransactionEnd=function(t){var e=this;this.recorder.stop();var n=window.location.href;return m.resolve().then(function(){var r=t.name,i=t.type;if(tD.lastHiddenStart>=t._start||e.shouldIgnoreTransaction(r)||i===ta){e._config.dispatchEvent(th);return}if(i===te){var a=e._config.get("pageLoadTransactionName");if(r===ts&&a&&(t.name=a),t.captureTimings){var s,o,c,u=eT.cls,f=eT.fid,l=eT.tbt,d=eT.longtask;l.duration>0&&t.spans.push((s=l.start,o=l.duration,(c=new eg("Total Blocking Time",tw,{startTime:s}
1)).end(s+o),c)),t.experience={},D(tw)&&(t.experience.tbt=l.duration),D(tx)&&(t.experience.cls=u.score),f>0&&(t.experience.fid=f),d.count>0&&(t.experience.longtask={count:d.count,sum:d.duration,max:d.max})}e.setSession(t)}t.name===ts&&(t.name=function(t,e){void 0===e&&(e=2);for(var n=new tU(t),r=n.query,i=n.path.substring(1).split("/"),a=/\W|_/g,s=/[0-9]/g,o=/[a-z]/g,c=/[A-Z]/g,u=[],f=!1,l=0;l<i.length;l++){var d=i[l];if(f||l>e-1){d&&u.push("*");break}if((d.match(a)||[]).length>=2){u.push(":id"),f=!0;continue}var h=(d.match(s)||[]).length;if(h>3||d.length>3&&h/d.length>=.3){u.push(":id"),f=!0;continue}var p=(d.match(c)||[]).length,v=(d.match(o)||[]).length/d.length,m=p/d.length;if(d.length>5&&(m>.3&&m<.6||v>.3&&v<.6)){u.push(":id"),f=!0;continue}d&&u.push(d)}return"/"+(u.length>=2?u.join("/"):u.join(""))+(r?"?{query}":"")}(n)),function(t){if(!t.captureTimings){t.type===te&&(t._start=0);return}var e=t._end;if(t.type===te){if(t.marks&&t.marks.custom){var n,r=t.marks.custom;Object.keys(r).forEach(function(e){r[e]+=t._start})}t._start=0;var i=b.timing,a=V(i)?i.redirectStart:i.fetchStart;(function(t,e,n,r){for(var i=[],a=0;a<eC.length;a++){var s=t[eC[a][0]],o=t[eC[a][1]];if(ex(s,o,0,r,e)){var c=new eg(eC[a][2],"hard-navigation.browser-timing"),u=null;"requestStart"===eC[a][0]&&(c.pageResponse=!0,u={url:location.origin}),c._start=s-e,c.end(o-e,u),i.push(c)}}return i})(i,a,0,e).forEach(function(e){e.traceId=t.traceId,e.sampled=t.sampled,e.pageResponse&&t.options.pageLoadSpanId&&(e.id=t.options.pageLoadSpanId),t.spans.push(e)}),t.options.pageLoadParentId&&(t.parentId=t.options.pageLoadParentId),t.addMarks(null==(n=function(t){var e=t.redirectStart,n=t.fetchStart,r=t.navigationStart,i=t.responseStart,a=t.responseEnd;if(n>=r&&i>=n&&a>=i){var s={};return er.forEach(function(r){var i=t[r];i&&i>=n&&(V(t)?s[r]=parseInt(i-e):s[r]=parseInt(i-n))}),s}return null}(i))?null:{navigationTiming:n,agent:{timeToFirstByte:n.responseStart,domInteractive:n.domInteractive,domComplete:n.domComplete}})}if(H()){var s=t._start;(function(t,e,n,r){for(var i=[],a=0;a<t.length;a++){var s=t[a],o=s.initiatorType,c=s.name,u=s.startTime,f=s.responseEnd;-1!==tt.indexOf(o)&&null!=c&&!(("xmlhttprequest"===o||"fetch"===o)&&(/intake\/v\d+\/rum\/events/.test(c)||null!=e&&u>e))&&ex(u,f,n,r)&&i.push(function(t){var e=t.name,n=t.initiatorType,r=t.startTime,i=t.responseEnd,a="resource";n&&(a+="."+n);var s=new eg(O(e),a);return s._start=r,s.end(i,{url:e,entry:t}),s}(t[a]))}return i})(b.getEntriesByType("resource"),tD.bootstrapTime,s,e).forEach(function(e){return t.spans.push(e)}),(function(t,e,n){for(var r=[],i=0;i<t.length;i++){var a=t[i],s=a.name,o=a.startTime,c=a.duration,u=o+c;if(!(c<=60)&&ex(o,u,e,n)){var f=new eg(s,"app");f._start=o,f.end(u),r.push(f)}}return r})(b.getEntriesByType("measure"),s,e).forEach(function(e){return t.spans.push(e)})}}(t),e.adjustTransactionTime(t),e._config.get("breakdownMetrics")&&t.captureBreakdown(),function(t,e){var n=void 0===e?{}:e,r=(n.tags,function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(n,tB)),i=tG(),a={};if(t.type===to)t.ensureContext(),t.context.page&&t.context.page.url&&(i.page.url=t.context.page.url);else if(t.type===te&&H()){var s=b.getEntriesByType("navigation");s&&s.length>0&&(a={response:t$(s[0])})}t.addContext(i,a,r)}(t,e._config.get("context")),e._config.events.send(tu,[t])},function(t){})},e.setSession=function(t){var e=this._config.get("session");if(e){"boolean"==typeof e?t.session={id:T(16),sequence:1}:e.timestamp&&Date.now()-e.timestamp>18e5?t.session={id:T(16),sequence:1}:t.session={id:e.id,sequence:e.sequence?e.sequence+1:1};var n={session:{id:t.session.id,sequence:t.session.sequence,timestamp:Date.now()}};this._config.setConfig(n),this._config.setLocalConfig(n,!0)}},e.adjustTransactionTime=function(t){var e=t.spans,n=function(t){for(var e=t[0],n=1;n<t.length;n++){var r=t[n];e._start>r._start&&(e=r)}return e}(e);n&&n._start<t._start&&(t._start=n._start);var r=(R(e,function(t){return -1===String(t).indexOf("external")})||{})._end||0;if(t.type===te){var i=t._end-1e3,a=eT.lcp||0,s=(R(e,function(t){return -1!==String(t).indexOf("external")})||{})._end||0;t._end=Math.max(r,s,a,i)}else r>t._end&&(t._end=r);this.truncateSpans(e,t._end)},e.truncateSpans=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];r._end>e&&(r._end=e,r.type+=tq),r._start>e&&(r._start=e)}},e.shouldIgnoreTransaction=function(t){var e=this._config.get("ignoreTransactions");
1if(e&&e.length)for(var n=0;n<e.length;n++){var r=e[n];if("function"==typeof r.test){if(r.test(t))return!0}else if(r===t)return!0}return!1},e.startSpan=function(t,e,n){var r=this.getCurrentTransaction();return r||(r=this.createCurrentTransaction(void 0,ta,this.createOptions({canReuse:!0,managed:!0}))),r.startSpan(t,e,n)},e.endSpan=function(t,e){t&&t.end(null,e)},t}(),eI={minInteractionId:1/0,maxInteractionId:0,interactionCount:0,longestInteractions:[]};function ek(t){t.getEntries().forEach(function(t){t.interactionId&&(Q()||(eI.minInteractionId=Math.min(eI.minInteractionId,t.interactionId),eI.maxInteractionId=Math.max(eI.maxInteractionId,t.interactionId),eI.interactionCount=(eI.maxInteractionId-eI.minInteractionId)/7+1),!(t.duration<40)&&!function(t){var e=eI.longestInteractions[eI.longestInteractions.length-1];if(void 0===e||!(t.duration<=e.duration)||t.interactionId==e.id){var n=eI.longestInteractions.filter(function(e){return e.id===t.interactionId});if(n.length>0){var r=n[0];r.duration=Math.max(r.duration,t.duration)}else eI.longestInteractions.push({id:t.interactionId,duration:t.duration});eI.longestInteractions.sort(function(t,e){return e.duration-t.duration}),eI.longestInteractions.splice(10)}}(t))})}function eL(){return performance.interactionCount||eI.interactionCount}function eN(t,e){if(function(t){var e=function(){if(0===eI.longestInteractions.length)return eL()>0?0:void 0;var t=Math.min(eI.longestInteractions.length-1,Math.floor(eL()/50));return eI.longestInteractions[t].duration}();if(e>=0){var n=A(),r=t.startTransaction(to,to,{startTime:n}),i=performance.getEntriesByType("navigation");if(i.length>0){var a=i[0].name;r.addContext({page:{url:a}})}return r.addLabels({inp_value:e}),r.end(n+e+1),eI.minInteractionId=1/0,eI.maxInteractionId=0,eI.interactionCount=0,eI.longestInteractions=[],r}}(e))var n=t.observeEvent(td,function(){eP(t,e),n()});else eP(t,e)}function eP(t,e){var n=e.getCurrentTransaction();if(n){var r=t.observeEvent(th,function(){tD.lastHiddenStart=A(),r(),i()}),i=t.observeEvent(td,function(){t.dispatchEvent(tl),tD.lastHiddenStart=A(),i(),r()});n.end()}else t.dispatchEvent(tl),tD.lastHiddenStart=A()}var ej=function(){function t(t,e){this._disable=e,this.serviceFactory=t,this._initialized=!1}var e=t.prototype;return e.isEnabled=function(){return!this._disable},e.isActive=function(){var t=this.serviceFactory.getService(tI);return this.isEnabled()&&this._initialized&&t.get("active")},e.init=function(t){var e=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var n=this.serviceFactory.getService([tI,tk,tL]),r=n[0],i=n[1],a=n[2];r.setVersion("5.17.5"),this.config(t);var s=r.get("logLevel");if(i.setLevel(s),r.get("active")){this.serviceFactory.init();var o,c,u,f,l,d=(o=r.get("instrument"),c=r.get("disableInstrumentations"),(u={})[tp]=!1,u[tv]=!1,u[tm]=!1,u[te]=!1,u[tb]=!1,u[tg]=!1,u[ty]=!1,o&&Object.keys(u).forEach(function(t){-1===c.indexOf(t)&&(u[t]=!0)}),u);if(this.serviceFactory.getService(tP).init(d),d[tb]&&this.serviceFactory.getService(tj).registerListeners(),r.get("session")){var h=r.getLocalConfig();h&&h.session&&r.setConfig({session:h.session})}var p=function(){return d[te]&&e._sendPageLoadMetrics()};r.get("centralConfig")?this.fetchCentralConfig().then(p):p(),"hidden"===document.visibilityState&&(tD.lastHiddenStart=0),window.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&eN(r,a)},!0),window.addEventListener("pagehide",function(){return eN(r,a)},!0),d[tg]&&d[ty]&&window.addEventListener("click",function(t){var e,n,r,i,s,o,c;t.target instanceof Element&&(s=(e=t.target,(n={transactionName:null,context:null}).transactionName=function(t){var e=function(t){var e="data-transaction-name",n=t.getAttribute(e);if(t.closest){var r=t.closest("a[data-transaction-name], button[data-transaction-name]");return r?r.getAttribute(e):n}return n}(t);if(e)return e;var n=t.tagName.toLowerCase(),r=t.getAttribute("name");return r?n+'["'+r+'"]':n}(e),(r=e.getAttribute("class"))&&(n.context={custom:{classes:r}}),i=n).transactionName,o=i.context,(c=a.startTransaction("Click - "+s,tr,{managed:!0,canReuse:!0,reuseThreshold:300}))&&o&&c.addContext(o))}
1,!0),void 0===f&&(f=new eE(ek)),l=Q(),f.start("event",{buffered:!0,durationThreshold:l?40:16}),l||f.start(tE)}else this._disable=!0,i.warn("RUM agent is inactive")}return this},e.fetchCentralConfig=function(){var t=this.serviceFactory.getService([tN,tk,tI]),e=t[0],n=t[1],r=t[2];return e.fetchConfig(r.get("serviceName"),r.get("environment")).then(function(t){var e=t.transaction_sample_rate;if(e){var i={transactionSampleRate:e=Number(e)},a=r.validate(i).invalid;if(0===a.length)r.setConfig(i);else{var s=a[0],o=s.key,c=s.value,u=s.allowed;n.warn('invalid value "'+c+'" for '+o+". Allowed: "+u+".")}}return t}).catch(function(t){n.warn("failed fetching config:",t)})},e._sendPageLoadMetrics=function(){var t=this.startTransaction(void 0,te,{managed:!0,canReuse:!0});if(t){t.addTask(te);var e=function(){setTimeout(function(){return t.removeTask(te)},1e3)};"complete"===document.readyState?e():window.addEventListener("load",e)}},e.observe=function(t,e){this.serviceFactory.getService(tI).events.observe(t,e)},e.config=function(t){var e=this.serviceFactory.getService([tI,tk]),n=e[0],r=e[1],i=n.validate(t),a=i.missing,s=i.invalid,o=i.unknown;if(o.length>0){var c="Unknown config options are specified for RUM agent: "+o.join(", ");r.warn(c)}if(0===a.length&&0===s.length)n.setConfig(t);else{var u="RUM agent isn't correctly configured. ";a.length>0&&(u+=a.join(", ")+" is missing",s.length>
10&&(u+=", ")),s.forEach(function(t,e){var n=t.key,r=t.value,i=t.allowed;u+=n+' "'+r+'" contains invalid characters! (allowed: '+i+")"+(e!==s.length-1?", ":"")}),r.error(u),n.setConfig({active:!1})}},e.setUserContext=function(t){this.serviceFactory.getService(tI).setUserContext(t)},e.setCustomContext=function(t){this.serviceFactory.getService(tI).setCustomContext(t)},e.addLabels=function(t){this.serviceFactory.getService(tI).addLabels(t)},e.setInitialPageLoadName=function(t){this.serviceFactory.getService(tI).setConfig({pageLoadTransactionName:t})},e.startTransaction=function(t,e,n){if(this.isEnabled())return this.serviceFactory.getService(tL).startTransaction(t,e,n)},e.startSpan=function(t,e,n){if(this.isEnabled())return this.serviceFactory.getService(tL).startSpan(t,e,n)},e.getCurrentTransaction=function(){if(this.isEnabled())return this.serviceFactory.getService(tL).getCurrentTransaction()},e.captureError=function(t,e){if(this.isEnabled())return this.serviceFactory.getService(tj).logError(t,e)},e.addFilter=function(t){this.serviceFactory.getService(tI).addFilter(t)},t}(),eq=function(){if(y&&window.elasticApm)return window.elasticApm;var t=(y&&"function"==typeof Set&&"function"==typeof JSON.stringify&&b&&"function"==typeof b.now&&"withCredentials"in new window.XMLHttpRequest?(tH||(tH=!0,function(t){var e=XMLHttpRequest.prototype;if(e&&e[W])var n="readystatechange",r="load",i="error",a=B(e,"open",function(){return function(t,e){return t[$]||(t[J]=e[0],t[G]=(e[1]||"").toString(),t[K]=!1===e[2]),a.apply(t,e)}}),s=B(e,"send",function(){return function(e,a){if(e[$])return s.apply(e,a);var c={source:tp,state:"",type:"macroTask",data:{target:e,method:e[J],sync:e[K],url:e[G],status:""}};try{return function(e){if(e.state!==X){e.state=X,t(X,e);var a=e.data.target;s(n),s(r),s("timeout"),s(i),s("abort")}function s(t){a[W](t,function(t){var i=t.type;i===n?4===a.readyState&&0!==a.status&&o(e,"success"):o(e,i===r?"success":i)})}}(c),s.apply(e,a)}catch(t){throw o(c,i),t}}});function o(e,n){e.state!==Y&&(e.state=Y,e.data.status=n,t(Y,e))}}(function(t,e){tZ.send(tp,[t,e])}),function(t){if(tM()){var e=window.fetch;window.fetch=function(i,a){var s,o,c=this,u=arguments,f=i instanceof URL;if("string"==typeof i||f)s=new Request(i,a),o=f?s.url:i;else{if(!i)return e.apply(c,u);o=(s=new Request(i,a)).url}var l={source:tv,state:"",type:"macroTask",data:{target:s,method:s.method,url:o,aborted:!1}};return new m(function(i,a){var o;z.fetchInProgress=!0,l.state=X,t(X,l);try{o=e.apply(c,[s])}catch(t){a(t),l.data.error=t,n(l),z.fetchInProgress=!1;return}o.then(function(t){var e=t.clone?t.clone():{};i(t),Z(function(){l.data.response=t;var i,a,s=e.body;s?(i=s.getReader(),(a=function(){i.read().then(function(t){t.done?n(l):a()},function(t){r(l,t)})})()):n(l)})},function(t){a(t),Z(function(){r(l,t)})}),z.fetchInProgress=!1})}}function n(e){e.state=Y,t(Y,e)}function r(t,e){t.data.aborted=e&&"AbortError"===e.name,t.data.error=e,n(t)}}(function(t,e){tZ.send(tv,[t,e])}),function(t){if(window.history){var e=history.pushState;"function"==typeof e&&(history.pushState=function(n,r,i){t(Y,{source:tm,data:{state:n,title:r,url:i}}),e.apply(this,arguments)})}}(function(t,e){tZ.send(tm,[t,e])})),tD.bootstrapTime=A(),tQ=!0):y&&console.log("[Elastic APM] platform is not supported!"),tQ),e=new ej((ed[tL]=function(t){var e=t.getService([tk,tI]);return new eO(e[0],e[1])},ed[tP]=function(t){var e=t.getService([tN,tI,tk,tL]);return new ep(e[0],e[1],e[2],e[3])},ed[tj]=function(t){var e=t.getService([tN,tI,tL]);return new et(e[0],e[1],e[2])},new eh),!t);return y&&(window.elasticApm=e),e}(),eR=eq.init.bind(eq)},75076:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(68309),i=n(22893),a=n(27552);function s(t,e){(0,a.Z)(2,arguments);var n=(0,i.Z)(t),s=(0,r.Z)(e);return isNaN(s)?new Date(NaN):(s&&n.setDate(n.getDate()+s),n)}},3024:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(22893),i=n(27552);function a(t){(0,i.Z)(1,arguments);var e=(0,r.Z)(t);return e.setHours(23,59,59,999),e}},3444:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(22893),i=n(27552);function a(t,e){(0,i.Z)(2,arguments);var n=(0,r.Z)(t),a=(0,r.Z)(e);return n.getTime()>a.getTime()}},49492:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(22893),i=n(27552);function a(t){(0,i.Z)(1,arguments);var e=(0,r.Z)(t);return e.setHours(0,0,0,0),e}},13256:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(75076),i=n(27552),a=n(68309);function s(t,e){(0,i.Z)(2,arguments);var n=(0,a.Z)(e);return(0,r.Z)(t,-n)}},51508:function(t,e,n){var r,i,a;i=[n(67712)],void 0!==(a="function"==typeof(r=function(t){"use strict";
1var e=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;function i(t,e,n){if("function"==typeof Array.prototype.map)return t.map(e,n);for(var r=Array(t.length),i=0;i<t.length;i++)r[i]=e.call(n,t[i]);return r}function a(t,e,n){if("function"==typeof Array.prototype.filter)return t.filter(e,n);for(var r=[],i=0;i<t.length;i++)e.call(n,t[i])&&r.push(t[i]);return r}return{parse:function(t){if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"])return this.parseOpera(t);if(t.stack&&t.stack.match(n))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw Error("Cannot parse given Error object")},extractLocation:function(t){if(-1===t.indexOf(":"))return[t];var e=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(t.replace(/[\(\)]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(e){return i(a(e.stack.split("\n"),function(t){return!!t.match(n)},this),function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop());return new t(n.join(" ")||void 0,void 0,function(t,e){if("function"==typeof Array.prototype.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return -1}(["eval","<anonymous>"],r[0])>-1?void 0:r[0],r[1],r[2],e)},this)},parseFFOrSafari:function(e){return i(a(e.stack.split("\n"),function(t){return!t.match(r)},this),function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t(e);var n=e.split("@"),r=this.extractLocation(n.pop());return new t(n.join("@")||void 0,void 0,r[0],r[1],r[2],e)},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),i=[],a=2,s=r.length;a<s;a+=2){var o=n.exec(r[a]);o&&i.push(new t(void 0,void 0,o[2],o[1],void 0,r[a]))}return i},parseOpera10:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),i=[],a=0,s=r.length;a<s;a+=2){var o=n.exec(r[a]);o&&i.push(new t(o[3]||void 0,void 0,o[2],o[1],void 0,r[a]))}return i},parseOpera11:function(n){return i(a(n.stack.split("\n"),function(t){return!!t.match(e)&&!t.match(/^Error created at/)},this),function(e){var n,r=e.split("@"),i=this.extractLocation(r.pop()),a=r.shift()||"",s=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;return a.match(/\(([^\)]*)\)/)&&(n=a.replace(/^[^\(]+\(([^\)]*)\)$/,"$1")),new t(s,void 0===n||"[arguments not available]"===n?void 0:n.split(","),i[0],i[1],i[2],e)},this)}}})?r.apply(e,i):r)&&(t.exports=a)},72671:function(t,e){"use strict";/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var n=Symbol.for("react.element"),r=(Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),{isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}}),i=Object.assign,a={};function s(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||r}function o(){}function c(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||r}s.prototype.isReactComponent={},s.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},s.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},o.prototype=s.prototype;var u=c.prototype=new o;u.constructor=c,i(u,s.prototype),u.isPureReactComponent=!0;var f=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};e.createElement=function(t,e,r){var i,a={},s=null,o=null;
9if(null!=e)for(i in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(s=""+e.key),e)f.call(e,i)&&!l.hasOwnProperty(i)&&(a[i]=e[i]);var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];a.children=u}if(t&&t.defaultProps)for(i in c=t.defaultProps)void 0===a[i]&&(a[i]=c[i]);return{$$typeof:n,type:t,key:s,ref:o,props:a,_owner:null}}},52846:function(t,e,n){"use strict";t.exports=n(72671)},67712:function(t,e){var n,r;void 0!==(r="function"==typeof(n=function(){"use strict";function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t,e,n,r,i,a){void 0!==t&&this.setFunctionName(t),void 0!==e&&this.setArgs(e),void 0!==n&&this.setFileName(n),void 0!==r&&this.setLineNumber(r),void 0!==i&&this.setColumnNumber(i),void 0!==a&&this.setSource(a)}return e.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(t){this.functionName=String(t)},getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Args must be an Array");this.args=t},getFileName:function(){return this.fileName},setFileName:function(t){this.fileName=String(t)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(e){if(!t(e))throw TypeError("Line Number must be a Number");this.lineNumber=Number(e)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(e){if(!t(e))throw TypeError("Column Number must be a Number");this.columnNumber=Number(e)},getSource:function(){return this.source},setSource:function(t){this.source=String(t)},toString:function(){return(this.getFunctionName()||"{anonymous}")+"("+(this.getArgs()||[]).join(",")+")"+(this.getFileName()?"@"+this.getFileName():"")+(t(this.getLineNumber())?":"+this.getLineNumber():"")+(t(this.getColumnNumber())?":"+this.getColumnNumber():"")}},e})?n.apply(e,[]):n)&&(t.exports=r)},10023:function(t,e,n){"use strict";n.d(e,{S:function(){return m}});var r=n(46063),i=n(4668),a=n(45139),s=n(44614),o=class extends s.l{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,n){let a=e.queryKey,s=e.queryHash??(0,r.Rm)(a,e),o=this.get(s);return o||(o=new i.A({cache:this,queryKey:a,queryHash:s,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#t.get(t.queryHash);
9e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){a.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,r._x)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,r._x)(t,e)):e}notify(t){a.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},c=n(2041),u=n(90326),f=class extends c.F{#e;#n;#r;constructor(t){super(),this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){this.#r=(0,u.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#i({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let e="pending"===this.state.status,n=!this.#r.canStart();try{if(!e){this.#i({type:"pending",variables:t,isPaused:n}),await this.#n.config.onMutate?.(t,this);let e=await this.options.onMutate?.(t);e!==this.state.context&&this.#i({type:"pending",context:e,variables:t,isPaused:n})}let r=await this.#r.start();return await this.#n.config.onSuccess?.(r,t,this.state.context,this),await this.options.onSuccess?.(r,t,this.state.context),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,t,this.state.context),this.#i({type:"success",data:r}),r}catch(e){try{throw await this.#n.config.onError?.(e,t,this.state.context,this),await this.options.onError?.(e,t,this.state.context),await this.#n.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,e,t,this.state.context),e}finally{this.#i({type:"error",error:e})}}finally{this.#n.runNext(this)}}#i(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),a.V.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}},l=class extends s.l{constructor(t={}){super(),this.config=t,this.#a=new Map,this.#s=Date.now()}#a;#s;build(t,e,n){let r=new f({mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){let e=d(t),n=this.#a.get(e)??[];n.push(t),this.#a.set(e,n),this.notify({type:"added",mutation:t})}remove(t){let e=d(t);if(this.#a.has(e)){let n=this.#a.get(e)?.filter(e=>e!==t);n&&(0===n.length?this.#a.delete(e):this.#a.set(e,n))}this.notify({type:"removed",mutation:t})}canRun(t){let e=this.#a.get(d(t))?.find(t=>"pending"===t.state.status);return!e||e===t}runNext(t){let e=this.#a.get(d(t))?.find(e=>
9e!==t&&e.state.isPaused);return e?.continue()??Promise.resolve()}clear(){a.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...this.#a.values()].flat()}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,r.X7)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,r.X7)(t,e))}notify(t){a.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return a.V.batch(()=>Promise.all(t.map(t=>t.continue().catch(r.ZT))))}};function d(t){return t.options.scope?.id??String(t.mutationId)}var h=n(79555),p=n(17211);function v(t,{pages:e,pageParams:n}){let r=e.length-1;return t.getNextPageParam(e[r],e,n[r],n)}var m=class{#o;#n;#c;#u;#f;#l;#d;#h;constructor(t={}){this.#o=t.queryCache||new o,this.#n=t.mutationCache||new l,this.#c=t.defaultOptions||{},this.#u=new Map,this.#f=new Map,this.#l=0}mount(){this.#l++,1===this.#l&&(this.#d=h.j.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#o.onFocus())}),this.#h=p.N.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#o.onOnline())}))}unmount(){this.#l--,0===this.#l&&(this.#d?.(),this.#d=void 0,this.#h?.(),this.#h=void 0)}isFetching(t){return this.#o.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#n.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#o.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.getQueryData(t.queryKey);if(void 0===e)return this.fetchQuery(t);{let n=this.defaultQueryOptions(t),i=this.#o.build(this,n);return t.revalidateIfStale&&i.isStaleByTime((0,r.KC)(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return this.#o.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,n){let i=this.defaultQueryOptions({queryKey:t}),a=this.#o.get(i.queryHash),s=a?.state.data,o=(0,r.SE)(e,s);if(void 0!==o)return this.#o.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return a.V.batch(()=>this.#o.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,n)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#o.get(e.queryHash)?.state}removeQueries(t){let e=this.#o;a.V.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let n=this.#o,r={type:"active",...t};return a.V.batch(()=>(n.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(r,e)))}cancelQueries(t={},e={}){let n={revert:!0,...e};return Promise.all(a.V.batch(()=>this.#o.findAll(t).map(t=>t.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(t={},e={}){return a.V.batch(()=>{if(this.#o.findAll(t).forEach(t=>{t.invalidate()}),"none"===t.refetchType)return Promise.resolve();let n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){let n={...e,cancelRefetch:e?.cancelRefetch??!0};return Promise.all(a.V.batch(()=>this.#o.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(r.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(r.ZT)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let n=this.#o.build(this,e);return n.isStaleByTime((0,r.KC)(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(t){var e;return t.behavior=(e=t.pages,{onFetch:(t,n)=>{let i=async()=>{let n;let i=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],o=t.state.data?.pageParams||[],c=!1,u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},f=(0,r.cG)(t.options,t.fetchOptions),l=async(e,n,i)=>{if(c)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let a={queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};u(a);let s=await f(a),{maxPages:o}=t.options,l=i?r.Ht:r.VX;return{pages:l(e.pages,s,o),pageParams:l(e.pageParams,n,o)}};if(a&&s.length){let t="backward"===a,e={pages:s,pageParams:o},r=(t?function(t,{pages:e,pageParams:n}){return t.getPreviousPageParam?.(e[0],e,n[0],n)}:v)(i,e);n=await l(e,r,t)}else{n=await l({pages:[],pageParams:[]},o[0]??i.initialPageParam);let t=e??s.length;for(let e=1;e<t;e++){let t=v(i,n);n=await l(n,t)}}return n};t.options.persister?t.fetchFn=()=>t.options.persister?.(i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=i}}),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return p.N.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#o}getMutationCache(){return this.#n}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#u.set((0,r.Ym)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#u.values()],n={};
9return e.forEach(e=>{(0,r.to)(t,e.queryKey)&&(n={...n,...e.defaultOptions})}),n}setMutationDefaults(t,e){this.#f.set((0,r.Ym)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#f.values()],n={};return e.forEach(e=>{(0,r.to)(t,e.mutationKey)&&(n={...n,...e.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,r.Rm)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),!0!==e.enabled&&e.queryFn===r.CN&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#o.clear(),this.#n.clear()}}},73617:function(t,e,n){"use strict";n.d(e,{t:function(){return r}});var r=function(){return null}}}]);
10//# sourceMappingURL=7973-0c1286b2b276c3f8.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.