"use strict";(self.webpackChunk_1js_people_in_taskbar=self.webpackChunk_1js_people_in_taskbar||[]).push([[6882],{68762:(t,r,e)=>{e.r(r),e.d(r,{createRelayEnvironment:()=>C});var n=e(96971),o=e(47720),i=e(43676),s=e(16533),a=e(69536),u=e(59434);var c=function(){function t(t,r,e,n){var o=this;this.operation=t,this.nextLink=r,this.delayFor=e,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(t){o.values.push(t);for(var r=0,e=o.observers;r<e.length;r++){var n=e[r];n&&n.next(t)}},this.onComplete=function(){o.complete=!0;for(var t=0,r=o.observers;t<r.length;t++){var e=r[t];e&&e.complete()}},this.onError=function(t){return(0,s.sH)(o,void 0,void 0,(function(){var r,e,n;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,t)];case 1:if(o.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,t)),[2];for(this.error=t,r=0,e=this.observers;r<e.length;r++)(n=e[r])&&n.error(t);return[2]}}))}))}}return t.prototype.subscribe=function(t){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(t);for(var r=0,e=this.values;r<e.length;r++){var n=e[r];t.next(n)}this.complete?t.complete():this.error&&t.error(this.error)},t.prototype.unsubscribe=function(t){var r=this.observers.indexOf(t);if(r<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[r]=null,this.observers.every((function(t){return null===t}))&&this.cancel()},t.prototype.start=function(){this.currentSubscription||this.try()},t.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},t.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},t.prototype.scheduleRetry=function(t){var r=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){r.timerId=void 0,r.try()}),t)},t}();const p=new(function(t){function r(r){var e=t.call(this)||this,n=r||{},o=n.attempts,i=n.delay;return e.delayFor="function"==typeof i?i:function(t){var r=t||{},e=r.initial,n=void 0===e?300:e,o=r.jitter,i=void 0===o||o,s=r.max,a=void 0===s?1/0:s,u=i?n:n/2;return function(t){var r=Math.min(a,u*Math.pow(2,t));return i&&(r=Math.random()*r),r}}(i),e.retryIf="function"==typeof o?o:function(t){var r=t||{},e=r.retryIf,n=r.max,o=void 0===n?5:n;return function(t,r,n){return!(t>=o)&&(e?e(n,r):!!n)}}(o),e}return(0,s.C6)(r,t),r.prototype.request=function(t,r){var e=new c(t,r,this.delayFor,this.retryIf);return e.start(),new u.c((function(t){return e.subscribe(t),function(){e.unsubscribe(t)}}))},r}(a.C))({attempts:{max:2,retryIf:(t,r)=>Boolean((0,i.js)(r).shouldRetry)}});var l=e(8888),h=e(31817),f=e(79717);const v=new a.C(((t,r)=>{const e=Date.now();let n=e;return r(t).map((r=>{const o=(0,i.js)(t),s="hasNext"in r,a=s&&"incremental"in r,u=Date.now()-n;return s&&(n=Date.now()),(0,i.be)(t,{httpAttempts:(o.httpAttempts??0)+(a?0:1),httpDuration:(o.httpDuration??0)+(a?0:u),httpDurationTrailing:s?(o.httpDurationTrailing??0)+u:o.httpDurationTrailing,httpRequestTime:e}),r}))})),d=(t,r)=>"__typename"===t?void 0:r,y=new a.C(((t,r)=>(t.variables&&(t=>"mutation"===t.query.definitions.find((t=>"OperationDefinition"===t.kind)).operation)(t)&&(t.variables=JSON.parse(JSON.stringify(t.variables),d)),r(t).map((t=>t)))));var b=e(58027);const m=t=>r=>Promise.resolve(r?`${t}/api/v2/graphql?operationName=${r}`:`${t}/api/v2/graphql`),g=t=>{let{tokenProvider:r,clientType:e,clientScenario:n,hostAppCorrelationId:o,clientFeature:s,hostAppApp:u,lokiUrl:c,BUILD_VERSION:d,locale:g}=t;return a.C.from([(0,i.eR)({shouldTrace:!0}),p,(0,l.r)({authTokenProvider:()=>Promise.resolve(r),correlationId:o}),(0,h.P)({logger:k,forceRefreshAuthToken:t=>{r.forceRefreshAuthToken(t)},featureName:"GraphQLError",correlationId:o}),(0,f.Zw)({clientType:e,clientScenario:n,clientCorrelationId:o,region:"",clientFeature:s,buildVersion:d,accountUpn:"NO_USER",hostAppApp:u,locale:g},f.Lr),v,y,(0,b.A)(m(c),"none")])},k={logError:t=>{0},registerErrors:()=>{}},C=(t,r,e)=>{const{authTokenProvider:i,cardConfiguration:s,configurationManager:a,telemetryContextProps:u}=t,c=a.getConfiguration();return(0,n.M)({logFunction:r,fetchQuery:(0,o.u)({apolloLink:g({tokenProvider:i,clientType:s.source,clientScenario:u.getHostAppContext(),hostAppCorrelationId:u.getHostAppSessionCorrelationId(),clientFeature:"LivePersonaCard",hostAppApp:u.getHostAppApp(),lokiUrl:s.lokiUrl,BUILD_VERSION:u.getAppVersion(),locale:c.locale})}),storeOptions:{resolverContext:e}})}}}]);