@its/core 1.1.37 → 2.0.0
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.
- package/dist/core.es.js +1 -1
- package/dist/core.umd.js +1 -1
- package/dist/src/components/Lists/ListItem.d.ts.map +1 -1
- package/dist/src/components/Lists/index.d.ts +1 -0
- package/dist/src/components/Lists/index.d.ts.map +1 -1
- package/dist/src/relay/RelayEnvironmentProvider.d.ts.map +1 -1
- package/dist/types/src/components/Lists/ListItem.d.ts +1 -1
- package/dist/types/src/components/Lists/ListItem.d.ts.map +1 -1
- package/dist/types/src/components/Lists/index.d.ts +1 -0
- package/dist/types/src/components/Lists/index.d.ts.map +1 -1
- package/dist/types/src/relay/RelayEnvironmentProvider.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/core.es.js
CHANGED
|
@@ -44206,7 +44206,7 @@ function jSe(e) {
|
|
|
44206
44206
|
}
|
|
44207
44207
|
function o9e({ children: e }) {
|
|
44208
44208
|
const t = n2(), n = jSe(t);
|
|
44209
|
-
return
|
|
44209
|
+
return /* @__PURE__ */ w.jsx(nH, { environment: n, children: e });
|
|
44210
44210
|
}
|
|
44211
44211
|
const s9e = (e, t, n) => {
|
|
44212
44212
|
const r = [];
|
package/dist/core.umd.js
CHANGED
|
@@ -220,7 +220,7 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var se=Te(we,pe,ie,re,ve
|
|
|
220
220
|
C268.103,7.763,253.549,0,236.836,0c-3.938,0-7.872,0.101-11.817,0.292c-11.649,0.583-23.073,2.016-34.225,4.215v191.531\r
|
|
221
221
|
L66.808,72.055c-7.618,7.861-14.704,16.237-21.189,25.089l79.313,79.313l20.291,20.284H3.448C1.227,209.784,0,223.164,0,236.844\r
|
|
222
222
|
c0,17.034,1.84,33.626,5.25,49.643h184.834L70.847,405.724c7.808,7.67,16.121,14.813,24.921,21.349l95.023-95.023v137.116\r
|
|
223
|
-
c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function cme({size:e=24,color:t="currentColor"}){return w.jsx(ae.SvgIcon,{children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:w.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:fme,forEach:dme}=[];function hme(e){return dme.call(fme.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function pme(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const XD=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gme=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!XD.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!XD.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},ZD={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=gme(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var vme={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return ZD.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&ZD.create(n,e,r,i,o)}},mme={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let a=0;a<o.length;a++){const s=o[a].indexOf("=");s>0&&o[a].substring(0,s)===t&&(n=o[a].substring(s+1))}}return n}},yme={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const a=o.split("&");for(let s=0;s<a.length;s++){const u=a[s].indexOf("=");u>0&&a[s].substring(0,u)===t&&(r=a[s].substring(u+1))}}if(r)return r;if(!r&&n>-1){const a=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Tc=null;const JD=()=>{if(Tc!==null)return Tc;try{if(Tc=typeof window<"u"&&window.localStorage!==null,!Tc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Tc=!1}return Tc};var bme={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&JD())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&JD()&&window.localStorage.setItem(n,e)}};let Oc=null;const QD=()=>{if(Oc!==null)return Oc;try{if(Oc=typeof window<"u"&&window.sessionStorage!==null,!Oc)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Oc=!1}return Oc};var wme={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&QD())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&QD()&&window.sessionStorage.setItem(n,e)}},_me={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},xme={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Eme={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},Sme={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let eR=!1;try{document.cookie,eR=!0}catch{}const tR=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];eR||tR.splice(1,1);const Ame=()=>({order:tR,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class nR{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=hme(n,this.options||{},Ame()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(vme),this.addDetector(mme),this.addDetector(bme),this.addDetector(wme),this.addDetector(_me),this.addDetector(xme),this.addDetector(Eme),this.addDetector(Sme),this.addDetector(yme)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!pme(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}nR.type="languageDetector";const Tme=e=>{let t={};for(const r of Object.keys(e)){const i=r.match(/\w+\.json/);if(i){const o=i[0]?.split(".")[0];t={...t,[o]:{translation:e[r]}}}}const n=Object.keys(t);return $s.use(nR).use(St.initReactI18next).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:n,missingKeyHandler:function(r,i,o){console.warn(`MISSING TRANSLATION: [${r}] ${i}:${o}`)}}),$s};function rR({children:e}){return w.jsx(mn,{paddingBottom:"16px",gap:"8px",children:e})}function iR({children:e}){return w.jsx(Yc,{mt:"auto",mb:"auto",width:"100%",children:w.jsx(ae.Paper,{sx:{width:"100%"},children:w.jsx(mn,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function oR({tabValue:e,columnValues:t,columnWidths:n}){const{t:r}=St.useTranslation();return w.jsx(ae.Paper,{sx:{display:"grid",gridTemplateColumns:n?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,o)=>w.jsx(ae.Typography,{children:w.jsx("b",{children:r(i)})},o))})}function Ome({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:n,SecondTabContent:r,ThirdTabContent:i,tabValue:o,columnValues:a,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:l,ThirdTabNearbyContent:c}){return w.jsxs(Bs,{gap:"16px",children:[w.jsx(iR,{children:e}),w.jsxs(Wm,{gap:"16px",children:[w.jsxs(ae.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset",maxWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset"},children:[w.jsx(rR,{children:t}),w.jsxs(Bs,{children:[w.jsx(oR,{columnValues:a,columnWidths:s,tabValue:o}),w.jsx(ae.Divider,{sx:{marginBottom:"16px"}}),w.jsxs(Bs,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[o===0?w.jsx(n,{}):null,o===1?w.jsx(r,{}):null,o===2&&i?w.jsx(i,{}):null]})]})]}),o===0&&u?w.jsx(ae.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,o===1&&l?w.jsx(ae.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null,o===2&&c?w.jsx(ae.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null]})]})}function Pme({children:e,position:t}){return w.jsx(IA.SnackbarProvider,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:qd,info:qd,success:qd,error:qd,warning:qd},children:e})}const po={};function Cme(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=po.resolve(n),o=po.basename(i);if(!r.includes(t))return po.resolve(e,"graphQL","__generated__",`${o}.ts`);const a=po.resolve(__dirname,".."),s=r.slice(a.length).split("/")[1];return po.resolve(a,s,"__generated__",`${o}.ts`)}return null}}}function jme(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=po.resolve(n),o=po.basename(i),a=po.resolve(e,".."),s=po.resolve(a,t,"__generated__",`${o}.ts`);return console.log("corepath",t),console.log("reporoot",a),console.log("fileproject",s),console.log("importer",r),r.includes(t)?po.resolve(a,t,"__generated__",`${o}.ts`):po.resolve(e,"graphQL","__generated__",`${o}.ts`)}return null}}}var Mme=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Nu="1.9.0",aR=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function kme(e){var t=new Set([e]),n=new Set,r=e.match(aR);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function o(s){return n.add(s),!1}function a(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var l=u.match(aR);if(!l)return o(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?o(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?a(u):o(u):i.minor<=c.minor?a(u):o(u)}}var Ime=kme(Nu),Dme=Nu.split(".")[0],Vd=Symbol.for("opentelemetry.js.api."+Dme),Ud=Mme;function Hd(e,t,n,r){var i;r===void 0&&(r=!1);var o=Ud[Vd]=(i=Ud[Vd])!==null&&i!==void 0?i:{version:Nu};if(!r&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}if(o.version!==Nu){var a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+Nu);return n.error(a.stack||a.message),!1}return o[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Nu+"."),!0}function Lu(e){var t,n,r=(t=Ud[Vd])===null||t===void 0?void 0:t.version;if(!(!r||!Ime(r)))return(n=Ud[Vd])===null||n===void 0?void 0:n[e]}function Gd(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Nu+".");var n=Ud[Vd];n&&delete n[e]}var Rme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Nme=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Lme=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("verbose",this._namespace,t)},e}();function Kd(e,t,n){var r=Lu("diag");if(r)return n.unshift(t),r[e].apply(r,Nme([],Rme(n),!1))}var Si;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Si||(Si={}));function $me(e,t){e<Si.NONE?e=Si.NONE:e>Si.ALL&&(e=Si.ALL),t=t||{};function n(r,i){var o=t[r];return typeof o=="function"&&e>=i?o.bind(t):function(){}}return{error:n("error",Si.ERROR),warn:n("warn",Si.WARN),info:n("info",Si.INFO),debug:n("debug",Si.DEBUG),verbose:n("verbose",Si.VERBOSE)}}var Bme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},zme=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Fme="diag",Ho=function(){function e(){function t(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=Lu("diag");if(s)return s[i].apply(s,zme([],Bme(o),!1))}}var n=this,r=function(i,o){var a,s,u;if(o===void 0&&(o={logLevel:Si.INFO}),i===n){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=l.stack)!==null&&a!==void 0?a:l.message),!1}typeof o=="number"&&(o={logLevel:o});var c=Lu("diag"),d=$me((s=o.logLevel)!==null&&s!==void 0?s:Si.INFO,i);if(c&&!o.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return Hd("diag",d,n,!0)};n.setLogger=r,n.disable=function(){Gd(Fme,n)},n.createComponentLogger=function(i){return new Lme(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),Wme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},qme=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Vme=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=Wme(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=qme(r),s=a.next();!s.done;s=a.next()){var u=s.value;o._entries.delete(u)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}(),Ume=Symbol("BaggageEntryMetadata"),Hme=Ho.instance();function Gme(e){return e===void 0&&(e={}),new Vme(new Map(Object.entries(e)))}function Kme(e){return typeof e!="string"&&(Hme.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Ume,toString:function(){return e}}}function zE(e){return Symbol.for(e)}var Yme=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new e(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),ka=new Yme,$u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xme=function(){function e(){}return e.prototype.createGauge=function(t,n){return aye},e.prototype.createHistogram=function(t,n){return sye},e.prototype.createCounter=function(t,n){return oye},e.prototype.createUpDownCounter=function(t,n){return uye},e.prototype.createObservableGauge=function(t,n){return cye},e.prototype.createObservableCounter=function(t,n){return lye},e.prototype.createObservableUpDownCounter=function(t,n){return fye},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),R0=function(){function e(){}return e}(),Zme=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(R0),Jme=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(R0),Qme=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(R0),eye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(R0),FE=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),tye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FE),nye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FE),rye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FE),iye=new Xme,oye=new Zme,aye=new Qme,sye=new eye,uye=new Jme,lye=new tye,cye=new nye,fye=new rye,dye={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},hye={set:function(e,t,n){e!=null&&(e[t]=n)}},pye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},gye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},vye=function(){function e(){}return e.prototype.active=function(){return ka},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,gye([r],pye(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),mye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},yye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},WE="context",bye=new vye,N0=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Hd(WE,t,Ho.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,yye([t,n,r],mye(o),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return Lu(WE)||bye},e.prototype.disable=function(){this._getContextManager().disable(),Gd(WE,Ho.instance())},e}(),Ia;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ia||(Ia={}));var sR="0000000000000000",uR="00000000000000000000000000000000",lR={traceId:uR,spanId:sR,traceFlags:Ia.NONE},Yd=function(){function e(t){t===void 0&&(t=lR),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),qE=zE("OpenTelemetry Context Key SPAN");function VE(e){return e.getValue(qE)||void 0}function wye(){return VE(N0.getInstance().active())}function UE(e,t){return e.setValue(qE,t)}function _ye(e){return e.deleteValue(qE)}function xye(e,t){return UE(e,new Yd(t))}function cR(e){var t;return(t=VE(e))===null||t===void 0?void 0:t.spanContext()}var Eye=/^([0-9a-f]{32})$/i,Sye=/^[0-9a-f]{16}$/i;function fR(e){return Eye.test(e)&&e!==uR}function Aye(e){return Sye.test(e)&&e!==sR}function L0(e){return fR(e.traceId)&&Aye(e.spanId)}function Tye(e){return new Yd(e)}var HE=N0.getInstance(),dR=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=HE.active());var i=!!n?.root;if(i)return new Yd;var o=r&&cR(r);return Oye(o)&&L0(o)?new Yd(o):new Yd},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var u=a??HE.active(),l=this.startSpan(t,o,u),c=UE(u,l);return HE.with(c,s,void 0,l)}},e}();function Oye(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Pye=new dR,Cye=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Pye},e}(),jye=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new dR},e}(),Mye=new jye,hR=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new Cye(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Mye},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),$0;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})($0||($0={}));var B0;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(B0||(B0={}));var Bu;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Bu||(Bu={}));var fr=N0.getInstance(),Wt=Ho.instance(),kye=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return iye},e}(),Iye=new kye,GE="metrics",Dye=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Hd(GE,t,Ho.instance())},e.prototype.getMeterProvider=function(){return Lu(GE)||Iye},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){Gd(GE,Ho.instance())},e}(),pR=Dye.getInstance(),Rye=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),KE=zE("OpenTelemetry Baggage Key");function gR(e){return e.getValue(KE)||void 0}function Nye(){return gR(N0.getInstance().active())}function Lye(e,t){return e.setValue(KE,t)}function $ye(e){return e.deleteValue(KE)}var YE="propagation",Bye=new Rye,zye=function(){function e(){this.createBaggage=Gme,this.getBaggage=gR,this.getActiveBaggage=Nye,this.setBaggage=Lye,this.deleteBaggage=$ye}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Hd(YE,t,Ho.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=hye),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=dye),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Gd(YE,Ho.instance())},e.prototype._getGlobalPropagator=function(){return Lu(YE)||Bye},e}(),Go=zye.getInstance(),XE="trace",Fye=function(){function e(){this._proxyTracerProvider=new hR,this.wrapSpanContext=Tye,this.isSpanContextValid=L0,this.deleteSpan=_ye,this.getSpan=VE,this.getActiveSpan=wye,this.getSpanContext=cR,this.setSpan=UE,this.setSpanContext=xye}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Hd(XE,this._proxyTracerProvider,Ho.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return Lu(XE)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Gd(XE,Ho.instance()),this._proxyTracerProvider=new hR},e}(),Wr=Fye.getInstance();function si(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function zu(e){return si(e)==="object"}function Wye(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function vR(e,t){return e.length<124?e:t}const qye="graphql-transport-ws";var Gi=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Gi||{}),Ki=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Ki||{});function mR(e){if(!zu(e))throw new Error(`Message is expected to be an object, but got ${si(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${si(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!zu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!zu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${si(e.payload.query)}`);if(e.payload.variables!=null&&!zu(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${si(e.payload.variables)}`);if(e.payload.operationName!=null&&si(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${si(e.payload.operationName)}`);if(e.payload.extensions!=null&&!zu(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${si(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!zu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Wye(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function Vye(e,t){return mR(typeof e=="string"?JSON.parse(e,t):e)}function Xd(e,t){return mR(e),JSON.stringify(e,t)}function Uye(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:l=5,retryWait:c=async function($){const N=Math.pow(2,$);await new Promise(V=>setTimeout(V,N*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=ZE,on:h,webSocketImpl:g,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,$=>{const N=Math.random()*16|0;return($=="x"?N:N&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:m}=e;let b;if(g){if(!Gye(g))throw new Error("Invalid WebSocket implementation provided");b=g}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=b,E=(()=>{const j=(()=>{const N={};return{on(V,Z){return N[V]=Z,()=>{delete N[V]}},emit(V){"id"in V&&N[V.id]?.(V)}}})(),$={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[j.emit,h.message]:[j.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:j.on,on(N,V){const Z=$[N];return Z.push(V),()=>{Z.splice(Z.indexOf(V),1)}},emit(N,...V){for(const Z of[...$[N]])Z(...V)}}})();function S(j){const $=[E.on("error",N=>{$.forEach(V=>V()),j(N)}),E.on("closed",N=>{$.forEach(V=>V()),j(N)})]}let A,O=0,P,k=!1,z=0,F=!1;async function D(){clearTimeout(P);const[j,$]=await(A??(A=new Promise((Z,Y)=>(async()=>{if(k){if(await c(z),!O)return A=void 0,Y({code:1e3,reason:"All Subscriptions Gone"});z++}E.emit("connecting",k);const C=new x(typeof t=="function"?await t():t,qye);let L,H;function K(){isFinite(a)&&a>0&&(clearTimeout(H),H=setTimeout(()=>{C.readyState===x.OPEN&&(C.send(Xd({type:Ki.Ping})),E.emit("ping",!1,void 0))},a))}S(re=>{A=void 0,clearTimeout(L),clearTimeout(H),Y(re),re instanceof yR&&(C.close(4499,"Terminated"),C.onerror=null,C.onclose=null)}),C.onerror=re=>E.emit("error",re),C.onclose=re=>E.emit("closed",re),C.onopen=async()=>{try{E.emit("opened",C);const re=typeof n=="function"?await n():n;if(C.readyState!==x.OPEN)return;C.send(Xd(re?{type:Ki.ConnectionInit,payload:re}:{type:Ki.ConnectionInit},v)),isFinite(u)&&u>0&&(L=setTimeout(()=>{C.close(Gi.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),K()}catch(re){E.emit("error",re),C.close(Gi.InternalClientError,vR(re instanceof Error?re.message:String(re),"Internal client error"))}};let ie=!1;C.onmessage=({data:re})=>{try{const ve=Vye(re,m);if(E.emit("message",ve),ve.type==="ping"||ve.type==="pong"){E.emit(ve.type,!0,ve.payload),ve.type==="pong"?K():s||(C.send(Xd(ve.payload?{type:Ki.Pong,payload:ve.payload}:{type:Ki.Pong})),E.emit("pong",!1,ve.payload));return}if(ie)return;if(ve.type!==Ki.ConnectionAck)throw new Error(`First message cannot be of type ${ve.type}`);clearTimeout(L),ie=!0,E.emit("connected",C,ve.payload,k),k=!1,z=0,Z([C,new Promise((we,me)=>S(me))])}catch(ve){C.onmessage=null,E.emit("error",ve),C.close(Gi.BadResponse,vR(ve instanceof Error?ve.message:String(ve),"Bad response"))}}})())));j.readyState===x.CLOSING&&await $;let N=()=>{};const V=new Promise(Z=>N=Z);return[j,N,Promise.race([V.then(()=>{if(!O){const Z=()=>j.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{j.readyState===x.OPEN&&Z()},o):Z()}}),$])]}function U(j){if(ZE(j)&&(Hye(j.code)||[Gi.InternalServerError,Gi.InternalClientError,Gi.BadRequest,Gi.BadResponse,Gi.Unauthorized,Gi.SubprotocolNotAcceptable,Gi.SubscriberAlreadyExists,Gi.TooManyInitialisationRequests].includes(j.code)))throw j;if(F)return!1;if(ZE(j)&&j.code===1e3)return O>0;if(!l||z>=l||!d(j))throw j;return k=!0}r||(async()=>{for(O++;;)try{const[,,j]=await D();await j}catch(j){try{if(!U(j))return}catch($){return i?.($)}}})();function R(j,$){const N=y(j);let V=!1,Z=!1,Y=()=>{O--,V=!0};return(async()=>{for(O++;;)try{const[C,L,H]=await D();if(V)return L();const K=E.onMessage(N,ie=>{switch(ie.type){case Ki.Next:{$.next(ie.payload);return}case Ki.Error:{Z=!0,V=!0,$.error(ie.payload),Y();return}case Ki.Complete:{V=!0,Y();return}}});C.send(Xd({id:N,type:Ki.Subscribe,payload:j},v)),Y=()=>{!V&&C.readyState===x.OPEN&&C.send(Xd({id:N,type:Ki.Complete},v)),O--,V=!0,L()},await H.finally(K);return}catch(C){if(!U(C))return}})().then(()=>{Z||$.complete()}).catch(C=>{$.error(C)}),()=>{V||Y()}}return{on:E.on,subscribe:R,iterate(j){const $=[],N={done:!1,error:null,resolve:()=>{}},V=R(j,{next(Y){$.push(Y),N.resolve()},error(Y){N.done=!0,N.error=Y,N.resolve()},complete(){N.done=!0,N.resolve()}}),Z=async function*(){for(;;){for($.length||await new Promise(C=>N.resolve=C);$.length;)yield $.shift();if(N.error)throw N.error;if(N.done)return}}();return Z.throw=async Y=>(N.done||(N.done=!0,N.error=Y,N.resolve()),{done:!0,value:void 0}),Z.return=async()=>(V(),{done:!0,value:void 0}),Z},async dispose(){if(F=!0,A){const[j]=await A;j.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new yR)}}}class yR extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function ZE(e){return zu(e)&&"code"in e&&"reason"in e}function Hye(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function Gye(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const Kye=e=>Uye({url:e.API_URL}),Yye=(e,t,n)=>tl.Observable.create(r=>Kye(n).subscribe({operationName:e.name,query:e.text,variables:t},r)),Xye=(e,t,n)=>tl.Observable.from(fr.with(fr.active(),()=>{const r=Wr.getTracer("RelayNetwork").startSpan("GraphQL fetch");r.setAttribute("variables",JSON.stringify(t)),r.setAttribute("path",e.name);const i=r.spanContext();return fetch(n.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":n.AUTH_SCHEMA,...n.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...n.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(o=>o.json().then(a=>(a.errors?(r.setStatus({code:Bu.ERROR}),r.recordException(JSON.stringify(a.errors))):r.setStatus({code:Bu.OK}),a))).catch(o=>{r.setStatus({code:Bu.ERROR}),r.recordException(JSON.stringify(o))}).finally(()=>r.end())})),Zye=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function bR(e){return new tl.Environment({network:tl.Network.create((t,n)=>Xye(t,n,e),(t,n)=>Yye(t,n,e)),store:new tl.Store(new tl.RecordSource),getDataID:Zye})}function Jye({children:e}){const t=Rh(),n=bR(t);return console.log("RelayEnvironment config:",t),console.log("RelayEnvironment environment:",n),w.jsx(PA.RelayEnvironmentProvider,{environment:n,children:e})}const Qye=(e,t,n)=>{const r=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i],a=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!a)continue;const s=a[1],u=Object.keys(t).find(b=>b.includes(`${s}/loader.ts`)),l=Object.keys(n).find(b=>b.includes(`${s}/action.ts`)),c=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),d=s==="index"?"/":`${c.toLowerCase()}`,h=M.lazy(o),g=M.lazy(async()=>({default:(await o()).icon||oB})),y=u?t[u].default:void 0,v=l?n[l].default:void 0,m={id:d,Icon:g,name:c,path:d,element:w.jsx(M.Suspense,{fallback:w.jsx(Ih,{}),children:w.jsx(h,{})}),...u?{loader:y}:{},...l?{action:v}:{}};r.push(m)}return r};var wR=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(wR||{});const e1e={createState:e=>{const t=DA.atom(e),n=DA.getDefaultStore();return{get:()=>n.get(t),set:r=>n.set(t,r),subscribe:r=>{const i=()=>{const o=n.get(t);r(o)};return n.sub(t,i)}}},type:"jotaiAdapter"};function t1e(){return{createState:e=>{const t=Hc.atom({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Hc.useRecoilValue(t)),set:o=>{console.log("Setting value to Recoil atom"),Hc.useSetRecoilState(t)(o)},subscribe:o=>(console.log("Subscribing to Recoil atom"),Hc.useRecoilCallback(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;o(u)}))}},type:"recoilAdapter"}}function _R(){return M.createContext([!1,{}])}function n1e({timer:e,children:t}){const n=qA(e),r=_R();return w.jsx(r.Provider,{value:n,children:t})}const xR={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:{MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:aB}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},typography:{fontFamily:"Manrope"}},r1e={light:e=>RA.deepmerge({...xR,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>RA.deepmerge({...xR,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function i1e({children:e,theme:t}){const[n]=al();return w.jsx(ae.ThemeProvider,{theme:ae.createTheme(r1e[n](t)),children:e})}const o1e=(e,t,n)=>{if(!Sc(e))return;const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()+t);break;case"seconds":r.setSeconds(r.getSeconds()+t);break;case"minutes":r.setMinutes(r.getMinutes()+t);break;case"hours":r.setHours(r.getHours()+t);break;case"days":r.setDate(r.getDate()+t);break;case"weeks":r.setDate(r.getDate()+t*7);break;case"months":r.setMonth(r.getMonth()+t);break;case"years":r.setFullYear(r.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r};var ER=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(ER||{});const a1e=(e,t,n="milliseconds")=>{if(!Sc(e)||!Sc(t))return;const r=new Date(e).getTime();return(new Date(t).getTime()-r)/ER[n]},s1e=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",n?`${n}h`:"",r?`${r}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},u1e=(e,t,n)=>{if(!Sc(e))throw new Error("Invalid Date");const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()-t);break;case"seconds":r.setSeconds(r.getSeconds()-t);break;case"minutes":r.setMinutes(r.getMinutes()-t);break;case"hours":r.setHours(r.getHours()-t);break;case"days":r.setDate(r.getDate()-t);break;case"weeks":r.setDate(r.getDate()-t*7);break;case"months":r.setMonth(r.getMonth()-t);break;case"years":r.setFullYear(r.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r},l1e=(e,t)=>e<=1?12:Math.floor(12/t),c1e=(e,t)=>(e&t)===t;function f1e(e){const t={};function n(r){Object.prototype.hasOwnProperty.call(r,"edges")&&(t.edges=r.edges);for(const i in r)typeof r[i]=="object"&&r[i]!==null&&n(r[i])}return n(e),t}const d1e=(e,t)=>{if(e==null)return 0;if(isNaN(e))return e;const n=[...Array(t)].reduce(r=>r+"0",".");return e.toFixed(t).toString().replace(n,"")},SR=zE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function h1e(e){return e.setValue(SR,!0)}function JE(e){return e.getValue(SR)===!0}const p1e="=",QE=";",eS=",",tS="baggage",g1e=180,v1e=4096,m1e=8192;function y1e(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?eS:""}${n}`;return r.length>m1e?t:r},"")}function b1e(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=QE+n.metadata.toString()),r})}function w1e(e){const t=e.split(QE);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(p1e);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let a;return t.length>0&&(a=Kme(t.join(QE))),{key:i,value:o,metadata:a}}class _1e{inject(t,n,r){const i=Go.getBaggage(t);if(!i||JE(t))return;const o=b1e(i).filter(s=>s.length<=v1e).slice(0,g1e),a=y1e(o);a.length>0&&r.set(n,tS,a)}extract(t,n,r){const i=r.get(n,tS),o=Array.isArray(i)?i.join(eS):i;if(!o)return t;const a={};return o.length===0||(o.split(eS).forEach(u=>{const l=w1e(u);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c}}),Object.entries(a).length===0)?t:Go.setBaggage(t,Go.createBaggage(a))}fields(){return[tS]}}function z0(e){const t={};if(typeof e!="object"||e==null)return t;for(const[n,r]of Object.entries(e)){if(!x1e(n)){Wt.warn(`Invalid attribute key: ${n}`);continue}if(!AR(r)){Wt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function x1e(e){return typeof e=="string"&&e.length>0}function AR(e){return e==null?!0:Array.isArray(e)?E1e(e):TR(e)}function E1e(e){let t;for(const n of e)if(n!=null){if(!t){if(TR(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function TR(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function S1e(){return e=>{Wt.error(A1e(e))}}function A1e(e){return typeof e=="string"?e:JSON.stringify(T1e(e))}function T1e(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let O1e=S1e();function nS(e){try{O1e(e)}catch{}}function jOe(e){}const rS=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Pc=performance,P1e="2.0.1",C1e="error.type",iS="exception.message",j1e="exception.stacktrace",oS="exception.type",M1e="http.request.method",k1e="http.request.method_original",I1e="http.response.status_code",D1e="server.address",R1e="server.port",OR="service.name",aS="telemetry.sdk.language",N1e="webjs",sS="telemetry.sdk.name",uS="telemetry.sdk.version",L1e="url.full",$1e="process.runtime.name",lS={[sS]:"opentelemetry",[$1e]:"browser",[aS]:N1e,[uS]:P1e},B1e=9,z1e=Math.pow(10,6),F0=Math.pow(10,B1e);function Da(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*z1e);return[n,r]}function cS(){let e=Pc.timeOrigin;if(typeof e!="number"){const t=Pc;e=t.timing&&t.timing.fetchStart}return e}function W0(e){const t=Da(cS()),n=Da(typeof e=="number"?e:Pc.now());return jR(t,n)}function Zd(e){if(fS(e))return e;if(typeof e=="number")return e<cS()?W0(e):Da(e);if(e instanceof Date)return Da(e.getTime());throw TypeError("Invalid input type")}function F1e(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=F0),[n,r]}function Ra(e){return e[0]*F0+e[1]}function PR(e){return e[0]*1e6+e[1]/1e3}function fS(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function CR(e){return fS(e)||typeof e=="number"||e instanceof Date}function jR(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=F0&&(n[1]-=F0,n[0]+=1),n}var go;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(go||(go={}));class W1e{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(o){Wt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(t,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(a){Wt.warn(`Failed to extract with ${o.constructor.name}. Err: ${a.message}`)}return i},t)}fields(){return this._fields.slice()}}const dS="[_0-9a-z-*/]",q1e=`[a-z]${dS}{0,255}`,V1e=`[a-z0-9]${dS}{0,240}@[a-z]${dS}{0,13}`,U1e=new RegExp(`^(?:${q1e}|${V1e})$`),H1e=/^[ -~]{0,255}[!-~]$/,G1e=/,|=/;function K1e(e){return U1e.test(e)}function Y1e(e){return H1e.test(e)&&!G1e.test(e)}const MR=32,X1e=512,kR=",",IR="=";class hS{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+IR+this.get(n)),t),[]).join(kR)}_parse(t){t.length>X1e||(this._internalState=t.split(kR).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(IR);if(o!==-1){const a=i.slice(0,o),s=i.slice(o+1,r.length);K1e(a)&&Y1e(s)&&n.set(a,s)}return n},new Map),this._internalState.size>MR&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MR))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new hS;return t._internalState=new Map(this._internalState),t}}const pS="traceparent",gS="tracestate",Z1e="00",J1e="(?!ff)[\\da-f]{2}",Q1e="(?![0]{32})[\\da-f]{32}",ebe="(?![0]{16})[\\da-f]{16}",tbe="[\\da-f]{2}",nbe=new RegExp(`^\\s?(${J1e})-(${Q1e})-(${ebe})-(${tbe})(-.*)?\\s?$`);function rbe(e){const t=nbe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class ibe{inject(t,n,r){const i=Wr.getSpanContext(t);if(!i||JE(t)||!L0(i))return;const o=`${Z1e}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ia.NONE).toString(16)}`;r.set(n,pS,o),i.traceState&&r.set(n,gS,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,pS);if(!i)return t;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;const a=rbe(o);if(!a)return t;a.isRemote=!0;const s=r.get(n,gS);if(s){const u=Array.isArray(s)?s.join(","):s;a.traceState=new hS(typeof u=="string"?u:void 0)}return Wr.setSpanContext(t,a)}fields(){return[pS,gS]}}const obe="[object Object]",abe="[object Null]",sbe="[object Undefined]",DR=Function.prototype.toString,ube=DR.call(Object),lbe=Object.getPrototypeOf,RR=Object.prototype,NR=RR.hasOwnProperty,Fu=Symbol?Symbol.toStringTag:void 0,LR=RR.toString;function $R(e){if(!cbe(e)||fbe(e)!==obe)return!1;const t=lbe(e);if(t===null)return!0;const n=NR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&DR.call(n)===ube}function cbe(e){return e!=null&&typeof e=="object"}function fbe(e){return e==null?e===void 0?sbe:abe:Fu&&Fu in Object(e)?dbe(e):hbe(e)}function dbe(e){const t=NR.call(e,Fu),n=e[Fu];let r=!1;try{e[Fu]=void 0,r=!0}catch{}const i=LR.call(e);return r&&(t?e[Fu]=n:delete e[Fu]),i}function hbe(e){return LR.call(e)}const pbe=20;function gbe(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=BR(t,e.shift(),0,n);return t}function vS(e){return q0(e)?e.slice():e}function BR(e,t,n=0,r){let i;if(!(n>pbe)){if(n++,V0(e)||V0(t)||FR(t))i=vS(t);else if(q0(e)){if(i=e.slice(),q0(t))for(let o=0,a=t.length;o<a;o++)i.push(vS(t[o]));else if(Jd(t)){const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a];i[u]=vS(t[u])}}}else if(Jd(e))if(Jd(t)){if(!vbe(e,t))return t;i=Object.assign({},e);const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a],l=t[u];if(V0(l))typeof l>"u"?delete i[u]:i[u]=l;else{const c=i[u],d=l;if(zR(e,u,r)||zR(t,u,r))delete i[u];else{if(Jd(c)&&Jd(d)){const h=r.get(c)||[],g=r.get(d)||[];h.push({obj:e,key:u}),g.push({obj:t,key:u}),r.set(c,h),r.set(d,g)}i[u]=BR(i[u],l,n,r)}}}}else i=t;return i}}function zR(e,t,n){const r=n.get(e[t])||[];for(let i=0,o=r.length;i<o;i++){const a=r[i];if(a.key===t&&a.obj===e)return!0}return!1}function q0(e){return Array.isArray(e)}function FR(e){return typeof e=="function"}function Jd(e){return!V0(e)&&!q0(e)&&!FR(e)&&typeof e=="object"}function V0(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function vbe(e,t){return!(!$R(e)||!$R(t))}function WR(e,t){return typeof t=="string"?e===t:!!e.match(t)}function mbe(e,t){if(!t)return!1;for(const n of t)if(WR(e,n))return!0;return!1}class ybe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class bbe{_callback;_that;_isCalled=!1;_deferred=new ybe;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function wbe(e,t){return new Promise(n=>{fr.with(h1e(fr.active()),()=>{e.export(t,r=>{n(r)})})})}const _be={_export:wbe};function xbe(){return"unknown_service"}const Qd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class U0{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const n=new U0({});return n._rawAttributes=VR(t),n._asyncAttributesPending=t.filter(([r,i])=>Qd(i)).length>0,n}constructor(t){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Qd(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=VR(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,Qd(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[n,r]of this._rawAttributes){if(Qd(r)){Wt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:U0.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function qR(e){return U0.FromAttributeList(Object.entries(e))}function Ebe(){return qR({[OR]:xbe(),[aS]:lS[aS],[sS]:lS[sS],[uS]:lS[uS]})}function VR(e){return e.map(([t,n])=>Qd(n)?[t,n.catch(r=>{Wt.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}const Sbe="exception";class Abe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Bu.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Pc.now(),this._performanceOffset=n-(this._performanceStartTime+cS()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return Wt.warn(`Invalid attribute key: ${t}`),this;if(!AR(n))return Wt.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Wt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Wt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),CR(n)&&(CR(r)||(r=n),n=void 0);const o=z0(n);return this.events.push({name:t,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Wt.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=F1e(this.startTime,this.endTime),this._duration[0]<0&&(Wt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Pc.now())return W0(t+this._performanceOffset);if(typeof t=="number")return Da(t);if(t instanceof Date)return Da(t.getTime());if(fS(t))return t;if(this._startTimeProvided)return Da(Date.now());const n=Pc.now()-this._performanceStartTime;return jR(this.startTime,Da(n))}isRecording(){return this._ended===!1}recordException(t,n){const r={};typeof t=="string"?r[iS]=t:t&&(t.code?r[oS]=t.code.toString():t.name&&(r[oS]=t.name),t.message&&(r[iS]=t.message),t.stack&&(r[j1e]=t.stack)),r[oS]||r[iS]?this.addEvent(Sbe,r,n):Wt.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(Wt.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var Cc;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Cc||(Cc={}));class H0{shouldSample(){return{decision:Cc.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class jc{shouldSample(){return{decision:Cc.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class G0{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(nS(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new jc),this._remoteParentSampled=t.remoteParentSampled??new jc,this._remoteParentNotSampled=t.remoteParentNotSampled??new H0,this._localParentSampled=t.localParentSampled??new jc,this._localParentNotSampled=t.localParentNotSampled??new H0}shouldSample(t,n,r,i,o,a){const s=Wr.getSpanContext(t);return!s||!L0(s)?this._root.shouldSample(t,n,r,i,o,a):s.isRemote?s.traceFlags&Ia.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(t,n,r,i,o,a):s.traceFlags&Ia.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,o,a):this._localParentNotSampled.shouldSample(t,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class UR{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:fR(n)&&this._accumulate(n)<this._upperBound?Cc.RECORD_AND_SAMPLED:Cc.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,o=parseInt(t.slice(i,i+8),16);n=(n^o)>>>0}return n}}const HR=1;function GR(){return{sampler:KR(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function KR(){const e="parentbased_always_on";switch(e){case"always_on":return new jc;case"always_off":return new H0;case"parentbased_always_on":return new G0({root:new jc});case"parentbased_always_off":return new G0({root:new H0});case"traceidratio":return new UR(YR());case"parentbased_traceidratio":return new G0({root:new UR(YR())});default:return Wt.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new G0({root:new jc})}}function YR(){return Wt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${HR}.`),HR}const Tbe=128,Obe=1/0;function Pbe(e){const t={sampler:KR()},n=GR(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function Cbe(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??Tbe,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??Obe,Object.assign({},e,{spanLimits:t})}const jbe=8,Mbe=16;class kbe{generateTraceId=XR(Mbe);generateSpanId=XR(jbe)}const K0=Array(32);function XR(e){return function(){for(let n=0;n<e*2;n++)K0[n]=Math.floor(Math.random()*16)+48,K0[n]>=58&&(K0[n]+=39);return String.fromCharCode.apply(null,K0.slice(0,e*2))}}class Ibe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const o=Pbe(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new kbe,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=fr.active()){n.root&&(r=Wr.deleteSpan(r));const i=Wr.getSpan(r);if(JE(r))return Wt.debug("Instrumentation suppressed, returning Noop Span"),Wr.wrapSpanContext(lR);const o=i?.spanContext(),a=this._idGenerator.generateSpanId();let s,u,l;!o||!Wr.isSpanContextValid(o)?u=this._idGenerator.generateTraceId():(u=o.traceId,l=o.traceState,s=o);const c=n.kind??B0.INTERNAL,d=(n.links??[]).map(x=>({context:x.context,attributes:z0(x.attributes)})),h=z0(n.attributes),g=this._sampler.shouldSample(r,u,t,c,h,d);l=g.traceState??l;const y=g.decision===$0.RECORD_AND_SAMPLED?Ia.SAMPLED:Ia.NONE,v={traceId:u,spanId:a,traceFlags:y,traceState:l};if(g.decision===$0.NOT_RECORD)return Wt.debug("Recording is off, propagating context in a non-recording span"),Wr.wrapSpanContext(v);const m=z0(Object.assign(h,g.attributes));return new Abe({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:v,name:t,kind:c,links:d,parentSpanContext:s,attributes:m,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let o,a,s;if(arguments.length<2)return;arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);const u=a??fr.active(),l=this.startSpan(t,o,u),c=Wr.setSpan(u,l);return fr.with(c,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Dbe{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{nS(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var Wu;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Wu||(Wu={}));class Rbe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=gbe({},GR(),Cbe(t));this._resource=n.resource??Ebe(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new Dbe(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new Ibe({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const a=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),o=Wu.timeout},t);r.forceFlush().then(()=>{clearTimeout(a),o!==Wu.timeout&&(o=Wu.resolved,i(o))}).catch(s=>{clearTimeout(a),o=Wu.error,i(s)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const a=o.filter(s=>s!==Wu.resolved);a.length>0?i(a):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Nbe{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:PR(t.startTime),duration:PR(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:go.SUCCESS})}}class ZR{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new bbe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,n){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Ia.SAMPLED)===0)return;const n=this._doExport(t).catch(r=>nS(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const n=await _be._export(this._exporter,[t]);if(n.code!==go.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Lbe{_enabled=!1;_currentContext=ka;_bindFunction(t=ka,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=ka,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=ka,this)}with(t,n,r,...i){const o=this._currentContext;this._currentContext=t||ka;try{return n.call(r,...i)}finally{this._currentContext=o}}}function $be(e){if(e!==null){if(e===void 0){const t=new Lbe;t.enable(),fr.setGlobalContextManager(t);return}e.enable(),fr.setGlobalContextManager(e)}}function Bbe(e){if(e!==null){if(e===void 0){Go.setGlobalPropagator(new W1e({propagators:[new ibe,new _1e]}));return}Go.setGlobalPropagator(e)}}class zbe extends Rbe{constructor(t={}){super(t)}register(t={}){Wr.setGlobalTracerProvider(this),Bbe(t.propagator),$be(t.contextManager)}}var dn;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(dn||(dn={}));const Fbe="http.response_content_length",Wbe="http.response_content_length_uncompressed";let mS;function qbe(){return mS||(mS=document.createElement("a")),mS}function Vbe(e,t){return t in e}function Na(e,t,n,r=!0){if(Vbe(n,t)&&typeof n[t]=="number"&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function JR(e,t,n=!1,r,i){if(r===void 0&&(r=t[dn.START_TIME]!==0),n||(Na(e,dn.FETCH_START,t,r),Na(e,dn.DOMAIN_LOOKUP_START,t,r),Na(e,dn.DOMAIN_LOOKUP_END,t,r),Na(e,dn.CONNECT_START,t,r),Na(e,dn.SECURE_CONNECTION_START,t,r),Na(e,dn.CONNECT_END,t,r),Na(e,dn.REQUEST_START,t,r),Na(e,dn.RESPONSE_START,t,r),Na(e,dn.RESPONSE_END,t,r)),!i){const o=t[dn.ENCODED_BODY_SIZE];o!==void 0&&e.setAttribute(Fbe,o);const a=t[dn.DECODED_BODY_SIZE];a!==void 0&&o!==a&&e.setAttribute(Wbe,a)}}function Ube(e){return e.slice().sort((t,n)=>{const r=t[dn.FETCH_START],i=n[dn.FETCH_START];return r>i?1:r<i?-1:0})}function QR(){return typeof location<"u"?location.origin:void 0}function Hbe(e,t,n,r,i=new WeakSet,o){const a=Y0(e);e=a.toString();const s=Kbe(e,t,n,r,i,o);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=Ube(s);if(a.origin!==QR()&&u.length>1){let l=u[0],c=Gbe(u,l[dn.RESPONSE_END],n);const d=l[dn.RESPONSE_END];return c[dn.FETCH_START]<d&&(c=l,l=void 0),{corsPreFlightRequest:l,mainRequest:c}}else return{mainRequest:s[0]}}function Gbe(e,t,n){const r=Ra(n),i=Ra(Zd(t));let o=e[1],a;const s=e.length;for(let u=1;u<s;u++){const l=e[u],c=Ra(Zd(l[dn.FETCH_START])),d=Ra(Zd(l[dn.RESPONSE_END])),h=r-d;c>=i&&(!a||h<a)&&(a=h,o=l)}return o}function Kbe(e,t,n,r,i,o){const a=Ra(t),s=Ra(n);let u=r.filter(l=>{const c=Ra(Zd(l[dn.FETCH_START])),d=Ra(Zd(l[dn.RESPONSE_END]));return l.initiatorType.toLowerCase()===o&&l.name===e&&c>=a&&d<=s});return u.length>0&&(u=u.filter(l=>!i.has(l))),u}function Y0(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=qbe();return t.href=e,t}function Ybe(e,t){let n=t||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),Y0(e).origin===QR()?!0:n.some(i=>WR(e,i))}class Xbe{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class eN extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function Zbe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Jbe(e){if(e!=null)return()=>e}function Qbe(e,t,n){return{timeoutMillis:Zbe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function ewe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class twe{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function nwe(e){return new twe(e.concurrencyLimit)}function rwe(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function iwe(){return{handleResponse(e){e==null||!rwe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wt.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class owe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,o){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=Wt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:go.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:go.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:go.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:go.FAILED,error:i.error});return}else i.status==="retryable"?n({code:go.FAILED,error:new eN("Export failed with retryable status")}):n({code:go.FAILED,error:new eN("Export failed with unknown error")})},i=>n({code:go.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function awe(e,t){return new owe(e.transport,e.serializer,iwe(),e.promiseHandler,t.timeout)}function tN(e,t,n){return awe({transport:n,serializer:t,promiseHandler:nwe(e)},{timeout:e.timeoutMillis})}function nN(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function rN(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=nN(e.charCodeAt(r)),o=nN(e.charCodeAt(r+1));t[n++]=i<<4|o}return t}function iN(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function swe(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function uwe(e){const t=iN(e);return swe(t)}function lwe(e){return iN(e).toString()}const cwe=typeof BigInt<"u"?lwe:Ra;function oN(e){return e}function fwe(e){if(e!==void 0)return rN(e)}const dwe={encodeHrTime:uwe,encodeSpanContext:rN,encodeOptionalSpanContext:fwe};function hwe(e){return e===void 0?dwe:{encodeHrTime:cwe,encodeSpanContext:oN,encodeOptionalSpanContext:oN}}function pwe(e){return{attributes:X0(e.attributes),droppedAttributesCount:0}}function gwe(e){return{name:e.name,version:e.version}}function X0(e){return Object.keys(e).map(t=>aN(t,e[t]))}function aN(e,t){return{key:e,value:sN(t)}}function sN(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(sN)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>aN(n,r))}}:{}}function vwe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:X0(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(o=>ywe(o,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(o=>mwe(o,t)),droppedLinksCount:e.droppedLinksCount}}function mwe(e,t){return{attributes:e.attributes?X0(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function ywe(e,t){return{attributes:e.attributes?X0(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function bwe(e,t){const n=hwe(t);return{resourceSpans:_we(e,n)}}function wwe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return t}function _we(e,t){const n=wwe(e),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[a,s]=o.value,u=[],l=s.values();let c=l.next();for(;!c.done;){const h=c.value;if(h.length>0){const g=h.map(y=>vwe(y,t));u.push({scope:gwe(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}c=l.next()}const d={resource:pwe(a),scopeSpans:u,schemaUrl:void 0};r.push(d),o=i.next()}return r}const xwe={serializeRequest:e=>{const t=bwe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},Ewe=5,Swe=1e3,Awe=5e3,Twe=1.5,uN=.2;function Owe(){return Math.random()*(2*uN)-uN}class Pwe{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(t,n).then(i,o)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),o=Ewe,a=Swe;for(;i.status==="retryable"&&o>0;){o--;const s=Math.max(Math.min(a,Awe)+Owe(),0);a=a*Twe;const u=i.retryInMillis??s,l=r-Date.now();if(u>l)return i;i=await this.retry(t,l,u)}return i}shutdown(){return this._transport.shutdown()}}function lN(e){return new Pwe(e.transport)}function Cwe(e){return[429,502,503,504].includes(e)}function jwe(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class Mwe{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([a,s])=>{i.setRequestHeader(a,s)}),i.ontimeout=a=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Wt.debug("XHR success"),r({status:"success"})):i.status&&Cwe(i.status)?r({status:"retryable",retryInMillis:jwe(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function kwe(e){return new Mwe(e)}class Iwe{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Wt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function Dwe(e){return new Iwe(e)}function Rwe(e,t){return tN(e,t,lN({transport:kwe(e)}))}function Nwe(e,t){return tN(e,t,lN({transport:Dwe({url:e.url,blobType:e.headers()["Content-Type"]})}))}function Lwe(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):Wt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function $we(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function Bwe(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function zwe(e,t,n){return{...Qbe(e,t,n),headers:$we(Lwe(e.headers),t.headers,n.headers),url:Bwe(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function Fwe(e,t){return{...ewe(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function Wwe(e,t,n){return zwe({url:e.url,timeoutMillis:e.timeoutMillis,headers:Jbe(e.headers),concurrencyLimit:e.concurrencyLimit},{},Fwe(n,t))}function qwe(e,t,n,r){const i=!!e.headers||typeof navigator.sendBeacon!="function",o=Wwe(e,n,r);return i?Rwe(o,t):Nwe(o,t)}class Vwe extends Xbe{constructor(t={}){super(qwe(t,xwe,"v1/traces",{"Content-Type":"application/json"}))}}class cN{emit(t){}}const Uwe=new cN;class Hwe{getLogger(t,n,r){return new cN}}const fN=new Hwe;class Gwe{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Uwe}}class dN{getLogger(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new Gwe(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:fN}setDelegate(t){this._delegate=t}getDelegateLogger(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)}}const Kwe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Z0=Symbol.for("io.opentelemetry.js.api.logs"),eh=Kwe;function Ywe(e,t,n){return r=>r===e?t:n}const hN=1;class yS{constructor(){this._proxyLoggerProvider=new dN}static getInstance(){return this._instance||(this._instance=new yS),this._instance}setGlobalLoggerProvider(t){return eh[Z0]?this.getLoggerProvider():(eh[Z0]=Ywe(hN,t,fN),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,n;return(n=(t=eh[Z0])===null||t===void 0?void 0:t.call(eh,hN))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)}disable(){delete eh[Z0],this._proxyLoggerProvider=new dN}}const pN=yS.getInstance();function Xwe(e,t,n,r){for(let i=0,o=e.length;i<o;i++){const a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function Zwe(e){e.forEach(t=>t.disable())}function Jwe(e){const t=e.tracerProvider||Wr.getTracerProvider(),n=e.meterProvider||pR.getMeterProvider(),r=e.loggerProvider||pN.getLoggerProvider(),i=e.instrumentations?.flat()??[];return Xwe(i,t,n,r),()=>{Zwe(i)}}let Ai=console.error.bind(console);function th(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const gN=(e,t,n)=>{if(!e||!e[t]){Ai("no original function "+String(t)+" to wrap");return}if(!n){Ai("no wrapper function"),Ai(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof n!="function"){Ai("original object and wrapper must be functions");return}const i=n(r,t);return th(i,"__original",r),th(i,"__unwrap",()=>{e[t]===i&&th(e,t,r)}),th(i,"__wrapped",!0),th(e,t,i),i},Qwe=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Ai("must provide one or more modules to patch"),Ai(new Error().stack);return}if(!(t&&Array.isArray(t))){Ai("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(i=>{gN(r,i,n)})})},vN=(e,t)=>{if(!e||!e[t]){Ai("no function to unwrap."),Ai(new Error().stack);return}const n=e[t];if(!n.__unwrap)Ai("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{n.__unwrap();return}},e_e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ai("must provide one or more modules to patch"),Ai(new Error().stack);return}if(!(t&&Array.isArray(t))){Ai("must provide one or more functions to unwrap on modules");return}e.forEach(n=>{t.forEach(r=>{vN(n,r)})})};class t_e{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this.setConfig(r),this._diag=Wt.createComponentLogger({namespace:t}),this._tracer=Wr.getTracer(t,n),this._meter=pR.getMeter(t,n),this._logger=pN.getLogger(t,n),this._updateMetricInstruments()}_wrap=gN;_unwrap=vN;_massWrap=Qwe;_massUnwrap=e_e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,n,r,i){if(t)try{t(r,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},o)}}}class n_e extends t_e{constructor(t,n,r){super(t,n,r),this._config.enabled&&this.enable()}}function mN(e,t,n){let r,i;try{i=e()}catch(o){r=o}finally{return t(r,i),i}}function r_e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var ui;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(ui||(ui={}));function i_e(e,t){let n=ui.OLD;const r=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of r??[])if(i.toLowerCase()===e+"/dup"){n=ui.DUPLICATE;break}else i.toLowerCase()===e&&(n=ui.STABLE);return n}var J0;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(J0||(J0={}));var In={},yN;function o_e(){return yN||(yN=1,Object.defineProperty(In,"__esModule",{value:!0}),In.ATTR_HTTP_USER_AGENT=In.ATTR_HTTP_URL=In.ATTR_HTTP_STATUS_CODE=In.ATTR_HTTP_SCHEME=In.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=In.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=In.ATTR_HTTP_REQUEST_BODY_SIZE=In.ATTR_HTTP_METHOD=In.ATTR_HTTP_HOST=void 0,In.ATTR_HTTP_HOST="http.host",In.ATTR_HTTP_METHOD="http.method",In.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",In.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",In.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",In.ATTR_HTTP_SCHEME="http.scheme",In.ATTR_HTTP_STATUS_CODE="http.status_code",In.ATTR_HTTP_URL="http.url",In.ATTR_HTTP_USER_AGENT="http.user_agent"),In}var As=o_e();const bN=Wt.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function a_e(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:r}=s_e(t.body);return t.body=n,r}else return Promise.resolve(l_e(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(n=>bS(n)):Promise.resolve()}}function s_e(e){if(!e.pipeThrough)return bN.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,n;const r=new Promise(o=>{n=o}),i=new TransformStream({start(){},async transform(o,a){const s=await o;t+=s.byteLength,a.enqueue(o)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function u_e(e){return typeof Document<"u"&&e instanceof Document}function l_e(e){if(u_e(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return bS(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return f_e(e);if(e instanceof URLSearchParams)return bS(e.toString());if(e.byteLength!==void 0)return e.byteLength;bN.warn("unknown body type")}const c_e=new TextEncoder;function bS(e){return c_e.encode(e).byteLength}function f_e(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function d_e(e){const t=p_e(),n=e.toUpperCase();return n in t?n:"_OTHER"}const h_e={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let wS;function p_e(){return wS===void 0&&(wS=h_e),wS}const g_e={"https:":"443","http:":"80"};function v_e(e){const t=Number(e.port||g_e[e.protocol]);if(t&&!isNaN(t))return t}const wN="0.203.0",m_e=300,_N=typeof process=="object"&&process.release?.name==="node";class y_e extends n_e{component="fetch";version=wN;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",wN,t),this._semconvStability=i_e("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const r=this.tracer.startSpan("CORS Preflight",{startTime:n[dn.FETCH_START]},Wr.setSpan(fr.active(),t)),i=!(this._semconvStability&ui.OLD);JR(r,n,this.getConfig().ignoreNetworkEvents,void 0,i),r.end(n[dn.RESPONSE_END])}_addFinalSpanAttributes(t,n){const r=Y0(n.url);if(this._semconvStability&ui.OLD&&(t.setAttribute(As.ATTR_HTTP_STATUS_CODE,n.status),n.statusText!=null&&t.setAttribute(J0.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(As.ATTR_HTTP_HOST,r.host),t.setAttribute(As.ATTR_HTTP_SCHEME,r.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(As.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&ui.STABLE){t.setAttribute(I1e,n.status),t.setAttribute(D1e,r.hostname);const i=v_e(r);i&&t.setAttribute(R1e,i)}}_addHeaders(t,n){if(!Ybe(n,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};Go.inject(fr.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Go.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Headers)Go.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Map)Go.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else{const r={};Go.inject(fr.active(),r),t.headers=Object.assign({},r,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(mbe(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let r="";const i={};if(this._semconvStability&ui.OLD){const o=(n.method||"GET").toUpperCase();r=`HTTP ${o}`,i[J0.COMPONENT]=this.moduleName,i[As.ATTR_HTTP_METHOD]=o,i[As.ATTR_HTTP_URL]=t}if(this._semconvStability&ui.STABLE){const o=n.method,a=d_e(n.method||"GET");r||(r=a),i[M1e]=a,a!==o&&(i[k1e]=o),i[L1e]=t}return this.tracer.startSpan(r,{kind:B0.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,n,r){let i=n.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const o=Hbe(n.spanUrl,n.startTime,r,i,this._usedResources,"fetch");if(o.mainRequest){const a=o.mainRequest;this._markResourceAsUsed(a);const s=o.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&ui.OLD);JR(t,a,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,r){const i=Da(Date.now()),o=W0();this._addFinalSpanAttributes(t,r),this._semconvStability&ui.STABLE&&r.status>=400&&(t.setStatus({code:Bu.ERROR}),t.setAttribute(C1e,String(r.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,o),this._tasksCount--,this._clearResources(),t.end(i)},m_e)}_patchConstructor(){return t=>{const n=this;return function(...i){const o=this,a=Y0(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=n._createSpan(a,s);if(!u)return t.apply(this,i);const l=n._prepareSpanData(a);n.getConfig().measureRequestSize&&a_e(...i).then(y=>{y&&(n._semconvStability&ui.OLD&&u.setAttribute(As.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,y),n._semconvStability&ui.STABLE&&u.setAttribute(As.ATTR_HTTP_REQUEST_BODY_SIZE,y))}).catch(y=>{n._diag.warn("getFetchBodyLength",y)});function c(y,v){n._applyAttributesAfterFetch(y,s,v),n._endSpan(y,l,{status:v.status||0,statusText:v.message,url:a})}function d(y,v){n._applyAttributesAfterFetch(y,s,v),v.status>=200&&v.status<400?n._endSpan(y,l,v):n._endSpan(y,l,{status:v.status,statusText:v.statusText,url:a})}function h(y,v,m){try{const x=m.clone().body;if(x){const E=x.getReader(),S=()=>{E.read().then(({done:A})=>{A?d(y,m):S()},A=>{c(y,A)})};S()}else d(y,m)}finally{v(m)}}function g(y,v,m){try{c(y,m)}finally{v(m)}}return new Promise((y,v)=>fr.with(Wr.setSpan(fr.active(),u),()=>(n._addHeaders(s,a),n._callRequestHook(u,s),n._tasksCount++,t.apply(o,s instanceof Request?[s]:[a,s]).then(h.bind(o,u,y),g.bind(o,u,v)))))}}}_applyAttributesAfterFetch(t,n,r){const i=this.getConfig().applyCustomAttributesOnSpan;i&&mN(()=>i(t,n,r),o=>{o&&this._diag.error("applyCustomAttributesOnSpan",o)})}_callRequestHook(t,n){const r=this.getConfig().requestHook;r&&mN(()=>r(t,n),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const n=W0(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:n,spanUrl:t};const i=new PerformanceObserver(o=>{o.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&r.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:r,observer:i,startTime:n,spanUrl:t}}enable(){if(_N){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}r_e(fetch)&&(this._unwrap(rS,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(rS,"fetch",this._patchConstructor())}disable(){_N||(this._unwrap(rS,"fetch"),this._usedResources=new WeakSet)}}function b_e(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const xN="OT_ZONE_CONTEXT";class w_e{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(xN)||ka}_bindFunction(t,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[xN]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(o,a,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[o];u===void 0&&(u=new WeakMap,t.__ot_listeners[o]=u);const l=i.bind(r,a);return u.set(a,l),n.call(this,o,l,s)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const o=t.__ot_listeners[r],a=o.get(i);return o.delete(i),n.call(this,r,a||i)}}active(){if(!this._enabled)return ka;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||ka}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(b_e(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const o=this._createZoneName();return this._createZone(o,t).run(n,r,i)}}var EN={},SN;function __e(){if(SN)return EN;SN=1;/**
|
|
223
|
+
c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function cme({size:e=24,color:t="currentColor"}){return w.jsx(ae.SvgIcon,{children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:w.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:fme,forEach:dme}=[];function hme(e){return dme.call(fme.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function pme(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const XD=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gme=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!XD.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!XD.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},ZD={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=gme(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var vme={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return ZD.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&ZD.create(n,e,r,i,o)}},mme={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let a=0;a<o.length;a++){const s=o[a].indexOf("=");s>0&&o[a].substring(0,s)===t&&(n=o[a].substring(s+1))}}return n}},yme={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const a=o.split("&");for(let s=0;s<a.length;s++){const u=a[s].indexOf("=");u>0&&a[s].substring(0,u)===t&&(r=a[s].substring(u+1))}}if(r)return r;if(!r&&n>-1){const a=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Tc=null;const JD=()=>{if(Tc!==null)return Tc;try{if(Tc=typeof window<"u"&&window.localStorage!==null,!Tc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Tc=!1}return Tc};var bme={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&JD())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&JD()&&window.localStorage.setItem(n,e)}};let Oc=null;const QD=()=>{if(Oc!==null)return Oc;try{if(Oc=typeof window<"u"&&window.sessionStorage!==null,!Oc)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Oc=!1}return Oc};var wme={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&QD())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&QD()&&window.sessionStorage.setItem(n,e)}},_me={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},xme={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Eme={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},Sme={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let eR=!1;try{document.cookie,eR=!0}catch{}const tR=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];eR||tR.splice(1,1);const Ame=()=>({order:tR,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class nR{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=hme(n,this.options||{},Ame()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(vme),this.addDetector(mme),this.addDetector(bme),this.addDetector(wme),this.addDetector(_me),this.addDetector(xme),this.addDetector(Eme),this.addDetector(Sme),this.addDetector(yme)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!pme(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}nR.type="languageDetector";const Tme=e=>{let t={};for(const r of Object.keys(e)){const i=r.match(/\w+\.json/);if(i){const o=i[0]?.split(".")[0];t={...t,[o]:{translation:e[r]}}}}const n=Object.keys(t);return $s.use(nR).use(St.initReactI18next).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:n,missingKeyHandler:function(r,i,o){console.warn(`MISSING TRANSLATION: [${r}] ${i}:${o}`)}}),$s};function rR({children:e}){return w.jsx(mn,{paddingBottom:"16px",gap:"8px",children:e})}function iR({children:e}){return w.jsx(Yc,{mt:"auto",mb:"auto",width:"100%",children:w.jsx(ae.Paper,{sx:{width:"100%"},children:w.jsx(mn,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function oR({tabValue:e,columnValues:t,columnWidths:n}){const{t:r}=St.useTranslation();return w.jsx(ae.Paper,{sx:{display:"grid",gridTemplateColumns:n?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,o)=>w.jsx(ae.Typography,{children:w.jsx("b",{children:r(i)})},o))})}function Ome({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:n,SecondTabContent:r,ThirdTabContent:i,tabValue:o,columnValues:a,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:l,ThirdTabNearbyContent:c}){return w.jsxs(Bs,{gap:"16px",children:[w.jsx(iR,{children:e}),w.jsxs(Wm,{gap:"16px",children:[w.jsxs(ae.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset",maxWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset"},children:[w.jsx(rR,{children:t}),w.jsxs(Bs,{children:[w.jsx(oR,{columnValues:a,columnWidths:s,tabValue:o}),w.jsx(ae.Divider,{sx:{marginBottom:"16px"}}),w.jsxs(Bs,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[o===0?w.jsx(n,{}):null,o===1?w.jsx(r,{}):null,o===2&&i?w.jsx(i,{}):null]})]})]}),o===0&&u?w.jsx(ae.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,o===1&&l?w.jsx(ae.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null,o===2&&c?w.jsx(ae.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null]})]})}function Pme({children:e,position:t}){return w.jsx(IA.SnackbarProvider,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:qd,info:qd,success:qd,error:qd,warning:qd},children:e})}const po={};function Cme(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=po.resolve(n),o=po.basename(i);if(!r.includes(t))return po.resolve(e,"graphQL","__generated__",`${o}.ts`);const a=po.resolve(__dirname,".."),s=r.slice(a.length).split("/")[1];return po.resolve(a,s,"__generated__",`${o}.ts`)}return null}}}function jme(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=po.resolve(n),o=po.basename(i),a=po.resolve(e,".."),s=po.resolve(a,t,"__generated__",`${o}.ts`);return console.log("corepath",t),console.log("reporoot",a),console.log("fileproject",s),console.log("importer",r),r.includes(t)?po.resolve(a,t,"__generated__",`${o}.ts`):po.resolve(e,"graphQL","__generated__",`${o}.ts`)}return null}}}var Mme=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Nu="1.9.0",aR=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function kme(e){var t=new Set([e]),n=new Set,r=e.match(aR);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function o(s){return n.add(s),!1}function a(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var l=u.match(aR);if(!l)return o(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?o(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?a(u):o(u):i.minor<=c.minor?a(u):o(u)}}var Ime=kme(Nu),Dme=Nu.split(".")[0],Vd=Symbol.for("opentelemetry.js.api."+Dme),Ud=Mme;function Hd(e,t,n,r){var i;r===void 0&&(r=!1);var o=Ud[Vd]=(i=Ud[Vd])!==null&&i!==void 0?i:{version:Nu};if(!r&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}if(o.version!==Nu){var a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+Nu);return n.error(a.stack||a.message),!1}return o[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Nu+"."),!0}function Lu(e){var t,n,r=(t=Ud[Vd])===null||t===void 0?void 0:t.version;if(!(!r||!Ime(r)))return(n=Ud[Vd])===null||n===void 0?void 0:n[e]}function Gd(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Nu+".");var n=Ud[Vd];n&&delete n[e]}var Rme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Nme=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Lme=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd("verbose",this._namespace,t)},e}();function Kd(e,t,n){var r=Lu("diag");if(r)return n.unshift(t),r[e].apply(r,Nme([],Rme(n),!1))}var Si;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Si||(Si={}));function $me(e,t){e<Si.NONE?e=Si.NONE:e>Si.ALL&&(e=Si.ALL),t=t||{};function n(r,i){var o=t[r];return typeof o=="function"&&e>=i?o.bind(t):function(){}}return{error:n("error",Si.ERROR),warn:n("warn",Si.WARN),info:n("info",Si.INFO),debug:n("debug",Si.DEBUG),verbose:n("verbose",Si.VERBOSE)}}var Bme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},zme=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Fme="diag",Ho=function(){function e(){function t(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=Lu("diag");if(s)return s[i].apply(s,zme([],Bme(o),!1))}}var n=this,r=function(i,o){var a,s,u;if(o===void 0&&(o={logLevel:Si.INFO}),i===n){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=l.stack)!==null&&a!==void 0?a:l.message),!1}typeof o=="number"&&(o={logLevel:o});var c=Lu("diag"),d=$me((s=o.logLevel)!==null&&s!==void 0?s:Si.INFO,i);if(c&&!o.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return Hd("diag",d,n,!0)};n.setLogger=r,n.disable=function(){Gd(Fme,n)},n.createComponentLogger=function(i){return new Lme(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),Wme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},qme=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Vme=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=Wme(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=qme(r),s=a.next();!s.done;s=a.next()){var u=s.value;o._entries.delete(u)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}(),Ume=Symbol("BaggageEntryMetadata"),Hme=Ho.instance();function Gme(e){return e===void 0&&(e={}),new Vme(new Map(Object.entries(e)))}function Kme(e){return typeof e!="string"&&(Hme.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Ume,toString:function(){return e}}}function zE(e){return Symbol.for(e)}var Yme=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new e(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),ka=new Yme,$u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xme=function(){function e(){}return e.prototype.createGauge=function(t,n){return aye},e.prototype.createHistogram=function(t,n){return sye},e.prototype.createCounter=function(t,n){return oye},e.prototype.createUpDownCounter=function(t,n){return uye},e.prototype.createObservableGauge=function(t,n){return cye},e.prototype.createObservableCounter=function(t,n){return lye},e.prototype.createObservableUpDownCounter=function(t,n){return fye},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),R0=function(){function e(){}return e}(),Zme=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(R0),Jme=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(R0),Qme=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(R0),eye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(R0),FE=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),tye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FE),nye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FE),rye=function(e){$u(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FE),iye=new Xme,oye=new Zme,aye=new Qme,sye=new eye,uye=new Jme,lye=new tye,cye=new nye,fye=new rye,dye={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},hye={set:function(e,t,n){e!=null&&(e[t]=n)}},pye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},gye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},vye=function(){function e(){}return e.prototype.active=function(){return ka},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,gye([r],pye(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),mye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},yye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},WE="context",bye=new vye,N0=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Hd(WE,t,Ho.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,yye([t,n,r],mye(o),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return Lu(WE)||bye},e.prototype.disable=function(){this._getContextManager().disable(),Gd(WE,Ho.instance())},e}(),Ia;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ia||(Ia={}));var sR="0000000000000000",uR="00000000000000000000000000000000",lR={traceId:uR,spanId:sR,traceFlags:Ia.NONE},Yd=function(){function e(t){t===void 0&&(t=lR),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),qE=zE("OpenTelemetry Context Key SPAN");function VE(e){return e.getValue(qE)||void 0}function wye(){return VE(N0.getInstance().active())}function UE(e,t){return e.setValue(qE,t)}function _ye(e){return e.deleteValue(qE)}function xye(e,t){return UE(e,new Yd(t))}function cR(e){var t;return(t=VE(e))===null||t===void 0?void 0:t.spanContext()}var Eye=/^([0-9a-f]{32})$/i,Sye=/^[0-9a-f]{16}$/i;function fR(e){return Eye.test(e)&&e!==uR}function Aye(e){return Sye.test(e)&&e!==sR}function L0(e){return fR(e.traceId)&&Aye(e.spanId)}function Tye(e){return new Yd(e)}var HE=N0.getInstance(),dR=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=HE.active());var i=!!n?.root;if(i)return new Yd;var o=r&&cR(r);return Oye(o)&&L0(o)?new Yd(o):new Yd},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var u=a??HE.active(),l=this.startSpan(t,o,u),c=UE(u,l);return HE.with(c,s,void 0,l)}},e}();function Oye(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Pye=new dR,Cye=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Pye},e}(),jye=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new dR},e}(),Mye=new jye,hR=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new Cye(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Mye},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),$0;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})($0||($0={}));var B0;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(B0||(B0={}));var Bu;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Bu||(Bu={}));var fr=N0.getInstance(),Wt=Ho.instance(),kye=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return iye},e}(),Iye=new kye,GE="metrics",Dye=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Hd(GE,t,Ho.instance())},e.prototype.getMeterProvider=function(){return Lu(GE)||Iye},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){Gd(GE,Ho.instance())},e}(),pR=Dye.getInstance(),Rye=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),KE=zE("OpenTelemetry Baggage Key");function gR(e){return e.getValue(KE)||void 0}function Nye(){return gR(N0.getInstance().active())}function Lye(e,t){return e.setValue(KE,t)}function $ye(e){return e.deleteValue(KE)}var YE="propagation",Bye=new Rye,zye=function(){function e(){this.createBaggage=Gme,this.getBaggage=gR,this.getActiveBaggage=Nye,this.setBaggage=Lye,this.deleteBaggage=$ye}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Hd(YE,t,Ho.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=hye),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=dye),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Gd(YE,Ho.instance())},e.prototype._getGlobalPropagator=function(){return Lu(YE)||Bye},e}(),Go=zye.getInstance(),XE="trace",Fye=function(){function e(){this._proxyTracerProvider=new hR,this.wrapSpanContext=Tye,this.isSpanContextValid=L0,this.deleteSpan=_ye,this.getSpan=VE,this.getActiveSpan=wye,this.getSpanContext=cR,this.setSpan=UE,this.setSpanContext=xye}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Hd(XE,this._proxyTracerProvider,Ho.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return Lu(XE)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Gd(XE,Ho.instance()),this._proxyTracerProvider=new hR},e}(),Wr=Fye.getInstance();function si(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function zu(e){return si(e)==="object"}function Wye(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function vR(e,t){return e.length<124?e:t}const qye="graphql-transport-ws";var Gi=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Gi||{}),Ki=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Ki||{});function mR(e){if(!zu(e))throw new Error(`Message is expected to be an object, but got ${si(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${si(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!zu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!zu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${si(e.payload.query)}`);if(e.payload.variables!=null&&!zu(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${si(e.payload.variables)}`);if(e.payload.operationName!=null&&si(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${si(e.payload.operationName)}`);if(e.payload.extensions!=null&&!zu(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${si(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!zu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Wye(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function Vye(e,t){return mR(typeof e=="string"?JSON.parse(e,t):e)}function Xd(e,t){return mR(e),JSON.stringify(e,t)}function Uye(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:l=5,retryWait:c=async function($){const N=Math.pow(2,$);await new Promise(V=>setTimeout(V,N*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=ZE,on:h,webSocketImpl:g,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,$=>{const N=Math.random()*16|0;return($=="x"?N:N&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:m}=e;let b;if(g){if(!Gye(g))throw new Error("Invalid WebSocket implementation provided");b=g}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=b,E=(()=>{const j=(()=>{const N={};return{on(V,Z){return N[V]=Z,()=>{delete N[V]}},emit(V){"id"in V&&N[V.id]?.(V)}}})(),$={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[j.emit,h.message]:[j.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:j.on,on(N,V){const Z=$[N];return Z.push(V),()=>{Z.splice(Z.indexOf(V),1)}},emit(N,...V){for(const Z of[...$[N]])Z(...V)}}})();function S(j){const $=[E.on("error",N=>{$.forEach(V=>V()),j(N)}),E.on("closed",N=>{$.forEach(V=>V()),j(N)})]}let A,O=0,P,k=!1,z=0,F=!1;async function D(){clearTimeout(P);const[j,$]=await(A??(A=new Promise((Z,Y)=>(async()=>{if(k){if(await c(z),!O)return A=void 0,Y({code:1e3,reason:"All Subscriptions Gone"});z++}E.emit("connecting",k);const C=new x(typeof t=="function"?await t():t,qye);let L,H;function K(){isFinite(a)&&a>0&&(clearTimeout(H),H=setTimeout(()=>{C.readyState===x.OPEN&&(C.send(Xd({type:Ki.Ping})),E.emit("ping",!1,void 0))},a))}S(re=>{A=void 0,clearTimeout(L),clearTimeout(H),Y(re),re instanceof yR&&(C.close(4499,"Terminated"),C.onerror=null,C.onclose=null)}),C.onerror=re=>E.emit("error",re),C.onclose=re=>E.emit("closed",re),C.onopen=async()=>{try{E.emit("opened",C);const re=typeof n=="function"?await n():n;if(C.readyState!==x.OPEN)return;C.send(Xd(re?{type:Ki.ConnectionInit,payload:re}:{type:Ki.ConnectionInit},v)),isFinite(u)&&u>0&&(L=setTimeout(()=>{C.close(Gi.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),K()}catch(re){E.emit("error",re),C.close(Gi.InternalClientError,vR(re instanceof Error?re.message:String(re),"Internal client error"))}};let ie=!1;C.onmessage=({data:re})=>{try{const ve=Vye(re,m);if(E.emit("message",ve),ve.type==="ping"||ve.type==="pong"){E.emit(ve.type,!0,ve.payload),ve.type==="pong"?K():s||(C.send(Xd(ve.payload?{type:Ki.Pong,payload:ve.payload}:{type:Ki.Pong})),E.emit("pong",!1,ve.payload));return}if(ie)return;if(ve.type!==Ki.ConnectionAck)throw new Error(`First message cannot be of type ${ve.type}`);clearTimeout(L),ie=!0,E.emit("connected",C,ve.payload,k),k=!1,z=0,Z([C,new Promise((we,me)=>S(me))])}catch(ve){C.onmessage=null,E.emit("error",ve),C.close(Gi.BadResponse,vR(ve instanceof Error?ve.message:String(ve),"Bad response"))}}})())));j.readyState===x.CLOSING&&await $;let N=()=>{};const V=new Promise(Z=>N=Z);return[j,N,Promise.race([V.then(()=>{if(!O){const Z=()=>j.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{j.readyState===x.OPEN&&Z()},o):Z()}}),$])]}function U(j){if(ZE(j)&&(Hye(j.code)||[Gi.InternalServerError,Gi.InternalClientError,Gi.BadRequest,Gi.BadResponse,Gi.Unauthorized,Gi.SubprotocolNotAcceptable,Gi.SubscriberAlreadyExists,Gi.TooManyInitialisationRequests].includes(j.code)))throw j;if(F)return!1;if(ZE(j)&&j.code===1e3)return O>0;if(!l||z>=l||!d(j))throw j;return k=!0}r||(async()=>{for(O++;;)try{const[,,j]=await D();await j}catch(j){try{if(!U(j))return}catch($){return i?.($)}}})();function R(j,$){const N=y(j);let V=!1,Z=!1,Y=()=>{O--,V=!0};return(async()=>{for(O++;;)try{const[C,L,H]=await D();if(V)return L();const K=E.onMessage(N,ie=>{switch(ie.type){case Ki.Next:{$.next(ie.payload);return}case Ki.Error:{Z=!0,V=!0,$.error(ie.payload),Y();return}case Ki.Complete:{V=!0,Y();return}}});C.send(Xd({id:N,type:Ki.Subscribe,payload:j},v)),Y=()=>{!V&&C.readyState===x.OPEN&&C.send(Xd({id:N,type:Ki.Complete},v)),O--,V=!0,L()},await H.finally(K);return}catch(C){if(!U(C))return}})().then(()=>{Z||$.complete()}).catch(C=>{$.error(C)}),()=>{V||Y()}}return{on:E.on,subscribe:R,iterate(j){const $=[],N={done:!1,error:null,resolve:()=>{}},V=R(j,{next(Y){$.push(Y),N.resolve()},error(Y){N.done=!0,N.error=Y,N.resolve()},complete(){N.done=!0,N.resolve()}}),Z=async function*(){for(;;){for($.length||await new Promise(C=>N.resolve=C);$.length;)yield $.shift();if(N.error)throw N.error;if(N.done)return}}();return Z.throw=async Y=>(N.done||(N.done=!0,N.error=Y,N.resolve()),{done:!0,value:void 0}),Z.return=async()=>(V(),{done:!0,value:void 0}),Z},async dispose(){if(F=!0,A){const[j]=await A;j.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new yR)}}}class yR extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function ZE(e){return zu(e)&&"code"in e&&"reason"in e}function Hye(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function Gye(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const Kye=e=>Uye({url:e.API_URL}),Yye=(e,t,n)=>tl.Observable.create(r=>Kye(n).subscribe({operationName:e.name,query:e.text,variables:t},r)),Xye=(e,t,n)=>tl.Observable.from(fr.with(fr.active(),()=>{const r=Wr.getTracer("RelayNetwork").startSpan("GraphQL fetch");r.setAttribute("variables",JSON.stringify(t)),r.setAttribute("path",e.name);const i=r.spanContext();return fetch(n.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":n.AUTH_SCHEMA,...n.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...n.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(o=>o.json().then(a=>(a.errors?(r.setStatus({code:Bu.ERROR}),r.recordException(JSON.stringify(a.errors))):r.setStatus({code:Bu.OK}),a))).catch(o=>{r.setStatus({code:Bu.ERROR}),r.recordException(JSON.stringify(o))}).finally(()=>r.end())})),Zye=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function bR(e){return new tl.Environment({network:tl.Network.create((t,n)=>Xye(t,n,e),(t,n)=>Yye(t,n,e)),store:new tl.Store(new tl.RecordSource),getDataID:Zye})}function Jye({children:e}){const t=Rh(),n=bR(t);return w.jsx(PA.RelayEnvironmentProvider,{environment:n,children:e})}const Qye=(e,t,n)=>{const r=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i],a=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!a)continue;const s=a[1],u=Object.keys(t).find(b=>b.includes(`${s}/loader.ts`)),l=Object.keys(n).find(b=>b.includes(`${s}/action.ts`)),c=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),d=s==="index"?"/":`${c.toLowerCase()}`,h=M.lazy(o),g=M.lazy(async()=>({default:(await o()).icon||oB})),y=u?t[u].default:void 0,v=l?n[l].default:void 0,m={id:d,Icon:g,name:c,path:d,element:w.jsx(M.Suspense,{fallback:w.jsx(Ih,{}),children:w.jsx(h,{})}),...u?{loader:y}:{},...l?{action:v}:{}};r.push(m)}return r};var wR=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(wR||{});const e1e={createState:e=>{const t=DA.atom(e),n=DA.getDefaultStore();return{get:()=>n.get(t),set:r=>n.set(t,r),subscribe:r=>{const i=()=>{const o=n.get(t);r(o)};return n.sub(t,i)}}},type:"jotaiAdapter"};function t1e(){return{createState:e=>{const t=Hc.atom({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Hc.useRecoilValue(t)),set:o=>{console.log("Setting value to Recoil atom"),Hc.useSetRecoilState(t)(o)},subscribe:o=>(console.log("Subscribing to Recoil atom"),Hc.useRecoilCallback(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;o(u)}))}},type:"recoilAdapter"}}function _R(){return M.createContext([!1,{}])}function n1e({timer:e,children:t}){const n=qA(e),r=_R();return w.jsx(r.Provider,{value:n,children:t})}const xR={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:{MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:aB}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},typography:{fontFamily:"Manrope"}},r1e={light:e=>RA.deepmerge({...xR,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>RA.deepmerge({...xR,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function i1e({children:e,theme:t}){const[n]=al();return w.jsx(ae.ThemeProvider,{theme:ae.createTheme(r1e[n](t)),children:e})}const o1e=(e,t,n)=>{if(!Sc(e))return;const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()+t);break;case"seconds":r.setSeconds(r.getSeconds()+t);break;case"minutes":r.setMinutes(r.getMinutes()+t);break;case"hours":r.setHours(r.getHours()+t);break;case"days":r.setDate(r.getDate()+t);break;case"weeks":r.setDate(r.getDate()+t*7);break;case"months":r.setMonth(r.getMonth()+t);break;case"years":r.setFullYear(r.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r};var ER=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(ER||{});const a1e=(e,t,n="milliseconds")=>{if(!Sc(e)||!Sc(t))return;const r=new Date(e).getTime();return(new Date(t).getTime()-r)/ER[n]},s1e=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",n?`${n}h`:"",r?`${r}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},u1e=(e,t,n)=>{if(!Sc(e))throw new Error("Invalid Date");const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()-t);break;case"seconds":r.setSeconds(r.getSeconds()-t);break;case"minutes":r.setMinutes(r.getMinutes()-t);break;case"hours":r.setHours(r.getHours()-t);break;case"days":r.setDate(r.getDate()-t);break;case"weeks":r.setDate(r.getDate()-t*7);break;case"months":r.setMonth(r.getMonth()-t);break;case"years":r.setFullYear(r.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r},l1e=(e,t)=>e<=1?12:Math.floor(12/t),c1e=(e,t)=>(e&t)===t;function f1e(e){const t={};function n(r){Object.prototype.hasOwnProperty.call(r,"edges")&&(t.edges=r.edges);for(const i in r)typeof r[i]=="object"&&r[i]!==null&&n(r[i])}return n(e),t}const d1e=(e,t)=>{if(e==null)return 0;if(isNaN(e))return e;const n=[...Array(t)].reduce(r=>r+"0",".");return e.toFixed(t).toString().replace(n,"")},SR=zE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function h1e(e){return e.setValue(SR,!0)}function JE(e){return e.getValue(SR)===!0}const p1e="=",QE=";",eS=",",tS="baggage",g1e=180,v1e=4096,m1e=8192;function y1e(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?eS:""}${n}`;return r.length>m1e?t:r},"")}function b1e(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=QE+n.metadata.toString()),r})}function w1e(e){const t=e.split(QE);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(p1e);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let a;return t.length>0&&(a=Kme(t.join(QE))),{key:i,value:o,metadata:a}}class _1e{inject(t,n,r){const i=Go.getBaggage(t);if(!i||JE(t))return;const o=b1e(i).filter(s=>s.length<=v1e).slice(0,g1e),a=y1e(o);a.length>0&&r.set(n,tS,a)}extract(t,n,r){const i=r.get(n,tS),o=Array.isArray(i)?i.join(eS):i;if(!o)return t;const a={};return o.length===0||(o.split(eS).forEach(u=>{const l=w1e(u);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c}}),Object.entries(a).length===0)?t:Go.setBaggage(t,Go.createBaggage(a))}fields(){return[tS]}}function z0(e){const t={};if(typeof e!="object"||e==null)return t;for(const[n,r]of Object.entries(e)){if(!x1e(n)){Wt.warn(`Invalid attribute key: ${n}`);continue}if(!AR(r)){Wt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function x1e(e){return typeof e=="string"&&e.length>0}function AR(e){return e==null?!0:Array.isArray(e)?E1e(e):TR(e)}function E1e(e){let t;for(const n of e)if(n!=null){if(!t){if(TR(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function TR(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function S1e(){return e=>{Wt.error(A1e(e))}}function A1e(e){return typeof e=="string"?e:JSON.stringify(T1e(e))}function T1e(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let O1e=S1e();function nS(e){try{O1e(e)}catch{}}function jOe(e){}const rS=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Pc=performance,P1e="2.0.1",C1e="error.type",iS="exception.message",j1e="exception.stacktrace",oS="exception.type",M1e="http.request.method",k1e="http.request.method_original",I1e="http.response.status_code",D1e="server.address",R1e="server.port",OR="service.name",aS="telemetry.sdk.language",N1e="webjs",sS="telemetry.sdk.name",uS="telemetry.sdk.version",L1e="url.full",$1e="process.runtime.name",lS={[sS]:"opentelemetry",[$1e]:"browser",[aS]:N1e,[uS]:P1e},B1e=9,z1e=Math.pow(10,6),F0=Math.pow(10,B1e);function Da(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*z1e);return[n,r]}function cS(){let e=Pc.timeOrigin;if(typeof e!="number"){const t=Pc;e=t.timing&&t.timing.fetchStart}return e}function W0(e){const t=Da(cS()),n=Da(typeof e=="number"?e:Pc.now());return jR(t,n)}function Zd(e){if(fS(e))return e;if(typeof e=="number")return e<cS()?W0(e):Da(e);if(e instanceof Date)return Da(e.getTime());throw TypeError("Invalid input type")}function F1e(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=F0),[n,r]}function Ra(e){return e[0]*F0+e[1]}function PR(e){return e[0]*1e6+e[1]/1e3}function fS(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function CR(e){return fS(e)||typeof e=="number"||e instanceof Date}function jR(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=F0&&(n[1]-=F0,n[0]+=1),n}var go;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(go||(go={}));class W1e{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(o){Wt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(t,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(a){Wt.warn(`Failed to extract with ${o.constructor.name}. Err: ${a.message}`)}return i},t)}fields(){return this._fields.slice()}}const dS="[_0-9a-z-*/]",q1e=`[a-z]${dS}{0,255}`,V1e=`[a-z0-9]${dS}{0,240}@[a-z]${dS}{0,13}`,U1e=new RegExp(`^(?:${q1e}|${V1e})$`),H1e=/^[ -~]{0,255}[!-~]$/,G1e=/,|=/;function K1e(e){return U1e.test(e)}function Y1e(e){return H1e.test(e)&&!G1e.test(e)}const MR=32,X1e=512,kR=",",IR="=";class hS{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+IR+this.get(n)),t),[]).join(kR)}_parse(t){t.length>X1e||(this._internalState=t.split(kR).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(IR);if(o!==-1){const a=i.slice(0,o),s=i.slice(o+1,r.length);K1e(a)&&Y1e(s)&&n.set(a,s)}return n},new Map),this._internalState.size>MR&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MR))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new hS;return t._internalState=new Map(this._internalState),t}}const pS="traceparent",gS="tracestate",Z1e="00",J1e="(?!ff)[\\da-f]{2}",Q1e="(?![0]{32})[\\da-f]{32}",ebe="(?![0]{16})[\\da-f]{16}",tbe="[\\da-f]{2}",nbe=new RegExp(`^\\s?(${J1e})-(${Q1e})-(${ebe})-(${tbe})(-.*)?\\s?$`);function rbe(e){const t=nbe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class ibe{inject(t,n,r){const i=Wr.getSpanContext(t);if(!i||JE(t)||!L0(i))return;const o=`${Z1e}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ia.NONE).toString(16)}`;r.set(n,pS,o),i.traceState&&r.set(n,gS,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,pS);if(!i)return t;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;const a=rbe(o);if(!a)return t;a.isRemote=!0;const s=r.get(n,gS);if(s){const u=Array.isArray(s)?s.join(","):s;a.traceState=new hS(typeof u=="string"?u:void 0)}return Wr.setSpanContext(t,a)}fields(){return[pS,gS]}}const obe="[object Object]",abe="[object Null]",sbe="[object Undefined]",DR=Function.prototype.toString,ube=DR.call(Object),lbe=Object.getPrototypeOf,RR=Object.prototype,NR=RR.hasOwnProperty,Fu=Symbol?Symbol.toStringTag:void 0,LR=RR.toString;function $R(e){if(!cbe(e)||fbe(e)!==obe)return!1;const t=lbe(e);if(t===null)return!0;const n=NR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&DR.call(n)===ube}function cbe(e){return e!=null&&typeof e=="object"}function fbe(e){return e==null?e===void 0?sbe:abe:Fu&&Fu in Object(e)?dbe(e):hbe(e)}function dbe(e){const t=NR.call(e,Fu),n=e[Fu];let r=!1;try{e[Fu]=void 0,r=!0}catch{}const i=LR.call(e);return r&&(t?e[Fu]=n:delete e[Fu]),i}function hbe(e){return LR.call(e)}const pbe=20;function gbe(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=BR(t,e.shift(),0,n);return t}function vS(e){return q0(e)?e.slice():e}function BR(e,t,n=0,r){let i;if(!(n>pbe)){if(n++,V0(e)||V0(t)||FR(t))i=vS(t);else if(q0(e)){if(i=e.slice(),q0(t))for(let o=0,a=t.length;o<a;o++)i.push(vS(t[o]));else if(Jd(t)){const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a];i[u]=vS(t[u])}}}else if(Jd(e))if(Jd(t)){if(!vbe(e,t))return t;i=Object.assign({},e);const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a],l=t[u];if(V0(l))typeof l>"u"?delete i[u]:i[u]=l;else{const c=i[u],d=l;if(zR(e,u,r)||zR(t,u,r))delete i[u];else{if(Jd(c)&&Jd(d)){const h=r.get(c)||[],g=r.get(d)||[];h.push({obj:e,key:u}),g.push({obj:t,key:u}),r.set(c,h),r.set(d,g)}i[u]=BR(i[u],l,n,r)}}}}else i=t;return i}}function zR(e,t,n){const r=n.get(e[t])||[];for(let i=0,o=r.length;i<o;i++){const a=r[i];if(a.key===t&&a.obj===e)return!0}return!1}function q0(e){return Array.isArray(e)}function FR(e){return typeof e=="function"}function Jd(e){return!V0(e)&&!q0(e)&&!FR(e)&&typeof e=="object"}function V0(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function vbe(e,t){return!(!$R(e)||!$R(t))}function WR(e,t){return typeof t=="string"?e===t:!!e.match(t)}function mbe(e,t){if(!t)return!1;for(const n of t)if(WR(e,n))return!0;return!1}class ybe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class bbe{_callback;_that;_isCalled=!1;_deferred=new ybe;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function wbe(e,t){return new Promise(n=>{fr.with(h1e(fr.active()),()=>{e.export(t,r=>{n(r)})})})}const _be={_export:wbe};function xbe(){return"unknown_service"}const Qd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class U0{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const n=new U0({});return n._rawAttributes=VR(t),n._asyncAttributesPending=t.filter(([r,i])=>Qd(i)).length>0,n}constructor(t){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Qd(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=VR(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,Qd(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[n,r]of this._rawAttributes){if(Qd(r)){Wt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:U0.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function qR(e){return U0.FromAttributeList(Object.entries(e))}function Ebe(){return qR({[OR]:xbe(),[aS]:lS[aS],[sS]:lS[sS],[uS]:lS[uS]})}function VR(e){return e.map(([t,n])=>Qd(n)?[t,n.catch(r=>{Wt.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}const Sbe="exception";class Abe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Bu.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Pc.now(),this._performanceOffset=n-(this._performanceStartTime+cS()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return Wt.warn(`Invalid attribute key: ${t}`),this;if(!AR(n))return Wt.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Wt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Wt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),CR(n)&&(CR(r)||(r=n),n=void 0);const o=z0(n);return this.events.push({name:t,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Wt.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=F1e(this.startTime,this.endTime),this._duration[0]<0&&(Wt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Pc.now())return W0(t+this._performanceOffset);if(typeof t=="number")return Da(t);if(t instanceof Date)return Da(t.getTime());if(fS(t))return t;if(this._startTimeProvided)return Da(Date.now());const n=Pc.now()-this._performanceStartTime;return jR(this.startTime,Da(n))}isRecording(){return this._ended===!1}recordException(t,n){const r={};typeof t=="string"?r[iS]=t:t&&(t.code?r[oS]=t.code.toString():t.name&&(r[oS]=t.name),t.message&&(r[iS]=t.message),t.stack&&(r[j1e]=t.stack)),r[oS]||r[iS]?this.addEvent(Sbe,r,n):Wt.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(Wt.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var Cc;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Cc||(Cc={}));class H0{shouldSample(){return{decision:Cc.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class jc{shouldSample(){return{decision:Cc.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class G0{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(nS(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new jc),this._remoteParentSampled=t.remoteParentSampled??new jc,this._remoteParentNotSampled=t.remoteParentNotSampled??new H0,this._localParentSampled=t.localParentSampled??new jc,this._localParentNotSampled=t.localParentNotSampled??new H0}shouldSample(t,n,r,i,o,a){const s=Wr.getSpanContext(t);return!s||!L0(s)?this._root.shouldSample(t,n,r,i,o,a):s.isRemote?s.traceFlags&Ia.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(t,n,r,i,o,a):s.traceFlags&Ia.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,o,a):this._localParentNotSampled.shouldSample(t,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class UR{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:fR(n)&&this._accumulate(n)<this._upperBound?Cc.RECORD_AND_SAMPLED:Cc.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,o=parseInt(t.slice(i,i+8),16);n=(n^o)>>>0}return n}}const HR=1;function GR(){return{sampler:KR(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function KR(){const e="parentbased_always_on";switch(e){case"always_on":return new jc;case"always_off":return new H0;case"parentbased_always_on":return new G0({root:new jc});case"parentbased_always_off":return new G0({root:new H0});case"traceidratio":return new UR(YR());case"parentbased_traceidratio":return new G0({root:new UR(YR())});default:return Wt.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new G0({root:new jc})}}function YR(){return Wt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${HR}.`),HR}const Tbe=128,Obe=1/0;function Pbe(e){const t={sampler:KR()},n=GR(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function Cbe(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??Tbe,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??Obe,Object.assign({},e,{spanLimits:t})}const jbe=8,Mbe=16;class kbe{generateTraceId=XR(Mbe);generateSpanId=XR(jbe)}const K0=Array(32);function XR(e){return function(){for(let n=0;n<e*2;n++)K0[n]=Math.floor(Math.random()*16)+48,K0[n]>=58&&(K0[n]+=39);return String.fromCharCode.apply(null,K0.slice(0,e*2))}}class Ibe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const o=Pbe(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new kbe,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=fr.active()){n.root&&(r=Wr.deleteSpan(r));const i=Wr.getSpan(r);if(JE(r))return Wt.debug("Instrumentation suppressed, returning Noop Span"),Wr.wrapSpanContext(lR);const o=i?.spanContext(),a=this._idGenerator.generateSpanId();let s,u,l;!o||!Wr.isSpanContextValid(o)?u=this._idGenerator.generateTraceId():(u=o.traceId,l=o.traceState,s=o);const c=n.kind??B0.INTERNAL,d=(n.links??[]).map(x=>({context:x.context,attributes:z0(x.attributes)})),h=z0(n.attributes),g=this._sampler.shouldSample(r,u,t,c,h,d);l=g.traceState??l;const y=g.decision===$0.RECORD_AND_SAMPLED?Ia.SAMPLED:Ia.NONE,v={traceId:u,spanId:a,traceFlags:y,traceState:l};if(g.decision===$0.NOT_RECORD)return Wt.debug("Recording is off, propagating context in a non-recording span"),Wr.wrapSpanContext(v);const m=z0(Object.assign(h,g.attributes));return new Abe({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:v,name:t,kind:c,links:d,parentSpanContext:s,attributes:m,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let o,a,s;if(arguments.length<2)return;arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);const u=a??fr.active(),l=this.startSpan(t,o,u),c=Wr.setSpan(u,l);return fr.with(c,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Dbe{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{nS(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var Wu;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Wu||(Wu={}));class Rbe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=gbe({},GR(),Cbe(t));this._resource=n.resource??Ebe(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new Dbe(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new Ibe({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const a=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),o=Wu.timeout},t);r.forceFlush().then(()=>{clearTimeout(a),o!==Wu.timeout&&(o=Wu.resolved,i(o))}).catch(s=>{clearTimeout(a),o=Wu.error,i(s)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const a=o.filter(s=>s!==Wu.resolved);a.length>0?i(a):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Nbe{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:PR(t.startTime),duration:PR(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:go.SUCCESS})}}class ZR{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new bbe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,n){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Ia.SAMPLED)===0)return;const n=this._doExport(t).catch(r=>nS(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const n=await _be._export(this._exporter,[t]);if(n.code!==go.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Lbe{_enabled=!1;_currentContext=ka;_bindFunction(t=ka,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=ka,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=ka,this)}with(t,n,r,...i){const o=this._currentContext;this._currentContext=t||ka;try{return n.call(r,...i)}finally{this._currentContext=o}}}function $be(e){if(e!==null){if(e===void 0){const t=new Lbe;t.enable(),fr.setGlobalContextManager(t);return}e.enable(),fr.setGlobalContextManager(e)}}function Bbe(e){if(e!==null){if(e===void 0){Go.setGlobalPropagator(new W1e({propagators:[new ibe,new _1e]}));return}Go.setGlobalPropagator(e)}}class zbe extends Rbe{constructor(t={}){super(t)}register(t={}){Wr.setGlobalTracerProvider(this),Bbe(t.propagator),$be(t.contextManager)}}var dn;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(dn||(dn={}));const Fbe="http.response_content_length",Wbe="http.response_content_length_uncompressed";let mS;function qbe(){return mS||(mS=document.createElement("a")),mS}function Vbe(e,t){return t in e}function Na(e,t,n,r=!0){if(Vbe(n,t)&&typeof n[t]=="number"&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function JR(e,t,n=!1,r,i){if(r===void 0&&(r=t[dn.START_TIME]!==0),n||(Na(e,dn.FETCH_START,t,r),Na(e,dn.DOMAIN_LOOKUP_START,t,r),Na(e,dn.DOMAIN_LOOKUP_END,t,r),Na(e,dn.CONNECT_START,t,r),Na(e,dn.SECURE_CONNECTION_START,t,r),Na(e,dn.CONNECT_END,t,r),Na(e,dn.REQUEST_START,t,r),Na(e,dn.RESPONSE_START,t,r),Na(e,dn.RESPONSE_END,t,r)),!i){const o=t[dn.ENCODED_BODY_SIZE];o!==void 0&&e.setAttribute(Fbe,o);const a=t[dn.DECODED_BODY_SIZE];a!==void 0&&o!==a&&e.setAttribute(Wbe,a)}}function Ube(e){return e.slice().sort((t,n)=>{const r=t[dn.FETCH_START],i=n[dn.FETCH_START];return r>i?1:r<i?-1:0})}function QR(){return typeof location<"u"?location.origin:void 0}function Hbe(e,t,n,r,i=new WeakSet,o){const a=Y0(e);e=a.toString();const s=Kbe(e,t,n,r,i,o);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=Ube(s);if(a.origin!==QR()&&u.length>1){let l=u[0],c=Gbe(u,l[dn.RESPONSE_END],n);const d=l[dn.RESPONSE_END];return c[dn.FETCH_START]<d&&(c=l,l=void 0),{corsPreFlightRequest:l,mainRequest:c}}else return{mainRequest:s[0]}}function Gbe(e,t,n){const r=Ra(n),i=Ra(Zd(t));let o=e[1],a;const s=e.length;for(let u=1;u<s;u++){const l=e[u],c=Ra(Zd(l[dn.FETCH_START])),d=Ra(Zd(l[dn.RESPONSE_END])),h=r-d;c>=i&&(!a||h<a)&&(a=h,o=l)}return o}function Kbe(e,t,n,r,i,o){const a=Ra(t),s=Ra(n);let u=r.filter(l=>{const c=Ra(Zd(l[dn.FETCH_START])),d=Ra(Zd(l[dn.RESPONSE_END]));return l.initiatorType.toLowerCase()===o&&l.name===e&&c>=a&&d<=s});return u.length>0&&(u=u.filter(l=>!i.has(l))),u}function Y0(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=qbe();return t.href=e,t}function Ybe(e,t){let n=t||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),Y0(e).origin===QR()?!0:n.some(i=>WR(e,i))}class Xbe{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class eN extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function Zbe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Jbe(e){if(e!=null)return()=>e}function Qbe(e,t,n){return{timeoutMillis:Zbe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function ewe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class twe{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function nwe(e){return new twe(e.concurrencyLimit)}function rwe(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function iwe(){return{handleResponse(e){e==null||!rwe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wt.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class owe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,o){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=Wt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:go.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:go.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:go.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:go.FAILED,error:i.error});return}else i.status==="retryable"?n({code:go.FAILED,error:new eN("Export failed with retryable status")}):n({code:go.FAILED,error:new eN("Export failed with unknown error")})},i=>n({code:go.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function awe(e,t){return new owe(e.transport,e.serializer,iwe(),e.promiseHandler,t.timeout)}function tN(e,t,n){return awe({transport:n,serializer:t,promiseHandler:nwe(e)},{timeout:e.timeoutMillis})}function nN(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function rN(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=nN(e.charCodeAt(r)),o=nN(e.charCodeAt(r+1));t[n++]=i<<4|o}return t}function iN(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function swe(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function uwe(e){const t=iN(e);return swe(t)}function lwe(e){return iN(e).toString()}const cwe=typeof BigInt<"u"?lwe:Ra;function oN(e){return e}function fwe(e){if(e!==void 0)return rN(e)}const dwe={encodeHrTime:uwe,encodeSpanContext:rN,encodeOptionalSpanContext:fwe};function hwe(e){return e===void 0?dwe:{encodeHrTime:cwe,encodeSpanContext:oN,encodeOptionalSpanContext:oN}}function pwe(e){return{attributes:X0(e.attributes),droppedAttributesCount:0}}function gwe(e){return{name:e.name,version:e.version}}function X0(e){return Object.keys(e).map(t=>aN(t,e[t]))}function aN(e,t){return{key:e,value:sN(t)}}function sN(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(sN)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>aN(n,r))}}:{}}function vwe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:X0(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(o=>ywe(o,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(o=>mwe(o,t)),droppedLinksCount:e.droppedLinksCount}}function mwe(e,t){return{attributes:e.attributes?X0(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function ywe(e,t){return{attributes:e.attributes?X0(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function bwe(e,t){const n=hwe(t);return{resourceSpans:_we(e,n)}}function wwe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return t}function _we(e,t){const n=wwe(e),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[a,s]=o.value,u=[],l=s.values();let c=l.next();for(;!c.done;){const h=c.value;if(h.length>0){const g=h.map(y=>vwe(y,t));u.push({scope:gwe(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}c=l.next()}const d={resource:pwe(a),scopeSpans:u,schemaUrl:void 0};r.push(d),o=i.next()}return r}const xwe={serializeRequest:e=>{const t=bwe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},Ewe=5,Swe=1e3,Awe=5e3,Twe=1.5,uN=.2;function Owe(){return Math.random()*(2*uN)-uN}class Pwe{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(t,n).then(i,o)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),o=Ewe,a=Swe;for(;i.status==="retryable"&&o>0;){o--;const s=Math.max(Math.min(a,Awe)+Owe(),0);a=a*Twe;const u=i.retryInMillis??s,l=r-Date.now();if(u>l)return i;i=await this.retry(t,l,u)}return i}shutdown(){return this._transport.shutdown()}}function lN(e){return new Pwe(e.transport)}function Cwe(e){return[429,502,503,504].includes(e)}function jwe(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class Mwe{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([a,s])=>{i.setRequestHeader(a,s)}),i.ontimeout=a=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Wt.debug("XHR success"),r({status:"success"})):i.status&&Cwe(i.status)?r({status:"retryable",retryInMillis:jwe(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function kwe(e){return new Mwe(e)}class Iwe{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Wt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function Dwe(e){return new Iwe(e)}function Rwe(e,t){return tN(e,t,lN({transport:kwe(e)}))}function Nwe(e,t){return tN(e,t,lN({transport:Dwe({url:e.url,blobType:e.headers()["Content-Type"]})}))}function Lwe(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):Wt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function $we(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function Bwe(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function zwe(e,t,n){return{...Qbe(e,t,n),headers:$we(Lwe(e.headers),t.headers,n.headers),url:Bwe(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function Fwe(e,t){return{...ewe(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function Wwe(e,t,n){return zwe({url:e.url,timeoutMillis:e.timeoutMillis,headers:Jbe(e.headers),concurrencyLimit:e.concurrencyLimit},{},Fwe(n,t))}function qwe(e,t,n,r){const i=!!e.headers||typeof navigator.sendBeacon!="function",o=Wwe(e,n,r);return i?Rwe(o,t):Nwe(o,t)}class Vwe extends Xbe{constructor(t={}){super(qwe(t,xwe,"v1/traces",{"Content-Type":"application/json"}))}}class cN{emit(t){}}const Uwe=new cN;class Hwe{getLogger(t,n,r){return new cN}}const fN=new Hwe;class Gwe{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Uwe}}class dN{getLogger(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new Gwe(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:fN}setDelegate(t){this._delegate=t}getDelegateLogger(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)}}const Kwe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Z0=Symbol.for("io.opentelemetry.js.api.logs"),eh=Kwe;function Ywe(e,t,n){return r=>r===e?t:n}const hN=1;class yS{constructor(){this._proxyLoggerProvider=new dN}static getInstance(){return this._instance||(this._instance=new yS),this._instance}setGlobalLoggerProvider(t){return eh[Z0]?this.getLoggerProvider():(eh[Z0]=Ywe(hN,t,fN),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,n;return(n=(t=eh[Z0])===null||t===void 0?void 0:t.call(eh,hN))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)}disable(){delete eh[Z0],this._proxyLoggerProvider=new dN}}const pN=yS.getInstance();function Xwe(e,t,n,r){for(let i=0,o=e.length;i<o;i++){const a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function Zwe(e){e.forEach(t=>t.disable())}function Jwe(e){const t=e.tracerProvider||Wr.getTracerProvider(),n=e.meterProvider||pR.getMeterProvider(),r=e.loggerProvider||pN.getLoggerProvider(),i=e.instrumentations?.flat()??[];return Xwe(i,t,n,r),()=>{Zwe(i)}}let Ai=console.error.bind(console);function th(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const gN=(e,t,n)=>{if(!e||!e[t]){Ai("no original function "+String(t)+" to wrap");return}if(!n){Ai("no wrapper function"),Ai(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof n!="function"){Ai("original object and wrapper must be functions");return}const i=n(r,t);return th(i,"__original",r),th(i,"__unwrap",()=>{e[t]===i&&th(e,t,r)}),th(i,"__wrapped",!0),th(e,t,i),i},Qwe=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Ai("must provide one or more modules to patch"),Ai(new Error().stack);return}if(!(t&&Array.isArray(t))){Ai("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(i=>{gN(r,i,n)})})},vN=(e,t)=>{if(!e||!e[t]){Ai("no function to unwrap."),Ai(new Error().stack);return}const n=e[t];if(!n.__unwrap)Ai("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{n.__unwrap();return}},e_e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ai("must provide one or more modules to patch"),Ai(new Error().stack);return}if(!(t&&Array.isArray(t))){Ai("must provide one or more functions to unwrap on modules");return}e.forEach(n=>{t.forEach(r=>{vN(n,r)})})};class t_e{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this.setConfig(r),this._diag=Wt.createComponentLogger({namespace:t}),this._tracer=Wr.getTracer(t,n),this._meter=pR.getMeter(t,n),this._logger=pN.getLogger(t,n),this._updateMetricInstruments()}_wrap=gN;_unwrap=vN;_massWrap=Qwe;_massUnwrap=e_e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,n,r,i){if(t)try{t(r,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},o)}}}class n_e extends t_e{constructor(t,n,r){super(t,n,r),this._config.enabled&&this.enable()}}function mN(e,t,n){let r,i;try{i=e()}catch(o){r=o}finally{return t(r,i),i}}function r_e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var ui;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(ui||(ui={}));function i_e(e,t){let n=ui.OLD;const r=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of r??[])if(i.toLowerCase()===e+"/dup"){n=ui.DUPLICATE;break}else i.toLowerCase()===e&&(n=ui.STABLE);return n}var J0;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(J0||(J0={}));var In={},yN;function o_e(){return yN||(yN=1,Object.defineProperty(In,"__esModule",{value:!0}),In.ATTR_HTTP_USER_AGENT=In.ATTR_HTTP_URL=In.ATTR_HTTP_STATUS_CODE=In.ATTR_HTTP_SCHEME=In.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=In.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=In.ATTR_HTTP_REQUEST_BODY_SIZE=In.ATTR_HTTP_METHOD=In.ATTR_HTTP_HOST=void 0,In.ATTR_HTTP_HOST="http.host",In.ATTR_HTTP_METHOD="http.method",In.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",In.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",In.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",In.ATTR_HTTP_SCHEME="http.scheme",In.ATTR_HTTP_STATUS_CODE="http.status_code",In.ATTR_HTTP_URL="http.url",In.ATTR_HTTP_USER_AGENT="http.user_agent"),In}var As=o_e();const bN=Wt.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function a_e(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:r}=s_e(t.body);return t.body=n,r}else return Promise.resolve(l_e(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(n=>bS(n)):Promise.resolve()}}function s_e(e){if(!e.pipeThrough)return bN.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,n;const r=new Promise(o=>{n=o}),i=new TransformStream({start(){},async transform(o,a){const s=await o;t+=s.byteLength,a.enqueue(o)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function u_e(e){return typeof Document<"u"&&e instanceof Document}function l_e(e){if(u_e(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return bS(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return f_e(e);if(e instanceof URLSearchParams)return bS(e.toString());if(e.byteLength!==void 0)return e.byteLength;bN.warn("unknown body type")}const c_e=new TextEncoder;function bS(e){return c_e.encode(e).byteLength}function f_e(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function d_e(e){const t=p_e(),n=e.toUpperCase();return n in t?n:"_OTHER"}const h_e={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let wS;function p_e(){return wS===void 0&&(wS=h_e),wS}const g_e={"https:":"443","http:":"80"};function v_e(e){const t=Number(e.port||g_e[e.protocol]);if(t&&!isNaN(t))return t}const wN="0.203.0",m_e=300,_N=typeof process=="object"&&process.release?.name==="node";class y_e extends n_e{component="fetch";version=wN;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",wN,t),this._semconvStability=i_e("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const r=this.tracer.startSpan("CORS Preflight",{startTime:n[dn.FETCH_START]},Wr.setSpan(fr.active(),t)),i=!(this._semconvStability&ui.OLD);JR(r,n,this.getConfig().ignoreNetworkEvents,void 0,i),r.end(n[dn.RESPONSE_END])}_addFinalSpanAttributes(t,n){const r=Y0(n.url);if(this._semconvStability&ui.OLD&&(t.setAttribute(As.ATTR_HTTP_STATUS_CODE,n.status),n.statusText!=null&&t.setAttribute(J0.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(As.ATTR_HTTP_HOST,r.host),t.setAttribute(As.ATTR_HTTP_SCHEME,r.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(As.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&ui.STABLE){t.setAttribute(I1e,n.status),t.setAttribute(D1e,r.hostname);const i=v_e(r);i&&t.setAttribute(R1e,i)}}_addHeaders(t,n){if(!Ybe(n,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};Go.inject(fr.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Go.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Headers)Go.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Map)Go.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else{const r={};Go.inject(fr.active(),r),t.headers=Object.assign({},r,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(mbe(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let r="";const i={};if(this._semconvStability&ui.OLD){const o=(n.method||"GET").toUpperCase();r=`HTTP ${o}`,i[J0.COMPONENT]=this.moduleName,i[As.ATTR_HTTP_METHOD]=o,i[As.ATTR_HTTP_URL]=t}if(this._semconvStability&ui.STABLE){const o=n.method,a=d_e(n.method||"GET");r||(r=a),i[M1e]=a,a!==o&&(i[k1e]=o),i[L1e]=t}return this.tracer.startSpan(r,{kind:B0.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,n,r){let i=n.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const o=Hbe(n.spanUrl,n.startTime,r,i,this._usedResources,"fetch");if(o.mainRequest){const a=o.mainRequest;this._markResourceAsUsed(a);const s=o.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&ui.OLD);JR(t,a,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,r){const i=Da(Date.now()),o=W0();this._addFinalSpanAttributes(t,r),this._semconvStability&ui.STABLE&&r.status>=400&&(t.setStatus({code:Bu.ERROR}),t.setAttribute(C1e,String(r.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,o),this._tasksCount--,this._clearResources(),t.end(i)},m_e)}_patchConstructor(){return t=>{const n=this;return function(...i){const o=this,a=Y0(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=n._createSpan(a,s);if(!u)return t.apply(this,i);const l=n._prepareSpanData(a);n.getConfig().measureRequestSize&&a_e(...i).then(y=>{y&&(n._semconvStability&ui.OLD&&u.setAttribute(As.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,y),n._semconvStability&ui.STABLE&&u.setAttribute(As.ATTR_HTTP_REQUEST_BODY_SIZE,y))}).catch(y=>{n._diag.warn("getFetchBodyLength",y)});function c(y,v){n._applyAttributesAfterFetch(y,s,v),n._endSpan(y,l,{status:v.status||0,statusText:v.message,url:a})}function d(y,v){n._applyAttributesAfterFetch(y,s,v),v.status>=200&&v.status<400?n._endSpan(y,l,v):n._endSpan(y,l,{status:v.status,statusText:v.statusText,url:a})}function h(y,v,m){try{const x=m.clone().body;if(x){const E=x.getReader(),S=()=>{E.read().then(({done:A})=>{A?d(y,m):S()},A=>{c(y,A)})};S()}else d(y,m)}finally{v(m)}}function g(y,v,m){try{c(y,m)}finally{v(m)}}return new Promise((y,v)=>fr.with(Wr.setSpan(fr.active(),u),()=>(n._addHeaders(s,a),n._callRequestHook(u,s),n._tasksCount++,t.apply(o,s instanceof Request?[s]:[a,s]).then(h.bind(o,u,y),g.bind(o,u,v)))))}}}_applyAttributesAfterFetch(t,n,r){const i=this.getConfig().applyCustomAttributesOnSpan;i&&mN(()=>i(t,n,r),o=>{o&&this._diag.error("applyCustomAttributesOnSpan",o)})}_callRequestHook(t,n){const r=this.getConfig().requestHook;r&&mN(()=>r(t,n),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const n=W0(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:n,spanUrl:t};const i=new PerformanceObserver(o=>{o.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&r.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:r,observer:i,startTime:n,spanUrl:t}}enable(){if(_N){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}r_e(fetch)&&(this._unwrap(rS,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(rS,"fetch",this._patchConstructor())}disable(){_N||(this._unwrap(rS,"fetch"),this._usedResources=new WeakSet)}}function b_e(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const xN="OT_ZONE_CONTEXT";class w_e{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(xN)||ka}_bindFunction(t,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[xN]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(o,a,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[o];u===void 0&&(u=new WeakMap,t.__ot_listeners[o]=u);const l=i.bind(r,a);return u.set(a,l),n.call(this,o,l,s)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const o=t.__ot_listeners[r],a=o.get(i);return o.delete(i),n.call(this,r,a||i)}}active(){if(!this._enabled)return ka;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||ka}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(b_e(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const o=this._createZoneName();return this._createZone(o,t).run(n,r,i)}}var EN={},SN;function __e(){if(SN)return EN;SN=1;/**
|
|
224
224
|
* @license Angular v<unknown>
|
|
225
225
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
226
226
|
* License: MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Lists/ListItem.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Lists/ListItem.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,QAAQ,GACT,EAAE,aAAa,2CAiEf"}
|
|
@@ -3,4 +3,5 @@ export { default as ListWrapper } from './ListWrapper';
|
|
|
3
3
|
export { default as ListItem } from './ListItem';
|
|
4
4
|
export { default as Looper } from './Looper';
|
|
5
5
|
export { default as PaginatedList } from './PaginatedList';
|
|
6
|
+
export * from './Types';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Lists/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Lists/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAIzD;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ListItemProps } from './Types';
|
|
1
|
+
import type { ListItemProps } from './Types';
|
|
2
2
|
export default function ListItem({ id, texts, primaryText, secondaryText, primaryTextStyle, secondaryTextStyle, disabled, selected, onClick, icon, endIcon, secondaryAction, reverseInformations, dividers, }: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/ListItem.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/ListItem.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,QAAQ,GACT,EAAE,aAAa,2CAiEf"}
|
|
@@ -3,4 +3,5 @@ export { default as ListWrapper } from './ListWrapper';
|
|
|
3
3
|
export { default as ListItem } from './ListItem';
|
|
4
4
|
export { default as Looper } from './Looper';
|
|
5
5
|
export { default as PaginatedList } from './PaginatedList';
|
|
6
|
+
export * from './Types';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAIzD;AAED,eAAe,gBAAgB,CAAC"}
|