@icanbwell/composite 1.421.0 → 1.422.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.
@@ -1,4 +1,4 @@
1
- (globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[598],{8575:(we,z,g)=>{const O=Symbol("SemVer ANY");class p{static get ANY(){return O}constructor(j,W){if(W=$(W),j instanceof p){if(j.loose===!!W.loose)return j;j=j.value}j=j.trim().split(/\s+/).join(" "),M("comparator",j,W),this.options=W,this.loose=!!W.loose,this.parse(j),this.semver===O?this.value="":this.value=this.operator+this.semver.version,M("comp",this)}parse(j){const W=this.options.loose?ee[ce.COMPARATORLOOSE]:ee[ce.COMPARATOR],F=j.match(W);if(!F)throw new TypeError(`Invalid comparator: ${j}`);this.operator=F[1]!==void 0?F[1]:"",this.operator==="="&&(this.operator=""),F[2]?this.semver=new N(F[2],this.options.loose):this.semver=O}toString(){return this.value}test(j){if(M("Comparator.test",j,this.options.loose),this.semver===O||j===O)return!0;if(typeof j=="string")try{j=new N(j,this.options)}catch{return!1}return Y(j,this.operator,this.semver,this.options)}intersects(j,W){if(!(j instanceof p))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new L(j.value,W).test(this.value):j.operator===""?j.value===""?!0:new L(this.value,W).test(j.semver):(W=$(W),W.includePrerelease&&(this.value==="<0.0.0-0"||j.value==="<0.0.0-0")||!W.includePrerelease&&(this.value.startsWith("<0.0.0")||j.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&j.operator.startsWith(">")||this.operator.startsWith("<")&&j.operator.startsWith("<")||this.semver.version===j.semver.version&&this.operator.includes("=")&&j.operator.includes("=")||Y(this.semver,"<",j.semver,W)&&this.operator.startsWith(">")&&j.operator.startsWith("<")||Y(this.semver,">",j.semver,W)&&this.operator.startsWith("<")&&j.operator.startsWith(">")))}}we.exports=p;const $=g(2664),{safeRe:ee,t:ce}=g(6915),Y=g(1938),M=g(8763),N=g(9383),L=g(8154)},8154:(we,z,g)=>{class O{constructor(x,X){if(X=ee(X),x instanceof O)return x.loose===!!X.loose&&x.includePrerelease===!!X.includePrerelease?x:new O(x.raw,X);if(x instanceof ce)return this.raw=x.value,this.set=[[x]],this.format(),this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=x.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(ue=>this.parseRange(ue.trim())).filter(ue=>ue.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const ue=this.set[0];if(this.set=this.set.filter(he=>!I(he[0])),this.set.length===0)this.set=[ue];else if(this.set.length>1){for(const he of this.set)if(he.length===1&&J(he[0])){this.set=[he];break}}}this.format()}format(){return this.range=this.set.map(x=>x.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(x){const ue=((this.options.includePrerelease&&F)|(this.options.loose&&ie))+":"+x,he=$.get(ue);if(he)return he;const Ye=this.options.loose,ve=Ye?N[L.HYPHENRANGELOOSE]:N[L.HYPHENRANGE];x=x.replace(ve,B(this.options.includePrerelease)),Y("hyphen replace",x),x=x.replace(N[L.COMPARATORTRIM],P),Y("comparator trim",x),x=x.replace(N[L.TILDETRIM],j),Y("tilde trim",x),x=x.replace(N[L.CARETTRIM],W),Y("caret trim",x);let de=x.split(" ").map(be=>oe(be,this.options)).join(" ").split(/\s+/).map(be=>Ee(be,this.options));Ye&&(de=de.filter(be=>(Y("loose invalid filter",be,this.options),!!be.match(N[L.COMPARATORLOOSE])))),Y("range list",de);const ae=new Map,q=de.map(be=>new ce(be,this.options));for(const be of q){if(I(be))return[be];ae.set(be.value,be)}ae.size>1&&ae.has("")&&ae.delete("");const Te=[...ae.values()];return $.set(ue,Te),Te}intersects(x,X){if(!(x instanceof O))throw new TypeError("a Range is required");return this.set.some(ue=>te(ue,X)&&x.set.some(he=>te(he,X)&&ue.every(Ye=>he.every(ve=>Ye.intersects(ve,X)))))}test(x){if(!x)return!1;if(typeof x=="string")try{x=new M(x,this.options)}catch{return!1}for(let X=0;X<this.set.length;X++)if(R(this.set[X],x,this.options))return!0;return!1}}we.exports=O;const p=g(6795),$=new p,ee=g(2664),ce=g(8575),Y=g(8763),M=g(9383),{safeRe:N,t:L,comparatorTrimReplace:P,tildeTrimReplace:j,caretTrimReplace:W}=g(6915),{FLAG_INCLUDE_PRERELEASE:F,FLAG_LOOSE:ie}=g(1529),I=D=>D.value==="<0.0.0-0",J=D=>D.value==="",te=(D,x)=>{let X=!0;const ue=D.slice();let he=ue.pop();for(;X&&ue.length;)X=ue.every(Ye=>he.intersects(Ye,x)),he=ue.pop();return X},oe=(D,x)=>(Y("comp",D,x),D=Be(D,x),Y("caret",D),D=m(D,x),Y("tildes",D),D=ke(D,x),Y("xrange",D),D=Le(D,x),Y("stars",D),D),U=D=>!D||D.toLowerCase()==="x"||D==="*",m=(D,x)=>D.trim().split(/\s+/).map(X=>Ae(X,x)).join(" "),Ae=(D,x)=>{const X=x.loose?N[L.TILDELOOSE]:N[L.TILDE];return D.replace(X,(ue,he,Ye,ve,de)=>{Y("tilde",D,ue,he,Ye,ve,de);let ae;return U(he)?ae="":U(Ye)?ae=`>=${he}.0.0 <${+he+1}.0.0-0`:U(ve)?ae=`>=${he}.${Ye}.0 <${he}.${+Ye+1}.0-0`:de?(Y("replaceTilde pr",de),ae=`>=${he}.${Ye}.${ve}-${de} <${he}.${+Ye+1}.0-0`):ae=`>=${he}.${Ye}.${ve} <${he}.${+Ye+1}.0-0`,Y("tilde return",ae),ae})},Be=(D,x)=>D.trim().split(/\s+/).map(X=>ze(X,x)).join(" "),ze=(D,x)=>{Y("caret",D,x);const X=x.loose?N[L.CARETLOOSE]:N[L.CARET],ue=x.includePrerelease?"-0":"";return D.replace(X,(he,Ye,ve,de,ae)=>{Y("caret",D,he,Ye,ve,de,ae);let q;return U(Ye)?q="":U(ve)?q=`>=${Ye}.0.0${ue} <${+Ye+1}.0.0-0`:U(de)?Ye==="0"?q=`>=${Ye}.${ve}.0${ue} <${Ye}.${+ve+1}.0-0`:q=`>=${Ye}.${ve}.0${ue} <${+Ye+1}.0.0-0`:ae?(Y("replaceCaret pr",ae),Ye==="0"?ve==="0"?q=`>=${Ye}.${ve}.${de}-${ae} <${Ye}.${ve}.${+de+1}-0`:q=`>=${Ye}.${ve}.${de}-${ae} <${Ye}.${+ve+1}.0-0`:q=`>=${Ye}.${ve}.${de}-${ae} <${+Ye+1}.0.0-0`):(Y("no pr"),Ye==="0"?ve==="0"?q=`>=${Ye}.${ve}.${de}${ue} <${Ye}.${ve}.${+de+1}-0`:q=`>=${Ye}.${ve}.${de}${ue} <${Ye}.${+ve+1}.0-0`:q=`>=${Ye}.${ve}.${de} <${+Ye+1}.0.0-0`),Y("caret return",q),q})},ke=(D,x)=>(Y("replaceXRanges",D,x),D.split(/\s+/).map(X=>ge(X,x)).join(" ")),ge=(D,x)=>{D=D.trim();const X=x.loose?N[L.XRANGELOOSE]:N[L.XRANGE];return D.replace(X,(ue,he,Ye,ve,de,ae)=>{Y("xRange",D,ue,he,Ye,ve,de,ae);const q=U(Ye),Te=q||U(ve),be=Te||U(de),et=be;return he==="="&&et&&(he=""),ae=x.includePrerelease?"-0":"",q?he===">"||he==="<"?ue="<0.0.0-0":ue="*":he&&et?(Te&&(ve=0),de=0,he===">"?(he=">=",Te?(Ye=+Ye+1,ve=0,de=0):(ve=+ve+1,de=0)):he==="<="&&(he="<",Te?Ye=+Ye+1:ve=+ve+1),he==="<"&&(ae="-0"),ue=`${he+Ye}.${ve}.${de}${ae}`):Te?ue=`>=${Ye}.0.0${ae} <${+Ye+1}.0.0-0`:be&&(ue=`>=${Ye}.${ve}.0${ae} <${Ye}.${+ve+1}.0-0`),Y("xRange return",ue),ue})},Le=(D,x)=>(Y("replaceStars",D,x),D.trim().replace(N[L.STAR],"")),Ee=(D,x)=>(Y("replaceGTE0",D,x),D.trim().replace(N[x.includePrerelease?L.GTE0PRE:L.GTE0],"")),B=D=>(x,X,ue,he,Ye,ve,de,ae,q,Te,be,et)=>(U(ue)?X="":U(he)?X=`>=${ue}.0.0${D?"-0":""}`:U(Ye)?X=`>=${ue}.${he}.0${D?"-0":""}`:ve?X=`>=${X}`:X=`>=${X}${D?"-0":""}`,U(q)?ae="":U(Te)?ae=`<${+q+1}.0.0-0`:U(be)?ae=`<${q}.${+Te+1}.0-0`:et?ae=`<=${q}.${Te}.${be}-${et}`:D?ae=`<${q}.${Te}.${+be+1}-0`:ae=`<=${ae}`,`${X} ${ae}`.trim()),R=(D,x,X)=>{for(let ue=0;ue<D.length;ue++)if(!D[ue].test(x))return!1;if(x.prerelease.length&&!X.includePrerelease){for(let ue=0;ue<D.length;ue++)if(Y(D[ue].semver),D[ue].semver!==ce.ANY&&D[ue].semver.prerelease.length>0){const he=D[ue].semver;if(he.major===x.major&&he.minor===x.minor&&he.patch===x.patch)return!0}return!1}return!0}},9383:(we,z,g)=>{const O=g(8763),{MAX_LENGTH:p,MAX_SAFE_INTEGER:$}=g(1529),{safeRe:ee,t:ce}=g(6915),Y=g(2664),{compareIdentifiers:M}=g(9832);class N{constructor(P,j){if(j=Y(j),P instanceof N){if(P.loose===!!j.loose&&P.includePrerelease===!!j.includePrerelease)return P;P=P.version}else if(typeof P!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof P}".`);if(P.length>p)throw new TypeError(`version is longer than ${p} characters`);O("SemVer",P,j),this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease;const W=P.trim().match(j.loose?ee[ce.LOOSE]:ee[ce.FULL]);if(!W)throw new TypeError(`Invalid Version: ${P}`);if(this.raw=P,this.major=+W[1],this.minor=+W[2],this.patch=+W[3],this.major>$||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$||this.patch<0)throw new TypeError("Invalid patch version");W[4]?this.prerelease=W[4].split(".").map(F=>{if(/^[0-9]+$/.test(F)){const ie=+F;if(ie>=0&&ie<$)return ie}return F}):this.prerelease=[],this.build=W[5]?W[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(P){if(O("SemVer.compare",this.version,this.options,P),!(P instanceof N)){if(typeof P=="string"&&P===this.version)return 0;P=new N(P,this.options)}return P.version===this.version?0:this.compareMain(P)||this.comparePre(P)}compareMain(P){return P instanceof N||(P=new N(P,this.options)),M(this.major,P.major)||M(this.minor,P.minor)||M(this.patch,P.patch)}comparePre(P){if(P instanceof N||(P=new N(P,this.options)),this.prerelease.length&&!P.prerelease.length)return-1;if(!this.prerelease.length&&P.prerelease.length)return 1;if(!this.prerelease.length&&!P.prerelease.length)return 0;let j=0;do{const W=this.prerelease[j],F=P.prerelease[j];if(O("prerelease compare",j,W,F),W===void 0&&F===void 0)return 0;if(F===void 0)return 1;if(W===void 0)return-1;if(W===F)continue;return M(W,F)}while(++j)}compareBuild(P){P instanceof N||(P=new N(P,this.options));let j=0;do{const W=this.build[j],F=P.build[j];if(O("build compare",j,W,F),W===void 0&&F===void 0)return 0;if(F===void 0)return 1;if(W===void 0)return-1;if(W===F)continue;return M(W,F)}while(++j)}inc(P,j,W){switch(P){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",j,W);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",j,W);break;case"prepatch":this.prerelease.length=0,this.inc("patch",j,W),this.inc("pre",j,W);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",j,W),this.inc("pre",j,W);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const F=Number(W)?1:0;if(!j&&W===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[F];else{let ie=this.prerelease.length;for(;--ie>=0;)typeof this.prerelease[ie]=="number"&&(this.prerelease[ie]++,ie=-2);if(ie===-1){if(j===this.prerelease.join(".")&&W===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(F)}}if(j){let ie=[j,F];W===!1&&(ie=[j]),M(this.prerelease[0],j)===0?isNaN(this.prerelease[1])&&(this.prerelease=ie):this.prerelease=ie}break}default:throw new Error(`invalid increment argument: ${P}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}we.exports=N},1938:(we,z,g)=>{const O=g(9438),p=g(690),$=g(419),ee=g(6736),ce=g(7644),Y=g(9593),M=(N,L,P,j)=>{switch(L){case"===":return typeof N=="object"&&(N=N.version),typeof P=="object"&&(P=P.version),N===P;case"!==":return typeof N=="object"&&(N=N.version),typeof P=="object"&&(P=P.version),N!==P;case"":case"=":case"==":return O(N,P,j);case"!=":return p(N,P,j);case">":return $(N,P,j);case">=":return ee(N,P,j);case"<":return ce(N,P,j);case"<=":return Y(N,P,j);default:throw new TypeError(`Invalid operator: ${L}`)}};we.exports=M},5725:(we,z,g)=>{const O=g(9383),p=g(317),{safeRe:$,t:ee}=g(6915),ce=(Y,M)=>{if(Y instanceof O)return Y;if(typeof Y=="number"&&(Y=String(Y)),typeof Y!="string")return null;M=M||{};let N=null;if(!M.rtl)N=Y.match(M.includePrerelease?$[ee.COERCEFULL]:$[ee.COERCE]);else{const ie=M.includePrerelease?$[ee.COERCERTLFULL]:$[ee.COERCERTL];let I;for(;(I=ie.exec(Y))&&(!N||N.index+N[0].length!==Y.length);)(!N||I.index+I[0].length!==N.index+N[0].length)&&(N=I),ie.lastIndex=I.index+I[1].length+I[2].length;ie.lastIndex=-1}if(N===null)return null;const L=N[2],P=N[3]||"0",j=N[4]||"0",W=M.includePrerelease&&N[5]?`-${N[5]}`:"",F=M.includePrerelease&&N[6]?`+${N[6]}`:"";return p(`${L}.${P}.${j}${W}${F}`,M)};we.exports=ce},9569:(we,z,g)=>{const O=g(9383),p=($,ee,ce)=>new O($,ce).compare(new O(ee,ce));we.exports=p},9438:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)===0;we.exports=p},419:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)>0;we.exports=p},6736:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)>=0;we.exports=p},7644:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)<0;we.exports=p},9593:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)<=0;we.exports=p},690:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)!==0;we.exports=p},317:(we,z,g)=>{const O=g(9383),p=($,ee,ce=!1)=>{if($ instanceof O)return $;try{return new O($,ee)}catch(Y){if(!ce)return null;throw Y}};we.exports=p},295:(we,z,g)=>{const O=g(8154),p=($,ee,ce)=>{try{ee=new O(ee,ce)}catch{return!1}return ee.test($)};we.exports=p},2424:(we,z,g)=>{const O=g(317),p=($,ee)=>{const ce=O($,ee);return ce?ce.version:null};we.exports=p},1529:we=>{const z="2.0.0",O=Number.MAX_SAFE_INTEGER||9007199254740991,p=16,$=256-6,ee=["major","premajor","minor","preminor","patch","prepatch","prerelease"];we.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:p,MAX_SAFE_BUILD_LENGTH:$,MAX_SAFE_INTEGER:O,RELEASE_TYPES:ee,SEMVER_SPEC_VERSION:z,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},8763:we=>{const z=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...g)=>console.error("SEMVER",...g):()=>{};we.exports=z},9832:we=>{const z=/^[0-9]+$/,g=(p,$)=>{const ee=z.test(p),ce=z.test($);return ee&&ce&&(p=+p,$=+$),p===$?0:ee&&!ce?-1:ce&&!ee?1:p<$?-1:1},O=(p,$)=>g($,p);we.exports={compareIdentifiers:g,rcompareIdentifiers:O}},6795:we=>{class z{constructor(){this.max=1e3,this.map=new Map}get(O){const p=this.map.get(O);if(p!==void 0)return this.map.delete(O),this.map.set(O,p),p}delete(O){return this.map.delete(O)}set(O,p){if(!this.delete(O)&&p!==void 0){if(this.map.size>=this.max){const ee=this.map.keys().next().value;this.delete(ee)}this.map.set(O,p)}return this}}we.exports=z},2664:we=>{const z=Object.freeze({loose:!0}),g=Object.freeze({}),O=p=>p?typeof p!="object"?z:p:g;we.exports=O},6915:(we,z,g)=>{const{MAX_SAFE_COMPONENT_LENGTH:O,MAX_SAFE_BUILD_LENGTH:p,MAX_LENGTH:$}=g(1529),ee=g(8763);z=we.exports={};const ce=z.re=[],Y=z.safeRe=[],M=z.src=[],N=z.t={};let L=0;const P="[a-zA-Z0-9-]",j=[["\\s",1],["\\d",$],[P,p]],W=ie=>{for(const[I,J]of j)ie=ie.split(`${I}*`).join(`${I}{0,${J}}`).split(`${I}+`).join(`${I}{1,${J}}`);return ie},F=(ie,I,J)=>{const te=W(I),oe=L++;ee(ie,oe,I),N[ie]=oe,M[oe]=I,ce[oe]=new RegExp(I,J?"g":void 0),Y[oe]=new RegExp(te,J?"g":void 0)};F("NUMERICIDENTIFIER","0|[1-9]\\d*"),F("NUMERICIDENTIFIERLOOSE","\\d+"),F("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${P}*`),F("MAINVERSION",`(${M[N.NUMERICIDENTIFIER]})\\.(${M[N.NUMERICIDENTIFIER]})\\.(${M[N.NUMERICIDENTIFIER]})`),F("MAINVERSIONLOOSE",`(${M[N.NUMERICIDENTIFIERLOOSE]})\\.(${M[N.NUMERICIDENTIFIERLOOSE]})\\.(${M[N.NUMERICIDENTIFIERLOOSE]})`),F("PRERELEASEIDENTIFIER",`(?:${M[N.NUMERICIDENTIFIER]}|${M[N.NONNUMERICIDENTIFIER]})`),F("PRERELEASEIDENTIFIERLOOSE",`(?:${M[N.NUMERICIDENTIFIERLOOSE]}|${M[N.NONNUMERICIDENTIFIER]})`),F("PRERELEASE",`(?:-(${M[N.PRERELEASEIDENTIFIER]}(?:\\.${M[N.PRERELEASEIDENTIFIER]})*))`),F("PRERELEASELOOSE",`(?:-?(${M[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${M[N.PRERELEASEIDENTIFIERLOOSE]})*))`),F("BUILDIDENTIFIER",`${P}+`),F("BUILD",`(?:\\+(${M[N.BUILDIDENTIFIER]}(?:\\.${M[N.BUILDIDENTIFIER]})*))`),F("FULLPLAIN",`v?${M[N.MAINVERSION]}${M[N.PRERELEASE]}?${M[N.BUILD]}?`),F("FULL",`^${M[N.FULLPLAIN]}$`),F("LOOSEPLAIN",`[v=\\s]*${M[N.MAINVERSIONLOOSE]}${M[N.PRERELEASELOOSE]}?${M[N.BUILD]}?`),F("LOOSE",`^${M[N.LOOSEPLAIN]}$`),F("GTLT","((?:<|>)?=?)"),F("XRANGEIDENTIFIERLOOSE",`${M[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),F("XRANGEIDENTIFIER",`${M[N.NUMERICIDENTIFIER]}|x|X|\\*`),F("XRANGEPLAIN",`[v=\\s]*(${M[N.XRANGEIDENTIFIER]})(?:\\.(${M[N.XRANGEIDENTIFIER]})(?:\\.(${M[N.XRANGEIDENTIFIER]})(?:${M[N.PRERELEASE]})?${M[N.BUILD]}?)?)?`),F("XRANGEPLAINLOOSE",`[v=\\s]*(${M[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[N.XRANGEIDENTIFIERLOOSE]})(?:${M[N.PRERELEASELOOSE]})?${M[N.BUILD]}?)?)?`),F("XRANGE",`^${M[N.GTLT]}\\s*${M[N.XRANGEPLAIN]}$`),F("XRANGELOOSE",`^${M[N.GTLT]}\\s*${M[N.XRANGEPLAINLOOSE]}$`),F("COERCEPLAIN",`(^|[^\\d])(\\d{1,${O}})(?:\\.(\\d{1,${O}}))?(?:\\.(\\d{1,${O}}))?`),F("COERCE",`${M[N.COERCEPLAIN]}(?:$|[^\\d])`),F("COERCEFULL",M[N.COERCEPLAIN]+`(?:${M[N.PRERELEASE]})?(?:${M[N.BUILD]})?(?:$|[^\\d])`),F("COERCERTL",M[N.COERCE],!0),F("COERCERTLFULL",M[N.COERCEFULL],!0),F("LONETILDE","(?:~>?)"),F("TILDETRIM",`(\\s*)${M[N.LONETILDE]}\\s+`,!0),z.tildeTrimReplace="$1~",F("TILDE",`^${M[N.LONETILDE]}${M[N.XRANGEPLAIN]}$`),F("TILDELOOSE",`^${M[N.LONETILDE]}${M[N.XRANGEPLAINLOOSE]}$`),F("LONECARET","(?:\\^)"),F("CARETTRIM",`(\\s*)${M[N.LONECARET]}\\s+`,!0),z.caretTrimReplace="$1^",F("CARET",`^${M[N.LONECARET]}${M[N.XRANGEPLAIN]}$`),F("CARETLOOSE",`^${M[N.LONECARET]}${M[N.XRANGEPLAINLOOSE]}$`),F("COMPARATORLOOSE",`^${M[N.GTLT]}\\s*(${M[N.LOOSEPLAIN]})$|^$`),F("COMPARATOR",`^${M[N.GTLT]}\\s*(${M[N.FULLPLAIN]})$|^$`),F("COMPARATORTRIM",`(\\s*)${M[N.GTLT]}\\s*(${M[N.LOOSEPLAIN]}|${M[N.XRANGEPLAIN]})`,!0),z.comparatorTrimReplace="$1$2$3",F("HYPHENRANGE",`^\\s*(${M[N.XRANGEPLAIN]})\\s+-\\s+(${M[N.XRANGEPLAIN]})\\s*$`),F("HYPHENRANGELOOSE",`^\\s*(${M[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${M[N.XRANGEPLAINLOOSE]})\\s*$`),F("STAR","(<|>)?=?\\s*\\*"),F("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),F("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5453:(we,z,g)=>{"use strict";g.r(z),g.d(z,{__assign:()=>$,__asyncDelegator:()=>U,__asyncGenerator:()=>oe,__asyncValues:()=>m,__await:()=>te,__awaiter:()=>N,__classPrivateFieldGet:()=>ge,__classPrivateFieldIn:()=>Ee,__classPrivateFieldSet:()=>Le,__createBinding:()=>P,__decorate:()=>ce,__exportStar:()=>j,__extends:()=>p,__generator:()=>L,__importDefault:()=>ke,__importStar:()=>ze,__makeTemplateObject:()=>Ae,__metadata:()=>M,__param:()=>Y,__read:()=>F,__rest:()=>ee,__spread:()=>ie,__spreadArray:()=>J,__spreadArrays:()=>I,__values:()=>W});var O=function(B,R){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,x){D.__proto__=x}||function(D,x){for(var X in x)Object.prototype.hasOwnProperty.call(x,X)&&(D[X]=x[X])},O(B,R)};function p(B,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");O(B,R);function D(){this.constructor=B}B.prototype=R===null?Object.create(R):(D.prototype=R.prototype,new D)}var $=function(){return $=Object.assign||function(R){for(var D,x=1,X=arguments.length;x<X;x++){D=arguments[x];for(var ue in D)Object.prototype.hasOwnProperty.call(D,ue)&&(R[ue]=D[ue])}return R},$.apply(this,arguments)};function ee(B,R){var D={};for(var x in B)Object.prototype.hasOwnProperty.call(B,x)&&R.indexOf(x)<0&&(D[x]=B[x]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,x=Object.getOwnPropertySymbols(B);X<x.length;X++)R.indexOf(x[X])<0&&Object.prototype.propertyIsEnumerable.call(B,x[X])&&(D[x[X]]=B[x[X]]);return D}function ce(B,R,D,x){var X=arguments.length,ue=X<3?R:x===null?x=Object.getOwnPropertyDescriptor(R,D):x,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(B,R,D,x);else for(var Ye=B.length-1;Ye>=0;Ye--)(he=B[Ye])&&(ue=(X<3?he(ue):X>3?he(R,D,ue):he(R,D))||ue);return X>3&&ue&&Object.defineProperty(R,D,ue),ue}function Y(B,R){return function(D,x){R(D,x,B)}}function M(B,R){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(B,R)}function N(B,R,D,x){function X(ue){return ue instanceof D?ue:new D(function(he){he(ue)})}return new(D||(D=Promise))(function(ue,he){function Ye(ae){try{de(x.next(ae))}catch(q){he(q)}}function ve(ae){try{de(x.throw(ae))}catch(q){he(q)}}function de(ae){ae.done?ue(ae.value):X(ae.value).then(Ye,ve)}de((x=x.apply(B,R||[])).next())})}function L(B,R){var D={label:0,sent:function(){if(ue[0]&1)throw ue[1];return ue[1]},trys:[],ops:[]},x,X,ue,he;return he={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Ye(de){return function(ae){return ve([de,ae])}}function ve(de){if(x)throw new TypeError("Generator is already executing.");for(;D;)try{if(x=1,X&&(ue=de[0]&2?X.return:de[0]?X.throw||((ue=X.return)&&ue.call(X),0):X.next)&&!(ue=ue.call(X,de[1])).done)return ue;switch(X=0,ue&&(de=[de[0]&2,ue.value]),de[0]){case 0:case 1:ue=de;break;case 4:return D.label++,{value:de[1],done:!1};case 5:D.label++,X=de[1],de=[0];continue;case 7:de=D.ops.pop(),D.trys.pop();continue;default:if(ue=D.trys,!(ue=ue.length>0&&ue[ue.length-1])&&(de[0]===6||de[0]===2)){D=0;continue}if(de[0]===3&&(!ue||de[1]>ue[0]&&de[1]<ue[3])){D.label=de[1];break}if(de[0]===6&&D.label<ue[1]){D.label=ue[1],ue=de;break}if(ue&&D.label<ue[2]){D.label=ue[2],D.ops.push(de);break}ue[2]&&D.ops.pop(),D.trys.pop();continue}de=R.call(B,D)}catch(ae){de=[6,ae],X=0}finally{x=ue=0}if(de[0]&5)throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}}var P=Object.create?function(B,R,D,x){x===void 0&&(x=D);var X=Object.getOwnPropertyDescriptor(R,D);(!X||("get"in X?!R.__esModule:X.writable||X.configurable))&&(X={enumerable:!0,get:function(){return R[D]}}),Object.defineProperty(B,x,X)}:function(B,R,D,x){x===void 0&&(x=D),B[x]=R[D]};function j(B,R){for(var D in B)D!=="default"&&!Object.prototype.hasOwnProperty.call(R,D)&&P(R,B,D)}function W(B){var R=typeof Symbol=="function"&&Symbol.iterator,D=R&&B[R],x=0;if(D)return D.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&x>=B.length&&(B=void 0),{value:B&&B[x++],done:!B}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(B,R){var D=typeof Symbol=="function"&&B[Symbol.iterator];if(!D)return B;var x=D.call(B),X,ue=[],he;try{for(;(R===void 0||R-- >0)&&!(X=x.next()).done;)ue.push(X.value)}catch(Ye){he={error:Ye}}finally{try{X&&!X.done&&(D=x.return)&&D.call(x)}finally{if(he)throw he.error}}return ue}function ie(){for(var B=[],R=0;R<arguments.length;R++)B=B.concat(F(arguments[R]));return B}function I(){for(var B=0,R=0,D=arguments.length;R<D;R++)B+=arguments[R].length;for(var x=Array(B),X=0,R=0;R<D;R++)for(var ue=arguments[R],he=0,Ye=ue.length;he<Ye;he++,X++)x[X]=ue[he];return x}function J(B,R,D){if(D||arguments.length===2)for(var x=0,X=R.length,ue;x<X;x++)(ue||!(x in R))&&(ue||(ue=Array.prototype.slice.call(R,0,x)),ue[x]=R[x]);return B.concat(ue||Array.prototype.slice.call(R))}function te(B){return this instanceof te?(this.v=B,this):new te(B)}function oe(B,R,D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=D.apply(B,R||[]),X,ue=[];return X={},he("next"),he("throw"),he("return"),X[Symbol.asyncIterator]=function(){return this},X;function he(Te){x[Te]&&(X[Te]=function(be){return new Promise(function(et,st){ue.push([Te,be,et,st])>1||Ye(Te,be)})})}function Ye(Te,be){try{ve(x[Te](be))}catch(et){q(ue[0][3],et)}}function ve(Te){Te.value instanceof te?Promise.resolve(Te.value.v).then(de,ae):q(ue[0][2],Te)}function de(Te){Ye("next",Te)}function ae(Te){Ye("throw",Te)}function q(Te,be){Te(be),ue.shift(),ue.length&&Ye(ue[0][0],ue[0][1])}}function U(B){var R,D;return R={},x("next"),x("throw",function(X){throw X}),x("return"),R[Symbol.iterator]=function(){return this},R;function x(X,ue){R[X]=B[X]?function(he){return(D=!D)?{value:te(B[X](he)),done:X==="return"}:ue?ue(he):he}:ue}}function m(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=B[Symbol.asyncIterator],D;return R?R.call(B):(B=typeof W=="function"?W(B):B[Symbol.iterator](),D={},x("next"),x("throw"),x("return"),D[Symbol.asyncIterator]=function(){return this},D);function x(ue){D[ue]=B[ue]&&function(he){return new Promise(function(Ye,ve){he=B[ue](he),X(Ye,ve,he.done,he.value)})}}function X(ue,he,Ye,ve){Promise.resolve(ve).then(function(de){ue({value:de,done:Ye})},he)}}function Ae(B,R){return Object.defineProperty?Object.defineProperty(B,"raw",{value:R}):B.raw=R,B}var Be=Object.create?function(B,R){Object.defineProperty(B,"default",{enumerable:!0,value:R})}:function(B,R){B.default=R};function ze(B){if(B&&B.__esModule)return B;var R={};if(B!=null)for(var D in B)D!=="default"&&Object.prototype.hasOwnProperty.call(B,D)&&P(R,B,D);return Be(R,B),R}function ke(B){return B&&B.__esModule?B:{default:B}}function ge(B,R,D,x){if(D==="a"&&!x)throw new TypeError("Private accessor was defined without a getter");if(typeof R=="function"?B!==R||!x:!R.has(B))throw new TypeError("Cannot read private member from an object whose class did not declare it");return D==="m"?x:D==="a"?x.call(B):x?x.value:R.get(B)}function Le(B,R,D,x,X){if(x==="m")throw new TypeError("Private method is not writable");if(x==="a"&&!X)throw new TypeError("Private accessor was defined without a setter");if(typeof R=="function"?B!==R||!X:!R.has(B))throw new TypeError("Cannot write private member to an object whose class did not declare it");return x==="a"?X.call(B,D):X?X.value=D:R.set(B,D),D}function Ee(B,R){if(R===null||typeof R!="object"&&typeof R!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof B=="function"?R===B:B.has(R)}},8241:(we,z,g)=>{"use strict";g.r(z),g.d(z,{__assign:()=>$,__asyncDelegator:()=>U,__asyncGenerator:()=>oe,__asyncValues:()=>m,__await:()=>te,__awaiter:()=>N,__classPrivateFieldGet:()=>ge,__classPrivateFieldIn:()=>Ee,__classPrivateFieldSet:()=>Le,__createBinding:()=>P,__decorate:()=>ce,__exportStar:()=>j,__extends:()=>p,__generator:()=>L,__importDefault:()=>ke,__importStar:()=>ze,__makeTemplateObject:()=>Ae,__metadata:()=>M,__param:()=>Y,__read:()=>F,__rest:()=>ee,__spread:()=>ie,__spreadArray:()=>J,__spreadArrays:()=>I,__values:()=>W});var O=function(B,R){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,x){D.__proto__=x}||function(D,x){for(var X in x)Object.prototype.hasOwnProperty.call(x,X)&&(D[X]=x[X])},O(B,R)};function p(B,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");O(B,R);function D(){this.constructor=B}B.prototype=R===null?Object.create(R):(D.prototype=R.prototype,new D)}var $=function(){return $=Object.assign||function(R){for(var D,x=1,X=arguments.length;x<X;x++){D=arguments[x];for(var ue in D)Object.prototype.hasOwnProperty.call(D,ue)&&(R[ue]=D[ue])}return R},$.apply(this,arguments)};function ee(B,R){var D={};for(var x in B)Object.prototype.hasOwnProperty.call(B,x)&&R.indexOf(x)<0&&(D[x]=B[x]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,x=Object.getOwnPropertySymbols(B);X<x.length;X++)R.indexOf(x[X])<0&&Object.prototype.propertyIsEnumerable.call(B,x[X])&&(D[x[X]]=B[x[X]]);return D}function ce(B,R,D,x){var X=arguments.length,ue=X<3?R:x===null?x=Object.getOwnPropertyDescriptor(R,D):x,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(B,R,D,x);else for(var Ye=B.length-1;Ye>=0;Ye--)(he=B[Ye])&&(ue=(X<3?he(ue):X>3?he(R,D,ue):he(R,D))||ue);return X>3&&ue&&Object.defineProperty(R,D,ue),ue}function Y(B,R){return function(D,x){R(D,x,B)}}function M(B,R){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(B,R)}function N(B,R,D,x){function X(ue){return ue instanceof D?ue:new D(function(he){he(ue)})}return new(D||(D=Promise))(function(ue,he){function Ye(ae){try{de(x.next(ae))}catch(q){he(q)}}function ve(ae){try{de(x.throw(ae))}catch(q){he(q)}}function de(ae){ae.done?ue(ae.value):X(ae.value).then(Ye,ve)}de((x=x.apply(B,R||[])).next())})}function L(B,R){var D={label:0,sent:function(){if(ue[0]&1)throw ue[1];return ue[1]},trys:[],ops:[]},x,X,ue,he;return he={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Ye(de){return function(ae){return ve([de,ae])}}function ve(de){if(x)throw new TypeError("Generator is already executing.");for(;D;)try{if(x=1,X&&(ue=de[0]&2?X.return:de[0]?X.throw||((ue=X.return)&&ue.call(X),0):X.next)&&!(ue=ue.call(X,de[1])).done)return ue;switch(X=0,ue&&(de=[de[0]&2,ue.value]),de[0]){case 0:case 1:ue=de;break;case 4:return D.label++,{value:de[1],done:!1};case 5:D.label++,X=de[1],de=[0];continue;case 7:de=D.ops.pop(),D.trys.pop();continue;default:if(ue=D.trys,!(ue=ue.length>0&&ue[ue.length-1])&&(de[0]===6||de[0]===2)){D=0;continue}if(de[0]===3&&(!ue||de[1]>ue[0]&&de[1]<ue[3])){D.label=de[1];break}if(de[0]===6&&D.label<ue[1]){D.label=ue[1],ue=de;break}if(ue&&D.label<ue[2]){D.label=ue[2],D.ops.push(de);break}ue[2]&&D.ops.pop(),D.trys.pop();continue}de=R.call(B,D)}catch(ae){de=[6,ae],X=0}finally{x=ue=0}if(de[0]&5)throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}}var P=Object.create?function(B,R,D,x){x===void 0&&(x=D);var X=Object.getOwnPropertyDescriptor(R,D);(!X||("get"in X?!R.__esModule:X.writable||X.configurable))&&(X={enumerable:!0,get:function(){return R[D]}}),Object.defineProperty(B,x,X)}:function(B,R,D,x){x===void 0&&(x=D),B[x]=R[D]};function j(B,R){for(var D in B)D!=="default"&&!Object.prototype.hasOwnProperty.call(R,D)&&P(R,B,D)}function W(B){var R=typeof Symbol=="function"&&Symbol.iterator,D=R&&B[R],x=0;if(D)return D.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&x>=B.length&&(B=void 0),{value:B&&B[x++],done:!B}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(B,R){var D=typeof Symbol=="function"&&B[Symbol.iterator];if(!D)return B;var x=D.call(B),X,ue=[],he;try{for(;(R===void 0||R-- >0)&&!(X=x.next()).done;)ue.push(X.value)}catch(Ye){he={error:Ye}}finally{try{X&&!X.done&&(D=x.return)&&D.call(x)}finally{if(he)throw he.error}}return ue}function ie(){for(var B=[],R=0;R<arguments.length;R++)B=B.concat(F(arguments[R]));return B}function I(){for(var B=0,R=0,D=arguments.length;R<D;R++)B+=arguments[R].length;for(var x=Array(B),X=0,R=0;R<D;R++)for(var ue=arguments[R],he=0,Ye=ue.length;he<Ye;he++,X++)x[X]=ue[he];return x}function J(B,R,D){if(D||arguments.length===2)for(var x=0,X=R.length,ue;x<X;x++)(ue||!(x in R))&&(ue||(ue=Array.prototype.slice.call(R,0,x)),ue[x]=R[x]);return B.concat(ue||Array.prototype.slice.call(R))}function te(B){return this instanceof te?(this.v=B,this):new te(B)}function oe(B,R,D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=D.apply(B,R||[]),X,ue=[];return X={},he("next"),he("throw"),he("return"),X[Symbol.asyncIterator]=function(){return this},X;function he(Te){x[Te]&&(X[Te]=function(be){return new Promise(function(et,st){ue.push([Te,be,et,st])>1||Ye(Te,be)})})}function Ye(Te,be){try{ve(x[Te](be))}catch(et){q(ue[0][3],et)}}function ve(Te){Te.value instanceof te?Promise.resolve(Te.value.v).then(de,ae):q(ue[0][2],Te)}function de(Te){Ye("next",Te)}function ae(Te){Ye("throw",Te)}function q(Te,be){Te(be),ue.shift(),ue.length&&Ye(ue[0][0],ue[0][1])}}function U(B){var R,D;return R={},x("next"),x("throw",function(X){throw X}),x("return"),R[Symbol.iterator]=function(){return this},R;function x(X,ue){R[X]=B[X]?function(he){return(D=!D)?{value:te(B[X](he)),done:X==="return"}:ue?ue(he):he}:ue}}function m(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=B[Symbol.asyncIterator],D;return R?R.call(B):(B=typeof W=="function"?W(B):B[Symbol.iterator](),D={},x("next"),x("throw"),x("return"),D[Symbol.asyncIterator]=function(){return this},D);function x(ue){D[ue]=B[ue]&&function(he){return new Promise(function(Ye,ve){he=B[ue](he),X(Ye,ve,he.done,he.value)})}}function X(ue,he,Ye,ve){Promise.resolve(ve).then(function(de){ue({value:de,done:Ye})},he)}}function Ae(B,R){return Object.defineProperty?Object.defineProperty(B,"raw",{value:R}):B.raw=R,B}var Be=Object.create?function(B,R){Object.defineProperty(B,"default",{enumerable:!0,value:R})}:function(B,R){B.default=R};function ze(B){if(B&&B.__esModule)return B;var R={};if(B!=null)for(var D in B)D!=="default"&&Object.prototype.hasOwnProperty.call(B,D)&&P(R,B,D);return Be(R,B),R}function ke(B){return B&&B.__esModule?B:{default:B}}function ge(B,R,D,x){if(D==="a"&&!x)throw new TypeError("Private accessor was defined without a getter");if(typeof R=="function"?B!==R||!x:!R.has(B))throw new TypeError("Cannot read private member from an object whose class did not declare it");return D==="m"?x:D==="a"?x.call(B):x?x.value:R.get(B)}function Le(B,R,D,x,X){if(x==="m")throw new TypeError("Private method is not writable");if(x==="a"&&!X)throw new TypeError("Private accessor was defined without a setter");if(typeof R=="function"?B!==R||!X:!R.has(B))throw new TypeError("Cannot write private member to an object whose class did not declare it");return x==="a"?X.call(B,D):X?X.value=D:R.set(B,D),D}function Ee(B,R){if(R===null||typeof R!="object"&&typeof R!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof B=="function"?R===B:B.has(R)}},333:function(we,z,g){"use strict";var O=this&&this.__extends||function(){var ce=function(Y,M){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var P in L)Object.prototype.hasOwnProperty.call(L,P)&&(N[P]=L[P])},ce(Y,M)};return function(Y,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");ce(Y,M);function N(){this.constructor=Y}Y.prototype=M===null?Object.create(M):(N.prototype=M.prototype,new N)}}();z.__esModule=!0;var p=g(9891),$=g(2182),ee=function(ce){O(Y,ce);function Y(){var M=ce!==null&&ce.apply(this,arguments)||this;return M.opQueue=[],M.isOpen=!0,M}return Y.prototype.open=function(){this.isOpen=!0,this.opQueue.forEach(function(M){var N=M.operation,L=M.forward,P=M.observer;L(N).subscribe(P)}),this.opQueue=[]},Y.prototype.close=function(){this.isOpen=!1},Y.prototype.request=function(M,N){var L=this;return this.isOpen||M.getContext().skipQueue?N(M):new $.Observable(function(P){var j={operation:M,forward:N,observer:P};return L.enqueue(j),function(){return L.cancelOperation(j)}})},Y.prototype.cancelOperation=function(M){this.opQueue=this.opQueue.filter(function(N){return N!==M})},Y.prototype.enqueue=function(M){this.opQueue.push(M)},Y}(p.ApolloLink);z.default=ee},6682:(we,z,g)=>{"use strict";z.__esModule=!0;var O=g(333);z.default=O.default},5:function(we,z,g){(function(O,p){p(z,g(8829),g(2182),g(5810))})(this,function(O,p,$,ee){"use strict";var ce=function(ye,Ie,C,V){function k(re){return re instanceof C?re:new C(function(_e){_e(re)})}return new(C||(C=Promise))(function(re,_e){function He(ut){try{Xe(V.next(ut))}catch(At){_e(At)}}function dt(ut){try{Xe(V.throw(ut))}catch(At){_e(At)}}function Xe(ut){ut.done?re(ut.value):k(ut.value).then(He,dt)}Xe((V=V.apply(ye,Ie||[])).next())})},Y=function(ye,Ie){var C={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]},V,k,re,_e;return _e={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function He(Xe){return function(ut){return dt([Xe,ut])}}function dt(Xe){if(V)throw new TypeError("Generator is already executing.");for(;C;)try{if(V=1,k&&(re=Xe[0]&2?k.return:Xe[0]?k.throw||((re=k.return)&&re.call(k),0):k.next)&&!(re=re.call(k,Xe[1])).done)return re;switch(k=0,re&&(Xe=[Xe[0]&2,re.value]),Xe[0]){case 0:case 1:re=Xe;break;case 4:return C.label++,{value:Xe[1],done:!1};case 5:C.label++,k=Xe[1],Xe=[0];continue;case 7:Xe=C.ops.pop(),C.trys.pop();continue;default:if(re=C.trys,!(re=re.length>0&&re[re.length-1])&&(Xe[0]===6||Xe[0]===2)){C=0;continue}if(Xe[0]===3&&(!re||Xe[1]>re[0]&&Xe[1]<re[3])){C.label=Xe[1];break}if(Xe[0]===6&&C.label<re[1]){C.label=re[1],re=Xe;break}if(re&&C.label<re[2]){C.label=re[2],C.ops.push(Xe);break}re[2]&&C.ops.pop(),C.trys.pop();continue}Xe=Ie.call(ye,C)}catch(ut){Xe=[6,ut],k=0}finally{V=re=0}if(Xe[0]&5)throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}};function M(ye,Ie){if(ye.directives&&ye.directives.length){var C={};return ye.directives.forEach(function(V){C[V.name.value]=$.argumentsObjectFromField(V,Ie)}),C}return null}var N=Object.prototype.hasOwnProperty;function L(ye,Ie){Ie!==null&&typeof Ie=="object"&&Object.keys(Ie).forEach(function(C){var V=Ie[C];N.call(ye,C)?L(ye[C],V):ye[C]=V})}function P(ye,Ie,C,V,k,re){re===void 0&&(re={});var _e=$.getMainDefinition(Ie),He=$.getFragmentDefinitions(Ie),dt=$.createFragmentMap(He),Xe=re.resultMapper,ut=re.fragmentMatcher||function(){return!0},At={fragmentMap:dt,contextValue:V,variableValues:k,resultMapper:Xe,resolver:ye,fragmentMatcher:ut};return j(_e.selectionSet,C,At)}function j(ye,Ie,C){return ce(this,void 0,void 0,function(){var V,k,re,_e,He,dt=this;return Y(this,function(Xe){switch(Xe.label){case 0:return V=C.fragmentMap,k=C.contextValue,re=C.variableValues,_e={},He=function(ut){return ce(dt,void 0,void 0,function(){var At,Et,Zt,Jt,Ft;return Y(this,function(er){switch(er.label){case 0:return $.shouldInclude(ut,re)?$.isField(ut)?[4,W(ut,Ie,C)]:[3,2]:[2];case 1:return At=er.sent(),Et=$.resultKeyNameFromField(ut),At!==void 0&&(_e[Et]===void 0?_e[Et]=At:L(_e[Et],At)),[2];case 2:if($.isInlineFragment(ut))Zt=ut;else if(Zt=V[ut.name.value],!Zt)throw new Error("No fragment named "+ut.name.value);return Jt=Zt.typeCondition.name.value,C.fragmentMatcher(Ie,Jt,k)?[4,j(Zt.selectionSet,Ie,C)]:[3,4];case 3:Ft=er.sent(),L(_e,Ft),er.label=4;case 4:return[2]}})})},[4,Promise.all(ye.selections.map(He))];case 1:return Xe.sent(),C.resultMapper?[2,C.resultMapper(_e,Ie)]:[2,_e]}})})}function W(ye,Ie,C){return ce(this,void 0,void 0,function(){var V,k,re,_e,He,dt,Xe;return Y(this,function(ut){switch(ut.label){case 0:return V=C.variableValues,k=C.contextValue,re=C.resolver,_e=ye.name.value,He=$.argumentsObjectFromField(ye,V),dt={isLeaf:!ye.selectionSet,resultKey:$.resultKeyNameFromField(ye),directives:M(ye,V),field:ye},[4,re(_e,Ie,He,k,dt)];case 1:return Xe=ut.sent(),ye.selectionSet?Xe==null?[2,Xe]:Array.isArray(Xe)?[2,F(ye,Xe,C)]:[2,j(ye.selectionSet,Xe,C)]:[2,Xe]}})})}function F(ye,Ie,C){return Promise.all(Ie.map(function(V){return V===null?null:Array.isArray(V)?F(ye,V,C):j(ye.selectionSet,V,C)}))}var ie=function(){var ye=function(Ie,C){return ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,k){V.__proto__=k}||function(V,k){for(var re in k)k.hasOwnProperty(re)&&(V[re]=k[re])},ye(Ie,C)};return function(Ie,C){ye(Ie,C);function V(){this.constructor=Ie}Ie.prototype=C===null?Object.create(C):(V.prototype=C.prototype,new V)}}(),I=function(){return I=Object.assign||function(ye){for(var Ie,C=1,V=arguments.length;C<V;C++){Ie=arguments[C];for(var k in Ie)Object.prototype.hasOwnProperty.call(Ie,k)&&(ye[k]=Ie[k])}return ye},I.apply(this,arguments)},J=function(ye,Ie,C,V){function k(re){return re instanceof C?re:new C(function(_e){_e(re)})}return new(C||(C=Promise))(function(re,_e){function He(ut){try{Xe(V.next(ut))}catch(At){_e(At)}}function dt(ut){try{Xe(V.throw(ut))}catch(At){_e(At)}}function Xe(ut){ut.done?re(ut.value):k(ut.value).then(He,dt)}Xe((V=V.apply(ye,Ie||[])).next())})},te=function(ye,Ie){var C={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]},V,k,re,_e;return _e={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function He(Xe){return function(ut){return dt([Xe,ut])}}function dt(Xe){if(V)throw new TypeError("Generator is already executing.");for(;C;)try{if(V=1,k&&(re=Xe[0]&2?k.return:Xe[0]?k.throw||((re=k.return)&&re.call(k),0):k.next)&&!(re=re.call(k,Xe[1])).done)return re;switch(k=0,re&&(Xe=[Xe[0]&2,re.value]),Xe[0]){case 0:case 1:re=Xe;break;case 4:return C.label++,{value:Xe[1],done:!1};case 5:C.label++,k=Xe[1],Xe=[0];continue;case 7:Xe=C.ops.pop(),C.trys.pop();continue;default:if(re=C.trys,!(re=re.length>0&&re[re.length-1])&&(Xe[0]===6||Xe[0]===2)){C=0;continue}if(Xe[0]===3&&(!re||Xe[1]>re[0]&&Xe[1]<re[3])){C.label=Xe[1];break}if(Xe[0]===6&&C.label<re[1]){C.label=re[1],re=Xe;break}if(re&&C.label<re[2]){C.label=re[2],C.ops.push(Xe);break}re[2]&&C.ops.pop(),C.trys.pop();continue}Xe=Ie.call(ye,C)}catch(ut){Xe=[6,ut],k=0}finally{V=re=0}if(Xe[0]&5)throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}},oe=function(){for(var ye=0,Ie=0,C=arguments.length;Ie<C;Ie++)ye+=arguments[Ie].length;for(var V=Array(ye),k=0,Ie=0;Ie<C;Ie++)for(var re=arguments[Ie],_e=0,He=re.length;_e<He;_e++,k++)V[k]=re[_e];return V},U=function(ye){var Ie=ye.replace(/\s/g,""),C=Ie.replace(/\[(.*)\]/,function(V,k,re,_e){return((k!=null&&k.length)>0?k:null)||Ie});return C},m=function(ye,Ie,C,V){if(Array.isArray(ye)){var k=U(Ie);return ye.map(function(re){return m(re,k,C,V)})}return ye==null||typeof ye=="number"||typeof ye=="boolean"||typeof ye=="string"?ye:C(ye,Ie,C,V)},Ae=function(ye){return ye.directives&&ye.directives.length?ye.directives.find(function(Ie){return Ie.name.value==="rest"}):null};function Be(ye,Ie,C,V,k){return k==null||Ie==null||typeof Ie=="number"||typeof Ie=="boolean"||typeof Ie=="string"||k.selections.forEach(function(re){if($.isInlineFragment(re))Be(ye,Ie,C,V,re.selectionSet);else if(re.kind==="FragmentSpread"){var _e=V[re.name.value];Be(ye,Ie,C,V,_e.selectionSet)}else if($.isField(re)){var He=$.resultKeyNameFromField(re);He===ye&&Ae(re)!=null?ze(Ie,C,V,re.selectionSet):Be(ye,Ie,C,V,re.selectionSet)}else return function(dt){throw new Error("Unhandled Node Type in SelectionSetNode.selections")}(re)}),Ie}function ze(ye,Ie,C,V){if(!(ye==null||typeof ye=="number"||typeof ye=="boolean"||typeof ye=="string")){if(Array.isArray(ye)){ye.forEach(function(k){return ze(k,Ie,C,V)});return}V.selections.forEach(function(k){if($.isInlineFragment(k))ze(ye,Ie,C,k.selectionSet);else if(k.kind==="FragmentSpread"){var re=C[k.name.value];ze(ye,Ie,C,re.selectionSet)}else if($.isField(k)){var _e=ye[k.name.value];k.name.value==="__typename"||(typeof _e>"u"?ye[k.name.value]=null:_e!=null&&typeof _e=="object"&&k.selectionSet!=null&&ze(_e,Ie,C,k.selectionSet))}else return function(He){throw new Error("Unhandled Node Type in SelectionSetNode.selections")}(k)})}}var ke=function(ye,Ie){var C=ye[Ie||be]||ye[be];return typeof C=="string"?{uri:C}:I({responseTransformer:null},C)},ge=function(ye,Ie,C){return C===void 0||Ie===void 0?ye:ye.replace(":"+Ie,C)},Le=function(){function ye(){}return ye.replacerForPath=function(Ie){if(Ie in ye.cache)return ye.cache[Ie];var C=Ie.indexOf("?"),V=Ie.split(ye.argReplacement),k=[],re=!1;V.reduce(function(He,dt){if(dt===""||dt==="{}")return He+dt.length;var Xe=He+dt.length;if(dt[0]==="{"&&dt[dt.length-1]==="}"){var ut=dt.slice(1,dt.length-1).split(".");k.push(function(At,Et){try{var Zt=Ee(At,ut);return!Et||typeof Zt!="object"||Zt==null?String(Zt):ee.stringify(Zt)}catch{var Jt=[Ie,ut.join(".")].join("|");return Jt in ye.warnTable||(console.warn("Warning: RestLink caught an error while unpacking",Jt,"This tends to happen if you forgot to pass a parameter needed for creating an @rest(path, or if RestLink was configured to deeply unpack a path parameter that wasn't provided. This message will only log once per detected instance. Trouble-shooting hint: check @rest(path: and the variables provided to this query."),ye.warnTable[Jt]=!0),""}})}else k.push(dt),!re&&Xe>=C&&(re=!0,k.push(!0));return Xe},0);var _e=function(He){var dt=!1,Xe=k.reduce(function(ut,At){return typeof At=="string"?ut+At:typeof At=="boolean"?(dt=!0,ut):ut+At(He,dt)},"");return Xe};return ye.cache[Ie]=_e},ye.cache={},ye.warnTable={},ye.argReplacement=/({[._a-zA-Z0-9]*})/,ye}();function Ee(ye,Ie){if(Ie.length===0)return ye;var C=oe(Ie),V=C.shift();return Ee(ye[V],C)}var B=["__typename"],R=typeof globalThis=="object"&&globalThis||g.g,D=function(ye,Ie,C){C===void 0&&(C=[]);var V=null;return Ie.length!=2?V=function(k,re){return Ie(k)}:V=Ie,Array.isArray(ye)?ye.map(function(k,re){return D(k,V,oe(C,[String(re)]))}):ye==null||typeof ye!="object"||ye.constructor!==Object||R.FileList&&ye instanceof FileList||R.File&&ye instanceof File?ye:Object.keys(ye).reduce(function(k,re){var _e=ye[re];if(B.indexOf(re)!==-1)return k[re]=_e,k;var He=oe(C,[re]);return k[V(re,He)]=D(_e,V,He),k},{})},x=function(ye){return ye},X=function(ye){return ye instanceof Headers?ye:new Headers(ye||{})},ue=function(){for(var ye=[],Ie=0;Ie<arguments.length;Ie++)ye[Ie]=arguments[Ie];return ye.reduce(function(C,V){return V&&(V.forEach||(V=X(V)),V.forEach(function(k,re){C.append(re,k)})),C},new Headers)},he=function(ye,Ie,C){var V=new Headers;return ye.forEach(function(k,re){Ie.indexOf(re)===-1&&V.append(re,k)}),ue(V,C||new Headers)},Ye=function(ye){return function(Ie,C){return he(Ie,ye,C)}},ve=["GET","POST","PUT","PATCH","DELETE"],de=function(ye,Ie){switch(Ie){case"query":if(ve.indexOf(ye.toUpperCase())!==-1)return;throw new Error('A "query" operation can only support "GET" requests but got "'+ye+'".');case"mutation":if(ve.indexOf(ye.toUpperCase())!==-1)return;throw new Error('"mutation" operations do not support that HTTP-verb');case"subscription":throw new Error('A "subscription" operation is not supported yet.');default:var C=Ie;return C}},ae=function(ye,Ie,C){var V=new Error(C);throw V.response=ye,V.statusCode=ye.status,V.result=Ie,V},q=function(ye,Ie){return ye==null||typeof ye!="object"?ye:Array.isArray(ye)?ye.map(function(C){return q(C,Ie)}):(ye.__typename=Ie,ye)},Te=function(ye,Ie,C,V,k){return J(void 0,void 0,void 0,function(){var re,_e,He,dt,Xe,ut,At,Et,Zt,Jt,Ft,er,Ht,Mr,_r,Ur,xr,tn,cr,Fe,De,Yt,ar,Sr,Ut,ln,Nr,jr,rn,xn,Gn,Zr,Bt,Bi,Or,Nn,yn,Wn,fn,Fr,En,Bn,sn,$t,kn,On,$r,it,jn,Jn,Zn;return te(this,function(pr){switch(pr.label){case 0:if(re=k.directives,_e=k.isLeaf,He=k.resultKey,dt=V.exportVariablesByNode,Xe=dt.get(Ie)||{},ut=function(Si){return Si instanceof Array?Si.forEach(ut):dt.set(Si,I({},Xe)),Si},At=(Ie||{})[He],Et=(Ie||{})[ye],Ie&&re&&re.export&&(Xe[re.export.as]=Et),Zt=re&&re.type,!_e&&Zt){if(re.rest)throw new Error("Invalid use of @type(name: ...) directive on a call that also has @rest(...)");return ut(Et),[2,q(Et,re.type.name)]}if(Jt=!re||!re.rest,Jt)return[2,ut(At||Et)];if(Ft=V.credentials,er=V.endpoints,Ht=V.headers,Mr=V.customFetch,_r=V.operationType,Ur=V.typePatcher,xr=V.mainDefinition,tn=V.fragmentDefinitions,cr=V.fieldNameNormalizer,Fe=V.fieldNameDenormalizer,De=V.serializers,Yt=V.responseTransformer,ar=$.createFragmentMap(tn),Sr=re.rest,Ut=Sr.path,ln=Sr.endpoint,Nr=Sr.pathBuilder,jr=ke(er,ln),rn=Ut==null&&Nr==null,rn)throw new Error('One of ("path" | "pathBuilder") must be set in the @rest() directive. This request had neither, please add one');if(Nr||(Ut.includes(":")?(console.warn("Deprecated: '@rest(path:' contains a ':' colon, this format will be removed in future versions"),Nr=function(Si){var gn=Si.args,Zi=Si.exportVariables,ki=I(I({},gn),Zi),Pi=Object.keys(ki).reduce(function(h,y){return ge(h,y,ki[y])},Ut);if(Pi.includes(":"))throw new Error('Missing parameters to run query, specify it in the query params or use an export directive. (If you need to use ":" inside a variable string make sure to encode the variables properly using `encodeURIComponent`. Alternatively see documentation about using pathBuilder.)');return Pi}):Nr=Le.replacerForPath(Ut)),xn={args:C,exportVariables:Xe,context:V,"@rest":re.rest,replacer:Nr},Gn=Nr(xn),Zr=re.rest,Bt=Zr.method,Bi=Zr.type,Or=Zr.bodyBuilder,Nn=Zr.bodyKey,yn=Zr.fieldNameDenormalizer,Wn=Zr.fieldNameNormalizer,fn=Zr.bodySerializer,Bt||(Bt="GET"),Nn||(Nn="input"),Fr=void 0,En=void 0,["GET","DELETE"].indexOf(Bt)===-1){if(!Or){if(Bn=xn.exportVariables[Nn]||xn.args&&xn.args[Nn],!Bn)throw new Error("[GraphQL "+Bt+" "+_r+" using a REST call without a body]. No `"+Nn+"` was detected. Pass bodyKey, or bodyBuilder to the @rest() directive to resolve this.");Or=function(Si){return Bn}}if(Fr=D(Or(xn),yn||Fe||x),sn=void 0,typeof fn=="string"){if(!De.hasOwnProperty(fn))throw new Error('"bodySerializer" must correspond to configured serializer. '+("Please make sure to specify a serializer called "+fn+' in the "bodySerializers" property of the RestLink.'));sn=De[fn](Fr,Ht)}else sn=fn?fn(Fr,Ht):De[et](Fr,Ht);Fr=sn.body,En=new Headers(sn.headers)}return de(Bt,_r||"query"),$t=I({method:Bt,headers:En||Ht,body:Fr},Ft?{credentials:Ft}:{}),kn=""+jr.uri+Gn,[4,(Mr||fetch)(kn,$t)];case 1:return On=pr.sent(),V.responses.push(On),On.ok?(On.status===204||On.headers.get("Content-Length")==="0"?$r={}:$r=On,[3,9]):[3,2];case 2:return On.status!==404?[3,3]:($r=null,[3,9]);case 3:it=void 0,pr.label=4;case 4:return pr.trys.push([4,6,,8]),[4,On.clone().json()];case 5:return it=pr.sent(),[3,8];case 6:return jn=pr.sent(),[4,On.clone().text()];case 7:return it=pr.sent(),[3,8];case 8:ae(On,it,"Response not successful: Received status code "+On.status),pr.label=9;case 9:if(Jn=jr.responseTransformer||Yt,!Jn)return[3,14];pr.label=10;case 10:return pr.trys.push([10,12,,13]),[4,Jn($r,Bi)];case 11:return $r=pr.sent(),[3,13];case 12:throw Zn=pr.sent(),console.warn("An error occurred in a responseTransformer:"),Zn;case 13:return[3,16];case 14:return $r&&$r.json?[4,$r.json()]:[3,16];case 15:$r=pr.sent(),pr.label=16;case 16:return $r=D($r,Wn||cr||x),$r=Be(He,$r,xr,ar,xr.selectionSet),$r=m($r,Bi,Ur,{resolverParams:{fieldName:ye,root:Ie,args:C,context:V,info:k}}),[2,ut($r)]}})})},be="",et="",st=function(ye,Ie){return Ie.has("content-type")||Ie.append("Content-Type","application/json"),{body:JSON.stringify(ye),headers:Ie}},lt={test:function(ye){return ye.name.value==="rest"},remove:!0},at=function(ye){ie(Ie,ye);function Ie(C){var V,k=C.uri,re=C.endpoints,_e=C.headers,He=C.fieldNameNormalizer,dt=C.fieldNameDenormalizer,Xe=C.typePatcher,ut=C.customFetch,At=C.credentials,Et=C.bodySerializers,Zt=C.defaultSerializer,Jt=C.responseTransformer,Ft=ye.call(this)||this,er={};if(er[be]=k||"",Ft.endpoints=Object.assign({},re||er),k==null&&re==null)throw new Error("A RestLink must be initialized with either 1 uri, or a map of keyed-endpoints");if(k!=null){var Ht=(re||{})[be];if(Ht!=null&&Ht!=k)throw new Error("RestLink was configured with a default uri that doesn't match what's passed in to the endpoints map.");Ft.endpoints[be]=k}if(Ft.endpoints[be]==null&&console.warn("RestLink configured without a default URI. All @rest(\u2026) directives must provide an endpoint key!"),Xe==null)Ft.typePatcher=function(_r,Ur,xr){return I({__typename:Ur},_r)};else if(!Array.isArray(Xe)&&typeof Xe=="object"&&Object.keys(Xe).map(function(_r){return Xe[_r]}).reduce(function(_r,Ur){return _r&&typeof Ur=="function"},!0)){var Mr=Xe;Ft.typePatcher=function(_r,Ur,xr,tn){var cr=_r.__typename||Ur;if(Array.isArray(_r))return _r.map(function(De){return xr(De,cr,xr,tn)});var Fe=Mr[cr]||function(De){return De};return I({__typename:cr},Fe(_r,cr,xr,tn))}}else throw new Error("RestLink was configured with a typePatcher of invalid type!");return Et&&Et.hasOwnProperty(et)&&console.warn("RestLink was configured to override the default serializer! This may result in unexpected behavior"),Ft.responseTransformer=Jt||null,Ft.fieldNameNormalizer=He||null,Ft.fieldNameDenormalizer=dt||null,Ft.headers=X(_e),Ft.credentials=At||null,Ft.customFetch=ut,Ft.serializers=I((V={},V[et]=Zt||st,V),Et||{}),Ft.processedDocuments=new Map,Ft}return Ie.prototype.removeRestSetsFromDocument=function(C){var V=this.processedDocuments.get(C);if(V)return V;$.checkDocument(C);var k=$.removeDirectivesFromDocument([lt],C);return this.processedDocuments.set(C,k),k},Ie.prototype.request=function(C,V){var k=C.query,re=C.variables,_e=C.getContext,He=C.setContext,dt=_e(),Xe=$.hasDirectives(["rest"],k);if(!Xe)return V(C);var ut=this.removeRestSetsFromDocument(k),At=dt.headersMergePolicy;At==null&&Array.isArray(dt.headersToOverride)?At=Ye(dt.headersToOverride):At==null&&(At=ue);var Et=At(this.headers,dt.headers);Et.has("Accept")||Et.append("Accept","application/json");var Zt=dt.credentials||this.credentials,Jt=$.addTypenameToDocument(k),Ft=$.getMainDefinition(k),er=$.getFragmentDefinitions(k),Ht=(Ft||{}).operation||"query",Mr={headers:Et,endpoints:this.endpoints,exportVariablesByNode:new Map,credentials:Zt,customFetch:this.customFetch,operationType:Ht,fieldNameNormalizer:this.fieldNameNormalizer,fieldNameDenormalizer:this.fieldNameDenormalizer,mainDefinition:Ft,fragmentDefinitions:er,typePatcher:this.typePatcher,serializers:this.serializers,responses:[],responseTransformer:this.responseTransformer},_r={},Ur;return ut&&V?(C.query=ut,Ur=V(C)):Ur=p.Observable.of({data:{}}),Ur.flatMap(function(xr){var tn=xr.data,cr=xr.errors;return new p.Observable(function(Fe){P(Te,Jt,tn,Mr,re,_r).then(function(De){He({restResponses:(dt.restResponses||[]).concat(Mr.responses)}),Fe.next({data:De,errors:cr}),Fe.complete()}).catch(function(De){De.name!=="AbortError"&&(De.result&&De.result.errors&&Fe.next(De.result),Fe.error(De))})})})},Ie}(p.ApolloLink);O.RestLink=at,O.PathBuilder=Le,Object.defineProperty(O,"__esModule",{value:!0})})},879:function(we,z){"use strict";var g=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ee){$.__proto__=ee}||function($,ee){for(var ce in ee)ee.hasOwnProperty(ce)&&($[ce]=ee[ce])};return function($,ee){p($,ee);function ce(){this.constructor=$}$.prototype=ee===null?Object.create(ee):(ce.prototype=ee.prototype,new ce)}}();Object.defineProperty(z,"__esModule",{value:!0});var O=function(p){g($,p);function $(ee,ce,Y){Y===void 0&&(Y=408);var M=p.call(this,ee)||this;return M.timeout=ce,M.statusCode=Y,M}return $}(Error);z.default=O},7681:function(we,z,g){"use strict";var O=this&&this.__extends||function(){var M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var P in L)L.hasOwnProperty(P)&&(N[P]=L[P])};return function(N,L){M(N,L);function P(){this.constructor=N}N.prototype=L===null?Object.create(L):(P.prototype=L.prototype,new P)}}(),p=this&&this.__assign||Object.assign||function(M){for(var N,L=1,P=arguments.length;L<P;L++){N=arguments[L];for(var j in N)Object.prototype.hasOwnProperty.call(N,j)&&(M[j]=N[j])}return M};Object.defineProperty(z,"__esModule",{value:!0});var $=g(8829),ee=g(879),ce=15e3,Y=function(M){O(N,M);function N(L,P){var j=M.call(this)||this;return j.timeout=L||ce,j.statusCode=P,j}return N.prototype.request=function(L,P){var j=this,W,F=L.getContext().timeout||this.timeout;if(typeof AbortController<"u"){var ie=L.getContext(),I=ie.fetchOptions||{};W=I.controller||new AbortController,I=p({},I,{controller:W,signal:W.signal}),L.setContext({fetchOptions:I})}var J=P(L),te=L.query.definitions.find(function(U){return U.kind==="OperationDefinition"}).operation;if(F<=0||te==="subscription")return J;var oe=new $.Observable(function(U){var m,Ae=J.subscribe(function(ze){clearTimeout(m),U.next(ze),U.complete()},function(ze){clearTimeout(m),U.error(ze),U.complete()});m=setTimeout(function(){if(W){W.abort();var ze=L.getContext(),ke=ze.fetchOptions||{};ke.controller===W&&ke.signal===W.signal&&(ke=p({},ke,{controller:null,signal:null}),L.setContext({fetchOptions:ke}))}U.error(new ee.default("Timeout exceeded",F,j.statusCode)),Ae.unsubscribe()},F);var Be=L.getContext().timeoutRef;return Be&&Be({unsubscribe:function(){clearTimeout(m),Ae.unsubscribe()}}),function(){clearTimeout(m),Ae.unsubscribe()}});return oe},N}($.ApolloLink);z.default=Y},9818:(we,z,g)=>{"use strict";var O=g(528),p=g(8498),$=p(O("String.prototype.indexOf"));we.exports=function(ce,Y){var M=O(ce,!!Y);return typeof M=="function"&&$(ce,".prototype.")>-1?p(M):M}},8498:(we,z,g)=>{"use strict";var O=g(9138),p=g(528),$=g(6108),ee=g(3468),ce=p("%Function.prototype.apply%"),Y=p("%Function.prototype.call%"),M=p("%Reflect.apply%",!0)||O.call(Y,ce),N=g(4940),L=p("%Math.max%");we.exports=function(W){if(typeof W!="function")throw new ee("a function is required");var F=M(O,Y,arguments);return $(F,1+L(0,W.length-(arguments.length-1)),!0)};var P=function(){return M(O,ce,arguments)};N?N(we.exports,"apply",{value:P}):we.exports.apply=P},288:function(we,z){var g=typeof self<"u"?self:this,O=function(){function $(){this.fetch=!1,this.DOMException=g.DOMException}return $.prototype=g,new $}();(function($){var ee=function(ce){var Y={searchParams:"URLSearchParams"in $,iterable:"Symbol"in $&&"iterator"in Symbol,blob:"FileReader"in $&&"Blob"in $&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in $,arrayBuffer:"ArrayBuffer"in $};function M(R){return R&&DataView.prototype.isPrototypeOf(R)}if(Y.arrayBuffer)var N=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],L=ArrayBuffer.isView||function(R){return R&&N.indexOf(Object.prototype.toString.call(R))>-1};function P(R){if(typeof R!="string"&&(R=String(R)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(R))throw new TypeError("Invalid character in header field name");return R.toLowerCase()}function j(R){return typeof R!="string"&&(R=String(R)),R}function W(R){var D={next:function(){var x=R.shift();return{done:x===void 0,value:x}}};return Y.iterable&&(D[Symbol.iterator]=function(){return D}),D}function F(R){this.map={},R instanceof F?R.forEach(function(D,x){this.append(x,D)},this):Array.isArray(R)?R.forEach(function(D){this.append(D[0],D[1])},this):R&&Object.getOwnPropertyNames(R).forEach(function(D){this.append(D,R[D])},this)}F.prototype.append=function(R,D){R=P(R),D=j(D);var x=this.map[R];this.map[R]=x?x+", "+D:D},F.prototype.delete=function(R){delete this.map[P(R)]},F.prototype.get=function(R){return R=P(R),this.has(R)?this.map[R]:null},F.prototype.has=function(R){return this.map.hasOwnProperty(P(R))},F.prototype.set=function(R,D){this.map[P(R)]=j(D)},F.prototype.forEach=function(R,D){for(var x in this.map)this.map.hasOwnProperty(x)&&R.call(D,this.map[x],x,this)},F.prototype.keys=function(){var R=[];return this.forEach(function(D,x){R.push(x)}),W(R)},F.prototype.values=function(){var R=[];return this.forEach(function(D){R.push(D)}),W(R)},F.prototype.entries=function(){var R=[];return this.forEach(function(D,x){R.push([x,D])}),W(R)},Y.iterable&&(F.prototype[Symbol.iterator]=F.prototype.entries);function ie(R){if(R.bodyUsed)return Promise.reject(new TypeError("Already read"));R.bodyUsed=!0}function I(R){return new Promise(function(D,x){R.onload=function(){D(R.result)},R.onerror=function(){x(R.error)}})}function J(R){var D=new FileReader,x=I(D);return D.readAsArrayBuffer(R),x}function te(R){var D=new FileReader,x=I(D);return D.readAsText(R),x}function oe(R){for(var D=new Uint8Array(R),x=new Array(D.length),X=0;X<D.length;X++)x[X]=String.fromCharCode(D[X]);return x.join("")}function U(R){if(R.slice)return R.slice(0);var D=new Uint8Array(R.byteLength);return D.set(new Uint8Array(R)),D.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(R){this._bodyInit=R,R?typeof R=="string"?this._bodyText=R:Y.blob&&Blob.prototype.isPrototypeOf(R)?this._bodyBlob=R:Y.formData&&FormData.prototype.isPrototypeOf(R)?this._bodyFormData=R:Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)?this._bodyText=R.toString():Y.arrayBuffer&&Y.blob&&M(R)?(this._bodyArrayBuffer=U(R.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(R)||L(R))?this._bodyArrayBuffer=U(R):this._bodyText=R=Object.prototype.toString.call(R):this._bodyText="",this.headers.get("content-type")||(typeof R=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Y.blob&&(this.blob=function(){var R=ie(this);if(R)return R;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ie(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(J)}),this.text=function(){var R=ie(this);if(R)return R;if(this._bodyBlob)return te(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(oe(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Y.formData&&(this.formData=function(){return this.text().then(ke)}),this.json=function(){return this.text().then(JSON.parse)},this}var Ae=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Be(R){var D=R.toUpperCase();return Ae.indexOf(D)>-1?D:R}function ze(R,D){D=D||{};var x=D.body;if(R instanceof ze){if(R.bodyUsed)throw new TypeError("Already read");this.url=R.url,this.credentials=R.credentials,D.headers||(this.headers=new F(R.headers)),this.method=R.method,this.mode=R.mode,this.signal=R.signal,!x&&R._bodyInit!=null&&(x=R._bodyInit,R.bodyUsed=!0)}else this.url=String(R);if(this.credentials=D.credentials||this.credentials||"same-origin",(D.headers||!this.headers)&&(this.headers=new F(D.headers)),this.method=Be(D.method||this.method||"GET"),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}ze.prototype.clone=function(){return new ze(this,{body:this._bodyInit})};function ke(R){var D=new FormData;return R.trim().split("&").forEach(function(x){if(x){var X=x.split("="),ue=X.shift().replace(/\+/g," "),he=X.join("=").replace(/\+/g," ");D.append(decodeURIComponent(ue),decodeURIComponent(he))}}),D}function ge(R){var D=new F,x=R.replace(/\r?\n[\t ]+/g," ");return x.split(/\r?\n/).forEach(function(X){var ue=X.split(":"),he=ue.shift().trim();if(he){var Ye=ue.join(":").trim();D.append(he,Ye)}}),D}m.call(ze.prototype);function Le(R,D){D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in D?D.statusText:"OK",this.headers=new F(D.headers),this.url=D.url||"",this._initBody(R)}m.call(Le.prototype),Le.prototype.clone=function(){return new Le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},Le.error=function(){var R=new Le(null,{status:0,statusText:""});return R.type="error",R};var Ee=[301,302,303,307,308];Le.redirect=function(R,D){if(Ee.indexOf(D)===-1)throw new RangeError("Invalid status code");return new Le(null,{status:D,headers:{location:R}})},ce.DOMException=$.DOMException;try{new ce.DOMException}catch{ce.DOMException=function(D,x){this.message=D,this.name=x;var X=Error(D);this.stack=X.stack},ce.DOMException.prototype=Object.create(Error.prototype),ce.DOMException.prototype.constructor=ce.DOMException}function B(R,D){return new Promise(function(x,X){var ue=new ze(R,D);if(ue.signal&&ue.signal.aborted)return X(new ce.DOMException("Aborted","AbortError"));var he=new XMLHttpRequest;function Ye(){he.abort()}he.onload=function(){var ve={status:he.status,statusText:he.statusText,headers:ge(he.getAllResponseHeaders()||"")};ve.url="responseURL"in he?he.responseURL:ve.headers.get("X-Request-URL");var de="response"in he?he.response:he.responseText;x(new Le(de,ve))},he.onerror=function(){X(new TypeError("Network request failed"))},he.ontimeout=function(){X(new TypeError("Network request failed"))},he.onabort=function(){X(new ce.DOMException("Aborted","AbortError"))},he.open(ue.method,ue.url,!0),ue.credentials==="include"?he.withCredentials=!0:ue.credentials==="omit"&&(he.withCredentials=!1),"responseType"in he&&Y.blob&&(he.responseType="blob"),ue.headers.forEach(function(ve,de){he.setRequestHeader(de,ve)}),ue.signal&&(ue.signal.addEventListener("abort",Ye),he.onreadystatechange=function(){he.readyState===4&&ue.signal.removeEventListener("abort",Ye)}),he.send(typeof ue._bodyInit>"u"?null:ue._bodyInit)})}return B.polyfill=!0,$.fetch||($.fetch=B,$.Headers=F,$.Request=ze,$.Response=Le),ce.Headers=F,ce.Request=ze,ce.Response=Le,ce.fetch=B,Object.defineProperty(ce,"__esModule",{value:!0}),ce}({})})(O),O.fetch.ponyfill=!0,delete O.fetch.polyfill;var p=O;z=p.fetch,z.default=p.fetch,z.fetch=p.fetch,z.Headers=p.Headers,z.Request=p.Request,z.Response=p.Response,we.exports=z},686:(we,z,g)=>{"use strict";var O=g(4940),p=g(5731),$=g(3468),ee=g(9336);we.exports=function(Y,M,N){if(!Y||typeof Y!="object"&&typeof Y!="function")throw new $("`obj` must be an object or a function`");if(typeof M!="string"&&typeof M!="symbol")throw new $("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $("`loose`, if provided, must be a boolean");var L=arguments.length>3?arguments[3]:null,P=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,W=arguments.length>6?arguments[6]:!1,F=!!ee&&ee(Y,M);if(O)O(Y,M,{configurable:j===null&&F?F.configurable:!j,enumerable:L===null&&F?F.enumerable:!L,value:N,writable:P===null&&F?F.writable:!P});else if(W||!L&&!P&&!j)Y[M]=N;else throw new p("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},4940:(we,z,g)=>{"use strict";var O=g(528),p=O("%Object.defineProperty%",!0)||!1;if(p)try{p({},"a",{value:1})}catch{p=!1}we.exports=p},9110:we=>{"use strict";we.exports=EvalError},9838:we=>{"use strict";we.exports=Error},1155:we=>{"use strict";we.exports=RangeError},4943:we=>{"use strict";we.exports=ReferenceError},5731:we=>{"use strict";we.exports=SyntaxError},3468:we=>{"use strict";we.exports=TypeError},2140:we=>{"use strict";we.exports=URIError},8794:we=>{"use strict";var z="Function.prototype.bind called on incompatible ",g=Object.prototype.toString,O=Math.max,p="[object Function]",$=function(M,N){for(var L=[],P=0;P<M.length;P+=1)L[P]=M[P];for(var j=0;j<N.length;j+=1)L[j+M.length]=N[j];return L},ee=function(M,N){for(var L=[],P=N||0,j=0;P<M.length;P+=1,j+=1)L[j]=M[P];return L},ce=function(Y,M){for(var N="",L=0;L<Y.length;L+=1)N+=Y[L],L+1<Y.length&&(N+=M);return N};we.exports=function(M){var N=this;if(typeof N!="function"||g.apply(N)!==p)throw new TypeError(z+N);for(var L=ee(arguments,1),P,j=function(){if(this instanceof P){var J=N.apply(this,$(L,arguments));return Object(J)===J?J:this}return N.apply(M,$(L,arguments))},W=O(0,N.length-L.length),F=[],ie=0;ie<W;ie++)F[ie]="$"+ie;if(P=Function("binder","return function ("+ce(F,",")+"){ return binder.apply(this,arguments); }")(j),N.prototype){var I=function(){};I.prototype=N.prototype,P.prototype=new I,I.prototype=null}return P}},9138:(we,z,g)=>{"use strict";var O=g(8794);we.exports=Function.prototype.bind||O},528:(we,z,g)=>{"use strict";var O,p=g(9838),$=g(9110),ee=g(1155),ce=g(4943),Y=g(5731),M=g(3468),N=g(2140),L=Function,P=function(he){try{return L('"use strict"; return ('+he+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var W=function(){throw new M},F=j?function(){try{return arguments.callee,W}catch{try{return j(arguments,"callee").get}catch{return W}}}():W,ie=g(3558)(),I=g(6869)(),J=Object.getPrototypeOf||(I?function(he){return he.__proto__}:null),te={},oe=typeof Uint8Array>"u"||!J?O:J(Uint8Array),U={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?O:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?O:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&J?J([][Symbol.iterator]()):O,"%AsyncFromSyncIteratorPrototype%":O,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?O:Atomics,"%BigInt%":typeof BigInt>"u"?O:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?O:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?O:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?O:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p,"%eval%":eval,"%EvalError%":$,"%Float32Array%":typeof Float32Array>"u"?O:Float32Array,"%Float64Array%":typeof Float64Array>"u"?O:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?O:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?O:Int8Array,"%Int16Array%":typeof Int16Array>"u"?O:Int16Array,"%Int32Array%":typeof Int32Array>"u"?O:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ie&&J?J(J([][Symbol.iterator]())):O,"%JSON%":typeof JSON=="object"?JSON:O,"%Map%":typeof Map>"u"?O:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ie||!J?O:J(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?O:Promise,"%Proxy%":typeof Proxy>"u"?O:Proxy,"%RangeError%":ee,"%ReferenceError%":ce,"%Reflect%":typeof Reflect>"u"?O:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?O:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ie||!J?O:J(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?O:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&J?J(""[Symbol.iterator]()):O,"%Symbol%":ie?Symbol:O,"%SyntaxError%":Y,"%ThrowTypeError%":F,"%TypedArray%":oe,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?O:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?O:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?O:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?O:Uint32Array,"%URIError%":N,"%WeakMap%":typeof WeakMap>"u"?O:WeakMap,"%WeakRef%":typeof WeakRef>"u"?O:WeakRef,"%WeakSet%":typeof WeakSet>"u"?O:WeakSet};if(J)try{null.error}catch(he){var m=J(J(he));U["%Error.prototype%"]=m}var Ae=function he(Ye){var ve;if(Ye==="%AsyncFunction%")ve=P("async function () {}");else if(Ye==="%GeneratorFunction%")ve=P("function* () {}");else if(Ye==="%AsyncGeneratorFunction%")ve=P("async function* () {}");else if(Ye==="%AsyncGenerator%"){var de=he("%AsyncGeneratorFunction%");de&&(ve=de.prototype)}else if(Ye==="%AsyncIteratorPrototype%"){var ae=he("%AsyncGenerator%");ae&&J&&(ve=J(ae.prototype))}return U[Ye]=ve,ve},Be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ze=g(9138),ke=g(8554),ge=ze.call(Function.call,Array.prototype.concat),Le=ze.call(Function.apply,Array.prototype.splice),Ee=ze.call(Function.call,String.prototype.replace),B=ze.call(Function.call,String.prototype.slice),R=ze.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,X=function(Ye){var ve=B(Ye,0,1),de=B(Ye,-1);if(ve==="%"&&de!=="%")throw new Y("invalid intrinsic syntax, expected closing `%`");if(de==="%"&&ve!=="%")throw new Y("invalid intrinsic syntax, expected opening `%`");var ae=[];return Ee(Ye,D,function(q,Te,be,et){ae[ae.length]=be?Ee(et,x,"$1"):Te||q}),ae},ue=function(Ye,ve){var de=Ye,ae;if(ke(Be,de)&&(ae=Be[de],de="%"+ae[0]+"%"),ke(U,de)){var q=U[de];if(q===te&&(q=Ae(de)),typeof q>"u"&&!ve)throw new M("intrinsic "+Ye+" exists, but is not available. Please file an issue!");return{alias:ae,name:de,value:q}}throw new Y("intrinsic "+Ye+" does not exist!")};we.exports=function(Ye,ve){if(typeof Ye!="string"||Ye.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new M('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,Ye)===null)throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var de=X(Ye),ae=de.length>0?de[0]:"",q=ue("%"+ae+"%",ve),Te=q.name,be=q.value,et=!1,st=q.alias;st&&(ae=st[0],Le(de,ge([0,1],st)));for(var lt=1,at=!0;lt<de.length;lt+=1){var ye=de[lt],Ie=B(ye,0,1),C=B(ye,-1);if((Ie==='"'||Ie==="'"||Ie==="`"||C==='"'||C==="'"||C==="`")&&Ie!==C)throw new Y("property names with quotes must have matching quotes");if((ye==="constructor"||!at)&&(et=!0),ae+="."+ye,Te="%"+ae+"%",ke(U,Te))be=U[Te];else if(be!=null){if(!(ye in be)){if(!ve)throw new M("base intrinsic for "+Ye+" exists, but the property is not available.");return}if(j&&lt+1>=de.length){var V=j(be,ye);at=!!V,at&&"get"in V&&!("originalValue"in V.get)?be=V.get:be=be[ye]}else at=ke(be,ye),be=be[ye];at&&!et&&(U[Te]=be)}}return be}},9336:(we,z,g)=>{"use strict";var O=g(528),p=O("%Object.getOwnPropertyDescriptor%",!0);if(p)try{p([],"length")}catch{p=null}we.exports=p},4370:(we,z,g)=>{"use strict";g.d(z,{Ay:()=>oe,J1:()=>W,Nh:()=>F,VC:()=>I,gi:()=>ie,qj:()=>J});var O=g(5608),p=g(5157),$=new Map,ee=new Map,ce=!0,Y=!1;function M(U){return U.replace(/[\s,]+/g," ").trim()}function N(U){return M(U.source.body.substring(U.start,U.end))}function L(U){var m=new Set,Ae=[];return U.definitions.forEach(function(Be){if(Be.kind==="FragmentDefinition"){var ze=Be.name.value,ke=N(Be.loc),ge=ee.get(ze);ge&&!ge.has(ke)?ce&&console.warn("Warning: fragment with name "+ze+` already exists.
1
+ (globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[152],{8575:(we,z,g)=>{const O=Symbol("SemVer ANY");class p{static get ANY(){return O}constructor(j,W){if(W=$(W),j instanceof p){if(j.loose===!!W.loose)return j;j=j.value}j=j.trim().split(/\s+/).join(" "),M("comparator",j,W),this.options=W,this.loose=!!W.loose,this.parse(j),this.semver===O?this.value="":this.value=this.operator+this.semver.version,M("comp",this)}parse(j){const W=this.options.loose?ee[ce.COMPARATORLOOSE]:ee[ce.COMPARATOR],F=j.match(W);if(!F)throw new TypeError(`Invalid comparator: ${j}`);this.operator=F[1]!==void 0?F[1]:"",this.operator==="="&&(this.operator=""),F[2]?this.semver=new N(F[2],this.options.loose):this.semver=O}toString(){return this.value}test(j){if(M("Comparator.test",j,this.options.loose),this.semver===O||j===O)return!0;if(typeof j=="string")try{j=new N(j,this.options)}catch{return!1}return Y(j,this.operator,this.semver,this.options)}intersects(j,W){if(!(j instanceof p))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new L(j.value,W).test(this.value):j.operator===""?j.value===""?!0:new L(this.value,W).test(j.semver):(W=$(W),W.includePrerelease&&(this.value==="<0.0.0-0"||j.value==="<0.0.0-0")||!W.includePrerelease&&(this.value.startsWith("<0.0.0")||j.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&j.operator.startsWith(">")||this.operator.startsWith("<")&&j.operator.startsWith("<")||this.semver.version===j.semver.version&&this.operator.includes("=")&&j.operator.includes("=")||Y(this.semver,"<",j.semver,W)&&this.operator.startsWith(">")&&j.operator.startsWith("<")||Y(this.semver,">",j.semver,W)&&this.operator.startsWith("<")&&j.operator.startsWith(">")))}}we.exports=p;const $=g(2664),{safeRe:ee,t:ce}=g(6915),Y=g(1938),M=g(8763),N=g(9383),L=g(8154)},8154:(we,z,g)=>{class O{constructor(x,X){if(X=ee(X),x instanceof O)return x.loose===!!X.loose&&x.includePrerelease===!!X.includePrerelease?x:new O(x.raw,X);if(x instanceof ce)return this.raw=x.value,this.set=[[x]],this.format(),this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=x.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(ue=>this.parseRange(ue.trim())).filter(ue=>ue.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const ue=this.set[0];if(this.set=this.set.filter(he=>!I(he[0])),this.set.length===0)this.set=[ue];else if(this.set.length>1){for(const he of this.set)if(he.length===1&&J(he[0])){this.set=[he];break}}}this.format()}format(){return this.range=this.set.map(x=>x.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(x){const ue=((this.options.includePrerelease&&F)|(this.options.loose&&ie))+":"+x,he=$.get(ue);if(he)return he;const Ye=this.options.loose,ve=Ye?N[L.HYPHENRANGELOOSE]:N[L.HYPHENRANGE];x=x.replace(ve,B(this.options.includePrerelease)),Y("hyphen replace",x),x=x.replace(N[L.COMPARATORTRIM],P),Y("comparator trim",x),x=x.replace(N[L.TILDETRIM],j),Y("tilde trim",x),x=x.replace(N[L.CARETTRIM],W),Y("caret trim",x);let de=x.split(" ").map(be=>oe(be,this.options)).join(" ").split(/\s+/).map(be=>Ee(be,this.options));Ye&&(de=de.filter(be=>(Y("loose invalid filter",be,this.options),!!be.match(N[L.COMPARATORLOOSE])))),Y("range list",de);const ae=new Map,q=de.map(be=>new ce(be,this.options));for(const be of q){if(I(be))return[be];ae.set(be.value,be)}ae.size>1&&ae.has("")&&ae.delete("");const Te=[...ae.values()];return $.set(ue,Te),Te}intersects(x,X){if(!(x instanceof O))throw new TypeError("a Range is required");return this.set.some(ue=>te(ue,X)&&x.set.some(he=>te(he,X)&&ue.every(Ye=>he.every(ve=>Ye.intersects(ve,X)))))}test(x){if(!x)return!1;if(typeof x=="string")try{x=new M(x,this.options)}catch{return!1}for(let X=0;X<this.set.length;X++)if(R(this.set[X],x,this.options))return!0;return!1}}we.exports=O;const p=g(6795),$=new p,ee=g(2664),ce=g(8575),Y=g(8763),M=g(9383),{safeRe:N,t:L,comparatorTrimReplace:P,tildeTrimReplace:j,caretTrimReplace:W}=g(6915),{FLAG_INCLUDE_PRERELEASE:F,FLAG_LOOSE:ie}=g(1529),I=D=>D.value==="<0.0.0-0",J=D=>D.value==="",te=(D,x)=>{let X=!0;const ue=D.slice();let he=ue.pop();for(;X&&ue.length;)X=ue.every(Ye=>he.intersects(Ye,x)),he=ue.pop();return X},oe=(D,x)=>(Y("comp",D,x),D=Be(D,x),Y("caret",D),D=m(D,x),Y("tildes",D),D=ke(D,x),Y("xrange",D),D=Le(D,x),Y("stars",D),D),U=D=>!D||D.toLowerCase()==="x"||D==="*",m=(D,x)=>D.trim().split(/\s+/).map(X=>Ae(X,x)).join(" "),Ae=(D,x)=>{const X=x.loose?N[L.TILDELOOSE]:N[L.TILDE];return D.replace(X,(ue,he,Ye,ve,de)=>{Y("tilde",D,ue,he,Ye,ve,de);let ae;return U(he)?ae="":U(Ye)?ae=`>=${he}.0.0 <${+he+1}.0.0-0`:U(ve)?ae=`>=${he}.${Ye}.0 <${he}.${+Ye+1}.0-0`:de?(Y("replaceTilde pr",de),ae=`>=${he}.${Ye}.${ve}-${de} <${he}.${+Ye+1}.0-0`):ae=`>=${he}.${Ye}.${ve} <${he}.${+Ye+1}.0-0`,Y("tilde return",ae),ae})},Be=(D,x)=>D.trim().split(/\s+/).map(X=>ze(X,x)).join(" "),ze=(D,x)=>{Y("caret",D,x);const X=x.loose?N[L.CARETLOOSE]:N[L.CARET],ue=x.includePrerelease?"-0":"";return D.replace(X,(he,Ye,ve,de,ae)=>{Y("caret",D,he,Ye,ve,de,ae);let q;return U(Ye)?q="":U(ve)?q=`>=${Ye}.0.0${ue} <${+Ye+1}.0.0-0`:U(de)?Ye==="0"?q=`>=${Ye}.${ve}.0${ue} <${Ye}.${+ve+1}.0-0`:q=`>=${Ye}.${ve}.0${ue} <${+Ye+1}.0.0-0`:ae?(Y("replaceCaret pr",ae),Ye==="0"?ve==="0"?q=`>=${Ye}.${ve}.${de}-${ae} <${Ye}.${ve}.${+de+1}-0`:q=`>=${Ye}.${ve}.${de}-${ae} <${Ye}.${+ve+1}.0-0`:q=`>=${Ye}.${ve}.${de}-${ae} <${+Ye+1}.0.0-0`):(Y("no pr"),Ye==="0"?ve==="0"?q=`>=${Ye}.${ve}.${de}${ue} <${Ye}.${ve}.${+de+1}-0`:q=`>=${Ye}.${ve}.${de}${ue} <${Ye}.${+ve+1}.0-0`:q=`>=${Ye}.${ve}.${de} <${+Ye+1}.0.0-0`),Y("caret return",q),q})},ke=(D,x)=>(Y("replaceXRanges",D,x),D.split(/\s+/).map(X=>ge(X,x)).join(" ")),ge=(D,x)=>{D=D.trim();const X=x.loose?N[L.XRANGELOOSE]:N[L.XRANGE];return D.replace(X,(ue,he,Ye,ve,de,ae)=>{Y("xRange",D,ue,he,Ye,ve,de,ae);const q=U(Ye),Te=q||U(ve),be=Te||U(de),et=be;return he==="="&&et&&(he=""),ae=x.includePrerelease?"-0":"",q?he===">"||he==="<"?ue="<0.0.0-0":ue="*":he&&et?(Te&&(ve=0),de=0,he===">"?(he=">=",Te?(Ye=+Ye+1,ve=0,de=0):(ve=+ve+1,de=0)):he==="<="&&(he="<",Te?Ye=+Ye+1:ve=+ve+1),he==="<"&&(ae="-0"),ue=`${he+Ye}.${ve}.${de}${ae}`):Te?ue=`>=${Ye}.0.0${ae} <${+Ye+1}.0.0-0`:be&&(ue=`>=${Ye}.${ve}.0${ae} <${Ye}.${+ve+1}.0-0`),Y("xRange return",ue),ue})},Le=(D,x)=>(Y("replaceStars",D,x),D.trim().replace(N[L.STAR],"")),Ee=(D,x)=>(Y("replaceGTE0",D,x),D.trim().replace(N[x.includePrerelease?L.GTE0PRE:L.GTE0],"")),B=D=>(x,X,ue,he,Ye,ve,de,ae,q,Te,be,et)=>(U(ue)?X="":U(he)?X=`>=${ue}.0.0${D?"-0":""}`:U(Ye)?X=`>=${ue}.${he}.0${D?"-0":""}`:ve?X=`>=${X}`:X=`>=${X}${D?"-0":""}`,U(q)?ae="":U(Te)?ae=`<${+q+1}.0.0-0`:U(be)?ae=`<${q}.${+Te+1}.0-0`:et?ae=`<=${q}.${Te}.${be}-${et}`:D?ae=`<${q}.${Te}.${+be+1}-0`:ae=`<=${ae}`,`${X} ${ae}`.trim()),R=(D,x,X)=>{for(let ue=0;ue<D.length;ue++)if(!D[ue].test(x))return!1;if(x.prerelease.length&&!X.includePrerelease){for(let ue=0;ue<D.length;ue++)if(Y(D[ue].semver),D[ue].semver!==ce.ANY&&D[ue].semver.prerelease.length>0){const he=D[ue].semver;if(he.major===x.major&&he.minor===x.minor&&he.patch===x.patch)return!0}return!1}return!0}},9383:(we,z,g)=>{const O=g(8763),{MAX_LENGTH:p,MAX_SAFE_INTEGER:$}=g(1529),{safeRe:ee,t:ce}=g(6915),Y=g(2664),{compareIdentifiers:M}=g(9832);class N{constructor(P,j){if(j=Y(j),P instanceof N){if(P.loose===!!j.loose&&P.includePrerelease===!!j.includePrerelease)return P;P=P.version}else if(typeof P!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof P}".`);if(P.length>p)throw new TypeError(`version is longer than ${p} characters`);O("SemVer",P,j),this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease;const W=P.trim().match(j.loose?ee[ce.LOOSE]:ee[ce.FULL]);if(!W)throw new TypeError(`Invalid Version: ${P}`);if(this.raw=P,this.major=+W[1],this.minor=+W[2],this.patch=+W[3],this.major>$||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$||this.patch<0)throw new TypeError("Invalid patch version");W[4]?this.prerelease=W[4].split(".").map(F=>{if(/^[0-9]+$/.test(F)){const ie=+F;if(ie>=0&&ie<$)return ie}return F}):this.prerelease=[],this.build=W[5]?W[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(P){if(O("SemVer.compare",this.version,this.options,P),!(P instanceof N)){if(typeof P=="string"&&P===this.version)return 0;P=new N(P,this.options)}return P.version===this.version?0:this.compareMain(P)||this.comparePre(P)}compareMain(P){return P instanceof N||(P=new N(P,this.options)),M(this.major,P.major)||M(this.minor,P.minor)||M(this.patch,P.patch)}comparePre(P){if(P instanceof N||(P=new N(P,this.options)),this.prerelease.length&&!P.prerelease.length)return-1;if(!this.prerelease.length&&P.prerelease.length)return 1;if(!this.prerelease.length&&!P.prerelease.length)return 0;let j=0;do{const W=this.prerelease[j],F=P.prerelease[j];if(O("prerelease compare",j,W,F),W===void 0&&F===void 0)return 0;if(F===void 0)return 1;if(W===void 0)return-1;if(W===F)continue;return M(W,F)}while(++j)}compareBuild(P){P instanceof N||(P=new N(P,this.options));let j=0;do{const W=this.build[j],F=P.build[j];if(O("build compare",j,W,F),W===void 0&&F===void 0)return 0;if(F===void 0)return 1;if(W===void 0)return-1;if(W===F)continue;return M(W,F)}while(++j)}inc(P,j,W){switch(P){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",j,W);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",j,W);break;case"prepatch":this.prerelease.length=0,this.inc("patch",j,W),this.inc("pre",j,W);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",j,W),this.inc("pre",j,W);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const F=Number(W)?1:0;if(!j&&W===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[F];else{let ie=this.prerelease.length;for(;--ie>=0;)typeof this.prerelease[ie]=="number"&&(this.prerelease[ie]++,ie=-2);if(ie===-1){if(j===this.prerelease.join(".")&&W===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(F)}}if(j){let ie=[j,F];W===!1&&(ie=[j]),M(this.prerelease[0],j)===0?isNaN(this.prerelease[1])&&(this.prerelease=ie):this.prerelease=ie}break}default:throw new Error(`invalid increment argument: ${P}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}we.exports=N},1938:(we,z,g)=>{const O=g(9438),p=g(690),$=g(419),ee=g(6736),ce=g(7644),Y=g(9593),M=(N,L,P,j)=>{switch(L){case"===":return typeof N=="object"&&(N=N.version),typeof P=="object"&&(P=P.version),N===P;case"!==":return typeof N=="object"&&(N=N.version),typeof P=="object"&&(P=P.version),N!==P;case"":case"=":case"==":return O(N,P,j);case"!=":return p(N,P,j);case">":return $(N,P,j);case">=":return ee(N,P,j);case"<":return ce(N,P,j);case"<=":return Y(N,P,j);default:throw new TypeError(`Invalid operator: ${L}`)}};we.exports=M},5725:(we,z,g)=>{const O=g(9383),p=g(317),{safeRe:$,t:ee}=g(6915),ce=(Y,M)=>{if(Y instanceof O)return Y;if(typeof Y=="number"&&(Y=String(Y)),typeof Y!="string")return null;M=M||{};let N=null;if(!M.rtl)N=Y.match(M.includePrerelease?$[ee.COERCEFULL]:$[ee.COERCE]);else{const ie=M.includePrerelease?$[ee.COERCERTLFULL]:$[ee.COERCERTL];let I;for(;(I=ie.exec(Y))&&(!N||N.index+N[0].length!==Y.length);)(!N||I.index+I[0].length!==N.index+N[0].length)&&(N=I),ie.lastIndex=I.index+I[1].length+I[2].length;ie.lastIndex=-1}if(N===null)return null;const L=N[2],P=N[3]||"0",j=N[4]||"0",W=M.includePrerelease&&N[5]?`-${N[5]}`:"",F=M.includePrerelease&&N[6]?`+${N[6]}`:"";return p(`${L}.${P}.${j}${W}${F}`,M)};we.exports=ce},9569:(we,z,g)=>{const O=g(9383),p=($,ee,ce)=>new O($,ce).compare(new O(ee,ce));we.exports=p},9438:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)===0;we.exports=p},419:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)>0;we.exports=p},6736:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)>=0;we.exports=p},7644:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)<0;we.exports=p},9593:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)<=0;we.exports=p},690:(we,z,g)=>{const O=g(9569),p=($,ee,ce)=>O($,ee,ce)!==0;we.exports=p},317:(we,z,g)=>{const O=g(9383),p=($,ee,ce=!1)=>{if($ instanceof O)return $;try{return new O($,ee)}catch(Y){if(!ce)return null;throw Y}};we.exports=p},295:(we,z,g)=>{const O=g(8154),p=($,ee,ce)=>{try{ee=new O(ee,ce)}catch{return!1}return ee.test($)};we.exports=p},2424:(we,z,g)=>{const O=g(317),p=($,ee)=>{const ce=O($,ee);return ce?ce.version:null};we.exports=p},1529:we=>{const z="2.0.0",O=Number.MAX_SAFE_INTEGER||9007199254740991,p=16,$=256-6,ee=["major","premajor","minor","preminor","patch","prepatch","prerelease"];we.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:p,MAX_SAFE_BUILD_LENGTH:$,MAX_SAFE_INTEGER:O,RELEASE_TYPES:ee,SEMVER_SPEC_VERSION:z,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},8763:we=>{const z=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...g)=>console.error("SEMVER",...g):()=>{};we.exports=z},9832:we=>{const z=/^[0-9]+$/,g=(p,$)=>{const ee=z.test(p),ce=z.test($);return ee&&ce&&(p=+p,$=+$),p===$?0:ee&&!ce?-1:ce&&!ee?1:p<$?-1:1},O=(p,$)=>g($,p);we.exports={compareIdentifiers:g,rcompareIdentifiers:O}},6795:we=>{class z{constructor(){this.max=1e3,this.map=new Map}get(O){const p=this.map.get(O);if(p!==void 0)return this.map.delete(O),this.map.set(O,p),p}delete(O){return this.map.delete(O)}set(O,p){if(!this.delete(O)&&p!==void 0){if(this.map.size>=this.max){const ee=this.map.keys().next().value;this.delete(ee)}this.map.set(O,p)}return this}}we.exports=z},2664:we=>{const z=Object.freeze({loose:!0}),g=Object.freeze({}),O=p=>p?typeof p!="object"?z:p:g;we.exports=O},6915:(we,z,g)=>{const{MAX_SAFE_COMPONENT_LENGTH:O,MAX_SAFE_BUILD_LENGTH:p,MAX_LENGTH:$}=g(1529),ee=g(8763);z=we.exports={};const ce=z.re=[],Y=z.safeRe=[],M=z.src=[],N=z.t={};let L=0;const P="[a-zA-Z0-9-]",j=[["\\s",1],["\\d",$],[P,p]],W=ie=>{for(const[I,J]of j)ie=ie.split(`${I}*`).join(`${I}{0,${J}}`).split(`${I}+`).join(`${I}{1,${J}}`);return ie},F=(ie,I,J)=>{const te=W(I),oe=L++;ee(ie,oe,I),N[ie]=oe,M[oe]=I,ce[oe]=new RegExp(I,J?"g":void 0),Y[oe]=new RegExp(te,J?"g":void 0)};F("NUMERICIDENTIFIER","0|[1-9]\\d*"),F("NUMERICIDENTIFIERLOOSE","\\d+"),F("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${P}*`),F("MAINVERSION",`(${M[N.NUMERICIDENTIFIER]})\\.(${M[N.NUMERICIDENTIFIER]})\\.(${M[N.NUMERICIDENTIFIER]})`),F("MAINVERSIONLOOSE",`(${M[N.NUMERICIDENTIFIERLOOSE]})\\.(${M[N.NUMERICIDENTIFIERLOOSE]})\\.(${M[N.NUMERICIDENTIFIERLOOSE]})`),F("PRERELEASEIDENTIFIER",`(?:${M[N.NUMERICIDENTIFIER]}|${M[N.NONNUMERICIDENTIFIER]})`),F("PRERELEASEIDENTIFIERLOOSE",`(?:${M[N.NUMERICIDENTIFIERLOOSE]}|${M[N.NONNUMERICIDENTIFIER]})`),F("PRERELEASE",`(?:-(${M[N.PRERELEASEIDENTIFIER]}(?:\\.${M[N.PRERELEASEIDENTIFIER]})*))`),F("PRERELEASELOOSE",`(?:-?(${M[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${M[N.PRERELEASEIDENTIFIERLOOSE]})*))`),F("BUILDIDENTIFIER",`${P}+`),F("BUILD",`(?:\\+(${M[N.BUILDIDENTIFIER]}(?:\\.${M[N.BUILDIDENTIFIER]})*))`),F("FULLPLAIN",`v?${M[N.MAINVERSION]}${M[N.PRERELEASE]}?${M[N.BUILD]}?`),F("FULL",`^${M[N.FULLPLAIN]}$`),F("LOOSEPLAIN",`[v=\\s]*${M[N.MAINVERSIONLOOSE]}${M[N.PRERELEASELOOSE]}?${M[N.BUILD]}?`),F("LOOSE",`^${M[N.LOOSEPLAIN]}$`),F("GTLT","((?:<|>)?=?)"),F("XRANGEIDENTIFIERLOOSE",`${M[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),F("XRANGEIDENTIFIER",`${M[N.NUMERICIDENTIFIER]}|x|X|\\*`),F("XRANGEPLAIN",`[v=\\s]*(${M[N.XRANGEIDENTIFIER]})(?:\\.(${M[N.XRANGEIDENTIFIER]})(?:\\.(${M[N.XRANGEIDENTIFIER]})(?:${M[N.PRERELEASE]})?${M[N.BUILD]}?)?)?`),F("XRANGEPLAINLOOSE",`[v=\\s]*(${M[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[N.XRANGEIDENTIFIERLOOSE]})(?:${M[N.PRERELEASELOOSE]})?${M[N.BUILD]}?)?)?`),F("XRANGE",`^${M[N.GTLT]}\\s*${M[N.XRANGEPLAIN]}$`),F("XRANGELOOSE",`^${M[N.GTLT]}\\s*${M[N.XRANGEPLAINLOOSE]}$`),F("COERCEPLAIN",`(^|[^\\d])(\\d{1,${O}})(?:\\.(\\d{1,${O}}))?(?:\\.(\\d{1,${O}}))?`),F("COERCE",`${M[N.COERCEPLAIN]}(?:$|[^\\d])`),F("COERCEFULL",M[N.COERCEPLAIN]+`(?:${M[N.PRERELEASE]})?(?:${M[N.BUILD]})?(?:$|[^\\d])`),F("COERCERTL",M[N.COERCE],!0),F("COERCERTLFULL",M[N.COERCEFULL],!0),F("LONETILDE","(?:~>?)"),F("TILDETRIM",`(\\s*)${M[N.LONETILDE]}\\s+`,!0),z.tildeTrimReplace="$1~",F("TILDE",`^${M[N.LONETILDE]}${M[N.XRANGEPLAIN]}$`),F("TILDELOOSE",`^${M[N.LONETILDE]}${M[N.XRANGEPLAINLOOSE]}$`),F("LONECARET","(?:\\^)"),F("CARETTRIM",`(\\s*)${M[N.LONECARET]}\\s+`,!0),z.caretTrimReplace="$1^",F("CARET",`^${M[N.LONECARET]}${M[N.XRANGEPLAIN]}$`),F("CARETLOOSE",`^${M[N.LONECARET]}${M[N.XRANGEPLAINLOOSE]}$`),F("COMPARATORLOOSE",`^${M[N.GTLT]}\\s*(${M[N.LOOSEPLAIN]})$|^$`),F("COMPARATOR",`^${M[N.GTLT]}\\s*(${M[N.FULLPLAIN]})$|^$`),F("COMPARATORTRIM",`(\\s*)${M[N.GTLT]}\\s*(${M[N.LOOSEPLAIN]}|${M[N.XRANGEPLAIN]})`,!0),z.comparatorTrimReplace="$1$2$3",F("HYPHENRANGE",`^\\s*(${M[N.XRANGEPLAIN]})\\s+-\\s+(${M[N.XRANGEPLAIN]})\\s*$`),F("HYPHENRANGELOOSE",`^\\s*(${M[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${M[N.XRANGEPLAINLOOSE]})\\s*$`),F("STAR","(<|>)?=?\\s*\\*"),F("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),F("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5453:(we,z,g)=>{"use strict";g.r(z),g.d(z,{__assign:()=>$,__asyncDelegator:()=>U,__asyncGenerator:()=>oe,__asyncValues:()=>m,__await:()=>te,__awaiter:()=>N,__classPrivateFieldGet:()=>ge,__classPrivateFieldIn:()=>Ee,__classPrivateFieldSet:()=>Le,__createBinding:()=>P,__decorate:()=>ce,__exportStar:()=>j,__extends:()=>p,__generator:()=>L,__importDefault:()=>ke,__importStar:()=>ze,__makeTemplateObject:()=>Ae,__metadata:()=>M,__param:()=>Y,__read:()=>F,__rest:()=>ee,__spread:()=>ie,__spreadArray:()=>J,__spreadArrays:()=>I,__values:()=>W});var O=function(B,R){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,x){D.__proto__=x}||function(D,x){for(var X in x)Object.prototype.hasOwnProperty.call(x,X)&&(D[X]=x[X])},O(B,R)};function p(B,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");O(B,R);function D(){this.constructor=B}B.prototype=R===null?Object.create(R):(D.prototype=R.prototype,new D)}var $=function(){return $=Object.assign||function(R){for(var D,x=1,X=arguments.length;x<X;x++){D=arguments[x];for(var ue in D)Object.prototype.hasOwnProperty.call(D,ue)&&(R[ue]=D[ue])}return R},$.apply(this,arguments)};function ee(B,R){var D={};for(var x in B)Object.prototype.hasOwnProperty.call(B,x)&&R.indexOf(x)<0&&(D[x]=B[x]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,x=Object.getOwnPropertySymbols(B);X<x.length;X++)R.indexOf(x[X])<0&&Object.prototype.propertyIsEnumerable.call(B,x[X])&&(D[x[X]]=B[x[X]]);return D}function ce(B,R,D,x){var X=arguments.length,ue=X<3?R:x===null?x=Object.getOwnPropertyDescriptor(R,D):x,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(B,R,D,x);else for(var Ye=B.length-1;Ye>=0;Ye--)(he=B[Ye])&&(ue=(X<3?he(ue):X>3?he(R,D,ue):he(R,D))||ue);return X>3&&ue&&Object.defineProperty(R,D,ue),ue}function Y(B,R){return function(D,x){R(D,x,B)}}function M(B,R){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(B,R)}function N(B,R,D,x){function X(ue){return ue instanceof D?ue:new D(function(he){he(ue)})}return new(D||(D=Promise))(function(ue,he){function Ye(ae){try{de(x.next(ae))}catch(q){he(q)}}function ve(ae){try{de(x.throw(ae))}catch(q){he(q)}}function de(ae){ae.done?ue(ae.value):X(ae.value).then(Ye,ve)}de((x=x.apply(B,R||[])).next())})}function L(B,R){var D={label:0,sent:function(){if(ue[0]&1)throw ue[1];return ue[1]},trys:[],ops:[]},x,X,ue,he;return he={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Ye(de){return function(ae){return ve([de,ae])}}function ve(de){if(x)throw new TypeError("Generator is already executing.");for(;D;)try{if(x=1,X&&(ue=de[0]&2?X.return:de[0]?X.throw||((ue=X.return)&&ue.call(X),0):X.next)&&!(ue=ue.call(X,de[1])).done)return ue;switch(X=0,ue&&(de=[de[0]&2,ue.value]),de[0]){case 0:case 1:ue=de;break;case 4:return D.label++,{value:de[1],done:!1};case 5:D.label++,X=de[1],de=[0];continue;case 7:de=D.ops.pop(),D.trys.pop();continue;default:if(ue=D.trys,!(ue=ue.length>0&&ue[ue.length-1])&&(de[0]===6||de[0]===2)){D=0;continue}if(de[0]===3&&(!ue||de[1]>ue[0]&&de[1]<ue[3])){D.label=de[1];break}if(de[0]===6&&D.label<ue[1]){D.label=ue[1],ue=de;break}if(ue&&D.label<ue[2]){D.label=ue[2],D.ops.push(de);break}ue[2]&&D.ops.pop(),D.trys.pop();continue}de=R.call(B,D)}catch(ae){de=[6,ae],X=0}finally{x=ue=0}if(de[0]&5)throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}}var P=Object.create?function(B,R,D,x){x===void 0&&(x=D);var X=Object.getOwnPropertyDescriptor(R,D);(!X||("get"in X?!R.__esModule:X.writable||X.configurable))&&(X={enumerable:!0,get:function(){return R[D]}}),Object.defineProperty(B,x,X)}:function(B,R,D,x){x===void 0&&(x=D),B[x]=R[D]};function j(B,R){for(var D in B)D!=="default"&&!Object.prototype.hasOwnProperty.call(R,D)&&P(R,B,D)}function W(B){var R=typeof Symbol=="function"&&Symbol.iterator,D=R&&B[R],x=0;if(D)return D.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&x>=B.length&&(B=void 0),{value:B&&B[x++],done:!B}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(B,R){var D=typeof Symbol=="function"&&B[Symbol.iterator];if(!D)return B;var x=D.call(B),X,ue=[],he;try{for(;(R===void 0||R-- >0)&&!(X=x.next()).done;)ue.push(X.value)}catch(Ye){he={error:Ye}}finally{try{X&&!X.done&&(D=x.return)&&D.call(x)}finally{if(he)throw he.error}}return ue}function ie(){for(var B=[],R=0;R<arguments.length;R++)B=B.concat(F(arguments[R]));return B}function I(){for(var B=0,R=0,D=arguments.length;R<D;R++)B+=arguments[R].length;for(var x=Array(B),X=0,R=0;R<D;R++)for(var ue=arguments[R],he=0,Ye=ue.length;he<Ye;he++,X++)x[X]=ue[he];return x}function J(B,R,D){if(D||arguments.length===2)for(var x=0,X=R.length,ue;x<X;x++)(ue||!(x in R))&&(ue||(ue=Array.prototype.slice.call(R,0,x)),ue[x]=R[x]);return B.concat(ue||Array.prototype.slice.call(R))}function te(B){return this instanceof te?(this.v=B,this):new te(B)}function oe(B,R,D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=D.apply(B,R||[]),X,ue=[];return X={},he("next"),he("throw"),he("return"),X[Symbol.asyncIterator]=function(){return this},X;function he(Te){x[Te]&&(X[Te]=function(be){return new Promise(function(et,st){ue.push([Te,be,et,st])>1||Ye(Te,be)})})}function Ye(Te,be){try{ve(x[Te](be))}catch(et){q(ue[0][3],et)}}function ve(Te){Te.value instanceof te?Promise.resolve(Te.value.v).then(de,ae):q(ue[0][2],Te)}function de(Te){Ye("next",Te)}function ae(Te){Ye("throw",Te)}function q(Te,be){Te(be),ue.shift(),ue.length&&Ye(ue[0][0],ue[0][1])}}function U(B){var R,D;return R={},x("next"),x("throw",function(X){throw X}),x("return"),R[Symbol.iterator]=function(){return this},R;function x(X,ue){R[X]=B[X]?function(he){return(D=!D)?{value:te(B[X](he)),done:X==="return"}:ue?ue(he):he}:ue}}function m(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=B[Symbol.asyncIterator],D;return R?R.call(B):(B=typeof W=="function"?W(B):B[Symbol.iterator](),D={},x("next"),x("throw"),x("return"),D[Symbol.asyncIterator]=function(){return this},D);function x(ue){D[ue]=B[ue]&&function(he){return new Promise(function(Ye,ve){he=B[ue](he),X(Ye,ve,he.done,he.value)})}}function X(ue,he,Ye,ve){Promise.resolve(ve).then(function(de){ue({value:de,done:Ye})},he)}}function Ae(B,R){return Object.defineProperty?Object.defineProperty(B,"raw",{value:R}):B.raw=R,B}var Be=Object.create?function(B,R){Object.defineProperty(B,"default",{enumerable:!0,value:R})}:function(B,R){B.default=R};function ze(B){if(B&&B.__esModule)return B;var R={};if(B!=null)for(var D in B)D!=="default"&&Object.prototype.hasOwnProperty.call(B,D)&&P(R,B,D);return Be(R,B),R}function ke(B){return B&&B.__esModule?B:{default:B}}function ge(B,R,D,x){if(D==="a"&&!x)throw new TypeError("Private accessor was defined without a getter");if(typeof R=="function"?B!==R||!x:!R.has(B))throw new TypeError("Cannot read private member from an object whose class did not declare it");return D==="m"?x:D==="a"?x.call(B):x?x.value:R.get(B)}function Le(B,R,D,x,X){if(x==="m")throw new TypeError("Private method is not writable");if(x==="a"&&!X)throw new TypeError("Private accessor was defined without a setter");if(typeof R=="function"?B!==R||!X:!R.has(B))throw new TypeError("Cannot write private member to an object whose class did not declare it");return x==="a"?X.call(B,D):X?X.value=D:R.set(B,D),D}function Ee(B,R){if(R===null||typeof R!="object"&&typeof R!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof B=="function"?R===B:B.has(R)}},8241:(we,z,g)=>{"use strict";g.r(z),g.d(z,{__assign:()=>$,__asyncDelegator:()=>U,__asyncGenerator:()=>oe,__asyncValues:()=>m,__await:()=>te,__awaiter:()=>N,__classPrivateFieldGet:()=>ge,__classPrivateFieldIn:()=>Ee,__classPrivateFieldSet:()=>Le,__createBinding:()=>P,__decorate:()=>ce,__exportStar:()=>j,__extends:()=>p,__generator:()=>L,__importDefault:()=>ke,__importStar:()=>ze,__makeTemplateObject:()=>Ae,__metadata:()=>M,__param:()=>Y,__read:()=>F,__rest:()=>ee,__spread:()=>ie,__spreadArray:()=>J,__spreadArrays:()=>I,__values:()=>W});var O=function(B,R){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,x){D.__proto__=x}||function(D,x){for(var X in x)Object.prototype.hasOwnProperty.call(x,X)&&(D[X]=x[X])},O(B,R)};function p(B,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");O(B,R);function D(){this.constructor=B}B.prototype=R===null?Object.create(R):(D.prototype=R.prototype,new D)}var $=function(){return $=Object.assign||function(R){for(var D,x=1,X=arguments.length;x<X;x++){D=arguments[x];for(var ue in D)Object.prototype.hasOwnProperty.call(D,ue)&&(R[ue]=D[ue])}return R},$.apply(this,arguments)};function ee(B,R){var D={};for(var x in B)Object.prototype.hasOwnProperty.call(B,x)&&R.indexOf(x)<0&&(D[x]=B[x]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,x=Object.getOwnPropertySymbols(B);X<x.length;X++)R.indexOf(x[X])<0&&Object.prototype.propertyIsEnumerable.call(B,x[X])&&(D[x[X]]=B[x[X]]);return D}function ce(B,R,D,x){var X=arguments.length,ue=X<3?R:x===null?x=Object.getOwnPropertyDescriptor(R,D):x,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(B,R,D,x);else for(var Ye=B.length-1;Ye>=0;Ye--)(he=B[Ye])&&(ue=(X<3?he(ue):X>3?he(R,D,ue):he(R,D))||ue);return X>3&&ue&&Object.defineProperty(R,D,ue),ue}function Y(B,R){return function(D,x){R(D,x,B)}}function M(B,R){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(B,R)}function N(B,R,D,x){function X(ue){return ue instanceof D?ue:new D(function(he){he(ue)})}return new(D||(D=Promise))(function(ue,he){function Ye(ae){try{de(x.next(ae))}catch(q){he(q)}}function ve(ae){try{de(x.throw(ae))}catch(q){he(q)}}function de(ae){ae.done?ue(ae.value):X(ae.value).then(Ye,ve)}de((x=x.apply(B,R||[])).next())})}function L(B,R){var D={label:0,sent:function(){if(ue[0]&1)throw ue[1];return ue[1]},trys:[],ops:[]},x,X,ue,he;return he={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Ye(de){return function(ae){return ve([de,ae])}}function ve(de){if(x)throw new TypeError("Generator is already executing.");for(;D;)try{if(x=1,X&&(ue=de[0]&2?X.return:de[0]?X.throw||((ue=X.return)&&ue.call(X),0):X.next)&&!(ue=ue.call(X,de[1])).done)return ue;switch(X=0,ue&&(de=[de[0]&2,ue.value]),de[0]){case 0:case 1:ue=de;break;case 4:return D.label++,{value:de[1],done:!1};case 5:D.label++,X=de[1],de=[0];continue;case 7:de=D.ops.pop(),D.trys.pop();continue;default:if(ue=D.trys,!(ue=ue.length>0&&ue[ue.length-1])&&(de[0]===6||de[0]===2)){D=0;continue}if(de[0]===3&&(!ue||de[1]>ue[0]&&de[1]<ue[3])){D.label=de[1];break}if(de[0]===6&&D.label<ue[1]){D.label=ue[1],ue=de;break}if(ue&&D.label<ue[2]){D.label=ue[2],D.ops.push(de);break}ue[2]&&D.ops.pop(),D.trys.pop();continue}de=R.call(B,D)}catch(ae){de=[6,ae],X=0}finally{x=ue=0}if(de[0]&5)throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}}var P=Object.create?function(B,R,D,x){x===void 0&&(x=D);var X=Object.getOwnPropertyDescriptor(R,D);(!X||("get"in X?!R.__esModule:X.writable||X.configurable))&&(X={enumerable:!0,get:function(){return R[D]}}),Object.defineProperty(B,x,X)}:function(B,R,D,x){x===void 0&&(x=D),B[x]=R[D]};function j(B,R){for(var D in B)D!=="default"&&!Object.prototype.hasOwnProperty.call(R,D)&&P(R,B,D)}function W(B){var R=typeof Symbol=="function"&&Symbol.iterator,D=R&&B[R],x=0;if(D)return D.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&x>=B.length&&(B=void 0),{value:B&&B[x++],done:!B}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(B,R){var D=typeof Symbol=="function"&&B[Symbol.iterator];if(!D)return B;var x=D.call(B),X,ue=[],he;try{for(;(R===void 0||R-- >0)&&!(X=x.next()).done;)ue.push(X.value)}catch(Ye){he={error:Ye}}finally{try{X&&!X.done&&(D=x.return)&&D.call(x)}finally{if(he)throw he.error}}return ue}function ie(){for(var B=[],R=0;R<arguments.length;R++)B=B.concat(F(arguments[R]));return B}function I(){for(var B=0,R=0,D=arguments.length;R<D;R++)B+=arguments[R].length;for(var x=Array(B),X=0,R=0;R<D;R++)for(var ue=arguments[R],he=0,Ye=ue.length;he<Ye;he++,X++)x[X]=ue[he];return x}function J(B,R,D){if(D||arguments.length===2)for(var x=0,X=R.length,ue;x<X;x++)(ue||!(x in R))&&(ue||(ue=Array.prototype.slice.call(R,0,x)),ue[x]=R[x]);return B.concat(ue||Array.prototype.slice.call(R))}function te(B){return this instanceof te?(this.v=B,this):new te(B)}function oe(B,R,D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=D.apply(B,R||[]),X,ue=[];return X={},he("next"),he("throw"),he("return"),X[Symbol.asyncIterator]=function(){return this},X;function he(Te){x[Te]&&(X[Te]=function(be){return new Promise(function(et,st){ue.push([Te,be,et,st])>1||Ye(Te,be)})})}function Ye(Te,be){try{ve(x[Te](be))}catch(et){q(ue[0][3],et)}}function ve(Te){Te.value instanceof te?Promise.resolve(Te.value.v).then(de,ae):q(ue[0][2],Te)}function de(Te){Ye("next",Te)}function ae(Te){Ye("throw",Te)}function q(Te,be){Te(be),ue.shift(),ue.length&&Ye(ue[0][0],ue[0][1])}}function U(B){var R,D;return R={},x("next"),x("throw",function(X){throw X}),x("return"),R[Symbol.iterator]=function(){return this},R;function x(X,ue){R[X]=B[X]?function(he){return(D=!D)?{value:te(B[X](he)),done:X==="return"}:ue?ue(he):he}:ue}}function m(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=B[Symbol.asyncIterator],D;return R?R.call(B):(B=typeof W=="function"?W(B):B[Symbol.iterator](),D={},x("next"),x("throw"),x("return"),D[Symbol.asyncIterator]=function(){return this},D);function x(ue){D[ue]=B[ue]&&function(he){return new Promise(function(Ye,ve){he=B[ue](he),X(Ye,ve,he.done,he.value)})}}function X(ue,he,Ye,ve){Promise.resolve(ve).then(function(de){ue({value:de,done:Ye})},he)}}function Ae(B,R){return Object.defineProperty?Object.defineProperty(B,"raw",{value:R}):B.raw=R,B}var Be=Object.create?function(B,R){Object.defineProperty(B,"default",{enumerable:!0,value:R})}:function(B,R){B.default=R};function ze(B){if(B&&B.__esModule)return B;var R={};if(B!=null)for(var D in B)D!=="default"&&Object.prototype.hasOwnProperty.call(B,D)&&P(R,B,D);return Be(R,B),R}function ke(B){return B&&B.__esModule?B:{default:B}}function ge(B,R,D,x){if(D==="a"&&!x)throw new TypeError("Private accessor was defined without a getter");if(typeof R=="function"?B!==R||!x:!R.has(B))throw new TypeError("Cannot read private member from an object whose class did not declare it");return D==="m"?x:D==="a"?x.call(B):x?x.value:R.get(B)}function Le(B,R,D,x,X){if(x==="m")throw new TypeError("Private method is not writable");if(x==="a"&&!X)throw new TypeError("Private accessor was defined without a setter");if(typeof R=="function"?B!==R||!X:!R.has(B))throw new TypeError("Cannot write private member to an object whose class did not declare it");return x==="a"?X.call(B,D):X?X.value=D:R.set(B,D),D}function Ee(B,R){if(R===null||typeof R!="object"&&typeof R!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof B=="function"?R===B:B.has(R)}},333:function(we,z,g){"use strict";var O=this&&this.__extends||function(){var ce=function(Y,M){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var P in L)Object.prototype.hasOwnProperty.call(L,P)&&(N[P]=L[P])},ce(Y,M)};return function(Y,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");ce(Y,M);function N(){this.constructor=Y}Y.prototype=M===null?Object.create(M):(N.prototype=M.prototype,new N)}}();z.__esModule=!0;var p=g(9891),$=g(2182),ee=function(ce){O(Y,ce);function Y(){var M=ce!==null&&ce.apply(this,arguments)||this;return M.opQueue=[],M.isOpen=!0,M}return Y.prototype.open=function(){this.isOpen=!0,this.opQueue.forEach(function(M){var N=M.operation,L=M.forward,P=M.observer;L(N).subscribe(P)}),this.opQueue=[]},Y.prototype.close=function(){this.isOpen=!1},Y.prototype.request=function(M,N){var L=this;return this.isOpen||M.getContext().skipQueue?N(M):new $.Observable(function(P){var j={operation:M,forward:N,observer:P};return L.enqueue(j),function(){return L.cancelOperation(j)}})},Y.prototype.cancelOperation=function(M){this.opQueue=this.opQueue.filter(function(N){return N!==M})},Y.prototype.enqueue=function(M){this.opQueue.push(M)},Y}(p.ApolloLink);z.default=ee},6682:(we,z,g)=>{"use strict";z.__esModule=!0;var O=g(333);z.default=O.default},5:function(we,z,g){(function(O,p){p(z,g(8829),g(2182),g(5810))})(this,function(O,p,$,ee){"use strict";var ce=function(ye,Ie,C,V){function k(re){return re instanceof C?re:new C(function(_e){_e(re)})}return new(C||(C=Promise))(function(re,_e){function He(ut){try{Xe(V.next(ut))}catch(At){_e(At)}}function dt(ut){try{Xe(V.throw(ut))}catch(At){_e(At)}}function Xe(ut){ut.done?re(ut.value):k(ut.value).then(He,dt)}Xe((V=V.apply(ye,Ie||[])).next())})},Y=function(ye,Ie){var C={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]},V,k,re,_e;return _e={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function He(Xe){return function(ut){return dt([Xe,ut])}}function dt(Xe){if(V)throw new TypeError("Generator is already executing.");for(;C;)try{if(V=1,k&&(re=Xe[0]&2?k.return:Xe[0]?k.throw||((re=k.return)&&re.call(k),0):k.next)&&!(re=re.call(k,Xe[1])).done)return re;switch(k=0,re&&(Xe=[Xe[0]&2,re.value]),Xe[0]){case 0:case 1:re=Xe;break;case 4:return C.label++,{value:Xe[1],done:!1};case 5:C.label++,k=Xe[1],Xe=[0];continue;case 7:Xe=C.ops.pop(),C.trys.pop();continue;default:if(re=C.trys,!(re=re.length>0&&re[re.length-1])&&(Xe[0]===6||Xe[0]===2)){C=0;continue}if(Xe[0]===3&&(!re||Xe[1]>re[0]&&Xe[1]<re[3])){C.label=Xe[1];break}if(Xe[0]===6&&C.label<re[1]){C.label=re[1],re=Xe;break}if(re&&C.label<re[2]){C.label=re[2],C.ops.push(Xe);break}re[2]&&C.ops.pop(),C.trys.pop();continue}Xe=Ie.call(ye,C)}catch(ut){Xe=[6,ut],k=0}finally{V=re=0}if(Xe[0]&5)throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}};function M(ye,Ie){if(ye.directives&&ye.directives.length){var C={};return ye.directives.forEach(function(V){C[V.name.value]=$.argumentsObjectFromField(V,Ie)}),C}return null}var N=Object.prototype.hasOwnProperty;function L(ye,Ie){Ie!==null&&typeof Ie=="object"&&Object.keys(Ie).forEach(function(C){var V=Ie[C];N.call(ye,C)?L(ye[C],V):ye[C]=V})}function P(ye,Ie,C,V,k,re){re===void 0&&(re={});var _e=$.getMainDefinition(Ie),He=$.getFragmentDefinitions(Ie),dt=$.createFragmentMap(He),Xe=re.resultMapper,ut=re.fragmentMatcher||function(){return!0},At={fragmentMap:dt,contextValue:V,variableValues:k,resultMapper:Xe,resolver:ye,fragmentMatcher:ut};return j(_e.selectionSet,C,At)}function j(ye,Ie,C){return ce(this,void 0,void 0,function(){var V,k,re,_e,He,dt=this;return Y(this,function(Xe){switch(Xe.label){case 0:return V=C.fragmentMap,k=C.contextValue,re=C.variableValues,_e={},He=function(ut){return ce(dt,void 0,void 0,function(){var At,Et,Zt,Jt,Ft;return Y(this,function(er){switch(er.label){case 0:return $.shouldInclude(ut,re)?$.isField(ut)?[4,W(ut,Ie,C)]:[3,2]:[2];case 1:return At=er.sent(),Et=$.resultKeyNameFromField(ut),At!==void 0&&(_e[Et]===void 0?_e[Et]=At:L(_e[Et],At)),[2];case 2:if($.isInlineFragment(ut))Zt=ut;else if(Zt=V[ut.name.value],!Zt)throw new Error("No fragment named "+ut.name.value);return Jt=Zt.typeCondition.name.value,C.fragmentMatcher(Ie,Jt,k)?[4,j(Zt.selectionSet,Ie,C)]:[3,4];case 3:Ft=er.sent(),L(_e,Ft),er.label=4;case 4:return[2]}})})},[4,Promise.all(ye.selections.map(He))];case 1:return Xe.sent(),C.resultMapper?[2,C.resultMapper(_e,Ie)]:[2,_e]}})})}function W(ye,Ie,C){return ce(this,void 0,void 0,function(){var V,k,re,_e,He,dt,Xe;return Y(this,function(ut){switch(ut.label){case 0:return V=C.variableValues,k=C.contextValue,re=C.resolver,_e=ye.name.value,He=$.argumentsObjectFromField(ye,V),dt={isLeaf:!ye.selectionSet,resultKey:$.resultKeyNameFromField(ye),directives:M(ye,V),field:ye},[4,re(_e,Ie,He,k,dt)];case 1:return Xe=ut.sent(),ye.selectionSet?Xe==null?[2,Xe]:Array.isArray(Xe)?[2,F(ye,Xe,C)]:[2,j(ye.selectionSet,Xe,C)]:[2,Xe]}})})}function F(ye,Ie,C){return Promise.all(Ie.map(function(V){return V===null?null:Array.isArray(V)?F(ye,V,C):j(ye.selectionSet,V,C)}))}var ie=function(){var ye=function(Ie,C){return ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,k){V.__proto__=k}||function(V,k){for(var re in k)k.hasOwnProperty(re)&&(V[re]=k[re])},ye(Ie,C)};return function(Ie,C){ye(Ie,C);function V(){this.constructor=Ie}Ie.prototype=C===null?Object.create(C):(V.prototype=C.prototype,new V)}}(),I=function(){return I=Object.assign||function(ye){for(var Ie,C=1,V=arguments.length;C<V;C++){Ie=arguments[C];for(var k in Ie)Object.prototype.hasOwnProperty.call(Ie,k)&&(ye[k]=Ie[k])}return ye},I.apply(this,arguments)},J=function(ye,Ie,C,V){function k(re){return re instanceof C?re:new C(function(_e){_e(re)})}return new(C||(C=Promise))(function(re,_e){function He(ut){try{Xe(V.next(ut))}catch(At){_e(At)}}function dt(ut){try{Xe(V.throw(ut))}catch(At){_e(At)}}function Xe(ut){ut.done?re(ut.value):k(ut.value).then(He,dt)}Xe((V=V.apply(ye,Ie||[])).next())})},te=function(ye,Ie){var C={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]},V,k,re,_e;return _e={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function He(Xe){return function(ut){return dt([Xe,ut])}}function dt(Xe){if(V)throw new TypeError("Generator is already executing.");for(;C;)try{if(V=1,k&&(re=Xe[0]&2?k.return:Xe[0]?k.throw||((re=k.return)&&re.call(k),0):k.next)&&!(re=re.call(k,Xe[1])).done)return re;switch(k=0,re&&(Xe=[Xe[0]&2,re.value]),Xe[0]){case 0:case 1:re=Xe;break;case 4:return C.label++,{value:Xe[1],done:!1};case 5:C.label++,k=Xe[1],Xe=[0];continue;case 7:Xe=C.ops.pop(),C.trys.pop();continue;default:if(re=C.trys,!(re=re.length>0&&re[re.length-1])&&(Xe[0]===6||Xe[0]===2)){C=0;continue}if(Xe[0]===3&&(!re||Xe[1]>re[0]&&Xe[1]<re[3])){C.label=Xe[1];break}if(Xe[0]===6&&C.label<re[1]){C.label=re[1],re=Xe;break}if(re&&C.label<re[2]){C.label=re[2],C.ops.push(Xe);break}re[2]&&C.ops.pop(),C.trys.pop();continue}Xe=Ie.call(ye,C)}catch(ut){Xe=[6,ut],k=0}finally{V=re=0}if(Xe[0]&5)throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}},oe=function(){for(var ye=0,Ie=0,C=arguments.length;Ie<C;Ie++)ye+=arguments[Ie].length;for(var V=Array(ye),k=0,Ie=0;Ie<C;Ie++)for(var re=arguments[Ie],_e=0,He=re.length;_e<He;_e++,k++)V[k]=re[_e];return V},U=function(ye){var Ie=ye.replace(/\s/g,""),C=Ie.replace(/\[(.*)\]/,function(V,k,re,_e){return((k!=null&&k.length)>0?k:null)||Ie});return C},m=function(ye,Ie,C,V){if(Array.isArray(ye)){var k=U(Ie);return ye.map(function(re){return m(re,k,C,V)})}return ye==null||typeof ye=="number"||typeof ye=="boolean"||typeof ye=="string"?ye:C(ye,Ie,C,V)},Ae=function(ye){return ye.directives&&ye.directives.length?ye.directives.find(function(Ie){return Ie.name.value==="rest"}):null};function Be(ye,Ie,C,V,k){return k==null||Ie==null||typeof Ie=="number"||typeof Ie=="boolean"||typeof Ie=="string"||k.selections.forEach(function(re){if($.isInlineFragment(re))Be(ye,Ie,C,V,re.selectionSet);else if(re.kind==="FragmentSpread"){var _e=V[re.name.value];Be(ye,Ie,C,V,_e.selectionSet)}else if($.isField(re)){var He=$.resultKeyNameFromField(re);He===ye&&Ae(re)!=null?ze(Ie,C,V,re.selectionSet):Be(ye,Ie,C,V,re.selectionSet)}else return function(dt){throw new Error("Unhandled Node Type in SelectionSetNode.selections")}(re)}),Ie}function ze(ye,Ie,C,V){if(!(ye==null||typeof ye=="number"||typeof ye=="boolean"||typeof ye=="string")){if(Array.isArray(ye)){ye.forEach(function(k){return ze(k,Ie,C,V)});return}V.selections.forEach(function(k){if($.isInlineFragment(k))ze(ye,Ie,C,k.selectionSet);else if(k.kind==="FragmentSpread"){var re=C[k.name.value];ze(ye,Ie,C,re.selectionSet)}else if($.isField(k)){var _e=ye[k.name.value];k.name.value==="__typename"||(typeof _e>"u"?ye[k.name.value]=null:_e!=null&&typeof _e=="object"&&k.selectionSet!=null&&ze(_e,Ie,C,k.selectionSet))}else return function(He){throw new Error("Unhandled Node Type in SelectionSetNode.selections")}(k)})}}var ke=function(ye,Ie){var C=ye[Ie||be]||ye[be];return typeof C=="string"?{uri:C}:I({responseTransformer:null},C)},ge=function(ye,Ie,C){return C===void 0||Ie===void 0?ye:ye.replace(":"+Ie,C)},Le=function(){function ye(){}return ye.replacerForPath=function(Ie){if(Ie in ye.cache)return ye.cache[Ie];var C=Ie.indexOf("?"),V=Ie.split(ye.argReplacement),k=[],re=!1;V.reduce(function(He,dt){if(dt===""||dt==="{}")return He+dt.length;var Xe=He+dt.length;if(dt[0]==="{"&&dt[dt.length-1]==="}"){var ut=dt.slice(1,dt.length-1).split(".");k.push(function(At,Et){try{var Zt=Ee(At,ut);return!Et||typeof Zt!="object"||Zt==null?String(Zt):ee.stringify(Zt)}catch{var Jt=[Ie,ut.join(".")].join("|");return Jt in ye.warnTable||(console.warn("Warning: RestLink caught an error while unpacking",Jt,"This tends to happen if you forgot to pass a parameter needed for creating an @rest(path, or if RestLink was configured to deeply unpack a path parameter that wasn't provided. This message will only log once per detected instance. Trouble-shooting hint: check @rest(path: and the variables provided to this query."),ye.warnTable[Jt]=!0),""}})}else k.push(dt),!re&&Xe>=C&&(re=!0,k.push(!0));return Xe},0);var _e=function(He){var dt=!1,Xe=k.reduce(function(ut,At){return typeof At=="string"?ut+At:typeof At=="boolean"?(dt=!0,ut):ut+At(He,dt)},"");return Xe};return ye.cache[Ie]=_e},ye.cache={},ye.warnTable={},ye.argReplacement=/({[._a-zA-Z0-9]*})/,ye}();function Ee(ye,Ie){if(Ie.length===0)return ye;var C=oe(Ie),V=C.shift();return Ee(ye[V],C)}var B=["__typename"],R=typeof globalThis=="object"&&globalThis||g.g,D=function(ye,Ie,C){C===void 0&&(C=[]);var V=null;return Ie.length!=2?V=function(k,re){return Ie(k)}:V=Ie,Array.isArray(ye)?ye.map(function(k,re){return D(k,V,oe(C,[String(re)]))}):ye==null||typeof ye!="object"||ye.constructor!==Object||R.FileList&&ye instanceof FileList||R.File&&ye instanceof File?ye:Object.keys(ye).reduce(function(k,re){var _e=ye[re];if(B.indexOf(re)!==-1)return k[re]=_e,k;var He=oe(C,[re]);return k[V(re,He)]=D(_e,V,He),k},{})},x=function(ye){return ye},X=function(ye){return ye instanceof Headers?ye:new Headers(ye||{})},ue=function(){for(var ye=[],Ie=0;Ie<arguments.length;Ie++)ye[Ie]=arguments[Ie];return ye.reduce(function(C,V){return V&&(V.forEach||(V=X(V)),V.forEach(function(k,re){C.append(re,k)})),C},new Headers)},he=function(ye,Ie,C){var V=new Headers;return ye.forEach(function(k,re){Ie.indexOf(re)===-1&&V.append(re,k)}),ue(V,C||new Headers)},Ye=function(ye){return function(Ie,C){return he(Ie,ye,C)}},ve=["GET","POST","PUT","PATCH","DELETE"],de=function(ye,Ie){switch(Ie){case"query":if(ve.indexOf(ye.toUpperCase())!==-1)return;throw new Error('A "query" operation can only support "GET" requests but got "'+ye+'".');case"mutation":if(ve.indexOf(ye.toUpperCase())!==-1)return;throw new Error('"mutation" operations do not support that HTTP-verb');case"subscription":throw new Error('A "subscription" operation is not supported yet.');default:var C=Ie;return C}},ae=function(ye,Ie,C){var V=new Error(C);throw V.response=ye,V.statusCode=ye.status,V.result=Ie,V},q=function(ye,Ie){return ye==null||typeof ye!="object"?ye:Array.isArray(ye)?ye.map(function(C){return q(C,Ie)}):(ye.__typename=Ie,ye)},Te=function(ye,Ie,C,V,k){return J(void 0,void 0,void 0,function(){var re,_e,He,dt,Xe,ut,At,Et,Zt,Jt,Ft,er,Ht,Mr,_r,Ur,xr,tn,cr,Fe,De,Yt,ar,Sr,Ut,ln,Nr,jr,rn,xn,Gn,Zr,Bt,Bi,Or,Nn,yn,Wn,fn,Fr,En,Bn,sn,$t,kn,On,$r,it,jn,Jn,Zn;return te(this,function(pr){switch(pr.label){case 0:if(re=k.directives,_e=k.isLeaf,He=k.resultKey,dt=V.exportVariablesByNode,Xe=dt.get(Ie)||{},ut=function(Si){return Si instanceof Array?Si.forEach(ut):dt.set(Si,I({},Xe)),Si},At=(Ie||{})[He],Et=(Ie||{})[ye],Ie&&re&&re.export&&(Xe[re.export.as]=Et),Zt=re&&re.type,!_e&&Zt){if(re.rest)throw new Error("Invalid use of @type(name: ...) directive on a call that also has @rest(...)");return ut(Et),[2,q(Et,re.type.name)]}if(Jt=!re||!re.rest,Jt)return[2,ut(At||Et)];if(Ft=V.credentials,er=V.endpoints,Ht=V.headers,Mr=V.customFetch,_r=V.operationType,Ur=V.typePatcher,xr=V.mainDefinition,tn=V.fragmentDefinitions,cr=V.fieldNameNormalizer,Fe=V.fieldNameDenormalizer,De=V.serializers,Yt=V.responseTransformer,ar=$.createFragmentMap(tn),Sr=re.rest,Ut=Sr.path,ln=Sr.endpoint,Nr=Sr.pathBuilder,jr=ke(er,ln),rn=Ut==null&&Nr==null,rn)throw new Error('One of ("path" | "pathBuilder") must be set in the @rest() directive. This request had neither, please add one');if(Nr||(Ut.includes(":")?(console.warn("Deprecated: '@rest(path:' contains a ':' colon, this format will be removed in future versions"),Nr=function(Si){var gn=Si.args,Zi=Si.exportVariables,ki=I(I({},gn),Zi),Pi=Object.keys(ki).reduce(function(h,y){return ge(h,y,ki[y])},Ut);if(Pi.includes(":"))throw new Error('Missing parameters to run query, specify it in the query params or use an export directive. (If you need to use ":" inside a variable string make sure to encode the variables properly using `encodeURIComponent`. Alternatively see documentation about using pathBuilder.)');return Pi}):Nr=Le.replacerForPath(Ut)),xn={args:C,exportVariables:Xe,context:V,"@rest":re.rest,replacer:Nr},Gn=Nr(xn),Zr=re.rest,Bt=Zr.method,Bi=Zr.type,Or=Zr.bodyBuilder,Nn=Zr.bodyKey,yn=Zr.fieldNameDenormalizer,Wn=Zr.fieldNameNormalizer,fn=Zr.bodySerializer,Bt||(Bt="GET"),Nn||(Nn="input"),Fr=void 0,En=void 0,["GET","DELETE"].indexOf(Bt)===-1){if(!Or){if(Bn=xn.exportVariables[Nn]||xn.args&&xn.args[Nn],!Bn)throw new Error("[GraphQL "+Bt+" "+_r+" using a REST call without a body]. No `"+Nn+"` was detected. Pass bodyKey, or bodyBuilder to the @rest() directive to resolve this.");Or=function(Si){return Bn}}if(Fr=D(Or(xn),yn||Fe||x),sn=void 0,typeof fn=="string"){if(!De.hasOwnProperty(fn))throw new Error('"bodySerializer" must correspond to configured serializer. '+("Please make sure to specify a serializer called "+fn+' in the "bodySerializers" property of the RestLink.'));sn=De[fn](Fr,Ht)}else sn=fn?fn(Fr,Ht):De[et](Fr,Ht);Fr=sn.body,En=new Headers(sn.headers)}return de(Bt,_r||"query"),$t=I({method:Bt,headers:En||Ht,body:Fr},Ft?{credentials:Ft}:{}),kn=""+jr.uri+Gn,[4,(Mr||fetch)(kn,$t)];case 1:return On=pr.sent(),V.responses.push(On),On.ok?(On.status===204||On.headers.get("Content-Length")==="0"?$r={}:$r=On,[3,9]):[3,2];case 2:return On.status!==404?[3,3]:($r=null,[3,9]);case 3:it=void 0,pr.label=4;case 4:return pr.trys.push([4,6,,8]),[4,On.clone().json()];case 5:return it=pr.sent(),[3,8];case 6:return jn=pr.sent(),[4,On.clone().text()];case 7:return it=pr.sent(),[3,8];case 8:ae(On,it,"Response not successful: Received status code "+On.status),pr.label=9;case 9:if(Jn=jr.responseTransformer||Yt,!Jn)return[3,14];pr.label=10;case 10:return pr.trys.push([10,12,,13]),[4,Jn($r,Bi)];case 11:return $r=pr.sent(),[3,13];case 12:throw Zn=pr.sent(),console.warn("An error occurred in a responseTransformer:"),Zn;case 13:return[3,16];case 14:return $r&&$r.json?[4,$r.json()]:[3,16];case 15:$r=pr.sent(),pr.label=16;case 16:return $r=D($r,Wn||cr||x),$r=Be(He,$r,xr,ar,xr.selectionSet),$r=m($r,Bi,Ur,{resolverParams:{fieldName:ye,root:Ie,args:C,context:V,info:k}}),[2,ut($r)]}})})},be="",et="",st=function(ye,Ie){return Ie.has("content-type")||Ie.append("Content-Type","application/json"),{body:JSON.stringify(ye),headers:Ie}},lt={test:function(ye){return ye.name.value==="rest"},remove:!0},at=function(ye){ie(Ie,ye);function Ie(C){var V,k=C.uri,re=C.endpoints,_e=C.headers,He=C.fieldNameNormalizer,dt=C.fieldNameDenormalizer,Xe=C.typePatcher,ut=C.customFetch,At=C.credentials,Et=C.bodySerializers,Zt=C.defaultSerializer,Jt=C.responseTransformer,Ft=ye.call(this)||this,er={};if(er[be]=k||"",Ft.endpoints=Object.assign({},re||er),k==null&&re==null)throw new Error("A RestLink must be initialized with either 1 uri, or a map of keyed-endpoints");if(k!=null){var Ht=(re||{})[be];if(Ht!=null&&Ht!=k)throw new Error("RestLink was configured with a default uri that doesn't match what's passed in to the endpoints map.");Ft.endpoints[be]=k}if(Ft.endpoints[be]==null&&console.warn("RestLink configured without a default URI. All @rest(\u2026) directives must provide an endpoint key!"),Xe==null)Ft.typePatcher=function(_r,Ur,xr){return I({__typename:Ur},_r)};else if(!Array.isArray(Xe)&&typeof Xe=="object"&&Object.keys(Xe).map(function(_r){return Xe[_r]}).reduce(function(_r,Ur){return _r&&typeof Ur=="function"},!0)){var Mr=Xe;Ft.typePatcher=function(_r,Ur,xr,tn){var cr=_r.__typename||Ur;if(Array.isArray(_r))return _r.map(function(De){return xr(De,cr,xr,tn)});var Fe=Mr[cr]||function(De){return De};return I({__typename:cr},Fe(_r,cr,xr,tn))}}else throw new Error("RestLink was configured with a typePatcher of invalid type!");return Et&&Et.hasOwnProperty(et)&&console.warn("RestLink was configured to override the default serializer! This may result in unexpected behavior"),Ft.responseTransformer=Jt||null,Ft.fieldNameNormalizer=He||null,Ft.fieldNameDenormalizer=dt||null,Ft.headers=X(_e),Ft.credentials=At||null,Ft.customFetch=ut,Ft.serializers=I((V={},V[et]=Zt||st,V),Et||{}),Ft.processedDocuments=new Map,Ft}return Ie.prototype.removeRestSetsFromDocument=function(C){var V=this.processedDocuments.get(C);if(V)return V;$.checkDocument(C);var k=$.removeDirectivesFromDocument([lt],C);return this.processedDocuments.set(C,k),k},Ie.prototype.request=function(C,V){var k=C.query,re=C.variables,_e=C.getContext,He=C.setContext,dt=_e(),Xe=$.hasDirectives(["rest"],k);if(!Xe)return V(C);var ut=this.removeRestSetsFromDocument(k),At=dt.headersMergePolicy;At==null&&Array.isArray(dt.headersToOverride)?At=Ye(dt.headersToOverride):At==null&&(At=ue);var Et=At(this.headers,dt.headers);Et.has("Accept")||Et.append("Accept","application/json");var Zt=dt.credentials||this.credentials,Jt=$.addTypenameToDocument(k),Ft=$.getMainDefinition(k),er=$.getFragmentDefinitions(k),Ht=(Ft||{}).operation||"query",Mr={headers:Et,endpoints:this.endpoints,exportVariablesByNode:new Map,credentials:Zt,customFetch:this.customFetch,operationType:Ht,fieldNameNormalizer:this.fieldNameNormalizer,fieldNameDenormalizer:this.fieldNameDenormalizer,mainDefinition:Ft,fragmentDefinitions:er,typePatcher:this.typePatcher,serializers:this.serializers,responses:[],responseTransformer:this.responseTransformer},_r={},Ur;return ut&&V?(C.query=ut,Ur=V(C)):Ur=p.Observable.of({data:{}}),Ur.flatMap(function(xr){var tn=xr.data,cr=xr.errors;return new p.Observable(function(Fe){P(Te,Jt,tn,Mr,re,_r).then(function(De){He({restResponses:(dt.restResponses||[]).concat(Mr.responses)}),Fe.next({data:De,errors:cr}),Fe.complete()}).catch(function(De){De.name!=="AbortError"&&(De.result&&De.result.errors&&Fe.next(De.result),Fe.error(De))})})})},Ie}(p.ApolloLink);O.RestLink=at,O.PathBuilder=Le,Object.defineProperty(O,"__esModule",{value:!0})})},879:function(we,z){"use strict";var g=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ee){$.__proto__=ee}||function($,ee){for(var ce in ee)ee.hasOwnProperty(ce)&&($[ce]=ee[ce])};return function($,ee){p($,ee);function ce(){this.constructor=$}$.prototype=ee===null?Object.create(ee):(ce.prototype=ee.prototype,new ce)}}();Object.defineProperty(z,"__esModule",{value:!0});var O=function(p){g($,p);function $(ee,ce,Y){Y===void 0&&(Y=408);var M=p.call(this,ee)||this;return M.timeout=ce,M.statusCode=Y,M}return $}(Error);z.default=O},7681:function(we,z,g){"use strict";var O=this&&this.__extends||function(){var M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var P in L)L.hasOwnProperty(P)&&(N[P]=L[P])};return function(N,L){M(N,L);function P(){this.constructor=N}N.prototype=L===null?Object.create(L):(P.prototype=L.prototype,new P)}}(),p=this&&this.__assign||Object.assign||function(M){for(var N,L=1,P=arguments.length;L<P;L++){N=arguments[L];for(var j in N)Object.prototype.hasOwnProperty.call(N,j)&&(M[j]=N[j])}return M};Object.defineProperty(z,"__esModule",{value:!0});var $=g(8829),ee=g(879),ce=15e3,Y=function(M){O(N,M);function N(L,P){var j=M.call(this)||this;return j.timeout=L||ce,j.statusCode=P,j}return N.prototype.request=function(L,P){var j=this,W,F=L.getContext().timeout||this.timeout;if(typeof AbortController<"u"){var ie=L.getContext(),I=ie.fetchOptions||{};W=I.controller||new AbortController,I=p({},I,{controller:W,signal:W.signal}),L.setContext({fetchOptions:I})}var J=P(L),te=L.query.definitions.find(function(U){return U.kind==="OperationDefinition"}).operation;if(F<=0||te==="subscription")return J;var oe=new $.Observable(function(U){var m,Ae=J.subscribe(function(ze){clearTimeout(m),U.next(ze),U.complete()},function(ze){clearTimeout(m),U.error(ze),U.complete()});m=setTimeout(function(){if(W){W.abort();var ze=L.getContext(),ke=ze.fetchOptions||{};ke.controller===W&&ke.signal===W.signal&&(ke=p({},ke,{controller:null,signal:null}),L.setContext({fetchOptions:ke}))}U.error(new ee.default("Timeout exceeded",F,j.statusCode)),Ae.unsubscribe()},F);var Be=L.getContext().timeoutRef;return Be&&Be({unsubscribe:function(){clearTimeout(m),Ae.unsubscribe()}}),function(){clearTimeout(m),Ae.unsubscribe()}});return oe},N}($.ApolloLink);z.default=Y},9818:(we,z,g)=>{"use strict";var O=g(528),p=g(8498),$=p(O("String.prototype.indexOf"));we.exports=function(ce,Y){var M=O(ce,!!Y);return typeof M=="function"&&$(ce,".prototype.")>-1?p(M):M}},8498:(we,z,g)=>{"use strict";var O=g(9138),p=g(528),$=g(6108),ee=g(3468),ce=p("%Function.prototype.apply%"),Y=p("%Function.prototype.call%"),M=p("%Reflect.apply%",!0)||O.call(Y,ce),N=g(4940),L=p("%Math.max%");we.exports=function(W){if(typeof W!="function")throw new ee("a function is required");var F=M(O,Y,arguments);return $(F,1+L(0,W.length-(arguments.length-1)),!0)};var P=function(){return M(O,ce,arguments)};N?N(we.exports,"apply",{value:P}):we.exports.apply=P},288:function(we,z){var g=typeof self<"u"?self:this,O=function(){function $(){this.fetch=!1,this.DOMException=g.DOMException}return $.prototype=g,new $}();(function($){var ee=function(ce){var Y={searchParams:"URLSearchParams"in $,iterable:"Symbol"in $&&"iterator"in Symbol,blob:"FileReader"in $&&"Blob"in $&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in $,arrayBuffer:"ArrayBuffer"in $};function M(R){return R&&DataView.prototype.isPrototypeOf(R)}if(Y.arrayBuffer)var N=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],L=ArrayBuffer.isView||function(R){return R&&N.indexOf(Object.prototype.toString.call(R))>-1};function P(R){if(typeof R!="string"&&(R=String(R)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(R))throw new TypeError("Invalid character in header field name");return R.toLowerCase()}function j(R){return typeof R!="string"&&(R=String(R)),R}function W(R){var D={next:function(){var x=R.shift();return{done:x===void 0,value:x}}};return Y.iterable&&(D[Symbol.iterator]=function(){return D}),D}function F(R){this.map={},R instanceof F?R.forEach(function(D,x){this.append(x,D)},this):Array.isArray(R)?R.forEach(function(D){this.append(D[0],D[1])},this):R&&Object.getOwnPropertyNames(R).forEach(function(D){this.append(D,R[D])},this)}F.prototype.append=function(R,D){R=P(R),D=j(D);var x=this.map[R];this.map[R]=x?x+", "+D:D},F.prototype.delete=function(R){delete this.map[P(R)]},F.prototype.get=function(R){return R=P(R),this.has(R)?this.map[R]:null},F.prototype.has=function(R){return this.map.hasOwnProperty(P(R))},F.prototype.set=function(R,D){this.map[P(R)]=j(D)},F.prototype.forEach=function(R,D){for(var x in this.map)this.map.hasOwnProperty(x)&&R.call(D,this.map[x],x,this)},F.prototype.keys=function(){var R=[];return this.forEach(function(D,x){R.push(x)}),W(R)},F.prototype.values=function(){var R=[];return this.forEach(function(D){R.push(D)}),W(R)},F.prototype.entries=function(){var R=[];return this.forEach(function(D,x){R.push([x,D])}),W(R)},Y.iterable&&(F.prototype[Symbol.iterator]=F.prototype.entries);function ie(R){if(R.bodyUsed)return Promise.reject(new TypeError("Already read"));R.bodyUsed=!0}function I(R){return new Promise(function(D,x){R.onload=function(){D(R.result)},R.onerror=function(){x(R.error)}})}function J(R){var D=new FileReader,x=I(D);return D.readAsArrayBuffer(R),x}function te(R){var D=new FileReader,x=I(D);return D.readAsText(R),x}function oe(R){for(var D=new Uint8Array(R),x=new Array(D.length),X=0;X<D.length;X++)x[X]=String.fromCharCode(D[X]);return x.join("")}function U(R){if(R.slice)return R.slice(0);var D=new Uint8Array(R.byteLength);return D.set(new Uint8Array(R)),D.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(R){this._bodyInit=R,R?typeof R=="string"?this._bodyText=R:Y.blob&&Blob.prototype.isPrototypeOf(R)?this._bodyBlob=R:Y.formData&&FormData.prototype.isPrototypeOf(R)?this._bodyFormData=R:Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)?this._bodyText=R.toString():Y.arrayBuffer&&Y.blob&&M(R)?(this._bodyArrayBuffer=U(R.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(R)||L(R))?this._bodyArrayBuffer=U(R):this._bodyText=R=Object.prototype.toString.call(R):this._bodyText="",this.headers.get("content-type")||(typeof R=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Y.blob&&(this.blob=function(){var R=ie(this);if(R)return R;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ie(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(J)}),this.text=function(){var R=ie(this);if(R)return R;if(this._bodyBlob)return te(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(oe(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Y.formData&&(this.formData=function(){return this.text().then(ke)}),this.json=function(){return this.text().then(JSON.parse)},this}var Ae=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Be(R){var D=R.toUpperCase();return Ae.indexOf(D)>-1?D:R}function ze(R,D){D=D||{};var x=D.body;if(R instanceof ze){if(R.bodyUsed)throw new TypeError("Already read");this.url=R.url,this.credentials=R.credentials,D.headers||(this.headers=new F(R.headers)),this.method=R.method,this.mode=R.mode,this.signal=R.signal,!x&&R._bodyInit!=null&&(x=R._bodyInit,R.bodyUsed=!0)}else this.url=String(R);if(this.credentials=D.credentials||this.credentials||"same-origin",(D.headers||!this.headers)&&(this.headers=new F(D.headers)),this.method=Be(D.method||this.method||"GET"),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}ze.prototype.clone=function(){return new ze(this,{body:this._bodyInit})};function ke(R){var D=new FormData;return R.trim().split("&").forEach(function(x){if(x){var X=x.split("="),ue=X.shift().replace(/\+/g," "),he=X.join("=").replace(/\+/g," ");D.append(decodeURIComponent(ue),decodeURIComponent(he))}}),D}function ge(R){var D=new F,x=R.replace(/\r?\n[\t ]+/g," ");return x.split(/\r?\n/).forEach(function(X){var ue=X.split(":"),he=ue.shift().trim();if(he){var Ye=ue.join(":").trim();D.append(he,Ye)}}),D}m.call(ze.prototype);function Le(R,D){D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in D?D.statusText:"OK",this.headers=new F(D.headers),this.url=D.url||"",this._initBody(R)}m.call(Le.prototype),Le.prototype.clone=function(){return new Le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},Le.error=function(){var R=new Le(null,{status:0,statusText:""});return R.type="error",R};var Ee=[301,302,303,307,308];Le.redirect=function(R,D){if(Ee.indexOf(D)===-1)throw new RangeError("Invalid status code");return new Le(null,{status:D,headers:{location:R}})},ce.DOMException=$.DOMException;try{new ce.DOMException}catch{ce.DOMException=function(D,x){this.message=D,this.name=x;var X=Error(D);this.stack=X.stack},ce.DOMException.prototype=Object.create(Error.prototype),ce.DOMException.prototype.constructor=ce.DOMException}function B(R,D){return new Promise(function(x,X){var ue=new ze(R,D);if(ue.signal&&ue.signal.aborted)return X(new ce.DOMException("Aborted","AbortError"));var he=new XMLHttpRequest;function Ye(){he.abort()}he.onload=function(){var ve={status:he.status,statusText:he.statusText,headers:ge(he.getAllResponseHeaders()||"")};ve.url="responseURL"in he?he.responseURL:ve.headers.get("X-Request-URL");var de="response"in he?he.response:he.responseText;x(new Le(de,ve))},he.onerror=function(){X(new TypeError("Network request failed"))},he.ontimeout=function(){X(new TypeError("Network request failed"))},he.onabort=function(){X(new ce.DOMException("Aborted","AbortError"))},he.open(ue.method,ue.url,!0),ue.credentials==="include"?he.withCredentials=!0:ue.credentials==="omit"&&(he.withCredentials=!1),"responseType"in he&&Y.blob&&(he.responseType="blob"),ue.headers.forEach(function(ve,de){he.setRequestHeader(de,ve)}),ue.signal&&(ue.signal.addEventListener("abort",Ye),he.onreadystatechange=function(){he.readyState===4&&ue.signal.removeEventListener("abort",Ye)}),he.send(typeof ue._bodyInit>"u"?null:ue._bodyInit)})}return B.polyfill=!0,$.fetch||($.fetch=B,$.Headers=F,$.Request=ze,$.Response=Le),ce.Headers=F,ce.Request=ze,ce.Response=Le,ce.fetch=B,Object.defineProperty(ce,"__esModule",{value:!0}),ce}({})})(O),O.fetch.ponyfill=!0,delete O.fetch.polyfill;var p=O;z=p.fetch,z.default=p.fetch,z.fetch=p.fetch,z.Headers=p.Headers,z.Request=p.Request,z.Response=p.Response,we.exports=z},686:(we,z,g)=>{"use strict";var O=g(4940),p=g(5731),$=g(3468),ee=g(9336);we.exports=function(Y,M,N){if(!Y||typeof Y!="object"&&typeof Y!="function")throw new $("`obj` must be an object or a function`");if(typeof M!="string"&&typeof M!="symbol")throw new $("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $("`loose`, if provided, must be a boolean");var L=arguments.length>3?arguments[3]:null,P=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,W=arguments.length>6?arguments[6]:!1,F=!!ee&&ee(Y,M);if(O)O(Y,M,{configurable:j===null&&F?F.configurable:!j,enumerable:L===null&&F?F.enumerable:!L,value:N,writable:P===null&&F?F.writable:!P});else if(W||!L&&!P&&!j)Y[M]=N;else throw new p("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},4940:(we,z,g)=>{"use strict";var O=g(528),p=O("%Object.defineProperty%",!0)||!1;if(p)try{p({},"a",{value:1})}catch{p=!1}we.exports=p},9110:we=>{"use strict";we.exports=EvalError},9838:we=>{"use strict";we.exports=Error},1155:we=>{"use strict";we.exports=RangeError},4943:we=>{"use strict";we.exports=ReferenceError},5731:we=>{"use strict";we.exports=SyntaxError},3468:we=>{"use strict";we.exports=TypeError},2140:we=>{"use strict";we.exports=URIError},8794:we=>{"use strict";var z="Function.prototype.bind called on incompatible ",g=Object.prototype.toString,O=Math.max,p="[object Function]",$=function(M,N){for(var L=[],P=0;P<M.length;P+=1)L[P]=M[P];for(var j=0;j<N.length;j+=1)L[j+M.length]=N[j];return L},ee=function(M,N){for(var L=[],P=N||0,j=0;P<M.length;P+=1,j+=1)L[j]=M[P];return L},ce=function(Y,M){for(var N="",L=0;L<Y.length;L+=1)N+=Y[L],L+1<Y.length&&(N+=M);return N};we.exports=function(M){var N=this;if(typeof N!="function"||g.apply(N)!==p)throw new TypeError(z+N);for(var L=ee(arguments,1),P,j=function(){if(this instanceof P){var J=N.apply(this,$(L,arguments));return Object(J)===J?J:this}return N.apply(M,$(L,arguments))},W=O(0,N.length-L.length),F=[],ie=0;ie<W;ie++)F[ie]="$"+ie;if(P=Function("binder","return function ("+ce(F,",")+"){ return binder.apply(this,arguments); }")(j),N.prototype){var I=function(){};I.prototype=N.prototype,P.prototype=new I,I.prototype=null}return P}},9138:(we,z,g)=>{"use strict";var O=g(8794);we.exports=Function.prototype.bind||O},528:(we,z,g)=>{"use strict";var O,p=g(9838),$=g(9110),ee=g(1155),ce=g(4943),Y=g(5731),M=g(3468),N=g(2140),L=Function,P=function(he){try{return L('"use strict"; return ('+he+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var W=function(){throw new M},F=j?function(){try{return arguments.callee,W}catch{try{return j(arguments,"callee").get}catch{return W}}}():W,ie=g(3558)(),I=g(6869)(),J=Object.getPrototypeOf||(I?function(he){return he.__proto__}:null),te={},oe=typeof Uint8Array>"u"||!J?O:J(Uint8Array),U={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?O:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?O:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&J?J([][Symbol.iterator]()):O,"%AsyncFromSyncIteratorPrototype%":O,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?O:Atomics,"%BigInt%":typeof BigInt>"u"?O:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?O:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?O:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?O:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p,"%eval%":eval,"%EvalError%":$,"%Float32Array%":typeof Float32Array>"u"?O:Float32Array,"%Float64Array%":typeof Float64Array>"u"?O:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?O:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?O:Int8Array,"%Int16Array%":typeof Int16Array>"u"?O:Int16Array,"%Int32Array%":typeof Int32Array>"u"?O:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ie&&J?J(J([][Symbol.iterator]())):O,"%JSON%":typeof JSON=="object"?JSON:O,"%Map%":typeof Map>"u"?O:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ie||!J?O:J(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?O:Promise,"%Proxy%":typeof Proxy>"u"?O:Proxy,"%RangeError%":ee,"%ReferenceError%":ce,"%Reflect%":typeof Reflect>"u"?O:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?O:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ie||!J?O:J(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?O:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&J?J(""[Symbol.iterator]()):O,"%Symbol%":ie?Symbol:O,"%SyntaxError%":Y,"%ThrowTypeError%":F,"%TypedArray%":oe,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?O:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?O:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?O:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?O:Uint32Array,"%URIError%":N,"%WeakMap%":typeof WeakMap>"u"?O:WeakMap,"%WeakRef%":typeof WeakRef>"u"?O:WeakRef,"%WeakSet%":typeof WeakSet>"u"?O:WeakSet};if(J)try{null.error}catch(he){var m=J(J(he));U["%Error.prototype%"]=m}var Ae=function he(Ye){var ve;if(Ye==="%AsyncFunction%")ve=P("async function () {}");else if(Ye==="%GeneratorFunction%")ve=P("function* () {}");else if(Ye==="%AsyncGeneratorFunction%")ve=P("async function* () {}");else if(Ye==="%AsyncGenerator%"){var de=he("%AsyncGeneratorFunction%");de&&(ve=de.prototype)}else if(Ye==="%AsyncIteratorPrototype%"){var ae=he("%AsyncGenerator%");ae&&J&&(ve=J(ae.prototype))}return U[Ye]=ve,ve},Be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ze=g(9138),ke=g(8554),ge=ze.call(Function.call,Array.prototype.concat),Le=ze.call(Function.apply,Array.prototype.splice),Ee=ze.call(Function.call,String.prototype.replace),B=ze.call(Function.call,String.prototype.slice),R=ze.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,X=function(Ye){var ve=B(Ye,0,1),de=B(Ye,-1);if(ve==="%"&&de!=="%")throw new Y("invalid intrinsic syntax, expected closing `%`");if(de==="%"&&ve!=="%")throw new Y("invalid intrinsic syntax, expected opening `%`");var ae=[];return Ee(Ye,D,function(q,Te,be,et){ae[ae.length]=be?Ee(et,x,"$1"):Te||q}),ae},ue=function(Ye,ve){var de=Ye,ae;if(ke(Be,de)&&(ae=Be[de],de="%"+ae[0]+"%"),ke(U,de)){var q=U[de];if(q===te&&(q=Ae(de)),typeof q>"u"&&!ve)throw new M("intrinsic "+Ye+" exists, but is not available. Please file an issue!");return{alias:ae,name:de,value:q}}throw new Y("intrinsic "+Ye+" does not exist!")};we.exports=function(Ye,ve){if(typeof Ye!="string"||Ye.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new M('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,Ye)===null)throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var de=X(Ye),ae=de.length>0?de[0]:"",q=ue("%"+ae+"%",ve),Te=q.name,be=q.value,et=!1,st=q.alias;st&&(ae=st[0],Le(de,ge([0,1],st)));for(var lt=1,at=!0;lt<de.length;lt+=1){var ye=de[lt],Ie=B(ye,0,1),C=B(ye,-1);if((Ie==='"'||Ie==="'"||Ie==="`"||C==='"'||C==="'"||C==="`")&&Ie!==C)throw new Y("property names with quotes must have matching quotes");if((ye==="constructor"||!at)&&(et=!0),ae+="."+ye,Te="%"+ae+"%",ke(U,Te))be=U[Te];else if(be!=null){if(!(ye in be)){if(!ve)throw new M("base intrinsic for "+Ye+" exists, but the property is not available.");return}if(j&&lt+1>=de.length){var V=j(be,ye);at=!!V,at&&"get"in V&&!("originalValue"in V.get)?be=V.get:be=be[ye]}else at=ke(be,ye),be=be[ye];at&&!et&&(U[Te]=be)}}return be}},9336:(we,z,g)=>{"use strict";var O=g(528),p=O("%Object.getOwnPropertyDescriptor%",!0);if(p)try{p([],"length")}catch{p=null}we.exports=p},4370:(we,z,g)=>{"use strict";g.d(z,{Ay:()=>oe,J1:()=>W,Nh:()=>F,VC:()=>I,gi:()=>ie,qj:()=>J});var O=g(5608),p=g(5157),$=new Map,ee=new Map,ce=!0,Y=!1;function M(U){return U.replace(/[\s,]+/g," ").trim()}function N(U){return M(U.source.body.substring(U.start,U.end))}function L(U){var m=new Set,Ae=[];return U.definitions.forEach(function(Be){if(Be.kind==="FragmentDefinition"){var ze=Be.name.value,ke=N(Be.loc),ge=ee.get(ze);ge&&!ge.has(ke)?ce&&console.warn("Warning: fragment with name "+ze+` already exists.
2
2
  graphql-tag enforces all fragment names across your application to be unique; read more about
3
3
  this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):ge||ee.set(ze,ge=new Set),ge.add(ke),m.has(ke)||(m.add(ke),Ae.push(Be))}else Ae.push(Be)}),(0,O.Cl)((0,O.Cl)({},U),{definitions:Ae})}function P(U){var m=new Set(U.definitions);m.forEach(function(Be){Be.loc&&delete Be.loc,Object.keys(Be).forEach(function(ze){var ke=Be[ze];ke&&typeof ke=="object"&&m.add(ke)})});var Ae=U.loc;return Ae&&(delete Ae.startToken,delete Ae.endToken),U}function j(U){var m=M(U);if(!$.has(m)){var Ae=(0,p.qg)(U,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!Ae||Ae.kind!=="Document")throw new Error("Not a valid GraphQL document.");$.set(m,P(L(Ae)))}return $.get(m)}function W(U){for(var m=[],Ae=1;Ae<arguments.length;Ae++)m[Ae-1]=arguments[Ae];typeof U=="string"&&(U=[U]);var Be=U[0];return m.forEach(function(ze,ke){ze&&ze.kind==="Document"?Be+=ze.loc.source.body:Be+=ze,Be+=U[ke+1]}),j(Be)}function F(){$.clear(),ee.clear()}function ie(){ce=!1}function I(){Y=!0}function J(){Y=!1}var te={gql:W,resetCaches:F,disableFragmentWarnings:ie,enableExperimentalFragmentVariables:I,disableExperimentalFragmentVariables:J};(function(U){U.gql=te.gql,U.resetCaches=te.resetCaches,U.disableFragmentWarnings=te.disableFragmentWarnings,U.enableExperimentalFragmentVariables=te.enableExperimentalFragmentVariables,U.disableExperimentalFragmentVariables=te.disableExperimentalFragmentVariables})(W||(W={})),W.default=W;const oe=W},7239:(we,z,g)=>{"use strict";var O=g(4940),p=function(){return!!O};p.hasArrayLengthDefineBug=function(){if(!O)return null;try{return O([],"length",{value:1}).length!==1}catch{return!0}},we.exports=p},6869:we=>{"use strict";var z={__proto__:null,foo:{}},g=Object;we.exports=function(){return{__proto__:z}.foo===z.foo&&!(z instanceof g)}},3558:(we,z,g)=>{"use strict";var O=typeof Symbol<"u"&&Symbol,p=g(2908);we.exports=function(){return typeof O!="function"||typeof Symbol!="function"||typeof O("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:p()}},2908:we=>{"use strict";we.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var g={},O=Symbol("test"),p=Object(O);if(typeof O=="string"||Object.prototype.toString.call(O)!=="[object Symbol]"||Object.prototype.toString.call(p)!=="[object Symbol]")return!1;var $=42;g[O]=$;for(O in g)return!1;if(typeof Object.keys=="function"&&Object.keys(g).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(g).length!==0)return!1;var ee=Object.getOwnPropertySymbols(g);if(ee.length!==1||ee[0]!==O||!Object.prototype.propertyIsEnumerable.call(g,O))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ce=Object.getOwnPropertyDescriptor(g,O);if(ce.value!==$||ce.enumerable!==!0)return!1}return!0}},8554:(we,z,g)=>{"use strict";var O=Function.prototype.call,p=Object.prototype.hasOwnProperty,$=g(9138);we.exports=$.call(O,p)},5232:(we,z,g)=>{"use strict";g.r(z),g.d(z,{InvalidTokenError:()=>ee,default:()=>Y});function O(M){this.message=M}O.prototype=new Error,O.prototype.name="InvalidCharacterError";var p=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(M){var N=String(M).replace(/=+$/,"");if(N.length%4==1)throw new O("'atob' failed: The string to be decoded is not correctly encoded.");for(var L,P,j=0,W=0,F="";P=N.charAt(W++);~P&&(L=j%4?64*L+P:P,j++%4)?F+=String.fromCharCode(255&L>>(-2*j&6)):0)P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(P);return F};function $(M){var N=M.replace(/-/g,"+").replace(/_/g,"/");switch(N.length%4){case 0:break;case 2:N+="==";break;case 3:N+="=";break;default:throw"Illegal base64url string!"}try{return function(L){return decodeURIComponent(p(L).replace(/(.)/g,function(P,j){var W=j.charCodeAt(0).toString(16).toUpperCase();return W.length<2&&(W="0"+W),"%"+W}))}(N)}catch{return p(N)}}function ee(M){this.message=M}function ce(M,N){if(typeof M!="string")throw new ee("Invalid token specified");var L=(N=N||{}).header===!0?0:1;try{return JSON.parse($(M.split(".")[L]))}catch(P){throw new ee("Invalid token specified: "+P.message)}}ee.prototype=new Error,ee.prototype.name="InvalidTokenError";const Y=ce},8089:(we,z,g)=>{we=g.nmd(we);var O=200,p="__lodash_hash_undefined__",$=800,ee=16,ce=9007199254740991,Y="[object Arguments]",M="[object Array]",N="[object AsyncFunction]",L="[object Boolean]",P="[object Date]",j="[object Error]",W="[object Function]",F="[object GeneratorFunction]",ie="[object Map]",I="[object Number]",J="[object Null]",te="[object Object]",oe="[object Proxy]",U="[object RegExp]",m="[object Set]",Ae="[object String]",Be="[object Undefined]",ze="[object WeakMap]",ke="[object ArrayBuffer]",ge="[object DataView]",Le="[object Float32Array]",Ee="[object Float64Array]",B="[object Int8Array]",R="[object Int16Array]",D="[object Int32Array]",x="[object Uint8Array]",X="[object Uint8ClampedArray]",ue="[object Uint16Array]",he="[object Uint32Array]",Ye=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,ae={};ae[Le]=ae[Ee]=ae[B]=ae[R]=ae[D]=ae[x]=ae[X]=ae[ue]=ae[he]=!0,ae[Y]=ae[M]=ae[ke]=ae[L]=ae[ge]=ae[P]=ae[j]=ae[W]=ae[ie]=ae[I]=ae[te]=ae[U]=ae[m]=ae[Ae]=ae[ze]=!1;var q=typeof g.g=="object"&&g.g&&g.g.Object===Object&&g.g,Te=typeof self=="object"&&self&&self.Object===Object&&self,be=q||Te||Function("return this")(),et=z&&!z.nodeType&&z,st=et&&!0&&we&&!we.nodeType&&we,lt=st&&st.exports===et,at=lt&&q.process,ye=function(){try{var Se=st&&st.require&&st.require("util").types;return Se||at&&at.binding&&at.binding("util")}catch{}}(),Ie=ye&&ye.isTypedArray;function C(Se,je,Je){switch(Je.length){case 0:return Se.call(je);case 1:return Se.call(je,Je[0]);case 2:return Se.call(je,Je[0],Je[1]);case 3:return Se.call(je,Je[0],Je[1],Je[2])}return Se.apply(je,Je)}function V(Se,je){for(var Je=-1,It=Array(Se);++Je<Se;)It[Je]=je(Je);return It}function k(Se){return function(je){return Se(je)}}function re(Se,je){return Se?.[je]}function _e(Se,je){return function(Je){return Se(je(Je))}}var He=Array.prototype,dt=Function.prototype,Xe=Object.prototype,ut=be["__core-js_shared__"],At=dt.toString,Et=Xe.hasOwnProperty,Zt=function(){var Se=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return Se?"Symbol(src)_1."+Se:""}(),Jt=Xe.toString,Ft=At.call(Object),er=RegExp("^"+At.call(Et).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=lt?be.Buffer:void 0,Mr=be.Symbol,_r=be.Uint8Array,Ur=Ht?Ht.allocUnsafe:void 0,xr=_e(Object.getPrototypeOf,Object),tn=Object.create,cr=Xe.propertyIsEnumerable,Fe=He.splice,De=Mr?Mr.toStringTag:void 0,Yt=function(){try{var Se=or(Object,"defineProperty");return Se({},"",{}),Se}catch{}}(),ar=Ht?Ht.isBuffer:void 0,Sr=Math.max,Ut=Date.now,ln=or(be,"Map"),Nr=or(Object,"create"),jr=function(){function Se(){}return function(je){if(!Ra(je))return{};if(tn)return tn(je);Se.prototype=je;var Je=new Se;return Se.prototype=void 0,Je}}();function rn(Se){var je=-1,Je=Se==null?0:Se.length;for(this.clear();++je<Je;){var It=Se[je];this.set(It[0],It[1])}}function xn(){this.__data__=Nr?Nr(null):{},this.size=0}function Gn(Se){var je=this.has(Se)&&delete this.__data__[Se];return this.size-=je?1:0,je}function Zr(Se){var je=this.__data__;if(Nr){var Je=je[Se];return Je===p?void 0:Je}return Et.call(je,Se)?je[Se]:void 0}function Bt(Se){var je=this.__data__;return Nr?je[Se]!==void 0:Et.call(je,Se)}function Bi(Se,je){var Je=this.__data__;return this.size+=this.has(Se)?0:1,Je[Se]=Nr&&je===void 0?p:je,this}rn.prototype.clear=xn,rn.prototype.delete=Gn,rn.prototype.get=Zr,rn.prototype.has=Bt,rn.prototype.set=Bi;function Or(Se){var je=-1,Je=Se==null?0:Se.length;for(this.clear();++je<Je;){var It=Se[je];this.set(It[0],It[1])}}function Nn(){this.__data__=[],this.size=0}function yn(Se){var je=this.__data__,Je=ki(je,Se);if(Je<0)return!1;var It=je.length-1;return Je==It?je.pop():Fe.call(je,Je,1),--this.size,!0}function Wn(Se){var je=this.__data__,Je=ki(je,Se);return Je<0?void 0:je[Je][1]}function fn(Se){return ki(this.__data__,Se)>-1}function Fr(Se,je){var Je=this.__data__,It=ki(Je,Se);return It<0?(++this.size,Je.push([Se,je])):Je[It][1]=je,this}Or.prototype.clear=Nn,Or.prototype.delete=yn,Or.prototype.get=Wn,Or.prototype.has=fn,Or.prototype.set=Fr;function En(Se){var je=-1,Je=Se==null?0:Se.length;for(this.clear();++je<Je;){var It=Se[je];this.set(It[0],It[1])}}function Bn(){this.size=0,this.__data__={hash:new rn,map:new(ln||Or),string:new rn}}function sn(Se){var je=Br(this,Se).delete(Se);return this.size-=je?1:0,je}function $t(Se){return Br(this,Se).get(Se)}function kn(Se){return Br(this,Se).has(Se)}function On(Se,je){var Je=Br(this,Se),It=Je.size;return Je.set(Se,je),this.size+=Je.size==It?0:1,this}En.prototype.clear=Bn,En.prototype.delete=sn,En.prototype.get=$t,En.prototype.has=kn,En.prototype.set=On;function $r(Se){var je=this.__data__=new Or(Se);this.size=je.size}function it(){this.__data__=new Or,this.size=0}function jn(Se){var je=this.__data__,Je=je.delete(Se);return this.size=je.size,Je}function Jn(Se){return this.__data__.get(Se)}function Zn(Se){return this.__data__.has(Se)}function pr(Se,je){var Je=this.__data__;if(Je instanceof Or){var It=Je.__data__;if(!ln||It.length<O-1)return It.push([Se,je]),this.size=++Je.size,this;Je=this.__data__=new En(It)}return Je.set(Se,je),this.size=Je.size,this}$r.prototype.clear=it,$r.prototype.delete=jn,$r.prototype.get=Jn,$r.prototype.has=Zn,$r.prototype.set=pr;function Si(Se,je){var Je=uo(Se),It=!Je&&so(Se),Tr=!Je&&!It&&co(Se),mr=!Je&&!It&&!Tr&&fo(Se),Wr=Je||It||Tr||mr,kt=Wr?V(Se.length,String):[],Kr=kt.length;for(var Vn in Se)(je||Et.call(Se,Vn))&&!(Wr&&(Vn=="length"||Tr&&(Vn=="offset"||Vn=="parent")||mr&&(Vn=="buffer"||Vn=="byteLength"||Vn=="byteOffset")||_n(Vn,Kr)))&&kt.push(Vn);return kt}function gn(Se,je,Je){(Je!==void 0&&!pa(Se[je],Je)||Je===void 0&&!(je in Se))&&Pi(Se,je,Je)}function Zi(Se,je,Je){var It=Se[je];(!(Et.call(Se,je)&&pa(It,Je))||Je===void 0&&!(je in Se))&&Pi(Se,je,Je)}function ki(Se,je){for(var Je=Se.length;Je--;)if(pa(Se[Je][0],je))return Je;return-1}function Pi(Se,je,Je){je=="__proto__"&&Yt?Yt(Se,je,{configurable:!0,enumerable:!0,value:Je,writable:!0}):Se[je]=Je}var h=rr();function y(Se){return Se==null?Se===void 0?Be:J:De&&De in Object(Se)?In(Se):oo(Se)}function H(Se){return Pa(Se)&&y(Se)==Y}function se(Se){if(!Ra(Se)||ti(Se))return!1;var je=Fa(Se)?er:ve;return je.test(Vo(Se))}function Ne(Se){return Pa(Se)&&va(Se.length)&&!!ae[y(Se)]}function $e(Se){if(!Ra(Se))return ea(Se);var je=Tn(Se),Je=[];for(var It in Se)It=="constructor"&&(je||!Et.call(Se,It))||Je.push(It);return Je}function rt(Se,je,Je,It,Tr){Se!==je&&h(je,function(mr,Wr){if(Tr||(Tr=new $r),Ra(mr))mt(Se,je,Wr,Je,rt,It,Tr);else{var kt=It?It(Va(Se,Wr),mr,Wr+"",Se,je,Tr):void 0;kt===void 0&&(kt=mr),gn(Se,Wr,kt)}},ji)}function mt(Se,je,Je,It,Tr,mr,Wr){var kt=Va(Se,Je),Kr=Va(je,Je),Vn=Wr.get(Kr);if(Vn){gn(Se,Je,Vn);return}var Ar=mr?mr(kt,Kr,Je+"",Se,je,Wr):void 0,Ei=Ar===void 0;if(Ei){var mn=uo(Kr),$a=!mn&&co(Kr),Ga=!mn&&!$a&&fo(Kr);Ar=Kr,mn||$a||Ga?uo(kt)?Ar=kt:iu(kt)?Ar=Pt(kt):$a?(Ei=!1,Ar=yt(Kr,!0)):Ga?(Ei=!1,Ar=gt(Kr,!0)):Ar=[]:lo(Kr)||so(Kr)?(Ar=kt,so(kt)?Ar=rc(kt):(!Ra(kt)||Fa(kt))&&(Ar=ei(Kr))):Ei=!1}Ei&&(Wr.set(Kr,Ar),Tr(Ar,Kr,It,mr,Wr),Wr.delete(Kr)),gn(Se,Je,Ar)}function ft(Se,je){return Uo(nu(Se,je,kr),Se+"")}var vt=Yt?function(Se,je){return Yt(Se,"toString",{configurable:!0,enumerable:!1,value:qr(je),writable:!0})}:kr;function yt(Se,je){if(je)return Se.slice();var Je=Se.length,It=Ur?Ur(Je):new Se.constructor(Je);return Se.copy(It),It}function Dt(Se){var je=new Se.constructor(Se.byteLength);return new _r(je).set(new _r(Se)),je}function gt(Se,je){var Je=je?Dt(Se.buffer):Se.buffer;return new Se.constructor(Je,Se.byteOffset,Se.length)}function Pt(Se,je){var Je=-1,It=Se.length;for(je||(je=Array(It));++Je<It;)je[Je]=Se[Je];return je}function Nt(Se,je,Je,It){var Tr=!Je;Je||(Je={});for(var mr=-1,Wr=je.length;++mr<Wr;){var kt=je[mr],Kr=It?It(Je[kt],Se[kt],kt,Je,Se):void 0;Kr===void 0&&(Kr=Se[kt]),Tr?Pi(Je,kt,Kr):Zi(Je,kt,Kr)}return Je}function Dr(Se){return ft(function(je,Je){var It=-1,Tr=Je.length,mr=Tr>1?Je[Tr-1]:void 0,Wr=Tr>2?Je[2]:void 0;for(mr=Se.length>3&&typeof mr=="function"?(Tr--,mr):void 0,Wr&&ao(Je[0],Je[1],Wr)&&(mr=Tr<3?void 0:mr,Tr=1),je=Object(je);++It<Tr;){var kt=Je[It];kt&&Se(je,kt,It,mr)}return je})}function rr(Se){return function(je,Je,It){for(var Tr=-1,mr=Object(je),Wr=It(je),kt=Wr.length;kt--;){var Kr=Wr[Se?kt:++Tr];if(Je(mr[Kr],Kr,mr)===!1)break}return je}}function Br(Se,je){var Je=Se.__data__;return Ci(je)?Je[typeof je=="string"?"string":"hash"]:Je.map}function or(Se,je){var Je=re(Se,je);return se(Je)?Je:void 0}function In(Se){var je=Et.call(Se,De),Je=Se[De];try{Se[De]=void 0;var It=!0}catch{}var Tr=Jt.call(Se);return It&&(je?Se[De]=Je:delete Se[De]),Tr}function ei(Se){return typeof Se.constructor=="function"&&!Tn(Se)?jr(xr(Se)):{}}function _n(Se,je){var Je=typeof Se;return je=je??ce,!!je&&(Je=="number"||Je!="symbol"&&de.test(Se))&&Se>-1&&Se%1==0&&Se<je}function ao(Se,je,Je){if(!Ra(Je))return!1;var It=typeof je;return(It=="number"?ha(Je)&&_n(je,Je.length):It=="string"&&je in Je)?pa(Je[je],Se):!1}function Ci(Se){var je=typeof Se;return je=="string"||je=="number"||je=="symbol"||je=="boolean"?Se!=="__proto__":Se===null}function ti(Se){return!!Zt&&Zt in Se}function Tn(Se){var je=Se&&Se.constructor,Je=typeof je=="function"&&je.prototype||Xe;return Se===Je}function ea(Se){var je=[];if(Se!=null)for(var Je in Object(Se))je.push(Je);return je}function oo(Se){return Jt.call(Se)}function nu(Se,je,Je){return je=Sr(je===void 0?Se.length-1:je,0),function(){for(var It=arguments,Tr=-1,mr=Sr(It.length-je,0),Wr=Array(mr);++Tr<mr;)Wr[Tr]=It[je+Tr];Tr=-1;for(var kt=Array(je+1);++Tr<je;)kt[Tr]=It[Tr];return kt[je]=Je(Wr),C(Se,this,kt)}}function Va(Se,je){if(!(je==="constructor"&&typeof Se[je]=="function")&&je!="__proto__")return Se[je]}var Uo=xo(vt);function xo(Se){var je=0,Je=0;return function(){var It=Ut(),Tr=ee-(It-Je);if(Je=It,Tr>0){if(++je>=$)return arguments[0]}else je=0;return Se.apply(void 0,arguments)}}function Vo(Se){if(Se!=null){try{return At.call(Se)}catch{}try{return Se+""}catch{}}return""}function pa(Se,je){return Se===je||Se!==Se&&je!==je}var so=H(function(){return arguments}())?H:function(Se){return Pa(Se)&&Et.call(Se,"callee")&&!cr.call(Se,"callee")},uo=Array.isArray;function ha(Se){return Se!=null&&va(Se.length)&&!Fa(Se)}function iu(Se){return Pa(Se)&&ha(Se)}var co=ar||Fo;function Fa(Se){if(!Ra(Se))return!1;var je=y(Se);return je==W||je==F||je==N||je==oe}function va(Se){return typeof Se=="number"&&Se>-1&&Se%1==0&&Se<=ce}function Ra(Se){var je=typeof Se;return Se!=null&&(je=="object"||je=="function")}function Pa(Se){return Se!=null&&typeof Se=="object"}function lo(Se){if(!Pa(Se)||y(Se)!=te)return!1;var je=xr(Se);if(je===null)return!0;var Je=Et.call(je,"constructor")&&je.constructor;return typeof Je=="function"&&Je instanceof Je&&At.call(Je)==Ft}var fo=Ie?k(Ie):Ne;function rc(Se){return Nt(Se,ji(Se))}function ji(Se){return ha(Se)?Si(Se,!0):$e(Se)}var nc=Dr(function(Se,je,Je){rt(Se,je,Je)});function qr(Se){return function(){return Se}}function kr(Se){return Se}function Fo(){return!1}we.exports=nc},5250:function(we,z,g){we=g.nmd(we);var O;/**
4
4
  * @license
@@ -92,7 +92,7 @@ import { ApolloClient, HttpLink } from '@apollo/client';
92
92
  const client = new ApolloClient({
93
93
  link: new HttpLink({ uri: '/graphql', fetch })
94
94
  });
95
- `):new O.zU(20)}},2917:(we,z,g)=>{"use strict";g.d(z,{S:()=>O});var O=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var p=new AbortController,$=p.signal;return{controller:p,signal:$}}},6745:(we,z,g)=>{"use strict";g.d(z,{O:()=>$});var O=g(3848),p=Object.prototype.hasOwnProperty;function $(ee){return function(ce){return ce.text().then(function(Y){if(ce.status>=300){var M=function(){try{return JSON.parse(Y)}catch{return Y}};(0,O.A)(ce,M(),"Response not successful: Received status code ".concat(ce.status))}try{return JSON.parse(Y)}catch(L){var N=L;throw N.name="ServerParseError",N.response=ce,N.statusCode=ce.status,N.bodyText=Y,N}}).then(function(Y){return!Array.isArray(Y)&&!p.call(Y,"data")&&!p.call(Y,"errors")&&(0,O.A)(ce,Y,"Server response was missing for query '".concat(Array.isArray(ee)?ee.map(function(M){return M.operationName}):ee.operationName,"'.")),Y})}}},4559:(we,z,g)=>{"use strict";g.d(z,{HY:()=>L,R4:()=>Y,Wz:()=>N,i1:()=>M});var O=g(5608),p=g(2704),$={includeQuery:!0,includeExtensions:!1},ee={accept:"*/*","content-type":"application/json"},ce={method:"POST"},Y={http:$,headers:ee,options:ce},M=function(j,W){return W(j)};function N(j,W){for(var F=[],ie=2;ie<arguments.length;ie++)F[ie-2]=arguments[ie];return F.unshift(W),L.apply(void 0,(0,O.fX)([j,M],F,!1))}function L(j,W){for(var F=[],ie=2;ie<arguments.length;ie++)F[ie-2]=arguments[ie];var I={},J={};F.forEach(function(Be){I=(0,O.Cl)((0,O.Cl)((0,O.Cl)({},I),Be.options),{headers:(0,O.Cl)((0,O.Cl)({},I.headers),P(Be.headers))}),Be.credentials&&(I.credentials=Be.credentials),J=(0,O.Cl)((0,O.Cl)({},J),Be.http)});var te=j.operationName,oe=j.extensions,U=j.variables,m=j.query,Ae={operationName:te,variables:U};return J.includeExtensions&&(Ae.extensions=oe),J.includeQuery&&(Ae.query=W(m,p.y)),{options:I,body:Ae}}function P(j){if(j){var W=Object.create(null);return Object.keys(Object(j)).forEach(function(F){W[F.toLowerCase()]=j[F]}),W}return j}},3068:(we,z,g)=>{"use strict";g.d(z,{z:()=>O});var O=function(p,$){var ee=p.getContext(),ce=ee.uri;return ce||(typeof $=="function"?$(p):$||"/graphql")}},3647:(we,z,g)=>{"use strict";g.d(z,{Y:()=>p});var O=g(7432),p=function($,ee){var ce;try{ce=JSON.stringify($)}catch(M){var Y=__DEV__?new O.zU("Network request failed. ".concat(ee," is not serializable: ").concat(M.message)):new O.zU(21);throw Y.parseError=M,Y}return ce}},3161:(we,z,g)=>{"use strict";g.d(z,{N:()=>p});var O=g(6054);function p($){return new O.c(function(ee){ee.error($)})}},3848:(we,z,g)=>{"use strict";g.d(z,{A:()=>O});var O=function(p,$,ee){var ce=new Error(ee);throw ce.name="ServerError",ce.response=p,ce.statusCode=p.status,ce.result=$,ce}},3767:(we,z,g)=>{"use strict";g.d(z,{E:()=>O});function O(p){return Array.isArray(p)&&p.length>0}},1360:(we,z,g)=>{"use strict";g.d(z,{En:()=>$,JR:()=>M,Sw:()=>ce,et:()=>p,ol:()=>ee});var O=g(7432),p=typeof WeakMap=="function"&&(0,O.no)(function(){return navigator.product})!=="ReactNative",$=typeof WeakSet=="function",ee=typeof Symbol=="function"&&typeof Symbol.for=="function",ce=typeof(0,O.no)(function(){return window.document.createElement})=="function",Y=(0,O.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,M=ce&&!Y},906:(we,z,g)=>{"use strict";g.d(z,{m:()=>p});var O=Object.prototype.toString;function p(ee){return $(ee)}function $(ee,ce){switch(O.call(ee)){case"[object Array]":{if(ce=ce||new Map,ce.has(ee))return ce.get(ee);var Y=ee.slice(0);return ce.set(ee,Y),Y.forEach(function(N,L){Y[L]=$(N,ce)}),Y}case"[object Object]":{if(ce=ce||new Map,ce.has(ee))return ce.get(ee);var M=Object.create(Object.getPrototypeOf(ee));return ce.set(ee,M),Object.keys(ee).forEach(function(N){M[N]=$(ee[N],ce)}),M}default:return ee}}},492:(we,z,g)=>{"use strict";g.d(z,{o:()=>O});function O(){for(var p=[],$=0;$<arguments.length;$++)p[$]=arguments[$];var ee=Object.create(null);return p.forEach(function(ce){!ce||Object.keys(ce).forEach(function(Y){var M=ce[Y];M!==void 0&&(ee[Y]=M)})}),ee}},2710:(we,z,g)=>{"use strict";g.d(z,{t:()=>O});function O(p){return p.errors&&p.errors.length>0||!1}},1461:(we,z,g)=>{"use strict";g.d(z,{v:()=>p});var O=new Map;function p($){var ee=O.get($)||1;return O.set($,ee+1),"".concat($,":").concat(ee,":").concat(Math.random().toString(36).slice(2))}},7236:(we,z,g)=>{"use strict";g.d(z,{G:()=>ce});var O=g(7432),p=g(1777);function $(Y){var M=new Set([Y]);return M.forEach(function(N){(0,p.U)(N)&&ee(N)===N&&Object.getOwnPropertyNames(N).forEach(function(L){(0,p.U)(N[L])&&M.add(N[L])})}),Y}function ee(Y){if(__DEV__&&!Object.isFrozen(Y))try{Object.freeze(Y)}catch(M){if(M instanceof TypeError)return null;throw M}return Y}function ce(Y){return __DEV__&&$(Y),Y}},671:(we,z,g)=>{"use strict";g.d(z,{D9:()=>ee,IM:()=>ce,ZI:()=>M});var O=g(5608),p=g(1777),$=Object.prototype.hasOwnProperty;function ee(){for(var N=[],L=0;L<arguments.length;L++)N[L]=arguments[L];return ce(N)}function ce(N){var L=N[0]||{},P=N.length;if(P>1)for(var j=new M,W=1;W<P;++W)L=j.merge(L,N[W]);return L}var Y=function(N,L,P){return this.merge(N[P],L[P])},M=function(){function N(L){L===void 0&&(L=Y),this.reconciler=L,this.isObject=p.U,this.pastCopies=new Set}return N.prototype.merge=function(L,P){for(var j=this,W=[],F=2;F<arguments.length;F++)W[F-2]=arguments[F];return(0,p.U)(P)&&(0,p.U)(L)?(Object.keys(P).forEach(function(ie){if($.call(L,ie)){var I=L[ie];if(P[ie]!==I){var J=j.reconciler.apply(j,(0,O.fX)([L,P,ie],W,!1));J!==I&&(L=j.shallowCopyForMerge(L),L[ie]=J)}}else L=j.shallowCopyForMerge(L),L[ie]=P[ie]}),L):P},N.prototype.shallowCopyForMerge=function(L){return(0,p.U)(L)&&(this.pastCopies.has(L)||(Array.isArray(L)?L=L.slice(0):L=(0,O.Cl)({__proto__:Object.getPrototypeOf(L)},L),this.pastCopies.add(L))),L},N}()},1507:(we,z,g)=>{"use strict";g.d(z,{l:()=>$});var O=g(5608),p=g(492);function $(ee,ce){return(0,p.o)(ee,ce,ce.variables&&{variables:(0,O.Cl)((0,O.Cl)({},ee&&ee.variables),ce.variables)})}},1777:(we,z,g)=>{"use strict";g.d(z,{U:()=>O});function O(p){return p!==null&&typeof p=="object"}},6563:(we,z,g)=>{"use strict";g.d(z,{p:()=>p});var O=g(1461);function p($){var ee=(0,O.v)("stringifyForDisplay");return JSON.stringify($,function(ce,Y){return Y===void 0?ee:Y}).split(JSON.stringify(ee)).join("<undefined>")}},7432:(we,z,g)=>{"use strict";g.d(z,{IJ:()=>M,zU:()=>O.zU,V1:()=>O.V1,no:()=>p});var O=g(9371);function p(J){try{return J()}catch{}}const $=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()});var ee="__",ce=[ee,ee].join("DEV");function Y(){try{return Boolean(__DEV__)}catch{return Object.defineProperty($,ce,{value:p(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),$[ce]}}const M=Y();function N(J){try{return J()}catch{}}var L=N(function(){return globalThis})||N(function(){return window})||N(function(){return self})||N(function(){return global})||N(function(){return N.constructor("return this")()}),P=!1;function j(){L&&!N(function(){return"production"})&&!N(function(){return process})&&(Object.defineProperty(L,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),P=!0)}j();function W(){P&&(delete L.process,P=!1)}var F=g(5494);function ie(){return typeof F.k=="function",W()}function I(){__DEV__?(0,O.V1)(typeof M=="boolean",M):(0,O.V1)(typeof M=="boolean",36)}ie(),I()},2307:(we,z,g)=>{"use strict";g.d(z,{MS:()=>$,d8:()=>ce,f2:()=>Y,sx:()=>ee,tY:()=>N});var O=g(7432),p=g(424);function $(L,P){var j=L.directives;return!j||!j.length?!0:N(j).every(function(W){var F=W.directive,ie=W.ifArgument,I=!1;return ie.value.kind==="Variable"?(I=P&&P[ie.value.name.value],__DEV__?(0,O.V1)(I!==void 0,"Invalid variable referenced in @".concat(F.name.value," directive.")):(0,O.V1)(I!==void 0,37)):I=ie.value.value,F.name.value==="skip"?!I:I})}function ee(L){var P=[];return(0,p.YR)(L,{Directive:function(j){P.push(j.name.value)}}),P}function ce(L,P){return ee(P).some(function(j){return L.indexOf(j)>-1})}function Y(L){return L&&ce(["client"],L)&&ce(["export"],L)}function M(L){var P=L.name.value;return P==="skip"||P==="include"}function N(L){var P=[];return L&&L.length&&L.forEach(function(j){if(!!M(j)){var W=j.arguments,F=j.name.value;__DEV__?(0,O.V1)(W&&W.length===1,"Incorrect number of arguments for the @".concat(F," directive.")):(0,O.V1)(W&&W.length===1,38);var ie=W[0];__DEV__?(0,O.V1)(ie.name&&ie.name.value==="if","Invalid argument for the @".concat(F," directive.")):(0,O.V1)(ie.name&&ie.name.value==="if",39);var I=ie.value;__DEV__?(0,O.V1)(I&&(I.kind==="Variable"||I.kind==="BooleanValue"),"Argument for the @".concat(F," directive must be a variable or a boolean value.")):(0,O.V1)(I&&(I.kind==="Variable"||I.kind==="BooleanValue"),40),P.push({directive:j,ifArgument:ie})}}),P}},2904:(we,z,g)=>{"use strict";g.d(z,{HQ:()=>ce,JG:()=>ee,ct:()=>$});var O=g(5608),p=g(7432);function $(Y,M){var N=M,L=[];Y.definitions.forEach(function(j){if(j.kind==="OperationDefinition")throw __DEV__?new p.zU("Found a ".concat(j.operation," operation").concat(j.name?" named '".concat(j.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new p.zU(41);j.kind==="FragmentDefinition"&&L.push(j)}),typeof N>"u"&&(__DEV__?(0,p.V1)(L.length===1,"Found ".concat(L.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,p.V1)(L.length===1,42),N=L[0].name.value);var P=(0,O.Cl)((0,O.Cl)({},Y),{definitions:(0,O.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:N}}]}}],Y.definitions,!0)});return P}function ee(Y){Y===void 0&&(Y=[]);var M={};return Y.forEach(function(N){M[N.name.value]=N}),M}function ce(Y,M){switch(Y.kind){case"InlineFragment":return Y;case"FragmentSpread":{var N=M&&M[Y.name.value];return __DEV__?(0,p.V1)(N,"No fragment named ".concat(Y.name.value,".")):(0,p.V1)(N,43),N}default:return null}}},3777:(we,z,g)=>{"use strict";g.d(z,{AT:()=>M,E4:()=>N,Vn:()=>L,Vu:()=>ee,n4:()=>ce,sw:()=>$,wY:()=>P,zK:()=>Y});var O=g(7432),p=g(8907);function $(j){__DEV__?(0,O.V1)(j&&j.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,O.V1)(j&&j.kind==="Document",44);var W=j.definitions.filter(function(F){return F.kind!=="FragmentDefinition"}).map(function(F){if(F.kind!=="OperationDefinition")throw __DEV__?new O.zU('Schema type definitions not allowed in queries. Found: "'.concat(F.kind,'"')):new O.zU(45);return F});return __DEV__?(0,O.V1)(W.length<=1,"Ambiguous GraphQL document: contains ".concat(W.length," operations")):(0,O.V1)(W.length<=1,46),j}function ee(j){return $(j),j.definitions.filter(function(W){return W.kind==="OperationDefinition"})[0]}function ce(j){return j.definitions.filter(function(W){return W.kind==="OperationDefinition"&&W.name}).map(function(W){return W.name.value})[0]||null}function Y(j){return j.definitions.filter(function(W){return W.kind==="FragmentDefinition"})}function M(j){var W=ee(j);return __DEV__?(0,O.V1)(W&&W.operation==="query","Must contain a query definition."):(0,O.V1)(W&&W.operation==="query",47),W}function N(j){__DEV__?(0,O.V1)(j.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,O.V1)(j.kind==="Document",48),__DEV__?(0,O.V1)(j.definitions.length<=1,"Fragment must have exactly one definition."):(0,O.V1)(j.definitions.length<=1,49);var W=j.definitions[0];return __DEV__?(0,O.V1)(W.kind==="FragmentDefinition","Must be a fragment definition."):(0,O.V1)(W.kind==="FragmentDefinition",50),W}function L(j){$(j);for(var W,F=0,ie=j.definitions;F<ie.length;F++){var I=ie[F];if(I.kind==="OperationDefinition"){var J=I.operation;if(J==="query"||J==="mutation"||J==="subscription")return I}I.kind==="FragmentDefinition"&&!W&&(W=I)}if(W)return W;throw __DEV__?new O.zU("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new O.zU(51)}function P(j){var W=Object.create(null),F=j&&j.variableDefinitions;return F&&F.length&&F.forEach(function(ie){ie.defaultValue&&(0,p.J)(W,ie.variable.name,ie.defaultValue)}),W}},8907:(we,z,g)=>{"use strict";g.d(z,{A_:()=>ce,D$:()=>ke,Ii:()=>te,J:()=>J,Kc:()=>Y,MB:()=>Be,WU:()=>ee,dt:()=>ge,kd:()=>Le,o5:()=>U,ue:()=>ze});var O=g(7432),p=g(1777),$=g(2904);function ee(Ee){return{__ref:String(Ee)}}function ce(Ee){return Boolean(Ee&&typeof Ee=="object"&&typeof Ee.__ref=="string")}function Y(Ee){return(0,p.U)(Ee)&&Ee.kind==="Document"&&Array.isArray(Ee.definitions)}function M(Ee){return Ee.kind==="StringValue"}function N(Ee){return Ee.kind==="BooleanValue"}function L(Ee){return Ee.kind==="IntValue"}function P(Ee){return Ee.kind==="FloatValue"}function j(Ee){return Ee.kind==="Variable"}function W(Ee){return Ee.kind==="ObjectValue"}function F(Ee){return Ee.kind==="ListValue"}function ie(Ee){return Ee.kind==="EnumValue"}function I(Ee){return Ee.kind==="NullValue"}function J(Ee,B,R,D){if(L(R)||P(R))Ee[B.value]=Number(R.value);else if(N(R)||M(R))Ee[B.value]=R.value;else if(W(R)){var x={};R.fields.map(function(ue){return J(x,ue.name,ue.value,D)}),Ee[B.value]=x}else if(j(R)){var X=(D||{})[R.name.value];Ee[B.value]=X}else if(F(R))Ee[B.value]=R.values.map(function(ue){var he={};return J(he,B,ue,D),he[B.value]});else if(ie(R))Ee[B.value]=R.value;else if(I(R))Ee[B.value]=null;else throw __DEV__?new O.zU('The inline argument "'.concat(B.value,'" of kind "').concat(R.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new O.zU(52)}function te(Ee,B){var R=null;Ee.directives&&(R={},Ee.directives.forEach(function(x){R[x.name.value]={},x.arguments&&x.arguments.forEach(function(X){var ue=X.name,he=X.value;return J(R[x.name.value],ue,he,B)})}));var D=null;return Ee.arguments&&Ee.arguments.length&&(D={},Ee.arguments.forEach(function(x){var X=x.name,ue=x.value;return J(D,X,ue,B)})),U(Ee.name.value,D,R)}var oe=["connection","include","skip","client","rest","export"],U=Object.assign(function(Ee,B,R){if(B&&R&&R.connection&&R.connection.key)if(R.connection.filter&&R.connection.filter.length>0){var D=R.connection.filter?R.connection.filter:[];D.sort();var x={};return D.forEach(function(he){x[he]=B[he]}),"".concat(R.connection.key,"(").concat(m(x),")")}else return R.connection.key;var X=Ee;if(B){var ue=m(B);X+="(".concat(ue,")")}return R&&Object.keys(R).forEach(function(he){oe.indexOf(he)===-1&&(R[he]&&Object.keys(R[he]).length?X+="@".concat(he,"(").concat(m(R[he]),")"):X+="@".concat(he))}),X},{setStringify:function(Ee){var B=m;return m=Ee,B}}),m=function(B){return JSON.stringify(B,Ae)};function Ae(Ee,B){return(0,p.U)(B)&&!Array.isArray(B)&&(B=Object.keys(B).sort().reduce(function(R,D){return R[D]=B[D],R},{})),B}function Be(Ee,B){if(Ee.arguments&&Ee.arguments.length){var R={};return Ee.arguments.forEach(function(D){var x=D.name,X=D.value;return J(R,x,X,B)}),R}return null}function ze(Ee){return Ee.alias?Ee.alias.value:Ee.name.value}function ke(Ee,B,R){if(typeof Ee.__typename=="string")return Ee.__typename;for(var D=0,x=B.selections;D<x.length;D++){var X=x[D];if(ge(X)){if(X.name.value==="__typename")return Ee[ze(X)]}else{var ue=ke(Ee,(0,$.HQ)(X,R).selectionSet,R);if(typeof ue=="string")return ue}}}function ge(Ee){return Ee.kind==="Field"}function Le(Ee){return Ee.kind==="InlineFragment"}},5388:(we,z,g)=>{"use strict";g.d(z,{XY:()=>F,zc:()=>Be,it:()=>U,er:()=>ze,hX:()=>I,iz:()=>W,TC:()=>m});var O=g(5608),p=g(7432),$=g(424),ee=g(3777);function ce(ke,ge,Le){var Ee=0;return ke.forEach(function(B,R){ge.call(this,B,R,ke)&&(ke[Ee++]=B)},Le),ke.length=Ee,ke}var Y=g(8907),M=g(2904),N={kind:"Field",name:{kind:"Name",value:"__typename"}};function L(ke,ge){return ke.selectionSet.selections.every(function(Le){return Le.kind==="FragmentSpread"&&L(ge[Le.name.value],ge)})}function P(ke){return L((0,ee.Vu)(ke)||(0,ee.E4)(ke),(0,M.JG)((0,ee.zK)(ke)))?null:ke}function j(ke){return function(Le){return ke.some(function(Ee){return Ee.name&&Ee.name===Le.name.value||Ee.test&&Ee.test(Le)})}}function W(ke,ge){var Le=Object.create(null),Ee=[],B=Object.create(null),R=[],D=P((0,$.YR)(ge,{Variable:{enter:function(x,X,ue){ue.kind!=="VariableDefinition"&&(Le[x.name.value]=!0)}},Field:{enter:function(x){if(ke&&x.directives){var X=ke.some(function(ue){return ue.remove});if(X&&x.directives&&x.directives.some(j(ke)))return x.arguments&&x.arguments.forEach(function(ue){ue.value.kind==="Variable"&&Ee.push({name:ue.value.name.value})}),x.selectionSet&&Ae(x.selectionSet).forEach(function(ue){R.push({name:ue.name.value})}),null}}},FragmentSpread:{enter:function(x){B[x.name.value]=!0}},Directive:{enter:function(x){if(j(ke)(x))return null}}}));return D&&ce(Ee,function(x){return!!x.name&&!Le[x.name]}).length&&(D=U(Ee,D)),D&&ce(R,function(x){return!!x.name&&!B[x.name]}).length&&(D=m(R,D)),D}var F=Object.assign(function(ke){return(0,$.YR)(ke,{SelectionSet:{enter:function(ge,Le,Ee){if(!(Ee&&Ee.kind==="OperationDefinition")){var B=ge.selections;if(!!B){var R=B.some(function(x){return(0,Y.dt)(x)&&(x.name.value==="__typename"||x.name.value.lastIndexOf("__",0)===0)});if(!R){var D=Ee;if(!((0,Y.dt)(D)&&D.directives&&D.directives.some(function(x){return x.name.value==="export"})))return(0,O.Cl)((0,O.Cl)({},ge),{selections:(0,O.fX)((0,O.fX)([],B,!0),[N],!1)})}}}}}})},{added:function(ke){return ke===N}}),ie={test:function(ke){var ge=ke.name.value==="connection";return ge&&(!ke.arguments||!ke.arguments.some(function(Le){return Le.name.value==="key"}))&&__DEV__&&p.V1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),ge}};function I(ke){return W([ie],(0,ee.sw)(ke))}function J(ke,ge,Le){return Le===void 0&&(Le=!0),!!ge&&ge.selections&&ge.selections.some(function(Ee){return te(ke,Ee,Le)})}function te(ke,ge,Le){return Le===void 0&&(Le=!0),isField(ge)?ge.directives?ge.directives.some(j(ke))||Le&&J(ke,ge.selectionSet,Le):!1:!0}function oe(ke){return function(Le){return ke.some(function(Ee){return Le.value&&Le.value.kind==="Variable"&&Le.value.name&&(Ee.name===Le.value.name.value||Ee.test&&Ee.test(Le))})}}function U(ke,ge){var Le=oe(ke);return P((0,$.YR)(ge,{OperationDefinition:{enter:function(Ee){return(0,O.Cl)((0,O.Cl)({},Ee),{variableDefinitions:Ee.variableDefinitions?Ee.variableDefinitions.filter(function(B){return!ke.some(function(R){return R.name===B.variable.name.value})}):[]})}},Field:{enter:function(Ee){var B=ke.some(function(D){return D.remove});if(B){var R=0;if(Ee.arguments&&Ee.arguments.forEach(function(D){Le(D)&&(R+=1)}),R===1)return null}}},Argument:{enter:function(Ee){if(Le(Ee))return null}}}))}function m(ke,ge){function Le(Ee){if(ke.some(function(B){return B.name===Ee.name.value}))return null}return P((0,$.YR)(ge,{FragmentSpread:{enter:Le},FragmentDefinition:{enter:Le}}))}function Ae(ke){var ge=[];return ke.selections.forEach(function(Le){((0,Y.dt)(Le)||(0,Y.kd)(Le))&&Le.selectionSet?Ae(Le.selectionSet).forEach(function(Ee){return ge.push(Ee)}):Le.kind==="FragmentSpread"&&ge.push(Le)}),ge}function Be(ke){var ge=(0,ee.Vn)(ke),Le=ge.operation;if(Le==="query")return ke;var Ee=(0,$.YR)(ke,{OperationDefinition:{enter:function(B){return(0,O.Cl)((0,O.Cl)({},B),{operation:"query"})}}});return Ee}function ze(ke){(0,ee.sw)(ke);var ge=W([{test:function(Le){return Le.name.value==="client"},remove:!0}],ke);return ge&&(ge=(0,$.YR)(ge,{FragmentDefinition:{enter:function(Le){if(Le.selectionSet){var Ee=Le.selectionSet.selections.every(function(B){return(0,Y.dt)(B)&&B.name.value==="__typename"});if(Ee)return null}}}})),ge}},2182:(we,z,g)=>{"use strict";g.r(z),g.d(z,{Concast:()=>m.E,DEV:()=>O.IJ,DeepMerger:()=>N.ZI,Observable:()=>I.c,addTypenameToDocument:()=>Y.XY,argumentsObjectFromField:()=>ce.MB,asyncMap:()=>U.x,buildQueryFromSelectionSet:()=>Y.zc,canUseDOM:()=>ge.Sw,canUseLayoutEffect:()=>ge.JR,canUseSymbol:()=>ge.ol,canUseWeakMap:()=>ge.et,canUseWeakSet:()=>ge.En,checkDocument:()=>ee.sw,cloneDeep:()=>J.m,compact:()=>Le.o,concatPagination:()=>L,createFragmentMap:()=>$.JG,fixObservableSubclass:()=>Ae.r,getDefaultValues:()=>ee.wY,getDirectiveNames:()=>p.sx,getFragmentDefinition:()=>ee.E4,getFragmentDefinitions:()=>ee.zK,getFragmentFromSelection:()=>$.HQ,getFragmentQueryDocument:()=>$.ct,getInclusionDirectives:()=>p.tY,getMainDefinition:()=>ee.Vn,getOperationDefinition:()=>ee.Vu,getOperationName:()=>ee.n4,getQueryDefinition:()=>ee.AT,getStoreKeyName:()=>ce.o5,getTypenameFromResult:()=>ce.D$,graphQLResultHasError:()=>ke.t,hasClientExports:()=>p.f2,hasDirectives:()=>p.d8,isDocumentNode:()=>ce.Kc,isField:()=>ce.dt,isInlineFragment:()=>ce.kd,isNonEmptyArray:()=>Be.E,isNonNullObject:()=>ze.U,isReference:()=>ce.A_,iterateObserversSafely:()=>oe.w,makeReference:()=>ce.WU,makeUniqueId:()=>Ee.v,maybe:()=>O.no,maybeDeepFreeze:()=>te.G,mergeDeep:()=>N.D9,mergeDeepArray:()=>N.IM,mergeOptions:()=>R.l,offsetLimitPagination:()=>P,relayStylePagination:()=>j,removeArgumentsFromDocument:()=>Y.it,removeClientSetsFromDocument:()=>Y.er,removeConnectionDirectiveFromDocument:()=>Y.hX,removeDirectivesFromDocument:()=>Y.iz,removeFragmentSpreadFromDocument:()=>Y.TC,resultKeyNameFromField:()=>ce.ue,shouldInclude:()=>p.MS,storeKeyNameFromField:()=>ce.Ii,stringifyForDisplay:()=>B.p,valueToObjectRepresentation:()=>ce.J});var O=g(7432),p=g(2307),$=g(2904),ee=g(3777),ce=g(8907),Y=g(5388),M=g(5608),N=g(671);function L(D){return D===void 0&&(D=!1),{keyArgs:D,merge:function(x,X){return x?(0,M.fX)((0,M.fX)([],x,!0),X,!0):X}}}function P(D){return D===void 0&&(D=!1),{keyArgs:D,merge:function(x,X,ue){var he=ue.args,Ye=x?x.slice(0):[];if(X)if(he)for(var ve=he.offset,de=ve===void 0?0:ve,ae=0;ae<X.length;++ae)Ye[de+ae]=X[ae];else Ye.push.apply(Ye,X);return Ye}}}function j(D){return D===void 0&&(D=!1),{keyArgs:D,read:function(x,X){var ue=X.canRead,he=X.readField;if(!x)return x;var Ye=[],ve="",de="";x.edges.forEach(function(be){ue(he("node",be))&&(Ye.push(be),be.cursor&&(ve=ve||be.cursor||"",de=be.cursor||de))});var ae=x.pageInfo||{},q=ae.startCursor,Te=ae.endCursor;return(0,M.Cl)((0,M.Cl)({},W(x)),{edges:Ye,pageInfo:(0,M.Cl)((0,M.Cl)({},x.pageInfo),{startCursor:q||ve,endCursor:Te||de})})},merge:function(x,X,ue){var he=ue.args,Ye=ue.isReference,ve=ue.readField;if(x||(x=ie()),!X)return x;var de=X.edges?X.edges.map(function(dt){return Ye(dt=(0,M.Cl)({},dt))&&(dt.cursor=ve("cursor",dt)),dt}):[];if(X.pageInfo){var ae=X.pageInfo,q=ae.startCursor,Te=ae.endCursor,be=de[0],et=de[de.length-1];be&&q&&(be.cursor=q),et&&Te&&(et.cursor=Te);var st=be&&be.cursor;st&&!q&&(X=(0,N.D9)(X,{pageInfo:{startCursor:st}}));var lt=et&&et.cursor;lt&&!Te&&(X=(0,N.D9)(X,{pageInfo:{endCursor:lt}}))}var at=x.edges,ye=[];if(he&&he.after){var Ie=at.findIndex(function(dt){return dt.cursor===he.after});Ie>=0&&(at=at.slice(0,Ie+1))}else if(he&&he.before){var Ie=at.findIndex(function(Xe){return Xe.cursor===he.before});ye=Ie<0?at:at.slice(Ie),at=[]}else X.edges&&(at=[]);var C=(0,M.fX)((0,M.fX)((0,M.fX)([],at,!0),de,!0),ye,!0),V=(0,M.Cl)((0,M.Cl)({},X.pageInfo),x.pageInfo);if(X.pageInfo){var k=X.pageInfo,re=k.hasPreviousPage,_e=k.hasNextPage,q=k.startCursor,Te=k.endCursor,He=(0,M.Tt)(k,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(V,He),at.length||(re!==void 0&&(V.hasPreviousPage=re),q!==void 0&&(V.startCursor=q)),ye.length||(_e!==void 0&&(V.hasNextPage=_e),Te!==void 0&&(V.endCursor=Te))}return(0,M.Cl)((0,M.Cl)((0,M.Cl)({},W(x)),W(X)),{edges:C,pageInfo:V})}}}var W=function(D){return(0,M.Tt)(D,F)},F=["edges","pageInfo"];function ie(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}var I=g(6054),J=g(906),te=g(7236),oe=g(7613),U=g(5762),m=g(5637),Ae=g(5892),Be=g(3767),ze=g(1777),ke=g(2710),ge=g(1360),Le=g(492),Ee=g(1461),B=g(6563),R=g(1507)},5637:(we,z,g)=>{"use strict";g.d(z,{E:()=>Y});var O=g(5608),p=g(6054),$=g(7613),ee=g(5892);function ce(M){return M&&typeof M.then=="function"}var Y=function(M){(0,O.C6)(N,M);function N(L){var P=M.call(this,function(j){return P.addObserver(j),function(){return P.removeObserver(j)}})||this;return P.observers=new Set,P.addCount=0,P.promise=new Promise(function(j,W){P.resolve=j,P.reject=W}),P.handlers={next:function(j){P.sub!==null&&(P.latest=["next",j],(0,$.w)(P.observers,"next",j))},error:function(j){var W=P.sub;W!==null&&(W&&setTimeout(function(){return W.unsubscribe()}),P.sub=null,P.latest=["error",j],P.reject(j),(0,$.w)(P.observers,"error",j))},complete:function(){var j=P.sub;if(j!==null){var W=P.sources.shift();W?ce(W)?W.then(function(F){return P.sub=F.subscribe(P.handlers)}):P.sub=W.subscribe(P.handlers):(j&&setTimeout(function(){return j.unsubscribe()}),P.sub=null,P.latest&&P.latest[0]==="next"?P.resolve(P.latest[1]):P.resolve(),(0,$.w)(P.observers,"complete"))}}},P.cancel=function(j){P.reject(j),P.sources=[],P.handlers.complete()},P.promise.catch(function(j){}),typeof L=="function"&&(L=[new p.c(L)]),ce(L)?L.then(function(j){return P.start(j)},P.handlers.error):P.start(L),P}return N.prototype.start=function(L){this.sub===void 0&&(this.sources=Array.from(L),this.handlers.complete())},N.prototype.deliverLastMessage=function(L){if(this.latest){var P=this.latest[0],j=L[P];j&&j.call(L,this.latest[1]),this.sub===null&&P==="next"&&L.complete&&L.complete()}},N.prototype.addObserver=function(L){this.observers.has(L)||(this.deliverLastMessage(L),this.observers.add(L),++this.addCount)},N.prototype.removeObserver=function(L,P){this.observers.delete(L)&&--this.addCount<1&&!P&&this.handlers.complete()},N.prototype.cleanup=function(L){var P=this,j=!1,W=function(){j||(j=!0,P.observers.delete(F),L())},F={next:W,error:W,complete:W},ie=this.addCount;this.addObserver(F),this.addCount=ie},N}(p.c);(0,ee.r)(Y)},5762:(we,z,g)=>{"use strict";g.d(z,{x:()=>p});var O=g(6054);function p($,ee,ce){return new O.c(function(Y){var M=Y.next,N=Y.error,L=Y.complete,P=0,j=!1,W={then:function(J){return new Promise(function(te){return te(J())})}};function F(J,te){return J?function(oe){++P;var U=function(){return J(oe)};W=W.then(U,U).then(function(m){--P,M&&M.call(Y,m),j&&ie.complete()},function(m){throw--P,m}).catch(function(m){N&&N.call(Y,m)})}:function(oe){return te&&te.call(Y,oe)}}var ie={next:F(ee,M),error:F(ce,N),complete:function(){j=!0,P||L&&L.call(Y)}},I=$.subscribe(ie);return function(){return I.unsubscribe()}})}},7613:(we,z,g)=>{"use strict";g.d(z,{w:()=>O});function O(p,$,ee){var ce=[];p.forEach(function(Y){return Y[$]&&ce.push(Y)}),ce.forEach(function(Y){return Y[$](ee)})}},5892:(we,z,g)=>{"use strict";g.d(z,{r:()=>$});var O=g(6054),p=g(1360);function $(ee){function ce(Y){Object.defineProperty(ee,Y,{value:O.c})}return p.ol&&Symbol.species&&ce(Symbol.species),ce("@@species"),ee}},3598:(we,z,g)=>{"use strict";g.r(z),g.d(z,{Bwell:()=>xbe});var O={};g.r(O),g.d(O,{define:()=>LT,id:()=>Fn,version:()=>bn});var p={};g.r(p),g.d(p,{definition:()=>Tl,id:()=>ia,version:()=>na});var $={};g.r($),g.d($,{definition:()=>Al,id:()=>m_,version:()=>ml});var ee={};g.r(ee),g.d(ee,{definition:()=>wj,id:()=>zd,version:()=>gf});var ce={};g.r(ce),g.d(ce,{definition:()=>Uj,id:()=>ZM,version:()=>ZS});var Y={};g.r(Y),g.d(Y,{definition:()=>mK,id:()=>OE,version:()=>up});var M={};g.r(M),g.d(M,{definition:()=>AK,id:()=>cp,version:()=>bf});var N={};g.r(N),g.d(N,{definition:()=>RK,id:()=>a0,version:()=>bE});var L={};g.r(L),g.d(L,{definition:()=>p7,id:()=>_V,version:()=>tg});var P={};g.r(P),g.d(P,{definition:()=>v7,id:()=>dV,version:()=>ig});var j={};g.r(j),g.d(j,{definition:()=>d7,id:()=>eg,version:()=>Cp});var W={};g.r(W),g.d(W,{define:()=>S7,id:()=>pV,version:()=>ag});var F={};g.r(F),g.d(F,{define:()=>E7,id:()=>hV,version:()=>og});var ie={};g.r(ie),g.d(ie,{definition:()=>pOe,id:()=>vB,version:()=>ST});var I=g(6152),J=g(3059),te=g(757);function oe(e){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(e)}function U(e,t){if(oe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m(e){var t=U(e,"string");return oe(t)=="symbol"?t:t+""}function Ae(e,t,r){return t=m(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Be(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ke(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ge=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ee={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function B(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function R(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(X(e))return"date";if(x(e))return"error";var r=D(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function D(e){return typeof e.constructor=="function"?e.constructor.name:null}function x(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function X(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ue(e){var t=typeof e;return t}function he(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ke(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ke(1));return r(he)(e,t)}if(typeof e!="function")throw new Error(ke(2));var i=e,a=t,u=[],c=u,v=!1;function _(){c===u&&(c=u.slice())}function S(){if(v)throw new Error(ke(3));return a}function A(me){if(typeof me!="function")throw new Error(ke(4));if(v)throw new Error(ke(5));var Ge=!0;return _(),c.push(me),function(){if(!!Ge){if(v)throw new Error(ke(6));Ge=!1,_();var Re=c.indexOf(me);c.splice(Re,1),u=null}}}function Q(me){if(!B(me))throw new Error(ke(7));if(typeof me.type>"u")throw new Error(ke(8));if(v)throw new Error(ke(9));try{v=!0,a=i(a,me)}finally{v=!1}for(var Ge=u=c,Me=0;Me<Ge.length;Me++){var Re=Ge[Me];Re()}return me}function le(me){if(typeof me!="function")throw new Error(ke(10));i=me,Q({type:Ee.REPLACE})}function pe(){var me,Ge=A;return me={subscribe:function(Re){if(typeof Re!="object"||Re===null)throw new Error(ke(11));function nt(){Re.next&&Re.next(S())}nt();var ht=Ge(nt);return{unsubscribe:ht}}},me[ge]=function(){return this},me}return Q({type:Ee.INIT}),n={dispatch:Q,subscribe:A,getState:S,replaceReducer:le},n[ge]=pe,n}var Ye=null;function ve(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function de(e,t,r,n){var i=Object.keys(t),a=r&&r.type===Ee.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!B(e))return"The "+a+' has unexpected type of "'+ue(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var u=Object.keys(e).filter(function(c){return!t.hasOwnProperty(c)&&!n[c]});if(u.forEach(function(c){n[c]=!0}),!(r&&r.type===Ee.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function ae(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ee.INIT});if(typeof n>"u")throw new Error(ke(12));if(typeof r(void 0,{type:Ee.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ke(13))})}function q(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),u,c;try{ae(r)}catch(v){c=v}return function(_,S){if(_===void 0&&(_={}),c)throw c;if(!1)var A;for(var Q=!1,le={},pe=0;pe<a.length;pe++){var me=a[pe],Ge=r[me],Me=_[me],Re=Ge(Me,S);if(typeof Re>"u"){var nt=S&&S.type;throw new Error(ke(14))}le[me]=Re,Q=Q||Re!==Me}return Q=Q||a.length!==Object.keys(_).length,Q?le:_}}function Te(e,t){return function(){return t(e.apply(this,arguments))}}function be(e,t){if(typeof e=="function")return Te(e,t);if(typeof e!="object"||e===null)throw new Error(ke(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=Te(i,t))}return r}function et(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function st(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ke(15))},u={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(v){return v(u)});return a=et.apply(void 0,c)(i.dispatch),ze(ze({},i),{},{dispatch:a})}}}function lt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!1)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function at(e){return!!e&&!!e[$t]}function ye(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===$r}(e)||Array.isArray(e)||!!e[sn]||!!(!((t=e.constructor)===null||t===void 0)&&t[sn])||dt(e)||Xe(e))}function Ie(e){return at(e)||lt(23,e),e[$t].t}function C(e,t,r){r===void 0&&(r=!1),V(e)===0?(r?Object.keys:it)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function V(e){var t=e[$t];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:dt(e)?2:Xe(e)?3:0}function k(e,t){return V(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function re(e,t){return V(e)===2?e.get(t):e[t]}function _e(e,t,r){var n=V(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function He(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function dt(e){return fn&&e instanceof Map}function Xe(e){return Fr&&e instanceof Set}function ut(e){return e.o||e.t}function At(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=jn(e);delete t[$t];for(var r=it(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Et(e,t){return t===void 0&&(t=!1),Jt(e)||at(e)||!ye(e)||(V(e)>1&&(e.set=e.add=e.clear=e.delete=Zt),Object.freeze(e),t&&C(e,function(r,n){return Et(n,!0)},!0)),e}function Zt(){lt(2)}function Jt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ft(e){var t=Jn[e];return t||lt(18,e),t}function er(e,t){Jn[e]||(Jn[e]=t)}function Ht(){return yn}function Mr(e,t){t&&(Ft("Patches"),e.u=[],e.s=[],e.v=t)}function _r(e){Ur(e),e.p.forEach(tn),e.p=null}function Ur(e){e===yn&&(yn=e.l)}function xr(e){return yn={p:[],l:yn,h:e,m:!0,_:0}}function tn(e){var t=e[$t];t.i===0||t.i===1?t.j():t.g=!0}function cr(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ft("ES5").S(t,e,n),n?(r[$t].P&&(_r(t),lt(4)),ye(e)&&(e=Fe(t,e),t.l||Yt(t,e)),t.u&&Ft("Patches").M(r[$t].t,e,t.u,t.s)):e=Fe(t,r,[]),_r(t),t.u&&t.v(t.u,t.s),e!==Bn?e:void 0}function Fe(e,t,r){if(Jt(t))return t;var n=t[$t];if(!n)return C(t,function(c,v){return De(e,n,t,c,v,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Yt(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=At(n.k):n.o,a=i,u=!1;n.i===3&&(a=new Set(i),i.clear(),u=!0),C(a,function(c,v){return De(e,n,i,c,v,r,u)}),Yt(e,i,!1),r&&e.u&&Ft("Patches").N(n,r,e.u,e.s)}return n.o}function De(e,t,r,n,i,a,u){if(at(i)){var c=Fe(e,i,a&&t&&t.i!==3&&!k(t.R,n)?a.concat(n):void 0);if(_e(r,n,c),!at(c))return;e.m=!1}else u&&r.add(i);if(ye(i)&&!Jt(i)){if(!e.h.D&&e._<1)return;Fe(e,i),t&&t.A.l||Yt(e,i)}}function Yt(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Et(t,r)}function ar(e,t){var r=e[$t];return(r?ut(r):e)[t]}function Sr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ut(e){e.P||(e.P=!0,e.l&&Ut(e.l))}function ln(e){e.o||(e.o=At(e.t))}function Nr(e,t,r){var n=dt(t)?Ft("MapSet").F(t,r):Xe(t)?Ft("MapSet").T(t,r):e.O?function(i,a){var u=Array.isArray(i),c={i:u?1:0,A:a?a.A:Ht(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},v=c,_=Zn;u&&(v=[c],_=pr);var S=Proxy.revocable(v,_),A=S.revoke,Q=S.proxy;return c.k=Q,c.j=A,Q}(t,r):Ft("ES5").J(t,r);return(r?r.A:Ht()).p.push(n),n}function jr(e){return at(e)||lt(22,e),function t(r){if(!ye(r))return r;var n,i=r[$t],a=V(r);if(i){if(!i.P&&(i.i<4||!Ft("ES5").K(i)))return i.t;i.I=!0,n=rn(r,a),i.I=!1}else n=rn(r,a);return C(n,function(u,c){i&&re(i.t,u)===c||_e(n,u,t(c))}),a===3?new Set(n):n}(e)}function rn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return At(e)}function xn(){function e(u,c){var v=a[u];return v?v.enumerable=c:a[u]=v={configurable:!0,enumerable:c,get:function(){var _=this[$t];return Zn.get(_,u)},set:function(_){var S=this[$t];Zn.set(S,u,_)}},v}function t(u){for(var c=u.length-1;c>=0;c--){var v=u[c][$t];if(!v.P)switch(v.i){case 5:n(v)&&Ut(v);break;case 4:r(v)&&Ut(v)}}}function r(u){for(var c=u.t,v=u.k,_=it(v),S=_.length-1;S>=0;S--){var A=_[S];if(A!==$t){var Q=c[A];if(Q===void 0&&!k(c,A))return!0;var le=v[A],pe=le&&le[$t];if(pe?pe.t!==Q:!He(le,Q))return!0}}var me=!!c[$t];return _.length!==it(c).length+(me?0:1)}function n(u){var c=u.k;if(c.length!==u.t.length)return!0;var v=Object.getOwnPropertyDescriptor(c,c.length-1);if(v&&!v.get)return!0;for(var _=0;_<c.length;_++)if(!c.hasOwnProperty(_))return!0;return!1}function i(u){u.g&&lt(3,JSON.stringify(ut(u)))}var a={};er("ES5",{J:function(u,c){var v=Array.isArray(u),_=function(A,Q){if(A){for(var le=Array(Q.length),pe=0;pe<Q.length;pe++)Object.defineProperty(le,""+pe,e(pe,!0));return le}var me=jn(Q);delete me[$t];for(var Ge=it(me),Me=0;Me<Ge.length;Me++){var Re=Ge[Me];me[Re]=e(Re,A||!!me[Re].enumerable)}return Object.create(Object.getPrototypeOf(Q),me)}(v,u),S={i:v?5:4,A:c?c.A:Ht(),P:!1,I:!1,R:{},l:c,t:u,k:_,o:null,g:!1,C:!1};return Object.defineProperty(_,$t,{value:S,writable:!0}),_},S:function(u,c,v){v?at(c)&&c[$t].A===u&&t(u.p):(u.u&&function _(S){if(S&&typeof S=="object"){var A=S[$t];if(A){var Q=A.t,le=A.k,pe=A.R,me=A.i;if(me===4)C(le,function(ht){ht!==$t&&(Q[ht]!==void 0||k(Q,ht)?pe[ht]||_(le[ht]):(pe[ht]=!0,Ut(A)))}),C(Q,function(ht){le[ht]!==void 0||k(le,ht)||(pe[ht]=!1,Ut(A))});else if(me===5){if(n(A)&&(Ut(A),pe.length=!0),le.length<Q.length)for(var Ge=le.length;Ge<Q.length;Ge++)pe[Ge]=!1;else for(var Me=Q.length;Me<le.length;Me++)pe[Me]=!0;for(var Re=Math.min(le.length,Q.length),nt=0;nt<Re;nt++)le.hasOwnProperty(nt)||(pe[nt]=!0),pe[nt]===void 0&&_(le[nt])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):n(u)}})}function Gn(){function e(n){if(!ye(n))return n;if(Array.isArray(n))return n.map(e);if(dt(n))return new Map(Array.from(n.entries()).map(function(u){return[u[0],e(u[1])]}));if(Xe(n))return new Set(Array.from(n).map(e));var i=Object.create(Object.getPrototypeOf(n));for(var a in n)i[a]=e(n[a]);return k(n,sn)&&(i[sn]=n[sn]),i}function t(n){return at(n)?e(n):n}var r="add";er("Patches",{$:function(n,i){return i.forEach(function(a){for(var u=a.path,c=a.op,v=n,_=0;_<u.length-1;_++){var S=V(v),A=u[_];typeof A!="string"&&typeof A!="number"&&(A=""+A),S!==0&&S!==1||A!=="__proto__"&&A!=="constructor"||lt(24),typeof v=="function"&&A==="prototype"&&lt(24),typeof(v=re(v,A))!="object"&&lt(15,u.join("/"))}var Q=V(v),le=e(a.value),pe=u[u.length-1];switch(c){case"replace":switch(Q){case 2:return v.set(pe,le);case 3:lt(16);default:return v[pe]=le}case r:switch(Q){case 1:return pe==="-"?v.push(le):v.splice(pe,0,le);case 2:return v.set(pe,le);case 3:return v.add(le);default:return v[pe]=le}case"remove":switch(Q){case 1:return v.splice(pe,1);case 2:return v.delete(pe);case 3:return v.delete(a.value);default:return delete v[pe]}default:lt(17,c)}}),n},N:function(n,i,a,u){switch(n.i){case 0:case 4:case 2:return function(c,v,_,S){var A=c.t,Q=c.o;C(c.R,function(le,pe){var me=re(A,le),Ge=re(Q,le),Me=pe?k(A,le)?"replace":r:"remove";if(me!==Ge||Me!=="replace"){var Re=v.concat(le);_.push(Me==="remove"?{op:Me,path:Re}:{op:Me,path:Re,value:Ge}),S.push(Me===r?{op:"remove",path:Re}:Me==="remove"?{op:r,path:Re,value:t(me)}:{op:"replace",path:Re,value:t(me)})}})}(n,i,a,u);case 5:case 1:return function(c,v,_,S){var A=c.t,Q=c.R,le=c.o;if(le.length<A.length){var pe=[le,A];A=pe[0],le=pe[1];var me=[S,_];_=me[0],S=me[1]}for(var Ge=0;Ge<A.length;Ge++)if(Q[Ge]&&le[Ge]!==A[Ge]){var Me=v.concat([Ge]);_.push({op:"replace",path:Me,value:t(le[Ge])}),S.push({op:"replace",path:Me,value:t(A[Ge])})}for(var Re=A.length;Re<le.length;Re++){var nt=v.concat([Re]);_.push({op:r,path:nt,value:t(le[Re])})}A.length<le.length&&S.push({op:"replace",path:v.concat(["length"]),value:A.length})}(n,i,a,u);case 3:return function(c,v,_,S){var A=c.t,Q=c.o,le=0;A.forEach(function(pe){if(!Q.has(pe)){var me=v.concat([le]);_.push({op:"remove",path:me,value:pe}),S.unshift({op:r,path:me,value:pe})}le++}),le=0,Q.forEach(function(pe){if(!A.has(pe)){var me=v.concat([le]);_.push({op:r,path:me,value:pe}),S.unshift({op:"remove",path:me,value:pe})}le++})}(n,i,a,u)}},M:function(n,i,a,u){a.push({op:"replace",path:[],value:i===Bn?void 0:i}),u.push({op:"replace",path:[],value:n})}})}function Zr(){function e(c,v){function _(){this.constructor=c}i(c,v),c.prototype=(_.prototype=v.prototype,new _)}function t(c){c.o||(c.R=new Map,c.o=new Map(c.t))}function r(c){c.o||(c.o=new Set,c.t.forEach(function(v){if(ye(v)){var _=Nr(c.A.h,v,c);c.p.set(v,_),c.o.add(_)}else c.o.add(v)}))}function n(c){c.g&&lt(3,JSON.stringify(ut(c)))}var i=function(c,v){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,S){_.__proto__=S}||function(_,S){for(var A in S)S.hasOwnProperty(A)&&(_[A]=S[A])})(c,v)},a=function(){function c(_,S){return this[$t]={i:2,l:S,A:S?S.A:Ht(),P:!1,I:!1,o:void 0,R:void 0,t:_,k:this,C:!1,g:!1},this}e(c,Map);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ut(this[$t]).size}}),v.has=function(_){return ut(this[$t]).has(_)},v.set=function(_,S){var A=this[$t];return n(A),ut(A).has(_)&&ut(A).get(_)===S||(t(A),Ut(A),A.R.set(_,!0),A.o.set(_,S),A.R.set(_,!0)),this},v.delete=function(_){if(!this.has(_))return!1;var S=this[$t];return n(S),t(S),Ut(S),S.t.has(_)?S.R.set(_,!1):S.R.delete(_),S.o.delete(_),!0},v.clear=function(){var _=this[$t];n(_),ut(_).size&&(t(_),Ut(_),_.R=new Map,C(_.t,function(S){_.R.set(S,!1)}),_.o.clear())},v.forEach=function(_,S){var A=this;ut(this[$t]).forEach(function(Q,le){_.call(S,A.get(le),le,A)})},v.get=function(_){var S=this[$t];n(S);var A=ut(S).get(_);if(S.I||!ye(A)||A!==S.t.get(_))return A;var Q=Nr(S.A.h,A,S);return t(S),S.o.set(_,Q),Q},v.keys=function(){return ut(this[$t]).keys()},v.values=function(){var _,S=this,A=this.keys();return(_={})[kn]=function(){return S.values()},_.next=function(){var Q=A.next();return Q.done?Q:{done:!1,value:S.get(Q.value)}},_},v.entries=function(){var _,S=this,A=this.keys();return(_={})[kn]=function(){return S.entries()},_.next=function(){var Q=A.next();if(Q.done)return Q;var le=S.get(Q.value);return{done:!1,value:[Q.value,le]}},_},v[kn]=function(){return this.entries()},c}(),u=function(){function c(_,S){return this[$t]={i:3,l:S,A:S?S.A:Ht(),P:!1,I:!1,o:void 0,t:_,k:this,p:new Map,g:!1,C:!1},this}e(c,Set);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ut(this[$t]).size}}),v.has=function(_){var S=this[$t];return n(S),S.o?!!S.o.has(_)||!(!S.p.has(_)||!S.o.has(S.p.get(_))):S.t.has(_)},v.add=function(_){var S=this[$t];return n(S),this.has(_)||(r(S),Ut(S),S.o.add(_)),this},v.delete=function(_){if(!this.has(_))return!1;var S=this[$t];return n(S),r(S),Ut(S),S.o.delete(_)||!!S.p.has(_)&&S.o.delete(S.p.get(_))},v.clear=function(){var _=this[$t];n(_),ut(_).size&&(r(_),Ut(_),_.o.clear())},v.values=function(){var _=this[$t];return n(_),r(_),_.o.values()},v.entries=function(){var _=this[$t];return n(_),r(_),_.o.entries()},v.keys=function(){return this.values()},v[kn]=function(){return this.values()},v.forEach=function(_,S){for(var A=this.values(),Q=A.next();!Q.done;)_.call(S,Q.value,Q.value,this),Q=A.next()},c}();er("MapSet",{F:function(c,v){return new a(c,v)},T:function(c,v){return new u(c,v)}})}function Bt(){xn(),Zr(),Gn()}function Bi(e){return e}function Or(e){return e}var Nn,yn,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fn=typeof Map<"u",Fr=typeof Set<"u",En=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bn=Wn?Symbol.for("immer-nothing"):((Nn={})["immer-nothing"]=!0,Nn),sn=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",$t=Wn?Symbol.for("immer-state"):"__$immer_state",kn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",On={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},$r=""+Object.prototype.constructor,it=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,jn=Object.getOwnPropertyDescriptors||function(e){var t={};return it(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Jn={},Zn={get:function(e,t){if(t===$t)return e;var r=ut(e);if(!k(r,t))return function(i,a,u){var c,v=Sr(a,u);return v?"value"in v?v.value:(c=v.get)===null||c===void 0?void 0:c.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!ye(n)?n:n===ar(e.t,t)?(ln(e),e.o[t]=Nr(e.A.h,n,e)):n},has:function(e,t){return t in ut(e)},ownKeys:function(e){return Reflect.ownKeys(ut(e))},set:function(e,t,r){var n=Sr(ut(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=ar(ut(e),t),a=i?.[$t];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(He(r,i)&&(r!==void 0||k(e.t,t)))return!0;ln(e),Ut(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return ar(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ln(e),Ut(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ut(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){lt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){lt(12)}},pr={};C(Zn,function(e,t){pr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),pr.deleteProperty=function(e,t){return pr.set.call(this,e,t,void 0)},pr.set=function(e,t,r){return Zn.set.call(this,e[0],t,r,e[0])};var Si=function(){function e(r){var n=this;this.O=En,this.D=!0,this.produce=function(i,a,u){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var v=n;return function(me){var Ge=this;me===void 0&&(me=c);for(var Me=arguments.length,Re=Array(Me>1?Me-1:0),nt=1;nt<Me;nt++)Re[nt-1]=arguments[nt];return v.produce(me,function(ht){var Vt;return(Vt=a).call.apply(Vt,[Ge,ht].concat(Re))})}}var _;if(typeof a!="function"&&lt(6),u!==void 0&&typeof u!="function"&&lt(7),ye(i)){var S=xr(n),A=Nr(n,i,void 0),Q=!0;try{_=a(A),Q=!1}finally{Q?_r(S):Ur(S)}return typeof Promise<"u"&&_ instanceof Promise?_.then(function(me){return Mr(S,u),cr(me,S)},function(me){throw _r(S),me}):(Mr(S,u),cr(_,S))}if(!i||typeof i!="object"){if((_=a(i))===void 0&&(_=i),_===Bn&&(_=void 0),n.D&&Et(_,!0),u){var le=[],pe=[];Ft("Patches").M(i,_,le,pe),u(le,pe)}return _}lt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(_){for(var S=arguments.length,A=Array(S>1?S-1:0),Q=1;Q<S;Q++)A[Q-1]=arguments[Q];return n.produceWithPatches(_,function(le){return i.apply(void 0,[le].concat(A))})};var u,c,v=n.produce(i,a,function(_,S){u=_,c=S});return typeof Promise<"u"&&v instanceof Promise?v.then(function(_){return[_,u,c]}):[v,u,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ye(r)||lt(8),at(r)&&(r=jr(r));var n=xr(this),i=Nr(this,r,void 0);return i[$t].C=!0,Ur(n),i},t.finishDraft=function(r,n){var i=r&&r[$t],a=i.A;return Mr(a,n),cr(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!En&&lt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var u=Ft("Patches").$;return at(r)?u(r,n):this.produce(r,function(c){return u(c,n)})},e}(),gn=new Si,Zi=gn.produce,ki=gn.produceWithPatches.bind(gn),Pi=gn.setAutoFreeze.bind(gn),h=gn.setUseProxies.bind(gn),y=gn.applyPatches.bind(gn),H=gn.createDraft.bind(gn),se=gn.finishDraft.bind(gn);const Ne=Zi;function $e(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(u){return function(c){return typeof c=="function"?c(i,a,e):u(c)}}};return t}var rt=$e();rt.withExtraArgument=$e;const mt=rt;var ft=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vt=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},yt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Dt=Object.defineProperty,gt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,Br=function(e,t,r){return t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},or=function(e,t){for(var r in t||(t={}))Dr.call(t,r)&&Br(e,r,t[r]);if(Nt)for(var n=0,i=Nt(t);n<i.length;n++){var r=i[n];rr.call(t,r)&&Br(e,r,t[r])}return e},In=function(e,t){return gt(e,Pt(t))},ei=function(e,t,r){return new Promise(function(n,i){var a=function(v){try{c(r.next(v))}catch(_){i(_)}},u=function(v){try{c(r.throw(v))}catch(_){i(_)}},c=function(v){return v.done?n(v.value):Promise.resolve(v.value).then(a,u)};c((r=r.apply(e,t)).next())})},_n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=createSelector.apply(void 0,e),n=function(i){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return r.apply(void 0,yt([isDraft(i)?current(i):i],a))};return n},ao=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?et:et.apply(null,arguments)},Ci=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ti(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Tn(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
95
+ `):new O.zU(20)}},2917:(we,z,g)=>{"use strict";g.d(z,{S:()=>O});var O=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var p=new AbortController,$=p.signal;return{controller:p,signal:$}}},6745:(we,z,g)=>{"use strict";g.d(z,{O:()=>$});var O=g(3848),p=Object.prototype.hasOwnProperty;function $(ee){return function(ce){return ce.text().then(function(Y){if(ce.status>=300){var M=function(){try{return JSON.parse(Y)}catch{return Y}};(0,O.A)(ce,M(),"Response not successful: Received status code ".concat(ce.status))}try{return JSON.parse(Y)}catch(L){var N=L;throw N.name="ServerParseError",N.response=ce,N.statusCode=ce.status,N.bodyText=Y,N}}).then(function(Y){return!Array.isArray(Y)&&!p.call(Y,"data")&&!p.call(Y,"errors")&&(0,O.A)(ce,Y,"Server response was missing for query '".concat(Array.isArray(ee)?ee.map(function(M){return M.operationName}):ee.operationName,"'.")),Y})}}},4559:(we,z,g)=>{"use strict";g.d(z,{HY:()=>L,R4:()=>Y,Wz:()=>N,i1:()=>M});var O=g(5608),p=g(2704),$={includeQuery:!0,includeExtensions:!1},ee={accept:"*/*","content-type":"application/json"},ce={method:"POST"},Y={http:$,headers:ee,options:ce},M=function(j,W){return W(j)};function N(j,W){for(var F=[],ie=2;ie<arguments.length;ie++)F[ie-2]=arguments[ie];return F.unshift(W),L.apply(void 0,(0,O.fX)([j,M],F,!1))}function L(j,W){for(var F=[],ie=2;ie<arguments.length;ie++)F[ie-2]=arguments[ie];var I={},J={};F.forEach(function(Be){I=(0,O.Cl)((0,O.Cl)((0,O.Cl)({},I),Be.options),{headers:(0,O.Cl)((0,O.Cl)({},I.headers),P(Be.headers))}),Be.credentials&&(I.credentials=Be.credentials),J=(0,O.Cl)((0,O.Cl)({},J),Be.http)});var te=j.operationName,oe=j.extensions,U=j.variables,m=j.query,Ae={operationName:te,variables:U};return J.includeExtensions&&(Ae.extensions=oe),J.includeQuery&&(Ae.query=W(m,p.y)),{options:I,body:Ae}}function P(j){if(j){var W=Object.create(null);return Object.keys(Object(j)).forEach(function(F){W[F.toLowerCase()]=j[F]}),W}return j}},3068:(we,z,g)=>{"use strict";g.d(z,{z:()=>O});var O=function(p,$){var ee=p.getContext(),ce=ee.uri;return ce||(typeof $=="function"?$(p):$||"/graphql")}},3647:(we,z,g)=>{"use strict";g.d(z,{Y:()=>p});var O=g(7432),p=function($,ee){var ce;try{ce=JSON.stringify($)}catch(M){var Y=__DEV__?new O.zU("Network request failed. ".concat(ee," is not serializable: ").concat(M.message)):new O.zU(21);throw Y.parseError=M,Y}return ce}},3161:(we,z,g)=>{"use strict";g.d(z,{N:()=>p});var O=g(6054);function p($){return new O.c(function(ee){ee.error($)})}},3848:(we,z,g)=>{"use strict";g.d(z,{A:()=>O});var O=function(p,$,ee){var ce=new Error(ee);throw ce.name="ServerError",ce.response=p,ce.statusCode=p.status,ce.result=$,ce}},3767:(we,z,g)=>{"use strict";g.d(z,{E:()=>O});function O(p){return Array.isArray(p)&&p.length>0}},1360:(we,z,g)=>{"use strict";g.d(z,{En:()=>$,JR:()=>M,Sw:()=>ce,et:()=>p,ol:()=>ee});var O=g(7432),p=typeof WeakMap=="function"&&(0,O.no)(function(){return navigator.product})!=="ReactNative",$=typeof WeakSet=="function",ee=typeof Symbol=="function"&&typeof Symbol.for=="function",ce=typeof(0,O.no)(function(){return window.document.createElement})=="function",Y=(0,O.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,M=ce&&!Y},906:(we,z,g)=>{"use strict";g.d(z,{m:()=>p});var O=Object.prototype.toString;function p(ee){return $(ee)}function $(ee,ce){switch(O.call(ee)){case"[object Array]":{if(ce=ce||new Map,ce.has(ee))return ce.get(ee);var Y=ee.slice(0);return ce.set(ee,Y),Y.forEach(function(N,L){Y[L]=$(N,ce)}),Y}case"[object Object]":{if(ce=ce||new Map,ce.has(ee))return ce.get(ee);var M=Object.create(Object.getPrototypeOf(ee));return ce.set(ee,M),Object.keys(ee).forEach(function(N){M[N]=$(ee[N],ce)}),M}default:return ee}}},492:(we,z,g)=>{"use strict";g.d(z,{o:()=>O});function O(){for(var p=[],$=0;$<arguments.length;$++)p[$]=arguments[$];var ee=Object.create(null);return p.forEach(function(ce){!ce||Object.keys(ce).forEach(function(Y){var M=ce[Y];M!==void 0&&(ee[Y]=M)})}),ee}},2710:(we,z,g)=>{"use strict";g.d(z,{t:()=>O});function O(p){return p.errors&&p.errors.length>0||!1}},1461:(we,z,g)=>{"use strict";g.d(z,{v:()=>p});var O=new Map;function p($){var ee=O.get($)||1;return O.set($,ee+1),"".concat($,":").concat(ee,":").concat(Math.random().toString(36).slice(2))}},7236:(we,z,g)=>{"use strict";g.d(z,{G:()=>ce});var O=g(7432),p=g(1777);function $(Y){var M=new Set([Y]);return M.forEach(function(N){(0,p.U)(N)&&ee(N)===N&&Object.getOwnPropertyNames(N).forEach(function(L){(0,p.U)(N[L])&&M.add(N[L])})}),Y}function ee(Y){if(__DEV__&&!Object.isFrozen(Y))try{Object.freeze(Y)}catch(M){if(M instanceof TypeError)return null;throw M}return Y}function ce(Y){return __DEV__&&$(Y),Y}},671:(we,z,g)=>{"use strict";g.d(z,{D9:()=>ee,IM:()=>ce,ZI:()=>M});var O=g(5608),p=g(1777),$=Object.prototype.hasOwnProperty;function ee(){for(var N=[],L=0;L<arguments.length;L++)N[L]=arguments[L];return ce(N)}function ce(N){var L=N[0]||{},P=N.length;if(P>1)for(var j=new M,W=1;W<P;++W)L=j.merge(L,N[W]);return L}var Y=function(N,L,P){return this.merge(N[P],L[P])},M=function(){function N(L){L===void 0&&(L=Y),this.reconciler=L,this.isObject=p.U,this.pastCopies=new Set}return N.prototype.merge=function(L,P){for(var j=this,W=[],F=2;F<arguments.length;F++)W[F-2]=arguments[F];return(0,p.U)(P)&&(0,p.U)(L)?(Object.keys(P).forEach(function(ie){if($.call(L,ie)){var I=L[ie];if(P[ie]!==I){var J=j.reconciler.apply(j,(0,O.fX)([L,P,ie],W,!1));J!==I&&(L=j.shallowCopyForMerge(L),L[ie]=J)}}else L=j.shallowCopyForMerge(L),L[ie]=P[ie]}),L):P},N.prototype.shallowCopyForMerge=function(L){return(0,p.U)(L)&&(this.pastCopies.has(L)||(Array.isArray(L)?L=L.slice(0):L=(0,O.Cl)({__proto__:Object.getPrototypeOf(L)},L),this.pastCopies.add(L))),L},N}()},1507:(we,z,g)=>{"use strict";g.d(z,{l:()=>$});var O=g(5608),p=g(492);function $(ee,ce){return(0,p.o)(ee,ce,ce.variables&&{variables:(0,O.Cl)((0,O.Cl)({},ee&&ee.variables),ce.variables)})}},1777:(we,z,g)=>{"use strict";g.d(z,{U:()=>O});function O(p){return p!==null&&typeof p=="object"}},6563:(we,z,g)=>{"use strict";g.d(z,{p:()=>p});var O=g(1461);function p($){var ee=(0,O.v)("stringifyForDisplay");return JSON.stringify($,function(ce,Y){return Y===void 0?ee:Y}).split(JSON.stringify(ee)).join("<undefined>")}},7432:(we,z,g)=>{"use strict";g.d(z,{IJ:()=>M,zU:()=>O.zU,V1:()=>O.V1,no:()=>p});var O=g(9371);function p(J){try{return J()}catch{}}const $=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()});var ee="__",ce=[ee,ee].join("DEV");function Y(){try{return Boolean(__DEV__)}catch{return Object.defineProperty($,ce,{value:p(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),$[ce]}}const M=Y();function N(J){try{return J()}catch{}}var L=N(function(){return globalThis})||N(function(){return window})||N(function(){return self})||N(function(){return global})||N(function(){return N.constructor("return this")()}),P=!1;function j(){L&&!N(function(){return"production"})&&!N(function(){return process})&&(Object.defineProperty(L,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),P=!0)}j();function W(){P&&(delete L.process,P=!1)}var F=g(5494);function ie(){return typeof F.k=="function",W()}function I(){__DEV__?(0,O.V1)(typeof M=="boolean",M):(0,O.V1)(typeof M=="boolean",36)}ie(),I()},2307:(we,z,g)=>{"use strict";g.d(z,{MS:()=>$,d8:()=>ce,f2:()=>Y,sx:()=>ee,tY:()=>N});var O=g(7432),p=g(424);function $(L,P){var j=L.directives;return!j||!j.length?!0:N(j).every(function(W){var F=W.directive,ie=W.ifArgument,I=!1;return ie.value.kind==="Variable"?(I=P&&P[ie.value.name.value],__DEV__?(0,O.V1)(I!==void 0,"Invalid variable referenced in @".concat(F.name.value," directive.")):(0,O.V1)(I!==void 0,37)):I=ie.value.value,F.name.value==="skip"?!I:I})}function ee(L){var P=[];return(0,p.YR)(L,{Directive:function(j){P.push(j.name.value)}}),P}function ce(L,P){return ee(P).some(function(j){return L.indexOf(j)>-1})}function Y(L){return L&&ce(["client"],L)&&ce(["export"],L)}function M(L){var P=L.name.value;return P==="skip"||P==="include"}function N(L){var P=[];return L&&L.length&&L.forEach(function(j){if(!!M(j)){var W=j.arguments,F=j.name.value;__DEV__?(0,O.V1)(W&&W.length===1,"Incorrect number of arguments for the @".concat(F," directive.")):(0,O.V1)(W&&W.length===1,38);var ie=W[0];__DEV__?(0,O.V1)(ie.name&&ie.name.value==="if","Invalid argument for the @".concat(F," directive.")):(0,O.V1)(ie.name&&ie.name.value==="if",39);var I=ie.value;__DEV__?(0,O.V1)(I&&(I.kind==="Variable"||I.kind==="BooleanValue"),"Argument for the @".concat(F," directive must be a variable or a boolean value.")):(0,O.V1)(I&&(I.kind==="Variable"||I.kind==="BooleanValue"),40),P.push({directive:j,ifArgument:ie})}}),P}},2904:(we,z,g)=>{"use strict";g.d(z,{HQ:()=>ce,JG:()=>ee,ct:()=>$});var O=g(5608),p=g(7432);function $(Y,M){var N=M,L=[];Y.definitions.forEach(function(j){if(j.kind==="OperationDefinition")throw __DEV__?new p.zU("Found a ".concat(j.operation," operation").concat(j.name?" named '".concat(j.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new p.zU(41);j.kind==="FragmentDefinition"&&L.push(j)}),typeof N>"u"&&(__DEV__?(0,p.V1)(L.length===1,"Found ".concat(L.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,p.V1)(L.length===1,42),N=L[0].name.value);var P=(0,O.Cl)((0,O.Cl)({},Y),{definitions:(0,O.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:N}}]}}],Y.definitions,!0)});return P}function ee(Y){Y===void 0&&(Y=[]);var M={};return Y.forEach(function(N){M[N.name.value]=N}),M}function ce(Y,M){switch(Y.kind){case"InlineFragment":return Y;case"FragmentSpread":{var N=M&&M[Y.name.value];return __DEV__?(0,p.V1)(N,"No fragment named ".concat(Y.name.value,".")):(0,p.V1)(N,43),N}default:return null}}},3777:(we,z,g)=>{"use strict";g.d(z,{AT:()=>M,E4:()=>N,Vn:()=>L,Vu:()=>ee,n4:()=>ce,sw:()=>$,wY:()=>P,zK:()=>Y});var O=g(7432),p=g(8907);function $(j){__DEV__?(0,O.V1)(j&&j.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,O.V1)(j&&j.kind==="Document",44);var W=j.definitions.filter(function(F){return F.kind!=="FragmentDefinition"}).map(function(F){if(F.kind!=="OperationDefinition")throw __DEV__?new O.zU('Schema type definitions not allowed in queries. Found: "'.concat(F.kind,'"')):new O.zU(45);return F});return __DEV__?(0,O.V1)(W.length<=1,"Ambiguous GraphQL document: contains ".concat(W.length," operations")):(0,O.V1)(W.length<=1,46),j}function ee(j){return $(j),j.definitions.filter(function(W){return W.kind==="OperationDefinition"})[0]}function ce(j){return j.definitions.filter(function(W){return W.kind==="OperationDefinition"&&W.name}).map(function(W){return W.name.value})[0]||null}function Y(j){return j.definitions.filter(function(W){return W.kind==="FragmentDefinition"})}function M(j){var W=ee(j);return __DEV__?(0,O.V1)(W&&W.operation==="query","Must contain a query definition."):(0,O.V1)(W&&W.operation==="query",47),W}function N(j){__DEV__?(0,O.V1)(j.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,O.V1)(j.kind==="Document",48),__DEV__?(0,O.V1)(j.definitions.length<=1,"Fragment must have exactly one definition."):(0,O.V1)(j.definitions.length<=1,49);var W=j.definitions[0];return __DEV__?(0,O.V1)(W.kind==="FragmentDefinition","Must be a fragment definition."):(0,O.V1)(W.kind==="FragmentDefinition",50),W}function L(j){$(j);for(var W,F=0,ie=j.definitions;F<ie.length;F++){var I=ie[F];if(I.kind==="OperationDefinition"){var J=I.operation;if(J==="query"||J==="mutation"||J==="subscription")return I}I.kind==="FragmentDefinition"&&!W&&(W=I)}if(W)return W;throw __DEV__?new O.zU("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new O.zU(51)}function P(j){var W=Object.create(null),F=j&&j.variableDefinitions;return F&&F.length&&F.forEach(function(ie){ie.defaultValue&&(0,p.J)(W,ie.variable.name,ie.defaultValue)}),W}},8907:(we,z,g)=>{"use strict";g.d(z,{A_:()=>ce,D$:()=>ke,Ii:()=>te,J:()=>J,Kc:()=>Y,MB:()=>Be,WU:()=>ee,dt:()=>ge,kd:()=>Le,o5:()=>U,ue:()=>ze});var O=g(7432),p=g(1777),$=g(2904);function ee(Ee){return{__ref:String(Ee)}}function ce(Ee){return Boolean(Ee&&typeof Ee=="object"&&typeof Ee.__ref=="string")}function Y(Ee){return(0,p.U)(Ee)&&Ee.kind==="Document"&&Array.isArray(Ee.definitions)}function M(Ee){return Ee.kind==="StringValue"}function N(Ee){return Ee.kind==="BooleanValue"}function L(Ee){return Ee.kind==="IntValue"}function P(Ee){return Ee.kind==="FloatValue"}function j(Ee){return Ee.kind==="Variable"}function W(Ee){return Ee.kind==="ObjectValue"}function F(Ee){return Ee.kind==="ListValue"}function ie(Ee){return Ee.kind==="EnumValue"}function I(Ee){return Ee.kind==="NullValue"}function J(Ee,B,R,D){if(L(R)||P(R))Ee[B.value]=Number(R.value);else if(N(R)||M(R))Ee[B.value]=R.value;else if(W(R)){var x={};R.fields.map(function(ue){return J(x,ue.name,ue.value,D)}),Ee[B.value]=x}else if(j(R)){var X=(D||{})[R.name.value];Ee[B.value]=X}else if(F(R))Ee[B.value]=R.values.map(function(ue){var he={};return J(he,B,ue,D),he[B.value]});else if(ie(R))Ee[B.value]=R.value;else if(I(R))Ee[B.value]=null;else throw __DEV__?new O.zU('The inline argument "'.concat(B.value,'" of kind "').concat(R.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new O.zU(52)}function te(Ee,B){var R=null;Ee.directives&&(R={},Ee.directives.forEach(function(x){R[x.name.value]={},x.arguments&&x.arguments.forEach(function(X){var ue=X.name,he=X.value;return J(R[x.name.value],ue,he,B)})}));var D=null;return Ee.arguments&&Ee.arguments.length&&(D={},Ee.arguments.forEach(function(x){var X=x.name,ue=x.value;return J(D,X,ue,B)})),U(Ee.name.value,D,R)}var oe=["connection","include","skip","client","rest","export"],U=Object.assign(function(Ee,B,R){if(B&&R&&R.connection&&R.connection.key)if(R.connection.filter&&R.connection.filter.length>0){var D=R.connection.filter?R.connection.filter:[];D.sort();var x={};return D.forEach(function(he){x[he]=B[he]}),"".concat(R.connection.key,"(").concat(m(x),")")}else return R.connection.key;var X=Ee;if(B){var ue=m(B);X+="(".concat(ue,")")}return R&&Object.keys(R).forEach(function(he){oe.indexOf(he)===-1&&(R[he]&&Object.keys(R[he]).length?X+="@".concat(he,"(").concat(m(R[he]),")"):X+="@".concat(he))}),X},{setStringify:function(Ee){var B=m;return m=Ee,B}}),m=function(B){return JSON.stringify(B,Ae)};function Ae(Ee,B){return(0,p.U)(B)&&!Array.isArray(B)&&(B=Object.keys(B).sort().reduce(function(R,D){return R[D]=B[D],R},{})),B}function Be(Ee,B){if(Ee.arguments&&Ee.arguments.length){var R={};return Ee.arguments.forEach(function(D){var x=D.name,X=D.value;return J(R,x,X,B)}),R}return null}function ze(Ee){return Ee.alias?Ee.alias.value:Ee.name.value}function ke(Ee,B,R){if(typeof Ee.__typename=="string")return Ee.__typename;for(var D=0,x=B.selections;D<x.length;D++){var X=x[D];if(ge(X)){if(X.name.value==="__typename")return Ee[ze(X)]}else{var ue=ke(Ee,(0,$.HQ)(X,R).selectionSet,R);if(typeof ue=="string")return ue}}}function ge(Ee){return Ee.kind==="Field"}function Le(Ee){return Ee.kind==="InlineFragment"}},5388:(we,z,g)=>{"use strict";g.d(z,{XY:()=>F,zc:()=>Be,it:()=>U,er:()=>ze,hX:()=>I,iz:()=>W,TC:()=>m});var O=g(5608),p=g(7432),$=g(424),ee=g(3777);function ce(ke,ge,Le){var Ee=0;return ke.forEach(function(B,R){ge.call(this,B,R,ke)&&(ke[Ee++]=B)},Le),ke.length=Ee,ke}var Y=g(8907),M=g(2904),N={kind:"Field",name:{kind:"Name",value:"__typename"}};function L(ke,ge){return ke.selectionSet.selections.every(function(Le){return Le.kind==="FragmentSpread"&&L(ge[Le.name.value],ge)})}function P(ke){return L((0,ee.Vu)(ke)||(0,ee.E4)(ke),(0,M.JG)((0,ee.zK)(ke)))?null:ke}function j(ke){return function(Le){return ke.some(function(Ee){return Ee.name&&Ee.name===Le.name.value||Ee.test&&Ee.test(Le)})}}function W(ke,ge){var Le=Object.create(null),Ee=[],B=Object.create(null),R=[],D=P((0,$.YR)(ge,{Variable:{enter:function(x,X,ue){ue.kind!=="VariableDefinition"&&(Le[x.name.value]=!0)}},Field:{enter:function(x){if(ke&&x.directives){var X=ke.some(function(ue){return ue.remove});if(X&&x.directives&&x.directives.some(j(ke)))return x.arguments&&x.arguments.forEach(function(ue){ue.value.kind==="Variable"&&Ee.push({name:ue.value.name.value})}),x.selectionSet&&Ae(x.selectionSet).forEach(function(ue){R.push({name:ue.name.value})}),null}}},FragmentSpread:{enter:function(x){B[x.name.value]=!0}},Directive:{enter:function(x){if(j(ke)(x))return null}}}));return D&&ce(Ee,function(x){return!!x.name&&!Le[x.name]}).length&&(D=U(Ee,D)),D&&ce(R,function(x){return!!x.name&&!B[x.name]}).length&&(D=m(R,D)),D}var F=Object.assign(function(ke){return(0,$.YR)(ke,{SelectionSet:{enter:function(ge,Le,Ee){if(!(Ee&&Ee.kind==="OperationDefinition")){var B=ge.selections;if(!!B){var R=B.some(function(x){return(0,Y.dt)(x)&&(x.name.value==="__typename"||x.name.value.lastIndexOf("__",0)===0)});if(!R){var D=Ee;if(!((0,Y.dt)(D)&&D.directives&&D.directives.some(function(x){return x.name.value==="export"})))return(0,O.Cl)((0,O.Cl)({},ge),{selections:(0,O.fX)((0,O.fX)([],B,!0),[N],!1)})}}}}}})},{added:function(ke){return ke===N}}),ie={test:function(ke){var ge=ke.name.value==="connection";return ge&&(!ke.arguments||!ke.arguments.some(function(Le){return Le.name.value==="key"}))&&__DEV__&&p.V1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),ge}};function I(ke){return W([ie],(0,ee.sw)(ke))}function J(ke,ge,Le){return Le===void 0&&(Le=!0),!!ge&&ge.selections&&ge.selections.some(function(Ee){return te(ke,Ee,Le)})}function te(ke,ge,Le){return Le===void 0&&(Le=!0),isField(ge)?ge.directives?ge.directives.some(j(ke))||Le&&J(ke,ge.selectionSet,Le):!1:!0}function oe(ke){return function(Le){return ke.some(function(Ee){return Le.value&&Le.value.kind==="Variable"&&Le.value.name&&(Ee.name===Le.value.name.value||Ee.test&&Ee.test(Le))})}}function U(ke,ge){var Le=oe(ke);return P((0,$.YR)(ge,{OperationDefinition:{enter:function(Ee){return(0,O.Cl)((0,O.Cl)({},Ee),{variableDefinitions:Ee.variableDefinitions?Ee.variableDefinitions.filter(function(B){return!ke.some(function(R){return R.name===B.variable.name.value})}):[]})}},Field:{enter:function(Ee){var B=ke.some(function(D){return D.remove});if(B){var R=0;if(Ee.arguments&&Ee.arguments.forEach(function(D){Le(D)&&(R+=1)}),R===1)return null}}},Argument:{enter:function(Ee){if(Le(Ee))return null}}}))}function m(ke,ge){function Le(Ee){if(ke.some(function(B){return B.name===Ee.name.value}))return null}return P((0,$.YR)(ge,{FragmentSpread:{enter:Le},FragmentDefinition:{enter:Le}}))}function Ae(ke){var ge=[];return ke.selections.forEach(function(Le){((0,Y.dt)(Le)||(0,Y.kd)(Le))&&Le.selectionSet?Ae(Le.selectionSet).forEach(function(Ee){return ge.push(Ee)}):Le.kind==="FragmentSpread"&&ge.push(Le)}),ge}function Be(ke){var ge=(0,ee.Vn)(ke),Le=ge.operation;if(Le==="query")return ke;var Ee=(0,$.YR)(ke,{OperationDefinition:{enter:function(B){return(0,O.Cl)((0,O.Cl)({},B),{operation:"query"})}}});return Ee}function ze(ke){(0,ee.sw)(ke);var ge=W([{test:function(Le){return Le.name.value==="client"},remove:!0}],ke);return ge&&(ge=(0,$.YR)(ge,{FragmentDefinition:{enter:function(Le){if(Le.selectionSet){var Ee=Le.selectionSet.selections.every(function(B){return(0,Y.dt)(B)&&B.name.value==="__typename"});if(Ee)return null}}}})),ge}},2182:(we,z,g)=>{"use strict";g.r(z),g.d(z,{Concast:()=>m.E,DEV:()=>O.IJ,DeepMerger:()=>N.ZI,Observable:()=>I.c,addTypenameToDocument:()=>Y.XY,argumentsObjectFromField:()=>ce.MB,asyncMap:()=>U.x,buildQueryFromSelectionSet:()=>Y.zc,canUseDOM:()=>ge.Sw,canUseLayoutEffect:()=>ge.JR,canUseSymbol:()=>ge.ol,canUseWeakMap:()=>ge.et,canUseWeakSet:()=>ge.En,checkDocument:()=>ee.sw,cloneDeep:()=>J.m,compact:()=>Le.o,concatPagination:()=>L,createFragmentMap:()=>$.JG,fixObservableSubclass:()=>Ae.r,getDefaultValues:()=>ee.wY,getDirectiveNames:()=>p.sx,getFragmentDefinition:()=>ee.E4,getFragmentDefinitions:()=>ee.zK,getFragmentFromSelection:()=>$.HQ,getFragmentQueryDocument:()=>$.ct,getInclusionDirectives:()=>p.tY,getMainDefinition:()=>ee.Vn,getOperationDefinition:()=>ee.Vu,getOperationName:()=>ee.n4,getQueryDefinition:()=>ee.AT,getStoreKeyName:()=>ce.o5,getTypenameFromResult:()=>ce.D$,graphQLResultHasError:()=>ke.t,hasClientExports:()=>p.f2,hasDirectives:()=>p.d8,isDocumentNode:()=>ce.Kc,isField:()=>ce.dt,isInlineFragment:()=>ce.kd,isNonEmptyArray:()=>Be.E,isNonNullObject:()=>ze.U,isReference:()=>ce.A_,iterateObserversSafely:()=>oe.w,makeReference:()=>ce.WU,makeUniqueId:()=>Ee.v,maybe:()=>O.no,maybeDeepFreeze:()=>te.G,mergeDeep:()=>N.D9,mergeDeepArray:()=>N.IM,mergeOptions:()=>R.l,offsetLimitPagination:()=>P,relayStylePagination:()=>j,removeArgumentsFromDocument:()=>Y.it,removeClientSetsFromDocument:()=>Y.er,removeConnectionDirectiveFromDocument:()=>Y.hX,removeDirectivesFromDocument:()=>Y.iz,removeFragmentSpreadFromDocument:()=>Y.TC,resultKeyNameFromField:()=>ce.ue,shouldInclude:()=>p.MS,storeKeyNameFromField:()=>ce.Ii,stringifyForDisplay:()=>B.p,valueToObjectRepresentation:()=>ce.J});var O=g(7432),p=g(2307),$=g(2904),ee=g(3777),ce=g(8907),Y=g(5388),M=g(5608),N=g(671);function L(D){return D===void 0&&(D=!1),{keyArgs:D,merge:function(x,X){return x?(0,M.fX)((0,M.fX)([],x,!0),X,!0):X}}}function P(D){return D===void 0&&(D=!1),{keyArgs:D,merge:function(x,X,ue){var he=ue.args,Ye=x?x.slice(0):[];if(X)if(he)for(var ve=he.offset,de=ve===void 0?0:ve,ae=0;ae<X.length;++ae)Ye[de+ae]=X[ae];else Ye.push.apply(Ye,X);return Ye}}}function j(D){return D===void 0&&(D=!1),{keyArgs:D,read:function(x,X){var ue=X.canRead,he=X.readField;if(!x)return x;var Ye=[],ve="",de="";x.edges.forEach(function(be){ue(he("node",be))&&(Ye.push(be),be.cursor&&(ve=ve||be.cursor||"",de=be.cursor||de))});var ae=x.pageInfo||{},q=ae.startCursor,Te=ae.endCursor;return(0,M.Cl)((0,M.Cl)({},W(x)),{edges:Ye,pageInfo:(0,M.Cl)((0,M.Cl)({},x.pageInfo),{startCursor:q||ve,endCursor:Te||de})})},merge:function(x,X,ue){var he=ue.args,Ye=ue.isReference,ve=ue.readField;if(x||(x=ie()),!X)return x;var de=X.edges?X.edges.map(function(dt){return Ye(dt=(0,M.Cl)({},dt))&&(dt.cursor=ve("cursor",dt)),dt}):[];if(X.pageInfo){var ae=X.pageInfo,q=ae.startCursor,Te=ae.endCursor,be=de[0],et=de[de.length-1];be&&q&&(be.cursor=q),et&&Te&&(et.cursor=Te);var st=be&&be.cursor;st&&!q&&(X=(0,N.D9)(X,{pageInfo:{startCursor:st}}));var lt=et&&et.cursor;lt&&!Te&&(X=(0,N.D9)(X,{pageInfo:{endCursor:lt}}))}var at=x.edges,ye=[];if(he&&he.after){var Ie=at.findIndex(function(dt){return dt.cursor===he.after});Ie>=0&&(at=at.slice(0,Ie+1))}else if(he&&he.before){var Ie=at.findIndex(function(Xe){return Xe.cursor===he.before});ye=Ie<0?at:at.slice(Ie),at=[]}else X.edges&&(at=[]);var C=(0,M.fX)((0,M.fX)((0,M.fX)([],at,!0),de,!0),ye,!0),V=(0,M.Cl)((0,M.Cl)({},X.pageInfo),x.pageInfo);if(X.pageInfo){var k=X.pageInfo,re=k.hasPreviousPage,_e=k.hasNextPage,q=k.startCursor,Te=k.endCursor,He=(0,M.Tt)(k,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(V,He),at.length||(re!==void 0&&(V.hasPreviousPage=re),q!==void 0&&(V.startCursor=q)),ye.length||(_e!==void 0&&(V.hasNextPage=_e),Te!==void 0&&(V.endCursor=Te))}return(0,M.Cl)((0,M.Cl)((0,M.Cl)({},W(x)),W(X)),{edges:C,pageInfo:V})}}}var W=function(D){return(0,M.Tt)(D,F)},F=["edges","pageInfo"];function ie(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}var I=g(6054),J=g(906),te=g(7236),oe=g(7613),U=g(5762),m=g(5637),Ae=g(5892),Be=g(3767),ze=g(1777),ke=g(2710),ge=g(1360),Le=g(492),Ee=g(1461),B=g(6563),R=g(1507)},5637:(we,z,g)=>{"use strict";g.d(z,{E:()=>Y});var O=g(5608),p=g(6054),$=g(7613),ee=g(5892);function ce(M){return M&&typeof M.then=="function"}var Y=function(M){(0,O.C6)(N,M);function N(L){var P=M.call(this,function(j){return P.addObserver(j),function(){return P.removeObserver(j)}})||this;return P.observers=new Set,P.addCount=0,P.promise=new Promise(function(j,W){P.resolve=j,P.reject=W}),P.handlers={next:function(j){P.sub!==null&&(P.latest=["next",j],(0,$.w)(P.observers,"next",j))},error:function(j){var W=P.sub;W!==null&&(W&&setTimeout(function(){return W.unsubscribe()}),P.sub=null,P.latest=["error",j],P.reject(j),(0,$.w)(P.observers,"error",j))},complete:function(){var j=P.sub;if(j!==null){var W=P.sources.shift();W?ce(W)?W.then(function(F){return P.sub=F.subscribe(P.handlers)}):P.sub=W.subscribe(P.handlers):(j&&setTimeout(function(){return j.unsubscribe()}),P.sub=null,P.latest&&P.latest[0]==="next"?P.resolve(P.latest[1]):P.resolve(),(0,$.w)(P.observers,"complete"))}}},P.cancel=function(j){P.reject(j),P.sources=[],P.handlers.complete()},P.promise.catch(function(j){}),typeof L=="function"&&(L=[new p.c(L)]),ce(L)?L.then(function(j){return P.start(j)},P.handlers.error):P.start(L),P}return N.prototype.start=function(L){this.sub===void 0&&(this.sources=Array.from(L),this.handlers.complete())},N.prototype.deliverLastMessage=function(L){if(this.latest){var P=this.latest[0],j=L[P];j&&j.call(L,this.latest[1]),this.sub===null&&P==="next"&&L.complete&&L.complete()}},N.prototype.addObserver=function(L){this.observers.has(L)||(this.deliverLastMessage(L),this.observers.add(L),++this.addCount)},N.prototype.removeObserver=function(L,P){this.observers.delete(L)&&--this.addCount<1&&!P&&this.handlers.complete()},N.prototype.cleanup=function(L){var P=this,j=!1,W=function(){j||(j=!0,P.observers.delete(F),L())},F={next:W,error:W,complete:W},ie=this.addCount;this.addObserver(F),this.addCount=ie},N}(p.c);(0,ee.r)(Y)},5762:(we,z,g)=>{"use strict";g.d(z,{x:()=>p});var O=g(6054);function p($,ee,ce){return new O.c(function(Y){var M=Y.next,N=Y.error,L=Y.complete,P=0,j=!1,W={then:function(J){return new Promise(function(te){return te(J())})}};function F(J,te){return J?function(oe){++P;var U=function(){return J(oe)};W=W.then(U,U).then(function(m){--P,M&&M.call(Y,m),j&&ie.complete()},function(m){throw--P,m}).catch(function(m){N&&N.call(Y,m)})}:function(oe){return te&&te.call(Y,oe)}}var ie={next:F(ee,M),error:F(ce,N),complete:function(){j=!0,P||L&&L.call(Y)}},I=$.subscribe(ie);return function(){return I.unsubscribe()}})}},7613:(we,z,g)=>{"use strict";g.d(z,{w:()=>O});function O(p,$,ee){var ce=[];p.forEach(function(Y){return Y[$]&&ce.push(Y)}),ce.forEach(function(Y){return Y[$](ee)})}},5892:(we,z,g)=>{"use strict";g.d(z,{r:()=>$});var O=g(6054),p=g(1360);function $(ee){function ce(Y){Object.defineProperty(ee,Y,{value:O.c})}return p.ol&&Symbol.species&&ce(Symbol.species),ce("@@species"),ee}},2152:(we,z,g)=>{"use strict";g.r(z),g.d(z,{Bwell:()=>xbe});var O={};g.r(O),g.d(O,{define:()=>LT,id:()=>Fn,version:()=>bn});var p={};g.r(p),g.d(p,{definition:()=>Tl,id:()=>ia,version:()=>na});var $={};g.r($),g.d($,{definition:()=>Al,id:()=>m_,version:()=>ml});var ee={};g.r(ee),g.d(ee,{definition:()=>wj,id:()=>zd,version:()=>gf});var ce={};g.r(ce),g.d(ce,{definition:()=>Uj,id:()=>ZM,version:()=>ZS});var Y={};g.r(Y),g.d(Y,{definition:()=>mK,id:()=>OE,version:()=>up});var M={};g.r(M),g.d(M,{definition:()=>AK,id:()=>cp,version:()=>bf});var N={};g.r(N),g.d(N,{definition:()=>RK,id:()=>a0,version:()=>bE});var L={};g.r(L),g.d(L,{definition:()=>p7,id:()=>_V,version:()=>tg});var P={};g.r(P),g.d(P,{definition:()=>v7,id:()=>dV,version:()=>ig});var j={};g.r(j),g.d(j,{definition:()=>d7,id:()=>eg,version:()=>Cp});var W={};g.r(W),g.d(W,{define:()=>S7,id:()=>pV,version:()=>ag});var F={};g.r(F),g.d(F,{define:()=>E7,id:()=>hV,version:()=>og});var ie={};g.r(ie),g.d(ie,{definition:()=>pOe,id:()=>vB,version:()=>ST});var I=g(6152),J=g(3059),te=g(757);function oe(e){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(e)}function U(e,t){if(oe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m(e){var t=U(e,"string");return oe(t)=="symbol"?t:t+""}function Ae(e,t,r){return t=m(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Be(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ke(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ge=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ee={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function B(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function R(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(X(e))return"date";if(x(e))return"error";var r=D(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function D(e){return typeof e.constructor=="function"?e.constructor.name:null}function x(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function X(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ue(e){var t=typeof e;return t}function he(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ke(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ke(1));return r(he)(e,t)}if(typeof e!="function")throw new Error(ke(2));var i=e,a=t,u=[],c=u,v=!1;function _(){c===u&&(c=u.slice())}function S(){if(v)throw new Error(ke(3));return a}function A(me){if(typeof me!="function")throw new Error(ke(4));if(v)throw new Error(ke(5));var Ge=!0;return _(),c.push(me),function(){if(!!Ge){if(v)throw new Error(ke(6));Ge=!1,_();var Re=c.indexOf(me);c.splice(Re,1),u=null}}}function Q(me){if(!B(me))throw new Error(ke(7));if(typeof me.type>"u")throw new Error(ke(8));if(v)throw new Error(ke(9));try{v=!0,a=i(a,me)}finally{v=!1}for(var Ge=u=c,Me=0;Me<Ge.length;Me++){var Re=Ge[Me];Re()}return me}function le(me){if(typeof me!="function")throw new Error(ke(10));i=me,Q({type:Ee.REPLACE})}function pe(){var me,Ge=A;return me={subscribe:function(Re){if(typeof Re!="object"||Re===null)throw new Error(ke(11));function nt(){Re.next&&Re.next(S())}nt();var ht=Ge(nt);return{unsubscribe:ht}}},me[ge]=function(){return this},me}return Q({type:Ee.INIT}),n={dispatch:Q,subscribe:A,getState:S,replaceReducer:le},n[ge]=pe,n}var Ye=null;function ve(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function de(e,t,r,n){var i=Object.keys(t),a=r&&r.type===Ee.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!B(e))return"The "+a+' has unexpected type of "'+ue(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var u=Object.keys(e).filter(function(c){return!t.hasOwnProperty(c)&&!n[c]});if(u.forEach(function(c){n[c]=!0}),!(r&&r.type===Ee.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function ae(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ee.INIT});if(typeof n>"u")throw new Error(ke(12));if(typeof r(void 0,{type:Ee.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ke(13))})}function q(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),u,c;try{ae(r)}catch(v){c=v}return function(_,S){if(_===void 0&&(_={}),c)throw c;if(!1)var A;for(var Q=!1,le={},pe=0;pe<a.length;pe++){var me=a[pe],Ge=r[me],Me=_[me],Re=Ge(Me,S);if(typeof Re>"u"){var nt=S&&S.type;throw new Error(ke(14))}le[me]=Re,Q=Q||Re!==Me}return Q=Q||a.length!==Object.keys(_).length,Q?le:_}}function Te(e,t){return function(){return t(e.apply(this,arguments))}}function be(e,t){if(typeof e=="function")return Te(e,t);if(typeof e!="object"||e===null)throw new Error(ke(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=Te(i,t))}return r}function et(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function st(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ke(15))},u={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(v){return v(u)});return a=et.apply(void 0,c)(i.dispatch),ze(ze({},i),{},{dispatch:a})}}}function lt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!1)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function at(e){return!!e&&!!e[$t]}function ye(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===$r}(e)||Array.isArray(e)||!!e[sn]||!!(!((t=e.constructor)===null||t===void 0)&&t[sn])||dt(e)||Xe(e))}function Ie(e){return at(e)||lt(23,e),e[$t].t}function C(e,t,r){r===void 0&&(r=!1),V(e)===0?(r?Object.keys:it)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function V(e){var t=e[$t];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:dt(e)?2:Xe(e)?3:0}function k(e,t){return V(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function re(e,t){return V(e)===2?e.get(t):e[t]}function _e(e,t,r){var n=V(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function He(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function dt(e){return fn&&e instanceof Map}function Xe(e){return Fr&&e instanceof Set}function ut(e){return e.o||e.t}function At(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=jn(e);delete t[$t];for(var r=it(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Et(e,t){return t===void 0&&(t=!1),Jt(e)||at(e)||!ye(e)||(V(e)>1&&(e.set=e.add=e.clear=e.delete=Zt),Object.freeze(e),t&&C(e,function(r,n){return Et(n,!0)},!0)),e}function Zt(){lt(2)}function Jt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ft(e){var t=Jn[e];return t||lt(18,e),t}function er(e,t){Jn[e]||(Jn[e]=t)}function Ht(){return yn}function Mr(e,t){t&&(Ft("Patches"),e.u=[],e.s=[],e.v=t)}function _r(e){Ur(e),e.p.forEach(tn),e.p=null}function Ur(e){e===yn&&(yn=e.l)}function xr(e){return yn={p:[],l:yn,h:e,m:!0,_:0}}function tn(e){var t=e[$t];t.i===0||t.i===1?t.j():t.g=!0}function cr(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ft("ES5").S(t,e,n),n?(r[$t].P&&(_r(t),lt(4)),ye(e)&&(e=Fe(t,e),t.l||Yt(t,e)),t.u&&Ft("Patches").M(r[$t].t,e,t.u,t.s)):e=Fe(t,r,[]),_r(t),t.u&&t.v(t.u,t.s),e!==Bn?e:void 0}function Fe(e,t,r){if(Jt(t))return t;var n=t[$t];if(!n)return C(t,function(c,v){return De(e,n,t,c,v,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Yt(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=At(n.k):n.o,a=i,u=!1;n.i===3&&(a=new Set(i),i.clear(),u=!0),C(a,function(c,v){return De(e,n,i,c,v,r,u)}),Yt(e,i,!1),r&&e.u&&Ft("Patches").N(n,r,e.u,e.s)}return n.o}function De(e,t,r,n,i,a,u){if(at(i)){var c=Fe(e,i,a&&t&&t.i!==3&&!k(t.R,n)?a.concat(n):void 0);if(_e(r,n,c),!at(c))return;e.m=!1}else u&&r.add(i);if(ye(i)&&!Jt(i)){if(!e.h.D&&e._<1)return;Fe(e,i),t&&t.A.l||Yt(e,i)}}function Yt(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Et(t,r)}function ar(e,t){var r=e[$t];return(r?ut(r):e)[t]}function Sr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ut(e){e.P||(e.P=!0,e.l&&Ut(e.l))}function ln(e){e.o||(e.o=At(e.t))}function Nr(e,t,r){var n=dt(t)?Ft("MapSet").F(t,r):Xe(t)?Ft("MapSet").T(t,r):e.O?function(i,a){var u=Array.isArray(i),c={i:u?1:0,A:a?a.A:Ht(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},v=c,_=Zn;u&&(v=[c],_=pr);var S=Proxy.revocable(v,_),A=S.revoke,Q=S.proxy;return c.k=Q,c.j=A,Q}(t,r):Ft("ES5").J(t,r);return(r?r.A:Ht()).p.push(n),n}function jr(e){return at(e)||lt(22,e),function t(r){if(!ye(r))return r;var n,i=r[$t],a=V(r);if(i){if(!i.P&&(i.i<4||!Ft("ES5").K(i)))return i.t;i.I=!0,n=rn(r,a),i.I=!1}else n=rn(r,a);return C(n,function(u,c){i&&re(i.t,u)===c||_e(n,u,t(c))}),a===3?new Set(n):n}(e)}function rn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return At(e)}function xn(){function e(u,c){var v=a[u];return v?v.enumerable=c:a[u]=v={configurable:!0,enumerable:c,get:function(){var _=this[$t];return Zn.get(_,u)},set:function(_){var S=this[$t];Zn.set(S,u,_)}},v}function t(u){for(var c=u.length-1;c>=0;c--){var v=u[c][$t];if(!v.P)switch(v.i){case 5:n(v)&&Ut(v);break;case 4:r(v)&&Ut(v)}}}function r(u){for(var c=u.t,v=u.k,_=it(v),S=_.length-1;S>=0;S--){var A=_[S];if(A!==$t){var Q=c[A];if(Q===void 0&&!k(c,A))return!0;var le=v[A],pe=le&&le[$t];if(pe?pe.t!==Q:!He(le,Q))return!0}}var me=!!c[$t];return _.length!==it(c).length+(me?0:1)}function n(u){var c=u.k;if(c.length!==u.t.length)return!0;var v=Object.getOwnPropertyDescriptor(c,c.length-1);if(v&&!v.get)return!0;for(var _=0;_<c.length;_++)if(!c.hasOwnProperty(_))return!0;return!1}function i(u){u.g&&lt(3,JSON.stringify(ut(u)))}var a={};er("ES5",{J:function(u,c){var v=Array.isArray(u),_=function(A,Q){if(A){for(var le=Array(Q.length),pe=0;pe<Q.length;pe++)Object.defineProperty(le,""+pe,e(pe,!0));return le}var me=jn(Q);delete me[$t];for(var Ge=it(me),Me=0;Me<Ge.length;Me++){var Re=Ge[Me];me[Re]=e(Re,A||!!me[Re].enumerable)}return Object.create(Object.getPrototypeOf(Q),me)}(v,u),S={i:v?5:4,A:c?c.A:Ht(),P:!1,I:!1,R:{},l:c,t:u,k:_,o:null,g:!1,C:!1};return Object.defineProperty(_,$t,{value:S,writable:!0}),_},S:function(u,c,v){v?at(c)&&c[$t].A===u&&t(u.p):(u.u&&function _(S){if(S&&typeof S=="object"){var A=S[$t];if(A){var Q=A.t,le=A.k,pe=A.R,me=A.i;if(me===4)C(le,function(ht){ht!==$t&&(Q[ht]!==void 0||k(Q,ht)?pe[ht]||_(le[ht]):(pe[ht]=!0,Ut(A)))}),C(Q,function(ht){le[ht]!==void 0||k(le,ht)||(pe[ht]=!1,Ut(A))});else if(me===5){if(n(A)&&(Ut(A),pe.length=!0),le.length<Q.length)for(var Ge=le.length;Ge<Q.length;Ge++)pe[Ge]=!1;else for(var Me=Q.length;Me<le.length;Me++)pe[Me]=!0;for(var Re=Math.min(le.length,Q.length),nt=0;nt<Re;nt++)le.hasOwnProperty(nt)||(pe[nt]=!0),pe[nt]===void 0&&_(le[nt])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):n(u)}})}function Gn(){function e(n){if(!ye(n))return n;if(Array.isArray(n))return n.map(e);if(dt(n))return new Map(Array.from(n.entries()).map(function(u){return[u[0],e(u[1])]}));if(Xe(n))return new Set(Array.from(n).map(e));var i=Object.create(Object.getPrototypeOf(n));for(var a in n)i[a]=e(n[a]);return k(n,sn)&&(i[sn]=n[sn]),i}function t(n){return at(n)?e(n):n}var r="add";er("Patches",{$:function(n,i){return i.forEach(function(a){for(var u=a.path,c=a.op,v=n,_=0;_<u.length-1;_++){var S=V(v),A=u[_];typeof A!="string"&&typeof A!="number"&&(A=""+A),S!==0&&S!==1||A!=="__proto__"&&A!=="constructor"||lt(24),typeof v=="function"&&A==="prototype"&&lt(24),typeof(v=re(v,A))!="object"&&lt(15,u.join("/"))}var Q=V(v),le=e(a.value),pe=u[u.length-1];switch(c){case"replace":switch(Q){case 2:return v.set(pe,le);case 3:lt(16);default:return v[pe]=le}case r:switch(Q){case 1:return pe==="-"?v.push(le):v.splice(pe,0,le);case 2:return v.set(pe,le);case 3:return v.add(le);default:return v[pe]=le}case"remove":switch(Q){case 1:return v.splice(pe,1);case 2:return v.delete(pe);case 3:return v.delete(a.value);default:return delete v[pe]}default:lt(17,c)}}),n},N:function(n,i,a,u){switch(n.i){case 0:case 4:case 2:return function(c,v,_,S){var A=c.t,Q=c.o;C(c.R,function(le,pe){var me=re(A,le),Ge=re(Q,le),Me=pe?k(A,le)?"replace":r:"remove";if(me!==Ge||Me!=="replace"){var Re=v.concat(le);_.push(Me==="remove"?{op:Me,path:Re}:{op:Me,path:Re,value:Ge}),S.push(Me===r?{op:"remove",path:Re}:Me==="remove"?{op:r,path:Re,value:t(me)}:{op:"replace",path:Re,value:t(me)})}})}(n,i,a,u);case 5:case 1:return function(c,v,_,S){var A=c.t,Q=c.R,le=c.o;if(le.length<A.length){var pe=[le,A];A=pe[0],le=pe[1];var me=[S,_];_=me[0],S=me[1]}for(var Ge=0;Ge<A.length;Ge++)if(Q[Ge]&&le[Ge]!==A[Ge]){var Me=v.concat([Ge]);_.push({op:"replace",path:Me,value:t(le[Ge])}),S.push({op:"replace",path:Me,value:t(A[Ge])})}for(var Re=A.length;Re<le.length;Re++){var nt=v.concat([Re]);_.push({op:r,path:nt,value:t(le[Re])})}A.length<le.length&&S.push({op:"replace",path:v.concat(["length"]),value:A.length})}(n,i,a,u);case 3:return function(c,v,_,S){var A=c.t,Q=c.o,le=0;A.forEach(function(pe){if(!Q.has(pe)){var me=v.concat([le]);_.push({op:"remove",path:me,value:pe}),S.unshift({op:r,path:me,value:pe})}le++}),le=0,Q.forEach(function(pe){if(!A.has(pe)){var me=v.concat([le]);_.push({op:r,path:me,value:pe}),S.unshift({op:"remove",path:me,value:pe})}le++})}(n,i,a,u)}},M:function(n,i,a,u){a.push({op:"replace",path:[],value:i===Bn?void 0:i}),u.push({op:"replace",path:[],value:n})}})}function Zr(){function e(c,v){function _(){this.constructor=c}i(c,v),c.prototype=(_.prototype=v.prototype,new _)}function t(c){c.o||(c.R=new Map,c.o=new Map(c.t))}function r(c){c.o||(c.o=new Set,c.t.forEach(function(v){if(ye(v)){var _=Nr(c.A.h,v,c);c.p.set(v,_),c.o.add(_)}else c.o.add(v)}))}function n(c){c.g&&lt(3,JSON.stringify(ut(c)))}var i=function(c,v){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,S){_.__proto__=S}||function(_,S){for(var A in S)S.hasOwnProperty(A)&&(_[A]=S[A])})(c,v)},a=function(){function c(_,S){return this[$t]={i:2,l:S,A:S?S.A:Ht(),P:!1,I:!1,o:void 0,R:void 0,t:_,k:this,C:!1,g:!1},this}e(c,Map);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ut(this[$t]).size}}),v.has=function(_){return ut(this[$t]).has(_)},v.set=function(_,S){var A=this[$t];return n(A),ut(A).has(_)&&ut(A).get(_)===S||(t(A),Ut(A),A.R.set(_,!0),A.o.set(_,S),A.R.set(_,!0)),this},v.delete=function(_){if(!this.has(_))return!1;var S=this[$t];return n(S),t(S),Ut(S),S.t.has(_)?S.R.set(_,!1):S.R.delete(_),S.o.delete(_),!0},v.clear=function(){var _=this[$t];n(_),ut(_).size&&(t(_),Ut(_),_.R=new Map,C(_.t,function(S){_.R.set(S,!1)}),_.o.clear())},v.forEach=function(_,S){var A=this;ut(this[$t]).forEach(function(Q,le){_.call(S,A.get(le),le,A)})},v.get=function(_){var S=this[$t];n(S);var A=ut(S).get(_);if(S.I||!ye(A)||A!==S.t.get(_))return A;var Q=Nr(S.A.h,A,S);return t(S),S.o.set(_,Q),Q},v.keys=function(){return ut(this[$t]).keys()},v.values=function(){var _,S=this,A=this.keys();return(_={})[kn]=function(){return S.values()},_.next=function(){var Q=A.next();return Q.done?Q:{done:!1,value:S.get(Q.value)}},_},v.entries=function(){var _,S=this,A=this.keys();return(_={})[kn]=function(){return S.entries()},_.next=function(){var Q=A.next();if(Q.done)return Q;var le=S.get(Q.value);return{done:!1,value:[Q.value,le]}},_},v[kn]=function(){return this.entries()},c}(),u=function(){function c(_,S){return this[$t]={i:3,l:S,A:S?S.A:Ht(),P:!1,I:!1,o:void 0,t:_,k:this,p:new Map,g:!1,C:!1},this}e(c,Set);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ut(this[$t]).size}}),v.has=function(_){var S=this[$t];return n(S),S.o?!!S.o.has(_)||!(!S.p.has(_)||!S.o.has(S.p.get(_))):S.t.has(_)},v.add=function(_){var S=this[$t];return n(S),this.has(_)||(r(S),Ut(S),S.o.add(_)),this},v.delete=function(_){if(!this.has(_))return!1;var S=this[$t];return n(S),r(S),Ut(S),S.o.delete(_)||!!S.p.has(_)&&S.o.delete(S.p.get(_))},v.clear=function(){var _=this[$t];n(_),ut(_).size&&(r(_),Ut(_),_.o.clear())},v.values=function(){var _=this[$t];return n(_),r(_),_.o.values()},v.entries=function(){var _=this[$t];return n(_),r(_),_.o.entries()},v.keys=function(){return this.values()},v[kn]=function(){return this.values()},v.forEach=function(_,S){for(var A=this.values(),Q=A.next();!Q.done;)_.call(S,Q.value,Q.value,this),Q=A.next()},c}();er("MapSet",{F:function(c,v){return new a(c,v)},T:function(c,v){return new u(c,v)}})}function Bt(){xn(),Zr(),Gn()}function Bi(e){return e}function Or(e){return e}var Nn,yn,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fn=typeof Map<"u",Fr=typeof Set<"u",En=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bn=Wn?Symbol.for("immer-nothing"):((Nn={})["immer-nothing"]=!0,Nn),sn=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",$t=Wn?Symbol.for("immer-state"):"__$immer_state",kn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",On={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},$r=""+Object.prototype.constructor,it=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,jn=Object.getOwnPropertyDescriptors||function(e){var t={};return it(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Jn={},Zn={get:function(e,t){if(t===$t)return e;var r=ut(e);if(!k(r,t))return function(i,a,u){var c,v=Sr(a,u);return v?"value"in v?v.value:(c=v.get)===null||c===void 0?void 0:c.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!ye(n)?n:n===ar(e.t,t)?(ln(e),e.o[t]=Nr(e.A.h,n,e)):n},has:function(e,t){return t in ut(e)},ownKeys:function(e){return Reflect.ownKeys(ut(e))},set:function(e,t,r){var n=Sr(ut(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=ar(ut(e),t),a=i?.[$t];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(He(r,i)&&(r!==void 0||k(e.t,t)))return!0;ln(e),Ut(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return ar(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ln(e),Ut(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ut(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){lt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){lt(12)}},pr={};C(Zn,function(e,t){pr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),pr.deleteProperty=function(e,t){return pr.set.call(this,e,t,void 0)},pr.set=function(e,t,r){return Zn.set.call(this,e[0],t,r,e[0])};var Si=function(){function e(r){var n=this;this.O=En,this.D=!0,this.produce=function(i,a,u){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var v=n;return function(me){var Ge=this;me===void 0&&(me=c);for(var Me=arguments.length,Re=Array(Me>1?Me-1:0),nt=1;nt<Me;nt++)Re[nt-1]=arguments[nt];return v.produce(me,function(ht){var Vt;return(Vt=a).call.apply(Vt,[Ge,ht].concat(Re))})}}var _;if(typeof a!="function"&&lt(6),u!==void 0&&typeof u!="function"&&lt(7),ye(i)){var S=xr(n),A=Nr(n,i,void 0),Q=!0;try{_=a(A),Q=!1}finally{Q?_r(S):Ur(S)}return typeof Promise<"u"&&_ instanceof Promise?_.then(function(me){return Mr(S,u),cr(me,S)},function(me){throw _r(S),me}):(Mr(S,u),cr(_,S))}if(!i||typeof i!="object"){if((_=a(i))===void 0&&(_=i),_===Bn&&(_=void 0),n.D&&Et(_,!0),u){var le=[],pe=[];Ft("Patches").M(i,_,le,pe),u(le,pe)}return _}lt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(_){for(var S=arguments.length,A=Array(S>1?S-1:0),Q=1;Q<S;Q++)A[Q-1]=arguments[Q];return n.produceWithPatches(_,function(le){return i.apply(void 0,[le].concat(A))})};var u,c,v=n.produce(i,a,function(_,S){u=_,c=S});return typeof Promise<"u"&&v instanceof Promise?v.then(function(_){return[_,u,c]}):[v,u,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ye(r)||lt(8),at(r)&&(r=jr(r));var n=xr(this),i=Nr(this,r,void 0);return i[$t].C=!0,Ur(n),i},t.finishDraft=function(r,n){var i=r&&r[$t],a=i.A;return Mr(a,n),cr(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!En&&lt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var u=Ft("Patches").$;return at(r)?u(r,n):this.produce(r,function(c){return u(c,n)})},e}(),gn=new Si,Zi=gn.produce,ki=gn.produceWithPatches.bind(gn),Pi=gn.setAutoFreeze.bind(gn),h=gn.setUseProxies.bind(gn),y=gn.applyPatches.bind(gn),H=gn.createDraft.bind(gn),se=gn.finishDraft.bind(gn);const Ne=Zi;function $e(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(u){return function(c){return typeof c=="function"?c(i,a,e):u(c)}}};return t}var rt=$e();rt.withExtraArgument=$e;const mt=rt;var ft=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vt=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},yt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Dt=Object.defineProperty,gt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,Br=function(e,t,r){return t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},or=function(e,t){for(var r in t||(t={}))Dr.call(t,r)&&Br(e,r,t[r]);if(Nt)for(var n=0,i=Nt(t);n<i.length;n++){var r=i[n];rr.call(t,r)&&Br(e,r,t[r])}return e},In=function(e,t){return gt(e,Pt(t))},ei=function(e,t,r){return new Promise(function(n,i){var a=function(v){try{c(r.next(v))}catch(_){i(_)}},u=function(v){try{c(r.throw(v))}catch(_){i(_)}},c=function(v){return v.done?n(v.value):Promise.resolve(v.value).then(a,u)};c((r=r.apply(e,t)).next())})},_n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=createSelector.apply(void 0,e),n=function(i){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return r.apply(void 0,yt([isDraft(i)?current(i):i],a))};return n},ao=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?et:et.apply(null,arguments)},Ci=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ti(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Tn(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
96
96
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
97
97
  It is disabled in production builds, so you don't need to worry about that.`)}}}var ea=function(e){ft(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,yt([void 0],r[0].concat(this)))):new(t.bind.apply(t,yt([void 0],r.concat(this))))},t}(Array);function oo(e){return ye(e)?Ne(e,function(){}):e}var nu=null,Va="Invariant failed";function Uo(e,t){if(!e)throw nu?new Error(Va):new Error(Va+": "+(t||""))}function xo(e,t,r,n){return JSON.stringify(e,Vo(t,n),r)}function Vo(e,t){var r=[],n=[];return t||(t=function(i,a){return r[0]===a?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(a)).join(".")+"]"}),function(i,a){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?n.splice(u,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return e==null?a:e.call(this,i,a)}}function pa(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function so(e,t,r){var n=uo(e,t,r);return{detectMutations:function(){return ha(e,t,n,r)}}}function uo(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var i={value:r};if(!e(r)){i.children={};for(var a in r){var u=n?n+"."+a:a;t.length&&t.indexOf(u)!==-1||(i.children[a]=uo(e,t,r[a],u))}}return i}function ha(e,t,r,n,i,a){t===void 0&&(t=[]),i===void 0&&(i=!1),a===void 0&&(a="");var u=r?r.value:void 0,c=u===n;if(i&&!c&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(u)||e(n))return{wasMutated:!1};var v={};for(var _ in r.children)v[_]=!0;for(var _ in n)v[_]=!0;for(var _ in v){var S=a?a+"."+_:_;if(!(t.length&&t.indexOf(S)!==-1)){var A=ha(e,t,r.children[_],n[_],c,S);if(A.wasMutated)return A}}return{wasMutated:!1}}function iu(e){return e===void 0&&(e={}),function(){return function(v){return function(_){return v(_)}}};var t=e.isImmutable,r=t===void 0?pa:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,u=e.ignore;n=n||u;var c=so.bind(null,r,n);return function(v){var _=v.getState,S=_(),A=c(S),Q;return function(le){return function(pe){var me=Tn(a,"ImmutableStateInvariantMiddleware");me.measureTime(function(){S=_(),Q=A.detectMutations(),A=c(S),Uo(!Q.wasMutated,"A state mutation was detected between dispatches, in the path '"+(Q.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var Ge=le(pe);return me.measureTime(function(){S=_(),Q=A.detectMutations(),A=c(S),Q.wasMutated&&Uo(!Q.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(Q.path||"")+". Take a look at the reducer(s) handling the action "+xo(pe)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),me.warnIfExceeded(),Ge}}}}function co(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||ti(e)}function Fa(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=co),i===void 0&&(i=[]);var a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var u=n!=null?n(e):Object.entries(e),c=i.length>0,v=0,_=u;v<_.length;v++){var S=_[v],A=S[0],Q=S[1],le=t?t+"."+A:A;if(!(c&&i.indexOf(le)>=0)){if(!r(Q))return{keyPath:le,value:Q};if(typeof Q=="object"&&(a=Fa(Q,le,r,n,i),a))return a}}return!1}function va(e){return e===void 0&&(e={}),function(){return function(Ge){return function(Me){return Ge(Me)}}};var t=e.isSerializable,r=t===void 0?co:t,n=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,u=e.ignoredActionPaths,c=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,v=e.ignoredPaths,_=v===void 0?[]:v,S=e.warnAfter,A=S===void 0?32:S,Q=e.ignoreState,le=Q===void 0?!1:Q,pe=e.ignoreActions,me=pe===void 0?!1:pe;return function(Ge){return function(Me){return function(Re){var nt=Me(Re),ht=Tn(A,"SerializableStateInvariantMiddleware");return!me&&!(a.length&&a.indexOf(Re.type)!==-1)&&ht.measureTime(function(){var Vt=Fa(Re,"",r,n,c);if(Vt){var ir=Vt.keyPath,wr=Vt.value;console.error("A non-serializable value was detected in an action, in the path: `"+ir+"`. Value:",wr,`
98
98
  Take a look at the logic that dispatched this action: `,Re,`
@@ -3970,7 +3970,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3970
3970
  }
3971
3971
  }
3972
3972
  }
3973
- `));function MPe(e){const t=Object.assign(Object.assign({},zt),e);return Apollo.useQuery(Z1,t)}function NPe(e){const t=Object.assign(Object.assign({},zt),e);return Apollo.useLazyQuery(Z1,t)}const IPe=e=>useQuery(GetCoverage,e),LPe=e=>useQuery(GetClaims,e),DPe=e=>useQuery(GetClaim,e),wPe=e=>useQuery(GetCoverageEligibility,e),UPe=e=>useQuery(GetMedications,e),xPe=e=>useQuery(GetMedicationPricing,e),VPe=e=>useLazyQuery(GetMedicationPricing,e),FPe=e=>useQuery(GetMedicationKnowledge,e),$Pe=e=>useLazyQuery(GetMedicationKnowledge,e),GPe=e=>useQuery(GetLabs,e),BPe=e=>useQuery(GetAllergies,e),kPe=e=>useQuery(GetCarePlans,e),jPe=e=>useQuery(GetEncounters,e),HPe=e=>useQuery(GetVitals,e),YPe=e=>useQuery(GetProcedures,e),qPe=e=>useQuery(GetDiagnoses,e),WPe=e=>useQuery(GetImmunizations,e),KPe=e=>useQuery(GetNotifications,e),QPe=e=>useMutation(ClearNotifications,e),zPe=e=>useQuery(GetDigitalWalletCards,e),XPe=e=>useQuery(GetDigitalWalletCardDetails,e),JPe=e=>useQuery(GetDigitalWalletCardTypes,e),ZPe=e=>useQuery(GetDigitalWalletCardAttachements,e),eCe=e=>useQuery(GetDigitalWalletInsuranceTypes,e),tCe=e=>useMutation(CreateDigitalWalletCard,e),rCe=e=>useMutation(DeleteDigitalWalletCard,e),nCe=e=>useMutation(UpdateDigitalWalletCard,e);let Op=e=>e,ex,tx,rx,nx,ix;const Hc={context:{apiName:"pss"}},ax=(0,xe.J1)(ex||(ex=Op`
3973
+ `));function MPe(e){const t=Object.assign(Object.assign({},zt),e);return Apollo.useQuery(Z1,t)}function NPe(e){const t=Object.assign(Object.assign({},zt),e);return Apollo.useLazyQuery(Z1,t)}const IPe=(e,t={})=>{const r=useApolloClient(),[n,i]=useState({data:void 0,error:void 0,loading:!t.skip,networkStatus:t.skip?NetworkStatus.ready:NetworkStatus.loading}),a=useRef(!0),u=useMemo(()=>t,[JSON.stringify(t)]),c=useMemo(()=>e,[e]);return useEffect(()=>{if(u.skip){i({data:void 0,error:void 0,loading:!1,networkStatus:NetworkStatus.ready});return}return(()=>__awaiter(void 0,void 0,void 0,function*(){i(_=>Object.assign(Object.assign({},_),{loading:!0,error:null}));try{const _=yield r.query(Object.assign({query:c},u));a.current&&i(_)}catch(_){a.current&&i({data:void 0,loading:!1,error:_ instanceof ApolloError?_:new ApolloError({errorMessage:_.message}),networkStatus:NetworkStatus.error})}}))(),()=>{a.current=!1}},[c,u,r]),n},LPe=e=>useQuery(GetCoverage,e),DPe=e=>useQuery(GetClaims,e),wPe=e=>useQuery(GetClaim,e),UPe=e=>useQuery(GetCoverageEligibility,e),xPe=e=>useQuery(GetMedications,e),VPe=e=>useQuery(GetMedicationPricing,e),FPe=e=>useLazyQuery(GetMedicationPricing,e),$Pe=e=>useQuery(GetMedicationKnowledge,e),GPe=e=>useLazyQuery(GetMedicationKnowledge,e),BPe=e=>useQuery(GetLabs,e),kPe=e=>useQuery(GetAllergies,e),jPe=e=>useQuery(GetCarePlans,e),HPe=e=>useQuery(GetEncounters,e),YPe=e=>useQuery(GetVitals,e),qPe=e=>useQuery(GetProcedures,e),WPe=e=>useQuery(GetDiagnoses,e),KPe=e=>useQuery(GetImmunizations,e),QPe=e=>useQuery(GetNotifications,e),zPe=e=>useMutation(ClearNotifications,e),XPe=e=>useQuery(GetDigitalWalletCards,e),JPe=e=>useQuery(GetDigitalWalletCardDetails,e),ZPe=e=>useQuery(GetDigitalWalletCardTypes,e),eCe=e=>useQuery(GetDigitalWalletInsuranceTypes,e),tCe=e=>useMutation(CreateDigitalWalletCard,e),rCe=e=>useMutation(DeleteDigitalWalletCard,e),nCe=e=>useMutation(UpdateDigitalWalletCard,e),iCe=e=>useApolloClientQuery(GetDigitalWalletCardAttachements,e);let Op=e=>e,ex,tx,rx,nx,ix;const Hc={context:{apiName:"pss"}},ax=(0,xe.J1)(ex||(ex=Op`
3974
3974
  fragment CommonProviderFields on ProviderResult {
3975
3975
  group {
3976
3976
  id
@@ -4145,7 +4145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4145
4145
  mutation Interacted($user: User, $result_id: String) {
4146
4146
  interacted(user: $user, result_id: $result_id, interaction: clicked)
4147
4147
  }
4148
- `));function iCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useMutation(JJ,t)}const ox=(0,xe.J1)(rx||(rx=Op`
4148
+ `));function aCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useMutation(JJ,t)}const ox=(0,xe.J1)(rx||(rx=Op`
4149
4149
  query GetProviders(
4150
4150
  $user: User
4151
4151
  $index: [Index]
@@ -4261,7 +4261,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4261
4261
  }
4262
4262
  }
4263
4263
  ${0}
4264
- `),ax);function aCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useQuery(ox,t)}function oCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useLazyQuery(ox,t)}const sx=(0,xe.J1)(nx||(nx=Op`
4264
+ `),ax);function oCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useQuery(ox,t)}function sCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useLazyQuery(ox,t)}const sx=(0,xe.J1)(nx||(nx=Op`
4265
4265
  query GetProvidersDetails(
4266
4266
  $user: User
4267
4267
  $id_: [String]
@@ -4310,7 +4310,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4310
4310
  }
4311
4311
  }
4312
4312
  ${0}
4313
- `),ax);function sCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useQuery(sx,t)}function uCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useLazyQuery(sx,t)}const ux=(0,xe.J1)(ix||(ix=Op`
4313
+ `),ax);function uCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useQuery(sx,t)}function cCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useLazyQuery(sx,t)}const ux=(0,xe.J1)(ix||(ix=Op`
4314
4314
  query GetProvidersTypeahead($user: User, $search: String, $client: [Client], $search_as_you_type: SearchAsYouType) {
4315
4315
  providers(user: $user, search: $search, search_as_you_type: $search_as_you_type, client: $client) {
4316
4316
  search_as_you_type {
@@ -4325,7 +4325,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4325
4325
  }
4326
4326
  }
4327
4327
  }
4328
- `));function cCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useQuery(ux,t)}function lCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useLazyQuery(ux,t)}let Dn=e=>e,cx,lx,fx,_x,dx,px,hx,vx,Sx,Ex,gx,Tx,mx,Ax,yx,Ox,bx,Rx,Px,Cx,Mx,Nx,Ix,Lx;const Ir={context:{apiName:"accessToCare"}},ZJ=(0,xe.J1)(cx||(cx=Dn`
4328
+ `));function lCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useQuery(ux,t)}function fCe(e){const t=Object.assign(Object.assign({},Hc),e);return Apollo.useLazyQuery(ux,t)}let Dn=e=>e,cx,lx,fx,_x,dx,px,hx,vx,Sx,Ex,gx,Tx,mx,Ax,yx,Ox,bx,Rx,Px,Cx,Mx,Nx,Ix,Lx;const Ir={context:{apiName:"accessToCare"}},ZJ=(0,xe.J1)(cx||(cx=Dn`
4329
4329
  fragment GeneralPractitionerFields on Patient {
4330
4330
  generalPractitioner {
4331
4331
  __typename
@@ -4371,7 +4371,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4371
4371
  }
4372
4372
  }
4373
4373
  }
4374
- `));function fCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Dx,t)}function _Ce(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Dx,t)}const wx=(0,xe.J1)(fx||(fx=Dn`
4374
+ `));function _Ce(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Dx,t)}function dCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Dx,t)}const wx=(0,xe.J1)(fx||(fx=Dn`
4375
4375
  query getAppointmentsList($serviceName: String!, $pageOffset: Int!, $isPast: Boolean) {
4376
4376
  getAppointmentsList(input: { serviceName: $serviceName, pageOffset: $pageOffset, isPast: $isPast }) {
4377
4377
  id
@@ -4408,25 +4408,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4408
4408
  }
4409
4409
  }
4410
4410
  }
4411
- `));function dCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(wx,t)}function pCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(wx,t)}const e7=(0,xe.J1)(_x||(_x=Dn`
4411
+ `));function pCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(wx,t)}function hCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(wx,t)}const e7=(0,xe.J1)(_x||(_x=Dn`
4412
4412
  mutation cancelAppointment($serviceName: String!, $id: String!, $cancelReasonCode: String!) {
4413
4413
  cancelAppointment(input: { serviceName: $serviceName, id: $id, cancelReasonCode: $cancelReasonCode }) {
4414
4414
  id
4415
4415
  success
4416
4416
  }
4417
4417
  }
4418
- `));function hCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(e7,t)}const Ux=(0,xe.J1)(dx||(dx=Dn`
4418
+ `));function vCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(e7,t)}const Ux=(0,xe.J1)(dx||(dx=Dn`
4419
4419
  query cancelReasons($serviceName: String!) {
4420
4420
  cancelReasons(input: { serviceName: $serviceName }) {
4421
4421
  code
4422
4422
  displayText
4423
4423
  }
4424
4424
  }
4425
- `));function vCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Ux,t)}function SCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Ux,t)}const t7=(0,xe.J1)(px||(px=Dn`
4425
+ `));function SCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Ux,t)}function ECe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Ux,t)}const t7=(0,xe.J1)(px||(px=Dn`
4426
4426
  mutation checkTransferEligibility($fhirMedicationRequestIDs: [String!]!) {
4427
4427
  checkTransferEligibility(input: { fhirMedicationRequestIDs: $fhirMedicationRequestIDs })
4428
4428
  }
4429
- `));function ECe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(t7,t)}const r7=(0,xe.J1)(hx||(hx=Dn`
4429
+ `));function gCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(t7,t)}const r7=(0,xe.J1)(hx||(hx=Dn`
4430
4430
  mutation directAppointmentBooking(
4431
4431
  $serviceName: String!
4432
4432
  $myChartAccountID: String!
@@ -4480,7 +4480,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4480
4480
  appointmentType
4481
4481
  }
4482
4482
  }
4483
- `));function gCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(r7,t)}const xx=(0,xe.J1)(vx||(vx=Dn`
4483
+ `));function TCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(r7,t)}const xx=(0,xe.J1)(vx||(vx=Dn`
4484
4484
  query directSchedulingSlots(
4485
4485
  $serviceName: String!
4486
4486
  $patientId: String!
@@ -4519,7 +4519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4519
4519
  }
4520
4520
  }
4521
4521
  }
4522
- `));function TCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(xx,t)}function mCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(xx,t)}const Vx=(0,xe.J1)(Sx||(Sx=Dn`
4522
+ `));function mCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(xx,t)}function ACe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(xx,t)}const Vx=(0,xe.J1)(Sx||(Sx=Dn`
4523
4523
  query directVisitTypes($patientId: String!, $serviceName: String!) {
4524
4524
  directVisitTypes(input: { patientId: $patientId, serviceName: $serviceName }) {
4525
4525
  code
@@ -4527,7 +4527,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4527
4527
  text
4528
4528
  }
4529
4529
  }
4530
- `));function ACe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Vx,t)}function yCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Vx,t)}const Fx=(0,xe.J1)(Ex||(Ex=Dn`
4530
+ `));function yCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Vx,t)}function OCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Vx,t)}const Fx=(0,xe.J1)(Ex||(Ex=Dn`
4531
4531
  query patientIdentifiers($serviceName: String!) {
4532
4532
  patientIdentifiers(input: { serviceName: $serviceName }) {
4533
4533
  fhirPatientId
@@ -4537,7 +4537,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4537
4537
  myChartAccountIdType
4538
4538
  }
4539
4539
  }
4540
- `));function OCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Fx,t)}function bCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Fx,t)}const $x=(0,xe.J1)(gx||(gx=Dn`
4540
+ `));function bCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Fx,t)}function RCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Fx,t)}const $x=(0,xe.J1)(gx||(gx=Dn`
4541
4541
  query getPatient($patientId: String!) {
4542
4542
  getPatient(input: { id: $patientId }) {
4543
4543
  id
@@ -4552,7 +4552,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4552
4552
  }
4553
4553
  }
4554
4554
  }
4555
- `));function RCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery($x,t)}function PCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery($x,t)}const Gx=(0,xe.J1)(Tx||(Tx=Dn`
4555
+ `));function PCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery($x,t)}function CCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery($x,t)}const Gx=(0,xe.J1)(Tx||(Tx=Dn`
4556
4556
  query getPatientPreferredProviders($patientId: String!) {
4557
4557
  getPatientPreferredProviders(input: { id: $patientId }) {
4558
4558
  entry {
@@ -4604,7 +4604,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4604
4604
  }
4605
4605
  }
4606
4606
  }
4607
- `));function CCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Gx,t)}function MCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Gx,t)}const Bx=(0,xe.J1)(mx||(mx=Dn`
4607
+ `));function MCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Gx,t)}function NCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Gx,t)}const Bx=(0,xe.J1)(mx||(mx=Dn`
4608
4608
  query getStore($zipCode: String!, $address: String, $city: String, $radius: Int) {
4609
4609
  getStore(input: { zipCode: $zipCode, address: $address, city: $city, radius: $radius }) {
4610
4610
  store {
@@ -4622,7 +4622,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4622
4622
  DriveThru
4623
4623
  }
4624
4624
  }
4625
- `));function NCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Bx,t)}function ICe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Bx,t)}const kx=(0,xe.J1)(Ax||(Ax=Dn`
4625
+ `));function ICe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Bx,t)}function LCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Bx,t)}const kx=(0,xe.J1)(Ax||(Ax=Dn`
4626
4626
  query getStoreHours($storeId: Int!) {
4627
4627
  getStoreHours(input: { storeId: $storeId }) {
4628
4628
  store {
@@ -4632,7 +4632,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4632
4632
  }
4633
4633
  }
4634
4634
  }
4635
- `));function LCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(kx,t)}function DCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(kx,t)}const jx=(0,xe.J1)(yx||(yx=Dn`
4635
+ `));function DCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(kx,t)}function wCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(kx,t)}const jx=(0,xe.J1)(yx||(yx=Dn`
4636
4636
  query identifiers {
4637
4637
  identifiers {
4638
4638
  patientId
@@ -4641,13 +4641,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4641
4641
  myChartAccountIdType
4642
4642
  }
4643
4643
  }
4644
- `));function wCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(jx,t)}function UCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(jx,t)}const n7=(0,xe.J1)(Ox||(Ox=Dn`
4644
+ `));function UCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(jx,t)}function xCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(jx,t)}const n7=(0,xe.J1)(Ox||(Ox=Dn`
4645
4645
  mutation patientLookupOrCreate($serviceName: String!, $departmentId: String!) {
4646
4646
  patientLookupOrCreate(input: { serviceName: $serviceName, departmentId: $departmentId }) {
4647
4647
  success
4648
4648
  }
4649
4649
  }
4650
- `));function xCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(n7,t)}const Hx=(0,xe.J1)(bx||(bx=Dn`
4650
+ `));function VCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(n7,t)}const Hx=(0,xe.J1)(bx||(bx=Dn`
4651
4651
  query providerVisitTypes(
4652
4652
  $patientId: String
4653
4653
  $patientIdType: String
@@ -4673,7 +4673,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4673
4673
  }
4674
4674
  }
4675
4675
  }
4676
- `));function VCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Hx,t)}function FCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Hx,t)}const Yx=(0,xe.J1)(Rx||(Rx=Dn`
4676
+ `));function FCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Hx,t)}function $Ce(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Hx,t)}const Yx=(0,xe.J1)(Rx||(Rx=Dn`
4677
4677
  query GetProtocolEngineQuestionnaire($input: ProtocolEngineInput!) {
4678
4678
  protocolEngineQuestionnaire(input: $input) {
4679
4679
  activeLinkID
@@ -4720,7 +4720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4720
4720
  }
4721
4721
  }
4722
4722
  }
4723
- `));function $Ce(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Yx,t)}function GCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Yx,t)}const i7=(0,xe.J1)(Px||(Px=Dn`
4723
+ `));function GCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(Yx,t)}function BCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(Yx,t)}const i7=(0,xe.J1)(Px||(Px=Dn`
4724
4724
  mutation rescheduleAppointment(
4725
4725
  $serviceName: String!
4726
4726
  $id: String!
@@ -4747,7 +4747,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4747
4747
  appointmentDAT
4748
4748
  }
4749
4749
  }
4750
- `));function BCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(i7,t)}const a7=(0,xe.J1)(Cx||(Cx=Dn`
4750
+ `));function kCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(i7,t)}const a7=(0,xe.J1)(Cx||(Cx=Dn`
4751
4751
  mutation rxTransfer(
4752
4752
  $patient: RxTransferPatient!
4753
4753
  $insurance: RxTransferInsurance!
@@ -4758,7 +4758,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4758
4758
  status
4759
4759
  }
4760
4760
  }
4761
- `));function kCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(a7,t)}const o7=(0,xe.J1)(Mx||(Mx=Dn`
4761
+ `));function jCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(a7,t)}const o7=(0,xe.J1)(Mx||(Mx=Dn`
4762
4762
  mutation schedulingAppointment(
4763
4763
  $service_name: String!
4764
4764
  $visit_type_id: String!
@@ -4795,7 +4795,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4795
4795
  appointmentType
4796
4796
  }
4797
4797
  }
4798
- `));function jCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(o7,t)}const qx=(0,xe.J1)(Nx||(Nx=Dn`
4798
+ `));function HCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(o7,t)}const qx=(0,xe.J1)(Nx||(Nx=Dn`
4799
4799
  query schedulingSlots(
4800
4800
  $service_name: String!
4801
4801
  $visit_type_id: String!
@@ -4835,7 +4835,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4835
4835
  lastScannedDate
4836
4836
  }
4837
4837
  }
4838
- `));function HCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(qx,t)}function YCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(qx,t)}const s7=(0,xe.J1)(Ix||(Ix=Dn`
4838
+ `));function YCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useQuery(qx,t)}function qCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useLazyQuery(qx,t)}const s7=(0,xe.J1)(Ix||(Ix=Dn`
4839
4839
  mutation updateGeneralPractitioner(
4840
4840
  $operationName: String
4841
4841
  $variables: UpdateGeneralPractitionerVariables
@@ -4847,7 +4847,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4847
4847
  }
4848
4848
  }
4849
4849
  ${0}
4850
- `),ZJ);function qCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(s7,t)}const u7=(0,xe.J1)(Lx||(Lx=Dn`
4850
+ `),ZJ);function WCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(s7,t)}const u7=(0,xe.J1)(Lx||(Lx=Dn`
4851
4851
  mutation UpdatePreferredProviders(
4852
4852
  $operationName: String
4853
4853
  $variables: UpdatePreferredProvidersVariables
@@ -4902,7 +4902,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4902
4902
  }
4903
4903
  }
4904
4904
  }
4905
- `));function WCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(u7,t)}const KCe=e=>useMutation(LoginMutation,e),QCe=e=>useMutation(SignUpMutation,e),zCe=e=>useMutation(EmailSignUpMutation,e),XCe=e=>useMutation(ConfirmSignUpMutation,e),JCe=e=>useMutation(ResendSignUpConfirmationMutation,e),ZCe=e=>useMutation(LogoutMutation,e),eMe=e=>useLazyQuery(ClientRecordQuery,e),tMe=e=>useQuery(MfaPreferenceQuery,e),rMe=e=>useMutation(ConfirmMfaCodeMutation,e),nMe=e=>useMutation(EnableSmsMFAMutation,e),iMe=e=>useMutation(DisableSMSMFAMutation,e),aMe=e=>useMutation(AddPhoneNumberMutation,e),oMe=e=>useMutation(VerifyPhoneNumberMutation,e),sMe=e=>useMutation(ResendVerifyPhoneNumberCodeMutation,e),uMe=e=>useMutation(ResetPasswordMutation,e),cMe=e=>useMutation(ForgotPasswordMutation,e),lMe=e=>useMutation(ConfirmPasswordMutation,e),fMe=e=>useQuery(GetPersonByRegCodeQuery,e),_Me=e=>useMutation(PublishUserNotificationPreferenceMutation,e),dMe=e=>useMutation(BiometricSignUpMutation,e),pMe=e=>useMutation(BiometricSignInMutation,e),hMe=e=>useMutation(DeleteBiometricKeysMutation,e),vMe=e=>useQuery(UserAccountDataQuery,e),SMe=e=>useMutation(UpdatePhoneNumberMutation,e),EMe=e=>useMutation(DeleteBiometricKeyMutation,e);let Wx=e=>e,Kx,Qx;const GR={context:{apiName:"identityGateway"}},zx=(0,xe.J1)(Kx||(Kx=Wx`
4905
+ `));function KCe(e){const t=Object.assign(Object.assign({},Ir),e);return Apollo.useMutation(u7,t)}const QCe=e=>useMutation(LoginMutation,e),zCe=e=>useMutation(SignUpMutation,e),XCe=e=>useMutation(EmailSignUpMutation,e),JCe=e=>useMutation(ConfirmSignUpMutation,e),ZCe=e=>useMutation(ResendSignUpConfirmationMutation,e),eMe=e=>useMutation(LogoutMutation,e),tMe=e=>useLazyQuery(ClientRecordQuery,e),rMe=e=>useQuery(MfaPreferenceQuery,e),nMe=e=>useMutation(ConfirmMfaCodeMutation,e),iMe=e=>useMutation(EnableSmsMFAMutation,e),aMe=e=>useMutation(DisableSMSMFAMutation,e),oMe=e=>useMutation(AddPhoneNumberMutation,e),sMe=e=>useMutation(VerifyPhoneNumberMutation,e),uMe=e=>useMutation(ResendVerifyPhoneNumberCodeMutation,e),cMe=e=>useMutation(ResetPasswordMutation,e),lMe=e=>useMutation(ForgotPasswordMutation,e),fMe=e=>useMutation(ConfirmPasswordMutation,e),_Me=e=>useQuery(GetPersonByRegCodeQuery,e),dMe=e=>useMutation(PublishUserNotificationPreferenceMutation,e),pMe=e=>useMutation(BiometricSignUpMutation,e),hMe=e=>useMutation(BiometricSignInMutation,e),vMe=e=>useMutation(DeleteBiometricKeysMutation,e),SMe=e=>useQuery(UserAccountDataQuery,e),EMe=e=>useMutation(UpdatePhoneNumberMutation,e),gMe=e=>useMutation(DeleteBiometricKeyMutation,e);let Wx=e=>e,Kx,Qx;const GR={context:{apiName:"identityGateway"}},zx=(0,xe.J1)(Kx||(Kx=Wx`
4906
4906
  query AccountDeletionStatusByClientPerson($clientPersonId: String!) {
4907
4907
  accountDeletionStatusByClientPerson(clientPersonId: $clientPersonId) {
4908
4908
  resourceType
@@ -4919,7 +4919,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4919
4919
  }
4920
4920
  }
4921
4921
  }
4922
- `));function gMe(e){const t=Object.assign(Object.assign({},GR),e);return Apollo.useQuery(zx,t)}function TMe(e){const t=Object.assign(Object.assign({},GR),e);return Apollo.useLazyQuery(zx,t)}const c7=(0,xe.J1)(Qx||(Qx=Wx`
4922
+ `));function TMe(e){const t=Object.assign(Object.assign({},GR),e);return Apollo.useQuery(zx,t)}function mMe(e){const t=Object.assign(Object.assign({},GR),e);return Apollo.useLazyQuery(zx,t)}const c7=(0,xe.J1)(Qx||(Qx=Wx`
4923
4923
  mutation UpdateUserAccountStatus($operation: Operation!) {
4924
4924
  updateUserAccountStatus(operation: $operation) {
4925
4925
  resourceType
@@ -4932,7 +4932,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4932
4932
  }
4933
4933
  }
4934
4934
  }
4935
- `));function mMe(e){const t=Object.assign(Object.assign({},GR),e);return Apollo.useMutation(c7,t)}let BR=e=>e,Xx,Jx,Zx;const XE={context:{apiName:"healthCircle"}},eV=(0,xe.J1)(Xx||(Xx=BR`
4935
+ `));function AMe(e){const t=Object.assign(Object.assign({},GR),e);return Apollo.useMutation(c7,t)}let BR=e=>e,Xx,Jx,Zx;const XE={context:{apiName:"healthCircle"}},eV=(0,xe.J1)(Xx||(Xx=BR`
4936
4936
  query GetHealthCircleMembers($patientId: ID!) {
4937
4937
  healthCircle(patientId: $patientId) {
4938
4938
  id
@@ -4956,7 +4956,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4956
4956
  status
4957
4957
  }
4958
4958
  }
4959
- `));function AMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useQuery(eV,t)}function yMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useLazyQuery(eV,t)}const l7=(0,xe.J1)(Jx||(Jx=BR`
4959
+ `));function yMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useQuery(eV,t)}function OMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useLazyQuery(eV,t)}const l7=(0,xe.J1)(Jx||(Jx=BR`
4960
4960
  mutation InviteMember($input: InvitationInput!) {
4961
4961
  inviteMember(input: $input) {
4962
4962
  email
@@ -4980,11 +4980,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4980
4980
  relatedPersonId
4981
4981
  }
4982
4982
  }
4983
- `));function OMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useMutation(l7,t)}const f7=(0,xe.J1)(Zx||(Zx=BR`
4983
+ `));function bMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useMutation(l7,t)}const f7=(0,xe.J1)(Zx||(Zx=BR`
4984
4984
  mutation RemoveMember($memberId: ID!) {
4985
4985
  removeMember(memberId: $memberId)
4986
4986
  }
4987
- `));function bMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useMutation(f7,t)}let JE=e=>e,tV,rV,nV,iV;const Yc={context:{apiName:"consent"}},_7=(0,xe.J1)(tV||(tV=JE`
4987
+ `));function RMe(e){const t=Object.assign(Object.assign({},XE),e);return Apollo.useMutation(f7,t)}let JE=e=>e,tV,rV,nV,iV;const Yc={context:{apiName:"consent"}},_7=(0,xe.J1)(tV||(tV=JE`
4988
4988
  mutation CreateQuestionnaireResponse(
4989
4989
  $data: String!
4990
4990
  $patientId: String!
@@ -5008,7 +5008,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5008
5008
  questionnaireName
5009
5009
  }
5010
5010
  }
5011
- `));function RMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useMutation(_7,t)}const aV=(0,xe.J1)(rV||(rV=JE`
5011
+ `));function PMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useMutation(_7,t)}const aV=(0,xe.J1)(rV||(rV=JE`
5012
5012
  query GetConsent($patientId: String!, $questionnaireId: String, $questionnaireName: String, $searchParams: String) {
5013
5013
  consent(
5014
5014
  patientId: $patientId
@@ -5039,7 +5039,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5039
5039
  provision
5040
5040
  }
5041
5041
  }
5042
- `));function PMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useQuery(aV,t)}function CMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useLazyQuery(aV,t)}const oV=(0,xe.J1)(nV||(nV=JE`
5042
+ `));function CMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useQuery(aV,t)}function MMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useLazyQuery(aV,t)}const oV=(0,xe.J1)(nV||(nV=JE`
5043
5043
  query GetQuestionnaire($name: String) {
5044
5044
  questionnaire(name: $name) {
5045
5045
  model {
@@ -5061,7 +5061,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5061
5061
  uiSchema
5062
5062
  }
5063
5063
  }
5064
- `));function MMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useQuery(oV,t)}function NMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useLazyQuery(oV,t)}const sV=(0,xe.J1)(iV||(iV=JE`
5064
+ `));function NMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useQuery(oV,t)}function IMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useLazyQuery(oV,t)}const sV=(0,xe.J1)(iV||(iV=JE`
5065
5065
  query GetQuestionnaireResponse(
5066
5066
  $patientId: String!
5067
5067
  $questionnaireId: String
@@ -5079,7 +5079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5079
5079
  questionnaireName
5080
5080
  }
5081
5081
  }
5082
- `));function IMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useQuery(sV,t)}function LMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useLazyQuery(sV,t)}const DMe=e=>useMutation(CreateOauthThirdPartyConnection,e),wMe=e=>useMutation(DisconnectUserToken,e),UMe=e=>useMutation(CreateConnectionStatus,e),xMe=e=>useQuery(GetMemberConnections,e),VMe=e=>useQuery(GetConnections,e),FMe=e=>useQuery(GetConnection,e),$Me=e=>useQuery(GetOauthGeneratedUrl,e);var uV=g(46),bp,ZE;class cV{constructor(){this.type="backend",bp.set(this,void 0),ZE.set(this,void 0)}init(t,{clientSlug:r,apiClient:n}){if(!n)throw t.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');Ys(this,bp,r,"f"),Ys(this,ZE,Aw(n),"f")}read(t,r,n){return YE(this,void 0,void 0,function*(){try{const{translation:i}=yield Hr(this,ZE,"f").getClientTranslations({name:Hr(this,bp,"f"),key:r,lang:t});n(null,i?.json||{})}catch{const a=`Error fetching translation with key "${r}" and client "${Hr(this,bp,"f")||"N/A"}".`;n(a,null)}})}}bp=new WeakMap,ZE=new WeakMap,cV.type="backend";var wf;class lV{constructor(t){this.type="logger",wf.set(this,void 0),Ys(this,wf,t,"f")}log([t,r,...n]){Hr(this,wf,"f").info({meta:r},t,...n)}warn([t,r,...n]){Hr(this,wf,"f").error({meta:r},t,...n)}error([t,r,...n]){Hr(this,wf,"f").error({meta:r},t,...n)}}wf=new WeakMap,lV.type="logger";var Rp,qc,Pp,Ri,Wc;const fV="appLanguage";class kR{constructor({keys:t,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:a,parent:u,debug:c=!1,remoteConfig:v={}}){Rp.set(this,void 0),qc.set(this,void 0),Pp.set(this,void 0),Ri.set(this,void 0),Wc.set(this,void 0),Ys(this,Rp,new uV,"f"),Ys(this,qc,t,"f"),Ys(this,Pp,n,"f"),Ys(this,Wc,r,"f");const _={lng:i,fallbackNS:Hr(this,Pp,"f"),debug:c,defaultNS:t,returnNull:!1};u?Ys(this,Ri,u.cloneInstance(_),"f"):(Ys(this,Ri,uQ.createInstance(),"f"),a&&Hr(this,Ri,"f").use(new lV(a.child({library:"@icanbwell/i18n"}))),v.apiClient&&Hr(this,Ri,"f").use(cV),Hr(this,Ri,"f").init(Object.assign(Object.assign({},_),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:v,saveMissing:!0,missingKeyHandler:(S,A,Q)=>Hr(this,Ri,"f").services.logger.error(`missing key: ${Q}; language: ${S}; key: ${A}`)}))),this.t=Hr(this,Ri,"f").t,this.resolvedLanguage=Hr(this,Ri,"f").resolvedLanguage||i}load(){var t;return YE(this,void 0,void 0,function*(){const r=(yield(t=Hr(this,Wc,"f"))===null||t===void 0?void 0:t.storage.getItem(fV))||this.resolvedLanguage;if(r!==this.resolvedLanguage&&(yield Hr(this,Ri,"f").changeLanguage(r)),yield Hr(this,Ri,"f").loadNamespaces(Hr(this,qc,"f")),Hr(this,qc,"f").some(n=>!Hr(this,Ri,"f").hasResourceBundle(r,n)))throw new Error("Error loading translations.");return this})}child(t){return new kR(Object.assign(Object.assign({},t),{nativeBridge:Hr(this,Wc,"f"),fallbackKeys:[...Hr(this,Pp,"f"),...Hr(this,qc,"f")],parent:Hr(this,Ri,"f"),defaultLanguage:Hr(this,Ri,"f").language}))}get isLoaded(){return Hr(this,qc,"f").every(t=>Hr(this,Ri,"f").hasResourceBundle(Hr(this,Ri,"f").language,t))}changeLanguage(t){var r;return YE(this,void 0,void 0,function*(){this.resolvedLanguage=t,yield Hr(this,Ri,"f").changeLanguage(t),Hr(this,Rp,"f").emit("changeLanguage",t),yield(r=Hr(this,Wc,"f"))===null||r===void 0?void 0:r.storage.setItem(fV,t),Hr(this,Wc,"f").reloadView()})}onChangeLanguage(t){Hr(this,Rp,"f").on("changeLanguage",t)}}Rp=new WeakMap,qc=new WeakMap,Pp=new WeakMap,Ri=new WeakMap,Wc=new WeakMap;var jR=g(1827),Cp;(function(e){e.one="1.0.0"})(Cp||(Cp={}));const eg="orchestrator:native-bridge",d7={id:eg,dependencies:{featureServices:{}},create:()=>({[Cp.one]:()=>({featureService:jR.b})})};var tg;(function(e){e.one="1.0.0"})(tg||(tg={}));const _V="orchestrator:translation-service",p7={id:_V,dependencies:{featureServices:{[ia]:na.one,[cp]:bf.one,[Fn]:bn.one,[zd]:gf.one,[eg]:Cp.one}},create:({featureServices:e})=>{const t=e[ia],r=e[cp],n=e[zd],{slug:i}=e[Fn].getClientContext(),a=e[eg],u=new kR({keys:[],nativeBridge:a,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:t}});return n.setProfileProperties({language:u.resolvedLanguage}),u.onChangeLanguage(c=>n.setProfileProperties({language:c})),{[tg.one]:()=>({featureService:u})}}};var Uf,xf,rg,Kc;const ng="tokens";class h7{constructor({apiClient:t,stateService:r,identityGatewaySdk:n,storage:i}){Uf.set(this,void 0),xf.set(this,void 0),rg.set(this,void 0),Kc.set(this,void 0),(0,I.GG)(this,Uf,t,"f"),(0,I.GG)(this,xf,r,"f"),(0,I.GG)(this,rg,n,"f"),(0,I.GG)(this,Kc,i,"f")}getStoredTokens(){const t=(0,I.gn)(this,Kc,"f").getItem(ng);return t?JSON.parse(t):void 0}removeStoredTokens(){(0,I.gn)(this,Kc,"f").removeItem(ng)}storeTokens(t){(0,I.gn)(this,Kc,"f").setItem(ng,JSON.stringify(t))}logout(){return(0,I.sH)(this,void 0,void 0,function*(){const t=(0,I.gn)(this,xf,"f").getUserTokenData().accessToken.jwtToken,{key:r}=(0,I.gn)(this,xf,"f").getClientContext();yield(0,I.gn)(this,rg,"f").logout({accessToken:t},{context:{headers:{clientKey:r}}}),(0,I.gn)(this,Uf,"f").stop(),(0,I.gn)(this,Uf,"f").clearAuth(),yield(0,I.gn)(this,Uf,"f").clearStore(),(0,I.gn)(this,xf,"f").logoutUser(),(0,I.gn)(this,Kc,"f").removeItem(ng)})}}Uf=new WeakMap,xf=new WeakMap,rg=new WeakMap,Kc=new WeakMap;var ig;(function(e){e.one="1.0.0"})(ig||(ig={}));const dV="orchestrator:identity-utils",v7={id:dV,dependencies:{featureServices:{[ia]:na.one,[cp]:bf.one,[Fn]:bn.one,[zd]:gf.one}},create:({featureServices:e})=>{const t=e[ia];return{[ig.one]:()=>({featureService:new h7({apiClient:t,stateService:e[Fn],identityGatewaySdk:IU(t),storage:window.sessionStorage})})}}};var ag;(function(e){e.one="1.0.0"})(ag||(ag={}));const pV="orchestrator:globaleventemitter-service",S7=e=>({id:pV,create:()=>({[ag.one]:()=>({featureService:e})})});var og;(function(e){e.one="1.0.0"})(og||(og={}));const hV="orchestrator:reboot-controller",E7=e=>({id:hV,create:()=>({[og.one]:()=>({featureService:e})})});class Vi extends Error{constructor(t,r){super(t),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(t){return t instanceof Vi}}class GMe extends Vi{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class BMe extends Vi{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class kMe extends Vi{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class g7 extends Vi{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class T7 extends Vi{constructor(t,r){super(t),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class Qc extends Vi{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class m7 extends Vi{constructor(t,r){super(t),this.status=r,this.name="NetworkError"}}class A7 extends Vi{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class HR extends Vi{constructor(t,r){super(t),this.data=r,this.name="UnknownError"}}class y7 extends Vi{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class Lr{constructor(t,r){this.data=t,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(t){return new Lr(void 0,t)}}var vV=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},sg=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Mp,Np;class vr{static success(t){return new O7(t)}static failure(t){return new ug(t)}}class O7 extends vr{constructor(t){super(),Mp.set(this,void 0),vV(this,Mp,t,"f")}data(){return sg(this,Mp,"f")}error(){throw sg(this,Mp,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new Lr(this.data())}}Mp=new WeakMap;class ug extends vr{constructor(t){super(),Np.set(this,void 0),vV(this,Np,t,"f")}data(){throw sg(this,Np,"f")}error(){return sg(this,Np,"f")}success(){return!1}failure(){return!0}intoFailure(){return vr.failure(this.error())}toQueryResult(){return new Lr(void 0,this.error())}}Np=new WeakMap;var YR=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ip;class b7{constructor(){Ip.set(this,[])}add(t){YR(this,Ip,"f").push(t)}errors(){return YR(this,Ip,"f")}hasErrors(){return YR(this,Ip,"f").length>0}}Ip=new WeakMap;var SV=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qR=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Lp,cg;class R7{constructor(t){Lp.set(this,void 0),cg.set(this,void 0),SV(this,cg,t,"f"),SV(this,Lp,this.transformInput(t),"f")}validate(){return vr.success(null)}data(){return qR(this,Lp,"f")}toJSON(){return qR(this,Lp,"f")}transformInput(t){return t}input(){return qR(this,cg,"f")}}Lp=new WeakMap,cg=new WeakMap;class qs extends R7{validate(){const t=new b7;return this.validator.validate(this.input(),t),t.hasErrors()?vr.failure(new y7(t.errors())):vr.success(null)}}var EV=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},lg,gV,TV;const mV=100,P7=20;class Vf{constructor(){lg.add(this)}validate(t,r){EV(this,lg,"m",gV).call(this,t.page,r),EV(this,lg,"m",TV).call(this,t.pageSize,r)}}lg=new WeakSet,gV=function(t,r){t<0&&r.add("page must be a positive number")},TV=function(t,r){t!==void 0&&(t<=0&&r.add("Page size must be greater than 0"),t>mV&&r.add(`Page size must not exceed ${mV}`))};class Dp extends qs{constructor(){super(...arguments),this.validator=new Vf}transformInput(t){return Object.assign({pageSize:P7},t)}}function C7(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function M7(){return typeof window<"u"}function AV(){if(M7())return"browser";if(C7())return"node";throw new Error("Invalid runtime")}function N7(e){switch(AV()){case"browser":return e.browser();case"node":return e.node()}}function yV(e){switch(AV()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function Fi(e){return e!=null}function OV(e){return e==null}function La(e){return e===void 0}function $i(e){return e!==void 0}function I7(e){return JSON.parse(yV(e)).env}const L7=3;function bV(e){const t=e.split("."),r=t[1];if(r===void 0||t.length!==L7)throw new Qc("Token is missing data and may be corrupted");try{return JSON.parse(yV(r))}catch(n){const i=n;throw new Qc(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function D7(e){const r=bV(e).exp;if(typeof r!="number")throw new Qc("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const w7="custom:clientFhirPersonId",U7="custom:bwellFhirPatientId";function x7(e){const t=bV(e),r=t[U7],n=t[w7];if(Fi(r)&&Fi(n))return{bwellFhirPersonId:r,clientFhirPersonId:n};throw new Qc("The idToken does not contain a bwellFhirPerson and/or a clientFhirPersonId")}function wu(e){return e.trim()===""}const V7="0.2.0";function F7(){return V7}var RV;(function(e){e.Both="both",e.Physical="physical",e.Postal="postal"})(RV||(RV={}));var PV;(function(e){e.Billing="billing",e.Home="home",e.Old="old",e.Temp="temp",e.Work="work"})(PV||(PV={}));var CV;(function(e){e.Batch="BATCH",e.BatchResponse="BATCH_RESPONSE",e.Collection="COLLECTION",e.Document="DOCUMENT",e.History="HISTORY",e.Message="MESSAGE",e.Searchset="SEARCHSET",e.Transaction="TRANSACTION",e.TransactionResponse="TRANSACTION_RESPONSE"})(CV||(CV={}));var fg;(function(e){e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(fg||(fg={}));var MV;(function(e){e.Proa="proa",e.Samsung="samsung"})(MV||(MV={}));var NV;(function(e){e.Basic="BASIC",e.Oauth="OAUTH"})(NV||(NV={}));var WR;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(WR||(WR={}));var KR;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(KR||(KR={}));var IV;(function(e){e.Usd="USD"})(IV||(IV={}));var LV;(function(e){e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(LV||(LV={}));var DV;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Practitioner="PRACTITIONER"})(DV||(DV={}));var _g;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(_g||(_g={}));var wV;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(wV||(wV={}));var UV;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(UV||(UV={}));var QR;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(QR||(QR={}));var zR;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(zR||(zR={}));var XR;(function(e){e.Person="Person"})(XR||(XR={}));var xV;(function(e){e.Questionnaire="Questionnaire"})(xV||(xV={}));var JR;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(JR||(JR={}));var VV;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(VV||(VV={}));var FV;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(FV||(FV={}));var $V;(function(e){e.Official="official",e.Old="old",e.Secondary="secondary",e.Temp="temp",e.Usual="usual"})($V||($V={}));var GV;(function(e){e.Clicked="clicked"})(GV||(GV={}));var ZR;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(ZR||(ZR={}));var BV;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(BV||(BV={}));var kV;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.RequestDelete="REQUEST_DELETE"})(kV||(kV={}));var eP;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(eP||(eP={}));var jV;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(jV||(jV={}));var HV;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(HV||(HV={}));var tP;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(tP||(tP={}));var rP;(function(e){e.Asc="asc",e.Desc="desc"})(rP||(rP={}));var YV;(function(e){e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(YV||(YV={}));var nP;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(nP||(nP={}));var qV;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(qV||(qV={}));const $7=new Set(Object.values(zR));function WV(e){return $7.has(e)}const G7=new Set(Object.values(KR));function B7(e){return G7.has(e)}const k7=new Set(Object.values(fg));function KV(e){return k7.has(e)}const j7=new Set(Object.values(WR));function H7(e){return j7.has(e)}class Y7{validate(t,r){!La(t.gender)&&!WV(t.gender)&&r.add(`Invalid gender value: "${t.gender}"`)}}class jMe extends qs{constructor(){super(...arguments),this.validator=new Y7}}class q7{validate(t,r){KV(t.category)||r.add(`Invalid consent category code: "${t.category}"`)}}class HMe extends qs{constructor(){super(...arguments),this.validator=new q7}}class W7{validate(t,r){B7(t.status)||r.add(`Invalid consent status: "${t.status}"`),H7(t.provision)||r.add(`Invalid consent provision type: "${t.provision}"`),KV(t.category)||r.add(`Invalid consent category code: "${t.category}"`),!La(t.organizationId)&&wu(t.organizationId)&&r.add("organizationId cannot be empty"),t.category===fg.ProaAttestation&&La(t.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class YMe extends qs{constructor(){super(...arguments),this.validator=new W7}}var Da=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},la,Uu,QV,zV,XV,JV,ZV,eF;class K7{constructor(){la.add(this)}validate(t,r){if(!t.values||t.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of t.values)Da(this,la,"m",QV).call(this,n,r)}}la=new WeakSet,Uu=function(t,r){t&&t!==null&&isNaN(t.getTime())&&r.add("The date is not valid")},QV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t,A=[n,i,a,u,c,v,_].filter(Q=>Q!=null).length;if(A===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}Da(this,la,"m",zV).call(this,t,A,r),Da(this,la,"m",ZV).call(this,t,r),Da(this,la,"m",eF).call(this,t,r)},zV=function(t,r,n){const{equals:i,notEquals:a,approximately:u}=t;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(a&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(u&&r>1){n.add("The approximately value cannot be set with any other values");return}Da(this,la,"m",XV).call(this,t,n),Da(this,la,"m",JV).call(this,t,n)},XV=function(t,r){t.greaterThan&&t.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},JV=function(t,r){t.lessThan&&t.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},ZV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t;n&&Da(this,la,"m",Uu).call(this,n,r),i&&Da(this,la,"m",Uu).call(this,i,r),a&&Da(this,la,"m",Uu).call(this,a,r),u&&Da(this,la,"m",Uu).call(this,u,r),c&&Da(this,la,"m",Uu).call(this,c,r),v&&Da(this,la,"m",Uu).call(this,v,r),_&&Da(this,la,"m",Uu).call(this,_,r)},eF=function(t,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:a,lessThanOrEqualTo:u}=t;n&&u&&n>=u&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&a&&i>=a&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&a&&n>=a&&r.add("The greaterThan value must be less than the lessThan value"),i&&u&&i>=u&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var tF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},dg;class Q7{constructor(){dg.set(this,new z7)}validate(t,r){var n;if(t.value===void 0&&t.values===void 0){r.add("Either SearchToken value or values must be provided");return}if(t.value!==void 0&&tF(this,dg,"f").validate(t.value,r),t.values!==void 0&&t.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=t.values)!==null&&n!==void 0?n:[])tF(this,dg,"f").validate(i,r)}}dg=new WeakMap;class z7{validate(t,r){!t.system&&!t.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var rF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},iP,aP;class X7 extends Vf{constructor(){super(...arguments),iP.set(this,new Q7),aP.set(this,new K7)}validate(t,r){super.validate(t,r),t.groupCode&&rF(this,iP,"f").validate(t.groupCode,r),t.lastUpdated&&rF(this,aP,"f").validate(t.lastUpdated,r)}}iP=new WeakMap,aP=new WeakMap;class qMe extends Dp{constructor(){super(...arguments),this.validator=new X7}}class WMe extends null{}class KMe extends null{}class QMe extends null{}class zMe extends null{}class XMe extends null{}class JMe extends null{}class ZMe extends null{}class eNe extends null{}class tNe extends null{}class rNe extends null{}class nNe extends null{}class iNe extends null{}class aNe extends null{}class oNe extends null{}class sNe extends null{}class uNe extends null{}class cNe extends null{}class lNe extends null{}class J7 extends Vf{validate(t,r){wu(t.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(t,r)}}class fNe extends Dp{constructor(){super(...arguments),this.validator=new J7}}class Z7 extends Vf{validate(t,r){wu(t.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(t,r)}}class _Ne extends Dp{constructor(){super(...arguments),this.validator=new Z7}}const e9=new Set(Object.values(nP));function nF(e){return e9.has(e)}var t9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},oP,iF;class r9 extends Vf{constructor(){super(...arguments),oP.add(this)}validate(t,r){if(super.validate(t,r),!La(t.status)){const n=Array.isArray(t.status)?t.status:[t.status];for(const i of n)t9(this,oP,"m",iF).call(this,i,r)}}}oP=new WeakSet,iF=function(t,r){nF(t)||r.add(`Invalid task status: "${t}"`)};class dNe extends Dp{constructor(){super(...arguments),this.validator=new r9}}class n9{validate(t,r){nF(t.newStatus)||r.add(`Invalid task status: "${t.newStatus}"`)}}class pNe extends qs{constructor(){super(...arguments),this.validator=new n9}}var pg=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ff,aF,oF,sF,uF;class hNe extends Dp{constructor(){super(...arguments),this.validator=new i9}}class i9 extends Vf{constructor(){super(...arguments),Ff.add(this)}validate(t,r){super.validate(t,r),$i(t.organizationTypeFilters)&&pg(this,Ff,"m",aF).call(this,t.organizationTypeFilters,r),$i(t.sortBy)&&pg(this,Ff,"m",oF).call(this,t.sortBy,r),$i(t.filterFields)&&pg(this,Ff,"m",sF).call(this,t.filterFields,r),$i(t.gender)&&pg(this,Ff,"m",uF).call(this,t.gender,r)}}Ff=new WeakSet,aF=function(t,r){for(const n of t)o9(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},oF=function(t,r){$i(t.field)&&!u9(t.field)&&r.add(`Invalid sortBy.field value: "${t.field}"`),$i(t.order)&&!l9(t.order)&&r.add(`Invalid sortBy.order value: "${t.order}"`)},sF=function(t,r){for(const n of t)_9(n)||r.add(`Invalid filterField value: "${n}"`)},uF=function(t,r){WV(t)||r.add(`Invalid gender value: "${t}"`)};const a9=new Set(Object.values(eP));function o9(e){return a9.has(e)}const s9=new Set(Object.values(tP));function u9(e){return s9.has(e)}const c9=new Set(Object.values(rP));function l9(e){return c9.has(e)}const f9=new Set(Object.values(JR));function _9(e){return f9.has(e)}class vNe extends null{}const d9="data-connection-status";var p9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},sP;const h9="connectionId cannot be null or empty",v9="username cannot be null or empty",S9="password cannot be null or empty";class cF{validate(t,r){t.connectionId===""&&r.add(h9)}}class E9{constructor(){sP.set(this,new cF)}validate(t,r){p9(this,sP,"f").validate(t,r),t.username===""&&r.add(v9),t.password===""&&r.add(S9)}}sP=new WeakMap;class g9 extends qs{constructor(){super(...arguments),this.validator=new cF}}class SNe extends null{}class ENe extends g9{constructor(){super(...arguments),this.validator=new E9}}const T9="deviceToken is required",m9="platformName must be a valid DevicePlatform value",A9="applicationName is required";var uP;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(uP||(uP={}));const y9=new Set(Object.values(uP));function O9(e){return y9.has(e)}function b9(e){return!O9(e)}class lF{validate(t,r){wu(t.deviceToken)&&r.add(T9)}}class R9 extends lF{validate(t,r){super.validate(t,r),b9(t.platformName.toUpperCase())&&r.add(m9),wu(t.applicationName)&&r.add(A9)}}class gNe extends qs{constructor(){super(...arguments),this.validator=new R9}}class TNe extends qs{constructor(){super(...arguments),this.validator=new lF}}const P9="string parameter serializedNotification must be provided",C9="serialized notification must have a non-empty notification_id field of type string",fF="serialized notification must have an itbl object containing a non-empty messageId field of type string",M9="parsed notification must be a non-null object.",N9="serialized notification is not valid JSON.";class I9{validate(t,r){if(La(t.serializedNotification)||typeof t.serializedNotification!="string"||wu(t.serializedNotification)){r.add(P9);return}let n=null;try{n=JSON.parse(t.serializedNotification)}catch{r.add(N9);return}if(typeof n!="object"||n===null){r.add(M9);return}const{itbl:i,notification_id:a}=n;if((La(a)||typeof a!="string"||wu(a))&&r.add(C9),typeof i!="object"||OV(i)){r.add(fF);return}(La(i.messageId)||typeof i.messageId!="string"||wu(i.messageId))&&r.add(fF)}}class mNe extends qs{constructor(){super(...arguments),this.validator=new I9}}var cP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};class _F{constructor(t=new Map){this.storage=t}get(t){return cP(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,r){return cP(this,void 0,void 0,function*(){this.storage.set(t,r)})}delete(t){return cP(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const L9={logLevel:ZR.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new _F};var Ws;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(Ws||(Ws={}));var D9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},dF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wp,Cr;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Cr||(Cr={}));const w9={[Cr.VERBOSE]:"VERBOSE",[Cr.DEBUG]:"DEBUG",[Cr.INFO]:"INFO",[Cr.WARN]:"WARN",[Cr.ERROR]:"ERROR",[Cr.FATAL]:"FATAL"};class $f{constructor(t){wp.set(this,void 0),D9(this,wp,t,"f")}get severity(){return dF(this,wp,"f")}shouldLog(t){return t>=dF(this,wp,"f")}static severityText(t){return w9[t]}static severityFromText(t){switch(t){case"VERBOSE":return Cr.VERBOSE;case"DEBUG":return Cr.DEBUG;case"INFO":return Cr.INFO;case"WARN":return Cr.WARN;case"ERROR":return Cr.ERROR;case"FATAL":return Cr.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}wp=new WeakMap;var lP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ss=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},xu,pF,hg,Up,vg,zc;class hF{constructor(t,r,n){xu.add(this),hg.set(this,void 0),Up.set(this,void 0),vg.set(this,void 0),lP(this,hg,n,"f"),lP(this,Up,new $f(t),"f"),lP(this,vg,r,"f")}name(){return ss(this,hg,"f")}severity(){return ss(this,Up,"f").severity}verbose(t,r){ss(this,xu,"m",zc).call(this,Cr.VERBOSE,t,r)}debug(t,r){ss(this,xu,"m",zc).call(this,Cr.DEBUG,t,r)}info(t,r){ss(this,xu,"m",zc).call(this,Cr.INFO,t,r)}warn(t,r){ss(this,xu,"m",zc).call(this,Cr.WARN,t,r)}error(t,r){let n;r instanceof vr&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),ss(this,xu,"m",zc).call(this,Cr.ERROR,t,n)}fatal(t,r){ss(this,xu,"m",zc).call(this,Cr.FATAL,t,r)}static otelSeverityNumber(t){switch(t){case Cr.VERBOSE:return Ws.TRACE;case Cr.DEBUG:return Ws.DEBUG;case Cr.INFO:return Ws.INFO;case Cr.WARN:return Ws.WARN;case Cr.ERROR:return Ws.ERROR;case Cr.FATAL:return Ws.FATAL;default:return Ws.UNSPECIFIED}}}pF=hF,hg=new WeakMap,Up=new WeakMap,vg=new WeakMap,xu=new WeakSet,zc=function(t,r,n){!ss(this,Up,"f").shouldLog(t)||ss(this,vg,"f").emit({timestamp:Date.now(),severityNumber:pF.otelSeverityNumber(t),severityText:$f.severityText(t),body:r,attributes:n??{}})};var vF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},SF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Sg,Eg;class U9{constructor(t,r){Sg.set(this,void 0),Eg.set(this,void 0),vF(this,Eg,t,"f"),vF(this,Sg,r.loggerProvider(),"f")}getLogger(t){const r=t??"default",n=SF(this,Sg,"f").getLogger(r);return new hF(SF(this,Eg,"f"),n,r)}}Sg=new WeakMap,Eg=new WeakMap;class x9{format(t,r,n,i){let u=`[${new Date().toISOString()}] ${$f.severityText(t)}`;return n!==void 0&&(u+=` (${n})`),u+=`: ${r}`,i===void 0?[u]:[u,i]}}var fP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},si=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},us,cs,Ks;class V9{constructor(t,r){us.set(this,void 0),cs.set(this,void 0),Ks.set(this,void 0),fP(this,cs,new $f(t),"f"),fP(this,us,r,"f"),fP(this,Ks,new x9,"f")}name(){return si(this,us,"f")}severity(){return si(this,cs,"f").severity}verbose(t,r){si(this,cs,"f").shouldLog(Cr.VERBOSE)&&console.debug(...si(this,Ks,"f").format(Cr.VERBOSE,t,si(this,us,"f"),r))}debug(t,r){si(this,cs,"f").shouldLog(Cr.DEBUG)&&console.debug(...si(this,Ks,"f").format(Cr.DEBUG,t,si(this,us,"f"),r))}info(t,r){si(this,cs,"f").shouldLog(Cr.INFO)&&console.info(...si(this,Ks,"f").format(Cr.INFO,t,si(this,us,"f"),r))}warn(t,r){si(this,cs,"f").shouldLog(Cr.WARN)&&console.warn(...si(this,Ks,"f").format(Cr.WARN,t,si(this,us,"f"),r))}error(t,r){let n=r;r instanceof vr&&(n=r.failure()?r.error():r.data()),si(this,cs,"f").shouldLog(Cr.ERROR)&&console.error(...si(this,Ks,"f").format(Cr.ERROR,t,si(this,us,"f"),n))}fatal(t,r){si(this,cs,"f").shouldLog(Cr.FATAL)&&console.error(...si(this,Ks,"f").format(Cr.FATAL,t,si(this,us,"f"),r))}}us=new WeakMap,cs=new WeakMap,Ks=new WeakMap;var F9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},$9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},gg;class wa{constructor(t=Cr.FATAL){gg.set(this,void 0),F9(this,gg,t,"f")}getLogger(t){return new V9($9(this,gg,"f"),t)}}gg=new WeakMap;var G9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},_P,EF;class B9{constructor(){_P.add(this)}createLogProvider(t,r){switch(G9(this,_P,"m",EF).call(this,t)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new U9(t.logLevel,r);case"console":return new wa(t.logLevel)}}}_P=new WeakSet,EF=function(t){return t.telemetry.enabled?"otel":"console"};var vn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Qs=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Ja,Gf,Vu,Bf,Fu,Xc,dP,gF,TF,mF,AF,yF,OF,bF,RF,PF,CF,Tg;(function(e){e.OAuth="OAUTH"})(Tg||(Tg={}));class mg{constructor(t){Ja.add(this),Gf.set(this,void 0),Vu.set(this,void 0),Bf.set(this,void 0),Fu.set(this,void 0),Xc.set(this,void 0),dP.set(this,Tg.OAuth),this.bwellConfig=vn(this,Ja,"m",yF).call(this,t),Qs(this,Gf,$f.severityFromText(this.bwellConfig.logLevel),"f"),Qs(this,Xc,vn(this,Ja,"m",CF).call(this),"f"),Qs(this,Bf,vn(this,Ja,"m",bF).call(this),"f"),Qs(this,Vu,vn(this,Ja,"m",RF).call(this),"f"),Qs(this,Fu,vn(this,Ja,"m",PF).call(this),"f")}static initialize(t){try{const r=new mg(t);return vr.success(r)}catch(r){if(Vi.isBwellError(r))return vr.failure(r);throw r}}get logLevel(){return vn(this,Gf,"f")}get graphQL(){return vn(this,Bf,"f")}get telemetry(){return vn(this,Vu,"f")}get http(){return vn(this,Fu,"f")}get context(){return vn(this,Xc,"f")}get authType(){return vn(this,dP,"f")}setContextUser(t){vn(this,Xc,"f").user=t}mergeRemoteConfig(t){Qs(this,Gf,vn(this,Ja,"m",gF).call(this,t),"f"),Qs(this,Bf,Object.freeze(vn(this,Ja,"m",TF).call(this,t)),"f"),Qs(this,Vu,Object.freeze(vn(this,Ja,"m",mF).call(this,t)),"f"),Qs(this,Fu,Object.freeze(vn(this,Ja,"m",AF).call(this,t)),"f")}}Gf=new WeakMap,Vu=new WeakMap,Bf=new WeakMap,Fu=new WeakMap,Xc=new WeakMap,dP=new WeakMap,Ja=new WeakSet,gF=function(t){var r;const n=(r=t?.logLevel)!==null&&r!==void 0?r:null;return n===null?vn(this,Gf,"f"):$f.severityFromText(n)},TF=function(t){var r;const n=(r=t?.graphQLClient)!==null&&r!==void 0?r:null;return n===null?vn(this,Bf,"f"):{unauthApiUrl:n.url,apiUrl:n.authUrl}},mF=function(t){var r,n;const i=(r=t?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return vn(this,Vu,"f");const a=(n=i.enabled)!==null&&n!==void 0?n:vn(this,Vu,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let u;try{u=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(u.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},vn(this,Vu,"f")),{enabled:a,collectorUrl:i.collectorUrl})},AF=function(t){var r,n,i;const a=(r=t?.httpClient)!==null&&r!==void 0?r:null;return a===null?vn(this,Fu,"f"):{timeout:(n=a.requestTimeout)!==null&&n!==void 0?n:vn(this,Fu,"f").timeout,retryPolicy:(i=a.retry)!==null&&i!==void 0?i:vn(this,Fu,"f").retryPolicy}},yF=function(t){return Object.assign(Object.assign({},L9),t)},OF=function(){try{return I7(this.bwellConfig.clientKey)}catch{throw new g7("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},bF=function(){return{apiUrl:`https://api-gateway.${vn(this,Xc,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:`https://api-gateway.${vn(this,Xc,"f").env}.icanbwell.com/federated-graph/graphql`}},RF=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},PF=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},CF=function(){return{clientKey:this.bwellConfig.clientKey,env:vn(this,Ja,"m",OF).call(this),user:null}};var k9=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},MF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Ag=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},kf,yg;class j9{constructor(t,r=new wa){kf.set(this,void 0),yg.set(this,void 0),MF(this,yg,t,"f"),MF(this,kf,r.getLogger("ConfigManager"),"f")}initialize(t){return k9(this,void 0,void 0,function*(){const r=mg.initialize(t);if(r.failure())return r;const n=r.data();Ag(this,kf,"f").verbose("Initializing SDK Configuration");const i=yield Ag(this,yg,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const a=i.data();try{n.mergeRemoteConfig(a)}catch(u){Ag(this,kf,"f").error("Error merging SDK config with remote config.",u)}return Ag(this,kf,"f").info("Remote SDK Configuration merged with user config"),vr.success(n)})}}kf=new WeakMap,yg=new WeakMap;const pP=JSON,H9=e=>e.toUpperCase(),Y9=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},q9=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},W9=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},K9=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},ANe=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},yNe=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}};var Q9=g(5157),z9=g(2704);const NF=e=>{let t;const r=e.definitions.filter(n=>n.kind==="OperationDefinition");return r.length===1&&(t=r[0]?.name?.value),t},Og=e=>{if(typeof e=="string"){let r;try{const n=(0,Q9.qg)(e);r=NF(n)}catch{}return{query:e,operationName:r}}const t=NF(e);return{query:(0,z9.y)(e),operationName:t}};class $u extends Error{constructor(t,r){const n=`${$u.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,$u.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,$u)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var jf=g(288),X9=g.t(jf,2);const J9="connection_init",Z9="connection_ack",IF="ping",LF="pong",eZ="subscribe",tZ="next",rZ="error",DF="complete";class Gu{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,r,n){this._type=t,this._payload=r,this._id=n}get text(){const t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,r){const{type:n,payload:i,id:a}=JSON.parse(t);return new Gu(n,r(i),a)}}class nZ{constructor(t,{onInit:r,onAcknowledged:n,onPing:i,onPong:a}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",async u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(aZ(r?await r():null).text)}),t.addEventListener("close",u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener("error",u=>{console.error(u)}),t.addEventListener("message",u=>{try{const c=iZ(u.data);switch(c.type){case Z9:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(c.payload));return}case IF:{i?i(c.payload).then(A=>t.send(wF(A).text)):t.send(wF(null).text);return}case LF:{a&&a(c.payload);return}}if(!this.socketState.acknowledged||c.id===void 0||c.id===null||!this.socketState.subscriptions[c.id])return;const{query:v,variables:_,subscriber:S}=this.socketState.subscriptions[c.id];switch(c.type){case tZ:{!c.payload.errors&&c.payload.data&&S.next&&S.next(c.payload.data),c.payload.errors&&S.error&&S.error(new $u({...c.payload,status:200},{query:v,variables:_}));return}case rZ:{S.error&&S.error(new $u({errors:c.payload,status:200},{query:v,variables:_}));return}case DF:{S.complete&&S.complete(),delete this.socketState.subscriptions[c.id];return}}}catch(c){console.error(c),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(t,r,n,i){const a=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[a]={query:t,variables:i,subscriber:n},this.socket.send(sZ(a,{query:t,operationName:r,variables:i}).text),()=>{this.socket.send(uZ(a).text),delete this.socketState.subscriptions[a]}}rawRequest(t,r){return new Promise((n,i)=>{let a;this.rawSubscribe(t,{next:(u,c)=>a={data:u,extensions:c},error:i,complete:()=>n(a)},r)})}request(t,r){return new Promise((n,i)=>{let a;this.subscribe(t,{next:u=>a=u,error:i,complete:()=>n(a)},r)})}subscribe(t,r,n){const{query:i,operationName:a}=Og(t);return this.makeSubscribe(i,a,r,n)}rawSubscribe(t,r,n){return this.makeSubscribe(t,void 0,r,n)}ping(t){this.socket.send(oZ(t).text)}close(){this.socket.close(1e3)}}nZ.PROTOCOL="graphql-transport-ws";function iZ(e,t=r=>r){return Gu.parse(e,t)}function aZ(e){return new Gu(J9,e)}function oZ(e){return new Gu(IF,e,void 0)}function wF(e){return new Gu(LF,e,void 0)}function sZ(e,t){return new Gu(eZ,t,e)}function uZ(e){return new Gu(DF,void 0,e)}const Hf=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||X9&&jf.Headers&&e instanceof jf.Headers?t=Y9(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},UF=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),cZ=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(UF(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,a)=>(n.push({query:UF(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[a]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},lZ=e=>async t=>{const{url:r,query:n,variables:i,operationName:a,fetch:u,fetchOptions:c,middleware:v}=t,_={...t.headers};let S="",A;e==="POST"?(A=_Z(n,i,a,c.jsonSerializer),typeof A=="string"&&(_["Content-Type"]="application/json")):S=cZ({query:n,variables:i,operationName:a,jsonSerializer:c.jsonSerializer??pP});const Q={method:e,headers:_,body:A,...c};let le=r,pe=Q;if(v){const me=await Promise.resolve(v({...Q,url:r,operationName:a,variables:i})),{url:Ge,...Me}=me;le=Ge,pe=Me}return S&&(le=`${le}?${S}`),await u(le,pe)};class bg{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,a,u]=n,c=W9(i,a,u),{headers:v,fetch:_=jf,method:S="POST",requestMiddleware:A,responseMiddleware:Q,...le}=this.requestConfig,{url:pe}=this;c.signal!==void 0&&(le.signal=c.signal);const{operationName:me}=Og(c.query);return hP({url:pe,query:c.query,variables:c.variables,headers:{...Hf(vP(v)),...Hf(c.requestHeaders)},operationName:me,fetch:_,method:S,fetchOptions:le,middleware:A}).then(Ge=>(Q&&Q(Ge),Ge)).catch(Ge=>{throw Q&&Q(Ge),Ge})}}async request(t,...r){const[n,i]=r,a=q9(t,n,i),{headers:u,fetch:c=jf,method:v="POST",requestMiddleware:_,responseMiddleware:S,...A}=this.requestConfig,{url:Q}=this;a.signal!==void 0&&(A.signal=a.signal);const{query:le,operationName:pe}=Og(a.document);return hP({url:Q,query:le,variables:a.variables,headers:{...Hf(vP(u)),...Hf(a.requestHeaders)},operationName:pe,fetch:c,method:v,fetchOptions:A,middleware:_}).then(me=>(S&&S(me),me.data)).catch(me=>{throw S&&S(me),me})}batchRequests(t,r){const n=K9(t,r),{headers:i,...a}=this.requestConfig;n.signal!==void 0&&(a.signal=n.signal);const u=n.documents.map(({document:v})=>Og(v).query),c=n.documents.map(({variables:v})=>v);return hP({url:this.url,query:u,variables:c,headers:{...Hf(vP(i)),...Hf(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??jf,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware}).then(v=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v.data)).catch(v=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const hP=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=lZ(H9(e.method??"post")),a=Array.isArray(e.query),u=await i(e),c=await dZ(u,n.jsonSerializer??pP),v=Array.isArray(c)?!c.some(({data:S})=>!S):Boolean(c.data),_=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(u.ok&&_&&v){const{errors:S,...A}=(Array.isArray(c),c),Q=n.errorPolicy==="ignore"?A:c;return{...a?{data:Q}:Q,headers:u.headers,status:u.status}}else{const S=typeof c=="string"?{error:c}:c;throw new $u({...S,status:u.status,headers:u.headers},{query:t,variables:r})}},ONe=async(...e)=>{const[t,r,...n]=e,i=parseRawRequestExtendedArgs(t,r,...n);return new bg(i.url).rawRequest({...i})};async function bNe(e,t,...r){const n=parseRequestExtendedArgs(e,t,...r);return new bg(n.url).request({...n})}const RNe=async(...e)=>{const t=fZ(e);return new bg(t.url).batchRequests(t)},fZ=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},_Z=(e,t,r,n)=>{const i=n??pP;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const a=e.reduce((u,c,v)=>(u.push({query:c,variables:t?t[v]:void 0}),u),[]);return i.stringify(a)},dZ=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},vP=e=>typeof e=="function"?e():e,PNe=(e,...t)=>e.reduce((r,n,i)=>`${r}${n}${i in t?String(t[i]):""}`,""),CNe=null,Za=`
5082
+ `));function LMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useQuery(sV,t)}function DMe(e){const t=Object.assign(Object.assign({},Yc),e);return Apollo.useLazyQuery(sV,t)}const wMe=e=>useMutation(CreateOauthThirdPartyConnection,e),UMe=e=>useMutation(DisconnectUserToken,e),xMe=e=>useMutation(CreateConnectionStatus,e),VMe=e=>useQuery(GetMemberConnections,e),FMe=e=>useQuery(GetConnections,e),$Me=e=>useQuery(GetConnection,e),GMe=e=>useQuery(GetOauthGeneratedUrl,e);var uV=g(46),bp,ZE;class cV{constructor(){this.type="backend",bp.set(this,void 0),ZE.set(this,void 0)}init(t,{clientSlug:r,apiClient:n}){if(!n)throw t.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');Ys(this,bp,r,"f"),Ys(this,ZE,Aw(n),"f")}read(t,r,n){return YE(this,void 0,void 0,function*(){try{const{translation:i}=yield Hr(this,ZE,"f").getClientTranslations({name:Hr(this,bp,"f"),key:r,lang:t});n(null,i?.json||{})}catch{const a=`Error fetching translation with key "${r}" and client "${Hr(this,bp,"f")||"N/A"}".`;n(a,null)}})}}bp=new WeakMap,ZE=new WeakMap,cV.type="backend";var wf;class lV{constructor(t){this.type="logger",wf.set(this,void 0),Ys(this,wf,t,"f")}log([t,r,...n]){Hr(this,wf,"f").info({meta:r},t,...n)}warn([t,r,...n]){Hr(this,wf,"f").error({meta:r},t,...n)}error([t,r,...n]){Hr(this,wf,"f").error({meta:r},t,...n)}}wf=new WeakMap,lV.type="logger";var Rp,qc,Pp,Ri,Wc;const fV="appLanguage";class kR{constructor({keys:t,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:a,parent:u,debug:c=!1,remoteConfig:v={}}){Rp.set(this,void 0),qc.set(this,void 0),Pp.set(this,void 0),Ri.set(this,void 0),Wc.set(this,void 0),Ys(this,Rp,new uV,"f"),Ys(this,qc,t,"f"),Ys(this,Pp,n,"f"),Ys(this,Wc,r,"f");const _={lng:i,fallbackNS:Hr(this,Pp,"f"),debug:c,defaultNS:t,returnNull:!1};u?Ys(this,Ri,u.cloneInstance(_),"f"):(Ys(this,Ri,uQ.createInstance(),"f"),a&&Hr(this,Ri,"f").use(new lV(a.child({library:"@icanbwell/i18n"}))),v.apiClient&&Hr(this,Ri,"f").use(cV),Hr(this,Ri,"f").init(Object.assign(Object.assign({},_),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:v,saveMissing:!0,missingKeyHandler:(S,A,Q)=>Hr(this,Ri,"f").services.logger.error(`missing key: ${Q}; language: ${S}; key: ${A}`)}))),this.t=Hr(this,Ri,"f").t,this.resolvedLanguage=Hr(this,Ri,"f").resolvedLanguage||i}load(){var t;return YE(this,void 0,void 0,function*(){const r=(yield(t=Hr(this,Wc,"f"))===null||t===void 0?void 0:t.storage.getItem(fV))||this.resolvedLanguage;if(r!==this.resolvedLanguage&&(yield Hr(this,Ri,"f").changeLanguage(r)),yield Hr(this,Ri,"f").loadNamespaces(Hr(this,qc,"f")),Hr(this,qc,"f").some(n=>!Hr(this,Ri,"f").hasResourceBundle(r,n)))throw new Error("Error loading translations.");return this})}child(t){return new kR(Object.assign(Object.assign({},t),{nativeBridge:Hr(this,Wc,"f"),fallbackKeys:[...Hr(this,Pp,"f"),...Hr(this,qc,"f")],parent:Hr(this,Ri,"f"),defaultLanguage:Hr(this,Ri,"f").language}))}get isLoaded(){return Hr(this,qc,"f").every(t=>Hr(this,Ri,"f").hasResourceBundle(Hr(this,Ri,"f").language,t))}changeLanguage(t){var r;return YE(this,void 0,void 0,function*(){this.resolvedLanguage=t,yield Hr(this,Ri,"f").changeLanguage(t),Hr(this,Rp,"f").emit("changeLanguage",t),yield(r=Hr(this,Wc,"f"))===null||r===void 0?void 0:r.storage.setItem(fV,t),Hr(this,Wc,"f").reloadView()})}onChangeLanguage(t){Hr(this,Rp,"f").on("changeLanguage",t)}}Rp=new WeakMap,qc=new WeakMap,Pp=new WeakMap,Ri=new WeakMap,Wc=new WeakMap;var jR=g(1827),Cp;(function(e){e.one="1.0.0"})(Cp||(Cp={}));const eg="orchestrator:native-bridge",d7={id:eg,dependencies:{featureServices:{}},create:()=>({[Cp.one]:()=>({featureService:jR.b})})};var tg;(function(e){e.one="1.0.0"})(tg||(tg={}));const _V="orchestrator:translation-service",p7={id:_V,dependencies:{featureServices:{[ia]:na.one,[cp]:bf.one,[Fn]:bn.one,[zd]:gf.one,[eg]:Cp.one}},create:({featureServices:e})=>{const t=e[ia],r=e[cp],n=e[zd],{slug:i}=e[Fn].getClientContext(),a=e[eg],u=new kR({keys:[],nativeBridge:a,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:t}});return n.setProfileProperties({language:u.resolvedLanguage}),u.onChangeLanguage(c=>n.setProfileProperties({language:c})),{[tg.one]:()=>({featureService:u})}}};var Uf,xf,rg,Kc;const ng="tokens";class h7{constructor({apiClient:t,stateService:r,identityGatewaySdk:n,storage:i}){Uf.set(this,void 0),xf.set(this,void 0),rg.set(this,void 0),Kc.set(this,void 0),(0,I.GG)(this,Uf,t,"f"),(0,I.GG)(this,xf,r,"f"),(0,I.GG)(this,rg,n,"f"),(0,I.GG)(this,Kc,i,"f")}getStoredTokens(){const t=(0,I.gn)(this,Kc,"f").getItem(ng);return t?JSON.parse(t):void 0}removeStoredTokens(){(0,I.gn)(this,Kc,"f").removeItem(ng)}storeTokens(t){(0,I.gn)(this,Kc,"f").setItem(ng,JSON.stringify(t))}logout(){return(0,I.sH)(this,void 0,void 0,function*(){const t=(0,I.gn)(this,xf,"f").getUserTokenData().accessToken.jwtToken,{key:r}=(0,I.gn)(this,xf,"f").getClientContext();yield(0,I.gn)(this,rg,"f").logout({accessToken:t},{context:{headers:{clientKey:r}}}),(0,I.gn)(this,Uf,"f").stop(),(0,I.gn)(this,Uf,"f").clearAuth(),yield(0,I.gn)(this,Uf,"f").clearStore(),(0,I.gn)(this,xf,"f").logoutUser(),(0,I.gn)(this,Kc,"f").removeItem(ng)})}}Uf=new WeakMap,xf=new WeakMap,rg=new WeakMap,Kc=new WeakMap;var ig;(function(e){e.one="1.0.0"})(ig||(ig={}));const dV="orchestrator:identity-utils",v7={id:dV,dependencies:{featureServices:{[ia]:na.one,[cp]:bf.one,[Fn]:bn.one,[zd]:gf.one}},create:({featureServices:e})=>{const t=e[ia];return{[ig.one]:()=>({featureService:new h7({apiClient:t,stateService:e[Fn],identityGatewaySdk:IU(t),storage:window.sessionStorage})})}}};var ag;(function(e){e.one="1.0.0"})(ag||(ag={}));const pV="orchestrator:globaleventemitter-service",S7=e=>({id:pV,create:()=>({[ag.one]:()=>({featureService:e})})});var og;(function(e){e.one="1.0.0"})(og||(og={}));const hV="orchestrator:reboot-controller",E7=e=>({id:hV,create:()=>({[og.one]:()=>({featureService:e})})});class Vi extends Error{constructor(t,r){super(t),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(t){return t instanceof Vi}}class BMe extends Vi{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class kMe extends Vi{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class jMe extends Vi{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class g7 extends Vi{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class T7 extends Vi{constructor(t,r){super(t),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class Qc extends Vi{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class m7 extends Vi{constructor(t,r){super(t),this.status=r,this.name="NetworkError"}}class A7 extends Vi{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class HR extends Vi{constructor(t,r){super(t),this.data=r,this.name="UnknownError"}}class y7 extends Vi{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class Lr{constructor(t,r){this.data=t,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(t){return new Lr(void 0,t)}}var vV=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},sg=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Mp,Np;class vr{static success(t){return new O7(t)}static failure(t){return new ug(t)}}class O7 extends vr{constructor(t){super(),Mp.set(this,void 0),vV(this,Mp,t,"f")}data(){return sg(this,Mp,"f")}error(){throw sg(this,Mp,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new Lr(this.data())}}Mp=new WeakMap;class ug extends vr{constructor(t){super(),Np.set(this,void 0),vV(this,Np,t,"f")}data(){throw sg(this,Np,"f")}error(){return sg(this,Np,"f")}success(){return!1}failure(){return!0}intoFailure(){return vr.failure(this.error())}toQueryResult(){return new Lr(void 0,this.error())}}Np=new WeakMap;var YR=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ip;class b7{constructor(){Ip.set(this,[])}add(t){YR(this,Ip,"f").push(t)}errors(){return YR(this,Ip,"f")}hasErrors(){return YR(this,Ip,"f").length>0}}Ip=new WeakMap;var SV=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qR=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Lp,cg;class R7{constructor(t){Lp.set(this,void 0),cg.set(this,void 0),SV(this,cg,t,"f"),SV(this,Lp,this.transformInput(t),"f")}validate(){return vr.success(null)}data(){return qR(this,Lp,"f")}toJSON(){return qR(this,Lp,"f")}transformInput(t){return t}input(){return qR(this,cg,"f")}}Lp=new WeakMap,cg=new WeakMap;class qs extends R7{validate(){const t=new b7;return this.validator.validate(this.input(),t),t.hasErrors()?vr.failure(new y7(t.errors())):vr.success(null)}}var EV=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},lg,gV,TV;const mV=100,P7=20;class Vf{constructor(){lg.add(this)}validate(t,r){EV(this,lg,"m",gV).call(this,t.page,r),EV(this,lg,"m",TV).call(this,t.pageSize,r)}}lg=new WeakSet,gV=function(t,r){t<0&&r.add("page must be a positive number")},TV=function(t,r){t!==void 0&&(t<=0&&r.add("Page size must be greater than 0"),t>mV&&r.add(`Page size must not exceed ${mV}`))};class Dp extends qs{constructor(){super(...arguments),this.validator=new Vf}transformInput(t){return Object.assign({pageSize:P7},t)}}function C7(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function M7(){return typeof window<"u"}function AV(){if(M7())return"browser";if(C7())return"node";throw new Error("Invalid runtime")}function N7(e){switch(AV()){case"browser":return e.browser();case"node":return e.node()}}function yV(e){switch(AV()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function Fi(e){return e!=null}function OV(e){return e==null}function La(e){return e===void 0}function $i(e){return e!==void 0}function I7(e){return JSON.parse(yV(e)).env}const L7=3;function bV(e){const t=e.split("."),r=t[1];if(r===void 0||t.length!==L7)throw new Qc("Token is missing data and may be corrupted");try{return JSON.parse(yV(r))}catch(n){const i=n;throw new Qc(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function D7(e){const r=bV(e).exp;if(typeof r!="number")throw new Qc("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const w7="custom:clientFhirPersonId",U7="custom:bwellFhirPatientId";function x7(e){const t=bV(e),r=t[U7],n=t[w7];if(Fi(r)&&Fi(n))return{bwellFhirPersonId:r,clientFhirPersonId:n};throw new Qc("The idToken does not contain a bwellFhirPerson and/or a clientFhirPersonId")}function wu(e){return e.trim()===""}const V7="0.2.0";function F7(){return V7}var RV;(function(e){e.Both="both",e.Physical="physical",e.Postal="postal"})(RV||(RV={}));var PV;(function(e){e.Billing="billing",e.Home="home",e.Old="old",e.Temp="temp",e.Work="work"})(PV||(PV={}));var CV;(function(e){e.Batch="BATCH",e.BatchResponse="BATCH_RESPONSE",e.Collection="COLLECTION",e.Document="DOCUMENT",e.History="HISTORY",e.Message="MESSAGE",e.Searchset="SEARCHSET",e.Transaction="TRANSACTION",e.TransactionResponse="TRANSACTION_RESPONSE"})(CV||(CV={}));var fg;(function(e){e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(fg||(fg={}));var MV;(function(e){e.Proa="proa",e.Samsung="samsung"})(MV||(MV={}));var NV;(function(e){e.Basic="BASIC",e.Oauth="OAUTH"})(NV||(NV={}));var WR;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(WR||(WR={}));var KR;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(KR||(KR={}));var IV;(function(e){e.Usd="USD"})(IV||(IV={}));var LV;(function(e){e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(LV||(LV={}));var DV;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Practitioner="PRACTITIONER"})(DV||(DV={}));var _g;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(_g||(_g={}));var wV;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(wV||(wV={}));var UV;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(UV||(UV={}));var QR;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(QR||(QR={}));var zR;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(zR||(zR={}));var XR;(function(e){e.Person="Person"})(XR||(XR={}));var xV;(function(e){e.Questionnaire="Questionnaire"})(xV||(xV={}));var JR;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(JR||(JR={}));var VV;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(VV||(VV={}));var FV;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(FV||(FV={}));var $V;(function(e){e.Official="official",e.Old="old",e.Secondary="secondary",e.Temp="temp",e.Usual="usual"})($V||($V={}));var GV;(function(e){e.Clicked="clicked"})(GV||(GV={}));var ZR;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(ZR||(ZR={}));var BV;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(BV||(BV={}));var kV;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.RequestDelete="REQUEST_DELETE"})(kV||(kV={}));var eP;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(eP||(eP={}));var jV;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(jV||(jV={}));var HV;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(HV||(HV={}));var tP;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(tP||(tP={}));var rP;(function(e){e.Asc="asc",e.Desc="desc"})(rP||(rP={}));var YV;(function(e){e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(YV||(YV={}));var nP;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(nP||(nP={}));var qV;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(qV||(qV={}));const $7=new Set(Object.values(zR));function WV(e){return $7.has(e)}const G7=new Set(Object.values(KR));function B7(e){return G7.has(e)}const k7=new Set(Object.values(fg));function KV(e){return k7.has(e)}const j7=new Set(Object.values(WR));function H7(e){return j7.has(e)}class Y7{validate(t,r){!La(t.gender)&&!WV(t.gender)&&r.add(`Invalid gender value: "${t.gender}"`)}}class HMe extends qs{constructor(){super(...arguments),this.validator=new Y7}}class q7{validate(t,r){KV(t.category)||r.add(`Invalid consent category code: "${t.category}"`)}}class YMe extends qs{constructor(){super(...arguments),this.validator=new q7}}class W7{validate(t,r){B7(t.status)||r.add(`Invalid consent status: "${t.status}"`),H7(t.provision)||r.add(`Invalid consent provision type: "${t.provision}"`),KV(t.category)||r.add(`Invalid consent category code: "${t.category}"`),!La(t.organizationId)&&wu(t.organizationId)&&r.add("organizationId cannot be empty"),t.category===fg.ProaAttestation&&La(t.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class qMe extends qs{constructor(){super(...arguments),this.validator=new W7}}var Da=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},la,Uu,QV,zV,XV,JV,ZV,eF;class K7{constructor(){la.add(this)}validate(t,r){if(!t.values||t.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of t.values)Da(this,la,"m",QV).call(this,n,r)}}la=new WeakSet,Uu=function(t,r){t&&t!==null&&isNaN(t.getTime())&&r.add("The date is not valid")},QV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t,A=[n,i,a,u,c,v,_].filter(Q=>Q!=null).length;if(A===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}Da(this,la,"m",zV).call(this,t,A,r),Da(this,la,"m",ZV).call(this,t,r),Da(this,la,"m",eF).call(this,t,r)},zV=function(t,r,n){const{equals:i,notEquals:a,approximately:u}=t;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(a&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(u&&r>1){n.add("The approximately value cannot be set with any other values");return}Da(this,la,"m",XV).call(this,t,n),Da(this,la,"m",JV).call(this,t,n)},XV=function(t,r){t.greaterThan&&t.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},JV=function(t,r){t.lessThan&&t.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},ZV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t;n&&Da(this,la,"m",Uu).call(this,n,r),i&&Da(this,la,"m",Uu).call(this,i,r),a&&Da(this,la,"m",Uu).call(this,a,r),u&&Da(this,la,"m",Uu).call(this,u,r),c&&Da(this,la,"m",Uu).call(this,c,r),v&&Da(this,la,"m",Uu).call(this,v,r),_&&Da(this,la,"m",Uu).call(this,_,r)},eF=function(t,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:a,lessThanOrEqualTo:u}=t;n&&u&&n>=u&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&a&&i>=a&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&a&&n>=a&&r.add("The greaterThan value must be less than the lessThan value"),i&&u&&i>=u&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var tF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},dg;class Q7{constructor(){dg.set(this,new z7)}validate(t,r){var n;if(t.value===void 0&&t.values===void 0){r.add("Either SearchToken value or values must be provided");return}if(t.value!==void 0&&tF(this,dg,"f").validate(t.value,r),t.values!==void 0&&t.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=t.values)!==null&&n!==void 0?n:[])tF(this,dg,"f").validate(i,r)}}dg=new WeakMap;class z7{validate(t,r){!t.system&&!t.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var rF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},iP,aP;class X7 extends Vf{constructor(){super(...arguments),iP.set(this,new Q7),aP.set(this,new K7)}validate(t,r){super.validate(t,r),t.groupCode&&rF(this,iP,"f").validate(t.groupCode,r),t.lastUpdated&&rF(this,aP,"f").validate(t.lastUpdated,r)}}iP=new WeakMap,aP=new WeakMap;class WMe extends Dp{constructor(){super(...arguments),this.validator=new X7}}class KMe extends null{}class QMe extends null{}class zMe extends null{}class XMe extends null{}class JMe extends null{}class ZMe extends null{}class eNe extends null{}class tNe extends null{}class rNe extends null{}class nNe extends null{}class iNe extends null{}class aNe extends null{}class oNe extends null{}class sNe extends null{}class uNe extends null{}class cNe extends null{}class lNe extends null{}class fNe extends null{}class J7 extends Vf{validate(t,r){wu(t.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(t,r)}}class _Ne extends Dp{constructor(){super(...arguments),this.validator=new J7}}class Z7 extends Vf{validate(t,r){wu(t.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(t,r)}}class dNe extends Dp{constructor(){super(...arguments),this.validator=new Z7}}const e9=new Set(Object.values(nP));function nF(e){return e9.has(e)}var t9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},oP,iF;class r9 extends Vf{constructor(){super(...arguments),oP.add(this)}validate(t,r){if(super.validate(t,r),!La(t.status)){const n=Array.isArray(t.status)?t.status:[t.status];for(const i of n)t9(this,oP,"m",iF).call(this,i,r)}}}oP=new WeakSet,iF=function(t,r){nF(t)||r.add(`Invalid task status: "${t}"`)};class pNe extends Dp{constructor(){super(...arguments),this.validator=new r9}}class n9{validate(t,r){nF(t.newStatus)||r.add(`Invalid task status: "${t.newStatus}"`)}}class hNe extends qs{constructor(){super(...arguments),this.validator=new n9}}var pg=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ff,aF,oF,sF,uF;class vNe extends Dp{constructor(){super(...arguments),this.validator=new i9}}class i9 extends Vf{constructor(){super(...arguments),Ff.add(this)}validate(t,r){super.validate(t,r),$i(t.organizationTypeFilters)&&pg(this,Ff,"m",aF).call(this,t.organizationTypeFilters,r),$i(t.sortBy)&&pg(this,Ff,"m",oF).call(this,t.sortBy,r),$i(t.filterFields)&&pg(this,Ff,"m",sF).call(this,t.filterFields,r),$i(t.gender)&&pg(this,Ff,"m",uF).call(this,t.gender,r)}}Ff=new WeakSet,aF=function(t,r){for(const n of t)o9(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},oF=function(t,r){$i(t.field)&&!u9(t.field)&&r.add(`Invalid sortBy.field value: "${t.field}"`),$i(t.order)&&!l9(t.order)&&r.add(`Invalid sortBy.order value: "${t.order}"`)},sF=function(t,r){for(const n of t)_9(n)||r.add(`Invalid filterField value: "${n}"`)},uF=function(t,r){WV(t)||r.add(`Invalid gender value: "${t}"`)};const a9=new Set(Object.values(eP));function o9(e){return a9.has(e)}const s9=new Set(Object.values(tP));function u9(e){return s9.has(e)}const c9=new Set(Object.values(rP));function l9(e){return c9.has(e)}const f9=new Set(Object.values(JR));function _9(e){return f9.has(e)}class SNe extends null{}const d9="data-connection-status";var p9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},sP;const h9="connectionId cannot be null or empty",v9="username cannot be null or empty",S9="password cannot be null or empty";class cF{validate(t,r){t.connectionId===""&&r.add(h9)}}class E9{constructor(){sP.set(this,new cF)}validate(t,r){p9(this,sP,"f").validate(t,r),t.username===""&&r.add(v9),t.password===""&&r.add(S9)}}sP=new WeakMap;class g9 extends qs{constructor(){super(...arguments),this.validator=new cF}}class ENe extends null{}class gNe extends g9{constructor(){super(...arguments),this.validator=new E9}}const T9="deviceToken is required",m9="platformName must be a valid DevicePlatform value",A9="applicationName is required";var uP;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(uP||(uP={}));const y9=new Set(Object.values(uP));function O9(e){return y9.has(e)}function b9(e){return!O9(e)}class lF{validate(t,r){wu(t.deviceToken)&&r.add(T9)}}class R9 extends lF{validate(t,r){super.validate(t,r),b9(t.platformName.toUpperCase())&&r.add(m9),wu(t.applicationName)&&r.add(A9)}}class TNe extends qs{constructor(){super(...arguments),this.validator=new R9}}class mNe extends qs{constructor(){super(...arguments),this.validator=new lF}}const P9="string parameter serializedNotification must be provided",C9="serialized notification must have a non-empty notification_id field of type string",fF="serialized notification must have an itbl object containing a non-empty messageId field of type string",M9="parsed notification must be a non-null object.",N9="serialized notification is not valid JSON.";class I9{validate(t,r){if(La(t.serializedNotification)||typeof t.serializedNotification!="string"||wu(t.serializedNotification)){r.add(P9);return}let n=null;try{n=JSON.parse(t.serializedNotification)}catch{r.add(N9);return}if(typeof n!="object"||n===null){r.add(M9);return}const{itbl:i,notification_id:a}=n;if((La(a)||typeof a!="string"||wu(a))&&r.add(C9),typeof i!="object"||OV(i)){r.add(fF);return}(La(i.messageId)||typeof i.messageId!="string"||wu(i.messageId))&&r.add(fF)}}class ANe extends qs{constructor(){super(...arguments),this.validator=new I9}}var cP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};class _F{constructor(t=new Map){this.storage=t}get(t){return cP(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,r){return cP(this,void 0,void 0,function*(){this.storage.set(t,r)})}delete(t){return cP(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const L9={logLevel:ZR.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new _F};var Ws;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(Ws||(Ws={}));var D9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},dF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wp,Cr;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Cr||(Cr={}));const w9={[Cr.VERBOSE]:"VERBOSE",[Cr.DEBUG]:"DEBUG",[Cr.INFO]:"INFO",[Cr.WARN]:"WARN",[Cr.ERROR]:"ERROR",[Cr.FATAL]:"FATAL"};class $f{constructor(t){wp.set(this,void 0),D9(this,wp,t,"f")}get severity(){return dF(this,wp,"f")}shouldLog(t){return t>=dF(this,wp,"f")}static severityText(t){return w9[t]}static severityFromText(t){switch(t){case"VERBOSE":return Cr.VERBOSE;case"DEBUG":return Cr.DEBUG;case"INFO":return Cr.INFO;case"WARN":return Cr.WARN;case"ERROR":return Cr.ERROR;case"FATAL":return Cr.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}wp=new WeakMap;var lP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ss=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},xu,pF,hg,Up,vg,zc;class hF{constructor(t,r,n){xu.add(this),hg.set(this,void 0),Up.set(this,void 0),vg.set(this,void 0),lP(this,hg,n,"f"),lP(this,Up,new $f(t),"f"),lP(this,vg,r,"f")}name(){return ss(this,hg,"f")}severity(){return ss(this,Up,"f").severity}verbose(t,r){ss(this,xu,"m",zc).call(this,Cr.VERBOSE,t,r)}debug(t,r){ss(this,xu,"m",zc).call(this,Cr.DEBUG,t,r)}info(t,r){ss(this,xu,"m",zc).call(this,Cr.INFO,t,r)}warn(t,r){ss(this,xu,"m",zc).call(this,Cr.WARN,t,r)}error(t,r){let n;r instanceof vr&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),ss(this,xu,"m",zc).call(this,Cr.ERROR,t,n)}fatal(t,r){ss(this,xu,"m",zc).call(this,Cr.FATAL,t,r)}static otelSeverityNumber(t){switch(t){case Cr.VERBOSE:return Ws.TRACE;case Cr.DEBUG:return Ws.DEBUG;case Cr.INFO:return Ws.INFO;case Cr.WARN:return Ws.WARN;case Cr.ERROR:return Ws.ERROR;case Cr.FATAL:return Ws.FATAL;default:return Ws.UNSPECIFIED}}}pF=hF,hg=new WeakMap,Up=new WeakMap,vg=new WeakMap,xu=new WeakSet,zc=function(t,r,n){!ss(this,Up,"f").shouldLog(t)||ss(this,vg,"f").emit({timestamp:Date.now(),severityNumber:pF.otelSeverityNumber(t),severityText:$f.severityText(t),body:r,attributes:n??{}})};var vF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},SF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Sg,Eg;class U9{constructor(t,r){Sg.set(this,void 0),Eg.set(this,void 0),vF(this,Eg,t,"f"),vF(this,Sg,r.loggerProvider(),"f")}getLogger(t){const r=t??"default",n=SF(this,Sg,"f").getLogger(r);return new hF(SF(this,Eg,"f"),n,r)}}Sg=new WeakMap,Eg=new WeakMap;class x9{format(t,r,n,i){let u=`[${new Date().toISOString()}] ${$f.severityText(t)}`;return n!==void 0&&(u+=` (${n})`),u+=`: ${r}`,i===void 0?[u]:[u,i]}}var fP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},si=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},us,cs,Ks;class V9{constructor(t,r){us.set(this,void 0),cs.set(this,void 0),Ks.set(this,void 0),fP(this,cs,new $f(t),"f"),fP(this,us,r,"f"),fP(this,Ks,new x9,"f")}name(){return si(this,us,"f")}severity(){return si(this,cs,"f").severity}verbose(t,r){si(this,cs,"f").shouldLog(Cr.VERBOSE)&&console.debug(...si(this,Ks,"f").format(Cr.VERBOSE,t,si(this,us,"f"),r))}debug(t,r){si(this,cs,"f").shouldLog(Cr.DEBUG)&&console.debug(...si(this,Ks,"f").format(Cr.DEBUG,t,si(this,us,"f"),r))}info(t,r){si(this,cs,"f").shouldLog(Cr.INFO)&&console.info(...si(this,Ks,"f").format(Cr.INFO,t,si(this,us,"f"),r))}warn(t,r){si(this,cs,"f").shouldLog(Cr.WARN)&&console.warn(...si(this,Ks,"f").format(Cr.WARN,t,si(this,us,"f"),r))}error(t,r){let n=r;r instanceof vr&&(n=r.failure()?r.error():r.data()),si(this,cs,"f").shouldLog(Cr.ERROR)&&console.error(...si(this,Ks,"f").format(Cr.ERROR,t,si(this,us,"f"),n))}fatal(t,r){si(this,cs,"f").shouldLog(Cr.FATAL)&&console.error(...si(this,Ks,"f").format(Cr.FATAL,t,si(this,us,"f"),r))}}us=new WeakMap,cs=new WeakMap,Ks=new WeakMap;var F9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},$9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},gg;class wa{constructor(t=Cr.FATAL){gg.set(this,void 0),F9(this,gg,t,"f")}getLogger(t){return new V9($9(this,gg,"f"),t)}}gg=new WeakMap;var G9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},_P,EF;class B9{constructor(){_P.add(this)}createLogProvider(t,r){switch(G9(this,_P,"m",EF).call(this,t)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new U9(t.logLevel,r);case"console":return new wa(t.logLevel)}}}_P=new WeakSet,EF=function(t){return t.telemetry.enabled?"otel":"console"};var vn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Qs=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Ja,Gf,Vu,Bf,Fu,Xc,dP,gF,TF,mF,AF,yF,OF,bF,RF,PF,CF,Tg;(function(e){e.OAuth="OAUTH"})(Tg||(Tg={}));class mg{constructor(t){Ja.add(this),Gf.set(this,void 0),Vu.set(this,void 0),Bf.set(this,void 0),Fu.set(this,void 0),Xc.set(this,void 0),dP.set(this,Tg.OAuth),this.bwellConfig=vn(this,Ja,"m",yF).call(this,t),Qs(this,Gf,$f.severityFromText(this.bwellConfig.logLevel),"f"),Qs(this,Xc,vn(this,Ja,"m",CF).call(this),"f"),Qs(this,Bf,vn(this,Ja,"m",bF).call(this),"f"),Qs(this,Vu,vn(this,Ja,"m",RF).call(this),"f"),Qs(this,Fu,vn(this,Ja,"m",PF).call(this),"f")}static initialize(t){try{const r=new mg(t);return vr.success(r)}catch(r){if(Vi.isBwellError(r))return vr.failure(r);throw r}}get logLevel(){return vn(this,Gf,"f")}get graphQL(){return vn(this,Bf,"f")}get telemetry(){return vn(this,Vu,"f")}get http(){return vn(this,Fu,"f")}get context(){return vn(this,Xc,"f")}get authType(){return vn(this,dP,"f")}setContextUser(t){vn(this,Xc,"f").user=t}mergeRemoteConfig(t){Qs(this,Gf,vn(this,Ja,"m",gF).call(this,t),"f"),Qs(this,Bf,Object.freeze(vn(this,Ja,"m",TF).call(this,t)),"f"),Qs(this,Vu,Object.freeze(vn(this,Ja,"m",mF).call(this,t)),"f"),Qs(this,Fu,Object.freeze(vn(this,Ja,"m",AF).call(this,t)),"f")}}Gf=new WeakMap,Vu=new WeakMap,Bf=new WeakMap,Fu=new WeakMap,Xc=new WeakMap,dP=new WeakMap,Ja=new WeakSet,gF=function(t){var r;const n=(r=t?.logLevel)!==null&&r!==void 0?r:null;return n===null?vn(this,Gf,"f"):$f.severityFromText(n)},TF=function(t){var r;const n=(r=t?.graphQLClient)!==null&&r!==void 0?r:null;return n===null?vn(this,Bf,"f"):{unauthApiUrl:n.url,apiUrl:n.authUrl}},mF=function(t){var r,n;const i=(r=t?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return vn(this,Vu,"f");const a=(n=i.enabled)!==null&&n!==void 0?n:vn(this,Vu,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let u;try{u=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(u.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},vn(this,Vu,"f")),{enabled:a,collectorUrl:i.collectorUrl})},AF=function(t){var r,n,i;const a=(r=t?.httpClient)!==null&&r!==void 0?r:null;return a===null?vn(this,Fu,"f"):{timeout:(n=a.requestTimeout)!==null&&n!==void 0?n:vn(this,Fu,"f").timeout,retryPolicy:(i=a.retry)!==null&&i!==void 0?i:vn(this,Fu,"f").retryPolicy}},yF=function(t){return Object.assign(Object.assign({},L9),t)},OF=function(){try{return I7(this.bwellConfig.clientKey)}catch{throw new g7("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},bF=function(){return{apiUrl:`https://api-gateway.${vn(this,Xc,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:`https://api-gateway.${vn(this,Xc,"f").env}.icanbwell.com/federated-graph/graphql`}},RF=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},PF=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},CF=function(){return{clientKey:this.bwellConfig.clientKey,env:vn(this,Ja,"m",OF).call(this),user:null}};var k9=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},MF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Ag=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},kf,yg;class j9{constructor(t,r=new wa){kf.set(this,void 0),yg.set(this,void 0),MF(this,yg,t,"f"),MF(this,kf,r.getLogger("ConfigManager"),"f")}initialize(t){return k9(this,void 0,void 0,function*(){const r=mg.initialize(t);if(r.failure())return r;const n=r.data();Ag(this,kf,"f").verbose("Initializing SDK Configuration");const i=yield Ag(this,yg,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const a=i.data();try{n.mergeRemoteConfig(a)}catch(u){Ag(this,kf,"f").error("Error merging SDK config with remote config.",u)}return Ag(this,kf,"f").info("Remote SDK Configuration merged with user config"),vr.success(n)})}}kf=new WeakMap,yg=new WeakMap;const pP=JSON,H9=e=>e.toUpperCase(),Y9=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},q9=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},W9=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},K9=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},yNe=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},ONe=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}};var Q9=g(5157),z9=g(2704);const NF=e=>{let t;const r=e.definitions.filter(n=>n.kind==="OperationDefinition");return r.length===1&&(t=r[0]?.name?.value),t},Og=e=>{if(typeof e=="string"){let r;try{const n=(0,Q9.qg)(e);r=NF(n)}catch{}return{query:e,operationName:r}}const t=NF(e);return{query:(0,z9.y)(e),operationName:t}};class $u extends Error{constructor(t,r){const n=`${$u.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,$u.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,$u)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var jf=g(288),X9=g.t(jf,2);const J9="connection_init",Z9="connection_ack",IF="ping",LF="pong",eZ="subscribe",tZ="next",rZ="error",DF="complete";class Gu{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,r,n){this._type=t,this._payload=r,this._id=n}get text(){const t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,r){const{type:n,payload:i,id:a}=JSON.parse(t);return new Gu(n,r(i),a)}}class nZ{constructor(t,{onInit:r,onAcknowledged:n,onPing:i,onPong:a}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",async u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(aZ(r?await r():null).text)}),t.addEventListener("close",u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener("error",u=>{console.error(u)}),t.addEventListener("message",u=>{try{const c=iZ(u.data);switch(c.type){case Z9:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(c.payload));return}case IF:{i?i(c.payload).then(A=>t.send(wF(A).text)):t.send(wF(null).text);return}case LF:{a&&a(c.payload);return}}if(!this.socketState.acknowledged||c.id===void 0||c.id===null||!this.socketState.subscriptions[c.id])return;const{query:v,variables:_,subscriber:S}=this.socketState.subscriptions[c.id];switch(c.type){case tZ:{!c.payload.errors&&c.payload.data&&S.next&&S.next(c.payload.data),c.payload.errors&&S.error&&S.error(new $u({...c.payload,status:200},{query:v,variables:_}));return}case rZ:{S.error&&S.error(new $u({errors:c.payload,status:200},{query:v,variables:_}));return}case DF:{S.complete&&S.complete(),delete this.socketState.subscriptions[c.id];return}}}catch(c){console.error(c),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(t,r,n,i){const a=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[a]={query:t,variables:i,subscriber:n},this.socket.send(sZ(a,{query:t,operationName:r,variables:i}).text),()=>{this.socket.send(uZ(a).text),delete this.socketState.subscriptions[a]}}rawRequest(t,r){return new Promise((n,i)=>{let a;this.rawSubscribe(t,{next:(u,c)=>a={data:u,extensions:c},error:i,complete:()=>n(a)},r)})}request(t,r){return new Promise((n,i)=>{let a;this.subscribe(t,{next:u=>a=u,error:i,complete:()=>n(a)},r)})}subscribe(t,r,n){const{query:i,operationName:a}=Og(t);return this.makeSubscribe(i,a,r,n)}rawSubscribe(t,r,n){return this.makeSubscribe(t,void 0,r,n)}ping(t){this.socket.send(oZ(t).text)}close(){this.socket.close(1e3)}}nZ.PROTOCOL="graphql-transport-ws";function iZ(e,t=r=>r){return Gu.parse(e,t)}function aZ(e){return new Gu(J9,e)}function oZ(e){return new Gu(IF,e,void 0)}function wF(e){return new Gu(LF,e,void 0)}function sZ(e,t){return new Gu(eZ,t,e)}function uZ(e){return new Gu(DF,void 0,e)}const Hf=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||X9&&jf.Headers&&e instanceof jf.Headers?t=Y9(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},UF=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),cZ=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(UF(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,a)=>(n.push({query:UF(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[a]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},lZ=e=>async t=>{const{url:r,query:n,variables:i,operationName:a,fetch:u,fetchOptions:c,middleware:v}=t,_={...t.headers};let S="",A;e==="POST"?(A=_Z(n,i,a,c.jsonSerializer),typeof A=="string"&&(_["Content-Type"]="application/json")):S=cZ({query:n,variables:i,operationName:a,jsonSerializer:c.jsonSerializer??pP});const Q={method:e,headers:_,body:A,...c};let le=r,pe=Q;if(v){const me=await Promise.resolve(v({...Q,url:r,operationName:a,variables:i})),{url:Ge,...Me}=me;le=Ge,pe=Me}return S&&(le=`${le}?${S}`),await u(le,pe)};class bg{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,a,u]=n,c=W9(i,a,u),{headers:v,fetch:_=jf,method:S="POST",requestMiddleware:A,responseMiddleware:Q,...le}=this.requestConfig,{url:pe}=this;c.signal!==void 0&&(le.signal=c.signal);const{operationName:me}=Og(c.query);return hP({url:pe,query:c.query,variables:c.variables,headers:{...Hf(vP(v)),...Hf(c.requestHeaders)},operationName:me,fetch:_,method:S,fetchOptions:le,middleware:A}).then(Ge=>(Q&&Q(Ge),Ge)).catch(Ge=>{throw Q&&Q(Ge),Ge})}}async request(t,...r){const[n,i]=r,a=q9(t,n,i),{headers:u,fetch:c=jf,method:v="POST",requestMiddleware:_,responseMiddleware:S,...A}=this.requestConfig,{url:Q}=this;a.signal!==void 0&&(A.signal=a.signal);const{query:le,operationName:pe}=Og(a.document);return hP({url:Q,query:le,variables:a.variables,headers:{...Hf(vP(u)),...Hf(a.requestHeaders)},operationName:pe,fetch:c,method:v,fetchOptions:A,middleware:_}).then(me=>(S&&S(me),me.data)).catch(me=>{throw S&&S(me),me})}batchRequests(t,r){const n=K9(t,r),{headers:i,...a}=this.requestConfig;n.signal!==void 0&&(a.signal=n.signal);const u=n.documents.map(({document:v})=>Og(v).query),c=n.documents.map(({variables:v})=>v);return hP({url:this.url,query:u,variables:c,headers:{...Hf(vP(i)),...Hf(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??jf,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware}).then(v=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v.data)).catch(v=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const hP=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=lZ(H9(e.method??"post")),a=Array.isArray(e.query),u=await i(e),c=await dZ(u,n.jsonSerializer??pP),v=Array.isArray(c)?!c.some(({data:S})=>!S):Boolean(c.data),_=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(u.ok&&_&&v){const{errors:S,...A}=(Array.isArray(c),c),Q=n.errorPolicy==="ignore"?A:c;return{...a?{data:Q}:Q,headers:u.headers,status:u.status}}else{const S=typeof c=="string"?{error:c}:c;throw new $u({...S,status:u.status,headers:u.headers},{query:t,variables:r})}},bNe=async(...e)=>{const[t,r,...n]=e,i=parseRawRequestExtendedArgs(t,r,...n);return new bg(i.url).rawRequest({...i})};async function RNe(e,t,...r){const n=parseRequestExtendedArgs(e,t,...r);return new bg(n.url).request({...n})}const PNe=async(...e)=>{const t=fZ(e);return new bg(t.url).batchRequests(t)},fZ=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},_Z=(e,t,r,n)=>{const i=n??pP;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const a=e.reduce((u,c,v)=>(u.push({query:c,variables:t?t[v]:void 0}),u),[]);return i.stringify(a)},dZ=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},vP=e=>typeof e=="function"?e():e,CNe=(e,...t)=>e.reduce((r,n,i)=>`${r}${n}${i in t?String(t[i]):""}`,""),MNe=null,Za=`
5083
5083
  fragment CodingFields on Coding {
5084
5084
  system
5085
5085
  code
@@ -5110,7 +5110,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5110
5110
  total_pages
5111
5111
  total_items
5112
5112
  }
5113
- `,MNe=null,hZ=`
5113
+ `,NNe=null,hZ=`
5114
5114
  fragment ProtocolAppliedFields on ProtocolApplied {
5115
5115
  doseNumberString
5116
5116
  doseNumberPositiveInt
@@ -6806,7 +6806,7 @@ ${eo}`,nee=`
6806
6806
  }
6807
6807
  }
6808
6808
  }
6809
- `,see=(e,t,r,n)=>e();function uee(e,t=see){return{getTasks(r,n){return t(i=>e.rawRequest(TZ,r,Object.assign(Object.assign({},n),i)),"getTasks","query",r)},taskUpdateStatus(r,n){return t(i=>e.rawRequest(mZ,r,Object.assign(Object.assign({},n),i)),"taskUpdateStatus","mutation",r)},createConnection(r,n){return t(i=>e.rawRequest(AZ,r,Object.assign(Object.assign({},n),i)),"createConnection","mutation",r)},deleteConnection(r,n){return t(i=>e.rawRequest(yZ,r,Object.assign(Object.assign({},n),i)),"deleteConnection","mutation",r)},disconnectConnection(r,n){return t(i=>e.rawRequest(OZ,r,Object.assign(Object.assign({},n),i)),"disconnectConnection","mutation",r)},getDataSource(r,n){return t(i=>e.rawRequest(bZ,r,Object.assign(Object.assign({},n),i)),"getDataSource","query",r)},getMemberConnections(r,n){return t(i=>e.rawRequest(RZ,r,Object.assign(Object.assign({},n),i)),"getMemberConnections","query",r)},getOauthUrl(r,n){return t(i=>e.rawRequest(PZ,r,Object.assign(Object.assign({},n),i)),"getOauthUrl","query",r)},updateDeviceRegistration(r,n){return t(i=>e.rawRequest(CZ,r,Object.assign(Object.assign({},n),i)),"updateDeviceRegistration","mutation",r)},publishEvent(r,n){return t(i=>e.rawRequest(MZ,r,Object.assign(Object.assign({},n),i)),"publishEvent","mutation",r)},getAllergyIntoleranceGroups(r,n){return t(i=>e.rawRequest(NZ,r,Object.assign(Object.assign({},n),i)),"getAllergyIntoleranceGroups","query",r)},getAllergyIntolerances(r,n){return t(i=>e.rawRequest(IZ,r,Object.assign(Object.assign({},n),i)),"getAllergyIntolerances","query",r)},getCarePlanGroups(r,n){return t(i=>e.rawRequest(LZ,r,Object.assign(Object.assign({},n),i)),"getCarePlanGroups","query",r)},getCarePlans(r,n){return t(i=>e.rawRequest(DZ,r,Object.assign(Object.assign({},n),i)),"getCarePlans","query",r)},getConditionGroups(r,n){return t(i=>e.rawRequest(wZ,r,Object.assign(Object.assign({},n),i)),"getConditionGroups","query",r)},getConditions(r,n){return t(i=>e.rawRequest(UZ,r,Object.assign(Object.assign({},n),i)),"getConditions","query",r)},getEncountersGroup(r,n){return t(i=>e.rawRequest(xZ,r,Object.assign(Object.assign({},n),i)),"getEncountersGroup","query",r)},getEncounterQuery(r,n){return t(i=>e.rawRequest(VZ,r,Object.assign(Object.assign({},n),i)),"getEncounterQuery","query",r)},GetHealthSummary(r,n){return t(i=>e.rawRequest(FZ,r,Object.assign(Object.assign({},n),i)),"GetHealthSummary","query",r)},getImmunizationGroups(r,n){return t(i=>e.rawRequest($Z,r,Object.assign(Object.assign({},n),i)),"getImmunizationGroups","query",r)},getImmunizations(r,n){return t(i=>e.rawRequest(GZ,r,Object.assign(Object.assign({},n),i)),"getImmunizations","query",r)},getProcedureGroups(r,n){return t(i=>e.rawRequest(BZ,r,Object.assign(Object.assign({},n),i)),"getProcedureGroups","query",r)},GetProcedures(r,n){return t(i=>e.rawRequest(kZ,r,Object.assign(Object.assign({},n),i)),"GetProcedures","query",r)},getVitalSignGroups(r,n){return t(i=>e.rawRequest(jZ,r,Object.assign(Object.assign({},n),i)),"getVitalSignGroups","query",r)},getVitalSigns(r,n){return t(i=>e.rawRequest(HZ,r,Object.assign(Object.assign({},n),i)),"getVitalSigns","query",r)},getLabGroups(r,n){return t(i=>e.rawRequest(YZ,r,Object.assign(Object.assign({},n),i)),"getLabGroups","query",r)},getLabKnowledge(r,n){return t(i=>e.rawRequest(qZ,r,Object.assign(Object.assign({},n),i)),"getLabKnowledge","query",r)},getLabs(r,n){return t(i=>e.rawRequest(WZ,r,Object.assign(Object.assign({},n),i)),"getLabs","query",r)},getMedicationGroups(r,n){return t(i=>e.rawRequest(KZ,r,Object.assign(Object.assign({},n),i)),"getMedicationGroups","query",r)},getMedicationKnowledge(r,n){return t(i=>e.rawRequest(QZ,r,Object.assign(Object.assign({},n),i)),"getMedicationKnowledge","query",r)},getMedicationStatements(r,n){return t(i=>e.rawRequest(zZ,r,Object.assign(Object.assign({},n),i)),"getMedicationStatements","query",r)},authenticate(r,n){return t(i=>e.rawRequest(XZ,r,Object.assign(Object.assign({},n),i)),"authenticate","query",r)},initialize(r,n){return t(i=>e.rawRequest(JZ,r,Object.assign(Object.assign({},n),i)),"initialize","query",r)},refreshTokens(r,n){return t(i=>e.rawRequest(ZZ,r,Object.assign(Object.assign({},n),i)),"refreshTokens","query",r)},providerSearch(r,n){return t(i=>e.rawRequest(eee,r,Object.assign(Object.assign({},n),i)),"providerSearch","query",r)},requestConnection(r,n){return t(i=>e.rawRequest(tee,r,Object.assign(Object.assign({},n),i)),"requestConnection","mutation",r)},createConsent(r,n){return t(i=>e.rawRequest(ree,r,Object.assign(Object.assign({},n),i)),"createConsent","mutation",r)},delete(r,n){return t(i=>e.rawRequest(nee,r,Object.assign(Object.assign({},n),i)),"delete","mutation",r)},getProfile(r,n){return t(i=>e.rawRequest(iee,r,Object.assign(Object.assign({},n),i)),"getProfile","query",r)},searchConsent(r,n){return t(i=>e.rawRequest(aee,r,Object.assign(Object.assign({},n),i)),"searchConsent","query",r)},updateUserProfile(r,n){return t(i=>e.rawRequest(oee,r,Object.assign(Object.assign({},n),i)),"updateUserProfile","mutation",r)}}}var cee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};function BF(e,t){let r;t!==void 0&&(r=lee(t));const n=new bg(e,{errorPolicy:"all",mode:"cors",requestMiddleware:r});return{client:n,sdk:uee(n)}}function lee(e){return t=>cee(this,void 0,void 0,function*(){const n=(yield e.getAccessToken()).data();return Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{Authorization:`Bearer ${n}`})})})}const fee="INFORMATION",INe="WARNING",kF="ERROR",_ee="FATAL";class Cg{constructor(t){this.issue=t}message(){var t,r;const n=[];for(const i of this.issue){const a=(r=(t=i.details)===null||t===void 0?void 0:t.text)===null||r===void 0?void 0:r.trim();a==null||a.length===0||n.push(a)}return n.join(", ")}success(){for(const t of this.issue){const r=t.severity.toUpperCase();if(r===kF||r===_ee)return!1}return!0}static error(t){return new Cg([{severity:kF,code:"EXCEPTION",details:{text:t.message}}])}static success(){return new Cg([{severity:fee,code:"INFORMATIONAL",details:{}}])}}function dee(e){for(const t of e){const r=jF(t);if(r!==null){if(r.code==="500")return!0;for(const n of r.resource.issue)if(n.code==="exception")return!0}}return!1}function SP(e=[]){const t=[];let r=!1;for(const i of e){const a=jF(i);if(a!==null){r=!0;for(const u of a.resource.issue)t.push(u)}}if(!r)return null;const n=new Cg(t);return new A7(n)}function jF(e){const t=e.extensions,r=t.code,n=t.resource;return r===void 0||n===void 0||!pee(n)?null:{code:r,resource:n}}function pee(e){const t=e.issue;return t===void 0?!1:Array.isArray(t)}var HF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Mg=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Yf,EP,gP;class Bu{constructor(){Yf.add(this)}handleTransaction(t){return HF(this,void 0,void 0,function*(){try{const r=yield t,n=SP(r.errors);return n!==null?vr.failure(n):vr.success(r.data)}catch(r){if(Vi.isBwellError(r))return vr.failure(r);if(Mg(this,Yf,"m",EP).call(this,r))return Mg(this,Yf,"m",gP).call(this,r);throw r}})}handleQuery(t){return HF(this,void 0,void 0,function*(){try{const r=yield t,n=SP(r.errors);return new Lr(r.data,n)}catch(r){if(Vi.isBwellError(r))return new Lr(void 0,r);if(Mg(this,Yf,"m",EP).call(this,r)){const n=Mg(this,Yf,"m",gP).call(this,r);return Lr.error(n.error())}throw r}})}validateRequest(t){return t===void 0?vr.success(null):t.validate()}}Yf=new WeakSet,EP=function(t){return t instanceof $u},gP=function(t){if(t.response.status>299)return new ug(new m7("Network error",t.response.status));const r=t.response.errors;if(r!==void 0){if(dee(r))return new ug(new HR("Internal server error",r));const n=SP(r);if(n!==null)return vr.failure(n)}return new ug(new HR("Unknown error",t))};var qf=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ku,Zc,Gp;(function(e){e.ACTIVITY_CONTENT="https://www.icanbwell.com/contentDescription",e.ACTIVITY_ID="https://www.icanbwell.com/activityId",e.ACTIVITY_TOPIC="https://www.icanbwell.com/activityTopic",e.ACTIVITY_TYPE="https://www.icanbwell.com/activityType"})(Gp||(Gp={}));class hee{constructor(){ku.add(this)}create(t){var r;const n=t.data(),i={page:n.page,pageSize:n.pageSize};return $i(n.id)&&(i.id=qf(this,ku,"m",Zc).call(this,n.id)),$i(n.activityId)&&(i.identifier=qf(this,ku,"m",Zc).call(this,n.activityId,Gp.ACTIVITY_ID)),$i(n.activityType)&&(i.code=qf(this,ku,"m",Zc).call(this,n.activityType,Gp.ACTIVITY_TYPE)),$i(n.activityTopic)&&(i.tag=qf(this,ku,"m",Zc).call(this,n.activityTopic,Gp.ACTIVITY_TOPIC)),$i(n.status)&&(i.status=qf(this,ku,"m",Zc).call(this,n.status)),$i(n.subject)&&(i.subject=qf(this,ku,"m",Zc).call(this,n.subject)),i.sortMethod=n.smartSort===!0?"smartSort":"",$i(n.enrichContent)&&(i.enrichContent=n.enrichContent),i.contentLanguage=(r=n.contentLanguage)!==null&&r!==void 0?r:"en",{request:i}}}ku=new WeakSet,Zc=function(t,r){const i={value:(Array.isArray(t)?t:[t]).join(",")};return $i(r)&&(i.system=r),{values:[i]}};var YF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},qF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Co=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Mo,Bp,TP;class vee extends Bu{constructor(t,r=new wa){super(),Mo.set(this,void 0),Bp.set(this,void 0),TP.set(this,new hee),qF(this,Bp,t,"f"),qF(this,Mo,r.getLogger("GraphQLActivityManager"),"f")}getTasks(t){return YF(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Co(this,Mo,"f").verbose("calling getTask query...");const i=yield this.handleQuery(Co(this,Bp,"f").getTasks(Co(this,TP,"f").create(t)));return Co(this,Mo,"f").verbose("getTask query complete"),i.hasError()?Co(this,Mo,"f").error("getTask query error",i.error):Co(this,Mo,"f").info("successfully called getTask query"),new Lr((r=i.data)===null||r===void 0?void 0:r.getTasks,i.error)})}updateTaskStatus(t){return YF(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;Co(this,Mo,"f").verbose("calling taskUpdateStatus mutation");const n=yield this.handleTransaction(Co(this,Bp,"f").taskUpdateStatus(t.data()));return Co(this,Mo,"f").verbose("taskUpdateStatus mutation complete"),n.failure()?(Co(this,Mo,"f").error("taskUpdateStatus error",n),n.intoFailure()):(Co(this,Mo,"f").info("taskUpdateStatus mutation success"),vr.success(n.data().taskUpdateStatus))})}}Mo=new WeakMap,Bp=new WeakMap,TP=new WeakMap;var Wf=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},mP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Jr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},zs,Sn,Ng;class See extends Bu{constructor(t,r=new wa,n=new Eee){super(),zs.set(this,void 0),Sn.set(this,void 0),Ng.set(this,void 0),mP(this,zs,t,"f"),mP(this,Sn,r.getLogger("GraphQLConnectionManager"),"f"),mP(this,Ng,n,"f")}getMemberConnections(){return Wf(this,void 0,void 0,function*(){Jr(this,Sn,"f").verbose("calling getMemberConnections...");const t=yield this.handleQuery(Jr(this,zs,"f").getMemberConnections());return Jr(this,Sn,"f").verbose("getMemberConnections complete"),t.hasError()?Jr(this,Sn,"f").error("getMemberConnections failed",t.error):Jr(this,Sn,"f").info("successfully called getMemberConnections"),Jr(this,Ng,"f").create(t)})}getDataSource(t){return Wf(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Jr(this,Sn,"f").verbose("calling getDataSources...");const i=yield this.handleQuery(Jr(this,zs,"f").getDataSource(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("getDataSources complete"),i.hasError()?Jr(this,Sn,"f").error("getDataSources failed",i.error):Jr(this,Sn,"f").info("successfully called getDataSources"),new Lr((r=i.data)===null||r===void 0?void 0:r.getDataSource,i.error)})}createConnection(t){return Wf(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Jr(this,Sn,"f").verbose("calling createConnection...");const n=yield this.handleTransaction(Jr(this,zs,"f").createConnection(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("createConnection complete"),n.failure()?(Jr(this,Sn,"f").error("createConnection failed",n),n.intoFailure()):(Jr(this,Sn,"f").info("successfully called createConnection"),vr.success(n.data().createConnection))})}disconnectConnection(t){return Wf(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Jr(this,Sn,"f").verbose("calling disconnectConnection...");const n=yield this.handleTransaction(Jr(this,zs,"f").disconnectConnection(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("disconnectConnection complete"),n.failure()?(Jr(this,Sn,"f").error("disconnectConnection failed",n),n.intoFailure()):(Jr(this,Sn,"f").info("successfully called disconnectConnection"),vr.success(n.data().disconnectConnection))})}deleteConnection(t){return Wf(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Jr(this,Sn,"f").verbose("calling deleteConnection...");const n=yield this.handleTransaction(Jr(this,zs,"f").deleteConnection(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("deleteConnection complete"),n.failure()?(Jr(this,Sn,"f").error("deleteConnection failed",n),n.intoFailure()):(Jr(this,Sn,"f").info("successfully called deleteConnection"),vr.success(n.data().deleteConnection))})}getOauthUrl(t){return Wf(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Jr(this,Sn,"f").verbose("calling getOauthUrl...");const i=yield this.handleQuery(Jr(this,zs,"f").getOauthUrl(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("getOauthUrl complete"),i.hasError()?Jr(this,Sn,"f").error("getOauthUrl failed",i.error):Jr(this,Sn,"f").info("successfully called getOauthUrl"),new Lr((r=i.data)===null||r===void 0?void 0:r.getOauthUrl,i.error)})}}zs=new WeakMap,Sn=new WeakMap,Ng=new WeakMap;class Eee{create(t){var r,n,i,a,u,c;const v=new Map,_=(i=(n=(r=t.data)===null||r===void 0?void 0:r.subscription_subscription)===null||n===void 0?void 0:n.entry)!==null&&i!==void 0?i:[];for(const A of _)if(Fi((a=A?.resource)===null||a===void 0?void 0:a.service_slug)&&Fi(A?.resource.subscriptionStatus))for(const Q of A.resource.subscriptionStatus)v.set(A.resource.service_slug,{error:Q?.error,extension:Q?.extension});const S=(c=(u=t.data)===null||u===void 0?void 0:u.getMemberConnections)!==null&&c!==void 0?c:[];return new Lr(S.map(A=>{var Q;const le=v.get(A.id);if(OV(le))return Object.assign(Object.assign({},A),{syncErrors:[]});const pe=(Q=le.extension)===null||Q===void 0?void 0:Q.find(me=>me?.id===d9);return Object.assign(Object.assign({},A),{syncErrors:le.error,syncStatus:pe?pe.valueString:A.syncStatus})}),t.error)}}class gee{create(t){return{deviceToken:t.data().deviceToken,platformName:"",applicationName:"",notificationPreference:!1}}}class Tee{create(t){return Object.assign(Object.assign({},t.data()),{notificationPreference:!0})}}var WF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},KF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},to=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},kp,No,AP,yP;class mee extends Bu{constructor(t,r=new wa){super(),kp.set(this,void 0),No.set(this,void 0),AP.set(this,new gee),yP.set(this,new Tee),KF(this,kp,t,"f"),KF(this,No,r.getLogger("GraphQLDeviceManager"),"f")}registerDevice(t){return WF(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();const n=to(this,yP,"f").create(t);to(this,No,"f").verbose("calling updateDeviceRegistration to register device...");const i=yield this.handleTransaction(to(this,kp,"f").updateDeviceRegistration(n));return to(this,No,"f").verbose("updateDeviceRegistration complete for registration."),i.failure()?(to(this,No,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(to(this,No,"f").info("successfully called updateDeviceRegistration for registration."),vr.success(i.data().updateDeviceRegistration))})}deregisterDevice(t){return WF(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();to(this,No,"f").verbose("calling updateDeviceRegistration to deregister device...");const n=to(this,AP,"f").create(t),i=yield this.handleTransaction(to(this,kp,"f").updateDeviceRegistration(n));return to(this,No,"f").verbose("updateDeviceRegistration complete for deregistration."),i.failure()?(to(this,No,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(to(this,No,"f").info("successfully called updateDeviceRegistration for deregistration."),vr.success(i.data().updateDeviceRegistration))})}}kp=new WeakMap,No=new WeakMap,AP=new WeakMap,yP=new WeakMap;class Aee{create(t){const r=JSON.parse(t.data().serializedNotification);return{notificationId:r.notification_id,messageId:r.itbl.messageId,eventType:QR.MobilePushOpen}}}var yee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},OP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},el=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ig,ju,Lg;class Oee extends Bu{constructor(t,r=new wa,n=new Aee){super(),Ig.set(this,void 0),ju.set(this,void 0),Lg.set(this,void 0),OP(this,Ig,t,"f"),OP(this,ju,r.getLogger("GraphQLEventManager"),"f"),OP(this,Lg,n,"f")}handleNotification(t){return yee(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();el(this,ju,"f").debug("Calling publishEvent");let n;try{n=el(this,Lg,"f").create(t)}catch(a){return el(this,ju,"f").error("Error creating publishEvent request",a),vr.failure(new HR("Error creating publishEvent request"))}const i=yield this.handleTransaction(el(this,Ig,"f").publishEvent(n));return el(this,ju,"f").debug("publishEvent completed"),i.failure()?(el(this,ju,"f").error("publishEvent mutation error",i),i.intoFailure()):(el(this,ju,"f").info("publishEvent mutation success"),vr.success(i.data().publishEvent))})}}Ig=new WeakMap,ju=new WeakMap,Lg=new WeakMap;var zn=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},QF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},bt=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wn,xt;class bee extends Bu{constructor(t,r=new wa){super(),wn.set(this,void 0),xt.set(this,void 0),QF(this,wn,t,"f"),QF(this,xt,r.getLogger("GraphQLHealthManager"),"f")}getHealthSummary(){return zn(this,void 0,void 0,function*(){var t;bt(this,xt,"f").verbose("calling getHealthSummary...");const r=yield this.handleQuery(bt(this,wn,"f").GetHealthSummary());return bt(this,xt,"f").verbose("getHealthSummary complete"),r.hasError()?bt(this,xt,"f").error("getHealthSummary failed",r.error):bt(this,xt,"f").info("successfully called getHealthSummary"),new Lr((t=r.data)===null||t===void 0?void 0:t.getHealthSummary,r.error)})}getAllergyIntolerances(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getAllergyIntolerances...");const a=yield this.handleQuery(bt(this,wn,"f").getAllergyIntolerances({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getAllergyIntolerances complete"),a.hasError()&&bt(this,xt,"f").error("getAllergyIntolerances errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getAllergyIntolerances,a.error)})}getAllergyIntoleranceGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getAllergyIntoleranceGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getAllergyIntoleranceGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getAllergyIntoleranceGroups complete"),a.hasError()&&bt(this,xt,"f").error("getAllergyIntoleranceGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getAllergyIntoleranceGroups,a.error)})}getConditions(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getConditions...");const a=yield this.handleQuery(bt(this,wn,"f").getConditions({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getConditions complete"),a.hasError()&&bt(this,xt,"f").error("getConditions errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getConditions,a.error)})}getConditionGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getConditionGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getConditionGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getConditionGroups complete"),a.hasError()&&bt(this,xt,"f").error("getConditionGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getConditionGroups,a.error)})}getLabs(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getLabs...");const a=yield this.handleQuery(bt(this,wn,"f").getLabs({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getLabs complete"),a.hasError()&&bt(this,xt,"f").error("getLabs errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getLabs,a.error)})}getLabGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getLabGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getLabGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getLabGroups complete"),a.hasError()&&bt(this,xt,"f").error("getLabGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getLabGroups,a.error)})}getCarePlans(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getCarePlans...");const a=yield this.handleQuery(bt(this,wn,"f").getCarePlans({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getCarePlans complete"),a.hasError()&&bt(this,xt,"f").error("getCarePlans errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getCarePlans,a.error)})}getCarePlanGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getCarePlanGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getCarePlanGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getCarePlanGroups complete"),a.hasError()&&bt(this,xt,"f").error("getCarePlanGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getCarePlanGroups,a.error)})}getEncounters(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getEncounters...");const a=yield this.handleQuery(bt(this,wn,"f").getEncounterQuery({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getEncounters complete"),a.hasError()&&bt(this,xt,"f").error("getEncounters errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getEncounters,a.error)})}getEncounterGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getEncounterGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getEncountersGroup({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getEncounterGroups complete"),a.hasError()&&bt(this,xt,"f").error("getEncounterGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getEncounterGroups,a.error)})}getImmunizations(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getImmunizations...");const a=yield this.handleQuery(bt(this,wn,"f").getImmunizations({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getImmunizations complete"),a.hasError()&&bt(this,xt,"f").error("getImmunizations errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getImmunizations,a.error)})}getImmunizationGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getImmunizationGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getImmunizationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getImmunizationGroups complete"),a.hasError()&&bt(this,xt,"f").error("getImmunizationGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getImmunizationGroups,a.error)})}getProcedures(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getProcedures...");const a=yield this.handleQuery(bt(this,wn,"f").GetProcedures({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getProcedures complete"),a.hasError()&&bt(this,xt,"f").error("getProcedures errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getProcedures,a.error)})}getProcedureGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getProcedureGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getProcedureGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getProcedureGroups complete"),a.hasError()&&bt(this,xt,"f").error("getProcedureGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getProcedureGroups,a.error)})}getVitalSigns(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getVitalSigns...");const a=yield this.handleQuery(bt(this,wn,"f").getVitalSigns({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getVitalSigns complete"),a.hasError()&&bt(this,xt,"f").error("getVitalSigns errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getVitalSigns,a.error)})}getVitalSignGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getVitalSignGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getVitalSignGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getVitalSignGroups complete"),a.hasError()&&bt(this,xt,"f").error("getVitalSignGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getVitalSignGroups,a.error)})}getMedicationStatements(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getMedicationStatements...");const a=yield this.handleQuery(bt(this,wn,"f").getMedicationStatements({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getMedicationStatements complete"),a.hasError()&&bt(this,xt,"f").error("getMedicationStatements errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getMedicationStatements,a.error)})}getMedicationGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getMedicationGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getMedicationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getMedicationGroups complete"),a.hasError()&&bt(this,xt,"f").error("getMedicationGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getMedicationGroups,a.error)})}getMedicationKnowledge(t){return zn(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();bt(this,xt,"f").verbose("calling getMedicationKnowledge...");const i=yield this.handleQuery(bt(this,wn,"f").getMedicationKnowledge({request:t.data()}));return bt(this,xt,"f").verbose("getMedicationKnowledge complete"),i.hasError()&&bt(this,xt,"f").error("getMedicationKnowledge errors",i.error),new Lr((r=i.data)===null||r===void 0?void 0:r.getMedicationKnowledge,i.error)})}getLabKnowledge(t){return zn(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();bt(this,xt,"f").verbose("calling getLabKnowledge...");const i=yield this.handleQuery(bt(this,wn,"f").getLabKnowledge({request:t.data()}));return bt(this,xt,"f").verbose("getLabKnowledge complete"),i.hasError()&&bt(this,xt,"f").error("getLabKnowledge errors",i.error),new Lr((r=i.data)===null||r===void 0?void 0:r.getLabKnowledge,i.error)})}}wn=new WeakMap,xt=new WeakMap;class bP{create(t){var r,n,i,a,u,c,v,_,S;const A=t.data(),Q=null,le=(r=A.searchTerm)!==null&&r!==void 0?r:null,pe=(n=A.specialtyFilters)!==null&&n!==void 0?n:null,me=(i=A.includePopulatedPROAonly)!==null&&i!==void 0?i:!1,Ge=(a=A.organizationTypeFilters)!==null&&a!==void 0?a:null,Me=(u=A.gender)!==null&&u!==void 0?u:null,Re=(c=A.location)!==null&&c!==void 0?c:null;let nt=null;$i(A.sortBy)&&(nt={field:(v=A.sortBy.field)!==null&&v!==void 0?v:null,order:(_=A.sortBy.order)!==null&&_!==void 0?_:null});const ht=(S=A.filterFields)!==null&&S!==void 0?S:null,Vt=A.page,ir=A.pageSize;return{client:Q,searchTerm:le,specialtyFilters:pe,includePopulatedPROAonly:me,organizationTypeFilters:Ge,gender:Me,location:Re,sortBy:nt,filterFields:ht,page:Vt,pageSize:ir}}}var Ree=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},RP;class Pee{constructor(){RP.set(this,new bP)}create(t){const r=Ree(this,RP,"f").create(t);return r.client={data_sets:[_g.Connecthub]},r}}RP=new WeakMap;var Cee=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},PP;class Mee{constructor(){PP.set(this,new bP)}create(t){const r=Cee(this,PP,"f").create(t);return r.client={data_sets:[_g.Nppes]},r}}PP=new WeakMap;class Nee{create(t){var r,n,i,a;const u=t.data();return{institution:(r=u.institution)!==null&&r!==void 0?r:null,provider:(n=u.provider)!==null&&n!==void 0?n:null,city:(i=u.city)!==null&&i!==void 0?i:null,state:(a=u.state)!==null&&a!==void 0?a:null}}}var Dg=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},zF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Un=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},tl,pi,CP,MP,NP,IP;class Iee extends Bu{constructor(t,r=new wa){super(),tl.set(this,void 0),pi.set(this,void 0),CP.set(this,new bP),MP.set(this,new Mee),NP.set(this,new Pee),IP.set(this,new Nee),zF(this,tl,t,"f"),zF(this,pi,r.getLogger("GraphQLSearchManager"),"f")}search(t){return Dg(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Un(this,pi,"f").verbose("calling providerSearch search query");const i=yield this.handleQuery(Un(this,tl,"f").providerSearch(Un(this,CP,"f").create(t)));return Un(this,pi,"f").verbose("providerSearch search query complete"),i.hasError()?Un(this,pi,"f").error("providerSearch search query failed",i.error):Un(this,pi,"f").info("successfully called providerSearch search query"),new Lr((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchProviders(t){return Dg(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Un(this,pi,"f").verbose("calling providerSearch searchProviders query");const i=yield this.handleQuery(Un(this,tl,"f").providerSearch(Un(this,MP,"f").create(t)));return Un(this,pi,"f").verbose("providerSearch searchProviders query complete"),i.hasError()?Un(this,pi,"f").error("providerSearch searchProviders query failed",i.error):Un(this,pi,"f").info("successfully called providerSearch searchProviders query"),new Lr((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchConnections(t){return Dg(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Un(this,pi,"f").verbose("calling providerSearch searchConnections query");const i=yield this.handleQuery(Un(this,tl,"f").providerSearch(Un(this,NP,"f").create(t)));return Un(this,pi,"f").verbose("providerSearch searchConnections query complete"),i.hasError()?Un(this,pi,"f").error("providerSearch searchConnections query failed",i.error):Un(this,pi,"f").info("successfully called providerSearch searchConnections query"),new Lr((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}requestConnection(t){return Dg(this,void 0,void 0,function*(){Un(this,pi,"f").verbose("calling requestConnection mutation");const r=yield this.handleTransaction(Un(this,tl,"f").requestConnection(Un(this,IP,"f").create(t)));return Un(this,pi,"f").verbose("requestConnection mutation complete"),r.failure()?(Un(this,pi,"f").error("requestConnection mutation failed",r),r.intoFailure()):(Un(this,pi,"f").info("requestConnection request succeess"),vr.success(r.data().requestConnection))})}}tl=new WeakMap,pi=new WeakMap,CP=new WeakMap,MP=new WeakMap,NP=new WeakMap,IP=new WeakMap;const Lee="http://www.icanbwell.com/consent-category";class Dee{create(t){const r=t.data(),n={status:r.status,provision:{type:r.provision}};return $i(r.organizationId)&&(n.organization=[{type:"Organization",reference:`Organization/${r.organizationId}`}]),$i(r.category)&&(n.category=[{coding:[{system:Lee,code:r.category}]}]),{consentInput:n}}}class wee{create(t){return{categoryCode:t.data().category}}}var Kf=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Hu,LP,XF,JF,ZF,e$;class Uee{constructor(){Hu.add(this)}create(t){const r=t.data(),n={resourceType:XR.Person};return Kf(this,Hu,"m",LP).call(this,"id",r.id,n),Kf(this,Hu,"m",LP).call(this,"birthDate",r.birthDate,n),Kf(this,Hu,"m",XF).call(this,r,n),Kf(this,Hu,"m",ZF).call(this,r,n),Kf(this,Hu,"m",JF).call(this,r,n),Kf(this,Hu,"m",e$).call(this,r,n),{person:n}}}Hu=new WeakSet,LP=function(t,r,n){La(r)||(n[t]=r)},XF=function(t,r){let n=!1;const{firstName:i,lastName:a}=t,u={};Fi(i)&&(n=!0,u.given=[i]),Fi(a)&&(n=!0,u.family=a),n&&(r.name=[u])},JF=function(t,r){let n=!1;const{addressUnit:i,addressStreet:a,city:u,stateOrProvidence:c,postageOrZipCode:v}=t,_={};if(Fi(i)||Fi(a)){n=!0;const S=[];Fi(a)&&S.push(a),Fi(i)&&S.push(i),_.line=S}Fi(u)&&(n=!0,_.city=u),Fi(c)&&(n=!0,_.state=c),Fi(v)&&(n=!0,_.postalCode=v),n&&(r.address=[_])},ZF=function(t,r){const n=t.gender;La(n)||(r.gender=n)},e$=function(t,r){const n=[],{homePhone:i,mobilePhone:a,workPhone:u,email:c}=t;Fi(i)&&n.push({system:"phone",use:"home",value:i}),Fi(a)&&n.push({system:"phone",use:"mobile",value:a}),Fi(u)&&n.push({system:"phone",use:"work",value:u}),Fi(c)&&n.push({system:"email",value:c}),n.length!==0&&(r.telecom=n)};var jp=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},t$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},cn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Yu,$n,DP,wP,UP;class xee extends Bu{constructor(t,r=new wa){super(),Yu.set(this,void 0),$n.set(this,void 0),DP.set(this,new Dee),wP.set(this,new Uee),UP.set(this,new wee),t$(this,Yu,t,"f"),t$(this,$n,r.getLogger("GraphQLUserManager"),"f")}getProfile(){return jp(this,void 0,void 0,function*(){var t;cn(this,$n,"f").verbose("calling getProfile...");const r=yield this.handleQuery(cn(this,Yu,"f").getProfile());return cn(this,$n,"f").verbose("getProfile complete"),r.hasError()?cn(this,$n,"f").error("getProfile failed",r.error):cn(this,$n,"f").info("successfully called getProfile"),new Lr((t=r.data)===null||t===void 0?void 0:t.userProfile,r.error)})}delete(){return jp(this,void 0,void 0,function*(){cn(this,$n,"f").verbose("calling delete...");const t=yield this.handleTransaction(cn(this,Yu,"f").delete());return cn(this,$n,"f").verbose("delete complete"),t.failure()?(cn(this,$n,"f").error("delete failed",t.error),t.intoFailure()):(cn(this,$n,"f").info("successfully called delete"),vr.success(null))})}updateProfile(t){return jp(this,void 0,void 0,function*(){cn(this,$n,"f").verbose("calling updateUserProfile");const r=yield this.handleTransaction(cn(this,Yu,"f").updateUserProfile(cn(this,wP,"f").create(t)));return cn(this,$n,"f").verbose("updateUserProfile complete"),r.failure()?(cn(this,$n,"f").error("updateUserProfile error",r),r.intoFailure()):(cn(this,$n,"f").info("updateUserProfile success"),vr.success(r.data().updateUserProfile))})}getConsents(t){return jp(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();cn(this,$n,"f").verbose("calling consent search query...");let i;t!==void 0&&(i=cn(this,UP,"f").create(t));const a=yield this.handleQuery(cn(this,Yu,"f").searchConsent(i));return cn(this,$n,"f").verbose("consent search query complete"),a.hasError()?cn(this,$n,"f").error("consent search failed",a.error):cn(this,$n,"f").info("successfully called consent search query"),new Lr((r=a.data)===null||r===void 0?void 0:r.search,a.error)})}createConsent(t){return jp(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;cn(this,$n,"f").verbose("calling createConsent mutation...");const n=yield this.handleTransaction(cn(this,Yu,"f").createConsent(cn(this,DP,"f").create(t)));return cn(this,$n,"f").verbose("createConsent mutation complete"),n.failure()?(cn(this,$n,"f").error("createConsent mutation error",n),n.intoFailure()):(cn(this,$n,"f").info("createConsent mutation success"),vr.success(n.data().createConsent))})}}Yu=new WeakMap,$n=new WeakMap,DP=new WeakMap,wP=new WeakMap,UP=new WeakMap;var r$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qu=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wg,ls;class Vee{constructor(t,r){wg.set(this,void 0),ls.set(this,void 0),r$(this,wg,r.getLogger("GraphQLAPIProvider"),"f"),r$(this,ls,t,"f"),qu(this,wg,"f").verbose("initializing GraphQLClient"),this.activity=new vee(qu(this,ls,"f"),r),this.connection=new See(qu(this,ls,"f"),r),this.device=new mee(qu(this,ls,"f"),r),this.event=new Oee(qu(this,ls,"f"),r),this.health=new bee(qu(this,ls,"f"),r),this.user=new xee(qu(this,ls,"f"),r),this.search=new Iee(qu(this,ls,"f"),r)}}wg=new WeakMap,ls=new WeakMap;class Fee{createApiProvider(t,r,n){const{sdk:i}=BF(t.graphQL.apiUrl,r);return new Vee(i,n)}}var xP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},n$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},fa=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Qf,_a;class $ee extends Bu{constructor(t,r=new wa){super(),Qf.set(this,void 0),_a.set(this,void 0),n$(this,Qf,t,"f"),n$(this,_a,r.getLogger("GraphQLIdentityManager"),"f")}initialize(t){return xP(this,void 0,void 0,function*(){fa(this,_a,"f").verbose("executing initialize query...",{clientKey:t});const r=yield this.handleTransaction(fa(this,Qf,"f").initialize({clientKey:t}));return fa(this,_a,"f").verbose("initialize query complete",r),r.failure()?(fa(this,_a,"f").error("initialize failed.",r),r.intoFailure()):(fa(this,_a,"f").info("successfully called initialize"),vr.success(r.data().initSdk))})}authenticate(t){return xP(this,void 0,void 0,function*(){fa(this,_a,"f").verbose("exectuting authenticate query...");const r=yield this.handleTransaction(fa(this,Qf,"f").authenticate({},{Authorization:t.jweToken,ClientKey:t.clientKey}));if(fa(this,_a,"f").verbose("authenticate query complete",r),r.failure())return fa(this,_a,"f").error("authenticate failed",r),r.intoFailure();fa(this,_a,"f").info("authenticate success");const n=r.data(),i={accessToken:n.getToken.accessToken.jwtToken,idToken:n.getToken.idToken.jwtToken,refreshToken:n.getToken.refreshToken.token};return vr.success(i)})}refreshAccessToken(t){return xP(this,void 0,void 0,function*(){fa(this,_a,"f").verbose("executing refreshAccessToken query...");const r=yield this.handleTransaction(fa(this,Qf,"f").refreshTokens({},{refresh_token:t.refreshToken,clientkey:t.clientKey}));return fa(this,_a,"f").verbose("refreshAccessToken query complete",r),r.failure()?(fa(this,_a,"f").error("refreshAccessToken failed",r),r.intoFailure()):(fa(this,_a,"f").info("refreshAccessToken successful"),vr.success(r.data().refresh))})}}Qf=new WeakMap,_a=new WeakMap;class Gee{createIdentityManager(t,r){const{sdk:n}=BF(t.graphQL.unauthApiUrl);return new $ee(n,r)}}function Bee(e){return"token"in e}function LNe(e){return"username"in e&&"password"in e}var kee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},VP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Hp=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ug,zf,xg;class jee{constructor(t,r,n=new wa){Ug.set(this,void 0),zf.set(this,void 0),xg.set(this,void 0),VP(this,Ug,r,"f"),VP(this,xg,t,"f"),VP(this,zf,n.getLogger("OAuthStrategy"),"f")}authenticate(t){return kee(this,void 0,void 0,function*(){if(!Bee(t))return Hp(this,zf,"f").error("Incorrect credentials type provided to OAuthStrategy"),vr.failure(new T7("Expected OAuthCredentials",t));Hp(this,zf,"f").verbose("authenticating via OAuth strategy...");const r=yield Hp(this,Ug,"f").authenticate({jweToken:t.token,clientKey:Hp(this,xg,"f").context.clientKey});return Hp(this,zf,"f").verbose("finished OAuth authentication"),r})}}Ug=new WeakMap,zf=new WeakMap,xg=new WeakMap;class Hee{createAuthStrategy(t,r,n=new wa){if(t.authType!==Tg.OAuth)throw new Error(`Authentication Strategy ${t.authType} has not been implemented yet`);return new jee(t,r,n)}}var Yee=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{},rl="1.9.0",i$=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function qee(e){var t=new Set([e]),r=new Set,n=e.match(i$);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(i$);if(!_)return a(v);var S={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return S.prerelease!=null||i.major!==S.major?a(v):i.major===0?i.minor===S.minor&&i.patch<=S.patch?u(v):a(v):i.minor<=S.minor?u(v):a(v)}}var Wee=qee(rl),Kee=rl.split(".")[0],Yp=Symbol.for("opentelemetry.js.api."+Kee),qp=Yee;function Wp(e,t,r,n){var i;n===void 0&&(n=!1);var a=qp[Yp]=(i=qp[Yp])!==null&&i!==void 0?i:{version:rl};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==rl){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+rl);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+rl+"."),!0}function nl(e){var t,r,n=(t=qp[Yp])===null||t===void 0?void 0:t.version;if(!(!n||!Wee(n)))return(r=qp[Yp])===null||r===void 0?void 0:r[e]}function Kp(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+rl+".");var r=qp[Yp];r&&delete r[e]}function Vg(e){return Symbol.for(e)}var Qee=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var a=new e(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i}}return e}(),zee=new Qee,Xee=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Jee=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Zee=function(){function e(){}return e.prototype.active=function(){return zee},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return r.call.apply(r,Jee([n],Xee(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),ete=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},tte=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},rte=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("verbose",this._namespace,t)},e}();function Qp(e,t,r){var n=nl("diag");if(!!n)return r.unshift(t),n[e].apply(n,tte([],ete(r),!1))}var on;(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"})(on||(on={}));function nte(e,t){e<on.NONE?e=on.NONE:e>on.ALL&&(e=on.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",on.ERROR),warn:r("warn",on.WARN),info:r("info",on.INFO),debug:r("debug",on.DEBUG),verbose:r("verbose",on.VERBOSE)}}var ite=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ate=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ote="diag",fs=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=nl("diag");if(!!c)return c[i].apply(c,ate([],ite(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:on.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var S=nl("diag"),A=nte((c=a.logLevel)!==null&&c!==void 0?c:on.INFO,i);if(S&&!a.suppressOverrideMessage){var Q=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";S.warn("Current logger will be overwritten from "+Q),A.warn("Current logger will overwrite one already registered from "+Q)}return Wp("diag",A,r,!0)};r.setLogger=n,r.disable=function(){Kp(ote,r)},r.createComponentLogger=function(i){return new rte(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),ste=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ute=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},FP="context",cte=new Zee,Fg=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Wp(FP,t,fs.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return(i=this._getContextManager()).with.apply(i,ute([t,r,n],ste(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return nl(FP)||cte},e.prototype.disable=function(){this._getContextManager().disable(),Kp(FP,fs.instance())},e}(),_s;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(_s||(_s={}));var a$="0000000000000000",o$="00000000000000000000000000000000",s$={traceId:o$,spanId:a$,traceFlags:_s.NONE},zp=function(){function e(t){t===void 0&&(t=s$),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){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,r){},e}(),$P=Vg("OpenTelemetry Context Key SPAN");function GP(e){return e.getValue($P)||void 0}function lte(){return GP(Fg.getInstance().active())}function BP(e,t){return e.setValue($P,t)}function fte(e){return e.deleteValue($P)}function _te(e,t){return BP(e,new zp(t))}function u$(e){var t;return(t=GP(e))===null||t===void 0?void 0:t.spanContext()}var dte=/^([0-9a-f]{32})$/i,pte=/^[0-9a-f]{16}$/i;function c$(e){return dte.test(e)&&e!==o$}function hte(e){return pte.test(e)&&e!==a$}function Xf(e){return c$(e.traceId)&&hte(e.spanId)}function vte(e){return new zp(e)}var kP=Fg.getInstance(),l$=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=kP.active());var i=Boolean(r?.root);if(i)return new zp;var a=n&&u$(n);return Ste(a)&&Xf(a)?new zp(a):new zp},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??kP.active(),_=this.startSpan(t,a,v),S=BP(v,_);return kP.with(S,c,void 0,_)}},e}();function Ste(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Ete=new l$,gte=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,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):Ete},e}(),Tte=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new l$},e}(),mte=new Tte,f$=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return(i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new gte(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:mte},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}(),jP="trace",Ate=function(){function e(){this._proxyTracerProvider=new f$,this.wrapSpanContext=vte,this.isSpanContextValid=Xf,this.deleteSpan=fte,this.getSpan=GP,this.getActiveSpan=lte,this.getSpanContext=u$,this.setSpan=BP,this.setSpanContext=_te}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=Wp(jP,this._proxyTracerProvider,fs.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return nl(jP)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){Kp(jP,fs.instance()),this._proxyTracerProvider=new f$},e}(),zi=Ate.getInstance(),HP=Vg("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function yte(e){return e.setValue(HP,!0)}function DNe(e){return e.deleteValue(HP)}function Ote(e){return e.getValue(HP)===!0}var YP="[_0-9a-z-*/]",bte="[a-z]"+YP+"{0,255}",Rte="[a-z0-9]"+YP+"{0,240}@[a-z]"+YP+"{0,13}",Pte=new RegExp("^(?:"+bte+"|"+Rte+")$"),Cte=/^[ -~]{0,255}[!-~]$/,Mte=/,|=/;function Nte(e){return Pte.test(e)}function Ite(e){return Cte.test(e)&&!Mte.test(e)}var _$=32,Lte=512,d$=",",p$="=",Dte=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+p$+t.get(n)),r},[]).join(d$)},e.prototype._parse=function(t){t.length>Lte||(this._internalState=t.split(d$).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(p$);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);Nte(u)&&Ite(c)&&r.set(u,c)}return r},new Map),this._internalState.size>_$&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,_$))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),qP="traceparent",WP="tracestate",wte="00",Ute="(?!ff)[\\da-f]{2}",xte="(?![0]{32})[\\da-f]{32}",Vte="(?![0]{16})[\\da-f]{16}",Fte="[\\da-f]{2}",$te=new RegExp("^\\s?("+Ute+")-("+xte+")-("+Vte+")-("+Fte+")(-.*)?\\s?$");function Gte(e){var t=$te.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Bte=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=zi.getSpanContext(t);if(!(!i||Ote(t)||!Xf(i))){var a=wte+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||_s.NONE).toString(16);n.set(r,qP,a),i.traceState&&n.set(r,WP,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,qP);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=Gte(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,WP);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new Dte(typeof v=="string"?v:void 0)}return zi.setSpanContext(t,u)},e.prototype.fields=function(){return[qP,WP]},e}(),kte=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{},il="1.6.0",h$=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function jte(e){var t=new Set([e]),r=new Set,n=e.match(h$);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(h$);if(!_)return a(v);var S={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return S.prerelease!=null||i.major!==S.major?a(v):i.major===0?i.minor===S.minor&&i.patch<=S.patch?u(v):a(v):i.minor<=S.minor?u(v):a(v)}}var Hte=jte(il),Yte=il.split(".")[0],Xp=Symbol.for("opentelemetry.js.api."+Yte),Jp=kte;function qte(e,t,r,n){var i;n===void 0&&(n=!1);var a=Jp[Xp]=(i=Jp[Xp])!==null&&i!==void 0?i:{version:il};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==il){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+il);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+il+"."),!0}function KP(e){var t,r,n=(t=Jp[Xp])===null||t===void 0?void 0:t.version;if(!(!n||!Hte(n)))return(r=Jp[Xp])===null||r===void 0?void 0:r[e]}function Wte(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+il+".");var r=Jp[Xp];r&&delete r[e]}var Kte=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Qte=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},zte=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("verbose",this._namespace,t)},e}();function Zp(e,t,r){var n=KP("diag");if(!!n)return r.unshift(t),n[e].apply(n,Qte([],Kte(r),!1))}var Xn;(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"})(Xn||(Xn={}));function Xte(e,t){e<Xn.NONE?e=Xn.NONE:e>Xn.ALL&&(e=Xn.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",Xn.ERROR),warn:r("warn",Xn.WARN),info:r("info",Xn.INFO),debug:r("debug",Xn.DEBUG),verbose:r("verbose",Xn.VERBOSE)}}var Jte=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Zte=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ere="diag",v$=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=KP("diag");if(!!c)return c[i].apply(c,Zte([],Jte(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:Xn.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var S=KP("diag"),A=Xte((c=a.logLevel)!==null&&c!==void 0?c:Xn.INFO,i);if(S&&!a.suppressOverrideMessage){var Q=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";S.warn("Current logger will be overwritten from "+Q),A.warn("Current logger will overwrite one already registered from "+Q)}return qte("diag",A,r,!0)};r.setLogger=n,r.disable=function(){Wte(ere,r)},r.createComponentLogger=function(i){return new zte(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),Wu=v$.instance(),tre=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),rre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},nre=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ire=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new tre}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,nre([this._that],rre(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),Jf;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Jf||(Jf={}));var QP;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(QP||(QP={}));var are=",",ore=["OTEL_SDK_DISABLED"];function sre(e){return ore.indexOf(e)>-1}var ure=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function cre(e){return ure.indexOf(e)>-1}var lre=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function fre(e){return lre.indexOf(e)>-1}var zP=1/0,XP=128,_re=128,dre=128,S$={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Xn.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:zP,OTEL_ATTRIBUTE_COUNT_LIMIT:XP,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:zP,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:XP,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:zP,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:XP,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:_re,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:dre,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:QP.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function pre(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function hre(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function vre(e,t,r,n){n===void 0&&(n=are);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var Sre={ALL:Xn.ALL,VERBOSE:Xn.VERBOSE,DEBUG:Xn.DEBUG,INFO:Xn.INFO,WARN:Xn.WARN,ERROR:Xn.ERROR,NONE:Xn.NONE};function Ere(e,t,r){var n=r[e];if(typeof n=="string"){var i=Sre[n.toUpperCase()];i!=null&&(t[e]=i)}}function gre(e){var t={};for(var r in S$){var n=r;switch(n){case"OTEL_LOG_LEVEL":Ere(n,t,e);break;default:if(sre(n))pre(n,t,e);else if(cre(n))hre(n,t,e);else if(fre(n))vre(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var Tre=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{};function Xs(){var e=gre(Tre);return Object.assign({},S$,e)}function wNe(){return parseEnvironment(_globalThis)}var mre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},E$=1e4,Are=5,yre=1e3,Ore=5e3,bre=1.5;function Rre(e){e===void 0&&(e={});var t={};return Object.entries(e).forEach(function(r){var n=mre(r,2),i=n[0],a=n[1];typeof a<"u"?t[i]=String(a):Wu.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),t}function Pre(e,t){return e.endsWith("/")||(e=e+"/"),e+t}function Cre(e){try{var t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return Wu.warn("Could not parse export URL: '"+e+"'"),e}}function Mre(e){return typeof e=="number"?e<=0?g$(e,E$):e:Nre()}function Nre(){var e,t=Number((e=Xs().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:Xs().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?g$(t,E$):t}function g$(e,t){return Wu.warn("Timeout must be greater than 0",e),t}function Ire(e){var t=[429,502,503,504];return t.includes(e)}function Lre(e){if(e==null)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;var r=new Date(e).getTime()-Date.now();return r>=0?r:0}var Dre=function(){function e(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new ire(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=Mre(t.timeoutMillis),this.onInit(t)}return e.prototype.export=function(t,r){if(this._shutdownOnce.isCalled){r({code:Jf.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){r({code:Jf.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(function(){r({code:Jf.SUCCESS})}).catch(function(n){r({code:Jf.FAILED,error:n})})},e.prototype._export=function(t){var r=this;return new Promise(function(n,i){try{Wu.debug("items to be sent",t),r.send(t,n,i)}catch(a){i(a)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return Wu.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),wre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),eh=function(e){wre(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.name="OTLPExporterError",a.data=i,a.code=n,a}return t}(Error),$g=function(){return $g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$g.apply(this,arguments)},Ure=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function xre(e,t,r,n,i){if(navigator.sendBeacon(t,new Blob([e],r)))Wu.debug("sendBeacon - can send",e),n();else{var a=new eh("sendBeacon - cannot send "+e);i(a)}}function Vre(e,t,r,n,i,a){var u,c,v=!1,_=setTimeout(function(){if(clearTimeout(u),v=!0,c.readyState===XMLHttpRequest.DONE){var A=new eh("Request Timeout");a(A)}else c.abort()},n),S=function(A,Q){A===void 0&&(A=Are),Q===void 0&&(Q=yre),c=new XMLHttpRequest,c.open("POST",t);var le={Accept:"application/json","Content-Type":"application/json"};Object.entries($g($g({},le),r)).forEach(function(pe){var me=Ure(pe,2),Ge=me[0],Me=me[1];c.setRequestHeader(Ge,Me)}),c.send(e),c.onreadystatechange=function(){if(c.readyState===XMLHttpRequest.DONE&&v===!1)if(c.status>=200&&c.status<=299)Wu.debug("xhr success",e),i(),clearTimeout(_),clearTimeout(u);else if(c.status&&Ire(c.status)&&A>0){var pe=void 0;Q=bre*Q,c.getResponseHeader("Retry-After")?pe=Lre(c.getResponseHeader("Retry-After")):pe=Math.round(Math.random()*(Ore-Q)+Q),u=setTimeout(function(){S(A-1,Q)},pe)}else{var me=new eh("Failed to export with XHR (status: "+c.status+")",c.status);a(me),clearTimeout(_),clearTimeout(u)}},c.onabort=function(){if(v){var pe=new eh("Request Timeout");a(pe)}clearTimeout(_),clearTimeout(u)},c.onerror=function(){if(v){var pe=new eh("Request Timeout");a(pe)}clearTimeout(_),clearTimeout(u)}};S()}var Fre=Symbol("BaggageEntryMetadata"),$re=v$.instance();function UNe(e){return e===void 0&&(e={}),new BaggageImpl(new Map(Object.entries(e)))}function Gre(e){return typeof e!="string"&&($re.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Fre,toString:function(){return e}}}var Bre="=",T$=";",kre=",",xNe="baggage",VNe=180,FNe=4096,$Ne=8192,jre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function GNe(e){return e.reduce(function(t,r){var n=""+t+(t!==""?BAGGAGE_ITEMS_SEPARATOR:"")+r;return n.length>BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}function BNe(e){return e.getAllEntries().map(function(t){var r=jre(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),a})}function Hre(e){var t=e.split(T$);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(Bre);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=Gre(t.join(T$))),{key:i,value:a,metadata:u}}}}}function m$(e){return typeof e!="string"||e.length===0?{}:e.split(kre).map(function(t){return Hre(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var Yre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qre=function(e){Yre(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,r)||this;return n._useXHR=!1,n._useXHR=!!r.headers||typeof navigator.sendBeacon!="function",n._useXHR?n._headers=Object.assign({},Rre(r.headers),m$(Xs().OTEL_EXPORTER_OTLP_HEADERS)):n._headers={},n}return t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(r,n,i){var a=this;if(this._shutdownOnce.isCalled){Wu.debug("Shutdown already started. Cannot send objects");return}var u=this.convert(r),c=JSON.stringify(u),v=new Promise(function(S,A){a._useXHR?Vre(c,a.url,a._headers,a.timeoutMillis,S,A):xre(c,a.url,{type:"application/json"},S,A)}).then(n,i);this._sendingPromises.push(v);var _=function(){var S=a._sendingPromises.indexOf(v);a._sendingPromises.splice(S,1)};v.then(_,_)},t}(Dre),A$=9,Wre=6,Kre=Math.pow(10,Wre),Gg=Math.pow(10,A$);function Bg(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Kre);return[r,n]}function y$(){var e=performance.timeOrigin;if(typeof e!="number"){var t=performance;e=t.timing&&t.timing.fetchStart}return e}function Qre(e){var t=Bg(y$()),r=Bg(typeof e=="number"?e:performance.now());return Xre(t,r)}function kNe(e){if(O$(e))return e;if(typeof e=="number")return e<y$()?Qre(e):Bg(e);if(e instanceof Date)return Bg(e.getTime());throw TypeError("Invalid input type")}function jNe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=Gg),[r,n]}function HNe(e){var t=A$,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function zre(e){return e[0]*Gg+e[1]}function YNe(e){return e[0]*1e3+e[1]/1e6}function qNe(e){return e[0]*1e6+e[1]/1e3}function O$(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function WNe(e){return O$(e)||typeof e=="number"||e instanceof Date}function Xre(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=Gg&&(r[1]-=Gg,r[0]+=1),r}function b$(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function JP(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var i=b$(e.charCodeAt(n)),a=b$(e.charCodeAt(n+1));t[r++]=i<<4|a}return t}function R$(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Jre(e){var t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function P$(e){var t=R$(e);return Jre(t)}function Zre(e){var t=R$(e);return t.toString()}var ene=typeof BigInt<"u"?Zre:zre;function C$(e){return e}function M$(e){if(e!==void 0)return JP(e)}var tne={encodeHrTime:P$,encodeSpanContext:JP,encodeOptionalSpanContext:M$};function rne(e){var t,r;if(e===void 0)return tne;var n=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(r=e.useHex)!==null&&r!==void 0?r:!1;return{encodeHrTime:n?P$:ene,encodeSpanContext:i?C$:JP,encodeOptionalSpanContext:i?C$:M$}}var nne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function ine(e){return{name:e.name,version:e.version}}function ane(e){return Object.keys(e).map(function(t){return ZP(t,e[t])})}function ZP(e,t){return{key:e,value:eC(t)}}function eC(e){var 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(eC)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(r){var n=nne(r,2),i=n[0],a=n[1];return ZP(i,a)})}}:{}}function one(e){return{attributes:ane(e.attributes),droppedAttributesCount:0}}var sne=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N$=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function une(e,t){var r=rne(t);return{resourceLogs:lne(e,r)}}function cne(e){var t,r,n=new Map;try{for(var i=sne(e),a=i.next();!a.done;a=i.next()){var u=a.value,c=u.resource,v=u.instrumentationScope,_=v.name,S=v.version,A=S===void 0?"":S,Q=v.schemaUrl,le=Q===void 0?"":Q,pe=n.get(c);pe||(pe=new Map,n.set(c,pe));var me=_+"@"+A+":"+le,Ge=pe.get(me);Ge||(Ge=[],pe.set(me,Ge)),Ge.push(u)}}catch(Me){t={error:Me}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function lne(e,t){var r=cne(e);return Array.from(r,function(n){var i=N$(n,2),a=i[0],u=i[1];return{resource:one(a),scopeLogs:Array.from(u,function(c){var v=N$(c,2),_=v[1];return{scope:ine(_[0].instrumentationScope),logRecords:_.map(function(S){return fne(S,t)}),schemaUrl:_[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function fne(e,t){var r,n,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:eC(e.body),attributes:_ne(e.attributes),droppedAttributesCount:e.droppedAttributesCount,flags:(r=e.spanContext)===null||r===void 0?void 0:r.traceFlags,traceId:t.encodeOptionalSpanContext((n=e.spanContext)===null||n===void 0?void 0:n.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)===null||i===void 0?void 0:i.spanId)}}function KNe(e){return e}function _ne(e){return Object.keys(e).map(function(t){return ZP(t,e[t])})}var I$="v1/logs",dne="http://localhost:4318/"+I$;function pne(e){return typeof e.url=="string"?e.url:Xs().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length>0?Cre(Xs().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT):Xs().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?Pre(Xs().OTEL_EXPORTER_OTLP_ENDPOINT,I$):dne}var hne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),th=function(){return th=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},th.apply(this,arguments)},vne=function(e){hne(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,th({timeoutMillis:Xs().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT},r))||this;return n._headers=th(th({},n._headers),m$(Xs().OTEL_EXPORTER_OTLP_LOGS_HEADERS)),n}return t.prototype.convert=function(r){return une(r,{useHex:!0,useLongBits:!1})},t.prototype.getDefaultUrl=function(r){return pne(r)},t}(qre),dr=fs.instance();function hi(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Sne="cloud.provider",Ene="cloud.account.id",gne="cloud.region",Tne="cloud.availability_zone",mne="cloud.platform",Ane="aws.ecs.container.arn",yne="aws.ecs.cluster.arn",One="aws.ecs.launchtype",bne="aws.ecs.task.arn",Rne="aws.ecs.task.family",Pne="aws.ecs.task.revision",Cne="aws.eks.cluster.arn",Mne="aws.log.group.names",Nne="aws.log.group.arns",Ine="aws.log.stream.names",Lne="aws.log.stream.arns",Dne="container.name",wne="container.id",Une="container.runtime",xne="container.image.name",Vne="container.image.tag",L$="deployment.environment",Fne="device.id",$ne="device.model.identifier",Gne="device.model.name",Bne="faas.name",kne="faas.id",jne="faas.version",Hne="faas.instance",Yne="faas.max_memory",qne="host.id",Wne="host.name",Kne="host.type",Qne="host.arch",zne="host.image.name",Xne="host.image.id",Jne="host.image.version",Zne="k8s.cluster.name",eie="k8s.node.name",tie="k8s.node.uid",rie="k8s.namespace.name",nie="k8s.pod.uid",iie="k8s.pod.name",aie="k8s.container.name",oie="k8s.replicaset.uid",sie="k8s.replicaset.name",uie="k8s.deployment.uid",cie="k8s.deployment.name",lie="k8s.statefulset.uid",fie="k8s.statefulset.name",_ie="k8s.daemonset.uid",die="k8s.daemonset.name",pie="k8s.job.uid",hie="k8s.job.name",vie="k8s.cronjob.uid",Sie="k8s.cronjob.name",Eie="os.type",gie="os.description",Tie="os.name",mie="os.version",Aie="process.pid",yie="process.executable.name",Oie="process.executable.path",bie="process.command",Rie="process.command_line",Pie="process.command_args",Cie="process.owner",D$="process.runtime.name",Mie="process.runtime.version",Nie="process.runtime.description",w$="service.name",U$="service.namespace",Iie="service.instance.id",x$="service.version",V$="telemetry.sdk.name",F$="telemetry.sdk.language",$$="telemetry.sdk.version",Lie="telemetry.auto.version",Die="webengine.name",wie="webengine.version",Uie="webengine.description",QNe=null,zNe=null,XNe=null,JNe=null,ZNe=null,eIe=null,tIe=null,rIe=null,nIe=null,iIe=null,aIe=null,oIe=null,sIe=null,uIe=null,cIe=null,lIe=null,fIe=null,_Ie=null,dIe=null,pIe=null,hIe=null,xie=L$,vIe=null,SIe=null,EIe=null,gIe=null,TIe=null,mIe=null,AIe=null,yIe=null,OIe=null,bIe=null,RIe=null,PIe=null,CIe=null,MIe=null,NIe=null,IIe=null,LIe=null,DIe=null,wIe=null,UIe=null,xIe=null,VIe=null,FIe=null,$Ie=null,GIe=null,BIe=null,kIe=null,jIe=null,HIe=null,YIe=null,qIe=null,WIe=null,KIe=null,QIe=null,zIe=null,XIe=null,JIe=null,ZIe=null,e0e=null,t0e=null,r0e=null,n0e=null,i0e=null,a0e=null,o0e=null,Vie=D$,s0e=null,u0e=null,G$=w$,Fie=U$,c0e=null,$ie=x$,tC=V$,kg=F$,rC=$$,l0e=null,f0e=null,_0e=null,d0e=null,p0e=hi([Sne,Ene,gne,Tne,mne,Ane,yne,One,bne,Rne,Pne,Cne,Mne,Nne,Ine,Lne,Dne,wne,Une,xne,Vne,L$,Fne,$ne,Gne,Bne,kne,jne,Hne,Yne,qne,Wne,Kne,Qne,zne,Xne,Jne,Zne,eie,tie,rie,nie,iie,aie,oie,sie,uie,cie,lie,fie,_ie,die,pie,hie,vie,Sie,Eie,gie,Tie,mie,Aie,yie,Oie,bie,Rie,Pie,Cie,D$,Mie,Nie,w$,U$,Iie,x$,V$,F$,$$,Lie,Die,wie,Uie]),Gie="alibaba_cloud",Bie="aws",kie="azure",jie="gcp",h0e=null,v0e=null,S0e=null,E0e=null,g0e=hi([Gie,Bie,kie,jie]),Hie="alibaba_cloud_ecs",Yie="alibaba_cloud_fc",qie="aws_ec2",Wie="aws_ecs",Kie="aws_eks",Qie="aws_lambda",zie="aws_elastic_beanstalk",Xie="azure_vm",Jie="azure_container_instances",Zie="azure_aks",eae="azure_functions",tae="azure_app_service",rae="gcp_compute_engine",nae="gcp_cloud_run",iae="gcp_kubernetes_engine",aae="gcp_cloud_functions",oae="gcp_app_engine",T0e=null,m0e=null,A0e=null,y0e=null,O0e=null,b0e=null,R0e=null,P0e=null,C0e=null,M0e=null,N0e=null,I0e=null,L0e=null,D0e=null,w0e=null,U0e=null,x0e=null,V0e=hi([Hie,Yie,qie,Wie,Kie,Qie,zie,Xie,Jie,Zie,eae,tae,rae,nae,iae,aae,oae]),sae="ec2",uae="fargate",F0e=null,$0e=null,G0e=hi([sae,uae]),cae="amd64",lae="arm32",fae="arm64",_ae="ia64",dae="ppc32",pae="ppc64",hae="x86",B0e=null,k0e=null,j0e=null,H0e=null,Y0e=null,q0e=null,W0e=null,K0e=hi([cae,lae,fae,_ae,dae,pae,hae]),vae="windows",Sae="linux",Eae="darwin",gae="freebsd",Tae="netbsd",mae="openbsd",Aae="dragonflybsd",yae="hpux",Oae="aix",bae="solaris",Rae="z_os",Q0e=null,z0e=null,X0e=null,J0e=null,Z0e=null,eLe=null,tLe=null,rLe=null,nLe=null,iLe=null,aLe=null,oLe=hi([vae,Sae,Eae,gae,Tae,mae,Aae,yae,Oae,bae,Rae]),Pae="cpp",Cae="dotnet",Mae="erlang",Nae="go",Iae="java",Lae="nodejs",Dae="php",wae="python",Uae="ruby",B$="webjs",sLe=null,uLe=null,cLe=null,lLe=null,fLe=null,_Le=null,dLe=null,pLe=null,hLe=null,xae=B$,vLe=hi([Pae,Cae,Mae,Nae,Iae,Lae,Dae,wae,Uae,B$]),Vae="1.25.1",Zf,nC=(Zf={},Zf[tC]="opentelemetry",Zf[Vie]="browser",Zf[kg]=xae,Zf[rC]=Vae,Zf);function Fae(){return"unknown_service"}var Ku=function(){return Ku=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ku.apply(this,arguments)},$ae=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Gae=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Bae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},jg=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return dr.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[G$]=Fae(),t[kg]=nC[kg],t[tC]=nC[tC],t[rC]=nC[rC],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&dr.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return $ae(this,void 0,void 0,function(){return Gae(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Ku(Ku({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=Bae(u,2),_=v[0],S=v[1];return Ku(Ku(Ku(Ku({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),S)});return new e(i,a)},e.EMPTY=new e({}),e}(),k$=function(){function e(){}return e.prototype.emit=function(t){},e}(),kae=new k$;function al(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var jae="cloud.provider",Hae="cloud.account.id",Yae="cloud.region",qae="cloud.availability_zone",Wae="cloud.platform",Kae="aws.ecs.container.arn",Qae="aws.ecs.cluster.arn",zae="aws.ecs.launchtype",Xae="aws.ecs.task.arn",Jae="aws.ecs.task.family",Zae="aws.ecs.task.revision",eoe="aws.eks.cluster.arn",toe="aws.log.group.names",roe="aws.log.group.arns",noe="aws.log.stream.names",ioe="aws.log.stream.arns",aoe="container.name",ooe="container.id",soe="container.runtime",uoe="container.image.name",coe="container.image.tag",loe="deployment.environment",foe="device.id",_oe="device.model.identifier",doe="device.model.name",poe="faas.name",hoe="faas.id",voe="faas.version",Soe="faas.instance",Eoe="faas.max_memory",goe="host.id",Toe="host.name",moe="host.type",Aoe="host.arch",yoe="host.image.name",Ooe="host.image.id",boe="host.image.version",Roe="k8s.cluster.name",Poe="k8s.node.name",Coe="k8s.node.uid",Moe="k8s.namespace.name",Noe="k8s.pod.uid",Ioe="k8s.pod.name",Loe="k8s.container.name",Doe="k8s.replicaset.uid",woe="k8s.replicaset.name",Uoe="k8s.deployment.uid",xoe="k8s.deployment.name",Voe="k8s.statefulset.uid",Foe="k8s.statefulset.name",$oe="k8s.daemonset.uid",Goe="k8s.daemonset.name",Boe="k8s.job.uid",koe="k8s.job.name",joe="k8s.cronjob.uid",Hoe="k8s.cronjob.name",Yoe="os.type",qoe="os.description",Woe="os.name",Koe="os.version",Qoe="process.pid",zoe="process.executable.name",Xoe="process.executable.path",Joe="process.command",Zoe="process.command_line",ese="process.command_args",tse="process.owner",rse="process.runtime.name",nse="process.runtime.version",ise="process.runtime.description",j$="service.name",ase="service.namespace",ose="service.instance.id",sse="service.version",H$="telemetry.sdk.name",Y$="telemetry.sdk.language",q$="telemetry.sdk.version",use="telemetry.auto.version",cse="webengine.name",lse="webengine.version",fse="webengine.description",SLe=null,ELe=null,gLe=null,TLe=null,mLe=null,ALe=null,yLe=null,OLe=null,bLe=null,RLe=null,PLe=null,CLe=null,MLe=null,NLe=null,ILe=null,LLe=null,DLe=null,wLe=null,ULe=null,xLe=null,VLe=null,FLe=null,$Le=null,GLe=null,BLe=null,kLe=null,jLe=null,HLe=null,YLe=null,qLe=null,WLe=null,KLe=null,QLe=null,zLe=null,XLe=null,JLe=null,ZLe=null,eDe=null,tDe=null,rDe=null,nDe=null,iDe=null,aDe=null,oDe=null,sDe=null,uDe=null,cDe=null,lDe=null,fDe=null,_De=null,dDe=null,pDe=null,hDe=null,vDe=null,SDe=null,EDe=null,gDe=null,TDe=null,mDe=null,ADe=null,yDe=null,ODe=null,bDe=null,RDe=null,PDe=null,CDe=null,MDe=null,NDe=null,IDe=null,LDe=null,_se=j$,DDe=null,wDe=null,UDe=null,W$=H$,K$=Y$,Q$=q$,xDe=null,VDe=null,FDe=null,$De=null,GDe=al([jae,Hae,Yae,qae,Wae,Kae,Qae,zae,Xae,Jae,Zae,eoe,toe,roe,noe,ioe,aoe,ooe,soe,uoe,coe,loe,foe,_oe,doe,poe,hoe,voe,Soe,Eoe,goe,Toe,moe,Aoe,yoe,Ooe,boe,Roe,Poe,Coe,Moe,Noe,Ioe,Loe,Doe,woe,Uoe,xoe,Voe,Foe,$oe,Goe,Boe,koe,joe,Hoe,Yoe,qoe,Woe,Koe,Qoe,zoe,Xoe,Joe,Zoe,ese,tse,rse,nse,ise,j$,ase,ose,sse,H$,Y$,q$,use,cse,lse,fse]),dse="alibaba_cloud",pse="aws",hse="azure",vse="gcp",BDe=null,kDe=null,jDe=null,HDe=null,YDe=al([dse,pse,hse,vse]),Sse="alibaba_cloud_ecs",Ese="alibaba_cloud_fc",gse="aws_ec2",Tse="aws_ecs",mse="aws_eks",Ase="aws_lambda",yse="aws_elastic_beanstalk",Ose="azure_vm",bse="azure_container_instances",Rse="azure_aks",Pse="azure_functions",Cse="azure_app_service",Mse="gcp_compute_engine",Nse="gcp_cloud_run",Ise="gcp_kubernetes_engine",Lse="gcp_cloud_functions",Dse="gcp_app_engine",qDe=null,WDe=null,KDe=null,QDe=null,zDe=null,XDe=null,JDe=null,ZDe=null,ewe=null,twe=null,rwe=null,nwe=null,iwe=null,awe=null,owe=null,swe=null,uwe=null,cwe=al([Sse,Ese,gse,Tse,mse,Ase,yse,Ose,bse,Rse,Pse,Cse,Mse,Nse,Ise,Lse,Dse]),wse="ec2",Use="fargate",lwe=null,fwe=null,_we=al([wse,Use]),xse="amd64",Vse="arm32",Fse="arm64",$se="ia64",Gse="ppc32",Bse="ppc64",kse="x86",dwe=null,pwe=null,hwe=null,vwe=null,Swe=null,Ewe=null,gwe=null,Twe=al([xse,Vse,Fse,$se,Gse,Bse,kse]),jse="windows",Hse="linux",Yse="darwin",qse="freebsd",Wse="netbsd",Kse="openbsd",Qse="dragonflybsd",zse="hpux",Xse="aix",Jse="solaris",Zse="z_os",mwe=null,Awe=null,ywe=null,Owe=null,bwe=null,Rwe=null,Pwe=null,Cwe=null,Mwe=null,Nwe=null,Iwe=null,Lwe=al([jse,Hse,Yse,qse,Wse,Kse,Qse,zse,Xse,Jse,Zse]),eue="cpp",tue="dotnet",rue="erlang",nue="go",iue="java",aue="nodejs",oue="php",sue="python",uue="ruby",cue="webjs",Dwe=null,wwe=null,Uwe=null,xwe=null,Vwe=null,Fwe=null,$we=null,Gwe=null,Bwe=null,kwe=null,jwe=al([eue,tue,rue,nue,iue,aue,oue,sue,uue,cue]),lue="1.24.1";function ol(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var fue="cloud.provider",_ue="cloud.account.id",due="cloud.region",pue="cloud.availability_zone",hue="cloud.platform",vue="aws.ecs.container.arn",Sue="aws.ecs.cluster.arn",Eue="aws.ecs.launchtype",gue="aws.ecs.task.arn",Tue="aws.ecs.task.family",mue="aws.ecs.task.revision",Aue="aws.eks.cluster.arn",yue="aws.log.group.names",Oue="aws.log.group.arns",bue="aws.log.stream.names",Rue="aws.log.stream.arns",Pue="container.name",Cue="container.id",Mue="container.runtime",Nue="container.image.name",Iue="container.image.tag",Lue="deployment.environment",Due="device.id",wue="device.model.identifier",Uue="device.model.name",xue="faas.name",Vue="faas.id",Fue="faas.version",$ue="faas.instance",Gue="faas.max_memory",Bue="host.id",kue="host.name",jue="host.type",Hue="host.arch",Yue="host.image.name",que="host.image.id",Wue="host.image.version",Kue="k8s.cluster.name",Que="k8s.node.name",zue="k8s.node.uid",Xue="k8s.namespace.name",Jue="k8s.pod.uid",Zue="k8s.pod.name",ece="k8s.container.name",tce="k8s.replicaset.uid",rce="k8s.replicaset.name",nce="k8s.deployment.uid",ice="k8s.deployment.name",ace="k8s.statefulset.uid",oce="k8s.statefulset.name",sce="k8s.daemonset.uid",uce="k8s.daemonset.name",cce="k8s.job.uid",lce="k8s.job.name",fce="k8s.cronjob.uid",_ce="k8s.cronjob.name",dce="os.type",pce="os.description",hce="os.name",vce="os.version",Sce="process.pid",Ece="process.executable.name",gce="process.executable.path",Tce="process.command",mce="process.command_line",Ace="process.command_args",yce="process.owner",Oce="process.runtime.name",bce="process.runtime.version",Rce="process.runtime.description",Pce="service.name",Cce="service.namespace",Mce="service.instance.id",Nce="service.version",Ice="telemetry.sdk.name",Lce="telemetry.sdk.language",Dce="telemetry.sdk.version",wce="telemetry.auto.version",Uce="webengine.name",xce="webengine.version",Vce="webengine.description",Hwe=null,Ywe=null,qwe=null,Wwe=null,Kwe=null,Qwe=null,zwe=null,Xwe=null,Jwe=null,Zwe=null,eUe=null,tUe=null,rUe=null,nUe=null,iUe=null,aUe=null,oUe=null,sUe=null,uUe=null,cUe=null,lUe=null,fUe=null,_Ue=null,dUe=null,pUe=null,hUe=null,vUe=null,SUe=null,EUe=null,gUe=null,TUe=null,mUe=null,AUe=null,yUe=null,OUe=null,bUe=null,RUe=null,PUe=null,CUe=null,MUe=null,NUe=null,IUe=null,LUe=null,DUe=null,wUe=null,UUe=null,xUe=null,VUe=null,FUe=null,$Ue=null,GUe=null,BUe=null,kUe=null,jUe=null,HUe=null,YUe=null,qUe=null,WUe=null,KUe=null,QUe=null,zUe=null,XUe=null,JUe=null,ZUe=null,e1e=null,t1e=null,r1e=null,n1e=null,i1e=null,a1e=null,o1e=null,s1e=null,u1e=null,c1e=null,l1e=null,f1e=null,_1e=null,d1e=null,p1e=null,h1e=null,v1e=null,Hg=ol([fue,_ue,due,pue,hue,vue,Sue,Eue,gue,Tue,mue,Aue,yue,Oue,bue,Rue,Pue,Cue,Mue,Nue,Iue,Lue,Due,wue,Uue,xue,Vue,Fue,$ue,Gue,Bue,kue,jue,Hue,Yue,que,Wue,Kue,Que,zue,Xue,Jue,Zue,ece,tce,rce,nce,ice,ace,oce,sce,uce,cce,lce,fce,_ce,dce,pce,hce,vce,Sce,Ece,gce,Tce,mce,Ace,yce,Oce,bce,Rce,Pce,Cce,Mce,Nce,Ice,Lce,Dce,wce,Uce,xce,Vce]),Fce="alibaba_cloud",$ce="aws",Gce="azure",Bce="gcp",S1e=null,E1e=null,g1e=null,T1e=null,m1e=ol([Fce,$ce,Gce,Bce]),kce="alibaba_cloud_ecs",jce="alibaba_cloud_fc",Hce="aws_ec2",Yce="aws_ecs",qce="aws_eks",Wce="aws_lambda",Kce="aws_elastic_beanstalk",Qce="azure_vm",zce="azure_container_instances",Xce="azure_aks",Jce="azure_functions",Zce="azure_app_service",ele="gcp_compute_engine",tle="gcp_cloud_run",rle="gcp_kubernetes_engine",nle="gcp_cloud_functions",ile="gcp_app_engine",A1e=null,y1e=null,O1e=null,b1e=null,R1e=null,P1e=null,C1e=null,M1e=null,N1e=null,I1e=null,L1e=null,D1e=null,w1e=null,U1e=null,x1e=null,V1e=null,F1e=null,$1e=ol([kce,jce,Hce,Yce,qce,Wce,Kce,Qce,zce,Xce,Jce,Zce,ele,tle,rle,nle,ile]),ale="ec2",ole="fargate",G1e=null,B1e=null,k1e=ol([ale,ole]),sle="amd64",ule="arm32",cle="arm64",lle="ia64",fle="ppc32",_le="ppc64",dle="x86",j1e=null,H1e=null,Y1e=null,q1e=null,W1e=null,K1e=null,Q1e=null,z1e=ol([sle,ule,cle,lle,fle,_le,dle]),ple="windows",hle="linux",vle="darwin",Sle="freebsd",Ele="netbsd",gle="openbsd",Tle="dragonflybsd",mle="hpux",Ale="aix",yle="solaris",Ole="z_os",X1e=null,J1e=null,Z1e=null,exe=null,txe=null,rxe=null,nxe=null,ixe=null,axe=null,oxe=null,sxe=null,uxe=ol([ple,hle,vle,Sle,Ele,gle,Tle,mle,Ale,yle,Ole]),ble="cpp",Rle="dotnet",Ple="erlang",Cle="go",Mle="java",Nle="nodejs",Ile="php",Lle="python",Dle="ruby",wle="webjs",cxe=null,lxe=null,fxe=null,_xe=null,dxe=null,pxe=null,hxe=null,vxe=null,Sxe=null,Exe=null,Ule=ol([ble,Rle,Ple,Cle,Mle,Nle,Ile,Lle,Dle,wle]),e_,iC=(e_={},e_[Hg.TELEMETRY_SDK_NAME]="opentelemetry",e_[Hg.PROCESS_RUNTIME_NAME]="browser",e_[Hg.TELEMETRY_SDK_LANGUAGE]=Ule.WEBJS,e_[Hg.TELEMETRY_SDK_VERSION]=lue,e_);function xle(){return"unknown_service"}var Qu=function(){return Qu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qu.apply(this,arguments)},Vle=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Fle=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},$le=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},z$=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return dr.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[_se]=xle(),t[K$]=iC[K$],t[W$]=iC[W$],t[Q$]=iC[Q$],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&dr.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return Vle(this,void 0,void 0,function(){return Fle(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Qu(Qu({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=$le(u,2),_=v[0],S=v[1];return Qu(Qu(Qu(Qu({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),S)});return new e(i,a)},e.EMPTY=new e({}),e}(),Gle="[object Object]",Ble="[object Null]",kle="[object Undefined]",jle=Function.prototype,X$=jle.toString,Hle=X$.call(Object),Yle=qle(Object.getPrototypeOf,Object),J$=Object.prototype,Z$=J$.hasOwnProperty,sl=Symbol?Symbol.toStringTag:void 0,eG=J$.toString;function qle(e,t){return function(r){return e(t(r))}}function tG(e){if(!Wle(e)||Kle(e)!==Gle)return!1;var t=Yle(e);if(t===null)return!0;var r=Z$.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&X$.call(r)===Hle}function Wle(e){return e!=null&&typeof e=="object"}function Kle(e){return e==null?e===void 0?kle:Ble:sl&&sl in Object(e)?Qle(e):zle(e)}function Qle(e){var t=Z$.call(e,sl),r=e[sl],n=!1;try{e[sl]=void 0,n=!0}catch{}var i=eG.call(e);return n&&(t?e[sl]=r:delete e[sl]),i}function zle(e){return eG.call(e)}var Xle=20;function Jle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=rG(r,e.shift(),0,n);return r}function aC(e){return Yg(e)?e.slice():e}function rG(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>Xle)){if(r++,qg(e)||qg(t)||iG(t))i=aC(t);else if(Yg(e)){if(i=e.slice(),Yg(t))for(var a=0,u=t.length;a<u;a++)i.push(aC(t[a]));else if(rh(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=aC(t[v])}}else if(rh(e))if(rh(t)){if(!Zle(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(qg(_))typeof _>"u"?delete i[v]:i[v]=_;else{var S=i[v],A=_;if(nG(e,v,n)||nG(t,v,n))delete i[v];else{if(rh(S)&&rh(A)){var Q=n.get(S)||[],le=n.get(A)||[];Q.push({obj:e,key:v}),le.push({obj:t,key:v}),n.set(S,Q),n.set(A,le)}i[v]=rG(i[v],_,r,n)}}}}else i=t;return i}}function nG(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function Yg(e){return Array.isArray(e)}function iG(e){return typeof e=="function"}function rh(e){return!qg(e)&&!Yg(e)&&!iG(e)&&typeof e=="object"}function qg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Zle(e,t){return!(!tG(e)||!tG(t))}var efe=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),tfe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},rfe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},aG=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new efe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,rfe([this._that],tfe(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),Gi=Fg.getInstance(),oC=performance,oG=9,nfe=6,ife=Math.pow(10,nfe),Wg=Math.pow(10,oG);function nh(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*ife);return[r,n]}function sG(){var e=oC.timeOrigin;if(typeof e!="number"){var t=oC;e=t.timing&&t.timing.fetchStart}return e}function sC(e){var t=nh(sG()),r=nh(typeof e=="number"?e:oC.now());return afe(t,r)}function ul(e){if(uG(e))return e;if(typeof e=="number")return e<sG()?sC(e):nh(e);if(e instanceof Date)return nh(e.getTime());throw TypeError("Invalid input type")}function gxe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=Wg),[r,n]}function Txe(e){var t=oG,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function zu(e){return e[0]*Wg+e[1]}function mxe(e){return e[0]*1e3+e[1]/1e6}function Axe(e){return e[0]*1e6+e[1]/1e3}function uG(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function yxe(e){return uG(e)||typeof e=="number"||e instanceof Date}function afe(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=Wg&&(r[1]-=Wg,r[0]+=1),r}var cG=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ofe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Oxe(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=cG(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=ofe(a.value,2),c=u[0],v=u[1];if(!sfe(c)){diag.warn("Invalid attribute key: "+c);continue}if(!uC(v)){diag.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function sfe(e){return typeof e=="string"&&e.length>0}function uC(e){return e==null?!0:Array.isArray(e)?ufe(e):lG(e)}function ufe(e){var t,r,n;try{for(var i=cG(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(lG(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function lG(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var cfe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lfe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ffe=function(){function e(t,r,n){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var i=n.timestamp,a=n.observedTimestamp,u=n.severityNumber,c=n.severityText,v=n.body,_=n.attributes,S=_===void 0?{}:_,A=n.context,Q=Date.now();if(this.hrTime=ul(i??Q),this.hrTimeObserved=ul(a??Q),A){var le=zi.getSpanContext(A);le&&Xf(le)&&(this.spanContext=le)}this.severityNumber=u,this.severityText=c,this.body=v,this.resource=t.resource,this.instrumentationScope=r,this._logRecordLimits=t.logRecordLimits,this.setAttributes(S)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,r){return this._isLogRecordReadonly()?this:r===null?this:t.length===0?(dr.warn("Invalid attribute key: "+t),this):!uC(r)&&!(typeof r=="object"&&!Array.isArray(r)&&Object.keys(r).length>0)?(dr.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&dr.warn("Dropping extra attributes."),this):(uC(r)?this.attributes[t]=this._truncateToSize(r):this.attributes[t]=r,this))},e.prototype.setAttributes=function(t){var r,n;try{for(var i=cfe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=lfe(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var r=this,n=this._logRecordLimits.attributeValueLengthLimit;return n<=0?(dr.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&dr.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}(),cC=function(){return cC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cC.apply(this,arguments)},_fe=function(){function e(t,r){this.instrumentationScope=t,this._sharedState=r}return e.prototype.emit=function(t){var r=t.context||Gi.active(),n=new ffe(this._sharedState,this.instrumentationScope,cC({context:r},t));this._sharedState.activeProcessor.onEmit(n,r),n._makeReadonly()},e}(),lC;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(lC||(lC={}));var dfe=",",pfe=["OTEL_SDK_DISABLED"];function hfe(e){return pfe.indexOf(e)>-1}var vfe=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Sfe(e){return vfe.indexOf(e)>-1}var Efe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function gfe(e){return Efe.indexOf(e)>-1}var Kg=1/0,Qg=128,Tfe=128,mfe=128,fG={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:on.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Kg,OTEL_ATTRIBUTE_COUNT_LIMIT:Qg,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Kg,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Qg,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Kg,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Qg,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Tfe,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:mfe,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:lC.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Afe(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function yfe(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function Ofe(e,t,r,n){n===void 0&&(n=dfe);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var bfe={ALL:on.ALL,VERBOSE:on.VERBOSE,DEBUG:on.DEBUG,INFO:on.INFO,WARN:on.WARN,ERROR:on.ERROR,NONE:on.NONE};function Rfe(e,t,r){var n=r[e];if(typeof n=="string"){var i=bfe[n.toUpperCase()];i!=null&&(t[e]=i)}}function _G(e){var t={};for(var r in fG){var n=r;switch(n){case"OTEL_LOG_LEVEL":Rfe(n,t,e);break;default:if(hfe(n))Afe(n,t,e);else if(Sfe(n))yfe(n,t,e);else if(gfe(n))Ofe(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var ih=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{};function fC(){var e=_G(ih);return Object.assign({},fG,e)}function Pfe(){return _G(ih)}function Cfe(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:fC().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:fC().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Mfe(e){var t,r,n,i,a,u,c=Pfe();return{attributeCountLimit:(n=(r=(t=e.attributeCountLimit)!==null&&t!==void 0?t:c.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:c.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:Qg,attributeValueLengthLimit:(u=(a=(i=e.attributeValueLengthLimit)!==null&&i!==void 0?i:c.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&a!==void 0?a:c.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&u!==void 0?u:Kg}}var Nfe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ife=function(e){Nfe(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);function dG(e,t){var r,n=new Promise(function(a,u){r=setTimeout(function(){u(new Ife("Operation timed out."))},t)});return Promise.race([e,n]).then(function(i){return clearTimeout(r),i},function(i){throw clearTimeout(r),i})}var pG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},hG=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Lfe=function(){function e(t,r){this.processors=t,this.forceFlushTimeoutMillis=r}return e.prototype.forceFlush=function(){return pG(this,void 0,void 0,function(){var t;return hG(this,function(r){switch(r.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(n){return dG(n.forceFlush(),t)}))];case 1:return r.sent(),[2]}})})},e.prototype.onEmit=function(t,r){this.processors.forEach(function(n){return n.onEmit(t,r)})},e.prototype.shutdown=function(){return pG(this,void 0,void 0,function(){return hG(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(r){return r.shutdown()}))];case 1:return t.sent(),[2]}})})},e}(),Dfe=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,r){},e.prototype.shutdown=function(){return Promise.resolve()},e}(),wfe=function(){function e(t,r,n){this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=n,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new Dfe}return e}(),Ufe="unknown",xfe=function(){function e(t){t===void 0&&(t={});var r,n=Jle({},Cfe(),t),i=z$.default().merge((r=n.resource)!==null&&r!==void 0?r:z$.empty());this._sharedState=new wfe(i,n.forceFlushTimeoutMillis,Mfe(n.logRecordLimits)),this._shutdownOnce=new aG(this._shutdown,this)}return e.prototype.getLogger=function(t,r,n){if(this._shutdownOnce.isCalled)return dr.warn("A shutdown LoggerProvider cannot provide a Logger"),kae;t||dr.warn("Logger requested without instrumentation scope name.");var i=t||Ufe,a=i+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new _fe({name:i,version:r,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(r){return dr.error("Error while trying to shutdown current log record processor",r)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new Lfe(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(dr.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(dr.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();function Vfe(){return function(e){dr.error(Ffe(e))}}function Ffe(e){return typeof e=="string"?e:JSON.stringify($fe(e))}function $fe(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var vG=Vfe();function bxe(e){vG=e}function zg(e){try{vG(e)}catch{}}function Rxe(e){}function Gfe(e,t){return new Promise(function(r){Gi.with(yte(Gi.active()),function(){e.export(t,function(n){r(n)})})})}var Bfe={_export:Gfe},_C;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(_C||(_C={}));var kfe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},jfe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Hfe=function(){function e(t,r){var n,i,a,u;this._exporter=t,this._finishedLogRecords=[];var c=fC();this._maxExportBatchSize=(n=r?.maxExportBatchSize)!==null&&n!==void 0?n:c.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=(i=r?.maxQueueSize)!==null&&i!==void 0?i:c.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=(a=r?.scheduledDelayMillis)!==null&&a!==void 0?a:c.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=(u=r?.exportTimeoutMillis)!==null&&u!==void 0?u:c.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new aG(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(dr.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return kfe(this,void 0,void 0,function(){return jfe(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})})},e.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),u=0;u<a;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise(function(r,n){dG(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return r()}).catch(n)})},e.prototype._maybeStartTimer=function(){var t=this;this._timer===void 0&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){zg(r)})},this._scheduledDelayMillis),this._timer,void 0)},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e.prototype._export=function(t){var r=this,n=function(){return Bfe._export(r._exporter,t).then(function(a){var u;a.code!==_C.SUCCESS&&zg((u=a.error)!==null&&u!==void 0?u:new Error("BatchLogRecordProcessor: log record export failed (status "+a+")"))}).catch(zg)},i=t.map(function(a){return a.resource}).filter(function(a){return a.asyncAttributesPending});return i.length===0?n():Promise.all(i.map(function(a){var u;return(u=a.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(a)})).then(n,zg)},e}(),Yfe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qfe=function(e){Yfe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._onInit(n),i}return t.prototype.onShutdown=function(){typeof document>"u"||(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t.prototype._onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide===!0||typeof document>"u"||(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t}(Hfe),Wfe=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),Kfe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Qfe={set:function(e,t,r){e!=null&&(e[t]=r)}},dC=Vg("OpenTelemetry Baggage Key");function SG(e){return e.getValue(dC)||void 0}function zfe(){return SG(Fg.getInstance().active())}function Xfe(e,t){return e.setValue(dC,t)}function Jfe(e){return e.deleteValue(dC)}var Zfe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},e_e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},t_e=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(!!r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=Zfe(t,2),n=r[0],i=r[1];return[n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new e(this._entries);try{for(var u=e_e(n),c=u.next();!c.done;c=u.next()){var v=c.value;a._entries.delete(v)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),r_e=Symbol("BaggageEntryMetadata"),n_e=fs.instance();function i_e(e){return e===void 0&&(e={}),new t_e(new Map(Object.entries(e)))}function a_e(e){return typeof e!="string"&&(n_e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:r_e,toString:function(){return e}}}var pC="propagation",o_e=new Wfe,s_e=function(){function e(){this.createBaggage=i_e,this.getBaggage=SG,this.getActiveBaggage=zfe,this.setBaggage=Xfe,this.deleteBaggage=Jfe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Wp(pC,t,fs.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=Qfe),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=Kfe),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Kp(pC,fs.instance())},e.prototype._getGlobalPropagator=function(){return nl(pC)||o_e},e}(),Js=s_e.getInstance(),u_e="[object Object]",c_e="[object Null]",l_e="[object Undefined]",f_e=Function.prototype,EG=f_e.toString,__e=EG.call(Object),d_e=p_e(Object.getPrototypeOf,Object),gG=Object.prototype,TG=gG.hasOwnProperty,cl=Symbol?Symbol.toStringTag:void 0,mG=gG.toString;function p_e(e,t){return function(r){return e(t(r))}}function AG(e){if(!h_e(e)||v_e(e)!==u_e)return!1;var t=d_e(e);if(t===null)return!0;var r=TG.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&EG.call(r)===__e}function h_e(e){return e!=null&&typeof e=="object"}function v_e(e){return e==null?e===void 0?l_e:c_e:cl&&cl in Object(e)?S_e(e):E_e(e)}function S_e(e){var t=TG.call(e,cl),r=e[cl],n=!1;try{e[cl]=void 0,n=!0}catch{}var i=mG.call(e);return n&&(t?e[cl]=r:delete e[cl]),i}function E_e(e){return mG.call(e)}var g_e=20;function T_e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=yG(r,e.shift(),0,n);return r}function hC(e){return Xg(e)?e.slice():e}function yG(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>g_e)){if(r++,Jg(e)||Jg(t)||bG(t))i=hC(t);else if(Xg(e)){if(i=e.slice(),Xg(t))for(var a=0,u=t.length;a<u;a++)i.push(hC(t[a]));else if(ah(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=hC(t[v])}}else if(ah(e))if(ah(t)){if(!m_e(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(Jg(_))typeof _>"u"?delete i[v]:i[v]=_;else{var S=i[v],A=_;if(OG(e,v,n)||OG(t,v,n))delete i[v];else{if(ah(S)&&ah(A)){var Q=n.get(S)||[],le=n.get(A)||[];Q.push({obj:e,key:v}),le.push({obj:t,key:v}),n.set(S,Q),n.set(A,le)}i[v]=yG(i[v],_,r,n)}}}}else i=t;return i}}function OG(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function Xg(e){return Array.isArray(e)}function bG(e){return typeof e=="function"}function ah(e){return!Jg(e)&&!Xg(e)&&!bG(e)&&typeof e=="object"}function Jg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function m_e(e,t){return!(!AG(e)||!AG(t))}var ds;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(ds||(ds={}));var A_e=",",y_e=["OTEL_SDK_DISABLED"];function O_e(e){return y_e.indexOf(e)>-1}var b_e=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function R_e(e){return b_e.indexOf(e)>-1}var P_e=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function C_e(e){return P_e.indexOf(e)>-1}var Zg=1/0,eT=128,M_e=128,N_e=128,RG={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:on.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Zg,OTEL_ATTRIBUTE_COUNT_LIMIT:eT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Zg,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:eT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Zg,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:eT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:M_e,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:N_e,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ds.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function I_e(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function L_e(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function D_e(e,t,r,n){n===void 0&&(n=A_e);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var w_e={ALL:on.ALL,VERBOSE:on.VERBOSE,DEBUG:on.DEBUG,INFO:on.INFO,WARN:on.WARN,ERROR:on.ERROR,NONE:on.NONE};function U_e(e,t,r){var n=r[e];if(typeof n=="string"){var i=w_e[n.toUpperCase()];i!=null&&(t[e]=i)}}function PG(e){var t={};for(var r in RG){var n=r;switch(n){case"OTEL_LOG_LEVEL":U_e(n,t,e);break;default:if(O_e(n))I_e(n,t,e);else if(R_e(n))L_e(n,t,e);else if(C_e(n))D_e(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var CG=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{};function Ua(){var e=PG(CG);return Object.assign({},RG,e)}function x_e(){return PG(CG)}var V_e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F_e=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,i){return n.concat(i)},[])))}return e.prototype.inject=function(t,r,n){var i,a;try{for(var u=V_e(this._propagators),c=u.next();!c.done;c=u.next()){var v=c.value;try{v.inject(t,r,n)}catch(_){dr.warn("Failed to inject with "+v.constructor.name+". Err: "+_.message)}}}catch(_){i={error:_}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(i,a){try{return a.extract(i,r,n)}catch(u){dr.warn("Failed to inject with "+a.constructor.name+". Err: "+u.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),vC=Vg("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $_e(e){return e.setValue(vC,!0)}function Pxe(e){return e.deleteValue(vC)}function SC(e){return e.getValue(vC)===!0}var EC="[_0-9a-z-*/]",G_e="[a-z]"+EC+"{0,255}",B_e="[a-z0-9]"+EC+"{0,240}@[a-z]"+EC+"{0,13}",k_e=new RegExp("^(?:"+G_e+"|"+B_e+")$"),j_e=/^[ -~]{0,255}[!-~]$/,H_e=/,|=/;function Y_e(e){return k_e.test(e)}function q_e(e){return j_e.test(e)&&!H_e.test(e)}var MG=32,W_e=512,NG=",",IG="=",K_e=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+IG+t.get(n)),r},[]).join(NG)},e.prototype._parse=function(t){t.length>W_e||(this._internalState=t.split(NG).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(IG);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);Y_e(u)&&q_e(c)&&r.set(u,c)}return r},new Map),this._internalState.size>MG&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MG))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),gC="traceparent",TC="tracestate",Q_e="00",z_e="(?!ff)[\\da-f]{2}",X_e="(?![0]{32})[\\da-f]{32}",J_e="(?![0]{16})[\\da-f]{16}",Z_e="[\\da-f]{2}",ede=new RegExp("^\\s?("+z_e+")-("+X_e+")-("+J_e+")-("+Z_e+")(-.*)?\\s?$");function tde(e){var t=ede.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var rde=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=zi.getSpanContext(t);if(!(!i||SC(t)||!Xf(i))){var a=Q_e+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||_s.NONE).toString(16);n.set(r,gC,a),i.traceState&&n.set(r,TC,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,gC);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=tde(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,TC);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new K_e(typeof v=="string"?v:void 0)}return zi.setSpanContext(t,u)},e.prototype.fields=function(){return[gC,TC]},e}(),nde="=",mC=";",AC=",",yC="baggage",ide=180,ade=4096,ode=8192,sde=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function ude(e){return e.reduce(function(t,r){var n=""+t+(t!==""?AC:"")+r;return n.length>ode?t:n},"")}function cde(e){return e.getAllEntries().map(function(t){var r=sde(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=mC+i.metadata.toString()),a})}function LG(e){var t=e.split(mC);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(nde);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=a_e(t.join(mC))),{key:i,value:a,metadata:u}}}}}function Cxe(e){return typeof e!="string"||e.length===0?{}:e.split(BAGGAGE_ITEMS_SEPARATOR).map(function(t){return LG(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var lde=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=Js.getBaggage(t);if(!(!i||SC(t))){var a=cde(i).filter(function(c){return c.length<=ade}).slice(0,ide),u=ude(a);u.length>0&&n.set(r,yC,u)}},e.prototype.extract=function(t,r,n){var i=n.get(r,yC),a=Array.isArray(i)?i.join(AC):i;if(!a)return t;var u={};if(a.length===0)return t;var c=a.split(AC);return c.forEach(function(v){var _=LG(v);if(_){var S={value:_.value};_.metadata&&(S.metadata=_.metadata),u[_.key]=S}}),Object.entries(u).length===0?t:Js.setBaggage(t,Js.createBaggage(u))},e.prototype.fields=function(){return[yC]},e}(),tT;(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"})(tT||(tT={}));var rT;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(rT||(rT={}));var DG=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fde=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function nT(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=DG(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=fde(a.value,2),c=u[0],v=u[1];if(!_de(c)){dr.warn("Invalid attribute key: "+c);continue}if(!wG(v)){dr.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function _de(e){return typeof e=="string"&&e.length>0}function wG(e){return e==null?!0:Array.isArray(e)?dde(e):UG(e)}function dde(e){var t,r,n;try{for(var i=DG(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(UG(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function UG(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var OC;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(OC||(OC={}));var t_=performance,xG=9,pde=6,hde=Math.pow(10,pde),iT=Math.pow(10,xG);function Xu(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*hde);return[r,n]}function bC(){var e=t_.timeOrigin;if(typeof e!="number"){var t=t_;e=t.timing&&t.timing.fetchStart}return e}function VG(e){var t=Xu(bC()),r=Xu(typeof e=="number"?e:t_.now());return $G(t,r)}function Mxe(e){if(RC(e))return e;if(typeof e=="number")return e<bC()?VG(e):Xu(e);if(e instanceof Date)return Xu(e.getTime());throw TypeError("Invalid input type")}function vde(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=iT),[r,n]}function Nxe(e){var t=xG,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function Ixe(e){return e[0]*iT+e[1]}function Lxe(e){return e[0]*1e3+e[1]/1e6}function Dxe(e){return e[0]*1e6+e[1]/1e3}function RC(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function FG(e){return RC(e)||typeof e=="number"||e instanceof Date}function $G(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=iT&&(r[1]-=iT,r[0]+=1),r}var Sde="aws.lambda.invoked_arn",Ede="db.system",gde="db.connection_string",Tde="db.user",mde="db.jdbc.driver_classname",Ade="db.name",yde="db.statement",Ode="db.operation",bde="db.mssql.instance_name",Rde="db.cassandra.keyspace",Pde="db.cassandra.page_size",Cde="db.cassandra.consistency_level",Mde="db.cassandra.table",Nde="db.cassandra.idempotence",Ide="db.cassandra.speculative_execution_count",Lde="db.cassandra.coordinator.id",Dde="db.cassandra.coordinator.dc",wde="db.hbase.namespace",Ude="db.redis.database_index",xde="db.mongodb.collection",Vde="db.sql.table",GG="exception.type",BG="exception.message",kG="exception.stacktrace",Fde="exception.escaped",$de="faas.trigger",Gde="faas.execution",Bde="faas.document.collection",kde="faas.document.operation",jde="faas.document.time",Hde="faas.document.name",Yde="faas.time",qde="faas.cron",Wde="faas.coldstart",Kde="faas.invoked_name",Qde="faas.invoked_provider",zde="faas.invoked_region",Xde="net.transport",Jde="net.peer.ip",Zde="net.peer.port",epe="net.peer.name",tpe="net.host.ip",rpe="net.host.port",npe="net.host.name",ipe="net.host.connection.type",ape="net.host.connection.subtype",ope="net.host.carrier.name",spe="net.host.carrier.mcc",upe="net.host.carrier.mnc",cpe="net.host.carrier.icc",lpe="peer.service",fpe="enduser.id",_pe="enduser.role",dpe="enduser.scope",ppe="thread.id",hpe="thread.name",vpe="code.function",Spe="code.namespace",Epe="code.filepath",gpe="code.lineno",Tpe="http.method",mpe="http.url",Ape="http.target",ype="http.host",Ope="http.scheme",bpe="http.status_code",Rpe="http.flavor",Ppe="http.user_agent",Cpe="http.request_content_length",Mpe="http.request_content_length_uncompressed",Npe="http.response_content_length",Ipe="http.response_content_length_uncompressed",Lpe="http.server_name",Dpe="http.route",wpe="http.client_ip",Upe="aws.dynamodb.table_names",xpe="aws.dynamodb.consumed_capacity",Vpe="aws.dynamodb.item_collection_metrics",Fpe="aws.dynamodb.provisioned_read_capacity",$pe="aws.dynamodb.provisioned_write_capacity",Gpe="aws.dynamodb.consistent_read",Bpe="aws.dynamodb.projection",kpe="aws.dynamodb.limit",jpe="aws.dynamodb.attributes_to_get",Hpe="aws.dynamodb.index_name",Ype="aws.dynamodb.select",qpe="aws.dynamodb.global_secondary_indexes",Wpe="aws.dynamodb.local_secondary_indexes",Kpe="aws.dynamodb.exclusive_start_table",Qpe="aws.dynamodb.table_count",zpe="aws.dynamodb.scan_forward",Xpe="aws.dynamodb.segment",Jpe="aws.dynamodb.total_segments",Zpe="aws.dynamodb.count",ehe="aws.dynamodb.scanned_count",the="aws.dynamodb.attribute_definitions",rhe="aws.dynamodb.global_secondary_index_updates",nhe="messaging.system",ihe="messaging.destination",ahe="messaging.destination_kind",ohe="messaging.temp_destination",she="messaging.protocol",uhe="messaging.protocol_version",che="messaging.url",lhe="messaging.message_id",fhe="messaging.conversation_id",_he="messaging.message_payload_size_bytes",dhe="messaging.message_payload_compressed_size_bytes",phe="messaging.operation",hhe="messaging.consumer_id",vhe="messaging.rabbitmq.routing_key",She="messaging.kafka.message_key",Ehe="messaging.kafka.consumer_group",ghe="messaging.kafka.client_id",The="messaging.kafka.partition",mhe="messaging.kafka.tombstone",Ahe="rpc.system",yhe="rpc.service",Ohe="rpc.method",bhe="rpc.grpc.status_code",Rhe="rpc.jsonrpc.version",Phe="rpc.jsonrpc.request_id",Che="rpc.jsonrpc.error_code",Mhe="rpc.jsonrpc.error_message",Nhe="message.type",Ihe="message.id",Lhe="message.compressed_size",Dhe="message.uncompressed_size",wxe=null,Uxe=null,xxe=null,Vxe=null,Fxe=null,$xe=null,Gxe=null,Bxe=null,kxe=null,jxe=null,Hxe=null,Yxe=null,qxe=null,Wxe=null,Kxe=null,Qxe=null,zxe=null,Xxe=null,Jxe=null,Zxe=null,eVe=null,PC=GG,CC=BG,whe=kG,tVe=null,rVe=null,nVe=null,iVe=null,aVe=null,oVe=null,sVe=null,uVe=null,cVe=null,lVe=null,fVe=null,_Ve=null,dVe=null,pVe=null,hVe=null,vVe=null,SVe=null,EVe=null,gVe=null,TVe=null,mVe=null,AVe=null,yVe=null,OVe=null,bVe=null,RVe=null,PVe=null,CVe=null,MVe=null,NVe=null,IVe=null,LVe=null,DVe=null,wVe=null,UVe=null,xVe=null,VVe=null,FVe=null,$Ve=null,GVe=null,BVe=null,kVe=null,jVe=null,HVe=null,YVe=null,qVe=null,WVe=null,KVe=null,QVe=null,zVe=null,XVe=null,JVe=null,ZVe=null,eFe=null,tFe=null,rFe=null,nFe=null,iFe=null,aFe=null,oFe=null,sFe=null,uFe=null,cFe=null,lFe=null,fFe=null,_Fe=null,dFe=null,pFe=null,hFe=null,vFe=null,SFe=null,EFe=null,gFe=null,TFe=null,mFe=null,AFe=null,yFe=null,OFe=null,bFe=null,RFe=null,PFe=null,CFe=null,MFe=null,NFe=null,IFe=null,LFe=null,DFe=null,wFe=null,UFe=null,xFe=null,VFe=null,FFe=null,$Fe=null,GFe=null,BFe=null,kFe=null,jFe=null,HFe=null,YFe=null,qFe=null,WFe=null,KFe=null,QFe=null,zFe=null,XFe=hi([Sde,Ede,gde,Tde,mde,Ade,yde,Ode,bde,Rde,Pde,Cde,Mde,Nde,Ide,Lde,Dde,wde,Ude,xde,Vde,GG,BG,kG,Fde,$de,Gde,Bde,kde,jde,Hde,Yde,qde,Wde,Kde,Qde,zde,Xde,Jde,Zde,epe,tpe,rpe,npe,ipe,ape,ope,spe,upe,cpe,lpe,fpe,_pe,dpe,ppe,hpe,vpe,Spe,Epe,gpe,Tpe,mpe,Ape,ype,Ope,bpe,Rpe,Ppe,Cpe,Mpe,Npe,Ipe,Lpe,Dpe,wpe,Upe,xpe,Vpe,Fpe,$pe,Gpe,Bpe,kpe,jpe,Hpe,Ype,qpe,Wpe,Kpe,Qpe,zpe,Xpe,Jpe,Zpe,ehe,the,rhe,nhe,ihe,ahe,ohe,she,uhe,che,lhe,fhe,_he,dhe,phe,hhe,vhe,She,Ehe,ghe,The,mhe,Ahe,yhe,Ohe,bhe,Rhe,Phe,Che,Mhe,Nhe,Ihe,Lhe,Dhe]),Uhe="other_sql",xhe="mssql",Vhe="mysql",Fhe="oracle",$he="db2",Ghe="postgresql",Bhe="redshift",khe="hive",jhe="cloudscape",Hhe="hsqldb",Yhe="progress",qhe="maxdb",Whe="hanadb",Khe="ingres",Qhe="firstsql",zhe="edb",Xhe="cache",Jhe="adabas",Zhe="firebird",eve="derby",tve="filemaker",rve="informix",nve="instantdb",ive="interbase",ave="mariadb",ove="netezza",sve="pervasive",uve="pointbase",cve="sqlite",lve="sybase",fve="teradata",_ve="vertica",dve="h2",pve="coldfusion",hve="cassandra",vve="hbase",Sve="mongodb",Eve="redis",gve="couchbase",Tve="couchdb",mve="cosmosdb",Ave="dynamodb",yve="neo4j",Ove="geode",bve="elasticsearch",Rve="memcached",Pve="cockroachdb",JFe=null,ZFe=null,e$e=null,t$e=null,r$e=null,n$e=null,i$e=null,a$e=null,o$e=null,s$e=null,u$e=null,c$e=null,l$e=null,f$e=null,_$e=null,d$e=null,p$e=null,h$e=null,v$e=null,S$e=null,E$e=null,g$e=null,T$e=null,m$e=null,A$e=null,y$e=null,O$e=null,b$e=null,R$e=null,P$e=null,C$e=null,M$e=null,N$e=null,I$e=null,L$e=null,D$e=null,w$e=null,U$e=null,x$e=null,V$e=null,F$e=null,$$e=null,G$e=null,B$e=null,k$e=null,j$e=null,H$e=null,Y$e=hi([Uhe,xhe,Vhe,Fhe,$he,Ghe,Bhe,khe,jhe,Hhe,Yhe,qhe,Whe,Khe,Qhe,zhe,Xhe,Jhe,Zhe,eve,tve,rve,nve,ive,ave,ove,sve,uve,cve,lve,fve,_ve,dve,pve,hve,vve,Sve,Eve,gve,Tve,mve,Ave,yve,Ove,bve,Rve,Pve]),Cve="all",Mve="each_quorum",Nve="quorum",Ive="local_quorum",Lve="one",Dve="two",wve="three",Uve="local_one",xve="any",Vve="serial",Fve="local_serial",q$e=null,W$e=null,K$e=null,Q$e=null,z$e=null,X$e=null,J$e=null,Z$e=null,eGe=null,tGe=null,rGe=null,nGe=hi([Cve,Mve,Nve,Ive,Lve,Dve,wve,Uve,xve,Vve,Fve]),$ve="datasource",Gve="http",Bve="pubsub",kve="timer",jve="other",iGe=null,aGe=null,oGe=null,sGe=null,uGe=null,cGe=hi([$ve,Gve,Bve,kve,jve]),Hve="insert",Yve="edit",qve="delete",lGe=null,fGe=null,_Ge=null,dGe=hi([Hve,Yve,qve]),Wve="alibaba_cloud",Kve="aws",Qve="azure",zve="gcp",pGe=null,hGe=null,vGe=null,SGe=null,EGe=hi([Wve,Kve,Qve,zve]),Xve="ip_tcp",Jve="ip_udp",Zve="ip",eSe="unix",tSe="pipe",rSe="inproc",nSe="other",gGe=null,TGe=null,mGe=null,AGe=null,yGe=null,OGe=null,bGe=null,RGe=hi([Xve,Jve,Zve,eSe,tSe,rSe,nSe]),iSe="wifi",aSe="wired",oSe="cell",sSe="unavailable",uSe="unknown",PGe=null,CGe=null,MGe=null,NGe=null,IGe=null,LGe=hi([iSe,aSe,oSe,sSe,uSe]),cSe="gprs",lSe="edge",fSe="umts",_Se="cdma",dSe="evdo_0",pSe="evdo_a",hSe="cdma2000_1xrtt",vSe="hsdpa",SSe="hsupa",ESe="hspa",gSe="iden",TSe="evdo_b",mSe="lte",ASe="ehrpd",ySe="hspap",OSe="gsm",bSe="td_scdma",RSe="iwlan",PSe="nr",CSe="nrnsa",MSe="lte_ca",DGe=null,wGe=null,UGe=null,xGe=null,VGe=null,FGe=null,$Ge=null,GGe=null,BGe=null,kGe=null,jGe=null,HGe=null,YGe=null,qGe=null,WGe=null,KGe=null,QGe=null,zGe=null,XGe=null,JGe=null,ZGe=null,eBe=hi([cSe,lSe,fSe,_Se,dSe,pSe,hSe,vSe,SSe,ESe,gSe,TSe,mSe,ASe,ySe,OSe,bSe,RSe,PSe,CSe,MSe]),NSe="1.0",ISe="1.1",LSe="2.0",DSe="SPDY",wSe="QUIC",tBe=null,rBe=null,nBe=null,iBe=null,aBe=null,oBe={HTTP_1_0:NSe,HTTP_1_1:ISe,HTTP_2_0:LSe,SPDY:DSe,QUIC:wSe},USe="queue",xSe="topic",sBe=null,uBe=null,cBe=hi([USe,xSe]),VSe="receive",FSe="process",lBe=null,fBe=null,_Be=hi([VSe,FSe]),$Se=0,GSe=1,BSe=2,kSe=3,jSe=4,HSe=5,YSe=6,qSe=7,WSe=8,KSe=9,QSe=10,zSe=11,XSe=12,JSe=13,ZSe=14,eEe=15,tEe=16,dBe=null,pBe=null,hBe=null,vBe=null,SBe=null,EBe=null,gBe=null,TBe=null,mBe=null,ABe=null,yBe=null,OBe=null,bBe=null,RBe=null,PBe=null,CBe=null,MBe=null,NBe={OK:$Se,CANCELLED:GSe,UNKNOWN:BSe,INVALID_ARGUMENT:kSe,DEADLINE_EXCEEDED:jSe,NOT_FOUND:HSe,ALREADY_EXISTS:YSe,PERMISSION_DENIED:qSe,RESOURCE_EXHAUSTED:WSe,FAILED_PRECONDITION:KSe,ABORTED:QSe,OUT_OF_RANGE:zSe,UNIMPLEMENTED:XSe,INTERNAL:JSe,UNAVAILABLE:ZSe,DATA_LOSS:eEe,UNAUTHENTICATED:tEe},rEe="SENT",nEe="RECEIVED",IBe=null,LBe=null,DBe=hi([rEe,nEe]),iEe="exception",aEe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jG=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},oEe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},sEe=function(){function e(t,r,n,i,a,u,c,v,_,S){c===void 0&&(c=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:OC.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=i,this.parentSpanId=u,this.kind=a,this.links=c;var A=Date.now();this._performanceStartTime=t_.now(),this._performanceOffset=A-(this._performanceStartTime+bC()),this._startTimeProvided=v!=null,this.startTime=this._getTime(v??A),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,S!=null&&this.setAttributes(S),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(dr.warn("Invalid attribute key: "+t),this):wG(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(dr.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var i=aEe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=jG(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return dr.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&dr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),FG(r)&&(FG(n)||(n=r),r=void 0);var i=nT(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return(r=this.links).push.apply(r,oEe([],jG(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=t,this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){dr.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=vde(this.startTime,this.endTime),this._duration[0]<0&&(dr.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&&dr.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<t_.now())return VG(t+this._performanceOffset);if(typeof t=="number")return Xu(t);if(t instanceof Date)return Xu(t.getTime());if(RC(t))return t;if(this._startTimeProvided)return Xu(Date.now());var r=t_.now()-this._performanceStartTime;return $G(this.startTime,Xu(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[CC]=t:t&&(t.code?n[PC]=t.code.toString():t.name&&(n[PC]=t.name),t.message&&(n[CC]=t.message),t.stack&&(n[whe]=t.stack)),n[PC]||n[CC]?this.addEvent(iEe,n,r):dr.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&dr.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substr(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(dr.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e}(),r_;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(r_||(r_={}));var aT=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r_.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),n_=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r_.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();function uEe(){return function(e){dr.error(cEe(e))}}function cEe(e){return typeof e=="string"?e:JSON.stringify(lEe(e))}function lEe(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var HG=uEe();function wBe(e){HG=e}function oT(e){try{HG(e)}catch{}}var MC=function(){function e(t){var r,n,i,a;this._root=t.root,this._root||(oT(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new n_),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new n_,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new aT,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new n_,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new aT}return e.prototype.shouldSample=function(t,r,n,i,a,u){var c=zi.getSpanContext(t);return!c||!Xf(c)?this._root.shouldSample(t,r,n,i,a,u):c.isRemote?c.traceFlags&_s.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,a,u):this._remoteParentNotSampled.shouldSample(t,r,n,i,a,u):c.traceFlags&_s.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,a,u):this._localParentNotSampled.shouldSample(t,r,n,i,a,u)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),YG=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:c$(r)&&this._accumulate(r)<this._upperBound?r_.RECORD_AND_SAMPLED:r_.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var i=n*8,a=parseInt(t.slice(i,i+8),16);r=(r^a)>>>0}return r},e}(),fEe=Ua(),_Ee=ds.AlwaysOn,i_=1;function qG(){return{sampler:WG(fEe),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Ua().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Ua().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:Ua().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Ua().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:Ua().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:Ua().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:Ua().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:Ua().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function WG(e){switch(e===void 0&&(e=Ua()),e.OTEL_TRACES_SAMPLER){case ds.AlwaysOn:return new n_;case ds.AlwaysOff:return new aT;case ds.ParentBasedAlwaysOn:return new MC({root:new n_});case ds.ParentBasedAlwaysOff:return new MC({root:new aT});case ds.TraceIdRatio:return new YG(KG(e));case ds.ParentBasedTraceIdRatio:return new MC({root:new YG(KG(e))});default:return dr.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+_Ee+'".'),new n_}}function KG(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return dr.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+i_+"."),i_;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(dr.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+i_+"."),i_):t<0||t>1?(dr.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+i_+"."),i_):t}function dEe(e){var t={sampler:WG()},r=qG(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function pEe(e){var t,r,n,i,a,u,c,v,_,S,A,Q,le=Object.assign({},e.spanLimits),pe=x_e();return le.attributeCountLimit=(u=(a=(i=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&i!==void 0?i:pe.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:pe.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:eT,le.attributeValueLengthLimit=(Q=(A=(S=(v=(c=e.spanLimits)===null||c===void 0?void 0:c.attributeValueLengthLimit)!==null&&v!==void 0?v:(_=e.generalLimits)===null||_===void 0?void 0:_.attributeValueLengthLimit)!==null&&S!==void 0?S:pe.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&A!==void 0?A:pe.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&Q!==void 0?Q:Zg,Object.assign({},e,{spanLimits:le})}var hEe=8,vEe=16,SEe=function(){function e(){this.generateTraceId=QG(vEe),this.generateSpanId=QG(hEe)}return e}(),sT=Array(32);function QG(e){return function(){for(var r=0;r<e*2;r++)sT[r]=Math.floor(Math.random()*16)+48,sT[r]>=58&&(sT[r]+=39);return String.fromCharCode.apply(null,sT.slice(0,e*2))}}var EEe=function(){function e(t,r,n){this._tracerProvider=n;var i=dEe(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new SEe,this.resource=n.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,r,n){var i,a,u;r===void 0&&(r={}),n===void 0&&(n=Gi.active()),r.root&&(n=zi.deleteSpan(n));var c=zi.getSpan(n);if(SC(n)){dr.debug("Instrumentation suppressed, returning Noop Span");var v=zi.wrapSpanContext(s$);return v}var _=c?.spanContext(),S=this._idGenerator.generateSpanId(),A,Q,le;!_||!zi.isSpanContextValid(_)?A=this._idGenerator.generateTraceId():(A=_.traceId,Q=_.traceState,le=_.spanId);var pe=(i=r.kind)!==null&&i!==void 0?i:tT.INTERNAL,me=((a=r.links)!==null&&a!==void 0?a:[]).map(function(ir){return{context:ir.context,attributes:nT(ir.attributes)}}),Ge=nT(r.attributes),Me=this._sampler.shouldSample(n,A,t,pe,Ge,me);Q=(u=Me.traceState)!==null&&u!==void 0?u:Q;var Re=Me.decision===rT.RECORD_AND_SAMPLED?_s.SAMPLED:_s.NONE,nt={traceId:A,spanId:S,traceFlags:Re,traceState:Q};if(Me.decision===rT.NOT_RECORD){dr.debug("Recording is off, propagating context in a non-recording span");var v=zi.wrapSpanContext(nt);return v}var ht=nT(Object.assign(Ge,Me.attributes)),Vt=new sEe(this,n,t,nt,pe,le,me,r.startTime,void 0,ht);return Vt},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??Gi.active(),_=this.startSpan(t,a,v),S=zi.setSpan(v,_);return Gi.with(S,c,void 0,_)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),uT=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gEe=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var i=uT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.forceFlush())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c){Promise.all(n).then(function(){c()}).catch(function(v){oT(v||new Error("MultiSpanProcessor: forceFlush failed")),c()})})},e.prototype.onStart=function(t,r){var n,i;try{for(var a=uT(this._spanProcessors),u=a.next();!u.done;u=a.next()){var c=u.value;c.onStart(t,r)}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var i=uT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;u.onEnd(t)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var i=uT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.shutdown())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c,v){Promise.all(n).then(function(){c()},v)})},e}(),TEe=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),mEe=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),AEe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},yEe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},OEe=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new mEe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,yEe([this._that],AEe(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),NC;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(NC||(NC={}));function UBe(e){}var bEe=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=Ua();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new OEe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(dr.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&_s.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&dr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(dr.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),u=0,c=a;u<c;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var i=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);Gi.with($_e(Gi.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var u=function(){return t._exporter.export(a,function(A){var Q;clearTimeout(i),A.code===NC.SUCCESS?r():n((Q=A.error)!==null&&Q!==void 0?Q:new Error("BatchSpanProcessor: span export failed"))})},c=null,v=0,_=a.length;v<_;v++){var S=a[v];S.resource.asyncAttributesPending&&S.resource.waitForAsyncAttributes&&(c??(c=[]),c.push(S.resource.waitForAsyncAttributes()))}c===null?u():Promise.all(c).then(u,function(A){oT(A),n(A)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){t._isExporting=!1,oT(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),REe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),PEe=function(e){REe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.onInit(n),i}return t.prototype.onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(bEe),ll;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ll||(ll={}));var CEe=function(){function e(t){t===void 0&&(t={});var r;this._registeredSpanProcessors=[],this._tracers=new Map;var n=T_e({},qG(),pEe(t));this.resource=(r=n.resource)!==null&&r!==void 0?r:jg.empty(),this.resource=jg.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var i=this._buildExporterFromEnv();if(i!==void 0){var a=new PEe(i);this.activeSpanProcessor=a}else this.activeSpanProcessor=new TEe}return e.prototype.getTracer=function(t,r,n){var i=t+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new EEe({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return dr.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new gEe(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),zi.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&Gi.setGlobalContextManager(t.contextManager),t.propagator&&Js.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var a,u=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),a=ll.timeout},t);n.forceFlush().then(function(){clearTimeout(u),a!==ll.timeout&&(a=ll.resolved,i(a))}).catch(function(c){clearTimeout(u),a=ll.error,i(c)})})});return new Promise(function(n,i){Promise.all(r).then(function(a){var u=a.filter(function(c){return c!==ll.resolved});u.length>0?i(u):n()}).catch(function(a){return i([a])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return(r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return(r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(Ua().OTEL_PROPAGATORS)),n=r.map(function(a){var u=t._getPropagator(a);return u||dr.warn('Propagator "'+a+'" requested through environment variable is unavailable.'),u}),i=n.reduce(function(a,u){return u&&a.push(u),a},[]);if(i.length!==0)return r.length===1?i[0]:new F_e({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=Ua().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||dr.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new rde}],["baggage",function(){return new lde}]]),e._registeredExporters=new Map,e}(),MEe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},NEe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};function IEe(e,t,r){var n,i;try{i=e()}catch(a){n=a}finally{if(t(n,i),n&&!r)throw n;return i}}function xBe(e,t,r){return MEe(this,void 0,void 0,function(){var n,i,a;return NEe(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,3,4]),[4,e()];case 1:return i=u.sent(),[3,4];case 2:return a=u.sent(),n=a,[3,4];case 3:if(t(n,i),n&&!r)throw n;return[2,i];case 4:return[2]}})})}function LEe(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var fl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),DEe=function(){function e(){}return e.prototype.createGauge=function(t,r){return kEe},e.prototype.createHistogram=function(t,r){return jEe},e.prototype.createCounter=function(t,r){return BEe},e.prototype.createUpDownCounter=function(t,r){return HEe},e.prototype.createObservableGauge=function(t,r){return qEe},e.prototype.createObservableCounter=function(t,r){return YEe},e.prototype.createObservableUpDownCounter=function(t,r){return WEe},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),cT=function(){function e(){}return e}(),wEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(cT),UEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(cT),xEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(cT),VEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(cT),IC=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),FEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IC),$Ee=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IC),GEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IC),zG=new DEe,BEe=new wEe,kEe=new xEe,jEe=new VEe,HEe=new UEe,YEe=new FEe,qEe=new $Ee,WEe=new GEe;function VBe(){return zG}var KEe=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return zG},e}(),QEe=new KEe,LC="metrics",zEe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Wp(LC,t,fs.instance())},e.prototype.getMeterProvider=function(){return nl(LC)||QEe},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){Kp(LC,fs.instance())},e}(),XEe=zEe.getInstance(),JEe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{},lT=Symbol.for("io.opentelemetry.js.api.logs"),oh=JEe;function ZEe(e,t,r){return function(n){return n===e?t:r}}var XG=1,ege=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new k$},e}(),JG=new ege,tge=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return oh[lT]?this.getLoggerProvider():(oh[lT]=ZEe(XG,t,JG),t)},e.prototype.getLoggerProvider=function(){var t,r;return(r=(t=oh[lT])===null||t===void 0?void 0:t.call(oh,XG))!==null&&r!==void 0?r:JG},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete oh[lT]},e}(),rge=tge.getInstance(),fT=g(8821),DC=function(){return DC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},DC.apply(this,arguments)},nge=function(){function e(t,r,n){n===void 0&&(n={}),this.instrumentationName=t,this.instrumentationVersion=r,this._wrap=fT.wrap,this._unwrap=fT.unwrap,this._massWrap=fT.massWrap,this._massUnwrap=fT.massUnwrap,this._config=DC({enabled:!0},n),this._diag=dr.createComponentLogger({namespace:t}),this._tracer=zi.getTracer(t,r),this._meter=XEe.getMeter(t,r),this._logger=rge.getLogger(t,r),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,r=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(r)?r:[r]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){t===void 0&&(t={}),this._config=Object.assign({},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e}(),ige=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),age=function(e){ige(t,e);function t(r,n,i){i===void 0&&(i={});var a=e.call(this,r,n,i)||this;return a._config.enabled&&a.enable(),a}return t}(nge),oge=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function ZG(e,t){return typeof t=="string"?e===t:!!e.match(t)}function sge(e,t){var r,n;if(!t)return!1;try{for(var i=oge(t),a=i.next();!a.done;a=i.next()){var u=a.value;if(ZG(e,u))return!0}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}var Mn;(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.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(Mn||(Mn={}));function ro(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var uge="aws.lambda.invoked_arn",cge="db.system",lge="db.connection_string",fge="db.user",_ge="db.jdbc.driver_classname",dge="db.name",pge="db.statement",hge="db.operation",vge="db.mssql.instance_name",Sge="db.cassandra.keyspace",Ege="db.cassandra.page_size",gge="db.cassandra.consistency_level",Tge="db.cassandra.table",mge="db.cassandra.idempotence",Age="db.cassandra.speculative_execution_count",yge="db.cassandra.coordinator.id",Oge="db.cassandra.coordinator.dc",bge="db.hbase.namespace",Rge="db.redis.database_index",Pge="db.mongodb.collection",Cge="db.sql.table",Mge="exception.type",Nge="exception.message",Ige="exception.stacktrace",Lge="exception.escaped",Dge="faas.trigger",wge="faas.execution",Uge="faas.document.collection",xge="faas.document.operation",Vge="faas.document.time",Fge="faas.document.name",$ge="faas.time",Gge="faas.cron",Bge="faas.coldstart",kge="faas.invoked_name",jge="faas.invoked_provider",Hge="faas.invoked_region",Yge="net.transport",qge="net.peer.ip",Wge="net.peer.port",Kge="net.peer.name",Qge="net.host.ip",zge="net.host.port",Xge="net.host.name",Jge="net.host.connection.type",Zge="net.host.connection.subtype",eTe="net.host.carrier.name",tTe="net.host.carrier.mcc",rTe="net.host.carrier.mnc",nTe="net.host.carrier.icc",iTe="peer.service",aTe="enduser.id",oTe="enduser.role",sTe="enduser.scope",uTe="thread.id",cTe="thread.name",lTe="code.function",fTe="code.namespace",_Te="code.filepath",dTe="code.lineno",pTe="http.method",hTe="http.url",vTe="http.target",STe="http.host",ETe="http.scheme",gTe="http.status_code",TTe="http.flavor",mTe="http.user_agent",ATe="http.request_content_length",yTe="http.request_content_length_uncompressed",OTe="http.response_content_length",bTe="http.response_content_length_uncompressed",RTe="http.server_name",PTe="http.route",CTe="http.client_ip",MTe="aws.dynamodb.table_names",NTe="aws.dynamodb.consumed_capacity",ITe="aws.dynamodb.item_collection_metrics",LTe="aws.dynamodb.provisioned_read_capacity",DTe="aws.dynamodb.provisioned_write_capacity",wTe="aws.dynamodb.consistent_read",UTe="aws.dynamodb.projection",xTe="aws.dynamodb.limit",VTe="aws.dynamodb.attributes_to_get",FTe="aws.dynamodb.index_name",$Te="aws.dynamodb.select",GTe="aws.dynamodb.global_secondary_indexes",BTe="aws.dynamodb.local_secondary_indexes",kTe="aws.dynamodb.exclusive_start_table",jTe="aws.dynamodb.table_count",HTe="aws.dynamodb.scan_forward",YTe="aws.dynamodb.segment",qTe="aws.dynamodb.total_segments",WTe="aws.dynamodb.count",KTe="aws.dynamodb.scanned_count",QTe="aws.dynamodb.attribute_definitions",zTe="aws.dynamodb.global_secondary_index_updates",XTe="messaging.system",JTe="messaging.destination",ZTe="messaging.destination_kind",eme="messaging.temp_destination",tme="messaging.protocol",rme="messaging.protocol_version",nme="messaging.url",ime="messaging.message_id",ame="messaging.conversation_id",ome="messaging.message_payload_size_bytes",sme="messaging.message_payload_compressed_size_bytes",ume="messaging.operation",cme="messaging.consumer_id",lme="messaging.rabbitmq.routing_key",fme="messaging.kafka.message_key",_me="messaging.kafka.consumer_group",dme="messaging.kafka.client_id",pme="messaging.kafka.partition",hme="messaging.kafka.tombstone",vme="rpc.system",Sme="rpc.service",Eme="rpc.method",gme="rpc.grpc.status_code",Tme="rpc.jsonrpc.version",mme="rpc.jsonrpc.request_id",Ame="rpc.jsonrpc.error_code",yme="rpc.jsonrpc.error_message",Ome="message.type",bme="message.id",Rme="message.compressed_size",Pme="message.uncompressed_size",FBe=null,$Be=null,GBe=null,BBe=null,kBe=null,jBe=null,HBe=null,YBe=null,qBe=null,WBe=null,KBe=null,QBe=null,zBe=null,XBe=null,JBe=null,ZBe=null,eke=null,tke=null,rke=null,nke=null,ike=null,ake=null,oke=null,ske=null,uke=null,cke=null,lke=null,fke=null,_ke=null,dke=null,pke=null,hke=null,vke=null,Ske=null,Eke=null,gke=null,Tke=null,mke=null,Ake=null,yke=null,Oke=null,bke=null,Rke=null,Pke=null,Cke=null,Mke=null,Nke=null,Ike=null,Lke=null,Dke=null,wke=null,Uke=null,xke=null,Vke=null,Fke=null,$ke=null,Gke=null,Bke=null,kke=null,jke=null,Hke=null,Yke=null,qke=null,Wke=null,Kke=null,Qke=null,zke=null,Xke=null,Jke=null,Zke=null,eje=null,tje=null,rje=null,nje=null,ije=null,aje=null,oje=null,sje=null,uje=null,cje=null,lje=null,fje=null,_je=null,dje=null,pje=null,hje=null,vje=null,Sje=null,Eje=null,gje=null,Tje=null,mje=null,Aje=null,yje=null,Oje=null,bje=null,Rje=null,Pje=null,Cje=null,Mje=null,Nje=null,Ije=null,Lje=null,Dje=null,wje=null,Uje=null,xje=null,Vje=null,Fje=null,$je=null,Gje=null,Bje=null,kje=null,jje=null,Hje=null,Yje=null,qje=null,Wje=null,Kje=null,Qje=null,zje=null,Xje=null,Jje=null,Zje=null,eHe=null,tHe=null,rHe=null,nHe=null,Ju=ro([uge,cge,lge,fge,_ge,dge,pge,hge,vge,Sge,Ege,gge,Tge,mge,Age,yge,Oge,bge,Rge,Pge,Cge,Mge,Nge,Ige,Lge,Dge,wge,Uge,xge,Vge,Fge,$ge,Gge,Bge,kge,jge,Hge,Yge,qge,Wge,Kge,Qge,zge,Xge,Jge,Zge,eTe,tTe,rTe,nTe,iTe,aTe,oTe,sTe,uTe,cTe,lTe,fTe,_Te,dTe,pTe,hTe,vTe,STe,ETe,gTe,TTe,mTe,ATe,yTe,OTe,bTe,RTe,PTe,CTe,MTe,NTe,ITe,LTe,DTe,wTe,UTe,xTe,VTe,FTe,$Te,GTe,BTe,kTe,jTe,HTe,YTe,qTe,WTe,KTe,QTe,zTe,XTe,JTe,ZTe,eme,tme,rme,nme,ime,ame,ome,sme,ume,cme,lme,fme,_me,dme,pme,hme,vme,Sme,Eme,gme,Tme,mme,Ame,yme,Ome,bme,Rme,Pme]),Cme="other_sql",Mme="mssql",Nme="mysql",Ime="oracle",Lme="db2",Dme="postgresql",wme="redshift",Ume="hive",xme="cloudscape",Vme="hsqldb",Fme="progress",$me="maxdb",Gme="hanadb",Bme="ingres",kme="firstsql",jme="edb",Hme="cache",Yme="adabas",qme="firebird",Wme="derby",Kme="filemaker",Qme="informix",zme="instantdb",Xme="interbase",Jme="mariadb",Zme="netezza",eAe="pervasive",tAe="pointbase",rAe="sqlite",nAe="sybase",iAe="teradata",aAe="vertica",oAe="h2",sAe="coldfusion",uAe="cassandra",cAe="hbase",lAe="mongodb",fAe="redis",_Ae="couchbase",dAe="couchdb",pAe="cosmosdb",hAe="dynamodb",vAe="neo4j",SAe="geode",EAe="elasticsearch",gAe="memcached",TAe="cockroachdb",iHe=null,aHe=null,oHe=null,sHe=null,uHe=null,cHe=null,lHe=null,fHe=null,_He=null,dHe=null,pHe=null,hHe=null,vHe=null,SHe=null,EHe=null,gHe=null,THe=null,mHe=null,AHe=null,yHe=null,OHe=null,bHe=null,RHe=null,PHe=null,CHe=null,MHe=null,NHe=null,IHe=null,LHe=null,DHe=null,wHe=null,UHe=null,xHe=null,VHe=null,FHe=null,$He=null,GHe=null,BHe=null,kHe=null,jHe=null,HHe=null,YHe=null,qHe=null,WHe=null,KHe=null,QHe=null,zHe=null,XHe=ro([Cme,Mme,Nme,Ime,Lme,Dme,wme,Ume,xme,Vme,Fme,$me,Gme,Bme,kme,jme,Hme,Yme,qme,Wme,Kme,Qme,zme,Xme,Jme,Zme,eAe,tAe,rAe,nAe,iAe,aAe,oAe,sAe,uAe,cAe,lAe,fAe,_Ae,dAe,pAe,hAe,vAe,SAe,EAe,gAe,TAe]),mAe="all",AAe="each_quorum",yAe="quorum",OAe="local_quorum",bAe="one",RAe="two",PAe="three",CAe="local_one",MAe="any",NAe="serial",IAe="local_serial",JHe=null,ZHe=null,eYe=null,tYe=null,rYe=null,nYe=null,iYe=null,aYe=null,oYe=null,sYe=null,uYe=null,cYe=ro([mAe,AAe,yAe,OAe,bAe,RAe,PAe,CAe,MAe,NAe,IAe]),LAe="datasource",DAe="http",wAe="pubsub",UAe="timer",xAe="other",lYe=null,fYe=null,_Ye=null,dYe=null,pYe=null,hYe=ro([LAe,DAe,wAe,UAe,xAe]),VAe="insert",FAe="edit",$Ae="delete",vYe=null,SYe=null,EYe=null,gYe=ro([VAe,FAe,$Ae]),GAe="alibaba_cloud",BAe="aws",kAe="azure",jAe="gcp",TYe=null,mYe=null,AYe=null,yYe=null,OYe=ro([GAe,BAe,kAe,jAe]),HAe="ip_tcp",YAe="ip_udp",qAe="ip",WAe="unix",KAe="pipe",QAe="inproc",zAe="other",bYe=null,RYe=null,PYe=null,CYe=null,MYe=null,NYe=null,IYe=null,LYe=ro([HAe,YAe,qAe,WAe,KAe,QAe,zAe]),XAe="wifi",JAe="wired",ZAe="cell",eye="unavailable",tye="unknown",DYe=null,wYe=null,UYe=null,xYe=null,VYe=null,FYe=ro([XAe,JAe,ZAe,eye,tye]),rye="gprs",nye="edge",iye="umts",aye="cdma",oye="evdo_0",sye="evdo_a",uye="cdma2000_1xrtt",cye="hsdpa",lye="hsupa",fye="hspa",_ye="iden",dye="evdo_b",pye="lte",hye="ehrpd",vye="hspap",Sye="gsm",Eye="td_scdma",gye="iwlan",Tye="nr",mye="nrnsa",Aye="lte_ca",$Ye=null,GYe=null,BYe=null,kYe=null,jYe=null,HYe=null,YYe=null,qYe=null,WYe=null,KYe=null,QYe=null,zYe=null,XYe=null,JYe=null,ZYe=null,e2e=null,t2e=null,r2e=null,n2e=null,i2e=null,a2e=null,o2e=ro([rye,nye,iye,aye,oye,sye,uye,cye,lye,fye,_ye,dye,pye,hye,vye,Sye,Eye,gye,Tye,mye,Aye]),yye="1.0",Oye="1.1",bye="2.0",Rye="SPDY",Pye="QUIC",s2e=null,u2e=null,c2e=null,l2e=null,f2e=null,_2e={HTTP_1_0:yye,HTTP_1_1:Oye,HTTP_2_0:bye,SPDY:Rye,QUIC:Pye},Cye="queue",Mye="topic",d2e=null,p2e=null,h2e=ro([Cye,Mye]),Nye="receive",Iye="process",v2e=null,S2e=null,E2e=ro([Nye,Iye]),Lye=0,Dye=1,wye=2,Uye=3,xye=4,Vye=5,Fye=6,$ye=7,Gye=8,Bye=9,kye=10,jye=11,Hye=12,Yye=13,qye=14,Wye=15,Kye=16,g2e=null,T2e=null,m2e=null,A2e=null,y2e=null,O2e=null,b2e=null,R2e=null,P2e=null,C2e=null,M2e=null,N2e=null,I2e=null,L2e=null,D2e=null,w2e=null,U2e=null,x2e={OK:Lye,CANCELLED:Dye,UNKNOWN:wye,INVALID_ARGUMENT:Uye,DEADLINE_EXCEEDED:xye,NOT_FOUND:Vye,ALREADY_EXISTS:Fye,PERMISSION_DENIED:$ye,RESOURCE_EXHAUSTED:Gye,FAILED_PRECONDITION:Bye,ABORTED:kye,OUT_OF_RANGE:jye,UNIMPLEMENTED:Hye,INTERNAL:Yye,UNAVAILABLE:qye,DATA_LOSS:Wye,UNAUTHENTICATED:Kye},Qye="SENT",zye="RECEIVED",V2e=null,F2e=null,$2e=ro([Qye,zye]),wC;function Xye(){return wC||(wC=document.createElement("a")),wC}function UC(e,t){return t in e}function Zs(e,t,r,n){var i=void 0,a=void 0;UC(r,t)&&typeof r[t]=="number"&&(i=r[t]);var u=n||Mn.FETCH_START;if(UC(r,u)&&typeof r[u]=="number"&&(a=r[u]),i!==void 0&&a!==void 0&&i>=a)return e.addEvent(t,i),e}function eB(e,t){Zs(e,Mn.FETCH_START,t),Zs(e,Mn.DOMAIN_LOOKUP_START,t),Zs(e,Mn.DOMAIN_LOOKUP_END,t),Zs(e,Mn.CONNECT_START,t),UC(t,"name")&&t.name.startsWith("https:")&&Zs(e,Mn.SECURE_CONNECTION_START,t),Zs(e,Mn.CONNECT_END,t),Zs(e,Mn.REQUEST_START,t),Zs(e,Mn.RESPONSE_START,t),Zs(e,Mn.RESPONSE_END,t);var r=t[Mn.ENCODED_BODY_SIZE];r!==void 0&&e.setAttribute(Ju.HTTP_RESPONSE_CONTENT_LENGTH,r);var n=t[Mn.DECODED_BODY_SIZE];n!==void 0&&r!==n&&e.setAttribute(Ju.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,n)}function Jye(e){return e.slice().sort(function(t,r){var n=t[Mn.FETCH_START],i=r[Mn.FETCH_START];return n>i?1:n<i?-1:0})}function tB(){return typeof location<"u"?location.origin:void 0}function Zye(e,t,r,n,i,a){i===void 0&&(i=new WeakSet);var u=sh(e);e=u.toString();var c=tOe(e,t,r,n,i,a);if(c.length===0)return{mainRequest:void 0};if(c.length===1)return{mainRequest:c[0]};var v=Jye(c);if(u.origin!==tB()&&v.length>1){var _=v[0],S=eOe(v,_[Mn.RESPONSE_END],r),A=_[Mn.RESPONSE_END],Q=S[Mn.FETCH_START];return Q<A&&(S=_,_=void 0),{corsPreFlightRequest:_,mainRequest:S}}else return{mainRequest:c[0]}}function eOe(e,t,r){for(var n=zu(r),i=zu(ul(t)),a=e[1],u,c=e.length,v=1;v<c;v++){var _=e[v],S=zu(ul(_[Mn.FETCH_START])),A=zu(ul(_[Mn.RESPONSE_END])),Q=n-A;S>=i&&(!u||Q<u)&&(u=Q,a=_)}return a}function tOe(e,t,r,n,i,a){var u=zu(t),c=zu(r),v=n.filter(function(_){var S=zu(ul(_[Mn.FETCH_START])),A=zu(ul(_[Mn.RESPONSE_END]));return _.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&_.name===e&&S>=u&&A<=c});return v.length>0&&(v=v.filter(function(_){return!i.has(_)})),v}function sh(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=Xye();return t.href=e,t}function G2e(e){var t=sh(e);return t.href}function rOe(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var r=iOe(e,t);if(t&&r.indexOf("@id")>0)return r;var n="";return e.parentNode&&(n+=rOe(e.parentNode,!1)),n+=r,n}function nOe(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var r=Array.from(e.parentNode.childNodes);return r=r.filter(function(n){var i=n.localName;return t.indexOf(n.nodeType)>=0&&i===e.localName}),r.length>=1?r.indexOf(e)+1:0}function iOe(e,t){var r=e.nodeType,n=nOe(e),i="";if(r===Node.ELEMENT_NODE){var a=e.getAttribute("id");if(t&&a)return'//*[@id="'+a+'"]';i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else if(r===Node.COMMENT_NODE)i="comment()";else return"";return i&&n>1?"/"+i+"["+n+"]":"/"+i}function aOe(e,t){var r=t||[];(typeof r=="string"||r instanceof RegExp)&&(r=[r]);var n=sh(e);return n.origin===tB()?!0:r.some(function(i){return ZG(e,i)})}var _T;(function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"})(_T||(_T={}));var rB="0.51.1",oOe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xC,sOe=300,nB=typeof process=="object"&&((xC=process.release)===null||xC===void 0?void 0:xC.name)==="node",uOe=function(e){oOe(t,e);function t(r){var n=e.call(this,"@opentelemetry/instrumentation-fetch",rB,r)||this;return n.component="fetch",n.version=rB,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addChildSpan=function(r,n){var i=this.tracer.startSpan("CORS Preflight",{startTime:n[Mn.FETCH_START]},zi.setSpan(Gi.active(),r));this._getConfig().ignoreNetworkEvents||eB(i,n),i.end(n[Mn.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(r,n){var i=sh(n.url);r.setAttribute(Ju.HTTP_STATUS_CODE,n.status),n.statusText!=null&&r.setAttribute(_T.HTTP_STATUS_TEXT,n.statusText),r.setAttribute(Ju.HTTP_HOST,i.host),r.setAttribute(Ju.HTTP_SCHEME,i.protocol.replace(":","")),typeof navigator<"u"&&r.setAttribute(Ju.HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(r,n){if(!aOe(n,this._getConfig().propagateTraceHeaderCorsUrls)){var i={};Js.inject(Gi.active(),i),Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(r instanceof Request)Js.inject(Gi.active(),r.headers,{set:function(a,u,c){return a.set(u,typeof c=="string"?c:String(c))}});else if(r.headers instanceof Headers)Js.inject(Gi.active(),r.headers,{set:function(a,u,c){return a.set(u,typeof c=="string"?c:String(c))}});else if(r.headers instanceof Map)Js.inject(Gi.active(),r.headers,{set:function(a,u,c){return a.set(u,typeof c=="string"?c:String(c))}});else{var i={};Js.inject(Gi.active(),i),r.headers=Object.assign({},i,r.headers||{})}},t.prototype._clearResources=function(){this._tasksCount===0&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(r,n){var i;if(n===void 0&&(n={}),sge(r,this._getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var a=(n.method||"GET").toUpperCase(),u="HTTP "+a;return this.tracer.startSpan(u,{kind:tT.CLIENT,attributes:(i={},i[_T.COMPONENT]=this.moduleName,i[Ju.HTTP_METHOD]=a,i[Ju.HTTP_URL]=r,i)})},t.prototype._findResourceAndAddNetworkEvents=function(r,n,i){var a=n.entries;if(!a.length){if(!performance.getEntriesByType)return;a=performance.getEntriesByType("resource")}var u=Zye(n.spanUrl,n.startTime,i,a,this._usedResources,"fetch");if(u.mainRequest){var c=u.mainRequest;this._markResourceAsUsed(c);var v=u.corsPreFlightRequest;v&&(this._addChildSpan(r,v),this._markResourceAsUsed(v)),this._getConfig().ignoreNetworkEvents||eB(r,c)}},t.prototype._markResourceAsUsed=function(r){this._usedResources.add(r)},t.prototype._endSpan=function(r,n,i){var a=this,u=nh(Date.now()),c=sC();this._addFinalSpanAttributes(r,i),setTimeout(function(){var v;(v=n.observer)===null||v===void 0||v.disconnect(),a._findResourceAndAddNetworkEvents(r,n,c),a._tasksCount--,a._clearResources(),r.end(u)},sOe)},t.prototype._patchConstructor=function(){var r=this;return function(n){var i=r;return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var v=this,_=sh(u[0]instanceof Request?u[0].url:String(u[0])).href,S=u[0]instanceof Request?u[0]:u[1]||{},A=i._createSpan(_,S);if(!A)return n.apply(this,u);var Q=i._prepareSpanData(_);function le(Me,Re){i._applyAttributesAfterFetch(Me,S,Re),i._endSpan(Me,Q,{status:Re.status||0,statusText:Re.message,url:_})}function pe(Me,Re){i._applyAttributesAfterFetch(Me,S,Re),Re.status>=200&&Re.status<400?i._endSpan(Me,Q,Re):i._endSpan(Me,Q,{status:Re.status,statusText:Re.statusText,url:_})}function me(Me,Re,nt){try{var ht=nt.clone(),Vt=nt.clone(),ir=ht.body;if(ir){var wr=ir.getReader(),en=function(){wr.read().then(function(qn){var wo=qn.done;wo?pe(Me,Vt):en()},function(qn){le(Me,qn)})};en()}else pe(Me,nt)}finally{Re(nt)}}function Ge(Me,Re,nt){try{le(Me,nt)}finally{Re(nt)}}return new Promise(function(Me,Re){return Gi.with(zi.setSpan(Gi.active(),A),function(){return i._addHeaders(S,_),i._tasksCount++,n.apply(v,S instanceof Request?[S]:[_,S]).then(me.bind(v,A,Me),Ge.bind(v,A,Re))})})}}},t.prototype._applyAttributesAfterFetch=function(r,n,i){var a=this,u=this._getConfig().applyCustomAttributesOnSpan;u&&IEe(function(){return u(r,n,i)},function(c){!c||a._diag.error("applyCustomAttributesOnSpan",c)},!0)},t.prototype._prepareSpanData=function(r){var n=sC(),i=[];if(typeof PerformanceObserver!="function")return{entries:i,startTime:n,spanUrl:r};var a=new PerformanceObserver(function(u){var c=u.getEntries();c.forEach(function(v){v.initiatorType==="fetch"&&v.name===r&&i.push(v)})});return a.observe({entryTypes:["resource"]}),{entries:i,observer:a,startTime:n,spanUrl:r}},t.prototype.enable=function(){if(nB){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}LEe(fetch)&&(this._unwrap(ih,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(ih,"fetch",this._patchConstructor())},t.prototype.disable=function(){nB||(this._unwrap(ih,"fetch"),this._usedResources=new WeakSet)},t}(age);const iB="https?://api-gateway.[a-zA-Z]+.icanbwell.com",cOe=`${iB}/.+`,aB=new RegExp(`^(?!${iB})`),lOe=new RegExp(cOe);function B2e(e){return aB.test(e)}function fOe(){return N7({node:()=>null,browser:()=>new uOe({ignoreUrls:[aB],propagateTraceHeaderCorsUrls:lOe})})}var ps=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},VC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},a_,o_,uh,dT,oB,sB,uB,cB;class _Oe{constructor(t){a_.add(this),o_.set(this,void 0),uh.set(this,void 0),dT.set(this,void 0),VC(this,o_,ps(this,a_,"m",oB).call(this,t),"f"),VC(this,uh,ps(this,a_,"m",sB).call(this),"f"),VC(this,dT,ps(this,a_,"m",uB).call(this,t),"f"),this.fetchInstrumentation=ps(this,a_,"m",cB).call(this)}loggerProvider(){return ps(this,dT,"f")}resource(){return ps(this,o_,"f")}tracerProvider(){return ps(this,uh,"f")}}o_=new WeakMap,uh=new WeakMap,dT=new WeakMap,a_=new WeakSet,oB=function(t){var r,n,i,a;return jg.default().merge(new jg({[G$]:"bwell-sdk-typescript",[$ie]:F7(),[kg]:"typescript",[Fie]:"com.bwell",[xie]:t.context.env,"client.key":t.context.clientKey,"user.id":(n=(r=t.context.user)===null||r===void 0?void 0:r.clientFhirPersonId)!==null&&n!==void 0?n:"","user.bwell-person-id":(a=(i=t.context.user)===null||i===void 0?void 0:i.bwellFhirPersonId)!==null&&a!==void 0?a:""}))},sB=function(){const t=new CEe({resource:ps(this,o_,"f")});return t.register({propagator:new Bte}),t},uB=function(t){const r=new xfe({resource:ps(this,o_,"f")}),n=new vne({url:`${t.telemetry.collectorUrl}/otlp-http/v1/logs`}),i=new qfe(n);return r.addLogRecordProcessor(i),r},cB=function(){const t=fOe();return t===null?null:(t.setTracerProvider(ps(this,uh,"f")),t)};var s_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},FC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Xi=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ch,Zu,pT,lh,Io,$C,lB,fB,_B;class dB{constructor(t,r,n,i){ch.add(this),pT.set(this,void 0),lh.set(this,void 0),Io.set(this,void 0),FC(this,pT,r,"f"),FC(this,lh,n.getLogger("TokenManager"),"f"),FC(this,Io,i,"f")}static initialize(t,r){return s_(this,arguments,void 0,function*(n,i,a=new wa,u=new _F){const c=Xi(Zu,Zu,"m",$C).call(Zu,n.accessToken);if(c.failure())return c.intoFailure();const v=new Zu(Object.assign(Object.assign({},n),{expiration:c.data()}),i,a,u);try{yield Promise.all([u.set("idToken",n.idToken),u.set("clientKey",n.clientKey),u.set("accessToken",n.accessToken),u.set("refreshToken",n.refreshToken),u.set("expiration",c.data().toISOString())])}catch{return vr.failure(new Qc("Failed to set tokens in token storage"))}return vr.success(v)})}getAccessToken(){return s_(this,void 0,void 0,function*(){if(yield Xi(this,ch,"m",fB).call(this)){const n=yield Xi(this,ch,"m",_B).call(this);if(n.failure())return n.intoFailure()}const r=yield Xi(this,Io,"f").get("accessToken");return La(r)?vr.failure(new Qc("accessToken not found in token storage")):vr.success(r)})}getIdToken(){return s_(this,void 0,void 0,function*(){return yield Xi(this,Io,"f").get("idToken")})}}Zu=dB,pT=new WeakMap,lh=new WeakMap,Io=new WeakMap,ch=new WeakSet,$C=function(t){try{const r=D7(t);return vr.success(new Date(r))}catch(r){if(!Vi.isBwellError(r))throw r;return vr.failure(r)}},lB=function(){return s_(this,void 0,void 0,function*(){const t=yield Xi(this,Io,"f").get("expiration");if(La(t))throw new Error("expiration not found in token storage");return new Date(t)})},fB=function(){return s_(this,void 0,void 0,function*(){const r=(yield Xi(this,ch,"m",lB).call(this)).getTime(),n=Date.now();return r<n})},_B=function(){return s_(this,void 0,void 0,function*(){Xi(this,lh,"f").verbose("refreshing access token...");const[t,r]=yield Promise.all([Xi(this,Io,"f").get("refreshToken"),Xi(this,Io,"f").get("clientKey")]);if(La(t)||La(r))return vr.failure(new Qc("refreshToken or clientKey not found in token storage"));const n=yield Xi(this,pT,"f").refreshAccessToken({refreshToken:t,clientKey:r});if(Xi(this,lh,"f").verbose("refreshing access token complete"),n.failure())return n.intoFailure();const i=n.data();yield Xi(this,Io,"f").set("accessToken",i.accessToken),yield Xi(this,Io,"f").set("idToken",i.idToken);const a=Xi(Zu,Zu,"m",$C).call(Zu,i.accessToken);return a.failure()?a.intoFailure():(yield Xi(this,Io,"f").set("expiration",a.data().toISOString()),vr.success(null))})};var pB=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},xa=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},fr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ji,fh,no,_h,GC,BC,kC,jC,hs,dh,_l,u_,hT,vT,ec,HC,YC,qC,hB;class dOe{constructor(t){Ji.add(this),fh.set(this,void 0),no.set(this,void 0),_h.set(this,void 0),GC.set(this,new B9),BC.set(this,new Fee),kC.set(this,new Gee),jC.set(this,new Hee),hs.set(this,void 0),dh.set(this,void 0),_l.set(this,void 0),u_.set(this,void 0),hT.set(this,void 0),vT.set(this,void 0),xa(this,fh,t,"f"),xa(this,no,mg.initialize(fr(this,fh,"f")).data(),"f"),xa(this,_h,fr(this,Ji,"m",qC).call(this),"f"),xa(this,hs,fr(this,Ji,"m",YC).call(this),"f"),xa(this,_l,fr(this,hs,"f").getLogger("BWellSDK"),"f"),xa(this,u_,fr(this,kC,"f").createIdentityManager(fr(this,no,"f"),fr(this,hs,"f")),"f"),xa(this,hT,new j9(fr(this,u_,"f")),"f")}initialize(){return pB(this,void 0,void 0,function*(){fr(this,_l,"f").verbose("initializing SDKConfig...");const t=yield fr(this,hT,"f").initialize(fr(this,fh,"f"));return t.failure()?t.intoFailure():(fr(this,_l,"f").verbose("SDK Config initialized successfully"),xa(this,no,t.data(),"f"),fr(this,Ji,"m",HC).call(this),vr.success(null))})}authenticate(t){return pB(this,void 0,void 0,function*(){const n=yield fr(this,jC,"f").createAuthStrategy(fr(this,no,"f"),fr(this,u_,"f"),fr(this,hs,"f")).authenticate(t);if(n.failure())return n.intoFailure();const i=n.data();try{const c=x7(i.idToken);fr(this,no,"f").setContextUser(c)}catch(c){if(Vi.isBwellError(c))return vr.failure(c);throw c}const a=Object.assign(Object.assign({},i),{clientKey:fr(this,no,"f").context.clientKey}),u=yield dB.initialize(a,fr(this,u_,"f"),fr(this,hs,"f"));return u.failure()?u.intoFailure():(xa(this,vT,u.data(),"f"),fr(this,Ji,"m",HC).call(this),xa(this,dh,fr(this,Ji,"m",hB).call(this,fr(this,vT,"f")),"f"),vr.success(null))})}get health(){return fr(this,Ji,"m",ec).call(this).health}get user(){return fr(this,Ji,"m",ec).call(this).user}get connection(){return fr(this,Ji,"m",ec).call(this).connection}get activity(){return fr(this,Ji,"m",ec).call(this).activity}get device(){return fr(this,Ji,"m",ec).call(this).device}get event(){return fr(this,Ji,"m",ec).call(this).event}get search(){return fr(this,Ji,"m",ec).call(this).search}}fh=new WeakMap,no=new WeakMap,_h=new WeakMap,GC=new WeakMap,BC=new WeakMap,kC=new WeakMap,jC=new WeakMap,hs=new WeakMap,dh=new WeakMap,_l=new WeakMap,u_=new WeakMap,hT=new WeakMap,vT=new WeakMap,Ji=new WeakSet,ec=function(){if(fr(this,dh,"f")===void 0)throw new Error("Unintialized");return fr(this,dh,"f")},HC=function(){fr(this,_l,"f").verbose("reinitializing SDK dependencies"),xa(this,_h,fr(this,Ji,"m",qC).call(this),"f"),xa(this,hs,fr(this,Ji,"m",YC).call(this),"f"),xa(this,_l,fr(this,hs,"f").getLogger("BwellSDK"),"f")},YC=function(){return fr(this,GC,"f").createLogProvider(fr(this,no,"f"),fr(this,_h,"f"))},qC=function(){if(!!fr(this,no,"f").telemetry.enabled)return new _Oe(fr(this,no,"f"))},hB=function(t){return fr(this,BC,"f").createApiProvider(fr(this,no,"f"),t,fr(this,hs,"f"))};const vB="orchestrator:bwell-sdk";var ST;(function(e){e.one="1.0.0"})(ST||(ST={}));const pOe={id:vB,dependencies:{featureServices:{[Fn]:bn.one}},create:({featureServices:e})=>{const t=e[Fn],{key:r}=t.getClientContext(),n=new dOe({clientKey:r});return{[ST.one]:()=>({featureService:n})}}},WC={apiClient:p,theme:$,analytics:ee,auth:ce,logging:M,state:O,navigation:N,featureFlags:Y,translation:L,identityUtils:P,nativeBridge:j,globalEventEmitter:W,rebootController:F,bwellSdk:ie},k2e=Object.keys(WC).reduce((e,t)=>{const{id:r,version:n}=WC[t];return Object.assign(Object.assign({},e),{[t]:{id:r,version:n}})},{});var Xt=WC,hOe=g(8561),vOe=g(295),SB=g.n(vOe),SOe=g(2424),EB=g.n(SOe);class EOe{constructor(t){this.providedExternals=t;for(const[r,n]of Object.entries(t))if(!EB()(n))throw new Error(`The provided version ${JSON.stringify(n)} for the external ${JSON.stringify(r)} is invalid.`)}validate(t){for(const[r,n]of Object.entries(t)){const i=this.providedExternals[r];if(!i)throw new Error(`The external dependency ${JSON.stringify(r)} is not provided.`);if(!SB()(i,n))throw new Error(`The external dependency ${JSON.stringify(r)} in the required version range ${JSON.stringify(n)} is not satisfied. The provided version is ${JSON.stringify(i)}.`)}}}class gOe{constructor(t,r,n){this.promise=t,this.value=r,this.error=n,t.then(i=>this.value=i).catch(i=>this.error=i)}}function TOe(e,t,r){let n=`The Feature App module at the url ${JSON.stringify(e)} ${t?`with the module type ${JSON.stringify(t)}`:"with no specific module type"} is invalid. A Feature App module must have a Feature App definition as default export. A Feature App definition is an object with at least a \`create\` method.`;return r&&r.length>1&&!t&&(n+=" Hint: The provided module loader expects an optional second parameter `moduleType`. It might need to be provided for this Feature App."),n}function mOe(e){return typeof e!="object"||!e?!1:typeof e.create=="function"}function AOe(e){return typeof e!="object"||!e?!1:mOe(e.default)}class yOe{constructor(t,r={}){this.featureServiceRegistry=t,this.options=r,this.asyncFeatureAppDefinitions=new Map,this.featureAppDefinitionsWithRegisteredOwnFeatureServices=new WeakSet,this.featureAppRetainers=new Map,this.logger=r.logger||console}getAsyncFeatureAppDefinition(t,r){const n=`${t}${r}`;let i=this.asyncFeatureAppDefinitions.get(n);return i||(i=this.createAsyncFeatureAppDefinition(t,r),this.asyncFeatureAppDefinitions.set(n,i)),i}createFeatureAppScope(t,r,n={}){const i=this.getFeatureAppRetainer(t,r,n);let a=!1;return{featureApp:i.featureApp,release:()=>{a?this.logger.warn(`The Feature App with the ID ${JSON.stringify(t)} has already been released for this scope.`):(a=!0,i.release())}}}async preloadFeatureApp(t,r){await this.getAsyncFeatureAppDefinition(t,r).promise}createAsyncFeatureAppDefinition(t,r){const{moduleLoader:n}=this.options;if(!n)throw new Error("No module loader provided.");return new gOe(n(t,r).then(i=>{if(!AOe(i))throw new Error(TOe(t,r,this.options.moduleLoader));return this.logger.info(`The Feature App module at the url ${JSON.stringify(t)} has been successfully loaded.`),i.default}))}registerOwnFeatureServices(t,r){this.featureAppDefinitionsWithRegisteredOwnFeatureServices.has(r)||(r.ownFeatureServiceDefinitions&&this.featureServiceRegistry.registerFeatureServices(r.ownFeatureServiceDefinitions,t),this.featureAppDefinitionsWithRegisteredOwnFeatureServices.add(r))}getFeatureAppRetainer(t,r,n){let i=this.featureAppRetainers.get(t);return i?i.retain():(this.registerOwnFeatureServices(t,r),i=this.createFeatureAppRetainer(r,t,n)),i}createFeatureAppRetainer(t,r,n){var i,a;this.validateExternals(t);const{featureAppName:u,baseUrl:c,beforeCreate:v,config:_,done:S}=n,A=this.featureServiceRegistry.bindFeatureServices(t,r,u);try{(a=(i=this.options).onBind)===null||a===void 0||a.call(i,{featureAppDefinition:t,featureAppId:r,featureAppName:u})}catch(le){this.logger.error("Failed to execute onBind callback.",le)}const Q={baseUrl:c,config:_,featureAppId:r,featureAppName:u,featureServices:A.featureServices,done:S};try{v?.(Q);const le=t.create(Q);this.logger.info(`The Feature App with the ID ${JSON.stringify(r)} has been successfully created.`);let pe=1;const me={featureApp:le,retain:()=>{pe+=1},release:()=>{pe-=1,pe===0&&(this.featureAppRetainers.delete(r),A.unbind())}};return this.featureAppRetainers.set(r,me),me}catch(le){throw A.unbind(),le}}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}}var OOe=g(5725),bOe=g.n(OOe);function ROe(e,t,r,n,i){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in the unsupported version range ${JSON.stringify(n)} could not be bound to consumer ${JSON.stringify(r)}. The supported versions are ${JSON.stringify(i)}.`}function POe(e,t,r){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it defines the invalid version ${JSON.stringify(r)}.`}function COe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in an invalid version could not be bound to consumer ${JSON.stringify(r)}.`}function MOe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} is not registered and therefore could not be bound to consumer ${JSON.stringify(r)}.`}function NOe(e,t){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it returned undefined.`}function IOe(e,t){return`The Feature Service ${JSON.stringify(e)} has been successfully registered by registrant ${JSON.stringify(t)}.`}function LOe(e,t){return`The already registered Feature Service ${JSON.stringify(e)} could not be re-registered by registrant ${JSON.stringify(t)}.`}function DOe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully bound to consumer ${JSON.stringify(t)}.`}function wOe(e){return`All required Feature Services are already bound to consumer ${JSON.stringify(e)}.`}function UOe(e,t){return`The required Feature Service ${JSON.stringify(e)} could not be unbound from consumer ${JSON.stringify(t)}.`}function xOe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully unbound from consumer ${JSON.stringify(t)}.`}function VOe(e){return`All required Feature Services are already unbound from consumer ${JSON.stringify(e)}.`}var FOe=g(2702),$Oe=g.n(FOe);function GOe(e){return t=>[e,t]}function BOe(e,t){return Object.keys(t).map(GOe(e))}function kOe(e){return Array.from(e.keys()).reduce((t,r)=>{const n=e.get(r);if(!n)return t;const i=BOe(r,n);return[...t,...i]},[])}function jOe(e){const t=Array.from(e.keys()),r=kOe(e),n=$Oe()(r);return n.push(...t.filter(i=>e.has(i)&&n.indexOf(i)===-1)),n.reverse()}function gB({dependencies:e,optionalDependencies:t}){return Object.assign(Object.assign({},e&&e.featureServices),t&&t.featureServices)}function HOe(e){const t=new Map;for(const r of e)t.set(r.id,gB(r));return t}function YOe({optionalDependencies:e},t){return Boolean(e&&e.featureServices&&e.featureServices.hasOwnProperty(t))}function qOe(e){const t=new Map;for(const r of e)t.set(r.id,r);return t}class WOe{constructor(t={}){this.options=t,this.sharedFeatureServices=new Map,this.consumerIds=new Set,this.logger=t.logger||console}registerFeatureServices(t,r){const n=qOe(t),i=HOe(t);for(const a of jOe(i))this.registerFeatureService(n,a,r)}bindFeatureServices(t,r,n){if(this.consumerIds.has(r))throw new Error(wOe(r));const i=new Map,a=Object.create(null),u=gB(t);for(const _ of Object.keys(u)){const S=YOe(t,_),A=u[_],Q=this.bindFeatureService(_,r,n,A,{optional:S});!Q||(this.logger.info(DOe(_,r)),i.set(_,Q),a[_]=Q.featureService)}this.consumerIds.add(r);let c=!1;return{featureServices:a,unbind:()=>{if(c)throw new Error(VOe(r));c=!0,this.consumerIds.delete(r);for(const[_,S]of i.entries())try{S.unbind&&S.unbind(),this.logger.info(xOe(_,r))}catch(A){this.logger.error(UOe(_,r),A)}}}}registerFeatureService(t,r,n){const i=t.get(r);if(!i)return;if(this.sharedFeatureServices.has(r)){this.logger.warn(LOe(r,n));return}this.validateExternals(i);const{featureServices:a}=this.bindFeatureServices(i,r),u=i.create({featureServices:a});u?(this.validateFeatureServiceVersions(u,r,n),this.sharedFeatureServices.set(r,u),this.logger.info(IOe(r,n))):this.logger.info(NOe(r,n))}bindFeatureService(t,r,n,i,{optional:a}){const u=i&&bOe()(i);if(!u){const Q=COe(a,t,r);if(a){this.logger.info(Q);return}throw new Error(Q)}const c=`^${u.version}`,v=this.sharedFeatureServices.get(t);if(!v){const Q=MOe(a,t,r);if(a){this.logger.info(Q);return}throw new Error(Q)}const _=Object.keys(v),S=_.find(Q=>SB()(Q,c)),A=S?v[S]:void 0;if(!A){const Q=ROe(a,t,r,c,_);if(a){this.logger.info(Q);return}throw new Error(Q)}return A(r,n)}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}validateFeatureServiceVersions(t,r,n){for(const i of Object.keys(t))if(!EB()(i))throw new Error(POe(r,n,i))}}function TB(e,t={}){const{featureServiceDefinitions:r,featureServiceDependencies:n,providedExternals:i,moduleLoader:a,logger:u,onBind:c}=t;let v;i&&(v=new EOe(i));const _=new WOe({externalsValidator:v,logger:u}),S={dependencies:{featureServices:n}};r&&_.registerFeatureServices(r,e);const A=new yOe(_,{externalsValidator:v,moduleLoader:a,logger:u,onBind:c}),{featureServices:Q}=_.bindFeatureServices(S,e);return{featureAppManager:A,featureServiceRegistry:_,featureServices:Q}}/**
6809
+ `,see=(e,t,r,n)=>e();function uee(e,t=see){return{getTasks(r,n){return t(i=>e.rawRequest(TZ,r,Object.assign(Object.assign({},n),i)),"getTasks","query",r)},taskUpdateStatus(r,n){return t(i=>e.rawRequest(mZ,r,Object.assign(Object.assign({},n),i)),"taskUpdateStatus","mutation",r)},createConnection(r,n){return t(i=>e.rawRequest(AZ,r,Object.assign(Object.assign({},n),i)),"createConnection","mutation",r)},deleteConnection(r,n){return t(i=>e.rawRequest(yZ,r,Object.assign(Object.assign({},n),i)),"deleteConnection","mutation",r)},disconnectConnection(r,n){return t(i=>e.rawRequest(OZ,r,Object.assign(Object.assign({},n),i)),"disconnectConnection","mutation",r)},getDataSource(r,n){return t(i=>e.rawRequest(bZ,r,Object.assign(Object.assign({},n),i)),"getDataSource","query",r)},getMemberConnections(r,n){return t(i=>e.rawRequest(RZ,r,Object.assign(Object.assign({},n),i)),"getMemberConnections","query",r)},getOauthUrl(r,n){return t(i=>e.rawRequest(PZ,r,Object.assign(Object.assign({},n),i)),"getOauthUrl","query",r)},updateDeviceRegistration(r,n){return t(i=>e.rawRequest(CZ,r,Object.assign(Object.assign({},n),i)),"updateDeviceRegistration","mutation",r)},publishEvent(r,n){return t(i=>e.rawRequest(MZ,r,Object.assign(Object.assign({},n),i)),"publishEvent","mutation",r)},getAllergyIntoleranceGroups(r,n){return t(i=>e.rawRequest(NZ,r,Object.assign(Object.assign({},n),i)),"getAllergyIntoleranceGroups","query",r)},getAllergyIntolerances(r,n){return t(i=>e.rawRequest(IZ,r,Object.assign(Object.assign({},n),i)),"getAllergyIntolerances","query",r)},getCarePlanGroups(r,n){return t(i=>e.rawRequest(LZ,r,Object.assign(Object.assign({},n),i)),"getCarePlanGroups","query",r)},getCarePlans(r,n){return t(i=>e.rawRequest(DZ,r,Object.assign(Object.assign({},n),i)),"getCarePlans","query",r)},getConditionGroups(r,n){return t(i=>e.rawRequest(wZ,r,Object.assign(Object.assign({},n),i)),"getConditionGroups","query",r)},getConditions(r,n){return t(i=>e.rawRequest(UZ,r,Object.assign(Object.assign({},n),i)),"getConditions","query",r)},getEncountersGroup(r,n){return t(i=>e.rawRequest(xZ,r,Object.assign(Object.assign({},n),i)),"getEncountersGroup","query",r)},getEncounterQuery(r,n){return t(i=>e.rawRequest(VZ,r,Object.assign(Object.assign({},n),i)),"getEncounterQuery","query",r)},GetHealthSummary(r,n){return t(i=>e.rawRequest(FZ,r,Object.assign(Object.assign({},n),i)),"GetHealthSummary","query",r)},getImmunizationGroups(r,n){return t(i=>e.rawRequest($Z,r,Object.assign(Object.assign({},n),i)),"getImmunizationGroups","query",r)},getImmunizations(r,n){return t(i=>e.rawRequest(GZ,r,Object.assign(Object.assign({},n),i)),"getImmunizations","query",r)},getProcedureGroups(r,n){return t(i=>e.rawRequest(BZ,r,Object.assign(Object.assign({},n),i)),"getProcedureGroups","query",r)},GetProcedures(r,n){return t(i=>e.rawRequest(kZ,r,Object.assign(Object.assign({},n),i)),"GetProcedures","query",r)},getVitalSignGroups(r,n){return t(i=>e.rawRequest(jZ,r,Object.assign(Object.assign({},n),i)),"getVitalSignGroups","query",r)},getVitalSigns(r,n){return t(i=>e.rawRequest(HZ,r,Object.assign(Object.assign({},n),i)),"getVitalSigns","query",r)},getLabGroups(r,n){return t(i=>e.rawRequest(YZ,r,Object.assign(Object.assign({},n),i)),"getLabGroups","query",r)},getLabKnowledge(r,n){return t(i=>e.rawRequest(qZ,r,Object.assign(Object.assign({},n),i)),"getLabKnowledge","query",r)},getLabs(r,n){return t(i=>e.rawRequest(WZ,r,Object.assign(Object.assign({},n),i)),"getLabs","query",r)},getMedicationGroups(r,n){return t(i=>e.rawRequest(KZ,r,Object.assign(Object.assign({},n),i)),"getMedicationGroups","query",r)},getMedicationKnowledge(r,n){return t(i=>e.rawRequest(QZ,r,Object.assign(Object.assign({},n),i)),"getMedicationKnowledge","query",r)},getMedicationStatements(r,n){return t(i=>e.rawRequest(zZ,r,Object.assign(Object.assign({},n),i)),"getMedicationStatements","query",r)},authenticate(r,n){return t(i=>e.rawRequest(XZ,r,Object.assign(Object.assign({},n),i)),"authenticate","query",r)},initialize(r,n){return t(i=>e.rawRequest(JZ,r,Object.assign(Object.assign({},n),i)),"initialize","query",r)},refreshTokens(r,n){return t(i=>e.rawRequest(ZZ,r,Object.assign(Object.assign({},n),i)),"refreshTokens","query",r)},providerSearch(r,n){return t(i=>e.rawRequest(eee,r,Object.assign(Object.assign({},n),i)),"providerSearch","query",r)},requestConnection(r,n){return t(i=>e.rawRequest(tee,r,Object.assign(Object.assign({},n),i)),"requestConnection","mutation",r)},createConsent(r,n){return t(i=>e.rawRequest(ree,r,Object.assign(Object.assign({},n),i)),"createConsent","mutation",r)},delete(r,n){return t(i=>e.rawRequest(nee,r,Object.assign(Object.assign({},n),i)),"delete","mutation",r)},getProfile(r,n){return t(i=>e.rawRequest(iee,r,Object.assign(Object.assign({},n),i)),"getProfile","query",r)},searchConsent(r,n){return t(i=>e.rawRequest(aee,r,Object.assign(Object.assign({},n),i)),"searchConsent","query",r)},updateUserProfile(r,n){return t(i=>e.rawRequest(oee,r,Object.assign(Object.assign({},n),i)),"updateUserProfile","mutation",r)}}}var cee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};function BF(e,t){let r;t!==void 0&&(r=lee(t));const n=new bg(e,{errorPolicy:"all",mode:"cors",requestMiddleware:r});return{client:n,sdk:uee(n)}}function lee(e){return t=>cee(this,void 0,void 0,function*(){const n=(yield e.getAccessToken()).data();return Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{Authorization:`Bearer ${n}`})})})}const fee="INFORMATION",LNe="WARNING",kF="ERROR",_ee="FATAL";class Cg{constructor(t){this.issue=t}message(){var t,r;const n=[];for(const i of this.issue){const a=(r=(t=i.details)===null||t===void 0?void 0:t.text)===null||r===void 0?void 0:r.trim();a==null||a.length===0||n.push(a)}return n.join(", ")}success(){for(const t of this.issue){const r=t.severity.toUpperCase();if(r===kF||r===_ee)return!1}return!0}static error(t){return new Cg([{severity:kF,code:"EXCEPTION",details:{text:t.message}}])}static success(){return new Cg([{severity:fee,code:"INFORMATIONAL",details:{}}])}}function dee(e){for(const t of e){const r=jF(t);if(r!==null){if(r.code==="500")return!0;for(const n of r.resource.issue)if(n.code==="exception")return!0}}return!1}function SP(e=[]){const t=[];let r=!1;for(const i of e){const a=jF(i);if(a!==null){r=!0;for(const u of a.resource.issue)t.push(u)}}if(!r)return null;const n=new Cg(t);return new A7(n)}function jF(e){const t=e.extensions,r=t.code,n=t.resource;return r===void 0||n===void 0||!pee(n)?null:{code:r,resource:n}}function pee(e){const t=e.issue;return t===void 0?!1:Array.isArray(t)}var HF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Mg=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Yf,EP,gP;class Bu{constructor(){Yf.add(this)}handleTransaction(t){return HF(this,void 0,void 0,function*(){try{const r=yield t,n=SP(r.errors);return n!==null?vr.failure(n):vr.success(r.data)}catch(r){if(Vi.isBwellError(r))return vr.failure(r);if(Mg(this,Yf,"m",EP).call(this,r))return Mg(this,Yf,"m",gP).call(this,r);throw r}})}handleQuery(t){return HF(this,void 0,void 0,function*(){try{const r=yield t,n=SP(r.errors);return new Lr(r.data,n)}catch(r){if(Vi.isBwellError(r))return new Lr(void 0,r);if(Mg(this,Yf,"m",EP).call(this,r)){const n=Mg(this,Yf,"m",gP).call(this,r);return Lr.error(n.error())}throw r}})}validateRequest(t){return t===void 0?vr.success(null):t.validate()}}Yf=new WeakSet,EP=function(t){return t instanceof $u},gP=function(t){if(t.response.status>299)return new ug(new m7("Network error",t.response.status));const r=t.response.errors;if(r!==void 0){if(dee(r))return new ug(new HR("Internal server error",r));const n=SP(r);if(n!==null)return vr.failure(n)}return new ug(new HR("Unknown error",t))};var qf=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ku,Zc,Gp;(function(e){e.ACTIVITY_CONTENT="https://www.icanbwell.com/contentDescription",e.ACTIVITY_ID="https://www.icanbwell.com/activityId",e.ACTIVITY_TOPIC="https://www.icanbwell.com/activityTopic",e.ACTIVITY_TYPE="https://www.icanbwell.com/activityType"})(Gp||(Gp={}));class hee{constructor(){ku.add(this)}create(t){var r;const n=t.data(),i={page:n.page,pageSize:n.pageSize};return $i(n.id)&&(i.id=qf(this,ku,"m",Zc).call(this,n.id)),$i(n.activityId)&&(i.identifier=qf(this,ku,"m",Zc).call(this,n.activityId,Gp.ACTIVITY_ID)),$i(n.activityType)&&(i.code=qf(this,ku,"m",Zc).call(this,n.activityType,Gp.ACTIVITY_TYPE)),$i(n.activityTopic)&&(i.tag=qf(this,ku,"m",Zc).call(this,n.activityTopic,Gp.ACTIVITY_TOPIC)),$i(n.status)&&(i.status=qf(this,ku,"m",Zc).call(this,n.status)),$i(n.subject)&&(i.subject=qf(this,ku,"m",Zc).call(this,n.subject)),i.sortMethod=n.smartSort===!0?"smartSort":"",$i(n.enrichContent)&&(i.enrichContent=n.enrichContent),i.contentLanguage=(r=n.contentLanguage)!==null&&r!==void 0?r:"en",{request:i}}}ku=new WeakSet,Zc=function(t,r){const i={value:(Array.isArray(t)?t:[t]).join(",")};return $i(r)&&(i.system=r),{values:[i]}};var YF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},qF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Co=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Mo,Bp,TP;class vee extends Bu{constructor(t,r=new wa){super(),Mo.set(this,void 0),Bp.set(this,void 0),TP.set(this,new hee),qF(this,Bp,t,"f"),qF(this,Mo,r.getLogger("GraphQLActivityManager"),"f")}getTasks(t){return YF(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Co(this,Mo,"f").verbose("calling getTask query...");const i=yield this.handleQuery(Co(this,Bp,"f").getTasks(Co(this,TP,"f").create(t)));return Co(this,Mo,"f").verbose("getTask query complete"),i.hasError()?Co(this,Mo,"f").error("getTask query error",i.error):Co(this,Mo,"f").info("successfully called getTask query"),new Lr((r=i.data)===null||r===void 0?void 0:r.getTasks,i.error)})}updateTaskStatus(t){return YF(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;Co(this,Mo,"f").verbose("calling taskUpdateStatus mutation");const n=yield this.handleTransaction(Co(this,Bp,"f").taskUpdateStatus(t.data()));return Co(this,Mo,"f").verbose("taskUpdateStatus mutation complete"),n.failure()?(Co(this,Mo,"f").error("taskUpdateStatus error",n),n.intoFailure()):(Co(this,Mo,"f").info("taskUpdateStatus mutation success"),vr.success(n.data().taskUpdateStatus))})}}Mo=new WeakMap,Bp=new WeakMap,TP=new WeakMap;var Wf=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},mP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Jr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},zs,Sn,Ng;class See extends Bu{constructor(t,r=new wa,n=new Eee){super(),zs.set(this,void 0),Sn.set(this,void 0),Ng.set(this,void 0),mP(this,zs,t,"f"),mP(this,Sn,r.getLogger("GraphQLConnectionManager"),"f"),mP(this,Ng,n,"f")}getMemberConnections(){return Wf(this,void 0,void 0,function*(){Jr(this,Sn,"f").verbose("calling getMemberConnections...");const t=yield this.handleQuery(Jr(this,zs,"f").getMemberConnections());return Jr(this,Sn,"f").verbose("getMemberConnections complete"),t.hasError()?Jr(this,Sn,"f").error("getMemberConnections failed",t.error):Jr(this,Sn,"f").info("successfully called getMemberConnections"),Jr(this,Ng,"f").create(t)})}getDataSource(t){return Wf(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Jr(this,Sn,"f").verbose("calling getDataSources...");const i=yield this.handleQuery(Jr(this,zs,"f").getDataSource(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("getDataSources complete"),i.hasError()?Jr(this,Sn,"f").error("getDataSources failed",i.error):Jr(this,Sn,"f").info("successfully called getDataSources"),new Lr((r=i.data)===null||r===void 0?void 0:r.getDataSource,i.error)})}createConnection(t){return Wf(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Jr(this,Sn,"f").verbose("calling createConnection...");const n=yield this.handleTransaction(Jr(this,zs,"f").createConnection(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("createConnection complete"),n.failure()?(Jr(this,Sn,"f").error("createConnection failed",n),n.intoFailure()):(Jr(this,Sn,"f").info("successfully called createConnection"),vr.success(n.data().createConnection))})}disconnectConnection(t){return Wf(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Jr(this,Sn,"f").verbose("calling disconnectConnection...");const n=yield this.handleTransaction(Jr(this,zs,"f").disconnectConnection(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("disconnectConnection complete"),n.failure()?(Jr(this,Sn,"f").error("disconnectConnection failed",n),n.intoFailure()):(Jr(this,Sn,"f").info("successfully called disconnectConnection"),vr.success(n.data().disconnectConnection))})}deleteConnection(t){return Wf(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Jr(this,Sn,"f").verbose("calling deleteConnection...");const n=yield this.handleTransaction(Jr(this,zs,"f").deleteConnection(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("deleteConnection complete"),n.failure()?(Jr(this,Sn,"f").error("deleteConnection failed",n),n.intoFailure()):(Jr(this,Sn,"f").info("successfully called deleteConnection"),vr.success(n.data().deleteConnection))})}getOauthUrl(t){return Wf(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Jr(this,Sn,"f").verbose("calling getOauthUrl...");const i=yield this.handleQuery(Jr(this,zs,"f").getOauthUrl(Object.assign({},t.data())));return Jr(this,Sn,"f").verbose("getOauthUrl complete"),i.hasError()?Jr(this,Sn,"f").error("getOauthUrl failed",i.error):Jr(this,Sn,"f").info("successfully called getOauthUrl"),new Lr((r=i.data)===null||r===void 0?void 0:r.getOauthUrl,i.error)})}}zs=new WeakMap,Sn=new WeakMap,Ng=new WeakMap;class Eee{create(t){var r,n,i,a,u,c;const v=new Map,_=(i=(n=(r=t.data)===null||r===void 0?void 0:r.subscription_subscription)===null||n===void 0?void 0:n.entry)!==null&&i!==void 0?i:[];for(const A of _)if(Fi((a=A?.resource)===null||a===void 0?void 0:a.service_slug)&&Fi(A?.resource.subscriptionStatus))for(const Q of A.resource.subscriptionStatus)v.set(A.resource.service_slug,{error:Q?.error,extension:Q?.extension});const S=(c=(u=t.data)===null||u===void 0?void 0:u.getMemberConnections)!==null&&c!==void 0?c:[];return new Lr(S.map(A=>{var Q;const le=v.get(A.id);if(OV(le))return Object.assign(Object.assign({},A),{syncErrors:[]});const pe=(Q=le.extension)===null||Q===void 0?void 0:Q.find(me=>me?.id===d9);return Object.assign(Object.assign({},A),{syncErrors:le.error,syncStatus:pe?pe.valueString:A.syncStatus})}),t.error)}}class gee{create(t){return{deviceToken:t.data().deviceToken,platformName:"",applicationName:"",notificationPreference:!1}}}class Tee{create(t){return Object.assign(Object.assign({},t.data()),{notificationPreference:!0})}}var WF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},KF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},to=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},kp,No,AP,yP;class mee extends Bu{constructor(t,r=new wa){super(),kp.set(this,void 0),No.set(this,void 0),AP.set(this,new gee),yP.set(this,new Tee),KF(this,kp,t,"f"),KF(this,No,r.getLogger("GraphQLDeviceManager"),"f")}registerDevice(t){return WF(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();const n=to(this,yP,"f").create(t);to(this,No,"f").verbose("calling updateDeviceRegistration to register device...");const i=yield this.handleTransaction(to(this,kp,"f").updateDeviceRegistration(n));return to(this,No,"f").verbose("updateDeviceRegistration complete for registration."),i.failure()?(to(this,No,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(to(this,No,"f").info("successfully called updateDeviceRegistration for registration."),vr.success(i.data().updateDeviceRegistration))})}deregisterDevice(t){return WF(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();to(this,No,"f").verbose("calling updateDeviceRegistration to deregister device...");const n=to(this,AP,"f").create(t),i=yield this.handleTransaction(to(this,kp,"f").updateDeviceRegistration(n));return to(this,No,"f").verbose("updateDeviceRegistration complete for deregistration."),i.failure()?(to(this,No,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(to(this,No,"f").info("successfully called updateDeviceRegistration for deregistration."),vr.success(i.data().updateDeviceRegistration))})}}kp=new WeakMap,No=new WeakMap,AP=new WeakMap,yP=new WeakMap;class Aee{create(t){const r=JSON.parse(t.data().serializedNotification);return{notificationId:r.notification_id,messageId:r.itbl.messageId,eventType:QR.MobilePushOpen}}}var yee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},OP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},el=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ig,ju,Lg;class Oee extends Bu{constructor(t,r=new wa,n=new Aee){super(),Ig.set(this,void 0),ju.set(this,void 0),Lg.set(this,void 0),OP(this,Ig,t,"f"),OP(this,ju,r.getLogger("GraphQLEventManager"),"f"),OP(this,Lg,n,"f")}handleNotification(t){return yee(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();el(this,ju,"f").debug("Calling publishEvent");let n;try{n=el(this,Lg,"f").create(t)}catch(a){return el(this,ju,"f").error("Error creating publishEvent request",a),vr.failure(new HR("Error creating publishEvent request"))}const i=yield this.handleTransaction(el(this,Ig,"f").publishEvent(n));return el(this,ju,"f").debug("publishEvent completed"),i.failure()?(el(this,ju,"f").error("publishEvent mutation error",i),i.intoFailure()):(el(this,ju,"f").info("publishEvent mutation success"),vr.success(i.data().publishEvent))})}}Ig=new WeakMap,ju=new WeakMap,Lg=new WeakMap;var zn=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},QF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},bt=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wn,xt;class bee extends Bu{constructor(t,r=new wa){super(),wn.set(this,void 0),xt.set(this,void 0),QF(this,wn,t,"f"),QF(this,xt,r.getLogger("GraphQLHealthManager"),"f")}getHealthSummary(){return zn(this,void 0,void 0,function*(){var t;bt(this,xt,"f").verbose("calling getHealthSummary...");const r=yield this.handleQuery(bt(this,wn,"f").GetHealthSummary());return bt(this,xt,"f").verbose("getHealthSummary complete"),r.hasError()?bt(this,xt,"f").error("getHealthSummary failed",r.error):bt(this,xt,"f").info("successfully called getHealthSummary"),new Lr((t=r.data)===null||t===void 0?void 0:t.getHealthSummary,r.error)})}getAllergyIntolerances(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getAllergyIntolerances...");const a=yield this.handleQuery(bt(this,wn,"f").getAllergyIntolerances({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getAllergyIntolerances complete"),a.hasError()&&bt(this,xt,"f").error("getAllergyIntolerances errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getAllergyIntolerances,a.error)})}getAllergyIntoleranceGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getAllergyIntoleranceGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getAllergyIntoleranceGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getAllergyIntoleranceGroups complete"),a.hasError()&&bt(this,xt,"f").error("getAllergyIntoleranceGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getAllergyIntoleranceGroups,a.error)})}getConditions(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getConditions...");const a=yield this.handleQuery(bt(this,wn,"f").getConditions({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getConditions complete"),a.hasError()&&bt(this,xt,"f").error("getConditions errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getConditions,a.error)})}getConditionGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getConditionGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getConditionGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getConditionGroups complete"),a.hasError()&&bt(this,xt,"f").error("getConditionGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getConditionGroups,a.error)})}getLabs(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getLabs...");const a=yield this.handleQuery(bt(this,wn,"f").getLabs({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getLabs complete"),a.hasError()&&bt(this,xt,"f").error("getLabs errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getLabs,a.error)})}getLabGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getLabGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getLabGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getLabGroups complete"),a.hasError()&&bt(this,xt,"f").error("getLabGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getLabGroups,a.error)})}getCarePlans(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getCarePlans...");const a=yield this.handleQuery(bt(this,wn,"f").getCarePlans({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getCarePlans complete"),a.hasError()&&bt(this,xt,"f").error("getCarePlans errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getCarePlans,a.error)})}getCarePlanGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getCarePlanGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getCarePlanGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getCarePlanGroups complete"),a.hasError()&&bt(this,xt,"f").error("getCarePlanGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getCarePlanGroups,a.error)})}getEncounters(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getEncounters...");const a=yield this.handleQuery(bt(this,wn,"f").getEncounterQuery({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getEncounters complete"),a.hasError()&&bt(this,xt,"f").error("getEncounters errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getEncounters,a.error)})}getEncounterGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getEncounterGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getEncountersGroup({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getEncounterGroups complete"),a.hasError()&&bt(this,xt,"f").error("getEncounterGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getEncounterGroups,a.error)})}getImmunizations(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getImmunizations...");const a=yield this.handleQuery(bt(this,wn,"f").getImmunizations({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getImmunizations complete"),a.hasError()&&bt(this,xt,"f").error("getImmunizations errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getImmunizations,a.error)})}getImmunizationGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getImmunizationGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getImmunizationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getImmunizationGroups complete"),a.hasError()&&bt(this,xt,"f").error("getImmunizationGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getImmunizationGroups,a.error)})}getProcedures(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getProcedures...");const a=yield this.handleQuery(bt(this,wn,"f").GetProcedures({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getProcedures complete"),a.hasError()&&bt(this,xt,"f").error("getProcedures errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getProcedures,a.error)})}getProcedureGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getProcedureGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getProcedureGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getProcedureGroups complete"),a.hasError()&&bt(this,xt,"f").error("getProcedureGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getProcedureGroups,a.error)})}getVitalSigns(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getVitalSigns...");const a=yield this.handleQuery(bt(this,wn,"f").getVitalSigns({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getVitalSigns complete"),a.hasError()&&bt(this,xt,"f").error("getVitalSigns errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getVitalSigns,a.error)})}getVitalSignGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getVitalSignGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getVitalSignGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getVitalSignGroups complete"),a.hasError()&&bt(this,xt,"f").error("getVitalSignGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getVitalSignGroups,a.error)})}getMedicationStatements(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getMedicationStatements...");const a=yield this.handleQuery(bt(this,wn,"f").getMedicationStatements({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getMedicationStatements complete"),a.hasError()&&bt(this,xt,"f").error("getMedicationStatements errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getMedicationStatements,a.error)})}getMedicationGroups(t){return zn(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();bt(this,xt,"f").verbose("calling getMedicationGroups...");const a=yield this.handleQuery(bt(this,wn,"f").getMedicationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return bt(this,xt,"f").verbose("getMedicationGroups complete"),a.hasError()&&bt(this,xt,"f").error("getMedicationGroups errors",a.error),new Lr((n=a.data)===null||n===void 0?void 0:n.getMedicationGroups,a.error)})}getMedicationKnowledge(t){return zn(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();bt(this,xt,"f").verbose("calling getMedicationKnowledge...");const i=yield this.handleQuery(bt(this,wn,"f").getMedicationKnowledge({request:t.data()}));return bt(this,xt,"f").verbose("getMedicationKnowledge complete"),i.hasError()&&bt(this,xt,"f").error("getMedicationKnowledge errors",i.error),new Lr((r=i.data)===null||r===void 0?void 0:r.getMedicationKnowledge,i.error)})}getLabKnowledge(t){return zn(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();bt(this,xt,"f").verbose("calling getLabKnowledge...");const i=yield this.handleQuery(bt(this,wn,"f").getLabKnowledge({request:t.data()}));return bt(this,xt,"f").verbose("getLabKnowledge complete"),i.hasError()&&bt(this,xt,"f").error("getLabKnowledge errors",i.error),new Lr((r=i.data)===null||r===void 0?void 0:r.getLabKnowledge,i.error)})}}wn=new WeakMap,xt=new WeakMap;class bP{create(t){var r,n,i,a,u,c,v,_,S;const A=t.data(),Q=null,le=(r=A.searchTerm)!==null&&r!==void 0?r:null,pe=(n=A.specialtyFilters)!==null&&n!==void 0?n:null,me=(i=A.includePopulatedPROAonly)!==null&&i!==void 0?i:!1,Ge=(a=A.organizationTypeFilters)!==null&&a!==void 0?a:null,Me=(u=A.gender)!==null&&u!==void 0?u:null,Re=(c=A.location)!==null&&c!==void 0?c:null;let nt=null;$i(A.sortBy)&&(nt={field:(v=A.sortBy.field)!==null&&v!==void 0?v:null,order:(_=A.sortBy.order)!==null&&_!==void 0?_:null});const ht=(S=A.filterFields)!==null&&S!==void 0?S:null,Vt=A.page,ir=A.pageSize;return{client:Q,searchTerm:le,specialtyFilters:pe,includePopulatedPROAonly:me,organizationTypeFilters:Ge,gender:Me,location:Re,sortBy:nt,filterFields:ht,page:Vt,pageSize:ir}}}var Ree=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},RP;class Pee{constructor(){RP.set(this,new bP)}create(t){const r=Ree(this,RP,"f").create(t);return r.client={data_sets:[_g.Connecthub]},r}}RP=new WeakMap;var Cee=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},PP;class Mee{constructor(){PP.set(this,new bP)}create(t){const r=Cee(this,PP,"f").create(t);return r.client={data_sets:[_g.Nppes]},r}}PP=new WeakMap;class Nee{create(t){var r,n,i,a;const u=t.data();return{institution:(r=u.institution)!==null&&r!==void 0?r:null,provider:(n=u.provider)!==null&&n!==void 0?n:null,city:(i=u.city)!==null&&i!==void 0?i:null,state:(a=u.state)!==null&&a!==void 0?a:null}}}var Dg=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},zF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Un=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},tl,pi,CP,MP,NP,IP;class Iee extends Bu{constructor(t,r=new wa){super(),tl.set(this,void 0),pi.set(this,void 0),CP.set(this,new bP),MP.set(this,new Mee),NP.set(this,new Pee),IP.set(this,new Nee),zF(this,tl,t,"f"),zF(this,pi,r.getLogger("GraphQLSearchManager"),"f")}search(t){return Dg(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Un(this,pi,"f").verbose("calling providerSearch search query");const i=yield this.handleQuery(Un(this,tl,"f").providerSearch(Un(this,CP,"f").create(t)));return Un(this,pi,"f").verbose("providerSearch search query complete"),i.hasError()?Un(this,pi,"f").error("providerSearch search query failed",i.error):Un(this,pi,"f").info("successfully called providerSearch search query"),new Lr((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchProviders(t){return Dg(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Un(this,pi,"f").verbose("calling providerSearch searchProviders query");const i=yield this.handleQuery(Un(this,tl,"f").providerSearch(Un(this,MP,"f").create(t)));return Un(this,pi,"f").verbose("providerSearch searchProviders query complete"),i.hasError()?Un(this,pi,"f").error("providerSearch searchProviders query failed",i.error):Un(this,pi,"f").info("successfully called providerSearch searchProviders query"),new Lr((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchConnections(t){return Dg(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Un(this,pi,"f").verbose("calling providerSearch searchConnections query");const i=yield this.handleQuery(Un(this,tl,"f").providerSearch(Un(this,NP,"f").create(t)));return Un(this,pi,"f").verbose("providerSearch searchConnections query complete"),i.hasError()?Un(this,pi,"f").error("providerSearch searchConnections query failed",i.error):Un(this,pi,"f").info("successfully called providerSearch searchConnections query"),new Lr((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}requestConnection(t){return Dg(this,void 0,void 0,function*(){Un(this,pi,"f").verbose("calling requestConnection mutation");const r=yield this.handleTransaction(Un(this,tl,"f").requestConnection(Un(this,IP,"f").create(t)));return Un(this,pi,"f").verbose("requestConnection mutation complete"),r.failure()?(Un(this,pi,"f").error("requestConnection mutation failed",r),r.intoFailure()):(Un(this,pi,"f").info("requestConnection request succeess"),vr.success(r.data().requestConnection))})}}tl=new WeakMap,pi=new WeakMap,CP=new WeakMap,MP=new WeakMap,NP=new WeakMap,IP=new WeakMap;const Lee="http://www.icanbwell.com/consent-category";class Dee{create(t){const r=t.data(),n={status:r.status,provision:{type:r.provision}};return $i(r.organizationId)&&(n.organization=[{type:"Organization",reference:`Organization/${r.organizationId}`}]),$i(r.category)&&(n.category=[{coding:[{system:Lee,code:r.category}]}]),{consentInput:n}}}class wee{create(t){return{categoryCode:t.data().category}}}var Kf=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Hu,LP,XF,JF,ZF,e$;class Uee{constructor(){Hu.add(this)}create(t){const r=t.data(),n={resourceType:XR.Person};return Kf(this,Hu,"m",LP).call(this,"id",r.id,n),Kf(this,Hu,"m",LP).call(this,"birthDate",r.birthDate,n),Kf(this,Hu,"m",XF).call(this,r,n),Kf(this,Hu,"m",ZF).call(this,r,n),Kf(this,Hu,"m",JF).call(this,r,n),Kf(this,Hu,"m",e$).call(this,r,n),{person:n}}}Hu=new WeakSet,LP=function(t,r,n){La(r)||(n[t]=r)},XF=function(t,r){let n=!1;const{firstName:i,lastName:a}=t,u={};Fi(i)&&(n=!0,u.given=[i]),Fi(a)&&(n=!0,u.family=a),n&&(r.name=[u])},JF=function(t,r){let n=!1;const{addressUnit:i,addressStreet:a,city:u,stateOrProvidence:c,postageOrZipCode:v}=t,_={};if(Fi(i)||Fi(a)){n=!0;const S=[];Fi(a)&&S.push(a),Fi(i)&&S.push(i),_.line=S}Fi(u)&&(n=!0,_.city=u),Fi(c)&&(n=!0,_.state=c),Fi(v)&&(n=!0,_.postalCode=v),n&&(r.address=[_])},ZF=function(t,r){const n=t.gender;La(n)||(r.gender=n)},e$=function(t,r){const n=[],{homePhone:i,mobilePhone:a,workPhone:u,email:c}=t;Fi(i)&&n.push({system:"phone",use:"home",value:i}),Fi(a)&&n.push({system:"phone",use:"mobile",value:a}),Fi(u)&&n.push({system:"phone",use:"work",value:u}),Fi(c)&&n.push({system:"email",value:c}),n.length!==0&&(r.telecom=n)};var jp=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},t$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},cn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Yu,$n,DP,wP,UP;class xee extends Bu{constructor(t,r=new wa){super(),Yu.set(this,void 0),$n.set(this,void 0),DP.set(this,new Dee),wP.set(this,new Uee),UP.set(this,new wee),t$(this,Yu,t,"f"),t$(this,$n,r.getLogger("GraphQLUserManager"),"f")}getProfile(){return jp(this,void 0,void 0,function*(){var t;cn(this,$n,"f").verbose("calling getProfile...");const r=yield this.handleQuery(cn(this,Yu,"f").getProfile());return cn(this,$n,"f").verbose("getProfile complete"),r.hasError()?cn(this,$n,"f").error("getProfile failed",r.error):cn(this,$n,"f").info("successfully called getProfile"),new Lr((t=r.data)===null||t===void 0?void 0:t.userProfile,r.error)})}delete(){return jp(this,void 0,void 0,function*(){cn(this,$n,"f").verbose("calling delete...");const t=yield this.handleTransaction(cn(this,Yu,"f").delete());return cn(this,$n,"f").verbose("delete complete"),t.failure()?(cn(this,$n,"f").error("delete failed",t.error),t.intoFailure()):(cn(this,$n,"f").info("successfully called delete"),vr.success(null))})}updateProfile(t){return jp(this,void 0,void 0,function*(){cn(this,$n,"f").verbose("calling updateUserProfile");const r=yield this.handleTransaction(cn(this,Yu,"f").updateUserProfile(cn(this,wP,"f").create(t)));return cn(this,$n,"f").verbose("updateUserProfile complete"),r.failure()?(cn(this,$n,"f").error("updateUserProfile error",r),r.intoFailure()):(cn(this,$n,"f").info("updateUserProfile success"),vr.success(r.data().updateUserProfile))})}getConsents(t){return jp(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();cn(this,$n,"f").verbose("calling consent search query...");let i;t!==void 0&&(i=cn(this,UP,"f").create(t));const a=yield this.handleQuery(cn(this,Yu,"f").searchConsent(i));return cn(this,$n,"f").verbose("consent search query complete"),a.hasError()?cn(this,$n,"f").error("consent search failed",a.error):cn(this,$n,"f").info("successfully called consent search query"),new Lr((r=a.data)===null||r===void 0?void 0:r.search,a.error)})}createConsent(t){return jp(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;cn(this,$n,"f").verbose("calling createConsent mutation...");const n=yield this.handleTransaction(cn(this,Yu,"f").createConsent(cn(this,DP,"f").create(t)));return cn(this,$n,"f").verbose("createConsent mutation complete"),n.failure()?(cn(this,$n,"f").error("createConsent mutation error",n),n.intoFailure()):(cn(this,$n,"f").info("createConsent mutation success"),vr.success(n.data().createConsent))})}}Yu=new WeakMap,$n=new WeakMap,DP=new WeakMap,wP=new WeakMap,UP=new WeakMap;var r$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qu=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wg,ls;class Vee{constructor(t,r){wg.set(this,void 0),ls.set(this,void 0),r$(this,wg,r.getLogger("GraphQLAPIProvider"),"f"),r$(this,ls,t,"f"),qu(this,wg,"f").verbose("initializing GraphQLClient"),this.activity=new vee(qu(this,ls,"f"),r),this.connection=new See(qu(this,ls,"f"),r),this.device=new mee(qu(this,ls,"f"),r),this.event=new Oee(qu(this,ls,"f"),r),this.health=new bee(qu(this,ls,"f"),r),this.user=new xee(qu(this,ls,"f"),r),this.search=new Iee(qu(this,ls,"f"),r)}}wg=new WeakMap,ls=new WeakMap;class Fee{createApiProvider(t,r,n){const{sdk:i}=BF(t.graphQL.apiUrl,r);return new Vee(i,n)}}var xP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},n$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},fa=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Qf,_a;class $ee extends Bu{constructor(t,r=new wa){super(),Qf.set(this,void 0),_a.set(this,void 0),n$(this,Qf,t,"f"),n$(this,_a,r.getLogger("GraphQLIdentityManager"),"f")}initialize(t){return xP(this,void 0,void 0,function*(){fa(this,_a,"f").verbose("executing initialize query...",{clientKey:t});const r=yield this.handleTransaction(fa(this,Qf,"f").initialize({clientKey:t}));return fa(this,_a,"f").verbose("initialize query complete",r),r.failure()?(fa(this,_a,"f").error("initialize failed.",r),r.intoFailure()):(fa(this,_a,"f").info("successfully called initialize"),vr.success(r.data().initSdk))})}authenticate(t){return xP(this,void 0,void 0,function*(){fa(this,_a,"f").verbose("exectuting authenticate query...");const r=yield this.handleTransaction(fa(this,Qf,"f").authenticate({},{Authorization:t.jweToken,ClientKey:t.clientKey}));if(fa(this,_a,"f").verbose("authenticate query complete",r),r.failure())return fa(this,_a,"f").error("authenticate failed",r),r.intoFailure();fa(this,_a,"f").info("authenticate success");const n=r.data(),i={accessToken:n.getToken.accessToken.jwtToken,idToken:n.getToken.idToken.jwtToken,refreshToken:n.getToken.refreshToken.token};return vr.success(i)})}refreshAccessToken(t){return xP(this,void 0,void 0,function*(){fa(this,_a,"f").verbose("executing refreshAccessToken query...");const r=yield this.handleTransaction(fa(this,Qf,"f").refreshTokens({},{refresh_token:t.refreshToken,clientkey:t.clientKey}));return fa(this,_a,"f").verbose("refreshAccessToken query complete",r),r.failure()?(fa(this,_a,"f").error("refreshAccessToken failed",r),r.intoFailure()):(fa(this,_a,"f").info("refreshAccessToken successful"),vr.success(r.data().refresh))})}}Qf=new WeakMap,_a=new WeakMap;class Gee{createIdentityManager(t,r){const{sdk:n}=BF(t.graphQL.unauthApiUrl);return new $ee(n,r)}}function Bee(e){return"token"in e}function DNe(e){return"username"in e&&"password"in e}var kee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},VP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Hp=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ug,zf,xg;class jee{constructor(t,r,n=new wa){Ug.set(this,void 0),zf.set(this,void 0),xg.set(this,void 0),VP(this,Ug,r,"f"),VP(this,xg,t,"f"),VP(this,zf,n.getLogger("OAuthStrategy"),"f")}authenticate(t){return kee(this,void 0,void 0,function*(){if(!Bee(t))return Hp(this,zf,"f").error("Incorrect credentials type provided to OAuthStrategy"),vr.failure(new T7("Expected OAuthCredentials",t));Hp(this,zf,"f").verbose("authenticating via OAuth strategy...");const r=yield Hp(this,Ug,"f").authenticate({jweToken:t.token,clientKey:Hp(this,xg,"f").context.clientKey});return Hp(this,zf,"f").verbose("finished OAuth authentication"),r})}}Ug=new WeakMap,zf=new WeakMap,xg=new WeakMap;class Hee{createAuthStrategy(t,r,n=new wa){if(t.authType!==Tg.OAuth)throw new Error(`Authentication Strategy ${t.authType} has not been implemented yet`);return new jee(t,r,n)}}var Yee=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{},rl="1.9.0",i$=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function qee(e){var t=new Set([e]),r=new Set,n=e.match(i$);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(i$);if(!_)return a(v);var S={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return S.prerelease!=null||i.major!==S.major?a(v):i.major===0?i.minor===S.minor&&i.patch<=S.patch?u(v):a(v):i.minor<=S.minor?u(v):a(v)}}var Wee=qee(rl),Kee=rl.split(".")[0],Yp=Symbol.for("opentelemetry.js.api."+Kee),qp=Yee;function Wp(e,t,r,n){var i;n===void 0&&(n=!1);var a=qp[Yp]=(i=qp[Yp])!==null&&i!==void 0?i:{version:rl};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==rl){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+rl);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+rl+"."),!0}function nl(e){var t,r,n=(t=qp[Yp])===null||t===void 0?void 0:t.version;if(!(!n||!Wee(n)))return(r=qp[Yp])===null||r===void 0?void 0:r[e]}function Kp(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+rl+".");var r=qp[Yp];r&&delete r[e]}function Vg(e){return Symbol.for(e)}var Qee=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var a=new e(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i}}return e}(),zee=new Qee,Xee=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Jee=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Zee=function(){function e(){}return e.prototype.active=function(){return zee},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return r.call.apply(r,Jee([n],Xee(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),ete=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},tte=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},rte=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Qp("verbose",this._namespace,t)},e}();function Qp(e,t,r){var n=nl("diag");if(!!n)return r.unshift(t),n[e].apply(n,tte([],ete(r),!1))}var on;(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"})(on||(on={}));function nte(e,t){e<on.NONE?e=on.NONE:e>on.ALL&&(e=on.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",on.ERROR),warn:r("warn",on.WARN),info:r("info",on.INFO),debug:r("debug",on.DEBUG),verbose:r("verbose",on.VERBOSE)}}var ite=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ate=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ote="diag",fs=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=nl("diag");if(!!c)return c[i].apply(c,ate([],ite(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:on.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var S=nl("diag"),A=nte((c=a.logLevel)!==null&&c!==void 0?c:on.INFO,i);if(S&&!a.suppressOverrideMessage){var Q=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";S.warn("Current logger will be overwritten from "+Q),A.warn("Current logger will overwrite one already registered from "+Q)}return Wp("diag",A,r,!0)};r.setLogger=n,r.disable=function(){Kp(ote,r)},r.createComponentLogger=function(i){return new rte(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),ste=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ute=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},FP="context",cte=new Zee,Fg=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Wp(FP,t,fs.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return(i=this._getContextManager()).with.apply(i,ute([t,r,n],ste(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return nl(FP)||cte},e.prototype.disable=function(){this._getContextManager().disable(),Kp(FP,fs.instance())},e}(),_s;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(_s||(_s={}));var a$="0000000000000000",o$="00000000000000000000000000000000",s$={traceId:o$,spanId:a$,traceFlags:_s.NONE},zp=function(){function e(t){t===void 0&&(t=s$),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){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,r){},e}(),$P=Vg("OpenTelemetry Context Key SPAN");function GP(e){return e.getValue($P)||void 0}function lte(){return GP(Fg.getInstance().active())}function BP(e,t){return e.setValue($P,t)}function fte(e){return e.deleteValue($P)}function _te(e,t){return BP(e,new zp(t))}function u$(e){var t;return(t=GP(e))===null||t===void 0?void 0:t.spanContext()}var dte=/^([0-9a-f]{32})$/i,pte=/^[0-9a-f]{16}$/i;function c$(e){return dte.test(e)&&e!==o$}function hte(e){return pte.test(e)&&e!==a$}function Xf(e){return c$(e.traceId)&&hte(e.spanId)}function vte(e){return new zp(e)}var kP=Fg.getInstance(),l$=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=kP.active());var i=Boolean(r?.root);if(i)return new zp;var a=n&&u$(n);return Ste(a)&&Xf(a)?new zp(a):new zp},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??kP.active(),_=this.startSpan(t,a,v),S=BP(v,_);return kP.with(S,c,void 0,_)}},e}();function Ste(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Ete=new l$,gte=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,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):Ete},e}(),Tte=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new l$},e}(),mte=new Tte,f$=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return(i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new gte(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:mte},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}(),jP="trace",Ate=function(){function e(){this._proxyTracerProvider=new f$,this.wrapSpanContext=vte,this.isSpanContextValid=Xf,this.deleteSpan=fte,this.getSpan=GP,this.getActiveSpan=lte,this.getSpanContext=u$,this.setSpan=BP,this.setSpanContext=_te}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=Wp(jP,this._proxyTracerProvider,fs.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return nl(jP)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){Kp(jP,fs.instance()),this._proxyTracerProvider=new f$},e}(),zi=Ate.getInstance(),HP=Vg("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function yte(e){return e.setValue(HP,!0)}function wNe(e){return e.deleteValue(HP)}function Ote(e){return e.getValue(HP)===!0}var YP="[_0-9a-z-*/]",bte="[a-z]"+YP+"{0,255}",Rte="[a-z0-9]"+YP+"{0,240}@[a-z]"+YP+"{0,13}",Pte=new RegExp("^(?:"+bte+"|"+Rte+")$"),Cte=/^[ -~]{0,255}[!-~]$/,Mte=/,|=/;function Nte(e){return Pte.test(e)}function Ite(e){return Cte.test(e)&&!Mte.test(e)}var _$=32,Lte=512,d$=",",p$="=",Dte=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+p$+t.get(n)),r},[]).join(d$)},e.prototype._parse=function(t){t.length>Lte||(this._internalState=t.split(d$).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(p$);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);Nte(u)&&Ite(c)&&r.set(u,c)}return r},new Map),this._internalState.size>_$&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,_$))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),qP="traceparent",WP="tracestate",wte="00",Ute="(?!ff)[\\da-f]{2}",xte="(?![0]{32})[\\da-f]{32}",Vte="(?![0]{16})[\\da-f]{16}",Fte="[\\da-f]{2}",$te=new RegExp("^\\s?("+Ute+")-("+xte+")-("+Vte+")-("+Fte+")(-.*)?\\s?$");function Gte(e){var t=$te.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Bte=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=zi.getSpanContext(t);if(!(!i||Ote(t)||!Xf(i))){var a=wte+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||_s.NONE).toString(16);n.set(r,qP,a),i.traceState&&n.set(r,WP,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,qP);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=Gte(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,WP);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new Dte(typeof v=="string"?v:void 0)}return zi.setSpanContext(t,u)},e.prototype.fields=function(){return[qP,WP]},e}(),kte=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{},il="1.6.0",h$=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function jte(e){var t=new Set([e]),r=new Set,n=e.match(h$);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(h$);if(!_)return a(v);var S={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return S.prerelease!=null||i.major!==S.major?a(v):i.major===0?i.minor===S.minor&&i.patch<=S.patch?u(v):a(v):i.minor<=S.minor?u(v):a(v)}}var Hte=jte(il),Yte=il.split(".")[0],Xp=Symbol.for("opentelemetry.js.api."+Yte),Jp=kte;function qte(e,t,r,n){var i;n===void 0&&(n=!1);var a=Jp[Xp]=(i=Jp[Xp])!==null&&i!==void 0?i:{version:il};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==il){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+il);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+il+"."),!0}function KP(e){var t,r,n=(t=Jp[Xp])===null||t===void 0?void 0:t.version;if(!(!n||!Hte(n)))return(r=Jp[Xp])===null||r===void 0?void 0:r[e]}function Wte(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+il+".");var r=Jp[Xp];r&&delete r[e]}var Kte=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Qte=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},zte=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zp("verbose",this._namespace,t)},e}();function Zp(e,t,r){var n=KP("diag");if(!!n)return r.unshift(t),n[e].apply(n,Qte([],Kte(r),!1))}var Xn;(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"})(Xn||(Xn={}));function Xte(e,t){e<Xn.NONE?e=Xn.NONE:e>Xn.ALL&&(e=Xn.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",Xn.ERROR),warn:r("warn",Xn.WARN),info:r("info",Xn.INFO),debug:r("debug",Xn.DEBUG),verbose:r("verbose",Xn.VERBOSE)}}var Jte=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Zte=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ere="diag",v$=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=KP("diag");if(!!c)return c[i].apply(c,Zte([],Jte(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:Xn.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var S=KP("diag"),A=Xte((c=a.logLevel)!==null&&c!==void 0?c:Xn.INFO,i);if(S&&!a.suppressOverrideMessage){var Q=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";S.warn("Current logger will be overwritten from "+Q),A.warn("Current logger will overwrite one already registered from "+Q)}return qte("diag",A,r,!0)};r.setLogger=n,r.disable=function(){Wte(ere,r)},r.createComponentLogger=function(i){return new zte(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),Wu=v$.instance(),tre=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),rre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},nre=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ire=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new tre}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,nre([this._that],rre(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),Jf;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Jf||(Jf={}));var QP;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(QP||(QP={}));var are=",",ore=["OTEL_SDK_DISABLED"];function sre(e){return ore.indexOf(e)>-1}var ure=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function cre(e){return ure.indexOf(e)>-1}var lre=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function fre(e){return lre.indexOf(e)>-1}var zP=1/0,XP=128,_re=128,dre=128,S$={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Xn.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:zP,OTEL_ATTRIBUTE_COUNT_LIMIT:XP,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:zP,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:XP,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:zP,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:XP,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:_re,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:dre,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:QP.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function pre(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function hre(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function vre(e,t,r,n){n===void 0&&(n=are);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var Sre={ALL:Xn.ALL,VERBOSE:Xn.VERBOSE,DEBUG:Xn.DEBUG,INFO:Xn.INFO,WARN:Xn.WARN,ERROR:Xn.ERROR,NONE:Xn.NONE};function Ere(e,t,r){var n=r[e];if(typeof n=="string"){var i=Sre[n.toUpperCase()];i!=null&&(t[e]=i)}}function gre(e){var t={};for(var r in S$){var n=r;switch(n){case"OTEL_LOG_LEVEL":Ere(n,t,e);break;default:if(sre(n))pre(n,t,e);else if(cre(n))hre(n,t,e);else if(fre(n))vre(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var Tre=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{};function Xs(){var e=gre(Tre);return Object.assign({},S$,e)}function UNe(){return parseEnvironment(_globalThis)}var mre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},E$=1e4,Are=5,yre=1e3,Ore=5e3,bre=1.5;function Rre(e){e===void 0&&(e={});var t={};return Object.entries(e).forEach(function(r){var n=mre(r,2),i=n[0],a=n[1];typeof a<"u"?t[i]=String(a):Wu.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),t}function Pre(e,t){return e.endsWith("/")||(e=e+"/"),e+t}function Cre(e){try{var t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return Wu.warn("Could not parse export URL: '"+e+"'"),e}}function Mre(e){return typeof e=="number"?e<=0?g$(e,E$):e:Nre()}function Nre(){var e,t=Number((e=Xs().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:Xs().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?g$(t,E$):t}function g$(e,t){return Wu.warn("Timeout must be greater than 0",e),t}function Ire(e){var t=[429,502,503,504];return t.includes(e)}function Lre(e){if(e==null)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;var r=new Date(e).getTime()-Date.now();return r>=0?r:0}var Dre=function(){function e(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new ire(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=Mre(t.timeoutMillis),this.onInit(t)}return e.prototype.export=function(t,r){if(this._shutdownOnce.isCalled){r({code:Jf.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){r({code:Jf.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(function(){r({code:Jf.SUCCESS})}).catch(function(n){r({code:Jf.FAILED,error:n})})},e.prototype._export=function(t){var r=this;return new Promise(function(n,i){try{Wu.debug("items to be sent",t),r.send(t,n,i)}catch(a){i(a)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return Wu.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),wre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),eh=function(e){wre(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.name="OTLPExporterError",a.data=i,a.code=n,a}return t}(Error),$g=function(){return $g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$g.apply(this,arguments)},Ure=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function xre(e,t,r,n,i){if(navigator.sendBeacon(t,new Blob([e],r)))Wu.debug("sendBeacon - can send",e),n();else{var a=new eh("sendBeacon - cannot send "+e);i(a)}}function Vre(e,t,r,n,i,a){var u,c,v=!1,_=setTimeout(function(){if(clearTimeout(u),v=!0,c.readyState===XMLHttpRequest.DONE){var A=new eh("Request Timeout");a(A)}else c.abort()},n),S=function(A,Q){A===void 0&&(A=Are),Q===void 0&&(Q=yre),c=new XMLHttpRequest,c.open("POST",t);var le={Accept:"application/json","Content-Type":"application/json"};Object.entries($g($g({},le),r)).forEach(function(pe){var me=Ure(pe,2),Ge=me[0],Me=me[1];c.setRequestHeader(Ge,Me)}),c.send(e),c.onreadystatechange=function(){if(c.readyState===XMLHttpRequest.DONE&&v===!1)if(c.status>=200&&c.status<=299)Wu.debug("xhr success",e),i(),clearTimeout(_),clearTimeout(u);else if(c.status&&Ire(c.status)&&A>0){var pe=void 0;Q=bre*Q,c.getResponseHeader("Retry-After")?pe=Lre(c.getResponseHeader("Retry-After")):pe=Math.round(Math.random()*(Ore-Q)+Q),u=setTimeout(function(){S(A-1,Q)},pe)}else{var me=new eh("Failed to export with XHR (status: "+c.status+")",c.status);a(me),clearTimeout(_),clearTimeout(u)}},c.onabort=function(){if(v){var pe=new eh("Request Timeout");a(pe)}clearTimeout(_),clearTimeout(u)},c.onerror=function(){if(v){var pe=new eh("Request Timeout");a(pe)}clearTimeout(_),clearTimeout(u)}};S()}var Fre=Symbol("BaggageEntryMetadata"),$re=v$.instance();function xNe(e){return e===void 0&&(e={}),new BaggageImpl(new Map(Object.entries(e)))}function Gre(e){return typeof e!="string"&&($re.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Fre,toString:function(){return e}}}var Bre="=",T$=";",kre=",",VNe="baggage",FNe=180,$Ne=4096,GNe=8192,jre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function BNe(e){return e.reduce(function(t,r){var n=""+t+(t!==""?BAGGAGE_ITEMS_SEPARATOR:"")+r;return n.length>BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}function kNe(e){return e.getAllEntries().map(function(t){var r=jre(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),a})}function Hre(e){var t=e.split(T$);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(Bre);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=Gre(t.join(T$))),{key:i,value:a,metadata:u}}}}}function m$(e){return typeof e!="string"||e.length===0?{}:e.split(kre).map(function(t){return Hre(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var Yre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qre=function(e){Yre(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,r)||this;return n._useXHR=!1,n._useXHR=!!r.headers||typeof navigator.sendBeacon!="function",n._useXHR?n._headers=Object.assign({},Rre(r.headers),m$(Xs().OTEL_EXPORTER_OTLP_HEADERS)):n._headers={},n}return t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(r,n,i){var a=this;if(this._shutdownOnce.isCalled){Wu.debug("Shutdown already started. Cannot send objects");return}var u=this.convert(r),c=JSON.stringify(u),v=new Promise(function(S,A){a._useXHR?Vre(c,a.url,a._headers,a.timeoutMillis,S,A):xre(c,a.url,{type:"application/json"},S,A)}).then(n,i);this._sendingPromises.push(v);var _=function(){var S=a._sendingPromises.indexOf(v);a._sendingPromises.splice(S,1)};v.then(_,_)},t}(Dre),A$=9,Wre=6,Kre=Math.pow(10,Wre),Gg=Math.pow(10,A$);function Bg(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Kre);return[r,n]}function y$(){var e=performance.timeOrigin;if(typeof e!="number"){var t=performance;e=t.timing&&t.timing.fetchStart}return e}function Qre(e){var t=Bg(y$()),r=Bg(typeof e=="number"?e:performance.now());return Xre(t,r)}function jNe(e){if(O$(e))return e;if(typeof e=="number")return e<y$()?Qre(e):Bg(e);if(e instanceof Date)return Bg(e.getTime());throw TypeError("Invalid input type")}function HNe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=Gg),[r,n]}function YNe(e){var t=A$,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function zre(e){return e[0]*Gg+e[1]}function qNe(e){return e[0]*1e3+e[1]/1e6}function WNe(e){return e[0]*1e6+e[1]/1e3}function O$(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function KNe(e){return O$(e)||typeof e=="number"||e instanceof Date}function Xre(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=Gg&&(r[1]-=Gg,r[0]+=1),r}function b$(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function JP(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var i=b$(e.charCodeAt(n)),a=b$(e.charCodeAt(n+1));t[r++]=i<<4|a}return t}function R$(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Jre(e){var t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function P$(e){var t=R$(e);return Jre(t)}function Zre(e){var t=R$(e);return t.toString()}var ene=typeof BigInt<"u"?Zre:zre;function C$(e){return e}function M$(e){if(e!==void 0)return JP(e)}var tne={encodeHrTime:P$,encodeSpanContext:JP,encodeOptionalSpanContext:M$};function rne(e){var t,r;if(e===void 0)return tne;var n=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(r=e.useHex)!==null&&r!==void 0?r:!1;return{encodeHrTime:n?P$:ene,encodeSpanContext:i?C$:JP,encodeOptionalSpanContext:i?C$:M$}}var nne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function ine(e){return{name:e.name,version:e.version}}function ane(e){return Object.keys(e).map(function(t){return ZP(t,e[t])})}function ZP(e,t){return{key:e,value:eC(t)}}function eC(e){var 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(eC)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(r){var n=nne(r,2),i=n[0],a=n[1];return ZP(i,a)})}}:{}}function one(e){return{attributes:ane(e.attributes),droppedAttributesCount:0}}var sne=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N$=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function une(e,t){var r=rne(t);return{resourceLogs:lne(e,r)}}function cne(e){var t,r,n=new Map;try{for(var i=sne(e),a=i.next();!a.done;a=i.next()){var u=a.value,c=u.resource,v=u.instrumentationScope,_=v.name,S=v.version,A=S===void 0?"":S,Q=v.schemaUrl,le=Q===void 0?"":Q,pe=n.get(c);pe||(pe=new Map,n.set(c,pe));var me=_+"@"+A+":"+le,Ge=pe.get(me);Ge||(Ge=[],pe.set(me,Ge)),Ge.push(u)}}catch(Me){t={error:Me}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function lne(e,t){var r=cne(e);return Array.from(r,function(n){var i=N$(n,2),a=i[0],u=i[1];return{resource:one(a),scopeLogs:Array.from(u,function(c){var v=N$(c,2),_=v[1];return{scope:ine(_[0].instrumentationScope),logRecords:_.map(function(S){return fne(S,t)}),schemaUrl:_[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function fne(e,t){var r,n,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:eC(e.body),attributes:_ne(e.attributes),droppedAttributesCount:e.droppedAttributesCount,flags:(r=e.spanContext)===null||r===void 0?void 0:r.traceFlags,traceId:t.encodeOptionalSpanContext((n=e.spanContext)===null||n===void 0?void 0:n.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)===null||i===void 0?void 0:i.spanId)}}function QNe(e){return e}function _ne(e){return Object.keys(e).map(function(t){return ZP(t,e[t])})}var I$="v1/logs",dne="http://localhost:4318/"+I$;function pne(e){return typeof e.url=="string"?e.url:Xs().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length>0?Cre(Xs().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT):Xs().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?Pre(Xs().OTEL_EXPORTER_OTLP_ENDPOINT,I$):dne}var hne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),th=function(){return th=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},th.apply(this,arguments)},vne=function(e){hne(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,th({timeoutMillis:Xs().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT},r))||this;return n._headers=th(th({},n._headers),m$(Xs().OTEL_EXPORTER_OTLP_LOGS_HEADERS)),n}return t.prototype.convert=function(r){return une(r,{useHex:!0,useLongBits:!1})},t.prototype.getDefaultUrl=function(r){return pne(r)},t}(qre),dr=fs.instance();function hi(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Sne="cloud.provider",Ene="cloud.account.id",gne="cloud.region",Tne="cloud.availability_zone",mne="cloud.platform",Ane="aws.ecs.container.arn",yne="aws.ecs.cluster.arn",One="aws.ecs.launchtype",bne="aws.ecs.task.arn",Rne="aws.ecs.task.family",Pne="aws.ecs.task.revision",Cne="aws.eks.cluster.arn",Mne="aws.log.group.names",Nne="aws.log.group.arns",Ine="aws.log.stream.names",Lne="aws.log.stream.arns",Dne="container.name",wne="container.id",Une="container.runtime",xne="container.image.name",Vne="container.image.tag",L$="deployment.environment",Fne="device.id",$ne="device.model.identifier",Gne="device.model.name",Bne="faas.name",kne="faas.id",jne="faas.version",Hne="faas.instance",Yne="faas.max_memory",qne="host.id",Wne="host.name",Kne="host.type",Qne="host.arch",zne="host.image.name",Xne="host.image.id",Jne="host.image.version",Zne="k8s.cluster.name",eie="k8s.node.name",tie="k8s.node.uid",rie="k8s.namespace.name",nie="k8s.pod.uid",iie="k8s.pod.name",aie="k8s.container.name",oie="k8s.replicaset.uid",sie="k8s.replicaset.name",uie="k8s.deployment.uid",cie="k8s.deployment.name",lie="k8s.statefulset.uid",fie="k8s.statefulset.name",_ie="k8s.daemonset.uid",die="k8s.daemonset.name",pie="k8s.job.uid",hie="k8s.job.name",vie="k8s.cronjob.uid",Sie="k8s.cronjob.name",Eie="os.type",gie="os.description",Tie="os.name",mie="os.version",Aie="process.pid",yie="process.executable.name",Oie="process.executable.path",bie="process.command",Rie="process.command_line",Pie="process.command_args",Cie="process.owner",D$="process.runtime.name",Mie="process.runtime.version",Nie="process.runtime.description",w$="service.name",U$="service.namespace",Iie="service.instance.id",x$="service.version",V$="telemetry.sdk.name",F$="telemetry.sdk.language",$$="telemetry.sdk.version",Lie="telemetry.auto.version",Die="webengine.name",wie="webengine.version",Uie="webengine.description",zNe=null,XNe=null,JNe=null,ZNe=null,eIe=null,tIe=null,rIe=null,nIe=null,iIe=null,aIe=null,oIe=null,sIe=null,uIe=null,cIe=null,lIe=null,fIe=null,_Ie=null,dIe=null,pIe=null,hIe=null,vIe=null,xie=L$,SIe=null,EIe=null,gIe=null,TIe=null,mIe=null,AIe=null,yIe=null,OIe=null,bIe=null,RIe=null,PIe=null,CIe=null,MIe=null,NIe=null,IIe=null,LIe=null,DIe=null,wIe=null,UIe=null,xIe=null,VIe=null,FIe=null,$Ie=null,GIe=null,BIe=null,kIe=null,jIe=null,HIe=null,YIe=null,qIe=null,WIe=null,KIe=null,QIe=null,zIe=null,XIe=null,JIe=null,ZIe=null,e0e=null,t0e=null,r0e=null,n0e=null,i0e=null,a0e=null,o0e=null,s0e=null,Vie=D$,u0e=null,c0e=null,G$=w$,Fie=U$,l0e=null,$ie=x$,tC=V$,kg=F$,rC=$$,f0e=null,_0e=null,d0e=null,p0e=null,h0e=hi([Sne,Ene,gne,Tne,mne,Ane,yne,One,bne,Rne,Pne,Cne,Mne,Nne,Ine,Lne,Dne,wne,Une,xne,Vne,L$,Fne,$ne,Gne,Bne,kne,jne,Hne,Yne,qne,Wne,Kne,Qne,zne,Xne,Jne,Zne,eie,tie,rie,nie,iie,aie,oie,sie,uie,cie,lie,fie,_ie,die,pie,hie,vie,Sie,Eie,gie,Tie,mie,Aie,yie,Oie,bie,Rie,Pie,Cie,D$,Mie,Nie,w$,U$,Iie,x$,V$,F$,$$,Lie,Die,wie,Uie]),Gie="alibaba_cloud",Bie="aws",kie="azure",jie="gcp",v0e=null,S0e=null,E0e=null,g0e=null,T0e=hi([Gie,Bie,kie,jie]),Hie="alibaba_cloud_ecs",Yie="alibaba_cloud_fc",qie="aws_ec2",Wie="aws_ecs",Kie="aws_eks",Qie="aws_lambda",zie="aws_elastic_beanstalk",Xie="azure_vm",Jie="azure_container_instances",Zie="azure_aks",eae="azure_functions",tae="azure_app_service",rae="gcp_compute_engine",nae="gcp_cloud_run",iae="gcp_kubernetes_engine",aae="gcp_cloud_functions",oae="gcp_app_engine",m0e=null,A0e=null,y0e=null,O0e=null,b0e=null,R0e=null,P0e=null,C0e=null,M0e=null,N0e=null,I0e=null,L0e=null,D0e=null,w0e=null,U0e=null,x0e=null,V0e=null,F0e=hi([Hie,Yie,qie,Wie,Kie,Qie,zie,Xie,Jie,Zie,eae,tae,rae,nae,iae,aae,oae]),sae="ec2",uae="fargate",$0e=null,G0e=null,B0e=hi([sae,uae]),cae="amd64",lae="arm32",fae="arm64",_ae="ia64",dae="ppc32",pae="ppc64",hae="x86",k0e=null,j0e=null,H0e=null,Y0e=null,q0e=null,W0e=null,K0e=null,Q0e=hi([cae,lae,fae,_ae,dae,pae,hae]),vae="windows",Sae="linux",Eae="darwin",gae="freebsd",Tae="netbsd",mae="openbsd",Aae="dragonflybsd",yae="hpux",Oae="aix",bae="solaris",Rae="z_os",z0e=null,X0e=null,J0e=null,Z0e=null,eLe=null,tLe=null,rLe=null,nLe=null,iLe=null,aLe=null,oLe=null,sLe=hi([vae,Sae,Eae,gae,Tae,mae,Aae,yae,Oae,bae,Rae]),Pae="cpp",Cae="dotnet",Mae="erlang",Nae="go",Iae="java",Lae="nodejs",Dae="php",wae="python",Uae="ruby",B$="webjs",uLe=null,cLe=null,lLe=null,fLe=null,_Le=null,dLe=null,pLe=null,hLe=null,vLe=null,xae=B$,SLe=hi([Pae,Cae,Mae,Nae,Iae,Lae,Dae,wae,Uae,B$]),Vae="1.25.1",Zf,nC=(Zf={},Zf[tC]="opentelemetry",Zf[Vie]="browser",Zf[kg]=xae,Zf[rC]=Vae,Zf);function Fae(){return"unknown_service"}var Ku=function(){return Ku=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ku.apply(this,arguments)},$ae=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Gae=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Bae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},jg=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return dr.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[G$]=Fae(),t[kg]=nC[kg],t[tC]=nC[tC],t[rC]=nC[rC],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&dr.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return $ae(this,void 0,void 0,function(){return Gae(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Ku(Ku({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=Bae(u,2),_=v[0],S=v[1];return Ku(Ku(Ku(Ku({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),S)});return new e(i,a)},e.EMPTY=new e({}),e}(),k$=function(){function e(){}return e.prototype.emit=function(t){},e}(),kae=new k$;function al(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var jae="cloud.provider",Hae="cloud.account.id",Yae="cloud.region",qae="cloud.availability_zone",Wae="cloud.platform",Kae="aws.ecs.container.arn",Qae="aws.ecs.cluster.arn",zae="aws.ecs.launchtype",Xae="aws.ecs.task.arn",Jae="aws.ecs.task.family",Zae="aws.ecs.task.revision",eoe="aws.eks.cluster.arn",toe="aws.log.group.names",roe="aws.log.group.arns",noe="aws.log.stream.names",ioe="aws.log.stream.arns",aoe="container.name",ooe="container.id",soe="container.runtime",uoe="container.image.name",coe="container.image.tag",loe="deployment.environment",foe="device.id",_oe="device.model.identifier",doe="device.model.name",poe="faas.name",hoe="faas.id",voe="faas.version",Soe="faas.instance",Eoe="faas.max_memory",goe="host.id",Toe="host.name",moe="host.type",Aoe="host.arch",yoe="host.image.name",Ooe="host.image.id",boe="host.image.version",Roe="k8s.cluster.name",Poe="k8s.node.name",Coe="k8s.node.uid",Moe="k8s.namespace.name",Noe="k8s.pod.uid",Ioe="k8s.pod.name",Loe="k8s.container.name",Doe="k8s.replicaset.uid",woe="k8s.replicaset.name",Uoe="k8s.deployment.uid",xoe="k8s.deployment.name",Voe="k8s.statefulset.uid",Foe="k8s.statefulset.name",$oe="k8s.daemonset.uid",Goe="k8s.daemonset.name",Boe="k8s.job.uid",koe="k8s.job.name",joe="k8s.cronjob.uid",Hoe="k8s.cronjob.name",Yoe="os.type",qoe="os.description",Woe="os.name",Koe="os.version",Qoe="process.pid",zoe="process.executable.name",Xoe="process.executable.path",Joe="process.command",Zoe="process.command_line",ese="process.command_args",tse="process.owner",rse="process.runtime.name",nse="process.runtime.version",ise="process.runtime.description",j$="service.name",ase="service.namespace",ose="service.instance.id",sse="service.version",H$="telemetry.sdk.name",Y$="telemetry.sdk.language",q$="telemetry.sdk.version",use="telemetry.auto.version",cse="webengine.name",lse="webengine.version",fse="webengine.description",ELe=null,gLe=null,TLe=null,mLe=null,ALe=null,yLe=null,OLe=null,bLe=null,RLe=null,PLe=null,CLe=null,MLe=null,NLe=null,ILe=null,LLe=null,DLe=null,wLe=null,ULe=null,xLe=null,VLe=null,FLe=null,$Le=null,GLe=null,BLe=null,kLe=null,jLe=null,HLe=null,YLe=null,qLe=null,WLe=null,KLe=null,QLe=null,zLe=null,XLe=null,JLe=null,ZLe=null,eDe=null,tDe=null,rDe=null,nDe=null,iDe=null,aDe=null,oDe=null,sDe=null,uDe=null,cDe=null,lDe=null,fDe=null,_De=null,dDe=null,pDe=null,hDe=null,vDe=null,SDe=null,EDe=null,gDe=null,TDe=null,mDe=null,ADe=null,yDe=null,ODe=null,bDe=null,RDe=null,PDe=null,CDe=null,MDe=null,NDe=null,IDe=null,LDe=null,DDe=null,_se=j$,wDe=null,UDe=null,xDe=null,W$=H$,K$=Y$,Q$=q$,VDe=null,FDe=null,$De=null,GDe=null,BDe=al([jae,Hae,Yae,qae,Wae,Kae,Qae,zae,Xae,Jae,Zae,eoe,toe,roe,noe,ioe,aoe,ooe,soe,uoe,coe,loe,foe,_oe,doe,poe,hoe,voe,Soe,Eoe,goe,Toe,moe,Aoe,yoe,Ooe,boe,Roe,Poe,Coe,Moe,Noe,Ioe,Loe,Doe,woe,Uoe,xoe,Voe,Foe,$oe,Goe,Boe,koe,joe,Hoe,Yoe,qoe,Woe,Koe,Qoe,zoe,Xoe,Joe,Zoe,ese,tse,rse,nse,ise,j$,ase,ose,sse,H$,Y$,q$,use,cse,lse,fse]),dse="alibaba_cloud",pse="aws",hse="azure",vse="gcp",kDe=null,jDe=null,HDe=null,YDe=null,qDe=al([dse,pse,hse,vse]),Sse="alibaba_cloud_ecs",Ese="alibaba_cloud_fc",gse="aws_ec2",Tse="aws_ecs",mse="aws_eks",Ase="aws_lambda",yse="aws_elastic_beanstalk",Ose="azure_vm",bse="azure_container_instances",Rse="azure_aks",Pse="azure_functions",Cse="azure_app_service",Mse="gcp_compute_engine",Nse="gcp_cloud_run",Ise="gcp_kubernetes_engine",Lse="gcp_cloud_functions",Dse="gcp_app_engine",WDe=null,KDe=null,QDe=null,zDe=null,XDe=null,JDe=null,ZDe=null,ewe=null,twe=null,rwe=null,nwe=null,iwe=null,awe=null,owe=null,swe=null,uwe=null,cwe=null,lwe=al([Sse,Ese,gse,Tse,mse,Ase,yse,Ose,bse,Rse,Pse,Cse,Mse,Nse,Ise,Lse,Dse]),wse="ec2",Use="fargate",fwe=null,_we=null,dwe=al([wse,Use]),xse="amd64",Vse="arm32",Fse="arm64",$se="ia64",Gse="ppc32",Bse="ppc64",kse="x86",pwe=null,hwe=null,vwe=null,Swe=null,Ewe=null,gwe=null,Twe=null,mwe=al([xse,Vse,Fse,$se,Gse,Bse,kse]),jse="windows",Hse="linux",Yse="darwin",qse="freebsd",Wse="netbsd",Kse="openbsd",Qse="dragonflybsd",zse="hpux",Xse="aix",Jse="solaris",Zse="z_os",Awe=null,ywe=null,Owe=null,bwe=null,Rwe=null,Pwe=null,Cwe=null,Mwe=null,Nwe=null,Iwe=null,Lwe=null,Dwe=al([jse,Hse,Yse,qse,Wse,Kse,Qse,zse,Xse,Jse,Zse]),eue="cpp",tue="dotnet",rue="erlang",nue="go",iue="java",aue="nodejs",oue="php",sue="python",uue="ruby",cue="webjs",wwe=null,Uwe=null,xwe=null,Vwe=null,Fwe=null,$we=null,Gwe=null,Bwe=null,kwe=null,jwe=null,Hwe=al([eue,tue,rue,nue,iue,aue,oue,sue,uue,cue]),lue="1.24.1";function ol(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var fue="cloud.provider",_ue="cloud.account.id",due="cloud.region",pue="cloud.availability_zone",hue="cloud.platform",vue="aws.ecs.container.arn",Sue="aws.ecs.cluster.arn",Eue="aws.ecs.launchtype",gue="aws.ecs.task.arn",Tue="aws.ecs.task.family",mue="aws.ecs.task.revision",Aue="aws.eks.cluster.arn",yue="aws.log.group.names",Oue="aws.log.group.arns",bue="aws.log.stream.names",Rue="aws.log.stream.arns",Pue="container.name",Cue="container.id",Mue="container.runtime",Nue="container.image.name",Iue="container.image.tag",Lue="deployment.environment",Due="device.id",wue="device.model.identifier",Uue="device.model.name",xue="faas.name",Vue="faas.id",Fue="faas.version",$ue="faas.instance",Gue="faas.max_memory",Bue="host.id",kue="host.name",jue="host.type",Hue="host.arch",Yue="host.image.name",que="host.image.id",Wue="host.image.version",Kue="k8s.cluster.name",Que="k8s.node.name",zue="k8s.node.uid",Xue="k8s.namespace.name",Jue="k8s.pod.uid",Zue="k8s.pod.name",ece="k8s.container.name",tce="k8s.replicaset.uid",rce="k8s.replicaset.name",nce="k8s.deployment.uid",ice="k8s.deployment.name",ace="k8s.statefulset.uid",oce="k8s.statefulset.name",sce="k8s.daemonset.uid",uce="k8s.daemonset.name",cce="k8s.job.uid",lce="k8s.job.name",fce="k8s.cronjob.uid",_ce="k8s.cronjob.name",dce="os.type",pce="os.description",hce="os.name",vce="os.version",Sce="process.pid",Ece="process.executable.name",gce="process.executable.path",Tce="process.command",mce="process.command_line",Ace="process.command_args",yce="process.owner",Oce="process.runtime.name",bce="process.runtime.version",Rce="process.runtime.description",Pce="service.name",Cce="service.namespace",Mce="service.instance.id",Nce="service.version",Ice="telemetry.sdk.name",Lce="telemetry.sdk.language",Dce="telemetry.sdk.version",wce="telemetry.auto.version",Uce="webengine.name",xce="webengine.version",Vce="webengine.description",Ywe=null,qwe=null,Wwe=null,Kwe=null,Qwe=null,zwe=null,Xwe=null,Jwe=null,Zwe=null,eUe=null,tUe=null,rUe=null,nUe=null,iUe=null,aUe=null,oUe=null,sUe=null,uUe=null,cUe=null,lUe=null,fUe=null,_Ue=null,dUe=null,pUe=null,hUe=null,vUe=null,SUe=null,EUe=null,gUe=null,TUe=null,mUe=null,AUe=null,yUe=null,OUe=null,bUe=null,RUe=null,PUe=null,CUe=null,MUe=null,NUe=null,IUe=null,LUe=null,DUe=null,wUe=null,UUe=null,xUe=null,VUe=null,FUe=null,$Ue=null,GUe=null,BUe=null,kUe=null,jUe=null,HUe=null,YUe=null,qUe=null,WUe=null,KUe=null,QUe=null,zUe=null,XUe=null,JUe=null,ZUe=null,e1e=null,t1e=null,r1e=null,n1e=null,i1e=null,a1e=null,o1e=null,s1e=null,u1e=null,c1e=null,l1e=null,f1e=null,_1e=null,d1e=null,p1e=null,h1e=null,v1e=null,S1e=null,Hg=ol([fue,_ue,due,pue,hue,vue,Sue,Eue,gue,Tue,mue,Aue,yue,Oue,bue,Rue,Pue,Cue,Mue,Nue,Iue,Lue,Due,wue,Uue,xue,Vue,Fue,$ue,Gue,Bue,kue,jue,Hue,Yue,que,Wue,Kue,Que,zue,Xue,Jue,Zue,ece,tce,rce,nce,ice,ace,oce,sce,uce,cce,lce,fce,_ce,dce,pce,hce,vce,Sce,Ece,gce,Tce,mce,Ace,yce,Oce,bce,Rce,Pce,Cce,Mce,Nce,Ice,Lce,Dce,wce,Uce,xce,Vce]),Fce="alibaba_cloud",$ce="aws",Gce="azure",Bce="gcp",E1e=null,g1e=null,T1e=null,m1e=null,A1e=ol([Fce,$ce,Gce,Bce]),kce="alibaba_cloud_ecs",jce="alibaba_cloud_fc",Hce="aws_ec2",Yce="aws_ecs",qce="aws_eks",Wce="aws_lambda",Kce="aws_elastic_beanstalk",Qce="azure_vm",zce="azure_container_instances",Xce="azure_aks",Jce="azure_functions",Zce="azure_app_service",ele="gcp_compute_engine",tle="gcp_cloud_run",rle="gcp_kubernetes_engine",nle="gcp_cloud_functions",ile="gcp_app_engine",y1e=null,O1e=null,b1e=null,R1e=null,P1e=null,C1e=null,M1e=null,N1e=null,I1e=null,L1e=null,D1e=null,w1e=null,U1e=null,x1e=null,V1e=null,F1e=null,$1e=null,G1e=ol([kce,jce,Hce,Yce,qce,Wce,Kce,Qce,zce,Xce,Jce,Zce,ele,tle,rle,nle,ile]),ale="ec2",ole="fargate",B1e=null,k1e=null,j1e=ol([ale,ole]),sle="amd64",ule="arm32",cle="arm64",lle="ia64",fle="ppc32",_le="ppc64",dle="x86",H1e=null,Y1e=null,q1e=null,W1e=null,K1e=null,Q1e=null,z1e=null,X1e=ol([sle,ule,cle,lle,fle,_le,dle]),ple="windows",hle="linux",vle="darwin",Sle="freebsd",Ele="netbsd",gle="openbsd",Tle="dragonflybsd",mle="hpux",Ale="aix",yle="solaris",Ole="z_os",J1e=null,Z1e=null,exe=null,txe=null,rxe=null,nxe=null,ixe=null,axe=null,oxe=null,sxe=null,uxe=null,cxe=ol([ple,hle,vle,Sle,Ele,gle,Tle,mle,Ale,yle,Ole]),ble="cpp",Rle="dotnet",Ple="erlang",Cle="go",Mle="java",Nle="nodejs",Ile="php",Lle="python",Dle="ruby",wle="webjs",lxe=null,fxe=null,_xe=null,dxe=null,pxe=null,hxe=null,vxe=null,Sxe=null,Exe=null,gxe=null,Ule=ol([ble,Rle,Ple,Cle,Mle,Nle,Ile,Lle,Dle,wle]),e_,iC=(e_={},e_[Hg.TELEMETRY_SDK_NAME]="opentelemetry",e_[Hg.PROCESS_RUNTIME_NAME]="browser",e_[Hg.TELEMETRY_SDK_LANGUAGE]=Ule.WEBJS,e_[Hg.TELEMETRY_SDK_VERSION]=lue,e_);function xle(){return"unknown_service"}var Qu=function(){return Qu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qu.apply(this,arguments)},Vle=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Fle=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},$le=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},z$=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return dr.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[_se]=xle(),t[K$]=iC[K$],t[W$]=iC[W$],t[Q$]=iC[Q$],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&dr.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return Vle(this,void 0,void 0,function(){return Fle(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Qu(Qu({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=$le(u,2),_=v[0],S=v[1];return Qu(Qu(Qu(Qu({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),S)});return new e(i,a)},e.EMPTY=new e({}),e}(),Gle="[object Object]",Ble="[object Null]",kle="[object Undefined]",jle=Function.prototype,X$=jle.toString,Hle=X$.call(Object),Yle=qle(Object.getPrototypeOf,Object),J$=Object.prototype,Z$=J$.hasOwnProperty,sl=Symbol?Symbol.toStringTag:void 0,eG=J$.toString;function qle(e,t){return function(r){return e(t(r))}}function tG(e){if(!Wle(e)||Kle(e)!==Gle)return!1;var t=Yle(e);if(t===null)return!0;var r=Z$.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&X$.call(r)===Hle}function Wle(e){return e!=null&&typeof e=="object"}function Kle(e){return e==null?e===void 0?kle:Ble:sl&&sl in Object(e)?Qle(e):zle(e)}function Qle(e){var t=Z$.call(e,sl),r=e[sl],n=!1;try{e[sl]=void 0,n=!0}catch{}var i=eG.call(e);return n&&(t?e[sl]=r:delete e[sl]),i}function zle(e){return eG.call(e)}var Xle=20;function Jle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=rG(r,e.shift(),0,n);return r}function aC(e){return Yg(e)?e.slice():e}function rG(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>Xle)){if(r++,qg(e)||qg(t)||iG(t))i=aC(t);else if(Yg(e)){if(i=e.slice(),Yg(t))for(var a=0,u=t.length;a<u;a++)i.push(aC(t[a]));else if(rh(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=aC(t[v])}}else if(rh(e))if(rh(t)){if(!Zle(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(qg(_))typeof _>"u"?delete i[v]:i[v]=_;else{var S=i[v],A=_;if(nG(e,v,n)||nG(t,v,n))delete i[v];else{if(rh(S)&&rh(A)){var Q=n.get(S)||[],le=n.get(A)||[];Q.push({obj:e,key:v}),le.push({obj:t,key:v}),n.set(S,Q),n.set(A,le)}i[v]=rG(i[v],_,r,n)}}}}else i=t;return i}}function nG(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function Yg(e){return Array.isArray(e)}function iG(e){return typeof e=="function"}function rh(e){return!qg(e)&&!Yg(e)&&!iG(e)&&typeof e=="object"}function qg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Zle(e,t){return!(!tG(e)||!tG(t))}var efe=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),tfe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},rfe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},aG=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new efe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,rfe([this._that],tfe(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),Gi=Fg.getInstance(),oC=performance,oG=9,nfe=6,ife=Math.pow(10,nfe),Wg=Math.pow(10,oG);function nh(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*ife);return[r,n]}function sG(){var e=oC.timeOrigin;if(typeof e!="number"){var t=oC;e=t.timing&&t.timing.fetchStart}return e}function sC(e){var t=nh(sG()),r=nh(typeof e=="number"?e:oC.now());return afe(t,r)}function ul(e){if(uG(e))return e;if(typeof e=="number")return e<sG()?sC(e):nh(e);if(e instanceof Date)return nh(e.getTime());throw TypeError("Invalid input type")}function Txe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=Wg),[r,n]}function mxe(e){var t=oG,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function zu(e){return e[0]*Wg+e[1]}function Axe(e){return e[0]*1e3+e[1]/1e6}function yxe(e){return e[0]*1e6+e[1]/1e3}function uG(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Oxe(e){return uG(e)||typeof e=="number"||e instanceof Date}function afe(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=Wg&&(r[1]-=Wg,r[0]+=1),r}var cG=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ofe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function bxe(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=cG(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=ofe(a.value,2),c=u[0],v=u[1];if(!sfe(c)){diag.warn("Invalid attribute key: "+c);continue}if(!uC(v)){diag.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function sfe(e){return typeof e=="string"&&e.length>0}function uC(e){return e==null?!0:Array.isArray(e)?ufe(e):lG(e)}function ufe(e){var t,r,n;try{for(var i=cG(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(lG(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function lG(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var cfe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lfe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ffe=function(){function e(t,r,n){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var i=n.timestamp,a=n.observedTimestamp,u=n.severityNumber,c=n.severityText,v=n.body,_=n.attributes,S=_===void 0?{}:_,A=n.context,Q=Date.now();if(this.hrTime=ul(i??Q),this.hrTimeObserved=ul(a??Q),A){var le=zi.getSpanContext(A);le&&Xf(le)&&(this.spanContext=le)}this.severityNumber=u,this.severityText=c,this.body=v,this.resource=t.resource,this.instrumentationScope=r,this._logRecordLimits=t.logRecordLimits,this.setAttributes(S)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,r){return this._isLogRecordReadonly()?this:r===null?this:t.length===0?(dr.warn("Invalid attribute key: "+t),this):!uC(r)&&!(typeof r=="object"&&!Array.isArray(r)&&Object.keys(r).length>0)?(dr.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&dr.warn("Dropping extra attributes."),this):(uC(r)?this.attributes[t]=this._truncateToSize(r):this.attributes[t]=r,this))},e.prototype.setAttributes=function(t){var r,n;try{for(var i=cfe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=lfe(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var r=this,n=this._logRecordLimits.attributeValueLengthLimit;return n<=0?(dr.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&dr.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}(),cC=function(){return cC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cC.apply(this,arguments)},_fe=function(){function e(t,r){this.instrumentationScope=t,this._sharedState=r}return e.prototype.emit=function(t){var r=t.context||Gi.active(),n=new ffe(this._sharedState,this.instrumentationScope,cC({context:r},t));this._sharedState.activeProcessor.onEmit(n,r),n._makeReadonly()},e}(),lC;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(lC||(lC={}));var dfe=",",pfe=["OTEL_SDK_DISABLED"];function hfe(e){return pfe.indexOf(e)>-1}var vfe=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Sfe(e){return vfe.indexOf(e)>-1}var Efe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function gfe(e){return Efe.indexOf(e)>-1}var Kg=1/0,Qg=128,Tfe=128,mfe=128,fG={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:on.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Kg,OTEL_ATTRIBUTE_COUNT_LIMIT:Qg,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Kg,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Qg,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Kg,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Qg,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Tfe,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:mfe,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:lC.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Afe(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function yfe(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function Ofe(e,t,r,n){n===void 0&&(n=dfe);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var bfe={ALL:on.ALL,VERBOSE:on.VERBOSE,DEBUG:on.DEBUG,INFO:on.INFO,WARN:on.WARN,ERROR:on.ERROR,NONE:on.NONE};function Rfe(e,t,r){var n=r[e];if(typeof n=="string"){var i=bfe[n.toUpperCase()];i!=null&&(t[e]=i)}}function _G(e){var t={};for(var r in fG){var n=r;switch(n){case"OTEL_LOG_LEVEL":Rfe(n,t,e);break;default:if(hfe(n))Afe(n,t,e);else if(Sfe(n))yfe(n,t,e);else if(gfe(n))Ofe(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var ih=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{};function fC(){var e=_G(ih);return Object.assign({},fG,e)}function Pfe(){return _G(ih)}function Cfe(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:fC().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:fC().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Mfe(e){var t,r,n,i,a,u,c=Pfe();return{attributeCountLimit:(n=(r=(t=e.attributeCountLimit)!==null&&t!==void 0?t:c.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:c.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:Qg,attributeValueLengthLimit:(u=(a=(i=e.attributeValueLengthLimit)!==null&&i!==void 0?i:c.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&a!==void 0?a:c.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&u!==void 0?u:Kg}}var Nfe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ife=function(e){Nfe(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);function dG(e,t){var r,n=new Promise(function(a,u){r=setTimeout(function(){u(new Ife("Operation timed out."))},t)});return Promise.race([e,n]).then(function(i){return clearTimeout(r),i},function(i){throw clearTimeout(r),i})}var pG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},hG=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Lfe=function(){function e(t,r){this.processors=t,this.forceFlushTimeoutMillis=r}return e.prototype.forceFlush=function(){return pG(this,void 0,void 0,function(){var t;return hG(this,function(r){switch(r.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(n){return dG(n.forceFlush(),t)}))];case 1:return r.sent(),[2]}})})},e.prototype.onEmit=function(t,r){this.processors.forEach(function(n){return n.onEmit(t,r)})},e.prototype.shutdown=function(){return pG(this,void 0,void 0,function(){return hG(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(r){return r.shutdown()}))];case 1:return t.sent(),[2]}})})},e}(),Dfe=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,r){},e.prototype.shutdown=function(){return Promise.resolve()},e}(),wfe=function(){function e(t,r,n){this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=n,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new Dfe}return e}(),Ufe="unknown",xfe=function(){function e(t){t===void 0&&(t={});var r,n=Jle({},Cfe(),t),i=z$.default().merge((r=n.resource)!==null&&r!==void 0?r:z$.empty());this._sharedState=new wfe(i,n.forceFlushTimeoutMillis,Mfe(n.logRecordLimits)),this._shutdownOnce=new aG(this._shutdown,this)}return e.prototype.getLogger=function(t,r,n){if(this._shutdownOnce.isCalled)return dr.warn("A shutdown LoggerProvider cannot provide a Logger"),kae;t||dr.warn("Logger requested without instrumentation scope name.");var i=t||Ufe,a=i+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new _fe({name:i,version:r,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(r){return dr.error("Error while trying to shutdown current log record processor",r)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new Lfe(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(dr.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(dr.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();function Vfe(){return function(e){dr.error(Ffe(e))}}function Ffe(e){return typeof e=="string"?e:JSON.stringify($fe(e))}function $fe(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var vG=Vfe();function Rxe(e){vG=e}function zg(e){try{vG(e)}catch{}}function Pxe(e){}function Gfe(e,t){return new Promise(function(r){Gi.with(yte(Gi.active()),function(){e.export(t,function(n){r(n)})})})}var Bfe={_export:Gfe},_C;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(_C||(_C={}));var kfe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},jfe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Hfe=function(){function e(t,r){var n,i,a,u;this._exporter=t,this._finishedLogRecords=[];var c=fC();this._maxExportBatchSize=(n=r?.maxExportBatchSize)!==null&&n!==void 0?n:c.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=(i=r?.maxQueueSize)!==null&&i!==void 0?i:c.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=(a=r?.scheduledDelayMillis)!==null&&a!==void 0?a:c.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=(u=r?.exportTimeoutMillis)!==null&&u!==void 0?u:c.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new aG(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(dr.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return kfe(this,void 0,void 0,function(){return jfe(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})})},e.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),u=0;u<a;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise(function(r,n){dG(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return r()}).catch(n)})},e.prototype._maybeStartTimer=function(){var t=this;this._timer===void 0&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){zg(r)})},this._scheduledDelayMillis),this._timer,void 0)},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e.prototype._export=function(t){var r=this,n=function(){return Bfe._export(r._exporter,t).then(function(a){var u;a.code!==_C.SUCCESS&&zg((u=a.error)!==null&&u!==void 0?u:new Error("BatchLogRecordProcessor: log record export failed (status "+a+")"))}).catch(zg)},i=t.map(function(a){return a.resource}).filter(function(a){return a.asyncAttributesPending});return i.length===0?n():Promise.all(i.map(function(a){var u;return(u=a.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(a)})).then(n,zg)},e}(),Yfe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qfe=function(e){Yfe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._onInit(n),i}return t.prototype.onShutdown=function(){typeof document>"u"||(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t.prototype._onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide===!0||typeof document>"u"||(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t}(Hfe),Wfe=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),Kfe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Qfe={set:function(e,t,r){e!=null&&(e[t]=r)}},dC=Vg("OpenTelemetry Baggage Key");function SG(e){return e.getValue(dC)||void 0}function zfe(){return SG(Fg.getInstance().active())}function Xfe(e,t){return e.setValue(dC,t)}function Jfe(e){return e.deleteValue(dC)}var Zfe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},e_e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},t_e=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(!!r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=Zfe(t,2),n=r[0],i=r[1];return[n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new e(this._entries);try{for(var u=e_e(n),c=u.next();!c.done;c=u.next()){var v=c.value;a._entries.delete(v)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),r_e=Symbol("BaggageEntryMetadata"),n_e=fs.instance();function i_e(e){return e===void 0&&(e={}),new t_e(new Map(Object.entries(e)))}function a_e(e){return typeof e!="string"&&(n_e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:r_e,toString:function(){return e}}}var pC="propagation",o_e=new Wfe,s_e=function(){function e(){this.createBaggage=i_e,this.getBaggage=SG,this.getActiveBaggage=zfe,this.setBaggage=Xfe,this.deleteBaggage=Jfe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Wp(pC,t,fs.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=Qfe),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=Kfe),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Kp(pC,fs.instance())},e.prototype._getGlobalPropagator=function(){return nl(pC)||o_e},e}(),Js=s_e.getInstance(),u_e="[object Object]",c_e="[object Null]",l_e="[object Undefined]",f_e=Function.prototype,EG=f_e.toString,__e=EG.call(Object),d_e=p_e(Object.getPrototypeOf,Object),gG=Object.prototype,TG=gG.hasOwnProperty,cl=Symbol?Symbol.toStringTag:void 0,mG=gG.toString;function p_e(e,t){return function(r){return e(t(r))}}function AG(e){if(!h_e(e)||v_e(e)!==u_e)return!1;var t=d_e(e);if(t===null)return!0;var r=TG.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&EG.call(r)===__e}function h_e(e){return e!=null&&typeof e=="object"}function v_e(e){return e==null?e===void 0?l_e:c_e:cl&&cl in Object(e)?S_e(e):E_e(e)}function S_e(e){var t=TG.call(e,cl),r=e[cl],n=!1;try{e[cl]=void 0,n=!0}catch{}var i=mG.call(e);return n&&(t?e[cl]=r:delete e[cl]),i}function E_e(e){return mG.call(e)}var g_e=20;function T_e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=yG(r,e.shift(),0,n);return r}function hC(e){return Xg(e)?e.slice():e}function yG(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>g_e)){if(r++,Jg(e)||Jg(t)||bG(t))i=hC(t);else if(Xg(e)){if(i=e.slice(),Xg(t))for(var a=0,u=t.length;a<u;a++)i.push(hC(t[a]));else if(ah(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=hC(t[v])}}else if(ah(e))if(ah(t)){if(!m_e(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(Jg(_))typeof _>"u"?delete i[v]:i[v]=_;else{var S=i[v],A=_;if(OG(e,v,n)||OG(t,v,n))delete i[v];else{if(ah(S)&&ah(A)){var Q=n.get(S)||[],le=n.get(A)||[];Q.push({obj:e,key:v}),le.push({obj:t,key:v}),n.set(S,Q),n.set(A,le)}i[v]=yG(i[v],_,r,n)}}}}else i=t;return i}}function OG(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function Xg(e){return Array.isArray(e)}function bG(e){return typeof e=="function"}function ah(e){return!Jg(e)&&!Xg(e)&&!bG(e)&&typeof e=="object"}function Jg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function m_e(e,t){return!(!AG(e)||!AG(t))}var ds;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(ds||(ds={}));var A_e=",",y_e=["OTEL_SDK_DISABLED"];function O_e(e){return y_e.indexOf(e)>-1}var b_e=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function R_e(e){return b_e.indexOf(e)>-1}var P_e=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function C_e(e){return P_e.indexOf(e)>-1}var Zg=1/0,eT=128,M_e=128,N_e=128,RG={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:on.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Zg,OTEL_ATTRIBUTE_COUNT_LIMIT:eT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Zg,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:eT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Zg,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:eT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:M_e,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:N_e,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ds.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function I_e(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function L_e(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function D_e(e,t,r,n){n===void 0&&(n=A_e);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var w_e={ALL:on.ALL,VERBOSE:on.VERBOSE,DEBUG:on.DEBUG,INFO:on.INFO,WARN:on.WARN,ERROR:on.ERROR,NONE:on.NONE};function U_e(e,t,r){var n=r[e];if(typeof n=="string"){var i=w_e[n.toUpperCase()];i!=null&&(t[e]=i)}}function PG(e){var t={};for(var r in RG){var n=r;switch(n){case"OTEL_LOG_LEVEL":U_e(n,t,e);break;default:if(O_e(n))I_e(n,t,e);else if(R_e(n))L_e(n,t,e);else if(C_e(n))D_e(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var CG=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{};function Ua(){var e=PG(CG);return Object.assign({},RG,e)}function x_e(){return PG(CG)}var V_e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F_e=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,i){return n.concat(i)},[])))}return e.prototype.inject=function(t,r,n){var i,a;try{for(var u=V_e(this._propagators),c=u.next();!c.done;c=u.next()){var v=c.value;try{v.inject(t,r,n)}catch(_){dr.warn("Failed to inject with "+v.constructor.name+". Err: "+_.message)}}}catch(_){i={error:_}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(i,a){try{return a.extract(i,r,n)}catch(u){dr.warn("Failed to inject with "+a.constructor.name+". Err: "+u.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),vC=Vg("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $_e(e){return e.setValue(vC,!0)}function Cxe(e){return e.deleteValue(vC)}function SC(e){return e.getValue(vC)===!0}var EC="[_0-9a-z-*/]",G_e="[a-z]"+EC+"{0,255}",B_e="[a-z0-9]"+EC+"{0,240}@[a-z]"+EC+"{0,13}",k_e=new RegExp("^(?:"+G_e+"|"+B_e+")$"),j_e=/^[ -~]{0,255}[!-~]$/,H_e=/,|=/;function Y_e(e){return k_e.test(e)}function q_e(e){return j_e.test(e)&&!H_e.test(e)}var MG=32,W_e=512,NG=",",IG="=",K_e=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+IG+t.get(n)),r},[]).join(NG)},e.prototype._parse=function(t){t.length>W_e||(this._internalState=t.split(NG).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(IG);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);Y_e(u)&&q_e(c)&&r.set(u,c)}return r},new Map),this._internalState.size>MG&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MG))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),gC="traceparent",TC="tracestate",Q_e="00",z_e="(?!ff)[\\da-f]{2}",X_e="(?![0]{32})[\\da-f]{32}",J_e="(?![0]{16})[\\da-f]{16}",Z_e="[\\da-f]{2}",ede=new RegExp("^\\s?("+z_e+")-("+X_e+")-("+J_e+")-("+Z_e+")(-.*)?\\s?$");function tde(e){var t=ede.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var rde=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=zi.getSpanContext(t);if(!(!i||SC(t)||!Xf(i))){var a=Q_e+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||_s.NONE).toString(16);n.set(r,gC,a),i.traceState&&n.set(r,TC,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,gC);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=tde(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,TC);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new K_e(typeof v=="string"?v:void 0)}return zi.setSpanContext(t,u)},e.prototype.fields=function(){return[gC,TC]},e}(),nde="=",mC=";",AC=",",yC="baggage",ide=180,ade=4096,ode=8192,sde=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function ude(e){return e.reduce(function(t,r){var n=""+t+(t!==""?AC:"")+r;return n.length>ode?t:n},"")}function cde(e){return e.getAllEntries().map(function(t){var r=sde(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=mC+i.metadata.toString()),a})}function LG(e){var t=e.split(mC);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(nde);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=a_e(t.join(mC))),{key:i,value:a,metadata:u}}}}}function Mxe(e){return typeof e!="string"||e.length===0?{}:e.split(BAGGAGE_ITEMS_SEPARATOR).map(function(t){return LG(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var lde=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=Js.getBaggage(t);if(!(!i||SC(t))){var a=cde(i).filter(function(c){return c.length<=ade}).slice(0,ide),u=ude(a);u.length>0&&n.set(r,yC,u)}},e.prototype.extract=function(t,r,n){var i=n.get(r,yC),a=Array.isArray(i)?i.join(AC):i;if(!a)return t;var u={};if(a.length===0)return t;var c=a.split(AC);return c.forEach(function(v){var _=LG(v);if(_){var S={value:_.value};_.metadata&&(S.metadata=_.metadata),u[_.key]=S}}),Object.entries(u).length===0?t:Js.setBaggage(t,Js.createBaggage(u))},e.prototype.fields=function(){return[yC]},e}(),tT;(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"})(tT||(tT={}));var rT;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(rT||(rT={}));var DG=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fde=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function nT(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=DG(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=fde(a.value,2),c=u[0],v=u[1];if(!_de(c)){dr.warn("Invalid attribute key: "+c);continue}if(!wG(v)){dr.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function _de(e){return typeof e=="string"&&e.length>0}function wG(e){return e==null?!0:Array.isArray(e)?dde(e):UG(e)}function dde(e){var t,r,n;try{for(var i=DG(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(UG(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function UG(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var OC;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(OC||(OC={}));var t_=performance,xG=9,pde=6,hde=Math.pow(10,pde),iT=Math.pow(10,xG);function Xu(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*hde);return[r,n]}function bC(){var e=t_.timeOrigin;if(typeof e!="number"){var t=t_;e=t.timing&&t.timing.fetchStart}return e}function VG(e){var t=Xu(bC()),r=Xu(typeof e=="number"?e:t_.now());return $G(t,r)}function Nxe(e){if(RC(e))return e;if(typeof e=="number")return e<bC()?VG(e):Xu(e);if(e instanceof Date)return Xu(e.getTime());throw TypeError("Invalid input type")}function vde(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=iT),[r,n]}function Ixe(e){var t=xG,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function Lxe(e){return e[0]*iT+e[1]}function Dxe(e){return e[0]*1e3+e[1]/1e6}function wxe(e){return e[0]*1e6+e[1]/1e3}function RC(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function FG(e){return RC(e)||typeof e=="number"||e instanceof Date}function $G(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=iT&&(r[1]-=iT,r[0]+=1),r}var Sde="aws.lambda.invoked_arn",Ede="db.system",gde="db.connection_string",Tde="db.user",mde="db.jdbc.driver_classname",Ade="db.name",yde="db.statement",Ode="db.operation",bde="db.mssql.instance_name",Rde="db.cassandra.keyspace",Pde="db.cassandra.page_size",Cde="db.cassandra.consistency_level",Mde="db.cassandra.table",Nde="db.cassandra.idempotence",Ide="db.cassandra.speculative_execution_count",Lde="db.cassandra.coordinator.id",Dde="db.cassandra.coordinator.dc",wde="db.hbase.namespace",Ude="db.redis.database_index",xde="db.mongodb.collection",Vde="db.sql.table",GG="exception.type",BG="exception.message",kG="exception.stacktrace",Fde="exception.escaped",$de="faas.trigger",Gde="faas.execution",Bde="faas.document.collection",kde="faas.document.operation",jde="faas.document.time",Hde="faas.document.name",Yde="faas.time",qde="faas.cron",Wde="faas.coldstart",Kde="faas.invoked_name",Qde="faas.invoked_provider",zde="faas.invoked_region",Xde="net.transport",Jde="net.peer.ip",Zde="net.peer.port",epe="net.peer.name",tpe="net.host.ip",rpe="net.host.port",npe="net.host.name",ipe="net.host.connection.type",ape="net.host.connection.subtype",ope="net.host.carrier.name",spe="net.host.carrier.mcc",upe="net.host.carrier.mnc",cpe="net.host.carrier.icc",lpe="peer.service",fpe="enduser.id",_pe="enduser.role",dpe="enduser.scope",ppe="thread.id",hpe="thread.name",vpe="code.function",Spe="code.namespace",Epe="code.filepath",gpe="code.lineno",Tpe="http.method",mpe="http.url",Ape="http.target",ype="http.host",Ope="http.scheme",bpe="http.status_code",Rpe="http.flavor",Ppe="http.user_agent",Cpe="http.request_content_length",Mpe="http.request_content_length_uncompressed",Npe="http.response_content_length",Ipe="http.response_content_length_uncompressed",Lpe="http.server_name",Dpe="http.route",wpe="http.client_ip",Upe="aws.dynamodb.table_names",xpe="aws.dynamodb.consumed_capacity",Vpe="aws.dynamodb.item_collection_metrics",Fpe="aws.dynamodb.provisioned_read_capacity",$pe="aws.dynamodb.provisioned_write_capacity",Gpe="aws.dynamodb.consistent_read",Bpe="aws.dynamodb.projection",kpe="aws.dynamodb.limit",jpe="aws.dynamodb.attributes_to_get",Hpe="aws.dynamodb.index_name",Ype="aws.dynamodb.select",qpe="aws.dynamodb.global_secondary_indexes",Wpe="aws.dynamodb.local_secondary_indexes",Kpe="aws.dynamodb.exclusive_start_table",Qpe="aws.dynamodb.table_count",zpe="aws.dynamodb.scan_forward",Xpe="aws.dynamodb.segment",Jpe="aws.dynamodb.total_segments",Zpe="aws.dynamodb.count",ehe="aws.dynamodb.scanned_count",the="aws.dynamodb.attribute_definitions",rhe="aws.dynamodb.global_secondary_index_updates",nhe="messaging.system",ihe="messaging.destination",ahe="messaging.destination_kind",ohe="messaging.temp_destination",she="messaging.protocol",uhe="messaging.protocol_version",che="messaging.url",lhe="messaging.message_id",fhe="messaging.conversation_id",_he="messaging.message_payload_size_bytes",dhe="messaging.message_payload_compressed_size_bytes",phe="messaging.operation",hhe="messaging.consumer_id",vhe="messaging.rabbitmq.routing_key",She="messaging.kafka.message_key",Ehe="messaging.kafka.consumer_group",ghe="messaging.kafka.client_id",The="messaging.kafka.partition",mhe="messaging.kafka.tombstone",Ahe="rpc.system",yhe="rpc.service",Ohe="rpc.method",bhe="rpc.grpc.status_code",Rhe="rpc.jsonrpc.version",Phe="rpc.jsonrpc.request_id",Che="rpc.jsonrpc.error_code",Mhe="rpc.jsonrpc.error_message",Nhe="message.type",Ihe="message.id",Lhe="message.compressed_size",Dhe="message.uncompressed_size",Uxe=null,xxe=null,Vxe=null,Fxe=null,$xe=null,Gxe=null,Bxe=null,kxe=null,jxe=null,Hxe=null,Yxe=null,qxe=null,Wxe=null,Kxe=null,Qxe=null,zxe=null,Xxe=null,Jxe=null,Zxe=null,eVe=null,tVe=null,PC=GG,CC=BG,whe=kG,rVe=null,nVe=null,iVe=null,aVe=null,oVe=null,sVe=null,uVe=null,cVe=null,lVe=null,fVe=null,_Ve=null,dVe=null,pVe=null,hVe=null,vVe=null,SVe=null,EVe=null,gVe=null,TVe=null,mVe=null,AVe=null,yVe=null,OVe=null,bVe=null,RVe=null,PVe=null,CVe=null,MVe=null,NVe=null,IVe=null,LVe=null,DVe=null,wVe=null,UVe=null,xVe=null,VVe=null,FVe=null,$Ve=null,GVe=null,BVe=null,kVe=null,jVe=null,HVe=null,YVe=null,qVe=null,WVe=null,KVe=null,QVe=null,zVe=null,XVe=null,JVe=null,ZVe=null,eFe=null,tFe=null,rFe=null,nFe=null,iFe=null,aFe=null,oFe=null,sFe=null,uFe=null,cFe=null,lFe=null,fFe=null,_Fe=null,dFe=null,pFe=null,hFe=null,vFe=null,SFe=null,EFe=null,gFe=null,TFe=null,mFe=null,AFe=null,yFe=null,OFe=null,bFe=null,RFe=null,PFe=null,CFe=null,MFe=null,NFe=null,IFe=null,LFe=null,DFe=null,wFe=null,UFe=null,xFe=null,VFe=null,FFe=null,$Fe=null,GFe=null,BFe=null,kFe=null,jFe=null,HFe=null,YFe=null,qFe=null,WFe=null,KFe=null,QFe=null,zFe=null,XFe=null,JFe=hi([Sde,Ede,gde,Tde,mde,Ade,yde,Ode,bde,Rde,Pde,Cde,Mde,Nde,Ide,Lde,Dde,wde,Ude,xde,Vde,GG,BG,kG,Fde,$de,Gde,Bde,kde,jde,Hde,Yde,qde,Wde,Kde,Qde,zde,Xde,Jde,Zde,epe,tpe,rpe,npe,ipe,ape,ope,spe,upe,cpe,lpe,fpe,_pe,dpe,ppe,hpe,vpe,Spe,Epe,gpe,Tpe,mpe,Ape,ype,Ope,bpe,Rpe,Ppe,Cpe,Mpe,Npe,Ipe,Lpe,Dpe,wpe,Upe,xpe,Vpe,Fpe,$pe,Gpe,Bpe,kpe,jpe,Hpe,Ype,qpe,Wpe,Kpe,Qpe,zpe,Xpe,Jpe,Zpe,ehe,the,rhe,nhe,ihe,ahe,ohe,she,uhe,che,lhe,fhe,_he,dhe,phe,hhe,vhe,She,Ehe,ghe,The,mhe,Ahe,yhe,Ohe,bhe,Rhe,Phe,Che,Mhe,Nhe,Ihe,Lhe,Dhe]),Uhe="other_sql",xhe="mssql",Vhe="mysql",Fhe="oracle",$he="db2",Ghe="postgresql",Bhe="redshift",khe="hive",jhe="cloudscape",Hhe="hsqldb",Yhe="progress",qhe="maxdb",Whe="hanadb",Khe="ingres",Qhe="firstsql",zhe="edb",Xhe="cache",Jhe="adabas",Zhe="firebird",eve="derby",tve="filemaker",rve="informix",nve="instantdb",ive="interbase",ave="mariadb",ove="netezza",sve="pervasive",uve="pointbase",cve="sqlite",lve="sybase",fve="teradata",_ve="vertica",dve="h2",pve="coldfusion",hve="cassandra",vve="hbase",Sve="mongodb",Eve="redis",gve="couchbase",Tve="couchdb",mve="cosmosdb",Ave="dynamodb",yve="neo4j",Ove="geode",bve="elasticsearch",Rve="memcached",Pve="cockroachdb",ZFe=null,e$e=null,t$e=null,r$e=null,n$e=null,i$e=null,a$e=null,o$e=null,s$e=null,u$e=null,c$e=null,l$e=null,f$e=null,_$e=null,d$e=null,p$e=null,h$e=null,v$e=null,S$e=null,E$e=null,g$e=null,T$e=null,m$e=null,A$e=null,y$e=null,O$e=null,b$e=null,R$e=null,P$e=null,C$e=null,M$e=null,N$e=null,I$e=null,L$e=null,D$e=null,w$e=null,U$e=null,x$e=null,V$e=null,F$e=null,$$e=null,G$e=null,B$e=null,k$e=null,j$e=null,H$e=null,Y$e=null,q$e=hi([Uhe,xhe,Vhe,Fhe,$he,Ghe,Bhe,khe,jhe,Hhe,Yhe,qhe,Whe,Khe,Qhe,zhe,Xhe,Jhe,Zhe,eve,tve,rve,nve,ive,ave,ove,sve,uve,cve,lve,fve,_ve,dve,pve,hve,vve,Sve,Eve,gve,Tve,mve,Ave,yve,Ove,bve,Rve,Pve]),Cve="all",Mve="each_quorum",Nve="quorum",Ive="local_quorum",Lve="one",Dve="two",wve="three",Uve="local_one",xve="any",Vve="serial",Fve="local_serial",W$e=null,K$e=null,Q$e=null,z$e=null,X$e=null,J$e=null,Z$e=null,eGe=null,tGe=null,rGe=null,nGe=null,iGe=hi([Cve,Mve,Nve,Ive,Lve,Dve,wve,Uve,xve,Vve,Fve]),$ve="datasource",Gve="http",Bve="pubsub",kve="timer",jve="other",aGe=null,oGe=null,sGe=null,uGe=null,cGe=null,lGe=hi([$ve,Gve,Bve,kve,jve]),Hve="insert",Yve="edit",qve="delete",fGe=null,_Ge=null,dGe=null,pGe=hi([Hve,Yve,qve]),Wve="alibaba_cloud",Kve="aws",Qve="azure",zve="gcp",hGe=null,vGe=null,SGe=null,EGe=null,gGe=hi([Wve,Kve,Qve,zve]),Xve="ip_tcp",Jve="ip_udp",Zve="ip",eSe="unix",tSe="pipe",rSe="inproc",nSe="other",TGe=null,mGe=null,AGe=null,yGe=null,OGe=null,bGe=null,RGe=null,PGe=hi([Xve,Jve,Zve,eSe,tSe,rSe,nSe]),iSe="wifi",aSe="wired",oSe="cell",sSe="unavailable",uSe="unknown",CGe=null,MGe=null,NGe=null,IGe=null,LGe=null,DGe=hi([iSe,aSe,oSe,sSe,uSe]),cSe="gprs",lSe="edge",fSe="umts",_Se="cdma",dSe="evdo_0",pSe="evdo_a",hSe="cdma2000_1xrtt",vSe="hsdpa",SSe="hsupa",ESe="hspa",gSe="iden",TSe="evdo_b",mSe="lte",ASe="ehrpd",ySe="hspap",OSe="gsm",bSe="td_scdma",RSe="iwlan",PSe="nr",CSe="nrnsa",MSe="lte_ca",wGe=null,UGe=null,xGe=null,VGe=null,FGe=null,$Ge=null,GGe=null,BGe=null,kGe=null,jGe=null,HGe=null,YGe=null,qGe=null,WGe=null,KGe=null,QGe=null,zGe=null,XGe=null,JGe=null,ZGe=null,eBe=null,tBe=hi([cSe,lSe,fSe,_Se,dSe,pSe,hSe,vSe,SSe,ESe,gSe,TSe,mSe,ASe,ySe,OSe,bSe,RSe,PSe,CSe,MSe]),NSe="1.0",ISe="1.1",LSe="2.0",DSe="SPDY",wSe="QUIC",rBe=null,nBe=null,iBe=null,aBe=null,oBe=null,sBe={HTTP_1_0:NSe,HTTP_1_1:ISe,HTTP_2_0:LSe,SPDY:DSe,QUIC:wSe},USe="queue",xSe="topic",uBe=null,cBe=null,lBe=hi([USe,xSe]),VSe="receive",FSe="process",fBe=null,_Be=null,dBe=hi([VSe,FSe]),$Se=0,GSe=1,BSe=2,kSe=3,jSe=4,HSe=5,YSe=6,qSe=7,WSe=8,KSe=9,QSe=10,zSe=11,XSe=12,JSe=13,ZSe=14,eEe=15,tEe=16,pBe=null,hBe=null,vBe=null,SBe=null,EBe=null,gBe=null,TBe=null,mBe=null,ABe=null,yBe=null,OBe=null,bBe=null,RBe=null,PBe=null,CBe=null,MBe=null,NBe=null,IBe={OK:$Se,CANCELLED:GSe,UNKNOWN:BSe,INVALID_ARGUMENT:kSe,DEADLINE_EXCEEDED:jSe,NOT_FOUND:HSe,ALREADY_EXISTS:YSe,PERMISSION_DENIED:qSe,RESOURCE_EXHAUSTED:WSe,FAILED_PRECONDITION:KSe,ABORTED:QSe,OUT_OF_RANGE:zSe,UNIMPLEMENTED:XSe,INTERNAL:JSe,UNAVAILABLE:ZSe,DATA_LOSS:eEe,UNAUTHENTICATED:tEe},rEe="SENT",nEe="RECEIVED",LBe=null,DBe=null,wBe=hi([rEe,nEe]),iEe="exception",aEe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jG=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},oEe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},sEe=function(){function e(t,r,n,i,a,u,c,v,_,S){c===void 0&&(c=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:OC.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=i,this.parentSpanId=u,this.kind=a,this.links=c;var A=Date.now();this._performanceStartTime=t_.now(),this._performanceOffset=A-(this._performanceStartTime+bC()),this._startTimeProvided=v!=null,this.startTime=this._getTime(v??A),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,S!=null&&this.setAttributes(S),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(dr.warn("Invalid attribute key: "+t),this):wG(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(dr.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var i=aEe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=jG(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return dr.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&dr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),FG(r)&&(FG(n)||(n=r),r=void 0);var i=nT(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return(r=this.links).push.apply(r,oEe([],jG(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=t,this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){dr.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=vde(this.startTime,this.endTime),this._duration[0]<0&&(dr.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&&dr.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<t_.now())return VG(t+this._performanceOffset);if(typeof t=="number")return Xu(t);if(t instanceof Date)return Xu(t.getTime());if(RC(t))return t;if(this._startTimeProvided)return Xu(Date.now());var r=t_.now()-this._performanceStartTime;return $G(this.startTime,Xu(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[CC]=t:t&&(t.code?n[PC]=t.code.toString():t.name&&(n[PC]=t.name),t.message&&(n[CC]=t.message),t.stack&&(n[whe]=t.stack)),n[PC]||n[CC]?this.addEvent(iEe,n,r):dr.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&dr.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substr(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(dr.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e}(),r_;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(r_||(r_={}));var aT=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r_.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),n_=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r_.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();function uEe(){return function(e){dr.error(cEe(e))}}function cEe(e){return typeof e=="string"?e:JSON.stringify(lEe(e))}function lEe(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var HG=uEe();function UBe(e){HG=e}function oT(e){try{HG(e)}catch{}}var MC=function(){function e(t){var r,n,i,a;this._root=t.root,this._root||(oT(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new n_),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new n_,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new aT,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new n_,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new aT}return e.prototype.shouldSample=function(t,r,n,i,a,u){var c=zi.getSpanContext(t);return!c||!Xf(c)?this._root.shouldSample(t,r,n,i,a,u):c.isRemote?c.traceFlags&_s.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,a,u):this._remoteParentNotSampled.shouldSample(t,r,n,i,a,u):c.traceFlags&_s.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,a,u):this._localParentNotSampled.shouldSample(t,r,n,i,a,u)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),YG=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:c$(r)&&this._accumulate(r)<this._upperBound?r_.RECORD_AND_SAMPLED:r_.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var i=n*8,a=parseInt(t.slice(i,i+8),16);r=(r^a)>>>0}return r},e}(),fEe=Ua(),_Ee=ds.AlwaysOn,i_=1;function qG(){return{sampler:WG(fEe),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Ua().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Ua().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:Ua().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Ua().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:Ua().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:Ua().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:Ua().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:Ua().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function WG(e){switch(e===void 0&&(e=Ua()),e.OTEL_TRACES_SAMPLER){case ds.AlwaysOn:return new n_;case ds.AlwaysOff:return new aT;case ds.ParentBasedAlwaysOn:return new MC({root:new n_});case ds.ParentBasedAlwaysOff:return new MC({root:new aT});case ds.TraceIdRatio:return new YG(KG(e));case ds.ParentBasedTraceIdRatio:return new MC({root:new YG(KG(e))});default:return dr.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+_Ee+'".'),new n_}}function KG(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return dr.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+i_+"."),i_;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(dr.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+i_+"."),i_):t<0||t>1?(dr.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+i_+"."),i_):t}function dEe(e){var t={sampler:WG()},r=qG(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function pEe(e){var t,r,n,i,a,u,c,v,_,S,A,Q,le=Object.assign({},e.spanLimits),pe=x_e();return le.attributeCountLimit=(u=(a=(i=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&i!==void 0?i:pe.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:pe.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:eT,le.attributeValueLengthLimit=(Q=(A=(S=(v=(c=e.spanLimits)===null||c===void 0?void 0:c.attributeValueLengthLimit)!==null&&v!==void 0?v:(_=e.generalLimits)===null||_===void 0?void 0:_.attributeValueLengthLimit)!==null&&S!==void 0?S:pe.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&A!==void 0?A:pe.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&Q!==void 0?Q:Zg,Object.assign({},e,{spanLimits:le})}var hEe=8,vEe=16,SEe=function(){function e(){this.generateTraceId=QG(vEe),this.generateSpanId=QG(hEe)}return e}(),sT=Array(32);function QG(e){return function(){for(var r=0;r<e*2;r++)sT[r]=Math.floor(Math.random()*16)+48,sT[r]>=58&&(sT[r]+=39);return String.fromCharCode.apply(null,sT.slice(0,e*2))}}var EEe=function(){function e(t,r,n){this._tracerProvider=n;var i=dEe(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new SEe,this.resource=n.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,r,n){var i,a,u;r===void 0&&(r={}),n===void 0&&(n=Gi.active()),r.root&&(n=zi.deleteSpan(n));var c=zi.getSpan(n);if(SC(n)){dr.debug("Instrumentation suppressed, returning Noop Span");var v=zi.wrapSpanContext(s$);return v}var _=c?.spanContext(),S=this._idGenerator.generateSpanId(),A,Q,le;!_||!zi.isSpanContextValid(_)?A=this._idGenerator.generateTraceId():(A=_.traceId,Q=_.traceState,le=_.spanId);var pe=(i=r.kind)!==null&&i!==void 0?i:tT.INTERNAL,me=((a=r.links)!==null&&a!==void 0?a:[]).map(function(ir){return{context:ir.context,attributes:nT(ir.attributes)}}),Ge=nT(r.attributes),Me=this._sampler.shouldSample(n,A,t,pe,Ge,me);Q=(u=Me.traceState)!==null&&u!==void 0?u:Q;var Re=Me.decision===rT.RECORD_AND_SAMPLED?_s.SAMPLED:_s.NONE,nt={traceId:A,spanId:S,traceFlags:Re,traceState:Q};if(Me.decision===rT.NOT_RECORD){dr.debug("Recording is off, propagating context in a non-recording span");var v=zi.wrapSpanContext(nt);return v}var ht=nT(Object.assign(Ge,Me.attributes)),Vt=new sEe(this,n,t,nt,pe,le,me,r.startTime,void 0,ht);return Vt},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??Gi.active(),_=this.startSpan(t,a,v),S=zi.setSpan(v,_);return Gi.with(S,c,void 0,_)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),uT=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gEe=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var i=uT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.forceFlush())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c){Promise.all(n).then(function(){c()}).catch(function(v){oT(v||new Error("MultiSpanProcessor: forceFlush failed")),c()})})},e.prototype.onStart=function(t,r){var n,i;try{for(var a=uT(this._spanProcessors),u=a.next();!u.done;u=a.next()){var c=u.value;c.onStart(t,r)}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var i=uT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;u.onEnd(t)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var i=uT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.shutdown())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c,v){Promise.all(n).then(function(){c()},v)})},e}(),TEe=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),mEe=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),AEe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},yEe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},OEe=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new mEe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,yEe([this._that],AEe(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),NC;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(NC||(NC={}));function xBe(e){}var bEe=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=Ua();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new OEe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(dr.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&_s.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&dr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(dr.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),u=0,c=a;u<c;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var i=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);Gi.with($_e(Gi.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var u=function(){return t._exporter.export(a,function(A){var Q;clearTimeout(i),A.code===NC.SUCCESS?r():n((Q=A.error)!==null&&Q!==void 0?Q:new Error("BatchSpanProcessor: span export failed"))})},c=null,v=0,_=a.length;v<_;v++){var S=a[v];S.resource.asyncAttributesPending&&S.resource.waitForAsyncAttributes&&(c??(c=[]),c.push(S.resource.waitForAsyncAttributes()))}c===null?u():Promise.all(c).then(u,function(A){oT(A),n(A)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){t._isExporting=!1,oT(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),REe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),PEe=function(e){REe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.onInit(n),i}return t.prototype.onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(bEe),ll;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ll||(ll={}));var CEe=function(){function e(t){t===void 0&&(t={});var r;this._registeredSpanProcessors=[],this._tracers=new Map;var n=T_e({},qG(),pEe(t));this.resource=(r=n.resource)!==null&&r!==void 0?r:jg.empty(),this.resource=jg.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var i=this._buildExporterFromEnv();if(i!==void 0){var a=new PEe(i);this.activeSpanProcessor=a}else this.activeSpanProcessor=new TEe}return e.prototype.getTracer=function(t,r,n){var i=t+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new EEe({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return dr.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new gEe(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),zi.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&Gi.setGlobalContextManager(t.contextManager),t.propagator&&Js.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var a,u=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),a=ll.timeout},t);n.forceFlush().then(function(){clearTimeout(u),a!==ll.timeout&&(a=ll.resolved,i(a))}).catch(function(c){clearTimeout(u),a=ll.error,i(c)})})});return new Promise(function(n,i){Promise.all(r).then(function(a){var u=a.filter(function(c){return c!==ll.resolved});u.length>0?i(u):n()}).catch(function(a){return i([a])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return(r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return(r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(Ua().OTEL_PROPAGATORS)),n=r.map(function(a){var u=t._getPropagator(a);return u||dr.warn('Propagator "'+a+'" requested through environment variable is unavailable.'),u}),i=n.reduce(function(a,u){return u&&a.push(u),a},[]);if(i.length!==0)return r.length===1?i[0]:new F_e({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=Ua().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||dr.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new rde}],["baggage",function(){return new lde}]]),e._registeredExporters=new Map,e}(),MEe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},NEe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(S){return v([_,S])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(S){_=[6,S],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};function IEe(e,t,r){var n,i;try{i=e()}catch(a){n=a}finally{if(t(n,i),n&&!r)throw n;return i}}function VBe(e,t,r){return MEe(this,void 0,void 0,function(){var n,i,a;return NEe(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,3,4]),[4,e()];case 1:return i=u.sent(),[3,4];case 2:return a=u.sent(),n=a,[3,4];case 3:if(t(n,i),n&&!r)throw n;return[2,i];case 4:return[2]}})})}function LEe(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var fl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),DEe=function(){function e(){}return e.prototype.createGauge=function(t,r){return kEe},e.prototype.createHistogram=function(t,r){return jEe},e.prototype.createCounter=function(t,r){return BEe},e.prototype.createUpDownCounter=function(t,r){return HEe},e.prototype.createObservableGauge=function(t,r){return qEe},e.prototype.createObservableCounter=function(t,r){return YEe},e.prototype.createObservableUpDownCounter=function(t,r){return WEe},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),cT=function(){function e(){}return e}(),wEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(cT),UEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(cT),xEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(cT),VEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(cT),IC=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),FEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IC),$Ee=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IC),GEe=function(e){fl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(IC),zG=new DEe,BEe=new wEe,kEe=new xEe,jEe=new VEe,HEe=new UEe,YEe=new FEe,qEe=new $Ee,WEe=new GEe;function FBe(){return zG}var KEe=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return zG},e}(),QEe=new KEe,LC="metrics",zEe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Wp(LC,t,fs.instance())},e.prototype.getMeterProvider=function(){return nl(LC)||QEe},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){Kp(LC,fs.instance())},e}(),XEe=zEe.getInstance(),JEe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof g.g=="object"?g.g:{},lT=Symbol.for("io.opentelemetry.js.api.logs"),oh=JEe;function ZEe(e,t,r){return function(n){return n===e?t:r}}var XG=1,ege=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new k$},e}(),JG=new ege,tge=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return oh[lT]?this.getLoggerProvider():(oh[lT]=ZEe(XG,t,JG),t)},e.prototype.getLoggerProvider=function(){var t,r;return(r=(t=oh[lT])===null||t===void 0?void 0:t.call(oh,XG))!==null&&r!==void 0?r:JG},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete oh[lT]},e}(),rge=tge.getInstance(),fT=g(8821),DC=function(){return DC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},DC.apply(this,arguments)},nge=function(){function e(t,r,n){n===void 0&&(n={}),this.instrumentationName=t,this.instrumentationVersion=r,this._wrap=fT.wrap,this._unwrap=fT.unwrap,this._massWrap=fT.massWrap,this._massUnwrap=fT.massUnwrap,this._config=DC({enabled:!0},n),this._diag=dr.createComponentLogger({namespace:t}),this._tracer=zi.getTracer(t,r),this._meter=XEe.getMeter(t,r),this._logger=rge.getLogger(t,r),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,r=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(r)?r:[r]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){t===void 0&&(t={}),this._config=Object.assign({},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e}(),ige=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),age=function(e){ige(t,e);function t(r,n,i){i===void 0&&(i={});var a=e.call(this,r,n,i)||this;return a._config.enabled&&a.enable(),a}return t}(nge),oge=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function ZG(e,t){return typeof t=="string"?e===t:!!e.match(t)}function sge(e,t){var r,n;if(!t)return!1;try{for(var i=oge(t),a=i.next();!a.done;a=i.next()){var u=a.value;if(ZG(e,u))return!0}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}var Mn;(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.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(Mn||(Mn={}));function ro(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var uge="aws.lambda.invoked_arn",cge="db.system",lge="db.connection_string",fge="db.user",_ge="db.jdbc.driver_classname",dge="db.name",pge="db.statement",hge="db.operation",vge="db.mssql.instance_name",Sge="db.cassandra.keyspace",Ege="db.cassandra.page_size",gge="db.cassandra.consistency_level",Tge="db.cassandra.table",mge="db.cassandra.idempotence",Age="db.cassandra.speculative_execution_count",yge="db.cassandra.coordinator.id",Oge="db.cassandra.coordinator.dc",bge="db.hbase.namespace",Rge="db.redis.database_index",Pge="db.mongodb.collection",Cge="db.sql.table",Mge="exception.type",Nge="exception.message",Ige="exception.stacktrace",Lge="exception.escaped",Dge="faas.trigger",wge="faas.execution",Uge="faas.document.collection",xge="faas.document.operation",Vge="faas.document.time",Fge="faas.document.name",$ge="faas.time",Gge="faas.cron",Bge="faas.coldstart",kge="faas.invoked_name",jge="faas.invoked_provider",Hge="faas.invoked_region",Yge="net.transport",qge="net.peer.ip",Wge="net.peer.port",Kge="net.peer.name",Qge="net.host.ip",zge="net.host.port",Xge="net.host.name",Jge="net.host.connection.type",Zge="net.host.connection.subtype",eTe="net.host.carrier.name",tTe="net.host.carrier.mcc",rTe="net.host.carrier.mnc",nTe="net.host.carrier.icc",iTe="peer.service",aTe="enduser.id",oTe="enduser.role",sTe="enduser.scope",uTe="thread.id",cTe="thread.name",lTe="code.function",fTe="code.namespace",_Te="code.filepath",dTe="code.lineno",pTe="http.method",hTe="http.url",vTe="http.target",STe="http.host",ETe="http.scheme",gTe="http.status_code",TTe="http.flavor",mTe="http.user_agent",ATe="http.request_content_length",yTe="http.request_content_length_uncompressed",OTe="http.response_content_length",bTe="http.response_content_length_uncompressed",RTe="http.server_name",PTe="http.route",CTe="http.client_ip",MTe="aws.dynamodb.table_names",NTe="aws.dynamodb.consumed_capacity",ITe="aws.dynamodb.item_collection_metrics",LTe="aws.dynamodb.provisioned_read_capacity",DTe="aws.dynamodb.provisioned_write_capacity",wTe="aws.dynamodb.consistent_read",UTe="aws.dynamodb.projection",xTe="aws.dynamodb.limit",VTe="aws.dynamodb.attributes_to_get",FTe="aws.dynamodb.index_name",$Te="aws.dynamodb.select",GTe="aws.dynamodb.global_secondary_indexes",BTe="aws.dynamodb.local_secondary_indexes",kTe="aws.dynamodb.exclusive_start_table",jTe="aws.dynamodb.table_count",HTe="aws.dynamodb.scan_forward",YTe="aws.dynamodb.segment",qTe="aws.dynamodb.total_segments",WTe="aws.dynamodb.count",KTe="aws.dynamodb.scanned_count",QTe="aws.dynamodb.attribute_definitions",zTe="aws.dynamodb.global_secondary_index_updates",XTe="messaging.system",JTe="messaging.destination",ZTe="messaging.destination_kind",eme="messaging.temp_destination",tme="messaging.protocol",rme="messaging.protocol_version",nme="messaging.url",ime="messaging.message_id",ame="messaging.conversation_id",ome="messaging.message_payload_size_bytes",sme="messaging.message_payload_compressed_size_bytes",ume="messaging.operation",cme="messaging.consumer_id",lme="messaging.rabbitmq.routing_key",fme="messaging.kafka.message_key",_me="messaging.kafka.consumer_group",dme="messaging.kafka.client_id",pme="messaging.kafka.partition",hme="messaging.kafka.tombstone",vme="rpc.system",Sme="rpc.service",Eme="rpc.method",gme="rpc.grpc.status_code",Tme="rpc.jsonrpc.version",mme="rpc.jsonrpc.request_id",Ame="rpc.jsonrpc.error_code",yme="rpc.jsonrpc.error_message",Ome="message.type",bme="message.id",Rme="message.compressed_size",Pme="message.uncompressed_size",$Be=null,GBe=null,BBe=null,kBe=null,jBe=null,HBe=null,YBe=null,qBe=null,WBe=null,KBe=null,QBe=null,zBe=null,XBe=null,JBe=null,ZBe=null,eke=null,tke=null,rke=null,nke=null,ike=null,ake=null,oke=null,ske=null,uke=null,cke=null,lke=null,fke=null,_ke=null,dke=null,pke=null,hke=null,vke=null,Ske=null,Eke=null,gke=null,Tke=null,mke=null,Ake=null,yke=null,Oke=null,bke=null,Rke=null,Pke=null,Cke=null,Mke=null,Nke=null,Ike=null,Lke=null,Dke=null,wke=null,Uke=null,xke=null,Vke=null,Fke=null,$ke=null,Gke=null,Bke=null,kke=null,jke=null,Hke=null,Yke=null,qke=null,Wke=null,Kke=null,Qke=null,zke=null,Xke=null,Jke=null,Zke=null,eje=null,tje=null,rje=null,nje=null,ije=null,aje=null,oje=null,sje=null,uje=null,cje=null,lje=null,fje=null,_je=null,dje=null,pje=null,hje=null,vje=null,Sje=null,Eje=null,gje=null,Tje=null,mje=null,Aje=null,yje=null,Oje=null,bje=null,Rje=null,Pje=null,Cje=null,Mje=null,Nje=null,Ije=null,Lje=null,Dje=null,wje=null,Uje=null,xje=null,Vje=null,Fje=null,$je=null,Gje=null,Bje=null,kje=null,jje=null,Hje=null,Yje=null,qje=null,Wje=null,Kje=null,Qje=null,zje=null,Xje=null,Jje=null,Zje=null,eHe=null,tHe=null,rHe=null,nHe=null,iHe=null,Ju=ro([uge,cge,lge,fge,_ge,dge,pge,hge,vge,Sge,Ege,gge,Tge,mge,Age,yge,Oge,bge,Rge,Pge,Cge,Mge,Nge,Ige,Lge,Dge,wge,Uge,xge,Vge,Fge,$ge,Gge,Bge,kge,jge,Hge,Yge,qge,Wge,Kge,Qge,zge,Xge,Jge,Zge,eTe,tTe,rTe,nTe,iTe,aTe,oTe,sTe,uTe,cTe,lTe,fTe,_Te,dTe,pTe,hTe,vTe,STe,ETe,gTe,TTe,mTe,ATe,yTe,OTe,bTe,RTe,PTe,CTe,MTe,NTe,ITe,LTe,DTe,wTe,UTe,xTe,VTe,FTe,$Te,GTe,BTe,kTe,jTe,HTe,YTe,qTe,WTe,KTe,QTe,zTe,XTe,JTe,ZTe,eme,tme,rme,nme,ime,ame,ome,sme,ume,cme,lme,fme,_me,dme,pme,hme,vme,Sme,Eme,gme,Tme,mme,Ame,yme,Ome,bme,Rme,Pme]),Cme="other_sql",Mme="mssql",Nme="mysql",Ime="oracle",Lme="db2",Dme="postgresql",wme="redshift",Ume="hive",xme="cloudscape",Vme="hsqldb",Fme="progress",$me="maxdb",Gme="hanadb",Bme="ingres",kme="firstsql",jme="edb",Hme="cache",Yme="adabas",qme="firebird",Wme="derby",Kme="filemaker",Qme="informix",zme="instantdb",Xme="interbase",Jme="mariadb",Zme="netezza",eAe="pervasive",tAe="pointbase",rAe="sqlite",nAe="sybase",iAe="teradata",aAe="vertica",oAe="h2",sAe="coldfusion",uAe="cassandra",cAe="hbase",lAe="mongodb",fAe="redis",_Ae="couchbase",dAe="couchdb",pAe="cosmosdb",hAe="dynamodb",vAe="neo4j",SAe="geode",EAe="elasticsearch",gAe="memcached",TAe="cockroachdb",aHe=null,oHe=null,sHe=null,uHe=null,cHe=null,lHe=null,fHe=null,_He=null,dHe=null,pHe=null,hHe=null,vHe=null,SHe=null,EHe=null,gHe=null,THe=null,mHe=null,AHe=null,yHe=null,OHe=null,bHe=null,RHe=null,PHe=null,CHe=null,MHe=null,NHe=null,IHe=null,LHe=null,DHe=null,wHe=null,UHe=null,xHe=null,VHe=null,FHe=null,$He=null,GHe=null,BHe=null,kHe=null,jHe=null,HHe=null,YHe=null,qHe=null,WHe=null,KHe=null,QHe=null,zHe=null,XHe=null,JHe=ro([Cme,Mme,Nme,Ime,Lme,Dme,wme,Ume,xme,Vme,Fme,$me,Gme,Bme,kme,jme,Hme,Yme,qme,Wme,Kme,Qme,zme,Xme,Jme,Zme,eAe,tAe,rAe,nAe,iAe,aAe,oAe,sAe,uAe,cAe,lAe,fAe,_Ae,dAe,pAe,hAe,vAe,SAe,EAe,gAe,TAe]),mAe="all",AAe="each_quorum",yAe="quorum",OAe="local_quorum",bAe="one",RAe="two",PAe="three",CAe="local_one",MAe="any",NAe="serial",IAe="local_serial",ZHe=null,eYe=null,tYe=null,rYe=null,nYe=null,iYe=null,aYe=null,oYe=null,sYe=null,uYe=null,cYe=null,lYe=ro([mAe,AAe,yAe,OAe,bAe,RAe,PAe,CAe,MAe,NAe,IAe]),LAe="datasource",DAe="http",wAe="pubsub",UAe="timer",xAe="other",fYe=null,_Ye=null,dYe=null,pYe=null,hYe=null,vYe=ro([LAe,DAe,wAe,UAe,xAe]),VAe="insert",FAe="edit",$Ae="delete",SYe=null,EYe=null,gYe=null,TYe=ro([VAe,FAe,$Ae]),GAe="alibaba_cloud",BAe="aws",kAe="azure",jAe="gcp",mYe=null,AYe=null,yYe=null,OYe=null,bYe=ro([GAe,BAe,kAe,jAe]),HAe="ip_tcp",YAe="ip_udp",qAe="ip",WAe="unix",KAe="pipe",QAe="inproc",zAe="other",RYe=null,PYe=null,CYe=null,MYe=null,NYe=null,IYe=null,LYe=null,DYe=ro([HAe,YAe,qAe,WAe,KAe,QAe,zAe]),XAe="wifi",JAe="wired",ZAe="cell",eye="unavailable",tye="unknown",wYe=null,UYe=null,xYe=null,VYe=null,FYe=null,$Ye=ro([XAe,JAe,ZAe,eye,tye]),rye="gprs",nye="edge",iye="umts",aye="cdma",oye="evdo_0",sye="evdo_a",uye="cdma2000_1xrtt",cye="hsdpa",lye="hsupa",fye="hspa",_ye="iden",dye="evdo_b",pye="lte",hye="ehrpd",vye="hspap",Sye="gsm",Eye="td_scdma",gye="iwlan",Tye="nr",mye="nrnsa",Aye="lte_ca",GYe=null,BYe=null,kYe=null,jYe=null,HYe=null,YYe=null,qYe=null,WYe=null,KYe=null,QYe=null,zYe=null,XYe=null,JYe=null,ZYe=null,e2e=null,t2e=null,r2e=null,n2e=null,i2e=null,a2e=null,o2e=null,s2e=ro([rye,nye,iye,aye,oye,sye,uye,cye,lye,fye,_ye,dye,pye,hye,vye,Sye,Eye,gye,Tye,mye,Aye]),yye="1.0",Oye="1.1",bye="2.0",Rye="SPDY",Pye="QUIC",u2e=null,c2e=null,l2e=null,f2e=null,_2e=null,d2e={HTTP_1_0:yye,HTTP_1_1:Oye,HTTP_2_0:bye,SPDY:Rye,QUIC:Pye},Cye="queue",Mye="topic",p2e=null,h2e=null,v2e=ro([Cye,Mye]),Nye="receive",Iye="process",S2e=null,E2e=null,g2e=ro([Nye,Iye]),Lye=0,Dye=1,wye=2,Uye=3,xye=4,Vye=5,Fye=6,$ye=7,Gye=8,Bye=9,kye=10,jye=11,Hye=12,Yye=13,qye=14,Wye=15,Kye=16,T2e=null,m2e=null,A2e=null,y2e=null,O2e=null,b2e=null,R2e=null,P2e=null,C2e=null,M2e=null,N2e=null,I2e=null,L2e=null,D2e=null,w2e=null,U2e=null,x2e=null,V2e={OK:Lye,CANCELLED:Dye,UNKNOWN:wye,INVALID_ARGUMENT:Uye,DEADLINE_EXCEEDED:xye,NOT_FOUND:Vye,ALREADY_EXISTS:Fye,PERMISSION_DENIED:$ye,RESOURCE_EXHAUSTED:Gye,FAILED_PRECONDITION:Bye,ABORTED:kye,OUT_OF_RANGE:jye,UNIMPLEMENTED:Hye,INTERNAL:Yye,UNAVAILABLE:qye,DATA_LOSS:Wye,UNAUTHENTICATED:Kye},Qye="SENT",zye="RECEIVED",F2e=null,$2e=null,G2e=ro([Qye,zye]),wC;function Xye(){return wC||(wC=document.createElement("a")),wC}function UC(e,t){return t in e}function Zs(e,t,r,n){var i=void 0,a=void 0;UC(r,t)&&typeof r[t]=="number"&&(i=r[t]);var u=n||Mn.FETCH_START;if(UC(r,u)&&typeof r[u]=="number"&&(a=r[u]),i!==void 0&&a!==void 0&&i>=a)return e.addEvent(t,i),e}function eB(e,t){Zs(e,Mn.FETCH_START,t),Zs(e,Mn.DOMAIN_LOOKUP_START,t),Zs(e,Mn.DOMAIN_LOOKUP_END,t),Zs(e,Mn.CONNECT_START,t),UC(t,"name")&&t.name.startsWith("https:")&&Zs(e,Mn.SECURE_CONNECTION_START,t),Zs(e,Mn.CONNECT_END,t),Zs(e,Mn.REQUEST_START,t),Zs(e,Mn.RESPONSE_START,t),Zs(e,Mn.RESPONSE_END,t);var r=t[Mn.ENCODED_BODY_SIZE];r!==void 0&&e.setAttribute(Ju.HTTP_RESPONSE_CONTENT_LENGTH,r);var n=t[Mn.DECODED_BODY_SIZE];n!==void 0&&r!==n&&e.setAttribute(Ju.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,n)}function Jye(e){return e.slice().sort(function(t,r){var n=t[Mn.FETCH_START],i=r[Mn.FETCH_START];return n>i?1:n<i?-1:0})}function tB(){return typeof location<"u"?location.origin:void 0}function Zye(e,t,r,n,i,a){i===void 0&&(i=new WeakSet);var u=sh(e);e=u.toString();var c=tOe(e,t,r,n,i,a);if(c.length===0)return{mainRequest:void 0};if(c.length===1)return{mainRequest:c[0]};var v=Jye(c);if(u.origin!==tB()&&v.length>1){var _=v[0],S=eOe(v,_[Mn.RESPONSE_END],r),A=_[Mn.RESPONSE_END],Q=S[Mn.FETCH_START];return Q<A&&(S=_,_=void 0),{corsPreFlightRequest:_,mainRequest:S}}else return{mainRequest:c[0]}}function eOe(e,t,r){for(var n=zu(r),i=zu(ul(t)),a=e[1],u,c=e.length,v=1;v<c;v++){var _=e[v],S=zu(ul(_[Mn.FETCH_START])),A=zu(ul(_[Mn.RESPONSE_END])),Q=n-A;S>=i&&(!u||Q<u)&&(u=Q,a=_)}return a}function tOe(e,t,r,n,i,a){var u=zu(t),c=zu(r),v=n.filter(function(_){var S=zu(ul(_[Mn.FETCH_START])),A=zu(ul(_[Mn.RESPONSE_END]));return _.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&_.name===e&&S>=u&&A<=c});return v.length>0&&(v=v.filter(function(_){return!i.has(_)})),v}function sh(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=Xye();return t.href=e,t}function B2e(e){var t=sh(e);return t.href}function rOe(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var r=iOe(e,t);if(t&&r.indexOf("@id")>0)return r;var n="";return e.parentNode&&(n+=rOe(e.parentNode,!1)),n+=r,n}function nOe(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var r=Array.from(e.parentNode.childNodes);return r=r.filter(function(n){var i=n.localName;return t.indexOf(n.nodeType)>=0&&i===e.localName}),r.length>=1?r.indexOf(e)+1:0}function iOe(e,t){var r=e.nodeType,n=nOe(e),i="";if(r===Node.ELEMENT_NODE){var a=e.getAttribute("id");if(t&&a)return'//*[@id="'+a+'"]';i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else if(r===Node.COMMENT_NODE)i="comment()";else return"";return i&&n>1?"/"+i+"["+n+"]":"/"+i}function aOe(e,t){var r=t||[];(typeof r=="string"||r instanceof RegExp)&&(r=[r]);var n=sh(e);return n.origin===tB()?!0:r.some(function(i){return ZG(e,i)})}var _T;(function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"})(_T||(_T={}));var rB="0.51.1",oOe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xC,sOe=300,nB=typeof process=="object"&&((xC=process.release)===null||xC===void 0?void 0:xC.name)==="node",uOe=function(e){oOe(t,e);function t(r){var n=e.call(this,"@opentelemetry/instrumentation-fetch",rB,r)||this;return n.component="fetch",n.version=rB,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addChildSpan=function(r,n){var i=this.tracer.startSpan("CORS Preflight",{startTime:n[Mn.FETCH_START]},zi.setSpan(Gi.active(),r));this._getConfig().ignoreNetworkEvents||eB(i,n),i.end(n[Mn.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(r,n){var i=sh(n.url);r.setAttribute(Ju.HTTP_STATUS_CODE,n.status),n.statusText!=null&&r.setAttribute(_T.HTTP_STATUS_TEXT,n.statusText),r.setAttribute(Ju.HTTP_HOST,i.host),r.setAttribute(Ju.HTTP_SCHEME,i.protocol.replace(":","")),typeof navigator<"u"&&r.setAttribute(Ju.HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(r,n){if(!aOe(n,this._getConfig().propagateTraceHeaderCorsUrls)){var i={};Js.inject(Gi.active(),i),Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(r instanceof Request)Js.inject(Gi.active(),r.headers,{set:function(a,u,c){return a.set(u,typeof c=="string"?c:String(c))}});else if(r.headers instanceof Headers)Js.inject(Gi.active(),r.headers,{set:function(a,u,c){return a.set(u,typeof c=="string"?c:String(c))}});else if(r.headers instanceof Map)Js.inject(Gi.active(),r.headers,{set:function(a,u,c){return a.set(u,typeof c=="string"?c:String(c))}});else{var i={};Js.inject(Gi.active(),i),r.headers=Object.assign({},i,r.headers||{})}},t.prototype._clearResources=function(){this._tasksCount===0&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(r,n){var i;if(n===void 0&&(n={}),sge(r,this._getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var a=(n.method||"GET").toUpperCase(),u="HTTP "+a;return this.tracer.startSpan(u,{kind:tT.CLIENT,attributes:(i={},i[_T.COMPONENT]=this.moduleName,i[Ju.HTTP_METHOD]=a,i[Ju.HTTP_URL]=r,i)})},t.prototype._findResourceAndAddNetworkEvents=function(r,n,i){var a=n.entries;if(!a.length){if(!performance.getEntriesByType)return;a=performance.getEntriesByType("resource")}var u=Zye(n.spanUrl,n.startTime,i,a,this._usedResources,"fetch");if(u.mainRequest){var c=u.mainRequest;this._markResourceAsUsed(c);var v=u.corsPreFlightRequest;v&&(this._addChildSpan(r,v),this._markResourceAsUsed(v)),this._getConfig().ignoreNetworkEvents||eB(r,c)}},t.prototype._markResourceAsUsed=function(r){this._usedResources.add(r)},t.prototype._endSpan=function(r,n,i){var a=this,u=nh(Date.now()),c=sC();this._addFinalSpanAttributes(r,i),setTimeout(function(){var v;(v=n.observer)===null||v===void 0||v.disconnect(),a._findResourceAndAddNetworkEvents(r,n,c),a._tasksCount--,a._clearResources(),r.end(u)},sOe)},t.prototype._patchConstructor=function(){var r=this;return function(n){var i=r;return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var v=this,_=sh(u[0]instanceof Request?u[0].url:String(u[0])).href,S=u[0]instanceof Request?u[0]:u[1]||{},A=i._createSpan(_,S);if(!A)return n.apply(this,u);var Q=i._prepareSpanData(_);function le(Me,Re){i._applyAttributesAfterFetch(Me,S,Re),i._endSpan(Me,Q,{status:Re.status||0,statusText:Re.message,url:_})}function pe(Me,Re){i._applyAttributesAfterFetch(Me,S,Re),Re.status>=200&&Re.status<400?i._endSpan(Me,Q,Re):i._endSpan(Me,Q,{status:Re.status,statusText:Re.statusText,url:_})}function me(Me,Re,nt){try{var ht=nt.clone(),Vt=nt.clone(),ir=ht.body;if(ir){var wr=ir.getReader(),en=function(){wr.read().then(function(qn){var wo=qn.done;wo?pe(Me,Vt):en()},function(qn){le(Me,qn)})};en()}else pe(Me,nt)}finally{Re(nt)}}function Ge(Me,Re,nt){try{le(Me,nt)}finally{Re(nt)}}return new Promise(function(Me,Re){return Gi.with(zi.setSpan(Gi.active(),A),function(){return i._addHeaders(S,_),i._tasksCount++,n.apply(v,S instanceof Request?[S]:[_,S]).then(me.bind(v,A,Me),Ge.bind(v,A,Re))})})}}},t.prototype._applyAttributesAfterFetch=function(r,n,i){var a=this,u=this._getConfig().applyCustomAttributesOnSpan;u&&IEe(function(){return u(r,n,i)},function(c){!c||a._diag.error("applyCustomAttributesOnSpan",c)},!0)},t.prototype._prepareSpanData=function(r){var n=sC(),i=[];if(typeof PerformanceObserver!="function")return{entries:i,startTime:n,spanUrl:r};var a=new PerformanceObserver(function(u){var c=u.getEntries();c.forEach(function(v){v.initiatorType==="fetch"&&v.name===r&&i.push(v)})});return a.observe({entryTypes:["resource"]}),{entries:i,observer:a,startTime:n,spanUrl:r}},t.prototype.enable=function(){if(nB){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}LEe(fetch)&&(this._unwrap(ih,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(ih,"fetch",this._patchConstructor())},t.prototype.disable=function(){nB||(this._unwrap(ih,"fetch"),this._usedResources=new WeakSet)},t}(age);const iB="https?://api-gateway.[a-zA-Z]+.icanbwell.com",cOe=`${iB}/.+`,aB=new RegExp(`^(?!${iB})`),lOe=new RegExp(cOe);function k2e(e){return aB.test(e)}function fOe(){return N7({node:()=>null,browser:()=>new uOe({ignoreUrls:[aB],propagateTraceHeaderCorsUrls:lOe})})}var ps=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},VC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},a_,o_,uh,dT,oB,sB,uB,cB;class _Oe{constructor(t){a_.add(this),o_.set(this,void 0),uh.set(this,void 0),dT.set(this,void 0),VC(this,o_,ps(this,a_,"m",oB).call(this,t),"f"),VC(this,uh,ps(this,a_,"m",sB).call(this),"f"),VC(this,dT,ps(this,a_,"m",uB).call(this,t),"f"),this.fetchInstrumentation=ps(this,a_,"m",cB).call(this)}loggerProvider(){return ps(this,dT,"f")}resource(){return ps(this,o_,"f")}tracerProvider(){return ps(this,uh,"f")}}o_=new WeakMap,uh=new WeakMap,dT=new WeakMap,a_=new WeakSet,oB=function(t){var r,n,i,a;return jg.default().merge(new jg({[G$]:"bwell-sdk-typescript",[$ie]:F7(),[kg]:"typescript",[Fie]:"com.bwell",[xie]:t.context.env,"client.key":t.context.clientKey,"user.id":(n=(r=t.context.user)===null||r===void 0?void 0:r.clientFhirPersonId)!==null&&n!==void 0?n:"","user.bwell-person-id":(a=(i=t.context.user)===null||i===void 0?void 0:i.bwellFhirPersonId)!==null&&a!==void 0?a:""}))},sB=function(){const t=new CEe({resource:ps(this,o_,"f")});return t.register({propagator:new Bte}),t},uB=function(t){const r=new xfe({resource:ps(this,o_,"f")}),n=new vne({url:`${t.telemetry.collectorUrl}/otlp-http/v1/logs`}),i=new qfe(n);return r.addLogRecordProcessor(i),r},cB=function(){const t=fOe();return t===null?null:(t.setTracerProvider(ps(this,uh,"f")),t)};var s_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},FC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Xi=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ch,Zu,pT,lh,Io,$C,lB,fB,_B;class dB{constructor(t,r,n,i){ch.add(this),pT.set(this,void 0),lh.set(this,void 0),Io.set(this,void 0),FC(this,pT,r,"f"),FC(this,lh,n.getLogger("TokenManager"),"f"),FC(this,Io,i,"f")}static initialize(t,r){return s_(this,arguments,void 0,function*(n,i,a=new wa,u=new _F){const c=Xi(Zu,Zu,"m",$C).call(Zu,n.accessToken);if(c.failure())return c.intoFailure();const v=new Zu(Object.assign(Object.assign({},n),{expiration:c.data()}),i,a,u);try{yield Promise.all([u.set("idToken",n.idToken),u.set("clientKey",n.clientKey),u.set("accessToken",n.accessToken),u.set("refreshToken",n.refreshToken),u.set("expiration",c.data().toISOString())])}catch{return vr.failure(new Qc("Failed to set tokens in token storage"))}return vr.success(v)})}getAccessToken(){return s_(this,void 0,void 0,function*(){if(yield Xi(this,ch,"m",fB).call(this)){const n=yield Xi(this,ch,"m",_B).call(this);if(n.failure())return n.intoFailure()}const r=yield Xi(this,Io,"f").get("accessToken");return La(r)?vr.failure(new Qc("accessToken not found in token storage")):vr.success(r)})}getIdToken(){return s_(this,void 0,void 0,function*(){return yield Xi(this,Io,"f").get("idToken")})}}Zu=dB,pT=new WeakMap,lh=new WeakMap,Io=new WeakMap,ch=new WeakSet,$C=function(t){try{const r=D7(t);return vr.success(new Date(r))}catch(r){if(!Vi.isBwellError(r))throw r;return vr.failure(r)}},lB=function(){return s_(this,void 0,void 0,function*(){const t=yield Xi(this,Io,"f").get("expiration");if(La(t))throw new Error("expiration not found in token storage");return new Date(t)})},fB=function(){return s_(this,void 0,void 0,function*(){const r=(yield Xi(this,ch,"m",lB).call(this)).getTime(),n=Date.now();return r<n})},_B=function(){return s_(this,void 0,void 0,function*(){Xi(this,lh,"f").verbose("refreshing access token...");const[t,r]=yield Promise.all([Xi(this,Io,"f").get("refreshToken"),Xi(this,Io,"f").get("clientKey")]);if(La(t)||La(r))return vr.failure(new Qc("refreshToken or clientKey not found in token storage"));const n=yield Xi(this,pT,"f").refreshAccessToken({refreshToken:t,clientKey:r});if(Xi(this,lh,"f").verbose("refreshing access token complete"),n.failure())return n.intoFailure();const i=n.data();yield Xi(this,Io,"f").set("accessToken",i.accessToken),yield Xi(this,Io,"f").set("idToken",i.idToken);const a=Xi(Zu,Zu,"m",$C).call(Zu,i.accessToken);return a.failure()?a.intoFailure():(yield Xi(this,Io,"f").set("expiration",a.data().toISOString()),vr.success(null))})};var pB=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(S){try{_(n.next(S))}catch(A){u(A)}}function v(S){try{_(n.throw(S))}catch(A){u(A)}}function _(S){S.done?a(S.value):i(S.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},xa=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},fr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ji,fh,no,_h,GC,BC,kC,jC,hs,dh,_l,u_,hT,vT,ec,HC,YC,qC,hB;class dOe{constructor(t){Ji.add(this),fh.set(this,void 0),no.set(this,void 0),_h.set(this,void 0),GC.set(this,new B9),BC.set(this,new Fee),kC.set(this,new Gee),jC.set(this,new Hee),hs.set(this,void 0),dh.set(this,void 0),_l.set(this,void 0),u_.set(this,void 0),hT.set(this,void 0),vT.set(this,void 0),xa(this,fh,t,"f"),xa(this,no,mg.initialize(fr(this,fh,"f")).data(),"f"),xa(this,_h,fr(this,Ji,"m",qC).call(this),"f"),xa(this,hs,fr(this,Ji,"m",YC).call(this),"f"),xa(this,_l,fr(this,hs,"f").getLogger("BWellSDK"),"f"),xa(this,u_,fr(this,kC,"f").createIdentityManager(fr(this,no,"f"),fr(this,hs,"f")),"f"),xa(this,hT,new j9(fr(this,u_,"f")),"f")}initialize(){return pB(this,void 0,void 0,function*(){fr(this,_l,"f").verbose("initializing SDKConfig...");const t=yield fr(this,hT,"f").initialize(fr(this,fh,"f"));return t.failure()?t.intoFailure():(fr(this,_l,"f").verbose("SDK Config initialized successfully"),xa(this,no,t.data(),"f"),fr(this,Ji,"m",HC).call(this),vr.success(null))})}authenticate(t){return pB(this,void 0,void 0,function*(){const n=yield fr(this,jC,"f").createAuthStrategy(fr(this,no,"f"),fr(this,u_,"f"),fr(this,hs,"f")).authenticate(t);if(n.failure())return n.intoFailure();const i=n.data();try{const c=x7(i.idToken);fr(this,no,"f").setContextUser(c)}catch(c){if(Vi.isBwellError(c))return vr.failure(c);throw c}const a=Object.assign(Object.assign({},i),{clientKey:fr(this,no,"f").context.clientKey}),u=yield dB.initialize(a,fr(this,u_,"f"),fr(this,hs,"f"));return u.failure()?u.intoFailure():(xa(this,vT,u.data(),"f"),fr(this,Ji,"m",HC).call(this),xa(this,dh,fr(this,Ji,"m",hB).call(this,fr(this,vT,"f")),"f"),vr.success(null))})}get health(){return fr(this,Ji,"m",ec).call(this).health}get user(){return fr(this,Ji,"m",ec).call(this).user}get connection(){return fr(this,Ji,"m",ec).call(this).connection}get activity(){return fr(this,Ji,"m",ec).call(this).activity}get device(){return fr(this,Ji,"m",ec).call(this).device}get event(){return fr(this,Ji,"m",ec).call(this).event}get search(){return fr(this,Ji,"m",ec).call(this).search}}fh=new WeakMap,no=new WeakMap,_h=new WeakMap,GC=new WeakMap,BC=new WeakMap,kC=new WeakMap,jC=new WeakMap,hs=new WeakMap,dh=new WeakMap,_l=new WeakMap,u_=new WeakMap,hT=new WeakMap,vT=new WeakMap,Ji=new WeakSet,ec=function(){if(fr(this,dh,"f")===void 0)throw new Error("Unintialized");return fr(this,dh,"f")},HC=function(){fr(this,_l,"f").verbose("reinitializing SDK dependencies"),xa(this,_h,fr(this,Ji,"m",qC).call(this),"f"),xa(this,hs,fr(this,Ji,"m",YC).call(this),"f"),xa(this,_l,fr(this,hs,"f").getLogger("BwellSDK"),"f")},YC=function(){return fr(this,GC,"f").createLogProvider(fr(this,no,"f"),fr(this,_h,"f"))},qC=function(){if(!!fr(this,no,"f").telemetry.enabled)return new _Oe(fr(this,no,"f"))},hB=function(t){return fr(this,BC,"f").createApiProvider(fr(this,no,"f"),t,fr(this,hs,"f"))};const vB="orchestrator:bwell-sdk";var ST;(function(e){e.one="1.0.0"})(ST||(ST={}));const pOe={id:vB,dependencies:{featureServices:{[Fn]:bn.one}},create:({featureServices:e})=>{const t=e[Fn],{key:r}=t.getClientContext(),n=new dOe({clientKey:r});return{[ST.one]:()=>({featureService:n})}}},WC={apiClient:p,theme:$,analytics:ee,auth:ce,logging:M,state:O,navigation:N,featureFlags:Y,translation:L,identityUtils:P,nativeBridge:j,globalEventEmitter:W,rebootController:F,bwellSdk:ie},j2e=Object.keys(WC).reduce((e,t)=>{const{id:r,version:n}=WC[t];return Object.assign(Object.assign({},e),{[t]:{id:r,version:n}})},{});var Xt=WC,hOe=g(8561),vOe=g(295),SB=g.n(vOe),SOe=g(2424),EB=g.n(SOe);class EOe{constructor(t){this.providedExternals=t;for(const[r,n]of Object.entries(t))if(!EB()(n))throw new Error(`The provided version ${JSON.stringify(n)} for the external ${JSON.stringify(r)} is invalid.`)}validate(t){for(const[r,n]of Object.entries(t)){const i=this.providedExternals[r];if(!i)throw new Error(`The external dependency ${JSON.stringify(r)} is not provided.`);if(!SB()(i,n))throw new Error(`The external dependency ${JSON.stringify(r)} in the required version range ${JSON.stringify(n)} is not satisfied. The provided version is ${JSON.stringify(i)}.`)}}}class gOe{constructor(t,r,n){this.promise=t,this.value=r,this.error=n,t.then(i=>this.value=i).catch(i=>this.error=i)}}function TOe(e,t,r){let n=`The Feature App module at the url ${JSON.stringify(e)} ${t?`with the module type ${JSON.stringify(t)}`:"with no specific module type"} is invalid. A Feature App module must have a Feature App definition as default export. A Feature App definition is an object with at least a \`create\` method.`;return r&&r.length>1&&!t&&(n+=" Hint: The provided module loader expects an optional second parameter `moduleType`. It might need to be provided for this Feature App."),n}function mOe(e){return typeof e!="object"||!e?!1:typeof e.create=="function"}function AOe(e){return typeof e!="object"||!e?!1:mOe(e.default)}class yOe{constructor(t,r={}){this.featureServiceRegistry=t,this.options=r,this.asyncFeatureAppDefinitions=new Map,this.featureAppDefinitionsWithRegisteredOwnFeatureServices=new WeakSet,this.featureAppRetainers=new Map,this.logger=r.logger||console}getAsyncFeatureAppDefinition(t,r){const n=`${t}${r}`;let i=this.asyncFeatureAppDefinitions.get(n);return i||(i=this.createAsyncFeatureAppDefinition(t,r),this.asyncFeatureAppDefinitions.set(n,i)),i}createFeatureAppScope(t,r,n={}){const i=this.getFeatureAppRetainer(t,r,n);let a=!1;return{featureApp:i.featureApp,release:()=>{a?this.logger.warn(`The Feature App with the ID ${JSON.stringify(t)} has already been released for this scope.`):(a=!0,i.release())}}}async preloadFeatureApp(t,r){await this.getAsyncFeatureAppDefinition(t,r).promise}createAsyncFeatureAppDefinition(t,r){const{moduleLoader:n}=this.options;if(!n)throw new Error("No module loader provided.");return new gOe(n(t,r).then(i=>{if(!AOe(i))throw new Error(TOe(t,r,this.options.moduleLoader));return this.logger.info(`The Feature App module at the url ${JSON.stringify(t)} has been successfully loaded.`),i.default}))}registerOwnFeatureServices(t,r){this.featureAppDefinitionsWithRegisteredOwnFeatureServices.has(r)||(r.ownFeatureServiceDefinitions&&this.featureServiceRegistry.registerFeatureServices(r.ownFeatureServiceDefinitions,t),this.featureAppDefinitionsWithRegisteredOwnFeatureServices.add(r))}getFeatureAppRetainer(t,r,n){let i=this.featureAppRetainers.get(t);return i?i.retain():(this.registerOwnFeatureServices(t,r),i=this.createFeatureAppRetainer(r,t,n)),i}createFeatureAppRetainer(t,r,n){var i,a;this.validateExternals(t);const{featureAppName:u,baseUrl:c,beforeCreate:v,config:_,done:S}=n,A=this.featureServiceRegistry.bindFeatureServices(t,r,u);try{(a=(i=this.options).onBind)===null||a===void 0||a.call(i,{featureAppDefinition:t,featureAppId:r,featureAppName:u})}catch(le){this.logger.error("Failed to execute onBind callback.",le)}const Q={baseUrl:c,config:_,featureAppId:r,featureAppName:u,featureServices:A.featureServices,done:S};try{v?.(Q);const le=t.create(Q);this.logger.info(`The Feature App with the ID ${JSON.stringify(r)} has been successfully created.`);let pe=1;const me={featureApp:le,retain:()=>{pe+=1},release:()=>{pe-=1,pe===0&&(this.featureAppRetainers.delete(r),A.unbind())}};return this.featureAppRetainers.set(r,me),me}catch(le){throw A.unbind(),le}}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}}var OOe=g(5725),bOe=g.n(OOe);function ROe(e,t,r,n,i){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in the unsupported version range ${JSON.stringify(n)} could not be bound to consumer ${JSON.stringify(r)}. The supported versions are ${JSON.stringify(i)}.`}function POe(e,t,r){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it defines the invalid version ${JSON.stringify(r)}.`}function COe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in an invalid version could not be bound to consumer ${JSON.stringify(r)}.`}function MOe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} is not registered and therefore could not be bound to consumer ${JSON.stringify(r)}.`}function NOe(e,t){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it returned undefined.`}function IOe(e,t){return`The Feature Service ${JSON.stringify(e)} has been successfully registered by registrant ${JSON.stringify(t)}.`}function LOe(e,t){return`The already registered Feature Service ${JSON.stringify(e)} could not be re-registered by registrant ${JSON.stringify(t)}.`}function DOe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully bound to consumer ${JSON.stringify(t)}.`}function wOe(e){return`All required Feature Services are already bound to consumer ${JSON.stringify(e)}.`}function UOe(e,t){return`The required Feature Service ${JSON.stringify(e)} could not be unbound from consumer ${JSON.stringify(t)}.`}function xOe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully unbound from consumer ${JSON.stringify(t)}.`}function VOe(e){return`All required Feature Services are already unbound from consumer ${JSON.stringify(e)}.`}var FOe=g(2702),$Oe=g.n(FOe);function GOe(e){return t=>[e,t]}function BOe(e,t){return Object.keys(t).map(GOe(e))}function kOe(e){return Array.from(e.keys()).reduce((t,r)=>{const n=e.get(r);if(!n)return t;const i=BOe(r,n);return[...t,...i]},[])}function jOe(e){const t=Array.from(e.keys()),r=kOe(e),n=$Oe()(r);return n.push(...t.filter(i=>e.has(i)&&n.indexOf(i)===-1)),n.reverse()}function gB({dependencies:e,optionalDependencies:t}){return Object.assign(Object.assign({},e&&e.featureServices),t&&t.featureServices)}function HOe(e){const t=new Map;for(const r of e)t.set(r.id,gB(r));return t}function YOe({optionalDependencies:e},t){return Boolean(e&&e.featureServices&&e.featureServices.hasOwnProperty(t))}function qOe(e){const t=new Map;for(const r of e)t.set(r.id,r);return t}class WOe{constructor(t={}){this.options=t,this.sharedFeatureServices=new Map,this.consumerIds=new Set,this.logger=t.logger||console}registerFeatureServices(t,r){const n=qOe(t),i=HOe(t);for(const a of jOe(i))this.registerFeatureService(n,a,r)}bindFeatureServices(t,r,n){if(this.consumerIds.has(r))throw new Error(wOe(r));const i=new Map,a=Object.create(null),u=gB(t);for(const _ of Object.keys(u)){const S=YOe(t,_),A=u[_],Q=this.bindFeatureService(_,r,n,A,{optional:S});!Q||(this.logger.info(DOe(_,r)),i.set(_,Q),a[_]=Q.featureService)}this.consumerIds.add(r);let c=!1;return{featureServices:a,unbind:()=>{if(c)throw new Error(VOe(r));c=!0,this.consumerIds.delete(r);for(const[_,S]of i.entries())try{S.unbind&&S.unbind(),this.logger.info(xOe(_,r))}catch(A){this.logger.error(UOe(_,r),A)}}}}registerFeatureService(t,r,n){const i=t.get(r);if(!i)return;if(this.sharedFeatureServices.has(r)){this.logger.warn(LOe(r,n));return}this.validateExternals(i);const{featureServices:a}=this.bindFeatureServices(i,r),u=i.create({featureServices:a});u?(this.validateFeatureServiceVersions(u,r,n),this.sharedFeatureServices.set(r,u),this.logger.info(IOe(r,n))):this.logger.info(NOe(r,n))}bindFeatureService(t,r,n,i,{optional:a}){const u=i&&bOe()(i);if(!u){const Q=COe(a,t,r);if(a){this.logger.info(Q);return}throw new Error(Q)}const c=`^${u.version}`,v=this.sharedFeatureServices.get(t);if(!v){const Q=MOe(a,t,r);if(a){this.logger.info(Q);return}throw new Error(Q)}const _=Object.keys(v),S=_.find(Q=>SB()(Q,c)),A=S?v[S]:void 0;if(!A){const Q=ROe(a,t,r,c,_);if(a){this.logger.info(Q);return}throw new Error(Q)}return A(r,n)}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}validateFeatureServiceVersions(t,r,n){for(const i of Object.keys(t))if(!EB()(i))throw new Error(POe(r,n,i))}}function TB(e,t={}){const{featureServiceDefinitions:r,featureServiceDependencies:n,providedExternals:i,moduleLoader:a,logger:u,onBind:c}=t;let v;i&&(v=new EOe(i));const _=new WOe({externalsValidator:v,logger:u}),S={dependencies:{featureServices:n}};r&&_.registerFeatureServices(r,e);const A=new yOe(_,{externalsValidator:v,moduleLoader:a,logger:u,onBind:c}),{featureServices:Q}=_.bindFeatureServices(S,e);return{featureAppManager:A,featureServiceRegistry:_,featureServices:Q}}/**
6810
6810
  * @license
6811
6811
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6812
6812
  * This code may only be used under the BSD style license found at
@@ -6818,7 +6818,7 @@ ${eo}`,nee=`
6818
6818
  * Code distributed by Google as part of the polymer project is also
6819
6819
  * subject to an additional IP rights grant found at
6820
6820
  * http://polymer.github.io/PATENTS.txt
6821
- */const mB=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,j2e=(e,t,r=null,n=null)=>{for(;t!==r;){const i=t.nextSibling;e.insertBefore(t,n),t=i}},KC=(e,t,r=null)=>{for(;t!==r;){const n=t.nextSibling;e.removeChild(t),t=n}};/**
6821
+ */const mB=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,H2e=(e,t,r=null,n=null)=>{for(;t!==r;){const i=t.nextSibling;e.insertBefore(t,n),t=i}},KC=(e,t,r=null)=>{for(;t!==r;){const n=t.nextSibling;e.removeChild(t),t=n}};/**
6822
6822
  * @license
6823
6823
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6824
6824
  * This code may only be used under the BSD style license found at
@@ -6890,7 +6890,7 @@ ${eo}`,nee=`
6890
6890
  * Code distributed by Google as part of the polymer project is also
6891
6891
  * subject to an additional IP rights grant found at
6892
6892
  * http://polymer.github.io/PATENTS.txt
6893
- */const IB=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),zOe=` ${eu} `;class LB{constructor(t,r,n,i){this.strings=t,this.values=r,this.type=n,this.processor=i}getHTML(){const t=this.strings.length-1;let r="",n=!1;for(let i=0;i<t;i++){const a=this.strings[i],u=a.lastIndexOf("<!--");n=(u>-1||n)&&a.indexOf("-->",u+1)===-1;const c=QC.exec(a);c===null?r+=a+(n?zOe:AB):r+=a.substr(0,c.index)+c[1]+c[2]+ph+c[3]+eu}return r+=this.strings[t],r}getTemplateElement(){const t=document.createElement("template");let r=this.getHTML();return IB!==void 0&&(r=IB.createHTML(r)),t.innerHTML=r,t}}class H2e extends null{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),r=t.content,n=r.firstChild;return r.removeChild(n),reparentNodes(r,n.firstChild),t}}/**
6893
+ */const IB=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),zOe=` ${eu} `;class LB{constructor(t,r,n,i){this.strings=t,this.values=r,this.type=n,this.processor=i}getHTML(){const t=this.strings.length-1;let r="",n=!1;for(let i=0;i<t;i++){const a=this.strings[i],u=a.lastIndexOf("<!--");n=(u>-1||n)&&a.indexOf("-->",u+1)===-1;const c=QC.exec(a);c===null?r+=a+(n?zOe:AB):r+=a.substr(0,c.index)+c[1]+c[2]+ph+c[3]+eu}return r+=this.strings[t],r}getTemplateElement(){const t=document.createElement("template");let r=this.getHTML();return IB!==void 0&&(r=IB.createHTML(r)),t.innerHTML=r,t}}class Y2e extends null{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),r=t.content,n=r.firstChild;return r.removeChild(n),reparentNodes(r,n.firstChild),t}}/**
6894
6894
  * @license
6895
6895
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6896
6896
  * This code may only be used under the BSD style license found at
@@ -6950,7 +6950,7 @@ ${eo}`,nee=`
6950
6950
  * Code distributed by Google as part of the polymer project is also
6951
6951
  * subject to an additional IP rights grant found at
6952
6952
  * http://polymer.github.io/PATENTS.txt
6953
- */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const l_=(e,...t)=>new LB(e,t,"html",abe),Y2e=(e,...t)=>new SVGTemplateResult(e,t,"svg",defaultTemplateProcessor);/**
6953
+ */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const l_=(e,...t)=>new LB(e,t,"html",abe),q2e=(e,...t)=>new SVGTemplateResult(e,t,"svg",defaultTemplateProcessor);/**
6954
6954
  * @license
6955
6955
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6956
6956
  * This code may only be used under the BSD style license found at
@@ -6986,7 +6986,7 @@ ${eo}`,nee=`
6986
6986
  * Code distributed by Google as part of the polymer project is also
6987
6987
  * subject to an additional IP rights grant found at
6988
6988
  * http://polymer.github.io/PATENTS.txt
6989
- */const fbe=(e,t)=>(window.customElements.define(e,t),t),_be=(e,t)=>{const{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(i){window.customElements.define(e,i)}}},q2e=e=>t=>typeof t=="function"?fbe(e,t):_be(e,t),dbe=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?Object.assign(Object.assign({},t),{finisher(r){r.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}},pbe=(e,t,r)=>{t.constructor.createProperty(r,e)};function io(e){return(t,r)=>r!==void 0?pbe(e,t,r):dbe(e,t)}function hbe(e){return io({attribute:!1,hasChanged:e?.hasChanged})}const W2e=e=>hbe(e);function K2e(e,t){return(r,n)=>{const i={get(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};if(t){const a=n!==void 0?n:r.key,u=typeof a=="symbol"?Symbol():`__${a}`;i.get=function(){return this[u]===void 0&&(this[u]=this.renderRoot.querySelector(e)),this[u]}}return n!==void 0?mT(i,r,n):AT(i,r)}}function Q2e(e){return(t,r)=>{const n={async get(){return await this.updateComplete,this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};return r!==void 0?mT(n,t,r):AT(n,t)}}function z2e(e){return(t,r)=>{const n={get(){return this.renderRoot.querySelectorAll(e)},enumerable:!0,configurable:!0};return r!==void 0?mT(n,t,r):AT(n,t)}}const mT=(e,t,r)=>{Object.defineProperty(t,r,e)},AT=(e,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:e}),vbe=(e,t)=>Object.assign(Object.assign({},t),{finisher(r){Object.assign(r.prototype[t.key],e)}}),Sbe=(e,t,r)=>{Object.assign(t[r],e)};function X2e(e){return(t,r)=>r!==void 0?Sbe(e,t,r):vbe(e,t)}const GB=Element.prototype,Ebe=GB.msMatchesSelector||GB.webkitMatchesSelector;function J2e(e="",t=!1,r=""){return(n,i)=>{const a={get(){const u=`slot${e?`[name=${e}]`:":not([name])"}`,c=this.renderRoot.querySelector(u);let v=c&&c.assignedNodes({flatten:t});return v&&r&&(v=v.filter(_=>_.nodeType===Node.ELEMENT_NODE&&(_.matches?_.matches(r):Ebe.call(_,r)))),v},enumerable:!0,configurable:!0};return i!==void 0?mT(a,n,i):AT(a,n)}}/**
6989
+ */const fbe=(e,t)=>(window.customElements.define(e,t),t),_be=(e,t)=>{const{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(i){window.customElements.define(e,i)}}},W2e=e=>t=>typeof t=="function"?fbe(e,t):_be(e,t),dbe=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?Object.assign(Object.assign({},t),{finisher(r){r.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}},pbe=(e,t,r)=>{t.constructor.createProperty(r,e)};function io(e){return(t,r)=>r!==void 0?pbe(e,t,r):dbe(e,t)}function hbe(e){return io({attribute:!1,hasChanged:e?.hasChanged})}const K2e=e=>hbe(e);function Q2e(e,t){return(r,n)=>{const i={get(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};if(t){const a=n!==void 0?n:r.key,u=typeof a=="symbol"?Symbol():`__${a}`;i.get=function(){return this[u]===void 0&&(this[u]=this.renderRoot.querySelector(e)),this[u]}}return n!==void 0?mT(i,r,n):AT(i,r)}}function z2e(e){return(t,r)=>{const n={async get(){return await this.updateComplete,this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};return r!==void 0?mT(n,t,r):AT(n,t)}}function X2e(e){return(t,r)=>{const n={get(){return this.renderRoot.querySelectorAll(e)},enumerable:!0,configurable:!0};return r!==void 0?mT(n,t,r):AT(n,t)}}const mT=(e,t,r)=>{Object.defineProperty(t,r,e)},AT=(e,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:e}),vbe=(e,t)=>Object.assign(Object.assign({},t),{finisher(r){Object.assign(r.prototype[t.key],e)}}),Sbe=(e,t,r)=>{Object.assign(t[r],e)};function J2e(e){return(t,r)=>r!==void 0?Sbe(e,t,r):vbe(e,t)}const GB=Element.prototype,Ebe=GB.msMatchesSelector||GB.webkitMatchesSelector;function Z2e(e="",t=!1,r=""){return(n,i)=>{const a={get(){const u=`slot${e?`[name=${e}]`:":not([name])"}`,c=this.renderRoot.querySelector(u);let v=c&&c.assignedNodes({flatten:t});return v&&r&&(v=v.filter(_=>_.nodeType===Node.ELEMENT_NODE&&(_.matches?_.matches(r):Ebe.call(_,r)))),v},enumerable:!0,configurable:!0};return i!==void 0?mT(a,n,i):AT(a,n)}}/**
6990
6990
  @license
6991
6991
  Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
6992
6992
  This code may only be used under the BSD style license found at
@@ -6996,7 +6996,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
6996
6996
  part of the polymer project is also subject to an additional IP rights grant
6997
6997
  found at http://polymer.github.io/PATENTS.txt
6998
6998
  */const sM=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uM=Symbol();class cM{constructor(t,r){if(r!==uM)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return this._styleSheet===void 0&&(sM?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const gbe=e=>new cM(String(e),uM),Tbe=e=>{if(e instanceof cM)return e.cssText;if(typeof e=="number")return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but
6999
- take care to ensure page security.`)},Z2e=(e,...t)=>{const r=t.reduce((n,i,a)=>n+Tbe(i)+e[a+1],e[0]);return new cM(r,uM)};/**
6999
+ take care to ensure page security.`)},e8e=(e,...t)=>{const r=t.reduce((n,i,a)=>n+Tbe(i)+e[a+1],e[0]);return new cM(r,uM)};/**
7000
7000
  * @license
7001
7001
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7002
7002
  * This code may only be used under the BSD style license found at