Mini Kabibi Habibi
/*! For license information please see vendor.js.LICENSE.txt */
(self.webpackChunkTypeScriptModule=self.webpackChunkTypeScriptModule||[]).push([[121],{50878:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DictationEventsType:()=>a.Ff,SpeechToTextProfile:()=>i.A,VoiceSession:()=>w});var r=n(67524),o=n(18943),s=n(31193),i=n(34322),a=n(26302),c=n(15041),l=n(71243),u=n(42733),d=n(28782),p=n(70203),f=n(96644),h=n(58966),g=function(){function e(){this.count=0,this.total={service:0,perceived:0},this.min={service:Number.MAX_VALUE,perceived:Number.MAX_VALUE},this.max={service:0,perceived:0}}return e.prototype.add=function(e){this.count++,this.total.perceived+=e.perceived,this.total.service+=e.service,this.min.perceived=Math.min(e.perceived,this.min.perceived),this.min.service=Math.min(e.service,this.min.service),this.max.perceived=Math.max(e.perceived,this.max.perceived),this.max.service=Math.max(e.service,this.max.service)},e.prototype.getAverages=function(){return 0===this.count?{perceived:-1,service:-1}:{perceived:this.total.perceived/this.count,service:this.total.service/this.count}},e}(),m=function(){function e(e,t){this.finals=new g,this.partials=new g,this.getNow=Date.now,this.list=[],this.maxListLength=e,this.warnListLength=.8*e,this.getNow=null!=t?t:Date.now}return Object.defineProperty(e.prototype,"length",{get:function(){return this.list.length},enumerable:!1,configurable:!0}),e.prototype.getChunk=function(e){return this.list[e]},e.prototype.track=function(e,t,n){var r={audioStart:e-t,audioEnd:e,localEnd:this.getNow(),seq:n},o=this.list.length-1;if(-1===o||r.audioStart>=this.list[o].audioEnd)this.list.push(r);else if(r.audioEnd<=this.list[0].audioStart)this.list.unshift(r);else{for(;o>0&&r.audioEnd<this.list[o].audioStart;)o--;if(o>=0&&r.audioStart===this.list[o].audioStart)throw new Error("Why are we double tracking the same chunk of audio? newChunk: ".concat(JSON.stringify(r),", existing chunk: ").concat(JSON.stringify(this.list[o])));this.list.splice(o,0,r)}if(this.list.length>this.maxListLength){var s=this.list.length-this.maxListLength;this.list.splice(0,s),u.Hv.sendTraceTag(523568153,d.n.msoulscat_Wac_Dictation,p.k.Warning,"AudioStreamPerfTracker.track: list length has exceeded max by ".concat(s," items!"))}else this.list.length>=this.warnListLength&&u.Hv.sendTraceTag(523568154,d.n.msoulscat_Wac_Dictation,p.k.Warning,"AudioStreamPerfTracker.track: list length: ".concat(this.list.length," approaching max: ").concat(this.maxListLength))},e.prototype.trimBefore=function(e){if(0!==this.list.length){for(var t="".concat(this.list[0].audioStart," to ").concat(this.list[this.list.length-1].audioEnd),n=0;n<this.list.length&&this.list[n].audioEnd<e;)n++;n===this.list.length&&u.Hv.sendTraceTag(523568156,d.n.msoulscat_Wac_Dictation,p.k.Warning,"AudioStreamPerfTracker.trimBefore: no match found for audioEnd: ".concat(e,". List length: ").concat(this.list.length,", audio span: ").concat(t));var r=this.list.splice(0,n),o=r.length>0?"".concat(r[0].audioStart," to ").concat(r[r.length-1].audioEnd):"none",s=this.list.length>0?"".concat(this.list[0].audioStart," to ").concat(this.list[this.list.length-1].audioEnd):"none";u.Hv.sendTraceTag(523568157,d.n.msoulscat_Wac_Dictation,p.k.Info,"AudioStreamPerfTracker.trimBefore: audioEnd: ".concat(e,", culling ").concat(r.length," chunks (audio span ").concat(o,"), new list.length: ").concat(this.list.length,". Audio span was: ").concat(t,", now: ").concat(s))}else u.Hv.sendTraceTag(523568155,d.n.msoulscat_Wac_Dictation,p.k.Info,"AudioStreamPerfTracker.trimBefore: list is empty - nothing to trim!")},e.prototype.getChunksFrom=function(e,t){for(var n,r,o=e+t,s=0;s<this.list.length&&(!n||!r);){var i=this.list[s];!n&&e>=i.audioStart&&e<=i.audioEnd&&(n=i),!r&&o>=i.audioStart&&o<=i.audioEnd&&(r=i),s++}return[n,r]},e.prototype.measureLatency=function(e,t,n){var r=this.getNow(),o=e+t,s=this.getChunksFrom(e,t),i=s[0],a=s[1];if(!i&&!a)return u.Hv.sendTraceTag(523568158,d.n.msoulscat_Wac_Dictation,p.k.Warning,"AudioStreamPerfTracker.getRelatedAudioChunks: Zero audio chunks not found for speechEnd: ".concat(o," (").concat(e," + ").concat(t,")")),{service:-1,perceived:-1};if(!i||!a){var c=i?"end":"start",l="none",f=NaN;this.list.length>0&&(l="".concat(this.list[0].audioStart," to ").concat(this.list[this.list.length-1].audioEnd),f=i?o-this.list[this.list.length-1].audioEnd:o-this.list[0].audioStart),u.Hv.sendTraceTag(523568159,d.n.msoulscat_Wac_Dictation,p.k.Warning,"AudioStreamPerfTracker.getRelatedAudioChunks: Expected audio chunk not found for ".concat(c," of audio, for speechEnd: ").concat(o," (").concat(e," + ").concat(t,"), tracked audio span: ").concat(l,", delta: ").concat(f))}var h=r-Math.max((null==i?void 0:i.localEnd)||0,(null==a?void 0:a.localEnd)||0),g=i?this.getLatencyForChunk(i,e,t,r):-1,m=a?this.getLatencyForChunk(a,o,0,r):-1,y={service:h,perceived:Math.max(g,m)};return(n?this.finals:this.partials).add(y),y},e.prototype.getLatencyForChunk=function(e,t,n,r){return r-(e.localEnd-(e.audioEnd-t))-n},e}(),y=function(){return(0,h.iP)("Microsoft.Office.WordOnline.DictationUserPerceivedLatencies",!1)||(0,h.iP)("Microsoft.Office.OneNoteOnline.DictationUserPerceivedLatencies",!1)};function v(e,t){return new Promise((function(n,r){t.decodeAudioData(e,n,r)}))}var w=function(){function e(e,t,n,r,o,s){void 0===n&&(n=!1),void 0===s&&(s=i.A.Dictation),this.audioContext=null,this.microphoneSessionState=null,this.responseVersion=c.wM.version2,this.fileBytes=null,this._wavFileAudioChunkSize=16e3,this.endVoiceSessionCalled=!1,this.totalAudioInputDurationMs=0,this.resolveSendVoiceTilesUsingVoicePacketsPromise=null,this.runtimeManager=e,this.fdSpeechClientObserver=t,this.useFrontdoorWorkflow=n,y()?(this.audioPerfTracker=new m(1e3),o&&(this.sessionTelemetry=o,o.audioPerfTracker=this.audioPerfTracker)):o&&(this.sessionTelemetry=o),r&&(this.commandTelemetry=r),this.speechToTextProfile=s}return e.prototype.startVoiceSessionFromMicrophoneInput=function(e,t,n){return(0,r.__awaiter)(this,void 0,void 0,(function(){var i=this;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return this.endVoiceSessionCalled=!1,this.totalAudioInputDurationMs=0,[4,this.startAudioCaptureAsync((function(t){if(!i.endVoiceSessionCalled){e&&e(t.inputBuffer);var r=i.audioContext?i.audioContext.sampleRate:t.inputBuffer.sampleRate,a=(0,s.eG)(t.inputBuffer.getChannelData(0),r),c=o.vh(i.runtimeManager,a,s.b2,i.useFrontdoorWorkflow,l.A.dictationSettings,i.responseVersion,i.speechToTextProfile,i.sessionTelemetry,null==n?void 0:n.getCommandSet());if(y()){var u=1e3*t.inputBuffer.duration;i.totalAudioInputDurationMs+=u,i.audioPerfTracker.track(i.totalAudioInputDurationMs,u,c.seq)}i.fdSpeechClientObserver.onAudioData&&i.fdSpeechClientObserver.onAudioData(new Int16Array(a.buffer))}}),t).catch((function(e){return Promise.reject(e)}))];case 1:return r.sent(),[2]}}))}))},e.prototype.sendVoiceTilesUsingVoicePackets=function(e,t){var n=this;return new Promise((function(i,a){return(0,r.__awaiter)(n,void 0,void 0,(function(){var n,c,u,d,p,f,h,g;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:r.trys.push([0,4,,5]),null!=this.resolveSendVoiceTilesUsingVoicePacketsPromise&&a(new Error("Please finish sending an audio file (i.e. call endVoiceSession) before sending another one.")),this.resolveSendVoiceTilesUsingVoicePacketsPromise=i,n=this._wavFileAudioChunkSize,c=0,u=n,d=!1,r.label=1;case 1:return c<e.byteLength?this.endVoiceSessionCalled?[3,3]:(p=e.slice(c,u),f=new DataView(p),o.vh(this.runtimeManager,f,s.b2,this.useFrontdoorWorkflow,l.A.dictationSettings,this.responseVersion,this.speechToTextProfile,this.sessionTelemetry),h=t&&t.audioFileStreamDelay||300,[4,this.wait(+h)]):[3,3];case 2:return r.sent(),d?[3,3]:(c=u,(u+=n)>e.byteLength&&(u=e.byteLength,d=!0),[3,1]);case 3:return null!=this.resolveSendVoiceTilesUsingVoicePacketsPromise&&(this.resolveSendVoiceTilesUsingVoicePacketsPromise(),this.resolveSendVoiceTilesUsingVoicePacketsPromise=null),[3,5];case 4:return g=r.sent(),a(g),[3,5];case 5:return[2]}}))}))}))},e.prototype.resendFileFromTimeOffset=function(e,t){if(!this.fileBytes)throw new Error("Can't resend a file if startVoiceSessionFromAudioFile (or equivalent) has not been called.");if(!this.endVoiceSessionCalled||null!=this.resolveSendVoiceTilesUsingVoicePacketsPromise)throw new Error("Can't resend a file when we are currently sending one. End the voice session first.");var n=e/1e3*s.b2*(s.FA/8),r=t?t/1e3*s.b2*(s.FA/8):void 0;return this.fileBytes=this.fileBytes.slice(n,r),this.endVoiceSessionCalled=!1,this.sendVoiceTilesUsingVoicePackets(this.fileBytes)},e.prototype.startVoiceSessionFromAudioFileFromServer=function(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function(){return(0,r.__generator)(this,(function(n){return this.fdSpeechClientObserver.onSpeechRecognitionStarted(),this.fileBytes=e,[2,this.sendVoiceTilesUsingVoicePackets(this.fileBytes,t)]}))}))},e.prototype.readAndSendFile=function(e,t,n){var o=this;void 0===t&&(t=!1);var i=new FileReader,a=new Promise((function(e,a){i.onload=function(){return(0,r.__awaiter)(o,void 0,void 0,(function(){var o,c,l,u,d;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,4,,5]),this.fileBytes=i.result,!t)return[3,2];if(o=Date.now(),null==(c=new OfflineAudioContext(1,1,s.b2)).decodeAudioData)throw new Error("Browser does not support decodeAudioData");return[4,v(this.fileBytes,c)];case 1:l=r.sent(),this.fileBytes=(0,s.eG)(l.getChannelData(0),s.b2).buffer,u=l.duration,n&&n(Date.now()-o,u),r.label=2;case 2:return[4,this.sendVoiceTilesUsingVoicePackets(this.fileBytes)];case 3:return r.sent(),e(),[3,5];case 4:return d=r.sent(),a(d),[3,5];case 5:return[2]}}))}))},i.onabort=function(){a(new Error("Aborted fileReader"))},i.onerror=function(){a(i.error)}}));return i.readAsArrayBuffer(e),a},e.prototype.startVoiceSessionFromAudioFile=function(e,t,n){return void 0===t&&(t=!1),(0,r.__awaiter)(this,void 0,void 0,(function(){return(0,r.__generator)(this,(function(r){return this.fdSpeechClientObserver.onSpeechRecognitionStarted(),[2,this.readAndSendFile(e,t,n)]}))}))},e.prototype.stopVoiceSession=function(){return(0,r.__awaiter)(this,void 0,void 0,(function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.stopMicrophoneInputAsync()];case 1:return e.sent(),this.endVoiceSession(),[2]}}))}))},e.prototype.endVoiceSession=function(){o.Yf(this.runtimeManager,this.useFrontdoorWorkflow,l.A.dictationSettings,this.sessionTelemetry),this.endVoiceSessionCalled=!0,null!=this.resolveSendVoiceTilesUsingVoicePacketsPromise&&(this.resolveSendVoiceTilesUsingVoicePacketsPromise(),this.resolveSendVoiceTilesUsingVoicePacketsPromise=null)},e.prototype.stopMicrophoneInputAsync=function(){return(0,r.__awaiter)(this,void 0,void 0,(function(){var e;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:if(this.microphoneSessionState&&(this.microphoneSessionState.mediaStream.getAudioTracks().map((function(e){e.stop()})),this.microphoneSessionState=null),!this.audioContext||"closed"===this.audioContext.state)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.audioContext.close()];case 2:return t.sent(),[3,4];case 3:if(e=t.sent(),u.Hv.sendTraceTag(528871704,d.n.msoulscat_Wac_Dictation,p.k.Warning,"Error closing audioContext: ".concat(e)),"InvalidStateError"!==e.name)throw e;return[3,4];case 4:return[2]}}))}))},e.prototype.startAudioCaptureAsync=function(e,t){var n,o;return(0,r.__awaiter)(this,void 0,void 0,(function(){var s,i,a,c,l,h,g,m;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:s=Date.now(),i=!1,r.label=1;case 1:return r.trys.push([1,7,8,9]),[4,this.createAudioContextAndMicrophoneSessionState(t)];case 2:return a=r.sent(),c=a.context,l=a.sessionState,i=!0,null===(n=this.sessionTelemetry)||void 0===n||n.setRecordingStartTime(Date.now()),null===(o=this.commandTelemetry)||void 0===o||o.setRecordingStartTime(Date.now()),this.endVoiceSessionCalled?[3,5]:(this.audioContext=c,this.microphoneSessionState=l,l.processor.onaudioprocess=e,l.source.connect(l.processor),l.processor.connect(c.destination),window.self.document.hasFocus()?[3,4]:[4,this.waitForWindowFocus(20)]);case 3:r.sent(),r.label=4;case 4:return this.fdSpeechClientObserver.onSpeechRecognitionStarted(),[3,6];case 5:u.Hv.sendTraceTag(573391628,d.n.msoulscat_Wac_Dictation,p.k.Warning,"Audio Capture is cancelled due to VoiceSession closed"),r.label=6;case 6:return[3,9];case 7:return h=r.sent(),g=this.parseMicrophoneErrorMessage(h),this.fdSpeechClientObserver.onError(g),g===f.J.ErrorAudioCaptureAsync?[2,Promise.reject(h)]:[2,Promise.reject(g)];case 8:return m=Date.now()-s,u.Hv.sendTraceTag(589886626,d.n.msoulscat_Wac_Dictation,p.k.Info,"Mic enablement - success: ".concat(i,", duration: ").concat(m)),[7];case 9:return[2]}}))}))},e.prototype.waitForWindowFocus=function(e){void 0===e&&(e=20);var t=Date.now(),n=e;return new Promise((function(e,r){var o=function(){if(n-=1,window.self.document.hasFocus()||n<0){var r=Date.now()-t;u.Hv.sendTraceTag(553747910,d.n.msoulscat_Wac_Dictation,p.k.Info,"waitForWindowFocus duration: ".concat(r,", count: ").concat(n,", window has focus: ").concat(window.self.document.hasFocus())),e()}else setTimeout(o,50)};o()}))},e.prototype.parseMicrophoneErrorMessage=function(e){var t=(0,o.rq)(e);return t.startsWith("NotAllowedError")||t.endsWith("PermissionDeniedError")||t.startsWith("PermissionDeniedError")?f.J.ErrorAudioPermissionDeniedError:t.endsWith("NotFoundError")||t.startsWith("NotFoundError")||t.startsWith("DevicesNotFoundError")?f.J.ErrorAudioDevicesNotFoundError:t.endsWith("MediaDeviceNotSupported")||t.startsWith("NotSupportedError")||t.startsWith("NotReadableError")||t.startsWith("TrackStartError")?f.J.ErrorAudioNotReadableError:(u.Hv.sendTraceTag(538481308,d.n.msoulscat_Wac_Dictation,p.k.Error,"Unexpected microphone error: ".concat(t," (").concat(null==e?void 0:e.name,"-").concat(null==e?void 0:e.message,")")),f.J.ErrorAudioCaptureAsync)},e.prototype.wait=function(e){return new Promise((function(t){setTimeout((function(){t()}),e)}))},e.prototype.createAudioContextAndMicrophoneSessionState=function(e){return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,n,o,s,i,a=this;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:t=0,r.label=1;case 1:return r.trys.push([1,,3,4]),t=window.setTimeout((function(){t=0,a.fdSpeechClientObserver.showPermissionPrompt&&a.fdSpeechClientObserver.showPermissionPrompt()}),2e3),n=!e||{deviceId:e},[4,navigator.mediaDevices.getUserMedia({audio:n})];case 2:return o=r.sent(),null===(s=window.AudioContext||window.webkitAudioContext)?[2,Promise.reject("Browser doesn't support AudioContext")]:[2,{context:i=new s,sessionState:{mediaStream:o,source:i.createMediaStreamSource(o),processor:i.createScriptProcessor(16384,1,1)}}];case 3:return t>0&&window.clearTimeout(t),[7];case 4:return[2]}}))}))},e}()},4462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SpeechToTextClient:()=>C,SpeechToTextResultType:()=>g,sendSpeechToTextFinalResultToSpeechClientObserver:()=>_});var r,o,s,i,a,c,l=n(67524),u=n(18943),d=n(34322),p=n(71243),f=n(92e3),h=n(15041);!function(e){e[e.Error=10]="Error",e[e.Warning=15]="Warning",e[e.Info=50]="Info",e[e.Verbose=100]="Verbose",e[e.Spam=200]="Spam"}(r||(r={})),function(e){e[e.PowerPoint=0]="PowerPoint",e[e.Word=1]="Word",e[e.OneNote=2]="OneNote",e[e.Outlook=3]="Outlook",e[e.Unknown=4]="Unknown",e[e.LinkedIn=5]="LinkedIn",e[e.Flipgrid=6]="Flipgrid",e[e.OfficeMobie=7]="OfficeMobie",e[e.OfficeSuite=8]="OfficeSuite",e[e.Teams=9]="Teams"}(o||(o={})),function(e){e.ErrorNone="ErrorNone",e.ErrorInvalidSubscriptionFromConfig="ErrorInvalidSubscriptionFromConfig",e.ErrorInvalidRegionFromConfig="ErrorInvalidRegionFromConfig",e.ErrorAddSessionFailure="ErrorAddSessionFailure",e.ErrorCreateSpeechSessionBadRequest="ErrorCreateSpeechSessionBadRequest",e.ErrorSpeechHandlerWebSocketFailure="ErrorSpeechHandlerWebSocketFailure",e.ErrorInvalidMessage="ErrorInvalidMessage",e.ErrorWaitAudioTimeout="ErrorWaitAudioTimeout",e.ErrorInitialSilenceTimeout="ErrorInitialSilenceTimeout",e.ErrorInitialBabbleTimeout="ErrorInitialBabbleTimeout",e.ErrorProtobufDeserializationFailure="ErrorProtobufDeserializationFailure",e.ErrorSpeechRecognitionFailure="ErrorSpeechRecognitionFailure",e.ErrorTranslationFailure="ErrorTranslationFailure",e.ErrorFailedToGetSupportedTextLanguages="ErrorFailedToGetSupportedTextLanguages",e.ErrorCustomEndpointTimeout="ErrorCustomEndpointTimeout",e.ErrorAudioAbortError="ErrorAudioAbortError",e.ErrorAudioNotAllowedError="ErrorAudioNotAllowedError",e.ErrorAudioNotFoundError="ErrorAudioNotFoundError",e.ErrorAudioNotReadableError="ErrorAudioNotReadableError",e.ErrorAudioOverconstrainedError="ErrorAudioOverconstrainedError",e.ErrorAudioSecurityError="ErrorAudioSecurityError",e.ErrorAudioTypeError="ErrorAudioTypeError",e.ErrorAudioSetupFailure="ErrorAudioSetupFailure",e.ErrorAudioCaptureStalePermission="ErrorAudioCaptureStalePermission",e.ErrorConnectionRetryFailure="ErrorConnectionRetryFailure",e.ErrorWebcamSamplingUnsupportedSpeechMode="ErrorWebcamSamplingUnsupportedSpeechMode",e.ErrorWebcamSetupFailure="ErrorWebcamSetupFailure",e.ErrorWebcamNotFoundError="ErrorWebcamNotFoundError",e.ErrorMultipleWebcamsFound="ErrorMultipleWebcamsFound",e.ErrorMaxConnectionRetryFailureInSession="ErrorMaxConnectionRetryFailureInSession",e.ErrorUnknown="ErrorUnknown"}(s||(s={})),function(e){e.RehearsalDashboardUpdate="RehearsalDashboardUpdate",e.MediaEvent="MediaEvent",e.QualityStatusUpdate="QualityStatusUpdate",e.ConnectionRetry="ConnectionRetry"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Listening=1]="Listening",e[e.Warning_CannotHearYou=2]="Warning_CannotHearYou",e[e.Warning_BackgroundNoise=3]="Warning_BackgroundNoise",e[e.Warning_TooLoud=4]="Warning_TooLoud",e[e.Warning_TooQuiet=5]="Warning_TooQuiet",e[e.Warning_WeakConnection=6]="Warning_WeakConnection",e[e.Warning_SlowConnection=7]="Warning_SlowConnection",e[e.Warning_UnstableConnection=8]="Warning_UnstableConnection",e[e.Warning_ServiceIssue=9]="Warning_ServiceIssue",e[e.Error_CannotHearYou=10]="Error_CannotHearYou",e[e.Error_BackgroundNoise=11]="Error_BackgroundNoise",e[e.Error_TooLoud=12]="Error_TooLoud",e[e.Error_TooQuiet=13]="Error_TooQuiet",e[e.Error_WeakConnection=14]="Error_WeakConnection",e[e.Error_SlowConnection=15]="Error_SlowConnection",e[e.Error_UnstableConnection=16]="Error_UnstableConnection",e[e.Error_ServiceIssue=17]="Error_ServiceIssue"}(a||(a={})),function(e){e.Closed="Closed",e.Closing="Closing",e.Connecting="Connecting",e.Open="Open"}(c||(c={}));var g,m=n(26302),y=n(42733),v=n(28782),w=n(70203),b=n(73413),S=n(58966),T=function(){return(0,S.iP)("Microsoft.Office.WordOnline.DictationUserPerceivedLatencies",!1)||(0,S.iP)("Microsoft.Office.OneNoteOnline.DictationUserPerceivedLatencies",!1)};!function(e){e[e.FinalResult=0]="FinalResult",e[e.PartialResult=1]="PartialResult"}(g||(g={}));var C=function(){function e(e,t,n,r,o,s){void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===s&&(s=d.A.Dictation);var i,a,c=this;this.initialized=!1,this.speechSessionEventToken=null,this.speechToTextPartialResultToken=null,this.speechToTextFinalResultToken=null,this.speechErrorEventToken=null,this.speechQualityEventToken=null,this.useDebugDictation=!1,this.runtimeManager=e,this.fdSpeechClientObserver=t,this.useFrontdoorWorkflow=n,this.speechToTextProfile=s,this.startRecognitionInSpeechToTextClient=r,this.enableSetAnnotationsFromALVoiceClient=!!o,this.annotationObserver={onAnnotationResult:function(e){c.onAnnotationResult(e)}};var l=new URLSearchParams(null===(i=window.location.search)||void 0===i?void 0:i.toLowerCase()),u=null!==(a=p.A.dictationSettings.properties)&&void 0!==a?a:{};this.useDebugDictation="true"===l.get("wddictationdebugmode"),this.useDebugDictation&&(u.EnableAudioLogging="true");var f=l.get("wdspeechdomain");f&&(u.wdSpeechDomain=decodeURIComponent(f)),p.A.dictationSettings={properties:u}}return e.logPhraseId_old=function(e,t,n,r){e&&(0,b.Ot)({name:"Office.Voice.Online.PhraseReceived",dataFields:[{name:"PhraseID",string:e},{name:"ConnectionID",string:t},{name:"SessionID",string:n},{name:"MessageType",string:r}]})},e.logPhraseId=function(e,t,n){var r,o=null===(r=n.properties.JsonResult)||void 0===r?void 0:r.Id;if(o&&t&&n){var s={name:"Office.Voice.Online.PhraseReceived",dataFields:[{name:"PhraseID",string:o},{name:"ConnectionID",string:t.connectionID},{name:"SessionID",string:t.sessionID},{name:"MessageType",string:e},{name:"voiceLatency",int64:n.properties.audioLatency}]};if(n.properties.commandLatency&&s.dataFields.push({name:"commandLatency",int64:n.properties.commandLatency}),t.audioPerfTracker&&n.properties.JsonResult&&n.properties.JsonResult.Offset&&n.properties.JsonResult.Duration){var i=n.properties.JsonResult.Offset/1e4,a=n.properties.JsonResult.Duration/1e4,c="final"===e,l=t.audioPerfTracker.measureLatency(i,a,c);s.dataFields.push({name:"perceivedLatency",int64:l.perceived}),s.dataFields.push({name:"serviceLatency",int64:l.service})}(0,b.Ot)(s)}},e.prototype.initializeAsync=function(e,t){return(0,l.__awaiter)(this,void 0,void 0,(function(){var n,r,o,s,i;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return n=this.checkAnnotationActive(),y.Hv.sendTraceTag(521417154,v.n.msoulscat_Wac_Dictation,w.k.Info,"SpeechToTextClient.initializeAsync - initialized: ".concat(this.initialized,", annotationsActive: ").concat(n)),n?(y.Hv.sendTraceTag(521417153,v.n.msoulscat_Wac_Dictation,w.k.Warning,"Releasing old annotations"),[4,this.uninitializeAsync()]):[3,2];case 1:a.sent(),a.label=2;case 2:t&&(this.sessionTelemetry=t),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,this.activateAnnotations(e)];case 4:return a.sent(),this.warmUpAugloop(),this.initialized=!0,[3,6];case 5:if(r=a.sent(),o="SpeechToTextClient.initializeAsync - Activate Annotations - "+r.message,s={errorType:u.yA.ErrorAugloopActivateAnnotations,errorMsg:o+" - Error stack: "+r.stack},!r.message)try{i={},Object.getOwnPropertyNames(r).forEach((function(e){return i[e]=r[e]})),y.Hv.sendTraceTag(509745299,v.n.msoulscat_Wac_Dictation,w.k.Error,"Odd error: "+JSON.stringify(i))}catch(e){y.Hv.sendTraceTag(509745298,v.n.msoulscat_Wac_Dictation,w.k.Error,"Failed to diagnose odd error: "+u.rq(e))}return o.includes("Timeout waiting for response")?this.fdSpeechClientObserver.onWarning(s):this.fdSpeechClientObserver.onError(s),[3,6];case 6:return[2]}}))}))},e.prototype.uninitializeAsync=function(){var e;return(0,l.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,s,i=this;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:t=this.checkAnnotationActive(),y.Hv.sendTraceTag(521417152,v.n.msoulscat_Wac_Dictation,w.k.Info,"SpeechToTextClient.uninitializeAsync - initialized: ".concat(this.initialized,", annotationsActive: ").concat(t)),this.initialized=!1,r=(n=["speechSessionEventToken","speechToTextPartialResultToken","speechToTextFinalResultToken","speechQualityEventToken","speechErrorEventToken"]).map((function(e){return i[e]})).filter((function(e){return!!e})),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,u.yw(this.runtimeManager,r)];case 2:return a.sent(),[3,4];case 3:return o=a.sent(),s="SpeechToTextClient.uninitializeAsync - Release Annotations - "+o.message,null===(e=this.sessionTelemetry)||void 0===e||e.onAugloopError(s),y.Hv.sendTraceTag(521417123,v.n.msoulscat_Wac_Dictation,w.k.Error,"SpeechToTextClient.uninitializeAsync - Release Annotations - Error message: "+s+" - Error stack: "+o.stack),[3,4];case 4:return n.forEach((function(e){return i[e]=null})),[2]}}))}))},e.prototype.checkAnnotationActive=function(){return null!==this.speechSessionEventToken||null!==this.speechToTextPartialResultToken||null!==this.speechToTextFinalResultToken||null!==this.speechQualityEventToken||null!==this.speechErrorEventToken},e.prototype.getAnnotationObserver=function(){return this.annotationObserver},e.prototype.activateAnnotations=function(e){return(0,l.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,s,i;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return t=u.Rd(this.runtimeManager,f.lM.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient),n=u.Rd(this.runtimeManager,f.D_.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient),r=null,e.indexOf(g.PartialResult)>=0&&(r=u.Rd(this.runtimeManager,f.ZF.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient)),o=null,e.indexOf(g.FinalResult)>=0&&(o=u.Rd(this.runtimeManager,f.mh.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient)),s=u.Rd(this.runtimeManager,f._K.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient),this.useDebugDictation&&console.warn("This dictation session will be logging audio"),[4,Promise.all([n,r,o,s,t])];case 1:return i=a.sent(),this.speechSessionEventToken=i[0],this.speechToTextPartialResultToken=i[1],this.speechToTextFinalResultToken=i[2],this.speechQualityEventToken=i[3],this.speechErrorEventToken=i[4],[2]}}))}))},e.prototype.warmUpAugloop=function(){u.j9(this.runtimeManager,this.useFrontdoorWorkflow,p.A.dictationSettings,h.wM.version2,this.speechToTextProfile,this.sessionTelemetry)},e.prototype.onAnnotationResult=function(e){var t=this;u.Jh(e,f.lM.getTypeName()).map((function(e){t.handleSpeechErrorEvent(e.body)})),u.Jh(e,f.D_.getTypeName()).map((function(e){t.handleSpeechSessionEvent(e.body)})),u.Jh(e,f.ZF.getTypeName()).map((function(e){t.handleSpeechToTextPartialResult(e.body)})),u.Jh(e,f.mh.getTypeName()).map((function(e){var n=e.body,r=n.text;_(t.fdSpeechClientObserver,n,r,t.sessionTelemetry)})),u.Jh(e,f._K.getTypeName()).map((function(e){var n=e.body;n.eventInfo&&n.eventInfo.eventName===i.QualityStatusUpdate&&t.handleSpeechQualityEvent(n.eventInfo)}))},e.prototype.handleSpeechErrorEvent=function(e){e&&(y.Hv.sendTraceTag(521417122,v.n.msoulscat_Wac_Dictation,w.k.Warning,JSON.stringify(e)),e.ErrorState===h.o2.FINAL&&e.ErrorImpact===h.$O.NO_DICTATION?(y.Hv.sendTraceTag(521417121,v.n.msoulscat_Wac_Dictation,w.k.Error,JSON.stringify(e)),this.fdSpeechClientObserver.onError(e.ErrorCode)):e.ErrorState===h.o2.INTERMITTENT&&e.ErrorImpact===h.$O.NO_DICTATION?y.Hv.sendTraceTag(521417120,v.n.msoulscat_Wac_Dictation,w.k.Warning,JSON.stringify(e)):e.ErrorState===h.o2.FINAL&&e.ErrorImpact===h.$O.NO_COMMANDING&&(y.Hv.sendTraceTag(521417119,v.n.msoulscat_Wac_Dictation,w.k.Warning,JSON.stringify(e)),this.fdSpeechClientObserver.showDictationWarning(e.ErrorCode,e.ErrorImpact)))},e.prototype.handleSpeechSessionEvent=function(e){var t;switch(e.eventId){case m.P_.SpeechRecognitionStarted:this.transcriberId=e.sessionId,this.useDebugDictation&&console.warn("Speech transcriberId: ".concat(this.transcriberId)),this.startRecognitionInSpeechToTextClient&&this.fdSpeechClientObserver.onSpeechRecognitionStarted();break;case m.P_.SpeechRecognitionStopped:null===(t=this.sessionTelemetry)||void 0===t||t.setEndReason("SpeechRecognitionStopped"),this.fdSpeechClientObserver.onSpeechEnd();break;case m.P_.SpeechSessionStarted:if(this.speechSessionId=e.sessionId,this.useDebugDictation&&console.warn("Speech speechSessionId: ".concat(this.speechSessionId)),this.fdSpeechClientObserver.onSpeechSessionStarted&&this.speechSessionId){var n={speechSessionId:this.speechSessionId,transcriptionSignature:""};this.fdSpeechClientObserver.onSpeechSessionStarted(n)}break;case m.P_.SpeechSessionStopped:this.fdSpeechClientObserver.onSpeechSessionStopped&&this.fdSpeechClientObserver.onSpeechSessionStopped();break;default:console.warn("Unexpected speechSessionEventId: ".concat(e.eventId))}},e.prototype.handleSpeechToTextPartialResult=function(t){var n,r,o,s,i,a;if(""!==t.text){var c=new Map([[t.language,t.text]]);null===(n=this.sessionTelemetry)||void 0===n||n.onPartialResultAnnotationResponse(Date.now(),null===(r=t.properties.JsonResult)||void 0===r?void 0:r.Offset,null===(o=t.properties.JsonResult)||void 0===o?void 0:o.Duration);var l=new Map;l.set("JsonResult",JSON.stringify(t.properties.JsonResult)),this.fdSpeechClientObserver.onFragmentText(c,l),T()?this.sessionTelemetry&&e.logPhraseId("partial",this.sessionTelemetry,t):e.logPhraseId_old(null===(s=t.properties.JsonResult)||void 0===s?void 0:s.Id,null===(i=this.sessionTelemetry)||void 0===i?void 0:i.connectionID,null===(a=this.sessionTelemetry)||void 0===a?void 0:a.sessionID,"partial")}},e.prototype.handleSpeechQualityEvent=function(e){this.fdSpeechClientObserver.onEventUpdate(e)},e}();function _(e,t,n,r){var o,s,i,a=new Map([[t.language,n]]);r&&""!==n&&r.onFinalResultAnnotationResponse(Date.now(),null===(o=t.properties.JsonResult)||void 0===o?void 0:o.Offset,null===(s=t.properties.JsonResult)||void 0===s?void 0:s.Duration);var c=new Map;c.set("JsonResult",JSON.stringify(t.properties.JsonResult)),e.onFinalText(a,c),T()?r&&""!==n&&C.logPhraseId("final",r,t):C.logPhraseId_old(null===(i=t.properties.JsonResult)||void 0===i?void 0:i.Id,null==r?void 0:r.connectionID,null==r?void 0:r.sessionID,"final")}},96644:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>r}),function(e){e.ErrorAudioPermissionDeniedError="ErrorAudioPermissionDeniedError",e.ErrorAudioDevicesNotFoundError="ErrorAudioDevicesNotFoundError",e.ErrorAudioNotReadableError="ErrorAudioNotReadableError",e.ErrorAudioCaptureAsync="ErrorAudioCaptureAsync"}(r||(r={}))},89283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BatchTranscriptionClientError:()=>G,BatchTranscriptionClientErrorCode:()=>I,BatchTranscriptionClientRequest:()=>j,BatchTranscriptionClientRequestPoller:()=>z,CommandSuggestionClient:()=>N,DictationSettingsManager:()=>l.A,MicrophoneError:()=>F.J,SpeechToTextClient:()=>m.SpeechToTextClient,SpeechToTextResultType:()=>m.SpeechToTextResultType,VoiceCommandingClient:()=>D,VoiceSession:()=>L.VoiceSession,initializeBatchTranscriptionClient:()=>q,uninitializeBatchTranscriptionClient:()=>H});var r,o,s,i,a,c,l=n(71243),u=n(67524),d=n(48690),p=(function(){function e(t){d.h.assign(e,this,t)}Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_BaseVoiceCommandResult"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandResultV2"},e.getBaseTypes=function(){return["AugLoop_Voice_BaseVoiceCommandResult","AugLoop_Core_Annotation"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}()),f=(function(){function e(t){d.h.assign(e,this,t)}Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandInternalResult"},e.getBaseTypes=function(){return["AugLoop_Voice_BaseVoiceCommandResult","AugLoop_Core_Annotation"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandResultsInternalSignal"},e.getBaseTypes=function(){return["AugLoop_Signals_Signal"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandSuggestionInternalSignal"},e.getBaseTypes=function(){return["AugLoop_Signals_Signal"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}e.getTypeName=function(){return"AugLoop_Voice_VoiceDictationSessionInitiatedSignal"},e.getBaseTypes=function(){return["AugLoop_Signals_Signal"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_BaseVoiceCommandSuggestion"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandSuggestion"},e.getBaseTypes=function(){return["AugLoop_Voice_BaseVoiceCommandSuggestion","AugLoop_Core_Annotation"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){d.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandSuggestionResult"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return d.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}()),h=n(26302),g=n(18943),m=n(4462);!function(e){e.Persistent="Persistent",e.Discardable="Discardable"}(r||(r={})),function(e){e.NONE="none",e.BLANK="blankDocument",e.PARAGRAPH="paragraph",e.LIST="list",e.TABLE="table",e.WHATCANISAY="whatCanISay"}(o||(o={})),function(e){e.Final="Final",e.Fragment="Fragment",e.Hypothesis="Hypothesis"}(s||(s={})),function(e){e.Paragraph="paragraph",e.Sentence="sentence",e.Character="character",e.Word="word",e.That="that",e.This="this",e.Table="table",e.Row="row",e.Column="column",e.Cell="cell",e.Page="page",e.Bullet="bullet",e.To="to",e.Bcc="bcc",e.Cc="cc",e.Subject="subject",e.EmailBody="emailBody",e.Field="field",e.All="all"}(i||(i={})),function(e){e.Next="next",e.Last="last",e.Previous="previous",e.Current="current",e.Left="left",e.Right="right",e.Above="above",e.Below="below",e.Start="start",e.End="end",e.Up="up",e.Down="down",e.Before="before",e.After="after",e.Beginning="start"}(a||(a={})),function(e){e.Play="play",e.Pause="pause",e.Resume="resume"}(c||(c={}));var y,v,w=new Set([h.oJ.Paste,h.oJ.Redo]);!function(e){e.ZoomIn="Word.View.ZoomIn",e.ZoomOut="Word.View.ZoomOut",e.ShowOutline="Word.View.ShowOutline",e.ScrollUp="Word.View.ScrollUp",e.ScrollDown="Word.View.ScrollDown",e.ReadBack="Word.Editing.ReadBack",e.PageBreak="Word.Editing.PageBreak",e.SpellOut="Word.Editing.SpellOut",e.ShowSuggestions="Word.Editing.ShowSuggestions"}(y||(y={})),function(e){e.ReadBack="ReadBack",e.ChangeViews="ChangeViews",e.PageBreak="PageBreak",e.SpellOut="SpellOut",e.Discovery="Discovery"}(v||(v={}));var b=new Map([[v.ReadBack,new Set([y.ReadBack])],[v.ChangeViews,new Set([y.ZoomIn,y.ZoomOut,y.ShowOutline,y.ScrollDown,y.ScrollUp])],[v.PageBreak,new Set([y.PageBreak])],[v.SpellOut,new Set([y.SpellOut])],[v.Discovery,new Set([y.ShowSuggestions])]]),S=new Set([h.oJ.Bold,h.oJ.Italics,h.oJ.Underline,h.oJ.Highlight,h.oJ.Select,h.oJ.Superscript,h.oJ.Subscript,h.oJ.StrikeThrough,h.oJ.RemoveBold,h.oJ.RemoveItalics,h.oJ.RemoveUnderline,h.oJ.RemoveHighlight,h.oJ.RemoveSuperscript,h.oJ.RemoveSubscript,h.oJ.RemoveStrikeThrough,h.oJ.Delete,h.oJ.Quote,h.oJ.Navigation,h.oJ.AllCaps,h.oJ.LowerCase,h.oJ.SentenceCase]),T=Object.keys(y),C=Object.keys(h.oJ);function _(e){var t=new Set;return e.forEach((function(e){var n=b.get(e);null!=n&&n.forEach((function(e){t.add(e)}))})),t}var I,k=function(e){return!S.has(e.commandId)||!(e.selection&&A(e.selection,e.commandId))},A=function(e,t){return t===h.oJ.Navigation&&(e.which!==a.Next&&e.which!==a.Previous&&e.which!==a.End||e.type!==i.Word&&e.type!==i.Bullet&&e.type!==i.Sentence&&e.type!==i.Paragraph)},E=function(e){var t;return e.commandId===h.oJ.InsertComment&&(e.sourceText=(null===(t=null==e?void 0:e.comment)||void 0===t?void 0:t.commentCommand)||e.sourceText),e},R=n(42733),O=n(28782),P=n(70203),M=n(73413),x=n(58966),D=function(){function e(e,t,n,r,o){var s=this;this.initialized=!1,this.voiceCommandRequestToken=null,this.alRuntimeManager=e,this.fdVoiceCommandClientObserver=t,this.fdSpeechClientObserver=n,this.enableSetAnnotationsFromALVoiceClient=o,this.validVoiceCommands=function(e){for(var t=new Set,n=_(e),r=_(Object.keys(v)),o=0,s=C;o<s.length;o++){var i=s[o];r.has(h.oJ[i])&&!n.has(h.oJ[i])||w.has(h.oJ[i])||t.add(h.oJ[i])}for(var a=0,c=T;a<c.length;a++)i=c[a],n.has(y[i])&&r.has(y[i])&&t.add(y[i]);return t}(r),this.annotationObserver={onAnnotationResult:function(e){s.onAnnotationResult(e)}},this.workflowUsesCommandSets=!1}return e.prototype.initializeAsync=function(e){return(0,u.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,u.__generator)(this,(function(o){switch(o.label){case 0:return t=!!this.voiceCommandRequestToken,R.Hv.sendTraceTag(521417118,O.n.msoulscat_Wac_Dictation,P.k.Info,"VoiceCommandingClient.initializeAsync - initialized: ".concat(this.initialized,", annotationsActive: ").concat(t)),t?(R.Hv.sendTraceTag(521417117,O.n.msoulscat_Wac_Dictation,P.k.Warning,"Releasing old annotations"),[4,this.uninitializeAsync()]):[3,2];case 1:o.sent(),o.label=2;case 2:e&&(this.sessionTelemetry=e),o.label=3;case 3:return o.trys.push([3,5,,6]),n=this,[4,g.Rd(this.alRuntimeManager,p.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient)];case 4:return n.voiceCommandRequestToken=o.sent(),this.initialized=!0,[3,6];case 5:return("VoiceCommandingClient.initializeAsync - Activate Annotations - "+(r=o.sent()).message).includes("Timeout waiting for response")?this.fdSpeechClientObserver.onWarning(r):this.fdSpeechClientObserver.onError(r),[3,6];case 6:return[2]}}))}))},e.prototype.uninitializeAsync=function(){var e;return(0,u.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,u.__generator)(this,(function(o){switch(o.label){case 0:if(t=!!this.voiceCommandRequestToken,R.Hv.sendTraceTag(521417116,O.n.msoulscat_Wac_Dictation,P.k.Info,"VoiceCommandingClient.uninitializeAsync - initialized: ".concat(this.initialized,", annotationsActive: ").concat(t)),this.initialized=!1,!t)return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.yw(this.alRuntimeManager,[this.voiceCommandRequestToken])];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),r="VoiceCommandingClient.uninitializeAsync - Release Annotations - "+n.message,null===(e=this.sessionTelemetry)||void 0===e||e.onAugloopError(r),R.Hv.sendTraceTag(521417115,O.n.msoulscat_Wac_Dictation,P.k.Error,"VoiceCommandingClient.uninitializeAsync - Release Annotations - Error message: "+r+" - Error stack: "+n.stack),[3,4];case 4:this.voiceCommandRequestToken=null,o.label=5;case 5:return[2]}}))}))},e.prototype.getAnnotationObserver=function(){return this.annotationObserver},e.prototype.onAnnotationResult=function(e){var t=this;g.Jh(e,p.getTypeName()).forEach((function(e){t.handleCommandResult(e.body)}))},e.prototype.handleCommandResult=function(e){var t,n,r,o,s,i,a,c;(null===(n=null===(t=e.textAnnotation)||void 0===t?void 0:t.properties)||void 0===n?void 0:n.commandSet)&&e.textAnnotation.properties.commandSet.length>0&&(this.workflowUsesCommandSets=!0),e.error&&this.sessionTelemetry&&this.sessionTelemetry.onCommandError("handleCommandResult:".concat(e.error));for(var l,u=null===(o=null===(r=e.textAnnotation.properties)||void 0===r?void 0:r.JsonResult)||void 0===o?void 0:o.Id,d=0,p=e.commandList;d<p.length;d++){var f=p[d],g=!((l=f.commandId)===h.oJ.Correction||l===h.oJ.CorrectionOption)||this.workflowUsesCommandSets,y=this.validVoiceCommands.has(f.commandId)&&k(f)&&g;if(y||(0,M.Ot)({name:"Office.Voice.Online.UnsupportedCommandReceived",dataFields:[{name:"PhraseID",string:u},{name:"ConnectionID",string:null===(s=this.sessionTelemetry)||void 0===s?void 0:s.connectionID},{name:"SessionID",string:null===(i=this.sessionTelemetry)||void 0===i?void 0:i.sessionID},{name:"CommandID",string:f.commandId},{name:"CommandVersion",int64:f.ver}]}),f.commandId!==h.oJ.InsertText&&y){var v=E(f);this.fdVoiceCommandClientObserver.onVoiceCommand(v,u),(0,x.iP)("Microsoft.Office.WordOnline.DictationUserPerceivedLatencies",!1)||(0,x.iP)("Microsoft.Office.OneNoteOnline.DictationUserPerceivedLatencies",!1)?this.sessionTelemetry&&m.SpeechToTextClient.logPhraseId("final",this.sessionTelemetry,e.textAnnotation):m.SpeechToTextClient.logPhraseId_old(u,null===(a=this.sessionTelemetry)||void 0===a?void 0:a.connectionID,null===(c=this.sessionTelemetry)||void 0===c?void 0:c.sessionID,"final")}else(0,m.sendSpeechToTextFinalResultToSpeechClientObserver)(this.fdSpeechClientObserver,e.textAnnotation,f.sourceText,this.sessionTelemetry)}},e}(),N=function(){function e(e,t,n){var r=this;this.initialized=!1,this.commandSuggestionRequestToken=null,this.alRuntimeManager=e,this.commandSuggestionManagerObserver=t,this.enableSetAnnotationsFromALVoiceClient=n,this.annotationObserver={onAnnotationResult:function(e){r.onAnnotationResult(e)}}}return e.prototype.initializeAsync=function(e){return(0,u.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,u.__generator)(this,(function(o){switch(o.label){case 0:return t=null!==this.commandSuggestionRequestToken,R.Hv.sendTraceTag(521417160,O.n.msoulscat_Wac_Dictation,P.k.Info,"CommandSuggestionClient.initializeAsync - initialized: ".concat(this.initialized,", annotationsActive: ").concat(t)),t?(R.Hv.sendTraceTag(521417159,O.n.msoulscat_Wac_Dictation,P.k.Warning,"Releasing old annotations"),[4,this.uninitializeAsync()]):[3,2];case 1:o.sent(),o.label=2;case 2:e&&(this.sessionTelemetry=e),o.label=3;case 3:return o.trys.push([3,5,,6]),n=this,[4,g.Rd(this.alRuntimeManager,f.getTypeName(),this.annotationObserver,this.enableSetAnnotationsFromALVoiceClient)];case 4:return n.commandSuggestionRequestToken=o.sent(),this.initialized=!0,[3,6];case 5:return r=o.sent(),"CommandSuggestionClient.initializeAsync - Activate Annotations - ".concat(r.message).includes("Timeout waiting for response")?this.commandSuggestionManagerObserver.onWarning(r):this.commandSuggestionManagerObserver.onError(r),[3,6];case 6:return[2]}}))}))},e.prototype.uninitializeAsync=function(){var e;return(0,u.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,u.__generator)(this,(function(o){switch(o.label){case 0:if(t=null!==this.commandSuggestionRequestToken,R.Hv.sendTraceTag(521417158,O.n.msoulscat_Wac_Dictation,P.k.Info,"CommandSuggestionClient.uninitializeAsync - initialized: ".concat(this.initialized,", annotationsActive: ").concat(t)),this.initialized=!1,!t)return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.yw(this.alRuntimeManager,[this.commandSuggestionRequestToken])];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),r="CommandSuggestionClient.uninitializeAsync - Release Annotations - ".concat(n.message),null===(e=this.sessionTelemetry)||void 0===e||e.onAugloopError(r),R.Hv.sendTraceTag(521417157,O.n.msoulscat_Wac_Dictation,P.k.Error,"CommandSuggestionClient.uninitializeAsync - Release Annotations - Error message: "+r+" - Error stack: "+n.stack),[3,4];case 4:this.commandSuggestionRequestToken=null,o.label=5;case 5:return[2]}}))}))},e.prototype.getAnnotationObserver=function(){return this.annotationObserver},e.prototype.onAnnotationResult=function(e){var t=this;g.Jh(e,f.getTypeName()).forEach((function(e){t.commandSuggestionManagerObserver.onCommandSuggestion(e.body)}))},e}(),L=n(50878),F=n(96644),B=n(92e3),W=n(15041),U=n(34840);!function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.UNSUPPORTED_FILE_FORMAT="UNSUPPORTED_FILE_FORMAT",e.INVALID_REQUEST="INVALID_REQUEST",e.REQUEST_DISPOSED="REQUEST_DISPOSED",e.POLLER_DISPOSED="POLLER_DISPOSED",e.PROCESSING="PROCESSING",e.DELETED="DELETED",e.FILE_NOT_EXIST="FILE_NOT_EXIST",e.FILE_DECODE_ERROR="FILE_DECODE_ERROR",e.REQUEST_TIMEOUT_ERROR="REQUEST_TIMEOUT_ERROR"}(I||(I={}));var G=function(e){function t(t,n){var r=e.call(this,n)||this;return r.code=t,r}return(0,u.__extends)(t,e),t}(Error),V=[];function q(e,t,n){return(0,u.__awaiter)(this,void 0,void 0,(function(){var r,o;return(0,u.__generator)(this,(function(s){switch(s.label){case 0:return o=(r=V).push,[4,g.Rd(e,B.U1.getTypeName(),t,n)];case 1:return o.apply(r,[s.sent()]),g.c(e,"",(0,U.v4)()),[2]}}))}))}function H(e){return g.yw(e,V)}var j=function(){function e(e,t,n,r,o){this.getResultCallbacks=null,this.conversationId=t,this.corelationId=n,this.alRuntimeManager=e,this.speechFdUrl=r,this.logMessage=o}return e.prototype.makeRequest=function(){var e=this;if(null!==this.getResultCallbacks)throw new G(I.INVALID_REQUEST,"getResult can only be called once per instance. If you want to make another request, create another instance.");return new Promise((function(t,n){var r=(0,U.v4)();R.Hv.sendTraceTag(520435273,O.n.msoulscat_Wac_Dictation,P.k.Info,"Request tile submitted with requestId ".concat(r,", conversationId ").concat(e.conversationId,", correlation Id ").concat(e.corelationId,".")),g.c(e.alRuntimeManager,e.conversationId,r,e.corelationId,e.speechFdUrl),e.getResultCallbacks={resolve:t,reject:n,requestId:r}}))},e.prototype.dispose=function(){null!=this.getResultCallbacks&&this.getResultCallbacks.reject(new G(I.REQUEST_DISPOSED,"Caller disposed the BatchTranscriptionClientRequest instance")),this.getResultCallbacks=null},e.prototype.onAnnotationResult=function(e){var t=this,n=g.Jh(e,B.U1.getTypeName()),r=e.parentPath[e.parentPath.length-1];n.forEach((function(e){var n=e.body;if(null!=t.getResultCallbacks&&t.getResultCallbacks.requestId===r){try{!function(e){if(e.errorCode)throw R.Hv.sendTraceTag(520435270,O.n.msoulscat_Wac_Dictation,P.k.Warning,"The result error code received in on AnnotationsResultcall back is ".concat(e.errorCode,".")),new G(function(e){switch(e){case W.sP.UNSUPPORTED_FILE_FORMAT:return I.UNSUPPORTED_FILE_FORMAT;case W.sP.PROCESSING:return I.PROCESSING;case W.sP.FILE_NOT_EXIST:return I.FILE_NOT_EXIST;case W.sP.FILE_DECODE_ERROR:return I.FILE_DECODE_ERROR;case W.sP.DELETED:return I.DELETED;case W.sP.REQUEST_TIMEOUT_ERROR:return I.REQUEST_TIMEOUT_ERROR;default:return I.UNKNOWN_ERROR}}(e.errorCode),e.errorMessage)}(n)}catch(e){if(t.getResultCallbacks.reject(e),e.errorCode===I.FILE_NOT_EXIST||e.errorCode===I.FILE_DECODE_ERROR||e.code===I.DELETED)throw e}try{R.Hv.sendTraceTag(520435272,O.n.msoulscat_Wac_Dictation,P.k.Info,"Parsing batch transcription result segments for request Id ".concat(r,", error message ").concat(n.errorMessage,"."));var o=function(e){if(!e.transcriptionsJson)throw new G(I.UNKNOWN_ERROR,"Received invalid transcriptionsJson");return JSON.parse(e.transcriptionsJson).map((function(e){return{offsetInTicks:e.offsetInTicks,durationInTicks:e.durationInTicks,userId:e.userId,text:e.text}}))}(n);t.getResultCallbacks.resolve({transcriptSegments:o})}catch(e){R.Hv.sendTraceTag(520435271,O.n.msoulscat_Wac_Dictation,P.k.Warning,"Batch transcription result segments failed for request Id ".concat(r,", error message ").concat(e.message,".")),t.getResultCallbacks.reject(new G(I.UNKNOWN_ERROR,"Error parsing workflow response "+e.message))}}else n.conversationId===t.conversationId&&t.logMessage&&t.logMessage("Dropped response for conversation ID that didn't belong to this request. Should we reuse results for the same conversation ID across requests?")}))},e}(),z=function(){function e(e,t,n,r,o,s){this.isDisposed=!1,this.lastRequest=null,this.pollingDelayMilliseconds=e,this.conversationId=n,this.corelationId=r,this.alRuntimeManager=t,this.speechFdUrl=o,this.logMessage=s}return e.prototype.makeRequest=function(){return(0,u.__awaiter)(this,void 0,void 0,(function(){var e,t;return(0,u.__generator)(this,(function(n){switch(n.label){case 0:e=null,n.label=1;case 1:return null==e?[3,3]:[4,(r=this.pollingDelayMilliseconds,new Promise((function(e){setTimeout(e,r)})))];case 2:n.sent(),n.label=3;case 3:return this.throwIfDisposed(),[4,this.alRuntimeManager.getSession()];case 4:if(!1===n.sent().isConnected)return R.Hv.sendTraceTag(521417155,O.n.msoulscat_Wac_Dictation,P.k.Warning,"augloopSession isConnected is false, skipping BatchTranscriptionClient request to next turn."),[3,8];this.lastRequest=new j(this.alRuntimeManager,this.conversationId,this.corelationId,this.speechFdUrl,this.logMessage),n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.lastRequest.makeRequest()];case 6:return[2,n.sent()];case 7:return(t=n.sent()).code===I.REQUEST_DISPOSED&&this.throwIfDisposed(),e=t,[3,8];case 8:if(e.code===I.PROCESSING)return[3,1];n.label=9;case 9:throw e}var r}))}))},e.prototype.onAnnotationResult=function(e){null!=this.lastRequest&&this.lastRequest.onAnnotationResult(e)},e.prototype.dispose=function(){this.isDisposed=!0,null!=this.lastRequest&&this.lastRequest.dispose()},e.prototype.throwIfDisposed=function(){if(this.isDisposed)throw R.Hv.sendTraceTag(520435269,O.n.msoulscat_Wac_Dictation,P.k.Warning,"Caller disposed the BatchTranscriptionClientPoller instance."),new G(I.POLLER_DISPOSED,"Caller disposed the BatchTranscriptionClientPoller instance")},e}()},31193:(e,t,n)=>{"use strict";n.d(t,{FA:()=>o,b2:()=>r,eG:()=>s});var r=16e3,o=16,s=function(e,t){var n=i(e,t,r),o=new ArrayBuffer(2*n.length),s=new DataView(o);return a(s,0,n),s},i=function(e,t,n){if(n===t||n>t)return e;if(null==e)return new Float32Array(0);for(var r=t/n,o=Math.round(e.length/r),s=new Float32Array(o),i=0,a=0;a<o;){for(var c=Math.round((a+1)*r),l=0,u=0;i<c&&i<e.length;)l+=e[i],i+=1,u+=1;s[a]=l/u,a+=1}return s},a=function(e,t,n){for(var r=0,o=t;r<n.length;r+=1,o+=2){var s=Math.max(-1,Math.min(1,n[r]));e.setInt16(o,s<0?32768*s:32767*s,!0)}}},18943:(e,t,n)=>{"use strict";n.d(t,{yA:()=>r,Rd:()=>m,Yf:()=>w,Jh:()=>C,yw:()=>y,j9:()=>v,rq:()=>S,c:()=>T,vh:()=>b});var r,o=n(67524),s=n(38897),i=n(13407),a=n(48690),c=function(){function e(t){a.h.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Voice_VoiceTile"},e.getBaseTypes=function(){return["AugLoop_Core_Binary"]},e.typeGuard=function(t){return a.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}(),l=(function(){function e(t){a.h.assign(e,this,t)}e.getTypeName=function(){return"AugLoop_Voice_VoiceLatencyInput"},e.getBaseTypes=function(){return[]},e.typeGuard=function(t){return a.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){a.h.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Voice_BatchTranscriptionConversation"},e.getBaseTypes=function(){return[]},e.typeGuard=function(t){return a.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}()),u=n(31193),d=n(42733),p=n(28782),f=n(70203),h=0;!function(e){e.ErrorAugloopActivateAnnotations="ErrorAugloopActivateAnnotations"}(r||(r={}));var g=function(e,t,n){var r=new s.VR({item:{id:h.toString(),body:t}});e.submitCustomMessage({message:r}).catch((function(e){var t,r;(null==n?void 0:n.onTileSubmitFailed)&&n.onTileSubmitFailed();var o=null!==(r=null!==(t=null==e?void 0:e.error)&&void 0!==t?t:null==e?void 0:e.message)&&void 0!==r?r:null==e?void 0:e.toString();switch(o){case"Timeout waiting for response":case"Cancelled":case"Message is dropped as oldest in full queue":return;default:d.Hv.sendTraceTag(537670429,p.n.msoulscat_Wac_Dictation,f.k.Error,"submitVoiceTile error: ".concat(S(o)))}}))},m=function(e,t,n,r){return(0,o.__awaiter)(void 0,void 0,void 0,(function(){var s,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return d.Hv.sendTraceTag(546116576,p.n.msoulscat_Wac_Dictation,f.k.Info,"Start to activate annotations of: "+t),r?[4,e.activateAnnotation({annotationType:t,handler:function(e){n&&n.onAnnotationResult(e)}})]:[3,2];case 1:return i=o.sent(),[3,4];case 2:return[4,e.activateAnnotation({annotationType:t})];case 3:i=o.sent(),o.label=4;case 4:return(s=i)||d.Hv.sendTraceTag(522847265,p.n.msoulscat_Wac_Dictation,f.k.Error,"activateAnnotationAsync: Missing activationResult!"),[2,null==s?void 0:s.token]}}))}))},y=function(e,t){return(0,o.__awaiter)(void 0,void 0,void 0,(function(){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return d.Hv.sendTraceTag(521184837,p.n.msoulscat_Wac_Dictation,f.k.Info,"Releasing annotation tokens: ".concat(t)),n=t.map((function(t){return d.Hv.sendTraceTag(546116577,p.n.msoulscat_Wac_Dictation,f.k.Info,"Start to release annotation of: "+t),t?e.releaseAnnotation({token:t}).catch((function(e){d.Hv.sendTraceTag(521184836,p.n.msoulscat_Wac_Dictation,f.k.Error,"Failed to release annotation ".concat(t,": ").concat(e.message))})):Promise.resolve()})),[4,Promise.all(n)];case 1:return r.sent(),[2]}}))}))},v=function(e,t,n,r,o,s){var i=n.dictationLanguage,a=n.useAutoPunctuation,l=n.useCorrections,m=n.useVoiceCommands;d.Hv.sendTraceTag(537670427,p.n.msoulscat_Wac_Dictation,f.k.Info,"Sending empty warm-up tile, seq: ".concat(h,", dictationLanguage: ").concat(i,", useAutoPunctuation: ").concat(a,", useCorrections: ").concat(l,", useVoiceCommands: ").concat(m,", speechToTextProfile: ").concat(o));var y=new c({sampleRate:u.b2,useFrontdoorWorkflow:t,seq:h,dictationSettings:n,responseVersion:r,speechToTextProfile:o,commandSet:["warm-up"]});g(e,y,s),h+=1},w=function(e,t,n,r){d.Hv.sendTraceTag(537670428,p.n.msoulscat_Wac_Dictation,f.k.Info,"Sending empty tile with endVoiceSession:true, seq: ".concat(h));var o=new c({endVoiceSession:!0,sampleRate:u.b2,useFrontdoorWorkflow:t,seq:h,dictationSettings:n});g(e,o,r),h+=1},b=function(e,t,n,r,o,s,i,a,l){void 0===l&&(l=[]);var u=new c({sampleRate:n,useFrontdoorWorkflow:r,seq:h,dictationSettings:o,responseVersion:s,data:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),speechToTextProfile:i,commandSet:l});return g(e,u,a),h+=1,u},S=function(e){var t="".concat(e).trimLeft();if(t.startsWith("[object "))try{var n=(null==e?void 0:e.name)&&(null==e?void 0:e.message)?"".concat(e.name,": ").concat(e.message):(null==e?void 0:e.message)?e.message:(null==e?void 0:e.name)?e.name:JSON.stringify(e);return n?t+" "+n:t}catch(e){var r="stringifyException error: ".concat(e.name,": ").concat(e.message);return d.Hv.sendTraceTag(526989504,p.n.msoulscat_Wac_Dictation,f.k.Error,r),t+" "+r}return t};function T(e,t,n,r,o){var s=new i.Xr({parentPath:["session"],items:[{id:n,body:new l({conversationId:t,speechFDUrl:o,corelationId:r})}]});e.submitOperation({operation:s})}var C=function(e,t){return a.h.getTypeNameFor(e)!==i.Xr.getTypeName()&&a.h.getTypeNameFor(e)!==i.fZ.getTypeName()||0===e.items.length?[]:e.items.filter((function(e){return e.body&&a.h.getTypeNameFor(e.body)===t}))}},58966:(e,t,n)=>{"use strict";n.d(t,{iP:()=>r});var r=function(e,t){return void 0===t&&(t=!1),t}},73413:(e,t,n)=>{"use strict";n.d(t,{Ot:()=>c});var r,o,s=!1,i=[],a=2e4;function c(e){!function(e){s&&(r?r(e):!(i.length<=a)||i.push(e))}({kind:"event",event:e,timestamp:(new Date).getTime()})}!function(e){e.Count="Count",e.Avg="Avg",e.Sum="Sum"}(o||(o={}))},28782:(e,t,n)=>{"use strict";var r;n.d(t,{n:()=>r}),function(e){e[e.msoulscat_ES_EWAJS=0]="msoulscat_ES_EWAJS",e[e.msoulscat_ES_EWAJSGrid=1]="msoulscat_ES_EWAJSGrid",e[e.msoulscat_ES_EWAJSChart=6]="msoulscat_ES_EWAJSChart",e[e.msoulscat_MSOSP_FileMenuCommands=202]="msoulscat_MSOSP_FileMenuCommands",e[e.msoulscat_MSOSP_AddInCommands=220]="msoulscat_MSOSP_AddInCommands",e[e.msoulscat_MSOSP_OTelJS=225]="msoulscat_MSOSP_OTelJS",e[e.msoulscat_MSOSP_OTelJSInWebWoker=227]="msoulscat_MSOSP_OTelJSInWebWoker",e[e.msoulscat_MSOSP_OTelJSWebWorkerPrototype=228]="msoulscat_MSOSP_OTelJSWebWorkerPrototype",e[e.msoulscat_Wac_WordViewer=301]="msoulscat_Wac_WordViewer",e[e.msoulscat_Wac_BrowserGeneral=306]="msoulscat_Wac_BrowserGeneral",e[e.msoulscat_Wac_TaskPane=320]="msoulscat_Wac_TaskPane",e[e.msoulscat_Wac_OneNoteGeneral=339]="msoulscat_Wac_OneNoteGeneral",e[e.msoulscat_Wac_Ribbon=340]="msoulscat_Wac_Ribbon",e[e.msoulscat_Wac_WacFeedback=356]="msoulscat_Wac_WacFeedback",e[e.msoulscat_Wac_WopiPendingApplication=379]="msoulscat_Wac_WopiPendingApplication",e[e.msoulscat_Wac_Telemetry=383]="msoulscat_Wac_Telemetry",e[e.msoulscat_Wac_WacCatchUpActivities=391]="msoulscat_Wac_WacCatchUpActivities",e[e.msoulscat_Wac_Dictation=394]="msoulscat_Wac_Dictation",e[e.msoulscat_Wac_OneNoteSync=395]="msoulscat_Wac_OneNoteSync",e[e.msoulscat_Wac_VisioApp=700]="msoulscat_Wac_VisioApp",e[e.msoulscat_OneNoteOnline_EditableCache=1601]="msoulscat_OneNoteOnline_EditableCache",e[e.msoulscat_Wac_PptAnimation=800]="msoulscat_Wac_PptAnimation",e[e.msoulscat_Wac_PptLive=833]="msoulscat_Wac_PptLive",e[e.msoulscat_Wac_PptMWeb=834]="msoulscat_Wac_PptMWeb",e[e.msoulscat_Wac_PptDataSync=844]="msoulscat_Wac_PptDataSync",e[e.msoulscat_Wac_PptFluidRuntime=848]="msoulscat_Wac_PptFluidRuntime",e[e.msoulscat_Wac_PptShape=815]="msoulscat_Wac_PptShape",e[e.msoulscat_Wac_PptSession=817]="msoulscat_Wac_PptSession",e[e.msoulscat_Wac_PptSlideshow=830]="msoulscat_Wac_PptSlideshow",e[e.msoulscat_Wac_PptView=822]="msoulscat_Wac_PptView",e[e.msoulscat_Wac_PptVideos=846]="msoulscat_Wac_PptVideos",e[e.msoulscat_Uci_Insights=1303]="msoulscat_Uci_Insights",e[e.msoulscat_Wac_VersionHistory=2300]="msoulscat_Wac_VersionHistory",e[e.msoulscat_Wac_WordPresence=302]="msoulscat_Wac_WordPresence",e[e.msoulscat_Wac_OAuth=3e3]="msoulscat_Wac_OAuth",e[e.msoulscat_Wac_WordVersionHistory=3005]="msoulscat_Wac_WordVersionHistory",e[e.msoulscat_Wac_LivePersonaCard=3006]="msoulscat_Wac_LivePersonaCard",e[e.msoulscat_Wac_CatchUpFlyout=3012]="msoulscat_Wac_CatchUpFlyout",e[e.msoulscat_Wac_WordDesigner=3016]="msoulscat_Wac_WordDesigner",e[e.msoulscat_Wac_ModernFontPicker=3021]="msoulscat_Wac_ModernFontPicker",e[e.msoulscat_Wac_UnifiedUiHost=3027]="msoulscat_Wac_UnifiedUiHost",e[e.msoulscat_Wac_EquationTools=3033]="msoulscat_Wac_EquationTools",e[e.msoulscat_Osf_Latency=1401]="msoulscat_Osf_Latency",e[e.msoulscat_Osf_Notification=1402]="msoulscat_Osf_Notification",e[e.msoulscat_Osf_Runtime=1403]="msoulscat_Osf_Runtime",e[e.msoulscat_Wac_AiMaker=3041]="msoulscat_Wac_AiMaker",e[e.msoulscat_Wac_AiRewrite=3043]="msoulscat_Wac_AiRewrite",e[e.msoulscat_Wac_AiInsert=3044]="msoulscat_Wac_AiInsert",e[e.msoulscat_Wac_AiSummarize=3047]="msoulscat_Wac_AiSummarize",e[e.msoulscat_Wac_CopilotCompose=3048]="msoulscat_Wac_CopilotCompose",e[e.msoulscat_Wac_Skittles=3049]="msoulscat_Wac_Skittles"}(r||(r={}))},70203:(e,t,n)=>{"use strict";var r;n.d(t,{k:()=>r}),function(e){e[e.Error=10]="Error",e[e.Warning=15]="Warning",e[e.Important=20]="Important",e[e.Info=50]="Info",e[e.Verbose=100]="Verbose",e[e.Spam=200]="Spam"}(r||(r={}))},42733:(e,t,n)=>{"use strict";n.d(t,{Hv:()=>o});var r=function(){function e(){}return e.prototype.sendTraceTag=function(){},e.prototype.shipAssertTag=function(){},e.prototype.debugAssertTag=function(){},e.prototype.setCorrelationId=function(){},e}(),o=new(function(){function e(){this.externalLogger=new r}return e.prototype.setCorrelationId=function(e){this.externalLogger.setCorrelationId(e)},e.prototype.setLogger=function(e){this.externalLogger=e},e.prototype.sendTraceTag=function(e,t,n,r){this.externalLogger.sendTraceTag(e,t,n,r)},e.prototype.debugAssertTag=function(e,t,n,r){this.externalLogger.debugAssertTag(e,t,n,r)},e.prototype.shipAssertTag=function(e,t,n,r){this.externalLogger.shipAssertTag(e,t,n,r)},e}())},37247:(e,t,n)=>{"use strict";var r,o,s,i,a;n.d(t,{Av:()=>i,OY:()=>r,Om:()=>s,rN:()=>a,ut:()=>o}),function(e){e[e.EditorLowPrivilege=0]="EditorLowPrivilege",e[e.AugLoopLowPrivilege=1]="AugLoopLowPrivilege",e[e.Anonymous=2]="Anonymous",e[e.ClientAssertion=3]="ClientAssertion",e[e.ClientAssertionV2=4]="ClientAssertionV2",e[e.AutoClpLowPrivilege=5]="AutoClpLowPrivilege",e[e.AutoClpAppOnlyLowPrivilege=6]="AutoClpAppOnlyLowPrivilege",e[e.Substrate=7]="Substrate",e[e.WacUserInfo=8]="WacUserInfo",e[e.OwaExchange=9]="OwaExchange",e[e.SmartCompose=10]="SmartCompose",e[e.WritingAnalyticsLowPrivilege=11]="WritingAnalyticsLowPrivilege",e[e.DWEngineLowPrivilege=12]="DWEngineLowPrivilege",e[e.SubstrateApp=13]="SubstrateApp",e[e.CortanaAppPop=14]="CortanaAppPop",e[e.OfficeAppsAppOnly=15]="OfficeAppsAppOnly",e[e.PPTFrontdoorAppPop=16]="PPTFrontdoorAppPop",e[e.EditorAppOnlyLowPrivilege=17]="EditorAppOnlyLowPrivilege",e[e.AugLoopApp=18]="AugLoopApp",e[e.MeetingIntelligenceApp=19]="MeetingIntelligenceApp",e[e.GraphApp=20]="GraphApp",e[e.IceServicesApp=21]="IceServicesApp",e[e.AzureMapsApp=22]="AzureMapsApp",e[e.SpoApp=23]="SpoApp",e[e.OneDrive=24]="OneDrive",e[e.GoogleDrive=25]="GoogleDrive",e[e.GettyApp=26]="GettyApp",e[e.Dropbox=27]="Dropbox",e[e.GooglePhotos=28]="GooglePhotos",e[e.EditorApp=29]="EditorApp",e[e.AmazonKindle=30]="AmazonKindle",e[e.ShredderApp=31]="ShredderApp",e[e.FormsLowPrivilege=32]="FormsLowPrivilege",e[e.VivaSalesLowPrivilege=33]="VivaSalesLowPrivilege",e[e.IntentSvcApp=34]="IntentSvcApp",e[e.DcgLowPrivilege=35]="DcgLowPrivilege",e[e.CSALowPrivilege=36]="CSALowPrivilege",e[e.ConsumerSydneyLowPrivilege=37]="ConsumerSydneyLowPrivilege",e[e.CompliantSydneyApp=38]="CompliantSydneyApp",e[e.M365AdminApp=39]="M365AdminApp",e[e.MeetingArtifactsServiceLowPrivilege=40]="MeetingArtifactsServiceLowPrivilege",e[e.AlchemyApp=41]="AlchemyApp",e[e.M365Admin=42]="M365Admin",e[e.ConsumerShellApp=43]="ConsumerShellApp",e[e.PowerQueryLowPrivilege=44]="PowerQueryLowPrivilege",e[e.CIIApp=45]="CIIApp",e[e.ConsumerShell=46]="ConsumerShell",e[e.AssistCopilotLowPrivilege=47]="AssistCopilotLowPrivilege",e[e.Pva=48]="Pva",e[e.TeamsCopilotServiceLowPrivilege=49]="TeamsCopilotServiceLowPrivilege",e[e.CallAnalytics=50]="CallAnalytics",e[e.IncomingPFT=51]="IncomingPFT",e[e.GraphExchange=52]="GraphExchange",e[e.EXOAdmin=53]="EXOAdmin",e[e.InsightsServicesLowPrivilege=54]="InsightsServicesLowPrivilege",e[e.VivaServicesLowPrivilege=55]="VivaServicesLowPrivilege",e[e.EcsAppOnly=56]="EcsAppOnly",e[e.ShredderLowPrivilege=57]="ShredderLowPrivilege",e[e.SpoLowPrivilege=58]="SpoLowPrivilege",e[e.PromptValidationApp=59]="PromptValidationApp",e[e.CompliantSydneyLowPrivilege=60]="CompliantSydneyLowPrivilege",e[e.SubstrateTenantFeedbackApp=61]="SubstrateTenantFeedbackApp",e[e.MonitoringPlatform=62]="MonitoringPlatform",e[e.YammerLowPrivilege=63]="YammerLowPrivilege",e[e.VivaLearningLowPrivilege=64]="VivaLearningLowPrivilege",e[e.VivaInsightsLowPrivilege=65]="VivaInsightsLowPrivilege",e[e.ClientAugLoopApp=66]="ClientAugLoopApp",e[e.AssistAuthLowPrivilege=67]="AssistAuthLowPrivilege",e[e.VivaLearningSearchPreProdLowPrivilege=68]="VivaLearningSearchPreProdLowPrivilege",e[e.SubstrateSearchApp=69]="SubstrateSearchApp",e[e.SparkContentPlatformLowPrivilege=70]="SparkContentPlatformLowPrivilege",e[e.SparkContentPlatformPopApp=71]="SparkContentPlatformPopApp",e[e.ConsumerSydneyApp=72]="ConsumerSydneyApp",e[e.BusinessAssistAuthLowPrivilege=73]="BusinessAssistAuthLowPrivilege",e[e.AzureResourceManager=74]="AzureResourceManager",e[e.AlchemyPortal=75]="AlchemyPortal",e[e.VivaUserSkillsApp=76]="VivaUserSkillsApp",e[e.VivaEngageAppPop=77]="VivaEngageAppPop",e[e.SubstrateAppOnly=78]="SubstrateAppOnly",e[e.PowerAutomateFlowCreationLowPrivilege=79]="PowerAutomateFlowCreationLowPrivilege",e[e.PowerAutomateConnectionCreationLowPrivilege=80]="PowerAutomateConnectionCreationLowPrivilege",e[e.PowerAutomateAuthorizeConnectionLowPrivilege=81]="PowerAutomateAuthorizeConnectionLowPrivilege",e[e.TCAAppPop=82]="TCAAppPop",e[e.BusinessAssistAuthAppPop=83]="BusinessAssistAuthAppPop",e[e.HolmesApp=84]="HolmesApp",e[e.GraphAppOnly=85]="GraphAppOnly",e[e.SimsApp=86]="SimsApp",e[e.VivaOrgInsightsLowPrivilege=87]="VivaOrgInsightsLowPrivilege",e[e.VivaGoalsAppPop=88]="VivaGoalsAppPop",e[e.GCBotAppPop=89]="GCBotAppPop",e[e.ShredderV2App=90]="ShredderV2App",e[e.ShredderV2LowPrivilege=91]="ShredderV2LowPrivilege",e[e.AmplifyProfileService=92]="AmplifyProfileService",e[e.AzureDevopsLowPrivilege=93]="AzureDevopsLowPrivilege",e[e.CommuteServices=94]="CommuteServices",e[e.GCBotAppOnly=95]="GCBotAppOnly",e[e.TCAAppOnly=96]="TCAAppOnly",e[e.MavenAgentLowPrivilege=97]="MavenAgentLowPrivilege",e[e.VivaOrgInsightsAppPop=98]="VivaOrgInsightsAppPop",e[e.EduAssignmentsPftAtPop=99]="EduAssignmentsPftAtPop",e[e.AugloopAppPop=100]="AugloopAppPop",e[e.OneNoteLowPrivilege=101]="OneNoteLowPrivilege",e[e.TeamsAuthzSvcAppPop=102]="TeamsAuthzSvcAppPop",e[e.LoopAppPop=103]="LoopAppPop",e[e.LoopAppOnly=104]="LoopAppOnly",e[e.BapLowPrivilege=105]="BapLowPrivilege",e[e.IC3AppPop=106]="IC3AppPop",e[e.PowerPlatformApiGateway=107]="PowerPlatformApiGateway",e[e.OdspNotifyAppPop=108]="OdspNotifyAppPop",e[e.MIPSyncService=109]="MIPSyncService",e[e.RightsManagementServices=110]="RightsManagementServices",e[e.TCAV2AppPop=111]="TCAV2AppPop",e[e.SubstrateLLMLowPrivilege=112]="SubstrateLLMLowPrivilege",e[e.SubstrateSearchLowPrivilege=113]="SubstrateSearchLowPrivilege",e[e.CloudPolicyServiceAppPop=114]="CloudPolicyServiceAppPop",e[e.TCAV2LowPrivilege=115]="TCAV2LowPrivilege",e[e.AiHubServicesAppPop=116]="AiHubServicesAppPop",e[e.TMRAppOnly=117]="TMRAppOnly",e[e.PacmanAppPop=118]="PacmanAppPop",e[e.AugloopAlternativeIdentity=119]="AugloopAlternativeIdentity",e[e.SpoAppOnly=120]="SpoAppOnly",e[e.DataverseLowPrivilege=121]="DataverseLowPrivilege",e[e.SubstrateLLMApp=122]="SubstrateLLMApp",e[e.SimsAppOnly=123]="SimsAppOnly",e[e.PythonService=124]="PythonService",e[e.PythonServiceAppOnly=125]="PythonServiceAppOnly",e[e.DesignerAppServiceLowPrivilege=126]="DesignerAppServiceLowPrivilege",e[e.DesignerAppServiceAppPop=127]="DesignerAppServiceAppPop",e[e.AmplifyProfileServiceAppOnly=128]="AmplifyProfileServiceAppOnly",e[e.MARSAppPop=129]="MARSAppPop",e[e.PlannerAppPop=130]="PlannerAppPop",e[e.BingForBusinessLowPrivilege=131]="BingForBusinessLowPrivilege",e[e.OLS=132]="OLS",e[e.OLSAppPop=133]="OLSAppPop",e[e.GCS=134]="GCS",e[e.AugLoopConsumer=135]="AugLoopConsumer",e[e.ContentValidationServiceAppOnly=136]="ContentValidationServiceAppOnly",e[e.FabricLowPrivilege=137]="FabricLowPrivilege",e[e.FeatureAccessManagementAppPop=138]="FeatureAccessManagementAppPop"}(r||(r={})),function(e){e[e.Unknown=0]="Unknown",e[e.Consumer=1]="Consumer",e[e.Enterprise=2]="Enterprise"}(o||(o={})),function(e){e[e.Default=0]="Default",e[e.EDPSCompliant=1]="EDPSCompliant"}(s||(s={})),function(e){e.AuthorizationCode="authorization_code",e.ClientCredentials="client_credentials",e.RefreshToken="refresh_token"}(i||(i={})),function(e){e[e.LoggedIn=0]="LoggedIn",e[e.LoggedOut=1]="LoggedOut"}(a||(a={}))},7014:(e,t,n)=>{"use strict";var r;n.d(t,{q:()=>r}),function(e){e[e.error=0]="error",e[e.warn=1]="warn",e[e.info=3]="info",e[e.metric=4]="metric",e[e.verbose=5]="verbose",e[e.debug=6]="debug",e[e.disabled=7]="disabled"}(r||(r={}))},14011:(e,t,n)=>{"use strict";var r,o,s,i,a,c,l,u,d,p,f,h;n.d(t,{Bh:()=>s,RN:()=>u,Uy:()=>h,XJ:()=>a,Y$:()=>i,gd:()=>f,in:()=>c,mk:()=>o,ni:()=>p,ov:()=>d,qW:()=>l,wC:()=>r}),function(e){e[e.SingleItem=0]="SingleItem",e[e.Reduce=1]="Reduce",e[e.Grid=2]="Grid",e[e.DynamicText=3]="DynamicText",e[e.Join=4]="Join",e[e.Generic=5]="Generic"}(r||(r={})),function(e){e.Default="Default",e.Copilot="Copilot"}(o||(o={})),function(e){e[e.None=0]="None",e[e.ContentFiltering_M365Copilot=1]="ContentFiltering_M365Copilot"}(s||(s={})),function(e){e[e.Default=0]="Default",e[e.LocalOnly=1]="LocalOnly",e[e.Exclusive=2]="Exclusive"}(i||(i={})),function(e){e[e.PreActivate=0]="PreActivate",e[e.Default=1]="Default",e[e.DelayActivate=1]="DelayActivate",e[e.NeverActivate=2]="NeverActivate"}(a||(a={})),function(e){e[e.Required=-3]="Required",e[e.Optional=-1]="Optional"}(c||(c={})),function(e){e[e.Never=0]="Never",e[e.Always=1]="Always"}(l||(l={})),function(e){e[e.PreSeed=1]="PreSeed",e[e.OnSeed=2]="OnSeed",e[e.PostSeed=4]="PostSeed",e[e.All=5]="All"}(u||(u={})),function(e){e[e.UpstreamWorkflowsReady=0]="UpstreamWorkflowsReady",e[e.AnnotationMetadataUpdated=1]="AnnotationMetadataUpdated",e[e.DeltaUpdate=2]="DeltaUpdate",e[e.NonExclusiveTriggerSignals=3]="NonExclusiveTriggerSignals"}(d||(d={})),function(e){e[e.Character=1]="Character",e[e.Paragraph=2]="Paragraph"}(p||(p={})),function(e){e.Input="Input",e.Delta="Delta",e.UILanguage="UILanguage",e.MaxInputCount="MaxInputCount",e.ExtensionLimits="ExtensionLimits"}(f||(f={})),function(e){e.SetPredefinedAnnotation="SetPredefinedAnnotation",e.ClearAnnotations="ClearAnnotations"}(h||(h={}))},1101:(e,t,n)=>{"use strict";n.d(t,{tG:()=>y,nh:()=>M,OD:()=>C});var r,o=n(7014);!function(e){e.Log="Log"}(r||(r={}));const s="undefined"!=typeof process&&process.env?process.env.SERVICE_NAME:"client",i="abcdefghijklmnopqrstuvwxyz0123456789",a={97:0,98:1,99:2,100:3,101:4,102:5,103:6,104:7,105:8,106:9,107:10,108:11,109:12,110:13,111:14,112:15,113:16,114:17,115:18,116:19,117:20,118:21,119:22,120:23,121:24,122:25,48:26,49:27,50:28,51:29,52:30,53:31,54:32,55:33,56:34,57:35};let c,l=[],u=[],d=e=>null,p=e=>{};const f=new Map,h=new Map,g=new Map,m=new Map;var y;!function(e){e.defineCoreLogCategory=e=>({root:"Core",name:e}),e.defineWorkflowLogCategory=e=>({root:"Workflow",name:e}),e.clearLoggers=()=>{l=[],u=[],h.clear(),g.clear()},e.clearAggregators=()=>{f.clear()},e.addLogger=e=>{-1===l.indexOf(e)&&(l.push(e),v(h,e))},e.addDecidingLogger=e=>{-1===u.indexOf(e)&&(u.push(e),v(g,e))},e.setCorrelationContextCallback=e=>{c=e},e.setStartPerformanceEventCallback=e=>{d=e},e.setStopPerformanceEventCallback=e=>{p=e},e.addAggregator=e=>{e.init(((e,t)=>{A(e,t)})),f.has(e.eventName)?f.get(e.eventName).push(e):f.set(e.eventName,[e])},e.flushAggregators=e=>{f.forEach((t=>{t.forEach((t=>t.flush(e)))}))},e.setTagLevelOverride=(e,t)=>{const n=P(e);m.set(n,t)},e.resetTagLevelOverrides=()=>{m.clear()},e.error=(e,t,n,r,s,i,a,c,l,u)=>{k(e,t,o.q.error,n,r,s,i,a,c,l,u)},e.warn=(e,t,n,r,s,i,a,c,l,u)=>{k(e,t,o.q.warn,n,r,s,i,a,c,l,u)},e.info=(e,t,n,r,s,i,a,c,l,u)=>{k(e,t,o.q.info,n,r,s,i,a,c,l,u)},e.verbose=(e,t,n,r,s,i,a,c,l,u)=>{k(e,t,o.q.verbose,n,r,s,i,a,c,l,u)},e.debug=(e,t,n,r,s,i,a,c,l,u)=>{k(e,t,o.q.debug,n,r,s,i,a,c,l,u)},e.metric=(e,t,n,r,s,i,a,c,l,u)=>{k(e,t,o.q.metric,n,r,s,i,a,c,l,u)},e.formatMetric=(e,t,n,r)=>{const o={};return o[e]={dimensionNames:n,dimensionValues:r,value:t},o},e.dynamic=e=>{A(e)}}(y||(y={}));const v=(e,t)=>{const n=t.level;Object.keys(o.q).map((e=>o.q[e])).filter((e=>"string"!=typeof e)).filter((e=>e<=n)).forEach((n=>{e.has(n)?e.get(n).push(t):e.set(n,[t])}))},w=e=>{if("string"==typeof e)return e;let t="";for(let n=0;n<e.length;n++){n>0&&(t+=" ");const r=e[n];r instanceof Error?t+=JSON.stringify({message:r.message,name:r.name,stack:r.stack}):t+="object"==typeof r?JSON.stringify(r):r}return t},b=[],S=["Level","Tag"],T=["Level","Tag","Workflow"],C=e=>_(e).length,_=e=>void 0!==e?h.get(e)||b:l,I=(e,t)=>(void 0!==e?g.get(e)||[]:u).filter((e=>e.shouldLog(t))),k=(e,t,n,o,s,i,a,l,u,h,g)=>{n=m.get(e)||n;const y=_(n),v=I(n,o);if(0==y.length&&0==v.length)return;const b=d(r.Log),C=O(e),k=((e,t,n,r,o,s,i,a)=>{if(void 0===t&&("string"==typeof e||"object"==typeof e))return e;if(void 0===t&&"function"==typeof e)return e();const c=[];for(const l of[e,t,n,r,o,s,i,a])void 0!==l&&c.push("function"==typeof l?l():l);return c})(o,s,i,a,l,u,h,g);if(E(t))R(k)&&A({eventName:"Metrics",tagId:C,category:`${t.root}.${t.name}`,traceLevel:n,message:"",getMetrics:()=>k},!1,y,v);else if(R(k)){const e=k;e.tagId=C,e.category=`${t.root}.${t.name}`,"Operation"===e.eventName&&"Workflow"===t.root&&(e.eventName="WorkflowOperation",c&&(e.joinContextId=c().joinContextId,e.workflow=c().workflow)),e.traceLevel=n;const r=f.get(e.eventName);if(r)for(let t=0;t<r.length;++t){const n=r[t];if(n&&n.add(e,t===r.length-1))break}else A(e,!1,y,v)}else{const e=()=>{var e;return"Core"===t.root?{TraceEventV2:{dimensionNames:()=>S,dimensionValues:[String(n),C],value:1}}:{WorkflowTraceEvent:{dimensionNames:()=>T,dimensionValues:[String(n),C,c?null===(e=c())||void 0===e?void 0:e.workflow:""],value:1}}};A({eventName:"Log",tagId:C,category:`${t.root}.${t.name}`,traceLevel:n,message:w(k),getMetrics:e},!1,y,v)}p(b)},A=(e,t=!1,n,r)=>{var o,i,a,l,u,d,p,f,h,g,m,y,v,w;let S;if(null==n&&(n=_(e.traceLevel)),r=r||b,n.length>0||r.length>0){if(e.serviceName=s,!t&&c){const t=c();t&&(S={disableLogging:t.disableLogging,userDataBoundaryType:null===(i=null===(o=t.sessionDescriptor)||void 0===o?void 0:o.userContext)||void 0===i?void 0:i.userDataBoundaryType},e.cv=e.cv?e.cv:t.cv.toString(),e.sessionKey=e.sessionKey?e.sessionKey:t.sessionKey,e.userTenantId=e.userTenantId?e.userTenantId:t.userTenantId,e.workflow=e.workflow?e.workflow:t.workflow,e.clientAppName=e.clientAppName?e.clientAppName:null===(a=t.clientMetadata)||void 0===a?void 0:a.appName,e.clientAppPlatform=e.clientAppPlatform?e.clientAppPlatform:null===(l=t.clientMetadata)||void 0===l?void 0:l.appPlatform,e.clientAppVersion=e.clientAppVersion?e.clientAppVersion:null===(u=t.clientMetadata)||void 0===u?void 0:u.appVersion,e.clientDeviceId=e.clientDeviceId?e.clientDeviceId:null===(d=t.clientMetadata)||void 0===d?void 0:d.deviceId,e.clientDocSessionId=e.clientDocSessionId?e.clientDocSessionId:null===(p=t.clientMetadata)||void 0===p?void 0:p.docSessionId,e.clientReleaseAudienceGroup=e.clientReleaseAudienceGroup?e.clientReleaseAudienceGroup:null===(f=t.clientMetadata)||void 0===f?void 0:f.releaseAudienceGroup,e.clientReleaseChannel=e.clientReleaseChannel?e.clientReleaseChannel:null===(h=t.clientMetadata)||void 0===h?void 0:h.releaseChannel,e.clientReleaseFork=e.clientReleaseFork?e.clientReleaseFork:null===(g=t.clientMetadata)||void 0===g?void 0:g.releaseFork,e.clientRuntimeVersion=e.clientRuntimeVersion?e.clientRuntimeVersion:null===(m=t.clientMetadata)||void 0===m?void 0:m.runtimeVersion,e.clientSessionId=e.clientSessionId?e.clientSessionId:null===(y=t.clientMetadata)||void 0===y?void 0:y.sessionId,e.clientUserAgent=e.clientUserAgent?e.clientUserAgent:null===(v=t.clientMetadata)||void 0===v?void 0:v.userAgent,e.traceId=e.traceId||t.traceId,e.isClientTelemetrySampled=e.isClientTelemetrySampled?e.isClientTelemetrySampled:null===(w=t.clientMetadata)||void 0===w?void 0:w.isClientTelemetrySampled)}for(const t of n)t.log(e,S);for(const t of r)t.log(e)}},E=e=>e.name===M.WorkflowMetricsOnly.name&&e.root===M.WorkflowMetricsOnly.root,R=e=>!Array.isArray(e)&&"object"==typeof e,O=e=>i[e>>24&63]+i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e],P=e=>e&&5===e.length?a[e.charCodeAt(0)]<<24|a[e.charCodeAt(1)]<<18|a[e.charCodeAt(2)]<<12|a[e.charCodeAt(3)]<<6|a[e.charCodeAt(4)]:-1;class M{}M.CoreDefault=y.defineCoreLogCategory("Default"),M.CoreSystem=y.defineCoreLogCategory("System"),M.CoreUnsampled=y.defineCoreLogCategory("Unsampled"),M.WorkflowDefault=y.defineWorkflowLogCategory("Default"),M.WorkflowUnsampled=y.defineWorkflowLogCategory("Unsampled"),M.WorkflowMetricsOnly=y.defineWorkflowLogCategory("MetricsOnly"),M.PrivacyGuardEvent=y.defineCoreLogCategory("PrivacyGuardEvent")},77850:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,t:()=>r});const r="undefined"!=typeof process&&process.hrtime?()=>{const e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof performance&&performance.now?()=>performance.now():()=>Date.now(),o="undefined"!=typeof process&&process.hrtime?()=>{const e=process.hrtime();return 1e6*e[0]+e[1]/1e3}:"undefined"!=typeof performance&&performance.now?()=>Math.round(1e3*performance.now()):()=>1e3*Date.now()},51532:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r={util:{},roots:{default:{}}},o=(r.util,r.roots.default||(r.roots.default={}),function(){function e(e){if(e)for(var t in e)null!=e[t]&&(this[t]=e[t])}return e.prototype.count=0,e.prototype.cv="",e.prototype.serviceName="",e.prototype.sessionKey="",e.prototype.traceId="",e.prototype.durationMs=0,e.prototype.success=!1,e.prototype.resultDescription="",e.prototype.resultJSON="",e.prototype.resultSignature="",e.prototype.operationName="",e.prototype.resourceId="",e.prototype.dimension0="",e.prototype.dimension1="",e.prototype.dimension2="",e.prototype.dimension3="",e.prototype.clientAppName="",e.prototype.clientAppPlatform="",e.prototype.clientRuntimeVersion="",e.prototype.clientAppVersion="",e.prototype.clientReleaseAudienceGroup="",e.prototype.clientReleaseChannel="",e.prototype.clientReleaseFork="",e.prototype.clientSessionId="",e.prototype.clientFlights="",e.prototype.clientIPRange="",e.prototype.clientDocSessionId="",e.prototype.clientDeviceId="",e.prototype.clientUserAgent="",e.prototype.userType="",e.prototype.userId="",e.prototype.userTenantId="",e.prototype.joinContextId="",e.prototype.ariaTenant="",e.prototype.ariaNamespace="",e.prototype.dataFields="",e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/OperationEvent"},e}()),s=n(77850);class i extends o{constructor(e,t){super(e),this.eventName="Operation",this.options=t,this.durationMs=null==e?void 0:e.durationMs,e&&null!=e.count||(this.count=1)}setClientMetadata(e,t){return e&&(this.clientAppName=e.appName,this.clientAppPlatform=e.appPlatform,this.clientAppVersion=e.appVersion,null!=t&&t||(this.clientFlights=e.flights),this.clientReleaseAudienceGroup=e.releaseAudienceGroup,this.clientReleaseChannel=e.releaseChannel,this.clientReleaseFork=e.releaseFork,this.clientRuntimeVersion=e.runtimeVersion,this.clientSessionId=e.sessionId,this.clientDocSessionId=e.docSessionId,this.clientDeviceId=e.deviceId,this.clientUserAgent=e.userAgent),this}setUserContext(e){return e&&(this.userId=e.puid||e.oid,this.userType=e.userType&&e.userType.toString(),this.userTenantId=e.tid),this}setMetricCustomDimensions(e,t){if(!this.options)throw new Error(`Attempting to set custom dimensions ${e} to operation ${this.operationName} without activating MetricCount or MetricDuration`);this.options.metricCustomDimensions=this.options.metricCustomDimensions||{},this.options.metricCustomDimensions[e]=t}setDataField(e,t){if(null==t)return;const n=this.dataFields?JSON.parse(this.dataFields):{};n[e]=t,this.dataFields=JSON.stringify(n)}setDataFields(e){this.dataFields?this.dataFields=JSON.stringify(Object.assign(Object.assign({},JSON.parse(this.dataFields)),e)):this.dataFields=JSON.stringify(e)}start(){return this.startTime=(0,s.t)(),this}recordStep(e){return this.setDataField(e,Math.floor((0,s.t)()-this.startTime)),this}stop(){const e=(0,s.t)();return this.durationMs=Math.round(e-this.startTime),this}getMetrics(e){var t,n;const r={};if(this.operationName)switch(this.operationName){case"SessionHealthOrphanedEventsWithoutProperSessionKey":case"SessionHealthOrphanedSessions":case"WorkflowActivationState":r[this.operationName+".CountV2"]={dimensionNames:i.getOrphanedSessionHealthDimensionNames.bind(i),dimensionValues:this.getOrphanedSessionHealthDimensionValues(),value:this.count};break;case"MarkUnhealthySession":case"MarkHealthWarningSession":r[this.operationName+".Reason"]={dimensionNames:i.getSessionHealthDimensionNames.bind(i),dimensionValues:this.getSessionHealthDimensionValues(),value:1};break;default:if("matchmaker_timer"===this.operationName&&(r["Workflow.DurationMs"]={dimensionNames:i.getWorkflowDimensionNames.bind(i),dimensionValues:this.getWorkflowDimensionValues(),value:this.durationMs||0},r["Workflow.Count"]={dimensionNames:i.getWorkflowDimensionNames.bind(i),dimensionValues:this.getWorkflowDimensionValues(),value:1}),void 0!==this.durationMs){const n=`${this.operationName}.DurationMsV2`;((null===(t=this.options)||void 0===t?void 0:t.metricDuration)||e.indexOf(n)>=0)&&(r[n]={dimensionNames:this.getDimensionNames.bind(this),dimensionValues:this.getDimensionValues(),value:this.durationMs})}{const t=`${this.operationName}.CountV2`;((null===(n=this.options)||void 0===n?void 0:n.metricCount)||e.indexOf(t)>=0)&&(r[t]={dimensionNames:this.getDimensionNames.bind(this),dimensionValues:this.getDimensionValues(),value:this.count})}}return r}getDimensionNames(){var e,t;let n=i.dimensionNames;if(null===(e=this.options)||void 0===e?void 0:e.metricCustomDimensions){n=n.slice();for(const e in null===(t=this.options)||void 0===t?void 0:t.metricCustomDimensions)n.push(e)}return n}getDimensionValues(){var e,t;const n=[this.success,this.clientAppName,this.clientAppPlatform,this.resourceId,this.dimension0,this.dimension1,this.dimension2,this.dimension3];if(null===(e=this.options)||void 0===e?void 0:e.metricCustomDimensions)for(const e in null===(t=this.options)||void 0===t?void 0:t.metricCustomDimensions)n.push(this.options.metricCustomDimensions[e]);return n}static getOrphanedSessionHealthDimensionNames(){return this.orphanedSessionHealthDimensionNames}getOrphanedSessionHealthDimensionValues(){return[this.success,this.clientAppName,this.clientAppPlatform,this.clientReleaseAudienceGroup,this.resourceId,this.dimension0,this.dimension1,this.dimension2,this.dimension3]}static getSessionHealthDimensionNames(){return this.sessionHealthDimensionNames}getSessionHealthDimensionValues(){return[this.resultSignature,this.clientAppName,this.clientAppPlatform,this.clientAppVersion,this.dimension0,this.dimension1,this.dimension2,this.dimension3]}static getWorkflowDimensionNames(){return this.workflowDimensionNames}getWorkflowDimensionValues(){return[this.resultSignature,this.resourceId,this.resourceId,this.success]}}i.dimensionNames=["Success","ClientAppName","ClientAppPlatform","ResourceId","Dimension0","Dimension1","Dimension2","Dimension3"],i.orphanedSessionHealthDimensionNames=["Success","ClientAppName","ClientAppPlatform","ClientReleaseAudienceGroup","ResourceId","Dimension0","Dimension1","Dimension2","Dimension3"],i.sessionHealthDimensionNames=["Reason","ClientAppName","ClientAppPlatform","ClientAppVersion","Dimension0","Dimension1","Dimension2","Dimension3"],i.workflowDimensionNames=["ResultSignature","WorkflowId","ResourceId","Success"]},71374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALFactoryGlobal:()=>Io,Alignment:()=>xo,AugLoopFactory:()=>_o,AugLoopRuntimeManager:()=>mo,AugLoopStandardSchema:()=>Wo,AuthTokenResponseError:()=>Fe,CapsType:()=>Ro,CrudAugLoopStandardSchema:()=>Uo,DataObject:()=>Fo,FontWeight:()=>Po,FormattedSpan:()=>Do,IdentityProvider:()=>Ne,Lambda:()=>Lo,LambdaException:()=>Bo,ListType:()=>Mo,ServerAuthenticationState:()=>Ve.f,TextTile:()=>No,Tile:()=>ko,Tile$1:()=>Ao,TileType:()=>Eo,UnderlineType:()=>Oo});var r,o,s=n(7014),i=n(51532),a=n(1101);!function(e){e[e.ProductServiceUsage=2]="ProductServiceUsage",e[e.ProductServicePerformance=4]="ProductServicePerformance"}(r||(r={})),function(e){e[e.BasicEvent=10]="BasicEvent",e[e.FullEvent=100]="FullEvent",e[e.RequiredServiceDataEvent=110]="RequiredServiceDataEvent"}(o||(o={}));const c=/\|\~/g;class l{constructor(){this.count=0,this.measureSums=new Map}}class u{constructor(e,t,n,r,o){this.buckets=new Map,this.init=e=>{this.log=e},this.add=(e,t=!0)=>{if(!this.condition||!this.condition(e))return!0===t&&this.log(e,!1),!1;const n=[];for(const t of this.dimensions)if(void 0===e[t]||null===e[t])n.push(null);else{let r="";"boolean"==typeof e[t]?r="b~":"number"==typeof e[t]&&(r="n~"),n.push(`${r}${e[t].toString().replace(c,"_")}`)}const r=n.join("|");let o=this.buckets.get(r);if(!o){o=new l,o.traceLevel=e.traceLevel;for(const e of this.avgMeasures)o.measureSums.set(e,0);this.buckets.set(r,o)}o.count++;for(const t of this.avgMeasures)e[t]&&o.measureSums.set(t,o.measureSums.get(t)+e[t]);return!0},this.flush=(e=!1)=>{this.buckets.forEach(((e,t)=>{const n={traceLevel:e.traceLevel,eventName:this.eventName,count:e.count},r=t.split("|");for(let e=0;e<this.dimensions.length;e++){const t=this.dimensions[e],o=r[e];0===o.indexOf("b~")?n[t]="b~true"===o:0===o.indexOf("n~")?n[t]=parseInt(o.slice(2),10):n[t]=o}for(const t of this.avgMeasures)n[t]=Math.round(e.measureSums.get(t)/e.count);this.log(n,!0)})),this.buckets.clear(),e&&(this.condition=null,clearInterval(this.interval))},this.eventName=e,this.condition=t,this.dimensions=n,this.avgMeasures=r,o>0&&(this.interval=setInterval(this.flush,1e3*o))}}const d=["cloud.dev.microsoft","officeppe.com","cloud.microsoft","office.com","office365.us","ic.gov","microsoft.scloud","microsoftonline.cn"],p=(e,t,n,r)=>new u(e,(e=>e.success&&n.indexOf(e[t])>=0),[t,"ariaNamespace","resourceId","success","resultSignature","clientDocSessionId","dimension0","dimension1","dimension2","dimension3"],["durationMs"],r),f=e=>{if(!e)return e;for(const t of d)if(e.indexOf(t)>=0)return e;return"**redacted**"};class h{constructor(e){this.level=s.q.info,this.hostCallbacks=e}log(e){if(null==this.hostCallbacks||null==this.hostCallbacks.sendTelemetryEvent)return;const t=(e,t,n,s,i)=>{let a=t.charAt(0).toUpperCase()+t.slice(1),c={DocSessionId:e.clientDocSessionId,ResourceId:e.resourceId,ResultDescription:e.resultDescription,ResultSignature:e.resultSignature,Dimension0:e.dimension0,Dimension1:e.dimension1,Dimension2:e.dimension2,Dimension3:e.dimension3,JoinContextId:e.joinContextId,ServerSessionKey:this.serverSessionKey};n&&(c=Object.assign(Object.assign({},c),JSON.parse(n)));const l=s||h.augLoopAriaTenantToken,u=i||l!=h.augLoopAriaTenantToken?i:h.augLoopAriaNamespace;a=a||h.operationNamePlaceholder;const d={CV:e.cv,Duration:1e3*(e.durationMs||0),Count:e.count,AggMode:2,Success:e.success};this.hostCallbacks.sendTelemetryEvent(l,u?`${u}_${a}`:a,c,"Office.System.Activity",d,!1,r.ProductServiceUsage|r.ProductServicePerformance,o.RequiredServiceDataEvent)};if("Workflow.MetricsOnly"==e.category);else if("Operation"===e.eventName){const n=e;t(n,n.operationName,n.dataFields,void 0,n.ariaNamespace)}else if("SessionHealth"===e.eventName)t(e,e.sessionHealthEventName);else if("WorkflowOperation"===e.eventName){const n=e;t(n,n.operationName,n.dataFields,n.ariaTenant,n.ariaNamespace)}else"Log"===e.eventName&&((e,t,n)=>{this.hostCallbacks.sendDiagnosticTrace&&this.hostCallbacks.sendDiagnosticTrace(e,t,n)})(e.tagId,e.traceLevel,e.message)}setServerSessionKey(e){this.serverSessionKey=e}}h.augLoopAriaTenantToken="3de4087d4de34817b1c376e3d1e6e293-983c4292-5ba9-485a-ab10-9797863c788b-6770",h.augLoopAriaNamespace="Office_AugLoop_Client",h.operationNamePlaceholder="OperationNameNotProvided";var g=null;"undefined"!=typeof WebSocket?g=WebSocket:"undefined"!=typeof MozWebSocket?g=MozWebSocket:void 0!==n.g?g=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?g=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(g=self.WebSocket||self.MozWebSocket);const m=g,y="object"==typeof process&&"object"==typeof process.versions&&void 0!==process.versions.node,v=1e5;class w{constructor(e,t){this.networkOverrideOptions=e,this.settings=t,this.hadEgressError=!1,this.isClosing=!1,this.pendingEgress=[]}get egressByteCountOp(){return this._egressByteCountOp||(this._egressByteCountOp=new i.I({operationName:"WSEgressByteOrderOfMagnitude",success:!0}),this._egressByteCountOp.setClientMetadata(this.clientMetadata,!0)),this._egressByteCountOp}init(e,t,n,r,o){var s,c;if(this.clientMetadata=o,y){const t={servername:null===(s=this.networkOverrideOptions)||void 0===s?void 0:s.hostHeader,headers:(null===(c=this.networkOverrideOptions)||void 0===c?void 0:c.hostHeader)?{host:this.networkOverrideOptions.hostHeader}:void 0};this.ws=new m(e,t)}else this.ws=new m(e);this.logOp=new i.I({operationName:w.className,success:!0}).start(),this.logOp.setClientMetadata(o,!0),this.ingressByteCountOp=new i.I({operationName:"WSIngressByteOrderOfMagnitude",success:!0}),this.ingressByteCountOp.setClientMetadata(o,!0),this.ws.addEventListener("open",(e=>{n(),this.logOp.resourceId="OnOpen",this.logOp.resultDescription="",this.logOp.success=!0,this.logOp.dimension0=this.pendingEgress.length.toString(),a.tG.info(508843801,a.nh.CoreDefault,this.logOp.stop())})),this.ws.addEventListener("message",(e=>{this.logIngressCount(e.data),t(e.data)})),this.ws.addEventListener("error",(e=>{this.errorMessage=e.message,this.logOp.resourceId="OnError",this.logOp.resultDescription=this.errorMessage,this.logOp.success=!1,a.tG.info(508843800,a.nh.CoreDefault,this.logOp.stop()),this.ws?this.ws.close():this.logWsUndefinedError("error event handler")})),this.ws.addEventListener("close",(e=>{this.logOp.resourceId="OnClose",this.logOp.resultDescription=e?`code: ${e.code}. reason: ${e.reason}`:"",this.logOp.success=!0,a.tG.info(508843799,a.nh.CoreDefault,this.logOp.stop()),r(this.errorMessage),this.isClosing=!1}))}egress(e){var t;const n=e.obj;(null===(t=this.settings)||void 0===t?void 0:t.webSocketWorkerShouldLogEgressCount)&&this.logEgressCount(n),this.ws.send(n,(e=>{e&&!this.hadEgressError&&(this.hadEgressError=!0,this.logOp.resourceId="OnEgressError",this.logOp.resultDescription=e.message,this.logOp.success=!1,a.tG.info(508843797,a.nh.CoreDefault,this.logOp.stop()))}))}close(){this.isClosing||(this.isClosing=!0,this.ws?this.ws.close():this.logWsUndefinedError("close"))}logIngressCount(e){const t=e.length;t>v&&(this.ingressByteCountOp.start(),this.ingressByteCountOp.dimension2=t.toString().length.toString(),a.tG.info(508843794,a.nh.CoreDefault,this.ingressByteCountOp.stop()))}logEgressCount(e){const t="string"==typeof e?e.length:e.byteLength;t>v&&(this.egressByteCountOp.start(),this.egressByteCountOp.dimension2=t.toString().length.toString(),a.tG.info(505710625,a.nh.CoreDefault,this.egressByteCountOp.stop()))}logWsUndefinedError(e){const t=new i.I({operationName:w.className,success:!1}).start();t.setClientMetadata(this.clientMetadata,!0),t.resourceId="webSocketUndefined",t.resultDescription=e+": this.ws null or undefined",a.tG.info(506566722,a.nh.CoreDefault,t.stop())}}w.className="WebSocketWorker";class b{constructor(e){this.childCount=0,this.id=e||function(){for(let e=0;e<T;e++)C[e]=S[Math.floor(Math.random()*S.length)];return C.join("")}()}static fromString(e,t){if(!e)throw new Error("Received invalid correlation vector string");let n;return n=e.endsWith(".0")?new b(e.substring(0,e.length-2)):new b(e),t&&(n.childCount=t),n}newChild(){return++this.childCount,new b(this.id+"."+this.childCount.toString())}toString(){return this.id.length>127?this.id.substring(0,127)+"!":this.id}}const S=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],T=22,C=new Array(T);var _,I=n(61709),k=n(38897),A=n(48668),E=n(48690),R=n(6731);!function(e){e[e.Undefined=0]="Undefined",e[e.Schema=1]="Schema",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Buffer=5]="Buffer",e[e.Function=6]="Function"}(_||(_={}));var O=n(92341),P=n(91298),M=n(13407),x=n(92792),D=n.n(x);class N{static createHealthCheckRequest(e){return{payload:{},payloadSchema:{category:_.Schema,schema:{name:"HealthCheckRequest"}},requestedSchema:{category:_.Schema,schema:{name:"HealthCheckResponse"}},clientMetadata:e}}static isFeatureEnabled(e,t,n=!1,r="None"){return e&&e.isFeatureEnabled?e.isFeatureEnabled("Microsoft.Office.AugLoop."+t,r).catch((()=>Promise.resolve(n))):Promise.resolve(n)}static isChangeGateEnabled(e,t){return e&&e.isChangeGateEnabled?e.isChangeGateEnabled(t):Promise.resolve(!1)}static convertWebSocketUrlToHttp(e){return this.convertUrl(e,!1)}static convertServiceUrlToWebSocket(e){return this.convertUrl(e,!0)}static convertUrl(e,t){if(!e)return e;const n=e.split(":");let r=n[0].toLowerCase();return 0==r.indexOf(t?"http":"ws")?(r=t?r.replace("http","ws"):r.replace("ws","http"),n[0]=r,n.join(":")):e}static deepEquals(e,t){return D()(e,t)}static collectTelemetry(e,t,n,r,o,s){var i,c,l,u;e.start(),e.resultSignature=null!=r?r:"",e.resultDescription=null!=o?o:"",e.success=n,s?(e.dimension0=null!==(i=s[0])&&void 0!==i?i:"",e.dimension1=null!==(c=s[1])&&void 0!==c?c:"",e.dimension2=null!==(l=s[2])&&void 0!==l?l:"",e.dimension3=null!==(u=s[3])&&void 0!==u?u:""):(e.dimension0="",e.dimension1="",e.dimension2="",e.dimension3=""),t.log((()=>a.tG.info(508367457,a.nh.CoreDefault,e.stop())))}}N.getCurrentTimeMs=()=>Date.now?Date.now():(new Date).getTime();class L{constructor(e){this.maxNumberOfLogs=40,this.numberOfLogs=0,this.id=e}log(e){if(this.numberOfLogs<this.maxNumberOfLogs&&(this.numberOfLogs++,e(),this.numberOfLogs===this.maxNumberOfLogs)){const e=new i.I({operationName:"OnLastLog",success:!0,resourceId:this.id,resultDescription:`Limit for number of logs for id: ${this.id} reached - all next logs will be dropped`});a.tG.warn(572838107,a.nh.CoreDefault,e)}}}const F=[E.h.getTypeName(),O.YH.getTypeName(),P.HN.getTypeName()],B=e=>{const t=new Set;for(const n of e)if("string"==typeof n)-1===F.indexOf(n)&&t.add(n);else for(const e of[n.getTypeName(),...n.getBaseTypes()])-1===F.indexOf(e)&&t.add(e);return Array.from(t)},W=(e,t=0)=>Number.isFinite(e)?e:t;var U,G,V=n(60221),q=n.n(V);!function(e){e.ArrivedBeforeReseeding="Message is dropped from queue since it arrived before reseeding is started",e.DroppedAsOldestInQueue="Message is dropped as oldest in full queue",e.DroppedBecauseClientDisconnected="Message is dropped because client is disconnected from server"}(U||(U={}));class H{constructor(e){this.logOp=new i.I({operationName:"MessageQueue",success:!0}),this.queue=new(q())(1e3),this.callbacks=e}clear(){this.queue.clear()}size(){return this.queue.length}push(e,t,n){const r=this.queue;if(1e3===r.length){this.logOp.resourceId="QueueFull",this.logOp.durationMs=0,this.logOp.success=!1,a.tG.warn(508843746,a.nh.CoreDefault,this.logOp);const e=r.shift();e.onResponse&&e.onResponse(new k._p({error:U.DroppedAsOldestInQueue}))}r.push({message:e,onResponse:t,timeQueued:N.getCurrentTimeMs(),attemptNumber:n})}sendOnSessionInitialized(e){const t=this.queue.length;let n=0;if(t>0){const r=N.getCurrentTimeMs()-this.queue.get(0).timeQueued;for(;this.queue.length>0&&this.callbacks.canSendMessage();){const t=this.queue.shift();e&&this.containSequencedSyncMessage(t)?(n++,t.onResponse&&t.onResponse(new k._p({error:U.ArrivedBeforeReseeding}))):t.message instanceof Uint8Array?this.callbacks.sendBytes(t.message):this.callbacks.sendMessage(t.message,t.onResponse,t.attemptNumber)}this.logOp.resourceId="SendOnSessionInitialized",this.logOp.resultDescription=`Queue size before: ${t}, after: ${this.queue.length}. droppedSyncMessages: ${n}`,this.logOp.durationMs=r,this.logOp.success=!0,a.tG.warn(508843745,a.nh.CoreDefault,this.logOp)}}containSequencedSyncMessage(e){return e.message instanceof k.Tb&&E.h.matchesTypesFor(e.message,[k.Tb.getTypeName()])&&e.message.seq>=0||e.message instanceof k.l0&&E.h.matchesTypesFor(e.message,[k.l0.getTypeName()])}}!function(e){e[e.Initing=0]="Initing",e[e.Running=1]="Running",e[e.Disconnected=2]="Disconnected",e[e.Closed=3]="Closed"}(G||(G={}));const j=(e,t,n,r)=>{t&&(t.cv||(t.cv=e.cvParent.newChild().toString()),e.messageEndpoint.sendMessage(t,((t,r)=>{t||E.h.getTypeNameFor(r)!==k.fZ.getTypeName()||(e.stats.lastSyncMessage=Date.now()),n&&n(t,r)}),void 0,r))},z=(e,t,n,r)=>{t&&(e.messageQueue.push(t,n,r),e.networkWorkerManager.init(void 0,e.customInitPromise).catch((e=>{const t=new i.I({operationName:"WorkerManagerInit",success:!1,resultDescription:`${e}`});a.tG.error(508843789,a.nh.CoreDefault,t)})))},$=(e,t)=>{t&&(e.messageQueue.push(t),e.networkWorkerManager.init(void 0,e.customInitPromise).catch((e=>{a.tG.error(508843788,a.nh.CoreDefault,`Init failed: ${e}`)})))};class Y{constructor(e){this.context=e}onEnter(e){}sendMessage(e,t,n,r){}sendBytes(e){}canSendMessage(){return!1}onConnectionClose(){}}class J extends Y{constructor(){super(...arguments),this.stateName=G.Initing,this.possibleNextStates=[G.Running,G.Disconnected,G.Closed]}sendMessage(e,t,n){E.h.matchesTypesFor(e,[k.eE.getTypeName()])?j(this.context,e,t,n):z(this.context,e,t)}sendBytes(e){$(this.context,e)}onConnectionClose(){this.context.setState(G.Disconnected)}}class Q extends Y{constructor(){super(...arguments),this.stateName=G.Running,this.possibleNextStates=[G.Disconnected,G.Closed]}onEnter(e){e&&e.isSessionReseedingStarted&&this.context.resetNextSyncSequenceId(),this.context.messageQueue.sendOnSessionInitialized(e&&e.isSessionReseedingStarted)}sendMessage(e,t,n,r){j(this.context,e,t,n)}sendBytes(e){e&&this.context.networkWorkerManager.egressBytes(e)}canSendMessage(){return!0}onConnectionClose(){this.context.setState(G.Disconnected)}}class K extends Y{constructor(){super(...arguments),this.stateName=G.Disconnected,this.possibleNextStates=[G.Initing,G.Closed]}onEnter(e){this.context.messageEndpoint.cancelPendingResponseCallbacks(I.Ef.ClientDisconnected)}sendMessage(e,t,n,r){if(E.h.matchesTypesFor(e,[k.eE.getTypeName()]))this.context.setState(G.Initing),j(this.context,e,t,n);else if(E.h.matchesTypesFor(e,[k.w9.getTypeName()]))this.context.setState(G.Closed);else{if(!r)return void z(this.context,e,t,n);t&&t(new k._p({messageId:e.messageId,error:U.DroppedBecauseClientDisconnected}))}}sendBytes(e){$(this.context,e)}}class X extends Y{constructor(){super(...arguments),this.stateName=G.Closed,this.possibleNextStates=[]}onEnter(e){this.context.messageEndpoint.cancelPendingResponseCallbacks(I.Ef.ClientClosed)}}const{AugLoopTextEncoder:Z,AugLoopTextDecoder:ee}=(()=>{if("undefined"==typeof TextEncoder||"undefined"==typeof TextDecoder){n(20731);const e={AugLoopTextEncoder:TextEncoder,AugLoopTextDecoder:TextDecoder};return TextEncoder=void 0,TextDecoder=void 0,e}return{AugLoopTextEncoder:TextEncoder,AugLoopTextDecoder:TextDecoder}})();var te=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};class ne{static extractFragments(e){if(e[0]!==ne.IDENTIFIERBYTE)throw new Error("Invalid Binary: Incorrect Identifier");let t=1;const n=[],r=new DataView(e.buffer,e.byteOffset,e.byteLength);for(;t<e.byteLength;){if(t+4>e.byteLength)throw new Error("Invalid Binary: Error reading fragment length");const o=r.getUint32(t);if(t+o+4>e.byteLength)throw new Error("Invalid Binary: Fragment out of range");"undefined"!=typeof Buffer&&Buffer.from?n.push(Buffer.from(e.buffer,e.byteOffset+t+4,o)):n.push(new Uint8Array(e.buffer,e.byteOffset+t+4,o)),t+=4+o}if(n.length<1)throw new Error("Invalid Binary: No fragments found");return n}static deserialize(e,t=e=>e){const n=ne.extractFragments(e),r=ne.textDecoder.decode(n[0]);return JSON.parse(r,((e,r)=>{if("string"==typeof r){if(r.substring(0,ne.BINARYKEYWORD.length)===ne.BINARYKEYWORD){const e=parseInt(r.substring(ne.BINARYKEYWORD.length),10);if("number"!=typeof e||e>=n.length-1)throw new Error("Invalid Binary: Binary index out of range");return t(n[e+1])}if(r.substring(0,ne.ESCAPEKEYWORD.length)===ne.ESCAPEKEYWORD)return r.substring(ne.ESCAPEKEYWORD.length)}return r}))}static deserializeAsync(e,t=e=>te(this,void 0,void 0,(function*(){return e}))){return te(this,void 0,void 0,(function*(){const n=ne.extractFragments(e),r=ne.textDecoder.decode(n[0]),o=[],s=Symbol("placeholder"),i=e=>{if(Array.isArray(e)){for(let t=0;t<e.length;t++)e[t]=i(e[t]);return e}if(null!==e&&"object"==typeof e){if(e[s])return e.value;for(const t of Object.keys(e))e[t]=i(e[t]);return e}return e};let a=JSON.parse(r,((e,r)=>{if("string"==typeof r){if(r.startsWith(ne.BINARYKEYWORD)){const e=parseInt(r.substring(ne.BINARYKEYWORD.length),10);if("number"!=typeof e||e>=n.length-1)throw new Error("Invalid Binary: Binary index out of range");const i=t(n[e+1]);return o.push(i),(e=>{const t={[s]:!0,value:void 0};return e.then((e=>{t.value=e})),t})(i)}if(r.startsWith(ne.ESCAPEKEYWORD))return r.substring(ne.ESCAPEKEYWORD.length)}return r}));return yield Promise.all(o),a=yield i(a),a}))}static serializeInternal(e){const t=[void 0],n=JSON.stringify(e,((e,n)=>ArrayBuffer.isView(n)?(t.push(n),`${ne.BINARYKEYWORD}${t.length-2}`):n&&"Buffer"===n.type&&Array.isArray(n.data)?(t.push(new Uint8Array(n.data)),`${ne.BINARYKEYWORD}${t.length-2}`):"string"==typeof n&&n.substring(0,ne.ESCAPEKEYWORD.length)===ne.ESCAPEKEYWORD?ne.ESCAPEKEYWORD+n:n));t[0]=ne.textEncoder.encode(n);const r=t.reduce(((e,t)=>e+4+t.byteLength),0),o=new Uint8Array(r+1);o[0]=ne.IDENTIFIERBYTE;let s=1;const i=new DataView(o.buffer,o.byteOffset,o.byteLength);for(const e of t)i.setUint32(s,e.byteLength),o.set(e,s+4),s+=4+e.byteLength;return o}static serialize(e){return ne.serializeInternal(e)}static serializeAsync(e){return te(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{try{t(ne.serializeInternal(e))}catch(e){n(e)}}))}))}}ne.IDENTIFIERBYTE=3,ne.BINARYKEYWORD=":b",ne.ESCAPEKEYWORD=":",ne.textDecoder=new ee,ne.textEncoder=new Z;var re=n(65618);const oe="Request timed out";function se(e,t,n){const r=new re.Request(e,t);return ie.add(r,n)}const ie=new class{constructor(e,t,n){if(this.requestInProgress=!1,this.queuedRequests=[],null==e)throw new Error("No request.");this.fetch=e,this.fetchTimeout=t,this.queueTimeout=n}tryProcessNextRequest(){if(this.requestInProgress=!1,this.queuedRequests.length>0){const[e,t,n]=this.queuedRequests.shift();clearTimeout(n),this.add(e,t)}}add(e,t){if(this.requestInProgress){const n=setTimeout((()=>{t(new Error("Timed out waiting in queue"),null),this.queuedRequests.shift()}),this.queueTimeout);this.queuedRequests.push([e,t,n])}else this.requestInProgress=!0,new Promise(((t,n)=>{let r=!1;const o=setTimeout((()=>{r=!0,n(new Error("Fetch timed out"))}),this.fetchTimeout);this.fetch(e).then((e=>{r||(clearTimeout(o),t(e))})).catch((e=>{r||(clearTimeout(o),n(e))}))})).then((e=>{t(null,e),this.tryProcessNextRequest()})).catch((e=>{t(e,null),this.tryProcessNextRequest()}))}}(re.fetch,2e4,12e4),ae=3e4;class ce{constructor(e,t,n,r){this.lastPingTime=0,this.lastPongTime=0,this.lastEgressTime=0,this.remainingPingFailures=3,this.isPingPongSuccessful=!1,this.reducedPingPongRetryEnabled=r,this.pingPongLogOp=new i.I({operationName:"WebSocketReliabilityManager",success:!0,resourceId:this.reducedPingPongRetryEnabled?"reducedPingPongRetryEnabled":""}).start(),this.pingPongLogOp.setClientMetadata(n,!0),this.worker=e,this.rateControllerClose=t}start(){this.reducedPingPongRetryEnabled?(this.pingPongLogOp.start(),this.pingPongLogOp.resultSignature="initial ping"):this.logOperation(!0,"ping","initial ping"),this.ping(),this.isPingPongSuccessful=!0,this.startInterval()}onResponse(){this.lastPongTime=Date.now(),this.reducedPingPongRetryEnabled&&(this.pingPongLogOp.success=!0,a.tG.info(506795283,a.nh.CoreDefault,this.pingPongLogOp.stop()))}isReliabilityResponse(e){return"string"==typeof e&&1===e.length&&e===ce.pingPongMessage}close(){this.reducedPingPongRetryEnabled?(this.pingPongLogOp.start(),this.pingPongLogOp.success=!0,this.pingPongLogOp.resultSignature="close",a.tG.info(506795282,a.nh.CoreDefault,this.pingPongLogOp.stop())):this.logOperation(!0,"ping","close"),this.lastPingTime=0,this.lastPongTime=0,this.isPingPongSuccessful=!1,this.clearPingInterval(),this.worker=void 0}checkConnection(){return this.isPingPongSuccessful}postEgress(){this.lastEgressTime=Date.now()}needsParsedResponses(){return!1}ping(){this.reducedPingPongRetryEnabled?this.worker||(this.pingPongLogOp.success=!1,this.pingPongLogOp.resultDescription="websocket worker undefined",this.rateControllerClose(),a.tG.info(506795281,a.nh.CoreDefault,this.pingPongLogOp.stop())):this.lastPingTime=Date.now(),this.worker&&(this.reducedPingPongRetryEnabled&&(this.lastPingTime=Date.now()),this.worker.egress({obj:ce.pingPongMessage}))}startInterval(){this.pingInterval=setInterval((()=>{if(this.reducedPingPongRetryEnabled){if(this.lastPongTime<this.lastPingTime&&Date.now()-this.lastPingTime<ae)return;this.isPingPongSuccessful=this.lastPongTime>=this.lastPingTime,this.pingPongLogOp.start(),this.isPingPongSuccessful?(this.pingPongLogOp.resultSignature="ping",this.ping()):(this.pingPongLogOp.success=!1,this.pingPongLogOp.resultDescription="Pong not received",a.tG.info(506795280,a.nh.CoreDefault,this.pingPongLogOp.stop()),this.worker?this.worker.close():this.rateControllerClose())}else{if(this.isPingPongSuccessful=this.lastPongTime>=this.lastPingTime&&this.lastPongTime-this.lastPingTime<=ae,this.lastPongTime>this.lastEgressTime)return;const e=this.lastPongTime-this.lastPingTime;this.isPingPongSuccessful?(this.remainingPingFailures=3,this.ping()):this.remainingPingFailures>0?(--this.remainingPingFailures,this.ping()):(this.logOperation(!1,"ping","Pong still not received after all retry attempts",[`${e}`,`${this.remainingPingFailures}`]),this.worker?this.worker.close():this.rateControllerClose())}}),ae)}clearPingInterval(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=void 0)}logOperation(e,t,n,r){var o,s,i,c;this.pingPongLogOp.start(),this.pingPongLogOp.success=e,this.pingPongLogOp.resultSignature=t,this.pingPongLogOp.resultDescription=n,r&&(this.pingPongLogOp.dimension0=null!==(o=r[0])&&void 0!==o?o:"",this.pingPongLogOp.dimension1=null!==(s=r[1])&&void 0!==s?s:"",this.pingPongLogOp.dimension2=null!==(i=r[2])&&void 0!==i?i:"",this.pingPongLogOp.dimension3=null!==(c=r[3])&&void 0!==c?c:""),a.tG.info(507320073,a.nh.CoreDefault,this.pingPongLogOp.stop())}}ce.pingPongMessage="~";const le="Request timed out";class ue{constructor(e,t,n){this.remainingRetryAttempts=4,this.isAsleep=!1,this.isLongPollSuccessful=!1,this.isActiveLongPoll=!1,this.isResponseReceived=!1,this.lastEgressTime=0,this.longPollLogOp=new i.I({operationName:"OnLongPollMessage",success:!0}),this.clientMetadata=t,this.sessionCorrelationVector=n,this.longPollLogOp.setClientMetadata(this.clientMetadata,!0),this.worker=e}start(){const e=new i.I({operationName:"StartHttpReliabilityManager",success:!0}).start();e.setClientMetadata(this.clientMetadata,!0),a.tG.info(508163399,a.nh.CoreDefault,e.stop()),this.trySendLongPoll(A.PO.Start,!0),this.isLongPollSuccessful=!0}onResponse(e){if(!e||this.isResponseReceived){const e=new i.I({operationName:"HttpReliabilityManagerFailure",success:!1}).start();return e.setClientMetadata(this.clientMetadata,!0),void a.tG.info(508162497,a.nh.CoreDefault,e.stop())}this.isResponseReceived=!0,this.isActiveLongPoll=!1;const t=e;if(t.error)if(this.isLongPollSuccessful=!1,--this.remainingRetryAttempts,this.remainingRetryAttempts>0){this.longPollLogOp.success=!1,this.longPollLogOp.resultDescription=`Retry attempts left : ${this.remainingRetryAttempts}`,this.longPollLogOp.resultSignature=t.error,a.tG.info(508163398,a.nh.CoreDefault,this.longPollLogOp.stop());const e=t.error===le?A.PO.TimeoutResend:A.PO.FailResend;t.error===le||3===this.remainingRetryAttempts?this.trySendLongPoll(e,!0):this.enqueueSendLongPoll(e)}else this.longPollLogOp.success=!1,this.longPollLogOp.resultDescription="Long poll still not received after all retry attempts",a.tG.info(508163397,a.nh.CoreDefault,this.longPollLogOp.stop()),this.worker&&this.worker.close();else this.longPollLogOp.success=!0,this.longPollLogOp.resultDescription="Long poll received",a.tG.info(508163401,a.nh.CoreDefault,this.longPollLogOp.stop()),this.remainingRetryAttempts=4,this.isLongPollSuccessful=!0,this.trySendLongPoll(A.PO.Regular)}close(){const e=new i.I({operationName:"CloseHttpReliabilityManager",success:!0}).start();e.setClientMetadata(this.clientMetadata,!0),a.tG.info(508162467,a.nh.CoreDefault,e.stop()),this.sendLongPollTimer&&(clearTimeout(this.sendLongPollTimer),this.sendLongPollTimer=void 0),this.isActiveLongPoll=!1,this.isLongPollSuccessful=!1,this.worker=void 0}checkConnection(){if(this.isAsleep){this.isAsleep=!1;const e=new i.I({operationName:"AwakenHttpReliabilityManager",success:!0}).start();e.setClientMetadata(this.clientMetadata,!0),a.tG.info(508162496,a.nh.CoreDefault,e.stop()),this.trySendLongPoll(A.PO.CheckConnection,!0)}return this.isLongPollSuccessful}isReliabilityResponse(e){return"string"!=typeof e&&k.ry.typeGuard(e)}postEgress(){this.lastEgressTime=Date.now(),this.trySendLongPoll(A.PO.PostEgress)}needsParsedResponses(){return!0}enqueueSendLongPoll(e){this.sendLongPollTimer=setTimeout((()=>{this.trySendLongPoll(e,!0)}),2e4)}trySendLongPoll(e,t){if(!this.worker){const e=new i.I({operationName:"LongPollNoOp",success:!0}).start();return e.setClientMetadata(this.clientMetadata,!0),e.resultDescription="Worker is undefined",void a.tG.info(507281438,a.nh.CoreDefault,e.stop())}if(!0===this.isActiveLongPoll){const e=new i.I({operationName:"LongPollNoOp",success:!0}).start();return e.setClientMetadata(this.clientMetadata,!0),e.resultDescription="Already active long poll",void a.tG.info(508163396,a.nh.CoreDefault,e.stop())}if(this.isActiveLongPoll=!0,Date.now()-this.lastEgressTime>6e4&&!t){this.isActiveLongPoll=!1,this.isAsleep=!0;const e=new i.I({operationName:"LongPollSleep",success:!0}).start();return e.setClientMetadata(this.clientMetadata),e.resultDescription=`isAsleep: ${this.isAsleep}, isActiveLongPoll: ${this.isActiveLongPoll}`,void a.tG.info(507278739,a.nh.CoreDefault,e.stop())}this.longPollLogOp.start(),this.isResponseReceived=!1,this.worker.egress({obj:this.getLongPollMessageString(e),isHttpSessionLongPollMessage:!0,isHttpSessionInitMessage:!1})}getLongPollMessageString(e){const t=new k.LQ({longPollTimeoutHint:15e3,type:e});return this.sessionCorrelationVector&&(t.cv=this.sessionCorrelationVector().newChild().toString()),JSON.stringify(t)}}const de=JSON.stringify(new k.ry({error:oe}));class pe{constructor(e){this.networkOverrideOptions=e,this.isClosed=!1,this.pendingEgress=[]}init(e,t,n,r){const o=new i.I({operationName:"HttpWorkerInit",success:!0}).start(),s=e.split("/?x-origin=");2===s.length?(this.url=N.convertWebSocketUrlToHttp(s[0]),this.origin=s[1]):(this.url=N.convertWebSocketUrlToHttp(e),this.origin=void 0),this.ingress=t,this.onOpen=n,this.onClose=r,a.tG.info(507839180,a.nh.CoreDefault,o.stop())}egress(e){const t=new i.I({operationName:"HttpEgress",success:!0}).start();if(!this.isConnectedToSession()&&!e.isHttpSessionInitMessage)return this.pendingEgress.push(e),t.success=!1,t.resultDescription="NotConnected, pendingQueueSize: "+this.pendingEgress.length.toString(),void a.tG.info(508163394,a.nh.CoreDefault,t.stop());const n=this.getRequestInfo(e,t);if(!n.url)return t.success=!1,t.resultDescription="Could not generate HTTP request",void a.tG.error(508163393,a.nh.CoreDefault,t.stop());e.isHttpSessionLongPollMessage?this.egressLongPoll(n,t):se(n.url,n.request,((e,n)=>{e?this.onEgressError(t,"OnEgressError:"+(null==e?void 0:e.message)):n&&n.ok?n.text().then((e=>{t.success=!0,a.tG.info(508163362,a.nh.CoreDefault,t.stop()),this.ingressInternal(e)})).catch((e=>{this.onEgressError(t,"OnEgressParseError: "+(null==e?void 0:e.message))})):this.onEgressError(t,"OnEgressResponseError: "+(null==e?void 0:e.message)+`, Status ${null==n?void 0:n.status}: ${null==n?void 0:n.statusText}`)}))}close(){const e=new i.I({operationName:"HttpWorkerClose",success:!0}).start();if(this.isClosed)return e.resultDescription="AlreadyClosed",void a.tG.info(508163360,a.nh.CoreDefault,e.stop());a.tG.info(508163359,a.nh.CoreDefault,e.stop()),this.isClosed=!0,this.sessionSettings=void 0,this.onClose&&(this.onClose(void 0),this.onClose=void 0)}onEgressError(e,t){e.success=!1,e.resultDescription=t,a.tG.error(508163358,a.nh.CoreDefault,e.stop()),this.isClosed||this.close()}ingressInternal(e,t){let n=e;t||(n=this.formatServerInput(e));n&&(this.logIngressCount(n),this.ingress(n,(e=>{k.uN.typeGuard(e)&&this.onSessionInitResponse(e)})))}onSessionInitResponse(e){const t=new i.I({operationName:"HttpWorkerOpen",success:!0}).start();if(!(e.sessionKey&&e.origin&&e.anonymousToken&&e.sessionUrlBase))return t.success=!1,t.resultDescription="SessionInitResponse missing information",void a.tG.error(507809949,a.nh.CoreDefault,t.stop());a.tG.info(508163357,a.nh.CoreDefault,t.stop()),this.setSessionSettings(e.sessionKey,e.origin,e.anonymousToken,e.sessionUrlBase),this.onOpen(),this.pendingEgress.forEach((e=>{this.egress(e)})),this.pendingEgress=[]}egressLongPoll(e,t){var n,r;(n=e.url,r=e.request,new Promise(((e,t)=>{const o=setTimeout((()=>{t(new Error(oe))}),2e4);(0,re.fetch)(n,r||{}).then((t=>{clearTimeout(o),e(t)})).catch((e=>{clearTimeout(o),t(e)}))}))).then((e=>{e&&e.ok?e.text().then((e=>{t.success=!0,t.resourceId="LongPoll",a.tG.info(508163355,a.nh.CoreDefault,t.stop()),this.ingressInternal(e)})).catch((e=>{this.onEgressError(t,"LongPollFetchParseError: "+(null==e?void 0:e.message))})):this.onEgressError(t,"LongPollFetchStatusFailure: "+(null==e?void 0:e.statusText))})).catch((e=>{e.message===oe?(t.success=!1,t.resultDescription="LongPollFetchResponseTimeout:"+(null==e?void 0:e.message),a.tG.error(508163353,a.nh.CoreDefault,t.stop()),this.ingressInternal(de,!0)):this.onEgressError(t,"LongPollFetchResponseError: "+(null==e?void 0:e.message))}))}getRequestInfo(e,t){const n=this.getUrl(null==e?void 0:e.isHttpSessionInitMessage),r=this.getHeader(e,t);return t.resultSignature=n,{url:n,request:{method:"POST",headers:r,body:e.obj}}}getUrl(e){const t=this.sessionSettings&&this.sessionSettings.sliceUrl?this.sessionSettings.sliceUrl:this.url;return e?t+"/sessioninit":this.isConnectedToSession()?t+"/session/"+this.sessionSettings.sessionKey:""}getHeader(e,t){var n;const r=new re.Headers;return(null==e?void 0:e.isHttpSessionInitMessage)?(r.set("Content-Type","application/json"),this.origin&&r.set("x-origin",this.origin)):this.isConnectedToSession()&&(e.obj instanceof Uint8Array||e.obj instanceof ArrayBuffer?(r.set("Content-Type","application/jsond2"),t.dimension0=e.obj.byteLength.toString().length.toString()):r.set("Content-Type","application/json"),r.append("Authorization",`Bearer ${this.sessionSettings.anonymousToken}`),r.set("x-origin",this.sessionSettings.origin)),(null===(n=this.networkOverrideOptions)||void 0===n?void 0:n.hostHeader)&&r.set("host",this.networkOverrideOptions.hostHeader),r}setSessionSettings(e,t,n,r){const o=r.replace("/session","");this.sessionSettings={sessionKey:e,origin:t,anonymousToken:n,sliceUrl:o}}isConnectedToSession(){return this.sessionSettings&&this.sessionSettings.sessionKey.length>0&&this.sessionSettings.anonymousToken.length>0&&this.sessionSettings.origin.length>0&&this.sessionSettings.sliceUrl.length>0&&!this.isClosed}formatServerInput(e){return e.length>1?e.substring(1,e.length-1):""}logIngressCount(e){const t=e.length;if(t>1e5){const e=new i.I({operationName:"HttpIngressByteOrderOfMagnitude",success:!0}).start();e.dimension2=t.toString().length.toString(),a.tG.info(508409622,a.nh.CoreDefault,e.stop())}}}const fe=(e,t,n,r,o)=>{const s=(e=>{const t=e.filter((e=>E.h.matchesTypesFor(e,["AugLoop_Signals_SignalOperation"])));for(const e of t)for(const t of e.items)if(t.body&&E.h.matchesTypesFor(t.body,["AugLoop_CopilotChatHistory_CopilotChatHistorySignal","AugLoop_Copilot_CopilotInputSignal"]))return t})(e);s&&(o.setDataField("CurrentTimestamp",n),o.cv=t||"",o.resultSignature=r,o.resourceId=E.h.getTypeNameFor(s.body),s.contextId&&o.setDataField("ContextId",s.contextId),s.sourceTimestamp&&o.setDataField("SourceTimestamp",s.sourceTimestamp),a.tG.info(505983429,a.nh.CoreDefault,o.stop()))},he=(e,t,n,r,o)=>{r&&!(e=>{var t;const n=e.ops.filter((e=>E.h.matchesTypesFor(e,["AugLoop_Core_AddOperation"])));for(const e of n)for(const n of e.items)if(n.body&&(null===(t=n.body)||void 0===t?void 0:t.isFirstUserPerceivedResponse))return!0;return!1})(e)||(o.setDataField("CurrentTimestamp",t),o.cv=e.cv,o.resultSignature=n,o.resourceId=e.annotationType,a.tG.info(505983428,a.nh.CoreDefault,o.stop()))};var ge=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};const me=1e5,ye=1e4;class ve{constructor(e){var t,n;this.emptyMessageId=0,this.egressMessageCount=0,this.egressByteCount=0,this.prevSeq=-1,this.pendingQueue=[],this.rpsThreshold=150,this.bpsThreshold=5e8,this.isClosing=!1,this.messageQueue=void 0,this.egressRateLogOp=new i.I({operationName:"NetworkEgressRate",success:!0}),this.egressedCache=new Map,this.initPromise=new Promise((e=>{this.resolveInitPromise=e})),this.dynamicRateControllerEnabled=null!==(t=null==e?void 0:e.dynamicRateControllerEnabled)&&void 0!==t&&t,this.dynamicRateControllerEnabled&&(this.messageQueue=new(q())),this.reducedPingPongRetryEnabled=null!==(n=null==e?void 0:e.reducedPingPongRetryEnabled)&&void 0!==n&&n}init(e,t,n,r,o,s){this.worker=e,this.ingress=t,this.queryEgressCacheSize=n,this.clientMetadata=o,this.networkMode=r,this.reliabilityManager=((e,t,n,r,o)=>e instanceof pe?new ue(e,n,r):new ce(e,t,n,o))(this.worker,this.close.bind(this),void 0,s,this.reducedPingPongRetryEnabled),this.egressRateLogOp.setClientMetadata(this.clientMetadata,!0),this.dynamicRateControllerEnabled&&(this.resetRateLimiter(),this.onCloseController=new Promise((e=>{this.resolveCloseControllerPromise=e})),this.queueProcessingCompletePromise=new Promise((e=>{this.resolveQueueProcessingCompletePromise=e}))),this.resolveInitPromise()}open(){const e=new i.I({operationName:"NetworkRateControllerOpen",success:!0,dimension3:`networkMode: ${this.networkMode}`}).start();e.setClientMetadata(this.clientMetadata,!0),this.initPromise.then((()=>{if(!this.reliabilityManager)return e.success=!1,void(e.resultDescription="Reliability Manager is undefined");this.egressRateControlIntervalStart=Date.now(),this.reliabilityManager.start(),this.dynamicRateControllerEnabled?this.processQueue():(this.egressRateControlTimer=setInterval((()=>this.flush()),1e3),this.flush())})).catch((t=>{var n;e.success=!1,e.resultDescription="Catch: "+(null!==(n=null==t?void 0:t.message)&&void 0!==n?n:"")})).finally((()=>{a.tG.info(507834384,a.nh.CoreDefault,e.stop())}))}ingressFromWorker(e,t){this.reliabilityManager?this.reliabilityManager.needsParsedResponses()||!this.reliabilityManager.isReliabilityResponse(e)?this.ingress(e,(e=>{null==t||t(e),this.reliabilityManager.needsParsedResponses()&&this.reliabilityManager.isReliabilityResponse(e)&&this.reliabilityManager.onResponse(e)})):this.reliabilityManager.onResponse():this.ingress(e,t)}onRateLimitErrorResponse(e){if(this.dynamicRateControllerEnabled){const t=new i.I({operationName:"NetworkRateControllerOnRateLimitResponse",success:!0}).start();t.setClientMetadata(this.clientMetadata,!0),t.resultSignature=`rateLimitAlreadyStarted: ${void 0!==this.rateLimitTimeout}`,t.setDataField("RetryAfterMs",e.retryAfterMs),t.setDataField("QueueSize",this.messageQueue.length),this.startRateLimiting(e.retryAfterMs),a.tG.info(507388684,a.nh.CoreDefault,t.stop())}}setRpsBps(e,t){const n=new i.I({operationName:"NetworkRateControllerRateLimitsSet",success:!0}).start();n.setClientMetadata(this.clientMetadata,!0),e&&(this.rpsThreshold=.8*e,n.resultDescription+=`maxRPS: ${e}, rpsThreshold: ${this.rpsThreshold}; `),t&&(this.bpsThreshold=.8*t,n.resultDescription+=`maxRPS: ${t}, rpsThreshold: ${this.bpsThreshold}; `),a.tG.info(507388683,a.nh.CoreDefault,n.stop())}close(){var e,t;return ge(this,void 0,void 0,(function*(){const n=new i.I({operationName:"NetworkRateControllerClose",success:!0,dimension3:`networkMode: ${this.networkMode}`}).start();if(n.setClientMetadata(this.clientMetadata,!0),this.isClosing=!0,this.dynamicRateControllerEnabled){null===(e=this.resolveCloseControllerPromise)||void 0===e||e.call(this);const r=null===(t=this.reliabilityManager)||void 0===t?void 0:t.checkConnection();n.setDataField("QueueSizeBeforeFlush",this.messageQueue.length),0!=this.messageQueue.length&&r&&(yield this.queueProcessingCompletePromise),n.setDataField("QueueSizeAfterFlush",this.messageQueue.length),n.setDataField("IsConnected",r)}this.reliabilityManager?this.reliabilityManager.close():n.resultDescription="Reliability Manager is undefined",this.worker=void 0,this.prevSeq=-1,this.clearEgressControlTimeout(),this.reliabilityManager=void 0,a.tG.info(507834381,a.nh.CoreDefault,n.stop())}))}clearMessageQueues(){this.pendingQueue=[],this.egressedCache.clear(),this.messageQueue=void 0}egress(e,t=0){var n,r,o;if(!this.reliabilityManager)return void this.logEgressActivity(!1,"Reliability Manager is undefined","");const s=this.getMessageSize(e);if(s>=3e6)this.logEgressActivity(!1,"Message size exceeded 3000000",`Message size: ${s}`);else{if((e.obj instanceof ArrayBuffer||e.isHttpSessionInitMessage)&&this.worker)return this.logEgressActivity(!0,`isArrayBuffer: ${e.obj instanceof ArrayBuffer}, isHttpSessionInitMessage: ${e.isHttpSessionInitMessage}`,""),void this.worker.egress(e);if(this.validateSyncMessage(e.messageId,e.seqId),this.dynamicRateControllerEnabled){const o=null!==(n=e.messageId)&&void 0!==n?n:"id"+this.emptyMessageId++,s={obj:e.obj,seqId:null==e?void 0:e.seqId,messageId:o,isHttpSessionInitMessage:null==e?void 0:e.isHttpSessionInitMessage},c=t>0,l=new i.I({operationName:"NetworkRateControllerQueueItem",success:!0,dimension3:`isRetry: ${c}`}).start();l.setClientMetadata(this.clientMetadata,!0);const u={message:s,logOp:l};if(c?this.messageQueue.unshift(u):this.messageQueue.push(u),this.messageQueue.length>1e4){const e=this.messageQueue.shift(),t=`NetworkRateControllerQueue max size reached. Dropping messageId: ${e.message.messageId}`;throw e.logOp.resultDescription=t,e.logOp.success=!1,a.tG.info(506001225,a.nh.CoreDefault,e.logOp.stop()),new Error(t)}null===(r=this.resolveQueueNotEmptyPromise)||void 0===r||r.call(this)}else{const t=this.queryEgressCacheSize(),n=this.egressMessageCount>=this.rpsThreshold,r=this.egressByteCount>=this.bpsThreshold,s=t>ye,i=this.reliabilityManager.checkConnection(),a=0!==this.pendingQueue.length,c=this.pendingQueue.length>=1e4;if(!i||n||r||a||c||s){let l="";const u=[];(a||c)&&(l+=c?"Pending queue max exceeded. ":"Pending queue not empty. ",u.push(this.pendingQueue.length.toString().length.toString())),s&&(l+=t>=ye?"Egressed cache max exceeded. ":"",u.push(t.toString().length.toString())),n&&(l+="RPS exceeded. ",u.push(this.egressMessageCount.toString().length.toString())),r&&(l+="BPS exceeded. ",u.push(this.egressByteCount.toString().length.toString())),l+=i?"":"Not connected. ",this.logEgressActivity(!0,`networkMode: ${this.networkMode}`,l,u);const d=null!==(o=e.messageId)&&void 0!==o?o:"id"+this.emptyMessageId++;return void this.pendingQueue.push({obj:e.obj,seqId:null==e?void 0:e.seqId,messageId:d,isHttpSessionInitMessage:null==e?void 0:e.isHttpSessionInitMessage})}this.sendToNetworkWorker(e)}}}getMessageSize(e){return e.obj instanceof ArrayBuffer?e.obj.byteLength:e.obj.length}sendToNetworkWorker(e){var t;try{if(!this.worker)return void this.logEgressActivity(!1,"NetworkWorker is undefined","SendToNetworkWorkerFailure");if(!this.reliabilityManager)return void this.logEgressActivity(!1,"Reliability Manager is undefined","SendToNetworkWorkerFailure");this.worker.egress(e),this.onSendToNetworkWorker(e),null===(t=this.reliabilityManager)||void 0===t||t.postEgress();const n=this.getMessageSize(e);this.logEgressCount(n)}catch(e){this.logEgressActivity(!1,"SendToNetworkWorkerFailure",e?e.message:"")}}onSendToNetworkWorker(e){if("string"==typeof e.obj)try{const o=JSON.parse(e.obj);k.Tb.typeGuard(o)&&(t=o,n=Date.now(),r=new i.I({operationName:"AugloopClientPerfTracker",success:!0}).setClientMetadata(this.clientMetadata).start(),fe(t.ops,t.cv,n,"SendToNetwork",r))}catch(e){}var t,n,r}flush(){if(!this.reliabilityManager){const e=new i.I({operationName:"NetworkRateControllerFlushFailure",success:!1,dimension3:`networkMode: ${this.networkMode}`}).start();return e.setClientMetadata(this.clientMetadata,!0),e.resultDescription="Reliability Manager is undefined",void a.tG.info(507834373,a.nh.CoreDefault,e.stop())}let e=0,t=0;for(;this.pendingQueue.length>0&&this.queryEgressCacheSize()<ye&&e<this.rpsThreshold&&t<this.bpsThreshold&&this.reliabilityManager.checkConnection();){const n=this.pendingQueue.shift();this.sendToNetworkWorker(n),e++,t+=this.getMessageSize(n)}}processQueue(){var e,t,n;return ge(this,void 0,void 0,(function*(){if(!this.reliabilityManager){const e=new i.I({operationName:"NetworkRateControllerProcessQueueFailure",success:!1,dimension3:`networkMode: ${this.networkMode}`}).start();return e.setClientMetadata(this.clientMetadata,!0),e.resultDescription="Reliability Manager is undefined",void a.tG.info(507573643,a.nh.CoreDefault,e.stop())}const r=new i.I({operationName:"NetworkRateControllerProcessQueue",success:!0}).start();for(;;){if(0===this.messageQueue.length){if(this.isClosing){r.setDataField("ExitReason","Stage#1 Closing");break}yield Promise.race([this.queueNotEmpty(),this.onCloseController])}if(this.rateLimitTimeout){const e=new i.I({operationName:"NetworkRateControllerRateLimitBackoff",dimension3:`networkMode: ${this.networkMode}`}).start();e.setClientMetadata(this.clientMetadata,!0),e.setDataField("QueueLengthBeforeBackoff",this.messageQueue.length),yield Promise.race([this.rateLimitTimeout,this.onCloseController]),e.setDataField("QueueLengthAfterBackoff",this.messageQueue.length),e.setDataField("IsClosing",this.isClosing),e.success=!0,this.rateLimitTimeout=void 0,this.resetRateLimiter(),a.tG.info(507281410,a.nh.CoreDefault,e.stop())}if(!(null===(e=this.reliabilityManager)||void 0===e?void 0:e.checkConnection())){if(this.isClosing){r.setDataField("ExitReason","Stage#2 Closing");break}yield this.checkConnectionPromise(),this.connectionPromise=void 0}if(!this.reliabilityManager){r.setDataField("ExitReason","Stage#2 ReliabilityManager null");break}for(;this.messageQueue.length>0&&this.reliabilityManager.checkConnection();){if(Date.now()-this.egressRateControlIntervalStart>=1e3)this.resetRateLimiter();else if(this.egressMessageCount>=this.rpsThreshold||this.egressByteCount>=this.bpsThreshold){const e=1100;let t="";this.egressMessageCount>=this.rpsThreshold&&(t+="RPS exceeded."),this.egressByteCount>=this.bpsThreshold&&(t+="BPS exceeded.");const n="rateLimitHit",r=new i.I({operationName:"NetworkRateControllerEgress",dimension3:`networkMode: ${this.networkMode}`}).start();r.setClientMetadata(this.clientMetadata,!0),r.success=!0,r.resultDescription=n,r.resultSignature=t,r.dimension0=this.messageQueue.length.toString().length.toString(),r.dimension1="rateLimitHit",r.setDataField("QueueLength",this.messageQueue.length),r.setDataField("RateLimitDelayMs",e),a.tG.info(507281409,a.nh.CoreDefault,r.stop()),this.startRateLimiting(e);break}const e=this.messageQueue.shift();this.sendToNetworkWorker(e.message),a.tG.info(507388682,a.nh.CoreDefault,e.logOp.stop())}this.onQueueNotEmpty=void 0,this.resolveQueueNotEmptyPromise=void 0}null===(t=this.resolveQueueProcessingCompletePromise)||void 0===t||t.call(this),this.resolveQueueProcessingCompletePromise=void 0,r.setClientMetadata(this.clientMetadata,!0),r.setDataField("QueueSize",this.messageQueue.length),r.setDataField("IsConnected",null===(n=this.reliabilityManager)||void 0===n?void 0:n.checkConnection()),r.setDataField("IsClosing",this.isClosing),a.tG.info(507368671,a.nh.CoreDefault,r.stop())}))}queueNotEmpty(){return this.onQueueNotEmpty||(this.onQueueNotEmpty=new Promise((e=>{this.resolveQueueNotEmptyPromise=e}))),this.onQueueNotEmpty}checkConnectionPromise(){return this.connectionPromise||(this.connectionPromise=new Promise((e=>{setTimeout(e,1e3)}))),this.connectionPromise}startRateLimiting(e){this.rateLimitTimeout||(this.rateLimitTimeout=new Promise((t=>{setTimeout(t,e)})))}resetRateLimiter(){this.egressRateControlIntervalStart=Date.now(),this.egressMessageCount=0,this.egressByteCount=0}clearEgressControlTimeout(){this.egressRateControlTimer&&(clearInterval(this.egressRateControlTimer),this.egressRateControlTimer=void 0)}validateSyncMessage(e,t){if(!(void 0===t||void 0===e||t<=this.prevSeq)){if(t&&t!==this.prevSeq+1){const e=new i.I({operationName:"NetworkRateControllerAbandonedSyncMessage",success:!0,dimension3:`networkMode: ${this.networkMode}`}).start();e.setClientMetadata(this.clientMetadata,!0),e.resultDescription="Gap in sync message",e.dimension0=`${this.prevSeq}`,e.dimension1=`${t}`,e.dimension2=""+(t-this.prevSeq),a.tG.info(507834370,a.nh.CoreDefault,e.stop())}this.prevSeq=t}}logEgressActivity(e,t,n,r){var o,s,c,l;const u=new i.I({operationName:"NetworkRateControllerEgress",dimension3:`networkMode: ${this.networkMode}`}).start();u.setClientMetadata(this.clientMetadata,!0),u.success=e,u.resultDescription=t,u.resultSignature=n,r&&(u.dimension0=null!==(o=r[0])&&void 0!==o?o:"",u.dimension1=null!==(s=r[1])&&void 0!==s?s:"",u.dimension2=null!==(c=r[2])&&void 0!==c?c:"",u.dimension3=null!==(l=r[3])&&void 0!==l?l:""),a.tG.info(507626007,a.nh.CoreDefault,u.stop())}logEgressCount(e){const t=Date.now();t-this.egressRateControlIntervalStart>1e3&&((this.egressMessageCount>50||this.egressByteCount>me)&&(this.egressRateLogOp.start(),this.egressRateLogOp.resultDescription=this.egressMessageCount>50?"rps logging threshold exceeded":"",this.egressRateLogOp.resultDescription=this.egressByteCount>me?"bps logging threshold exceeded":"",this.egressRateLogOp.dimension0=(t-this.egressRateControlIntervalStart).toString(),this.egressRateLogOp.dimension1=`${this.egressMessageCount}`,this.egressRateLogOp.dimension2=`${this.egressByteCount}`,this.egressRateLogOp.dimension3=`networkMode: ${this.networkMode}`,a.tG.info(508843792,a.nh.CoreDefault,this.egressRateLogOp.stop())),this.egressRateControlIntervalStart=t,this.egressMessageCount=0,this.egressByteCount=0),this.egressMessageCount++,this.egressByteCount+=null!=e?e:0}}var we,be;!function(e){e[e.JSWebSockets=0]="JSWebSockets",e[e.LocalWorkflowsOnly=1]="LocalWorkflowsOnly",e[e.HostWebSockets=2]="HostWebSockets",e[e.HttpFallback=3]="HttpFallback"}(we||(we={})),function(e){e.Workflow="Workflow",e.Client="Client",e.HttpEndpoint="HttpEndpoint"}(be||(be={}));class Se{constructor(e,t,n,r,o,s,c,l,u,d){this.logCountLimiter=new L(Se.className),this.isWorkerReady=!1,this.permanentlyClosed=!1,this.currentReconnectAttempt=0,this.lastInitializationAttemptTimeMs=0,this.offlineInterval=void 0,this.alreadyLoggedReconnectAttempt=!1,this.httpTestsLeft=5,this.httpTestsSuccessCount=0,this.workerOpenCount=0,this.testHttpConnection=e=>{const t=N.convertWebSocketUrlToHttp(this.globalUrl),n=!e,r=null!=e?e:new i.I({operationName:"HttpsTest",resourceId:f(t),success:!1,resultDescription:"",resultSignature:"HttpResponse:"}).start();se(t,{method:"POST",headers:{"content-type":"application/json","X-CorrelationId":r.cv},body:JSON.stringify(N.createHealthCheckRequest(this.clientMetadata))},((e,t)=>{e?(r.dimension1="HttpErr",r.resultDescription+=`HttpErr: ${e.message}`):t&&t.ok?(r.dimension1="HttpOK",this.leaveOfflineMode(),this.httpTestsSuccessCount++,n&&(r.success=!0)):(r.dimension1="HttpNoResp",r.resultDescription+=`HttpStatus: ${null==t?void 0:t.status}`),n&&r.stop(),this.logCountLimiter.log((()=>{a.tG.info(508843780,a.nh.CoreDefault,r)}))}))},this.globalUrl=e,this.clientMetadata=t,this.workerFactory=n,this.sessionInitializer=r,this.ingress=o,this.queryEgressCacheSize=s,this.onConnectionClose=c,this.sessionCorrelationVector=l,this.dynamicRateControllerEnabled=u.dynamicRateControllerEnabled,this.reducedPingPongRetryEnabled=u.reducedPingPongRetryEnabled,this.networkWorkerLogOp=new i.I({operationName:"CreateNetworkWorker",success:!0}),this.networkMode=d||we.JSWebSockets,this.initNetworkMode=this.networkMode}init(e,t,n=!1){if(this.permanentlyClosed)return Promise.reject(new Error("permanentlyClosed"));if(this.isWorkerReady||this.pendingInitPromise)return this.pendingInitPromise?this.pendingInitPromise:Promise.resolve();this.extensionConfigs=e||this.extensionConfigs;const r=()=>{if(n||!this.alreadyLoggedReconnectAttempt){const e=n?Se.initialAttemptTimeout:Se.reconnectAttemptTimeout;this.connTimeout=setTimeout((()=>{const t=new i.I({operationName:"ConnectionFailingOrSlow",dimension0:n?"Initial":"Reconnect",dimension1:e.toString(),dimension2:this.currentReconnectAttempt.toString()});a.tG.info(508843787,a.nh.CoreDefault,t),this.alreadyLoggedReconnectAttempt=!n,this.connTimeout=void 0}),e)}};return t?this.pendingInitPromise=t().catch((e=>{const t=new i.I({operationName:"WorkerManagerCustomInit",success:!1,resultDescription:`${e}`});a.tG.error(508843786,a.nh.CoreDefault,t)})).then((()=>{r(),this.initInternal()})):(this.pendingInitPromise=Promise.resolve(),r(),this.initInternal()),this.pendingInitPromise}egress(e,t){return!this.isWorkerReady&&this.pendingInitPromise?this.pendingInitPromise.then((()=>{this.egressInternal(e,t)})):(this.egressInternal(e,t),Promise.resolve())}egressBytes(e){return!this.isWorkerReady&&this.pendingInitPromise?this.pendingInitPromise.then((()=>{this.egressBytesInternal(e)})):(this.egressBytesInternal(e),Promise.resolve())}getNetworkMode(){return this.networkMode}getInitNetworkMode(){return this.initNetworkMode}onRateLimitErrorResponse(e){this.dynamicRateControllerEnabled&&this.getNetworkRateController().onRateLimitErrorResponse(e)}close(e){this.isWorkerReady=!1,this.dynamicRateControllerEnabled&&this.networkRateController&&this.getNetworkRateController().close(),this.worker&&(this.worker.close(),this.worker=null),!this.dynamicRateControllerEnabled&&this.networkRateController&&this.getNetworkRateController().close(),this.networkRateController=null,this.permanentlyClosed=e||this.permanentlyClosed,this.permanentlyClosed&&(this.leaveOfflineMode(),clearTimeout(this.connTimeout))}initInternal(){if(this.isWorkerReady=!1,this.permanentlyClosed||this.isOffline()){const e=new i.I({operationName:"WorkerManagerInitOffline",success:!0,resultSignature:this.permanentlyClosed?"PermanentlyClosed":"Offline"});a.tG.info(508843785,a.nh.CoreDefault,e)}else this.currentReconnectAttempt>0?setTimeout((()=>{this.tryToConnectAndInitializeSession()}),((e,t,n)=>{let r=0;const o=N.getCurrentTimeMs()?N.getCurrentTimeMs()-t:0,s=[1e3,2e3,5e3,1e4,6e4];return r=s[Math.max(0,Math.min(s.length-1,e-1))],r=Math.max(r-o,1e3),r=n&&n>0?Math.min(5e3,r):r,r})(this.currentReconnectAttempt,this.lastInitializationAttemptTimeMs,this.httpTestsSuccessCount)):this.getNetworkMode()===we.HttpFallback?setTimeout((()=>{this.tryToConnectAndInitializeSession()}),100):this.tryToConnectAndInitializeSession()}egressInternal(e,t){if(!this.isWorkerReady&&!E.h.matchesTypesFor(e,[k.eE.getTypeName()]))return void(E.h.matchesTypesFor(e,[k.YK.getTypeName()])||a.tG.error(508843784,a.nh.CoreDefault,new i.I({operationName:"UnexpectedEgressCall",resultDescription:`isWorkerReady: ${this.isWorkerReady}`})));let n,r;if(E.h.matchesTypesFor(e,[k.VR.getTypeName()])?(this.castBinaryData(e),n=ne.serialize(e)):n=JSON.stringify(e),k.Tb.typeGuard(e)&&(r=e.seq),this.bypassRateController(e))return void this.worker.egress({obj:n});const o=k.eE.typeGuard(e)&&this.getNetworkMode()===we.HttpFallback;this.getNetworkRateController().egress({obj:n,isHttpSessionInitMessage:o,messageId:e.messageId,seqId:r},t)}bypassRateController(e){return k.w9.typeGuard(e)}egressBytesInternal(e){this.isWorkerReady?this.getNetworkRateController().egress({obj:e}):a.tG.error(508843783,a.nh.CoreDefault,new i.I({operationName:"UnexpectedEgressBytesCall",resultDescription:`isWorkerReady: ${this.isWorkerReady}`}))}tryToConnectAndInitializeSession(){this.currentReconnectAttempt++,this.lastInitializationAttemptTimeMs=N.getCurrentTimeMs();const e=t=>{if(this.permanentlyClosed||this.isOffline())return;const n=this.sliceUrl?this.sliceUrl:this.globalUrl;t.setDataField("connectionUrl",f(n)),this.connect(n),this.sessionInitializer.initSession({isTokenRefresh:!1,isReconnectOnSameSlice:!!this.sliceUrl,extensionConfigs:this.extensionConfigs,onResponse:(n,r)=>{if(t.success=!n,t.resourceId=r?f(r.sliceUrl):"",t.dimension2=this.getNetworkModeLogString(),this.getNetworkMode()===we.HttpFallback?(t.resultDescription=n?`HTTP Error: ${n.error}`:"",t.dimension0=t.success?"HTTPOK":"HTTPFail"):(t.resultDescription=n?`WS Error: ${n.error}`:"",t.dimension0=t.success?"WSOK":"WSFail"),n||!this.worker)return this.sliceUrl=void 0,this.close(),this.httpTestsLeft>0?(this.httpTestsLeft--,this.testHttpConnection(t.stop())):(this.getNetworkMode()===we.JSWebSockets?0===this.workerOpenCount&&this.httpTestsSuccessCount>=5?(t.dimension1="WSBlocked",t.dimension3="HTTP Fallback",this.networkMode=we.HttpFallback,this.currentReconnectAttempt=0,this.resetHttpTestsCounter()):0===this.httpTestsSuccessCount&&(this.startOfflineMode(),t.dimension1="WSOffline"):0===this.httpTestsSuccessCount&&(this.startOfflineMode(),t.dimension1="HTTPOffline"),this.logCountLimiter.log((()=>{a.tG.info(508843782,a.nh.CoreDefault,t.stop())}))),void this.initInternal();if(this.logCountLimiter.log((()=>{a.tG.info(508843781,a.nh.CoreDefault,t.stop())})),r.forceReconnect){this.close();const t=new i.I({operationName:"ForcedReconnect"}).start();t.resultSignature=`globalUrl: ${this.globalUrl}. sliceUrl: ${this.sliceUrl}`,this.sliceUrl=void 0,setTimeout((()=>{e(t)}),1e3)}else clearTimeout(this.connTimeout),this.sliceUrl=r.sliceUrl,this.dynamicRateControllerEnabled&&this.getNetworkRateController().setRpsBps(r.maxRPS,r.maxBPS),this.ready();this.resetHttpTestsCounter()}})},t=new i.I({operationName:"TryToConnectAndInitializeSession",resultSignature:`Reconnection attempt #${this.currentReconnectAttempt}`}).start();e(t)}getNetworkRateController(){return this.networkRateController||(this.networkRateController=new ve({dynamicRateControllerEnabled:this.dynamicRateControllerEnabled,reducedPingPongRetryEnabled:this.reducedPingPongRetryEnabled})),this.networkRateController}connect(e){const t=this.getNetworkMode();this.networkWorkerLogOp.start(),this.networkWorkerLogOp.resultDescription=this.getNetworkModeLogString(),this.networkWorkerLogOp.dimension0=t.toString(),this.logCountLimiter.log((()=>a.tG.info(508372418,a.nh.CoreDefault,this.networkWorkerLogOp.stop()))),this.worker=this.workerFactory(t),this.worker.init(e,this.getNetworkRateController().ingressFromWorker.bind(this.networkRateController),(()=>{this.workerOpenCount++,this.getNetworkRateController().open(),this.leaveOfflineMode()}),(e=>{this.close(),this.onConnectionClose(e)}),this.clientMetadata),this.getNetworkRateController().init(this.worker,this.ingress,this.queryEgressCacheSize,t,this.clientMetadata,this.sessionCorrelationVector)}ready(){this.isWorkerReady=!0,this.pendingInitPromise=void 0,this.currentReconnectAttempt=0}castBinaryData(e){if(e){if(Array.isArray(e.__binaryMembers__))for(const t of e.__binaryMembers__)ArrayBuffer.isView(e[t])||(e[t]=new Uint8Array(e[t]));for(const t of Object.keys(e))"object"==typeof e[t]&&null!==e[t]&&this.castBinaryData(e[t])}}isOffline(){return!!this.offlineInterval}startOfflineMode(){this.offlineInterval=setInterval((()=>{this.testHttpConnection()}),6e4)}leaveOfflineMode(){this.isOffline()&&(clearInterval(this.offlineInterval),this.offlineInterval=void 0,this.resetHttpTestsCounter(),this.tryToConnectAndInitializeSession())}resetHttpTestsCounter(){this.httpTestsLeft=5,this.httpTestsSuccessCount=0}getNetworkModeLogString(){return"NetworkMode: "+(this.getNetworkMode()===we.JSWebSockets?"WebSocket":"HTTP")}}Se.initialAttemptTimeout=1e5,Se.reconnectAttemptTimeout=2e4,Se.className="NetworkWorkerManager";class Te{constructor(e){E.h.assign(Te,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_WorkflowRegistrationMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Te.getTypeName()])}}Te.H_={T_:Te.getTypeName(),B_:Te.getBaseTypes()};class Ce{constructor(e){E.h.assign(Ce,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_WorkflowExecutionRequest"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Ce.getTypeName()])}}Ce.H_={T_:Ce.getTypeName(),B_:Ce.getBaseTypes()};class _e{constructor(e){E.h.assign(_e,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_WorkflowCancellationRequest"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[_e.getTypeName()])}}_e.H_={T_:_e.getTypeName(),B_:_e.getBaseTypes()};class Ie{constructor(e){E.h.assign(Ie,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_WorkflowExecutionResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Ie.getTypeName()])}}Ie.H_={T_:Ie.getTypeName(),B_:Ie.getBaseTypes()};class ke{constructor(e){E.h.assign(ke,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_RuntimeInitMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[ke.getTypeName()])}}ke.H_={T_:ke.getTypeName(),B_:ke.getBaseTypes()};class Ae{constructor(e){E.h.assign(Ae,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_DiagnosticTraceMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Ae.getTypeName()])}}Ae.H_={T_:Ae.getTypeName(),B_:Ae.getBaseTypes()};class Ee{constructor(e){E.h.assign(Ee,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_TelemetryMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Ee.getTypeName()])}}Ee.H_={T_:Ee.getTypeName(),B_:Ee.getBaseTypes()};class Re{constructor(e){E.h.assign(Re,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_TelemetryFlushMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Re.getTypeName()])}}Re.H_={T_:Re.getTypeName(),B_:Re.getBaseTypes()};class Oe{constructor(e){E.h.assign(Oe,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_SessionCloseResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Oe.getTypeName()])}}Oe.H_={T_:Oe.getTypeName(),B_:Oe.getBaseTypes()};class Pe{constructor(e){E.h.assign(Pe,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_WorkflowDefinitionOverrideMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Pe.getTypeName()])}}Pe.H_={T_:Pe.getTypeName(),B_:Pe.getBaseTypes()};class Me{constructor(e){E.h.assign(Me,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_GetAnnotationsRequestMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_StreamingRequest","AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Me.getTypeName()])}}Me.H_={T_:Me.getTypeName(),B_:Me.getBaseTypes()};class xe{constructor(e){E.h.assign(xe,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Internal_GetAnnotationsResponseMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_StreamingResponse","AugLoop_Session_Protocol_Response"]}static typeGuard(e){return E.h.matchesTypesFor(e,[xe.getTypeName()])}}xe.H_={T_:xe.getTypeName(),B_:xe.getBaseTypes()};class De extends R.EventEmitter{constructor(e,t,n,r,o,s,a,c,l){super(),this.cvParent=new b,this.logOp=new i.I({operationName:"SessionState",success:!0}).start(),this.sessionStateChangeLogCountLimiter=new L("SessionState"),this.logRetryTelemetry=!0,this.isImproveRetriesChangeGateEnabled=!0,this.shouldNotRetryOnSessionClosedError=!0,this.stats=t,this.allStates={[G.Initing]:new J(this),[G.Running]:new Q(this),[G.Disconnected]:new K(this),[G.Closed]:new X(this)},this.setState(G.Initing),this.messageEndpoint=new I.N0({messageIdPrefix:"c",responseTimeoutMs:3e4,resendPendingMessagesOnReconnect:!1}),this.messageEndpoint.setClientMetadata(o),this.messageEndpoint.setEgress(this.egress.bind(this)),this.messageEndpoint.onMessage(k.w9.getTypeName(),((e,t)=>{this.onSessionCloseMessage(e,t)})),this.networkWorkerManager=new Se(e,o,n,r,this.ingress.bind(this),this.messageEndpoint.queryEgressCacheSize.bind(this.messageEndpoint),this.onConnectionClose.bind(this),this.getCorrelationVector.bind(this),a,l),this.messageQueue=new H({sendMessage:(e,t,n,r)=>this.state.sendMessage(e,t,n,r),sendBytes:this.sendBytes.bind(this),canSendMessage:()=>this.state.canSendMessage()}),r.on("connect",((e,t,n,r,o,s,i)=>{this.setState(G.Running,"",{isSessionReseedingStarted:e&&t}),this.emit("connect",e,n,r,o,s,i)})),r.on("reconnect",(()=>this.emit("reconnect"))),r.on("serverAuthenticationStateChange",(e=>this.emit("serverAuthenticationStateChange",e))),this.resetNextSyncSequenceId=()=>this.emit("resetNextSyncSequenceId"),this.tokenRefreshManager=s,this.gateUtils=c,this.gateUtils&&(this.gateUtils.isChangeGateEnabled("LogRetryMessageEventV2").then((e=>{this.logRetryTelemetry=e})).catch((()=>{})),this.gateUtils.isChangeGateEnabled("ImproveClientRetries").then((e=>{this.isImproveRetriesChangeGateEnabled=e})).catch((()=>{})),this.gateUtils.isChangeGateEnabled("ShouldNotRetryOnSessionClosedError").then((e=>{this.shouldNotRetryOnSessionClosedError=e})).catch((()=>{})))}setState(e,t,n){if(this.state&&e===this.state.stateName)return;const r=this.state?G[this.state.stateName]:"undefined",o=this.state?this.state.possibleNextStates.indexOf(e)>=0:e===G.Initing;this.sessionStateChangeLogCountLimiter.log((()=>{this.logOp.stop(),this.logOp.resourceId=`New state: ${o?G[e]:r}`,this.logOp.resultDescription=`Previous state: ${r}`,this.logOp.dimension0=`Attempted state: ${G[e]||"undefined"}`,this.logOp.resultSignature=t+(this.state&&!o?"Unexpected state change":""),this.logOp.success=o,a.tG.info(508843791,a.nh.CoreDefault,this.logOp)})),o&&(this.state=this.allStates[e],this.logOp.start(),this.state.onEnter(n))}init(e,t){return this.extensionConfigs=e,this.customInitPromise=t,this.networkWorkerManager.init(this.extensionConfigs,this.customInitPromise,!0)}sendMessage(e,t,n){this.retrySendMessage(e,t,De.maxRetries,n)}sendBytes(e){this.state.sendBytes(e)}onMessage(e,t){this.messageEndpoint.onMessage(e,t)}getCorrelationVector(){return this.cvParent}getNetworkWorkerManager(){return this.networkWorkerManager}forceReconnect(e){return this.extensionConfigs=e||this.extensionConfigs,this.networkWorkerManager.close(!1),new Promise((e=>setTimeout((()=>{e(this.networkWorkerManager.init(this.extensionConfigs))}),100)))}closeSession(e){this.sendMessage(new k.w9),this.networkWorkerManager.close(!0);const t=e||new k.Zy({reasonDescription:"ClientRequested"});this.onSessionClose(new k.w9({reconnectAllowed:!1,reason:t}),"ClientRequested")}ingress(e,t){let n;try{n=JSON.parse(e)}catch(e){a.tG.error(508843790,a.nh.CoreDefault,new i.I({operationName:"ProcessMessage",resourceId:"Unknown",success:!1,resultSignature:"ParseError",resultDescription:e.message,durationMs:0}))}if(n){if(t&&k.YK.typeGuard(n)&&t(n),this.networkWorkerManager.getNetworkMode()===we.HttpFallback&&k.ry.typeGuard(n)){const e=n;if(e.batch)for(const t of e.batch)this.messageEndpoint.ingress(t,((e,t)=>this.egress(e||t,(()=>{}))));return}this.messageEndpoint.ingress(n,((e,t)=>this.egress(e||t,(()=>{}))))}}egress(e,t,n){e&&this.networkWorkerManager.egress(e,n).then((()=>t())).catch((e=>t(e)))}onSessionCloseMessage(e,t){e.reconnectAllowed?this.networkWorkerManager.close():this.onSessionClose(e,"CloseMessageReceived"),t()}onSessionClose(e,t){this.setState(G.Closed,t),this.tokenRefreshManager.clearAllTimeouts(),this.onConnectionClose(void 0),e&&this.emit("sessionClose",e)}onConnectionClose(e){this.state.onConnectionClose(),this.stats.lastConnectionClose=N.getCurrentTimeMs(),this.emit("disconnect",e)}retrySendMessage(e,t,n,r,o){const s=De.maxRetries-n;this.state.sendMessage(e,((c,l)=>{var u,d,p,f,h,g;o&&(c&&0==n?(o.dimension0=(s+1).toString(),o.success=!1,a.tG.info(507025311,a.nh.CoreDefault,o.stop())):c&&n>0?(o.dimension0=(s+1).toString(),o.dimension1=null!==(d=null===(u=c.code)||void 0===u?void 0:u.toString())&&void 0!==d?d:"NoErrorCode",o.resultSignature=null!==(p=c.error)&&void 0!==p?p:"NoErrorMessage"):(o.success=!0,a.tG.info(507025310,a.nh.CoreDefault,o.stop()))),c&&n>0&&this.canBeRetried(e)&&this.isTransientError(c)?(this.logRetryTelemetry&&!o&&((o=new i.I({operationName:"RetrySendMessage",success:!0,dimension0:(s+1).toString()}).start()).resourceId=E.h.getTypeNameFor(e),o.dimension1=null!==(h=null===(f=c.code)||void 0===f?void 0:f.toString())&&void 0!==h?h:"NoErrorCode",o.resultSignature=null!==(g=c.error)&&void 0!==g?g:"NoErrorMessage",o.resultDescription=`Retrying message with messageId: ${e.messageId}${k.Tb.typeGuard(e)?`, seq: ${e.seq}`:""}`),E.h.matchesTypesFor(c,[k.ru.getTypeName()])&&this.networkWorkerManager.onRateLimitErrorResponse(c),this.retrySendMessage(e,t,n-1,r,o)):t&&t(c,l)}),s,r)}canBeRetried(e){return!E.h.matchesTypesFor(e,[k.eE.getTypeName(),k.VR.getTypeName(),Me.getTypeName()])}isTransientError(e){const t=e.error,n=e.code;return!(this.isImproveRetriesChangeGateEnabled&&n===A.xv.TokenValidationError||n===A.xv.TokenDecryptError||n===A.xv.SyncMessageTooLateOrDuplicate||this.shouldNotRetryOnSessionClosedError&&n===A.xv.Gone)&&t!==I.Ef.SyncMessageUnsupportedBatch&&t!==I.Ef.UnexpectedSeedMessage&&t!==I.Ef.UnsupportedSyncMessage&&t!==I.Ef.AnnotationTokenNotFound&&t!==U.ArrivedBeforeReseeding&&t!==U.DroppedAsOldestInQueue&&t!==U.DroppedBecauseClientDisconnected}}De.maxRetries=2;var Ne,Le,Fe,Be,We,Ue,Ge,Ve=n(30664),qe=n(25727),He=n(56452);!function(e){e[e.Unknown=0]="Unknown",e[e.LiveId=1]="LiveId",e[e.OrgId=2]="OrgId",e[e.ActiveDirectory=3]="ActiveDirectory",e[e.ADAL=4]="ADAL",e[e.SSPI=5]="SSPI",e[e.OAuth2=6]="OAuth2",e[e.Badger=7]="Badger"}(Ne||(Ne={})),function(e){e[e.Augloop=0]="Augloop",e[e.Substrate=1]="Substrate"}(Le||(Le={})),function(e){e[e.Unknown=0]="Unknown",e[e.TokenMissingInteractionRequired=1]="TokenMissingInteractionRequired"}(Fe||(Fe={}));class je{constructor(e,t,n,r){this.sendMessage=e,this.annotationType=t,this.options=n,this.token=`${t}-${je.nextActivationResultBatchId++}`,this.annotationDoesNotExistOnServiceEnabled=r}activate(e,t,n){return new Promise(((r,o)=>{this.sendMessage(new k.n4({annotationType:this.annotationType,token:this.token,config:this.options?this.options.config:void 0,ignoreExistingAnnotations:e,sendStateUpdates:this.options?!!this.options.stateUpdateCallback:void 0,forceReturnCachedAnnotations:this.options?this.options.forceReturnCachedAnnotations:void 0,returnAnnotationDoesNotExist:this.annotationDoesNotExistOnServiceEnabled||!1,sendApologies:n}),((e,t)=>{e?o(new Error(e.error)):(k.PY.typeGuard(t)&&this.annotationDoesNotExistOnServiceEnabled&&(this.annotationDoesNotExistOnService=t.annotationNotExists),r({token:this.token}))}),t)}))}release(){return new Promise(((e,t)=>{this.annotationDoesNotExistOnService&&this.annotationDoesNotExistOnServiceEnabled?e(!1):this.sendMessage(new k.GA({token:this.token}),((n,r)=>{n?t(new Error(n.error)):e(r.lastRelease)}))}))}}je.nextActivationResultBatchId=1,(Ge=Be||(Be={}))[Ge.Input=0]="Input",Ge[Ge.Exception=1]="Exception",Ge[Ge.WaitOn=2]="WaitOn",Ge[Ge.StopAndFilterWorkflow=3]="StopAndFilterWorkflow",function(e){e[e.Unknown=0]="Unknown",e[e.NoOutput=1]="NoOutput",e[e.Authentication=2]="Authentication",e[e.JoinTimedOut=3]="JoinTimedOut",e[e.LambdaThrow=4]="LambdaThrow",e[e.LambdaErrorCallback=5]="LambdaErrorCallback"}(We||(We={})),function(e){e[e.ExceedingMaxSize=0]="ExceedingMaxSize",e[e.GroupComplete=1]="GroupComplete",e[e.BatchIntervalElapsed=2]="BatchIntervalElapsed"}(Ue||(Ue={}));class ze{constructor(e,t,n,r,o){this.batchesByGroupingKey=new Map,this.getOrderOfMagnitudeDimension=e=>e<0?"Negative":0===e?"0":1===e?"1":`Magnitude ${e.toString().length}`,this.submit=e,this.onSummary=r,this.reduceBatchOperationsEnabled=t,this.batchMessagesEnabled=n,this.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled=o}addBatchItem(e,t,n,r,o,s){const{delayMs:i,delayMsMax:c,maxInputSize:l,estimateSize:u,groupingKeyExtractor:d}=t,p=u(e),f=d(e);if(t.split&&p>l){let i;try{i=t.split(e)}catch(e){const t=new Error("Split error: "+e.message);return void(s?s(t):a.tG.error(573366352,a.nh.CoreDefault,t))}if(i&&Array.isArray(i.inputs)&&i.inputs.length>1){let e;const a=[],c=s?(t,n)=>{if(e=e||t,a.push(n),a.length===i.inputs.length){let n;try{n=i.join(a)}catch(t){return void s(new Error("Join error: "+t.message))}s(e,n)}}:void 0;for(let e=0;e<i.inputs.length;e++){const s=i.inputs[e];this.addBatchItem(s,t,n,r,o&&e===i.inputs.length-1,c)}return}}let h=this.batchesByGroupingKey.get(f);if(h&&h.size+p>l&&(this.executeBatch(f,h,t,Ue.ExceedingMaxSize),h=void 0),h||(h={items:[],size:0,hasItemsWithCallbacks:!1,context:n,creationTime:Date.now()},this.batchesByGroupingKey.set(f,h)),this.batchMessagesEnabled){const t=h.items[h.items.length-1];t&&t.cv===r&&t.callback===s?(t.input=[...t.input,...e],t.size+=p):h.items.push({input:e,size:p,cv:r,callback:s})}else h.items.push({input:e,size:p,callback:s});h.size+=p,h.hasItemsWithCallbacks=h.hasItemsWithCallbacks||!!s,this.batchMessagesEnabled||(h.cv=r),h.groupComplete=o,h.groupComplete?this.executeBatch(f,h,t,Ue.GroupComplete):(Date.now()-h.creationTime+i<c&&(clearTimeout(h.timeout),h.timeout=void 0),h.timeout||(h.timeout=setTimeout((()=>{this.executeBatch(f,h,t,Ue.BatchIntervalElapsed)}),i)))}removeAllBatchedItems(){this.batchesByGroupingKey.forEach((e=>{e.timeout&&clearTimeout(e.timeout)})),this.batchesByGroupingKey.clear()}reduceBatchOperations(e){const t=new i.I({operationName:"ReduceBatchOperations"}).start();let n=0,r=0,o=0;const s=new Set,c=[],l=(e,t)=>e.parentPath.toString()+"/"+e.parentRevId+"/"+t.id;for(const t of e.input.reverse()){const e=[];for(const i of t.input.reverse())if(M.fZ.typeGuard(i)){const t=[];for(const e of i.items){o++;const a=l(i,e);s.has(a)?r++:(t.push(e),s.add(a),n++)}0!==t.length&&(i.items=t,e.push(i))}else if(M.Xr.typeGuard(i)){for(const e of i.items){const t=l(i,e);s.delete(t)}e.push(i)}else e.push(i);0!==e.length&&c.push({input:e.reverse(),size:t.size,cv:t.cv,callback:t.callback})}e.input=c.reverse(),0!=o&&(t.dimension0=`${this.getOrderOfMagnitudeDimension(r)}`,t.dimension1=`noOp: ${0===r}`),t.success=o-r==n,a.tG.info(507839488,a.nh.CoreDefault,t.stop())}maxNumberOfDeltaUpdateOpsPerItemPerBatch(e){const t=(e,t)=>e.parentPath.toString()+"/"+t.id;let n=0;const r=new Map;for(const o of e.input)if(M.xU.typeGuard(o))for(const e of o.items){const s=t(o,e);r.has(s)||r.set(s,0),r.set(s,r.get(s)+1),n=Math.max(n,r.get(s))}return n}executeBatch(e,t,n,r){clearTimeout(t.timeout),t.timeout=void 0,this.batchesByGroupingKey.delete(e);const o=t.items,s=new i.I({operationName:"ExecuteBatch",cv:this.batchMessagesEnabled?"":t.cv,resourceId:t.context.name,resultDescription:`batching duration: ${Date.now()-t.creationTime}ms`,dimension0:`${this.batchMessagesEnabled?"Batched items count":"Batched ops count:"} ${this.getOrderOfMagnitudeDimension(o.length)}`,dimension1:`Size ${this.getOrderOfMagnitudeDimension(t.size)}`,dimension2:r.toString()}).start(),c=(e,n,r)=>{let i;if(n&&n.exceptionType===We.NoOutput)s.success=!0,a.tG.info(573366353,a.nh.CoreDefault,s.stop());else{const r=`${e} error: ${n?n.message||n:"Unknown error"}`;i=n||new Error(r),s.success=!1,s.resultDescription=`Batch of ${o.length} items of size ${t.size} with ${r}`,s.resultSignature=`${e} Error`,a.tG.error(573366354,a.nh.CoreDefault,s.stop())}if(t.hasItemsWithCallbacks)for(const e of o)e.callback&&e.callback(i,r)};let l;try{l=n.multiplex(this.batchMessagesEnabled?o:o.map((e=>e.input)))}catch(e){return void c("Multiplex",e)}this.reduceBatchOperationsEnabled&&this.batchMessagesEnabled&&"operations"==e&&this.reduceBatchOperations(l),!this.batchMessagesEnabled&&"operations"==e&&this.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled&&(s.dimension3=this.getOrderOfMagnitudeDimension(this.maxNumberOfDeltaUpdateOpsPerItemPerBatch(l))),this.submit(l.input,t,((e,r)=>{if(e||r&&("exceptionType"in r||r instanceof Error))c("Submit",e||r,r);else if(t.hasItemsWithCallbacks||n.summaryExtractor){let i,u,d;if(t.hasItemsWithCallbacks)try{if(i=l.demultiplex(r),i.length!==o.length)throw new Error("Mismatched output length")}catch(e){return void c("Demultiplex",e)}if(n.summaryExtractor)try{[d,u]=n.summaryExtractor(r)}catch(e){return void c("SummaryExtractor",e)}if(s.success=!0,a.tG.info(573366342,a.nh.CoreDefault,s.stop()),t.hasItemsWithCallbacks)for(let e=0;e<o.length;e++)o[e].callback&&o[e].callback(void 0,i[e]);u&&this.onSummary(d,u,t.context)}else s.success=!0,a.tG.info(573366343,a.nh.CoreDefault,s.stop())}))}}var $e=n(37247),Ye=n(14011);const Je=(e,t)=>{const n=[];for(const r of null!=e?e:[])if(void 0===t||t===r.cardinality)for(const e of r.contextTypes)n.push([e,r.cardinality,r.producerWaitPolicy]);return n},Qe="\\",Ke=(e,t)=>Object.assign(Object.assign({},t),{parentPath:e}),Xe=e=>Array.isArray(e)?5===e.length?`${e[0]}${Qe}${e[1]}${Qe}${e[2]}${Qe}${e[3]}${Qe}${e[4]}`:4===e.length?`${e[0]}${Qe}${e[1]}${Qe}${e[2]}${Qe}${e[3]}`:3===e.length?`${e[0]}${Qe}${e[1]}${Qe}${e[2]}`:2===e.length?`${e[0]}${Qe}${e[1]}`:1===e.length?e[0]:e.join(Qe):"(malformed path)";var Ze;!function(e){e[e.Local=0]="Local",e[e.External=1]="External"}(Ze||(Ze={}));class et{constructor(){this.graphNodeByLocationAndWorkflowId=new Map}getWorkflow(e,t){var n;const r=this.getLocation(t);return null===(n=this.graphNodeByLocationAndWorkflowId.get(r))||void 0===n?void 0:n.get(e)}addWorkflow(e,t=!1){if(this.getWorkflow(e.id,t)){const n=new i.I({operationName:"AddWorkflowToGraphFailure",success:!1,resourceId:e.id,resultDescription:`Adding a new with workflow with a duplicated workflowId: ${t}`}).start();return void a.tG.error(524300630,a.nh.CoreDefault,n.stop())}const n=this.getLocation(t),r=new tt(e,n);this.addWorkflowAsDependency(r);let o=this.graphNodeByLocationAndWorkflowId.get(n);o||(o=new Map,this.graphNodeByLocationAndWorkflowId.set(n,o)),o.set(e.id,r)}getUpstreamRuntimeVisibleWorkflows(){const e=[];for(const t of this.graphNodeByLocationAndWorkflowId.values()||[])for(const n of t.values()||[]){const t=this.createWorkflowDefinition(n.workflow);n.workflow.visibility===Ye.Y$.LocalOnly?this.compressDownstreamWorkflows(t,n):t.outputTypes.push(...n.workflow.outputTypes),0!==t.inputTypes.length&&e.push(t)}return e}removeWorkflows(e){const t=this.getLocation(e),n=this.graphNodeByLocationAndWorkflowId.get(t),r=Array.from((null==n?void 0:n.values())||[]);for(const e of r){for(const t of e.upstreamWorkflows.values())t.downstreamWorkflows.delete(e);for(const t of e.downstreamWorkflows.values())t.upstreamWorkflows.delete(e);n.delete(e.workflow.id)}}getWorkflowsDefinitions(){const e=[];for(const t of this.graphNodeByLocationAndWorkflowId.values()||[])for(const n of t.values()||[])e.push(n.workflow);return e}getWorkflowNodes(e){const t=[];for(const e of this.graphNodeByLocationAndWorkflowId.values())for(const n of e.values())t.push(n);return t}getLocation(e){return e?Ze.External:Ze.Local}createWorkflowDefinition(e){return Object.assign(Object.assign({},e),{outputTypes:[]})}compressDownstreamWorkflows(e,t){for(const n of t.downstreamWorkflows)if(n.workflow.visibility!==Ye.Y$.LocalOnly){if(n.workflow.kind!==Ye.wC.Join||-1!==e.inputTypes.indexOf(n.workflow.collectionScopeType))for(const t of n.workflow.outputTypes)-1===e.outputTypes.indexOf(t)&&e.outputTypes.push(t)}else this.compressDownstreamWorkflows(e,n)}addWorkflowAsDependency(e){for(const t of this.graphNodeByLocationAndWorkflowId.values())for(const n of t.values()){for(const t of n.workflow.inputTypes)-1!==e.workflow.outputTypes.indexOf(t)&&this.addWorkflowChain(e,n);for(const t of n.workflow.outputTypes)-1!==e.workflow.inputTypes.indexOf(t)&&this.addWorkflowChain(n,e)}}addWorkflowChain(e,t){e.downstreamWorkflows.add(t),t.upstreamWorkflows.add(e)}}class tt{constructor(e,t){this.isActivated=!0,this.upstreamWorkflows=new Set,this.downstreamWorkflows=new Set,this.location=t,this.workflow=Object.assign(Object.assign({},e),{inputTypes:Array.isArray(e.inputTypes)?e.inputTypes:[],outputTypes:Array.isArray(e.outputTypes)?e.outputTypes:[]})}}const nt=e=>({id:e.id,kind:e.kind,visibility:e.visibility,collectionScopeType:e.collectionScopeType,inputTypes:e.inputTypes,outputTypes:e.outputTypes,correlatedSignals:e.correlatedSignals}),rt=(e,t)=>null!=e&&null!=t&&e.length>0&&(e===t||0===t.indexOf(e)&&"."===t.charAt(e.length));class ot{constructor(){this.workflowDefByWorkflowAndContextId=new Map,this.workflowDefByWorkflow=new Map}static mergeDefinitions(e,t,n){return Object.assign(Object.assign(Object.assign({},e),t),n)}mergeWorkflowDefinition(e,t,n){if(n){const r=((e,t)=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n})(this.workflowDefByWorkflowAndContextId,e.id);r.set(n,ot.mergeDefinitions(e,r.get(n),t))}else this.workflowDefByWorkflow.set(e.id,ot.mergeDefinitions(e,this.workflowDefByWorkflow.get(e.id),t))}getWorkflowDefinition(e,t){var n;let r;return t&&(r=null===(n=this.workflowDefByWorkflowAndContextId.get(e.id))||void 0===n?void 0:n.get(t)),r||(r=this.workflowDefByWorkflow.get(e.id)),r||(r=e),r}deleteWorkflowDefinition(e,t){const n=this.workflowDefByWorkflowAndContextId.get(e.id);n&&(n.delete(t),0===n.size&&this.workflowDefByWorkflowAndContextId.delete(e.id))}}const st=new Set([M.Xr.getTypeName(),M.fZ.getTypeName(),M.g0.getTypeName(),M.xU.getTypeName()]);class it{constructor(e,t){this.nextId=1,this.runtimeKind=e,this.workflowGraph=t}static isParentContextId(e,t){return rt(e,t)}applyContextIdOnOperations(e){for(const t of e){const e=E.h.getTypeNameFor(t);if(this.isSupportedOperation(e))for(const e of t.items)e.contextId?e.source&&this.workflowGraph.getWorkflow(e.source,!1)?e.contextId=this.addNewContextId(e.contextId):this.tryLogMessage(new i.I({operationName:"ApplyContextIdOnOperations",success:!0}).start(),"Item with a contextId but without a workflow source atribute"):e.contextId=this.addNewContextId()}}addNewContextId(e){const t=`${this.runtimeKind}${this.nextId++}`;return e?`${e}.${t}`:t}isSupportedOperation(e){return st.has(e)}tryLogMessage(e,t,n=!0){e&&(e.success=n,e.resultDescription=t,a.tG.verbose(527308633,a.nh.CoreDefault,e.stop()))}}var at,ct,lt,ut,dt;!function(e){e[e.Idle=1]="Idle",e[e.Pending=2]="Pending",e[e.Running=3]="Running",e[e.Executed=4]="Executed"}(at||(at={}));class pt{constructor(e){this.scopeItemsByContextId=new Map,this.itemsByWorkflowAndContextId=new Map,this.workflowDefinitionManager=e}setScopeItem(e,t){var n;const r=e.contextId;if(r)if(this.itemsByWorkflowAndContextId.has(t.id)||this.itemsByWorkflowAndContextId.set(t.id,new Map),this.itemsByWorkflowAndContextId.get(t.id).set(r,[]),this.scopeItemsByContextId.has(r)){if(null===(n=this.itemsByWorkflowAndContextId.get(t.id))||void 0===n?void 0:n.has(r)){const n=new i.I({resultDescription:`Trying to set new scope item: ${e.id} with already existing contextId ${r} for workflow ${t.id}`,operationName:"WIS.setScopeItem",resourceId:t.id,success:!0}).start();a.tG.verbose(527291288,a.nh.CoreDefault,n.stop())}}else this.scopeItemsByContextId.set(r,e)}updateScopeItemPath(e,t,n){var r,o;if(!e)return;const s=this.scopeItemsByContextId.get(e);if(!s)return;const i=s.parentPath;this.scopeItemsByContextId.set(e,Ke(t,s));const a=null!==(o=null===(r=this.itemsByWorkflowAndContextId.get(n.id))||void 0===r?void 0:r.get(e))&&void 0!==o?o:[];for(let e=0;e<a.length;e++)a[e]=Ke([...t,...a[e].parentPath.slice(0,i.length)],a[e])}getScopeItem(e,t){var n;for(const r of(null===(n=this.itemsByWorkflowAndContextId.get(t.id))||void 0===n?void 0:n.keys())||[])if(rt(r,e))return this.scopeItemsByContextId.get(r)}addItemToWorkflowList(e,t){const n=e.contextId;if(!n)return;const r=this.itemsByWorkflowAndContextId.get(t.id);if(r)for(const[o,s]of r)if(rt(o,n)){s.push(e);const n=new i.I({resultDescription:`Items for contextId ${o}: [${s.map((e=>e.id)).join(",")}]`,operationName:"WIS.addItemOnContextIdList",resourceId:t.id,success:!0}).start();a.tG.info(526403808,a.nh.CoreDefault,n.stop())}}isWorkflowReady(e,t){const n=this.workflowDefinitionManager.getWorkflowDefinition(t,e).maxAnnotations;return this.getGeneratedItems(e,t).length>=n}getItemsToExecute(e,t){const n=this.getGeneratedItems(e,t);return this.itemsByWorkflowAndContextId.get(t.id).delete(e),n}onWorkflowExecuted(e,t){const n=e.contextId,r=this.itemsByWorkflowAndContextId.get(t.id);r&&(r.delete(n),0===r.size&&this.itemsByWorkflowAndContextId.delete(t.id)),this.hasWorkflowsAwaitingExecution(n)||this.scopeItemsByContextId.delete(n)}getGeneratedItems(e,t){var n;if(!(null===(n=this.itemsByWorkflowAndContextId.get(t.id))||void 0===n?void 0:n.get(e)))return[];const r=this.workflowDefinitionManager.getWorkflowDefinition(t,e).maxAnnotations;return this.itemsByWorkflowAndContextId.get(t.id).get(e).slice(0,r)}hasWorkflowsAwaitingExecution(e){for(const t of this.itemsByWorkflowAndContextId.values())for(const n of t.keys())if(n===e)return!0;return!1}}!function(e){e.JsClient="C",e.Server="S"}(ct||(ct={}));class ft{constructor(e){E.h.assign(ft,this,e)}static getTypeName(){return"AugLoop_Text_TextTile"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[ft.getTypeName()])}}ft.H_={T_:ft.getTypeName(),B_:ft.getBaseTypes()};class ht{constructor(e){E.h.assign(ht,this,e)}static getTypeName(){return"AugLoop_Text_FormattedTextTile"}static getBaseTypes(){return["AugLoop_Text_TextTile"]}static typeGuard(e){return E.h.matchesTypesFor(e,[ht.getTypeName()])}}ht.H_={T_:ht.getTypeName(),B_:ht.getBaseTypes()};class gt{constructor(e){E.h.assign(gt,this,e)}static getTypeName(){return"AugLoop_Text_InlineTile"}static getBaseTypes(){return["AugLoop_Text_TextTile"]}static typeGuard(e){return E.h.matchesTypesFor(e,[gt.getTypeName()])}}gt.H_={T_:gt.getTypeName(),B_:gt.getBaseTypes()};class mt{constructor(e){E.h.assign(mt,this,e)}static getTypeName(){return"AugLoop_Text_DynamicTextContext"}static getBaseTypes(){return["AugLoop_Core_DynamicContext"]}static typeGuard(e){return E.h.matchesTypesFor(e,[mt.getTypeName()])}}mt.H_={T_:mt.getTypeName(),B_:mt.getBaseTypes()};class yt{constructor(e){E.h.assign(yt,this,e)}static getTypeName(){return"AugLoop_Text_TaskTile"}static getBaseTypes(){return["AugLoop_Text_FormattedTextTile","AugLoop_Text_TextTile"]}static typeGuard(e){return E.h.matchesTypesFor(e,[yt.getTypeName()])}}yt.H_={T_:yt.getTypeName(),B_:yt.getBaseTypes()};class vt{constructor(e){E.h.assign(vt,this,e)}static getTypeName(){return"AugLoop_Text_PersonTile"}static getBaseTypes(){return["AugLoop_Text_InlineTile","AugLoop_Text_TextTile"]}static typeGuard(e){return E.h.matchesTypesFor(e,[vt.getTypeName()])}}vt.H_={T_:vt.getTypeName(),B_:vt.getBaseTypes()};class wt{constructor(e){E.h.assign(wt,this,e)}static getTypeName(){return"AugLoop_Text_DateTile"}static getBaseTypes(){return["AugLoop_Text_InlineTile","AugLoop_Text_TextTile"]}static typeGuard(e){return E.h.matchesTypesFor(e,[wt.getTypeName()])}}wt.H_={T_:wt.getTypeName(),B_:wt.getBaseTypes()};class bt{constructor(e){E.h.assign(bt,this,e)}static getTypeName(){return"AugLoop_Text_LinkTile"}static getBaseTypes(){return["AugLoop_Text_InlineTile","AugLoop_Text_TextTile"]}static typeGuard(e){return E.h.matchesTypesFor(e,[bt.getTypeName()])}}bt.H_={T_:bt.getTypeName(),B_:bt.getBaseTypes()};class St{constructor(e){E.h.assign(St,this,e)}static getTypeName(){return"AugLoop_Text_CommentTile"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[St.getTypeName()])}}St.H_={T_:St.getTypeName(),B_:St.getBaseTypes()},function(e){e[e.Add=0]="Add",e[e.Delete=1]="Delete",e[e.Update=2]="Update",e[e.CursorUpdate=3]="CursorUpdate",e[e.FormattingUpdate=4]="FormattingUpdate",e[e.OtherNonContentUpdate=5]="OtherNonContentUpdate",e[e.AttributionUpdate=6]="AttributionUpdate"}(lt||(lt={})),function(e){e[e.Chars=0]="Chars",e[e.Word=1]="Word",e[e.PartialSentence=2]="PartialSentence",e[e.Sentence=3]="Sentence",e[e.Paragraph=4]="Paragraph"}(ut||(ut={})),function(e){e[e.SessionUser=0]="SessionUser",e[e.Programmatic=1]="Programmatic",e[e.Collaborator=2]="Collaborator"}(dt||(dt={}));class Tt{constructor(e){E.h.assign(Tt,this,e)}static getTypeName(){return"AugLoop_Text_TextTileDelta"}static getBaseTypes(){return["AugLoop_Core_ItemDelta"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Tt.getTypeName()])}}Tt.H_={T_:Tt.getTypeName(),B_:Tt.getBaseTypes()};class Ct{constructor(e){E.h.assign(Ct,this,e)}static getTypeName(){return"AugLoop_Text_FormattedTextTileDelta"}static getBaseTypes(){return["AugLoop_Text_TextTileDelta","AugLoop_Core_ItemDelta"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Ct.getTypeName()])}}function _t(e,t=!1){switch(e){case 12288:case 8197:case 32:case 11:case 9:case 160:return!0;case 13:case 10:case 65532:return!t}return!1}function It(e,t){return e.charCodeAt(t)>=56320&&e.charCodeAt(t)<=57343}Ct.H_={T_:Ct.getTypeName(),B_:Ct.getBaseTypes()};const kt=/[ \u00a0\u2000-\u200a\u202f\u205f\u3000\t]/g,At=/[.!?]/g;function Et(e,t){const n=[],r=Ot(e,t);return r&&n.push(r),n}function Rt(e,t){const n=[],r=Ot(e,t);r&&n.push(r);const o=function(e,t,n){var r,o,s,i,a,c;const l=e,u=t;if((null==l?void 0:l.ipPosition)!==(null==u?void 0:u.ipPosition)||(null==l?void 0:l.isColdIp)!==(null==u?void 0:u.isColdIp)){if((null==l?void 0:l.isColdIp)===(null==u?void 0:u.isColdIp)&&n)if(n.deltaType===lt.Add){if((null==u?void 0:u.ipPosition)===(null!==(r=n.position)&&void 0!==r?r:0)+(null!==(o=n.length)&&void 0!==o?o:0))return}else if(n.deltaType===lt.Update){if((null==u?void 0:u.ipPosition)===(null!==(s=n.position)&&void 0!==s?s:0)+(null!==(a=null===(i=n.content)||void 0===i?void 0:i.length)&&void 0!==a?a:0))return}else if(n.deltaType===lt.Delete&&(null==u?void 0:u.ipPosition)===(null!==(c=n.position)&&void 0!==c?c:0))return;return new Ct({deltaType:lt.CursorUpdate,cursorData:{ipPosition:null==u?void 0:u.ipPosition,isColdIp:null==u?void 0:u.isColdIp}})}}(e,t,r);o&&n.push(o);const s=function(e,t,n){var r,o,s,i,a,c,l;const u=e,d=t;if((null===(r=d.formattedRanges)||void 0===r?void 0:r.length)<=(null===(o=u.formattedRanges)||void 0===o?void 0:o.length))if(n){let e=u.formattedRanges?[...u.formattedRanges]:[];const t=function(e,t,n){if(!e)return;if(t.deltaType===lt.Add){const t=e.find((e=>e.start===n&&0===e.length));if(t)return t;n=Math.max(n-1,0)}const r=e.find((e=>0===e.length?e.start===n:e.start<=n&&n<e.start+e.length));return r}(u.formattedRanges,n,n.position),r=t?e.indexOf(t):-1;if(-1!==r&&(n.position+(n.length||0)>t.start+t.length?t.length=n.position+(null!==(s=n.content)&&void 0!==s?s:"").length-t.start:t.length+=(null!==(i=n.content)&&void 0!==i?i:"").length-(n.length||0),e[r]=t),e.length>0){for(const t of e.slice(r+1))t.start<n.position||(n.position+(n.length||0)>t.start?(t.length=t.start+t.length-(n.position+(n.length||0)),t.start=n.position+(null!==(a=n.content)&&void 0!==a?a:"").length):t.start+=(null!==(c=n.content)&&void 0!==c?c:"").length-(n.length||0));e=e.filter((e=>e.length>0))}const o=null!==(l=null==d?void 0:d.formattedRanges)&&void 0!==l?l:[];if(D()(e,o)||0===e.length&&0===o.length)return}else if(D()(null==u?void 0:u.formattedRanges,null==d?void 0:d.formattedRanges))return;return new Ct({deltaType:lt.FormattingUpdate,formattedRanges:null==d?void 0:d.formattedRanges})}(e,t,r);s&&n.push(s);const i=function(e,t,n){var r;const o=e,s=t;if(((null==o?void 0:o.attributionRanges)||s.attributionRanges||(null===(r=null==n?void 0:n.attributionData)||void 0===r?void 0:r.ranges))&&!D()(null==o?void 0:o.attributionRanges,null==s?void 0:s.attributionRanges)){if(o.attributionRanges&&s.attributionRanges){const e=[];for(const t of s.attributionRanges)o.attributionRanges.some((e=>D()(e,t)))||e.push(t);if(0===e.length)return;return new Ct({deltaType:lt.AttributionUpdate,attributionData:{ranges:e}})}return new Ct({deltaType:lt.AttributionUpdate,attributionData:{ranges:null==s?void 0:s.attributionRanges}})}}(e,t,r);i&&n.push(i);const a=function(e,t){const n=e,r=t;let o;const s={};let i=!1;for(o in r)-1===["ipPosition","isColdIp","content","formattedRanges","attributionRanges"].indexOf(o)&&(D()(r[o],n[o])||(i=!0,s[o]=r[o]));if(i)return new Ct({deltaType:lt.OtherNonContentUpdate,otherNonContentData:s})}(e,t);return a&&n.push(a),n}function Ot(e,t){const n=e.content,r=t.content,o=function(e,t,n=!1){let r,o,s={firstDiffLeft:0,firstDiffRight:t.length};return e.length<t.length?(r=e,o=t):(r=t,o=e),0===o.indexOf(r)?(s.firstDiffLeft=r.length,s.firstDiffRight=0):o.endsWith(r)?(s.firstDiffLeft=0,s.firstDiffRight=r.length):(s=function(e,t,n=!1){const r={firstDiffLeft:0,firstDiffRight:t.length};let o;for(o=0;o<e.length&&o<t.length;o+=1){const r=e.charCodeAt(o),s=t.charCodeAt(o);if(!(r===s||_t(r,n)&&_t(s,n)))break}for(r.firstDiffLeft=o,o=0;o<e.length&&o<t.length;o+=1){const r=e.charCodeAt(e.length-o-1),s=t.charCodeAt(t.length-o-1);if(!(r===s||_t(r,n)&&_t(s,n)))break}return r.firstDiffRight=o,r}(e,t,n),s.firstDiffLeft+s.firstDiffRight>r.length&&(s.firstDiffRight=r.length-s.firstDiffLeft)),function(e,t,n){if(e.firstDiffLeft>0){const r=e.firstDiffLeft<t.length&&It(t,e.firstDiffLeft),o=e.firstDiffLeft<n.length&&It(n,e.firstDiffLeft);(r||o)&&(e.firstDiffLeft-=1)}if(e.firstDiffRight>1){const r=e.firstDiffRight<t.length&&It(t,t.length-e.firstDiffRight),o=e.firstDiffRight<n.length&&It(n,n.length-e.firstDiffRight);(r||o)&&(e.firstDiffRight-=1)}}(s,e,t),s}(n,r),s=o.firstDiffLeft,i=n.length-o.firstDiffRight,a=r.length-o.firstDiffRight;let c,l=lt.Update;if(n.length!==r.length)i===s?(l=lt.Add,c=n[n.length-1]):a===s&&(l=lt.Delete,c=r[r.length-1]);else if(n===r)return;let u,d=0;switch(l){case lt.Update:d=i-s,u=r.substring(s,a);break;case lt.Add:u=r.substring(s,a);break;case lt.Delete:d=i-s,u=n.substring(s,i)}const p=function(e,t){const n=Array.from(e.matchAll(kt));if(kt.lastIndex=0,0===n.length)return ut.Chars;if(1===n.length){if(0===n[0].index)return t&&At.test(t)?ut.Sentence:t&&!kt.test(t)?ut.Word:ut.Chars;if(n[0].index+1===e.length)return At.test(e[n[0].index-1])?ut.Sentence:kt.test(e[n[0].index-1])?ut.Chars:ut.Word;if(e[n[0].index-1]){const t=e[n[0].index-1];if(At.test(t))return ut.Sentence;if(kt.test(t))return ut.Chars}return ut.Word}const r=Array.from(e.matchAll(At));return At.lastIndex=0,0===r.length?ut.PartialSentence:r.length>1?ut.Paragraph:r[0].index+1<=e.length?kt.test(e[r[0].index+1])?ut.Sentence:ut.Paragraph:void 0}(u,c);if(void 0!==p)return new Ct({content:l!==lt.Delete?u:void 0,deltaType:l,unit:p,position:s,length:l!==lt.Add?d:0})}class Pt{constructor(){this.deltaBuilderHandlers=new Map,this.registerDeltaBuilderHandler(ft.getTypeName(),Et),this.registerDeltaBuilderHandler(ht.getTypeName(),Rt)}registerDeltaBuilderHandler(e,t){this.deltaBuilderHandlers.set(e,t)}executeDeltaBuilderHandler(e,t,n){const r=this.deltaBuilderHandlers.get(e);return r?r(t,n):[]}}const Mt=(e,t)=>t?xt([...t,e]):e,xt=e=>e.join("\\");class Dt{constructor(e){this.createTextTileDeltasFromItem=(e,t)=>{var n;const r=new i.I({operationName:"CreateTextTileDeltaFromItem",success:!0}).start();try{if(!e)return r.success=!1,r.resultDescription="Unable to create text tile delta, parent item is undefined",void a.tG.info(524883085,a.nh.CoreDefault,r.stop());if(!e.body)return r.success=!1,r.resultDescription="Unable to create text tile delta, parent item has undefined body",void a.tG.info(524883086,a.nh.CoreDefault,r.stop());const o=e.body;if(!ft.typeGuard(o))return r.success=!1,void(r.resultDescription=`Unable to create text tile delta, parent item body is not proper type: expected ${ft.getTypeName()}, received ${E.h.getTypeNameFor(o)}`);const s=Mt(e.id,t),i=null!==(n=this.lastSeenTileByTileId.get(s))&&void 0!==n?n:new ft({content:""}),c=this.createDeltas(i,o);return c&&0!==c.length?(r.dimension0=c.length.toString(),this.lastSeenTileByTileId.set(s,o)):(r.dimension0="0",r.resultDescription="No delta differences found"),a.tG.info(524883087,a.nh.CoreDefault,r.stop()),c}catch(e){return r.success=!1,r.resultDescription=`Error creating text tile delta: ${e}`,void a.tG.info(524883088,a.nh.CoreDefault,r.stop())}},this.lastSeenTileByTileId=null!=e?e:new Map,this.deltaBuilder=new Pt}addItemToLocalMap(e,t){const n=Mt(e.id,t),r=e.body;ft.typeGuard(r)&&!this.lastSeenTileByTileId.has(n)&&this.lastSeenTileByTileId.set(n,r)}deleteItemFromLocalMap(e,t){const n=Mt(e.id,t);this.lastSeenTileByTileId.has(n)&&this.lastSeenTileByTileId.delete(n)}moveItemsInLocalMap(e,t,n){const r=new Set(n),o=xt(t),s=xt(e),i=[],a=(e,t)=>e.length>t.length?e.substring(t.length+1).split("\\")[0]:void 0;for(const[e,t]of this.lastSeenTileByTileId)if(e.startsWith(o)){const n=a(e,o);if(void 0===n||r.has(n)){const n=e.replace(o,s);i.push({item:t,newPathKey:n,prevPathKey:e})}}for(const e of i)this.lastSeenTileByTileId.delete(e.prevPathKey),this.lastSeenTileByTileId.set(e.newPathKey,e.item)}createDeltas(e,t){return this.deltaBuilder.executeDeltaBuilderHandler(E.h.getTypeNameFor(t),e,t)}}function Nt(){return"xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}const Lt=e=>Ft(e,Number.POSITIVE_INFINITY),Ft=(e,t)=>{let n=0;const r=[],o=[e];for(;o.length>0;){const e=o.pop(),s=typeof e;if("boolean"===s)n+=4;else if("string"===s)n+=2*e.length;else if("number"===s)n+=8;else if("object"===s&&e&&-1===r.indexOf(e))if(e instanceof Uint8Array)n+=e.length;else{r.push(e);for(const t in e)o.push(e[t])}if(n>t)return n}return n};var Bt=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};function Wt(e,t){return Bt(this,void 0,void 0,(function*(){const{authToken:n,origin:r,sessionUrl:o}=e,{body:s,cv:i,method:a,requestUrl:c}=t,l=yield(0,re.fetch)(c||o,{method:a,headers:Object.assign({Authorization:`Bearer ${n}`,"x-origin":r,"x-correlationid":i},t.headers),body:s});if(200!==l.status)throw new Error(`Unexpected status code: ${l.status}`);return l}))}const Ut=(e,t)=>{t?(e.resultDescription=t,e.success=!1,a.tG.error(507646878,a.nh.CoreDefault,e.stop())):a.tG.info(507646877,a.nh.CoreDefault,e.stop())};function Gt(e,t,n,r){let o;Wt(e,{headers:{"Content-Type":"application/jsond"},body:ne.serialize(t),cv:n.cv,method:"POST"}).then((e=>e.json())).catch((e=>{o=new k._p({messageId:t.messageId,error:e.message})})).then((e=>{Ut(n,o?o.error:void 0),r(o,e)}))}function Vt(e,t,n,r){let o;Wt(e,{headers:{"Content-Type":"application/octet-stream"},body:t,cv:n.cv,method:"POST",requestUrl:`${e.sessionUrl}/blob`}).then((e=>e.json())).catch((e=>{o=new k._p({error:e.message})})).then((e=>{Ut(n,o?o.error:void 0),r(o,e)}))}function qt(e,t,n,r){const{sessionUrl:o}=e;let s;Wt(e,{cv:r.cv,method:"GET",requestUrl:t.refType===qe.J1.AlCodedLocation?`${o}/blob/${t.value}`:t.value}).then((e=>e.arrayBuffer())).then((e=>new Uint8Array(e))).catch((e=>{s=e})).then((e=>{Ut(r,s?s.message:void 0),n(s,e)}))}class Ht extends R.EventEmitter{init(){return Promise.resolve()}sendMessage(e,t,n){}onMessage(e,t){}forceReconnect(){return Promise.resolve()}closeSession(){}sendBytes(e){}getCorrelationVector(){return new b}getNetworkWorkerManager(){}setState(e){}}var jt,zt=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))},$t=function(e){return this instanceof $t?(this.v=e,this):new $t(e)};!function(e){e[e.LocalWorkflow=0]="LocalWorkflow",e[e.ServerWorkflow=1]="ServerWorkflow",e[e.Submitted=2]="Submitted"}(jt||(jt={}));const Yt=(e,t)=>{t?(e.resultDescription=t,e.success=!1,a.tG.error(509203144,a.nh.CoreDefault,e.stop())):a.tG.info(509203143,a.nh.CoreDefault,e.stop())},Jt=e=>!e.items.some((e=>e.source&&0===e.source.indexOf("ThirdParty")));class Qt{constructor(e){var t;this.annotationActivationTrackers=new Map,this.annotationCallbacks=new Map,this.apologyCallbacks=new Map,this.annotationResultStates=new Map,this.tokensByAnnotationType=new Map,this.registeredContextTypes=new Set,this.availableContexts=new Map,this.nextSyncSequenceId=1,this.allowSeed=!0,this.allowGroupSeed=!0,this.seedGroupSize=0,this.batchedSeedMessageGroupSize=0,this.hasSessionConnected=!1,this.isSessionClosed=!1,this.serverAuthenticationState=Ve.f.NotAuthenticated,this.sessionCloseCallbacks=new Map,this.connectCallbacks=new Map,this.reconnectCallbacks=new Map,this.disconnectCallbacks=new Map,this.sessionStateCallbackToken=0,this.workflowGraph=new et,this.workflowDefinitionManager=new ot,this.contextIdManager=new it(ct.JsClient,this.workflowGraph),this.workflowItemStorage=new pt(this.workflowDefinitionManager),this.pendingConnectCallbacks=[],this.onAnnotationsSubmittedEnabled=!1,this.reduceBatchOperationsEnabled=!1,this.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled=!1,this.batchMessagesEnabled=!1,this.seedingStatus=A.e9.NotStarted,this.isChangeGateForceUserInteractiveAuth=void 0,this.onConnectTelemetryCG=void 0,this.cachedClaimsChallenge={claimsVersion:0,actionRequired:!1},this.tokenMessageVersion=1,this.hostCallbacks=e.hostCallbacks,this.sessionManager=e.sessionManager,this.batchMessagesEnabled=e.batchMessagesEnabled||!1,this.reduceBatchOperationsEnabled=e.reduceBatchOperationsEnabled||!1,this.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled=e.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled||!1,this.operationBatchConfig=e.batchOptions?this.getOperationBatchConfig(e.batchOptions):void 0,this.extensionConfigs=e.extensionConfigs,this.clientMetadata=e.clientMetadata,this.userContext=e.userContext,this.localWorkflowManager=e.localWorkflowManager,this.annotationResultsProcessor=e.annotationResultsProcessor,this.gateUtils=e.gateUtils,this.localRegisteredWorkflows=e.localRegisteredWorkflows||[],this.enableRemoteExecutionNotification=e.enableRemoteExecutionNotification||!1,this.networkMode=e.networkMode,this.egress=e.egress,this.serverAuthenticationStateChangeCallback=[],this.claimsChallengeCallback=[],this.seedingStatusChangeCallbacks=[],this.onAnnotationsSubmittedEnabled=e.onAnnotationsSubmittedEnabled||!1,this.annotationDoesNotExistOnServiceEnabled=e.annotationDoesNotExistOnServiceEnabled||!1,this.sessionManager.on("sessionClose",this.onSessionClose.bind(this)),this.sessionManager.on("reconnect",this.onReconnect.bind(this)),this.sessionManager.on("connect",this.onConnect.bind(this)),this.sessionManager.on("disconnect",this.onDisconnect.bind(this)),this.sessionManager.on("resetNextSyncSequenceId",this.resetNextSyncSequenceId.bind(this)),this.sessionManager.on("serverAuthenticationStateChange",this.onServerAuthenticationStateChange.bind(this)),this.sessionManager.onMessage(k.B_.getTypeName(),this.onAnnotationResultsFromServer.bind(this)),this.sessionManager.onMessage(k.$j.getTypeName(),this.onAnnotationResultStateMessage.bind(this)),this.sessionManager.onMessage(k.Gs.getTypeName(),this.onWorkflowExecutionCompleteMessage.bind(this)),this.sessionManager.onMessage(k.Sy.getTypeName(),this.onClaimsChallengeMessage.bind(this)),this.sessionManager.onMessage(k.fr.getTypeName(),this.onSeedingStatusChangeMessage.bind(this)),e.isDeltaGeneratorEnabled&&(this.enableSyncDeltaSending=!e.disableSyncDeltaSending,this.syncDeltaTimeout=null!==(t=e.syncDeltaTimeout)&&void 0!==t?t:700,this.enableDeltaGenerator()),this.setServerAuthenticationStateChangeCallback(this.updateGraphOnAuthStateChange.bind(this)),this.setClaimsChallengeCallback(this.requestAuthTokenWithClaims.bind(this))}getSessionReconnectParams(){if(!this.connectParams)throw new Error("Session has not been established yet.");return{sessionUrl:this.connectParams.sessionUrl,origin:this.connectParams.origin,authToken:this.connectParams.authToken,nextSyncSequenceId:this.nextSyncSequenceId}}setNextSequenceId(e){this.nextSyncSequenceId=e}tryGetDocSessionId(){if(this.clientMetadata&&this.clientMetadata.docSessionId)return this.clientMetadata.docSessionId}getSessionStateCallbackToken(e){var t;return e+"-callback-"+(null!==(t=this.tryGetDocSessionId())&&void 0!==t?t:"unknown")+"-"+this.sessionStateCallbackToken++}updateGraphOnAuthStateChange(e){this.tryActivateWorkflows()}tryActivateWorkflows(){if(this.enableRemoteExecutionNotification){const e=new i.I({operationName:"GraphServerWorkflowActivation",success:!0}).setClientMetadata(this.clientMetadata).start(),t=[];this.workflowGraph.getWorkflowNodes().filter((e=>e.location===Ze.External)).forEach((e=>{this.localWorkflowManager.canActivateWorkflow(e,this)?e.isActivated=!0:(this.localWorkflowManager.deactivateServerWorkflow(e,this),t.push(e.workflow.id))})),e.resultDescription=`deactivated workflows: [${t.join()}]`,a.tG.info(508879493,a.nh.CoreDefault,e.stop())}}initialize(){return zt(this,void 0,void 0,(function*(){return this.localWorkflowManager&&this.localWorkflowManager.addSession(this),this.registerLocalWorkflowsWithoutGraphInit(this.localRegisteredWorkflows),this.gateUtils&&!this.onConnectTelemetryCG&&(this.onConnectTelemetryCG=yield this.gateUtils.isChangeGateEnabled("OnConnectTelemetry")),yield this.sessionManager.init(this.extensionConfigs,this.hostCallbacks.onInitSession?this.hostCallbacks.onInitSession:void 0,this.egress),this.localWorkflowManager&&this.localWorkflowManager.setTokenCallback(this.getAuthToken.bind(this)),this}))}isLocalWorkflowRegistered(e){return this.getLocalRegisteredWorkflows().some((t=>e===t.id))}get isConnected(){return!!this.connectParams}get hasConnected(){return this.hasSessionConnected}get isClosed(){return this.isSessionClosed}getServerAuthenticationState(){return this.serverAuthenticationState}getContextIdManager(){return this.contextIdManager}getWorkflowItemStorage(){return this.workflowItemStorage}getWorkflowDefinition(e,t){return this.workflowDefinitionManager.getWorkflowDefinition(e,t)}registerLocalWorkflows(e){this.registerLocalWorkflowsWithoutGraphInit(e),this.trySendWorkflowGraphInitMessage()}registerLocalWorkflowsWithoutGraphInit(e){if(e.length&&this.localWorkflowManager)for(const t of e)this.localWorkflowManager.registerLocalWorkflow(t,this)}registerLocalWorkflow(e){this.registerLocalWorkflows([e]);const t=new i.I({operationName:"SessionRegisterLocalWorkflow",resourceId:e.id,success:!0}).setClientMetadata(this.clientMetadata).start();Yt(t)}activateAnnotation(e,t,n){var r;const o=new je(this.sendMessageToSession.bind(this),e,t,this.annotationDoesNotExistOnServiceEnabled),s=(t,n)=>{let r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(o.token,n)};(null==t?void 0:t.callback)&&s(this.annotationCallbacks,null==t?void 0:t.callback),(null==t?void 0:t.apologyCallback)&&s(this.apologyCallbacks,null==t?void 0:t.apologyCallback);const i=null!==(r=this.tokensByAnnotationType.get(e))&&void 0!==r?r:[];return-1===i.indexOf(o.token)&&i.push(o.token),this.tokensByAnnotationType.set(e,i),this.annotationActivationTrackers.set(o.token,o),this.activateAnnotationForTracker(o,{ignoreExistingAnnotations:!1,sendOnlyIfConnected:!1,sendApologies:void 0!==(null==t?void 0:t.apologyCallback)})}activateAnnotationForTracker(e,t){const n=new i.I({operationName:"ActivateAnnotation",resourceId:e.annotationType,success:!0}).setClientMetadata(this.clientMetadata).start();return e.activate(t.ignoreExistingAnnotations,t.sendOnlyIfConnected,t.sendApologies).then((r=>(n.resultSignature="Ok",n.resultDescription=`Activated annotation ${e.annotationType} with token ${e.token}; sendOnlyIfConnected: ${t.sendOnlyIfConnected}`,Yt(n),r))).catch((r=>{throw Yt(n,`error on activate annotation type ${e.annotationType}: ${r}; sendOnlyIfConnected: ${t.sendOnlyIfConnected}`),r}))}updateAnnotationConfig(e,t){const n=new k.Ol({token:e,config:t});this.sendMessageToSession(n);const r=this.annotationActivationTrackers.get(e);r&&r.options&&(r.options.config=t)}releaseAnnotation(e){const t=this.annotationActivationTrackers.get(e);if(t){this.annotationActivationTrackers.delete(e);const n=n=>{const r=n.get(t.annotationType);r&&(r.delete(e),0==r.size&&n.delete(t.annotationType))};return n(this.annotationCallbacks),n(this.apologyCallbacks),t.release()}return Promise.resolve(!1)}setAnnotationState(e,t,n){const r={state:n};this.submitOperation(new M.XP({parentPath:e,items:[{id:t}],M_:r}))}setAnnotationMetadata(e,t,n){this.submitOperation(new M.XP({parentPath:e,items:[{id:t}],M_:n}))}submitOperation(e,t){this.submitOperations([e],t)}submitOperations(e,t){var n,r;if(t||(t=this.generateCorrelationId()),fe(e,t,Date.now(),"SubmitInRuntimeClient",new i.I({operationName:"AugloopClientPerfTracker",success:!0}).setClientMetadata(this.clientMetadata).start()),this.contextIdManager.applyContextIdOnOperations(e),this.updateWorkflowExecutionStates(e),!this.onAnnotationsSubmittedEnabled){const[n,r]=this.partitionAnnotationOperations(e);this.executeCallbacksOnAnnotationSubmitted(n,t)}const o=e.filter(this.filterOperationsForSession.bind(this)).filter(Jt),s=[];if(this.deltaGenerator){const e=new i.I({operationName:"ExecuteDeltaGenerator",success:!0}).setClientMetadata(this.clientMetadata).start();for(const e of o)if(M.fZ.typeGuard(e))s.push(...this.createDeltasFromUpdateOperation(e));else{const t=e;for(const o of t.items)M.Xr.typeGuard(e)?this.deltaGenerator.addItemToLocalMap(o,t.parentPath):M.n4.typeGuard(e)?this.deltaGenerator.deleteItemFromLocalMap(o,t.parentPath):M.hW.typeGuard(e)&&this.deltaGenerator.moveItemsInLocalMap(e.parentPath,e.prevParentPath,null!==(r=null===(n=e.items)||void 0===n?void 0:n.map((e=>e.id)))&&void 0!==r?r:[]);s.push(e)}Yt(e)}if(this.onAnnotationsSubmittedEnabled){const[e,n]=this.partitionAnnotationOperations(s.length?s:o);this.onAnnotationsSubmitted(e,t),this.submitOperationsToSession(n,t)}else this.submitOperationsToSession(s.length?s:o,t);this.localWorkflowManager&&this.localWorkflowManager.runLocalWorkflows(e,this,!0)}submitSeedOperations(e,t){if(!this.allowSeed)throw new Error("Cannot submit seed operations more than once per session");if(this.networkMode===we.LocalWorkflowsOnly&&this.localWorkflowManager)return void this.localWorkflowManager.runLocalWorkflows(e,this);t||(t=this.generateCorrelationId()),this.allowSeed=!1,this.allowGroupSeed=!1;const[n,r]=this.partitionAnnotationOperations(e);this.onAnnotationsSubmittedEnabled?this.onAnnotationsSubmitted(n,t):this.executeCallbacksOnAnnotationSubmitted(n,t),this.operationBatchConfig?this.sendSeedMessagesViaBatchManager(this.onAnnotationsSubmittedEnabled?r:e,!0,t):this.sendMessageToSession(new k.Tb({cv:t,seq:0,ops:this.onAnnotationsSubmittedEnabled?r:e}))}submitSeedGroupOperations(e,t,n){if(!this.allowGroupSeed)throw new Error("Seed operations are not allowed for this session");if(this.networkMode===we.LocalWorkflowsOnly&&this.localWorkflowManager)return void this.localWorkflowManager.runLocalWorkflows(e,this);n||(n=this.generateCorrelationId()),t&&(this.allowGroupSeed=!1),this.allowSeed=!1;const[r,o]=this.partitionAnnotationOperations(e);this.executeCallbacksOnAnnotationSubmitted(r,n),this.onAnnotationsSubmittedEnabled?this.onAnnotationsSubmitted(r,n):this.executeCallbacksOnAnnotationSubmitted(r,n),this.operationBatchConfig?this.sendSeedMessagesViaBatchManager(this.onAnnotationsSubmittedEnabled?o:e,!!t,n):(this.seedGroupSize++,this.sendMessageToSession(new k.Tb({cv:n,seq:0,ops:this.onAnnotationsSubmittedEnabled?o:e,groupId:"Seed",groupSize:t?this.seedGroupSize:void 0,groupComplete:t||void 0})))}submitCustomMessage(e){return new Promise(((t,n)=>{this.sendMessageToSession(e,((r,o)=>{r?n(new Error(`${r.error}; for message type: ${E.h.getTypeNameFor(e)}`)):t(o)}))}))}submitLargeBinaryDataMessage(e){return new Promise(((t,n)=>{this.sendMessageToSessionPostEndpoint(e,((e,r)=>{e?n(new Error(e.error)):t(r)}))}))}submitBinaryStreamUploadMessage(e){return new Promise(((t,n)=>{const r=new i.I({operationName:"sendBinaryStreamUploadMessage",success:!0}).setClientMetadata(this.clientMetadata).start();if(this.connectParams)Vt(this.connectParams,e,r,((e,r)=>{e?n(new Error(e.error)):t(r)}));else{const o=(o=>Vt(o,e,r,((e,r)=>{e?n(new Error(e.error)):t(r)}))).bind(this);this.pendingConnectCallbacks.push(o)}}))}requestBinaryDataForBlob(e){return e.data?Promise.resolve(e.data):e.dataPointer&&e.dataPointer.refType!==qe.J1.None?new Promise(((t,n)=>{this.requestBinaryDataFromSessionBlobEndpoint(e.dataPointer,((e,r)=>{e?n(e):t(r)}))})):Promise.reject(new Error("Blob does not have a data pointer"))}requestCacheDump(e){if(e)throw new Error("NYI");return this.submitCustomMessage(new k.z_)}forceReconnect(e){return this.extensionConfigs=e,this.sessionManager.forceReconnect(e)}close(e){this.isSessionClosed=!0,this.sessionManager.closeSession(e),this.localWorkflowManager&&this.localWorkflowManager.closeSession(this),this.graphInitMessageTimer&&(clearTimeout(this.graphInitMessageTimer),this.graphInitMessageTimer=void 0)}authenticateInteractive(e){return zt(this,void 0,void 0,(function*(){if(this.gateUtils&&!this.isChangeGateForceUserInteractiveAuth&&(this.isChangeGateForceUserInteractiveAuth=yield this.gateUtils.isChangeGateEnabled("CGForceUserInteractiveAuth")),!(this.isChangeGateForceUserInteractiveAuth&&e&&e.forceUserPrompt)&&this.cachedClaimsChallenge.claimsVersion>0&&!this.cachedClaimsChallenge.actionRequired)return;const t=yield this.requestAuthTokenInteractive(this.cachedClaimsChallenge,{interactive:!0});if(k.D0.typeGuard(t))throw new Error(t.reason)}))}getClientMetadata(){return this.clientMetadata}getUserContext(){return this.userContext}setSessionCloseCallback(e){const t=this.getSessionStateCallbackToken("close");return e&&this.sessionCloseCallbacks.set(t,e),t}setConnectCallback(e){const t=this.getSessionStateCallbackToken("connect");return e&&this.connectCallbacks.set(t,e),t}setDisconnectCallback(e){const t=this.getSessionStateCallbackToken("disconnect");return e&&this.disconnectCallbacks.set(t,e),t}setReconnectCallback(e){const t=this.getSessionStateCallbackToken("reconnect");return e&&this.reconnectCallbacks.set(t,e),t}removeSessionStateCallback(e){function t(t){return!!t.has(e)&&(t.delete(e),!0)}return t(this.sessionCloseCallbacks)||t(this.reconnectCallbacks)||t(this.disconnectCallbacks)||t(this.connectCallbacks)}setServerAuthenticationStateChangeCallback(e){this.serverAuthenticationStateChangeCallback.push(e),e(this.serverAuthenticationState)}setClaimsChallengeCallback(e){this.cachedClaimsChallenge.actionRequired&&e(this.cachedClaimsChallenge),this.claimsChallengeCallback.push(e)}setSeedingStatusChangeCallback(e){e(new k.fr({newStatus:this.seedingStatus})),this.seedingStatusChangeCallbacks.push(e)}getConnectParams(){return this.connectParams}setOfflineMode(){this.sessionManager=new Ht}onAnnotationResults(e,t,n){a.tG.info(508916486,a.nh.CoreDefault,new i.I({operationName:"OnAnnotationResultsEgress",dimension0:null==e?void 0:e.annotationType,success:!0,cv:e.cv})),n(void 0,new k.YK),t===jt.LocalWorkflow&&this.contextIdManager.applyContextIdOnOperations(e.ops),this.updateWorkflowExecutionStates(e.ops),this.egress&&this.egress(e,(()=>{})),this.annotationResultsProcessor.process(e,((e,n)=>{this.applyOperationForContext(e,n,t)}),((n,r)=>{const o=Date.now();this.triggerRegisteredAnnotationCallbacks(n,e.annotationType,r,e.areApologies),t===jt.ServerWorkflow&&he(e,o,"CallbackInRuntimeClient",!0,new i.I({operationName:"AugloopClientPerfTracker",success:!0}).setClientMetadata(this.clientMetadata).start())}),(e=>{if(t!==jt.ServerWorkflow){const t=e.ops.filter(this.filterOperationsForSession.bind(this)).filter(Jt);this.submitOperationsToSession(t,e.cv)}this.localWorkflowManager&&this.localWorkflowManager.runLocalWorkflows(e.ops,this)}))}onAnnotationResultStateMessage(e,t){var n;t(void 0,new k.YK);for(const t of e.updates){const{annotationType:e,state:r}=t;if(!this.tokensByAnnotationType.has(e))continue;let o;o=this.annotationResultStates.has(e)?this.annotationResultStates.get(e):r===A.K7.Idle?A.K7.Pending:A.K7.Idle;for(const t of this.tokensByAnnotationType.get(e)){const e=this.annotationActivationTrackers.get(t);(null===(n=e.options)||void 0===n?void 0:n.stateUpdateCallback)&&e.options.stateUpdateCallback(o,r)}}}submitOperationsToSession(e,t){t||(t=this.generateCorrelationId());const n=e.filter((e=>M.g0.typeGuard(e))),r=e.filter((e=>!M.g0.typeGuard(e)));if(n.length>0&&this.sendMessageToSession(new k.Tb({cv:t,ops:n})),r.length>0)if(this.operationBatchConfig){if(!this.batchedOperationsManager){let e;e=this.batchMessagesEnabled?(e,t,n)=>{if(e.length){const t=new k.l0;t.messages=[],e.forEach((e=>{t.messages.push(new k.Tb({cv:e.cv,seq:this.nextSyncSequenceId++,ops:e.input}))})),this.sendMessageToSession(t,(e=>{n(e?new Error(e.error):void 0)}))}}:(e,t,n)=>{this.sendMessageToSession(new k.Tb({cv:t.cv,seq:this.nextSyncSequenceId++,ops:e}),(e=>{n(e?new Error(e.error):void 0)}))},this.batchedOperationsManager=new ze(e,this.reduceBatchOperationsEnabled,this.batchMessagesEnabled,void 0,this.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled)}this.batchedOperationsManager.addBatchItem(r,this.operationBatchConfig,{name:"SubmitOperations"},t)}else this.sendMessageToSession(new k.Tb({cv:t,seq:this.nextSyncSequenceId++,ops:r}))}sendMessageToSession(e,t){this.sessionManager.sendMessage(e,t),k.w9.typeGuard(e)&&this.close()}sendMessageToSessionPostEndpoint(e,t){const n=new i.I({operationName:"SendLargeBinaryDataMessage",success:!0,cv:e.cv}).setClientMetadata(this.clientMetadata).start();if(this.connectParams)Gt(this.connectParams,e,n,t);else{const r=(r=>Gt(r,e,n,t)).bind(this);this.pendingConnectCallbacks.push(r)}}requestBinaryDataFromSessionBlobEndpoint(e,t){const n=new i.I({operationName:"RequestBinaryData",success:!0,cv:(new b).toString()}).setClientMetadata(this.clientMetadata).start();if(this.connectParams)qt(this.connectParams,e,t,n);else{const r=(r=>qt(r,e,t,n)).bind(this);this.pendingConnectCallbacks.push(r)}}registerContextTypes(e){for(const t of e)this.activateAnnotation(t),this.registeredContextTypes.add(t)}applyOperationForContext(e,t,n){let r=E.h.getTypeNameFor(e);if(r!=M.Xr.getTypeName()&&r!=M.I.getTypeName()&&r!=M.fZ.getTypeName()&&r!=M.n4.getTypeName())return;r==M.I.getTypeName()&&(r=M.Xr.getTypeName());const o=Ke(this.resolvePlaceholdersInOperationParentPath(e.parentPath),t),s=Xe(o.parentPath);if(r==M.Xr.getTypeName()||r==M.fZ.getTypeName()){if(!o.body)return;const e=E.h.getTypeNameFor(o.body);if(!this.registeredContextTypes.has(e))return;let t=this.availableContexts.get(e);t||(t=new Map,this.availableContexts.set(e,t));let i=t.get(n);if(i||(i=[],t.set(n,i)),o.id||this.localWorkflowManager&&(o.id=this.localWorkflowManager.getNextClientAnnotationId()),r==M.Xr.getTypeName())0==i.filter((e=>Xe(e.parentPath)==s&&e.id==o.id)).length?i.push(o):a.tG.info(540848911,a.nh.CoreDefault,`AddOperation for (${n}, ${o.id}, ${o.source}) can't be applied as the context item with matching path and ID already exists. Use UpdateOperation instead.`);else for(let e=0;e<i.length;e++)if(i[e].id==o.id&&Xe(i[e].parentPath)==s){if(i[e].source==o.source){i[e]=o;break}a.tG.warn(540848912,a.nh.CoreDefault,`UpdateOperation for (${n}, ${o.id}, ${o.source}) can't be applied as the context item with provided path and ID has different source: ${i[e].source}`)}else a.tG.warn(540848913,a.nh.CoreDefault,`UpdateOperation for (${n}, ${o.id}, ${o.source}) can't be applied as the context item with matching path and ID was not found. AddOperation should be used instead`)}else if(r==M.n4.getTypeName()){if(!o.id)return;this.availableContexts.forEach(((e,t)=>{let r=e.get(n);r&&(r=r.filter((e=>!(Xe(e.parentPath)==s&&e.id==o.id))),0==r.length?e.delete(n):e.set(n,r),0==e.size?this.availableContexts.delete(t):this.availableContexts.set(t,e))}))}}updateWorkflowExecutionStates(e){if(this.localWorkflowManager){const t=this.enableRemoteExecutionNotification?this.workflowGraph.getWorkflowNodes().map((e=>e.workflow)):this.localWorkflowManager.getAllRegisteredWorkflowsFromSession(this);for(const n of e)if(st.has(E.h.getTypeNameFor(n)))for(const e of n.items)for(const n of t||[])this.localWorkflowManager.preProcessItemToWorkflow(n,e,this)}}resolveRequestedContexts(e){const t=[];for(const[n,r,o]of Je(e.requestedContextTypesRules)){if(!this.availableContexts.has(n)){if(r==Ye.in.Required)return[!1,[]];continue}const e=Array.from(this.availableContexts.get(n).values()).reduce(((e,t)=>e.concat(t)),[]);if(0==e.length)throw new Error(`Assert: availableContexts have the entry for ${n} which does not contain any context annotation.`);t.push(...e)}return[!0,this.removeDuplicatedContextItems(t)]}removeDuplicatedContextItems(e){return e.filter(((e,t,n)=>n.findIndex((t=>N.deepEquals(t,e)))===t))}getContextAnnotations(e,t,n,r){var o,s;const i=n?Xe(n):void 0;return null===(s=null===(o=this.availableContexts.get(e))||void 0===o?void 0:o.get(t))||void 0===s?void 0:s.filter((e=>!(i&&Xe(e.parentPath)!=i||r&&e.source!=r)))}onWorkflowDefinitionOverrideMessage(e){const t=new i.I({operationName:"WorkflowDefinitionOverride",success:!0}).setClientMetadata(this.clientMetadata).start(),n=e=>{throw Yt(t,e),Error(`WorkflowDefinitionOverride: ${e}`)};if(!this.localWorkflowManager)return void n("Not supported by this local SessionProxy instance.");const r=this.localWorkflowManager.getWorkflowDefinitionsByName(this),o=r.get(e.sourceWorkflowId);if(!o)return void n(`Workflow registration for source workflow '${e.targetWorkflowId}' was not found.`);t.resourceId=o.id;const s=r.get(e.targetWorkflowId);s&&(s.allowDefinitionOverride?o.definitionOverrideTargetWorkflows&&-1!==o.definitionOverrideTargetWorkflows.indexOf(s.id)?(this.workflowDefinitionManager.mergeWorkflowDefinition(s,e.definition,e.contextId),t.resultDescription=`Updated config for workflow: ${e.targetWorkflowId}, context id: ${e.contextId}`,Yt(t)):n(`Workflow '${o.id}' does not allow workflow definition for workflow '${s.id}'.`):n(`Workflow '${s.id}' does not allow workflow definition override.`))}applyContextIdOnOperations(e){this.contextIdManager.applyContextIdOnOperations(e)}attachToWorkflowGraph(e){this.addToWorkflowGraph(e),this.attachExecutionTrackerToEachWorkflow()}triggerRegisteredAnnotationCallbacks(e,t,n,r){if(this.callAnnotationCallbacks(e,t,n,r),this.hostCallbacks.onAnnotationResult)try{r?this.hostCallbacks.onApologyResult&&this.hostCallbacks.onApologyResult(e,n):this.hostCallbacks.onAnnotationResult(e,n)}catch(e){a.tG.error(540301151,a.nh.CoreDefault,new i.I({operationName:"HostCallbackOnAnnotationResultError",dimension0:t,resultDescription:`onAnnotationResult error: ${e}`}))}}attachExecutionTrackerToEachWorkflow(){this.localWorkflowManager&&this.localWorkflowManager.attachExecutionTrackerToEachWorkflow(this.workflowGraph,this,this.onWorkflowExecutionComplete.bind(this))}onWorkflowExecutionCompleteMessage(e,t){t(void 0,new k.YK),this.localWorkflowManager&&this.localWorkflowManager.onExternalWorkflowExecuted(e.contextId,e.workflowId,this)}onWorkflowExecutionComplete(e,t){}enableDeltaGenerator(){var e,t;this.deltaGenerator=null!==(e=this.deltaGenerator)&&void 0!==e?e:new Dt,this.syncDeltaTimers=null!==(t=this.syncDeltaTimers)&&void 0!==t?t:new Map}createDeltasFromUpdateOperation(e){var t,n;const r=[];a.tG.info(523776396,a.nh.CoreDefault,`Calling delta create for UpdateOperation under parent path [${e.parentPath}] (${null===(t=e.items)||void 0===t?void 0:t.length} item(s), first item id: ${(null===(n=e.items)||void 0===n?void 0:n.length)>0?e.items[0].id:"(no items)"})`);let o=[...e.parentPath];for(const t of e.items){const n=[],s=this.deltaGenerator.createTextTileDeltasFromItem(t,e.parentPath);if(null==s?void 0:s.length){for(const r of s){const s=Nt();o=[...e.parentPath,t.id];const i={id:s,revId:t.revId,body:r,contextId:t.contextId,source:t.source};n.push(i)}n.length>0&&(r.push(new M.xU({parentPath:o,items:n})),this.enableSyncDeltaSending&&this.setupSyncDeltaAfterDelay(t,o,n))}else a.tG.info(523329632,a.nh.CoreDefault,`Failed to create delta on item ${t.id}`)}return r}setupSyncDeltaAfterDelay(e,t,n){var r,o,s;const i=this.syncDeltaTimers.get(e.id);i&&(clearTimeout(i),this.syncDeltaTimers.delete(e.id));const a=n.find((e=>{var t;return(null===(t=e.body)||void 0===t?void 0:t.unit)===ut.Chars}));if(a){const n=a.body,i={content:"",deltaType:lt.Update,length:0,position:(null!==(r=null==n?void 0:n.position)&&void 0!==r?r:0)+(null!==(s=null===(o=null==n?void 0:n.content)||void 0===o?void 0:o.length)&&void 0!==s?s:0),unit:ut.Sentence},c=ht.typeGuard(e.body)?new Ct(i):new Tt(i),l={id:Nt(),revId:e.revId,body:c,contextId:e.contextId,source:e.source},u=new M.xU({parentPath:t,items:[l]}),d=setTimeout(((e,t)=>{this.submitOperation(e),this.syncDeltaTimers.delete(t)}),this.syncDeltaTimeout,u,e.id);this.syncDeltaTimers.set(e.id,d)}}addToWorkflowGraph(e){this.workflowGraph.addWorkflow(nt(e))}getAnnotations(e,t){var n,r,o;const s=new i.I({operationName:"GetAnnotations",success:!0,dimension1:null===(n=e.annotationType)||void 0===n?void 0:n.toString(),dimension2:null===(r=e.maxDelayMs)||void 0===r?void 0:r.toString(),cv:e.cv}).setClientMetadata(this.clientMetadata).start(),a=this.sessionManager.getCorrelationVector(),c=new Me({annotationTypes:e.annotationType,transientItems:e.transientItems,configs:e.configs,maxDelayMs:e.maxDelayMs,sourceInfo:e.sourceInfo,caller:be.Client,tryResolveUpstreamDependencies:e.tryResolveUpstreamDependencies,correlationInfo:{cvString:null!==(o=e.cv)&&void 0!==o?o:a.newChild().toString()}}),l=[];let u;this.sendMessageToSession(c,((e,n)=>{(null==t?void 0:t.IsCancellationRequested)||(l.push({error:e,response:n}),null==u||u(!0))}));const d=this;let p=!1;const f=new Promise(((e,n)=>{null==t||t.onCancel((t=>{p?e():n(new Error(Qt.requestCancelledError))}))}));return{[Symbol.asyncIterator](){var e,n,r,o,i,a,c;return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),s=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof $t?Promise.resolve(n.value.v).then(c,l):u(s[0][2],n)}catch(e){u(s[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,(function*(){for(;!p;)try{0===l.length&&(yield $t(Promise.race([new Promise((e=>u=e)),f])));const h=l.shift();if(null==t?void 0:t.IsCancellationRequested)throw new Error(Qt.requestCancelledError);let g,m,y;if(p=(null===(e=h.response)||void 0===e?void 0:e.finalResponse)||void 0!==h.error,s.dimension3=`final response: ${p}`,h.error){const e=`ErrorCode: ${h.error.code}, Error: ${h.error.error}, Retryable: ${h.error.retryable}`;s.setDataField("ServerError",e),y=h.error.error,g={serviceError:[{code:A.Qn.ServerError,error:h.error.error,retryable:null==d?void 0:d.canBeRetried(h.error)}]}}else if((null===(r=null===(n=h.response)||void 0===n?void 0:n.errorInfo)||void 0===r?void 0:r.length)>0){const e=h.response.errorInfo.map((e=>`ErrorCode: ${e.code}, Error: ${e.error}, Retryable: ${e.retryable}, ResourceId: ${e.resourceId}`)).join("\n");s.setDataField("WorkflowErrors",e),y="Workflow execution error",g={serviceError:h.response.errorInfo}}else s.resultDescription="OK";if((null===(i=null===(o=h.response)||void 0===o?void 0:o.warningInfo)||void 0===i?void 0:i.length)>0){m={serviceError:h.response.warningInfo};const e=h.response.warningInfo.map((e=>`ErrorCode: ${e.code}, Error: ${e.error}, Retryable: ${e.retryable}, ResourceId: ${e.resourceId}`)).join("\n");s.setDataField("WorkflowWarnings",e)}Yt(s,y),yield yield $t({content:null===(a=h.response)||void 0===a?void 0:a.content,error:null!=g?g:void 0,warning:null!=m?m:void 0,finalResponse:null===(c=h.response)||void 0===c?void 0:c.finalResponse})}catch(e){const t=e.message===Qt.requestCancelledError?A.zy.RequestCancelled:A.zy.Unknown;s.setDataField("ClientError",`ErrorCode: ${t}, Error: ${e.message}`),Yt(s,null==e?void 0:e.message),yield yield $t({content:void 0,error:{clientError:{code:t,error:null==e?void 0:e.message}}}),p=!0;break}}))}}}isHttpFallback(){const e=this.sessionManager.getNetworkWorkerManager();return!(!e||e.getInitNetworkMode()!==we.JSWebSockets||e.getNetworkMode()!==we.HttpFallback)}canBeRetried(e){return(null==e?void 0:e.code)===A.xv.TooManyRequests||(null==e?void 0:e.code)===A.xv.RequestTimeout||e.error.includes(I.Ef.ClientDisconnected)}getAuthToken(e,t){const n={Tickets:[]};this.clientMetadata.docSessionId&&(n.DocSessionId=this.clientMetadata.docSessionId);const r=(e=>{if(e===$e.OY.Substrate)return Le.Substrate})(e);r&&(n.TokenType=r),this.hostCallbacks.requestAuthToken(n).then((n=>{var r;if(!n)throw new Error("Missing AuthTokenResponse from requestAuthToken");if(!n.Token)throw new Error("Missing Token from requestAuthToken");t(void 0,n.Token,{returnedTokenType:e,timeToLiveSec:null===(r=n.TokenProperties)||void 0===r?void 0:r.timeToLiveSec})})).catch((e=>{t(e)}))}resetNextSyncSequenceId(){this.nextSyncSequenceId=1}onReconnect(){if(this.annotationActivationTrackers.forEach((e=>{var t;this.activateAnnotationForTracker(e,{ignoreExistingAnnotations:!0,sendOnlyIfConnected:!0,sendApologies:void 0!==(null===(t=e.options)||void 0===t?void 0:t.apologyCallback)}).catch((()=>{}))})),this.reconnectCallbacks.forEach(((e,t)=>{e()})),!this.connectParams)throw new Error("Expected onConnect before onReconnect")}onSessionClose(e){this.isSessionClosed=!0,this.connectParams=void 0,this.sessionCloseCallbacks.forEach(((t,n)=>{t(e)}))}onConnect(e,t,n,r,o,s){const a=new i.I({operationName:"OnConnect",success:!0}).setClientMetadata(this.clientMetadata).start();a.setDataField("HasSessionConnected",this.hasSessionConnected),a.setDataField("IsSeedingRequired",e),a.setDataField("SeedingStatus",this.seedingStatus);let c=!1;e&&(this.hasSessionConnected&&(this.allowSeed=!0,this.allowGroupSeed=!0,c=this.changeSeedingStatus(A.e9.NotStarted,"ReconnectReset",!1),this.seedGroupSize=0,this.batchedSeedMessageGroupSize=0,this.seedBatchedOperationsManager&&(this.seedBatchedOperationsManager.removeAllBatchedItems(),this.seedBatchedOperationsManager=void 0),this.batchedOperationsManager&&(this.batchedOperationsManager.removeAllBatchedItems(),this.batchedOperationsManager=void 0)),this.cachedClaimsChallenge=Object.assign(Object.assign({},this.cachedClaimsChallenge),{claimsVersion:0})),this.enableRemoteExecutionNotification&&!this.hasSessionConnected&&this.addDownstreamWorkflowsIntoClientGraph(s),this.connectParams={isSeedingRequired:e,sessionUrl:t,origin:n,authToken:r},this.hasSessionConnected=!0,this.tryActivateWorkflows();for(const e of this.pendingConnectCallbacks)e(this.connectParams);this.connectCallbacks.forEach(((o,s)=>{o(e,t,n,r)})),c&&this.triggerSeedingStatusChangeCallbacks(),this.serverInputTypes=o,this.onConnectTelemetryCG&&Yt(a)}onDisconnect(e){this.connectParams=void 0,this.disconnectCallbacks.forEach(((t,n)=>{t(e)}))}onSeedingStatusChangeMessage(e,t){t(void 0,new k.YK),this.changeSeedingStatus(e.newStatus,"SeedingStatusChangeMessage")}changeSeedingStatus(e,t,n=!0){const r=new i.I({operationName:"SeedingStatusChange",success:!0}).setClientMetadata(this.clientMetadata).start();return r.setDataField("Status",A.e9[e]),r.setDataField("Reason",t),Yt(r),this.seedingStatus!=e&&(this.seedingStatus=e,n&&this.triggerSeedingStatusChangeCallbacks(),!0)}triggerSeedingStatusChangeCallbacks(){this.seedingStatusChangeCallbacks.forEach((e=>{e(new k.fr({newStatus:this.seedingStatus}))}))}onServerAuthenticationStateChange(e){if(e!=this.serverAuthenticationState){if(this.serverAuthenticationState==Ve.f.Authenticated&&e==Ve.f.Pending)return;const t=new i.I({operationName:"ServerAuthStateChange",dimension0:e.toString(),dimension1:this.serverAuthenticationState.toString(),success:!0}).setClientMetadata(this.clientMetadata).start();t.resultDescription=`Changing Server Authentication State newState: ${e}`,Yt(t),this.serverAuthenticationState=e;for(const e of this.serverAuthenticationStateChangeCallback)e(this.serverAuthenticationState)}}callAnnotationCallbacks(e,t,n,r){if(0===this.annotationCallbacks.size&&0===this.apologyCallbacks.size)return;const o=r?this.apologyCallbacks.get(t):this.annotationCallbacks.get(t);o&&o.forEach((t=>{t(e,n)}))}getOperationBatchConfig(e){let t;return t=this.batchMessagesEnabled?e=>({input:e,demultiplex:()=>[[]]}):e=>({input:e.filter((e=>e.length)).reduce(((e,t)=>e.concat(t)),[]),demultiplex:()=>[[]]}),{delayMs:e.delayMs,delayMsMax:e.delayMsMax,maxInputSize:e.maxInputSize,estimateSize:Lt,groupingKeyExtractor:()=>"operations",multiplex:t,split:e=>{if(!(e.length<=1))return{inputs:e.reduce(((e,t)=>(e.push([t]),e)),[]),join:()=>[]}}}}sendSeedMessagesViaBatchManager(e,t,n){if(!this.seedBatchedOperationsManager){let e;e=this.batchMessagesEnabled?(e,t,n)=>{if(this.batchedSeedMessageGroupSize+=e.length,e.length){const r=new k.l0;r.messages=[],e.forEach((e=>{r.messages.push(new k.Tb({cv:e.cv,seq:0,ops:e.input,groupId:"Seed",groupSize:t.groupComplete?this.batchedSeedMessageGroupSize:void 0,groupComplete:t.groupComplete?t.groupComplete:void 0}))})),this.sendMessageToSession(r,(e=>{n(e?new Error(e.error):void 0)}))}}:(e,t,n)=>{this.seedGroupSize++,this.sendMessageToSession(new k.Tb({cv:t.cv,seq:0,ops:e,groupId:"Seed",groupSize:t.groupComplete?this.seedGroupSize:void 0,groupComplete:t.groupComplete?t.groupComplete:void 0}),(e=>{n(e?new Error(e.error):void 0)}))},this.seedBatchedOperationsManager=new ze(e,this.reduceBatchOperationsEnabled,this.batchMessagesEnabled,void 0,this.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled)}this.seedBatchedOperationsManager.addBatchItem(e,this.operationBatchConfig,{name:"SubmitSeedOperations"},n,t)}onAnnotationResultsFromServer(e,t){he(e,Date.now(),"ReceiveFromNetwork",!0,new i.I({operationName:"AugloopClientPerfTracker",success:!0}).setClientMetadata(this.clientMetadata).start()),this.onAnnotationResults(e,jt.ServerWorkflow,t)}getLocalRegisteredWorkflows(){return this.localWorkflowManager?this.localWorkflowManager.getAllRegisteredWorkflowsFromSession(this).map((e=>nt(e))):[]}sendWorkflowGraphInitMessage(){const e=this.getLocalRegisteredWorkflows(),t=new i.I({operationName:"WorkflowGraphInit",success:!0}).setClientMetadata(this.clientMetadata).start(),n=new k.TV({upstreamRuntimeWorkflows:e});this.sendMessageToSession(n,((n,r)=>{n?Yt(t,n.error):(t.resultDescription=`local workflows: ${e.map((e=>e.id))}, remote workflows: ${r.downstreamRuntimeWorkflows.map((e=>e.id))}`,Yt(t),this.onWorkflowGraphInitResponse(r))}))}trySendWorkflowGraphInitMessage(){!this.graphInitMessageTimer&&this.enableRemoteExecutionNotification&&(this.graphInitMessageTimer=setTimeout((()=>{this.graphInitMessageTimer=void 0,this.sendWorkflowGraphInitMessage()}),10))}onWorkflowGraphInitResponse(e){this.addDownstreamWorkflowsIntoClientGraph(e.downstreamRuntimeWorkflows),this.tryActivateWorkflows()}addDownstreamWorkflowsIntoClientGraph(e){this.workflowGraph.removeWorkflows(!0);for(const t of e||[])this.workflowGraph.addWorkflow(t,!0);this.attachExecutionTrackerToEachWorkflow()}resolvePlaceholdersInOperationParentPath(e){let t=e;return 3==t.length&&"session"==t[0]&&"user"==t[1]&&t[2].startsWith("user_")&&(a.tG.info(540848914,a.nh.CoreDefault,`Replacing user context placeholder for: ${Xe(e)}.`),t=["session","#userContext#"]),3==t.length&&"session"==t[0]&&"user"==t[1]&&t[2].startsWith("tenant_")&&(a.tG.info(540848915,a.nh.CoreDefault,`Replacing tenant context placeholder for: ${Xe(e)}.`),t=["session","#tenantContext#"]),t}filterOperationsForSession(e){return((e,t)=>{if(!Array.isArray(t)||0===t.length)return!0;if(M.xU.typeGuard(e)||M.XP.typeGuard(e))return!0;for(const n of e.items)if(!n.body||E.h.matchesTypesFor(n.body,t))return!0;return!1})(e,this.serverInputTypes)}executeCallbacksOnAnnotationSubmitted(e,t){const{annotationOpsMap:n,apologyOpsMap:r}=this.getAnnotationOperationsByType(e);n.forEach(((e,n)=>{Array.from(e).forEach((e=>this.triggerRegisteredAnnotationCallbacks(e,n,t,!1)))})),r.forEach(((e,n)=>{Array.from(e).forEach((e=>this.triggerRegisteredAnnotationCallbacks(e,n,t,!0)))}))}partitionAnnotationOperations(e){return e.reduce((([e,t],n)=>n.items.some((e=>e.body&&O.YH.typeGuard(e.body)))?[[...e,n],t]:[e,[...t,n]]),[[],[]])}onAnnotationsSubmitted(e,t){const{annotationOpsMap:n,apologyOpsMap:r}=this.getAnnotationOperationsByType(e);n.forEach(((e,n)=>{const r=Array.from(e);this.onAnnotationResults(new k.B_({annotationType:n,ops:r,cv:t,areApologies:!1}),jt.Submitted,(()=>{}))})),r.forEach(((e,n)=>{const r=Array.from(e);this.onAnnotationResults(new k.B_({annotationType:n,ops:r,cv:t,areApologies:!0}),jt.Submitted,(()=>{}))}))}getAnnotationOperationsByType(e){const t=new Map,n=new Map;for(const r of e)for(const e of r.items)if(e.body&&O.YH.typeGuard(e.body)){const o=(e,t)=>{const n=e.get(t)||new Set;n.add(r),e.set(t,n)};He.k$.typeGuard(e.body)?o(n,e.body.annotationTypeName):o(t,E.h.getTypeNameFor(e.body))}return{annotationOpsMap:t,apologyOpsMap:n}}onClaimsChallengeMessage(e,t){const n=new i.I({operationName:"OnClaimsChallengeMessage",dimension0:e.claimsVersion.toString(),dimension1:e.error,success:!0}).setClientMetadata(this.clientMetadata).start();n.resultSignature=`HasClaims: ${!!e.claims&&e.claims.length>0}`,n.resultDescription="Received Claims Challenge Message from Server",Yt(n),e.claimsVersion>this.cachedClaimsChallenge.claimsVersion&&(this.cachedClaimsChallenge=Object.assign(Object.assign({},e),{actionRequired:!0}));for(const e of this.claimsChallengeCallback)e(this.cachedClaimsChallenge);t(void 0,new k.YK)}generateCorrelationId(){return this.sessionManager.getCorrelationVector().newChild().toString()}onTokenProvisionResponse(e,t){if(e||!t)return;const n=t.tokenType&&t.tokenType==$e.OY.WacUserInfo?Ve.f.WacUserInfoAuthenticated:Ve.f.Authenticated;this.onServerAuthenticationStateChange(n)}requestAuthTokenWithClaims(e){this.requestAuthTokenInteractive(e).catch((()=>{}))}requestAuthTokenInteractive(e,t){var n;const r=new i.I({operationName:"RequestAuthTokenInteractive",success:!0,dimension0:`isInteractive: ${null!==(n=null==t?void 0:t.interactive)&&void 0!==n&&n}`}).start();r.dimension1=`HasClaims: ${!!e.claims&&e.claims.length>0}`;const o={Tickets:[],DocSessionId:this.clientMetadata.docSessionId,TokenType:Le.Augloop,ConnectParams:this.connectParams,Claims:e.claims,Interactive:null==t?void 0:t.interactive};return this.hostCallbacks.requestAuthToken(o).then((t=>{if(!t)throw new Error("Missing AuthTokenResponse from requestAuthToken claims");if(!t.Token)throw new Error("Missing Token from requestAuthToken claims");return r.resultSignature="Token",new k.kd({authToken:t.Token,version:++this.tokenMessageVersion,claimsVersion:e.claimsVersion})})).catch((t=>(r.resultSignature="NoToken",r.dimension2=t.message,new k.D0({reason:t.message,version:++this.tokenMessageVersion,claimsVersion:e.claimsVersion,clientHandlesResponse:!0})))).then((e=>new Promise(((t,n)=>{this.sendMessageToSession(e,((o,s)=>{Yt(r,null==o?void 0:o.error),this.onTokenProvisionResponse(o,s),o?n(new Error(o.error)):(k.kd.typeGuard(e)&&(this.cachedClaimsChallenge.actionRequired=!1),t(e))}))}))))}}Qt.requestCancelledError="Request cancelled";class Kt{}var Xt;!function(e){e[e.Anonymous=0]="Anonymous",e[e.Host=1]="Host"}(Xt||(Xt={}));class Zt{constructor(){this.timers=new Map}scheduleRefresh(e,t,n,r){let o=this.timers.get(e);o||(o={numberOfAttempts:0},this.timers.set(e,o)),o.refreshTimeoutId&&(clearTimeout(o.refreshTimeoutId),o.refreshTimeoutId=void 0),o.expiredTimeoutId&&(clearTimeout(o.expiredTimeoutId),o.expiredTimeoutId=void 0);let s=1e3*t-Zt.tokenRefreshBufferMs,i=1e3*t-Zt.tokenExpirationBufferMs;s>0?o.numberOfAttempts=0:(++o.numberOfAttempts,s=Zt.tokenRefreshBackoffIntervalMs,i=Zt.tokenExpirationBufferMs),o.numberOfAttempts<=Zt.tokenRefreshMaximumAttempts&&(o.refreshTimeoutId=setTimeout((()=>{n()}),s)),r&&(o.expiredTimeoutId=setTimeout((()=>{r()}),i))}clearRefreshTimeouts(){this.clearTimeouts(!1)}clearAllTimeouts(){this.clearTimeouts(!0)}clearTimeouts(e){this.timers.forEach(((t,n)=>{t.refreshTimeoutId&&(clearTimeout(t.refreshTimeoutId),t.refreshTimeoutId=void 0),e&&t.expiredTimeoutId&&(clearTimeout(t.expiredTimeoutId),t.expiredTimeoutId=void 0),t.expiredTimeoutId||this.timers.delete(n)}))}}Zt.tokenRefreshBufferMs=24e4,Zt.tokenExpirationBufferMs=12e4,Zt.tokenRefreshBackoffIntervalMs=3e4,Zt.tokenRefreshMaximumAttempts=3;class en extends R.EventEmitter{constructor(e,t,n,r,o){if(super(),this.getSessionStats=e,this.clientMetadata=t,this.tokenRefreshManager=n,this.sendMessage=r,this.options=o||{},this.options.overrideSessionInitMessage=this.options.overrideSessionInitMessage||(e=>e),this.clientMetadata&&!this.clientMetadata.userSystemTimezone)try{this.clientMetadata.userSystemTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}initSession(e){e.onResponse=e.onResponse||(()=>{});const t=N.getCurrentTimeMs(),n=this.getSessionStats().lastConnectionClose&&t-this.getSessionStats().lastConnectionClose,r=this.getSessionStats().lastSyncMessage&&t-this.getSessionStats().lastSyncMessage,o=new i.I({operationName:"SessionInit"}).start(),s={sessionKey:this.sessionKey,sessionId:this.clientMetadata.sessionId,timeSinceLastConnectionClose:n,timeSinceLastSyncMessage:r,isTokenRefresh:e.isTokenRefresh,enableRemoteExecutionNotification:this.options.enableRemoteExecutionNotification,error:void 0,isSeedingRequired:void 0},c=this.options.overrideSessionInitMessage(new k.eE({protocolVersion:A.mH,clientMetadata:this.clientMetadata,sessionKey:this.sessionKey,origin:this.origin,authToken:this.anonymousToken,extensionConfigs:e.extensionConfigs,returnWorkflowInputTypes:!0,enableRemoteExecutionNotification:this.options.enableRemoteExecutionNotification}));this.sendMessage(c,((t,n)=>{if(o.success=!t,o.resultSignature=this.getSessionStats().lastConnectionClose?"Reconnect":"FirstConnect",o.resourceId=f(null==n?void 0:n.sliceUrl),o.setClientMetadata(this.clientMetadata),(null==n?void 0:n.sessionKey)&&s.sessionKey!==n.sessionKey&&(s.sessionKey=n.sessionKey),t&&(s.error=t.error),s.isSeedingRequired=this.sessionKey!==(null==n?void 0:n.sessionKey),o.resultDescription=JSON.stringify(s),a.tG.info(508843779,a.nh.CoreDefault,o.stop()),e.onResponse(t,n),t)this.emit("serverAuthenticationStateChange",Ve.f.NotAuthenticated);else if(e.isReconnectOnSameSlice&&n.forceReconnect)this.emit("serverAuthenticationStateChange",Ve.f.NotAuthenticated);else{if(!n.anonymousToken||!n.tokenExpirationSeconds)return this.emit("serverAuthenticationStateChange",Ve.f.NotAuthenticated),void a.tG.error(508843778,a.nh.CoreDefault,"AL Anonymous token was not generated for the session");this.anonymousToken=n.anonymousToken,this.onSuccessfulSessionInitOnServerSide(n)}}))}onSuccessfulSessionInitOnServerSide(e){var t,n;this.tokenRefreshManager.scheduleRefresh(Xt.Anonymous,e.tokenExpirationSeconds,this.initSession.bind(this,{isTokenRefresh:!0}),(()=>{this.anonymousToken=void 0})),this.connectParams={isSeedingRequired:this.sessionKey!==e.sessionKey,sessionUrl:`${e.sessionUrlBase}/${e.sessionKey}`,origin:e.origin,authToken:this.anonymousToken},(null===(t=this.options)||void 0===t?void 0:t.dontSendTokenOnReconnectChangeGate)&&e.existingTokenProvisionResponse&&(null===(n=e.existingTokenProvisionResponse)||void 0===n?void 0:n.tokenType)===$e.OY.AugLoopLowPrivilege||(this.options.sendTokenFailureMessageChangeGate?this.initHostAuthTokenNew().catch((()=>{})):this.initHostAuthToken());const r=!!this.sessionKey;this.sessionKey=e.sessionKey,this.origin=e.origin,this.emit("connect",this.connectParams.isSeedingRequired,r,this.connectParams.sessionUrl,this.connectParams.origin,this.connectParams.authToken,e.workflowInputTypes,e.downstreamRuntimeWorkflows),r&&this.emit("reconnect")}getAuthToken(){const e={Tickets:[],DocSessionId:this.clientMetadata.docSessionId,TokenType:Le.Augloop,ConnectParams:this.connectParams};return this.options.requestAuthToken(e).then((e=>e)).catch((()=>{}))}getAuthTokenNew(){const e={Tickets:[],DocSessionId:this.clientMetadata.docSessionId,TokenType:Le.Augloop,ConnectParams:this.connectParams};return this.options.requestAuthToken(e).then((e=>e))}getAuthTokenTimeoutPromise(){const e=this.options.authTokenTimeoutMs;return new Promise(((t,n)=>{setTimeout((()=>{n(new Error(`Host auth token provision took longer than ${e} ms`))}),e)}))}initHostAuthToken(){const e=this.getAuthToken.bind(this);if(this.options.requestAuthToken&&e){const t=new i.I({operationName:"RefreshAuthToken",success:!0}).setClientMetadata(this.clientMetadata).start();e().then((e=>{if(e){if(!e.Token)return e.TokenError==Fe.TokenMissingInteractionRequired?(this.emit("serverAuthenticationStateChange",Ve.f.TokenMissingInteractionRequired),t.resultDescription="Host auth token provision failed interaction required"):(this.emit("serverAuthenticationStateChange",Ve.f.NotAuthenticated),t.resultDescription="Host auth token provision failed"),t.success=!1,void a.tG.info(508843777,a.nh.CoreDefault,t.stop());a.tG.info(508843776,a.nh.CoreDefault,t.stop()),this.sendTokenProvisionMessage(e.Token)}else t.resultDescription="TokenResponse is not set"})).catch((e=>{this.emit("serverAuthenticationStateChange",Ve.f.NotAuthenticated),t.success=!1,t.resultDescription=`Error happened while attempting to fetch host token: ${e}`,a.tG.error(508843747,a.nh.CoreDefault,t.stop())}))}}initHostAuthTokenNew(){return e=this,t=void 0,r=function*(){const e=this.getAuthTokenNew.bind(this);if(this.options.requestAuthToken&&e){const t=new i.I({operationName:"RefreshAuthToken",success:!0}).setClientMetadata(this.clientMetadata).start();let n,r,o=Ve.f.NotAuthenticated;try{if(n=this.options.authTokenTimeoutMs>0?yield Promise.race([e(),this.getAuthTokenTimeoutPromise()]):yield e(),!n)throw new Error("TokenResponse is not set");if(!n.Token)throw n.TokenError==Fe.TokenMissingInteractionRequired?(o=Ve.f.TokenMissingInteractionRequired,new Error("Host auth token provision failed interaction required")):new Error("Host auth token provision failed")}catch(e){r=e.message,this.emit("serverAuthenticationStateChange",o),t.success=!1,t.resultDescription=`Error happened while attempting to fetch host token: ${e}`}try{r?this.sendMessage(new k.D0({reason:r,version:en.initialTokenVersion,clientHandlesResponse:!0})):this.sendTokenProvisionMessage(n.Token)}catch(e){r||(r=e.message,this.emit("serverAuthenticationStateChange",o),t.success=!1,t.resultDescription=`Error happened while attempting to send host token: ${e}`)}finally{r?a.tG.error(506074845,a.nh.CoreDefault,t.stop()):a.tG.info(506074846,a.nh.CoreDefault,t.stop())}}},new((n=void 0)||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}sendTokenProvisionMessage(e){const t=new k.kd({authToken:e,version:en.initialTokenVersion});this.emit("serverAuthenticationStateChange",Ve.f.Pending),this.sendMessage(t,this.onTokenProvisionResponse.bind(this),!0)}onTokenProvisionResponse(e,t){if(e||!t||!t.tokenExpirationSeconds)return void this.emit("serverAuthenticationStateChange",Ve.f.NotAuthenticated);const n=t.tokenType&&t.tokenType==$e.OY.WacUserInfo?Ve.f.WacUserInfoAuthenticated:Ve.f.Authenticated;this.emit("serverAuthenticationStateChange",n),this.tokenRefreshManager.scheduleRefresh(Xt.Host,t.tokenExpirationSeconds,this.initHostAuthToken.bind(this))}}en.initialTokenVersion=1;var tn,nn=n(12834),rn=n(70372);!function(e){e[e.JoinContext=0]="JoinContext",e[e.Session=1]="Session"}(tn||(tn={})),Error;var on={util:{},roots:{default:{}}},sn=(on.util,on.roots.default||(on.roots.default={}),function(){function e(e){if(e)for(var t in e)null!=e[t]&&(this[t]=e[t])}return e.prototype.sessionKey="",e.prototype.annotationType="",e.prototype.annotationState=0,e.prototype.workflowId="",e.prototype.traceId="",e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/AnnotationMetaDataChangeEvent"},e}());class an extends sn{constructor(e){super(e),this.eventName="AnnotationMetaDataChange"}}class cn{constructor(e){this.item=e,this.operation=e.op,this.delta=e.delta,this.deltas=e.deltas,this.id=Xe(this.itemPath),this.revId=e.revId}get itemPath(){return[...this.item.parentPath,this.item.id]}getModelIterator(){throw new Error("Method not implemented.")}getBody(){return this.item.body}getItemReference(){throw new Error("Method not implemented.")}getParentItem(e){throw new Error("Method not implemented.")}getParentItemBody(e){throw new Error("Method not implemented.")}getPrevItem(e,t){throw new Error("Method not implemented.")}getPrevItemBody(e,t){throw new Error("Method not implemented.")}getNextItem(e,t){throw new Error("Method not implemented.")}getNextItemBody(e,t){throw new Error("Method not implemented.")}getChildItem(e){throw new Error("Method not implemented.")}getChildItemBody(e){throw new Error("Method not implemented.")}getChildItems(e){throw new Error("Method not implemented.")}getChildItemBodies(e){throw new Error("Method not implemented.")}getSubtreeItem(e){throw new Error("Method not implemented.")}getSubtreeItemBody(e){throw new Error("Method not implemented.")}getSubtreeItems(e){throw new Error("Method not implemented.")}getSubtreeItemBodies(e){throw new Error("Method not implemented.")}getContextItem(e){throw new Error("Method not implemented.")}getContextItemBody(e){throw new Error("Method not implemented.")}getContextItems(e){throw new Error("Method not implemented.")}getContextItemBodies(e){throw new Error("Method not implemented.")}addAnnotation(e,t){throw new Error("Method not implemented.")}updateAnnotation(e,t){throw new Error("Method not implemented.")}deleteAnnotation(e){throw new Error("Method not implemented.")}loadSubtree(e){throw new Error("Method not implemented.")}getSourceTimestamp(){return this.item.sourceTimestamp}getContextId(){return this.item.contextId}}class ln{constructor(e,t=[]){this.scopeItem=void 0,this.rootItem=void 0,this.normalizeFilter=e=>{if(!e)return e=>void 0!==e;if("function"==typeof e)throw new Error("Not implemented yet");if((e.id?1:0)+(e.ids?1:0)+(e.itemType?1:0)+(e.itemTypes?1:0)!=1)throw new Error("Exactly one condition expected on IItemFilter");if(e.itemType)return t=>t&&E.h.matchesTypesFor(t.body,[e.itemType]);if(e.itemTypes)return t=>t&&E.h.matchesTypesFor(t.body,e.itemTypes);throw new Error("Not implemented yet")},this.items=[...t,e],this.scopeItem=new cn(e)}getItem(e){throw new Error("Method not implemented.")}getItems(e){throw new Error("Method not implemented.")}getItemBody(e){return this.getItemBodies(e)[0]}getItemBodies(e){const t=this.normalizeFilter(e);return this.items.filter(t).map((e=>e.body))}getItemByReference(e){throw new Error("Method not implemented.")}getItemBodyByReference(e){throw new Error("Method not implemented.")}}const un=[lt.CursorUpdate,lt.FormattingUpdate,lt.OtherNonContentUpdate,lt.AttributionUpdate];function dn(e,t,n){const r=new i.I({operationName:"ApplyTextTileDeltaForLocalWorkflows",dimension0:"0",success:!0}).start();try{if(!t)return r.success=!1,r.resultDescription="Unable to apply text tile delta, parent tile is undefined",void a.tG.info(538798173,a.nh.CoreDefault,r.stop());if(E.h.getTypeNameFor(t)!==ft.getTypeName())return r.success=!1,r.resultDescription=`Unable to apply text tile delta, parent tile is not proper type: expected ${Tt.getTypeName()}, received ${E.h.getTypeNameFor(t)}`,void a.tG.info(538798174,a.nh.CoreDefault,r.stop());const n=e,o=t.content;let s="";if(void 0===n.position||n.position<0)return r.success=!1,r.resultDescription="Unable to apply text tile delta, invalid text tile position",void a.tG.info(538798175,a.nh.CoreDefault,r.stop());switch(n.deltaType){case lt.Add:s=n.position<o.length?`${o.slice(0,n.position)}${n.content}${o.slice(n.position,o.length)}`:o+n.content;break;case lt.Update:n.content||n.unit!==ut.Sentence||(r.dimension0="1"),s=`${o.slice(0,n.position)}${n.content}${o.slice(n.position+(n.length||0),o.length)}`;break;case lt.Delete:s=`${o.slice(0,n.position)}${o.slice(n.position+(n.length||0),o.length)}`}return a.tG.info(538837071,a.nh.CoreDefault,r.stop()),new ft({content:s})}catch(e){return r.success=!1,r.resultDescription=`Error applying text tile delta: ${e}`,void a.tG.info(538798176,a.nh.CoreDefault,r.stop())}}function pn(e,t){var n,r,o,s,i;const a=(null===(n=t.attributionData)||void 0===n?void 0:n.ranges)||t.attributionRanges;if((null===(r=t.attributionData)||void 0===r?void 0:r.isFullUpdate)||t.deltaType!==lt.AttributionUpdate&&void 0!==a)return a;if(!(null===(o=e.attributionRanges)||void 0===o?void 0:o.length)&&!a||t.deltaType===lt.Update&&0===t.length)return e.attributionRanges;let c=e.attributionRanges?[...e.attributionRanges]:[];if(t.deltaType!==lt.AttributionUpdate){const n=hn(e.attributionRanges,t.deltaType,t.position),r=n?c.indexOf(n):-1;-1!==r&&(n.length=t.position-n.start);const o=(null!==(s=t.content)&&void 0!==s?s:"").length,a=null!==(i=t.length)&&void 0!==i?i:0,l=t.position+a,u=t.position+o;for(const e of c.slice(r+1)){if(e.start<t.position)continue;const n=e.start+e.length;l>e.start&&(e.length=n-l),e.start=Math.max(e.start+o-a,u)}return c=c.filter((e=>e.length>0)),c}const l=[];for(const e of a)0!==l.length&&l[l.length-1].start+l[l.length-1].length>=e.start?l[l.length-1].length=e.start+e.length-l[l.length-1].start:l.push({start:e.start,length:e.length});c=c.filter((e=>e.length>0&&!(e=>{for(const t of l)if(t.start<=e.start&&t.start+t.length>=e.start+e.length)return!0;return!1})(e))),null==a||a.forEach((e=>{c.push(e)})),c.sort(((e,t)=>e.start-t.start));const u=[];for(const e of c){const t=u.length>0?u[u.length-1]:void 0;t&&t.start+t.length>e.start&&(t.length=Math.max(e.start-t.start,0)),!t||(p=e,(d=t).attribution.userId!==p.attribution.userId||d.attribution.timestamp!==p.attribution.timestamp||d.attribution.dataSource!==p.attribution.dataSource)||e.start>t.start+t.length?u.push(e):t.length+=Math.max(e.start+e.length-(t.start+t.length),0)}var d,p;return u}function fn(e,t,n){var r,o,s,c;const l=new i.I({operationName:"ApplyFormattedTextTileDeltaForLocalWorkflows",dimension0:"0",success:!0}).start();l.clientFlights=n;try{if(!t)return l.success=!1,l.resultDescription="Unable to apply formatted text tile delta, parent tile is undefined",void a.tG.info(538798177,a.nh.CoreDefault,l.stop());if(E.h.getTypeNameFor(t)!==ht.getTypeName())return l.success=!1,l.resultDescription=`Unable to apply formatted text tile delta, parent tile is not proper type: expected ${ht.getTypeName()}, received ${E.h.getTypeNameFor(t)}`,void a.tG.info(538798178,a.nh.CoreDefault,l.stop());const n=t,u=e,d=n.content;let p="";if((void 0===u.position||u.position<0)&&!mn(u.deltaType))return l.success=!1,l.resultDescription="Unable to apply formatted text tile delta, invalid text tile position",void a.tG.info(538798179,a.nh.CoreDefault,l.stop());if(void 0===u.content&&!mn(u.deltaType))return l.success=!1,l.resultDescription="Unable to apply formatted text tile delta, non-delete, non-formatting, non-other-non-content-update and non-cursor-update operation without content defined",void a.tG.info(538798208,a.nh.CoreDefault,l.stop());if(u.deltaType===lt.Add&&0!==u.length?a.tG.info(538798209,a.nh.CoreDefault,new i.I({operationName:"ApplyDeltaChecks",resultDescription:"Received formatted text tile delta add operation with delta length, expected length 0",success:!0})):mn(u.deltaType)&&void 0!==u.content&&a.tG.info(538798210,a.nh.CoreDefault,new i.I({operationName:"ApplyDeltaChecks",resultDescription:"Received formatted text tile delta delete or non-content related operation with content defined, expected undefined",success:!0})),!gn(u.deltaType)){const e=function(e,t){var n,r,o,s;const i=hn(e.formattedRanges,t.deltaType,t.position);let a=e.formattedRanges?[...e.formattedRanges]:[];const c=i?a.indexOf(i):-1;-1!==c&&(t.position+(t.length||0)>i.start+i.length?i.length=t.position+(null!==(n=t.content)&&void 0!==n?n:"").length-i.start:i.length+=(null!==(r=t.content)&&void 0!==r?r:"").length-(t.length||0),a[c]=i);for(const e of a.slice(c+1))e.start<t.position||(t.position+(t.length||0)>e.start?(e.length=e.start+e.length-(t.position+(t.length||0)),e.start=t.position+(null!==(o=t.content)&&void 0!==o?o:"").length):e.start+=(null!==(s=t.content)&&void 0!==s?s:"").length-(t.length||0));return a=a.filter((e=>e.length>0)),a}(n,u),t=pn(n,u);let s=n.ipPosition;switch(u.deltaType){case lt.Add:p=u.position<d.length?`${d.slice(0,u.position)}${u.content}${d.slice(u.position,d.length)}`:d+u.content,s=u.position+u.length;break;case lt.Update:u.content||u.unit!==ut.Sentence||(l.dimension0="1"),p=`${d.slice(0,u.position)}${u.content}${d.slice(u.position+(null!==(r=u.length)&&void 0!==r?r:0),d.length)}`,s=u.position+u.content.length;break;case lt.Delete:p=`${d.slice(0,u.position)}${d.slice(u.position+(null!==(o=u.length)&&void 0!==o?o:0),d.length)}`,s=u.position}const i=new ht(Object.assign(Object.assign({},n),{ipPosition:s,content:p,formattedRanges:e,attributionRanges:t,queryRange:u.queryRange}));return a.tG.info(538837073,a.nh.CoreDefault,l.stop()),i}if(u.deltaType===lt.CursorUpdate)return new ht(Object.assign(Object.assign({},n),{ipPosition:null===(s=u.cursorData)||void 0===s?void 0:s.ipPosition,isColdIp:null===(c=u.cursorData)||void 0===c?void 0:c.isColdIp}));if(u.deltaType===lt.FormattingUpdate)return new ht(Object.assign(Object.assign({},n),{formattedRanges:u.formattedRanges}));if(u.deltaType===lt.OtherNonContentUpdate){let e;const t={};for(e in u.otherNonContentData)t[e]=u.otherNonContentData[e];return new ht(Object.assign(Object.assign({},n),t))}return u.deltaType===lt.AttributionUpdate?new ht(Object.assign(Object.assign({},n),{attributionRanges:pn(n,u)})):void 0}catch(e){return l.success=!1,l.resultDescription=`Error applying formatted text tile delta: ${e}`,void a.tG.info(538798211,a.nh.CoreDefault,l.stop())}}function hn(e,t,n){const r=new i.I({operationName:"FindRangeForDelta",success:!0});if(r.start(),!e)return r.resultDescription="No formatted ranges found within the tile, skipping.",void a.tG.info(538798212,a.nh.CoreDefault,r.stop());if(t===lt.Add){const t=e.find((e=>e.start===n&&0===e.length));if(t)return r.resultDescription=`Found a zero-length formatted range for add operation with start ${t.start}.`,a.tG.info(538798213,a.nh.CoreDefault,r.stop()),t;n=Math.max(n-1,0)}const o=e.find((e=>0===e.length?e.start===n:e.start<=n&&n<e.start+e.length));return o?(r.resultDescription=`Updating formatted range for operation with start: ${o.start} and length: ${o.length}`,a.tG.info(538798214,a.nh.CoreDefault,r.stop())):(r.resultDescription=`Unable to find formatted range for operation at position ${n}, skipping.`,a.tG.info(538798215,a.nh.CoreDefault,r.stop())),o}function gn(e){return-1!==un.indexOf(e)}function mn(e){return gn(e)||lt.Delete===e}function yn(e){if(!e)return new vn([],new Set,new Map,new Map);const t=e.split(";"),n=new Set,r=new Map,o=new Map;for(const e of t){const t=e.trim();if(""===t)continue;n.add(vn.normalizeName(t));const[s,...i]=t.split(":"),a=i.join(":"),c=vn.normalizeName(s);if(c){r.set(c,a);const e=vn.parseName(c);e&&e!==c&&o.set(e,c)}}return new vn(t,n,r,o)}class vn{constructor(e,t,n,r){this.originalFlights=e,this.normalizedFlights=t,this.keyValueFlightsMap=n,this.parsedFlightsMap=r}static normalizeName(e){return null==e?void 0:e.toLowerCase()}static parseName(e){const t=null==e?void 0:e.split(".");return t?t[t.length-1]:void 0}hasFlight(e){const t=vn.normalizeName(e),n=this.normalizedFlights.has(t),r=this.keyValueFlightsMap.has(t),o=this.parsedFlightsMap.has(t);return n||r||o}getBooleanValue(e,t){var n,r;const o=null===(n=this.getStringValue(e))||void 0===n?void 0:n.toLowerCase(),s=null===(r=this.getStringValue(this.parsedFlightsMap.get(vn.normalizeName(e))))||void 0===r?void 0:r.toLowerCase();return"true"===o||"true"===s||"false"!==o&&"false"!==s&&t}getIntValue(e,t){const n=this.getStringValue(e),r=Number.parseInt(n,10);return Number.isNaN(r)?t:r}getStringValue(e,t){var n;return null!==(n=this.keyValueFlightsMap.get(vn.normalizeName(e)))&&void 0!==n?n:t}getAll(){return this.originalFlights}getAllParsed(){const e=[];return this.keyValueFlightsMap.forEach(((t,n)=>{const r=null==t?void 0:t.toLowerCase();switch(r){case"true":e.push({name:n,value:!0});break;case"false":e.push({name:n,value:!1});break;default:{const o=Number.parseInt(r,10);Number.isNaN(o)?e.push({name:n,value:t}):e.push({name:n,value:o})}}})),e}}class wn{constructor(e){this.model=e.model,this.clientMetadata=e.clientMetadata,this.userContext=e.userContext,this.site=e.site,this.getTokenCallback=e.getTokenCallback}get flights(){var e;return null!==(e=this._flights)&&void 0!==e||(this._flights=yn(this.clientMetadata.flights)),this._flights}getToken(e,t){return this.getTokenCallback(e,t)}getTokenAsync(e){return new Promise(((t,n)=>{this.getToken(e,((e,r,o)=>{e?n(e):t(Object.assign(Object.assign({},o),{token:r}))}))}))}}class bn{constructor(e,t,n){this.itemsContextId=new Set,this.executionState=new Map,this.graphNode=e,this.onContextIdWorkflowExecutionComplete=t,n&&(this.itemsContextId=n.itemsContextId,this.executionState=n.executionState)}addInputItemToProcess(e){this.itemsContextId.add(e)}removeProcessedInputItem(e){this.itemsContextId.delete(e)}countItemsToProcess(e){let t=0;for(const n of this.itemsContextId)0===n.indexOf(e)&&(t+=1);return t}getExecutionState(){return this.executionState}setExecutionState(e,t){return this.graphNode.isActivated?e?(this.executionState.set(e,t),!0):(a.tG.info(520217546,a.nh.CoreDefault,new i.I({operationName:"WorkflowExecutionTracker",resourceId:this.graphNode.workflow.id,joinContextId:e,resultDescription:`Trying to set state ${t} for a undefined contextId (setExecutionState)`})),!1):(a.tG.info(508883415,a.nh.CoreDefault,new i.I({operationName:"WorkflowExecutionTracker",resourceId:this.graphNode.workflow.id,joinContextId:e,resultDescription:`Trying to set state ${t} for a not activated workflow`})),!1)}beforeWorkflowExecution(e){this.setExecutionState(e,at.Pending)}afterWorkflowExecution(e){this.setExecutionState(e,at.Executed)&&this.tryToCompleteWorkflowExecution(e)}clearWorkflowExecutions(){this.executionState.forEach(((e,t)=>this.afterWorkflowExecution(t)))}tryToCompleteWorkflowExecution(e){if(this.executionState.get(e)===at.Executed&&this.canCompleteExecution(e)){this.executionState.delete(e),this.onContextIdWorkflowExecutionComplete&&this.onContextIdWorkflowExecutionComplete(this.graphNode.workflow.id,e);for(const t of this.downstreamWorkflowExecutionTrackers)for(const[n,r]of t.getExecutionState())r===at.Executed&&it.isParentContextId(e,n)&&t.tryToCompleteWorkflowExecution(n)}}canCompleteExecution(e){for(const t of this.upstreamWorkflowExecutionTrackers)for(const n of t.getExecutionState().keys())if(it.isParentContextId(n,e))return!1;return!0}}var Sn;!function(e){e.Unknown="",e.InputReceived="input",e.JoinMaxAnnnotation="maxAnnotation",e.JoinMaxTimeout="maxTimeout",e.JoinEarlyCompletion="earlyCompletion"}(Sn||(Sn={}));class Tn{constructor(e,t,n){this.executionTrackersByWorkflowNameBySession=new Map,this.workflowsWithSessionAffinity=new Map,this.workflowDefinitionsWithSessionAffinity=[],this.workflowsWithoutSessionAffinity=[],this.pendingScopeExecutionNotificationsByWorkflow=new Map,this.sweepIntervalMs=200,this.sweepTimers=new Map,this.getResourceAsArrayBuffer=(e,t,n)=>this.modelDownloader?this.modelDownloader.getResourceAsArrayBuffer(e,t,n):Promise.reject(new Error("Resource Downloader never created")),this.getResourceAsURL=(e,t,n)=>this.modelDownloader?this.modelDownloader.getResourceAsURL(e,t,n):Promise.reject(new Error("Resource Downloader never created")),this.createModel=e=>(!this.inferenceService&&this.inferenceServiceFactory&&(this.inferenceService=this.inferenceServiceFactory()),this.inferenceService?this.inferenceService.then((t=>t.createModel(e))):Promise.reject(new Error("Inference Service never created"))),this.createModelInputs=()=>{if(!this.inferenceService&&this.inferenceServiceFactory&&(this.inferenceService=this.inferenceServiceFactory()),this.inferenceService)return this.inferenceService.then((e=>e.createInputs()));throw new Error("Inference Service never created")},this.nextAnnotationId=1,this.nextSignalId=1,this.modelDownloader=e,this.inferenceServiceFactory=t,n.enableDeltas&&(this.deltaHandlers=(new Map).set(E.h.getTypeNameFor(Tt),dn).set(E.h.getTypeNameFor(Ct),fn),this.itemsForDelta=new Map),this.enableEarlyJoin=n.enableEarlyJoin||!1,this.site={getResourceAsArrayBuffer:this.getResourceAsArrayBuffer,getResourceAsURL:this.getResourceAsURL,createModel:this.createModel,createModelInputs:this.createModelInputs}}getNextClientAnnotationId(){return"#AC"+this.nextAnnotationId++}getNextClientSignalId(){return"#SC"+this.nextSignalId++}registerLocalWorkflow(e,t){const n=new i.I({operationName:"WorkflowRegistration",resourceId:e.id}).start();if(0===e.inputTypes.length)throw new Error("Invalid workflow params");t?(this.workflowsWithSessionAffinity.get(t).push(this.createWorkflowImplementation(e,t)),t.registerContextTypes(Je(e.requestedContextTypesRules).map((([e,t])=>e))),t.attachToWorkflowGraph(e),n.setClientMetadata(t.getClientMetadata())):(e.isStateful?(this.workflowDefinitionsWithSessionAffinity.push(e),this.workflowsWithSessionAffinity.forEach(((t,n)=>{t.push(this.createWorkflowImplementation(e,n))}))):this.workflowsWithoutSessionAffinity.push(this.createWorkflowImplementation(e)),this.workflowsWithSessionAffinity.forEach(((t,n)=>{n.registerContextTypes(Je(e.requestedContextTypesRules).map((([e,t])=>e))),n.attachToWorkflowGraph(e)}))),n.success=!0,a.tG.info(572838110,a.nh.CoreDefault,n.stop())}getAllRegisteredWorkflowsFromSession(e){const t=[];return t.push(...this.workflowsWithoutSessionAffinity||[]),t.push(...this.workflowsWithSessionAffinity.get(e)||[]),t.map((e=>e.workflow))}getWorkflowDefinitionsByName(e){var t;const n=new Map;return null===(t=this.workflowsWithSessionAffinity.get(e))||void 0===t||t.forEach((e=>n.set(e.workflow.id,e.workflow))),n}getWorkflowDefinitionsWithSessionAffinity(){return this.workflowDefinitionsWithSessionAffinity}attachExecutionTrackerToEachWorkflow(e,t,n){const r=e.getWorkflowNodes(),o=this.executionTrackersByWorkflowNameBySession.get(t),s=(e,r)=>{n&&n(e,r),this.enableEarlyJoin&&(()=>{for(const e of this.executionTrackersByWorkflowNameBySession.get(t).values())if(e.graphNode.workflow.kind===Ye.wC.Join)for(const t of e.getExecutionState().keys())if(it.isParentContextId(t,r))return!0;return!1})()&&(this.cancelSweepTimer(t),this.ensureSweepTimer(t),this.sweepScopeExecutionNotifications())};for(const e of r){const t=o.get(e.workflow.id),n=new bn(e,s.bind(this),t);o.set(e.workflow.id,n)}for(const e of o.values())this.setDownstreamWorkflowExecutionTrackers(e,o),this.setUpstreamWorkflowExecutionTrackers(e,o)}canActivateWorkflow(e,t){var n;return e.location===Ze.Local||!!t.hasConnected&&!((null===(n=e.workflow.requiredTokenTypes)||void 0===n?void 0:n.length)>0&&t.getServerAuthenticationState()===Ve.f.NotAuthenticated)}setDownstreamWorkflowExecutionTrackers(e,t){if(void 0!==e.downstreamWorkflowExecutionTrackers)return;e.downstreamWorkflowExecutionTrackers=new Set;const{graphNode:n}=e;for(const r of n.downstreamWorkflows||[]){const n=t.get(r.workflow.id);this.setDownstreamWorkflowExecutionTrackers(n,t),e.downstreamWorkflowExecutionTrackers.add(n)}}setUpstreamWorkflowExecutionTrackers(e,t){if(void 0!==e.upstreamWorkflowExecutionTrackers)return;e.upstreamWorkflowExecutionTrackers=new Set;const{graphNode:n}=e;for(const r of n.upstreamWorkflows||[]){const n=t.get(r.workflow.id);this.setUpstreamWorkflowExecutionTrackers(n,t),e.upstreamWorkflowExecutionTrackers.add(n)}}deactivateServerWorkflow(e,t){var n;e.location!==Ze.Local&&(null===(n=this.executionTrackersByWorkflowNameBySession.get(t))||void 0===n||n.get(e.workflow.id).clearWorkflowExecutions(),e.isActivated=!1)}addSession(e){this.executionTrackersByWorkflowNameBySession.set(e,new Map);const t=[];for(const n of this.workflowDefinitionsWithSessionAffinity)t.push(this.createWorkflowImplementation(n)),e.attachToWorkflowGraph(n);this.workflowsWithSessionAffinity.set(e,t);for(const t of this.workflowsWithoutSessionAffinity)e.attachToWorkflowGraph(t.workflow)}closeSession(e){this.cancelSweepTimer(e);for(const t of this.workflowsWithSessionAffinity.get(e)||[])t.workflowLambda.dispose();this.workflowsWithSessionAffinity.delete(e)}setTokenCallback(e){this.getAuthTokenCallback=e}preProcessItemToWorkflow(e,t,n){const r=this.executionTrackersByWorkflowNameBySession.get(n).get(e.id);e.kind===Ye.wC.Join&&E.h.matchesTypesFor(t.body,e.inputTypes)&&r.addInputItemToProcess(t.contextId),(e.kind===Ye.wC.SingleItem&&E.h.matchesTypesFor(t.body,e.inputTypes)||e.kind===Ye.wC.Join&&E.h.matchesTypesFor(t.body,[e.collectionScopeType]))&&r.beforeWorkflowExecution(t.contextId)}isReadyToEarlyJoin(e,t,n){const r=r=>{var o;const s=Array.from(null!==(o=r.states)&&void 0!==o?o:[]).map((e=>`${e[0]}: ${e[1].map((e=>e.join()))}`)).join(),c=new i.I({operationName:"EarlyJoinCompletion",resourceId:e.graphNode.workflow.id,joinContextId:t,success:!0}).start();c.setClientMetadata(n),c.resultDescription=`isReadyToEarlyJoin (${this.enableEarlyJoin}) -> hasProcessedAllInputItems: ${r.hasProcessedAllInputItems}, allUpstreamComplete: ${r.allUpstreamComplete}, states: ${s}`,a.tG.info(512550800,a.nh.CoreDefault,c.stop())},o=0===e.countItemsToProcess(t);if(!o)return this.enableEarlyJoin||r({hasProcessedAllInputItems:o}),!1;const{allUpstreamComplete:s,states:c}=this.areAllUpstreamWorkflowComplete(e,t);return this.enableEarlyJoin?s:(r({hasProcessedAllInputItems:o,allUpstreamComplete:s,states:c}),!1)}areAllUpstreamWorkflowComplete(e,t){const n=new Map;for(const r of e.upstreamWorkflowExecutionTrackers){const e=[];for(const[o,s]of r.getExecutionState())if(e.push([o,s]),it.isParentContextId(t,o))return n.set(r.graphNode.workflow.id,e),{allUpstreamComplete:!1,states:n};e.length>0&&n.set(r.graphNode.workflow.id,e)}return{allUpstreamComplete:!0,states:n}}runLocalWorkflows(e,t,n=!1){var r,o,s;const c=(e,n,r)=>{var o,s;const c=t.getWorkflowItemStorage(),{workflow:l}=e,u=null===(o=this.executionTrackersByWorkflowNameBySession.get(t))||void 0===o?void 0:o.get(l.id),d=l.inputTypes.concat(l.kind===Ye.wC.Join?l.collectionScopeType:[]),p=new i.I({operationName:"RunLocalWorkflows",success:!0,resourceId:l.id,joinContextId:n.contextId}).start();if(p.setClientMetadata(t.getClientMetadata()),E.h.matchesTypesFor(n.body,d)){const o=Ke(r.parentPath,n);if(l.kind===Ye.wC.Join){if(E.h.matchesTypesFor(o.body,[l.collectionScopeType]))return c.setScopeItem(o,l),p.resultDescription=`Scope item: ${n.id} (${E.h.getTypeNameFor(n.body)})`,a.tG.info(524126153,a.nh.CoreDefault,p.stop()),void this.setScopeExecutionNotification(t,e,o);{u.removeProcessedInputItem(o.contextId);const e=c.getScopeItem(o.contextId,l);if(!e)return p.resultDescription=`Filtered out join invalidation: out of scope type (${l.collectionScopeType}), item id: ${o.id}`,void a.tG.info(541173894,a.nh.CoreDefault,p.stop());c.addItemToWorkflowList(o,l),p.joinContextId=e.contextId,p.resultDescription=`Input item: ${n.id} (${E.h.getTypeNameFor(n.body)})`}}if(E.h.getBaseTypesFor(o.body).indexOf(nn.W1.getTypeName())>=0){const e=[...o.parentPath,o.id];let n=!0;for(const r of null!==(s=l.outputTypes)&&void 0!==s?s:[])if(!t.getContextAnnotations(r,jt.LocalWorkflow,e,l.id)){n=!1;break}if(n)return}const i=()=>{var r;const[s,d]=t.resolveRequestedContexts(l);if(!s)return p.resultDescription=`Required contexts are not ready for ${l.id}. Retrying execution in 500 milliseconds...`,a.tG.info(545837259,a.nh.CoreDefault,p.stop()),void setTimeout(i,500);if(l.kind===Ye.wC.SingleItem)this.queueWorkflow({workflowInfo:e,scopeItem:o,inputItems:[o],requestedContexts:d,session:t,triggerReason:Sn.InputReceived,onCompleteCallback:this.onWorkflowExecuted.bind(this,o,l,t)}).then((()=>{a.tG.info(509154263,a.nh.WorkflowDefault,p.stop())})).catch((e=>{p.resultDescription=e,a.tG.error(572838111,a.nh.CoreDefault,p.stop())}));else if(l.kind===Ye.wC.Join){const o=n.contextId,s=c.getScopeItem(o,e.workflow);if(!s)return p.resultDescription=`No scope item for ${l.id} workflow from contextId ${o}`,void a.tG.info(526758475,a.nh.CoreDefault,p.stop());const i=this.isReadyToEarlyJoin(u,s.contextId,t.getClientMetadata()),f=i?Sn.JoinEarlyCompletion:Sn.JoinMaxAnnnotation;if(c.isWorkflowReady(s.contextId,l)||i){if(!(null===(r=this.pendingScopeExecutionNotificationsByWorkflow.get(l.id))||void 0===r?void 0:r.get(s.contextId)))return p.resultDescription=`Workflow ${l.id}, contextId ${s.contextId}, already queued, skipping new scope execution`,void a.tG.info(528048977,a.nh.CoreDefault,p.stop());const n=c.getItemsToExecute(s.contextId,l);this.queueWorkflow({workflowInfo:e,scopeItem:s,inputItems:n,requestedContexts:d,session:t,triggerReason:f,onCompleteCallback:this.onWorkflowExecuted.bind(this,s,l,t)}).then((()=>{a.tG.info(509154262,a.nh.WorkflowDefault,p.stop())})).catch((e=>{p.resultDescription=e,a.tG.error(541173895,a.nh.CoreDefault,p.stop())})),this.pendingScopeExecutionNotificationsByWorkflow.get(l.id).delete(s.contextId),0===this.pendingScopeExecutionNotificationsByWorkflow.get(l.id).size&&this.pendingScopeExecutionNotificationsByWorkflow.delete(l.id)}}};i()}};let l=e;n&&(l=[new M.Xr({parentPath:["session"],items:[{id:"#userContext#",body:new nn.hD}]}),new M.Xr({parentPath:["session"],items:[{id:"#tenantContext#",body:new nn.SB}]})],t.getContextIdManager().applyContextIdOnOperations(l),l=l.concat(e));for(const e of l){const n=E.h.getTypeNameFor(e);for(const i of e.items)if(t.applyOperationForContext(e,i,jt.Submitted),n!==M.n4.getTypeName()){if(i.body)if(n===M.xU.getTypeName()&&this.deltaHandlers&&this.itemsForDelta)this.handleLocalDeltaUpdate(i,e,t);else{null===(o=this.itemsForDelta)||void 0===o||o.set(e.parentPath.concat(i.id).toString(),i);for(const t of this.workflowsWithoutSessionAffinity)c(t,i,e);for(const n of null!==(s=this.workflowsWithSessionAffinity.get(t))&&void 0!==s?s:[])c(n,i,e)}}else null===(r=this.itemsForDelta)||void 0===r||r.delete(e.parentPath.concat(i.id).toString())}}handleLocalDeltaUpdate(e,t,n){const r=new i.I({operationName:"LocalDeltaUpdate",dimension0:E.h.getTypeNameFor(e.body),success:!0});r.start();try{const o=this.deltaHandlers.get(E.h.getTypeNameFor(e.body)),s=this.itemsForDelta.get(t.parentPath.toString());if(o&&s){const i=t.parentPath.length>0?t.parentPath.slice(0,t.parentPath.length-1):t.parentPath,c=o(e.body,s.body);if(c){const t={id:s.id,revId:e.revId,body:c,parentPath:i,delta:e.body,contextId:e.contextId},o=new M.I({parentPath:t.parentPath,items:[t]});a.tG.info(539637591,a.nh.CoreDefault,r.stop()),this.runLocalWorkflows([o],n)}else r.success=!1,r.resultDescription="Failed because the handler did not produce valid updated item",a.tG.info(539637592,a.nh.CoreDefault,r.stop())}else r.success=!1,r.resultDescription="Failed due to lack of handler or parent item",a.tG.info(539637593,a.nh.CoreDefault,r.stop())}catch(e){r.success=!1,r.resultDescription=`Failed to apply delta, error: ${e}`,a.tG.info(539637594,a.nh.CoreDefault,r.stop())}}createWorkflowImplementation(e,t){const n=e.factory();return{workflow:e,workflowLambda:n,initPromise:this.initWorkflow(e.kind,n,t)}}initWorkflow(e,t,n){const r=new wn({model:void 0,clientMetadata:n?n.getClientMetadata():void 0,userContext:n?n.getUserContext():void 0,site:this.site,getTokenCallback:this.getAuthTokenCallback});return e===Ye.wC.SingleItem||e===Ye.wC.Join?t.init(this.site,r):Promise.resolve()}queueWorkflow(e){return this.executionTrackersByWorkflowNameBySession.get(e.session).get(e.workflowInfo.workflow.id).setExecutionState(e.scopeItem.contextId,at.Running),this.executeLocalWorkflow(e.workflowInfo,e.scopeItem,e.inputItems,e.session,e.requestedContexts,e.triggerReason).then((t=>{this.processAnnotationResults(t,e.session),e.onCompleteCallback()})).catch((t=>{throw e.onCompleteCallback(),t}))}processAnnotationResults(e,t){for(const n of e)t.onAnnotationResults(n,jt.LocalWorkflow,(()=>{}))}executeLocalWorkflow(e,t,n,r,o,s){return new Promise(((c,l)=>{var u,d,p;const f=[],h=e.workflow,g=new i.I({operationName:"ExecuteWorkflow",resourceId:h.id,joinContextId:null!==(u=null==t?void 0:t.contextId)&&void 0!==u?u:"",resultDescription:null!=s?s:"",success:!0}).setClientMetadata(r.getClientMetadata());g.start();const m=null!==(d=null==t?void 0:t.contextId)&&void 0!==d?d:n[0].contextId,y=null!==(p=null==t?void 0:t.revId)&&void 0!==p?p:n[0].revId,v=(()=>{const e=new Map;if(t&&(t.parentPath||a.tG.error(525382231,a.nh.CoreDefault,`Missing scope item parent. Workflow: ${h.id}. Type: ${E.h.getTypeNameFor(t.body)}`),e.set(t.body,t)),Array.isArray(n))for(const t of n)t&&t.body&&(t.parentPath||a.tG.error(525382232,a.nh.CoreDefault,`Missing parent. Workflow: ${h.id}. Type: ${E.h.getTypeNameFor(t.body)}`),e.set(t.body,t));return e})(),w=(e,t=g)=>{if(e)return t.success=!1,t.resultDescription+="string"==typeof e?e:e.message,t.resultSignature="Exception",a.tG.error(572838112,a.nh.CoreDefault,t.stop()),"string"==typeof e?new Error(e):e;a.tG.info(572838113,a.nh.CoreDefault,t.stop())},b=new wn({model:new ln(n[0],o),clientMetadata:r.getClientMetadata(),userContext:r.getUserContext(),site:this.site,getTokenCallback:this.getAuthTokenCallback}),S=e=>{w(e?e.message:void 0),e?l(e):c(f)},T={setAnnotations:(o,s,c,u)=>{var d;const p=new i.I({operationName:"SetAnnotations",resourceId:s,joinContextId:null!==(d=null==t?void 0:t.contextId)&&void 0!==d?d:"",success:!0}).setClientMetadata(r.getClientMetadata());p.start();const g=t=>{a.tG.info(555866112,a.nh.CoreDefault,new an({annotationType:s,annotationState:t,workflowId:e.workflow.id}))};for(const e of c)e.metadata=Object.assign(Object.assign({},e.metadata),{state:rn.r.Created}),g(rn.r.Created);const b=v.get(o),S=E.h.getTypeNameFor(b.body),T=(()=>{var e;if(h.kind===Ye.wC.SingleItem&&n[0].body!==o){const e=`Expected obj to be ${n[0].body} but instead it was ${o}`;return w(e,p),void l(w(e))}let t,i;if(Array.isArray(c))if(!h.outputTypes||h.outputTypes.indexOf(s)<0)t=`Workflow said it would output one of [${h.outputTypes}] but instead output ${s}`;else if(b)for(const e of c)E.h.matchesTypesFor(e,[O.YH.getTypeName()])?E.h.getTypeNameFor(e)!==s&&(t=`Workflow produced inconsistent annotation types in setAnnotations call (${E.h.getTypeNameFor(e)} did not match expected ${s})`):t=`Workflow produced an output that is not an annotation ${E.h.getTypeNameFor(e)}`;else t="No item provided";else t="Workflow produced an invalid annotation array";if(t)return w(t,p),void l(w(t));i=u&&u.isSessionAnnotation?["session"]:u&&u.ancestorType?b.parentPath:b.parentPath.concat(b.id);const d=[],f=[];for(const t of c){t.metadata=Object.assign(Object.assign({},t.metadata),{state:rn.r.Sent}),g(rn.r.Sent);const n=t.id,o=n?null===(e=r.getContextAnnotations(s,jt.LocalWorkflow,i,h.id))||void 0===e?void 0:e.filter((e=>{var t;return(null===(t=e.body)||void 0===t?void 0:t.id)==n})):void 0;1==(null==o?void 0:o.length)?1==o.length?f.push({id:o[0].id,source:h.id,revId:y,body:t,contextId:m}):a.tG.error(545837260,a.nh.CoreDefault,`Assert: Multiple existing context annotations with body id ${n} found for ${s} and local workflow ${h.id}).`):d.push({id:this.getNextClientAnnotationId(),source:h.id,revId:y,body:t,contextId:m})}const v=[];return d.length>0&&v.push(new M.Xr({parentPath:i,items:d,parentRevId:y})),f.length>0&&v.push(new M.fZ({parentPath:i,items:f,parentRevId:y})),new k.B_({annotationType:s,ops:v})})();T?(u&&u.immediate?r.onAnnotationResults(T,jt.LocalWorkflow,(()=>{})):f.push(T),(S==nn.hD.getTypeName()||S==nn.SB.getTypeName()||E.h.matchesTypesFor(b.body,[nn.yo.getTypeName(),nn.I3.getTypeName()]))&&r.submitOperationsToSession(T.ops),a.tG.info(509644822,a.nh.CoreDefault,p.stop())):a.tG.info(509644823,a.nh.CoreDefault,p.stop())},submitSignals:e=>{const t=new i.I({operationName:"submitSignalsAction",resourceId:h.id,success:!0}).setClientMetadata(r.getClientMetadata());for(const n of e){const e=E.h.getTypeNameFor(n);E.h.matchesTypesFor(n,[P.HN.getTypeName()])||(t.resultDescription=`Workflow produced an output that is not an signal (${E.h.getTypeNameFor(n)})`,a.tG.info(521413954,a.nh.CoreDefault,t)),h.outputTypes&&-1!==h.outputTypes.indexOf(e)||(t.resultDescription=`Workflow said it would output one of [${h.outputTypes}] but instead output ${e}`,a.tG.info(521413953,a.nh.CoreDefault,t)),n.timestamp&&(Tn.logTimestampUsageByWorkflowId.has(h.id)||(Tn.logTimestampUsageByWorkflowId.add(h.id),t.resultDescription=`Workflow "${h.id}" sets signal.timeStamp`,a.tG.info(509212803,a.nh.CoreDefault,t)))}const n=e.map((e=>({id:this.getNextClientSignalId(),source:h.id,revId:y,body:e,contextId:m}))),o=new M.g0({parentPath:["session"],parentRevId:y,items:n});r.submitOperations([o])},done:S,overrideWorkflowDefinition:(e,n,o)=>{let s;switch(o){case tn.JoinContext:if(!t.contextId){const e="ContextId is not defined for this scope item.";throw a.tG.error(527472289,a.nh.CoreDefault,e),new Error(e)}s=t.contextId;break;case tn.Session:s=void 0;break;default:{const e="Defined scope is not supported. "+o;throw a.tG.error(527472290,a.nh.CoreDefault,e),new Error(e)}}const i=new Pe({definition:n,contextId:s,sourceWorkflowId:h.id,targetWorkflowId:e});r.onWorkflowDefinitionOverrideMessage(i)},getDynamicAnnotations:void 0,setBillingDomain:void 0},C=e.workflowLambda;if(h.kind===Ye.wC.SingleItem){1!==n.length&&S(new Error("Single item workflows expect a single input")),b.delta=n[0].delta,b.deltas=n[0].deltas;try{const t=C;e.initPromise||(e.initPromise=t.init(this.site,b)),e.initPromise.then((()=>{t.execute(n[0].body,b,T)})).catch((e=>{w(e)}))}catch(e){w(e)}}else if(h.kind===Ye.wC.Join){0===n.length&&S(new Error("Join workflows expect an inputs array")),b.delta=t.delta,b.deltas=t.deltas;try{const r=C;e.initPromise||(e.initPromise=r.init(this.site,b)),e.initPromise.then((()=>{r.execute(t.body,n.map((e=>e.body)),b,T)})).catch((e=>{w(e)}))}catch(e){w(e)}}else w(`Workflow kind ${h.kind} not supported`)}))}ensureSweepTimer(e){if(!this.sweepTimers.get(e)){const t=setInterval(this.onSweep.bind(this),this.sweepIntervalMs);this.sweepTimers.set(e,t)}}cancelSweepTimer(e){const t=this.sweepTimers.get(e);this.sweepTimers.get(e)&&(clearInterval(t),this.sweepTimers.delete(e))}onSweep(){this.sweepScopeExecutionNotifications()}setScopeExecutionNotification(e,t,n){var r,o;const s=Date.now(),c={session:e,workflowImplementation:t,scopeItem:n,startTime:s,minTime:s+W(t.workflow.minDelayMs,1e3),maxTime:s+W(t.workflow.maxDelayMs,5e3)},l=t.workflow.kind===Ye.wC.Join?n.contextId:c.scopeItem.parentPath.concat(n.id).join("\\");if(this.pendingScopeExecutionNotificationsByWorkflow.get(t.workflow.id)||this.pendingScopeExecutionNotificationsByWorkflow.set(t.workflow.id,new Map),this.pendingScopeExecutionNotificationsByWorkflow.get(t.workflow.id).get(l)){const r=new i.I({resultDescription:`Duplicated pending scope execution for ${t.workflow.id} at ${l}`,operationName:"LocalScopeExecutionNotification",resourceId:t.workflow.id,joinContextId:null!==(o=null==n?void 0:n.contextId)&&void 0!==o?o:"",success:!0}).setClientMetadata(e.getClientMetadata()).start();a.tG.info(509727899,a.nh.CoreDefault,r.stop())}else{const o=new i.I({resultDescription:`New pending scope execution for ${t.workflow.id} at ${l}`,operationName:"LocalScopeExecutionNotification",resourceId:t.workflow.id,joinContextId:null!==(r=null==n?void 0:n.contextId)&&void 0!==r?r:"",success:!0}).setClientMetadata(e.getClientMetadata()).start();a.tG.info(539883075,a.nh.CoreDefault,o.stop()),this.pendingScopeExecutionNotificationsByWorkflow.get(t.workflow.id).set(l,c)}this.ensureSweepTimer(e)}sweepScopeExecutionNotifications(){var e,t;const n=new Set(Array.from(this.sweepTimers.keys()));for(const[r,o]of Array.from(this.pendingScopeExecutionNotificationsByWorkflow.entries()))for(const[s,c]of Array.from(o.entries())){const{session:o,workflowImplementation:{workflow:l}}=c,u=o.getWorkflowItemStorage(),d=new i.I({operationName:"LocalScopeExecutionNotification",resourceId:l.id,joinContextId:null!==(t=null===(e=c.scopeItem)||void 0===e?void 0:e.contextId)&&void 0!==t?t:"",success:!0}).setClientMetadata(o.getClientMetadata()).start(),p=()=>{if(l.kind===Ye.wC.Join){const e=Date.now(),{workflow:t}=c.workflowImplementation,n=c.scopeItem.contextId,r=o.getWorkflowDefinition(t,n).maxDelayMs;return u.isWorkflowReady(n,t)?(d.resultDescription=`Join Workflow: ${t.id} queuing by maxAnnotation, contextId: ${n}`,a.tG.info(528048978,a.nh.CoreDefault,d.stop()),{isValid:!0,triggerReason:Sn.JoinMaxAnnnotation}):c.startTime+r<e?(d.resultDescription=`Join Workflow: ${t.id} queuing by maxTimeout, contextId: ${n}`,a.tG.info(528048979,a.nh.CoreDefault,d.stop()),{isValid:!0,triggerReason:Sn.JoinMaxTimeout}):this.isReadyToEarlyJoin(this.executionTrackersByWorkflowNameBySession.get(o).get(t.id),n,o.getClientMetadata())?(a.tG.info(512550856,a.nh.CoreDefault,`Workflow: ${t.id} queuing by early completion, contextId: ${n}, timeout: ${r}`),{isValid:!0,triggerReason:Sn.JoinEarlyCompletion}):{isValid:!1,triggerReason:Sn.Unknown}}return{isValid:!0,triggerReason:Sn.Unknown}};(()=>{const{isValid:e,triggerReason:t}=p();if(!e)return!1;const[n,r]=o.resolveRequestedContexts(l);if(!n)return!1;try{if(l.kind===Ye.wC.Join){const e=c.scopeItem.contextId,n=u.getScopeItem(e,l);if(n){const s=u.getItemsToExecute(n.contextId,l);if(0===s.length)return d.resultDescription=`Failed to retrieve items for workflow: ${l.id}, contextId: ${e}, skipping execution`,a.tG.info(527472291,a.nh.CoreDefault,d.stop()),this.onWorkflowExecuted(n,l,o),!0;this.queueWorkflow({workflowInfo:c.workflowImplementation,scopeItem:n,inputItems:s,requestedContexts:r,session:o,triggerReason:t,onCompleteCallback:this.onWorkflowExecuted.bind(this,n,l,o)}).catch((e=>{d.success=!1,d.resultDescription=e.message,a.tG.error(509092189,a.nh.CoreDefault,d.stop())}))}else d.resultDescription="ContextId no longer exists, skipping workflow execution",a.tG.info(539883076,a.nh.CoreDefault,d.stop())}else d.resultDescription=`Workflow in type ${l.kind} is not supported`,a.tG.error(539883077,a.nh.CoreDefault,d.stop())}catch(e){d.resultDescription=`Trying to execute ${l.id} caused an exception: ${e}`,a.tG.warn(539883078,a.nh.CoreDefault,d.stop())}return!0})()?(this.pendingScopeExecutionNotificationsByWorkflow.get(r).delete(s),0===this.pendingScopeExecutionNotificationsByWorkflow.get(r).size&&this.pendingScopeExecutionNotificationsByWorkflow.delete(r)):n.delete(o)}if(0!==n.size)for(const e of Array.from(n)){const t=new i.I({resultDescription:"No pending scope notifications left, cancelling sweep timer",operationName:"LocalScopeExecutionNotification",success:!0}).start();a.tG.debug(539883079,a.nh.CoreDefault,t.stop()),this.cancelSweepTimer(e)}}onExternalWorkflowExecuted(e,t,n){const r={id:"",parentPath:[],contextId:e},o={id:t};this.onWorkflowExecuted(r,o,n,!1)}onWorkflowExecuted(e,t,n,r=!0){var o;null===(o=this.executionTrackersByWorkflowNameBySession.get(n).get(t.id))||void 0===o||o.afterWorkflowExecution(e.contextId),r&&t.kind===Ye.wC.Join&&n.getWorkflowItemStorage().onWorkflowExecuted(e,t)}}class Cn{constructor(e=500,t=!1){this.prevSeq=-1,this.bufferingTimeMs=e,this.rejectOutdatedSequenceNumbers=t}sequence(e){return new Promise(((t,n)=>{if(e<this.prevSeq){if(this.rejectOutdatedSequenceNumbers){const t=new Error(`BufferingSequencer: Item out of order. Expecting seqId > ${this.prevSeq}. Actual seqId ${e}`);return t.name=Cn.Rejected,void n(t)}this.prevSeq=-1}e!=this.prevSeq+1&&a.tG.warn(542712385,a.nh.CoreDefault,`BufferingSequencer: got out of order sequence number. Got ${e}, expected ${this.prevSeq+1}`);const r={seq:e,resolve:t};this.insertItem(r),this.runInOrder(r,!0,!1)}))}insertItem(e){if(!this.firstQueueItem)return this.firstQueueItem=e,void(this.lastQueueItem=e);let t=this.lastQueueItem,n=null;do{if(e.seq>t.seq)return e.prev=t,t.next=e,void(n?(n.prev=e,e.next=n):this.lastQueueItem=e);n=t,t=t.prev}while(t);n&&(n.prev=e),e.next=n,this.firstQueueItem=e}runInOrder(e,t,n){let r=this.prevSeq,o=!1;const s=[];for(;this.firstQueueItem;){const t=this.firstQueueItem;if(r+1!=t.seq&&(!n||t.seq>e.seq))break;r=t.seq,t.timeout&&clearTimeout(t.timeout),s.push(t),e==t&&(o=!0),this.firstQueueItem=this.firstQueueItem.next,this.firstQueueItem&&(this.firstQueueItem.prev=null)}s.length>0&&setTimeout((()=>{for(const e of s)e.resolve(e.seq)}),0),this.prevSeq=r,!o&&t&&(e.timeout=setTimeout((()=>{this.runInOrder(e,!1,!0)}),this.bufferingTimeMs))}}Cn.Rejected="SequenceItemRejected";class _n{constructor(e=500){this.bufferingTimeMs=500,this.workflowIdToSequencersMap=new Map,this.bufferingTimeMs=e}create(e){if(!e.ownerId)return null;let t=this.workflowIdToSequencersMap.get(e.ownerId);return t||(t=new Cn(this.bufferingTimeMs),this.workflowIdToSequencersMap.set(e.ownerId,t)),t}}class In{constructor(e=500,t){this.sequencerFactory=null!=t?t:new _n(e)}sequence(e){var t,n,r,o,s;return n=this,r=void 0,s=function*(){if(null==(null===(t=null==e?void 0:e.M_)||void 0===t?void 0:t.seq))return;const n=this.sequencerFactory.create(e);n&&(yield n.sequence(e.M_.seq))},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}c((s=s.apply(n,r||[])).next())}))}}class kn{constructor(e){this.annotationSequencer=null!=e?e:new In}process(e,t,n,r){const o=[];for(const r of e.ops){const s=[];if(null==r?void 0:r.items)for(const e of r.items){const n=this.annotationSequencer.sequence(e.body).then((()=>{t(r,e)}));s.push(n)}o.push(Promise.all(s).then((()=>{n(r,e.cv)})))}Promise.all(o).then((()=>r(e)))}}class An{process(e,t,n,r){for(const r of e.ops){if(null==r?void 0:r.items)for(const e of r.items)t(r,e);n(r,e.cv)}r(e)}}class En{constructor(e,t,n){this.isOrderingEnabled=e,this.orderedAnnotationResultsProcessor=null!=t?t:new kn,this.unorderedAnnotationResultsProcessor=null!=n?n:new An}process(e,t,n,r){this.isOrderingEnabled()?this.orderedAnnotationResultsProcessor.process(e,t,n,r):this.unorderedAnnotationResultsProcessor.process(e,t,n,r)}}var Rn=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};class On{constructor(e,t){this.changeGatesInitialized=!1,this.hostCallbacks=e,this.changeGateMap=t||new Map}init(){return Rn(this,void 0,void 0,(function*(){const e=[];this.hostCallbacks&&this.hostCallbacks.isChangeGateEnabled&&this.changeGateMap.forEach(((t,n)=>{e.push(this.hostCallbacks.isChangeGateEnabled(n).then((e=>{this.changeGateMap.set(n,e)})))})),yield Promise.all(e).then((()=>{this.changeGatesInitialized=!0})).catch((e=>{}))}))}isFeatureEnabled(e,t=!1,n="None"){return this.hostCallbacks&&this.hostCallbacks.isFeatureEnabled?this.hostCallbacks.isFeatureEnabled(e,n).catch((()=>Promise.resolve(t))):Promise.resolve(t)}isChangeGateEnabled(e){var t;return Rn(this,void 0,void 0,(function*(){return!this.changeGateMap||(this.changeGatesInitialized&&this.changeGateMap.has(e)?this.changeGateMap.get(e):!(!this.changeGatesInitialized&&(null===(t=this.hostCallbacks)||void 0===t?void 0:t.isChangeGateEnabled))||(yield this.hostCallbacks.isChangeGateEnabled(e)))}))}isChangeGatesInitialized(){return this.changeGatesInitialized}getChangeGateMap(){return this.changeGateMap}}var Pn=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};const Mn="CloseSessionsOnRuntimeUninit",xn="ShouldAppendClientFeatureFlights",Dn="DontSendNewTokenOnReconnect",Nn="WebSocketWorkerShouldLogEgressCount",Ln=()=>n(84639).r;class Fn{constructor(e,t,n,r){this.sessionsByDocSessionId=new Map,this.isDeltaGeneratorEnabled=!1,this.disableSyncDeltaSending=!1,this.hasBeenInitialized=!1,this.telemetryLogger=null,this.changeGateList=new Map([["SkipCheckingCachedClaimsChallenge",!0],["LogRetryMessageEvent",!0],["ImproveClientRetries",!0],["ShouldNotRetryOnSessionClosedError",!0],[Mn,!0],[xn,!0],[Dn,!0],[Nn,!0]]),this.settings={annotationsOrderingEnabled:!0,deltaOperationsEnabled:!1,defaultBatchingEnabled:!0,batchingWith20msIntervalEnabled:!0,onAnnotationsSubmittedEnabled:!1,reduceBatchOperationsEnabled:!1,batchMessagesEnabled:!1,dynamicRateControllerEnabled:!1,removeDuplicateFlights:!0,annotationDoesNotExistOnService:!0,reducedPingPongRetryEnabled:!1,maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled:!1,sendTokenFailureMessage:!0,closeSessionsOnRuntimeUninit:!1,shouldAppendClientFeatureFlights:!0,authTokenTimeoutMs:0,doNotSendNewTokenOnReconnect:!1,webSocketWorkerShouldLogEgressCount:!0},this.settingToChangeGateName={closeSessionsOnRuntimeUninit:Mn,shouldAppendClientFeatureFlights:xn,doNotSendNewTokenOnReconnect:Dn,webSocketWorkerShouldLogEgressCount:Nn},this.isDownloaderCompatible=()=>"undefined"!=typeof Array&&void 0!==Array.from&&"undefined"!=typeof URL&&void 0!==URL.createObjectURL,r&&(this.settings=r),this.workerFactory=e||(e=>e&&e===we.HttpFallback?new pe:new w(void 0,this.settings));const o=this.createDefaultSessionManagerFactory();this.sessionManagerFactory=(...e)=>(null==t?void 0:t(...e))||o(...e),this.sessionFactory=n||(e=>new Qt(e))}init(e,t,n,r){var o,c,l,u,p,g,m,y,v,w;const b=new i.I({operationName:"InitRuntime",resourceId:f(e),dimension1:this.hasBeenInitialized.toString()});b.start(),this.hasBeenInitialized=!0,this.hostCallbacks=n,this.gateUtils=new On(this.hostCallbacks,this.changeGateList),this.clientMetadata=t,this.clientMetadata&&(this.clientMetadata.runtimeVersion=Ln()),this.telemetryLogger=new h(this.hostCallbacks),this.shouldAddLogger(b)?(a.tG.addLogger(this.telemetryLogger),this.addLoggingAggregator(r)):(a.tG.clearLoggers(),a.tG.addLogger(this.telemetryLogger)),Fn.haveCalledInit=!0,this.annotationResultsProcessor=new En((()=>this.settings.annotationsOrderingEnabled)),this.inferenceServiceFactory=r.inferenceServiceFactory,b.dimension2=(0,a.OD)(s.q.info).toString();const S=[];e&&(this.defaultServiceUrl=N.convertServiceUrlToWebSocket(e),this.serviceProtocol=this.defaultServiceUrl.split(":")[0].toLowerCase()),S.push(this.gateUtils.init().then((()=>Pn(this,void 0,void 0,(function*(){yield Promise.all(Object.keys(this.settingToChangeGateName).map((e=>Pn(this,void 0,void 0,(function*(){try{const t=yield this.gateUtils.isChangeGateEnabled(this.settingToChangeGateName[e]);this.settings[e]=t}catch(t){this.settings[e]=!1}})))))}))))),S.push(this.isFeatureEnabled("AnnotationsOrderingEnabled",!0).then((e=>{this.settings.annotationsOrderingEnabled=e}))),S.push(this.isFeatureEnabled("DefaultBatchingDisabled").then((e=>{var t;(t=this.settings).defaultBatchingEnabled&&(t.defaultBatchingEnabled=!e)}))),S.push(this.isFeatureEnabled("BatchingWith20msIntervalDisabled").then((e=>{var t;(t=this.settings).batchingWith20msIntervalEnabled&&(t.batchingWith20msIntervalEnabled=!e)}))),S.push(this.isFeatureEnabled("OnAnnotationsSubmittedDisabled").then((e=>{var t;(t=this.settings).onAnnotationsSubmittedEnabled&&(t.onAnnotationsSubmittedEnabled=!e)}))),S.push(this.isFeatureEnabled("ReduceBatchOperationsEnabled").then((e=>{var t;(t=this.settings).reduceBatchOperationsEnabled||(t.reduceBatchOperationsEnabled=e)}))),S.push(this.isFeatureEnabled("BatchMessagesEnabled").then((e=>{var t;(t=this.settings).batchMessagesEnabled||(t.batchMessagesEnabled=e)}))),S.push(N.isChangeGateEnabled(this.hostCallbacks,"DynamicRateControllerEnabled").then((e=>{this.settings.dynamicRateControllerEnabled=e}))),S.push(N.isChangeGateEnabled(this.hostCallbacks,"AnnotationDoesNotExistOnService").then((e=>{this.settings.annotationDoesNotExistOnService=e}))),S.push(N.isFeatureEnabled(this.hostCallbacks,"ReducedPingPongRetryEnabled").then((e=>{var t;(t=this.settings).reducedPingPongRetryEnabled||(t.reducedPingPongRetryEnabled=e)}))),S.push(this.isFeatureEnabled("MaxNumberOfDeltaUpdateOpsPerItemPerBatch").then((e=>{var t;(t=this.settings).maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled||(t.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled=e)}))),S.push(N.isChangeGateEnabled(this.hostCallbacks,"SendTokenFailureMessage").then((e=>{this.settings.sendTokenFailureMessage=e})));const T={enableDeltas:!1,enableEarlyJoin:!1};S.push(Promise.all([this.isFeatureEnabled("DeltaOperationsEnabled").then((e=>T.enableDeltas=e)).catch((()=>T.enableDeltas=!1)),this.isFeatureEnabled("EarlyJoinCompletionEnabled").then((e=>T.enableEarlyJoin=e)).catch((()=>T.enableEarlyJoin=!1))]).then((()=>{this.localWorkflowManager=new Tn(r.modelDownloader&&this.isDownloaderCompatible()?r.modelDownloader:void 0,this.inferenceServiceFactory,T)})));const C=yn(null!==(o=t.flights)&&void 0!==o?o:"");var _;return this.isDeltaGeneratorEnabled=C.getBooleanValue("Microsoft.Office.WordOnline.AugloopDeltas",null!==(c=r.isDeltaGeneratorEnabled)&&void 0!==c&&c),this.disableSyncDeltaSending=C.getBooleanValue("Microsoft.Office.WordOnline.DisableSyncDeltaSending",null!==(l=r.disableSyncDeltaSending)&&void 0!==l&&l),this.syncDeltaTimeout=C.getIntValue("Microsoft.Office.WordOnline.SyncDeltaTimeout",r.syncDeltaTimeout),(u=this.settings).defaultBatchingEnabled&&(u.defaultBatchingEnabled=!C.getBooleanValue("DefaultBatchingDisabled",!1)),(p=this.settings).batchingWith20msIntervalEnabled&&(p.batchingWith20msIntervalEnabled=!C.getBooleanValue("BatchingWith20msIntervalDisabled",!1)),(g=this.settings).reduceBatchOperationsEnabled||(g.reduceBatchOperationsEnabled=C.getBooleanValue("ReduceBatchOperationsEnabled",!1)),(m=this.settings).batchMessagesEnabled||(m.batchMessagesEnabled=C.getBooleanValue("BatchMessagesEnabled",!1)),(y=this.settings).removeDuplicateFlights&&(y.removeDuplicateFlights=C.getBooleanValue("RemoveDuplicateFlights",!0)),(v=this.settings).reducedPingPongRetryEnabled||(v.reducedPingPongRetryEnabled=C.getBooleanValue("ReducedPingPongRetryEnabled",!1)),(w=this.settings).maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled||(w.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled=C.getBooleanValue("maxNumberOfDeltaUpdateOpsPerItemPerBatch",!1)),this.settings.authTokenTimeoutMs=C.getIntValue("AuthTokenTimeoutMs",0),b.setDataField("Flights",JSON.stringify(this.settings)),r&&r.loggableUrls&&(_=r.loggableUrls,d.push(..._)),Promise.all(S).then((()=>{this.batchOptions=r.batchOptions,!this.batchOptions&&this.settings.defaultBatchingEnabled&&(this.batchOptions={delayMs:1,maxInputSize:1e6,delayMsMax:50},this.settings.batchingWith20msIntervalEnabled&&(this.batchOptions.delayMs=20)),this.batchOptions&&!this.batchOptions.delayMsMax&&(this.batchOptions.delayMsMax=50),r&&r.networkMode&&(this.networkMode=r.networkMode,r.networkMode===we.LocalWorkflowsOnly&&(this.sessionManagerFactory=()=>new Ht)),b.dimension0=JSON.stringify(this.batchOptions),this.logOperation(b,!0)})).catch((e=>{this.logOperation(b,!1,"Error",e?e.message:"(no error)")}))}getServiceProtocol(){return this.serviceProtocol}registerLocalWorkflow(e){this.localWorkflowManager.registerLocalWorkflow(e)}flushTelemetry(e){a.tG.flushAggregators(e)}createSession(e){var t;const n=e&&e.docSessionId?e.docSessionId:Nt(),r=e&&e.documentId?e.documentId:void 0,o=this.sessionsByDocSessionId.get(n),s=new i.I({operationName:"CreateSession",resourceId:n,dimension1:this.hasBeenInitialized.toString()});if(s.start(),o&&!1===o.isClosed)throw this.logOperation(s,!1,"Error","docSessionId already exists"),new Error("docSessionId already exists");let a=e&&null!==(t=e.serviceUrl)&&void 0!==t?t:this.defaultServiceUrl;a=N.convertServiceUrlToWebSocket(a),a||((e=e||{}).networkMode=we.LocalWorkflowsOnly),!this.networkMode||void 0!==(null==e?void 0:e.networkMode)&&null!==(null==e?void 0:e.networkMode)||((e=e||{}).networkMode=this.networkMode),void 0!==(null==e?void 0:e.networkMode)&&null!==(null==e?void 0:e.networkMode)&&(null==e?void 0:e.networkMode)!==we.JSWebSockets||!this.hasHttpFallbackSession()||((e=e||{}).networkMode=we.HttpFallback);const c=Object.assign({},this.clientMetadata);if(c.docSessionId=n,r&&(c.documentId=r),e&&e.flights&&(c.flights=c.flights?c.flights+";"+e.flights:e.flights),this.settings.shouldAppendClientFeatureFlights){const e=["_acceptsClaimsChallengeMessages","_acceptsSeedingStatusChangeMessages"].join(";");c.flights=c.flights?`${c.flights};${e}`:e}this.settings.removeDuplicateFlights&&c.flights&&(c.flights=function(e){if(!e)return"";const t=new Set,n=[];for(const r of e.split(";").reverse()){const e=r.split(":")[0],o=vn.normalizeName(e);t.has(o)||(t.add(o),n.push(r))}return n.reverse().join(";")}(c.flights)),s.setDataField("Flights",c.flights||"");const l=this.sessionFactory({hostCallbacks:this.hostCallbacks,sessionManager:this.sessionManagerFactory(c,a,e),batchOptions:this.batchOptions,extensionConfigs:(null==e?void 0:e.extensionConfigs)||[],clientMetadata:c,userContext:e?e.userContext:void 0,localWorkflowManager:this.localWorkflowManager,annotationResultsProcessor:this.annotationResultsProcessor,localRegisteredWorkflows:(null==e?void 0:e.localRegisteredWorkflows)||[],enableRemoteExecutionNotification:(null==e?void 0:e.enableRemoteExecutionNotification)||!1,networkMode:null==e?void 0:e.networkMode,egress:e?e.egress:void 0,isDeltaGeneratorEnabled:this.isDeltaGeneratorEnabled,onAnnotationsSubmittedEnabled:this.settings.onAnnotationsSubmittedEnabled,disableSyncDeltaSending:this.disableSyncDeltaSending,syncDeltaTimeout:this.syncDeltaTimeout,reduceBatchOperationsEnabled:this.settings.reduceBatchOperationsEnabled,batchMessagesEnabled:this.settings.batchMessagesEnabled,annotationDoesNotExistOnServiceEnabled:this.settings.annotationDoesNotExistOnService,maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled:this.settings.maxNumberOfDeltaUpdateOpsPerItemPerBatchEnabled,gateUtils:this.gateUtils});return this.sessionsByDocSessionId.set(n,l),e&&(e.onSessionConnect&&l.setConnectCallback(e.onSessionConnect),e.onSessionDisconnect&&l.setDisconnectCallback(e.onSessionDisconnect),e.onSessionReconnect&&l.setReconnectCallback(e.onSessionReconnect),e.onSessionClose&&l.setSessionCloseCallback(e.onSessionClose),e.onServerAuthenticationStateChangeCallback&&l.setServerAuthenticationStateChangeCallback(e.onServerAuthenticationStateChangeCallback),e.onClaimsChallengeCallback&&l.setClaimsChallengeCallback(e.onClaimsChallengeCallback),e.onSeedingStatusChangeCallback&&l.setSeedingStatusChangeCallback(e.onSeedingStatusChangeCallback)),this.logOperation(s,!0),l.initialize?l.initialize():Promise.resolve(l)}getSessionManagerFactory(){return this.sessionManagerFactory}shouldAddLogger(e){if(Fn.haveCalledInit){const t=new Error("Runtime already initialized");return e.dimension3=t.stack,e.dimension2=(0,a.OD)(s.q.info).toString(),this.logOperation(e,!1,"Error",t.message),!1}return!0}createDefaultSessionManagerFactory(){return(e,t,n)=>{if(n&&n.networkMode==we.LocalWorkflowsOnly)return new Ht;const r=new Zt,o=new Kt;let s=()=>{a.tG.error(573321615,a.nh.CoreDefault,"Unexpectedly not set sendMessage")};const i=new en((()=>o),e,r,((e,t,n)=>{s(e,t,n)}),{requestAuthToken:this.hostCallbacks.requestAuthToken,overrideSessionInitMessage:this.hostCallbacks.overrideSessionInitMessage,enableRemoteExecutionNotification:(null==n?void 0:n.enableRemoteExecutionNotification)||!1,sendTokenFailureMessageChangeGate:this.settings.sendTokenFailureMessage,authTokenTimeoutMs:this.settings.authTokenTimeoutMs,dontSendTokenOnReconnectChangeGate:this.settings.doNotSendNewTokenOnReconnect}),c=new De(N.convertServiceUrlToWebSocket(t),o,this.workerFactory,i,e,r,this.settings,this.gateUtils,null==n?void 0:n.networkMode);return s=c.sendMessage.bind(c),c.on("disconnect",(()=>r.clearRefreshTimeouts())),c.on("connect",((e,t,n,r)=>{e&&this.hostCallbacks.setSessionData&&this.hostCallbacks.setSessionData(t,n,r);const o=t.substring(t.lastIndexOf("/")+1);this.telemetryLogger.setServerSessionKey(o)})),c}}isFeatureEnabled(e,t=!1,n="None"){return N.isFeatureEnabled(this.hostCallbacks,e,t,n)}hasHttpFallbackSession(){let e=!1;return this.sessionsByDocSessionId.forEach((t=>{t.isHttpFallback()&&(e=!0)})),e}logOperation(e,t,n,r){e.stop(),e.success=t,e.resultSignature=n,e.resultDescription=r,a.tG.info(573321622,a.nh.CoreDefault,e)}addLoggingAggregator(e){var t,n,r,o;"Dogfood"!==this.clientMetadata.releaseAudienceGroup&&(a.tG.addAggregator(p("Operation","operationName",["ExecuteBatch","ReduceBatchOperations","ProcessResponse","LocalDeltaUpdate","ApplyFormattedTextTileDeltaForLocalWorkflows","ApplyTextTileDeltaForLocalWorkflows","FindRangeForDelta","RunModelForInferencing","GetResource","CreateTextTileDeltaFromItem","NetworkEgressControl","HttpEgress","LongPollNoOp","NetworkRateControllerAbandonedSyncMessage","NetworkRateControllerEgress","NetworkRateControllerQueueItem","NetworkRateControllerOnRateLimitResponse","NetworkRateControllerOnRateLimitError","NetworkRateControllerRateLimitsSet"],null!==(t=e.telemetryAggregationIntervalSec)&&void 0!==t?t:30)),a.tG.addAggregator(p("Operation","operationName",["ExecuteWorkflow","ExecuteLambda","EarlyJoinCompletion","OnLongPollMessage","OnAnnotationResultsEgress"],null!==(n=e.telemetryAggregationIntervalSec)&&void 0!==n?n:60)),a.tG.addAggregator(p("Operation","operationName",["LocalScopeExecutionNotification","RunLocalWorkflows","EarlyJoinCompletion","SetAnnotations","WIS.addItemOnContextIdList","WIS.setScopeItem"],null!==(r=e.telemetryAggregationIntervalSec)&&void 0!==r?r:120)),a.tG.addAggregator(p("SessionHealth","sessionHealthEventName",["SendMessage","ProcessMessage"],null!==(o=e.telemetryAggregationIntervalSec)&&void 0!==o?o:60)))}uninitialize(){this.settings.closeSessionsOnRuntimeUninit&&(this.sessionsByDocSessionId.forEach((e=>{e.close()})),this.sessionsByDocSessionId.clear()),this.flushTelemetry(!0),this.hostCallbacks=null,this.hasBeenInitialized=!1,this.telemetryLogger=null,Fn.haveCalledInit=!1,a.tG.clearAggregators(),a.tG.clearLoggers()}}const Bn=new Fn,Wn={category:_.Schema,schema:{name:"Exception",path:"message-schema.proto"}},Un=(_.Schema,(e,t=!1)=>{if(null==e)return"Invalid message passed";if(null==e.payload)return`${We[We.NoOutput]}: Payload is null`;if(null==e.payload.exceptionType)return"Payload is not an exception";{let n=We[e.payload.exceptionType];return n+=e.payload.message?`: ${e.payload.message}`:": No description",n+=t&&e.payload.data?`\n${e.payload.data.toString()}`:"",n}}),Gn=(e,t)=>{if(null==e)throw new Error("Cannot set exception on null message");e.payload=t,e.payloadSchema=Wn,e.messageType=Be.Exception};var Vn,qn;!function(e){let t,n,r,o,s,i;!function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.Slide=2]="Slide"}(t=e.TileType||(e.TileType={})),function(e){e[e.Generic=0]="Generic",e[e.Title=1]="Title",e[e.SmartArt=2]="SmartArt",e[e.TableCell=3]="TableCell",e[e.TextBox=4]="TextBox",e[e.Notes=5]="Notes"}(n=e.TextTileType||(e.TextTileType={})),function(e){e[e.Undefined=0]="Undefined",e[e.Word=1]="Word",e[e.Phrase=2]="Phrase",e[e.Sentence=3]="Sentence",e[e.Paragraph=4]="Paragraph"}(r=e.TextTileElementUnit||(e.TextTileElementUnit={})),function(e){e[e.Undefined=0]="Undefined",e[e.Bullet=1]="Bullet",e[e.Numbered=2]="Numbered"}(o=e.ListType||(e.ListType={})),function(e){e[e.Undefined=0]="Undefined",e[e.AlphaLcParenBoth=1]="AlphaLcParenBoth",e[e.AlphaUcParenBoth=2]="AlphaUcParenBoth",e[e.AlphaLcParenR=3]="AlphaLcParenR",e[e.AlphaUcParenR=4]="AlphaUcParenR",e[e.AlphaLcPeriod=5]="AlphaLcPeriod",e[e.AlphaUcPeriod=6]="AlphaUcPeriod",e[e.ArabicParenBoth=7]="ArabicParenBoth",e[e.ArabicParenR=8]="ArabicParenR",e[e.ArabicPeriod=9]="ArabicPeriod",e[e.ArabicPlain=10]="ArabicPlain",e[e.RomanLcParenBoth=11]="RomanLcParenBoth",e[e.RomanUcParenBoth=12]="RomanUcParenBoth",e[e.RomanLcParenR=13]="RomanLcParenR",e[e.RomanUcParenR=14]="RomanUcParenR",e[e.RomanLcPeriod=15]="RomanLcPeriod",e[e.RomanUcPeriod=16]="RomanUcPeriod",e[e.CircleNumDbPlain=17]="CircleNumDbPlain",e[e.CircleNumWdBlackPlain=18]="CircleNumWdBlackPlain",e[e.CircleNumWdWhitePlain=19]="CircleNumWdWhitePlain",e[e.ArabicDbPeriod=20]="ArabicDbPeriod",e[e.ArabicDbPlain=21]="ArabicDbPlain",e[e.Ea1ChsPeriod=22]="Ea1ChsPeriod",e[e.Ea1ChsPlain=23]="Ea1ChsPlain",e[e.Ea1ChtPeriod=24]="Ea1ChtPeriod",e[e.Ea1ChtPlain=25]="Ea1ChtPlain",e[e.Ea1JpnChsDbPeriod=26]="Ea1JpnChsDbPeriod",e[e.Ea1JpnKorPlain=27]="Ea1JpnKorPlain",e[e.Ea1JpnKorPeriod=28]="Ea1JpnKorPeriod",e[e.Arabic1Minus=29]="Arabic1Minus",e[e.Arabic2Minus=30]="Arabic2Minus",e[e.Hebrew2Minus=31]="Hebrew2Minus",e[e.ThaiAlphaPeriod=32]="ThaiAlphaPeriod",e[e.ThaiAlphaParenR=33]="ThaiAlphaParenR",e[e.ThaiAlphaParenBoth=34]="ThaiAlphaParenBoth",e[e.ThaiNumPeriod=35]="ThaiNumPeriod",e[e.ThaiNumParenR=36]="ThaiNumParenR",e[e.ThaiNumParenBoth=37]="ThaiNumParenBoth",e[e.HindiAlphaPeriod=38]="HindiAlphaPeriod",e[e.HindiNumPeriod=39]="HindiNumPeriod",e[e.HindiNumParenR=40]="HindiNumParenR",e[e.HindiAlpha1Period=41]="HindiAlpha1Period"}(s=e.ListNumeration||(e.ListNumeration={})),function(e){e[e.Undefined=0]="Undefined",e[e.Delete=1]="Delete",e[e.Add=2]="Add",e[e.Change=3]="Change",e[e.Refresh=4]="Refresh"}(i=e.TextTileEventType||(e.TextTileEventType={}))}(Vn||(Vn={})),function(e){let t;!function(e){e[e.Undefined=0]="Undefined",e[e.Delete=1]="Delete",e[e.Add=2]="Add",e[e.Change=3]="Change",e[e.Refresh=4]="Refresh"}(t=e.SlideTileEventType||(e.SlideTileEventType={}))}(qn||(qn={}));class Hn{constructor(){this.cache=new Map}setReduceTimer(e,t,n,r=500,o=()=>!1,s=5e3){this.cache.has(e)||this.cache.set(e,new Map);const i=this.cache.get(e);i.has(t)&&clearTimeout(i.get(t).timer);const a=()=>{const a=i.get(t),c=Date.now()-a.start;o()&&c<s?a.timer=setTimeout(a.timerCallback,Math.min(r,s-c)):(i.size>1?i.delete(t):this.cache.delete(e),n())};i.set(t,{start:Date.now(),timerCallback:a,timer:setTimeout(a,r)})}clear(e,t){this.cache.forEach(((n,r)=>{e&&e!==r||n.forEach(((e,n)=>{t&&t!==n||clearTimeout(e.timer)}))})),this.cache.clear()}}class jn{constructor(e=33e5){this.tokenCache=new Map,this.requestMap=new Map,this.requestRecordMap=new Map,this.tokenExpirationMs=e}updateAuthToken(e,t){const n=JSON.stringify(t);let r=this.requestRecordMap.get(n);return(void 0===r||this.isTokenExpired(r))&&(r={requestPromise:e.requestAuthToken(t).then((e=>{if(!e||!e.Token)throw new Error(`No token available for request ${n}`);this.tokenCache.set(n,e.Token)})),requestTime:N.getCurrentTimeMs()},this.requestRecordMap.set(n,r)),r.requestPromise}getAuthTokenEntries(e,t){return Array.from(this.tokenCache.keys()).map((e=>{let t=this.requestMap.get(e);return void 0===t&&(t=JSON.parse(e),this.requestMap.set(e,t)),{requestKey:e,request:t}})).filter((({request:e})=>!t||e.DocId===t)).map((({requestKey:t,request:n})=>(this.isTokenExpired(this.requestRecordMap.get(t))&&this.updateAuthToken(e,n),{ticket:n.Tickets[0],token:this.tokenCache.get(t)})))}isTokenExpired(e){return N.getCurrentTimeMs()>e.requestTime+this.tokenExpirationMs}}let zn;const $n=()=>{zn=new jn};$n();const Yn=(e,t,n,r,o,s,i,c,l,u)=>{const d={method:"POST",headers:{"content-type":"application/json","X-CorrelationId":o},body:JSON.stringify({payload:t.payload,payloadSchema:n,requestedSchema:r,clientMetadata:s,tokens:zn.getAuthTokenEntries(i,l.docId)})};se(e,d,((d,p)=>{d?u(new Error(`Fetch error in remote lambda request to ${e}: ${d}`)):401===p.status?c>0?(a.tG.info(572838109,a.nh.CoreDefault,"Auth token required for remote lambda request"),p.json().then((e=>zn.updateAuthToken(i,{Tickets:[e],DocId:l.docId}))).then((()=>{Yn(e,t,n,r,o,s,i,c-1,l,u)})).catch((e=>{u({exceptionType:We.Authentication,message:e.message})}))):u({exceptionType:We.Authentication,message:"Remote lambda request retry with authentication token failed"}):p.ok?p.json().then((e=>{if(Array.isArray(e))if(e.length>0){let n=0;for(const r of e)t.moreResults=++n<e.length,u(null,r)}else u(new Error("No output"));else u(new Error("Did not receive a valid response for remote lambda request"))})).catch((e=>{u({exceptionType:We.LambdaThrow,message:e.message})})):u(new Error(`Remote lambda request failed with status ${p.status}`))}))},Jn=(e,t,n,r,o,s,i,a,c)=>{Array.isArray(a.authTickets)?zn.updateAuthToken(i,{Tickets:a.authTickets,DocId:a.docId}).then((()=>{Yn(e,t,n,r,o.id,s,i,1,a,c)})).catch((e=>{c({exceptionType:We.Authentication,message:e.message})})):Yn(e,t,n,r,o.id,s,i,1,a,c)};class Qn{constructor(){this.hasBeenOpened=!1,this.hadEgressError=!1,this.lastEgressTime=0,this.lastPongTime=0,this.remainingPingFailures=3,this.egressMessageCount=0,this.egressByteCount=0,this.isClosing=!1,this.pendingEgress=[]}init(e,t,n,r){this.ws=new m(e),this.logOp=new i.I({operationName:Qn.className,success:!0,dimension1:"V1"}).start(),this.egressTimer=Date.now(),this.egressMessageCountOp=new i.I({operationName:"WSEgressMessageCount",success:!0,dimension1:"V1"}),this.egressByteCountOp=new i.I({operationName:"WSEgressByteOrderOfMagnitude",success:!0,dimension1:"V1"}),this.ingressByteCountOp=new i.I({operationName:"WSIngressByteOrderOfMagnitude",success:!0,dimension1:"V1"});const o=e=>{this.logPingLatencyOp&&(this.logPingLatencyOp.success=e,a.tG.info(507789790,a.nh.CoreDefault,this.logPingLatencyOp.stop()),this.logPingLatencyOp=void 0)};this.ws.addEventListener("open",(e=>{n(),Qn.logCountLimiter.log((()=>{this.logOp.resourceId="OnOpen",this.logOp.resultDescription="",this.logOp.success=!0,this.logOp.dimension0=this.pendingEgress.length.toString(),a.tG.info(507789789,a.nh.CoreDefault,this.logOp.stop())})),this.hasBeenOpened=!0,this.pendingEgress.forEach((e=>{this.egress({obj:e})})),this.pendingEgress=[],this.pingInterval=setInterval((()=>{this.logPingLatencyOp&&(--this.remainingPingFailures,o(!1)),this.remainingPingFailures>0&&this.hasBeenOpened&&this.lastPongTime<this.lastEgressTime&&(this.logPingLatencyOp=new i.I({operationName:"Ping",success:!0,dimension0:this.ws.bufferedAmount>=0?this.ws.bufferedAmount.toString().length.toString():void 0,dimension1:"V1"}).start(),this.ws.send(Qn.pingPongMessage,(e=>{e&&(--this.remainingPingFailures,o(!1))})))}),3e4)})),this.ws.addEventListener("message",(e=>{this.logPingLatencyOp&&"string"==typeof e.data&&1===e.data.length&&e.data[0]===Qn.pingPongMessage?(o(!0),this.lastPongTime=Date.now()):(this.logIngressCount(e.data),t(e.data))})),this.ws.addEventListener("error",(e=>{this.errorMessage=e.message,Qn.logCountLimiter.log((()=>{this.logOp.resourceId="OnError",this.logOp.resultDescription=this.errorMessage,this.logOp.success=!1,a.tG.info(507789788,a.nh.CoreDefault,this.logOp.stop())})),this.ws.close()})),this.ws.addEventListener("close",(e=>{Qn.logCountLimiter.log((()=>{this.logOp.resourceId="OnClose",this.logOp.resultDescription=e?`code: ${e.code}. reason: ${e.reason}`:"",this.logOp.success=!0,a.tG.info(507789787,a.nh.CoreDefault,this.logOp.stop())})),this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=void 0),r(this.errorMessage),this.isClosing=!1}))}egress(e){const t=e.obj;this.logEgressCount(t instanceof ArrayBuffer||t instanceof Uint8Array?t.byteLength:t.length),this.lastEgressTime=Date.now(),this.hasBeenOpened?this.ws.send(t,(e=>{e&&!this.hadEgressError&&(this.hadEgressError=!0,Qn.logCountLimiter.log((()=>{this.logOp.resourceId="OnFirstEgressError",this.logOp.resultDescription=e.message,this.logOp.success=!1,a.tG.info(507789786,a.nh.CoreDefault,this.logOp.stop())})))})):this.pendingEgress.push(t)}close(){this.isClosing||(this.isClosing=!0,this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=void 0),this.ws.close())}logEgressCount(e){const t=Date.now(),n=t-this.egressTimer;n>1e3&&(this.egressMessageCount>50&&(this.egressMessageCountOp.start(),this.egressMessageCountOp.resultDescription="Egress message count: "+this.egressMessageCount.toString()+", Buffered amount: "+(this.ws.bufferedAmount>=0?this.ws.bufferedAmount.toString():"-")+", Time elapsed: "+n.toString(),a.tG.info(507789785,a.nh.CoreDefault,this.egressMessageCountOp.stop())),this.egressByteCount>1e5&&(this.egressByteCountOp.start(),this.egressByteCountOp.dimension2=this.egressByteCount.toString().length.toString(),this.egressMessageCountOp.resultDescription="Buffered amount: "+(this.ws.bufferedAmount>=0?this.ws.bufferedAmount.toString():"-")+", Time elapsed: "+n.toString(),a.tG.info(507789784,a.nh.CoreDefault,this.egressByteCountOp.stop())),this.egressTimer=t,this.egressMessageCount=0,this.egressByteCount=0),this.egressMessageCount++,this.egressByteCount+=null!=e?e:0}logIngressCount(e){const t=e.length;t>1e5&&(this.ingressByteCountOp.start(),this.ingressByteCountOp.dimension2=t.toString().length.toString(),a.tG.info(507789783,a.nh.CoreDefault,this.ingressByteCountOp.stop()))}}Qn.className="WebSocketWorker",Qn.logCountLimiter=new L(Qn.className),Qn.pingPongMessage="~";class Kn{constructor(e,t,n,r,o,s){this.requestId=e,this.correlationId=t,this.schemaName=n,this.data=r,this.callback=o,this.requestTimeoutInMs=s,this.ended=!1,this.startTime=0}startRequest(){this.startTime=N.getCurrentTimeMs()}getMsUntilTimeout(){const e=N.getCurrentTimeMs()-this.startTime;return this.requestTimeoutInMs-e}endRequest(e){this.ended||(this.invokeCallback(null,e,!0),this.ended=!0)}addResponseData(e){this.invokeCallback(e,null,!1)}invokeCallback(e,t,n){new Promise((()=>this.callback(e,t,n))).catch((e=>{}))}}let Xn;const Zn=()=>{Xn=new jn};Zn();const er=new class{constructor(e,t,n){this.requestCounter=0,this.activeRequests=[],this.pendingRequests=[],this.requestTimeoutInMs=e,this.workerFactory=t,this.maxActiveRequests=n}testConnection(e,t){let n=!1;const r=new i.I({cv:(new b).toString(),operationName:"WebSocketTest",resourceId:f(e),success:!0}).start();return new Promise((o=>{const s=N.createHealthCheckRequest(t);e?this.addRequest(e,s,r.cv,"HealthCheckRequest",((e,t,s)=>{t&&(r.success=!1,r.resultSignature="Error",r.resultDescription=t.message||t),e&&"OK"===e.status&&(n=!0),s&&(r.success&&!n&&(r.success=!1,r.resultSignature="NoResponseData"),a.tG.info(556617949,a.nh.CoreDefault,r.stop()),o(r.success))})):(r.success=!1,r.resultSignature="EmptyUrl",a.tG.info(557641870,a.nh.CoreDefault,r.stop()),o(r.success))}))}addRequest(e,t,n,r,o){const s=(this.requestCounter++).toString(),i=new Kn(s,n,r,t,o,this.requestTimeoutInMs);this.getWorker(e),this.pendingRequests.push(i),this.egressPendingRequests()}egressPendingRequests(){for(;this.pendingRequests.length>0&&this.activeRequests.length<this.maxActiveRequests;){const e=this.pendingRequests.shift();if(this.activeRequests.push(e),1===this.activeRequests.length){const t=e.getMsUntilTimeout();setTimeout(this.onTimeout.bind(this),t)}e.startRequest(),this.worker&&this.worker.egress({obj:this.createRequestMessage(e.data,e.requestId,e.correlationId)})}}createRequestMessage(e,t,n){return JSON.stringify({correlationId:n,requestId:t,body:e})}onTimeout(){for(;this.activeRequests.length>0;){const e=this.activeRequests[0],t=e.getMsUntilTimeout();if(!(t<=0))return void setTimeout(this.onTimeout.bind(this),t);{const t=new Error("Request timed out");e.endRequest(t),this.activeRequests.shift(),this.egressPendingRequests()}}}onMessage(e){try{const t=JSON.parse(e);for(let e=0;e<this.activeRequests.length;e++){const n=this.activeRequests[e];if(n.requestId===t.requestId){t.end?(this.activeRequests.splice(e,1),n.endRequest(t.error),this.egressPendingRequests()):t.body&&n.addResponseData(t.body);break}}}catch(e){a.tG.error(557641871,a.nh.CoreDefault,e)}}onClose(e){const t=new Error(`Connection closed: ${e}`);for(const e of this.activeRequests)e.endRequest(t);this.activeRequests=[];for(const e of this.pendingRequests)e.endRequest(t);this.pendingRequests=[],this.worker=void 0}getWorker(e){return this.worker||(this.worker=this.workerFactory(),this.worker.init(e,this.onMessage.bind(this),(()=>{}),this.onClose.bind(this))),this.worker}}(3e4,(()=>new Qn),50),tr=(e,t,n,r,o,s,i,c,l,u)=>{const d={payload:t.payload,payloadSchema:n,requestedSchema:r,clientMetadata:s,tokens:Xn.getAuthTokenEntries(i,l.docId)};let p="";r&&r.schema&&(p=r.schema.name);let f=!1;er.addRequest(e,d,o,p,((d,p,h)=>{if(!f)if(f=!0,null!=p)if(p.exceptionType===We.Authentication)try{const d=JSON.parse(p.data);c>0?(a.tG.info(572838108,a.nh.CoreDefault,"Auth token required for remote lambda WebSocket request"),Xn.updateAuthToken(i,{Tickets:[d],DocId:l.docId}).then((()=>{tr(e,t,n,r,o,s,i,c-1,l,u)})).catch((e=>{u({exceptionType:We.Authentication,message:e.message})}))):u({exceptionType:We.Authentication,message:"Remote lambda request retry with authentication token failed"})}catch(e){u({exceptionType:We.Authentication,message:e.message})}else u(new Error(`Error in remote lambda WebSocket request to ${e}: ${p}`));else t.moreResults=!1,u(null,d)}))},nr=(e,t,n,r,o,s,i,a,c)=>{Array.isArray(a.authTickets)?Xn.updateAuthToken(i,{Tickets:a.authTickets,DocId:a.docId}).then((()=>{tr(e,t,n,r,o.id,s,i,1,a,c)})).catch((e=>{c({exceptionType:We.Authentication,message:e.message})})):tr(e,t,n,r,o.id,s,i,1,a,c)};class rr{constructor(){this.cache=new Map,this.bucketSizes=new Map}setBucketSize(e,t){this.bucketSizes.set(e,t)}setResult(e,t,n){if(!t.primary)return;let r=this.cache.get(e);r||(r=new Map,this.cache.set(e,r));let o=r.get(t.primary);if(o||(o=t.secondary?new Map:[],r.set(t.primary,o)),t.secondary)o.set(t.secondary,n);else{const t=o;t.length==this.getBucketSize(e)&&t.shift(),t.push(n)}}getResults(e,t){const n=this.cache.get(e);if(n){const e=n.get(t.primary);if(e){if(!t.secondary)return e;const n=Array.from(e.values());if(n.length>0)return n}}return[]}clear(e,t){t?this.cache.forEach(((n,r)=>{if(!e||e===r)if(t.secondary){const e=n.get(t.primary);e&&e.delete(t.secondary)}else n.delete(t.primary)})):e?this.cache.delete(e):this.cache.clear()}getBucketSize(e){return this.bucketSizes.get(e)||10}}var or,sr;!function(e){e[e.Unknown=0]="Unknown",e[e.Local=1]="Local",e[e.Custom=2]="Custom",e[e.Remote=3]="Remote",e[e.BatchedRemote=4]="BatchedRemote"}(or||(or={}));class ir{constructor(){this.throttleInfoMap=new Map}execute(e,t,n){if(t.throttleSettings.shouldBeThrottled&&t.throttleSettings.throttlingInterval>0){const r=this.getWorkflowThrottleInfo(t.name);if(null==r.currentTileId)r.currentTileId=e,r.timeOfPreviousStartedEvent=N.getCurrentTimeMs(),n();else if(r.currentTileId===e){const e=N.getCurrentTimeMs(),o=this.delayTime(r,e,t.throttleSettings.throttlingInterval);o>0?(r.latestCallback=n,null==r.lastTimeout&&(r.lastTimeout=setTimeout((()=>{const e=this.getWorkflowThrottleInfo(t.name);e.lastTimeout=void 0,e.timeOfPreviousStartedEvent=N.getCurrentTimeMs(),e.latestCallback()}),o))):(r.timeOfPreviousStartedEvent=e,n())}else null!=r.lastTimeout&&(clearTimeout(r.lastTimeout),r.latestCallback(),r.lastTimeout=void 0),r.currentTileId=e,r.timeOfPreviousStartedEvent=N.getCurrentTimeMs(),n()}else n()}delayTime(e,t,n){const r=t-e.timeOfPreviousStartedEvent;return Math.max(n-r,0)}getWorkflowThrottleInfo(e){let t=this.throttleInfoMap.get(e);return t||(t={currentTileId:void 0,timeOfPreviousStartedEvent:-1,latestCallback:()=>{},lastTimeout:void 0},this.throttleInfoMap.set(e,t)),t}}!function(e){e[e.Restricted=0]="Restricted",e[e.Unrestricted=1]="Unrestricted",e[e.Suppressed=2]="Suppressed"}(sr||(sr={}));class ar{constructor(){this.canaryTextTileEventSubmittedByDocSessionId=new Set,this.stateByDocSessionId=new Map,this.executionQueueByDocSessionId=new Map,this.executionCountByDocSessionId=new Map}getOutputSchema(){return this.lambdas[this.lambdas.length-1].outputSchema}scheduleExecution(e,t){const n=this.docSessionIdExtractor?this.docSessionIdExtractor(e):void 0,r=this.getStateForDocSessionId(n);if(r===sr.Restricted){const e=this.getExecutionQueueForDocSessionId(n);e.push(t),1===e.length&&t()}else r===sr.Unrestricted?t():sr.Suppressed}onStart(e){this.incrementExecutionCountForDocSessionId(e)}onFinish(e,t){if(this.decrementExecutionCountForDocSessionId(e),t===We.Authentication)this.stateByDocSessionId.set(e,sr.Suppressed),this.executionQueueByDocSessionId.delete(e);else if(this.stateByDocSessionId.get(e)===sr.Restricted){const n=this.getExecutionQueueForDocSessionId(e);if(n.shift(),void 0===t){this.stateByDocSessionId.set(e,sr.Unrestricted),this.executionQueueByDocSessionId.delete(e);for(const e of n)e()}else n.length>0&&(0,n[0])()}}onRefresh(e){this.stateByDocSessionId=new Map,this.triggerOnRefresh&&(e?(this.executionQueueByDocSessionId.delete(e),this.executionCountByDocSessionId.delete(e)):(this.executionQueueByDocSessionId=new Map,this.executionCountByDocSessionId=new Map)),this.canaryTextTileEventSubmittedByDocSessionId.delete(e)}getStateForDocSessionId(e){let t=this.stateByDocSessionId.get(e);return void 0===t&&(t=ar.executionQueuesEnabled?sr.Restricted:sr.Unrestricted,this.stateByDocSessionId.set(e,t)),t}getExecutionQueueForDocSessionId(e){let t=this.executionQueueByDocSessionId.get(e);return void 0===t&&(t=[],this.executionQueueByDocSessionId.set(e,t)),t}incrementExecutionCountForDocSessionId(e){const t=this.executionCountByDocSessionId.get(e)||0;this.executionCountByDocSessionId.set(e,t+1)}decrementExecutionCountForDocSessionId(e){const t=this.executionCountByDocSessionId.get(e)||0;t<=1?this.executionCountByDocSessionId.delete(e):this.executionCountByDocSessionId.set(e,t-1)}}ar.executionQueuesEnabled=!0;const cr=e=>({category:_.Schema,schema:{name:e}}),lr="Tiling.TextTileEvent",ur="ClpSlideTile",dr=(e,t)=>e===lr&&t&&t.type==Vn.TextTileEventType.Refresh,pr=(e,t)=>e===ur&&t&&t.eventType==qn.SlideTileEventType.Refresh,fr=(e,t)=>dr(e,t)||pr(e,t),hr=(e,t)=>{var n,r;return e===lr?null===(r=null===(n=t.tile)||void 0===n?void 0:n.metadata)||void 0===r?void 0:r.docSessionId:e===ur?t.docId:void 0},gr=new class{constructor(){this.inputSchemasToWorkflows=new Map,this.inputSchemasToReduceWorkflows=new Map,this.reduceWorkflowsGroupingKeyExtractors=new Map,this.defaultWorkflowOptions={canProduceNullResult:!1,shouldSendResultsToHost:!0,enabledByDefault:!1,throttleSettings:{shouldBeThrottled:!1},triggerOnRefresh:!1},this.resultCache=new rr,this.reduceTimerCache=new Hn,this.lookupTableCache=new Map,this.throttling=new ir,this.lastTileRefreshSeq=-1,this.lastTileRefreshSeqByDocSessionId=new Map,this.tileRefreshByDocSessionIdEnabled=!0}init(e,t,n){const r=new i.I({operationName:"InitRuntimeALv1",resourceId:f(e)});r.start(),this.clientMetadata=t,this.clientMetadata&&(this.clientMetadata.runtimeVersion=Ln()),this.hostCallbacks=n;const o=[];return o.push(this.isFeatureEnabled("DisableWebSocket").then((n=>!n&&(!(["Outlook Mac","Outlook Win32","PowerPoint Mac","PowerPoint Web","PowerPoint Win32","Word Mac","Word Win32"].indexOf(`${t.appName} ${t.appPlatform}`)>=0)||((e,t)=>er.testConnection(e,t))(N.convertServiceUrlToWebSocket(e),this.clientMetadata)))).then((t=>{e&&(this.serviceUrl=t?N.convertServiceUrlToWebSocket(e):e,this.executeRemoteLambda=t?nr:Jn,this.clearRemoteLambdaTokenCache=t?Zn:$n,this.serviceProtocol=this.serviceUrl.split(":")[0].toLowerCase())}))),o.push(this.isFeatureEnabled("WorkflowQueuesDisabled").then((e=>{ar.executionQueuesEnabled=!e}))),o.push(this.isFeatureEnabled("TileRefreshByDocSessionIdDisabled").then((e=>{this.tileRefreshByDocSessionIdEnabled=!e}))),Promise.all(o).then((()=>{this.logOperation(r,!0)})).catch((e=>{this.logOperation(r,!1,"Error",e?e.message:"(no error)")}))}getServiceProtocol(){return this.serviceProtocol}registerSchemas(e,t){return Promise.resolve()}registerSimpleLocalWorkflow(e,t,n=this.defaultWorkflowOptions){return t.source=t.source||or.Custom,this.registerHardcodedWorkflow(e,[t],this.inputSchemasToWorkflows,n)}registerSimpleRemoteWorkflow(e,t,n,r,o=this.defaultWorkflowOptions){const s=[];return t&&(t.source=or.Custom,s.push(t)),n.source=n.func?or.Custom:or.Remote,s.push(n),r&&(r.source=or.Custom,s.push(r)),this.registerHardcodedWorkflow(e,s,this.inputSchemasToWorkflows,o)}registerMultipleLambdasWorkflow(e,t,n=this.defaultWorkflowOptions){return this.registerHardcodedWorkflow(e,t,this.inputSchemasToWorkflows,n)}registerReduceWorkflow(e,t,n,r=10,o=this.defaultWorkflowOptions){return this.reduceWorkflowsGroupingKeyExtractors.set(t.inputSchema,n),this.resultCache.setBucketSize(t.inputSchema,r),t.source=t.source||or.Custom,this.registerHardcodedWorkflow(e,[t],this.inputSchemasToReduceWorkflows,o)}registerMultipleLambdasReduceWorkflow(e,t,n,r=10,o=this.defaultWorkflowOptions){return this.reduceWorkflowsGroupingKeyExtractors.set(t[0].inputSchema,n),this.resultCache.setBucketSize(t[0].inputSchema,r),this.registerHardcodedWorkflow(e,t,this.inputSchemasToReduceWorkflows,o)}submit(e,t,n){this.submitToWorkflows(e,t,n,this.inputSchemasToWorkflows)}getGroupingKey(e,t,n){const r=this.reduceWorkflowsGroupingKeyExtractors.get(n);if(null==r)throw new Error("Reduce workflow does not have a grouping extractor");return r(t,e)}submitToWorkflows(e,t,n,r=this.inputSchemasToWorkflows){if(!this.hostCallbacks)return;let o;o=n?b.fromString(n):new b,this.handleTileRefresh(e,t,o);const s=r.get(e)||[];for(const n of s)fr(e,t)&&!n.triggerOnRefresh||(n.useCanaryTextTile&&e===lr&&!n.canaryTextTileEventSubmittedByDocSessionId.has(hr(e,t))&&(this.submitToWorkflow(lr,{type:(i=t).type,tile:{metadata:{docSessionId:i.tile.metadata.docSessionId,docId:i.tile.metadata.docId,seqnoCLPRefresh:i.tile.metadata.seqnoCLPRefresh,tileId:"A56B3127DBDFD0D6"},elements:[{text:"B91153AE828B4E48"}]}},o,n,r),n.canaryTextTileEventSubmittedByDocSessionId.add(hr(e,t))),this.submitToWorkflow(e,t,o,n,r));var i}submitToWorkflow(e,t,n,r,o){const s={messageType:Be.Input,correlationVector:n.newChild(),payload:t,payloadSchema:cr(r.lambdas[0].inputSchema),clientMetadata:this.clientMetadata},c=new i.I({cv:s.correlationVector.toString(),operationName:"ExecuteWorkflow",resourceId:r.name});c.setClientMetadata(this.clientMetadata),c.start(),r.scheduleExecution(t,(()=>{try{if(s.payload&&s.payload.tile&&s.payload.tile.metadata&&s.payload.tile.metadata.tileId){const n=s.payload.tile.metadata.tileId;this.throttling.execute(n,r,(()=>this.executeWorkflow(c,s,t,r,e,o)))}else this.executeWorkflow(c,s,t,r,e,o)}catch(e){c.success=!1,c.resultSignature="ExecuteException",c.resultDescription=e?e.message:"(no error)",a.tG.error(559290447,a.nh.CoreDefault,c.stop())}}))}handleTileRefresh(e,t,n){if(!fr(e,t))return;const r=this.tileRefreshByDocSessionIdEnabled?hr(e,t):void 0,o=((e,t)=>{var n,r;return dr(e,t)?null===(r=null===(n=t.tile)||void 0===n?void 0:n.metadata)||void 0===r?void 0:r.seqnoCLPRefresh:(pr(e,t),-1)})(e,t);if(this.tileRefreshByDocSessionIdEnabled){const e=this.lastTileRefreshSeqByDocSessionId.get(r);if(e>=0&&o<=e)return}else if(o<=this.lastTileRefreshSeq)return;const s=new i.I({cv:n.toString(),operationName:"TileRefresh",resultDescription:"",success:!0});if(s.start(),this.tileRefreshByDocSessionIdEnabled&&!r)return s.success=!1,s.resultDescription="NoDocSessionId",void a.tG.info(559290448,a.nh.CoreDefault,s.stop());this.inputSchemasToReduceWorkflows.forEach(((e,t)=>{e.some((e=>e.triggerOnRefresh))&&(this.tileRefreshByDocSessionIdEnabled?(this.resultCache.clear(t,{primary:r}),this.resultCache.clear(this.getForcedDocLevelSchema(t),{primary:r}),this.reduceTimerCache.clear(t,r)):(this.resultCache.clear(t),this.resultCache.clear(this.getForcedDocLevelSchema(t)),this.reduceTimerCache.clear(t)),e.some((e=>!e.triggerOnRefresh))&&(s.resultDescription+="X_"),s.resultDescription+=t+" ")})),this.clearRemoteLambdaTokenCache();const c=[];this.inputSchemasToWorkflows.forEach((e=>c.push(...e))),this.inputSchemasToReduceWorkflows.forEach((e=>c.push(...e)));for(const e of c)this.tileRefreshByDocSessionIdEnabled?e.onRefresh(r):e.onRefresh();this.tileRefreshByDocSessionIdEnabled?this.lastTileRefreshSeqByDocSessionId.set(r,o):this.lastTileRefreshSeq=o,a.tG.info(559290449,a.nh.CoreDefault,s.stop())}executeWorkflow(e,t,n,r,o,s){const i=r.docIdExtractor?r.docIdExtractor(t.payload):void 0,c=r.docSessionIdExtractor(n),l=this.tileRefreshByDocSessionIdEnabled?this.lastTileRefreshSeqByDocSessionId.get(c):this.lastTileRefreshSeq;r.onStart(c);const u=t=>{const i=this.tileRefreshByDocSessionIdEnabled?this.lastTileRefreshSeqByDocSessionId.get(c):this.lastTileRefreshSeq;if(r.triggerOnRefresh&&i!==l)return e.success=!0,e.resultSignature="TileRefreshIgnore",void a.tG.info(559290450,a.nh.CoreDefault,e.stop());const u=t.messageType==Be.Exception&&t.payload.exceptionType==We.NoOutput,d=u&&r.canProduceNullResult,p=d?r.lambdas[r.lambdas.length-1].outputSchema:t.payloadSchema.schema.name,f=d?null:t.payload;t.messageType===Be.Input||d?(r.shouldSendResultsToHost&&(s===this.inputSchemasToReduceWorkflows?this.hostCallbacks.onResult("Reduce.Input",n,p,f):this.hostCallbacks.onResult(o,n,p,f)),e.success=!0,e.resultSignature=u?"NoOutput":"ValidOutput"):u?(e.success=!0,e.resultSignature="NoOutput"):(e.success=!1,e.resultSignature="Exception",e.resultDescription=Un(t)),s!==this.inputSchemasToReduceWorkflows&&this.updateResultCacheForReduceWorkflows(o,n,p,f,t.correlationVector.toString()),t.moreResults||(e.stop(),a.tG.info(559290451,a.nh.CoreDefault,e),r.onFinish(c,t.payload&&t.payload.exceptionType?(e=>null==e||null==e.payload||null==e.payload.exceptionType?We.Unknown:e.payload.exceptionType)(t):void 0))};r.preExecutionPromise.then((()=>{const e={lookupTable:this.lookupTableCache.get(r.name),docId:i,docSessionId:c};let n=u;for(let t=r.lambdas.length-1;t>=0;t--)n=this.createLambdaExecutionStep(r.name,r.lambdas[t],e,n,u);n(t)}))}getForcedDocLevelSchema(e){return`~${e}`}updateResultCacheForReduceWorkflows(e,t,n,r,o){const s=this.inputSchemasToReduceWorkflows.get(n);if(s){let i;"docSessionId"===e?(i=this.getGroupingKey(e,t,n),this.resultCache.setResult(this.getForcedDocLevelSchema(n),i,r),i.secondary="*"):(i=this.getGroupingKey(e,t,n),((e,t)=>e===lr&&t&&t.type==Vn.TextTileEventType.Delete||e===ur&&t&&t.eventType==qn.SlideTileEventType.Delete)(e,t)&&null!=i.primary&&null!=i.secondary?this.resultCache.clear(void 0,i):this.resultCache.setResult(n,i,r));const c=s.some((e=>e.deferReduceUntilIdle)),l=[];this.inputSchemasToWorkflows.forEach((e=>l.push(...e.filter((e=>e.getOutputSchema()===n)))));const u=()=>c&&l.some((e=>e.executionCountByDocSessionId.get(i.primary)>0)),d=s.map((e=>e.deferReduceUntilIdleMaxDelayMs||0)).reduce(((e,t)=>Math.max(e,t)));this.reduceTimerCache.setReduceTimer(n,i.primary,(()=>{const e=this.resultCache.getResults(n,i);if(e.push(...this.resultCache.getResults(this.getForcedDocLevelSchema(n),{primary:i.primary})),Array.isArray(e)){const t={id:i.primary,values:e,isReduceInput:!0};this.submitToWorkflows(n,t,o,this.inputSchemasToReduceWorkflows)}else a.tG.error(559290452,a.nh.CoreDefault,`Cached results have unexpected type "${typeof e}"`)}),500,u,d)}}isFeatureEnabled(e,t=!1,n="None"){return this.hostCallbacks&&this.hostCallbacks.isFeatureEnabled?this.hostCallbacks.isFeatureEnabled("Microsoft.Office.AugLoop."+e,n).catch((()=>Promise.resolve(t))):Promise.resolve(t)}areLicenseFeaturesEnabled(e){return this.hostCallbacks&&this.hostCallbacks.areLicenseFeaturesEnabled?this.hostCallbacks.areLicenseFeaturesEnabled(e).catch((()=>Promise.resolve(!1))):Promise.resolve(!1)}isWorkflowEnabled(e,t,n,r,o){if(t.some((e=>e.source===or.Remote||e.source===or.BatchedRemote))){if(!this.serviceUrl)return o.resultDescription="Disabled because no service URL available for remote workflow",Promise.resolve(!1);if(this.clientMetadata&&this.clientMetadata.privateMode&&t.some((e=>(e.source===or.Remote||e.source===or.BatchedRemote)&&!e.canRunInPrivateMode)))return o.resultDescription="Disabled because we are running in private mode",Promise.resolve(!1)}let s;return(!this.clientMetadata||"Mac"!==this.clientMetadata.appPlatform&&"Win32"!==this.clientMetadata.appPlatform)&&(r=!0,o.resultDescription="Enabled by default due to platform name"),s=r?Promise.resolve(!0):this.isFeatureEnabled("WorkflowEnabled."+e),s.then((t=>t?this.isFeatureEnabled("WorkflowDisabled."+e).then((e=>e?(o.resultDescription="Disabled because explicitly disabled",!1):!n||this.areLicenseFeaturesEnabled(n).then((e=>(e||(o.resultDescription="Disabled because license check failed"),e))))):(o.resultDescription="Disabled because not explicitly enabled",!1)))}registerHardcodedWorkflow(e,t,n=this.inputSchemasToWorkflows,r){if(!e||e.length>40)throw new Error("Workflow name has invalid length");if(!1===new RegExp(/^[A-Z][a-zA-Z0-9_]+$/).test(e))throw new Error("Workflow name has invalid format");n.forEach((t=>{if(t.some((t=>t.name===e)))throw new Error("Workflow name already registered.")}));const o=new i.I({operationName:"WorkflowRegistration",resourceId:e,success:!0});return o.setClientMetadata(this.clientMetadata),o.start(),this.isWorkflowEnabled(e,t,r.licenseFeatures,r.enabledByDefault,o).then((s=>{if(o.resultSignature=s?"Enabled":"Disabled",o.stop(),a.tG.info(559290453,a.nh.CoreDefault,o),s){const o=t[0].inputSchema;let s=n.get(o);s||(s=[],n.set(o,s));let i=Promise.resolve();r.lookupTableLambda&&(i=new Promise(((t,n)=>{const o=new b,s={messageType:Be.Input,correlationVector:o,payloadSchema:cr(r.lookupTableLambda.inputSchema),clientMetadata:this.clientMetadata,payload:{}},i=n=>{n.messageType===Be.Input&&n.payload&&this.lookupTableCache.set(e,n.payload),t()};this.createLambdaExecutionStep("",r.lookupTableLambda,{},i,i)(s)})));const a=new ar;a.name=e,a.lambdas=t,a.canProduceNullResult=r.canProduceNullResult,a.shouldSendResultsToHost=r.shouldSendResultsToHost,a.triggerOnRefresh=r.triggerOnRefresh,a.throttleSettings=r.throttleSettings||this.defaultWorkflowOptions.throttleSettings,a.docIdExtractor=r.docIdExtractor,a.docSessionIdExtractor=e=>e.isReduceInput?e.id:hr(o,e),a.deferReduceUntilIdle=r.deferReduceUntilIdle,a.deferReduceUntilIdleMaxDelayMs=r.deferReduceUntilIdleMaxDelayMs,a.useCanaryTextTile=r.useCanaryTextTile,a.preExecutionPromise=i,s.push(a)}}))}logOperation(e,t,n,r){e.stop(),e.success=t,e.resultSignature=n,e.resultDescription=r,a.tG.info(559290454,a.nh.CoreDefault,e)}handleLambdaError(e,t,n,r,o){null!=e.exceptionType?Gn(t,e):e instanceof Error?Gn(t,{exceptionType:r,message:e.message}):Gn(t,{exceptionType:We.Unknown,message:e?e.toString():void 0}),this.logOperation(n,!1,"Exception",Un(t)),o(t)}handleLambdaOutput(e,t,n,r,o,s){e&&e.exceptionType!==We.NoOutput?null!=e.exceptionType?this.handleLambdaError(e,t,n,e.exceptionType,s):e instanceof Error?this.handleLambdaError(e,t,n,We.LambdaErrorCallback,s):(t.payload=e,t.payloadSchema=cr(r),this.logOperation(n,!0),o(t)):(Gn(t,{exceptionType:We.NoOutput}),this.logOperation(n,!0,"NoOutput"),s(t))}executeCustomLambdaStep(e,t,n,r,o,s){if(null==n.func)Gn(e,{exceptionType:We.LambdaThrow,message:"No lambda function set"}),this.logOperation(t,!1,"Error",Un(e)),s(e);else{const i=r=>{this.handleLambdaOutput(r,e,t,n.outputSchema,o,s)},a=(n,r)=>{this.handleLambdaOutput(n,e,t,r,s,s)};try{n.func(e.payload,n.config,r,i,a)}catch(n){this.handleLambdaError(n,e,t,We.LambdaThrow,s)}}}executeLocalLambdaStep(e,t,n,r,o){null==this.hostCallbacks.executeLocalLambda?(Gn(e,{exceptionType:We.LambdaThrow,message:"No local lambda host callback set"}),this.logOperation(t,!1,"Error",Un(e)),o(e)):this.hostCallbacks.executeLocalLambda(n.inputSchema,e.payload,n.outputSchema).then((s=>{this.handleLambdaOutput(s,e,t,n.outputSchema,r,o)})).catch((n=>{this.handleLambdaError(n,e,t,We.LambdaThrow,o)}))}executeRemoteLambdaStep(e,t,n,r,o,s){if(this.serviceUrl){t.resourceId+=`.${this.serviceProtocol}`;const i=(r,i)=>{r?this.handleLambdaError(r,e,t,r.exceptionType||We.LambdaErrorCallback,s):this.handleLambdaOutput(i,e,t,n.outputSchema,o,s)};if(r.authTickets=n.authTickets,n.source===or.Remote)this.executeRemoteLambda(this.serviceUrl,e,cr(n.inputSchema),cr(n.outputSchema),e.correlationVector,this.clientMetadata,this.hostCallbacks,r,i);else{this.batchedRemoteLambdaManager||(this.batchedRemoteLambdaManager=new ze(((e,t,n)=>{const{remoteLambda:r,lambdaContext:o}=t.context;this.executeRemoteLambda(this.serviceUrl,{messageType:Be.Input,correlationVector:{id:t.cv},payload:e,payloadSchema:cr(r.inputSchema),clientMetadata:this.clientMetadata},cr(r.remoteInputSchema),cr(r.remoteOutputSchema),{id:t.cv},this.clientMetadata,this.hostCallbacks,o,n)}),!1,!1,((e,t,n)=>{var r;const{lambdaContext:o}=n;this.updateResultCacheForReduceWorkflows("docSessionId",null!==(r=o.docSessionId)&&void 0!==r?r:o.docId,e,t)})));const{batchOptions:t}=n,o=this.normalizeBatchOptions(t),{groupingKeyExtractor:s}=o;o.groupingKeyExtractor=e=>`${n.name}-${s(e)}`;const a={name:n.name,remoteLambda:n,lambdaContext:r};this.batchedRemoteLambdaManager.addBatchItem(e.payload,o,a,e.correlationVector.id.length>127?e.correlationVector.id.substring(0,127)+"!":e.correlationVector.id,void 0,i)}}else Gn(e,{exceptionType:We.LambdaThrow,message:"No URL for remote lambda"}),this.logOperation(t,!1,"Error",Un(e)),s(e)}createLambdaExecutionStep(e,t,n,r,o){return s=>{const a=new i.I({cv:s.correlationVector.toString(),operationName:"ExecuteLambda",resourceId:t.name,dimension0:e});a.start(),t.source===or.Custom?this.executeCustomLambdaStep(s,a,t,n,r,o):t.source===or.Local?this.executeLocalLambdaStep(s,a,t,r,o):t.source===or.Remote||t.source===or.BatchedRemote?this.executeRemoteLambdaStep(s,a,t,n,r,o):(Gn(s,{exceptionType:We.LambdaThrow,message:"Unknown/No lambda location set"}),this.logOperation(a,!1,"Error",Un(s)),o(s))}}normalizeBatchOptions(e){if(!e)throw new Error("Expected batchConfig");const t=Object.assign({},e);return e.estimateSize||(t.estimateSize=Lt),t}},mr=(e,t)=>t.some((t=>e instanceof t));let yr,vr;const wr=new WeakMap,br=new WeakMap,Sr=new WeakMap,Tr=new WeakMap,Cr=new WeakMap;let _r={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return br.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Sr.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return kr(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ir(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(vr||(vr=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Ar(this),e),kr(wr.get(this))}:function(...e){return kr(t.apply(Ar(this),e))}:function(e,...n){const r=t.call(Ar(this),e,...n);return Sr.set(r,e.sort?e.sort():[e]),kr(r)}:(e instanceof IDBTransaction&&function(e){if(br.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)}));br.set(e,t)}(e),mr(e,yr||(yr=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,_r):e);var t}function kr(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{t(kr(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&wr.set(t,e)})).catch((()=>{})),Cr.set(t,e),t}(e);if(Tr.has(e))return Tr.get(e);const t=Ir(e);return t!==e&&(Tr.set(e,t),Cr.set(t,e)),t}const Ar=e=>Cr.get(e),Er=["get","getKey","getAll","getAllKeys","count"],Rr=["put","add","delete","clear"],Or=new Map;function Pr(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Or.get(t))return Or.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Rr.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!Er.includes(n))return;const s=async function(e,...t){const s=this.transaction(e,o?"readwrite":"readonly");let i=s.store;return r&&(i=i.index(t.shift())),(await Promise.all([i[n](...t),o&&s.done]))[0]};return Or.set(t,s),s}var Mr,xr,Dr;Dr=_r,_r={...Dr,get:(e,t,n)=>Pr(e,t)||Dr.get(e,t,n),has:(e,t)=>!!Pr(e,t)||Dr.has(e,t)},function(e){e.URL="URL",e.ArrayBuffer="ArrayBuffer"}(Mr||(Mr={}));class Nr{constructor(e,t,n,r){this.dbName="ALModels_db",this.osName="ALModels_os",this.dbVersion=2,this.modelPathsCache=new Map,this.isPolymerSupported=Boolean(n),this.baseURL=`https://${t}/web/${e}`,this.polymerBaseURL=this.isPolymerSupported?`https://${n}`:"",this.fetchResource=null!=r?r:"undefined"!=typeof fetch?fetch:re.fetch;const o=new i.I({operationName:"CreateModelDownloader",success:!0,resultDescription:""});o.start(),this.isBrowserIdbCompatible().then((e=>{if(e){let e,t=0,n=0,r=0;const s=new Promise(((t,n)=>{e=setTimeout((()=>{n(new Error("Took longer than 10000 ms"))}),1e4)})),i=this.accessDB().then((e=>{const o=e.transaction(this.osName,"readwrite");return o.objectStore(this.osName).openCursor().then((function e(s){if(r++,s){const r=s.value;let o;return r.timesSinceUsage||(r.timesSinceUsage=0),r.timesSinceUsage++,r.timesSinceUsage>5?(n++,o=s.delete()):(t++,o=s.update(r)),o.then((()=>s.continue())).then(e)}return o.done}))}));this.initPromise=Promise.race([s,i]).catch((e=>{o.success=!1,o.resultDescription+=`${e.message} `})).then((()=>{o.dimension0=`${r}`,o.dimension1=`${t}`,o.dimension2=`${n}`,clearTimeout(e),this.closeDBAndEndLog(o,"initializing idb storage")}))}else o.resultDescription="Incompatible browser for IDB",a.tG.info(538706242,a.nh.CoreDefault,o.stop())})).catch((()=>{o.resultDescription="Issue determining idb compatibility",a.tG.info(536966936,a.nh.CoreDefault,o.stop())}))}getResourceAsArrayBuffer(e,t,n){const r=new i.I({operationName:"GetResource",success:!0,resultDescription:"",dimension0:Mr.ArrayBuffer,dimension1:e,dimension2:t});r.start();const o={};return this.getResource(e,t,n,Mr.ArrayBuffer,r,(e=>Promise.all(Array.from(e.keys()).map((t=>{const n=e.get(t);return n.arrayBuffer?n.arrayBuffer().then((e=>{o[t]=e})):new Promise(((e,r)=>{const s=new FileReader;s.readAsArrayBuffer(n),s.onload=n=>{const s=n.target.result;s instanceof ArrayBuffer?(o[t]=s,e()):r(new Error("Unable to obtain ArrayBuffer"))}}))}))))).then((()=>o))}getKey(e,t,n){return n?`${e}_${t}_${JSON.stringify(Array.from(n.entries()))}`:`${e}_${t}`}updateCache(e,t,n,r){this.modelPathsCache.set(this.getKey(e,t,n),r)}getCache(e,t,n){return this.modelPathsCache.get(this.getKey(e,t,n))}getResourceAsURL(e,t,n){const r=new i.I({operationName:"GetResource",success:!0,resultDescription:"",dimension0:Mr.URL,dimension1:e,dimension2:t});r.start();const o={},s=this.getCache(e,t,n);return s?Promise.resolve(s):this.getResource(e,t,n,Mr.URL,r,(e=>Promise.all(Array.from(e.keys()).map((t=>{o[t]=URL.createObjectURL(e.get(t))}))))).then((()=>this.getCache(e,t,n)||(this.updateCache(e,t,n,o),o)))}getResource(e,t,n,r,o,s){return this.getFiles(e,t,n,o).then((e=>s(e))).then((()=>{this.closeDBAndEndLog(o,`retrieving ${e}`)})).catch((t=>{throw o.resultDescription.indexOf(t.message)>=0&&(o.success=!1,o.resultDescription+=`${t.message} `),o.resultSignature=`Issue retrieving from CDN or translating to ${r}`,this.closeDBAndEndLog(o,`retrieving ${e}`),t}))}checkFirefoxCompatibility(e){const t=globalThis.navigator.userAgent.substring(e+8,e+11);return t.replace(".",""),parseInt(t,10)<=70?new Promise((function(e,t){const n=globalThis.indexedDB.open(this.dbName,this.dbVersion);n.onsuccess=function(){e(!0)},n.onerror=function(e){return t(e),!0}})):Promise.resolve(!0)}isBrowserIdbCompatible(){var e,t;return"undefined"==typeof Array||void 0===Array.from||"undefined"==typeof Proxy||"undefined"==typeof URL||void 0===URL.createObjectURL?Promise.resolve(!1):"undefined"!=typeof globalThis&&(null===(e=globalThis.navigator)||void 0===e?void 0:e.userAgent)?globalThis.navigator.userAgent.toLowerCase().indexOf("firefox")>-1?globalThis.indexedDB?this.checkFirefoxCompatibility(globalThis.navigator.userAgent.toLowerCase().indexOf("firefox")):Promise.resolve(!1):globalThis.navigator.userAgent.toLowerCase().indexOf("safari")>-1&&globalThis.navigator.userAgent.toLowerCase().indexOf("chrome")<=-1?(null===(t=globalThis.document)||void 0===t?void 0:t.hasStorageAccess)?globalThis.document.hasStorageAccess().then((()=>!0)).catch((()=>!1)):Promise.resolve(!1):Promise.resolve(!0):Promise.resolve(!1)}accessDB(){return this.accessDBPromise?this.accessDBPromise.then((e=>e.transaction(this.osName).done)).then((()=>this.accessDBPromise)).catch((()=>this.callOpenDB())):this.callOpenDB()}callOpenDB(){return this.accessDBPromise=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:s}={}){const i=indexedDB.open(e,t),a=kr(i);return r&&i.addEventListener("upgradeneeded",(e=>{r(kr(i.result),e.oldVersion,e.newVersion,kr(i.transaction))})),n&&i.addEventListener("blocked",(()=>n())),a.then((e=>{s&&e.addEventListener("close",(()=>s())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),a}(this.dbName,this.dbVersion,{upgrade:e=>{e.objectStoreNames.contains(this.osName)&&e.deleteObjectStore(this.osName),e.createObjectStore(this.osName,{keyPath:"id",autoIncrement:!0})}})}endLog(e,t){e.success?(e.resultDescription=`Success ${t}`,a.tG.info(573329487,a.nh.CoreDefault,e.stop())):(e.resultDescription+=`error ${t}`,a.tG.error(573329488,a.nh.CoreDefault,e.stop()))}closeDBAndEndLog(e,t){this.accessDBPromise?this.accessDBPromise.then((e=>{e.close()})).catch((t=>{e.resultDescription.indexOf(t.message)>=0&&(e.success=!1,e.resultDescription+=`${t.message?t.message:"Error closing db"} `,e.resultSignature="Issue closing db")})).then((()=>{this.accessDBPromise=void 0,this.endLog(e,t)})):this.endLog(e,t)}getFiles(e,t,n,r){return this.isBrowserIdbCompatible().catch((e=>(r.success=!1,r.resultDescription+=`${e.message} `,r.resultSignature="Issue determining idb compatibility",!1))).then((o=>{const s=()=>{if(n){if(this.isPolymerSupported)return this.downloadFiles1CDN(e,t,n,r,o);throw new Error("Missing polymerBaseURL provided at host level for queries with modelFilters")}return this.downloadFiles(e,t,r,o)};return o?this.getFilesFromIDB(e,t,n,r).catch((e=>(e&&(r.resultDescription.indexOf(e.message)>=0&&(r.success=!1,r.resultDescription+=`${e.message} `),r.resultSignature="Issue retrieving from DB"),s()))):s()}))}getFilesFromIDB(e,t,n,r){return this.initPromise.catch((e=>{r.success=!1,r.resultDescription+=`${e.message} `,r.resultSignature="Issue initializing"})).then((()=>this.getModelOptions(e))).then((o=>{for(const s of o)if(s&&s.model&&s.version==t){if(!this.checkModelFiltersPass(n,s.filters))continue;return this.putModel(e,s.model,t,s.filters,r,s.id),Promise.resolve(s.model)}return Promise.reject()}))}checkModelFiltersPass(e,t){var n;for(const r of e){const e=null===(n=t.get(r[0]))||void 0===n?void 0:n.map((e=>e.toLocaleLowerCase()));if(!e)throw new Error(`Expected filter ${r[0]} to exist in metadata file`);if(e.indexOf(r[1].toLocaleLowerCase())<0)return!1}return!0}downloadFiles1CDN(e,t,n,r,o){let s;return r.dimension3="Polymer",n||(n=new Map),this.fetchResource(`${this.polymerBaseURL}/${e}/${t}/metadata.json`).then((e=>{if(e.ok)return e.text();throw new Error(`CDN download response status: ${e.status}`)})).then((o=>{var i,a;const c=JSON.parse(o);if(c.name!==e||c.version!==t)throw new Error(`Expected: ${e} version ${t}, received: ${c.name} version ${c.version}`);for(const e of c.variants)if(s=new Map(Object.entries(e)),this.checkModelFiltersPass(n,s))return(c.catalog?n.size+2:n.size+1!==s.size)&&(r.success=!1,r.resultDescription+=`Expected ${null===(i=s.keys)||void 0===i?void 0:i.length} # of filters, received ${null===(a=n.keys)||void 0===a?void 0:a.length}`),e.model_files;throw new Error("No model found with given filters")})).then((n=>Promise.all(n.map((n=>this.fetchResource(`${this.polymerBaseURL}/${e}/${t}/${n}`).then((e=>{if(e.ok)return e.blob();throw new Error(`CDN download response status: ${e.status}`)})).then((e=>[n,e]))))))).then((n=>{const i=new Map(n);return o?this.putModel(e,i,t,s,r):i}))}downloadFiles(e,t,n,r){return n.dimension3="FS",this.fetchResource(`${this.baseURL}/catalog_${e}_${t}.json`).then((e=>{if(e.ok)return e.text();throw new Error(`CDN download response status: ${e.status}`)})).then((n=>{const r=JSON.parse(n),o=`${r.MajorVersion}.${r.MinorVersion}/ModelResources`,s=`${e}/${t}/`;return Promise.all(r.Resources.map((e=>(e.Name.length>s.length&&e.Name.substring(0,s.length)===s&&(e.Name=e.Name.substring(s.length)),this.fetchResource(`${this.baseURL}/${o}/${s}${e.Name}.${e.Type}`).then((e=>{if(e.ok)return e.blob();throw new Error(`CDN download response status: ${e.status}`)})).then((t=>[`${e.Name}.${e.Type}`,t]))))))})).then((o=>{const s=new Map(o);return r?this.putModel(e,s,t,new Map,n):s}))}getModelOptions(e){return this.accessDB().then((t=>{const n=[],r=t.transaction(this.osName,"readonly");return r.objectStore(this.osName).openCursor().then((function t(o){if(o){const r=o.value;return r.modelId==e&&n.push(r),o.continue().then(t)}return r.done})).then((()=>n))}))}putModel(e,t,n,r,o,s){return r||(r=new Map),this.accessDB().then((o=>o.put(this.osName,{modelId:e,model:t,version:n,filters:r,timesSinceUsage:0},s))).catch((e=>{o.resultDescription.indexOf(e.message)>=0&&(o.success=!1,o.resultDescription+=`${e.message} `),o.resultSignature="Issue adding to DB"})).then((()=>t))}}!function(e){e[e.None=0]="None",e[e.Booleans=1]="Booleans",e[e.Float32s=2]="Float32s",e[e.Float64s=3]="Float64s",e[e.Int8s=4]="Int8s",e[e.Int16s=5]="Int16s",e[e.Int32s=6]="Int32s",e[e.Strings=7]="Strings",e[e.UnsignedInt8s=8]="UnsignedInt8s",e[e.UnsignedInt16s=9]="UnsignedInt16s",e[e.UnsignedInt32s=10]="UnsignedInt32s"}(xr||(xr={}));var Lr=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};class Fr{constructor(e,t,n){this.session=e,this.onnxObject=n,this.modelName=t}static create(e,t,n){return Lr(this,void 0,void 0,(function*(){const r=new i.I({operationName:"CreateModelForInferencing",success:!0,resourceId:t});return r.start(),n[e]?(r.resultDescription="Model already existed",a.tG.info(509699716,a.nh.CoreDefault,r.stop()),n[e]):n[e]=this.getInferenceSession(n).create(e).then((e=>(a.tG.info(540406807,a.nh.CoreDefault,r.stop()),new Fr(e,t,n)))).catch((e=>{throw r.resultDescription=`Error: ${e}`,a.tG.info(540406808,a.nh.CoreDefault,r.stop()),e}))}))}static getInferenceSession(e){if(null==e?void 0:e.InferenceSession)return e.InferenceSession;throw new Error("InferenceSession is not defined")}run(e){var t;return Lr(this,void 0,void 0,(function*(){const n=new i.I({operationName:"RunModelForInferencing",success:!0,resourceId:this.modelName});if(n.start(),null===(t=this.onnxObject)||void 0===t?void 0:t.Tensor){const t=e.getInputs(),r={};return Object.keys(t).forEach((e=>{const n=t[e];if(Array.isArray(n.values)&&n.values.length>0&&"boolean"==typeof n.values[0]){const t=new Uint8Array(n.values);r[e]=new this.onnxObject.Tensor(t,n.dimensions)}else r[e]=new this.onnxObject.Tensor(n.values,n.dimensions)})),this.session.run(r).then((e=>(a.tG.info(540406809,a.nh.CoreDefault,n.stop()),new Wr(e)))).catch((e=>{n.resultDescription=`Problem running model. ${e.message}`,a.tG.info(540406810,a.nh.CoreDefault,n.stop())}))}throw n.resultDescription="Unable to run model. Tensor not defined",a.tG.info(540406811,a.nh.CoreDefault,n.stop()),new Error("Tensor is not defined")}))}}class Br{constructor(){this.map={}}static create(){return new Br}getInputs(){return this.map}add(e,t,n){return this.map[e]={dimensions:t,values:n},this}}class Wr{constructor(e){for(const t of Object.keys(e))this[t]=new Ur(t,e[t])}}class Ur{constructor(e,t){this.resultName=e,this.result=t}name(){return this.resultName}outputType(){switch(this.result.type){case"string":return xr.Strings;case"int8":return xr.Int8s;case"int16":return xr.Int16s;case"int32":return xr.Int32s;case"bool":return xr.Booleans;case"uint8":return xr.UnsignedInt8s;case"uint16":return xr.UnsignedInt16s;case"uint32":return xr.UnsignedInt32s;case"float32":return xr.Float32s;case"float64":return xr.Float64s;default:throw new Error(`The output type ${this.result.type} is not supported.`)}}dimensions(){return this.result.dims}asBooleans(){if(this.outputType()===xr.Booleans)return this.result.data.map((e=>!!e));throw new Error(`asBooleans() was called; however, outputType() is ${this.outputType()}, not Type.Booleans.`)}asFloat32s(){if(this.outputType()===xr.Float32s)return this.result.data;throw new Error(`asFloat32s() was called; however, outputType() is ${this.outputType()}, not Type.Float32s.`)}asFloat64s(){if(this.outputType()===xr.Float64s)return this.result.data;throw new Error(`asFloat64s() was called; however, outputType() is ${this.outputType()}, not Type.Float64s.`)}asInt8s(){if(this.outputType()===xr.Int8s)return this.result.data;throw new Error(`asInt8s() was called; however, outputType() is ${this.outputType()}, not Type.Int8s.`)}asInt16s(){if(this.outputType()===xr.Int16s)return this.result.data;throw new Error(`asInt16s() was called; however, outputType() is ${this.outputType()}, not Type.Int16s.`)}asInt32s(){if(this.outputType()===xr.Int32s)return this.result.data;throw new Error(`asInt32s() was called; however, outputType() is ${this.outputType()}, not Type.Int32s.`)}asStrings(){if(this.outputType()===xr.Strings)return this.result.data;throw new Error(`asStrings() was called; however, outputType() is ${this.outputType()}, not Type.Strings.`)}asUnsignedInt8s(){if(this.outputType()===xr.UnsignedInt8s)return this.result.data;throw new Error(`asUnsignedInt8s() was called; however, outputType() is ${this.outputType()}, not Type.UnsignedInt8s.`)}asUnsignedInt16s(){if(this.outputType()===xr.UnsignedInt16s)return this.result.data;throw new Error(`asUnsignedInt16s() was called; however, outputType() is ${this.outputType()}, not Type.UnsignedInt16s.`)}asUnsignedInt32s(){if(this.outputType()===xr.UnsignedInt32s)return this.result.data;throw new Error(`asUnsignedInt32s() was called; however, outputType() is ${this.outputType()}, not Type.UnsignedInt32s.`)}}function Gr(){return globalThis&&!globalThis.top&&(globalThis.top={}),null===globalThis||void 0===globalThis?void 0:globalThis.top}function Vr(e,t){e.src=t}function qr(e,t){const n=globalThis[t];if(n&&n.InferenceSession&&n.Tensor){const r=e();return r&&!r[t]&&(r[t]=n),!0}return!1}class Hr{static createFactory(e,t,n,r,o){return s=>{var c;const l=r||Gr;return!Hr.onnxRetrievalPromise||s?e&&t?((null===(c=l())||void 0===c?void 0:c.ort)&&!s?Promise.resolve():function(e,t,n,r,o){const s=new i.I({operationName:"CreateOnnxInferenceService",success:!0,resultDescription:""});if(s.start(),function(e){let t="";if("undefined"!=typeof navigator&&navigator.userAgent){const e=navigator.userAgent;!e.indexOf||e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0?t="Error: IE lacks necessary support":"undefined"==typeof Promise?t="Error: Promise is not supported":"undefined"==typeof WebAssembly&&(t="Error: WASM is not supported")}else t="Error: No window userAgent";return""!=t&&(e.resultDescription=t,a.tG.info(540406806,a.nh.CoreDefault,e.stop()),!0)}(s)){const e="Browser lacks necessary support for inference service";return s.success=!1,s.resultDescription=e,a.tG.info(540406803,a.nh.CoreDefault,s.stop()),Promise.reject(new Error(e))}return new Promise(((s,i)=>{if("undefined"!=typeof document){const a=document.createElement("script");(o||Vr)(a,e),a.onload=()=>{qr(t,n)?(r&&(t()[n].env.wasm.wasmPaths=r),s()):(a.remove(),i(new Error("ort.Tensor and/or ort.InferenceSession are undefined")))},a.onerror=i,document.body.appendChild(a)}else globalThis.importScripts?(globalThis.importScripts(e),globalThis[n]=self[n],qr(t,n)?(r&&(t()[n].env.wasm.wasmPaths=r),s()):i(new Error("ort.Tensor and/or ort.InferenceSession are undefined"))):i(new Error("Unexpected lack of document and importScripts"))})).then((()=>{a.tG.info(540406804,a.nh.CoreDefault,s.stop())})).catch((e=>{throw s.success=!1,s.resultDescription=e.message,a.tG.info(509871835,a.nh.CoreDefault,s.stop()),e}))}(this.createCdnUrl(e,t),l,"ort",n,o)).then((()=>{Hr.onnxRetrievalPromise=Promise.resolve(new Hr(l))})).catch((e=>{Hr.onnxRetrievalPromise=Promise.reject(e)})).then((()=>Hr.onnxRetrievalPromise)):Promise.reject(new Error("Error: appName and/or version not provided")):Hr.onnxRetrievalPromise}}static createCdnUrl(e,t){return`https://${e}${t}`}constructor(e){this.getCache=null,this.getCache=e}createModel(e,t){var n;return function(e,t,n){return Fr.create(e,t,n)}(e,t||"",null===(n=this.getCache())||void 0===n?void 0:n.ort)}createInputs(){return Br.create()}}var jr=n(28383);class zr{sendTraceTag(){}shipAssertTag(){}debugAssertTag(){}setCorrelationId(){}}const $r=new class{constructor(){this.externalLogger=new zr}setCorrelationId(e){this.externalLogger.setCorrelationId(e)}setLogger(e){this.externalLogger=e}sendTraceTag(e,t,n,r){this.externalLogger.sendTraceTag(e,t,n,r)}debugAssertTag(e,t,n,r){this.externalLogger.debugAssertTag(e,t,n,r)}shipAssertTag(e,t,n,r){this.externalLogger.shipAssertTag(e,t,n,r)}};var Yr,Jr;!function(e){e[e.msoulscat_ES_EWAJS=0]="msoulscat_ES_EWAJS",e[e.msoulscat_ES_EWAJSGrid=1]="msoulscat_ES_EWAJSGrid",e[e.msoulscat_ES_EWAJSChart=6]="msoulscat_ES_EWAJSChart",e[e.msoulscat_MSOSP_FileMenuCommands=202]="msoulscat_MSOSP_FileMenuCommands",e[e.msoulscat_MSOSP_AddInCommands=220]="msoulscat_MSOSP_AddInCommands",e[e.msoulscat_MSOSP_OTelJS=225]="msoulscat_MSOSP_OTelJS",e[e.msoulscat_MSOSP_OTelJSInWebWoker=227]="msoulscat_MSOSP_OTelJSInWebWoker",e[e.msoulscat_MSOSP_OTelJSWebWorkerPrototype=228]="msoulscat_MSOSP_OTelJSWebWorkerPrototype",e[e.msoulscat_Wac_WordViewer=301]="msoulscat_Wac_WordViewer",e[e.msoulscat_Wac_BrowserGeneral=306]="msoulscat_Wac_BrowserGeneral",e[e.msoulscat_Wac_TaskPane=320]="msoulscat_Wac_TaskPane",e[e.msoulscat_Wac_OneNoteGeneral=339]="msoulscat_Wac_OneNoteGeneral",e[e.msoulscat_Wac_Ribbon=340]="msoulscat_Wac_Ribbon",e[e.msoulscat_Wac_WacFeedback=356]="msoulscat_Wac_WacFeedback",e[e.msoulscat_Wac_WopiPendingApplication=379]="msoulscat_Wac_WopiPendingApplication",e[e.msoulscat_Wac_Telemetry=383]="msoulscat_Wac_Telemetry",e[e.msoulscat_Wac_WacCatchUpActivities=391]="msoulscat_Wac_WacCatchUpActivities",e[e.msoulscat_Wac_Dictation=394]="msoulscat_Wac_Dictation",e[e.msoulscat_Wac_OneNoteSync=395]="msoulscat_Wac_OneNoteSync",e[e.msoulscat_Wac_VisioApp=700]="msoulscat_Wac_VisioApp",e[e.msoulscat_OneNoteOnline_EditableCache=1601]="msoulscat_OneNoteOnline_EditableCache",e[e.msoulscat_Wac_PptAnimation=800]="msoulscat_Wac_PptAnimation",e[e.msoulscat_Wac_PptLive=833]="msoulscat_Wac_PptLive",e[e.msoulscat_Wac_PptMWeb=834]="msoulscat_Wac_PptMWeb",e[e.msoulscat_Wac_PptGc2General=835]="msoulscat_Wac_PptGc2General",e[e.msoulscat_Wac_PptGc2GraphicHost=836]="msoulscat_Wac_PptGc2GraphicHost",e[e.msoulscat_Wac_PptGc2Operation=837]="msoulscat_Wac_PptGc2Operation",e[e.msoulscat_Wac_PptGc2EditCanvas=852]="msoulscat_Wac_PptGc2EditCanvas",e[e.msoulscat_Wac_PptDataSync=844]="msoulscat_Wac_PptDataSync",e[e.msoulscat_Wac_PptFluidRuntime=848]="msoulscat_Wac_PptFluidRuntime",e[e.msoulscat_Wac_PptShape=815]="msoulscat_Wac_PptShape",e[e.msoulscat_Wac_PptSession=817]="msoulscat_Wac_PptSession",e[e.msoulscat_Wac_PptSlideshow=830]="msoulscat_Wac_PptSlideshow",e[e.msoulscat_Wac_PptView=822]="msoulscat_Wac_PptView",e[e.msoulscat_Wac_PptVideos=846]="msoulscat_Wac_PptVideos",e[e.msoulscat_Uci_Insights=1303]="msoulscat_Uci_Insights",e[e.msoulscat_Wac_VersionHistory=2300]="msoulscat_Wac_VersionHistory",e[e.msoulscat_Wac_WordPresence=302]="msoulscat_Wac_WordPresence",e[e.msoulscat_Wac_OAuth=3e3]="msoulscat_Wac_OAuth",e[e.msoulscat_Wac_WordVersionHistory=3005]="msoulscat_Wac_WordVersionHistory",e[e.msoulscat_Wac_LivePersonaCard=3006]="msoulscat_Wac_LivePersonaCard",e[e.msoulscat_Wac_CatchUpFlyout=3012]="msoulscat_Wac_CatchUpFlyout",e[e.msoulscat_Wac_WordDesigner=3016]="msoulscat_Wac_WordDesigner",e[e.msoulscat_Wac_ModernFontPicker=3021]="msoulscat_Wac_ModernFontPicker",e[e.msoulscat_Wac_UnifiedUiHost=3027]="msoulscat_Wac_UnifiedUiHost",e[e.msoulscat_Wac_EquationTools=3033]="msoulscat_Wac_EquationTools",e[e.msoulscat_Osf_Latency=1401]="msoulscat_Osf_Latency",e[e.msoulscat_Osf_Notification=1402]="msoulscat_Osf_Notification",e[e.msoulscat_Osf_Runtime=1403]="msoulscat_Osf_Runtime",e[e.msoulscat_Wac_AiMaker=3041]="msoulscat_Wac_AiMaker",e[e.msoulscat_Wac_AiRewrite=3043]="msoulscat_Wac_AiRewrite",e[e.msoulscat_Wac_AiInsert=3044]="msoulscat_Wac_AiInsert",e[e.msoulscat_Wac_AiSummarize=3047]="msoulscat_Wac_AiSummarize",e[e.msoulscat_Wac_CopilotCompose=3048]="msoulscat_Wac_CopilotCompose",e[e.msoulscat_Wac_Skittles=3049]="msoulscat_Wac_Skittles",e[e.msoulscat_Wac_CopilotChat=3050]="msoulscat_Wac_CopilotChat",e[e.msoulscat_Wac_Syntex=3051]="msoulscat_Wac_Syntex",e[e.msoulscat_Wac_WireGraph=3052]="msoulscat_Wac_WireGraph",e[e.msoulscat_Wac_CshCopilot=3053]="msoulscat_Wac_CshCopilot",e[e.msoulscat_Wac_CopilotComposeLaunchpad=3054]="msoulscat_Wac_CopilotComposeLaunchpad",e[e.msoulscat_Wac_CopilotProactiveSummary=3055]="msoulscat_Wac_CopilotProactiveSummary",e[e.msoulscat_Wac_CopilotProactiveShared=3056]="msoulscat_Wac_CopilotProactiveShared",e[e.msoulscat_Wac_CopilotCursor=3057]="msoulscat_Wac_CopilotCursor"}(Yr||(Yr={})),function(e){e[e.Error=10]="Error",e[e.Warning=15]="Warning",e[e.Important=20]="Important",e[e.Info=50]="Info",e[e.Verbose=100]="Verbose",e[e.Spam=200]="Spam"}(Jr||(Jr={}));class Qr{constructor(e){E.h.assign(Qr,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelServerSessionExtensionConfig"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[Qr.getTypeName()])}}Qr.H_={T_:Qr.getTypeName(),B_:Qr.getBaseTypes()};class Kr{constructor(e){E.h.assign(Kr,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelWorkbookUpdated"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Kr.getTypeName()])}}Kr.H_={T_:Kr.getTypeName(),B_:Kr.getBaseTypes()};class Xr{constructor(e){E.h.assign(Xr,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelAccessTokenRefreshed"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Xr.getTypeName()])}}Xr.H_={T_:Xr.getTypeName(),B_:Xr.getBaseTypes()};class Zr{constructor(e){E.h.assign(Zr,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelKeepAlive"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[Zr.getTypeName()])}}Zr.H_={T_:Zr.getTypeName(),B_:Zr.getBaseTypes()};class eo{constructor(e){E.h.assign(eo,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelRetrieveModelRequest"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[eo.getTypeName()])}}eo.H_={T_:eo.getTypeName(),B_:eo.getBaseTypes()};class to{constructor(e){E.h.assign(to,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelRetrieveModelResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return E.h.matchesTypesFor(e,[to.getTypeName()])}}to.H_={T_:to.getTypeName(),B_:to.getBaseTypes()};class no{constructor(e){E.h.assign(no,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelSessionDiagnosticsRequest"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[no.getTypeName()])}}no.H_={T_:no.getTypeName(),B_:no.getBaseTypes()};class ro{constructor(e){E.h.assign(ro,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelSessionDiagnosticsResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return E.h.matchesTypesFor(e,[ro.getTypeName()])}}ro.H_={T_:ro.getTypeName(),B_:ro.getBaseTypes()};class oo{constructor(e){E.h.assign(oo,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_AdvanceMockGridState"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[oo.getTypeName()])}}oo.H_={T_:oo.getTypeName(),B_:oo.getBaseTypes()};class so{constructor(e){E.h.assign(so,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelSessionCloseReason"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[so.getTypeName()])}}so.H_={T_:so.getTypeName(),B_:so.getBaseTypes()};class io{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){E.h.assign(io,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ObserverStatusAnnotation"}static getBaseTypes(){return["AugLoop_Core_Annotation"]}static typeGuard(e){return E.h.matchesTypesFor(e,[io.getTypeName()])}}io.H_={T_:io.getTypeName(),B_:io.getBaseTypes()};class ao{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){E.h.assign(ao,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_FullSeedingAnnotation"}static getBaseTypes(){return["AugLoop_Core_Annotation"]}static typeGuard(e){return E.h.matchesTypesFor(e,[ao.getTypeName()])}}ao.H_={T_:ao.getTypeName(),B_:ao.getBaseTypes()};class co{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){E.h.assign(co,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_WorkflowProgressAnnotation"}static getBaseTypes(){return["AugLoop_Core_Annotation"]}static typeGuard(e){return E.h.matchesTypesFor(e,[co.getTypeName()])}}co.H_={T_:co.getTypeName(),B_:co.getBaseTypes()};class lo{constructor(e){E.h.assign(lo,this,e)}static getTypeName(){return"AugLoop_Excel_Session_Protocol_ExcelServerSessionInitMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_SessionInitMessage","AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[lo.getTypeName()])}}lo.H_={T_:lo.getTypeName(),B_:lo.getBaseTypes()};class uo{constructor(e){E.h.assign(uo,this,e)}static getTypeName(){return"AugLoop_Powerpoint_Session_Protocol_PowerPointSessionInitMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_SessionInitMessage","AugLoop_Session_Protocol_Message"]}static typeGuard(e){return E.h.matchesTypesFor(e,[uo.getTypeName()])}}uo.H_={T_:uo.getTypeName(),B_:uo.getBaseTypes()};class po{constructor(e){E.h.assign(po,this,e)}static getTypeName(){return"AugLoop_Powerpoint_Session_Protocol_PowerPointSessionExtensionConfig"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[po.getTypeName()])}}po.H_={T_:po.getTypeName(),B_:po.getBaseTypes()};var fo=function(e){return this instanceof fo?(this.v=e,this):new fo(e)};const ho=(e,t)=>{const n=[];for(const o of Object.keys(e)){if(void 0===e[o]||null===e[o])continue;const s={name:t?`${t}.${o}`:o,dataType:(r=e[o],"string"==typeof r?0:"boolean"==typeof r?1:"number"==typeof r?2:void $r.sendTraceTag(572838285,Yr.msoulscat_Wac_BrowserGeneral,Jr.Warning,"Unsupported data field type")),value:e[o],classification:4};n.push(s)}var r;return n},go=e=>Promise.resolve(!1);class mo{constructor(){this._telemetryAggregationIntervalSec=30,this._eventHandlerDictionary={},this._changeGateEnabledCallback=void 0,this._bridge=null,this._bridgeInterceptor=null,this._sessionCloseReason=null,this._sessionConnectParams=null,this._serverAuthenticationState=Ve.f.NotAuthenticated,this._connectCallbacks=new Map,this._connectionStateCallbackToken=0,this._claimsChallengeCallbacks=[],this._seedingStatusChangeCallbacks=[],this._bridgeMessageSequenceId=0,this.initialize=e=>{if(this._runtimeInitPromise)return void $r.sendTraceTag(572838286,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,"Runtime already initialized");$r.sendTraceTag(572838287,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,"Start and initialize augloop runtime ..."),this.checkParametersAndThrow("initialize",e);const t=[];t.push(this.isFeatureEnabled("ModelDownloaderEbrake","None").then((t=>{t?$r.sendTraceTag(556376070,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,"Resource downloader not created due to feature gate"):this.modelDownloaderFromCDN=e.appName&&e.downloadBaseUrl||e.downloadPolymerBaseUrl?new Nr(e.appName,e.downloadBaseUrl,e.downloadPolymerBaseUrl):void 0}))),this.inferenceServiceFactory=e.appName&&e.inferenceServiceVersion?Hr.createFactory(e.appName,e.inferenceServiceVersion):void 0,this.excelServerParameters=e.excelServer,this.powerpointParameters=e.powerpoint;const n={appName:e.appName,appPlatform:"Web",appVersion:e.appVersion,uiLanguage:e.uiLanguage,releaseAudienceGroup:e.releaseAudienceGroup,releaseChannel:e.releaseChannel,releaseCustomAudience:e.releaseCustomAudience,releaseFork:e.releaseFork,sessionId:e.sessionId,flights:e.flights,privateMode:e.privateMode,disabledServiceGroups:e.disabledServiceGroups,userSystemTimezone:e.userSystemTimezone,isClientTelemetrySampled:e.isClientTelemetrySampled},r={onResult:this.onResult.bind(this),onAnnotationResult:this.onAnnotationResult.bind(this),sendTelemetryEvent:this.sendTelemetryEvent.bind(this),sendDiagnosticTrace:this.sendDiagnosticTrace.bind(this),requestAuthToken:this.requestAuthToken.bind(this),isFeatureEnabled:this.isFeatureEnabled.bind(this),isChangeGateEnabled:this.isChangeGateEnabled.bind(this),setSessionData:this.setSessionData.bind(this),areLicenseFeaturesEnabled:go,onInitSession:this.onInitSession.bind(this),overrideSessionInitMessage:this.overrideSessionInitMessage.bind(this)},o=Promise.all(t).then((()=>Bn.init(e.serviceUrl,n,r,{telemetryAggregationIntervalSec:this._telemetryAggregationIntervalSec,modelDownloader:this.modelDownloaderFromCDN,inferenceServiceFactory:this.inferenceServiceFactory,isDeltaGeneratorEnabled:e.isDeltaGeneratorEnabled,disableSyncDeltaSending:e.disableSyncDeltaSending,syncDeltaTimeout:e.syncDeltaTimeout}))).then((()=>gr.init(e.serviceUrl,n,r)));let s=e.sessionCreationOptions;s||(s={});const i=s.onServerAuthenticationStateChangeCallback;s.onServerAuthenticationStateChangeCallback=e=>{this._serverAuthenticationState=e,i&&i(e),this._bridge&&this.sendBridgeMessage({bridgeId:"*",docSessionId:"*",message:new k.wU({serverAuthenticationState:e})})};const a=s.onSessionClose;s.onSessionClose=e=>{this._sessionCloseReason=e.reason,a&&a(e),this._bridge&&this.sendBridgeMessage({bridgeId:"*",docSessionId:"*",message:e})};const c=s.onSessionConnect;s.onSessionConnect=(e,t,n,r)=>{c&&c(e,t,n,r),this._connectCallbacks.forEach(((o,s)=>{o(e,t,n,r)})),this._bridge&&(this._sessionConnectParams||(this._sessionConnectParams={authToken:r,isSeedingRequired:e,sessionUrl:t,origin:n},this.sendSessionInitResponseToBridge("*","*")),this.sendBridgeMessage({bridgeId:"*",docSessionId:"*",message:new k.gy({isSeedingRequired:e,sessionUrl:t,origin:n,authToken:r})}))};const l=s.onSessionReconnect;s.onSessionReconnect=()=>{l&&l(),this._bridge&&this.sendBridgeMessage({bridgeId:"*",docSessionId:"*",message:new k.lj})};const u=s.onSessionDisconnect;s.onSessionDisconnect=e=>{u&&u(e),this._bridge&&(this._sessionConnectParams=void 0,this.sendBridgeMessage({bridgeId:"*",docSessionId:"*",message:new k.eG({error:e})}))};const d=s.onClaimsChallengeCallback;s.onClaimsChallengeCallback=e=>{d&&d(e),this._claimsChallengeCallbacks.forEach((t=>{t(e)}))};const p=s.onSeedingStatusChangeCallback;s.onSeedingStatusChangeCallback=e=>{p&&p(e),this._seedingStatusChangeCallbacks.forEach((t=>{t(e)}))},this.createSession=()=>{this._runtimeInitPromise=o.then((()=>{const t=s&&s.docSessionId||e.sessionId;return Bn.createSession(Object.assign(Object.assign({},s),{docSessionId:t}))}))},this.createSession()},this.getSession=()=>this._runtimeInitPromise,this.setULSLogger=e=>{this.checkParametersAndThrow("setULSLogger",e&&e.ulsLogger),$r.setLogger(e.ulsLogger)},this.setSendOTelEventCallback=e=>{this.checkParametersAndPropertyAndThrow("setSendOTelEventCallback",e&&e.sendOTelEvent,this._sendOTelEventCallback),this._sendOTelEventCallback=e.sendOTelEvent},this.setSendDiagnosticTraceCallback=e=>{this.checkParametersAndPropertyAndThrow("setSendDiagnosticTraceCallback",e&&e.sendDiagnosticTraceCallback,this._sendDiagnosticTraceCallback),this._sendDiagnosticTraceCallback=e.sendDiagnosticTraceCallback},this.setRequestAuthTokenCallback=e=>{this.checkParametersAndPropertyAndThrow("setRequestAuthTokenCallback",e&&e.requestAuthTokenCallback,this._requestAuthTokenCallback),this._requestAuthTokenCallback=e.requestAuthTokenCallback},this.setIsFeatureEnabledCallback=e=>{this.checkParametersAndPropertyAndThrow("setIsFeatureEnabledCallback",e&&e.featureEnabledCallback,this._featureEnabledCallback),this._featureEnabledCallback=e.featureEnabledCallback},this.setIsChangeGateEnabledCallback=e=>{this.checkParametersAndPropertyAndThrow("setIsChangeGateEnabledCallback",e&&e.changeGateEnabledCallback,this._changeGateEnabledCallback),this._changeGateEnabledCallback=e.changeGateEnabledCallback},this.registerLocalWorkflow=e=>{const t="registerLocalWorkflow";this.checkParametersAndThrow(t,e&&e.workflow),this.checkRuntimeInitAndThrow(t),this._runtimeInitPromise.then((t=>{t.registerLocalWorkflow(e.workflow)}))},this.activateAnnotation=e=>{const t="activateAnnotation",n=this.checkParameters(t,e&&e.annotationType)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>{let n;return(e.config||e.handler||e.stateUpdateHandler)&&(n={config:e.config,callback:e.handler,apologyCallback:e.apologyHandler,stateUpdateCallback:e.stateUpdateHandler,forceReturnCachedAnnotations:e.forceReturnCachedAnnotations}),t.activateAnnotation(e.annotationType,n)}))},this.updateAnnotationConfig=e=>{const t="updateAnnotationConfig",n=this.checkParameters(t,e&&e.token&&e.config)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>{t.updateAnnotationConfig(e.token,e.config)}))},this.releaseAnnotation=e=>{const t="releaseAnnotation",n=this.checkParameters(t,e&&e.token)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>t.releaseAnnotation(e.token)))},this.submitOperation=e=>{const t="submitOperation";this.checkParametersAndThrow(t,e&&e.operation),this.checkRuntimeInit(t),this._runtimeInitPromise.then((t=>{t.submitOperation(e.operation,e.cv)}))},this.setSessionDataCallback=e=>{this.checkParametersAndPropertyAndThrow("setSessionDataCallback",e&&(e.sessionDataCallback||e.handler),this._setSessionDataCallback),e.sessionDataCallback?this._setSessionDataCallback=e.sessionDataCallback:e.handler&&(this._setSessionDataCallback=(t,n,r)=>e.handler(t,n))},this.setAnnotationResultCallback=e=>{const t="setAnnotationResultCallback";if(this.checkParametersAndThrow(t,e&&e.handler),this._annotationResultCallback){const e=`${t} already called`;$r.sendTraceTag(537401028,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,e)}this._annotationResultCallback=e.handler},this.setAnnotationState=e=>{const t="setAnnotationState";this.checkParametersAndThrow(t,e&&e.parentPath&&e.id&&e.value),this.checkRuntimeInitAndThrow(t),this._runtimeInitPromise.then((t=>{t.setAnnotationState(e.parentPath,e.id,e.value)}))},this.setAnnotationMetadata=e=>{const t="setAnnotationMetadata";this.checkParametersAndThrow(t,e&&e.parentPath&&e.id&&e.value),this.checkRuntimeInitAndThrow(t),this._runtimeInitPromise.then((t=>{t.setAnnotationMetadata(e.parentPath,e.id,e.value)}))},this.setInitSessionCallback=e=>{this.checkParametersAndPropertyAndThrow("setInitSessionCallback",e&&e.initSessionCallback,this._initSessionCallback),this._initSessionCallback=e.initSessionCallback},this.setSessionInitOverrideCallback=e=>{this.checkParametersAndPropertyAndThrow("setSessionInitOverrideCallback",e&&e.handler,this._sessionInitOverrideCallback),this._sessionInitOverrideCallback=e.handler},this.setMessageBridge=e=>{this.checkParametersAndPropertyAndThrow("setMessageBridge",e&&e.bridge,this._bridge),this._bridge=e.bridge,this._bridge.registerMessageReceivedCallback(this.onBridgeMessage.bind(this))},this.setMessageBridgeToALInterceptor=e=>{this.checkParametersAndPropertyAndThrow("setMessageBridgeToALInterceptor",e&&e.bridge,this._bridgeInterceptor),this._bridgeInterceptor=e.bridge,this._bridgeInterceptor.registerMessageReceivedCallback(this.onBridgeMessageFromInterceptor.bind(this))},this.forceReconnectSession=e=>{const t="forceReconnectSession",n=this.checkParameters(t,e)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>(e.excelServerParameters&&(this.excelServerParameters=e.excelServerParameters),t.forceReconnect())))},this.setSessionCloseCallback=e=>{const t="setSessionCloseCallback",n=this.checkParameters(t,e&&e.callback)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>{t.setSessionCloseCallback(e.callback)}))},this.setConnectCallback=e=>{const t=this.getSessionStateCallbackToken("connect");return e.callback&&this._connectCallbacks.set(t,e.callback),t},this.removeConnectionStateCallback=e=>!!this._connectCallbacks.has(e.token)&&(this._connectCallbacks.delete(e.token),!0),this.setSeedingStatusChangeCallback=e=>{this._seedingStatusChangeCallbacks.push(e.callback)},this.submitCustomMessage=e=>{const t="submitCustomMessage",n=this.checkParameters(t,e&&e.message)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>t.submitCustomMessage(e.message)))},this.submitLargeBinaryDataMessage=e=>{const t="submitLargeBinaryDataMessage",n=this.checkParameters(t,e&&e.message)||this.checkRuntimeInit(t);return n?Promise.reject(n):k.VR.typeGuard(e.message)?this._runtimeInitPromise.then((t=>t.submitLargeBinaryDataMessage(e.message))):Promise.reject(`${t} only supports MicroSyncMessage`)},this.requestBinaryDataForBlob=e=>{const t="requestBinaryDataForBlob",n=this.checkParameters(t,e&&e.blob)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((t=>t.requestBinaryDataForBlob(e.blob)))},this.closeSession=()=>{const e=this.checkRuntimeInit("closeSession");return e?Promise.reject(e):this._runtimeInitPromise.then((e=>{e.close()}))},this.startNewSession=()=>{if(!this.createSession){const e="startNewSession called before runtime init";throw $r.sendTraceTag(537408074,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,e),new Error(e)}this.createSession(),this._sessionCloseReason=null,this._sessionConnectParams=null},this.authenticateInteractive=()=>{const e=this.checkRuntimeInit("authenticateInteractive");return e?Promise.reject(e):this._runtimeInitPromise.then((e=>e.authenticateInteractive()))},this.getAnnotations=e=>{const t="getAnnotations",n=this.checkParameters(t,e&&e.request),r=this.checkRuntimeInit(t),o=n||r;return o?Promise.resolve({[Symbol.asyncIterator](){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),s=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof fo?Promise.resolve(n.value.v).then(c,l):u(s[0][2],n)}catch(e){u(s[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,(function*(){const e=n?A.zy.InvalidRequest:A.zy.RuntimeNotInitialized;$r.sendTraceTag(505952348,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,`ClientError. Code: ${e}, Error: ${null==o?void 0:o.message}`),yield yield fo({content:void 0,error:{clientError:{code:e,error:null==o?void 0:o.message}}})}))}}):this._runtimeInitPromise.then((t=>t.getAnnotations(e.request,e.cancellationToken)))},this.submit=e=>{const t="submit";this.checkParametersAndThrow(t,e&&e.inputSchema&&e.input),this.checkRuntimeInitAndThrow(t),this._runtimeInitPromise.then((()=>{gr.submit(e.inputSchema,e.input,e.correlationVector)}))},this.addEventHandler=e=>{this.checkParametersAndThrow("addEventHandler",e&&e.schemaName&&e.handler);const t=this._eventHandlerDictionary[e.schemaName]||[];t.push(e.handler),this._eventHandlerDictionary[e.schemaName]=t},this.removeEventHandler=e=>{this.checkParametersAndThrow("removeEventHandler",e&&e.schemaName&&e.handler);const t=this._eventHandlerDictionary[e.schemaName];if(!Array.isArray(t))return;const n=t.indexOf(e.handler);n>=0&&t.splice(n,1)},this.registerSimpleRemoteWorkflow=e=>{const t="registerSimpleRemoteWorkflow",n=this.checkParameters(t,e&&e.name&&e.lambdaRemote)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((()=>gr.registerSimpleRemoteWorkflow(e.name,e.lambdaBefore,e.lambdaRemote,e.lambdaAfter)))},this.registerSimpleLocalWorkflow=e=>{const t="registerSimpleLocalWorkflow",n=this.checkParameters(t,e&&e.name&&e.lambda)||this.checkRuntimeInit(t);return n?Promise.reject(n):this._runtimeInitPromise.then((()=>gr.registerSimpleLocalWorkflow(e.name,e.lambda)))},this.registerReduceWorkflow=e=>Promise.resolve(),this.registerSchemas=e=>Promise.resolve(),this.onResult=(e,t,n,r)=>{const o=this._eventHandlerDictionary[n];if(o)for(const s of o)s&&s({inputSchema:e,input:t,outputSchema:n,output:r})},this.onAnnotationResult=(e,t)=>{this._annotationResultCallback&&this._annotationResultCallback(e,t)},this.requestAuthToken=e=>this._requestAuthTokenCallback?(this._requestAuthTokenCallback(e)||Promise.resolve("")).then((e=>{const t=e||"";return Promise.resolve({Token:t})})):Promise.resolve({Token:""}),this.sendTelemetryEvent=(e,t,n,r,o,s,i,a)=>{this._sendOTelEventCallback&&this._sendOTelEventCallback(((e,t,n,r,o,s,i)=>{const a={telemetryProperties:{ariaTenantToken:e,nexusTenantToken:-1},eventName:t.split("_").join("."),dataFields:ho(n),eventFlags:{dataCategories:s,diagnosticLevel:i,samplingPolicy:1}};return r&&(a.eventContract={name:r,dataFields:ho(o,r.split(".").slice(-1)[0])}),a})(e,t,n,r,o,i,a))},this.sendDiagnosticTrace=(e,t,n)=>{this._sendDiagnosticTraceCallback&&this._sendDiagnosticTraceCallback(e,t,n)},this.isFeatureEnabled=(e,t)=>{if(!e)return Promise.resolve(!1);if(0===e.indexOf("Microsoft.Office.AugLoop.")&&this._featureEnabledCallback){const t=e.slice(25);return Promise.resolve(this._featureEnabledCallback(t)||this._featureEnabledCallback(e))}return Promise.resolve(!1)},this.isChangeGateEnabled=e=>e&&this._changeGateEnabledCallback?Promise.resolve(this._changeGateEnabledCallback(e)):Promise.resolve(!1),this.setSessionData=(e,t,n)=>{this._setSessionDataCallback&&this._setSessionDataCallback(e,t,n)},this.overrideSessionInitMessage=e=>this._sessionInitOverrideCallback?this._sessionInitOverrideCallback(e):0===e.clientMetadata.appName.indexOf("Excel")&&this.excelServerParameters?this.overrideExcelSessionInitMessage(e):0===e.clientMetadata.appName.indexOf("PowerPoint")&&this.powerpointParameters?this.overridePowerPointSessionInitMessage(e):e,this.overrideExcelSessionInitMessage=e=>{const t={cluster:this.excelServerParameters.wacCluster,restUrl:this.excelServerParameters.ecsRestUrl,ecsId:this.excelServerParameters.ecsSessionId,ecsOperationUrl:this.excelServerParameters.ecsOperationUrl,workbookMetadataVersion:this.excelServerParameters.metadataVersion,serverEventVersion:this.excelServerParameters.serverEventVersion,permissionFlags:this.excelServerParameters.permissionFlags,configurations:this.excelServerParameters.configurations,collabUserListVersion:this.excelServerParameters.userListVersion,collabStateId:this.excelServerParameters.collabStateId,accessToken:this.excelServerParameters.accessToken,accessTokenTTL:this.excelServerParameters.accessTokenTTL,supportCustomMessages:this.excelServerParameters.supportCustomMessages};for(const n of Object.keys(e))t[n]=e[n];return new lo(t)},this.overridePowerPointSessionInitMessage=e=>{const t={downloadUrl:this.powerpointParameters.downloadUrl,getItemsEndPoint:this.powerpointParameters.getItemsEndPoint,documentOpenType:this.powerpointParameters.documentOpenType};for(const n of Object.keys(e))t[n]=e[n];return new uo(t)},this.onInitSession=()=>this._initSessionCallback?this._initSessionCallback():Promise.resolve(),this.checkParameters=(e,t)=>{if(!t){const t=`${e} called with invalid parameters`;return $r.sendTraceTag(537408075,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,t),new Error(t)}},this.checkParametersAndThrow=(e,t)=>{const n=this.checkParameters(e,t);if(n)throw n},this.checkParametersAndPropertyAndThrow=(e,t,n)=>{if(this.checkParametersAndThrow(e,t),n){const t=`${e} already called`;throw $r.sendTraceTag(537408076,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,t),new Error(t)}},this.checkRuntimeInit=e=>{if(!this._runtimeInitPromise){const t=`${e} called before runtime init`;return $r.sendTraceTag(537408077,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,t),new Error(t)}},this.checkRuntimeInitAndThrow=e=>{const t=this.checkRuntimeInit(e);if(t)throw t},this.sendBridgeMessage=e=>{this._bridge&&(e.seq=this._bridgeMessageSequenceId++,this._bridge.sendMessage(JSON.stringify(new k.vG(e))))},this.onBridgeMessage=e=>{null!=this._bridgeInterceptor?this._bridgeInterceptor.sendMessage(e):this.handleReceivedBridgeMessage(e)},this.sendSessionInitResponseToBridge=(e,t)=>{if(this._sessionConnectParams){const n=this._sessionConnectParams.sessionUrl;this.sendBridgeMessage({bridgeId:e,docSessionId:t,message:new k.uN({origin:this._sessionConnectParams.origin,sessionKey:n.split("/").pop(),sessionUrlBase:n.split("/").slice(0,-1).join("/"),anonymousToken:this._sessionConnectParams.authToken})})}},this.handleReceivedBridgeMessage=e=>{try{const{bridgeId:t,docSessionId:n,message:r}=JSON.parse(e),o=E.h.getTypeNameFor(r);if($r.sendTraceTag(509092291,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,`Received ${o}`),null!=this._sessionCloseReason&&this.sendBridgeMessage({bridgeId:"*",docSessionId:"*",message:new k.w9({reason:this._sessionCloseReason})}),k.n4.typeGuard(r)){const e=this.activateAnnotation({annotationType:r.annotationType,config:r.config,handler:(e,o)=>{this.sendBridgeMessage({bridgeId:t,docSessionId:n,message:new k.B_({annotationType:r.annotationType,ops:[e],cv:o})})},forceReturnCachedAnnotations:r.forceReturnCachedAnnotations}).then((e=>new k.PY({messageId:r.messageId,token:e.token})));this.sendResponseAcrossBridge(e,r,t,n)}else if(Me.typeGuard(r))this.handleGetAnnotationsRequestMessage(t,n,r);else if(k.Tb.typeGuard(r)){for(const e of r.ops)this.submitOperation({operation:e,cv:r.cv});this.sendBridgeMessage({bridgeId:t,docSessionId:n,response:new k.YK({messageId:r.messageId})}),$r.sendTraceTag(509092288,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,`Responded to ${o}`)}else if(k.GA.typeGuard(r)){const e=this.releaseAnnotation({token:r.token}).then((e=>new k.Qq({messageId:r.messageId,lastRelease:e})));this.sendResponseAcrossBridge(e,r,t,n)}else if(k.g$.typeGuard(r))this.submitCustomMessage({message:r.customMessage}).then((e=>{k.YK.typeGuard(e)?(e.messageId=r.messageId,$r.sendTraceTag(508432467,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,`Responded to ${o}`)):$r.sendTraceTag(508420946,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,"Unexpeced response type from SubmitCustomMessage"),this.sendBridgeMessage({bridgeId:t,docSessionId:n,response:e})})).catch((e=>{$r.sendTraceTag(508436636,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,e.message),this.sendBridgeMessage({bridgeId:t,docSessionId:n,response:new k._p({messageId:r.messageId,error:e.message})})}));else if(k.eE.typeGuard(r))this.sendSessionInitResponseToBridge(t,n),this.sendBridgeMessage({bridgeId:t,docSessionId:n,message:new k.wU({serverAuthenticationState:this._serverAuthenticationState})});else if(E.h.matchesTypesFor(r,[jr.i2.getTypeName()])){const e=this._runtimeInitPromise.then((e=>e.authenticateInteractive())).then((()=>new k.YK({messageId:r.messageId})));this.sendResponseAcrossBridge(e,r,t,n)}else if(E.h.matchesTypesFor(r,[jr.og.getTypeName()])){const e=(e=>{this.sendBridgeMessage({bridgeId:t,docSessionId:n,message:new jr.U8({messageId:r.messageId,seedingStatusChangeMessage:e})})}).bind(this);this._runtimeInitPromise.then((t=>{t.setSeedingStatusChangeCallback(e)})).catch((e=>{$r.sendTraceTag(506474634,Yr.msoulscat_Wac_BrowserGeneral,Jr.Warning,`RuntimeInitPromiseException for message with Id ${r.messageId}`)}))}else if(E.h.matchesTypesFor(r,[jr.tj.getTypeName()])){const e=(e=>{this.sendBridgeMessage({bridgeId:t,docSessionId:n,message:new jr.Td({messageId:r.messageId,claimsChallengeMessage:e})})}).bind(this);this._runtimeInitPromise.then((t=>{t.setClaimsChallengeCallback(e)})).catch((e=>{$r.sendTraceTag(506987159,Yr.msoulscat_Wac_BrowserGeneral,Jr.Warning,`RuntimeInitPromiseException for message with Id ${r.messageId}`)}))}else $r.sendTraceTag(509092259,Yr.msoulscat_Wac_BrowserGeneral,Jr.Warning,`Did not respond to ${o} with Id ${r.messageId}`)}catch(e){$r.sendTraceTag(509092363,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,e.message),this.sendBridgeMessage({bridgeId:"unknown",docSessionId:"unknown",response:new k._p({messageId:"unknown",error:e.message})})}},this.handleGetAnnotationsRequestMessage=(e,t,n)=>{const r={request:{annotationType:n.annotationTypes,sourceInfo:n.sourceInfo,configs:n.configs,transientItems:n.transientItems,maxDelayMs:n.maxDelayMs,tryResolveUpstreamDependencies:n.tryResolveUpstreamDependencies,cv:n.cv}};this.getAnnotations(r).then((r=>{var o,s,i,a,c,l,u;return a=this,c=void 0,u=function*(){var a,c,l,u,d,p,f;try{for(o=!0,s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(r);!(a=(i=yield s.next()).done);o=!0){u=i.value,o=!1;const r=u,s=new xe({content:r.content,errorInfo:null===(d=r.error)||void 0===d?void 0:d.serviceError,warningInfo:null===(p=r.warning)||void 0===p?void 0:p.serviceError}),a=new jr.wR({messageId:n.messageId,serverResponse:JSON.stringify(s),clientError:null===(f=r.error)||void 0===f?void 0:f.clientError,finalResponse:r.finalResponse});this.sendResponseAcrossBridge(Promise.resolve(a),n,e,t)}}catch(e){c={error:e}}finally{try{o||a||!(l=s.return)||(yield l.call(s))}finally{if(c)throw c.error}}},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function r(e){try{o(u.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((u=u.apply(a,c||[])).next())}))}))},this.sendResponseAcrossBridge=(e,t,n,r)=>{e.catch((e=>new k._p({messageId:t.messageId,error:e.message}))).then((e=>{this.sendBridgeMessage({bridgeId:n,docSessionId:r,response:e}),$r.sendTraceTag(508937624,Yr.msoulscat_Wac_BrowserGeneral,Jr.Info,`Responded to ${E.h.getTypeNameFor(t)}`)})).catch((e=>{$r.sendTraceTag(508937623,Yr.msoulscat_Wac_BrowserGeneral,Jr.Error,e.message)}))},this.onBridgeMessageFromInterceptor=e=>{this.handleReceivedBridgeMessage(e)}}getSessionStateCallbackToken(e){return e+"-callback-"+this._connectionStateCallbackToken++}}class yo{constructor(e,t){var n,r,o,s,i,a;this.kind=Ye.wC.SingleItem,this.isStateful=!1,this.id=e,t&&(this.inputTypes=null!==(n=t.inputTypes)&&void 0!==n?n:this.inputTypes,this.outputTypes=null!==(r=t.outputTypes)&&void 0!==r?r:this.outputTypes,this.isStateful=null!==(o=t.isStateful)&&void 0!==o?o:this.isStateful,this.requestedContextTypesRules=null!==(s=t.requestedContextTypesRules)&&void 0!==s?s:this.requestedContextTypesRules,this.definitionOverrideTargetWorkflows=null!==(i=t.definitionOverrideTargetWorkflows)&&void 0!==i?i:this.definitionOverrideTargetWorkflows,this.correlatedSignals=0!==(null===(a=t.correlatedSignals)||void 0===a?void 0:a.length)?t.correlatedSignals:this.correlatedSignals)}static create(e){return new yo(e)}setInputTypes(e){return this.inputTypes=B(e),this}setOutputTypes(e){return this.outputTypes=B(e),this}setStateful(){return this.isStateful=!0,this}setRequestedContexts(e){var t;return this.requestedContextTypesRules=(null!==(t=this.requestedContextTypesRules)&&void 0!==t?t:this.requestedContextTypesRules=[]).concat(e),this}setLambdaType(e){return this.factory=e,this}setDefinitionOverrideTargetWorkflows(e){return this.definitionOverrideTargetWorkflows=e,this}setCorrelatedSignals(e){return 0!==e.length&&(this.correlatedSignals=e),this}setLambda(e,t){return this.factory=()=>({init:t||(e=>Promise.resolve()),execute:e,dispose:()=>{}}),this}validateOptions(){return{isValid:!0}}}class vo{constructor(e){E.h.assign(vo,this,e)}static getTypeName(){return"AugLoop_Chat_ChatsHolder"}static getBaseTypes(){return["AugLoop_Core_TileGroup"]}static typeGuard(e){return E.h.matchesTypesFor(e,[vo.getTypeName()])}}vo.H_={T_:vo.getTypeName(),B_:vo.getBaseTypes()};class wo{constructor(e){E.h.assign(wo,this,e)}static getTypeName(){return"AugLoop_Chat_Chat"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[wo.getTypeName()])}}wo.H_={T_:wo.getTypeName(),B_:wo.getBaseTypes()};class bo{constructor(e){E.h.assign(bo,this,e)}static getTypeName(){return"AugLoop_Chat_MessagesHolder"}static getBaseTypes(){return["AugLoop_Core_TileGroup"]}static typeGuard(e){return E.h.matchesTypesFor(e,[bo.getTypeName()])}}bo.H_={T_:bo.getTypeName(),B_:bo.getBaseTypes()};class So{constructor(e){E.h.assign(So,this,e)}static getTypeName(){return"AugLoop_Chat_ChatMessage"}static getBaseTypes(){return[]}static typeGuard(e){return E.h.matchesTypesFor(e,[So.getTypeName()])}}So.H_={T_:So.getTypeName(),B_:So.getBaseTypes()};class To{constructor(e){E.h.assign(To,this,e)}static getTypeName(){return"AugLoop_Chat_TextChatMessage"}static getBaseTypes(){return["AugLoop_Chat_ChatMessage"]}static typeGuard(e){return E.h.matchesTypesFor(e,[To.getTypeName()])}}To.H_={T_:To.getTypeName(),B_:To.getBaseTypes()};class Co{static create(e){const t=new Co(e);return t.activateAnnotation(e.responseType).then((()=>t))}constructor(e){this.config=e,this.nextMessageId=0,this.responseCallbacks=new Map;const t=["session","chats"],n=Nt(),r="messages",o=[...t,n];this.messagesPath=[...o,r],this.config.session.submitOperations([new M.Xr({parentPath:t,items:[{id:n,body:e.chat}]}),new M.Xr({parentPath:o,items:[{id:r,body:new bo}]})])}send(e,t){const n=""+this.nextMessageId++;this.responseCallbacks.set(n,t),this.config.session.submitOperations([new M.Xr({parentPath:this.messagesPath,items:[{id:n,body:e}]})])}close(){return this.config.session.releaseAnnotation(this.activatedAnnotationToken)}activateAnnotation(e){return this.config.session.activateAnnotation(e,{callback:e=>{if(M.Xr.typeGuard(e)&&this.isUnderSubtree(e.parentPath,this.messagesPath))for(const t of e.items){const n=e.parentPath[e.parentPath.length-1],r=this.responseCallbacks.get(n);r&&(r(t.body),this.responseCallbacks.delete(n))}}}).then((({token:e})=>{this.activatedAnnotationToken=e}))}isUnderSubtree(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}}class _o{constructor(){this._augLoopRuntimeManager=new mo}getAugLoopRuntimeManager(){return this._augLoopRuntimeManager}createSingleItemWorkflow(e){return yo.create(e)}createChatHelper(e){return this.getAugLoopRuntimeManager().getSession().then((t=>Co.create(Object.assign({session:t},e))))}createAugLoopRuntimeManager(){return new mo}}const Io=new _o;class ko extends E.h{constructor(e){super(),this.Id=null,this.Id=e}}class Ao extends ko{constructor(e,t){super(e),this.Content=null,this.Content=t}}var Eo,Ro,Oo,Po,Mo,xo;!function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.Slide=2]="Slide"}(Eo||(Eo={}));class Do{constructor(e,t,n,r,o,s,i,a,c){this.Start=0,this.Length=0,this.FontWeight=Po.DontCare,this.Italic=!1,this.Underline=Oo.None,this.Capitalization=Ro.NoCaps,this.FontSize=0,this.Color=0,this.StyleName=null,this.Start=e,this.Length=t,this.FontWeight=n,this.Italic=r,this.Underline=o,this.Capitalization=s,this.FontSize=i,this.Color=a,this.StyleName=c}}class No extends Ao{constructor(e,t,n){super(e,t),this.Language=null,this.RevisionId=null,this.RevisionSequence=0,this.Indentation=0,this.OutlineLevel=0,this.ListType=Mo.Number,this.Alignment=xo.Left,this.FormattedRanges=null,this.Language=n}}!function(e){e[e.NoCaps=0]="NoCaps",e[e.SmallCaps=1]="SmallCaps",e[e.AllCaps=2]="AllCaps",e[e.AllPetiteCaps=3]="AllPetiteCaps",e[e.PetiteCaps=4]="PetiteCaps",e[e.Unicase=5]="Unicase",e[e.Titling=6]="Titling",e[e.Other=7]="Other"}(Ro||(Ro={})),function(e){e[e.None=0]="None",e[e.Words=1]="Words",e[e.SingleLine=2]="SingleLine",e[e.DoubleLine=3]="DoubleLine",e[e.HeavyLine=4]="HeavyLine",e[e.DottedLine=5]="DottedLine",e[e.DottedHeavyLine=6]="DottedHeavyLine",e[e.DashLine=7]="DashLine",e[e.DashHeavyLine=8]="DashHeavyLine",e[e.DashLongLine=9]="DashLongLine",e[e.DashLongHeavyLine=10]="DashLongHeavyLine",e[e.DotDashLine=11]="DotDashLine",e[e.DotDashHeavyLine=12]="DotDashHeavyLine",e[e.DotDotDashLine=13]="DotDotDashLine",e[e.DotDotDashHeavyLine=14]="DotDotDashHeavyLine",e[e.WavyLine=15]="WavyLine",e[e.WavyHeavyLine=16]="WavyHeavyLine",e[e.WavyDoubleLine=17]="WavyDoubleLine"}(Oo||(Oo={})),function(e){e[e.DontCare=0]="DontCare",e[e.Thin=1]="Thin",e[e.ExtraLight=2]="ExtraLight",e[e.Light=3]="Light",e[e.Normal=4]="Normal",e[e.Medium=5]="Medium",e[e.SemiBold=6]="SemiBold",e[e.Bold=7]="Bold",e[e.ExtraBold=8]="ExtraBold",e[e.Heavy=9]="Heavy"}(Po||(Po={})),function(e){e[e.Number=0]="Number",e[e.Bullet=1]="Bullet",e[e.Lim=13]="Lim",e[e.Nil=14]="Nil",e[e.Any=15]="Any",e[e.NoList=16]="NoList",e[e.Invalid=42]="Invalid"}(Mo||(Mo={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center",e[e.Justified=3]="Justified",e[e.Other=4]="Other",e[e.None=5]="None"}(xo||(xo={}));class Lo{}class Fo{constructor(e,t){this.type=e,this.data=t}}class Bo{constructor(e,t,n){this.exceptionType=e,this.message=t,this.data=n}static exceptionTypeToString(e){switch(e){case 0:return"Unknown";case 1:return"NoOutput";case 2:return"Authentication";case 3:return"JoinTimedOut";case 4:return"LambdaThrow";case 5:return"LambdaErrorCallback";default:return"Invalid Error Type"}}static parseExceptionData(e){let t="";try{t=String.fromCharCode.apply(null,e)}catch(e){return"Failed to decode exception data:"+e.toString()}return t}}class Wo{constructor(e,t){this._proto=e,this._schemas=t}get proto(){return this._proto}get schemas(){return this._schemas}registerSchemas(e){return e.registerSchemas({proto:this.proto,schemaNames:this.schemas})}}class Uo{constructor(e,t){this._tileName=e,this._tileSchema=t,this._addedSchemaName=e+"Added",this._attachedSchemaName=e+"Attached",this._changedSchemaName=e+"Changed",this._deletedSchemaName=e+"Deleted"}get tileName(){return this._tileName}get tileSchema(){return this._tileSchema}get addedSchemaName(){return this._addedSchemaName}get attachedSchemaName(){return this._attachedSchemaName}get changedSchemaName(){return this._changedSchemaName}get deletedSchemaName(){return this._deletedSchemaName}registerSchemas(e){const t='syntax="proto3";message '+this.addedSchemaName+" "+this.tileSchema+"; message "+this.changedSchemaName+" "+this.tileSchema+"; message "+this.attachedSchemaName+" "+this.tileSchema+"; message "+this.deletedSchemaName+" "+this.tileSchema+"; ",n=[this.addedSchemaName,this.changedSchemaName,this.attachedSchemaName,this.deletedSchemaName];return e.registerSchemas({proto:t,schemaNames:n})}}},30664:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){e[e.NotAuthenticated=0]="NotAuthenticated",e[e.Pending=1]="Pending",e[e.Authenticated=2]="Authenticated",e[e.WacUserInfoAuthenticated=3]="WacUserInfoAuthenticated",e[e.TokenMissingInteractionRequired=4]="TokenMissingInteractionRequired"}(r||(r={}))},28383:(e,t,n)=>{"use strict";n.d(t,{Td:()=>s,U8:()=>a,i2:()=>c,og:()=>i,tj:()=>o,wR:()=>l});var r=n(48690);class o{constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SetClaimsChallengeCallbackMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_FireClaimsChallengeCallbackResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SetSeedingStatusChangeCallbackMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()};class a{constructor(e){r.h.assign(a,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_FireSeedingStatusChangeCallbackResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[a.getTypeName()])}}a.H_={T_:a.getTypeName(),B_:a.getBaseTypes()};class c{constructor(e){r.h.assign(c,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_InteractiveAuthMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[c.getTypeName()])}}c.H_={T_:c.getTypeName(),B_:c.getBaseTypes()};class l{constructor(e){r.h.assign(l,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_GetAnnotationsResponseBridgeMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[l.getTypeName()])}}l.H_={T_:l.getTypeName(),B_:l.getBaseTypes()}},38897:(e,t,n)=>{"use strict";n.d(t,{$j:()=>I,B_:()=>N,D0:()=>F,F_:()=>p,Fz:()=>$,GA:()=>k,Gs:()=>V,HZ:()=>G,LQ:()=>m,Nn:()=>T,Ol:()=>E,PR:()=>W,PY:()=>_,QB:()=>o,Qq:()=>A,Re:()=>c,Sv:()=>z,Sy:()=>te,TV:()=>U,Tb:()=>P,VR:()=>M,Wx:()=>l,XE:()=>oe,YK:()=>s,Yp:()=>a,ZH:()=>D,Zy:()=>v,_4:()=>R,_p:()=>d,ah:()=>B,dx:()=>H,eE:()=>h,eG:()=>K,fZ:()=>x,fr:()=>q,g$:()=>Z,gy:()=>Q,i:()=>i,iU:()=>Y,kd:()=>L,l0:()=>O,lZ:()=>re,lj:()=>X,n4:()=>C,o5:()=>ne,p3:()=>u,pr:()=>w,ru:()=>f,ry:()=>y,uN:()=>g,vG:()=>J,w9:()=>b,wU:()=>ee,z_:()=>S,zk:()=>j});var r=n(48690);class o{constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Message"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_Response"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_StreamingResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()};class a{constructor(e){r.h.assign(a,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_StreamingRequest"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[a.getTypeName()])}}a.H_={T_:a.getTypeName(),B_:a.getBaseTypes()};class c{constructor(e){r.h.assign(c,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_ExecutionError"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[c.getTypeName()])}}c.H_={T_:c.getTypeName(),B_:c.getBaseTypes()};class l{constructor(e){r.h.assign(l,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_GetAnnotationsClientError"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[l.getTypeName()])}}l.H_={T_:l.getTypeName(),B_:l.getBaseTypes()};class u{constructor(e){r.h.assign(u,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_GetAnnotationsErrorInfo"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[u.getTypeName()])}}u.H_={T_:u.getTypeName(),B_:u.getBaseTypes()};class d{constructor(e){r.h.assign(d,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_ErrorResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[d.getTypeName()])}}d.H_={T_:d.getTypeName(),B_:d.getBaseTypes()};class p{constructor(e){r.h.assign(p,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_TimeoutErrorResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_ErrorResponse","AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[p.getTypeName()])}}p.H_={T_:p.getTypeName(),B_:p.getBaseTypes()};class f{constructor(e){r.h.assign(f,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_RateLimitErrorResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_ErrorResponse","AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[f.getTypeName()])}}f.H_={T_:f.getTypeName(),B_:f.getBaseTypes()};class h{constructor(e){r.h.assign(h,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionInitMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[h.getTypeName()])}}h.H_={T_:h.getTypeName(),B_:h.getBaseTypes()};class g{constructor(e){r.h.assign(g,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionInitResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[g.getTypeName()])}}g.H_={T_:g.getTypeName(),B_:g.getBaseTypes()};class m{constructor(e){r.h.assign(m,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionLongPollMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[m.getTypeName()])}}m.H_={T_:m.getTypeName(),B_:m.getBaseTypes()};class y{constructor(e){r.h.assign(y,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionLongPollResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[y.getTypeName()])}}y.H_={T_:y.getTypeName(),B_:y.getBaseTypes()};class v{constructor(e){r.h.assign(v,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionCloseReason"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[v.getTypeName()])}}v.H_={T_:v.getTypeName(),B_:v.getBaseTypes()};class w{constructor(e){r.h.assign(w,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionSwapOnClose"}static getBaseTypes(){return["AugLoop_Session_Protocol_SessionCloseReason"]}static typeGuard(e){return r.h.matchesTypesFor(e,[w.getTypeName()])}}w.H_={T_:w.getTypeName(),B_:w.getBaseTypes()};class b{constructor(e){r.h.assign(b,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionCloseMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[b.getTypeName()])}}b.H_={T_:b.getTypeName(),B_:b.getBaseTypes()};class S{constructor(e){r.h.assign(S,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_CacheDumpRequestMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[S.getTypeName()])}}S.H_={T_:S.getTypeName(),B_:S.getBaseTypes()};class T{constructor(e){r.h.assign(T,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_CacheDumpRequestResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[T.getTypeName()])}}T.H_={T_:T.getTypeName(),B_:T.getBaseTypes()};class C{constructor(e){r.h.assign(C,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationActivationMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[C.getTypeName()])}}C.H_={T_:C.getTypeName(),B_:C.getBaseTypes()};class _{constructor(e){r.h.assign(_,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationActivationResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[_.getTypeName()])}}_.H_={T_:_.getTypeName(),B_:_.getBaseTypes()};class I{constructor(e){r.h.assign(I,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationResultStateMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[I.getTypeName()])}}I.H_={T_:I.getTypeName(),B_:I.getBaseTypes()};class k{constructor(e){r.h.assign(k,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationReleaseMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[k.getTypeName()])}}k.H_={T_:k.getTypeName(),B_:k.getBaseTypes()};class A{constructor(e){r.h.assign(A,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationReleaseResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[A.getTypeName()])}}A.H_={T_:A.getTypeName(),B_:A.getBaseTypes()};class E{constructor(e){r.h.assign(E,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationConfigUpdateMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[E.getTypeName()])}}E.H_={T_:E.getTypeName(),B_:E.getBaseTypes()};class R{constructor(e){r.h.assign(R,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationConfigUpdateResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[R.getTypeName()])}}R.H_={T_:R.getTypeName(),B_:R.getBaseTypes()};class O{constructor(e){r.h.assign(O,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_BatchedMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[O.getTypeName()])}}O.H_={T_:O.getTypeName(),B_:O.getBaseTypes()};class P{constructor(e){r.h.assign(P,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SyncMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[P.getTypeName()])}}P.H_={T_:P.getTypeName(),B_:P.getBaseTypes()};class M{constructor(e){r.h.assign(M,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_MicroSyncMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[M.getTypeName()])}}M.H_={T_:M.getTypeName(),B_:M.getBaseTypes()};class x{constructor(e){r.h.assign(x,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SyncResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[x.getTypeName()])}}x.H_={T_:x.getTypeName(),B_:x.getBaseTypes()};class D{constructor(e){r.h.assign(D,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionDeleteMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[D.getTypeName()])}}D.H_={T_:D.getTypeName(),B_:D.getBaseTypes()};class N{constructor(e){r.h.assign(N,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_AnnotationResultsMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_SyncMessage","AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[N.getTypeName()])}}N.H_={T_:N.getTypeName(),B_:N.getBaseTypes()};class L{constructor(e){r.h.assign(L,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_TokenProvisionMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[L.getTypeName()])}}L.H_={T_:L.getTypeName(),B_:L.getBaseTypes()};class F{constructor(e){r.h.assign(F,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_TokenFailureMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[F.getTypeName()])}}F.H_={T_:F.getTypeName(),B_:F.getBaseTypes()};class B{constructor(e){r.h.assign(B,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_TokenProvisionResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[B.getTypeName()])}}B.H_={T_:B.getTypeName(),B_:B.getBaseTypes()};class W{constructor(e){r.h.assign(W,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_KeepAlive"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[W.getTypeName()])}}W.H_={T_:W.getTypeName(),B_:W.getBaseTypes()};class U{constructor(e){r.h.assign(U,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_WorkflowGraphInitMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[U.getTypeName()])}}U.H_={T_:U.getTypeName(),B_:U.getBaseTypes()};class G{constructor(e){r.h.assign(G,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_WorkflowGraphInitResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[G.getTypeName()])}}G.H_={T_:G.getTypeName(),B_:G.getBaseTypes()};class V{constructor(e){r.h.assign(V,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_WorkflowExecutionCompleteMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_SyncMessage","AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[V.getTypeName()])}}V.H_={T_:V.getTypeName(),B_:V.getBaseTypes()};class q{constructor(e){r.h.assign(q,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SeedingStatusChangeMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[q.getTypeName()])}}q.H_={T_:q.getTypeName(),B_:q.getBaseTypes()};class H{constructor(e){r.h.assign(H,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_OAuth2InitV2Message"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[H.getTypeName()])}}H.H_={T_:H.getTypeName(),B_:H.getBaseTypes()};class j{constructor(e){r.h.assign(j,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_OAuth2InitV2Response"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[j.getTypeName()])}}j.H_={T_:j.getTypeName(),B_:j.getBaseTypes()};class z{constructor(e){r.h.assign(z,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_OAuth2InitMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[z.getTypeName()])}}z.H_={T_:z.getTypeName(),B_:z.getBaseTypes()};class ${constructor(e){r.h.assign($,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_OAuth2InitResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[$.getTypeName()])}}$.H_={T_:$.getTypeName(),B_:$.getBaseTypes()};class Y{constructor(e){r.h.assign(Y,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_OAuth2CallbackMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[Y.getTypeName()])}}Y.H_={T_:Y.getTypeName(),B_:Y.getBaseTypes()};class J{constructor(e){r.h.assign(J,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_BridgeMessage"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[J.getTypeName()])}}J.H_={T_:J.getTypeName(),B_:J.getBaseTypes()};class Q{constructor(e){r.h.assign(Q,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionConnectMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[Q.getTypeName()])}}Q.H_={T_:Q.getTypeName(),B_:Q.getBaseTypes()};class K{constructor(e){r.h.assign(K,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionDisconnectMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[K.getTypeName()])}}K.H_={T_:K.getTypeName(),B_:K.getBaseTypes()};class X{constructor(e){r.h.assign(X,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SessionReconnectMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[X.getTypeName()])}}X.H_={T_:X.getTypeName(),B_:X.getBaseTypes()};class Z{constructor(e){r.h.assign(Z,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_SubmittedCustomMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[Z.getTypeName()])}}Z.H_={T_:Z.getTypeName(),B_:Z.getBaseTypes()};class ee{constructor(e){r.h.assign(ee,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_ServerAuthenticationStateChangeMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[ee.getTypeName()])}}ee.H_={T_:ee.getTypeName(),B_:ee.getBaseTypes()};class te{constructor(e){r.h.assign(te,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_ClaimsChallengeMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[te.getTypeName()])}}te.H_={T_:te.getTypeName(),B_:te.getBaseTypes()};class ne{constructor(e){r.h.assign(ne,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_BlobUploadResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[ne.getTypeName()])}}ne.H_={T_:ne.getTypeName(),B_:ne.getBaseTypes()};class re{constructor(e){r.h.assign(re,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_GetPluginsMetadataMessage"}static getBaseTypes(){return["AugLoop_Session_Protocol_Message"]}static typeGuard(e){return r.h.matchesTypesFor(e,[re.getTypeName()])}}re.H_={T_:re.getTypeName(),B_:re.getBaseTypes()};class oe{constructor(e){r.h.assign(oe,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_GetPluginsMetadataResponse"}static getBaseTypes(){return["AugLoop_Session_Protocol_Response"]}static typeGuard(e){return r.h.matchesTypesFor(e,[oe.getTypeName()])}}oe.H_={T_:oe.getTypeName(),B_:oe.getBaseTypes()}},51467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnnotationActivationMessage:()=>s.n4,AnnotationActivationResponse:()=>s.PY,AnnotationConfigUpdateMessage:()=>s.Ol,AnnotationConfigUpdateResponse:()=>s._4,AnnotationReleaseMessage:()=>s.GA,AnnotationReleaseResponse:()=>s.Qq,AnnotationResultState:()=>o.K7,AnnotationResultStateMessage:()=>s.$j,AnnotationResultsMessage:()=>s.B_,BatchedMessage:()=>s.l0,BlobUploadResponse:()=>s.o5,BridgeMessage:()=>s.vG,CacheDumpRequestMessage:()=>s.z_,CacheDumpRequestResponse:()=>s.Nn,ClaimsChallengeMessage:()=>s.Sy,ErrorResponse:()=>s._p,ErrorResponseCode:()=>o.xv,ExecutionError:()=>s.Re,ExecutionErrorCode:()=>o.Qn,FireClaimsChallengeCallbackResponse:()=>a.Td,FireSeedingStatusChangeCallbackResponse:()=>a.U8,GetAnnotationsClientError:()=>s.Wx,GetAnnotationsClientErrorCode:()=>o.zy,GetAnnotationsErrorInfo:()=>s.p3,GetAnnotationsResponseBridgeMessage:()=>a.wR,GetPluginsMetadataMessage:()=>s.lZ,GetPluginsMetadataResponse:()=>s.XE,InteractiveAuthMessage:()=>a.i2,KeepAlive:()=>s.PR,Message:()=>s.QB,MessageEndpoint:()=>r.N0,MicroSyncMessage:()=>s.VR,OAuth2CallbackMessage:()=>s.iU,OAuth2InitMessage:()=>s.Sv,OAuth2InitResponse:()=>s.Fz,OAuth2InitV2Message:()=>s.dx,OAuth2InitV2Response:()=>s.zk,ProcessMessageErrorReason:()=>r.N2,RateLimitErrorResponse:()=>s.ru,Response:()=>s.YK,SeedingProgressCode:()=>o.e9,SeedingStatusChangeMessage:()=>s.fr,SendMessageErrorReason:()=>r.Ef,ServerAuthenticationState:()=>i.f,ServerAuthenticationStateChangeMessage:()=>s.wU,SessionCloseMessage:()=>s.w9,SessionCloseReason:()=>s.Zy,SessionConnectMessage:()=>s.gy,SessionDeleteMessage:()=>s.ZH,SessionDisconnectMessage:()=>s.eG,SessionInitMessage:()=>s.eE,SessionInitResponse:()=>s.uN,SessionLongPollMessage:()=>s.LQ,SessionLongPollMessageType:()=>o.PO,SessionLongPollResponse:()=>s.ry,SessionReconnectMessage:()=>s.lj,SessionSwapOnClose:()=>s.pr,SessionSwapReason:()=>o.ey,SetClaimsChallengeCallbackMessage:()=>a.tj,SetSeedingStatusChangeCallbackMessage:()=>a.og,StreamingRequest:()=>s.Yp,StreamingResponse:()=>s.i,SubmittedCustomMessage:()=>s.g$,SyncMessage:()=>s.Tb,SyncResponse:()=>s.fZ,TimeoutErrorResponse:()=>s.F_,TokenFailureMessage:()=>s.D0,TokenProvisionMessage:()=>s.kd,TokenProvisionResponse:()=>s.ah,WorkflowExecutionCompleteMessage:()=>s.Gs,WorkflowGraphInitMessage:()=>s.TV,WorkflowGraphInitResponse:()=>s.HZ,annotationActivationMessageValidatorInstance:()=>ut,annotationActivationResponseValidatorInstance:()=>dt,annotationConfigUpdateMessageValidatorInstance:()=>mt,annotationConfigUpdateResponseValidatorInstance:()=>yt,annotationReleaseMessageValidatorInstance:()=>ht,annotationReleaseResponseValidatorInstance:()=>gt,annotationResultStateMessageValidatorInstance:()=>ft,annotationResultStateUpdateValidatorInstance:()=>pt,annotationResultStateValidatorInstance:()=>on,annotationResultsMessageValidatorInstance:()=>Ct,batchedMessageValidatorInstance:()=>vt,blobUploadResponseValidatorInstance:()=>Ht,bridgeMessageValidatorInstance:()=>Ft,cacheDumpRequestMessageValidatorInstance:()=>ct,cacheDumpRequestResponseValidatorInstance:()=>lt,claimsChallengeMessageValidatorInstance:()=>qt,currentProtocolVersion:()=>o.mH,errorResponseCodeValidatorInstance:()=>Xt,errorResponseValidatorInstance:()=>Xe,executionErrorCodeValidatorInstance:()=>Yt,executionErrorValidatorInstance:()=>Je,extractMessageNameFromTypeName:()=>r.L9,getAnnotationsClientErrorCodeValidatorInstance:()=>Qt,getAnnotationsClientErrorValidatorInstance:()=>Qe,getAnnotationsErrorInfoValidatorInstance:()=>Ke,getPluginsMetadataMessageValidatorInstance:()=>jt,getPluginsMetadataResponseValidatorInstance:()=>zt,keepAliveValidatorInstance:()=>At,messageValidatorInstance:()=>je,microSyncMessageValidatorInstance:()=>bt,oAuth2CallbackMessageValidatorInstance:()=>Lt,oAuth2InitMessageValidatorInstance:()=>Dt,oAuth2InitResponseValidatorInstance:()=>Nt,oAuth2InitV2MessageValidatorInstance:()=>Mt,oAuth2InitV2ResponseValidatorInstance:()=>xt,rateLimitErrorResponseValidatorInstance:()=>et,responseValidatorInstance:()=>ze,seedingProgressCodeValidatorInstance:()=>an,seedingStatusChangeMessageValidatorInstance:()=>Pt,serverAuthenticationStateChangeMessageValidatorInstance:()=>Vt,sessionCloseMessageValidatorInstance:()=>at,sessionCloseReasonValidatorInstance:()=>st,sessionConnectMessageValidatorInstance:()=>Bt,sessionDeleteMessageValidatorInstance:()=>Tt,sessionDisconnectMessageValidatorInstance:()=>Wt,sessionInitMessageValidatorInstance:()=>tt,sessionInitResponseValidatorInstance:()=>nt,sessionLongPollMessageTypeValidatorInstance:()=>en,sessionLongPollMessageValidatorInstance:()=>rt,sessionLongPollResponseValidatorInstance:()=>ot,sessionReconnectMessageValidatorInstance:()=>Ut,sessionSwapOnCloseValidatorInstance:()=>it,sessionSwapReasonValidatorInstance:()=>nn,streamingRequestValidatorInstance:()=>Ye,streamingResponseValidatorInstance:()=>$e,submittedCustomMessageValidatorInstance:()=>Gt,syncMessageValidatorInstance:()=>wt,syncResponseValidatorInstance:()=>St,timeoutErrorResponseValidatorInstance:()=>Ze,tokenFailureMessageValidatorInstance:()=>It,tokenProvisionMessageValidatorInstance:()=>_t,tokenProvisionResponseValidatorInstance:()=>kt,workflowExecutionCompleteMessageValidatorInstance:()=>Ot,workflowGraphInitMessageValidatorInstance:()=>Et,workflowGraphInitResponseValidatorInstance:()=>Rt});var r=n(61709),o=n(48668),s=n(38897),i=n(30664),a=n(28383),c=n(23092),l=n(40671),u=n(52140),d=n(79982);const p=new class{validate(e){return e?void 0!==e.officeServiceGroup&&"number"!=typeof e.officeServiceGroup?{success:!1,error:'ServiceGroups: Optional field "officeServiceGroup" is wrong type'}:void 0!==e.controllerServiceGroup&&"number"!=typeof e.controllerServiceGroup?{success:!1,error:'ServiceGroups: Optional field "controllerServiceGroup" is wrong type'}:{success:!0}:{success:!1,error:"ServiceGroups: Expected object, got undefined object for ServiceGroupsValidator"}}},f=new class{validate(e){if(!e)return{success:!1,error:"ClientMetadata: Expected object, got undefined object for ClientMetadataValidator"};if(void 0!==e.appName&&"string"!=typeof e.appName)return{success:!1,error:'ClientMetadata: Optional field "appName" is wrong type'};if(void 0!==e.appPlatform&&"string"!=typeof e.appPlatform)return{success:!1,error:'ClientMetadata: Optional field "appPlatform" is wrong type'};if(void 0!==e.runtimeVersion&&"string"!=typeof e.runtimeVersion)return{success:!1,error:'ClientMetadata: Optional field "runtimeVersion" is wrong type'};if(void 0!==e.appVersion&&"string"!=typeof e.appVersion)return{success:!1,error:'ClientMetadata: Optional field "appVersion" is wrong type'};if(void 0!==e.releaseAudienceGroup&&"string"!=typeof e.releaseAudienceGroup)return{success:!1,error:'ClientMetadata: Optional field "releaseAudienceGroup" is wrong type'};if(void 0!==e.releaseChannel&&"string"!=typeof e.releaseChannel)return{success:!1,error:'ClientMetadata: Optional field "releaseChannel" is wrong type'};if(void 0!==e.releaseFork&&"string"!=typeof e.releaseFork)return{success:!1,error:'ClientMetadata: Optional field "releaseFork" is wrong type'};if(void 0!==e.sessionId&&"string"!=typeof e.sessionId)return{success:!1,error:'ClientMetadata: Optional field "sessionId" is wrong type'};if(void 0!==e.flights&&"string"!=typeof e.flights)return{success:!1,error:'ClientMetadata: Optional field "flights" is wrong type'};if(void 0!==e.uiLanguage&&"string"!=typeof e.uiLanguage)return{success:!1,error:'ClientMetadata: Optional field "uiLanguage" is wrong type'};if(void 0!==e.privateMode&&"boolean"!=typeof e.privateMode)return{success:!1,error:'ClientMetadata: Optional field "privateMode" is wrong type'};if(void 0!==e.disabledServiceGroups){const t=(0,d.I)(e.disabledServiceGroups,1,p,"{ServiceGroups}");if(!t.success)return t.error="ClientMetadata.disabledServiceGroups: "+t.error,t}return void 0!==e.docSessionId&&"string"!=typeof e.docSessionId?{success:!1,error:'ClientMetadata: Optional field "docSessionId" is wrong type'}:void 0!==e.os&&"string"!=typeof e.os?{success:!1,error:'ClientMetadata: Optional field "os" is wrong type'}:void 0!==e.osVersion&&"string"!=typeof e.osVersion?{success:!1,error:'ClientMetadata: Optional field "osVersion" is wrong type'}:void 0!==e.userAgent&&"string"!=typeof e.userAgent?{success:!1,error:'ClientMetadata: Optional field "userAgent" is wrong type'}:void 0!==e.deviceId&&"string"!=typeof e.deviceId?{success:!1,error:'ClientMetadata: Optional field "deviceId" is wrong type'}:void 0!==e.roamingServiceAppId&&"number"!=typeof e.roamingServiceAppId?{success:!1,error:'ClientMetadata: Optional field "roamingServiceAppId" is wrong type'}:void 0!==e.releaseCustomAudience&&"string"!=typeof e.releaseCustomAudience?{success:!1,error:'ClientMetadata: Optional field "releaseCustomAudience" is wrong type'}:void 0!==e.tenantGroup&&"string"!=typeof e.tenantGroup?{success:!1,error:'ClientMetadata: Optional field "tenantGroup" is wrong type'}:void 0!==e.documentId&&"string"!=typeof e.documentId?{success:!1,error:'ClientMetadata: Optional field "documentId" is wrong type'}:void 0!==e.userSystemTimezone&&"string"!=typeof e.userSystemTimezone?{success:!1,error:'ClientMetadata: Optional field "userSystemTimezone" is wrong type'}:void 0!==e.isClientTelemetrySampled&&"boolean"!=typeof e.isClientTelemetrySampled?{success:!1,error:'ClientMetadata: Optional field "isClientTelemetrySampled" is wrong type'}:void 0!==e.userIdHint&&"string"!=typeof e.userIdHint?{success:!1,error:'ClientMetadata: Optional field "userIdHint" is wrong type'}:{success:!0}}};var h=n(14011),g=n(37247);class m{validate(e){return m.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "AuthTokenType"'}}}m.validValues=new Set([g.OY.EditorLowPrivilege,g.OY.AugLoopLowPrivilege,g.OY.Anonymous,g.OY.ClientAssertion,g.OY.ClientAssertionV2,g.OY.AutoClpLowPrivilege,g.OY.AutoClpAppOnlyLowPrivilege,g.OY.Substrate,g.OY.WacUserInfo,g.OY.OwaExchange,g.OY.SmartCompose,g.OY.WritingAnalyticsLowPrivilege,g.OY.DWEngineLowPrivilege,g.OY.SubstrateApp,g.OY.CortanaAppPop,g.OY.OfficeAppsAppOnly,g.OY.PPTFrontdoorAppPop,g.OY.EditorAppOnlyLowPrivilege,g.OY.AugLoopApp,g.OY.MeetingIntelligenceApp,g.OY.GraphApp,g.OY.IceServicesApp,g.OY.AzureMapsApp,g.OY.SpoApp,g.OY.OneDrive,g.OY.GoogleDrive,g.OY.GettyApp,g.OY.Dropbox,g.OY.GooglePhotos,g.OY.EditorApp,g.OY.AmazonKindle,g.OY.ShredderApp,g.OY.FormsLowPrivilege,g.OY.VivaSalesLowPrivilege,g.OY.IntentSvcApp,g.OY.DcgLowPrivilege,g.OY.CSALowPrivilege,g.OY.ConsumerSydneyLowPrivilege,g.OY.CompliantSydneyApp,g.OY.M365AdminApp,g.OY.MeetingArtifactsServiceLowPrivilege,g.OY.AlchemyApp,g.OY.M365Admin,g.OY.ConsumerShellApp,g.OY.PowerQueryLowPrivilege,g.OY.CIIApp,g.OY.ConsumerShell,g.OY.AssistCopilotLowPrivilege,g.OY.Pva,g.OY.TeamsCopilotServiceLowPrivilege,g.OY.CallAnalytics,g.OY.IncomingPFT,g.OY.GraphExchange,g.OY.EXOAdmin,g.OY.InsightsServicesLowPrivilege,g.OY.VivaServicesLowPrivilege,g.OY.EcsAppOnly,g.OY.ShredderLowPrivilege,g.OY.SpoLowPrivilege,g.OY.PromptValidationApp,g.OY.CompliantSydneyLowPrivilege,g.OY.SubstrateTenantFeedbackApp,g.OY.MonitoringPlatform,g.OY.YammerLowPrivilege,g.OY.VivaLearningLowPrivilege,g.OY.VivaInsightsLowPrivilege,g.OY.ClientAugLoopApp,g.OY.AssistAuthLowPrivilege,g.OY.VivaLearningSearchPreProdLowPrivilege,g.OY.SubstrateSearchApp,g.OY.SparkContentPlatformLowPrivilege,g.OY.SparkContentPlatformPopApp,g.OY.ConsumerSydneyApp,g.OY.BusinessAssistAuthLowPrivilege,g.OY.AzureResourceManager,g.OY.AlchemyPortal,g.OY.VivaUserSkillsApp,g.OY.VivaEngageAppPop,g.OY.SubstrateAppOnly,g.OY.PowerAutomateFlowCreationLowPrivilege,g.OY.PowerAutomateConnectionCreationLowPrivilege,g.OY.PowerAutomateAuthorizeConnectionLowPrivilege,g.OY.TCAAppPop,g.OY.BusinessAssistAuthAppPop,g.OY.HolmesApp,g.OY.GraphAppOnly,g.OY.SimsApp,g.OY.VivaOrgInsightsLowPrivilege,g.OY.VivaGoalsAppPop,g.OY.GCBotAppPop,g.OY.ShredderV2App,g.OY.ShredderV2LowPrivilege,g.OY.AmplifyProfileService,g.OY.AzureDevopsLowPrivilege,g.OY.CommuteServices,g.OY.GCBotAppOnly,g.OY.TCAAppOnly,g.OY.MavenAgentLowPrivilege,g.OY.VivaOrgInsightsAppPop,g.OY.EduAssignmentsPftAtPop,g.OY.AugloopAppPop,g.OY.OneNoteLowPrivilege,g.OY.TeamsAuthzSvcAppPop,g.OY.LoopAppPop,g.OY.LoopAppOnly,g.OY.BapLowPrivilege,g.OY.IC3AppPop,g.OY.PowerPlatformApiGateway,g.OY.OdspNotifyAppPop,g.OY.MIPSyncService,g.OY.RightsManagementServices,g.OY.TCAV2AppPop,g.OY.SubstrateLLMLowPrivilege,g.OY.SubstrateSearchLowPrivilege,g.OY.CloudPolicyServiceAppPop,g.OY.TCAV2LowPrivilege,g.OY.AiHubServicesAppPop,g.OY.TMRAppOnly,g.OY.PacmanAppPop,g.OY.AugloopAlternativeIdentity,g.OY.SpoAppOnly,g.OY.DataverseLowPrivilege,g.OY.SubstrateLLMApp,g.OY.SimsAppOnly,g.OY.PythonService,g.OY.PythonServiceAppOnly,g.OY.DesignerAppServiceLowPrivilege,g.OY.DesignerAppServiceAppPop,g.OY.AmplifyProfileServiceAppOnly,g.OY.MARSAppPop,g.OY.PlannerAppPop,g.OY.BingForBusinessLowPrivilege,g.OY.OLS,g.OY.OLSAppPop,g.OY.GCS,g.OY.AugLoopConsumer,g.OY.ContentValidationServiceAppOnly,g.OY.FabricLowPrivilege,g.OY.FeatureAccessManagementAppPop]);const y=new m;class v{validate(e){return v.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "UserType"'}}}v.validValues=new Set([g.ut.Unknown,g.ut.Consumer,g.ut.Enterprise]);const w=new v;class b{validate(e){return b.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "UserDataBoundaryType"'}}}b.validValues=new Set([g.Om.Default,g.Om.EDPSCompliant]);const S=new b;class T{validate(e){return T.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "OAuth2GrantFlow"'}}}T.validValues=new Set([g.Av.AuthorizationCode,g.Av.ClientCredentials,g.Av.RefreshToken]);const C=new T;class _{validate(e){return _.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "OAuth2V2LoginStatus"'}}}_.validValues=new Set([g.rN.LoggedIn,g.rN.LoggedOut]);const I=new _;var k;!function(e){e[e.JSONB=0]="JSONB",e[e.JSON=1]="JSON",e[e.JSOND=2]="JSOND",e[e.Disabled=3]="Disabled",e[e.COMPRESSEDJSON=4]="COMPRESSEDJSON",e[e.MESSAGEPACK=5]="MESSAGEPACK",e[e.COMPRESSEDMESSAGEPACK=6]="COMPRESSEDMESSAGEPACK"}(k||(k={}));class A{validate(e){return A.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "SerializationProfile"'}}}A.validValues=new Set([k.JSONB,k.JSON,k.JSOND,k.Disabled,k.COMPRESSEDJSON,k.MESSAGEPACK,k.COMPRESSEDMESSAGEPACK]);const E=new A;var R,O,P=n(48690);class M{constructor(e){P.h.assign(M,this,e)}static getTypeName(){return"AugLoop_Interfaces_SequentialItemFilter"}static getBaseTypes(){return["AugLoop_Core_ItemFilter"]}static typeGuard(e){return P.h.matchesTypesFor(e,[M.getTypeName()])}}M.H_={T_:M.getTypeName(),B_:M.getBaseTypes()};class x{constructor(e){P.h.assign(x,this,e)}static getTypeName(){return"AugLoop_Interfaces_GridSubtreeFilter"}static getBaseTypes(){return["AugLoop_Core_ItemFilter"]}static typeGuard(e){return P.h.matchesTypesFor(e,[x.getTypeName()])}}x.H_={T_:x.getTypeName(),B_:x.getBaseTypes()};class D{constructor(e){P.h.assign(D,this,e)}static getTypeName(){return"AugLoop_Interfaces_GridRangeFilter"}static getBaseTypes(){return["AugLoop_Core_ItemFilter"]}static typeGuard(e){return P.h.matchesTypesFor(e,[D.getTypeName()])}}D.H_={T_:D.getTypeName(),B_:D.getBaseTypes()};class N{constructor(e){P.h.assign(N,this,e)}static getTypeName(){return"AugLoop_Interfaces_GridRangeSampleFilter"}static getBaseTypes(){return["AugLoop_Interfaces_GridRangeFilter","AugLoop_Core_ItemFilter"]}static typeGuard(e){return P.h.matchesTypesFor(e,[N.getTypeName()])}}N.H_={T_:N.getTypeName(),B_:N.getBaseTypes()},function(e){e[e.MastermindAsyncBoundaryLoader=0]="MastermindAsyncBoundaryLoader",e[e.TruncatedModelIteratingLoader=1]="TruncatedModelIteratingLoader",e[e.ExcelAsyncBoundaryLoader=2]="ExcelAsyncBoundaryLoader"}(R||(R={})),function(e){e[e.Filtering=0]="Filtering",e[e.ModelIterating=1]="ModelIterating"}(O||(O={}));class L{constructor(e){P.h.assign(L,this,e)}static getTypeName(){return"AugLoop_Interfaces_AsyncBoundaryRequest"}static getBaseTypes(){return[]}static typeGuard(e){return P.h.matchesTypesFor(e,[L.getTypeName()])}}L.H_={T_:L.getTypeName(),B_:L.getBaseTypes()};class F{constructor(e){P.h.assign(F,this,e)}static getTypeName(){return"AugLoop_Interfaces_FilteringAsyncBoundaryRequest"}static getBaseTypes(){return["AugLoop_Interfaces_AsyncBoundaryRequest"]}static typeGuard(e){return P.h.matchesTypesFor(e,[F.getTypeName()])}}F.H_={T_:F.getTypeName(),B_:F.getBaseTypes()};class B{constructor(e){P.h.assign(B,this,e)}static getTypeName(){return"AugLoop_Interfaces_ModelIteratingAsyncBoundaryRequest"}static getBaseTypes(){return["AugLoop_Interfaces_AsyncBoundaryRequest"]}static typeGuard(e){return P.h.matchesTypesFor(e,[B.getTypeName()])}}B.H_={T_:B.getTypeName(),B_:B.getBaseTypes()},new class{validate(e){if(!e)return{success:!1,error:"AsyncBoundaryRequest: Expected object, got undefined object for AsyncBoundaryRequestValidator"};if(void 0===e.rootItemPath)return{success:!1,error:'AsyncBoundaryRequest: Required field "rootItemPath" is missing'};{const t=(0,d.I)(e.rootItemPath,1,void 0,"string");if(!t.success)return t.error="AsyncBoundaryRequest.rootItemPath: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?L.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AsyncBoundaryRequest"'}:t}},new class{validate(e){if(!e)return{success:!1,error:"FilteringAsyncBoundaryRequest: Expected object, got undefined object for FilteringAsyncBoundaryRequestValidator"};if(void 0===e.filter)return{success:!1,error:'FilteringAsyncBoundaryRequest: Required field "filter" is missing'};{const t=u.RW.validate(e.filter);if(!t.success)return t.error="FilteringAsyncBoundaryRequest.filter: "+t.error,t}if(void 0===e.rootItemPath)return{success:!1,error:'FilteringAsyncBoundaryRequest: Required field "rootItemPath" is missing'};{const t=(0,d.I)(e.rootItemPath,1,void 0,"string");if(!t.success)return t.error="FilteringAsyncBoundaryRequest.rootItemPath: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?F.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "FilteringAsyncBoundaryRequest"'}:t}},new class{validate(e){if(!e)return{success:!1,error:"ModelIteratingAsyncBoundaryRequest: Expected object, got undefined object for ModelIteratingAsyncBoundaryRequestValidator"};if(void 0===e.pageSize)return{success:!1,error:'ModelIteratingAsyncBoundaryRequest: Required field "pageSize" is missing'};if("number"!=typeof e.pageSize)return{success:!1,error:'ModelIteratingAsyncBoundaryRequest: Required field "pageSize" is wrong type'};if(void 0!==e.lastItemPathKey&&"string"!=typeof e.lastItemPathKey)return{success:!1,error:'ModelIteratingAsyncBoundaryRequest: Optional field "lastItemPathKey" is wrong type'};if(void 0===e.rootItemPath)return{success:!1,error:'ModelIteratingAsyncBoundaryRequest: Required field "rootItemPath" is missing'};{const t=(0,d.I)(e.rootItemPath,1,void 0,"string");if(!t.success)return t.error="ModelIteratingAsyncBoundaryRequest.rootItemPath: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?B.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ModelIteratingAsyncBoundaryRequest"'}:t}},new class{validate(e){if(!e)return{success:!1,error:"ModelIteratingAsyncBoundaryResponse: Expected object, got undefined object for ModelIteratingAsyncBoundaryResponseValidator"};if(void 0!==e.lastItemPathKey&&"string"!=typeof e.lastItemPathKey)return{success:!1,error:'ModelIteratingAsyncBoundaryResponse: Optional field "lastItemPathKey" is wrong type'};if(void 0===e.items)return{success:!1,error:'ModelIteratingAsyncBoundaryResponse: Required field "items" is missing'};{const t=(0,d.I)(e.items,1,l.Gf,"{ItemWithPath}");if(!t.success)return t.error="ModelIteratingAsyncBoundaryResponse.items: "+t.error,t}if(void 0===e.existingAnnotations)return{success:!1,error:'ModelIteratingAsyncBoundaryResponse: Required field "existingAnnotations" is missing'};{const t=(0,d.I)(e.existingAnnotations,1,l.Gf,"{ItemWithPath}");if(!t.success)return t.error="ModelIteratingAsyncBoundaryResponse.existingAnnotations: "+t.error,t}return void 0===e.endReached?{success:!1,error:'ModelIteratingAsyncBoundaryResponse: Required field "endReached" is missing'}:"boolean"!=typeof e.endReached?{success:!1,error:'ModelIteratingAsyncBoundaryResponse: Required field "endReached" is wrong type'}:{success:!0}}},new class{validate(e){if(!e)return{success:!1,error:"AsyncBoundaryLoader: Expected object, got undefined object for AsyncBoundaryLoaderValidator"};if(void 0===e.kind)return{success:!1,error:'AsyncBoundaryLoader: Required field "kind" is missing'};{const t=V.validate(e.kind);if(!t.success)return t.error="AsyncBoundaryLoader.kind: "+t.error,t}return{success:!0}}},new class{validate(e){if(!e)return{success:!1,error:"ModelIteratingAsyncBoundaryLoader: Expected object, got undefined object for ModelIteratingAsyncBoundaryLoaderValidator"};if(void 0===e.kind)return{success:!1,error:'ModelIteratingAsyncBoundaryLoader: Required field "kind" is missing'};{const t=V.validate(e.kind);if(!t.success)return t.error="ModelIteratingAsyncBoundaryLoader.kind: "+t.error,t}return{success:!0}}},new class{validate(e){if(!e)return{success:!1,error:"FilteringAsyncBoundaryLoader: Expected object, got undefined object for FilteringAsyncBoundaryLoaderValidator"};if(void 0===e.kind)return{success:!1,error:'FilteringAsyncBoundaryLoader: Required field "kind" is missing'};{const t=V.validate(e.kind);if(!t.success)return t.error="FilteringAsyncBoundaryLoader.kind: "+t.error,t}return{success:!0}}};class W{validate(e){return W.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "AsyncBoundaryLoaderType"'}}}W.validValues=new Set([R.MastermindAsyncBoundaryLoader,R.TruncatedModelIteratingLoader,R.ExcelAsyncBoundaryLoader]);const U=new W;class G{validate(e){return G.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "AsyncBoundaryLoaderKind"'}}}G.validValues=new Set([O.Filtering,O.ModelIterating]);const V=new G;var q,H;!function(e){e[e.Input=1]="Input",e[e.Output=2]="Output"}(q||(q={})),function(e){e[e.Single=1]="Single",e[e.Any=-1]="Any",e[e.Optional=-2]="Optional",e[e.Some=-3]="Some"}(H||(H={}));const j=new class{validate(e){if(!e)return{success:!1,error:"WorkflowModelItemSchema: Expected object, got undefined object for WorkflowModelItemSchemaValidator"};if(void 0!==e.name&&"string"!=typeof e.name)return{success:!1,error:'WorkflowModelItemSchema: Optional field "name" is wrong type'};if(void 0===e.type)return{success:!1,error:'WorkflowModelItemSchema: Required field "type" is missing'};if("string"!=typeof e.type)return{success:!1,error:'WorkflowModelItemSchema: Required field "type" is wrong type'};if(void 0!==e.deltaType&&"string"!=typeof e.deltaType)return{success:!1,error:'WorkflowModelItemSchema: Optional field "deltaType" is wrong type'};if(void 0===e.role)return{success:!1,error:'WorkflowModelItemSchema: Required field "role" is missing'};{const t=$.validate(e.role);if(!t.success)return t.error="WorkflowModelItemSchema.role: "+t.error,t}if(void 0!==e.cardinality){const t=J.validate(e.cardinality);if(!t.success)return t.error="WorkflowModelItemSchema.cardinality: "+t.error,t}if(void 0!==e.noBody&&"boolean"!=typeof e.noBody)return{success:!1,error:'WorkflowModelItemSchema: Optional field "noBody" is wrong type'};if(void 0!==e.noInvalidation&&"boolean"!=typeof e.noInvalidation)return{success:!1,error:'WorkflowModelItemSchema: Optional field "noInvalidation" is wrong type'};if(void 0!==e.asyncBoundary&&"boolean"!=typeof e.asyncBoundary)return{success:!1,error:'WorkflowModelItemSchema: Optional field "asyncBoundary" is wrong type'};if(void 0!==e.children){const t=(0,d.I)(e.children,1,j,"{WorkflowModelItemSchema}");if(!t.success)return t.error="WorkflowModelItemSchema.children: "+t.error,t}return{success:!0}}};class z{validate(e){return z.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ItemRole"'}}}z.validValues=new Set([q.Input,q.Output]);const $=new z;class Y{validate(e){return Y.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ItemCardinality"'}}}Y.validValues=new Set([H.Single,H.Any,H.Optional,H.Some]);const J=new Y,Q=new class{validate(e){if(!e)return{success:!1,error:"WorkflowModelOptions: Expected object, got undefined object for WorkflowModelOptionsValidator"};if(void 0!==e.includeItemOperations&&"boolean"!=typeof e.includeItemOperations)return{success:!1,error:'WorkflowModelOptions: Optional field "includeItemOperations" is wrong type'};if(void 0!==e.includeExistingAnnotations&&"boolean"!=typeof e.includeExistingAnnotations)return{success:!1,error:'WorkflowModelOptions: Optional field "includeExistingAnnotations" is wrong type'};if(void 0!==e.includeDefaultItemDeltas&&"boolean"!=typeof e.includeDefaultItemDeltas)return{success:!1,error:'WorkflowModelOptions: Optional field "includeDefaultItemDeltas" is wrong type'};if(void 0!==e.includeScopeItemParent&&"boolean"!=typeof e.includeScopeItemParent)return{success:!1,error:'WorkflowModelOptions: Optional field "includeScopeItemParent" is wrong type'};if(void 0!==e.includeRootItemParent&&"boolean"!=typeof e.includeRootItemParent)return{success:!1,error:'WorkflowModelOptions: Optional field "includeRootItemParent" is wrong type'};if(void 0!==e.asyncBoundaryLoaderType){const t=U.validate(e.asyncBoundaryLoaderType);if(!t.success)return t.error="WorkflowModelOptions.asyncBoundaryLoaderType: "+t.error,t}return void 0!==e.maxModelItems&&"number"!=typeof e.maxModelItems?{success:!1,error:'WorkflowModelOptions: Optional field "maxModelItems" is wrong type'}:void 0!==e.allowStableAnnotationIds&&"boolean"!=typeof e.allowStableAnnotationIds?{success:!1,error:'WorkflowModelOptions: Optional field "allowStableAnnotationIds" is wrong type'}:{success:!0}}};new class{validate(e){if(!e)return{success:!1,error:"SequentialItemFilter: Expected object, got undefined object for SequentialItemFilterValidator"};if(void 0!==e.start&&"number"!=typeof e.start)return{success:!1,error:'SequentialItemFilter: Optional field "start" is wrong type'};if(void 0!==e.maxCount&&"number"!=typeof e.maxCount)return{success:!1,error:'SequentialItemFilter: Optional field "maxCount" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'SequentialItemFilter: Optional field "id" is wrong type'};if(void 0!==e.ids){const t=(0,d.I)(e.ids,1,void 0,"string");if(!t.success)return t.error="SequentialItemFilter.ids: "+t.error,t}if(void 0!==e.itemType&&"string"!=typeof e.itemType)return{success:!1,error:'SequentialItemFilter: Optional field "itemType" is wrong type'};if(void 0!==e.itemTypes){const t=(0,d.I)(e.itemTypes,1,void 0,"string");if(!t.success)return t.error="SequentialItemFilter.itemTypes: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?M.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SequentialItemFilter"'}:t}};const K=new class{validate(e){return e?void 0===e.row?{success:!1,error:'GridRange: Required field "row" is missing'}:"number"!=typeof e.row?{success:!1,error:'GridRange: Required field "row" is wrong type'}:void 0===e.col?{success:!1,error:'GridRange: Required field "col" is missing'}:"number"!=typeof e.col?{success:!1,error:'GridRange: Required field "col" is wrong type'}:void 0===e.rows?{success:!1,error:'GridRange: Required field "rows" is missing'}:"number"!=typeof e.rows?{success:!1,error:'GridRange: Required field "rows" is wrong type'}:void 0===e.cols?{success:!1,error:'GridRange: Required field "cols" is missing'}:"number"!=typeof e.cols?{success:!1,error:'GridRange: Required field "cols" is wrong type'}:{success:!0}:{success:!1,error:"GridRange: Expected object, got undefined object for GridRangeValidator"}}};new class{validate(e){if(!e)return{success:!1,error:"GridSubtreeFilter: Expected object, got undefined object for GridSubtreeFilterValidator"};if(void 0===e.ranges)return{success:!1,error:'GridSubtreeFilter: Required field "ranges" is missing'};{const t=(0,d.I)(e.ranges,1,K,"{GridRange}");if(!t.success)return t.error="GridSubtreeFilter.ranges: "+t.error,t}if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'GridSubtreeFilter: Optional field "id" is wrong type'};if(void 0!==e.ids){const t=(0,d.I)(e.ids,1,void 0,"string");if(!t.success)return t.error="GridSubtreeFilter.ids: "+t.error,t}if(void 0!==e.itemType&&"string"!=typeof e.itemType)return{success:!1,error:'GridSubtreeFilter: Optional field "itemType" is wrong type'};if(void 0!==e.itemTypes){const t=(0,d.I)(e.itemTypes,1,void 0,"string");if(!t.success)return t.error="GridSubtreeFilter.itemTypes: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?x.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GridSubtreeFilter"'}:t}},new class{validate(e){if(!e)return{success:!1,error:"GridRangeFilter: Expected object, got undefined object for GridRangeFilterValidator"};if(void 0!==e.range){const t=K.validate(e.range);if(!t.success)return t.error="GridRangeFilter.range: "+t.error,t}if(void 0!==e.overlap&&"number"!=typeof e.overlap)return{success:!1,error:'GridRangeFilter: Optional field "overlap" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'GridRangeFilter: Optional field "id" is wrong type'};if(void 0!==e.ids){const t=(0,d.I)(e.ids,1,void 0,"string");if(!t.success)return t.error="GridRangeFilter.ids: "+t.error,t}if(void 0!==e.itemType&&"string"!=typeof e.itemType)return{success:!1,error:'GridRangeFilter: Optional field "itemType" is wrong type'};if(void 0!==e.itemTypes){const t=(0,d.I)(e.itemTypes,1,void 0,"string");if(!t.success)return t.error="GridRangeFilter.itemTypes: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?D.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GridRangeFilter"'}:t}},new class{validate(e){if(!e)return{success:!1,error:"GridRangeSampleFilter: Expected object, got undefined object for GridRangeSampleFilterValidator"};if(void 0===e.cellCountLimit)return{success:!1,error:'GridRangeSampleFilter: Required field "cellCountLimit" is missing'};if("number"!=typeof e.cellCountLimit)return{success:!1,error:'GridRangeSampleFilter: Required field "cellCountLimit" is wrong type'};if(void 0===e.headerFooterMargin)return{success:!1,error:'GridRangeSampleFilter: Required field "headerFooterMargin" is missing'};if("number"!=typeof e.headerFooterMargin)return{success:!1,error:'GridRangeSampleFilter: Required field "headerFooterMargin" is wrong type'};if(void 0===e.isColumnMajorScheme)return{success:!1,error:'GridRangeSampleFilter: Required field "isColumnMajorScheme" is missing'};if("boolean"!=typeof e.isColumnMajorScheme)return{success:!1,error:'GridRangeSampleFilter: Required field "isColumnMajorScheme" is wrong type'};if(void 0!==e.range){const t=K.validate(e.range);if(!t.success)return t.error="GridRangeSampleFilter.range: "+t.error,t}if(void 0!==e.overlap&&"number"!=typeof e.overlap)return{success:!1,error:'GridRangeSampleFilter: Optional field "overlap" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'GridRangeSampleFilter: Optional field "id" is wrong type'};if(void 0!==e.ids){const t=(0,d.I)(e.ids,1,void 0,"string");if(!t.success)return t.error="GridRangeSampleFilter.ids: "+t.error,t}if(void 0!==e.itemType&&"string"!=typeof e.itemType)return{success:!1,error:'GridRangeSampleFilter: Optional field "itemType" is wrong type'};if(void 0!==e.itemTypes){const t=(0,d.I)(e.itemTypes,1,void 0,"string");if(!t.success)return t.error="GridRangeSampleFilter.itemTypes: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?N.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GridRangeSampleFilter"'}:t}},new class{validate(e){if(!e)return{success:!1,error:"WorkflowModelItemBase: Expected object, got undefined object for WorkflowModelItemBaseValidator"};if(void 0===e.id)return{success:!1,error:'WorkflowModelItemBase: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'WorkflowModelItemBase: Required field "id" is wrong type'};if(void 0!==e.operation){const t=l.AF.validate(e.operation);if(!t.success)return t.error="WorkflowModelItemBase.operation: "+t.error,t}if(void 0!==e.delta){const t=l.VA.validate(e.delta);if(!t.success)return t.error="WorkflowModelItemBase.delta: "+t.error,t}if(void 0!==e.deltas){const t=(0,d.I)(e.deltas,1,l.VA,"{ItemDelta}");if(!t.success)return t.error="WorkflowModelItemBase.deltas: "+t.error,t}if(void 0!==e.isContext&&"boolean"!=typeof e.isContext)return{success:!1,error:'WorkflowModelItemBase: Optional field "isContext" is wrong type'};if(void 0!==e.asyncBoundary&&"boolean"!=typeof e.asyncBoundary)return{success:!1,error:'WorkflowModelItemBase: Optional field "asyncBoundary" is wrong type'};if(void 0!==e.schema){const t=j.validate(e.schema);if(!t.success)return t.error="WorkflowModelItemBase.schema: "+t.error,t}return void 0===e.revId?{success:!1,error:'WorkflowModelItemBase: Required field "revId" is missing'}:"string"!=typeof e.revId?{success:!1,error:'WorkflowModelItemBase: Required field "revId" is wrong type'}:{success:!0}}};const X=new class{validate(e){if(!e)return{success:!1,error:"WorkflowModelItem: Expected object, got undefined object for WorkflowModelItemValidator"};if(void 0===e.id)return{success:!1,error:'WorkflowModelItem: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'WorkflowModelItem: Required field "id" is wrong type'};if(void 0!==e.operation){const t=l.AF.validate(e.operation);if(!t.success)return t.error="WorkflowModelItem.operation: "+t.error,t}if(void 0!==e.delta){const t=l.VA.validate(e.delta);if(!t.success)return t.error="WorkflowModelItem.delta: "+t.error,t}if(void 0!==e.deltas){const t=(0,d.I)(e.deltas,1,l.VA,"{ItemDelta}");if(!t.success)return t.error="WorkflowModelItem.deltas: "+t.error,t}if(void 0!==e.isContext&&"boolean"!=typeof e.isContext)return{success:!1,error:'WorkflowModelItem: Optional field "isContext" is wrong type'};if(void 0!==e.asyncBoundary&&"boolean"!=typeof e.asyncBoundary)return{success:!1,error:'WorkflowModelItem: Optional field "asyncBoundary" is wrong type'};if(void 0!==e.schema){const t=j.validate(e.schema);if(!t.success)return t.error="WorkflowModelItem.schema: "+t.error,t}return void 0===e.revId?{success:!1,error:'WorkflowModelItem: Required field "revId" is missing'}:"string"!=typeof e.revId?{success:!1,error:'WorkflowModelItem: Required field "revId" is wrong type'}:{success:!0}}};new class{validate(e){if(!e)return{success:!1,error:"WorkflowModel: Expected object, got undefined object for WorkflowModelValidator"};if(void 0===e.scopeItem)return{success:!1,error:'WorkflowModel: Required field "scopeItem" is missing'};{const t=X.validate(e.scopeItem);if(!t.success)return t.error="WorkflowModel.scopeItem: "+t.error,t}if(void 0===e.rootItem)return{success:!1,error:'WorkflowModel: Required field "rootItem" is missing'};{const t=X.validate(e.rootItem);if(!t.success)return t.error="WorkflowModel.rootItem: "+t.error,t}if(void 0!==e.sourceInfo){const t=l.nx.validate(e.sourceInfo);if(!t.success)return t.error="WorkflowModel.sourceInfo: "+t.error,t}return{success:!0}}};const Z=new class{validate(e){if(!e)return{success:!1,error:"AuthTokenOptions: Expected object, got undefined object for AuthTokenOptionsValidator"};if(void 0===e.type)return{success:!1,error:'AuthTokenOptions: Required field "type" is missing'};{const t=y.validate(e.type);if(!t.success)return t.error="AuthTokenOptions.type: "+t.error,t}if(void 0!==e.scopes){const t=(0,d.I)(e.scopes,1,void 0,"string");if(!t.success)return t.error="AuthTokenOptions.scopes: "+t.error,t}if(void 0!==e.userType){const t=w.validate(e.userType);if(!t.success)return t.error="AuthTokenOptions.userType: "+t.error,t}return{success:!0}}},ee=new class{validate(e){if(!e)return{success:!1,error:"WorkflowDefinitionBase: Expected object, got undefined object for WorkflowDefinitionBaseValidator"};if(void 0===e.id)return{success:!1,error:'WorkflowDefinitionBase: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'WorkflowDefinitionBase: Required field "id" is wrong type'};if(void 0===e.kind)return{success:!1,error:'WorkflowDefinitionBase: Required field "kind" is missing'};{const t=pe.validate(e.kind);if(!t.success)return t.error="WorkflowDefinitionBase.kind: "+t.error,t}if(void 0!==e.visibility){const t=ve.validate(e.visibility);if(!t.success)return t.error="WorkflowDefinitionBase.visibility: "+t.error,t}if(void 0!==e.collectionScopeType&&"string"!=typeof e.collectionScopeType)return{success:!1,error:'WorkflowDefinitionBase: Optional field "collectionScopeType" is wrong type'};if(void 0===e.inputTypes)return{success:!1,error:'WorkflowDefinitionBase: Required field "inputTypes" is missing'};{const t=(0,d.I)(e.inputTypes,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinitionBase.inputTypes: "+t.error,t}if(void 0===e.outputTypes)return{success:!1,error:'WorkflowDefinitionBase: Required field "outputTypes" is missing'};{const t=(0,d.I)(e.outputTypes,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinitionBase.outputTypes: "+t.error,t}if(void 0!==e.correlatedSignals){const t=(0,d.I)(e.correlatedSignals,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinitionBase.correlatedSignals: "+t.error,t}if(void 0!==e.requiredTokenTypes){const t=(0,d.I)(e.requiredTokenTypes,1,y,"{AuthTokenType}");if(!t.success)return t.error="WorkflowDefinitionBase.requiredTokenTypes: "+t.error,t}if(void 0!==e.requiredTokenOptions){const t=(0,d.I)(e.requiredTokenOptions,1,Z,"{AuthTokenOptions}");if(!t.success)return t.error="WorkflowDefinitionBase.requiredTokenOptions: "+t.error,t}return{success:!0}}},te=new class{validate(e){if(!e)return{success:!1,error:"ActivationConfig: Expected object, got undefined object for ActivationConfigValidator"};if(void 0===e.clientAppName)return{success:!1,error:'ActivationConfig: Required field "clientAppName" is missing'};if("string"!=typeof e.clientAppName)return{success:!1,error:'ActivationConfig: Required field "clientAppName" is wrong type'};if(void 0===e.clientAppPlatform)return{success:!1,error:'ActivationConfig: Required field "clientAppPlatform" is missing'};if("string"!=typeof e.clientAppPlatform)return{success:!1,error:'ActivationConfig: Required field "clientAppPlatform" is wrong type'};if(void 0!==e.clientReleaseAudienceGroup&&"string"!=typeof e.clientReleaseAudienceGroup)return{success:!1,error:'ActivationConfig: Optional field "clientReleaseAudienceGroup" is wrong type'};if(void 0!==e.clientTenantGroup&&"string"!=typeof e.clientTenantGroup)return{success:!1,error:'ActivationConfig: Optional field "clientTenantGroup" is wrong type'};if(void 0===e.activationTier)return{success:!1,error:'ActivationConfig: Required field "activationTier" is missing'};{const t=be.validate(e.activationTier);if(!t.success)return t.error="ActivationConfig.activationTier: "+t.error,t}return{success:!0}}},ne=new class{validate(e){if(!e)return{success:!1,error:"ActivationFlightsConfig: Expected object, got undefined object for ActivationFlightsConfigValidator"};if(void 0===e.clientAppName)return{success:!1,error:'ActivationFlightsConfig: Required field "clientAppName" is missing'};if("string"!=typeof e.clientAppName)return{success:!1,error:'ActivationFlightsConfig: Required field "clientAppName" is wrong type'};if(void 0===e.requiredFlights)return{success:!1,error:'ActivationFlightsConfig: Required field "requiredFlights" is missing'};{const t=(0,d.I)(e.requiredFlights,1,void 0,"string");if(!t.success)return t.error="ActivationFlightsConfig.requiredFlights: "+t.error,t}if(void 0!==e.restrictedFlights){const t=(0,d.I)(e.restrictedFlights,1,void 0,"string");if(!t.success)return t.error="ActivationFlightsConfig.restrictedFlights: "+t.error,t}return{success:!0}}},re=new class{validate(e){if(!e)return{success:!1,error:"ActivationUserConfig: Expected object, got undefined object for ActivationUserConfigValidator"};if(void 0!==e.userType){const t=w.validate(e.userType);if(!t.success)return t.error="ActivationUserConfig.userType: "+t.error,t}return void 0!==e.tenantId&&"string"!=typeof e.tenantId?{success:!1,error:'ActivationUserConfig: Optional field "tenantId" is wrong type'}:{success:!0}}},oe=new class{validate(e){if(!e)return{success:!1,error:"RequestedContextTypesRule: Expected object, got undefined object for RequestedContextTypesRuleValidator"};if(void 0===e.contextTypes)return{success:!1,error:'RequestedContextTypesRule: Required field "contextTypes" is missing'};{const t=(0,d.I)(e.contextTypes,1,void 0,"string");if(!t.success)return t.error="RequestedContextTypesRule.contextTypes: "+t.error,t}if(void 0===e.cardinality)return{success:!1,error:'RequestedContextTypesRule: Required field "cardinality" is missing'};{const t=Te.validate(e.cardinality);if(!t.success)return t.error="RequestedContextTypesRule.cardinality: "+t.error,t}if(void 0!==e.activationConditions){const t=(0,d.I)(e.activationConditions,1,ne,"{ActivationFlightsConfig}");if(!t.success)return t.error="RequestedContextTypesRule.activationConditions: "+t.error,t}if(void 0!==e.shouldTriggerOnContextChange&&"boolean"!=typeof e.shouldTriggerOnContextChange)return{success:!1,error:'RequestedContextTypesRule: Optional field "shouldTriggerOnContextChange" is wrong type'};if(void 0!==e.producerWaitPolicy){const t=_e.validate(e.producerWaitPolicy);if(!t.success)return t.error="RequestedContextTypesRule.producerWaitPolicy: "+t.error,t}return{success:!0}}},se=new class{validate(e){if(!e)return{success:!1,error:"DynamicExecutionPreferences: Expected object, got undefined object for DynamicExecutionPreferencesValidator"};if(void 0===e.inputSizeUnit)return{success:!1,error:'DynamicExecutionPreferences: Required field "inputSizeUnit" is missing'};{const t=Oe.validate(e.inputSizeUnit);if(!t.success)return t.error="DynamicExecutionPreferences.inputSizeUnit: "+t.error,t}if(void 0===e.inputSize)return{success:!1,error:'DynamicExecutionPreferences: Required field "inputSize" is missing'};if("number"!=typeof e.inputSize)return{success:!1,error:'DynamicExecutionPreferences: Required field "inputSize" is wrong type'};if(void 0!==e.contextUnit){const t=Oe.validate(e.contextUnit);if(!t.success)return t.error="DynamicExecutionPreferences.contextUnit: "+t.error,t}return void 0!==e.contextAbove&&"number"!=typeof e.contextAbove?{success:!1,error:'DynamicExecutionPreferences: Optional field "contextAbove" is wrong type'}:void 0!==e.contextBelow&&"number"!=typeof e.contextBelow?{success:!1,error:'DynamicExecutionPreferences: Optional field "contextBelow" is wrong type'}:{success:!0}}},ie=new class{validate(e){if(!e)return{success:!1,error:"PrefilterActionDefinition: Expected object, got undefined object for PrefilterActionDefinitionValidator"};if(void 0===e.type)return{success:!1,error:'PrefilterActionDefinition: Required field "type" is missing'};{const t=De.validate(e.type);if(!t.success)return t.error="PrefilterActionDefinition.type: "+t.error,t}return{success:!0}}},ae=new class{validate(e){if(!e)return{success:!1,error:"PrefilterDefinition: Expected object, got undefined object for PrefilterDefinitionValidator"};if(void 0===e.type)return{success:!1,error:'PrefilterDefinition: Required field "type" is missing'};{const t=Me.validate(e.type);if(!t.success)return t.error="PrefilterDefinition.type: "+t.error,t}if(void 0!==e.action){const t=ie.validate(e.action);if(!t.success)return t.error="PrefilterDefinition.action: "+t.error,t}return{success:!0}}},ce=new class{validate(e){if(!e)return{success:!1,error:"EventSequenceOptions: Expected object, got undefined object for EventSequenceOptionsValidator"};if(void 0!==e.minWindowSize&&"number"!=typeof e.minWindowSize)return{success:!1,error:'EventSequenceOptions: Optional field "minWindowSize" is wrong type'};if(void 0!==e.maxWindowSize&&"number"!=typeof e.maxWindowSize)return{success:!1,error:'EventSequenceOptions: Optional field "maxWindowSize" is wrong type'};if(void 0!==e.windowIncrement&&"number"!=typeof e.windowIncrement)return{success:!1,error:'EventSequenceOptions: Optional field "windowIncrement" is wrong type'};if(void 0!==e.minTimeFrame&&"number"!=typeof e.minTimeFrame)return{success:!1,error:'EventSequenceOptions: Optional field "minTimeFrame" is wrong type'};if(void 0!==e.maxEventAge&&"number"!=typeof e.maxEventAge)return{success:!1,error:'EventSequenceOptions: Optional field "maxEventAge" is wrong type'};if(void 0!==e.minTimeIncrement&&"number"!=typeof e.minTimeIncrement)return{success:!1,error:'EventSequenceOptions: Optional field "minTimeIncrement" is wrong type'};if(void 0!==e.includedTypes){const t=(0,d.I)(e.includedTypes,1,void 0,"string");if(!t.success)return t.error="EventSequenceOptions.includedTypes: "+t.error,t}if(void 0!==e.excludedTypes){const t=(0,d.I)(e.excludedTypes,1,void 0,"string");if(!t.success)return t.error="EventSequenceOptions.excludedTypes: "+t.error,t}return void 0===e.required?{success:!1,error:'EventSequenceOptions: Required field "required" is missing'}:"boolean"!=typeof e.required?{success:!1,error:'EventSequenceOptions: Required field "required" is wrong type'}:void 0!==e.shouldTriggerWorkflow&&"boolean"!=typeof e.shouldTriggerWorkflow?{success:!1,error:'EventSequenceOptions: Optional field "shouldTriggerWorkflow" is wrong type'}:{success:!0}}};new class{validate(e){if(!e)return{success:!1,error:"WorkflowDefinition: Expected object, got undefined object for WorkflowDefinitionValidator"};if(void 0!==e.resourceId&&"string"!=typeof e.resourceId)return{success:!1,error:'WorkflowDefinition: Optional field "resourceId" is wrong type'};if(void 0!==e.priority&&"number"!=typeof e.priority)return{success:!1,error:'WorkflowDefinition: Optional field "priority" is wrong type'};if(void 0!==e.activationConfigs){const t=(0,d.I)(e.activationConfigs,1,te,"{ActivationConfig}");if(!t.success)return t.error="WorkflowDefinition.activationConfigs: "+t.error,t}if(void 0!==e.invalidationTypes){const t=(0,d.I)(e.invalidationTypes,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.invalidationTypes: "+t.error,t}if(void 0!==e.requestedContextTypesRules){const t=(0,d.I)(e.requestedContextTypesRules,1,oe,"{RequestedContextTypesRule}");if(!t.success)return t.error="WorkflowDefinition.requestedContextTypesRules: "+t.error,t}if(void 0!==e.inputStage){const t=ke.validate(e.inputStage);if(!t.success)return t.error="WorkflowDefinition.inputStage: "+t.error,t}if(void 0!==e.triggerSignals){const t=(0,d.I)(e.triggerSignals,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.triggerSignals: "+t.error,t}if(void 0!==e.triggerSignalsOptions){const t=le.validate(e.triggerSignalsOptions);if(!t.success)return t.error="WorkflowDefinition.triggerSignalsOptions: "+t.error,t}if(void 0!==e.triggerConditions){const t=(0,d.I)(e.triggerConditions,1,Ee,"{TriggerCondition}");if(!t.success)return t.error="WorkflowDefinition.triggerConditions: "+t.error,t}if(void 0!==e.optionalTokenTypes){const t=(0,d.I)(e.optionalTokenTypes,1,y,"{AuthTokenType}");if(!t.success)return t.error="WorkflowDefinition.optionalTokenTypes: "+t.error,t}if(void 0!==e.optionalTokenOptions){const t=(0,d.I)(e.optionalTokenOptions,1,Z,"{AuthTokenOptions}");if(!t.success)return t.error="WorkflowDefinition.optionalTokenOptions: "+t.error,t}if(void 0!==e.activationFlightsConfigs){const t=(0,d.I)(e.activationFlightsConfigs,1,ne,"{ActivationFlightsConfig}");if(!t.success)return t.error="WorkflowDefinition.activationFlightsConfigs: "+t.error,t}if(void 0!==e.activationUserConfigs){const t=(0,d.I)(e.activationUserConfigs,1,re,"{ActivationUserConfig}");if(!t.success)return t.error="WorkflowDefinition.activationUserConfigs: "+t.error,t}if(void 0!==e.isAppOnlyTokenAllowed&&"boolean"!=typeof e.isAppOnlyTokenAllowed)return{success:!1,error:'WorkflowDefinition: Optional field "isAppOnlyTokenAllowed" is wrong type'};if(void 0!==e.minDelayMs&&"number"!=typeof e.minDelayMs)return{success:!1,error:'WorkflowDefinition: Optional field "minDelayMs" is wrong type'};if(void 0!==e.maxDelayMs&&"number"!=typeof e.maxDelayMs)return{success:!1,error:'WorkflowDefinition: Optional field "maxDelayMs" is wrong type'};if(void 0!==e.maxExecutionTimeInS&&"number"!=typeof e.maxExecutionTimeInS)return{success:!1,error:'WorkflowDefinition: Optional field "maxExecutionTimeInS" is wrong type'};if(void 0!==e.maxQueueWaitTimeMs&&"number"!=typeof e.maxQueueWaitTimeMs)return{success:!1,error:'WorkflowDefinition: Optional field "maxQueueWaitTimeMs" is wrong type'};if(void 0!==e.maxAnnotations&&"number"!=typeof e.maxAnnotations)return{success:!1,error:'WorkflowDefinition: Optional field "maxAnnotations" is wrong type'};if(void 0!==e.serializationProfile){const t=E.validate(e.serializationProfile);if(!t.success)return t.error="WorkflowDefinition.serializationProfile: "+t.error,t}if(void 0!==e.isStateful&&"boolean"!=typeof e.isStateful)return{success:!1,error:'WorkflowDefinition: Optional field "isStateful" is wrong type'};if(void 0!==e.maxBatchSize&&"number"!=typeof e.maxBatchSize)return{success:!1,error:'WorkflowDefinition: Optional field "maxBatchSize" is wrong type'};if(void 0!==e.stateExpiryMs&&"number"!=typeof e.stateExpiryMs)return{success:!1,error:'WorkflowDefinition: Optional field "stateExpiryMs" is wrong type'};if(void 0!==e.bypassModel&&"boolean"!=typeof e.bypassModel)return{success:!1,error:'WorkflowDefinition: Optional field "bypassModel" is wrong type'};if(void 0!==e.bypassTypes){const t=(0,d.I)(e.bypassTypes,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.bypassTypes: "+t.error,t}if(void 0!==e.annotatesSubtree&&"boolean"!=typeof e.annotatesSubtree)return{success:!1,error:'WorkflowDefinition: Optional field "annotatesSubtree" is wrong type'};if(void 0!==e.rowsBefore&&"number"!=typeof e.rowsBefore)return{success:!1,error:'WorkflowDefinition: Optional field "rowsBefore" is wrong type'};if(void 0!==e.rowsAfter&&"number"!=typeof e.rowsAfter)return{success:!1,error:'WorkflowDefinition: Optional field "rowsAfter" is wrong type'};if(void 0!==e.columnsBefore&&"number"!=typeof e.columnsBefore)return{success:!1,error:'WorkflowDefinition: Optional field "columnsBefore" is wrong type'};if(void 0!==e.columnsAfter&&"number"!=typeof e.columnsAfter)return{success:!1,error:'WorkflowDefinition: Optional field "columnsAfter" is wrong type'};if(void 0!==e.isFullWorksheetRequired&&"boolean"!=typeof e.isFullWorksheetRequired)return{success:!1,error:'WorkflowDefinition: Optional field "isFullWorksheetRequired" is wrong type'};if(void 0!==e.isFullTableColumnsRequired&&"boolean"!=typeof e.isFullTableColumnsRequired)return{success:!1,error:'WorkflowDefinition: Optional field "isFullTableColumnsRequired" is wrong type'};if(void 0!==e.dynamicExecutionPreferences){const t=se.validate(e.dynamicExecutionPreferences);if(!t.success)return t.error="WorkflowDefinition.dynamicExecutionPreferences: "+t.error,t}if(void 0!==e.fetchExistingAnnotations&&"boolean"!=typeof e.fetchExistingAnnotations)return{success:!1,error:'WorkflowDefinition: Optional field "fetchExistingAnnotations" is wrong type'};if(void 0!==e.modelOptions){const t=Q.validate(e.modelOptions);if(!t.success)return t.error="WorkflowDefinition.modelOptions: "+t.error,t}if(void 0!==e.modelSchema){const t=(0,d.I)(e.modelSchema,1,j,"{WorkflowModelItemSchema}");if(!t.success)return t.error="WorkflowDefinition.modelSchema: "+t.error,t}if(void 0!==e.skipWorkflowItemSequencing&&"boolean"!=typeof e.skipWorkflowItemSequencing)return{success:!1,error:'WorkflowDefinition: Optional field "skipWorkflowItemSequencing" is wrong type'};if(void 0!==e.deltaTypesByInputType){const t=(0,d.R)(e.deltaTypesByInputType,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.deltaTypesByInputType: "+t.error,t}if(void 0!==e.allowDefinitionOverride&&"boolean"!=typeof e.allowDefinitionOverride)return{success:!1,error:'WorkflowDefinition: Optional field "allowDefinitionOverride" is wrong type'};if(void 0!==e.definitionOverrideTargetWorkflows){const t=(0,d.I)(e.definitionOverrideTargetWorkflows,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.definitionOverrideTargetWorkflows: "+t.error,t}if(void 0!==e.prefilters){const t=(0,d.I)(e.prefilters,1,ae,"{PrefilterDefinition}");if(!t.success)return t.error="WorkflowDefinition.prefilters: "+t.error,t}if(void 0!==e.eventSequenceOptions){const t=ce.validate(e.eventSequenceOptions);if(!t.success)return t.error="WorkflowDefinition.eventSequenceOptions: "+t.error,t}if(void 0!==e.maxSynchronizationWaitTimeMs&&"number"!=typeof e.maxSynchronizationWaitTimeMs)return{success:!1,error:'WorkflowDefinition: Optional field "maxSynchronizationWaitTimeMs" is wrong type'};if(void 0!==e.billingDomain){const t=he.validate(e.billingDomain);if(!t.success)return t.error="WorkflowDefinition.billingDomain: "+t.error,t}if(void 0!==e.synchronizationConfig){const t=ue.validate(e.synchronizationConfig);if(!t.success)return t.error="WorkflowDefinition.synchronizationConfig: "+t.error,t}if(void 0!==e.dlpPolicyScopes){const t=(0,d.I)(e.dlpPolicyScopes,1,me,"{DlpPolicyScope}");if(!t.success)return t.error="WorkflowDefinition.dlpPolicyScopes: "+t.error,t}if(void 0===e.id)return{success:!1,error:'WorkflowDefinition: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'WorkflowDefinition: Required field "id" is wrong type'};if(void 0===e.kind)return{success:!1,error:'WorkflowDefinition: Required field "kind" is missing'};{const t=pe.validate(e.kind);if(!t.success)return t.error="WorkflowDefinition.kind: "+t.error,t}if(void 0!==e.visibility){const t=ve.validate(e.visibility);if(!t.success)return t.error="WorkflowDefinition.visibility: "+t.error,t}if(void 0!==e.collectionScopeType&&"string"!=typeof e.collectionScopeType)return{success:!1,error:'WorkflowDefinition: Optional field "collectionScopeType" is wrong type'};if(void 0===e.inputTypes)return{success:!1,error:'WorkflowDefinition: Required field "inputTypes" is missing'};{const t=(0,d.I)(e.inputTypes,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.inputTypes: "+t.error,t}if(void 0===e.outputTypes)return{success:!1,error:'WorkflowDefinition: Required field "outputTypes" is missing'};{const t=(0,d.I)(e.outputTypes,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.outputTypes: "+t.error,t}if(void 0!==e.correlatedSignals){const t=(0,d.I)(e.correlatedSignals,1,void 0,"string");if(!t.success)return t.error="WorkflowDefinition.correlatedSignals: "+t.error,t}if(void 0!==e.requiredTokenTypes){const t=(0,d.I)(e.requiredTokenTypes,1,y,"{AuthTokenType}");if(!t.success)return t.error="WorkflowDefinition.requiredTokenTypes: "+t.error,t}if(void 0!==e.requiredTokenOptions){const t=(0,d.I)(e.requiredTokenOptions,1,Z,"{AuthTokenOptions}");if(!t.success)return t.error="WorkflowDefinition.requiredTokenOptions: "+t.error,t}return{success:!0}}},new class{validate(e){if(!e)return{success:!1,error:"UserContext: Expected object, got undefined object for UserContextValidator"};if(void 0!==e.oid&&"string"!=typeof e.oid)return{success:!1,error:'UserContext: Optional field "oid" is wrong type'};if(void 0!==e.tid&&"string"!=typeof e.tid)return{success:!1,error:'UserContext: Optional field "tid" is wrong type'};if(void 0!==e.puid&&"string"!=typeof e.puid)return{success:!1,error:'UserContext: Optional field "puid" is wrong type'};if(void 0!==e.username&&"string"!=typeof e.username)return{success:!1,error:'UserContext: Optional field "username" is wrong type'};if(void 0!==e.userType){const t=w.validate(e.userType);if(!t.success)return t.error="UserContext.userType: "+t.error,t}if(void 0!==e.clientIpAddress&&"string"!=typeof e.clientIpAddress)return{success:!1,error:'UserContext: Optional field "clientIpAddress" is wrong type'};if(void 0!==e.userDataBoundaryType){const t=S.validate(e.userDataBoundaryType);if(!t.success)return t.error="UserContext.userDataBoundaryType: "+t.error,t}return{success:!0}}};const le=new class{validate(e){return e?void 0!==e.triggerImmediately&&"boolean"!=typeof e.triggerImmediately?{success:!1,error:'TriggerSignalsOptions: Optional field "triggerImmediately" is wrong type'}:{success:!0}:{success:!1,error:"TriggerSignalsOptions: Expected object, got undefined object for TriggerSignalsOptionsValidator"}}},ue=new class{validate(e){return e?void 0===e.shouldSkipSynchronization?{success:!1,error:'SynchronizationConfig: Required field "shouldSkipSynchronization" is missing'}:"boolean"!=typeof e.shouldSkipSynchronization?{success:!1,error:'SynchronizationConfig: Required field "shouldSkipSynchronization" is wrong type'}:{success:!0}:{success:!1,error:"SynchronizationConfig: Expected object, got undefined object for SynchronizationConfigValidator"}}};class de{validate(e){return de.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "WorkflowKind"'}}}de.validValues=new Set([h.wC.SingleItem,h.wC.Reduce,h.wC.Grid,h.wC.DynamicText,h.wC.Join,h.wC.Generic]);const pe=new de;class fe{validate(e){return fe.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "BillingDomain"'}}}fe.validValues=new Set([h.mk.Default,h.mk.Copilot]);const he=new fe;class ge{validate(e){return ge.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "DlpPolicyScope"'}}}ge.validValues=new Set([h.Bh.None,h.Bh.ContentFiltering_M365Copilot]);const me=new ge;class ye{validate(e){return ye.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "WorkflowVisibility"'}}}ye.validValues=new Set([h.Y$.Default,h.Y$.LocalOnly,h.Y$.Exclusive]);const ve=new ye;class we{validate(e){return we.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ActivationTier"'}}}we.validValues=new Set([h.XJ.PreActivate,h.XJ.Default,h.XJ.DelayActivate,h.XJ.NeverActivate]);const be=new we;class Se{validate(e){return Se.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "RequestedContextCardinality"'}}}Se.validValues=new Set([h.in.Required,h.in.Optional]);const Te=new Se;class Ce{validate(e){return Ce.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ProducerWaitPolicy"'}}}Ce.validValues=new Set([h.qW.Never,h.qW.Always]);const _e=new Ce;class Ie{validate(e){return Ie.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "InputStage"'}}}Ie.validValues=new Set([h.RN.PreSeed,h.RN.OnSeed,h.RN.PostSeed,h.RN.All]);const ke=new Ie;class Ae{validate(e){return Ae.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "TriggerCondition"'}}}Ae.validValues=new Set([h.ov.UpstreamWorkflowsReady,h.ov.AnnotationMetadataUpdated,h.ov.DeltaUpdate,h.ov.NonExclusiveTriggerSignals]);const Ee=new Ae;class Re{validate(e){return Re.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "UnitType"'}}}Re.validValues=new Set([h.ni.Character,h.ni.Paragraph]);const Oe=new Re;class Pe{validate(e){return Pe.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "PrefilterType"'}}}Pe.validValues=new Set([h.gd.Input,h.gd.Delta,h.gd.UILanguage,h.gd.MaxInputCount,h.gd.ExtensionLimits]);const Me=new Pe;class xe{validate(e){return xe.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "PrefilterActionType"'}}}xe.validValues=new Set([h.Uy.SetPredefinedAnnotation,h.Uy.ClearAnnotations]);const De=new xe;new class{validate(e){return e?{success:!0}:{success:!1,error:"PluginCatalog: Expected object, got undefined object for PluginCatalogValidator"}}};const Ne=new class{validate(e){if(!e)return{success:!1,error:"PluginMetadata: Expected object, got undefined object for PluginMetadataValidator"};if(void 0===e.pluginId)return{success:!1,error:'PluginMetadata: Required field "pluginId" is missing'};if("string"!=typeof e.pluginId)return{success:!1,error:'PluginMetadata: Required field "pluginId" is wrong type'};if(void 0===e.version)return{success:!1,error:'PluginMetadata: Required field "version" is missing'};if("string"!=typeof e.version)return{success:!1,error:'PluginMetadata: Required field "version" is wrong type'};if(void 0===e.schemaVersion)return{success:!1,error:'PluginMetadata: Required field "schemaVersion" is missing'};if("string"!=typeof e.schemaVersion)return{success:!1,error:'PluginMetadata: Required field "schemaVersion" is wrong type'};if(void 0===e.category)return{success:!1,error:'PluginMetadata: Required field "category" is missing'};if("string"!=typeof e.category)return{success:!1,error:'PluginMetadata: Required field "category" is wrong type'};if(void 0===e.name)return{success:!1,error:'PluginMetadata: Required field "name" is missing'};if("string"!=typeof e.name)return{success:!1,error:'PluginMetadata: Required field "name" is wrong type'};if(void 0===e.description)return{success:!1,error:'PluginMetadata: Required field "description" is missing'};if("string"!=typeof e.description)return{success:!1,error:'PluginMetadata: Required field "description" is wrong type'};if(void 0===e.manifest)return{success:!1,error:'PluginMetadata: Required field "manifest" is missing'};if("string"!=typeof e.manifest)return{success:!1,error:'PluginMetadata: Required field "manifest" is wrong type'};if(void 0!==e.apiSpec&&"string"!=typeof e.apiSpec)return{success:!1,error:'PluginMetadata: Optional field "apiSpec" is wrong type'};if(void 0!==e.legalInfoUrl&&"string"!=typeof e.legalInfoUrl)return{success:!1,error:'PluginMetadata: Optional field "legalInfoUrl" is wrong type'};if(void 0!==e.token){const t=Fe.validate(e.token);if(!t.success)return t.error="PluginMetadata.token: "+t.error,t}if(void 0!==e.activationConfigs){const t=(0,d.I)(e.activationConfigs,1,Le,"{PluginActivationConfig}");if(!t.success)return t.error="PluginMetadata.activationConfigs: "+t.error,t}return{success:!0}}},Le=new class{validate(e){return e?void 0===e.appId?{success:!1,error:'PluginActivationConfig: Required field "appId" is missing'}:"string"!=typeof e.appId?{success:!1,error:'PluginActivationConfig: Required field "appId" is wrong type'}:void 0===e.source?{success:!1,error:'PluginActivationConfig: Required field "source" is missing'}:"string"!=typeof e.source?{success:!1,error:'PluginActivationConfig: Required field "source" is wrong type'}:void 0===e.platform?{success:!1,error:'PluginActivationConfig: Required field "platform" is missing'}:"string"!=typeof e.platform?{success:!1,error:'PluginActivationConfig: Required field "platform" is wrong type'}:void 0===e.selectionMode?{success:!1,error:'PluginActivationConfig: Required field "selectionMode" is missing'}:"string"!=typeof e.selectionMode?{success:!1,error:'PluginActivationConfig: Required field "selectionMode" is wrong type'}:{success:!0}:{success:!1,error:"PluginActivationConfig: Expected object, got undefined object for PluginActivationConfigValidator"}}},Fe=new class{validate(e){return e?void 0===e.accessToken?{success:!1,error:'PluginToken: Required field "accessToken" is missing'}:"string"!=typeof e.accessToken?{success:!1,error:'PluginToken: Required field "accessToken" is wrong type'}:void 0===e.Expiry?{success:!1,error:'PluginToken: Required field "Expiry" is missing'}:"string"!=typeof e.Expiry?{success:!1,error:'PluginToken: Required field "Expiry" is wrong type'}:{success:!0}:{success:!1,error:"PluginToken: Expected object, got undefined object for PluginTokenValidator"}}};new class{validate(e){if(!e)return{success:!1,error:"PluginStoreResponse: Expected object, got undefined object for PluginStoreResponseValidator"};if(void 0===e.result)return{success:!1,error:'PluginStoreResponse: Required field "result" is missing'};{const t=(0,d.I)(e.result,1,Ne,"{PluginMetadata}");if(!t.success)return t.error="PluginStoreResponse.result: "+t.error,t}return{success:!0}}};const Be=new class{validate(e){return e?void 0===e.id?{success:!1,error:'PluginInfo: Required field "id" is missing'}:"string"!=typeof e.id?{success:!1,error:'PluginInfo: Required field "id" is wrong type'}:void 0!==e.version&&"string"!=typeof e.version?{success:!1,error:'PluginInfo: Optional field "version" is wrong type'}:{success:!0}:{success:!1,error:"PluginInfo: Expected object, got undefined object for PluginInfoValidator"}}};class We{constructor(e){P.h.assign(We,this,e)}static getTypeName(){return"AugLoop_Debug_SerializedNode"}static getBaseTypes(){return[]}static typeGuard(e){return P.h.matchesTypesFor(e,[We.getTypeName()])}}We.H_={T_:We.getTypeName(),B_:We.getBaseTypes()};const Ue=new class{validate(e){if(!e)return{success:!1,error:"SerializedNode: Expected object, got undefined object for SerializedNodeValidator"};if(void 0===e.item)return{success:!1,error:'SerializedNode: Required field "item" is missing'};{const t=l.$.validate(e.item);if(!t.success)return t.error="SerializedNode.item: "+t.error,t}if(void 0===e.childNodeIDs)return{success:!1,error:'SerializedNode: Required field "childNodeIDs" is missing'};{const t=(0,d.I)(e.childNodeIDs,2,void 0,"string");if(!t.success)return t.error="SerializedNode.childNodeIDs: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?We.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SerializedNode"'}:t}};class Ge{constructor(e){P.h.assign(Ge,this,e)}static getTypeName(){return"AugLoop_Session_Protocol_HostConfig"}static getBaseTypes(){return[]}static typeGuard(e){return P.h.matchesTypesFor(e,[Ge.getTypeName()])}}Ge.H_={T_:Ge.getTypeName(),B_:Ge.getBaseTypes()};const Ve=new class{validate(e){if(!e)return{success:!1,error:"HostConfig: Expected object, got undefined object for HostConfigValidator"};const t=c.X$.validate(e.H_);return t.success?Ge.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "HostConfig"'}:t}};class qe{validate(e){return qe.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ServerAuthenticationState"'}}}qe.validValues=new Set([i.f.NotAuthenticated,i.f.Pending,i.f.Authenticated,i.f.WacUserInfoAuthenticated,i.f.TokenMissingInteractionRequired]);const He=new qe,je=new class{validate(e){if(!e)return{success:!1,error:"Message: Expected object, got undefined object for MessageValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'Message: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'Message: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'Message: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.QB.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Message"'}:t}},ze=new class{validate(e){if(!e)return{success:!1,error:"Response: Expected object, got undefined object for ResponseValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'Response: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'Response: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'Response: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.YK.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Response"'}:t}},$e=new class{validate(e){if(!e)return{success:!1,error:"StreamingResponse: Expected object, got undefined object for StreamingResponseValidator"};if(void 0!==e.seqId&&"string"!=typeof e.seqId)return{success:!1,error:'StreamingResponse: Optional field "seqId" is wrong type'};if(void 0!==e.finalResponse&&"boolean"!=typeof e.finalResponse)return{success:!1,error:'StreamingResponse: Optional field "finalResponse" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'StreamingResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'StreamingResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'StreamingResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.i.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "StreamingResponse"'}:t}},Ye=new class{validate(e){if(!e)return{success:!1,error:"StreamingRequest: Expected object, got undefined object for StreamingRequestValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'StreamingRequest: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'StreamingRequest: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'StreamingRequest: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Yp.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "StreamingRequest"'}:t}},Je=new class{validate(e){if(!e)return{success:!1,error:"ExecutionError: Expected object, got undefined object for ExecutionErrorValidator"};if(void 0!==e.code){const t=Yt.validate(e.code);if(!t.success)return t.error="ExecutionError.code: "+t.error,t}if(void 0!==e.error&&"string"!=typeof e.error)return{success:!1,error:'ExecutionError: Optional field "error" is wrong type'};if(void 0!==e.retryable&&"boolean"!=typeof e.retryable)return{success:!1,error:'ExecutionError: Optional field "retryable" is wrong type'};if(void 0!==e.resourceId&&"string"!=typeof e.resourceId)return{success:!1,error:'ExecutionError: Optional field "resourceId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Re.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ExecutionError"'}:t}},Qe=new class{validate(e){if(!e)return{success:!1,error:"GetAnnotationsClientError: Expected object, got undefined object for GetAnnotationsClientErrorValidator"};if(void 0!==e.code){const t=Qt.validate(e.code);if(!t.success)return t.error="GetAnnotationsClientError.code: "+t.error,t}if(void 0!==e.error&&"string"!=typeof e.error)return{success:!1,error:'GetAnnotationsClientError: Optional field "error" is wrong type'};if(void 0!==e.retryable&&"boolean"!=typeof e.retryable)return{success:!1,error:'GetAnnotationsClientError: Optional field "retryable" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Wx.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GetAnnotationsClientError"'}:t}},Ke=new class{validate(e){if(!e)return{success:!1,error:"GetAnnotationsErrorInfo: Expected object, got undefined object for GetAnnotationsErrorInfoValidator"};if(void 0!==e.serviceError){const t=(0,d.I)(e.serviceError,1,Je,"{ExecutionError}");if(!t.success)return t.error="GetAnnotationsErrorInfo.serviceError: "+t.error,t}if(void 0!==e.workflowError){const t=(0,d.I)(e.workflowError,1,Je,"{ExecutionError}");if(!t.success)return t.error="GetAnnotationsErrorInfo.workflowError: "+t.error,t}if(void 0!==e.clientError){const t=Qe.validate(e.clientError);if(!t.success)return t.error="GetAnnotationsErrorInfo.clientError: "+t.error,t}if(void 0!==e.serverError){const t=Xe.validate(e.serverError);if(!t.success)return t.error="GetAnnotationsErrorInfo.serverError: "+t.error,t}const t=c.X$.validate(e.H_);return t.success?s.p3.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GetAnnotationsErrorInfo"'}:t}},Xe=new class{validate(e){if(!e)return{success:!1,error:"ErrorResponse: Expected object, got undefined object for ErrorResponseValidator"};if(void 0===e.error)return{success:!1,error:'ErrorResponse: Required field "error" is missing'};if("string"!=typeof e.error)return{success:!1,error:'ErrorResponse: Required field "error" is wrong type'};if(void 0!==e.code){const t=Xt.validate(e.code);if(!t.success)return t.error="ErrorResponse.code: "+t.error,t}if(void 0!==e.retryable&&"boolean"!=typeof e.retryable)return{success:!1,error:'ErrorResponse: Optional field "retryable" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'ErrorResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'ErrorResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'ErrorResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s._p.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ErrorResponse"'}:t}},Ze=new class{validate(e){if(!e)return{success:!1,error:"TimeoutErrorResponse: Expected object, got undefined object for TimeoutErrorResponseValidator"};if(void 0===e.error)return{success:!1,error:'TimeoutErrorResponse: Required field "error" is missing'};if("string"!=typeof e.error)return{success:!1,error:'TimeoutErrorResponse: Required field "error" is wrong type'};if(void 0!==e.code){const t=Xt.validate(e.code);if(!t.success)return t.error="TimeoutErrorResponse.code: "+t.error,t}if(void 0!==e.retryable&&"boolean"!=typeof e.retryable)return{success:!1,error:'TimeoutErrorResponse: Optional field "retryable" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'TimeoutErrorResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'TimeoutErrorResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'TimeoutErrorResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.F_.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "TimeoutErrorResponse"'}:t}},et=new class{validate(e){if(!e)return{success:!1,error:"RateLimitErrorResponse: Expected object, got undefined object for RateLimitErrorResponseValidator"};if(void 0===e.retryAfterMs)return{success:!1,error:'RateLimitErrorResponse: Required field "retryAfterMs" is missing'};if("number"!=typeof e.retryAfterMs)return{success:!1,error:'RateLimitErrorResponse: Required field "retryAfterMs" is wrong type'};if(void 0===e.error)return{success:!1,error:'RateLimitErrorResponse: Required field "error" is missing'};if("string"!=typeof e.error)return{success:!1,error:'RateLimitErrorResponse: Required field "error" is wrong type'};if(void 0!==e.code){const t=Xt.validate(e.code);if(!t.success)return t.error="RateLimitErrorResponse.code: "+t.error,t}if(void 0!==e.retryable&&"boolean"!=typeof e.retryable)return{success:!1,error:'RateLimitErrorResponse: Optional field "retryable" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'RateLimitErrorResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'RateLimitErrorResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'RateLimitErrorResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.ru.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "RateLimitErrorResponse"'}:t}},tt=new class{validate(e){if(!e)return{success:!1,error:"SessionInitMessage: Expected object, got undefined object for SessionInitMessageValidator"};if(void 0===e.protocolVersion)return{success:!1,error:'SessionInitMessage: Required field "protocolVersion" is missing'};if("number"!=typeof e.protocolVersion)return{success:!1,error:'SessionInitMessage: Required field "protocolVersion" is wrong type'};if(void 0===e.clientMetadata)return{success:!1,error:'SessionInitMessage: Required field "clientMetadata" is missing'};{const t=f.validate(e.clientMetadata);if(!t.success)return t.error="SessionInitMessage.clientMetadata: "+t.error,t}if(void 0!==e.serviceUrl&&"string"!=typeof e.serviceUrl)return{success:!1,error:'SessionInitMessage: Optional field "serviceUrl" is wrong type'};if(void 0!==e.sessionKey&&"string"!=typeof e.sessionKey)return{success:!1,error:'SessionInitMessage: Optional field "sessionKey" is wrong type'};if(void 0!==e.origin&&"string"!=typeof e.origin)return{success:!1,error:'SessionInitMessage: Optional field "origin" is wrong type'};if(void 0!==e.authToken&&"string"!=typeof e.authToken)return{success:!1,error:'SessionInitMessage: Optional field "authToken" is wrong type'};if(void 0!==e.extensionConfigs){const t=(0,d.I)(e.extensionConfigs,1,c.sK,"{SchemaObject}");if(!t.success)return t.error="SessionInitMessage.extensionConfigs: "+t.error,t}if(void 0!==e.returnWorkflowInputTypes&&"boolean"!=typeof e.returnWorkflowInputTypes)return{success:!1,error:'SessionInitMessage: Optional field "returnWorkflowInputTypes" is wrong type'};if(void 0!==e.enableSessionInspectorLogs&&"boolean"!=typeof e.enableSessionInspectorLogs)return{success:!1,error:'SessionInitMessage: Optional field "enableSessionInspectorLogs" is wrong type'};if(void 0!==e.enableRemoteExecutionNotification&&"boolean"!=typeof e.enableRemoteExecutionNotification)return{success:!1,error:'SessionInitMessage: Optional field "enableRemoteExecutionNotification" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionInitMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionInitMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionInitMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.eE.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionInitMessage"'}:t}},nt=new class{validate(e){if(!e)return{success:!1,error:"SessionInitResponse: Expected object, got undefined object for SessionInitResponseValidator"};if(void 0===e.sessionKey)return{success:!1,error:'SessionInitResponse: Required field "sessionKey" is missing'};if("string"!=typeof e.sessionKey)return{success:!1,error:'SessionInitResponse: Required field "sessionKey" is wrong type'};if(void 0===e.sessionUrlBase)return{success:!1,error:'SessionInitResponse: Required field "sessionUrlBase" is missing'};if("string"!=typeof e.sessionUrlBase)return{success:!1,error:'SessionInitResponse: Required field "sessionUrlBase" is wrong type'};if(void 0===e.origin)return{success:!1,error:'SessionInitResponse: Required field "origin" is missing'};if("string"!=typeof e.origin)return{success:!1,error:'SessionInitResponse: Required field "origin" is wrong type'};if(void 0!==e.sliceUrl&&"string"!=typeof e.sliceUrl)return{success:!1,error:'SessionInitResponse: Optional field "sliceUrl" is wrong type'};if(void 0!==e.forceReconnect&&"boolean"!=typeof e.forceReconnect)return{success:!1,error:'SessionInitResponse: Optional field "forceReconnect" is wrong type'};if(void 0!==e.tokenExpirationTime&&"number"!=typeof e.tokenExpirationTime)return{success:!1,error:'SessionInitResponse: Optional field "tokenExpirationTime" is wrong type'};if(void 0!==e.tokenExpirationSeconds&&"number"!=typeof e.tokenExpirationSeconds)return{success:!1,error:'SessionInitResponse: Optional field "tokenExpirationSeconds" is wrong type'};if(void 0!==e.anonymousToken&&"string"!=typeof e.anonymousToken)return{success:!1,error:'SessionInitResponse: Optional field "anonymousToken" is wrong type'};if(void 0!==e.existingTokenProvisionResponse){const t=kt.validate(e.existingTokenProvisionResponse);if(!t.success)return t.error="SessionInitResponse.existingTokenProvisionResponse: "+t.error,t}if(void 0!==e.workflowInputTypes){const t=(0,d.I)(e.workflowInputTypes,1,void 0,"string");if(!t.success)return t.error="SessionInitResponse.workflowInputTypes: "+t.error,t}if(void 0!==e.maxRPS&&"number"!=typeof e.maxRPS)return{success:!1,error:'SessionInitResponse: Optional field "maxRPS" is wrong type'};if(void 0!==e.maxBPS&&"number"!=typeof e.maxBPS)return{success:!1,error:'SessionInitResponse: Optional field "maxBPS" is wrong type'};if(void 0!==e.downstreamRuntimeWorkflows){const t=(0,d.I)(e.downstreamRuntimeWorkflows,1,ee,"{WorkflowDefinitionBase}");if(!t.success)return t.error="SessionInitResponse.downstreamRuntimeWorkflows: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionInitResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionInitResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionInitResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.uN.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionInitResponse"'}:t}},rt=new class{validate(e){if(!e)return{success:!1,error:"SessionLongPollMessage: Expected object, got undefined object for SessionLongPollMessageValidator"};if(void 0!==e.longPollTimeoutHint&&"number"!=typeof e.longPollTimeoutHint)return{success:!1,error:'SessionLongPollMessage: Optional field "longPollTimeoutHint" is wrong type'};if(void 0!==e.type){const t=en.validate(e.type);if(!t.success)return t.error="SessionLongPollMessage.type: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionLongPollMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionLongPollMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionLongPollMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.LQ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionLongPollMessage"'}:t}},ot=new class{validate(e){if(!e)return{success:!1,error:"SessionLongPollResponse: Expected object, got undefined object for SessionLongPollResponseValidator"};if(void 0!==e.batch){const t=(0,d.I)(e.batch,1,c.sK,"{SchemaObject}");if(!t.success)return t.error="SessionLongPollResponse.batch: "+t.error,t}if(void 0!==e.error&&"string"!=typeof e.error)return{success:!1,error:'SessionLongPollResponse: Optional field "error" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionLongPollResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionLongPollResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionLongPollResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.ry.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionLongPollResponse"'}:t}},st=new class{validate(e){if(!e)return{success:!1,error:"SessionCloseReason: Expected object, got undefined object for SessionCloseReasonValidator"};if(void 0===e.reasonDescription)return{success:!1,error:'SessionCloseReason: Required field "reasonDescription" is missing'};if("string"!=typeof e.reasonDescription)return{success:!1,error:'SessionCloseReason: Required field "reasonDescription" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Zy.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionCloseReason"'}:t}},it=new class{validate(e){if(!e)return{success:!1,error:"SessionSwapOnClose: Expected object, got undefined object for SessionSwapOnCloseValidator"};if(void 0===e.newDocSessionId)return{success:!1,error:'SessionSwapOnClose: Required field "newDocSessionId" is missing'};if("string"!=typeof e.newDocSessionId)return{success:!1,error:'SessionSwapOnClose: Required field "newDocSessionId" is wrong type'};if(void 0===e.reason)return{success:!1,error:'SessionSwapOnClose: Required field "reason" is missing'};{const t=nn.validate(e.reason);if(!t.success)return t.error="SessionSwapOnClose.reason: "+t.error,t}if(void 0===e.reasonDescription)return{success:!1,error:'SessionSwapOnClose: Required field "reasonDescription" is missing'};if("string"!=typeof e.reasonDescription)return{success:!1,error:'SessionSwapOnClose: Required field "reasonDescription" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.pr.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionSwapOnClose"'}:t}},at=new class{validate(e){if(!e)return{success:!1,error:"SessionCloseMessage: Expected object, got undefined object for SessionCloseMessageValidator"};if(void 0!==e.reconnectAllowed&&"boolean"!=typeof e.reconnectAllowed)return{success:!1,error:'SessionCloseMessage: Optional field "reconnectAllowed" is wrong type'};if(void 0!==e.reason){const t=c.sK.validate(e.reason);if(!t.success)return t.error="SessionCloseMessage.reason: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionCloseMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionCloseMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionCloseMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.w9.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionCloseMessage"'}:t}},ct=new class{validate(e){if(!e)return{success:!1,error:"CacheDumpRequestMessage: Expected object, got undefined object for CacheDumpRequestMessageValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'CacheDumpRequestMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'CacheDumpRequestMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'CacheDumpRequestMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.z_.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "CacheDumpRequestMessage"'}:t}},lt=new class{validate(e){if(!e)return{success:!1,error:"CacheDumpRequestResponse: Expected object, got undefined object for CacheDumpRequestResponseValidator"};if(void 0===e.serializedNodes)return{success:!1,error:'CacheDumpRequestResponse: Required field "serializedNodes" is missing'};{const t=(0,d.I)(e.serializedNodes,1,Ue,"{SerializedNode}");if(!t.success)return t.error="CacheDumpRequestResponse.serializedNodes: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'CacheDumpRequestResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'CacheDumpRequestResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'CacheDumpRequestResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Nn.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "CacheDumpRequestResponse"'}:t}},ut=new class{validate(e){if(!e)return{success:!1,error:"AnnotationActivationMessage: Expected object, got undefined object for AnnotationActivationMessageValidator"};if(void 0===e.annotationType)return{success:!1,error:'AnnotationActivationMessage: Required field "annotationType" is missing'};if("string"!=typeof e.annotationType)return{success:!1,error:'AnnotationActivationMessage: Required field "annotationType" is wrong type'};if(void 0===e.token)return{success:!1,error:'AnnotationActivationMessage: Required field "token" is missing'};if("string"!=typeof e.token)return{success:!1,error:'AnnotationActivationMessage: Required field "token" is wrong type'};if(void 0!==e.batchId&&"string"!=typeof e.batchId)return{success:!1,error:'AnnotationActivationMessage: Optional field "batchId" is wrong type'};if(void 0!==e.config){const t=c.sK.validate(e.config);if(!t.success)return t.error="AnnotationActivationMessage.config: "+t.error,t}if(void 0!==e.ignoreExistingAnnotations&&"boolean"!=typeof e.ignoreExistingAnnotations)return{success:!1,error:'AnnotationActivationMessage: Optional field "ignoreExistingAnnotations" is wrong type'};if(void 0!==e.sendStateUpdates&&"boolean"!=typeof e.sendStateUpdates)return{success:!1,error:'AnnotationActivationMessage: Optional field "sendStateUpdates" is wrong type'};if(void 0!==e.sendApologies&&"boolean"!=typeof e.sendApologies)return{success:!1,error:'AnnotationActivationMessage: Optional field "sendApologies" is wrong type'};if(void 0!==e.scope){const t=(0,d.I)(e.scope,1,void 0,"string");if(!t.success)return t.error="AnnotationActivationMessage.scope: "+t.error,t}if(void 0!==e.forceReturnCachedAnnotations&&"boolean"!=typeof e.forceReturnCachedAnnotations)return{success:!1,error:'AnnotationActivationMessage: Optional field "forceReturnCachedAnnotations" is wrong type'};if(void 0!==e.returnAnnotationDoesNotExist&&"boolean"!=typeof e.returnAnnotationDoesNotExist)return{success:!1,error:'AnnotationActivationMessage: Optional field "returnAnnotationDoesNotExist" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationActivationMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationActivationMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationActivationMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.n4.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationActivationMessage"'}:t}},dt=new class{validate(e){if(!e)return{success:!1,error:"AnnotationActivationResponse: Expected object, got undefined object for AnnotationActivationResponseValidator"};if(void 0===e.token)return{success:!1,error:'AnnotationActivationResponse: Required field "token" is missing'};if("string"!=typeof e.token)return{success:!1,error:'AnnotationActivationResponse: Required field "token" is wrong type'};if(void 0!==e.annotationNotExists&&"boolean"!=typeof e.annotationNotExists)return{success:!1,error:'AnnotationActivationResponse: Optional field "annotationNotExists" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationActivationResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationActivationResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationActivationResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.PY.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationActivationResponse"'}:t}},pt=new class{validate(e){if(!e)return{success:!1,error:"AnnotationResultStateUpdate: Expected object, got undefined object for AnnotationResultStateUpdateValidator"};if(void 0===e.annotationType)return{success:!1,error:'AnnotationResultStateUpdate: Required field "annotationType" is missing'};if("string"!=typeof e.annotationType)return{success:!1,error:'AnnotationResultStateUpdate: Required field "annotationType" is wrong type'};if(void 0===e.state)return{success:!1,error:'AnnotationResultStateUpdate: Required field "state" is missing'};{const t=on.validate(e.state);if(!t.success)return t.error="AnnotationResultStateUpdate.state: "+t.error,t}return{success:!0}}},ft=new class{validate(e){if(!e)return{success:!1,error:"AnnotationResultStateMessage: Expected object, got undefined object for AnnotationResultStateMessageValidator"};if(void 0===e.updates)return{success:!1,error:'AnnotationResultStateMessage: Required field "updates" is missing'};{const t=(0,d.I)(e.updates,1,pt,"{AnnotationResultStateUpdate}");if(!t.success)return t.error="AnnotationResultStateMessage.updates: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationResultStateMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationResultStateMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationResultStateMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.$j.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationResultStateMessage"'}:t}},ht=new class{validate(e){if(!e)return{success:!1,error:"AnnotationReleaseMessage: Expected object, got undefined object for AnnotationReleaseMessageValidator"};if(void 0===e.token)return{success:!1,error:'AnnotationReleaseMessage: Required field "token" is missing'};if("string"!=typeof e.token)return{success:!1,error:'AnnotationReleaseMessage: Required field "token" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationReleaseMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationReleaseMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationReleaseMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.GA.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationReleaseMessage"'}:t}},gt=new class{validate(e){if(!e)return{success:!1,error:"AnnotationReleaseResponse: Expected object, got undefined object for AnnotationReleaseResponseValidator"};if(void 0===e.lastRelease)return{success:!1,error:'AnnotationReleaseResponse: Required field "lastRelease" is missing'};if("boolean"!=typeof e.lastRelease)return{success:!1,error:'AnnotationReleaseResponse: Required field "lastRelease" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationReleaseResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationReleaseResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationReleaseResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Qq.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationReleaseResponse"'}:t}},mt=new class{validate(e){if(!e)return{success:!1,error:"AnnotationConfigUpdateMessage: Expected object, got undefined object for AnnotationConfigUpdateMessageValidator"};if(void 0===e.token)return{success:!1,error:'AnnotationConfigUpdateMessage: Required field "token" is missing'};if("string"!=typeof e.token)return{success:!1,error:'AnnotationConfigUpdateMessage: Required field "token" is wrong type'};if(void 0===e.config)return{success:!1,error:'AnnotationConfigUpdateMessage: Required field "config" is missing'};{const t=c.sK.validate(e.config);if(!t.success)return t.error="AnnotationConfigUpdateMessage.config: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationConfigUpdateMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationConfigUpdateMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationConfigUpdateMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Ol.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationConfigUpdateMessage"'}:t}},yt=new class{validate(e){if(!e)return{success:!1,error:"AnnotationConfigUpdateResponse: Expected object, got undefined object for AnnotationConfigUpdateResponseValidator"};if(void 0===e.token)return{success:!1,error:'AnnotationConfigUpdateResponse: Required field "token" is missing'};if("string"!=typeof e.token)return{success:!1,error:'AnnotationConfigUpdateResponse: Required field "token" is wrong type'};if(void 0!==e.success&&"boolean"!=typeof e.success)return{success:!1,error:'AnnotationConfigUpdateResponse: Optional field "success" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationConfigUpdateResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationConfigUpdateResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationConfigUpdateResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s._4.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationConfigUpdateResponse"'}:t}},vt=new class{validate(e){if(!e)return{success:!1,error:"BatchedMessage: Expected object, got undefined object for BatchedMessageValidator"};if(void 0===e.messages)return{success:!1,error:'BatchedMessage: Required field "messages" is missing'};{const t=(0,d.I)(e.messages,1,je,"{Message}");if(!t.success)return t.error="BatchedMessage.messages: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'BatchedMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'BatchedMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'BatchedMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.l0.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "BatchedMessage"'}:t}},wt=new class{validate(e){if(!e)return{success:!1,error:"SyncMessage: Expected object, got undefined object for SyncMessageValidator"};if(void 0!==e.senderId&&"string"!=typeof e.senderId)return{success:!1,error:'SyncMessage: Optional field "senderId" is wrong type'};if(void 0!==e.seq&&"number"!=typeof e.seq)return{success:!1,error:'SyncMessage: Optional field "seq" is wrong type'};if(void 0===e.ops)return{success:!1,error:'SyncMessage: Required field "ops" is missing'};{const t=(0,d.I)(e.ops,1,l.bE,"{Operation}");if(!t.success)return t.error="SyncMessage.ops: "+t.error,t}if(void 0!==e.batchId&&"string"!=typeof e.batchId)return{success:!1,error:'SyncMessage: Optional field "batchId" is wrong type'};if(void 0!==e.groupId&&"string"!=typeof e.groupId)return{success:!1,error:'SyncMessage: Optional field "groupId" is wrong type'};if(void 0!==e.batchComplete&&"boolean"!=typeof e.batchComplete)return{success:!1,error:'SyncMessage: Optional field "batchComplete" is wrong type'};if(void 0!==e.groupComplete&&"boolean"!=typeof e.groupComplete)return{success:!1,error:'SyncMessage: Optional field "groupComplete" is wrong type'};if(void 0!==e.batchSize&&"number"!=typeof e.batchSize)return{success:!1,error:'SyncMessage: Optional field "batchSize" is wrong type'};if(void 0!==e.groupSize&&"number"!=typeof e.groupSize)return{success:!1,error:'SyncMessage: Optional field "groupSize" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SyncMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SyncMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SyncMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Tb.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SyncMessage"'}:t}},bt=new class{validate(e){if(!e)return{success:!1,error:"MicroSyncMessage: Expected object, got undefined object for MicroSyncMessageValidator"};if(void 0===e.item)return{success:!1,error:'MicroSyncMessage: Required field "item" is missing'};{const t=l.$.validate(e.item);if(!t.success)return t.error="MicroSyncMessage.item: "+t.error,t}if(void 0!==e.seq&&"number"!=typeof e.seq)return{success:!1,error:'MicroSyncMessage: Optional field "seq" is wrong type'};if(void 0!==e.opType&&"string"!=typeof e.opType)return{success:!1,error:'MicroSyncMessage: Optional field "opType" is wrong type'};if(void 0!==e.parentPath){const t=(0,d.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="MicroSyncMessage.parentPath: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'MicroSyncMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'MicroSyncMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'MicroSyncMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.VR.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "MicroSyncMessage"'}:t}},St=new class{validate(e){if(!e)return{success:!1,error:"SyncResponse: Expected object, got undefined object for SyncResponseValidator"};if(void 0!==e.minimumSyncIntervalMs&&"number"!=typeof e.minimumSyncIntervalMs)return{success:!1,error:'SyncResponse: Optional field "minimumSyncIntervalMs" is wrong type'};if(void 0!==e.opErrors){const t=(0,d.I)(e.opErrors,1,l.r$,"{OperationError}");if(!t.success)return t.error="SyncResponse.opErrors: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SyncResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SyncResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SyncResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.fZ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SyncResponse"'}:t}},Tt=new class{validate(e){if(!e)return{success:!1,error:"SessionDeleteMessage: Expected object, got undefined object for SessionDeleteMessageValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionDeleteMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionDeleteMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionDeleteMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.ZH.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionDeleteMessage"'}:t}},Ct=new class{validate(e){if(!e)return{success:!1,error:"AnnotationResultsMessage: Expected object, got undefined object for AnnotationResultsMessageValidator"};if(void 0===e.annotationType)return{success:!1,error:'AnnotationResultsMessage: Required field "annotationType" is missing'};if("string"!=typeof e.annotationType)return{success:!1,error:'AnnotationResultsMessage: Required field "annotationType" is wrong type'};if(void 0!==e.areApologies&&"boolean"!=typeof e.areApologies)return{success:!1,error:'AnnotationResultsMessage: Optional field "areApologies" is wrong type'};if(void 0!==e.senderId&&"string"!=typeof e.senderId)return{success:!1,error:'AnnotationResultsMessage: Optional field "senderId" is wrong type'};if(void 0!==e.seq&&"number"!=typeof e.seq)return{success:!1,error:'AnnotationResultsMessage: Optional field "seq" is wrong type'};if(void 0===e.ops)return{success:!1,error:'AnnotationResultsMessage: Required field "ops" is missing'};{const t=(0,d.I)(e.ops,1,l.bE,"{Operation}");if(!t.success)return t.error="AnnotationResultsMessage.ops: "+t.error,t}if(void 0!==e.batchId&&"string"!=typeof e.batchId)return{success:!1,error:'AnnotationResultsMessage: Optional field "batchId" is wrong type'};if(void 0!==e.groupId&&"string"!=typeof e.groupId)return{success:!1,error:'AnnotationResultsMessage: Optional field "groupId" is wrong type'};if(void 0!==e.batchComplete&&"boolean"!=typeof e.batchComplete)return{success:!1,error:'AnnotationResultsMessage: Optional field "batchComplete" is wrong type'};if(void 0!==e.groupComplete&&"boolean"!=typeof e.groupComplete)return{success:!1,error:'AnnotationResultsMessage: Optional field "groupComplete" is wrong type'};if(void 0!==e.batchSize&&"number"!=typeof e.batchSize)return{success:!1,error:'AnnotationResultsMessage: Optional field "batchSize" is wrong type'};if(void 0!==e.groupSize&&"number"!=typeof e.groupSize)return{success:!1,error:'AnnotationResultsMessage: Optional field "groupSize" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'AnnotationResultsMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'AnnotationResultsMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'AnnotationResultsMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.B_.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AnnotationResultsMessage"'}:t}},_t=new class{validate(e){if(!e)return{success:!1,error:"TokenProvisionMessage: Expected object, got undefined object for TokenProvisionMessageValidator"};if(void 0!==e.authToken&&"string"!=typeof e.authToken)return{success:!1,error:'TokenProvisionMessage: Optional field "authToken" is wrong type'};if(void 0!==e.isPostTransformPft&&"boolean"!=typeof e.isPostTransformPft)return{success:!1,error:'TokenProvisionMessage: Optional field "isPostTransformPft" is wrong type'};if(void 0!==e.version&&"number"!=typeof e.version)return{success:!1,error:'TokenProvisionMessage: Optional field "version" is wrong type'};if(void 0!==e.claimsVersion&&"number"!=typeof e.claimsVersion)return{success:!1,error:'TokenProvisionMessage: Optional field "claimsVersion" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'TokenProvisionMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'TokenProvisionMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'TokenProvisionMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.kd.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "TokenProvisionMessage"'}:t}},It=new class{validate(e){if(!e)return{success:!1,error:"TokenFailureMessage: Expected object, got undefined object for TokenFailureMessageValidator"};if(void 0!==e.version&&"number"!=typeof e.version)return{success:!1,error:'TokenFailureMessage: Optional field "version" is wrong type'};if(void 0!==e.claimsVersion&&"number"!=typeof e.claimsVersion)return{success:!1,error:'TokenFailureMessage: Optional field "claimsVersion" is wrong type'};if(void 0!==e.reason&&"string"!=typeof e.reason)return{success:!1,error:'TokenFailureMessage: Optional field "reason" is wrong type'};if(void 0!==e.clientHandlesResponse&&"boolean"!=typeof e.clientHandlesResponse)return{success:!1,error:'TokenFailureMessage: Optional field "clientHandlesResponse" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'TokenFailureMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'TokenFailureMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'TokenFailureMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.D0.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "TokenFailureMessage"'}:t}},kt=new class{validate(e){if(!e)return{success:!1,error:"TokenProvisionResponse: Expected object, got undefined object for TokenProvisionResponseValidator"};if(void 0!==e.tokenExpirationTime&&"number"!=typeof e.tokenExpirationTime)return{success:!1,error:'TokenProvisionResponse: Optional field "tokenExpirationTime" is wrong type'};if(void 0!==e.tokenExpirationSeconds&&"number"!=typeof e.tokenExpirationSeconds)return{success:!1,error:'TokenProvisionResponse: Optional field "tokenExpirationSeconds" is wrong type'};if(void 0!==e.tokenType){const t=y.validate(e.tokenType);if(!t.success)return t.error="TokenProvisionResponse.tokenType: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'TokenProvisionResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'TokenProvisionResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'TokenProvisionResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.ah.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "TokenProvisionResponse"'}:t}},At=new class{validate(e){if(!e)return{success:!1,error:"KeepAlive: Expected object, got undefined object for KeepAliveValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'KeepAlive: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'KeepAlive: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'KeepAlive: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.PR.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "KeepAlive"'}:t}},Et=new class{validate(e){if(!e)return{success:!1,error:"WorkflowGraphInitMessage: Expected object, got undefined object for WorkflowGraphInitMessageValidator"};if(void 0===e.upstreamRuntimeWorkflows)return{success:!1,error:'WorkflowGraphInitMessage: Required field "upstreamRuntimeWorkflows" is missing'};{const t=(0,d.I)(e.upstreamRuntimeWorkflows,1,ee,"{WorkflowDefinitionBase}");if(!t.success)return t.error="WorkflowGraphInitMessage.upstreamRuntimeWorkflows: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'WorkflowGraphInitMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'WorkflowGraphInitMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'WorkflowGraphInitMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.TV.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "WorkflowGraphInitMessage"'}:t}},Rt=new class{validate(e){if(!e)return{success:!1,error:"WorkflowGraphInitResponse: Expected object, got undefined object for WorkflowGraphInitResponseValidator"};if(void 0===e.downstreamRuntimeWorkflows)return{success:!1,error:'WorkflowGraphInitResponse: Required field "downstreamRuntimeWorkflows" is missing'};{const t=(0,d.I)(e.downstreamRuntimeWorkflows,1,ee,"{WorkflowDefinitionBase}");if(!t.success)return t.error="WorkflowGraphInitResponse.downstreamRuntimeWorkflows: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'WorkflowGraphInitResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'WorkflowGraphInitResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'WorkflowGraphInitResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.HZ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "WorkflowGraphInitResponse"'}:t}},Ot=new class{validate(e){if(!e)return{success:!1,error:"WorkflowExecutionCompleteMessage: Expected object, got undefined object for WorkflowExecutionCompleteMessageValidator"};if(void 0===e.workflowId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Required field "workflowId" is missing'};if("string"!=typeof e.workflowId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Required field "workflowId" is wrong type'};if(void 0===e.contextId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Required field "contextId" is missing'};if("string"!=typeof e.contextId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Required field "contextId" is wrong type'};if(void 0!==e.senderId&&"string"!=typeof e.senderId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "senderId" is wrong type'};if(void 0!==e.seq&&"number"!=typeof e.seq)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "seq" is wrong type'};if(void 0===e.ops)return{success:!1,error:'WorkflowExecutionCompleteMessage: Required field "ops" is missing'};{const t=(0,d.I)(e.ops,1,l.bE,"{Operation}");if(!t.success)return t.error="WorkflowExecutionCompleteMessage.ops: "+t.error,t}if(void 0!==e.batchId&&"string"!=typeof e.batchId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "batchId" is wrong type'};if(void 0!==e.groupId&&"string"!=typeof e.groupId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "groupId" is wrong type'};if(void 0!==e.batchComplete&&"boolean"!=typeof e.batchComplete)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "batchComplete" is wrong type'};if(void 0!==e.groupComplete&&"boolean"!=typeof e.groupComplete)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "groupComplete" is wrong type'};if(void 0!==e.batchSize&&"number"!=typeof e.batchSize)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "batchSize" is wrong type'};if(void 0!==e.groupSize&&"number"!=typeof e.groupSize)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "groupSize" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'WorkflowExecutionCompleteMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Gs.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "WorkflowExecutionCompleteMessage"'}:t}},Pt=new class{validate(e){if(!e)return{success:!1,error:"SeedingStatusChangeMessage: Expected object, got undefined object for SeedingStatusChangeMessageValidator"};if(void 0===e.newStatus)return{success:!1,error:'SeedingStatusChangeMessage: Required field "newStatus" is missing'};{const t=an.validate(e.newStatus);if(!t.success)return t.error="SeedingStatusChangeMessage.newStatus: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SeedingStatusChangeMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SeedingStatusChangeMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SeedingStatusChangeMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.fr.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SeedingStatusChangeMessage"'}:t}},Mt=new class{validate(e){if(!e)return{success:!1,error:"OAuth2InitV2Message: Expected object, got undefined object for OAuth2InitV2MessageValidator"};if(void 0===e.tokenType)return{success:!1,error:'OAuth2InitV2Message: Required field "tokenType" is missing'};{const t=y.validate(e.tokenType);if(!t.success)return t.error="OAuth2InitV2Message.tokenType: "+t.error,t}if(void 0!==e.refererUrl&&"string"!=typeof e.refererUrl)return{success:!1,error:'OAuth2InitV2Message: Optional field "refererUrl" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'OAuth2InitV2Message: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'OAuth2InitV2Message: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'OAuth2InitV2Message: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.dx.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "OAuth2InitV2Message"'}:t}},xt=new class{validate(e){if(!e)return{success:!1,error:"OAuth2InitV2Response: Expected object, got undefined object for OAuth2InitV2ResponseValidator"};if(void 0===e.loginStatus)return{success:!1,error:'OAuth2InitV2Response: Required field "loginStatus" is missing'};{const t=I.validate(e.loginStatus);if(!t.success)return t.error="OAuth2InitV2Response.loginStatus: "+t.error,t}if(void 0===e.statusCode)return{success:!1,error:'OAuth2InitV2Response: Required field "statusCode" is missing'};if("number"!=typeof e.statusCode)return{success:!1,error:'OAuth2InitV2Response: Required field "statusCode" is wrong type'};if(void 0!==e.redirectUrl&&"string"!=typeof e.redirectUrl)return{success:!1,error:'OAuth2InitV2Response: Optional field "redirectUrl" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'OAuth2InitV2Response: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'OAuth2InitV2Response: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'OAuth2InitV2Response: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.zk.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "OAuth2InitV2Response"'}:t}},Dt=new class{validate(e){if(!e)return{success:!1,error:"OAuth2InitMessage: Expected object, got undefined object for OAuth2InitMessageValidator"};if(void 0===e.grantFlow)return{success:!1,error:'OAuth2InitMessage: Required field "grantFlow" is missing'};{const t=C.validate(e.grantFlow);if(!t.success)return t.error="OAuth2InitMessage.grantFlow: "+t.error,t}if(void 0===e.tokenType)return{success:!1,error:'OAuth2InitMessage: Required field "tokenType" is missing'};{const t=y.validate(e.tokenType);if(!t.success)return t.error="OAuth2InitMessage.tokenType: "+t.error,t}if(void 0!==e.refererUrl&&"string"!=typeof e.refererUrl)return{success:!1,error:'OAuth2InitMessage: Optional field "refererUrl" is wrong type'};if(void 0!==e.refreshToken&&"string"!=typeof e.refreshToken)return{success:!1,error:'OAuth2InitMessage: Optional field "refreshToken" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'OAuth2InitMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'OAuth2InitMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'OAuth2InitMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Sv.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "OAuth2InitMessage"'}:t}},Nt=new class{validate(e){if(!e)return{success:!1,error:"OAuth2InitResponse: Expected object, got undefined object for OAuth2InitResponseValidator"};if(void 0===e.statusCode)return{success:!1,error:'OAuth2InitResponse: Required field "statusCode" is missing'};if("number"!=typeof e.statusCode)return{success:!1,error:'OAuth2InitResponse: Required field "statusCode" is wrong type'};if(void 0!==e.redirectUrl&&"string"!=typeof e.redirectUrl)return{success:!1,error:'OAuth2InitResponse: Optional field "redirectUrl" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'OAuth2InitResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'OAuth2InitResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'OAuth2InitResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Fz.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "OAuth2InitResponse"'}:t}},Lt=new class{validate(e){if(!e)return{success:!1,error:"OAuth2CallbackMessage: Expected object, got undefined object for OAuth2CallbackMessageValidator"};if(void 0===e.requestId)return{success:!1,error:'OAuth2CallbackMessage: Required field "requestId" is missing'};if("string"!=typeof e.requestId)return{success:!1,error:'OAuth2CallbackMessage: Required field "requestId" is wrong type'};if(void 0===e.authCode)return{success:!1,error:'OAuth2CallbackMessage: Required field "authCode" is missing'};if("string"!=typeof e.authCode)return{success:!1,error:'OAuth2CallbackMessage: Required field "authCode" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'OAuth2CallbackMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'OAuth2CallbackMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'OAuth2CallbackMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.iU.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "OAuth2CallbackMessage"'}:t}},Ft=new class{validate(e){if(!e)return{success:!1,error:"BridgeMessage: Expected object, got undefined object for BridgeMessageValidator"};if(void 0===e.bridgeId)return{success:!1,error:'BridgeMessage: Required field "bridgeId" is missing'};if("string"!=typeof e.bridgeId)return{success:!1,error:'BridgeMessage: Required field "bridgeId" is wrong type'};if(void 0===e.docSessionId)return{success:!1,error:'BridgeMessage: Required field "docSessionId" is missing'};if("string"!=typeof e.docSessionId)return{success:!1,error:'BridgeMessage: Required field "docSessionId" is wrong type'};if(void 0!==e.messageType&&"string"!=typeof e.messageType)return{success:!1,error:'BridgeMessage: Optional field "messageType" is wrong type'};if(void 0!==e.hostConfig){const t=Ve.validate(e.hostConfig);if(!t.success)return t.error="BridgeMessage.hostConfig: "+t.error,t}if(void 0!==e.message){const t=je.validate(e.message);if(!t.success)return t.error="BridgeMessage.message: "+t.error,t}if(void 0!==e.response){const t=ze.validate(e.response);if(!t.success)return t.error="BridgeMessage.response: "+t.error,t}if(void 0!==e.seq&&"number"!=typeof e.seq)return{success:!1,error:'BridgeMessage: Optional field "seq" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.vG.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "BridgeMessage"'}:t}},Bt=new class{validate(e){if(!e)return{success:!1,error:"SessionConnectMessage: Expected object, got undefined object for SessionConnectMessageValidator"};if(void 0===e.isSeedingRequired)return{success:!1,error:'SessionConnectMessage: Required field "isSeedingRequired" is missing'};if("boolean"!=typeof e.isSeedingRequired)return{success:!1,error:'SessionConnectMessage: Required field "isSeedingRequired" is wrong type'};if(void 0===e.sessionUrl)return{success:!1,error:'SessionConnectMessage: Required field "sessionUrl" is missing'};if("string"!=typeof e.sessionUrl)return{success:!1,error:'SessionConnectMessage: Required field "sessionUrl" is wrong type'};if(void 0===e.origin)return{success:!1,error:'SessionConnectMessage: Required field "origin" is missing'};if("string"!=typeof e.origin)return{success:!1,error:'SessionConnectMessage: Required field "origin" is wrong type'};if(void 0===e.authToken)return{success:!1,error:'SessionConnectMessage: Required field "authToken" is missing'};if("string"!=typeof e.authToken)return{success:!1,error:'SessionConnectMessage: Required field "authToken" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionConnectMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionConnectMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionConnectMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.gy.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionConnectMessage"'}:t}},Wt=new class{validate(e){if(!e)return{success:!1,error:"SessionDisconnectMessage: Expected object, got undefined object for SessionDisconnectMessageValidator"};if(void 0===e.error)return{success:!1,error:'SessionDisconnectMessage: Required field "error" is missing'};if("string"!=typeof e.error)return{success:!1,error:'SessionDisconnectMessage: Required field "error" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionDisconnectMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionDisconnectMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionDisconnectMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.eG.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionDisconnectMessage"'}:t}},Ut=new class{validate(e){if(!e)return{success:!1,error:"SessionReconnectMessage: Expected object, got undefined object for SessionReconnectMessageValidator"};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SessionReconnectMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SessionReconnectMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SessionReconnectMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.lj.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SessionReconnectMessage"'}:t}},Gt=new class{validate(e){if(!e)return{success:!1,error:"SubmittedCustomMessage: Expected object, got undefined object for SubmittedCustomMessageValidator"};if(void 0!==e.customMessage){const t=je.validate(e.customMessage);if(!t.success)return t.error="SubmittedCustomMessage.customMessage: "+t.error,t}if(void 0!==e.binaryMessage){const t=(0,d.I)(e.binaryMessage,1,void 0,"number");if(!t.success)return t.error="SubmittedCustomMessage.binaryMessage: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'SubmittedCustomMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'SubmittedCustomMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'SubmittedCustomMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.g$.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SubmittedCustomMessage"'}:t}},Vt=new class{validate(e){if(!e)return{success:!1,error:"ServerAuthenticationStateChangeMessage: Expected object, got undefined object for ServerAuthenticationStateChangeMessageValidator"};if(void 0===e.serverAuthenticationState)return{success:!1,error:'ServerAuthenticationStateChangeMessage: Required field "serverAuthenticationState" is missing'};{const t=He.validate(e.serverAuthenticationState);if(!t.success)return t.error="ServerAuthenticationStateChangeMessage.serverAuthenticationState: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'ServerAuthenticationStateChangeMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'ServerAuthenticationStateChangeMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'ServerAuthenticationStateChangeMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.wU.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ServerAuthenticationStateChangeMessage"'}:t}},qt=new class{validate(e){if(!e)return{success:!1,error:"ClaimsChallengeMessage: Expected object, got undefined object for ClaimsChallengeMessageValidator"};if(void 0!==e.error&&"string"!=typeof e.error)return{success:!1,error:'ClaimsChallengeMessage: Optional field "error" is wrong type'};if(void 0!==e.claims&&"string"!=typeof e.claims)return{success:!1,error:'ClaimsChallengeMessage: Optional field "claims" is wrong type'};if(void 0!==e.claimsVersion&&"number"!=typeof e.claimsVersion)return{success:!1,error:'ClaimsChallengeMessage: Optional field "claimsVersion" is wrong type'};if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'ClaimsChallengeMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'ClaimsChallengeMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'ClaimsChallengeMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.Sy.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ClaimsChallengeMessage"'}:t}},Ht=new class{validate(e){if(!e)return{success:!1,error:"BlobUploadResponse: Expected object, got undefined object for BlobUploadResponseValidator"};if(void 0===e.blob)return{success:!1,error:'BlobUploadResponse: Required field "blob" is missing'};{const t=u.DU.validate(e.blob);if(!t.success)return t.error="BlobUploadResponse.blob: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'BlobUploadResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'BlobUploadResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'BlobUploadResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.o5.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "BlobUploadResponse"'}:t}},jt=new class{validate(e){if(!e)return{success:!1,error:"GetPluginsMetadataMessage: Expected object, got undefined object for GetPluginsMetadataMessageValidator"};if(void 0!==e.sources){const t=(0,d.I)(e.sources,1,void 0,"string");if(!t.success)return t.error="GetPluginsMetadataMessage.sources: "+t.error,t}if(void 0!==e.platform&&"string"!=typeof e.platform)return{success:!1,error:'GetPluginsMetadataMessage: Optional field "platform" is wrong type'};if(void 0!==e.plugins){const t=(0,d.I)(e.plugins,1,Be,"{PluginInfo}");if(!t.success)return t.error="GetPluginsMetadataMessage.plugins: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'GetPluginsMetadataMessage: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'GetPluginsMetadataMessage: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'GetPluginsMetadataMessage: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.lZ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GetPluginsMetadataMessage"'}:t}},zt=new class{validate(e){if(!e)return{success:!1,error:"GetPluginsMetadataResponse: Expected object, got undefined object for GetPluginsMetadataResponseValidator"};if(void 0===e.result)return{success:!1,error:'GetPluginsMetadataResponse: Required field "result" is missing'};{const t=(0,d.I)(e.result,1,Ne,"{PluginMetadata}");if(!t.success)return t.error="GetPluginsMetadataResponse.result: "+t.error,t}if(void 0!==e.messageId&&"string"!=typeof e.messageId)return{success:!1,error:'GetPluginsMetadataResponse: Optional field "messageId" is wrong type'};if(void 0!==e.cv&&"string"!=typeof e.cv)return{success:!1,error:'GetPluginsMetadataResponse: Optional field "cv" is wrong type'};if(void 0!==e.bridgeId&&"string"!=typeof e.bridgeId)return{success:!1,error:'GetPluginsMetadataResponse: Optional field "bridgeId" is wrong type'};const t=c.X$.validate(e.H_);return t.success?s.XE.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GetPluginsMetadataResponse"'}:t}};class $t{validate(e){return $t.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ExecutionErrorCode"'}}}$t.validValues=new Set([o.Qn.ServerError,o.Qn.WorkflowDisabled,o.Qn.TokenNotReady,o.Qn.FlightNotReady,o.Qn.ContextNotReady,o.Qn.WorkflowExcluded,o.Qn.WorkflowExecutionTimeout,o.Qn.LambdaExecutionError,o.Qn.UnexpectedOutput,o.Qn.FailedToFetchInputs]);const Yt=new $t;class Jt{validate(e){return Jt.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "GetAnnotationsClientErrorCode"'}}}Jt.validValues=new Set([o.zy.Unknown,o.zy.InvalidRequest,o.zy.InvalidResponse,o.zy.RuntimeNotInitialized,o.zy.RequestCancelled,o.zy.ResponseReceivedAfterFinalResponse]);const Qt=new Jt;class Kt{validate(e){return Kt.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ErrorResponseCode"'}}}Kt.validValues=new Set([o.xv.Unknown,o.xv.Found,o.xv.BadRequest,o.xv.Unauthorized,o.xv.Forbidden,o.xv.NotFound,o.xv.RequestTimeout,o.xv.Conflict,o.xv.Gone,o.xv.RequestEntityTooLarge,o.xv.UnsupportedMediaType,o.xv.UnprocessableContent,o.xv.TooManyRequests,o.xv.SocketDisconnect,o.xv.InternalServerError,o.xv.ServiceUnavailable,o.xv.GatewayTimeout,o.xv.UnsupportedMessage,o.xv.Cancelled,o.xv.EgressError,o.xv.SyncMessageException,o.xv.SyncMessageUnsupported,o.xv.SyncMessageUnexpectedSeed,o.xv.SyncMessageUnsupportedBatch,o.xv.SyncMessageQueueFull,o.xv.SyncMessageTooLateOrDuplicate,o.xv.SyncMessageGroupIdMismatch,o.xv.SyncMessageGroupStop,o.xv.SyncMessageLost,o.xv.SyncMessageUnprocessedDuplicate,o.xv.SyncMessageSessionClosed,o.xv.SyncMessageAbandoned,o.xv.SyncMessageTooManyDeltaOperations,o.xv.SyncMessageSessionSizeLimitExceeded,o.xv.TokenValidationError,o.xv.TokenDecryptError,o.xv.TokenTypeError,o.xv.TokenUserBlocked,o.xv.AnnotationActivationInvalidType,o.xv.AnnotationReleaseTokenNotFound]);const Xt=new Kt;class Zt{validate(e){return Zt.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "SessionLongPollMessageType"'}}}Zt.validValues=new Set([o.PO.UnKnown,o.PO.Start,o.PO.Regular,o.PO.CheckConnection,o.PO.PostEgress,o.PO.TimeoutResend,o.PO.FailResend]);const en=new Zt;class tn{validate(e){return tn.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "SessionSwapReason"'}}}tn.validValues=new Set([o.ey.IdentityChange]);const nn=new tn;class rn{validate(e){return rn.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "AnnotationResultState"'}}}rn.validValues=new Set([o.K7.Idle,o.K7.Pending]);const on=new rn;class sn{validate(e){return sn.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "SeedingProgressCode"'}}}sn.validValues=new Set([o.e9.NotStarted,o.e9.Started,o.e9.Incomplete,o.e9.Finished]);const an=new sn},61709:(e,t,n)=>{"use strict";n.d(t,{N0:()=>P,N2:()=>R,Ef:()=>E,L9:()=>O});var r,o,s,i={util:{},roots:{default:{}}},a=(i.util,i.roots.default||(i.roots.default={}),function(){function e(e){if(e)for(var t in e)null!=e[t]&&(this[t]=e[t])}return e.prototype.cv="",e.prototype.serviceName="",e.prototype.sessionKey="",e.prototype.traceId="",e.prototype.clientAppName="",e.prototype.clientAppPlatform="",e.prototype.clientRuntimeVersion="",e.prototype.clientAppVersion="",e.prototype.clientReleaseAudienceGroup="",e.prototype.clientReleaseChannel="",e.prototype.clientReleaseFork="",e.prototype.clientSessionId="",e.prototype.clientFlights="",e.prototype.clientIPRange="",e.prototype.clientDocSessionId="",e.prototype.clientDeviceId="",e.prototype.clientUserAgent="",e.prototype.userType="",e.prototype.userId="",e.prototype.userTenantId="",e.prototype.sessionHealthEventName="",e.prototype.source="",e.prototype.reason="",e.prototype.reasonDependency="",e.prototype.subReason="",e.prototype.impact="",e.prototype.success=!1,e.prototype.durationMs=0,e.prototype.count=0,e.prototype.message="",e.prototype.affectedWorkflows="",e.prototype.resourceId="",e.prototype.dimension0="",e.prototype.dimension1="",e.prototype.dimension2="",e.prototype.dimension3="",e.prototype.resultDescription="",e.prototype.resultSignature="",e.prototype.joinContextId="",e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/SessionHealthEvent"},e}()),c=n(77850);!function(e){e[e.Unknown=0]="Unknown",e[e.Core=1]="Core",e[e.Workflow=2]="Workflow",e[e.SessionExtension=3]="SessionExtension",e[e.Client=4]="Client",e[e.ClientRuntime=5]="ClientRuntime"}(r||(r={})),function(e){e[e.Unknown=0]="Unknown",e[e.Core=1]="Core",e[e.Workflow=2]="Workflow",e[e.SessionExtension=3]="SessionExtension",e[e.Client=4]="Client",e[e.Network=5]="Network",e[e.AugLoopDependency=6]="AugLoopDependency",e[e.WorkflowDependency=7]="WorkflowDependency",e[e.ClientRuntime=8]="ClientRuntime"}(o||(o={})),function(e){e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.MissingInput=2]="MissingInput",e[e.MissingOutput=3]="MissingOutput"}(s||(s={}));class l extends a{constructor(e,t){var n,i;super({source:r[e.source],reason:o[e.reason],reasonDependency:e.reasonDependency,subReason:e.subReason,sessionHealthEventName:e.sessionHealthEventName,impact:s[e.impact],success:e.success,durationMs:null!==(n=e.durationMs)&&void 0!==n?n:0,count:"number"==typeof e.count?e.count:1,message:e.message,affectedWorkflows:(null!==(i=e.affectedWorkflows)&&void 0!==i?i:[]).join(","),resourceId:e.resourceId,dimension0:e.dimension0,dimension1:e.dimension1,dimension2:e.dimension2,dimension3:e.dimension3,cv:e.cv,resultSignature:e.resultSignature,resultDescription:e.resultDescription,joinContextId:e.joinContextId}),this.eventName="SessionHealth",t&&this.setClientMetadata(t),this.metricCount=e.metricCount,this.metricDuration=e.metricDuration}getMetrics(){const e={};return(void 0===this.metricCount||this.metricCount)&&(e[`${this.sessionHealthEventName}.CountV2`]={dimensionNames:()=>l.dimensionNames,dimensionValues:this.getDimensionValues(),value:this.count}),(void 0===this.metricDuration||this.metricDuration)&&(e[`${this.sessionHealthEventName}.DurationMsV2`]={dimensionNames:()=>l.dimensionNames,dimensionValues:this.getDimensionValues(),value:this.durationMs}),e}setClientMetadata(e){return e&&(this.clientAppName=e.appName,this.clientAppPlatform=e.appPlatform,this.clientAppVersion=e.appVersion,this.clientFlights=e.flights,this.clientReleaseAudienceGroup=e.releaseAudienceGroup,this.clientReleaseChannel=e.releaseChannel,this.clientReleaseFork=e.releaseFork,this.clientRuntimeVersion=e.runtimeVersion,this.clientSessionId=e.sessionId,this.clientDocSessionId=e.docSessionId,this.clientUserAgent=e.userAgent,this.clientDeviceId=e.deviceId),this}setUserContext(e){return e&&(this.userId=e.puid||e.oid,this.userType=e.userType&&e.userType.toString(),this.userTenantId=e.tid),this}setReason(e){return this.reason=o[e],this}setSource(e){return this.source=r[e],this}setImpact(e){return this.impact=s[e],this}setAffectedWorkflows(e){return this.affectedWorkflows=(null!=e?e:[]).join(","),this}getAffectedWorkflows(){return this.affectedWorkflows.split(",")}start(){return this.startTime=(0,c.t)(),this}stop(){const e=(0,c.t)();return this.durationMs=Math.round(e-this.startTime),this}getDimensionValues(){var e;return[this.clientAppName,this.clientAppPlatform,this.clientAppVersion,this.success?"1":"0",`${this.reason}_${this.reasonDependency}`,this.impact,null!==(e=this.getAffectedWorkflows()[0])&&void 0!==e?e:"",this.resourceId,this.dimension0,this.dimension1,this.dimension2,this.dimension3]}}l.dimensionNames=["ClientAppName","ClientAppPlatform","ClientAppVersion","Success","Reason","Impact","FirstAffectedWorkflow","ResourceId","Dimension0","Dimension1","Dimension2","Dimension3"];var u,d,p=n(1101),f=n(51532),h=n(92792),g=n.n(h);class m{constructor(){this.listeners=new Map,this.lastId=0}addListener(e){if(!e)throw new Error("No callback provided for data listener");return this.listeners.set(this.lastId,e),this.lastId++}removeListener(e){this.listeners.delete(e)}notifyListeners(e){this.listeners.forEach((t=>{t(e)}))}}!function(e){e.Add="Add",e.Remove="Remove",e.Set="Set",e.Delete="Delete"}(d||(d={}));class y{static applyECSPatchOperation(e,t){let n=!1;if("object"==typeof t||Array.isArray(t))switch(e.operation){case d.Add:case d.Remove:n=y.applyAddOrRemoveOperation(e.path,t,e.value,e.operation);break;case d.Set:n=y.applySetOperation(e.path,t,e.value);break;case d.Delete:n=y.applyDeleteOperation(e.path,t,e.value)}return n?p.tG.verbose(505956121,p.nh.CoreDefault,`PATCH operation succeeded for ${e.operation} on ${e.settingName} with path: ${e.path}.`):p.tG.error(505956122,p.nh.CoreDefault,`PATCH operation failed for ${e.operation} on ${e.settingName} with path: ${e.path}`),n}static applyAddOrRemoveOperation(e,t,n,r){let o=!1;try{let s=[];if("object"!=typeof t||Array.isArray(t)?Array.isArray(t)&&(s=t):s=e.reduce(((e,t)=>e&&e[t]),t),Array.isArray(s))if(r===d.Add)s.push(n),o=!0;else if(r===d.Remove){const e=s.indexOf(n);e>=0&&(s.splice(e,1),o=!0)}}catch(e){p.tG.info(505968832,p.nh.CoreDefault,`Exception thrown while applying operation type: ${r} for an array. Error: ${e}`),o=!1}return o}static applySetOperation(e,t,n){let r=!1;try{const o=e.slice(0,-1),s=e[e.length-1];let i={};"object"!=typeof t||Array.isArray(t)||(i=o.reduce(((e,t)=>e&&e[t]),t),"object"!=typeof i||Array.isArray(i)||(i[s]=n,r=!0))}catch(e){p.tG.info(505968802,p.nh.CoreDefault,`Exception thrown while applying set operation. Error: ${e}`),r=!1}return r}static applyDeleteOperation(e,t,n){let r=!1;try{let o={};"object"!=typeof t||Array.isArray(t)||(o=e.reduce(((e,t)=>e&&e[t]),t),"object"!=typeof o||Array.isArray(o)||"string"!=typeof n||o.hasOwnProperty(n)&&(delete o[n],r=!0))}catch(e){p.tG.info(505968801,p.nh.CoreDefault,`Exception thrown while applying delete operation. Error: ${e}`),r=!1}return r}}u=y,y.parseECSOperation=(e,t)=>{if(!t.hasOwnProperty("operationType")||!t.hasOwnProperty("path")||!t.hasOwnProperty("value"))throw new Error(`Invalid format for PATCH operation on setting: ${e}`);const n=t.operationType.toLowerCase(),r=u.convertToConfigPatchOperationType(n);return{settingName:e,path:t.path?t.path.split("."):[],operation:r,value:t.value}},y.convertToConfigPatchOperationType=e=>{switch(e){case"add":return d.Add;case"remove":return d.Remove;case"set":return d.Set;case"delete":return d.Delete;default:throw new Error(`Invalid operation type: ${e}`)}};var v=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))};class w extends m{constructor(e){super(),this.name=e}static initEcsSettingsProvider(e){p.tG.info(505999498,p.nh.CoreDefault,"Initializing ECS settings provider."),w.ecsSettingsProvider=e}static enableEcsPatchConfig(e){w.ecsPatchConfigEnabled=e}static getInstance(e){let t=this.allSettings.get(e);if(!t){t=new w(e);const n=w.tryGetConfigProperty(w.currentConfig,e);n.success&&t.updateValue(n.value),this.allSettings.set(e,t)}return t}static getPatternInstance(e){let t=this.allPatternSettings.get(e);if(!t){t={regex:new RegExp(e),setting:new w(e)};const n=w.tryGetConfigPropertyByPattern(w.currentConfig,t.regex);t.setting.updateValue(n),this.allPatternSettings.set(e,t)}return t.setting}static setNewConfig(e){w.currentConfig=e,p.tG.info(572837966,p.nh.CoreDefault,`New config: ${JSON.stringify(e)}`),w.allSettings.forEach(((e,t)=>{const n=w.tryGetConfigProperty(w.currentConfig,t).value;e.updateValue(n)&&(p.tG.info(572837967,p.nh.CoreDefault,`Setting new value for ${t}: ${n instanceof Object?JSON.stringify(n):n}`),e.notifyListeners(n))})),w.allPatternSettings.forEach(((t,n)=>{const r=w.tryGetConfigPropertyByPattern(e,t.regex);t.setting.updateValue(r)&&(p.tG.info(508432774,p.nh.CoreDefault,`Setting new value for pattern ${n}: ${JSON.stringify(r)}`),t.setting.notifyListeners(r))}))}static tryGetConfigProperty(e,t){return e&&e.hasOwnProperty(t)?{success:!0,value:w.selectApplicableValue(e[t])}:{success:!1,value:void 0}}static tryGetConfigPropertyByPattern(e,t){const n=[];if(e){const r=Object.getOwnPropertyNames(e).filter((e=>t.test(e)));for(const t of r)n.push({name:t,value:w.selectApplicableValue(e[t])})}return n}static setGlobalFilter(e){w.globalFilter=e}static setLocalConfig(e){w.localConfig=e,p.tG.info(506053841,p.nh.CoreDefault,`Setting localConfig field in Setting class: ${JSON.stringify(w.localConfig)}`)}static clear(){w.currentConfig=void 0,w.localConfig=void 0,w.allSettings.clear(),w.allPatternSettings.clear(),w.ecsSettingsProvider=void 0}static selectApplicableValue(e){let t;if(e){const n=e.find((e=>!w.globalFilter||w.globalFilter(e)));n&&(t=n.value)}return t}getName(){return this.name}getValue(){if(function(){var e;return void 0!==globalThis.process&&"true"===(null===(e=globalThis.process.env)||void 0===e?void 0:e.VALIDATE_CORRECT_USAGE_OF_GET_VALUE)}()&&0===this.listeners.size){const e=new Error(`SettingInstance or ChangeGate is being used incorrectly. Make sure .getValue() or ChangeGate is called during runtime or there is a listener set up on the setting. For more info visit: ${w.troubleshootUrl}`);throw e.name="Incorrect usage of getValue()",e}return this.value}getValueAdvancedAsync(e){return v(this,void 0,void 0,(function*(){const t=new f.I({operationName:"ECSGetValueAsync"},{metricDuration:!0}).start();let n;try{const r=yield w.ecsSettingsProvider.getSettingValue(this.name,e);t.dimension0=r.userAuthenticated?"Authenticated":"Anonymous",t.success=!0;let o=r.value;return o||(o=w.tryGetConfigProperty(w.localConfig,this.name).value,o&&r.patchValue&&(o=w.applyPatchOperationOnSetting(this.name,o,r.patchValue))),n=`Setting value for ${this.name} is ${JSON.stringify(o)}.`,o}catch(e){t.success=!1;const r=w.tryGetConfigProperty(w.localConfig,this.name).value;return n=`Setting value for ${this.name} is ${JSON.stringify(r)}.`,r}finally{p.tG.info(506053839,p.nh.CoreDefault,t.stop()),p.tG.info(505821320,p.nh.CoreDefault,n)}}))}updateValue(e){return!g()(this.value,e)&&(p.tG.info(572837968,p.nh.CoreDefault,`Received new property value for ${this.getName()}:`,e),this.value=e,!0)}static applyPatchOperationsOnConfig(e){try{if(!w.ecsPatchConfigEnabled)return e;const t=this.tryGetConfigProperty(e,"patchOperations").value;if(!t||0===t.length)return e;const n=[];for(const[e,r]of Object.entries(t))try{n.push(y.parseECSOperation(e,r))}catch(t){p.tG.error(505734922,p.nh.CoreDefault,`Exception thrown while parsing ECS PATCH operation for setting: ${e}. Error: ${t}`);continue}const r=new Map;for(const t of n)if(null==e?void 0:e.hasOwnProperty(t.settingName)){const n=JSON.parse(JSON.stringify(e[t.settingName])),o=w.selectApplicableValue(n);y.applyECSPatchOperation(t,o)&&(r.set(t.settingName,o),e[t.settingName]=n)}return r.size>0&&p.tG.info(505788322,p.nh.CoreDefault,`Resulting settings after PATCHes were applied: ${JSON.stringify(Object.fromEntries(r))}`),e}catch(t){return p.tG.error(505788321,p.nh.CoreDefault,`Exception thrown while applying ECS PATCH operations. Error: ${t}`),e}}static applyPatchOperationOnSetting(e,t,n){try{if(!w.ecsPatchConfigEnabled)return t;const r=JSON.parse(JSON.stringify(t)),o=n,s=y.parseECSOperation(e,o);return y.applyECSPatchOperation(s,r),r}catch(e){return p.tG.error(505788323,p.nh.CoreDefault,`Exception thrown while applying ECS PATCH operation on setting. Error: ${e}`),t}}}w.allSettings=new Map,w.allPatternSettings=new Map,w.ecsPatchConfigEnabled=!1,w.troubleshootUrl="https://eng.ms/docs/experiences-devices/opg/office-ai/augloop-ai-platform/augmentation-loop/documentation/server-workflow-tutorials/settings/troubleshoot";class b extends m{constructor(e,t){super(),this.listenerId=NaN,this.defaultValue=t,this.setting=w.getInstance(e)}getDefaultValue(){return this.defaultValue}addListener(e){return Number.isNaN(this.listenerId)&&(this.listenerId=this.setting.addListener((()=>{this.notifyListeners(this.getValue())}))),super.addListener(e)}removeListener(e){super.removeListener(e),0!=this.listeners.size||Number.isNaN(this.listenerId)||(this.setting.removeListener(this.listenerId),this.listenerId=NaN)}getValue(){const e=this.setting.getValue();return void 0===e?this.defaultValue:e}getValueAdvancedAsync(e){return v(this,void 0,void 0,(function*(){const t=yield this.setting.getValueAdvancedAsync(e);return void 0===t?this.defaultValue:t}))}}const S=new b("disabledChangeGates",[]),T=(e,t,...n)=>{const r=-1===S.getValue().indexOf(e);return t?r?t(...n):void 0:r};var C=n(48690),_=n(48668),I=n(38897);class k{constructor(e){if(this.cache=new Map,this.options=e||{sweepInterval:100},null!=this.options.idleDurationMs&&this.options.idleDurationMs<=0)throw new Error("Idle duration must be positive");if(this.interval=this.options.sweepInterval||100,this.interval<=0)throw new Error("Sweep interval must be a positive number")}static setLogIntervalError(e){k.logIntervalError=e}put(e,t,n,r,o,s,i){if(null==n||n<=0)throw new Error("Cache timeout must be a positive number");(null==o||o<=0)&&(o=this.options.idleDurationMs);const a={value:t,lastUsed:o?Date.now():void 0,expire:n+Date.now(),idleDurationMs:o,expireCallback:r,expiringTriggerTime:s+Date.now(),expiringCallback:i};return this.cache.set(e,a),this.timeout||(this.timeout=setInterval(this.onInterval.bind(this),this.interval),this.timeout.unref&&this.timeout.unref()),t}del(e){if(this.options.delCallback){const t=this.cache.get(e);t&&this.options.delCallback(e,t.value)}const t=this.cache.delete(e);return 0===this.size()&&this.clear(),t}clear(){this.timeout&&(clearInterval(this.timeout),this.timeout=void 0),this.cache.clear()}get(e){let t=this.cache.get(e);if(t){if(this.options.idleDurationMs&&(t.lastUsed=Date.now()),t.expire<Date.now()&&(this.del(e),t.expireCallback&&t.expireCallback(e,t.value),t=this.cache.get(e),!t))return;return t.value}}keys(){return this.cache.keys()}forEach(e){this.cache.forEach(((t,n)=>{e(t.value,n)}))}size(){return this.cache.size}updateExpireTime(e,t){return!!(this.cache.has(e)&&t>=0)&&(this.cache.get(e).expire=t+Date.now(),!0)}onInterval(){const e=Date.now();this.cache.forEach(((t,n)=>{try{if(t.idleDurationMs&&t.lastUsed<e-t.idleDurationMs)return this.del(n),void(this.options.idleCallback&&this.options.idleCallback(n,t.value));t.expire<e&&(this.del(n),t.expireCallback&&t.expireCallback(n,t.value)),t.expiringTriggerTime<e&&t.expiringCallback&&(t.expiringCallback(n,t.value),t.expiringCallback=void 0)}catch(e){k.logIntervalError&&k.logIntervalError(e)}}))}}const A=new b("processMessageEndpointValidation",!1);var E,R;function O(e){const t=["AugLoop_Excel_Session_Protocol_","AugLoop_Powerpoint_Session_Protocol_","AugLoop_Session_Protocol_"];let n;for(const r of t)if(0===e.indexOf(r)){n=r;break}if(!n)return"MalformedMessageName";const r=e.indexOf("Message",e.length-7)===e.length-7;return e.slice(n.length,r?-7:void 0)}!function(e){e.ClientDisconnected="Client disconnected.",e.ClientClosed="Client closed",e.UnsupportedSyncMessage="SyncMessages with seq = -1 are not supported anymore.",e.UnexpectedSeedMessage="Unexpected seed message",e.SyncMessageUnsupportedBatch="SyncMessage with unsupported batching.",e.AnnotationTokenNotFound="Token not found",e.TooManyDeltaOperations="SyncMessage with too many delta operations",e.UnsupportedSyncMessageSeq0NonSeeding="SyncMessages with seq 0 are not supported in non seeding sequencer (SenderId)."}(E||(E={})),function(e){e.ProvisionTokenValidationError="Token provision message didn't pass token validation.",e.ProvisionTokenDecryptAndTransformError="Token provision message didn't pass token decrypt and transform."}(R||(R={}));class P{constructor(e){this.config=e,this.nextMessageId=1,this.pendingResponseCallbacks=new k({sweepInterval:5e3}),this.messageCallbacks=new Map,this.messageValidators=new Map,this.messageIdPrefix=e.messageIdPrefix,this.source="c"===e.messageIdPrefix?r.ClientRuntime:r.Core,this.stats={sendMessageCount:0,sendMessageClientDisconnectedErrors:0,sendMessageErrors:0,sendMessageDurationMsMax:0,processMessageCount:0,processMessageProvisionTokenErrors:0,processMessageErrors:0,processMessageDurationMsMax:0}}setClientMetadata(e){this.clientMetadata=e}setEgress(e){this.egress=e,this.config.resendPendingMessagesOnReconnect&&this.egress&&this.pendingResponseCallbacks.forEach(((e,t)=>{e.logOp.dimension1=(e.sendCount++).toString(),this.egress(e.message,(t=>this.onEgressError(t,e)))}))}ingress(e,t){I.YK.typeGuard(e)?(this.processResponse(e),t()):this.processMessage(e,t),I.w9.typeGuard(e)&&!e.reconnectAllowed&&this.clearAllPendingResponses()}sendMessage(e,t,n,i=0){var a,c;const u=new l({sessionHealthEventName:"SendMessage",source:this.source,reason:o.Client,impact:this.source===r.ClientRuntime?s.MissingInput:s.MissingOutput,success:!0,message:"",affectedWorkflows:["All"],cv:e.cv,resourceId:O(C.h.getTypeNameFor(e)),dimension0:i.toString()}).start(),d=()=>{if(u.setClientMetadata(this.clientMetadata),u.success)p.tG.info(572836e3,p.nh.CoreDefault,u.stop());else{const e="ErrorWithoutPendingResponse"===u.resultSignature||"ResponseCallbackException"===u.resultSignature||"We called into done callback"!==u.message;u.message=JSON.stringify({errorNotPropagatedToDoneCallback:e}),p.tG.error(572836001,p.nh.CoreDefault,u.stop())}};T("PersistMessageId")?e.messageId=null!==(a=e.messageId)&&void 0!==a?a:`${this.messageIdPrefix}${this.nextMessageId++}`:e.messageId=`${this.messageIdPrefix}${this.nextMessageId++}`,I.l0.typeGuard(e)&&e.messages.forEach(((t,n)=>t.messageId=e.messageId+"."+n));const f=C.h.getTypeNameFor(e)===I.w9.getTypeName(),h={message:e,logOp:u,logEvent:d,callback:void 0,sendCount:1};if(!n&&!f){h.callback=(n,r)=>{var o;if(n?T("IgnoreUnsupportedMessageErrorForOldClientVersion")&&n.code===_.xv.UnsupportedMessage?(u.resultSignature="Success",u.resultDescription=`Ignore error for ${C.h.getTypeNameFor(e)} message ${e.messageId}${I.Tb.typeGuard(e)?`, seq ${e.seq}`:""}: ${n.error}`):(u.success=!1,u.resultSignature=n.error,u.resultDescription=`Error for ${C.h.getTypeNameFor(e)} message ${e.messageId}${I.Tb.typeGuard(e)?`, seq ${e.seq}`:""}: ${n.error}`):u.resultSignature="Success",t)try{u.message="We called into done callback",t(n,r)}catch(e){u.success=!1,u.resultSignature="ResponseCallbackException",u.resultDescription="Web"===(null===(o=this.clientMetadata)||void 0===o?void 0:o.appPlatform)?JSON.stringify({message:e.message,stack:e.stack}):JSON.stringify({message:e.message})}d(),this.updateSendMessageStats(u.success,u.durationMs,n?new Error(n.error):void 0)};const n=()=>{h.callback(new I.F_({code:_.xv.RequestTimeout,error:"Timeout waiting for response"}),void 0)};let r=this.config.responseTimeoutMs;if(I.LQ.typeGuard(e)){const t=e;r=t.longPollTimeoutHint>=15e3&&t.longPollTimeoutHint<=3e5?t.longPollTimeoutHint+5e3:12e4}else I.Yp.typeGuard(e)&&(r=null!==(c=e.maxDelayMs)&&void 0!==c?c:12e4);this.pendingResponseCallbacks.put(e.messageId,h,r,n)}this.egress&&this.egress(e,(e=>this.onEgressError(e,h)),i)}onEgressError(e,t){var n,r;if(e){const o=t.message,s=this.pendingResponseCallbacks.get(t.message.messageId);s?(this.pendingResponseCallbacks.del(o.messageId),s.callback(new I._p({messageId:o.messageId,code:_.xv.EgressError,error:e.message}))):I.w9.typeGuard(o)?(t.logOp.success=null!==(r=null===(n=e.message)||void 0===n?void 0:n.endsWith("Client disconnected."))&&void 0!==r&&r,t.logOp.resultSignature="ErrorSendingSessionCloseMessage",t.logOp.resultDescription=`Error for ${C.h.getTypeNameFor(o)} message ${o.messageId}: ${e.message}`,t.logEvent()):(t.logOp.success=!1,t.logOp.resultSignature="ErrorWithoutPendingResponse",t.logOp.resultDescription=`Error for ${C.h.getTypeNameFor(o)} message ${o.messageId}: ${e.message}`,t.logEvent())}}queryEgressCacheSize(){return this.pendingResponseCallbacks.size()}onMessage(e,t,n){this.messageCallbacks.set(e,t),n&&this.messageValidators.set(e,n)}onMessageAsync(e,t,n){this.messageCallbacks.set(e,((e,n)=>{return r=this,o=void 0,i=function*(){try{const r=yield t(e);I._p.typeGuard(r)?n(r,void 0):n(void 0,r)}catch(e){n(e)}},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof s?r:new s((function(e){e(r)}))).then(n,a)}c((i=i.apply(r,o||[])).next())}));var r,o,s,i})),n&&this.messageValidators.set(e,n)}getStats(){return this.stats}hasMessageCallback(e){return this.messageCallbacks.has(e)}cancelPendingResponseCallbacks(e){this.pendingResponseCallbacks.forEach(((t,n)=>{t&&(this.pendingResponseCallbacks.del(n),t.callback(new I._p({messageId:n,code:_.xv.Cancelled,error:`Cancelled. Reason: ${e}`})))}))}clearAllPendingResponses(){if(0==this.pendingResponseCallbacks.size())return;const e=new f.I({operationName:"PurgePendingResponses",resultDescription:this.pendingResponseCallbacks.size().toString(),success:!0});p.tG.info(572836002,p.nh.CoreDefault,e),this.pendingResponseCallbacks.clear()}processMessage(e,t){const n=new l({sessionHealthEventName:"ProcessMessage",source:this.source,reason:o.Client,impact:this.source===r.ClientRuntime?s.MissingOutput:s.MissingInput,success:!0,message:"",affectedWorkflows:["All"],cv:e.cv}).start(),i=()=>{if(n.setClientMetadata(this.clientMetadata),n.success)p.tG.info(572836003,p.nh.CoreDefault,n.stop());else{const e="UnsupportedMessage"===n.resourceId||"Timeout"===n.resultSignature||"OnResponseInvokedMoreThanOnce"===n.resultSignature||"MessageCallbackException"===n.resultSignature||"We called into messageCallback"!==n.message;n.message=JSON.stringify({errorHappenedOutsideRegisteredMessageCallback:e}),p.tG.error(572836032,p.nh.CoreDefault,n.stop())}};let a=this.messageCallbacks.get(C.h.getTypeNameFor(e));a?n.resourceId=O(C.h.getTypeNameFor(e)):a=(e,t)=>{n.resourceId=O(C.h.getTypeNameFor(e)),"MalformedMessageName"!==n.resourceId&&(n.resourceId="UnsupportedMessage"),t(new I._p({messageId:e.messageId,code:_.xv.UnsupportedMessage,error:`Message type ${C.h.getTypeNameFor(e)} is not supported`}))};const u=(e,t,n)=>!0===A.getValue()?JSON.stringify({message:e,validationSuccess:null==t?void 0:t.success,validationError:null==t?void 0:t.error,validationDurationMicroseconds:null==t?void 0:t.durationMicroseconds,stack:n}):void 0!==n?JSON.stringify({message:e,stack:n}):e;let d;const f=this.messageValidators.get(C.h.getTypeNameFor(e));if(f&&A.getValue()){const t=(0,c.g)(),n=f.validate(e),r=(0,c.g)();d={success:n.success,error:n.error,durationMicroseconds:Math.round(r-t)}}let h=!1;const g=(r,o)=>{if(h){n.success=!1,n.resultSignature="OnResponseInvokedMoreThanOnce";const t=`Invoked onResponse for ${C.h.getTypeNameFor(e)} message ${e.messageId} more than once`;n.resultDescription=u(t,d)}else if(r){n.success=!1,n.resultSignature=r.error,void 0!==r.code&&(n.dimension0=_.xv[r.code]);const t=`Error for ${C.h.getTypeNameFor(e)} message ${e.messageId}: ${r.error}`;n.resultDescription=u(t,d)}else n.resultSignature="Success",n.resultDescription=u("",d);h=!0,i(),r&&!C.h.matchesTypesFor(r,[I._p.getTypeName()])&&(r=new I._p({error:"Internal Server Error"})),this.updateProcessMessageStats(n.success,n.durationMs,r?new Error(r.error):void 0),r?(r.messageId=e.messageId,t(r)):o?(o.messageId=e.messageId,t(void 0,o)):t()};try{n.message="We called into messageCallback",a(e,g)}catch(e){n.success=!1,n.resultSignature="MessageCallbackException",n.resultDescription=u(e.message,d,e.stack),i(),this.updateProcessMessageStats(!1,n.durationMs,e),t()}}processResponse(e){var t;const n=new f.I({operationName:"ProcessResponse"});if(n.success=!0,n.setClientMetadata(this.clientMetadata),n.start(),e.messageId){const t=this.pendingResponseCallbacks.get(e.messageId),r=null==t?void 0:t.callback;if(r){if(I.i.typeGuard(e)&&!e.finalResponse){const n=t.message.maxDelayMs;this.pendingResponseCallbacks.updateExpireTime(e.messageId,n)}else this.pendingResponseCallbacks.del(e.messageId);C.h.matchesTypesFor(e,[I._p.getTypeName()])?r(e):r(void 0,e)}else n.resultSignature="NoPendingMessage",n.resultDescription=`${e.messageId}`,n.success=!1}else n.resultSignature="NoMessageIdSetInResponse",I._p.typeGuard(e)?n.resultDescription=e.error:n.resultDescription="MessageId is not available",n.success=!1;"Production"!==(null===(t=this.clientMetadata)||void 0===t?void 0:t.releaseAudienceGroup)&&(n.resourceId=O(C.h.getTypeNameFor(e)),p.tG.info(572836034,p.nh.CoreDefault,n.stop()))}updateSendMessageStats(e,t,n){this.stats.sendMessageCount++,this.stats.sendMessageDurationMsMax=Math.max(t,this.stats.sendMessageDurationMsMax),e||n?e&&n&&p.tG.warn(572836036,p.nh.CoreDefault,"Succeeded send message provided error object."):p.tG.warn(572836035,p.nh.CoreDefault,"Failed send message did not provide error object."),e||(n&&n.message===E.ClientDisconnected?this.stats.sendMessageClientDisconnectedErrors++:this.stats.sendMessageErrors++)}updateProcessMessageStats(e,t,n){this.stats.processMessageCount++,this.stats.processMessageDurationMsMax=Math.max(t,this.stats.processMessageDurationMsMax),e||n?e&&n&&p.tG.warn(572836038,p.nh.CoreDefault,"Succeeded process message provided error object."):p.tG.warn(572836037,p.nh.CoreDefault,"Failed process message did not provide error object."),e||(n&&n.message===R.ProvisionTokenValidationError?this.stats.processMessageProvisionTokenErrors++:this.stats.processMessageErrors++)}}},48668:(e,t,n)=>{"use strict";n.d(t,{K7:()=>l,PO:()=>a,Qn:()=>o,e9:()=>u,ey:()=>c,mH:()=>r,xv:()=>i,zy:()=>s});const r=2;var o,s,i,a,c,l,u;!function(e){e[e.ServerError=0]="ServerError",e[e.WorkflowDisabled=100]="WorkflowDisabled",e[e.TokenNotReady=101]="TokenNotReady",e[e.FlightNotReady=102]="FlightNotReady",e[e.ContextNotReady=103]="ContextNotReady",e[e.WorkflowExcluded=104]="WorkflowExcluded",e[e.WorkflowExecutionTimeout=105]="WorkflowExecutionTimeout",e[e.LambdaExecutionError=106]="LambdaExecutionError",e[e.UnexpectedOutput=107]="UnexpectedOutput",e[e.FailedToFetchInputs=108]="FailedToFetchInputs"}(o||(o={})),function(e){e[e.Unknown=0]="Unknown",e[e.InvalidRequest=1]="InvalidRequest",e[e.InvalidResponse=2]="InvalidResponse",e[e.RuntimeNotInitialized=3]="RuntimeNotInitialized",e[e.RequestCancelled=4]="RequestCancelled",e[e.ResponseReceivedAfterFinalResponse=5]="ResponseReceivedAfterFinalResponse"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.Found=302]="Found",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.RequestEntityTooLarge=413]="RequestEntityTooLarge",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.UnprocessableContent=422]="UnprocessableContent",e[e.TooManyRequests=429]="TooManyRequests",e[e.SocketDisconnect=499]="SocketDisconnect",e[e.InternalServerError=500]="InternalServerError",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.UnsupportedMessage=1e3]="UnsupportedMessage",e[e.Cancelled=1001]="Cancelled",e[e.EgressError=1002]="EgressError",e[e.SyncMessageException=2e3]="SyncMessageException",e[e.SyncMessageUnsupported=2001]="SyncMessageUnsupported",e[e.SyncMessageUnexpectedSeed=2002]="SyncMessageUnexpectedSeed",e[e.SyncMessageUnsupportedBatch=2003]="SyncMessageUnsupportedBatch",e[e.SyncMessageQueueFull=2004]="SyncMessageQueueFull",e[e.SyncMessageTooLateOrDuplicate=2005]="SyncMessageTooLateOrDuplicate",e[e.SyncMessageGroupIdMismatch=2006]="SyncMessageGroupIdMismatch",e[e.SyncMessageGroupStop=2007]="SyncMessageGroupStop",e[e.SyncMessageLost=2008]="SyncMessageLost",e[e.SyncMessageUnprocessedDuplicate=2009]="SyncMessageUnprocessedDuplicate",e[e.SyncMessageSessionClosed=2010]="SyncMessageSessionClosed",e[e.SyncMessageAbandoned=2011]="SyncMessageAbandoned",e[e.SyncMessageTooManyDeltaOperations=2012]="SyncMessageTooManyDeltaOperations",e[e.SyncMessageSessionSizeLimitExceeded=2013]="SyncMessageSessionSizeLimitExceeded",e[e.TokenValidationError=2100]="TokenValidationError",e[e.TokenDecryptError=2101]="TokenDecryptError",e[e.TokenTypeError=2102]="TokenTypeError",e[e.TokenUserBlocked=2103]="TokenUserBlocked",e[e.AnnotationActivationInvalidType=2200]="AnnotationActivationInvalidType",e[e.AnnotationReleaseTokenNotFound=2300]="AnnotationReleaseTokenNotFound"}(i||(i={})),function(e){e[e.UnKnown=0]="UnKnown",e[e.Start=1]="Start",e[e.Regular=2]="Regular",e[e.CheckConnection=3]="CheckConnection",e[e.PostEgress=4]="PostEgress",e[e.TimeoutResend=5]="TimeoutResend",e[e.FailResend=6]="FailResend"}(a||(a={})),function(e){e[e.IdentityChange=0]="IdentityChange"}(c||(c={})),function(e){e[e.Idle=0]="Idle",e[e.Pending=1]="Pending"}(l||(l={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.Started=1]="Started",e[e.Incomplete=2]="Incomplete",e[e.Finished=3]="Finished"}(u||(u={}))},70372:(e,t,n)=>{"use strict";var r;n.d(t,{r:()=>r}),function(e){e[e.Undefined=0]="Undefined",e[e.Created=10]="Created",e[e.Sent=20]="Sent",e[e.Duplicated=30]="Duplicated",e[e.Seen=40]="Seen",e[e.Tried=50]="Tried",e[e.Kept=60]="Kept",e[e.Rejected=70]="Rejected"}(r||(r={}))},92341:(e,t,n)=>{"use strict";n.d(t,{Iz:()=>i,YH:()=>o,h_:()=>s});var r=n(48690);class o{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Core_Annotation"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Core_BinaryClassificationAnnotation"}static getBaseTypes(){return["AugLoop_Core_Annotation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Core_StreamAnnotation"}static getBaseTypes(){return["AugLoop_Core_Annotation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()}},56452:(e,t,n)=>{"use strict";n.d(t,{W8:()=>i,ay:()=>s,k$:()=>o,tX:()=>c,u$:()=>a});var r=n(48690);class o{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Core_Apology"}static getBaseTypes(){return["AugLoop_Core_Annotation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Core_SecondaryApology"}static getBaseTypes(){return["AugLoop_Core_Apology","AugLoop_Core_Annotation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Core_WorkflowActivationFailureDetails"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()};class a{constructor(e){r.h.assign(a,this,e)}static getTypeName(){return"AugLoop_Core_AuthTokenIsMissingDetails"}static getBaseTypes(){return["AugLoop_Core_WorkflowActivationFailureDetails"]}static typeGuard(e){return r.h.matchesTypesFor(e,[a.getTypeName()])}}a.H_={T_:a.getTypeName(),B_:a.getBaseTypes()};class c{get metadata(){return this.M_}set metadata(e){this.M_=e}constructor(e){r.h.assign(c,this,e)}static getTypeName(){return"AugLoop_Core_NotActivatedWorkflowApology"}static getBaseTypes(){return["AugLoop_Core_Apology","AugLoop_Core_Annotation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[c.getTypeName()])}}c.H_={T_:c.getTypeName(),B_:c.getBaseTypes()}},13407:(e,t,n)=>{"use strict";n.d(t,{A5:()=>m,B9:()=>s,GH:()=>S,I:()=>i,Vm:()=>h,XP:()=>u,Xr:()=>c,Z5:()=>g,Zw:()=>f,fZ:()=>d,g0:()=>b,hK:()=>w,hW:()=>l,mX:()=>y,n4:()=>p,sT:()=>o,vg:()=>a,xU:()=>v});var r=n(48690);class o{constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Core_ItemDelta"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Core_ItemChangesDelta"}static getBaseTypes(){return["AugLoop_Core_ItemDelta"]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Core_Operation"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()};class a{constructor(e){r.h.assign(a,this,e)}static getTypeName(){return"AugLoop_Core_OperationWithSiblingContext"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[a.getTypeName()])}}a.H_={T_:a.getTypeName(),B_:a.getBaseTypes()};class c{constructor(e){r.h.assign(c,this,e)}static getTypeName(){return"AugLoop_Core_AddOperation"}static getBaseTypes(){return["AugLoop_Core_OperationWithSiblingContext","AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[c.getTypeName()])}}c.H_={T_:c.getTypeName(),B_:c.getBaseTypes()};class l{constructor(e){r.h.assign(l,this,e)}static getTypeName(){return"AugLoop_Core_MoveOperation"}static getBaseTypes(){return["AugLoop_Core_OperationWithSiblingContext","AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[l.getTypeName()])}}l.H_={T_:l.getTypeName(),B_:l.getBaseTypes()};class u{constructor(e){r.h.assign(u,this,e)}static getTypeName(){return"AugLoop_Core_UpdateAnnotationMetaDataOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[u.getTypeName()])}}u.H_={T_:u.getTypeName(),B_:u.getBaseTypes()};class d{constructor(e){r.h.assign(d,this,e)}static getTypeName(){return"AugLoop_Core_UpdateOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[d.getTypeName()])}}d.H_={T_:d.getTypeName(),B_:d.getBaseTypes()};class p{constructor(e){r.h.assign(p,this,e)}static getTypeName(){return"AugLoop_Core_DeleteOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[p.getTypeName()])}}p.H_={T_:p.getTypeName(),B_:p.getBaseTypes()};class f{constructor(e){r.h.assign(f,this,e)}static getTypeName(){return"AugLoop_Core_PurgeOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[f.getTypeName()])}}f.H_={T_:f.getTypeName(),B_:f.getBaseTypes()};class h{constructor(e){r.h.assign(h,this,e)}static getTypeName(){return"AugLoop_Core_PurgeSubtreeExceptTypesOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[h.getTypeName()])}}h.H_={T_:h.getTypeName(),B_:h.getBaseTypes()};class g{constructor(e){r.h.assign(g,this,e)}static getTypeName(){return"AugLoop_Core_PurgeByTypesOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[g.getTypeName()])}}g.H_={T_:g.getTypeName(),B_:g.getBaseTypes()};class m{constructor(e){r.h.assign(m,this,e)}static getTypeName(){return"AugLoop_Core_FocusOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[m.getTypeName()])}}m.H_={T_:m.getTypeName(),B_:m.getBaseTypes()};class y{constructor(e){r.h.assign(y,this,e)}static getTypeName(){return"AugLoop_Core_VisibilityOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[y.getTypeName()])}}y.H_={T_:y.getTypeName(),B_:y.getBaseTypes()};class v{constructor(e){r.h.assign(v,this,e)}static getTypeName(){return"AugLoop_Core_DeltaUpdateOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[v.getTypeName()])}}v.H_={T_:v.getTypeName(),B_:v.getBaseTypes()};class w{constructor(e){r.h.assign(w,this,e)}static getTypeName(){return"AugLoop_Core_MicroSyncOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[w.getTypeName()])}}w.H_={T_:w.getTypeName(),B_:w.getBaseTypes()};class b{constructor(e){r.h.assign(b,this,e)}static getTypeName(){return"AugLoop_Signals_SignalOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[b.getTypeName()])}}b.H_={T_:b.getTypeName(),B_:b.getBaseTypes()};class S{constructor(e){r.h.assign(S,this,e)}static getTypeName(){return"AugLoop_Core_CancelSignalTriggeredWorkflowExecutionOperation"}static getBaseTypes(){return["AugLoop_Core_Operation"]}static typeGuard(e){return r.h.matchesTypesFor(e,[S.getTypeName()])}}S.H_={T_:S.getTypeName(),B_:S.getBaseTypes()}},48690:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});class r{constructor(e){r.assign(r,this,e)}static getTypeName(){return"AugLoop_Core_SchemaObject"}static getBaseTypes(){return[]}static getTypeNameFor(e){return e&&e.H_?e.H_.T_:void 0}static getBaseTypesFor(e){return e&&e.H_&&e.H_.B_?e.H_.B_:[]}static getAllTypesFor(e){const t=r.getTypeNameFor(e);return t?[t,...r.getBaseTypesFor(e)]:[]}static matchesTypesFor(e,t){if(!Array.isArray(t)||0===t.length)return!0;const n=r.getTypeNameFor(e),o=r.getBaseTypesFor(e);for(const e of t){if(e===n)return!0;if(o.indexOf(e)>=0)return!0}return!1}static assign(e,t,n){if(n)for(const e of Object.keys(n))t[e]=n[e];return t.H_=e.H_,t}}r.H_={T_:r.getTypeName(),B_:r.getBaseTypes()}},91298:(e,t,n)=>{"use strict";n.d(t,{HN:()=>o,M_:()=>s,WJ:()=>i});var r=n(48690);class o{constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Signals_Signal"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Core_DirtyAreaSignal"}static getBaseTypes(){return["AugLoop_Signals_Signal"]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Core_DirtyDocumentSignal"}static getBaseTypes(){return["AugLoop_Core_DirtyAreaSignal","AugLoop_Signals_Signal"]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()}},12834:(e,t,n)=>{"use strict";n.d(t,{I3:()=>l,LX:()=>u,Nn:()=>a,QG:()=>v,SB:()=>m,W1:()=>h,YQ:()=>o,hD:()=>g,iS:()=>i,sD:()=>p,u7:()=>y,wX:()=>d,yI:()=>s,yo:()=>c,zB:()=>f});var r=n(48690);class o{constructor(e){r.h.assign(o,this,e)}static getTypeName(){return"AugLoop_Core_Blob"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[o.getTypeName()])}}o.H_={T_:o.getTypeName(),B_:o.getBaseTypes()};class s{constructor(e){r.h.assign(s,this,e)}static getTypeName(){return"AugLoop_Core_Binary"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[s.getTypeName()])}}s.H_={T_:s.getTypeName(),B_:s.getBaseTypes()};class i{constructor(e){r.h.assign(i,this,e)}static getTypeName(){return"AugLoop_Core_TileGroup"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[i.getTypeName()])}}i.H_={T_:i.getTypeName(),B_:i.getBaseTypes()};class a{constructor(e){r.h.assign(a,this,e)}static getTypeName(){return"AugLoop_Core_Session"}static getBaseTypes(){return["AugLoop_Core_TileGroup"]}static typeGuard(e){return r.h.matchesTypesFor(e,[a.getTypeName()])}}a.H_={T_:a.getTypeName(),B_:a.getBaseTypes()};class c{constructor(e){r.h.assign(c,this,e)}static getTypeName(){return"AugLoop_Core_Document"}static getBaseTypes(){return["AugLoop_Core_TileGroup"]}static typeGuard(e){return r.h.matchesTypesFor(e,[c.getTypeName()])}}c.H_={T_:c.getTypeName(),B_:c.getBaseTypes()};class l{constructor(e){r.h.assign(l,this,e)}static getTypeName(){return"AugLoop_Core_SubDocument"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[l.getTypeName()])}}l.H_={T_:l.getTypeName(),B_:l.getBaseTypes()};class u{constructor(e){r.h.assign(u,this,e)}static getTypeName(){return"AugLoop_Core_GridCell"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[u.getTypeName()])}}u.H_={T_:u.getTypeName(),B_:u.getBaseTypes()};class d{constructor(e){r.h.assign(d,this,e)}static getTypeName(){return"AugLoop_Core_GridNeighborhoodContext"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[d.getTypeName()])}}d.H_={T_:d.getTypeName(),B_:d.getBaseTypes()};class p{constructor(e){r.h.assign(p,this,e)}static getTypeName(){return"AugLoop_Core_ItemFilter"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[p.getTypeName()])}}p.H_={T_:p.getTypeName(),B_:p.getBaseTypes()};class f{constructor(e){r.h.assign(f,this,e)}static getTypeName(){return"AugLoop_Core_DynamicContext"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[f.getTypeName()])}}f.H_={T_:f.getTypeName(),B_:f.getBaseTypes()};class h{constructor(e){r.h.assign(h,this,e)}static getTypeName(){return"AugLoop_Core_ContextHolder"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[h.getTypeName()])}}h.H_={T_:h.getTypeName(),B_:h.getBaseTypes()};class g{constructor(e){r.h.assign(g,this,e)}static getTypeName(){return"AugLoop_Core_UserContextHolder"}static getBaseTypes(){return["AugLoop_Core_ContextHolder"]}static typeGuard(e){return r.h.matchesTypesFor(e,[g.getTypeName()])}}g.H_={T_:g.getTypeName(),B_:g.getBaseTypes()};class m{constructor(e){r.h.assign(m,this,e)}static getTypeName(){return"AugLoop_Core_TenantContextHolder"}static getBaseTypes(){return["AugLoop_Core_ContextHolder"]}static typeGuard(e){return r.h.matchesTypesFor(e,[m.getTypeName()])}}m.H_={T_:m.getTypeName(),B_:m.getBaseTypes()};class y{constructor(e){r.h.assign(y,this,e)}static getTypeName(){return"AugLoop_Core_EventsHolder"}static getBaseTypes(){return[]}static typeGuard(e){return r.h.matchesTypesFor(e,[y.getTypeName()])}}y.H_={T_:y.getTypeName(),B_:y.getBaseTypes()};class v{constructor(e){r.h.assign(v,this,e)}static getTypeName(){return"AugLoop_Core_UserCommandsHolder"}static getBaseTypes(){return["AugLoop_Core_EventsHolder"]}static typeGuard(e){return r.h.matchesTypesFor(e,[v.getTypeName()])}}v.H_={T_:v.getTypeName(),B_:v.getBaseTypes()}},99731:(e,t,n)=>{"use strict";n.d(t,{B9:()=>l,Bu:()=>m,EJ:()=>u,Fc:()=>y,Pp:()=>p,Xv:()=>f,_Z:()=>h,cy:()=>d,li:()=>a,uT:()=>c,uf:()=>v,w6:()=>g});var r=n(70372),o=n(92341),s=n(23092),i=n(79982);class a{validate(e){if(!e)return{success:!1,error:"AnnotationMetaData: Expected object, got undefined object for AnnotationMetaDataValidator"};if(void 0!==e.state){const t=v.validate(e.state);if(!t.success)return t.error="AnnotationMetaData.state: "+t.error,t}if(void 0!==e.shareable&&"boolean"!=typeof e.shareable)return{success:!1,error:'AnnotationMetaData: Optional field "shareable" is wrong type'};if(void 0!==e.customMetadata){const t=s.sK.validate(e.customMetadata);if(!t.success)return t.error="AnnotationMetaData.customMetadata: "+t.error,t}return void 0!==e.seq&&"number"!=typeof e.seq?{success:!1,error:'AnnotationMetaData: Optional field "seq" is wrong type'}:void 0!==e.sourceTimestamp&&"number"!=typeof e.sourceTimestamp?{success:!1,error:'AnnotationMetaData: Optional field "sourceTimestamp" is wrong type'}:{success:!0}}}const c=new a;class l{validate(e){if(!e)return{success:!1,error:"AnnotationActivationConfigs: Expected object, got undefined object for AnnotationActivationConfigsValidator"};if(void 0===e.annotationType)return{success:!1,error:'AnnotationActivationConfigs: Required field "annotationType" is missing'};if("string"!=typeof e.annotationType)return{success:!1,error:'AnnotationActivationConfigs: Required field "annotationType" is wrong type'};if(void 0===e.configs)return{success:!1,error:'AnnotationActivationConfigs: Required field "configs" is missing'};{const t=(0,i.I)(e.configs,1,s.sK,"{SchemaObject}");if(!t.success)return t.error="AnnotationActivationConfigs.configs: "+t.error,t}return{success:!0}}}const u=new l;class d{validate(e){if(!e)return{success:!1,error:"Annotation: Expected object, got undefined object for AnnotationValidator"};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'Annotation: Optional field "id" is wrong type'};if(void 0!==e.ownerId&&"string"!=typeof e.ownerId)return{success:!1,error:'Annotation: Optional field "ownerId" is wrong type'};if(void 0!==e.invalidationHash&&"string"!=typeof e.invalidationHash)return{success:!1,error:'Annotation: Optional field "invalidationHash" is wrong type'};if(void 0!==e.M_){const t=c.validate(e.M_);if(!t.success)return t.error="Annotation.M_: "+t.error,t}if(void 0!==e.metadata){const t=c.validate(e.metadata);if(!t.success)return t.error="Annotation.metadata: "+t.error,t}const t=s.X$.validate(e.H_);return t.success?o.YH.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Annotation"'}:t}}const p=new d;class f{validate(e){if(!e)return{success:!1,error:"BinaryClassificationAnnotation: Expected object, got undefined object for BinaryClassificationAnnotationValidator"};if(void 0===e.name)return{success:!1,error:'BinaryClassificationAnnotation: Required field "name" is missing'};if("string"!=typeof e.name)return{success:!1,error:'BinaryClassificationAnnotation: Required field "name" is wrong type'};if(void 0===e.value)return{success:!1,error:'BinaryClassificationAnnotation: Required field "value" is missing'};if("boolean"!=typeof e.value)return{success:!1,error:'BinaryClassificationAnnotation: Required field "value" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'BinaryClassificationAnnotation: Optional field "id" is wrong type'};if(void 0!==e.ownerId&&"string"!=typeof e.ownerId)return{success:!1,error:'BinaryClassificationAnnotation: Optional field "ownerId" is wrong type'};if(void 0!==e.invalidationHash&&"string"!=typeof e.invalidationHash)return{success:!1,error:'BinaryClassificationAnnotation: Optional field "invalidationHash" is wrong type'};if(void 0!==e.M_){const t=c.validate(e.M_);if(!t.success)return t.error="BinaryClassificationAnnotation.M_: "+t.error,t}if(void 0!==e.metadata){const t=c.validate(e.metadata);if(!t.success)return t.error="BinaryClassificationAnnotation.metadata: "+t.error,t}const t=s.X$.validate(e.H_);return t.success?o.h_.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "BinaryClassificationAnnotation"'}:t}}const h=new f;class g{validate(e){if(!e)return{success:!1,error:"StreamAnnotation: Expected object, got undefined object for StreamAnnotationValidator"};if(void 0===e.seqId)return{success:!1,error:'StreamAnnotation: Required field "seqId" is missing'};if("number"!=typeof e.seqId)return{success:!1,error:'StreamAnnotation: Required field "seqId" is wrong type'};if(void 0===e.isFinalResponse)return{success:!1,error:'StreamAnnotation: Required field "isFinalResponse" is missing'};if("boolean"!=typeof e.isFinalResponse)return{success:!1,error:'StreamAnnotation: Required field "isFinalResponse" is wrong type'};if(void 0!==e.isFirstUserPerceivedResponse&&"boolean"!=typeof e.isFirstUserPerceivedResponse)return{success:!1,error:'StreamAnnotation: Optional field "isFirstUserPerceivedResponse" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'StreamAnnotation: Optional field "id" is wrong type'};if(void 0!==e.ownerId&&"string"!=typeof e.ownerId)return{success:!1,error:'StreamAnnotation: Optional field "ownerId" is wrong type'};if(void 0!==e.invalidationHash&&"string"!=typeof e.invalidationHash)return{success:!1,error:'StreamAnnotation: Optional field "invalidationHash" is wrong type'};if(void 0!==e.M_){const t=c.validate(e.M_);if(!t.success)return t.error="StreamAnnotation.M_: "+t.error,t}if(void 0!==e.metadata){const t=c.validate(e.metadata);if(!t.success)return t.error="StreamAnnotation.metadata: "+t.error,t}const t=s.X$.validate(e.H_);return t.success?o.Iz.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "StreamAnnotation"'}:t}}const m=new g;class y{validate(e){return y.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "AnnotationState"'}}}y.validValues=new Set([r.r.Undefined,r.r.Created,r.r.Sent,r.r.Duplicated,r.r.Seen,r.r.Tried,r.r.Kept,r.r.Rejected]);const v=new y},40671:(e,t,n)=>{"use strict";n.d(t,{$:()=>p,A7:()=>ie,AF:()=>oe,BU:()=>$,De:()=>y,EM:()=>O,Fk:()=>F,Fs:()=>x,GY:()=>k,Gc:()=>h,Gf:()=>b,Ig:()=>Y,JB:()=>z,JK:()=>H,JP:()=>N,JS:()=>A,Kv:()=>M,M9:()=>j,MM:()=>Q,Ms:()=>U,N_:()=>P,O3:()=>D,PB:()=>W,PY:()=>G,TO:()=>re,Tm:()=>f,UI:()=>ce,VA:()=>m,Wg:()=>ne,X2:()=>I,Zt:()=>se,_e:()=>V,bE:()=>T,bd:()=>J,cZ:()=>S,d4:()=>ae,eE:()=>Z,eJ:()=>l,eL:()=>B,hh:()=>X,hj:()=>te,iN:()=>E,jD:()=>w,mT:()=>q,mU:()=>K,nx:()=>u,oT:()=>v,r$:()=>_,rh:()=>R,tX:()=>ee,uX:()=>C,wL:()=>d,wh:()=>L,yd:()=>g});var r=n(73966),o=n(13407),s=n(75582),i=n(23092),a=n(99731),c=n(79982);class l{validate(e){if(!e)return{success:!1,error:"SourceInfo: Expected object, got undefined object for SourceInfoValidator"};if(void 0!==e.featureId){const t=s.W.validate(e.featureId);if(!t.success)return t.error="SourceInfo.featureId: "+t.error,t}if(void 0!==e.entryPoint){const t=ne.validate(e.entryPoint);if(!t.success)return t.error="SourceInfo.entryPoint: "+t.error,t}return{success:!0}}}const u=new l;class d{validate(e){if(!e)return{success:!1,error:"Item: Expected object, got undefined object for ItemValidator"};if(void 0===e.id)return{success:!1,error:'Item: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'Item: Required field "id" is wrong type'};if(void 0!==e.source&&"string"!=typeof e.source)return{success:!1,error:'Item: Optional field "source" is wrong type'};if(void 0!==e.sourceTimestamp&&"number"!=typeof e.sourceTimestamp)return{success:!1,error:'Item: Optional field "sourceTimestamp" is wrong type'};if(void 0!==e.revId&&"string"!=typeof e.revId)return{success:!1,error:'Item: Optional field "revId" is wrong type'};if(void 0!==e.contextId&&"string"!=typeof e.contextId)return{success:!1,error:'Item: Optional field "contextId" is wrong type'};if(void 0!==e.body){const t=i.sK.validate(e.body);if(!t.success)return t.error="Item.body: "+t.error,t}if(void 0!==e.sourceInfo){const t=u.validate(e.sourceInfo);if(!t.success)return t.error="Item.sourceInfo: "+t.error,t}return{success:!0}}}const p=new d;class f{validate(e){if(!e)return{success:!1,error:"ItemReference: Expected object, got undefined object for ItemReferenceValidator"};if(void 0===e.referencedPath)return{success:!1,error:'ItemReference: Required field "referencedPath" is missing'};{const t=(0,c.I)(e.referencedPath,1,void 0,"string");if(!t.success)return t.error="ItemReference.referencedPath: "+t.error,t}return{success:!0}}}const h=new f;class g{validate(e){if(!e)return{success:!1,error:"ItemDelta: Expected object, got undefined object for ItemDeltaValidator"};if(void 0!==e.state&&"string"!=typeof e.state)return{success:!1,error:'ItemDelta: Optional field "state" is wrong type'};const t=i.X$.validate(e.H_);return t.success?o.sT.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ItemDelta"'}:t}}const m=new g;class y{validate(e){if(!e)return{success:!1,error:"ItemChangesDelta: Expected object, got undefined object for ItemChangesDeltaValidator"};if(void 0===e.changes)return{success:!1,error:'ItemChangesDelta: Required field "changes" is missing'};{const t=(0,c.I)(e.changes,1,ie,"{ItemChanges}");if(!t.success)return t.error="ItemChangesDelta.changes: "+t.error,t}if(void 0!==e.state&&"string"!=typeof e.state)return{success:!1,error:'ItemChangesDelta: Optional field "state" is wrong type'};const t=i.X$.validate(e.H_);return t.success?o.B9.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ItemChangesDelta"'}:t}}const v=new y;class w{validate(e){if(!e)return{success:!1,error:"ItemWithPath: Expected object, got undefined object for ItemWithPathValidator"};if(void 0===e.parentPath)return{success:!1,error:'ItemWithPath: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="ItemWithPath.parentPath: "+t.error,t}if(void 0!==e.delta){const t=m.validate(e.delta);if(!t.success)return t.error="ItemWithPath.delta: "+t.error,t}if(void 0!==e.deltas){const t=(0,c.I)(e.deltas,1,m,"{ItemDelta}");if(!t.success)return t.error="ItemWithPath.deltas: "+t.error,t}if(void 0!==e.op){const t=oe.validate(e.op);if(!t.success)return t.error="ItemWithPath.op: "+t.error,t}if(void 0===e.id)return{success:!1,error:'ItemWithPath: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'ItemWithPath: Required field "id" is wrong type'};if(void 0!==e.source&&"string"!=typeof e.source)return{success:!1,error:'ItemWithPath: Optional field "source" is wrong type'};if(void 0!==e.sourceTimestamp&&"number"!=typeof e.sourceTimestamp)return{success:!1,error:'ItemWithPath: Optional field "sourceTimestamp" is wrong type'};if(void 0!==e.revId&&"string"!=typeof e.revId)return{success:!1,error:'ItemWithPath: Optional field "revId" is wrong type'};if(void 0!==e.contextId&&"string"!=typeof e.contextId)return{success:!1,error:'ItemWithPath: Optional field "contextId" is wrong type'};if(void 0!==e.body){const t=i.sK.validate(e.body);if(!t.success)return t.error="ItemWithPath.body: "+t.error,t}if(void 0!==e.sourceInfo){const t=u.validate(e.sourceInfo);if(!t.success)return t.error="ItemWithPath.sourceInfo: "+t.error,t}return{success:!0}}}const b=new w;class S{validate(e){if(!e)return{success:!1,error:"Operation: Expected object, got undefined object for OperationValidator"};if(void 0===e.parentPath)return{success:!1,error:'Operation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="Operation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'Operation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'Operation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="Operation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.I.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Operation"'}:t}}const T=new S;class C{validate(e){if(!e)return{success:!1,error:"OperationError: Expected object, got undefined object for OperationErrorValidator"};if(void 0===e.path)return{success:!1,error:'OperationError: Required field "path" is missing'};{const t=(0,c.I)(e.path,1,void 0,"string");if(!t.success)return t.error="OperationError.path: "+t.error,t}if(void 0!==e.errorCode){const t=ce.validate(e.errorCode);if(!t.success)return t.error="OperationError.errorCode: "+t.error,t}return{success:!0}}}const _=new C;class I{validate(e){if(!e)return{success:!1,error:"OperationWithSiblingContext: Expected object, got undefined object for OperationWithSiblingContextValidator"};if(void 0!==e.prevId&&"string"!=typeof e.prevId)return{success:!1,error:'OperationWithSiblingContext: Optional field "prevId" is wrong type'};if(void 0!==e.nextId&&"string"!=typeof e.nextId)return{success:!1,error:'OperationWithSiblingContext: Optional field "nextId" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'OperationWithSiblingContext: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="OperationWithSiblingContext.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'OperationWithSiblingContext: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'OperationWithSiblingContext: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="OperationWithSiblingContext.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.vg.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "OperationWithSiblingContext"'}:t}}const k=new I;class A{validate(e){if(!e)return{success:!1,error:"AddOperation: Expected object, got undefined object for AddOperationValidator"};if(void 0!==e.isTriggeredBySyncDelta&&"boolean"!=typeof e.isTriggeredBySyncDelta)return{success:!1,error:'AddOperation: Optional field "isTriggeredBySyncDelta" is wrong type'};if(void 0!==e.prevId&&"string"!=typeof e.prevId)return{success:!1,error:'AddOperation: Optional field "prevId" is wrong type'};if(void 0!==e.nextId&&"string"!=typeof e.nextId)return{success:!1,error:'AddOperation: Optional field "nextId" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'AddOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="AddOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'AddOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'AddOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="AddOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.Xr.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AddOperation"'}:t}}const E=new A;class R{validate(e){if(!e)return{success:!1,error:"MoveOperation: Expected object, got undefined object for MoveOperationValidator"};if(void 0===e.prevParentPath)return{success:!1,error:'MoveOperation: Required field "prevParentPath" is missing'};{const t=(0,c.I)(e.prevParentPath,1,void 0,"string");if(!t.success)return t.error="MoveOperation.prevParentPath: "+t.error,t}if(void 0!==e.prevId&&"string"!=typeof e.prevId)return{success:!1,error:'MoveOperation: Optional field "prevId" is wrong type'};if(void 0!==e.nextId&&"string"!=typeof e.nextId)return{success:!1,error:'MoveOperation: Optional field "nextId" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'MoveOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="MoveOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'MoveOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'MoveOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="MoveOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.hW.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "MoveOperation"'}:t}}const O=new R;class P{validate(e){if(!e)return{success:!1,error:"UpdateAnnotationMetaDataOperation: Expected object, got undefined object for UpdateAnnotationMetaDataOperationValidator"};if(void 0===e.M_)return{success:!1,error:'UpdateAnnotationMetaDataOperation: Required field "M_" is missing'};{const t=a.uT.validate(e.M_);if(!t.success)return t.error="UpdateAnnotationMetaDataOperation.M_: "+t.error,t}if(void 0===e.parentPath)return{success:!1,error:'UpdateAnnotationMetaDataOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="UpdateAnnotationMetaDataOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'UpdateAnnotationMetaDataOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'UpdateAnnotationMetaDataOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="UpdateAnnotationMetaDataOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.XP.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "UpdateAnnotationMetaDataOperation"'}:t}}const M=new P;class x{validate(e){if(!e)return{success:!1,error:"UpdateOperation: Expected object, got undefined object for UpdateOperationValidator"};if(void 0!==e.isTriggeredBySyncDelta&&"boolean"!=typeof e.isTriggeredBySyncDelta)return{success:!1,error:'UpdateOperation: Optional field "isTriggeredBySyncDelta" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'UpdateOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="UpdateOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'UpdateOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'UpdateOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="UpdateOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.fZ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "UpdateOperation"'}:t}}const D=new x;class N{validate(e){if(!e)return{success:!1,error:"DeleteOperation: Expected object, got undefined object for DeleteOperationValidator"};if(void 0!==e.isTriggeredBySyncDelta&&"boolean"!=typeof e.isTriggeredBySyncDelta)return{success:!1,error:'DeleteOperation: Optional field "isTriggeredBySyncDelta" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'DeleteOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="DeleteOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'DeleteOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'DeleteOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="DeleteOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.n4.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "DeleteOperation"'}:t}}const L=new N;class F{validate(e){if(!e)return{success:!1,error:"PurgeOperation: Expected object, got undefined object for PurgeOperationValidator"};if(void 0===e.parentPath)return{success:!1,error:'PurgeOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="PurgeOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'PurgeOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'PurgeOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="PurgeOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.Zw.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "PurgeOperation"'}:t}}const B=new F;class W{validate(e){if(!e)return{success:!1,error:"PurgeSubtreeExceptTypesOperation: Expected object, got undefined object for PurgeSubtreeExceptTypesOperationValidator"};if(void 0===e.typesToKeep)return{success:!1,error:'PurgeSubtreeExceptTypesOperation: Required field "typesToKeep" is missing'};{const t=(0,c.I)(e.typesToKeep,1,void 0,"string");if(!t.success)return t.error="PurgeSubtreeExceptTypesOperation.typesToKeep: "+t.error,t}if(void 0===e.parentPath)return{success:!1,error:'PurgeSubtreeExceptTypesOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="PurgeSubtreeExceptTypesOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'PurgeSubtreeExceptTypesOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'PurgeSubtreeExceptTypesOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="PurgeSubtreeExceptTypesOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.Vm.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "PurgeSubtreeExceptTypesOperation"'}:t}}const U=new W;class G{validate(e){if(!e)return{success:!1,error:"PurgeByTypesOperation: Expected object, got undefined object for PurgeByTypesOperationValidator"};if(void 0===e.types)return{success:!1,error:'PurgeByTypesOperation: Required field "types" is missing'};{const t=(0,c.I)(e.types,1,void 0,"string");if(!t.success)return t.error="PurgeByTypesOperation.types: "+t.error,t}if(void 0===e.parentPath)return{success:!1,error:'PurgeByTypesOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="PurgeByTypesOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'PurgeByTypesOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'PurgeByTypesOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="PurgeByTypesOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.Z5.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "PurgeByTypesOperation"'}:t}}const V=new G;class q{validate(e){if(!e)return{success:!1,error:"FocusOperation: Expected object, got undefined object for FocusOperationValidator"};if(void 0===e.isFocused)return{success:!1,error:'FocusOperation: Required field "isFocused" is missing'};if("boolean"!=typeof e.isFocused)return{success:!1,error:'FocusOperation: Required field "isFocused" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'FocusOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="FocusOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'FocusOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'FocusOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="FocusOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.A5.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "FocusOperation"'}:t}}const H=new q;class j{validate(e){if(!e)return{success:!1,error:"VisibilityOperation: Expected object, got undefined object for VisibilityOperationValidator"};if(void 0===e.isVisible)return{success:!1,error:'VisibilityOperation: Required field "isVisible" is missing'};if("boolean"!=typeof e.isVisible)return{success:!1,error:'VisibilityOperation: Required field "isVisible" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'VisibilityOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="VisibilityOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'VisibilityOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'VisibilityOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="VisibilityOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.mX.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "VisibilityOperation"'}:t}}const z=new j;class ${validate(e){if(!e)return{success:!1,error:"DeltaUpdateOperation: Expected object, got undefined object for DeltaUpdateOperationValidator"};if(void 0===e.parentPath)return{success:!1,error:'DeltaUpdateOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="DeltaUpdateOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'DeltaUpdateOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'DeltaUpdateOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="DeltaUpdateOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.xU.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "DeltaUpdateOperation"'}:t}}const Y=new $;class J{validate(e){if(!e)return{success:!1,error:"MicroSyncOperation: Expected object, got undefined object for MicroSyncOperationValidator"};if(void 0!==e.seq&&"number"!=typeof e.seq)return{success:!1,error:'MicroSyncOperation: Optional field "seq" is wrong type'};if(void 0!==e.opType&&"string"!=typeof e.opType)return{success:!1,error:'MicroSyncOperation: Optional field "opType" is wrong type'};if(void 0===e.parentPath)return{success:!1,error:'MicroSyncOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="MicroSyncOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'MicroSyncOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'MicroSyncOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="MicroSyncOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.hK.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "MicroSyncOperation"'}:t}}const Q=new J;class K{validate(e){if(!e)return{success:!1,error:"SignalOperation: Expected object, got undefined object for SignalOperationValidator"};if(void 0===e.parentPath)return{success:!1,error:'SignalOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="SignalOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'SignalOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'SignalOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="SignalOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.g0.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SignalOperation"'}:t}}const X=new K;class Z{validate(e){if(!e)return{success:!1,error:"CancelSignalTriggeredWorkflowExecutionOperation: Expected object, got undefined object for CancelSignalTriggeredWorkflowExecutionOperationValidator"};if(void 0===e.parentPath)return{success:!1,error:'CancelSignalTriggeredWorkflowExecutionOperation: Required field "parentPath" is missing'};{const t=(0,c.I)(e.parentPath,1,void 0,"string");if(!t.success)return t.error="CancelSignalTriggeredWorkflowExecutionOperation.parentPath: "+t.error,t}if(void 0!==e.parentRevId&&"string"!=typeof e.parentRevId)return{success:!1,error:'CancelSignalTriggeredWorkflowExecutionOperation: Optional field "parentRevId" is wrong type'};if(void 0===e.items)return{success:!1,error:'CancelSignalTriggeredWorkflowExecutionOperation: Required field "items" is missing'};{const t=(0,c.I)(e.items,1,p,"{Item}");if(!t.success)return t.error="CancelSignalTriggeredWorkflowExecutionOperation.items: "+t.error,t}const t=i.X$.validate(e.H_);return t.success?o.GH.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "CancelSignalTriggeredWorkflowExecutionOperation"'}:t}}const ee=new Z;class te{validate(e){return te.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "EntryPoint"'}}}te.validValues=new Set([r.$k.Unknown,r.$k.Canvas,r.$k.CopilotChat,r.$k.Test]);const ne=new te;class re{validate(e){return re.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ItemOperation"'}}}re.validValues=new Set([r.nU.None,r.nU.Added,r.nU.Updated,r.nU.Deleted]);const oe=new re;class se{validate(e){return se.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "ItemChanges"'}}}se.validValues=new Set([r.Xm.ContentChanged,r.Xm.ContentWasEmpty,r.Xm.FormattingChanged,r.Xm.ContentWasInsideOfTheTable]);const ie=new se;class ae{validate(e){return ae.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "OperationErrorCode"'}}}ae.validValues=new Set([r.dY.AddOfZeroElements,r.dY.AddOfItemsWithExtraOrMissingIds,r.dY.AddOfItemWithUndefinedId,r.dY.AddOfUndefinedItem,r.dY.AddOfItemsWithDuplicateIds,r.dY.SetHeadToNonExistingItem,r.dY.DeleteOfNonExistingItem,r.dY.UpdateOfNonExistentItem,r.dY.UpdateOfStubbedItem,r.dY.MoveOfNonExistentItem,r.dY.UpdateMetaDataOfNonAnnotationType,r.dY.SequentialyInvertedUpdate,r.dY.MoveToTheSamePath,r.dY.UnknownOperation,r.dY.DeltaOfNonExistingItem]);const ce=new ae},75582:(e,t,n)=>{"use strict";n.d(t,{W:()=>s,v:()=>o});var r=n(57077);class o{validate(e){return o.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "Scenario"'}}}o.validValues=new Set([r.N.Unknown,r.N.Testing,r.N.CopilotSummary,r.N.CopilotCompose,r.N.Rewrite,r.N.ChatQnA,r.N.CIQ,r.N.Editor,r.N.Handoff,r.N.ReadAloud]);const s=new o},23092:(e,t,n)=>{"use strict";n.d(t,{Ln:()=>i,X$:()=>s,_X:()=>o,sK:()=>a});var r=n(79982);class o{validate(e){if(!e)return{success:!1,error:"SchemaObjectHeader: Expected object, got undefined object for SchemaObjectHeaderValidator"};if(void 0===e.T_)return{success:!1,error:'SchemaObjectHeader: Required field "T_" is missing'};if("string"!=typeof e.T_)return{success:!1,error:'SchemaObjectHeader: Required field "T_" is wrong type'};if(void 0===e.B_)return{success:!1,error:'SchemaObjectHeader: Required field "B_" is missing'};{const t=(0,r.I)(e.B_,1,void 0,"string");if(!t.success)return t.error="SchemaObjectHeader.B_: "+t.error,t}return{success:!0}}}const s=new o;class i{validate(e){if(!e)return{success:!1,error:"SchemaObject: Expected object, got undefined object for SchemaObjectValidator"};const t=s.validate(e.H_);return t.success?{success:!0}:t}}const a=new i},52140:(e,t,n)=>{"use strict";n.d(t,{AU:()=>H,BI:()=>T,C9:()=>g,D6:()=>B,DN:()=>b,DU:()=>p,EC:()=>S,EV:()=>v,Fz:()=>a,M$:()=>u,NP:()=>U,Qb:()=>N,RH:()=>L,RW:()=>E,Rw:()=>R,TF:()=>k,Xf:()=>C,ZD:()=>y,Zb:()=>l,_:()=>V,_0:()=>W,_J:()=>_,cN:()=>c,ed:()=>O,gZ:()=>D,lJ:()=>G,lX:()=>M,oC:()=>I,oS:()=>w,ot:()=>d,pQ:()=>m,pt:()=>x,s6:()=>f,sL:()=>P,sb:()=>F,sm:()=>A,xm:()=>h,z1:()=>q});var r=n(25727),o=n(12834),s=n(23092),i=n(79982);class a{validate(e){if(!e)return{success:!1,error:"BlobRef: Expected object, got undefined object for BlobRefValidator"};if(void 0===e.refType)return{success:!1,error:'BlobRef: Required field "refType" is missing'};{const t=V.validate(e.refType);if(!t.success)return t.error="BlobRef.refType: "+t.error,t}return void 0===e.value?{success:!1,error:'BlobRef: Required field "value" is missing'}:"string"!=typeof e.value?{success:!1,error:'BlobRef: Required field "value" is wrong type'}:{success:!0}}}const c=new a;class l{validate(e){return e?void 0===e.codedLocation?{success:!1,error:'BlobToken: Required field "codedLocation" is missing'}:"string"!=typeof e.codedLocation?{success:!1,error:'BlobToken: Required field "codedLocation" is wrong type'}:void 0===e.sizeBytes?{success:!1,error:'BlobToken: Required field "sizeBytes" is missing'}:"number"!=typeof e.sizeBytes?{success:!1,error:'BlobToken: Required field "sizeBytes" is wrong type'}:void 0===e.id?{success:!1,error:'BlobToken: Required field "id" is missing'}:"string"!=typeof e.id?{success:!1,error:'BlobToken: Required field "id" is wrong type'}:void 0===e.gatewayUrl?{success:!1,error:'BlobToken: Required field "gatewayUrl" is missing'}:"string"!=typeof e.gatewayUrl?{success:!1,error:'BlobToken: Required field "gatewayUrl" is wrong type'}:{success:!0}:{success:!1,error:"BlobToken: Expected object, got undefined object for BlobTokenValidator"}}}const u=new l;class d{validate(e){if(!e)return{success:!1,error:"Blob: Expected object, got undefined object for BlobValidator"};if(void 0===e.id)return{success:!1,error:'Blob: Required field "id" is missing'};if("string"!=typeof e.id)return{success:!1,error:'Blob: Required field "id" is wrong type'};if(void 0===e.sizeBytes)return{success:!1,error:'Blob: Required field "sizeBytes" is missing'};if("number"!=typeof e.sizeBytes)return{success:!1,error:'Blob: Required field "sizeBytes" is wrong type'};if(void 0!==e.data&&!(e.data instanceof Uint8Array))return{success:!1,error:'Blob: Optional field "data" is wrong type'};if(void 0!==e.dataPointer){const t=c.validate(e.dataPointer);if(!t.success)return t.error="Blob.dataPointer: "+t.error,t}const t=s.X$.validate(e.H_);return t.success?o.YQ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Blob"'}:t}}const p=new d;class f{validate(e){if(!e)return{success:!1,error:"Binary: Expected object, got undefined object for BinaryValidator"};if(void 0!==e.data&&!(e.data instanceof Uint8Array))return{success:!1,error:'Binary: Optional field "data" is wrong type'};const t=s.X$.validate(e.H_);return t.success?o.yI.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Binary"'}:t}}const h=new f;class g{validate(e){if(!e)return{success:!1,error:"TileGroup: Expected object, got undefined object for TileGroupValidator"};const t=s.X$.validate(e.H_);return t.success?o.iS.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "TileGroup"'}:t}}const m=new g;class y{validate(e){if(!e)return{success:!1,error:"Session: Expected object, got undefined object for SessionValidator"};if(void 0===e.activeUserId)return{success:!1,error:'Session: Required field "activeUserId" is missing'};if("string"!=typeof e.activeUserId)return{success:!1,error:'Session: Required field "activeUserId" is wrong type'};if(void 0!==e.widthDpi&&"number"!=typeof e.widthDpi)return{success:!1,error:'Session: Optional field "widthDpi" is wrong type'};if(void 0!==e.heightDpi&&"number"!=typeof e.heightDpi)return{success:!1,error:'Session: Optional field "heightDpi" is wrong type'};const t=s.X$.validate(e.H_);return t.success?o.Nn.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Session"'}:t}}const v=new y;class w{validate(e){if(!e)return{success:!1,error:"Document: Expected object, got undefined object for DocumentValidator"};if(void 0===e.isReadonly)return{success:!1,error:'Document: Required field "isReadonly" is missing'};if("boolean"!=typeof e.isReadonly)return{success:!1,error:'Document: Required field "isReadonly" is wrong type'};if(void 0!==e.title&&"string"!=typeof e.title)return{success:!1,error:'Document: Optional field "title" is wrong type'};if(void 0!==e.url&&"string"!=typeof e.url)return{success:!1,error:'Document: Optional field "url" is wrong type'};if(void 0!==e.openType){const t=H.validate(e.openType);if(!t.success)return t.error="Document.openType: "+t.error,t}const t=s.X$.validate(e.H_);return t.success?o.yo.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Document"'}:t}}const b=new w;class S{validate(e){if(!e)return{success:!1,error:"SubDocument: Expected object, got undefined object for SubDocumentValidator"};const t=s.X$.validate(e.H_);return t.success?o.I3.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SubDocument"'}:t}}const T=new S;class C{validate(e){if(!e)return{success:!1,error:"GridCell: Expected object, got undefined object for GridCellValidator"};if(void 0===e.column)return{success:!1,error:'GridCell: Required field "column" is missing'};if("number"!=typeof e.column)return{success:!1,error:'GridCell: Required field "column" is wrong type'};if(void 0===e.row)return{success:!1,error:'GridCell: Required field "row" is missing'};if("number"!=typeof e.row)return{success:!1,error:'GridCell: Required field "row" is wrong type'};const t=s.X$.validate(e.H_);return t.success?o.LX.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GridCell"'}:t}}const _=new C;class I{validate(e){if(!e)return{success:!1,error:"GridNeighborhoodContext: Expected object, got undefined object for GridNeighborhoodContextValidator"};if(void 0===e.width)return{success:!1,error:'GridNeighborhoodContext: Required field "width" is missing'};if("number"!=typeof e.width)return{success:!1,error:'GridNeighborhoodContext: Required field "width" is wrong type'};if(void 0===e.height)return{success:!1,error:'GridNeighborhoodContext: Required field "height" is missing'};if("number"!=typeof e.height)return{success:!1,error:'GridNeighborhoodContext: Required field "height" is wrong type'};if(void 0===e.retrievedWidth)return{success:!1,error:'GridNeighborhoodContext: Required field "retrievedWidth" is missing'};if("number"!=typeof e.retrievedWidth)return{success:!1,error:'GridNeighborhoodContext: Required field "retrievedWidth" is wrong type'};if(void 0===e.retrievedHeight)return{success:!1,error:'GridNeighborhoodContext: Required field "retrievedHeight" is missing'};if("number"!=typeof e.retrievedHeight)return{success:!1,error:'GridNeighborhoodContext: Required field "retrievedHeight" is wrong type'};if(void 0===e.neighborhoodTopRow)return{success:!1,error:'GridNeighborhoodContext: Required field "neighborhoodTopRow" is missing'};if("number"!=typeof e.neighborhoodTopRow)return{success:!1,error:'GridNeighborhoodContext: Required field "neighborhoodTopRow" is wrong type'};if(void 0===e.neighborhoodLeftColumn)return{success:!1,error:'GridNeighborhoodContext: Required field "neighborhoodLeftColumn" is missing'};if("number"!=typeof e.neighborhoodLeftColumn)return{success:!1,error:'GridNeighborhoodContext: Required field "neighborhoodLeftColumn" is wrong type'};if(void 0===e.targetGridTopRow)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridTopRow" is missing'};if("number"!=typeof e.targetGridTopRow)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridTopRow" is wrong type'};if(void 0===e.targetGridLeftColumn)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridLeftColumn" is missing'};if("number"!=typeof e.targetGridLeftColumn)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridLeftColumn" is wrong type'};if(void 0===e.targetGridRelativeTopRow)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridRelativeTopRow" is missing'};if("number"!=typeof e.targetGridRelativeTopRow)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridRelativeTopRow" is wrong type'};if(void 0===e.targetGridRelativeLeftColumn)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridRelativeLeftColumn" is missing'};if("number"!=typeof e.targetGridRelativeLeftColumn)return{success:!1,error:'GridNeighborhoodContext: Required field "targetGridRelativeLeftColumn" is wrong type'};if(void 0===e.numberOfNonEmptyCells)return{success:!1,error:'GridNeighborhoodContext: Required field "numberOfNonEmptyCells" is missing'};if("number"!=typeof e.numberOfNonEmptyCells)return{success:!1,error:'GridNeighborhoodContext: Required field "numberOfNonEmptyCells" is wrong type'};if(void 0!==e.numberOfNonEmptyCellsInWorksheet&&"number"!=typeof e.numberOfNonEmptyCellsInWorksheet)return{success:!1,error:'GridNeighborhoodContext: Optional field "numberOfNonEmptyCellsInWorksheet" is wrong type'};const t=s.X$.validate(e.H_);return t.success?o.wX.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "GridNeighborhoodContext"'}:t}}const k=new I;class A{validate(e){if(!e)return{success:!1,error:"ItemFilter: Expected object, got undefined object for ItemFilterValidator"};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'ItemFilter: Optional field "id" is wrong type'};if(void 0!==e.ids){const t=(0,i.I)(e.ids,1,void 0,"string");if(!t.success)return t.error="ItemFilter.ids: "+t.error,t}if(void 0!==e.itemType&&"string"!=typeof e.itemType)return{success:!1,error:'ItemFilter: Optional field "itemType" is wrong type'};if(void 0!==e.itemTypes){const t=(0,i.I)(e.itemTypes,1,void 0,"string");if(!t.success)return t.error="ItemFilter.itemTypes: "+t.error,t}const t=s.X$.validate(e.H_);return t.success?o.sD.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ItemFilter"'}:t}}const E=new A;class R{validate(e){if(!e)return{success:!1,error:"DynamicContext: Expected object, got undefined object for DynamicContextValidator"};const t=s.X$.validate(e.H_);return t.success?o.zB.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "DynamicContext"'}:t}}const O=new R;class P{validate(e){if(!e)return{success:!1,error:"ContextHolder: Expected object, got undefined object for ContextHolderValidator"};const t=s.X$.validate(e.H_);return t.success?o.W1.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "ContextHolder"'}:t}}const M=new P;class x{validate(e){if(!e)return{success:!1,error:"UserContextHolder: Expected object, got undefined object for UserContextHolderValidator"};const t=s.X$.validate(e.H_);return t.success?o.hD.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "UserContextHolder"'}:t}}const D=new x;class N{validate(e){if(!e)return{success:!1,error:"TenantContextHolder: Expected object, got undefined object for TenantContextHolderValidator"};const t=s.X$.validate(e.H_);return t.success?o.SB.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "TenantContextHolder"'}:t}}const L=new N;class F{validate(e){if(!e)return{success:!1,error:"EventsHolder: Expected object, got undefined object for EventsHolderValidator"};const t=s.X$.validate(e.H_);return t.success?o.u7.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "EventsHolder"'}:t}}const B=new F;class W{validate(e){if(!e)return{success:!1,error:"UserCommandsHolder: Expected object, got undefined object for UserCommandsHolderValidator"};const t=s.X$.validate(e.H_);return t.success?o.QG.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "UserCommandsHolder"'}:t}}const U=new W;class G{validate(e){return G.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "BlobRefType"'}}}G.validValues=new Set([r.J1.None,r.J1.HttpsGetDownloadUrl,r.J1.AlCodedLocation,r.J1.Token]);const V=new G;class q{validate(e){return q.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "OpenType"'}}}q.validValues=new Set([r.h6.NewDocument,r.h6.EditDocument,r.h6.ViewOnlyDocument]);const H=new q},36328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AddOperation:()=>f.Xr,AddOperationValidator:()=>v.JS,Annotation:()=>a.YH,AnnotationActivationConfigsValidator:()=>y.B9,AnnotationMetaDataValidator:()=>y.li,AnnotationState:()=>i.r,AnnotationStateValidator:()=>y.Fc,AnnotationValidator:()=>y.cy,Apology:()=>c.k$,ApologyValidator:()=>S,AuthTokenIsMissingDetails:()=>c.u$,AuthTokenIsMissingDetailsValidator:()=>R,Binary:()=>m.yI,BinaryClassificationAnnotation:()=>a.h_,BinaryClassificationAnnotationValidator:()=>y.Xv,BinaryValidator:()=>ne.s6,Blob:()=>m.YQ,BlobRefType:()=>se.J1,BlobRefTypeValidator:()=>ne.lJ,BlobRefValidator:()=>ne.Fz,BlobTokenValidator:()=>ne.Zb,BlobValidator:()=>ne.ot,CancelSignalTriggeredWorkflowExecutionOperation:()=>f.GH,CancelSignalTriggeredWorkflowExecutionOperationValidator:()=>v.eE,CheckCopilotLicenseSignalBase:()=>u,CheckCopilotLicenseSignalBaseValidator:()=>W,ContextHolder:()=>m.W1,ContextHolderValidator:()=>ne.sL,CopilotAugloopIdentityBaseValidator:()=>F,CopilotLicenseType:()=>s,CopilotLicenseTypeValidator:()=>G,DeleteOperation:()=>f.n4,DeleteOperationValidator:()=>v.JP,DeltaUpdateOperation:()=>f.xU,DeltaUpdateOperationValidator:()=>v.BU,DirtyAreaSignal:()=>g.M_,DirtyAreaSignalValidator:()=>X,DirtyDocumentSignal:()=>g.WJ,DirtyDocumentSignalValidator:()=>ee,Document:()=>m.yo,DocumentValidator:()=>ne.oS,DynamicContext:()=>m.zB,DynamicContextValidator:()=>ne.Rw,EntryPoint:()=>re.$k,EntryPointValidator:()=>v.hj,Event:()=>d,EventValidator:()=>q,EventsHolder:()=>m.u7,EventsHolderValidator:()=>ne.sb,FocusOperation:()=>f.A5,FocusOperationValidator:()=>v.mT,GridCell:()=>m.LX,GridCellValidator:()=>ne.Xf,GridConstants:()=>se.u5,GridNeighborhoodContext:()=>m.wX,GridNeighborhoodContextValidator:()=>ne.oC,ItemChanges:()=>re.Xm,ItemChangesDelta:()=>f.B9,ItemChangesDeltaValidator:()=>v.De,ItemChangesValidator:()=>v.Zt,ItemDelta:()=>f.sT,ItemDeltaValidator:()=>v.yd,ItemFilter:()=>m.sD,ItemFilterValidator:()=>ne.sm,ItemOperation:()=>re.nU,ItemOperationValidator:()=>v.TO,ItemReferenceValidator:()=>v.Tm,ItemValidator:()=>v.wL,ItemWithPathValidator:()=>v.jD,MicroSyncOperation:()=>f.hK,MicroSyncOperationValidator:()=>v.bd,MoveOperation:()=>f.hW,MoveOperationValidator:()=>v.rh,NotActivatedWorkflowApology:()=>c.tX,NotActivatedWorkflowApologyValidator:()=>P,OpenType:()=>se.h6,OpenTypeValidator:()=>ne.z1,Operation:()=>f.I,OperationErrorCode:()=>re.dY,OperationErrorCodeValidator:()=>v.d4,OperationErrorValidator:()=>v.uX,OperationValidator:()=>v.cZ,OperationWithSiblingContext:()=>f.vg,OperationWithSiblingContextValidator:()=>v.X2,PurgeByTypesOperation:()=>f.Z5,PurgeByTypesOperationValidator:()=>v.PY,PurgeOperation:()=>f.Zw,PurgeOperationValidator:()=>v.Fk,PurgeSubtreeExceptTypesOperation:()=>f.Vm,PurgeSubtreeExceptTypesOperationValidator:()=>v.PB,Scenario:()=>oe.N,ScenarioValidator:()=>$.v,SchemaObject:()=>l.h,SchemaObjectHeaderValidator:()=>w._X,SchemaObjectValidator:()=>w.Ln,SecondaryApology:()=>c.ay,SecondaryApologyValidator:()=>C,Session:()=>m.Nn,SessionValidator:()=>ne.ZD,Signal:()=>g.HN,SignalOperation:()=>f.g0,SignalOperationValidator:()=>v.mU,SignalValidator:()=>Q,SignalWithPath:()=>h,SignalWithPathValidator:()=>Y,SourceInfoValidator:()=>v.eJ,StreamAnnotation:()=>a.Iz,StreamAnnotationValidator:()=>y.w6,SubDocument:()=>m.I3,SubDocumentValidator:()=>ne.EC,TenantContextHolder:()=>m.SB,TenantContextHolderValidator:()=>ne.Qb,TileGroup:()=>m.iS,TileGroupValidator:()=>ne.C9,UpdateAnnotationMetaDataOperation:()=>f.XP,UpdateAnnotationMetaDataOperationValidator:()=>v.N_,UpdateOperation:()=>f.fZ,UpdateOperationValidator:()=>v.Fs,UserCommand:()=>p,UserCommandValidator:()=>j,UserCommandsHolder:()=>m.QG,UserCommandsHolderValidator:()=>ne._0,UserContextHolder:()=>m.hD,UserContextHolderValidator:()=>ne.pt,VisibilityOperation:()=>f.mX,VisibilityOperationValidator:()=>v.M9,WorkflowActivationFailureDetails:()=>c.W8,WorkflowActivationFailureDetailsValidator:()=>A,WorkflowActivationFailureReasonValidator:()=>I,WorkflowExecutionErrorCode:()=>r,WorkflowExecutionErrorCodeValidator:()=>x,WorkflowNotActivatedReasonCode:()=>o,WorkflowNotActivatedReasonCodeValidator:()=>N,addOperationValidatorInstance:()=>v.iN,annotationActivationConfigsValidatorInstance:()=>y.EJ,annotationMetaDataValidatorInstance:()=>y.uT,annotationStateValidatorInstance:()=>y.uf,annotationValidatorInstance:()=>y.Pp,apologyValidatorInstance:()=>T,authTokenIsMissingDetailsValidatorInstance:()=>O,binaryClassificationAnnotationValidatorInstance:()=>y._Z,binaryValidatorInstance:()=>ne.xm,blobRefTypeValidatorInstance:()=>ne._,blobRefValidatorInstance:()=>ne.cN,blobTokenValidatorInstance:()=>ne.M$,blobValidatorInstance:()=>ne.DU,cancelSignalTriggeredWorkflowExecutionOperationValidatorInstance:()=>v.tX,checkCopilotLicenseSignalBaseValidatorInstance:()=>U,contextHolderValidatorInstance:()=>ne.lX,copilotAugloopIdentityBaseValidatorInstance:()=>B,copilotLicenseTypeValidatorInstance:()=>V,deleteOperationValidatorInstance:()=>v.wh,deltaUpdateOperationValidatorInstance:()=>v.Ig,dirtyAreaSignalValidatorInstance:()=>Z,dirtyDocumentSignalValidatorInstance:()=>te,documentValidatorInstance:()=>ne.DN,dynamicContextValidatorInstance:()=>ne.ed,ecsMetadataBlockHeight:()=>se.Xo,ecsMetadataBlockWidth:()=>se.KY,entryPointValidatorInstance:()=>v.Wg,eventValidatorInstance:()=>H,eventsHolderValidatorInstance:()=>ne.D6,focusOperationValidatorInstance:()=>v.JK,gridCellValidatorInstance:()=>ne._J,gridNeighborhoodContextValidatorInstance:()=>ne.TF,itemChangesDeltaValidatorInstance:()=>v.oT,itemChangesValidatorInstance:()=>v.A7,itemDeltaValidatorInstance:()=>v.VA,itemFilterValidatorInstance:()=>ne.RW,itemOperationValidatorInstance:()=>v.AF,itemReferenceValidatorInstance:()=>v.Gc,itemValidatorInstance:()=>v.$,itemWithPathValidatorInstance:()=>v.Gf,microSyncOperationValidatorInstance:()=>v.MM,moveOperationValidatorInstance:()=>v.EM,notActivatedWorkflowApologyValidatorInstance:()=>M,openTypeValidatorInstance:()=>ne.AU,operationErrorCodeValidatorInstance:()=>v.UI,operationErrorValidatorInstance:()=>v.r$,operationValidatorInstance:()=>v.bE,operationWithSiblingContextValidatorInstance:()=>v.GY,purgeByTypesOperationValidatorInstance:()=>v._e,purgeOperationValidatorInstance:()=>v.eL,purgeSubtreeExceptTypesOperationValidatorInstance:()=>v.Ms,scenarioValidatorInstance:()=>$.W,schemaObjectHeaderValidatorInstance:()=>w.X$,schemaObjectValidatorInstance:()=>w.sK,secondaryApologyValidatorInstance:()=>_,sessionValidatorInstance:()=>ne.EV,signalOperationValidatorInstance:()=>v.hh,signalValidatorInstance:()=>K,signalWithPathValidatorInstance:()=>J,sourceInfoValidatorInstance:()=>v.nx,streamAnnotationValidatorInstance:()=>y.Bu,subDocumentValidatorInstance:()=>ne.BI,tenantContextHolderValidatorInstance:()=>ne.RH,tileGroupValidatorInstance:()=>ne.pQ,updateAnnotationMetaDataOperationValidatorInstance:()=>v.Kv,updateOperationValidatorInstance:()=>v.O3,userCommandValidatorInstance:()=>z,userCommandsHolderValidatorInstance:()=>ne.NP,userContextHolderValidatorInstance:()=>ne.gZ,visibilityOperationValidatorInstance:()=>v.JB,workflowActivationFailureDetailsValidatorInstance:()=>E,workflowActivationFailureReasonValidatorInstance:()=>k,workflowExecutionErrorCodeValidatorInstance:()=>D,workflowNotActivatedReasonCodeValidatorInstance:()=>L});var r,o,s,i=n(70372);!function(e){e[e.LambdaExecutionUnhandledError=0]="LambdaExecutionUnhandledError",e[e.LambdaExecutionError=1]="LambdaExecutionError",e[e.WorkflowExecutionTimeout=2]="WorkflowExecutionTimeout",e[e.NetworkError=3]="NetworkError",e[e.SignalNotGotToExecution=4]="SignalNotGotToExecution",e[e.RequestTruncated=5]="RequestTruncated",e[e.WorkflowWrongAnnotationType=6]="WorkflowWrongAnnotationType",e[e.SequenceOutOfOrder=7]="SequenceOutOfOrder",e[e.WorkflowExecutionThrottled=8]="WorkflowExecutionThrottled",e[e.WorkflowExecutionCancelled=9]="WorkflowExecutionCancelled",e[e.NetworkTimeoutOrWorkflowIsBusy=10]="NetworkTimeoutOrWorkflowIsBusy",e[e.RequiredTokenNotAvailable=11]="RequiredTokenNotAvailable",e[e.InvalidInputQuantityForSingleItemWorkflow=12]="InvalidInputQuantityForSingleItemWorkflow",e[e.ExceededRequestSizeLimit=13]="ExceededRequestSizeLimit",e[e.UnknownAnnotationParent=14]="UnknownAnnotationParent",e[e.AnnotationsNotArray=15]="AnnotationsNotArray",e[e.UnexpectedOutput=16]="UnexpectedOutput",e[e.MixedOutput=17]="MixedOutput",e[e.OutputIsNotAnnotation=18]="OutputIsNotAnnotation",e[e.UnexpectedError=19]="UnexpectedError",e[e.WorkflowNotActivated=20]="WorkflowNotActivated"}(r||(r={})),function(e){e[e.Unknown=0]="Unknown",e[e.AuthTokenIsMissing=1]="AuthTokenIsMissing",e[e.UserContextIsMissing=2]="UserContextIsMissing",e[e.SeedingNotCompleted=3]="SeedingNotCompleted"}(o||(o={})),function(e){e[e.Unknown=0]="Unknown",e[e.CopilotInM365=1]="CopilotInM365",e[e.CopilotPro=2]="CopilotPro",e[e.CopilotEnterprise=3]="CopilotEnterprise"}(s||(s={}));var a=n(92341),c=n(56452),l=n(48690);class u{constructor(e){l.h.assign(u,this,e)}static getTypeName(){return"AugLoop_Core_CheckCopilotLicenseSignalBase"}static getBaseTypes(){return["AugLoop_Signals_Signal"]}static typeGuard(e){return l.h.matchesTypesFor(e,[u.getTypeName()])}}u.H_={T_:u.getTypeName(),B_:u.getBaseTypes()};class d{constructor(e){l.h.assign(d,this,e)}static getTypeName(){return"AugLoop_Core_Event"}static getBaseTypes(){return[]}static typeGuard(e){return l.h.matchesTypesFor(e,[d.getTypeName()])}}d.H_={T_:d.getTypeName(),B_:d.getBaseTypes()};class p{constructor(e){l.h.assign(p,this,e)}static getTypeName(){return"AugLoop_Core_UserCommand"}static getBaseTypes(){return["AugLoop_Core_Event"]}static typeGuard(e){return l.h.matchesTypesFor(e,[p.getTypeName()])}}p.H_={T_:p.getTypeName(),B_:p.getBaseTypes()};var f=n(13407);class h{constructor(e){l.h.assign(h,this,e)}static getTypeName(){return"AugLoop_Core_SignalWithPath"}static getBaseTypes(){return["AugLoop_Signals_Signal"]}static typeGuard(e){return l.h.matchesTypesFor(e,[h.getTypeName()])}}h.H_={T_:h.getTypeName(),B_:h.getBaseTypes()};var g=n(91298),m=n(12834),y=n(99731),v=n(40671),w=n(23092),b=n(79982);class S{validate(e){if(!e)return{success:!1,error:"Apology: Expected object, got undefined object for ApologyValidator"};if(void 0===e.annotationTypeName)return{success:!1,error:'Apology: Required field "annotationTypeName" is missing'};if("string"!=typeof e.annotationTypeName)return{success:!1,error:'Apology: Required field "annotationTypeName" is wrong type'};if(void 0!==e.scopeItemReference){const t=v.Gc.validate(e.scopeItemReference);if(!t.success)return t.error="Apology.scopeItemReference: "+t.error,t}if(void 0===e.errorCode)return{success:!1,error:'Apology: Required field "errorCode" is missing'};{const t=D.validate(e.errorCode);if(!t.success)return t.error="Apology.errorCode: "+t.error,t}if(void 0===e.consecutiveFailuresCount)return{success:!1,error:'Apology: Required field "consecutiveFailuresCount" is missing'};if("number"!=typeof e.consecutiveFailuresCount)return{success:!1,error:'Apology: Required field "consecutiveFailuresCount" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'Apology: Optional field "id" is wrong type'};if(void 0!==e.ownerId&&"string"!=typeof e.ownerId)return{success:!1,error:'Apology: Optional field "ownerId" is wrong type'};if(void 0!==e.invalidationHash&&"string"!=typeof e.invalidationHash)return{success:!1,error:'Apology: Optional field "invalidationHash" is wrong type'};if(void 0!==e.M_){const t=y.uT.validate(e.M_);if(!t.success)return t.error="Apology.M_: "+t.error,t}if(void 0!==e.metadata){const t=y.uT.validate(e.metadata);if(!t.success)return t.error="Apology.metadata: "+t.error,t}const t=w.X$.validate(e.H_);return t.success?c.k$.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Apology"'}:t}}const T=new S;class C{validate(e){if(!e)return{success:!1,error:"SecondaryApology: Expected object, got undefined object for SecondaryApologyValidator"};if(void 0===e.originalOwnerId)return{success:!1,error:'SecondaryApology: Required field "originalOwnerId" is missing'};if("string"!=typeof e.originalOwnerId)return{success:!1,error:'SecondaryApology: Required field "originalOwnerId" is wrong type'};if(void 0===e.originalScopeItemReference)return{success:!1,error:'SecondaryApology: Required field "originalScopeItemReference" is missing'};{const t=v.Gc.validate(e.originalScopeItemReference);if(!t.success)return t.error="SecondaryApology.originalScopeItemReference: "+t.error,t}if(void 0===e.annotationTypeName)return{success:!1,error:'SecondaryApology: Required field "annotationTypeName" is missing'};if("string"!=typeof e.annotationTypeName)return{success:!1,error:'SecondaryApology: Required field "annotationTypeName" is wrong type'};if(void 0!==e.scopeItemReference){const t=v.Gc.validate(e.scopeItemReference);if(!t.success)return t.error="SecondaryApology.scopeItemReference: "+t.error,t}if(void 0===e.errorCode)return{success:!1,error:'SecondaryApology: Required field "errorCode" is missing'};{const t=D.validate(e.errorCode);if(!t.success)return t.error="SecondaryApology.errorCode: "+t.error,t}if(void 0===e.consecutiveFailuresCount)return{success:!1,error:'SecondaryApology: Required field "consecutiveFailuresCount" is missing'};if("number"!=typeof e.consecutiveFailuresCount)return{success:!1,error:'SecondaryApology: Required field "consecutiveFailuresCount" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'SecondaryApology: Optional field "id" is wrong type'};if(void 0!==e.ownerId&&"string"!=typeof e.ownerId)return{success:!1,error:'SecondaryApology: Optional field "ownerId" is wrong type'};if(void 0!==e.invalidationHash&&"string"!=typeof e.invalidationHash)return{success:!1,error:'SecondaryApology: Optional field "invalidationHash" is wrong type'};if(void 0!==e.M_){const t=y.uT.validate(e.M_);if(!t.success)return t.error="SecondaryApology.M_: "+t.error,t}if(void 0!==e.metadata){const t=y.uT.validate(e.metadata);if(!t.success)return t.error="SecondaryApology.metadata: "+t.error,t}const t=w.X$.validate(e.H_);return t.success?c.ay.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SecondaryApology"'}:t}}const _=new C;class I{validate(e){if(!e)return{success:!1,error:"WorkflowActivationFailureReason: Expected object, got undefined object for WorkflowActivationFailureReasonValidator"};if(void 0===e.code)return{success:!1,error:'WorkflowActivationFailureReason: Required field "code" is missing'};{const t=L.validate(e.code);if(!t.success)return t.error="WorkflowActivationFailureReason.code: "+t.error,t}if(void 0!==e.details){const t=E.validate(e.details);if(!t.success)return t.error="WorkflowActivationFailureReason.details: "+t.error,t}return{success:!0}}}const k=new I;class A{validate(e){if(!e)return{success:!1,error:"WorkflowActivationFailureDetails: Expected object, got undefined object for WorkflowActivationFailureDetailsValidator"};const t=w.X$.validate(e.H_);return t.success?c.W8.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "WorkflowActivationFailureDetails"'}:t}}const E=new A;class R{validate(e){if(!e)return{success:!1,error:"AuthTokenIsMissingDetails: Expected object, got undefined object for AuthTokenIsMissingDetailsValidator"};if(void 0===e.tokenTypes)return{success:!1,error:'AuthTokenIsMissingDetails: Required field "tokenTypes" is missing'};{const t=(0,b.I)(e.tokenTypes,1,void 0,"number");if(!t.success)return t.error="AuthTokenIsMissingDetails.tokenTypes: "+t.error,t}const t=w.X$.validate(e.H_);return t.success?c.u$.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "AuthTokenIsMissingDetails"'}:t}}const O=new R;class P{validate(e){if(!e)return{success:!1,error:"NotActivatedWorkflowApology: Expected object, got undefined object for NotActivatedWorkflowApologyValidator"};if(void 0===e.reasons)return{success:!1,error:'NotActivatedWorkflowApology: Required field "reasons" is missing'};{const t=(0,b.I)(e.reasons,1,k,"{WorkflowActivationFailureReason}");if(!t.success)return t.error="NotActivatedWorkflowApology.reasons: "+t.error,t}if(void 0===e.signalPath)return{success:!1,error:'NotActivatedWorkflowApology: Required field "signalPath" is missing'};{const t=(0,b.I)(e.signalPath,1,void 0,"string");if(!t.success)return t.error="NotActivatedWorkflowApology.signalPath: "+t.error,t}if(void 0===e.annotationTypeName)return{success:!1,error:'NotActivatedWorkflowApology: Required field "annotationTypeName" is missing'};if("string"!=typeof e.annotationTypeName)return{success:!1,error:'NotActivatedWorkflowApology: Required field "annotationTypeName" is wrong type'};if(void 0!==e.scopeItemReference){const t=v.Gc.validate(e.scopeItemReference);if(!t.success)return t.error="NotActivatedWorkflowApology.scopeItemReference: "+t.error,t}if(void 0===e.errorCode)return{success:!1,error:'NotActivatedWorkflowApology: Required field "errorCode" is missing'};{const t=D.validate(e.errorCode);if(!t.success)return t.error="NotActivatedWorkflowApology.errorCode: "+t.error,t}if(void 0===e.consecutiveFailuresCount)return{success:!1,error:'NotActivatedWorkflowApology: Required field "consecutiveFailuresCount" is missing'};if("number"!=typeof e.consecutiveFailuresCount)return{success:!1,error:'NotActivatedWorkflowApology: Required field "consecutiveFailuresCount" is wrong type'};if(void 0!==e.id&&"string"!=typeof e.id)return{success:!1,error:'NotActivatedWorkflowApology: Optional field "id" is wrong type'};if(void 0!==e.ownerId&&"string"!=typeof e.ownerId)return{success:!1,error:'NotActivatedWorkflowApology: Optional field "ownerId" is wrong type'};if(void 0!==e.invalidationHash&&"string"!=typeof e.invalidationHash)return{success:!1,error:'NotActivatedWorkflowApology: Optional field "invalidationHash" is wrong type'};if(void 0!==e.M_){const t=y.uT.validate(e.M_);if(!t.success)return t.error="NotActivatedWorkflowApology.M_: "+t.error,t}if(void 0!==e.metadata){const t=y.uT.validate(e.metadata);if(!t.success)return t.error="NotActivatedWorkflowApology.metadata: "+t.error,t}const t=w.X$.validate(e.H_);return t.success?c.tX.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "NotActivatedWorkflowApology"'}:t}}const M=new P;class x{validate(e){return x.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "WorkflowExecutionErrorCode"'}}}x.validValues=new Set([r.LambdaExecutionUnhandledError,r.LambdaExecutionError,r.WorkflowExecutionTimeout,r.NetworkError,r.SignalNotGotToExecution,r.RequestTruncated,r.WorkflowWrongAnnotationType,r.SequenceOutOfOrder,r.WorkflowExecutionThrottled,r.WorkflowExecutionCancelled,r.NetworkTimeoutOrWorkflowIsBusy,r.RequiredTokenNotAvailable,r.InvalidInputQuantityForSingleItemWorkflow,r.ExceededRequestSizeLimit,r.UnknownAnnotationParent,r.AnnotationsNotArray,r.UnexpectedOutput,r.MixedOutput,r.OutputIsNotAnnotation,r.UnexpectedError,r.WorkflowNotActivated]);const D=new x;class N{validate(e){return N.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "WorkflowNotActivatedReasonCode"'}}}N.validValues=new Set([o.Unknown,o.AuthTokenIsMissing,o.UserContextIsMissing,o.SeedingNotCompleted]);const L=new N;class F{validate(e){if(!e)return{success:!1,error:"CopilotAugloopIdentityBase: Expected object, got undefined object for CopilotAugloopIdentityBaseValidator"};if(void 0===e.licenseType)return{success:!1,error:'CopilotAugloopIdentityBase: Required field "licenseType" is missing'};{const t=V.validate(e.licenseType);if(!t.success)return t.error="CopilotAugloopIdentityBase.licenseType: "+t.error,t}return void 0===e.identityToken?{success:!1,error:'CopilotAugloopIdentityBase: Required field "identityToken" is missing'}:"string"!=typeof e.identityToken?{success:!1,error:'CopilotAugloopIdentityBase: Required field "identityToken" is wrong type'}:{success:!0}}}const B=new F;class W{validate(e){if(!e)return{success:!1,error:"CheckCopilotLicenseSignalBase: Expected object, got undefined object for CheckCopilotLicenseSignalBaseValidator"};if(void 0!==e.augLoopTokenIdentities){const t=(0,b.I)(e.augLoopTokenIdentities,1,B,"{CopilotAugloopIdentityBase}");if(!t.success)return t.error="CheckCopilotLicenseSignalBase.augLoopTokenIdentities: "+t.error,t}if(void 0!==e.targetObject){const t=w.sK.validate(e.targetObject);if(!t.success)return t.error="CheckCopilotLicenseSignalBase.targetObject: "+t.error,t}if(void 0!==e.timestamp&&"number"!=typeof e.timestamp)return{success:!1,error:'CheckCopilotLicenseSignalBase: Optional field "timestamp" is wrong type'};const t=w.X$.validate(e.H_);return t.success?u.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "CheckCopilotLicenseSignalBase"'}:t}}const U=new W;class G{validate(e){return G.validValues.has(e)?{success:!0}:{success:!1,error:'Invalid value for enum "CopilotLicenseType"'}}}G.validValues=new Set([s.Unknown,s.CopilotInM365,s.CopilotPro,s.CopilotEnterprise]);const V=new G;class q{validate(e){if(!e)return{success:!1,error:"Event: Expected object, got undefined object for EventValidator"};if(void 0===e.timestamp)return{success:!1,error:'Event: Required field "timestamp" is missing'};if("number"!=typeof e.timestamp)return{success:!1,error:'Event: Required field "timestamp" is wrong type'};if(void 0===e.type)return{success:!1,error:'Event: Required field "type" is missing'};if("string"!=typeof e.type)return{success:!1,error:'Event: Required field "type" is wrong type'};const t=w.X$.validate(e.H_);return t.success?d.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Event"'}:t}}const H=new q;class j{validate(e){if(!e)return{success:!1,error:"UserCommand: Expected object, got undefined object for UserCommandValidator"};if(void 0===e.durationMs)return{success:!1,error:'UserCommand: Required field "durationMs" is missing'};if("number"!=typeof e.durationMs)return{success:!1,error:'UserCommand: Required field "durationMs" is wrong type'};if(void 0!==e.controlId&&"string"!=typeof e.controlId)return{success:!1,error:'UserCommand: Optional field "controlId" is wrong type'};if(void 0!==e.extendedMetadata){const t=w.sK.validate(e.extendedMetadata);if(!t.success)return t.error="UserCommand.extendedMetadata: "+t.error,t}if(void 0===e.timestamp)return{success:!1,error:'UserCommand: Required field "timestamp" is missing'};if("number"!=typeof e.timestamp)return{success:!1,error:'UserCommand: Required field "timestamp" is wrong type'};if(void 0===e.type)return{success:!1,error:'UserCommand: Required field "type" is missing'};if("string"!=typeof e.type)return{success:!1,error:'UserCommand: Required field "type" is wrong type'};const t=w.X$.validate(e.H_);return t.success?p.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "UserCommand"'}:t}}const z=new j;var $=n(75582);class Y{validate(e){if(!e)return{success:!1,error:"SignalWithPath: Expected object, got undefined object for SignalWithPathValidator"};if(void 0!==e.signalPath){const t=(0,b.I)(e.signalPath,1,void 0,"string");if(!t.success)return t.error="SignalWithPath.signalPath: "+t.error,t}if(void 0!==e.sourceInfo){const t=v.nx.validate(e.sourceInfo);if(!t.success)return t.error="SignalWithPath.sourceInfo: "+t.error,t}if(void 0!==e.targetObject){const t=w.sK.validate(e.targetObject);if(!t.success)return t.error="SignalWithPath.targetObject: "+t.error,t}if(void 0!==e.timestamp&&"number"!=typeof e.timestamp)return{success:!1,error:'SignalWithPath: Optional field "timestamp" is wrong type'};const t=w.X$.validate(e.H_);return t.success?h.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "SignalWithPath"'}:t}}const J=new Y;class Q{validate(e){if(!e)return{success:!1,error:"Signal: Expected object, got undefined object for SignalValidator"};if(void 0!==e.targetObject){const t=w.sK.validate(e.targetObject);if(!t.success)return t.error="Signal.targetObject: "+t.error,t}if(void 0!==e.timestamp&&"number"!=typeof e.timestamp)return{success:!1,error:'Signal: Optional field "timestamp" is wrong type'};const t=w.X$.validate(e.H_);return t.success?g.HN.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "Signal"'}:t}}const K=new Q;class X{validate(e){if(!e)return{success:!1,error:"DirtyAreaSignal: Expected object, got undefined object for DirtyAreaSignalValidator"};if(void 0!==e.targetObject){const t=w.sK.validate(e.targetObject);if(!t.success)return t.error="DirtyAreaSignal.targetObject: "+t.error,t}if(void 0!==e.timestamp&&"number"!=typeof e.timestamp)return{success:!1,error:'DirtyAreaSignal: Optional field "timestamp" is wrong type'};const t=w.X$.validate(e.H_);return t.success?g.M_.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "DirtyAreaSignal"'}:t}}const Z=new X;class ee{validate(e){if(!e)return{success:!1,error:"DirtyDocumentSignal: Expected object, got undefined object for DirtyDocumentSignalValidator"};if(void 0!==e.targetObject){const t=w.sK.validate(e.targetObject);if(!t.success)return t.error="DirtyDocumentSignal.targetObject: "+t.error,t}if(void 0!==e.timestamp&&"number"!=typeof e.timestamp)return{success:!1,error:'DirtyDocumentSignal: Optional field "timestamp" is wrong type'};const t=w.X$.validate(e.H_);return t.success?g.WJ.typeGuard(e)?{success:!0}:{success:!1,error:'Types do not match for "DirtyDocumentSignal"'}:t}}const te=new ee;var ne=n(52140),re=n(73966),oe=n(57077),se=n(25727)},73966:(e,t,n)=>{"use strict";var r,o,s,i;n.d(t,{$k:()=>r,Xm:()=>s,dY:()=>i,nU:()=>o}),function(e){e.Unknown="Unknown",e.Canvas="Canvas",e.CopilotChat="CopilotChat",e.Test="Test"}(r||(r={})),function(e){e[e.None=0]="None",e[e.Added=1]="Added",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(o||(o={})),function(e){e[e.ContentChanged=0]="ContentChanged",e[e.ContentWasEmpty=1]="ContentWasEmpty",e[e.FormattingChanged=2]="FormattingChanged",e[e.ContentWasInsideOfTheTable=3]="ContentWasInsideOfTheTable"}(s||(s={})),function(e){e[e.AddOfZeroElements=0]="AddOfZeroElements",e[e.AddOfItemsWithExtraOrMissingIds=1]="AddOfItemsWithExtraOrMissingIds",e[e.AddOfItemWithUndefinedId=2]="AddOfItemWithUndefinedId",e[e.AddOfUndefinedItem=3]="AddOfUndefinedItem",e[e.AddOfItemsWithDuplicateIds=4]="AddOfItemsWithDuplicateIds",e[e.SetHeadToNonExistingItem=5]="SetHeadToNonExistingItem",e[e.DeleteOfNonExistingItem=6]="DeleteOfNonExistingItem",e[e.UpdateOfNonExistentItem=7]="UpdateOfNonExistentItem",e[e.UpdateOfStubbedItem=8]="UpdateOfStubbedItem",e[e.MoveOfNonExistentItem=9]="MoveOfNonExistentItem",e[e.UpdateMetaDataOfNonAnnotationType=10]="UpdateMetaDataOfNonAnnotationType",e[e.SequentialyInvertedUpdate=11]="SequentialyInvertedUpdate",e[e.MoveToTheSamePath=12]="MoveToTheSamePath",e[e.UnknownOperation=13]="UnknownOperation",e[e.DeltaOfNonExistingItem=100]="DeltaOfNonExistingItem"}(i||(i={}))},57077:(e,t,n)=>{"use strict";var r;n.d(t,{N:()=>r}),function(e){e.Unknown="Unknown",e.Testing="Testing",e.CopilotSummary="Copilot Summary",e.CopilotCompose="Copilot Compose",e.Rewrite="Copilot Rewrite",e.ChatQnA="Copilot Chat Question & Answer",e.CIQ="Context IQ",e.Editor="Editor",e.Handoff="Handoff",e.ReadAloud="Read Aloud"}(r||(r={}))},25727:(e,t,n)=>{"use strict";n.d(t,{J1:()=>s,KY:()=>o,Xo:()=>r,h6:()=>i,u5:()=>a});const r=512,o=32;var s,i;!function(e){e[e.None=0]="None",e[e.HttpsGetDownloadUrl=1]="HttpsGetDownloadUrl",e[e.AlCodedLocation=2]="AlCodedLocation",e[e.Token=3]="Token"}(s||(s={})),function(e){e[e.NewDocument=0]="NewDocument",e[e.EditDocument=1]="EditDocument",e[e.ViewOnlyDocument=2]="ViewOnlyDocument"}(i||(i={}));class a{}a.lowerIndexBound=1,a.maxNumberOfRows=1048576,a.maxNumberOfColumns=16384,a.firstColumnName="A",a.lastColumnName="XFD"},79982:(e,t,n)=>{"use strict";function r(e,t,n,o){if(!Array.isArray(e))return{success:!1,error:"Expected array, got non-array"};for(const s of e)if(Array.isArray(s)){if(!(t>1))return{success:!1,error:"Array element is array when it should be "+o};{const e=r(s,t-1,n,o);if(!e.success)return e}}else{if(1!==t)return{success:!1,error:"Array element is not array when it should be"};if(void 0!==n){const e=n.validate(s);if(!e.success)return e}else if(typeof s!==o)return{success:!1,error:"Array element is wrong type"}}return{success:!0}}function o(e,t,n,r){if("object"!=typeof e)return{success:!1,error:"Expected dictionary, got non-object"};for(const s in e)if(t>1){if("object"!=typeof e[s])return{success:!1,error:"Dictionary element is not dictionary when it should be"};{const i=o(e[s],t-1,n,r);if(!i.success)return i}}else{if(1!==t)return{success:!1,error:"Dictionary element is not dictionary when it should be"};if(void 0!==n){const t=n.validate(e[s]);if(!t.success)return t}else if(typeof e[s]!==r)return{success:!1,error:"Dictionary element is wrong type"}}return{success:!0}}n.d(t,{I:()=>r,R:()=>o})},15041:(e,t,n)=>{"use strict";var r,o,s,i,a,c;n.d(t,{$O:()=>s,o2:()=>o,sP:()=>c,wM:()=>i}),function(e){e.UNKNOWN="Unknown",e.CONNECTION_RETRY="ConnectionRetry",e.CONNECTION_RETRY_FAILURE="ErrorConnectionRetryFailure",e.SPEECH_HANDLER_WS_FAILURE="ErrorSpeechHandlerWebSocketFailure",e.PROTOBUF_DESERIALIZATION_FAILURE="ErrorProtobufDeserializationFailure",e.EXPLICITLY_DISABLED="ExplicitlyDisabled",e.SPEECH_RECOGNITION_CANCELED="ErrorSpeechRecognitionCanceled"}(r||(r={})),function(e){e.INTERMITTENT="Intermittent",e.FINAL="Final"}(o||(o={})),function(e){e.NO_DICTATION="NoDictation",e.NO_COMMANDING="NoCommanding",e.NO_TOKEN="NoPfaToken"}(s||(s={})),function(e){e.version1="1",e.version2="2"}(i||(i={})),function(e){e[e.NoMatch=0]="NoMatch"}(a||(a={})),function(e){e.INTERNAL_ERROR="INTERNAL_ERROR",e.UNSUPPORTED_FILE_FORMAT="UNSUPPORTED_FILE_FORMAT",e.UPLOADING="UPLOADING",e.PROCESSING="PROCESSING",e.DELETED="DELETED",e.FILE_NOT_EXIST="FILE_NOT_EXIST",e.FILE_DECODE_ERROR="FILE_DECODE_ERROR",e.REQUEST_TIMEOUT_ERROR="REQUEST_TIMEOUT_ERROR"}(c||(c={}))},71243:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(){function e(e){this.mergeDictationSettings(e)}return e.prototype.mergeDictationSettings=function(e){var t=this;Object.keys(e).forEach((function(n){t[n]=e[n]}))},e}(),o=function(){function e(){}return Object.defineProperty(e,"dictationSettings",{get:function(){if(e._instance)return e._instance;throw new Error("Dictation Settings not initialized")},set:function(t){e._instance?e._instance.mergeDictationSettings(t):e._instance=new r(t)},enumerable:!1,configurable:!0}),e}()},92e3:(e,t,n)=>{"use strict";n.d(t,{D_:()=>a,U1:()=>l,ZF:()=>s,_K:()=>c,lM:()=>i,mh:()=>o});var r=n(48690),o=function(){function e(t){r.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_SpeechToTextFinalResult"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}(),s=function(){function e(t){r.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_SpeechToTextPartialResult"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}(),i=function(){function e(t){r.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_SpeechErrorEvent"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}(),a=(function(){function e(t){r.h.assign(e,this,t)}Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_VoiceCommandRequest"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){r.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_SpeechSessionEvent"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}()),c=function(){function e(t){r.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_SpeechQualityEvent"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}(),l=(function(){function e(t){r.h.assign(e,this,t)}Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_VoiceLatencyOutput"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()}}(),function(){function e(t){r.h.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Voice_BatchTranscriptionResult"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.typeGuard=function(t){return r.h.matchesTypesFor(t,[e.getTypeName()])},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e}())},34322:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>r}),function(e){e.Dictation="Dictation",e.Transcription="Transcription",e.ConversationTranscription="ConversationTranscription"}(r||(r={}))},26302:(e,t,n)=>{"use strict";var r,o,s,i;n.d(t,{Ff:()=>i,P_:()=>s,oJ:()=>r}),function(e){e.Bold="Word.Editing.Bold",e.CenterJustify="Word.Editing.CenterJustify",e.CreateBulletList="Word.Editing.CreateBulletList",e.CreateNumberedList="Word.Editing.CreateNumberedList",e.Delete="Word.Editing.Delete",e.Deselect="Word.Editing.Deselect",e.Exit="Command.Exit",e.ExitList="Word.Editing.ExitList",e.FullJustify="Word.Editing.FullJustify",e.Highlight="Word.Editing.Highlight",e.SetFont="Word.Editing.SetFont",e.InsertText="Word.Editing.InsertText",e.InsertBullet="Word.Editing.InsertBullet",e.InsertComment="Word.Editing.InsertComment",e.InsertEmoji="Word.Editing.InsertEmoji",e.InsertTable="Word.Editing.Table.Insert",e.DeleteTable="Word.Editing.Table.Delete",e.NavigateTable="Word.Editing.Table.Navigate",e.Navigation="Word.Editing.Navigation",e.InsertSpace="Word.Editing.InsertSpace",e.Italics="Word.Editing.Italics",e.LeftJustify="Word.Editing.LeftJustify",e.NewLine="Word.Editing.NewLine",e.NextBullet="Word.Editing.NextBullet",e.NextLine="Word.Editing.NextLine",e.Pause="Command.Pause",e.Paste="Word.Editing.Paste",e.ReadBack="Word.Editing.ReadBack",e.Redo="Word.Editing.Redo",e.RightJustify="Word.Editing.RightJustify",e.RemoveBold="Word.Editing.RemoveBold",e.RemoveItalics="Word.Editing.RemoveItalics",e.RemoveUnderline="Word.Editing.RemoveUnderline",e.RemoveHighlight="Word.Editing.RemoveHighlight",e.RemoveSuperscript="Word.Editing.RemoveSuperscript",e.RemoveStrikeThrough="Word.Editing.RemoveStrikeThrough",e.RemoveSubscript="Word.Editing.RemoveSubscript",e.RemoveFormatting="Word.Editing.RemoveFormatting",e.Quote="Word.Editing.Quote",e.Select="Word.Editing.Select",e.Superscript="Word.Editing.Superscript",e.Subscript="Word.Editing.Subscript",e.StrikeThrough="Word.Editing.StrikeThrough",e.ShowHelp="Command.ShowHelp",e.ShowCommands="Command.ShowCommand",e.Undo="Word.Editing.Undo",e.Underline="Word.Editing.Underline",e.IncreaseIndent="Word.Editing.IncreaseIndent",e.DecreaseIndent="Word.Editing.DecreaseIndent",e.Backspace="Word.Editing.Backspace",e.VoiceCommand="Command.VoiceCommand",e.Type="Command.Type",e.ShrinkFont="Word.Editing.ShrinkFont",e.GrowFont="Word.Editing.GrowFont",e.AllCaps="Word.Editing.AllCaps",e.SentenceCase="Word.Editing.SentenceCase",e.LowerCase="Word.Editing.LowerCase",e.Tab="Word.Editing.Tab",e.ZoomOut="Word.View.ZoomOut",e.ZoomIn="Word.View.ZoomIn",e.ScrollUp="Word.View.ScrollUp",e.ScrollDown="Word.View.ScrollDown",e.ShowOutline="Word.View.ShowOutline",e.PageBreak="Word.Editing.PageBreak",e.ResumeDictation="Word.Editing.ResumeDictation",e.Correction="Word.Editing.Correction",e.Style="Word.Editing.Style",e.CorrectionOption="Word.Editing.CorrectionOption",e.SpellOut="Word.Editing.SpellOut",e.ShowSuggestions="Word.Editing.ShowSuggestions",e.Send="Outlook.Send",e.Cancel="Outlook.Cancel",e.Yes="Outlook.Yes",e.AddRecipient="Outlook.AddRecipient",e.AtMention="Outlook.AtMention",e.FieldEdit="Outlook.FieldEdit",e.MoonshotAbout="Annotation.Document.About",e.MoonshotReadFromBeginning="Annotation.Document.FromBeginning",e.MoonshotKeyPoints="Annotation.Document.KeyPoints",e.MoonshotOutline="Annotation.Document.Outline",e.MoonshotReadInFull="Annotation.Document.ReadInFull",e.MoonshotSummarize="Annotation.Document.Summary",e.MoonshotMicrophoneOff="Audio.MicrophoneOff",e.MoonshotPause="Audio.Pause",e.MoonshotPlay="Audio.Play",e.MoonshotReplay="Audio.Replay",e.MoonshotSlowDown="Audio.SlowDown",e.MoonshotSpeedUp="Audio.SpeedUp",e.MoonshotReadSection="Document.Action.ReadSection",e.MoonshotRepeat="Document.Action.Repeat",e.MoonshotReview="Document.Action.Review",e.MoonshotDocumentAge="Document.Metadata.Age",e.MoonshotDocumentAuthor="Document.Metadata.Author",e.MoonshotDocumentHits="Document.Metadata.Hits",e.MoonshotDocumentLength="Document.Metadata.Length",e.MoonshotDocumentPreview="Document.Metadata.Preview",e.MoonshotDocumentTitle="Document.Metadata.Title",e.MoonshotNo="General.No",e.MoonshotYes="General.Yes",e.MoonshotIntro="intro",e.MoonshotNextDocument="Navigate.Document.Next",e.MoonshotPreviousDocument="Navigate.Document.Previous",e.ExcelIntent="ExcelIntent",e.InternalReadBack="Internal.Word.Editing.ReadBack",e.NoOp="NoOp"}(r||(r={})),new Set([r.InternalReadBack]),function(e){e.TableColumns="Word.Editing.InsertTable.TableColumns",e.TableRows="Word.Editing.InsertTable.TableRows",e.SelectionType="Word.Editing.ActOnSelection.SelectionType"}(o||(o={})),function(e){e.SpeechRecognitionStarted="SpeechRecognitionStarted",e.SpeechRecognitionStopped="SpeechRecognitionStopped",e.SpeechSessionStarted="SpeechSessionStarted",e.SpeechSessionStopped="SpeechSessionStopped"}(s||(s={})),function(e){e.MicrophoneError="ErrorAudioCaptureAsync"}(i||(i={}))},14101:(e,t,n)=>{"use strict";n.d(t,{fi:()=>s,PS:()=>a,J4:()=>i,e7:()=>c,F4:()=>g,H$:()=>h,vk:()=>C,xe:()=>m,H7:()=>S,Om:()=>u,Jq:()=>l,Yz:()=>b,QW:()=>w,Ee:()=>v,tF:()=>p,QM:()=>d,yw:()=>y,ZJ:()=>f});var r=n(37135);const o={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12};function s(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function i(e,t){return s(e,t*o.DaysInOneWeek)}function a(e,t){var n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%o.MonthInOneYear+o.MonthInOneYear)%o.MonthInOneYear&&(n=s(n,-n.getDate())),n}function c(e,t){var n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%o.MonthInOneYear+o.MonthInOneYear)%o.MonthInOneYear&&(n=s(n,-n.getDate())),n}function l(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function u(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function d(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function p(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function f(e,t){return a(e,t-e.getMonth())}function h(e,t){return!e&&!t||!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function g(e,t){return C(e)-C(t)}function m(e,t,n,i,c){void 0===c&&(c=1);var l,u=new Array,d=null;switch(i||(i=[r.ob.Monday,r.ob.Tuesday,r.ob.Wednesday,r.ob.Thursday,r.ob.Friday]),c=Math.max(c,1),t){case r.ci.Day:d=s(l=T(e),c);break;case r.ci.Week:case r.ci.WorkWeek:d=s(l=b(T(e),n),o.DaysInOneWeek);break;case r.ci.Month:d=a(l=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw new Error("Unexpected object: "+t)}var p=l;do{(t!==r.ci.WorkWeek||-1!==i.indexOf(p.getDay()))&&u.push(p),p=s(p,1)}while(!h(p,d));return u}function y(e,t){for(var n=0,r=t;n<r.length;n++)if(h(e,r[n]))return!0;return!1}function v(e,t,n,s){var i=s.getFullYear(),a=s.getMonth(),c=1,l=new Date(i,a,c),u=c+(t+o.DaysInOneWeek-1)-function(e,t){return e!==r.ob.Sunday&&t<e?t+o.DaysInOneWeek:t}(t,l.getDay()),d=new Date(i,a,u);c=d.getDate();for(var p=[],f=0;f<e;f++)p.push(w(d,t,n)),c+=o.DaysInOneWeek,d=new Date(i,a,c);return p}function w(e,t,n){switch(n){case r.zX.FirstFullWeek:return _(e,t,o.DaysInOneWeek);case r.zX.FirstFourDayWeek:return _(e,t,4);default:return function(e,t){var n=I(e)-1,r=(e.getDay()-n%o.DaysInOneWeek-t+2*o.DaysInOneWeek)%o.DaysInOneWeek;return Math.floor((n+r)/o.DaysInOneWeek+1)}(e,t)}}function b(e,t){var n=t-e.getDay();return n>0&&(n-=o.DaysInOneWeek),s(e,n)}function S(e,t){var n=(t-1>=0?t-1:o.DaysInOneWeek-1)-e.getDay();return n<0&&(n+=o.DaysInOneWeek),s(e,n)}function T(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function C(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function _(e,t,n){var s=I(e)-1,i=e.getDay()-s%o.DaysInOneWeek,a=I(new Date(e.getFullYear()-1,r.Ph.December,31))-1,c=(t-i+2*o.DaysInOneWeek)%o.DaysInOneWeek;0!==c&&c>=n&&(c-=o.DaysInOneWeek);var l=s-c;return l<0&&(0!=(c=(t-(i-=a%o.DaysInOneWeek)+2*o.DaysInOneWeek)%o.DaysInOneWeek)&&c+1>=n&&(c-=o.DaysInOneWeek),l=a-c),Math.floor(l/o.DaysInOneWeek+1)}function I(e){for(var t=e.getMonth(),n=e.getFullYear(),r=0,o=0;o<t;o++)r+=k(o+1,n);return r+e.getDate()}function k(e,t){return new Date(t,e,0).getDate()}},37135:(e,t,n)=>{"use strict";var r,o,s,i;n.d(t,{Ph:()=>o,ci:()=>i,f9:()=>a,ob:()=>r,zX:()=>s}),function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(r||(r={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(o||(o={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(s||(s={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(i||(i={}));var a=7},41602:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(93483);function o(e,t,n){void 0===n&&(n=!0);var o=!1;if(e&&t)if(n)if(e===t)o=!0;else for(o=!1;t;){var s=(0,r.P)(t);if(s===e){o=!0;break}t=s}else e.contains&&(o=e.contains(t));return o}},60552:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(88948);function o(e,t){var n=(0,r.w)(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}},88948:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(93483);function o(e,t){return e&&e!==document.body?t(e)?e:o((0,r.P)(e),t):null}},93483:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(72148);function o(e,t){return void 0===t&&(t=!0),e&&(t&&(0,r.c)(e)||e.parentNode&&e.parentNode)}},72148:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(80566);function o(e){var t;return e&&(0,r.q)(e)&&(t=e._virtual.parent),t}},80566:(e,t,n)=>{"use strict";function r(e){return e&&!!e._virtual}n.d(t,{q:()=>r})},15846:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(88948),o=n(7821);function s(e,t){var n=(0,r.w)(e,(function(e){return t===e||e.hasAttribute(o.r)}));return null!==n&&n.hasAttribute(o.r)}},7821:(e,t,n)=>{"use strict";n.d(t,{V:()=>o,r:()=>r});var r="data-portal-element";function o(e){e.setAttribute(r,"true")}},97672:(e,t,n)=>{"use strict";function r(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var s=o._virtual.children.indexOf(n);s>-1&&o._virtual.children.splice(s,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}n.d(t,{g:()=>r})},41622:(e,t,n)=>{"use strict";n.d(t,{R:()=>N});var r,o=n(98670),s=n(26166),i=n(16536),a=n(68761),c=n(60525),l=n(54212),u=n(93483),d=n(40245),p=n(87018),f=n(19328),h=n(6105),g=n(36151),m=n(76671),y=n(44395),v=n(41602),w=n(44591),b=n(15846),S=n(57622),T=n(68529),C="data-is-focusable",_="data-focuszone-id",I="tabindex",k="data-no-vertical-wrap",A="data-no-horizontal-wrap",E=999999999,R=-999999999;function O(e,t){var n,r,o,s,i,a,c;"function"==typeof MouseEvent?c=new MouseEvent("click",{ctrlKey:null===(n=t)||void 0===n?void 0:n.ctrlKey,metaKey:null===(r=t)||void 0===r?void 0:r.metaKey,shiftKey:null===(o=t)||void 0===o?void 0:o.shiftKey,altKey:null===(s=t)||void 0===s?void 0:s.altKey,bubbles:null===(i=t)||void 0===i?void 0:i.bubbles,cancelable:null===(a=t)||void 0===a?void 0:a.cancelable}):(c=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(c)}var P={},M=new Set,x=["text","number","password","email","tel","url","search"],D=!1,N=function(e){function t(t){var n=e.call(this,t)||this;return n._root=s.createRef(),n._mergedRef=(0,c.K)(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,r=n.props,o=r.onActiveElementChanged,s=r.doNotAllowFocusEventToPropagate,i=r.stopFocusPropagation,a=r.onFocusNotification,c=r.onFocus,d=r.shouldFocusInnerElementWhenReceivedFocus,p=r.defaultTabbableElement,f=n._isImmediateDescendantOfZone(e.target);if(f)t=e.target;else for(var h=e.target;h&&h!==n._root.current;){if((0,l.S0)(h)&&n._isImmediateDescendantOfZone(h)){t=h;break}h=(0,u.P)(h,D)}if(d&&e.target===n._root.current){var g=p&&"function"==typeof p&&p(n._root.current);g&&(0,l.S0)(g)?(t=g,g.focus()):(n.focus(!0),n._activeElement&&(t=null))}var m=!n._activeElement;t&&t!==n._activeElement&&((f||m)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,m&&n._updateTabIndexes()),o&&o(n._activeElement,e),(i||s)&&e.stopPropagation(),c?c(e):a&&a()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,r=[];t&&t!==n._root.current;)r.push(t),t=(0,u.P)(t,D);for(;r.length&&((t=r.pop())&&(0,l.S0)(t)&&n._setActiveElement(t,!0),!(0,l.HC)(t)););}},n._onKeyDown=function(e,t){if(!n._portalContainsElement(e.target)){var r=n.props,o=r.direction,s=r.disabled,i=r.isInnerZoneKeystroke,a=r.pagingSupportDisabled,c=r.shouldEnterInnerZone;if(!(s||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((c&&c(e)||i&&i(e))&&n._isImmediateDescendantOfZone(e.target)){var u=n._getFirstInnerZone();if(u){if(!u.focus(!0))return}else{if(!(0,l.Z5)(e.target))return;if(!n.focusElement((0,l.eX)(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case d.c.space:if(n._tryInvokeClickForFocusable(e.target,e))break;return;case d.c.left:if(o!==T.E.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusLeft(t)))break;return;case d.c.right:if(o!==T.E.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusRight(t)))break;return;case d.c.up:if(o!==T.E.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusUp()))break;return;case d.c.down:if(o!==T.E.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusDown()))break;return;case d.c.pageDown:if(!a&&n._moveFocusPaging(!0))break;return;case d.c.pageUp:if(!a&&n._moveFocusPaging(!1))break;return;case d.c.tab:if(n.props.allowTabKey||n.props.handleTabKey===T.l.all||n.props.handleTabKey===T.l.inputOnly&&n._isElementInput(e.target)){var f=!1;if(n._processingTabKey=!0,f=o!==T.E.vertical&&n._shouldWrapFocus(n._activeElement,A)?((0,p.jI)(t)?!e.shiftKey:e.shiftKey)?n._moveFocusLeft(t):n._moveFocusRight(t):e.shiftKey?n._moveFocusUp():n._moveFocusDown(),n._processingTabKey=!1,f)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case d.c.home:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var h=n._root.current&&n._root.current.firstChild;if(n._root.current&&h&&n.focusElement((0,l.eX)(n._root.current,h,!0)))break;return;case d.c.end:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var g=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement((0,l.yv)(n._root.current,g,!0,!0,!0)))break;return;case d.c.enter:if(n._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,r){var o=n._focusAlignment.left||n._focusAlignment.x||0,s=Math.floor(r.top),i=Math.floor(t.bottom),a=Math.floor(r.bottom),c=Math.floor(t.top);return e&&s>i||!e&&a<c?o>=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,k)?E:R},(0,f.f)(n),n._id=(0,h.O)("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1,n}return(0,o.C6)(t,e),t.getOuterZones=function(){return M.size},t._onKeyDownCapture=function(e){e.which===d.c.tab&&M.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(P[this._id]=this,e){this._windowElement=(0,g.z)(e);for(var n=(0,u.P)(e,D);n&&n!==this._getDocument().body&&1===n.nodeType;){if((0,l.HC)(n)){this._isInnerZone=!0;break}n=(0,u.P)(n,D)}this._isInnerZone||(M.add(this),this._windowElement&&1===M.size&&this._windowElement.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=(0,l.nA)(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete P[this._id],this._isInnerZone||(M.delete(this),this._windowElement&&0===M.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,c=t.elementType,l=t.rootProps,u=t.ariaDescribedBy,d=t.ariaLabelledBy,p=t.className,f=(0,m.G1)(this.props,m.vt),h=n||c||"div";this._evaluateFocusBeforeRender();var g=(0,a.getTheme)();return s.createElement(h,(0,o.Cl)({"aria-labelledby":d,"aria-describedby":u},f,l,{className:(0,y.A)((r||(r=(0,i.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),r),p),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,g)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(C)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=P[t.getAttribute(_)];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&(0,v.s)(this._root.current,this._activeElement)&&(0,l.S0)(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement((0,l.eX)(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement((0,l.yv)(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=(0,v.s)(e,n,!1);this._lastIndexPath=r?(0,l.Ep)(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&((0,l.HC)(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(C)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return O(n,t),!0;n=(0,u.P)(n,D)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if((0,l.HC)(e))return P[e.getAttribute(_)];for(var t=e.firstElementChild;t;){if((0,l.HC)(t))return P[t.getAttribute(_)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,s=-1,i=void 0,a=!1,c=this.props.direction===T.E.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var u=c?o.getBoundingClientRect():null;do{if(o=e?(0,l.eX)(this._root.current,o):(0,l.yv)(this._root.current,o),!c){i=o;break}if(o){var d=t(u,o.getBoundingClientRect());if(-1===d&&-1===s){i=o;break}if(d>-1&&(-1===s||d<s)&&(s=d,i=o),s>=0&&d<0)break}}while(o);if(i&&i!==this._activeElement)a=!0,this.focusElement(i);else if(this.props.isCircularNavigation&&r)return e?this.focusElement((0,l.eX)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement((0,l.yv)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var s=-1,i=Math.floor(o.top),a=Math.floor(r.bottom);return i<a?e._shouldWrapFocus(e._activeElement,k)?E:R:((-1===t&&i>=a||i===t)&&(t=i,s=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),s)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var s=-1,i=Math.floor(o.bottom),a=Math.floor(o.top),c=Math.floor(r.top);return i>c?e._shouldWrapFocus(e._activeElement,k)?E:R:((-1===t&&i<=c||a===t)&&(t=a,s=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),s)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,A);return!!this._moveFocus((0,p.jI)(e),(function(r,o){var s=-1;return((0,p.jI)(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==T.E.vertical?s=r.right-o.right:n||(s=R),s}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,A);return!!this._moveFocus(!(0,p.jI)(e),(function(r,o){var s=-1;return((0,p.jI)(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==T.E.vertical?s=o.left-r.left:n||(s=R),s}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=(0,w.Hc)(n);if(!r)return!1;var o=-1,s=void 0,i=-1,a=-1,c=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?(0,l.eX)(this._root.current,n):(0,l.yv)(this._root.current,n)){var d=n.getBoundingClientRect(),p=Math.floor(d.top),f=Math.floor(u.bottom),h=Math.floor(d.bottom),g=Math.floor(u.top),m=this._getHorizontalDistanceFromCenter(e,u,d);if(e&&p>f+c||!e&&h<g-c)break;m>-1&&(e&&p>i?(i=p,o=m,s=n):!e&&h<a?(a=h,o=m,s=n):(-1===o||m<=o)&&(o=m,s=n))}}while(n);var y=!1;if(s&&s!==this._activeElement)y=!0,this.focusElement(s),this._setFocusAlignment(s,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement((0,l.eX)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement((0,l.yv)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return y},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===T.E.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,s=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:s}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=s)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=(0,u.P)(e,D);t&&t!==this._root.current&&t!==this._getDocument().body;){if((0,l.HC)(t))return t;t=(0,u.P)(t,D)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!(0,v.s)(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!(0,l.S0)(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];(0,l.HC)(r)?"true"===r.getAttribute(C)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(I)&&r.setAttribute(I,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(I)&&r.setAttribute(I,"0"))):(r.getAttribute&&"false"===r.getAttribute(C)&&r.setAttribute(I,"-1"),(0,l.S0)(r)?this.props.disabled?r.setAttribute(I,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(I)&&r.setAttribute(I,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(I)&&r.setAttribute(I,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&x.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,s=e.readOnly;if(r||n>0&&!t&&!s||n!==o.length&&t&&!s||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||(0,l._l)(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(0,b.s)(e,this._root.current)},t.prototype._getDocument=function(){return(0,S.Y)(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:T.E.bidirectional,shouldRaiseClicks:!0},t}(s.Component)},68529:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,l:()=>o});var r,o={none:0,all:1,inputOnly:2};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(r||(r={}))},14170:(e,t,n)=>{"use strict";n.d(t,{R:()=>r.R,Es:()=>o.E,lT:()=>o.l}),(0,n(30620).v)("@fluentui/react-focus","7.18.16");var r=n(41622),o=n(68529)},60411:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=n(26166).createContext(void 0)},68344:(e,t,n)=>{"use strict";n.d(t,{N:()=>A});var r=n(26166),o=n(44395),s=n(10856),i=n(92147),a=function(e,t,n){void 0===n&&(n={});var r=!1;if(e)for(var o=0,s=Object.keys(e);o<s.length;o++){var i=s[o];if(!r){if(0===i.indexOf("--"))return e;r=!0}var c=t?t+("default"===i?"":"-"+i):"--"+i,l=e[i];l&&"object"==typeof l?a(l,c,n):n[c]=l}return n},c=(0,i.n)((function(e){var t,n,r,o,s,i,c,l,u,d,p,f,h,g,m,y,v=e.tokens;return{root:a(v),body:[{color:null===(r=null===(n=null===(t=v)||void 0===t?void 0:t.color)||void 0===n?void 0:n.body)||void 0===r?void 0:r.contentColor,background:null===(i=null===(s=null===(o=v)||void 0===o?void 0:o.color)||void 0===s?void 0:s.body)||void 0===i?void 0:i.background,fontFamily:null===(l=null===(c=v)||void 0===c?void 0:c.body)||void 0===l?void 0:l.fontFamily,fontWeight:null===(d=null===(u=v)||void 0===u?void 0:u.body)||void 0===d?void 0:d.fontWeight,fontSize:null===(f=null===(p=v)||void 0===p?void 0:p.body)||void 0===f?void 0:f.fontSize,MozOsxFontSmoothing:null===(g=null===(h=v)||void 0===h?void 0:h.body)||void 0===g?void 0:g.mozOsxFontSmoothing,WebkitFontSmoothing:null===(y=null===(m=v)||void 0===m?void 0:m.body)||void 0===y?void 0:y.webkitFontSmoothing}]}}));var l=n(98670),u=n(32305),d=n(65977),p=n(94857),f=n(60411),h=n(82144),g=function(e){var t=function(e){var t={root:e.as||"div"},n={root:"string"==typeof e.as?(0,u._)(e.as,e):(0,d.cJ)(e,["as"])};return{slots:t,slotProps:n}}(e),n=t.slots,o=t.slotProps,s=e.theme,i=e.customizerContext;return r.createElement(f.D.Provider,{value:s},r.createElement(h.E.Provider,{value:e.renderer},r.createElement(p.z.Provider,{value:i},r.createElement(n.root,(0,l.Cl)({},o.root)))))},m=n(1614),y=n(15603),v=n(6105),w=n(58624),b=new Map,S=function(e){void 0===e&&(e={});var t=(0,l.aN)(e.deepMerge||[],["style"]),n=function(e){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];for(var a=0,c=s;a<c.length;a++){var l=c[a];if(l)for(var u=0,d=Object.keys(l);u<d.length;u++){var p=d[u],f=l[p];void 0!==f&&(f&&"object"==typeof f?Array.isArray(f)?e[p]=f:(e[p]=e[p]||{},"object"!=typeof e[p]||r.isValidElement(f)||f&&"object"==typeof f&&f.hasOwnProperty("current")||-1===t.indexOf(p)?e[p]=f:n(e[p],f)):"className"===p?f&&(e[p]=(0,o.A)(e[p],f)):e[p]=f)}}return e};return n}(),T=function(e,t,n){var o,s,i,a,c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var s=o[r];"function"==typeof s?s(t):s&&(s.current=t)}}),(0,l.aN)(e));return n}(t,r.useRef(null)),u=S({ref:c,as:"div"},n,e);return s=(o=u).theme,i=(0,y.D)(),a=o.theme=r.useMemo((function(){var e,t=(0,m.z)(i,s);return t.tokens=function(e,t){var n=e.fonts,r=e.palette,o=e.semanticColors;return(0,w.h)({color:{body:{background:o.bodyBackground,contentColor:o.bodyText},brand:{background:o.primaryButtonBackground,borderColor:o.primaryButtonBorder,contentColor:o.primaryButtonText,iconColor:r.white,dividerColor:r.white,secondaryContentColor:r.white,hovered:{background:o.primaryButtonBackgroundHovered,contentColor:o.primaryButtonTextHovered,secondaryContentColor:r.white,borderColor:"var(--color-brand-borderColor)"},pressed:{background:o.primaryButtonBackgroundPressed,contentColor:o.primaryButtonTextPressed,secondaryContentColor:o.primaryButtonTextPressed,borderColor:"var(--color-brand-borderColor)",iconColor:"var(--color-brand-iconColor)"},focused:{background:"var(--color-brand-background)",borderColor:"var(--color-brand-borderColor)",contentColor:"var(--color-brand-contentColor)",iconColor:"var(--color-brand-iconColor)",secondaryContentColor:"var(--color-brand-focused-contentColor)"},disabled:{background:o.primaryButtonBackgroundDisabled,contentColor:o.buttonTextDisabled,dividerColor:r.neutralTertiaryAlt,secondaryContentColor:"var(--color-brand-disabled-contentColor)",borderColor:"var(--color-brand-disabled-background)",iconColor:"var(--color-brand-disabled-contentColor)"},checked:{background:o.primaryButtonBackgroundPressed,contentColor:o.primaryButtonTextPressed,iconColor:o.primaryButtonTextPressed},checkedHovered:{background:o.primaryButtonBackgroundPressed,contentColor:o.primaryButtonTextPressed,iconColor:o.primaryButtonTextPressed}}},body:{fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,mozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,webkitFontSmoothing:n.medium.WebkitFontSmoothing},text:{variant:{caption:{fontSize:"12px",fontWeight:"400",lineHeight:"14px"},body:{fontSize:"14px",fontWeight:"400",lineHeight:"20px"},subHeadline:{fontSize:"16px",fontWeight:"600",lineHeight:"22px"},headline:{fontSize:"20px",fontWeight:"600",lineHeight:"28px"},title3:{fontSize:"24px",fontWeight:"600",lineHeight:"32px"},title2:{fontSize:"28px",fontWeight:"600",lineHeight:"36px"},title1:{fontSize:"32px",fontWeight:"600",lineHeight:"40px"},largeTitle:{fontSize:"40px",fontWeight:"600",lineHeight:"52px"},display:{fontSize:"68px",fontWeight:"600",lineHeight:"92px"}}}},t)}(t,null===(e=s)||void 0===e?void 0:e.tokens),t.id=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var s=o[r];if(s){var i=s.id||b.get(s);i||(i=(0,v.O)(""),b.set(s,i)),n.push(i)}}return n.join("-")}(i,s),t}),[i,s]),o.customizerContext=r.useMemo((function(){return{customizations:{inCustomizerContext:!0,settings:{theme:a},scopedSettings:a.components||{}}}}),[a]),o.theme.rtl!==i.rtl&&(o.dir=o.theme.rtl?"rtl":"ltr"),{state:u,render:g}},C=n(99694),_={document:"document"},I=r.createContext({registerStyles:function(e,t){var n=t.styleCache,r=t.target;if(e&&!(e.length<1)){Array.isArray(e)||(e=[e]);var o=[],s=r||_,i=n.get(s);i||(i=new Map,n.set(s,i));for(var a=0,c=e;a<c.length;a++){var l=c[a];i.has(l)||(o.push(l),i.set(l,!0))}o.length&&t.renderStyles(o,t)}},renderStyles:function(e,t){var n=t.target;if(e.length&&n){var r=n.createElement("style");r.textContent=e.join(""),n.head.appendChild(r)}},target:"object"==typeof window?window.document:void 0,styleCache:new WeakMap}),k=n(82540),A=r.forwardRef((function(e,t){var n,i,a=T(e,t,{renderer:C.K,applyTo:"element"}),l=a.render,u=a.state;return n=u.theme.stylesheets,(i=r.useContext(I)).registerStyles(n,i),function(e){var t=c(e),n=e.className,i=e.applyTo;!function(e,t){var n,o="body"===e.applyTo,i=null===(n=(0,s.ZY)())||void 0===n?void 0:n.body;r.useEffect((function(){if(o&&i){for(var e=0,n=t;e<n.length;e++){var r=n[e];r&&i.classList.add(r)}return function(){if(o&&i)for(var e=0,n=t;e<n.length;e++){var r=n[e];r&&i.classList.remove(r)}}}}),[o,i,t])}(e,[t.root,t.body]),e.className=(0,o.A)(n,t.root,"element"===i&&t.body)}(u),(0,k.v)(u.ref),l(u)}));A.displayName="ThemeProvider"},92147:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(15603),o=n(10856),s=n(82144),i=function(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(!(e=e.get(o)))return}return e},a=function(e,t,n){for(var r=0;r<t.length-1;r++){var o=t[r],s=e.get(o);s||(s=new Map,e.set(o,s)),e=s}e.set(t[t.length-1],n)};function c(e){var t=new Map;return function(n){void 0===n&&(n={});var c=n.theme,l=n.renderer,u=(0,o.ox)(),d=(0,r.D)(),p=(0,s.M)();c=c||d||{};var f=(l=l||p).getId(),h="function"==typeof e,g=h?[f,u,c]:[f,u],m=i(t,g);if(!m){var y=h?e(c):e;m=l.renderStyles(y,{targetWindow:u,rtl:!!c.rtl}),a(t,g,m)}return m}}},99694:(e,t,n)=>{"use strict";n.d(t,{K:()=>c}),n(26166);var r=n(95876),o=n(46208),s=n(3864),i=n(88063),a=0,c={reset:function(){r.n.getInstance().onReset((function(){return a++}))},getId:function(){return a},renderStyles:function(e,t){return(0,o.L)(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return(0,s.n)(e)},renderKeyframes:function(e){return(0,i.i)(e)}}},82144:(e,t,n)=>{"use strict";n.d(t,{E:()=>s,M:()=>i});var r=n(26166),o=n(99694),s=r.createContext(o.K),i=function(){return r.useContext(s)}},15603:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(26166),o=n(24194),s=n(18817),i=n(60411),a=function(){var e=(0,r.useContext)(i.D),t=(0,o.m)(["theme"]).theme;return e||t||(0,s.a)({})}},10856:(e,t,n)=>{"use strict";n.d(t,{IF:()=>a,ZY:()=>i,_0:()=>o,ox:()=>s});var r=n(26166),o=r.createContext({window:"object"==typeof window?window:void 0}),s=function(){return r.useContext(o).window},i=function(){var e;return null===(e=r.useContext(o).window)||void 0===e?void 0:e.document},a=function(e){return r.createElement(o.Provider,{value:e},e.children)}},83345:(e,t,n)=>{"use strict";n.d(t,{IF:()=>r.IF,ZY:()=>r.ZY,_0:()=>r._0,ox:()=>r.ox});var r=n(10856)},60783:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=(0,n(18817).a)({})},38445:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},3531:(e,t,n)=>{"use strict";var r,o,s;n.d(t,{$U:()=>r,kd:()=>o,u2:()=>s}),function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(r||(r={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(o||(o={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(s||(s={}))},18817:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(38445),o=n(36544),s=n(11435),i=n(1614),a=n(11682),c=n(27145);function l(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted,l={palette:r.b,effects:o.W,fonts:s.d,spacing:a.N,isInverted:n,disableGlobalClassNames:!1,semanticColors:(0,c.b)(r.b,o.W,void 0,n,t),rtl:void 0};return(0,i.z)(l,e)}},36544:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(5409),o={elevation4:r.f.depth4,elevation8:r.f.depth8,elevation16:r.f.depth16,elevation64:r.f.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"}},5409:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}))},11435:(e,t,n)=>{"use strict";n.d(t,{a:()=>h,d:()=>d});var r,o,s,i=n(3864),a=n(99453),c=n(99230),l=n(54727),u=n(36151),d=(0,c.s)((0,l.Z)("sessionStorage"));function p(e,t,n,r){e="'"+e+"'";var o=void 0!==r?"local('"+r+"'),":"";(0,i.n)({fontFamily:e,src:o+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function f(e,t,n,r,o){void 0===r&&(r="segoeui");var s=e+"/"+n+"/"+r;p(t,s+"-light",a.BO.light,o&&o+" Light"),p(t,s+"-semilight",a.BO.semilight,o&&o+" SemiLight"),p(t,s+"-regular",a.BO.regular,o),p(t,s+"-semibold",a.BO.semibold,o&&o+" SemiBold"),p(t,s+"-bold",a.BO.bold,o&&o+" Bold")}function h(e){if(e){var t=e+"/fonts";f(t,a.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),f(t,a.Dn.Arabic,"segoeui-arabic"),f(t,a.Dn.Cyrillic,"segoeui-cyrillic"),f(t,a.Dn.EastEuropean,"segoeui-easteuropean"),f(t,a.Dn.Greek,"segoeui-greek"),f(t,a.Dn.Hebrew,"segoeui-hebrew"),f(t,a.Dn.Vietnamese,"segoeui-vietnamese"),f(t,a.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),f(t,a.bi.Selawik,"selawik","selawik"),f(t,a.Dn.Armenian,"segoeui-armenian"),f(t,a.Dn.Georgian,"segoeui-georgian"),p("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",a.BO.light),p("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",a.BO.semibold)}}h(null!=(s=null===(o=null===(r=(0,u.z)())||void 0===r?void 0:r.FabricConfig)||void 0===o?void 0:o.fontBaseUrl)?s:"https://static2.sharepointonline.com/files/fabric/assets")},99453:(e,t,n)=>{"use strict";var r,o,s,i,a;n.d(t,{BO:()=>i,Dn:()=>r,bi:()=>o,fF:()=>a,s:()=>s}),function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(e){e.Arabic="'"+r.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+r.Cyrillic+"'",e.EastEuropean="'"+r.EastEuropean+"'",e.Greek="'"+r.Greek+"'",e.Hebrew="'"+r.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+r.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+r.Vietnamese+"'",e.WestEuropean="'"+r.WestEuropean+"'",e.Armenian="'"+r.Armenian+"'",e.Georgian="'"+r.Georgian+"'"}(o||(o={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(s||(s={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(i||(i={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(a||(a={}))},99230:(e,t,n)=>{"use strict";n.d(t,{s:()=>c});var r=n(99453),o="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",s="'Segoe UI', '"+r.Dn.WestEuropean+"'",i={ar:r.bi.Arabic,bg:r.bi.Cyrillic,cs:r.bi.EastEuropean,el:r.bi.Greek,et:r.bi.EastEuropean,he:r.bi.Hebrew,hi:r.bi.Hindi,hr:r.bi.EastEuropean,hu:r.bi.EastEuropean,ja:r.bi.Japanese,kk:r.bi.EastEuropean,ko:r.bi.Korean,lt:r.bi.EastEuropean,lv:r.bi.EastEuropean,pl:r.bi.EastEuropean,ru:r.bi.Cyrillic,sk:r.bi.EastEuropean,"sr-latn":r.bi.EastEuropean,th:r.bi.Thai,tr:r.bi.EastEuropean,uk:r.bi.Cyrillic,vi:r.bi.Vietnamese,"zh-hans":r.bi.ChineseSimplified,"zh-hant":r.bi.ChineseTraditional,hy:r.bi.Armenian,ka:r.bi.Georgian};function a(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function c(e){var t=function(e){for(var t in i)if(i.hasOwnProperty(t)&&e&&0===t.indexOf(e))return i[t];return s}(e)+", "+o;return{tiny:a(r.s.mini,r.BO.regular,t),xSmall:a(r.s.xSmall,r.BO.regular,t),small:a(r.s.small,r.BO.regular,t),smallPlus:a(r.s.smallPlus,r.BO.regular,t),medium:a(r.s.medium,r.BO.regular,t),mediumPlus:a(r.s.mediumPlus,r.BO.regular,t),large:a(r.s.large,r.BO.regular,t),xLarge:a(r.s.xLarge,r.BO.semibold,t),xLargePlus:a(r.s.xLargePlus,r.BO.semibold,t),xxLarge:a(r.s.xxLarge,r.BO.semibold,t),xxLargePlus:a(r.s.xxLargePlus,r.BO.semibold,t),superLarge:a(r.s.superLarge,r.BO.semibold,t),mega:a(r.s.mega,r.BO.semibold,t)}}},1614:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var r=n(58624),o=n(27145);function s(e,t){var n,s,i,a;void 0===t&&(t={});var c=(0,r.h)({},e,t,{semanticColors:(0,o.B)(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(s=t.palette)||void 0===s?void 0:s.accent)&&(c.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var l=0,u=Object.keys(c.fonts);l<u.length;l++){var d=u[l];c.fonts[d]=(0,r.h)(c.fonts[d],t.defaultFontStyle,null===(a=null===(i=t)||void 0===i?void 0:i.fonts)||void 0===a?void 0:a[d])}return t.stylesheets&&(c.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),c}},32163:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>s,OV:()=>o,Sw:()=>r});var r,o,s,i=n(88063),a=(0,i.i)({from:{opacity:0},to:{opacity:1}}),c=(0,i.i)({from:{opacity:1},to:{opacity:0}}),l=(0,i.i)({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),u=(0,i.i)({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),d=(0,i.i)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),p=(0,i.i)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),f=(0,i.i)({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),h=(0,i.i)({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),g=(0,i.i)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),m=(0,i.i)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),y=(0,i.i)({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),v=(0,i.i)({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function w(e,t,n){return e+" "+t+" "+n}!function(e){e.duration1="100ms",e.duration2="200ms",e.duration3="300ms",e.duration4="400ms"}(r||(r={})),function(e){e.accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",e.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",e.linear="cubic-bezier(0, 0, 1, 1)",e.standard="cubic-bezier(0.8, 0, 0.2, 1)"}(o||(o={})),function(e){e.fadeIn=w(a,r.duration1,o.linear),e.fadeOut=w(c,r.duration1,o.linear),e.scaleDownIn=w(l,r.duration3,o.decelerate),e.scaleDownOut=w(u,r.duration3,o.decelerate),e.slideLeftOut=w(d,r.duration1,o.accelerate),e.slideRightOut=w(p,r.duration1,o.accelerate),e.slideLeftIn=w(f,r.duration1,o.decelerate),e.slideRightIn=w(h,r.duration1,o.decelerate),e.slideUpOut=w(g,r.duration1,o.accelerate),e.slideDownOut=w(m,r.duration1,o.accelerate),e.slideUpIn=w(y,r.duration1,o.decelerate),e.slideDownIn=w(v,r.duration1,o.decelerate)}(s||(s={}))},11682:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var r={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"}},27145:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,b:()=>o});var r=n(98670);function o(e,t,n,o,i){return void 0===i&&(i=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(s(e,t,(0,r.Cl)({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},n),o),i)}function s(e,t,n,o,s){var i,a,c;void 0===s&&(s=!1);var l={},u=e||{},d=u.white,p=u.black,f=u.themePrimary,h=u.themeDark,g=u.themeDarker,m=u.themeDarkAlt,y=u.themeLighter,v=u.neutralLight,w=u.neutralLighter,b=u.neutralDark,S=u.neutralQuaternary,T=u.neutralQuaternaryAlt,C=u.neutralPrimary,_=u.neutralSecondary,I=u.neutralSecondaryAlt,k=u.neutralTertiary,A=u.neutralTertiaryAlt,E=u.neutralLighterAlt,R=u.accent;return d&&(l.bodyBackground=d,l.bodyFrameBackground=d,l.accentButtonText=d,l.buttonBackground=d,l.primaryButtonText=d,l.primaryButtonTextHovered=d,l.primaryButtonTextPressed=d,l.inputBackground=d,l.inputForegroundChecked=d,l.listBackground=d,l.menuBackground=d,l.cardStandoutBackground=d),p&&(l.bodyTextChecked=p,l.buttonTextCheckedHovered=p),f&&(l.link=f,l.primaryButtonBackground=f,l.inputBackgroundChecked=f,l.inputIcon=f,l.inputFocusBorderAlt=f,l.menuIcon=f,l.menuHeader=f,l.accentButtonBackground=f),h&&(l.primaryButtonBackgroundPressed=h,l.inputBackgroundCheckedHovered=h,l.inputIconHovered=h),g&&(l.linkHovered=g),m&&(l.primaryButtonBackgroundHovered=m),y&&(l.inputPlaceholderBackgroundChecked=y),v&&(l.bodyBackgroundChecked=v,l.bodyFrameDivider=v,l.bodyDivider=v,l.variantBorder=v,l.buttonBackgroundCheckedHovered=v,l.buttonBackgroundPressed=v,l.listItemBackgroundChecked=v,l.listHeaderBackgroundPressed=v,l.menuItemBackgroundPressed=v,l.menuItemBackgroundChecked=v),w&&(l.bodyBackgroundHovered=w,l.buttonBackgroundHovered=w,l.buttonBackgroundDisabled=w,l.buttonBorderDisabled=w,l.primaryButtonBackgroundDisabled=w,l.disabledBackground=w,l.listItemBackgroundHovered=w,l.listHeaderBackgroundHovered=w,l.menuItemBackgroundHovered=w),S&&(l.primaryButtonTextDisabled=S,l.disabledSubtext=S),T&&(l.listItemBackgroundCheckedHovered=T),k&&(l.disabledBodyText=k,l.variantBorderHovered=(null===(i=n)||void 0===i?void 0:i.variantBorderHovered)||k,l.buttonTextDisabled=k,l.inputIconDisabled=k,l.disabledText=k),C&&(l.bodyText=C,l.actionLink=C,l.buttonText=C,l.inputBorderHovered=C,l.inputText=C,l.listText=C,l.menuItemText=C),E&&(l.bodyStandoutBackground=E,l.defaultStateBackground=E),b&&(l.actionLinkHovered=b,l.buttonTextHovered=b,l.buttonTextChecked=b,l.buttonTextPressed=b,l.inputTextHovered=b,l.menuItemTextHovered=b),_&&(l.bodySubtext=_,l.focusBorder=_,l.inputBorder=_,l.smallInputBorder=_,l.inputPlaceholderText=_),I&&(l.buttonBorder=I),A&&(l.disabledBodySubtext=A,l.disabledBorder=A,l.buttonBackgroundChecked=A,l.menuDivider=A),R&&(l.accentButtonBackground=R),(null===(a=t)||void 0===a?void 0:a.elevation4)&&(l.cardShadow=t.elevation4),!o&&(null===(c=t)||void 0===c?void 0:c.elevation8)?l.cardShadowHovered=t.elevation8:l.variantBorderHovered&&(l.cardShadowHovered="0 0 1px "+l.variantBorderHovered),(0,r.Cl)((0,r.Cl)({},l),n)}},92132:(e,t,n)=>{"use strict";n.d(t,{EQ:()=>f,hN:()=>d});var r,o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},s="undefined"==typeof window?n.g:window,i=s&&s.CSPSettings&&s.CSPSettings.nonce,a=((r=s.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(r=o(o({},r),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),r.registeredThemableStyles||(r=o(o({},r),{registeredThemableStyles:[]})),s.__themeState__=r,r),c=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,l=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()};function u(e){var t=l();e();var n=l();a.perf.duration+=n-t}function d(e,t){void 0===t&&(t=!1),u((function(){var n=Array.isArray(e)?e:function(e){var t=[];if(e){for(var n=0,r=void 0;r=c.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=c.lastIndex}t.push({rawString:e.substring(n)})}return t}(e),r=a.runState,o=r.mode,s=r.buffer,i=r.flushTimer;t||1===o?(s.push(n),i||(a.runState.flushTimer=setTimeout((function(){a.runState.flushTimer=0,u((function(){var e=a.runState.buffer.slice();a.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&p(t)}))}),0))):p(n)}))}function p(e,t){a.loadStyles?a.loadStyles(g(e).styleString,e):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=g(e),o=r.styleString,s=r.themable;n.setAttribute("data-load-themed-styles","true"),i&&n.setAttribute("nonce",i),n.appendChild(document.createTextNode(o)),a.perf.count++,t.appendChild(n);var c=document.createEvent("HTMLEvents");c.initEvent("styleinsert",!0,!1),c.args={newStyle:n},document.dispatchEvent(c);var l={styleElement:n,themableStyle:e};s?a.registeredThemableStyles.push(l):a.registeredStyles.push(l)}}(e)}function f(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(h(a.registeredStyles),a.registeredStyles=[]),3!==o&&1!==o||(h(a.registeredThemableStyles),a.registeredThemableStyles=[]),p([].concat.apply([],e)))}var o}()}function h(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function g(e){var t=a.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,s=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'.concat(r,'". Falling back to "').concat(s,'".')),o||s}return e.rawString})).join(""),themable:n}}},31545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AuthenticationHandler:()=>_,AuthenticationHandlerOptions:()=>b,BatchRequestContent:()=>s,BatchResponseContent:()=>i,ChaosHandler:()=>N,ChaosHandlerOptions:()=>M,ChaosStrategy:()=>T,Client:()=>te,CustomAuthenticationProvider:()=>J,FeatureUsageFlag:()=>S,FileUpload:()=>H,GraphClientError:()=>c,GraphError:()=>Q,GraphRequest:()=>X,HTTPMessageHandler:()=>I,LargeFileUploadTask:()=>q,MiddlewareFactory:()=>P,OneDriveLargeFileUploadTask:()=>z,PageIterator:()=>Y,Range:()=>G,RedirectHandler:()=>R,RedirectHandlerOptions:()=>E,ResponseType:()=>L,RetryHandler:()=>A,RetryHandlerOptions:()=>k,StreamUpload:()=>$,TelemetryHandler:()=>O,TelemetryHandlerOptions:()=>C,UploadResult:()=>V,getValidRangeSize:()=>j});var r,o=n(67524);!function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}));class s{static validateDependencies(e){if(0===e.size){const e=new Error("Empty requests map, Please provide at least one request.");throw e.name="Empty Requests Error",e}return(e=>{const t=e.entries();let n=t.next();for(;!n.done;){const e=n.value[1];if(void 0!==e.dependsOn&&e.dependsOn.length>0)return!1;n=t.next()}return!0})(e)||(e=>{const t=e.entries();let n=t.next();const r=n.value[1];if(void 0!==r.dependsOn&&r.dependsOn.length>0)return!1;let o=n;for(n=t.next();!n.done;){const e=n.value[1];if(void 0===e.dependsOn||1!==e.dependsOn.length||e.dependsOn[0]!==o.value[1].id)return!1;o=n,n=t.next()}return!0})(e)||(e=>{const t=e.entries();let n=t.next();const r=n.value[1];let o;if(void 0===r.dependsOn||0===r.dependsOn.length)o=r.id;else{if(1!==r.dependsOn.length)return!1;{const t=r.dependsOn[0];if(t===r.id||!e.has(t))return!1;o=t}}for(n=t.next();!n.done;){const e=n.value[1];if((void 0===e.dependsOn||0===e.dependsOn.length)&&o!==e.id)return!1;if(void 0!==e.dependsOn&&0!==e.dependsOn.length){if(1===e.dependsOn.length&&(e.id===o||e.dependsOn[0]!==o))return!1;if(e.dependsOn.length>1)return!1}n=t.next()}return!0})(e)}static getRequestData(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t={url:""},n=new RegExp("^https?://");t.url=n.test(e.url)?"/"+e.url.split(/.*?\/\/.*?\//)[1]:e.url,t.method=e.method;const o={};return e.headers.forEach(((e,t)=>{o[t]=e})),Object.keys(o).length&&(t.headers=o),e.method!==r.PATCH&&e.method!==r.POST&&e.method!==r.PUT||(t.body=yield s.getRequestBody(e)),t}))}static getRequestBody(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let t,n=!1;try{const r=e.clone();t=yield r.json(),n=!0}catch(e){}if(!n)try{if("undefined"!=typeof Blob){const n=yield e.blob(),r=new FileReader;t=yield new Promise((e=>{r.addEventListener("load",(()=>{const t=r.result,n=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$").exec(t);e(n[4])}),!1),r.readAsDataURL(n)}))}else"undefined"!=typeof Buffer&&(t=(yield e.buffer()).toString("base64"));n=!0}catch(e){}return t}))}constructor(e){if(this.requests=new Map,void 0!==e){const t=s.requestLimit;if(e.length>t){const e=new Error(`Maximum requests limit exceeded, Max allowed number of requests are ${t}`);throw e.name="Limit Exceeded Error",e}for(const t of e)this.addRequest(t)}}addRequest(e){const t=s.requestLimit;if(""===e.id){const e=new Error("Id for a request is empty, Please provide an unique id");throw e.name="Empty Id For Request",e}if(this.requests.size===t){const e=new Error(`Maximum requests limit exceeded, Max allowed number of requests are ${t}`);throw e.name="Limit Exceeded Error",e}if(this.requests.has(e.id)){const t=new Error(`Adding request with duplicate id ${e.id}, Make the id of the requests unique`);throw t.name="Duplicate RequestId Error",t}return this.requests.set(e.id,e),e.id}removeRequest(e){const t=this.requests.delete(e),n=this.requests.entries();let r=n.next();for(;!r.done;){const t=r.value[1].dependsOn;if(void 0!==t){const n=t.indexOf(e);-1!==n&&t.splice(n,1),0===t.length&&delete r.value[1].dependsOn}r=n.next()}return t}getContent(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=[],t={requests:e},n=this.requests.entries();let r=n.next();if(r.done){const e=new Error("No requests added yet, Please add at least one request.");throw e.name="Empty Payload",e}if(!s.validateDependencies(this.requests)){const e=new Error("Invalid dependency found, Dependency should be:\n1. Parallel - no individual request states a dependency in the dependsOn property.\n2. Serial - all individual requests depend on the previous individual request.\n3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.");throw e.name="Invalid Dependency",e}for(;!r.done;){const t=r.value[1],o=yield s.getRequestData(t.request);if(void 0!==o.body&&(void 0===o.headers||void 0===o.headers["content-type"])){const e=new Error(`Content-type header is not mentioned for request #${t.id}, For request having body, Content-type header should be mentioned`);throw e.name="Invalid Content-type header",e}o.id=t.id,void 0!==t.dependsOn&&t.dependsOn.length>0&&(o.dependsOn=t.dependsOn),e.push(o),r=n.next()}return t.requests=e,t}))}addDependency(e,t){if(!this.requests.has(e)){const t=new Error(`Dependent ${e} does not exists, Please check the id`);throw t.name="Invalid Dependent",t}if(void 0!==t&&!this.requests.has(t)){const e=new Error(`Dependency ${t} does not exists, Please check the id`);throw e.name="Invalid Dependency",e}if(void 0!==t){const n=this.requests.get(e);if(void 0===n.dependsOn&&(n.dependsOn=[]),-1!==n.dependsOn.indexOf(t)){const n=new Error(`Dependency ${t} is already added for the request ${e}`);throw n.name="Duplicate Dependency",n}n.dependsOn.push(t)}else{const n=this.requests.entries();let r,o=n.next();for(;!o.done&&o.value[1].id!==e;)r=o,o=n.next();if(void 0===r){const e=new Error(`Can't add dependency ${t}, There is only a dependent request in the batch`);throw e.name="Invalid Dependency Addition",e}{const t=r.value[0];if(void 0===o.value[1].dependsOn&&(o.value[1].dependsOn=[]),-1!==o.value[1].dependsOn.indexOf(t)){const n=new Error(`Dependency ${t} is already added for the request ${e}`);throw n.name="Duplicate Dependency",n}o.value[1].dependsOn.push(t)}}}removeDependency(e,t){const n=this.requests.get(e);if(void 0===n||void 0===n.dependsOn||0===n.dependsOn.length)return!1;if(void 0!==t){const e=n.dependsOn.indexOf(t);return-1!==e&&(n.dependsOn.splice(e,1),!0)}return delete n.dependsOn,!0}}s.requestLimit=20;class i{constructor(e){this.responses=new Map,this.update(e)}createResponseObject(e){const t=e.body,n={};if(n.status=e.status,void 0!==e.statusText&&(n.statusText=e.statusText),n.headers=e.headers,void 0!==n.headers&&void 0!==n.headers["Content-Type"]&&"application/json"===n.headers["Content-Type"].split(";")[0]){const e=JSON.stringify(t);return new Response(e,n)}return new Response(t,n)}update(e){this.nextLink=e["@odata.nextLink"];const t=e.responses;for(let e=0,n=t.length;e<n;e++)this.responses.set(t[e].id,this.createResponseObject(t[e]))}getResponseById(e){return this.responses.get(e)}getResponses(){return this.responses}*getResponsesIterator(){const e=this.responses.entries();let t=e.next();for(;!t.done;)yield t.value,t=e.next()}}const a=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"]);class c extends Error{static setGraphClientError(e){let t;return e instanceof Error?t=e:(t=new c,t.customError=e),t}constructor(e){super(e),Object.setPrototypeOf(this,c.prototype)}}const l=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],u=e=>{const t=e&&e.constructor&&e.constructor.name;if("Buffer"===t||"Blob"===t||"File"===t||"FormData"===t||"string"==typeof e)return e;if("ArrayBuffer"===t)e=Buffer.from(e);else if("Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"Uint8Array"===t||"Uint16Array"===t||"Uint32Array"===t||"Uint8ClampedArray"===t||"Float32Array"===t||"Float64Array"===t||"DataView"===t)e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch(e){throw new Error("Unable to stringify the content")}return e},d=e=>f(e),p=(e,t)=>(t.forEach((e=>h(e))),f(e,t)),f=(e,t=a)=>{if(-1!==(e=e.toLowerCase()).indexOf("https://")){const n=(e=e.replace("https://","")).indexOf(":"),r=e.indexOf("/");let o="";if(-1!==r)return-1!==n&&n<r?(o=e.substring(0,n),t.has(o)):(o=e.substring(0,r),t.has(o))}return!1},h=e=>{if(-1!==e.indexOf("/"))throw new c("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")};class g{constructor(e=[]){this.middlewareOptions=new Map;for(const t of e){const e=t.constructor;this.middlewareOptions.set(e,t)}}getMiddlewareOptions(e){return this.middlewareOptions.get(e)}setMiddlewareOptions(e,t){this.middlewareOptions.set(e,t)}}const m=()=>{let e="";for(let t=0;t<32;t++)8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=Math.floor(16*Math.random()).toString(16);return e},y=(e,t,n)=>{let r=null;if("undefined"!=typeof Request&&e instanceof Request)r=e.headers.get(n);else if(void 0!==t&&void 0!==t.headers)if("undefined"!=typeof Headers&&t.headers instanceof Headers)r=t.headers.get(n);else if(t.headers instanceof Array){const e=t.headers;for(let t=0,o=e.length;t<o;t++)if(e[t][0]===n){r=e[t][1];break}}else void 0!==t.headers[n]&&(r=t.headers[n]);return r},v=(e,t,n,r)=>{if("undefined"!=typeof Request&&e instanceof Request)e.headers.set(n,r);else if(void 0!==t)if(void 0===t.headers)t.headers=new Headers({[n]:r});else if("undefined"!=typeof Headers&&t.headers instanceof Headers)t.headers.set(n,r);else if(t.headers instanceof Array){let e=0;const o=t.headers.length;for(;e<o;e++){const o=t.headers[e];if(o[0]===n){o[1]=r;break}}e===o&&t.headers.push([n,r])}else Object.assign(t.headers,{[n]:r})},w=(e,t,n,r)=>{"undefined"!=typeof Request&&e instanceof Request?e.headers.append(n,r):void 0!==t&&(void 0===t.headers?t.headers=new Headers({[n]:r}):"undefined"!=typeof Headers&&t.headers instanceof Headers?t.headers.append(n,r):t.headers instanceof Array?t.headers.push([n,r]):void 0===t.headers?t.headers={[n]:r}:void 0===t.headers[n]?t.headers[n]=r:t.headers[n]+=`, ${r}`)};class b{constructor(e,t){this.authenticationProvider=e,this.authenticationProviderOptions=t}}var S,T;!function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"}(S||(S={}));class C{constructor(){this.featureUsage=S.NONE}static updateFeatureUsageFlag(e,t){let n;e.middlewareControl instanceof g?n=e.middlewareControl.getMiddlewareOptions(C):e.middlewareControl=new g,void 0===n&&(n=new C,e.middlewareControl.setMiddlewareOptions(C,n)),n.setFeatureUsage(t)}setFeatureUsage(e){this.featureUsage=this.featureUsage|e}getFeatureUsage(){return this.featureUsage.toString(16)}}class _{constructor(e){this.authenticationProvider=e}execute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t="string"==typeof e.request?e.request:e.request.url;if(d(t)||e.customHosts&&p(t,e.customHosts)){let t,n,r;e.middlewareControl instanceof g&&(t=e.middlewareControl.getMiddlewareOptions(b)),t&&(n=t.authenticationProvider,r=t.authenticationProviderOptions),n||(n=this.authenticationProvider);const o=`Bearer ${yield n.getAccessToken(r)}`;w(e.request,e.options,_.AUTHORIZATION_HEADER,o),C.updateFeatureUsageFlag(e,S.AUTHENTICATION_HANDLER_ENABLED)}else e.options.headers&&delete e.options.headers[_.AUTHORIZATION_HEADER];return yield this.nextMiddleware.execute(e)}))}setNext(e){this.nextMiddleware=e}}_.AUTHORIZATION_HEADER="Authorization";class I{execute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){e.response=yield fetch(e.request,e.options)}))}}class k{constructor(e=k.DEFAULT_DELAY,t=k.DEFAULT_MAX_RETRIES,n=k.defaultShouldRetry){if(e>k.MAX_DELAY&&t>k.MAX_MAX_RETRIES){const e=new Error(`Delay and MaxRetries should not be more than ${k.MAX_DELAY} and ${k.MAX_MAX_RETRIES}`);throw e.name="MaxLimitExceeded",e}if(e>k.MAX_DELAY){const e=new Error(`Delay should not be more than ${k.MAX_DELAY}`);throw e.name="MaxLimitExceeded",e}if(t>k.MAX_MAX_RETRIES){const e=new Error(`MaxRetries should not be more than ${k.MAX_MAX_RETRIES}`);throw e.name="MaxLimitExceeded",e}if(e<0&&t<0){const e=new Error("Delay and MaxRetries should not be negative");throw e.name="MinExpectationNotMet",e}if(e<0){const e=new Error("Delay should not be negative");throw e.name="MinExpectationNotMet",e}if(t<0){const e=new Error("MaxRetries should not be negative");throw e.name="MinExpectationNotMet",e}this.delay=Math.min(e,k.MAX_DELAY),this.maxRetries=Math.min(t,k.MAX_MAX_RETRIES),this.shouldRetry=n}getMaxDelay(){return k.MAX_DELAY}}k.DEFAULT_DELAY=3,k.DEFAULT_MAX_RETRIES=3,k.MAX_DELAY=180,k.MAX_MAX_RETRIES=10,k.defaultShouldRetry=()=>!0;class A{constructor(e=new k){this.options=e}isRetry(e){return-1!==A.RETRY_STATUS_CODES.indexOf(e.status)}isBuffered(e,t){const n="string"==typeof e?t.method:e.method;return n!==r.PUT&&n!==r.PATCH&&n!==r.POST||"application/octet-stream"!==y(e,t,"Content-Type")}getDelay(e,t,n){const r=()=>Number(Math.random().toFixed(3)),o=void 0!==e.headers?e.headers.get(A.RETRY_AFTER_HEADER):null;let s;return s=null!==o?Number.isNaN(Number(o))?Math.round((new Date(o).getTime()-Date.now())/1e3):Number(o):t>=2?this.getExponentialBackOffTime(t)+n+r():n+r(),Math.min(s,this.options.getMaxDelay()+r())}getExponentialBackOffTime(e){return Math.round(.5*(Math.pow(2,e)-1))}sleep(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=1e3*e;return new Promise((e=>setTimeout(e,t)))}))}getOptions(e){let t;return e.middlewareControl instanceof g&&(t=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),void 0===t&&(t=Object.assign(new k,this.options)),t}executeWithRetry(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(yield this.nextMiddleware.execute(e),t<n.maxRetries&&this.isRetry(e.response)&&this.isBuffered(e.request,e.options)&&n.shouldRetry(n.delay,t,e.request,e.options,e.response)){++t,v(e.request,e.options,A.RETRY_ATTEMPT_HEADER,t.toString());const r=this.getDelay(e.response,t,n.delay);return yield this.sleep(r),yield this.executeWithRetry(e,t,n)}}))}execute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.getOptions(e);return C.updateFeatureUsageFlag(e,S.RETRY_HANDLER_ENABLED),yield this.executeWithRetry(e,0,t)}))}setNext(e){this.nextMiddleware=e}}A.RETRY_STATUS_CODES=[429,503,504],A.RETRY_ATTEMPT_HEADER="Retry-Attempt",A.RETRY_AFTER_HEADER="Retry-After";class E{constructor(e=E.DEFAULT_MAX_REDIRECTS,t=E.defaultShouldRedirect){if(e>E.MAX_MAX_REDIRECTS){const e=new Error(`MaxRedirects should not be more than ${E.MAX_MAX_REDIRECTS}`);throw e.name="MaxLimitExceeded",e}if(e<0){const e=new Error("MaxRedirects should not be negative");throw e.name="MinExpectationNotMet",e}this.maxRedirects=e,this.shouldRedirect=t}}E.DEFAULT_MAX_REDIRECTS=5,E.MAX_MAX_REDIRECTS=20,E.defaultShouldRedirect=()=>!0;class R{constructor(e=new E){this.options=e}isRedirect(e){return-1!==R.REDIRECT_STATUS_CODES.indexOf(e.status)}hasLocationHeader(e){return e.headers.has(R.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(R.LOCATION_HEADER)}isRelativeURL(e){return-1===e.indexOf("://")}shouldDropAuthorizationHeader(e,t){const n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=n.exec(e);let o,s;null!==r&&(o=r[0]);const i=n.exec(t);return null!==i&&(s=i[0]),void 0!==o&&void 0!==s&&o!==s}updateRequestUrl(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){var n,r;t.request="string"==typeof t.request?e:yield(n=e,r=t.request,(0,o.__awaiter)(void 0,void 0,void 0,(function*(){const e=r.headers.get("Content-Type")?yield r.blob():yield Promise.resolve(void 0),{method:t,headers:o,referrer:s,referrerPolicy:i,mode:a,credentials:c,cache:l,redirect:u,integrity:d,keepalive:p,signal:f}=r;return new Request(n,{method:t,headers:o,body:e,referrer:s,referrerPolicy:i,mode:a,credentials:c,cache:l,redirect:u,integrity:d,keepalive:p,signal:f})})))}))}getOptions(e){let t;return e.middlewareControl instanceof g&&(t=e.middlewareControl.getMiddlewareOptions(E)),void 0===t&&(t=Object.assign(new E,this.options)),t}executeWithRedirect(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.nextMiddleware.execute(e);const o=e.response;if(t<n.maxRedirects&&this.isRedirect(o)&&this.hasLocationHeader(o)&&n.shouldRedirect(o)){if(++t,o.status===R.STATUS_CODE_SEE_OTHER)e.options.method=r.GET,delete e.options.body;else{const t=this.getLocationHeader(o);!this.isRelativeURL(t)&&this.shouldDropAuthorizationHeader(o.url,t)&&delete e.options.headers[R.AUTHORIZATION_HEADER],yield this.updateRequestUrl(t,e)}yield this.executeWithRedirect(e,t,n)}}))}execute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.getOptions(e);return e.options.redirect=R.MANUAL_REDIRECT,C.updateFeatureUsageFlag(e,S.REDIRECT_HANDLER_ENABLED),yield this.executeWithRedirect(e,0,t)}))}setNext(e){this.nextMiddleware=e}}R.REDIRECT_STATUS_CODES=[301,302,303,307,308],R.STATUS_CODE_SEE_OTHER=303,R.LOCATION_HEADER="Location",R.AUTHORIZATION_HEADER="Authorization",R.MANUAL_REDIRECT="manual";class O{execute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t="string"==typeof e.request?e.request:e.request.url;if(d(t)||e.customHosts&&p(t,e.customHosts)){let t=y(e.request,e.options,O.CLIENT_REQUEST_ID_HEADER);t||(t=m(),v(e.request,e.options,O.CLIENT_REQUEST_ID_HEADER,t));let n,r=`${O.PRODUCT_NAME}/3.0.7`;if(e.middlewareControl instanceof g&&(n=e.middlewareControl.getMiddlewareOptions(C)),n){const e=n.getFeatureUsage();r+=` (${O.FEATURE_USAGE_STRING}=${e})`}w(e.request,e.options,O.SDK_VERSION_HEADER,r)}else delete e.options.headers[O.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[O.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)}))}setNext(e){this.nextMiddleware=e}}O.CLIENT_REQUEST_ID_HEADER="client-request-id",O.SDK_VERSION_HEADER="SdkVersion",O.PRODUCT_NAME="graph-js",O.FEATURE_USAGE_STRING="featureUsage";class P{static getDefaultMiddlewareChain(e){const t=[],n=new _(e),r=new A(new k),o=new O,s=new I;if(t.push(n),t.push(r),"object"==typeof process){const e=new R(new E);t.push(e)}return t.push(o),t.push(s),t}}!function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"}(T||(T={}));class M{constructor(e=T.RANDOM,t="Some error Happened",n,r,o,s){if(this.chaosStrategy=e,this.statusCode=n,this.statusMessage=t,this.chaosPercentage=void 0!==r?r:10,this.responseBody=o,this.headers=s,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}}const x={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]},D={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"};class N{constructor(e=new M,t){this.options=e,this.manualMap=t}createResponseHeaders(e,t,n){const r=e.headers?new Headers(e.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",t),r.append("client-request-id",t),r.append("x-ms-ags-diagnostic",""),r.append("Date",n),r.append("Strict-Transport-Security",""),429===e.statusCode&&r.append("retry-after","3"),r}createResponseBody(e,t,n){if(e.responseBody)return e.responseBody;let r;return r=e.statusCode>=400?{error:{code:D[e.statusCode],message:e.statusMessage,innerError:{"request-id":t,date:n}}}:{},r}createResponse(e,t){const n=t.request,r=m(),o=new Date,s=this.createResponseHeaders(e,r,o.toString()),i=this.createResponseBody(e,r,o.toString()),a={url:n,status:e.statusCode,statusText:e.statusMessage,headers:s};t.response=new Response("string"==typeof i?i:JSON.stringify(i),a)}sendRequest(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.setStatusCode(e,t.request,t.options.method),e.chaosStrategy===T.MANUAL&&!this.nextMiddleware||Math.floor(100*Math.random())<e.chaosPercentage?this.createResponse(e,t):this.nextMiddleware&&(yield this.nextMiddleware.execute(t))}))}getRandomStatusCode(e){const t=x[e];return t[Math.floor(Math.random()*t.length)]}getRelativeURL(e){const t=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/;let n;return null!==t.exec(e)&&(n=t.exec(e)[1]),n}setStatusCode(e,t,n){if(e.chaosStrategy===T.MANUAL){if(void 0===e.statusCode){const r=this.getRelativeURL(t);void 0!==this.manualMap.get(r)?void 0!==this.manualMap.get(r).get(n)&&(e.statusCode=this.manualMap.get(r).get(n)):this.manualMap.forEach(((t,o)=>{new RegExp(o+"$").test(r)&&void 0!==this.manualMap.get(o).get(n)&&(e.statusCode=this.manualMap.get(o).get(n))}))}}else e.statusCode=this.getRandomStatusCode(n)}getOptions(e){let t;return e.middlewareControl instanceof g&&(t=e.middlewareControl.getMiddlewareOptions(M)),void 0===t&&(t=Object.assign(new M,this.options)),t}execute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.getOptions(e);return yield this.sendRequest(t,e)}))}setNext(e){this.nextMiddleware=e}}var L,F,B,W;!function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"}(L||(L={})),function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"}(F||(F={})),function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"}(B||(B={})),function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"}(W||(W={}));class U{static parseDocumentResponse(e,t){return"undefined"!=typeof DOMParser?new Promise(((n,r)=>{e.text().then((e=>{try{const r=(new DOMParser).parseFromString(e,t);n(r)}catch(e){r(e)}}))})):Promise.resolve(e.body)}static convertResponse(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(204===e.status)return Promise.resolve();let n;const r=e.headers.get("Content-type");switch(t){case L.ARRAYBUFFER:n=yield e.arrayBuffer();break;case L.BLOB:n=yield e.blob();break;case L.DOCUMENT:n=yield U.parseDocumentResponse(e,F.TEXT_XML);break;case L.JSON:n=yield e.json();break;case L.STREAM:n=yield Promise.resolve(e.body);break;case L.TEXT:n=yield e.text();break;default:if(null!==r){const t=r.split(";")[0];n=new RegExp(W.DOCUMENT).test(t)?yield U.parseDocumentResponse(e,t):new RegExp(W.IMAGE).test(t)?e.blob():t===B.TEXT_PLAIN?yield e.text():t===B.APPLICATION_JSON?yield e.json():Promise.resolve(e.body)}else n=Promise.resolve(e.body)}return n}))}static getResponse(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(t===L.RAW)return Promise.resolve(e);{const r=yield U.convertResponse(e,t);if(!e.ok)throw r;if("function"!=typeof n)return r;n(null,r)}}))}}class G{constructor(e=-1,t=-1){this.minValue=e,this.maxValue=t}}class V{get location(){return this._location}set location(e){this._location=e}get responseBody(){return this._responseBody}set responseBody(e){this._responseBody=e}constructor(e,t){this._location=t,this._responseBody=e}static CreateUploadResult(e,t){return new V(e,t.get("location"))}}class q{static createUploadSession(e,t,n,r={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield e.api(t).headers(r).post(n);return{url:o.uploadUrl,expiry:new Date(o.expirationDateTime),isCancelled:!1}}))}constructor(e,t,n,r={}){if(this.DEFAULT_FILE_SIZE=5242880,this.client=e,!t.sliceFile)throw new c("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=t,this.file=t,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=n,this.nextRange=new G(0,this.options.rangeSize-1)}parseRange(e){const t=e[0];if(void 0===t||""===t)return new G;const n=t.split("-"),r=parseInt(n[0],10);let o=parseInt(n[1],10);return Number.isNaN(o)&&(o=this.file.size-1),new G(r,o)}updateTaskStatus(e){this.uploadSession.expiry=new Date(e.expirationDateTime),this.nextRange=this.parseRange(e.nextExpectedRanges)}getNextRange(){if(-1===this.nextRange.minValue)return this.nextRange;const e=this.nextRange.minValue;let t=e+this.options.rangeSize-1;return t>=this.file.size&&(t=this.file.size-1),new G(e,t)}sliceFile(e){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(e.minValue,e.maxValue+1);throw new c("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")}upload(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=this.options&&this.options.uploadEventHandlers;for(;!this.uploadSession.isCancelled;){const t=this.getNextRange();if(-1===t.maxValue){const e=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file");throw e.name="Invalid Session",e}const n=yield this.file.sliceFile(t),r=yield this.uploadSliceGetRawResponse(n,t,this.file.size);if(!r)throw new c("Something went wrong! Large file upload slice response is null.");const o=yield U.getResponse(r);if(201===r.status||200===r.status&&o.id)return this.reportProgress(e,t),V.CreateUploadResult(o,r.headers);const s={expirationDateTime:o.expirationDateTime||o.ExpirationDateTime,nextExpectedRanges:o.NextExpectedRanges||o.nextExpectedRanges};this.updateTaskStatus(s),this.reportProgress(e,t)}}))}reportProgress(e,t){e&&e.progress&&e.progress(t,e.extraCallbackParam)}uploadSlice(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.client.api(this.uploadSession.url).headers({"Content-Length":""+(t.maxValue-t.minValue+1),"Content-Range":`bytes ${t.minValue}-${t.maxValue}/${n}`,"Content-Type":"application/octet-stream"}).put(e)}))}uploadSliceGetRawResponse(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.client.api(this.uploadSession.url).headers({"Content-Length":""+(t.maxValue-t.minValue+1),"Content-Range":`bytes ${t.minValue}-${t.maxValue}/${n}`,"Content-Type":"application/octet-stream"}).responseType(L.RAW).put(e)}))}cancel(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.client.api(this.uploadSession.url).responseType(L.RAW).delete();return 204===e.status&&(this.uploadSession.isCancelled=!0),e}))}getStatus(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.client.api(this.uploadSession.url).get();return this.updateTaskStatus(e),e}))}resume(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.getStatus(),yield this.upload()}))}getUploadSession(){return this.uploadSession}}class H{constructor(e,t,n){if(this.content=e,this.name=t,this.size=n,!e||!t||!n)throw new c("Please provide the upload content, name of the file and size of the file")}sliceFile(e){return this.content.slice(e.minValue,e.maxValue+1)}}const j=(e=5242880)=>{const t=62914560;return e>t&&(e=t),(n=e)>327680&&(n=320*Math.floor(n/327680)*1024),n;var n};class z extends q{static constructCreateSessionUrl(e,t=z.DEFAULT_UPLOAD_PATH){return e=e.trim(),""===(t=t.trim())&&(t="/"),"/"!==t[0]&&(t=`/${t}`),"/"!==t[t.length-1]&&(t=`${t}/`),`/me/drive/root:${t.split("/").map((e=>encodeURIComponent(e))).join("/")}${encodeURIComponent(e)}:/createUploadSession`}static getFileInfo(e,t){let n,r;if("undefined"!=typeof Blob&&e instanceof Blob)n=new File([e],t),r=n.size;else if("undefined"!=typeof File&&e instanceof File)n=e,r=n.size;else if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array){const t=e;r=t.byteLength,n=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}return{content:n,size:r}}static create(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(!e||!t||!n)throw new c("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");const r=n.fileName,o=z.getFileInfo(t,r),s=new H(o.content,r,o.size);return this.createTaskWithFileObject(e,s,n)}))}static createTaskWithFileObject(e,t,n){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(!e||!t||!n)throw new c("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");const r=n.uploadSessionURL?n.uploadSessionURL:z.constructCreateSessionUrl(n.fileName,n.path),o={fileName:n.fileName,fileDescription:n.fileDescription,conflictBehavior:n.conflictBehavior},s=yield z.createUploadSession(e,r,o),i=j(n.rangeSize);return new z(e,t,s,{rangeSize:i,uploadEventHandlers:n.uploadEventHandlers})}))}static createUploadSession(e,t,n){const r=Object.create(null,{createUploadSession:{get:()=>super.createUploadSession}});return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o={item:{"@microsoft.graph.conflictBehavior":(null==n?void 0:n.conflictBehavior)||"rename",name:null==n?void 0:n.fileName,description:null==n?void 0:n.fileDescription}};return r.createUploadSession.call(this,e,t,o)}))}constructor(e,t,n,r){super(e,t,n,r)}commit(e,t="rename"){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const n={name:this.file.name,"@microsoft.graph.conflictBehavior":t,"@microsoft.graph.sourceUrl":this.uploadSession.url};return yield this.client.api(e).put(n)}))}}z.DEFAULT_UPLOAD_PATH="/";class ${constructor(e,t,n){if(this.content=e,this.name=t,this.size=n,!e||!t||!n)throw new c("Please provide the Readable Stream content, name of the file and size of the file")}sliceFile(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let t=e.maxValue-e.minValue+1;const n=[];if(this.previousSlice){if(e.minValue<this.previousSlice.range.minValue)throw new c("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(e.minValue<this.previousSlice.range.maxValue){const r=this.previousSlice.range.minValue,o=this.previousSlice.range.maxValue;if(e.minValue===r&&e.maxValue===o)return this.previousSlice.fileSlice;if(e.maxValue===o)return this.previousSlice.fileSlice.slice(e.minValue,e.maxValue+1);n.push(this.previousSlice.fileSlice.slice(e.minValue,o+1)),t=e.maxValue-o}}if(!this.content||!this.content.readable)throw new c("Stream is not readable.");this.content.readableLength>=t?n.push(this.content.read(t)):n.push(yield this.readNBytesFromStream(t));const r=Buffer.concat(n);return this.previousSlice={fileSlice:r,range:e},r}))}readNBytesFromStream(e){return new Promise(((t,n)=>{const r=[];let o=e,s=0;this.content.on("end",(()=>{if(o>0)return n(new c("Stream ended before reading required range size"))})),this.content.on("readable",(()=>{let i;for(;s<e&&null!==(i=this.content.read(o));)s+=i.length,r.push(i),o>0&&(o=e-s);return s===e?t(Buffer.concat(r)):this.content&&this.content.readable?void 0:n(new c("Error encountered while reading the stream during the upload"))}))}))}}class Y{constructor(e,t,n,r){this.client=e,this.collection=t.value,this.nextLink=t["@odata.nextLink"],this.deltaLink=t["@odata.deltaLink"],this.callback=n,this.cursor=0,this.complete=!1,this.requestOptions=r}iterationHelper(){if(void 0===this.collection)return!1;let e=!0;for(;e&&this.cursor<this.collection.length;){const t=this.collection[this.cursor];e=this.callback(t),this.cursor++}return e}fetchAndUpdateNextPageData(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=this.client.api(this.nextLink);this.requestOptions&&(this.requestOptions.headers&&(e=e.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(e=e.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(e=e.options(this.requestOptions.options)));const t=yield e.get();this.collection=t.value,this.cursor=0,this.nextLink=t["@odata.nextLink"],this.deltaLink=t["@odata.deltaLink"]}))}getDeltaLink(){return this.deltaLink}iterate(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=this.iterationHelper();for(;e;)void 0!==this.nextLink?(yield this.fetchAndUpdateNextPageData(),e=this.iterationHelper()):e=!1;void 0===this.nextLink&&this.cursor>=this.collection.length&&(this.complete=!0)}))}resume(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return this.iterate()}))}isComplete(){return this.complete}}class J{constructor(e){this.provider=e}getAccessToken(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{this.provider(((n,r)=>(0,o.__awaiter)(this,void 0,void 0,(function*(){if(r)e(r);else{n||(n=new c("Access token is undefined or empty.\t\t\t\t\t\tPlease provide a valid token.\t\t\t\t\t\tFor more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md"));const e=yield c.setGraphClientError(n);t(e)}}))))}))}))}}class Q extends Error{constructor(e=-1,t,n){super(t||n&&n.message),Object.setPrototypeOf(this,Q.prototype),this.statusCode=e,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=n?n.stack:this.stack}}class K{static constructError(e,t,n){const r=new Q(t,"",e);return void 0!==e.name&&(r.code=e.name),r.body=e.toString(),r.date=new Date,r.headers=null==n?void 0:n.headers,r}static constructErrorFromResponse(e,t,n){const r=e.error,o=new Q(t,r.message);return o.code=r.code,void 0!==r.innerError&&(o.requestId=r.innerError["request-id"],o.date=new Date(r.innerError.date)),o.body=JSON.stringify(r),o.headers=null==n?void 0:n.headers,o}static getError(e=null,t=-1,n,r){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o;if(e&&e.error?o=K.constructErrorFromResponse(e,t,r):e instanceof Error?o=K.constructError(e,t,r):(o=new Q(t),o.body=e),"function"!=typeof n)return o;n(o,null)}))}}class X{constructor(e,t,n){this.parsePath=e=>{if(-1!==e.indexOf("https://")){const t=(e=e.replace("https://","")).indexOf("/");-1!==t&&(this.urlComponents.host="https://"+e.substring(0,t),e=e.substring(t+1,e.length));const n=e.indexOf("/");-1!==n&&(this.urlComponents.version=e.substring(0,n),e=e.substring(n+1,e.length))}"/"===e.charAt(0)&&(e=e.substr(1));const t=e.indexOf("?");if(-1===t)this.urlComponents.path=e;else{this.urlComponents.path=e.substr(0,t);const n=e.substring(t+1,e.length).split("&");for(const e of n)this.parseQueryParameter(e)}},this.httpClient=e,this.config=t,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}addCsvQueryParameter(e,t,n){this.urlComponents.oDataQueryParams[e]=this.urlComponents.oDataQueryParams[e]?this.urlComponents.oDataQueryParams[e]+",":"";let r=[];n.length>1&&"string"==typeof t?r=Array.prototype.slice.call(n):"string"==typeof t?r.push(t):r=r.concat(t),this.urlComponents.oDataQueryParams[e]+=r.join(",")}buildFullUrl(){const e=(e=>{const t=e=>e.replace(/^\/+/,"");return Array.prototype.slice.call(e).reduce(((e,n)=>{return[(r=e,r.replace(/\/+$/,"")),t(n)].join("/");var r}))})([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(e),e}createQueryString(){const e=this.urlComponents,t=[];if(0!==Object.keys(e.oDataQueryParams).length)for(const n in e.oDataQueryParams)Object.prototype.hasOwnProperty.call(e.oDataQueryParams,n)&&t.push(n+"="+e.oDataQueryParams[n]);if(0!==Object.keys(e.otherURLQueryParams).length)for(const n in e.otherURLQueryParams)Object.prototype.hasOwnProperty.call(e.otherURLQueryParams,n)&&t.push(n+"="+e.otherURLQueryParams[n]);if(0!==e.otherURLQueryOptions.length)for(const n of e.otherURLQueryOptions)t.push(n);return t.length>0?"?"+t.join("&"):""}parseQueryParameter(e){if("string"==typeof e)if("?"===e.charAt(0)&&(e=e.substring(1)),-1!==e.indexOf("&")){const t=e.split("&");for(const e of t)this.parseQueryParamenterString(e)}else this.parseQueryParamenterString(e);else if(e.constructor===Object)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setURLComponentsQueryParamater(t,e[t]);return this}parseQueryParamenterString(e){if(this.isValidQueryKeyValuePair(e)){const t=e.indexOf("="),n=e.substring(0,t),r=e.substring(t+1);this.setURLComponentsQueryParamater(n,r)}else this.urlComponents.otherURLQueryOptions.push(e)}setURLComponentsQueryParamater(e,t){if(-1!==l.indexOf(e)){const n=this.urlComponents.oDataQueryParams[e],r=n&&("$expand"===e||"$select"===e||"$orderby"===e);this.urlComponents.oDataQueryParams[e]=r?n+","+t:t}else this.urlComponents.otherURLQueryParams[e]=t}isValidQueryKeyValuePair(e){const t=e.indexOf("=");return-1!==t&&!(-1!==e.indexOf("(")&&e.indexOf("(")<t)}updateRequestOptions(e){const t=Object.assign({},e.headers);if(void 0!==this.config.fetchOptions){const t=Object.assign({},this.config.fetchOptions);Object.assign(e,t),void 0!==typeof this.config.fetchOptions.headers&&(e.headers=Object.assign({},this.config.fetchOptions.headers))}Object.assign(e,this._options),void 0!==e.headers&&Object.assign(t,e.headers),Object.assign(t,this._headers),e.headers=t}send(e,t,n){var r;return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o;const s=new g(this._middlewareOptions);this.updateRequestOptions(t);const i=null===(r=this.config)||void 0===r?void 0:r.customHosts;try{return o=(yield this.httpClient.sendRequest({request:e,options:t,middlewareControl:s,customHosts:i})).response,yield U.getResponse(o,this._responseType,n)}catch(e){if(e instanceof c)throw e;let t;throw o&&(t=o.status),yield K.getError(e,t,n,o)}}))}setHeaderContentType(){if(!this._headers)return void this.header("Content-Type","application/json");const e=Object.keys(this._headers);for(const t of e)if("content-type"===t.toLowerCase())return;this.header("Content-Type","application/json")}header(e,t){return this._headers[e]=t,this}headers(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this._headers[t]=e[t]);return this}option(e,t){return this._options[e]=t,this}options(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this._options[t]=e[t]);return this}middlewareOptions(e){return this._middlewareOptions=e,this}version(e){return this.urlComponents.version=e,this}responseType(e){return this._responseType=e,this}select(e){return this.addCsvQueryParameter("$select",e,arguments),this}expand(e){return this.addCsvQueryParameter("$expand",e,arguments),this}orderby(e){return this.addCsvQueryParameter("$orderby",e,arguments),this}filter(e){return this.urlComponents.oDataQueryParams.$filter=e,this}search(e){return this.urlComponents.oDataQueryParams.$search=e,this}top(e){return this.urlComponents.oDataQueryParams.$top=e,this}skip(e){return this.urlComponents.oDataQueryParams.$skip=e,this}skipToken(e){return this.urlComponents.oDataQueryParams.$skipToken=e,this}count(e=!0){return this.urlComponents.oDataQueryParams.$count=e.toString(),this}query(e){return this.parseQueryParameter(e)}get(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.buildFullUrl(),n={method:r.GET};return yield this.send(t,n,e)}))}post(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const n=this.buildFullUrl(),o={method:r.POST,body:u(e)};return"FormData"===(e&&e.constructor&&e.constructor.name)?o.headers={}:(this.setHeaderContentType(),o.headers=this._headers),yield this.send(n,o,t)}))}create(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.post(e,t)}))}put(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const n=this.buildFullUrl();this.setHeaderContentType();const o={method:r.PUT,body:u(e)};return yield this.send(n,o,t)}))}patch(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const n=this.buildFullUrl();this.setHeaderContentType();const o={method:r.PATCH,body:u(e)};return yield this.send(n,o,t)}))}update(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.patch(e,t)}))}delete(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.buildFullUrl(),n={method:r.DELETE};return yield this.send(t,n,e)}))}del(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.delete(e)}))}getStream(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.buildFullUrl(),n={method:r.GET};return this.responseType(L.STREAM),yield this.send(t,n,e)}))}putStream(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const n=this.buildFullUrl(),o={method:r.PUT,headers:{"Content-Type":"application/octet-stream"},body:e};return yield this.send(n,o,t)}))}}class Z{constructor(...e){if(!e||!e.length){const e=new Error;throw e.name="InvalidMiddlewareChain",e.message="Please provide a default middleware chain or custom middleware chain",e}this.setMiddleware(...e)}setMiddleware(...e){e.length>1?this.parseMiddleWareArray(e):this.middleware=e[0]}parseMiddleWareArray(e){e.forEach(((t,n)=>{n<e.length-1&&t.setNext(e[n+1])})),this.middleware=e[0]}sendRequest(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if("string"==typeof e.request&&void 0===e.options){const e=new Error;throw e.name="InvalidRequestOptions",e.message="Unable to execute the middleware, Please provide valid options for a request",e}return yield this.middleware.execute(e),e}))}}class ee{static createWithAuthenticationProvider(e){const t=new _(e),n=new A(new k),r=new O,o=new I;if(t.setNext(n),"object"==typeof process){const e=new R(new E);n.setNext(e),e.setNext(r)}else n.setNext(r);return r.setNext(o),ee.createWithMiddleware(t)}static createWithMiddleware(...e){return new Z(...e)}}class te{static init(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="authProvider"===n?new J(e[n]):e[n]);return te.initWithMiddleware(t)}static initWithMiddleware(e){return new te(e)}constructor(e){this.config={baseUrl:"https://graph.microsoft.com/",debugLogging:!1,defaultVersion:"v1.0"},(()=>{if("undefined"==typeof Promise&&"undefined"==typeof fetch){const e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}if("undefined"==typeof Promise){const e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}if("undefined"==typeof fetch){const e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}})();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.config[t]=e[t]);let t;if(void 0!==e.authProvider&&void 0!==e.middleware){const e=new Error;throw e.name="AmbiguityInInitialization",e.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",e}if(void 0!==e.authProvider)t=ee.createWithAuthenticationProvider(e.authProvider);else{if(void 0===e.middleware){const e=new Error;throw e.name="InvalidMiddlewareChain",e.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",e}t=new Z(...[].concat(e.middleware))}this.httpClient=t}api(e){return new X(this.httpClient,this.config,e)}}},73172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAuthenticationProvider=void 0;var r=n(67524),o=n(63465),s=function(){function e(e){this.provider=e}return e.prototype.getAccessToken=function(){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(t){return[2,new Promise((function(t,n){e.provider((function(s,i){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(r){switch(r.label){case 0:return i?(t(i),[3,3]):[3,1];case 1:return s||(s=new o.GraphClientError("Access token is undefined or empty.\t\t\t\t\t\tPlease provide a valid token.\t\t\t\t\t\tFor more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md")),[4,o.GraphClientError.setGraphClientError(s)];case 2:e=r.sent(),n(e),r.label=3;case 3:return[2]}}))}))}))}))]}))}))},e}();t.CustomAuthenticationProvider=s},63465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphClientError=void 0;var r=n(67524),o=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return r.__extends(t,e),t.setGraphClientError=function(e){var n;return e instanceof Error?n=e:(n=new t).customError=e,n},t}(Error);t.GraphClientError=o},96675:(e,t,n)=>{"use strict";var r;n.d(t,{q:()=>c}),function(e){var t,n=0;e.getNext=function(){return void 0===t&&(t=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=[],n=0;n<22;n++)t.push(e.charAt(Math.floor(64*Math.random())));return t.join("")}()),new r(t,++n)},e.getNextChild=function(e){return new r(e.getString(),++e.nextChild)};var r=function(){function e(e,t){this.base=e,this.id=t,this.nextChild=0}return e.prototype.getString=function(){return this.base+"."+this.id},e}();e.CV=r}(r||(r={}));var o=n(21681),s=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))},i=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},a=function(){return 1e3*Date.now()};"object"==typeof window&&"object"==typeof window.performance&&"now"in window.performance&&(a=function(){return 1e3*Math.floor(window.performance.now())});var c=function(){function e(e,t,n){this._optionalEventFlags={},this._ended=!1,this._telemetryLogger=e,this._activityName=t,this._cv=n?r.getNextChild(n._cv):r.getNext(),this._dataFields=[],this._success=void 0,this._startTime=a()}return e.createNew=function(t,n){return new e(t,n)},e.prototype.createChildActivity=function(t){return new e(this._telemetryLogger,t,this)},e.prototype.setEventFlags=function(e){this._optionalEventFlags=e},e.prototype.addDataField=function(e){this._dataFields.push(e)},e.prototype.addDataFields=function(e){var t;(t=this._dataFields).push.apply(t,e)},e.prototype.setSuccess=function(e){this._success=e},e.prototype.setResult=function(e,t,n){this._result={code:e,type:t,tag:n}},e.prototype.endNow=function(){if(!this._ended){void 0===this._success&&void 0===this._result&&(0,o.wC)(o.$b.Warning,o.b7.Core,(function(){return"Activity does not have success or result set"}));var e=a()-this._startTime;this._ended=!0;var t={duration:e,count:1,aggMode:0,cV:this._cv.getString(),success:this._success,result:this._result};return this._telemetryLogger.sendActivity(this._activityName,t,this._dataFields,this._optionalEventFlags)}(0,o.wC)(o.$b.Error,o.b7.Core,(function(){return"Activity has already ended"}))},e.prototype.executeAsync=function(e){return s(this,void 0,void 0,(function(){var t=this;return i(this,(function(n){return[2,e(this).then((function(e){return t.endNow(),e})).catch((function(e){throw t.endNow(),e}))]}))}))},e.prototype.executeSync=function(e){try{var t=e(this);return this.endNow(),t}catch(e){throw this.endNow(),e}},e.prototype.executeChildActivityAsync=function(e,t){return s(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.createChildActivity(e).executeAsync(t)]}))}))},e.prototype.executeChildActivitySync=function(e,t){return this.createChildActivity(e).executeSync(t)},e}()},82101:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(30227);function o(e,t,n){e.push((0,r.m9)("zC."+t,n))}},96550:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(82101);function o(e,t,n){var o=n.map((function(t){return{name:e+"."+t.name,value:t.value,dataType:t.dataType}}));return(0,r.w)(o,e,t),o}},9751:(e,t,n)=>{"use strict";var r;n.d(t,{p:()=>r}),function(e){e[e.EssentialServiceMetadata=1]="EssentialServiceMetadata",e[e.AccountData=2]="AccountData",e[e.SystemMetadata=4]="SystemMetadata",e[e.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",e[e.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",e[e.CustomerContent=32]="CustomerContent",e[e.AccessControl=64]="AccessControl"}(r||(r={}))},54243:()=>{},30227:(e,t,n)=>{"use strict";n.d(t,{LK:()=>s,Ug:()=>i,ip:()=>a,k:()=>l,m9:()=>c});var r=n(37435),o=n(9751);function s(e,t){return{name:e,dataType:r.b.Boolean,value:t,classification:o.p.SystemMetadata}}function i(e,t){return{name:e,dataType:r.b.Int64,value:t,classification:o.p.SystemMetadata}}function a(e,t){return{name:e,dataType:r.b.Double,value:t,classification:o.p.SystemMetadata}}function c(e,t){return{name:e,dataType:r.b.String,value:t,classification:o.p.SystemMetadata}}function l(e,t){return{name:e,dataType:r.b.Guid,value:t,classification:o.p.SystemMetadata}}},37435:(e,t,n)=>{"use strict";var r;n.d(t,{b:()=>r}),function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.Int64=2]="Int64",e[e.Double=3]="Double",e[e.Guid=4]="Guid"}(r||(r={}))},75255:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var r=function(){function e(){this._listeners=[]}return e.prototype.fireEvent=function(e){this._listeners.forEach((function(t){return t(e)}))},e.prototype.addListener=function(e){e&&this._listeners.push(e)},e.prototype.removeListener=function(e){this._listeners=this._listeners.filter((function(t){return t!==e}))},e.prototype.getListenerCount=function(){return this._listeners.length},e}()},97131:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(81701),o=n(21681);function s(e){var t={costPriority:r.Mx.Normal,samplingPolicy:r.A2.Measure,persistencePriority:r.qu.Normal,dataCategories:r.b5.NotSet,diagnosticLevel:r.EP.FullEvent};return e.eventFlags&&e.eventFlags.dataCategories||(0,o.wC)(o.$b.Error,o.b7.Core,(function(){return"Event is missing DataCategories event flag"})),e.eventFlags?(e.eventFlags.costPriority&&(t.costPriority=e.eventFlags.costPriority),e.eventFlags.samplingPolicy&&(t.samplingPolicy=e.eventFlags.samplingPolicy),e.eventFlags.persistencePriority&&(t.persistencePriority=e.eventFlags.persistencePriority),e.eventFlags.dataCategories&&(t.dataCategories=e.eventFlags.dataCategories),e.eventFlags.diagnosticLevel&&(t.diagnosticLevel=e.eventFlags.diagnosticLevel),t):t}},81701:(e,t,n)=>{"use strict";var r,o,s,i,a;n.d(t,{A2:()=>r,EP:()=>a,Mx:()=>s,b5:()=>i,qu:()=>o}),function(e){e[e.NotSet=0]="NotSet",e[e.Measure=1]="Measure",e[e.Diagnostics=2]="Diagnostics",e[e.CriticalBusinessImpact=191]="CriticalBusinessImpact",e[e.CriticalCensus=192]="CriticalCensus",e[e.CriticalExperimentation=193]="CriticalExperimentation",e[e.CriticalUsage=194]="CriticalUsage"}(r||(r={})),function(e){e[e.NotSet=0]="NotSet",e[e.Normal=1]="Normal",e[e.High=2]="High"}(o||(o={})),function(e){e[e.NotSet=0]="NotSet",e[e.Normal=1]="Normal",e[e.High=2]="High"}(s||(s={})),function(e){e[e.NotSet=0]="NotSet",e[e.SoftwareSetup=1]="SoftwareSetup",e[e.ProductServiceUsage=2]="ProductServiceUsage",e[e.ProductServicePerformance=4]="ProductServicePerformance",e[e.DeviceConfiguration=8]="DeviceConfiguration",e[e.InkingTypingSpeech=16]="InkingTypingSpeech"}(i||(i={})),function(e){e[e.ReservedDoNotUse=0]="ReservedDoNotUse",e[e.BasicEvent=10]="BasicEvent",e[e.FullEvent=100]="FullEvent",e[e.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",e[e.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent"}(a||(a={}))},21681:(e,t,n)=>{"use strict";n.d(t,{$b:()=>r,b7:()=>o,d$:()=>i,vV:()=>c,wC:()=>a});var r,o,s=new(n(75255).J);function i(){return s}function a(e,t,n){s.fireEvent({level:e,category:t,message:n})}function c(e,t,n){a(r.Error,e,(function(){var e=n instanceof Error?n.message:"";return t+": "+e}))}!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose"}(r||(r={})),function(e){e[e.Core=0]="Core",e[e.Sink=1]="Sink",e[e.Transport=2]="Transport"}(o||(o={}))},49068:()=>{},80889:(e,t,n)=>{"use strict";n.d(t,{G:()=>f,d:()=>p});var r,o,s=n(57118),i=n(21681);!function(e){e[e.Aria=0]="Aria",e[e.Nexus=1]="Nexus"}(r||(r={})),function(e){var t={},n={},o={};function s(e){if("object"!=typeof e)throw new Error("tokenTree must be an object");o=u(o,e)}function a(e){if(t[e])return t[e];var n=l(e,r.Aria);return"string"==typeof n?(t[e]=n,n):void 0}function c(e){if(n[e])return n[e];var t=l(e,r.Nexus);return"number"==typeof t?(n[e]=t,t):void 0}function l(e,t){var n=e.split("."),s=o,i=void 0;if(s){for(var a=0;a<n.length-1;a++)s[n[a]]&&(s=s[n[a]],t===r.Aria&&"string"==typeof s.ariaTenantToken?i=s.ariaTenantToken:t===r.Nexus&&"number"==typeof s.nexusTenantToken&&(i=s.nexusTenantToken));return i}}function u(e,t){if("object"!=typeof t)return t;for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];o in e&&(e[o],1)?e[o]=u(e[o],t[o]):e[o]=t[o]}return e}e.setTenantToken=function(e,t,n){var r=e.split(".");if(r.length<2||"Office"!==r[0])(0,i.wC)(i.$b.Error,i.b7.Core,(function(){return"Invalid namespace: "+e}));else{var o=Object.create(Object.prototype);t&&(o.ariaTenantToken=t),n&&(o.nexusTenantToken=n);var a,c=o;for(a=r.length-1;a>=0;--a){var l=Object.create(Object.prototype);l[r[a]]=c,c=l}s(c)}},e.setTenantTokens=s,e.getTenantTokens=function(e){var t=a(e),n=c(e);if(!n||!t)throw new Error("Could not find tenant token for "+e);return{ariaTenantToken:t,nexusTenantToken:n}},e.getAriaTenantToken=a,e.getNexusTenantToken=c,e.clear=function(){t={},n={},o={}}}(o||(o={}));var a,c=n(37435);!function(e){var t=-9007199254740991,n=9007199254740991,r=/^[A-Z][a-zA-Z0-9]*$/,o=/^[a-zA-Z0-9_\.]*$/;function s(e){return void 0!==e&&o.test(e)}function i(e){if(!((t=e.name)&&s(t)&&t.length+5<100))throw new Error("Invalid dataField name");var t;e.dataType===c.b.Int64&&a(e.value)}function a(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<t||e>n)throw new Error("Invalid integer "+JSON.stringify(e))}e.validateTelemetryEvent=function(e){if(!function(e){if(!e||e.length>98)return!1;var t,n=e.split("."),o=n[n.length-1];return function(e){return!!e&&e.length>=3&&"Office"===e[0]}(n)&&(void 0!==(t=o)&&r.test(t))}(e.eventName))throw new Error("Invalid eventName");if(e.eventContract&&!s(e.eventContract.name))throw new Error("Invalid eventContract");if(null!=e.dataFields)for(var t=0;t<e.dataFields.length;t++)i(e.dataFields[t])},e.validateInt=a}(a||(a={}));var l=n(75255),u=n(30227),d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)},p=-1,f=function(){function e(e,t,n){var r,o;this.onSendEvent=new l.J,this.persistentDataFields=[],this.config=n||{},e&&(this.onSendEvent=e.onSendEvent,(r=this.persistentDataFields).push.apply(r,e.persistentDataFields),this.config=d(d({},e.getConfig()),this.config)),t&&(o=this.persistentDataFields).push.apply(o,t)}return e.prototype.sendTelemetryEvent=function(e){var t;try{if(0===this.onSendEvent.getListenerCount())return void(0,i.wC)(i.$b.Warning,i.b7.Core,(function(){return"No telemetry sinks are attached."}));t=this.cloneEvent(e),this.processTelemetryEvent(t)}catch(e){return void(0,i.vV)(i.b7.Core,"SendTelemetryEvent",e)}try{this.onSendEvent.fireEvent(t)}catch(e){}},e.prototype.processTelemetryEvent=function(e){var t;e.telemetryProperties||(e.telemetryProperties=o.getTenantTokens(e.eventName)),e.dataFields&&(e.dataFields.unshift((0,u.m9)("OTelJS.Version","3.1.74")),this.persistentDataFields&&(t=e.dataFields).unshift.apply(t,this.persistentDataFields)),this.config.disableValidation||a.validateTelemetryEvent(e)},e.prototype.addSink=function(e){this.onSendEvent.addListener((function(t){return e.sendTelemetryEvent(t)}))},e.prototype.setTenantToken=function(e,t,n){o.setTenantToken(e,t,n)},e.prototype.setTenantTokens=function(e){o.setTenantTokens(e)},e.prototype.cloneEvent=function(e){return(0,s.E)(e)},e.prototype.getConfig=function(){return this.config},e}()},57118:(e,t,n)=>{"use strict";function r(e){var t={eventName:e.eventName,eventFlags:e.eventFlags};return e.telemetryProperties&&(t.telemetryProperties={ariaTenantToken:e.telemetryProperties.ariaTenantToken,nexusTenantToken:e.telemetryProperties.nexusTenantToken}),e.eventContract&&(t.eventContract={name:e.eventContract.name,dataFields:e.eventContract.dataFields.slice()}),t.dataFields=e.dataFields?e.dataFields.slice():[],t}n.d(t,{E:()=>r})},28932:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r,o=n(80889),s=n(96675),i=n(26501),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.executeActivityAsync=function(e,t){return n=this,r=void 0,s=function(){return function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}(this,(function(n){return[2,this.createNewActivity(e).executeAsync(t)]}))},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}c((s=s.apply(n,r||[])).next())}));var n,r,o,s},t.prototype.executeActivitySync=function(e,t){return this.createNewActivity(e).executeSync(t)},t.prototype.createNewActivity=function(e){return s.q.createNew(this,e)},t.prototype.sendActivity=function(e,t,n,r){return this.sendTelemetryEvent({eventName:e,eventContract:{name:i.A.Office.System.Activity.contractName,dataFields:i.A.Office.System.Activity.getFields(t)},dataFields:n,eventFlags:r})},t.prototype.sendError=function(e){var t=i.A.Office.System.Error.getFields("Error",e.error);return null!=e.dataFields&&t.push.apply(t,e.dataFields),this.sendTelemetryEvent({eventName:e.eventName,dataFields:t,eventFlags:e.eventFlags})},t}(o.G)},11761:()=>{},93815:()=>{},26501:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r,o,s,i,a,c,l,u,d=n(30227),p=n(82101);!function(e){e.getFields=function(e,t){var n=[];return n.push((0,d.Ug)(e+".Code",t.code)),void 0!==t.type&&n.push((0,d.m9)(e+".Type",t.type)),void 0!==t.tag&&n.push((0,d.Ug)(e+".Tag",t.tag)),void 0!==t.isExpected&&n.push((0,d.LK)(e+".IsExpected",t.isExpected)),(0,p.w)(n,e,"Office.System.Result"),n}}(r||(r={})),function(e){e.contractName="Office.System.Activity",e.getFields=function(t){var n="Activity",o=[];return void 0!==t.cV&&o.push((0,d.m9)(n+".CV",t.cV)),o.push((0,d.Ug)(n+".Duration",t.duration)),o.push((0,d.Ug)(n+".Count",t.count)),o.push((0,d.Ug)(n+".AggMode",t.aggMode)),void 0!==t.success&&o.push((0,d.LK)(n+".Success",t.success)),void 0!==t.result&&o.push.apply(o,r.getFields(n+".Result",t.result)),(0,p.w)(o,n,e.contractName),o}}(o||(o={})),function(e){e.getFields=function(e,t){var n=[];return void 0!==t.id&&n.push((0,d.m9)(e+".Id",t.id)),void 0!==t.version&&n.push((0,d.m9)(e+".Version",t.version)),void 0!==t.sessionId&&n.push((0,d.m9)(e+".SessionId",t.sessionId)),(0,p.w)(n,e,"Office.System.Host"),n}}(s||(s={})),function(e){e.getFields=function(e,t){var n=[];return void 0!==t.alias&&n.push((0,d.m9)(e+".Alias",t.alias)),void 0!==t.primaryIdentityHash&&n.push((0,d.m9)(e+".PrimaryIdentityHash",t.primaryIdentityHash)),void 0!==t.primaryIdentitySpace&&n.push((0,d.m9)(e+".PrimaryIdentitySpace",t.primaryIdentitySpace)),void 0!==t.tenantId&&n.push((0,d.m9)(e+".TenantId",t.tenantId)),void 0!==t.tenantGroup&&n.push((0,d.m9)(e+".TenantGroup",t.tenantGroup)),void 0!==t.isAnonymous&&n.push((0,d.LK)(e+".IsAnonymous",t.isAnonymous)),(0,p.w)(n,e,"Office.System.User"),n}}(i||(i={})),function(e){e.getFields=function(e,t){var n=[];return void 0!==t.id&&n.push((0,d.m9)(e+".Id",t.id)),void 0!==t.version&&n.push((0,d.m9)(e+".Version",t.version)),void 0!==t.instanceId&&n.push((0,d.m9)(e+".InstanceId",t.instanceId)),void 0!==t.name&&n.push((0,d.m9)(e+".Name",t.name)),void 0!==t.marketplaceType&&n.push((0,d.m9)(e+".MarketplaceType",t.marketplaceType)),void 0!==t.sessionId&&n.push((0,d.m9)(e+".SessionId",t.sessionId)),void 0!==t.browserToken&&n.push((0,d.m9)(e+".BrowserToken",t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push((0,d.m9)(e+".OsfRuntimeVersion",t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push((0,d.m9)(e+".OfficeJsVersion",t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push((0,d.m9)(e+".HostJsVersion",t.hostJsVersion)),void 0!==t.assetId&&n.push((0,d.m9)(e+".AssetId",t.assetId)),void 0!==t.providerName&&n.push((0,d.m9)(e+".ProviderName",t.providerName)),void 0!==t.type&&n.push((0,d.m9)(e+".Type",t.type)),(0,p.w)(n,e,"Office.System.SDX"),n}}(a||(a={})),function(e){e.getFields=function(e,t){var n=[];return void 0!==t.name&&n.push((0,d.m9)(e+".Name",t.name)),void 0!==t.state&&n.push((0,d.m9)(e+".State",t.state)),(0,p.w)(n,e,"Office.System.Funnel"),n}}(c||(c={})),function(e){e.getFields=function(e,t){var n=[];return void 0!==t.id&&n.push((0,d.Ug)(e+".Id",t.id)),void 0!==t.name&&n.push((0,d.m9)(e+".Name",t.name)),void 0!==t.commandSurface&&n.push((0,d.m9)(e+".CommandSurface",t.commandSurface)),void 0!==t.parentName&&n.push((0,d.m9)(e+".ParentName",t.parentName)),void 0!==t.triggerMethod&&n.push((0,d.m9)(e+".TriggerMethod",t.triggerMethod)),void 0!==t.timeOffsetMs&&n.push((0,d.Ug)(e+".TimeOffsetMs",t.timeOffsetMs)),(0,p.w)(n,e,"Office.System.UserAction"),n}}(l||(l={})),function(e){e.getFields=function(e,t){var n=[];return n.push((0,d.m9)(e+".ErrorGroup",t.errorGroup)),n.push((0,d.Ug)(e+".Tag",t.tag)),void 0!==t.code&&n.push((0,d.Ug)(e+".Code",t.code)),void 0!==t.id&&n.push((0,d.Ug)(e+".Id",t.id)),void 0!==t.count&&n.push((0,d.Ug)(e+".Count",t.count)),(0,p.w)(n,e,"Office.System.Error"),n}}(u||(u={}));var f,h=o,g=r,m=u,y=c,v=s,w=a,b=l,S=i;!function(e){var t,n;t=e.Office||(e.Office={}),(n=t.System||(t.System={})).Activity=h,n.Result=g,n.Error=m,n.Funnel=y,n.Host=v,n.SDX=w,n.User=S,n.UserAction=b}(f||(f={}))},1059:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ActivityScope:()=>o.q,Category:()=>g.b7,Contracts:()=>r.A,CostPriority:()=>f.Mx,DataCategories:()=>f.b5,DataClassification:()=>a.p,DataFieldType:()=>d.b,DiagnosticLevel:()=>f.EP,LogLevel:()=>g.$b,PersistencePriority:()=>f.qu,SamplingPolicy:()=>f.A2,SimpleTelemetryLogger:()=>m.G,SuppressNexus:()=>m.d,TelemetryLogger:()=>y.M,addContractField:()=>s.w,cloneEvent:()=>v.E,getEffectiveEventFlags:()=>p.H,getFieldsForContract:()=>i.P,logError:()=>g.vV,logNotification:()=>g.wC,makeBooleanDataField:()=>u.LK,makeDoubleDataField:()=>u.ip,makeGuidDataField:()=>u.k,makeInt64DataField:()=>u.Ug,makeStringDataField:()=>u.m9,onNotification:()=>g.d$});var r=n(26501),o=n(96675),s=n(82101),i=n(96550),a=n(9751),c=n(54243),l={};for(const e in c)["default","Contracts","ActivityScope","addContractField","getFieldsForContract","DataClassification"].indexOf(e)<0&&(l[e]=()=>c[e]);n.d(t,l);var u=n(30227),d=n(37435),p=n(97131),f=n(81701),h=n(49068);l={};for(const e in h)["default","Contracts","ActivityScope","addContractField","getFieldsForContract","DataClassification","makeBooleanDataField","makeDoubleDataField","makeGuidDataField","makeInt64DataField","makeStringDataField","DataFieldType","getEffectiveEventFlags","CostPriority","DataCategories","DiagnosticLevel","PersistencePriority","SamplingPolicy"].indexOf(e)<0&&(l[e]=()=>h[e]);n.d(t,l);var g=n(21681),m=n(80889),y=n(28932),v=n(57118),w=n(11761);l={};for(const e in w)["default","Contracts","ActivityScope","addContractField","getFieldsForContract","DataClassification","makeBooleanDataField","makeDoubleDataField","makeGuidDataField","makeInt64DataField","makeStringDataField","DataFieldType","getEffectiveEventFlags","CostPriority","DataCategories","DiagnosticLevel","PersistencePriority","SamplingPolicy","Category","LogLevel","logError","logNotification","onNotification","SimpleTelemetryLogger","SuppressNexus","TelemetryLogger","cloneEvent"].indexOf(e)<0&&(l[e]=()=>w[e]);n.d(t,l);var b=n(93815);l={};for(const e in b)["default","Contracts","ActivityScope","addContractField","getFieldsForContract","DataClassification","makeBooleanDataField","makeDoubleDataField","makeGuidDataField","makeInt64DataField","makeStringDataField","DataFieldType","getEffectiveEventFlags","CostPriority","DataCategories","DiagnosticLevel","PersistencePriority","SamplingPolicy","Category","LogLevel","logError","logNotification","onNotification","SimpleTelemetryLogger","SuppressNexus","TelemetryLogger","cloneEvent"].indexOf(e)<0&&(l[e]=()=>b[e]);n.d(t,l)},8436:(e,t,n)=>{"use strict";n.d(t,{a:()=>u});var r=n(98670),o=n(26166),s=n(68761),i=n(94857),a=n(14429),c=n(59658),l=n(87071);function u(e,t){void 0===t&&(t={});var n=t.factoryOptions,u=(void 0===n?{}:n).defaultProp,p=function(n){var c,l,u,p,f=(c=t.displayName,l=o.useContext(i.z),u=t.fields,p=["theme","styles","tokens"],a.X.getSettings(u||p,c,l.customizations)),h=t.state;h&&(n=(0,r.Cl)((0,r.Cl)({},n),h(n)));var g=n.theme||f.theme,m=d(n,g,t.tokens,f.tokens,n.tokens),y=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return s.concatStyleSets.apply(void 0,r.map((function(r){return"function"==typeof r?r(e,t,n):r})))}(n,g,m,t.styles,f.styles,n.styles),v=(0,r.Cl)((0,r.Cl)({},n),{styles:y,tokens:m,_defaultStyles:y,theme:g});return e(v)};return p.displayName=t.displayName||e.name,u&&(p.create=(0,c.Bw)(p,{defaultProp:u})),(0,l.k)(p,t.statics),p}function d(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];for(var s={},i=0,a=n;i<a.length;i++){var c=a[i];c&&(c="function"==typeof c?c(e,t):c,Array.isArray(c)&&(c=d.apply(void 0,(0,r.aN)([e,t],c))),(0,l.k)(s,c))}return s}},59658:(e,t,n)=>{"use strict";var r;n.d(t,{Bw:()=>d,Sk:()=>f,WL:()=>u});var o=n(98670),s=n(26166),i=n(16536),a=n(38044),c=n(87018),l=n(87071);function u(e,t){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var c=e;return c.isSlot?0===(i=s.Children.toArray(i)).length?c(t):c((0,o.Cl)((0,o.Cl)({},t),{children:i})):s.createElement.apply(r||(r=n.t(s,2)),(0,o.aN)([e,t],i))}function d(e,t){void 0===t&&(t={});var n=t.defaultProp,r=void 0===n?"children":n;return function(t,n,a,u,d){if(s.isValidElement(n))return n;var p=function(e,t){var n,r;return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?((n={})[e]=t,r=n):r=t,r}(r,n),f=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},s=[],a=0,u=n;a<u.length;a++){var d=u[a];s.push(d&&d.className),(0,l.k)(o,d)}return o.className=(0,i.e)([e,s],{rtl:(0,c.jI)(t)}),o}(u,d,t,p);if(a){if(a.component){var h=a.component;return s.createElement(h,(0,o.Cl)({},f))}if(a.render)return a.render(f,e)}return s.createElement(e,(0,o.Cl)({},f))}}var p=(0,a.J9)((function(e){return d(e)}));function f(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return function(e,t,n,r,o,s){return void 0!==e.create?e.create(t,n,r,o):p(e)(t,n,r,o,s)}(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var s in t)o(s);return n}},87071:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var r=n(98670).Cl},34375:(e,t,n)=>{"use strict";n.d(t,{v:()=>A});var r=n(68761);function o(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};(0,r.registerIcons)(n,t)}function s(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};(0,r.registerIcons)(n,t)}function i(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};(0,r.registerIcons)(n,t)}function a(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};(0,r.registerIcons)(n,t)}function c(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};(0,r.registerIcons)(n,t)}function l(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};(0,r.registerIcons)(n,t)}function u(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};(0,r.registerIcons)(n,t)}function d(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};(0,r.registerIcons)(n,t)}function p(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};(0,r.registerIcons)(n,t)}function f(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};(0,r.registerIcons)(n,t)}function h(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};(0,r.registerIcons)(n,t)}function g(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};(0,r.registerIcons)(n,t)}function m(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};(0,r.registerIcons)(n,t)}function y(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};(0,r.registerIcons)(n,t)}function v(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};(0,r.registerIcons)(n,t)}function w(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};(0,r.registerIcons)(n,t)}function b(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};(0,r.registerIcons)(n,t)}function S(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};(0,r.registerIcons)(n,t)}function T(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};(0,r.registerIcons)(n,t)}var C=function(){(0,r.registerIconAlias)("trash","delete"),(0,r.registerIconAlias)("onedrive","onedrivelogo"),(0,r.registerIconAlias)("alertsolid12","eventdatemissed12"),(0,r.registerIconAlias)("sixpointstar","6pointstar"),(0,r.registerIconAlias)("twelvepointstar","12pointstar"),(0,r.registerIconAlias)("toggleon","toggleleft"),(0,r.registerIconAlias)("toggleoff","toggleright")},_=n(36151);(0,n(30620).v)("@uifabric/icons","7.9.4");var I="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",k=(0,_.z)();function A(e,t){var n,r,_,A;void 0===e&&(e=(null===(r=null===(n=k)||void 0===n?void 0:n.FabricConfig)||void 0===r?void 0:r.iconBaseUrl)||(null===(A=null===(_=k)||void 0===_?void 0:_.FabricConfig)||void 0===A?void 0:A.fontBaseUrl)||I),[o,s,i,a,c,l,u,d,p,f,h,g,m,y,v,w,b,S,T].forEach((function(n){return n(e,t)})),C()}},17060:(e,t,n)=>{"use strict";function r(e){s!==e&&(s=e)}function o(){return void 0===s&&(s="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),s}var s;function i(){return{rtl:o()}}n.d(t,{DU:()=>r,Iy:()=>i}),s=o()},95876:(e,t,n)=>{"use strict";n.d(t,{b:()=>s,n:()=>l});var r,o=n(98670),s={none:0,insertNode:1,appendChild:2},i="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),c={};try{c=window}catch(e){}var l=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.Cl)({injectionMode:s.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(r=c[i])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var n=(null===(t=c)||void 0===t?void 0:t.FabricConfig)||{};r=c[i]=new e(n.mergeStyles)}return r},e.prototype.setConfig=function(e){this._config=(0,o.Cl)((0,o.Cl)({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==s.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case s.insertNode:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case s.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},69646:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(98670);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},s={},i=0,a=e;i<a.length;i++){var c=a[i];if(c)for(var l in c)if(c.hasOwnProperty(l)){if("subComponentStyles"===l&&void 0!==c.subComponentStyles){var u=c.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(s.hasOwnProperty(d)?s[d].push(u[d]):s[d]=[u[d]]);continue}var p=n[l],f=c[l];n[l]=void 0===p?f:(0,r.aN)(Array.isArray(p)?p:[p],Array.isArray(f)?f:[f])}}if(Object.keys(s).length>0){n.subComponentStyles={};var h=n.subComponentStyles,g=function(e){if(s.hasOwnProperty(e)){var t=s[e];h[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in s)g(d)}return n}},49742:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(69646);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],s=0,i=t;s<i.length;s++){var a=i[s];a&&o.push("function"==typeof a?a(e):a)}return 1===o.length?o[0]:o.length?r.T.apply(void 0,o):{}}},39718:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(95876);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],s=r.n.getInstance();return function e(t){for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a)if("string"==typeof a)if(a.indexOf(" ")>=0)e(a.split(" "));else{var c=s.argsFromClassName(a);c?e(c):-1===n.indexOf(a)&&n.push(a)}else Array.isArray(a)?e(a):"object"==typeof a&&o.push(a)}}(e),{classes:n,objects:o}}},3864:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(17060),o=n(95876),s=n(81992);function i(e){o.n.getInstance().insertRule("@font-face{"+(0,s.bz)((0,r.Iy)(),e)+"}",!0)}},88063:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(17060),o=n(95876),s=n(81992);function i(e){var t=o.n.getInstance(),n=t.getClassName(),i=[];for(var a in e)e.hasOwnProperty(a)&&i.push(a,"{",(0,s.bz)((0,r.Iy)(),e[a]),"}");var c=i.join("");return t.insertRule("@keyframes "+n+"{"+c+"}",!0),t.cacheClassName(n,c,[],["keyframes",c]),n}},46208:(e,t,n)=>{"use strict";n.d(t,{L:()=>c,l:()=>a});var r=n(69646),o=n(39718),s=n(17060),i=n(81992);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(e,(0,s.Iy)())}function c(e,t){var n,s,a={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var c=r.T.apply(void 0,e),l=[];for(var u in c)if(c.hasOwnProperty(u)){if("subComponentStyles"===u){a.subComponentStyles=c.subComponentStyles||{};continue}var d=c[u],p=(0,o.h)(d),f=p.classes,h=p.objects;(null===(n=h)||void 0===n?void 0:n.length)?(y=(0,i.GJ)(t||{},{displayName:u},h))&&(l.push(y),a[u]=f.concat([y.className]).join(" ")):a[u]=f.join(" ")}for(var g=0,m=l;g<m.length;g++){var y;(y=m[g])&&(0,i.Ae)(y,null===(s=t)||void 0===s?void 0:s.specificityMultiplier)}return a}},16536:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,e:()=>a});var r=n(39718),o=n(17060),s=n(81992);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e,(0,o.Iy)())}function a(e,t){var n=e instanceof Array?e:[e],o=(0,r.h)(n),i=o.classes,a=o.objects;return a.length&&i.push((0,s.kG)(t||{},a)),i.join(" ")}},81992:(e,t,n)=>{"use strict";n.d(t,{Ae:()=>A,bz:()=>I,kG:()=>E,GJ:()=>k});var r,o=n(98670),s=n(95876),i={},a={"user-select":1};function c(e,t){var n=function(){var e,t;if(!r){var n="undefined"!=typeof document?document:void 0,o="undefined"!=typeof navigator?navigator:void 0,s=null===(t=null===(e=o)||void 0===e?void 0:e.userAgent)||void 0===t?void 0:t.toLowerCase();r=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(s&&s.indexOf("firefox")>-1),isOpera:!!(s&&s.indexOf("opera")>-1),isMs:!(!o||!/rv:11.0/i.test(o.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}(),o=e[t];if(a[o]){var s=e[t+1];a[o]&&(n.isWebkit&&e.push("-webkit-"+o,s),n.isMoz&&e.push("-moz-"+o,s),n.isMs&&e.push("-ms-"+o,s),n.isOpera&&e.push("-o-"+o,s))}}var l,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=u.indexOf(n)>-1,s=n.indexOf("--")>-1,i=o||s?"":"px";e[t+1]=""+r+i}}var p="left",f="right",h="@noflip",g=((l={})[p]=f,l[f]=p,l),m={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function y(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(h)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(p)>=0)t[n]=r.replace(p,f);else if(r.indexOf(f)>=0)t[n]=r.replace(f,p);else if(String(o).indexOf(p)>=0)t[n+1]=o.replace(p,f);else if(String(o).indexOf(f)>=0)t[n+1]=o.replace(f,p);else if(g[r])t[n]=g[r];else if(m[o])t[n+1]=m[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e){var t=e.split(" "),n=parseInt(t[0],10);return t[0]=t[0].replace(String(n),String(-1*n)),t.join(" ")}(o)}}}var v="displayName",w=/\:global\((.+?)\)/g;function b(e,t){return e.indexOf(":global(")>=0?e.replace(w,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function S(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?T([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!w.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return T([r],t,b(n,e))})):T([r],t,b(n,e))}function T(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=s.n.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var c=a[i];if("string"==typeof c){var l=r.argsFromClassName(c);l&&T(l,t,n)}else if(Array.isArray(c))T(c,t,n);else for(var u in c)if(c.hasOwnProperty(u)){var d=c[u];if("selectors"===u){var p=c.selectors;for(var f in p)p.hasOwnProperty(f)&&S(n,t,f,p[f])}else"object"==typeof d?null!==d&&S(n,t,u,d):void 0!==d&&("margin"===u||"padding"===u?C(o,u,d):o[u]=d)}}return t}function C(e,t,n){var r="string"==typeof n?n.split(" "):[n];e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function _(e,t){return t<=0?"":1===t?e:e+_(e,t-1)}function I(e,t){if(!t)return"";var n,r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&a!==v&&void 0!==t[a]&&s.push(a,t[a]);for(var l=0;l<s.length;l+=2)o=void 0,"-"!==(o=(n=s)[r=l]).charAt(0)&&(n[r]=i[o]=i[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),d(s,l),y(e,s,l),c(s,l);for(l=1;l<s.length;l+=4)s.splice(l,1,":",s[l],";");return s.join("")}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=T(t),o=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,s=t.__order;o<s.length;o++){var i=s[o];n.push(i);var a=t[i];for(var c in a)a.hasOwnProperty(c)&&void 0!==a[c]&&(r=!0,n.push(c,a[c]))}return r?n.join(""):void 0}(e,r);if(o){var i=s.n.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var c=[],l=0,u=r.__order;l<u.length;l++){var d=u[l];c.push(d,I(e,r[d]))}a.rulesToInsert=c}return a}}function A(e,t){void 0===t&&(t=1);var n=s.n.getInstance(),r=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var c=0;c<a.length;c+=2){var l=a[c+1];if(l){var u=a[c],d=(u=u.replace(/&/g,_("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,o,i,a)}}function E(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=k.apply(void 0,(0,o.aN)([e],t));return r?(A(r,e.specificityMultiplier),r.className):""}},69442:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(26166);function o(e){var t=r.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}},4802:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var r=n(69730),o=n(26166);function s(e,t,n,s){var i=o.useRef(n);i.current=n,o.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return(0,r.on)(n,t,(function(e){return i.current(e)}),s)}),[e,t,s])}},98644:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(26166);function o(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e})),t.current}},30620:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var r={},o=void 0;try{o=window}catch(e){}function s(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};n[e]&&r[e]||(r[e]=t,(n[e]=n[e]||[]).push(t))}}s("@uifabric/set-version","6.0.0")},68761:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnimationClassNames:()=>K,AnimationStyles:()=>j,AnimationVariables:()=>H,ColorClassNames:()=>he,DefaultEffects:()=>ye.W,DefaultFontStyles:()=>X.d,DefaultPalette:()=>ee.b,EdgeChromiumHighContrastSelector:()=>Ce,FontClassNames:()=>Z,FontSizes:()=>ve.s,FontWeights:()=>ve.BO,HighContrastSelector:()=>be,HighContrastSelectorBlack:()=>Te,HighContrastSelectorWhite:()=>Se,IconFontSizes:()=>ve.fF,InjectionMode:()=>Ke.b,PulsingBeaconAnimationStyles:()=>Qe,ScreenWidthMaxLarge:()=>Me,ScreenWidthMaxMedium:()=>Pe,ScreenWidthMaxSmall:()=>Oe,ScreenWidthMaxXLarge:()=>xe,ScreenWidthMaxXXLarge:()=>De,ScreenWidthMinLarge:()=>ke,ScreenWidthMinMedium:()=>Ie,ScreenWidthMinSmall:()=>_e,ScreenWidthMinUhfMobile:()=>Ne,ScreenWidthMinXLarge:()=>Ae,ScreenWidthMinXXLarge:()=>Ee,ScreenWidthMinXXXLarge:()=>Re,Stylesheet:()=>Ke.n,ThemeSettingName:()=>ce,ZIndexes:()=>We,buildClassMap:()=>o,concatStyleSets:()=>It.T,concatStyleSetsWithProps:()=>kt.p,createFontStyles:()=>we.s,createTheme:()=>se.a,focusClear:()=>Ve,fontFace:()=>dt.n,getEdgeChromiumNoHighContrastAdjustSelector:()=>Be,getFadedOverflowStyle:()=>it,getFocusOutlineStyle:()=>qe,getFocusStyle:()=>Ge,getGlobalClassNames:()=>Ze,getHighContrastNoAdjustStyle:()=>Fe,getIcon:()=>vt,getIconClassName:()=>_t,getInputFocusStyle:()=>He,getPlaceholderStyles:()=>ct,getScreenSelector:()=>Le,getTheme:()=>ue,getThemedContext:()=>tt,hiddenContentStyle:()=>je,keyframes:()=>s.i,loadTheme:()=>fe,mergeStyleSets:()=>At.l,mergeStyles:()=>r.Z,noWrap:()=>rt,normalize:()=>nt,registerDefaultFontFaces:()=>X.a,registerIconAlias:()=>yt,registerIcons:()=>gt,registerOnThemeChangeCallback:()=>de,removeOnThemeChangeCallback:()=>pe,setIconOptions:()=>wt,unregisterIcons:()=>mt});var r=n(16536);function o(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=(0,r.Z)(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}var s=n(88063),i="cubic-bezier(.1,.9,.2,1)",a="cubic-bezier(.1,.25,.75,.9)",c="0.167s",l="0.267s",u="0.367s",d="0.467s",p=(0,s.i)({from:{opacity:0},to:{opacity:1}}),f=(0,s.i)({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),h=$(-10),g=$(-20),m=$(-40),y=$(-400),v=$(10),w=$(20),b=$(40),S=$(400),T=Y(10),C=Y(20),_=Y(-10),I=Y(-20),k=J(10),A=J(20),E=J(40),R=J(400),O=J(-10),P=J(-20),M=J(-40),x=J(-400),D=Q(-10),N=Q(-20),L=Q(10),F=Q(20),B=(0,s.i)({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),W=(0,s.i)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),U=(0,s.i)({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),G=(0,s.i)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),V=(0,s.i)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),q=(0,s.i)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),H={easeFunction1:i,easeFunction2:a,durationValue1:c,durationValue2:l,durationValue3:u,durationValue4:d},j={slideRightIn10:z(p+","+h,u,i),slideRightIn20:z(p+","+g,u,i),slideRightIn40:z(p+","+m,u,i),slideRightIn400:z(p+","+y,u,i),slideLeftIn10:z(p+","+v,u,i),slideLeftIn20:z(p+","+w,u,i),slideLeftIn40:z(p+","+b,u,i),slideLeftIn400:z(p+","+S,u,i),slideUpIn10:z(p+","+T,u,i),slideUpIn20:z(p+","+C,u,i),slideDownIn10:z(p+","+_,u,i),slideDownIn20:z(p+","+I,u,i),slideRightOut10:z(f+","+k,u,i),slideRightOut20:z(f+","+A,u,i),slideRightOut40:z(f+","+E,u,i),slideRightOut400:z(f+","+R,u,i),slideLeftOut10:z(f+","+O,u,i),slideLeftOut20:z(f+","+P,u,i),slideLeftOut40:z(f+","+M,u,i),slideLeftOut400:z(f+","+x,u,i),slideUpOut10:z(f+","+D,u,i),slideUpOut20:z(f+","+N,u,i),slideDownOut10:z(f+","+L,u,i),slideDownOut20:z(f+","+F,u,i),scaleUpIn100:z(p+","+B,u,i),scaleDownIn100:z(p+","+U,u,i),scaleUpOut103:z(f+","+G,c,a),scaleDownOut98:z(f+","+W,c,a),fadeIn100:z(p,c,a),fadeIn200:z(p,l,a),fadeIn400:z(p,u,a),fadeIn500:z(p,d,a),fadeOut100:z(f,c,a),fadeOut200:z(f,l,a),fadeOut400:z(f,u,a),fadeOut500:z(f,d,a),rotate90deg:z(V,"0.1s",a),rotateN90deg:z(q,"0.1s",a)};function z(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function $(e){return(0,s.i)({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Y(e){return(0,s.i)({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function J(e){return(0,s.i)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Q(e){return(0,s.i)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var K=o(j),X=n(11435),Z=o(X.d),ee=n(38445),te=n(98670),ne=n(36151),re=n(14429),oe=n(92132),se=n(18817),ie=(0,se.a)({}),ae=[],ce="theme";function le(){var e,t,n,r,o,s=(0,ne.z)();(null===(n=null===(t=s)||void 0===t?void 0:t.FabricConfig)||void 0===n?void 0:n.legacyTheme)?fe(s.FabricConfig.legacyTheme):re.X.getSettings([ce]).theme||((null===(o=null===(r=s)||void 0===r?void 0:r.FabricConfig)||void 0===o?void 0:o.theme)&&(ie=(0,se.a)(s.FabricConfig.theme)),re.X.applySettings(((e={})[ce]=ie,e)))}function ue(e){return void 0===e&&(e=!1),!0===e&&(ie=(0,se.a)({},e)),ie}function de(e){-1===ae.indexOf(e)&&ae.push(e)}function pe(e){var t=ae.indexOf(e);-1!==t&&ae.splice(t,1)}function fe(e,t){var n;return void 0===t&&(t=!1),ie=(0,se.a)(e,t),(0,oe.EQ)((0,te.Cl)((0,te.Cl)((0,te.Cl)((0,te.Cl)({},ie.palette),ie.semanticColors),ie.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],s=e.fonts[o],i=0,a=Object.keys(s);i<a.length;i++){var c=a[i],l=o+c.charAt(0).toUpperCase()+c.slice(1),u=s[c];"fontSize"===c&&"number"==typeof u&&(u+="px"),t[l]=u}return t}(ie))),re.X.applySettings(((n={})[ce]=ie,n)),ae.forEach((function(e){try{e(ie)}catch(e){}})),ie}le();var he={};for(var ge in ee.b)ee.b.hasOwnProperty(ge)&&(me(he,ge,"",!1,"color"),me(he,ge,"Hover",!0,"color"),me(he,ge,"Background",!1,"background"),me(he,ge,"BackgroundHover",!0,"background"),me(he,ge,"Border",!1,"borderColor"),me(he,ge,"BorderHover",!0,"borderColor"));function me(e,t,n,o,s){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[s]=ue().palette[t],e);return(0,r.Z)(o?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}var ye=n(36544),ve=n(99453),we=n(99230),be="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Se="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",Te="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",Ce="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",_e=320,Ie=480,ke=640,Ae=1024,Ee=1366,Re=1920,Oe=Ie-1,Pe=ke-1,Me=Ae-1,xe=Ee-1,De=Re-1,Ne=768;function Le(e,t){return"@media only screen"+("number"==typeof e?" and (min-width: "+e+"px)":"")+("number"==typeof t?" and (max-width: "+t+"px)":"")}function Fe(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}function Be(){var e;return(e={})[Ce]={forcedColorAdjust:"none",MsHighContrastAdjust:"none"},e}var We,Ue=n(82914);function Ge(e,t,n,r,o,s,i){return function(e,t){var n,r;void 0===t&&(t={});var o=t.inset,s=void 0===o?0:o,i=t.width,a=void 0===i?1:i,c=t.position,l=void 0===c?"relative":c,u=t.highContrastStyle,d=t.borderColor,p=void 0===d?e.palette.white:d,f=t.outlineColor,h=void 0===f?e.palette.neutralSecondary:f,g=t.isFocusedOnly,m=void 0===g||g;return{outline:"transparent",position:l,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+Ue.Y2+" &"+(m?":focus":"")+":after"]={content:'""',position:"absolute",left:s+1,top:s+1,bottom:s+1,right:s+1,border:a+"px solid "+p,outline:a+"px solid "+h,zIndex:We.FocusStyle,selectors:(r={},r[be]=u,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:s,isFocusedOnly:i})}function Ve(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}function qe(e,t,n,r){var o;return void 0===t&&(t=0),void 0===n&&(n=1),{selectors:(o={},o[":global("+Ue.Y2+") &:focus"]={outline:n+" solid "+(r||e.palette.neutralSecondary),outlineOffset:-t+"px"},o)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(We||(We={}));var He=function(e,t,n,r){var o,s,i;void 0===n&&(n="border"),void 0===r&&(r=-1);var a="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:a?0:r,top:r,bottom:r,right:a?0:r},o[n]="2px solid "+e,o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(s={},s[be]=(i={},i["border"===n?"borderColor":"borderBottomColor"]="Highlight",i),s),o)}}},je={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"};function ze(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function $e(e){return{opacity:1,borderWidth:e}}function Ye(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function Je(e,t){return(0,te.Cl)((0,te.Cl)({},ze(e,t)),{opacity:0})}var Qe={continuousPulseAnimationDouble:function(e,t,n,r,o){return(0,s.i)({"0%":ze(e,n),"1.42%":$e(o),"3.57%":{opacity:1},"7.14%":Ye(t,r),"8%":Je(e,n),"29.99%":Je(e,n),"30%":ze(e,n),"31.42%":$e(o),"33.57%":{opacity:1},"37.14%":Ye(t,r),"38%":Je(e,n),"79.42%":Je(e,n),79.43:ze(e,n),81.85:$e(o),83.42:{opacity:1},"87%":Ye(t,r),"100%":{}})},continuousPulseAnimationSingle:function(e,t,n,r,o){return(0,s.i)({"0%":ze(e,n),"14.2%":$e(o),"35.7%":{opacity:1},"71.4%":Ye(t,r),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},Ke=n(95876),Xe=(0,n(38044).J9)((function(e,t){var n=Ke.n.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Ze(e,t,n){return Xe(e,void 0!==n?n:t.disableGlobalClassNames)}var et=n(22406);function tt(e,t,n){var r,o=e,s=n||re.X.getSettings(["theme"],void 0,e.customizations).theme;n&&(r={theme:n});var i=t&&s&&s.schemes&&s.schemes[t];return s&&i&&s!==i&&((r={theme:i}).theme.schemes=s.schemes),r&&(o={customizations:{settings:(0,et.s)(e.customizations.settings,r),scopedSettings:e.customizations.scopedSettings}}),o}var nt={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},rt={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},ot="50%",st=20;function it(e,t,n,r,o){void 0===t&&(t="bodyBackground"),void 0===n&&(n="horizontal"),void 0===r&&(r=at("width",n)),void 0===o&&(o=at("height",n));var s=e.semanticColors[t]||e.palette[t],i=function(e){if("#"===e[0])return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)};if(0===e.indexOf("rgba(")){var t=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2]}}return{r:255,g:255,b:255}}(s);return{content:'""',position:"absolute",right:0,bottom:0,width:r,height:o,pointerEvents:"none",backgroundImage:"linear-gradient("+("vertical"===n?"to bottom":"to right")+", rgba("+i.r+", "+i.g+", "+i.b+", 0) 0%, "+s+" 100%)"}}function at(e,t){return"width"===e?"horizontal"===t?st:"100%":"vertical"===t?ot:"100%"}function ct(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var lt=n(88012),ut=n(47897),dt=n(3864),pt=lt.h.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),ft=Ke.n.getInstance();ft&&ft.onReset&&ft.onReset((function(){for(var e in pt)pt.hasOwnProperty(e)&&pt[e].subset&&(pt[e].subset.className=void 0)}));var ht=function(e){return e.toLowerCase()};function gt(e,t){var n=(0,te.Cl)((0,te.Cl)({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var o in t=t?(0,te.Cl)((0,te.Cl)({},pt.__options),t):pt.__options,r)if(r.hasOwnProperty(o)){var s=r[o],i=ht(o);pt[i]?Tt(o):pt[i]={code:s,subset:n}}}function mt(e){for(var t=pt.__options,n=function(e){var n=ht(e);pt[n]?delete pt[n]:t.disableWarnings||(0,ut.R)('The icon "'+e+'" tried to unregister but was not registered.'),pt.__remapped[n]&&delete pt.__remapped[n],Object.keys(pt.__remapped).forEach((function(e){pt.__remapped[e]===n&&delete pt.__remapped[e]}))},r=0,o=e;r<o.length;r++)n(o[r])}function yt(e,t){pt.__remapped[ht(e)]=ht(t)}function vt(e){var t=void 0,n=pt.__options;if(e=e?ht(e):"",e=pt.__remapped[e]||e)if(t=pt[e]){var o=t.subset;o&&o.fontFace&&(o.isRegistered||((0,dt.n)(o.fontFace),o.isRegistered=!0),o.className||(o.className=(0,r.Z)(o.style,{fontFamily:o.fontFace.fontFamily,fontWeight:o.fontFace.fontWeight||"normal",fontStyle:o.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&(0,ut.R)('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return t}function wt(e){pt.__options=(0,te.Cl)((0,te.Cl)({},pt.__options),e)}var bt=[],St=void 0;function Tt(e){pt.__options.disableWarnings||(bt.push(e),void 0===St&&(St=setTimeout((function(){(0,ut.R)("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+bt.slice(0,10).join(", ")+(bt.length>10?" (+ "+(bt.length-10)+" more)":"")),St=void 0,bt=[]}),2e3)))}var Ct={display:"inline-block"};function _t(e){var t="",n=vt(e);return n&&(t=(0,r.Z)(n.subset.className,Ct,{selectors:{"::before":{content:'"'+n.code+'"'}}})),t}var It=n(69646),kt=n(49742),At=n(46208);(0,n(30620).v)("@uifabric/styling","7.25.0"),le()},16904:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(36151),o=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._onErrorHandler&&n._onErrorHandler(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,o=0,s=(0,r.z)(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),o=s.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[o],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[o]=!0),o},e.prototype.clearImmediate=function(e,t){var n=(0,r.z)(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,s,i=t||0,a=!0,c=!0,l=0,u=null;n&&"boolean"==typeof n.leading&&(a=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing);var d=function(t){var n=Date.now(),p=n-l,f=a?i-p:i;return p>=i&&(!t||a)?(l=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,s)):null===u&&c&&(u=r.setTimeout(d,f)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var s,i,a=t||0,c=!1,l=!0,u=null,d=0,p=Date.now(),f=null;n&&"boolean"==typeof n.leading&&(c=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var h=function(e){f&&(r.clearTimeout(f),f=null),p=e},g=function(t){h(t),s=e.apply(r._parent,i)},m=function(e){var t=Date.now(),n=!1;e&&(c&&t-d>=a&&(n=!0),d=t);var o=t-d,i=a-o,h=t-p,y=!1;return null!==u&&(h>=u&&f?y=!0:i=Math.min(i,u-h)),o>=a||y||n?g(t):null!==f&&e||!l||(f=r.setTimeout(m,i)),s},y=function(){return!!f},v=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,m(!0)};return v.cancel=function(){y()&&h(Date.now())},v.flush=function(){return y()&&g(Date.now()),s},v.pending=y,v},e.prototype.requestAnimationFrame=function(e,t){var n=this,o=0,s=(0,r.z)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[o],e.apply(n._parent)}catch(e){n._logError(e)}};o=s.requestAnimationFrame?s.requestAnimationFrame(i):s.setTimeout(i,0),this._animationFrameIds[o]=!0}return o},e.prototype.cancelAnimationFrame=function(e,t){var n=(0,r.z)(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}()},55584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(89709),o=n(44591),s=n(35853),i=100,a=function(){function e(e){this._events=new r.g(this),this._scrollableParent=(0,o.Hc)(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=(0,s.l)(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t,n;"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var r,o,s,a=this._scrollRect.top,c=this._scrollRect.left,l=a+this._scrollRect.height-i,u=c+this._scrollRect.width-i;n<a+i||n>l?(o=n,r=a,s=l,this._isVerticalScroll=!0):(o=t,r=c,s=u,this._isVerticalScroll=!1),this._scrollVelocity=o<r+i?Math.max(-15,(i-(o-r))/i*-15):o>s?Math.min(15,(o-s)/i*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}()},57504:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,K:()=>p});var r=n(98670),o=n(26166),s=n(16904),i=n(89709),a=n(58473),c=n(7164),l=n(57194),u=function(e){function t(n,r){var o=e.call(this,n,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)d(e,t,n[r])}(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}return(0,r.C6)(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new s.j(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new i.g(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){(0,l.A)(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){(0,c.Y)(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){(0,a.J)(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(o.Component);function d(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function p(){return null}},56214:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(98670),o=n(26166),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component)},89709:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(65977),o=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,o,s){var i;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,s||!1,!0),(0,r.kp)(a,o),i=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var c=document.createEventObject(o);t.fireEvent("on"+n,c)}}else for(;t&&!1!==i;){var l=t.__events__,u=l?l[n]:null;if(u)for(var d in u)if(u.hasOwnProperty(d))for(var p=u[d],f=0;!1!==i&&f<p.length;f++){var h=p[f];h.objectCallback&&(i=h.objectCallback.call(h.parent,o))}t=s?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var s=this;if(n.indexOf(",")>-1)for(var i=n.split(/[ ,]+/),a=0;a<i.length;a++)this.on(t,i[a],r,o);else{var c=this._parent,l={target:t,eventName:n,parent:c,callback:r,options:o};if((i=t.__events__=t.__events__||{})[n]=i[n]||{count:0},i[n][this._id]=i[n][this._id]||[],i[n][this._id].push(l),i[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!s._isDisposed){var n;try{if(!1===(n=r.apply(c,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};l.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else l.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!s._isDisposed)return r.apply(c,e)};this._eventRecords.push(l)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var s=this._eventRecords[o];if(!(e&&e!==s.target||t&&t!==s.eventName||n&&n!==s.callback||"boolean"==typeof r&&r!==s.options)){var i=s.target.__events__,a=i[s.eventName],c=a?a[this._id]:null;c&&(1!==c.length&&n?(a.count--,c.splice(c.indexOf(s),1)):(a.count-=c.length,delete i[s.eventName][this._id]),a.count||delete i[s.eventName]),s.elementCallback&&(s.target.removeEventListener?s.target.removeEventListener(s.eventName,s.elementCallback,s.options):s.target.detachEvent&&s.target.detachEvent("on"+s.eventName,s.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}()},88012:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(36151),o="__globalSettings__",s="__callbacks__",i=0,a=function(){function e(){}return e.getValue=function(e,t){var n=c();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=c(),r=n[s],o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=l();t||(t=e.__id__=String(i++)),n[t]=e},e.removeChangeListener=function(e){delete l()[e.__id__]},e}();function c(){var e,t=(0,r.z)()||{};return t[o]||(t[o]=((e={})[s]={},e)),t[o]}function l(){return c()[s]}},40245:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var r={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222}},51189:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var r=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}()},62690:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}n.d(t,{$:()=>r})},49699:(e,t,n)=>{"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return e})).join(" ").trim();return""===n?void 0:n}n.d(t,{_:()=>r})},56173:(e,t,n)=>{"use strict";function r(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function o(e,t){var n=r(e,t);if(!(n<0))return e[n]}function s(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n}function i(e,t){return e.reduce((function(e,n,r){return r%t==0?e.push([n]):e[e.length-1].push(n),e}),[])}function a(e,t){return e.filter((function(e,n){return t!==n}))}function c(e,t,n){var r=e.slice();return r[n]=t,r}function l(e,t,n){var r=e.slice();return r.splice(t,0,n),r}function u(e){var t=[];return e.forEach((function(e){return t=t.concat(e)})),t}function d(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.d(t,{Bq:()=>u,D3:()=>i,I6:()=>o,Kz:()=>s,SL:()=>r,Ty:()=>l,fx:()=>c,r1:()=>d,xR:()=>a})},93462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(95876),o=n(46208),s=n(87018),i=n(36151),a=50,c=5,l=0,u=r.n.getInstance();u&&u.onReset&&u.onReset((function(){return l++}));var d="__retval__";function p(e){void 0===e&&(e={});var t=new Map,n=0,r=0,u=l;return function(p,f){var g,m;if(void 0===f&&(f={}),e.useStaticStyles&&"function"==typeof p&&p.__noStyleOverride__)return p(f);r++;var y=t,v=f.theme,w=v&&void 0!==v.rtl?v.rtl:(0,s.jI)(),b=e.disableCaching;return u!==l&&(u=l,t=new Map,n=0),e.disableCaching||(y=h(t,p),y=h(y,f)),!b&&y[d]||(y[d]=void 0===p?{}:(0,o.L)(["function"==typeof p?p(f):p],{rtl:!!w,specificityMultiplier:e.useStaticStyles?c:void 0}),b||n++),n>(e.cacheSize||a)&&((null===(m=null===(g=(0,i.z)())||void 0===g?void 0:g.FabricConfig)||void 0===m?void 0:m.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0),y[d]}}function f(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function h(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=f(e,r[n]);else e=f(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=f(e,t[o]));return e}},71809:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(98670),o=n(26166),s=n(38044),i=(0,s.J5)((function(e){var t=e;return(0,s.J5)((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var i=n,a=(0,s.J5)((function(e){return function(t){return o.createElement(i,(0,r.Cl)({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return o.createElement(t,(0,r.Cl)({},e,{defaultRender:n?a(n):i}))}}))}));function a(e,t){return i(e)(t)}},70672:(e,t,n)=>{"use strict";function r(e,t){return void 0!==e[t]&&null!==e[t]}n.d(t,{R:()=>r})},60525:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(56173),o=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&(0,r.r1)(t.refs,e)||(t.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(t)),t.refs=e,t.resolver}}},44395:(e,t,n)=>{"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var s=o[r];if(s)if("string"==typeof s)n.push(s);else if(s.hasOwnProperty("toString")&&"function"==typeof s.toString)n.push(s.toString());else for(var i in s)s[i]&&n.push(i)}return n.join(" ")}n.d(t,{A:()=>r})},14429:(e,t,n)=>{"use strict";n.d(t,{X:()=>c});var r=n(98670),o=n(88012),s={settings:{},scopedSettings:{},inCustomizerContext:!1},i=o.h.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),a=[],c=function(){function e(){}return e.reset=function(){i.settings={},i.scopedSettings={}},e.applySettings=function(t){i.settings=(0,r.Cl)((0,r.Cl)({},i.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){i.scopedSettings[t]=(0,r.Cl)((0,r.Cl)({},i.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=s);for(var r={},o=t&&n.scopedSettings[t]||{},a=t&&i.scopedSettings[t]||{},c=0,l=e;c<l.length;c++){var u=l[c];r[u]=o[u]||n.settings[u]||a[u]||i.settings[u]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){a.push(e)},e.unobserve=function(e){a=a.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||a.forEach((function(e){return e()}))},e}()},91348:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(98670),o=n(26166),s=n(14429),i=n(94857),a=n(38281),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){s.X.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){s.X.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return o.createElement(i.z.Consumer,null,(function(n){var r=(0,a.N)(e.props,n);return t&&(r=t(r)),o.createElement(i.z.Provider,{value:r},e.props.children)}))},t}(o.Component)},94857:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var r=n(26166).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},16719:(e,t,n)=>{"use strict";n.d(t,{T:()=>l});var r=n(98670),o=n(26166),s=n(14429),i=n(79316),a=n(94857),c=n(69646);function l(e,t,n){return function(l){var u,d=((u=function(i){function u(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return(0,r.C6)(u,i),u.prototype.componentDidMount=function(){s.X.observe(this._onSettingChanged)},u.prototype.componentWillUnmount=function(){s.X.unobserve(this._onSettingChanged)},u.prototype.render=function(){var i=this;return o.createElement(a.z.Consumer,null,(function(a){var u=s.X.getSettings(t,e,a.customizations),d=i.props;if(u.styles&&"function"==typeof u.styles&&(u.styles=u.styles((0,r.Cl)((0,r.Cl)({},u),d))),n&&u.styles){if(i._styleCache.default!==u.styles||i._styleCache.component!==d.styles){var p=(0,c.T)(u.styles,d.styles);i._styleCache.default=u.styles,i._styleCache.component=d.styles,i._styleCache.merged=p}return o.createElement(l,(0,r.Cl)({},u,d,{styles:i._styleCache.merged}))}return o.createElement(l,(0,r.Cl)({},u,d))}))},u.prototype._onSettingChanged=function(){this.forceUpdate()},u}(o.Component)).displayName="Customized"+e,u);return(0,i.D)(l,d)}}},38281:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(22406);function o(e,t){var n=(t||{}).customizations,o=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:(0,r.s)(o.settings,e.settings),scopedSettings:(0,r.A)(o.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}},22406:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,s:()=>o});var r=n(98670);function o(e,t){void 0===e&&(e={});var n=i(t)?t:function(e){return function(t){return e?(0,r.Cl)((0,r.Cl)({},t),e):t}}(t);return n(e)}function s(e,t){return void 0===e&&(e={}),(i(t)?t:(void 0===(n=t)&&(n={}),function(e){var t=(0,r.Cl)({},e);for(var o in n)n.hasOwnProperty(o)&&(t[o]=(0,r.Cl)((0,r.Cl)({},e[o]),n[o]));return t}))(e);var n}function i(e){return"function"==typeof e}},24194:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(26166),o=n(14429),s=n(94857);function i(e,t){var n,i=(n=r.useState(0)[1],function(){return n((function(e){return++e}))}),a=r.useContext(s.z).customizations,c=a.inCustomizerContext;return r.useEffect((function(){return c||o.X.observe(i),function(){c||o.X.unobserve(i)}}),[c]),o.X.getSettings(e,t,a)}},57622:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(15579);function o(e){if(!r.Q&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},35853:(e,t,n)=>{"use strict";function r(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}n.d(t,{l:()=>r})},36151:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var r=n(15579),o=void 0;try{o=window}catch(e){}function s(e){if(!r.Q&&void 0!==o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},69730:(e,t,n)=>{"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}n.d(t,{on:()=>r})},15579:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r,v:()=>o});var r=!1;function o(e){r=e}},10759:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(62690);function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=(0,r.$)(e,e[n],t[n]))}},54212:(e,t,n)=>{"use strict";n.d(t,{Cm:()=>g,Ep:()=>E,HC:()=>S,J9:()=>w,S0:()=>b,SE:()=>C,Z5:()=>T,_l:()=>_,dm:()=>f,eX:()=>v,j5:()=>p,lo:()=>k,nA:()=>A,oR:()=>h,vO:()=>m,yv:()=>y});var r=n(60552),o=n(41602),s=n(93483),i=n(36151),a=n(57622),c="data-is-focusable",l="data-is-visible",u="data-focuszone-id",d="data-is-sub-focuszone";function p(e,t,n){return v(e,t,!0,!1,!1,n)}function f(e,t,n){return y(e,t,!0,!1,!0,n)}function h(e,t,n,r){return void 0===r&&(r=!0),v(e,t,r,!1,!1,n,!1,!0)}function g(e,t,n,r){return void 0===r&&(r=!0),y(e,t,r,!1,!0,n,!1,!0)}function m(e){var t=v(e,e,!0,!1,!1,!0);return!!t&&(k(t),!0)}function y(e,t,n,r,o,s,i,a){if(!t||!i&&t===e)return null;var c=w(t);if(o&&c&&(s||!S(t)&&!T(t))){var l=y(e,t.lastElementChild,!0,!0,!0,s,i,a);if(l){if(a&&b(l,!0)||!a)return l;var u=y(e,l.previousElementSibling,!0,!0,!0,s,i,a);if(u)return u;for(var d=l.parentElement;d&&d!==t;){var p=y(e,d.previousElementSibling,!0,!0,!0,s,i,a);if(p)return p;d=d.parentElement}}}return n&&c&&b(t,a)?t:y(e,t.previousElementSibling,!0,!0,!0,s,i,a)||(r?null:y(e,t.parentElement,!0,!1,!1,s,i,a))}function v(e,t,n,r,o,s,i,a){if(!t||t===e&&o&&!i)return null;var c=w(t);if(n&&c&&b(t,a))return t;if(!o&&c&&(s||!S(t)&&!T(t))){var l=v(e,t.firstElementChild,!0,!0,!1,s,i,a);if(l)return l}return t===e?null:v(e,t.nextElementSibling,!0,!0,!1,s,i,a)||(r?null:v(e,t.parentElement,!1,!1,!0,s,i,a))}function w(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(l);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function b(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute(c):null,s=null!==r&&n>=0,i=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||s);return t?-1!==n&&i:i}function S(e){return!!(e&&e.getAttribute&&e.getAttribute(u))}function T(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(d))}function C(e){var t=(0,a.Y)(e),n=t&&t.activeElement;return!(!n||!(0,o.s)(e,n))}function _(e,t){return"true"!==(0,r.m)(e,t)}var I=void 0;function k(e){if(e){if(I)return void(I=e);I=e;var t=(0,i.z)(e);t&&t.requestAnimationFrame((function(){var e=I;I=void 0,e&&(e.getAttribute&&"true"===e.getAttribute(c)&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())}))}}function A(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var s=o[r],i=n.children[Math.min(s,n.children.length-1)];if(!i)break;n=i}return b(n)&&w(n)?n:v(e,n,!0)||y(e,n)}function E(e,t){for(var n=[];t&&e&&t!==e;){var r=(0,s.P)(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}},6105:(e,t,n)=>{"use strict";n.d(t,{O:()=>l,q:()=>u});var r=n(36151),o=n(95876),s="__currentId__",i="id__",a=(0,r.z)()||{};void 0===a[s]&&(a[s]=0);var c=!1;function l(e){if(!c){var t=o.n.getInstance();t&&t.onReset&&t.onReset(u),c=!0}var n=a[s]++;return(void 0===e?i:e)+n}function u(e){void 0===e&&(e=0),a[s]=e}},32305:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=n(76671),o={label:r.q6,audio:r.Sg,video:r.Fo,ol:r.p3,li:r.P4,a:r.t0,button:r.uw,input:r.QQ,textarea:r.Sh,select:r.Cq,option:r.tK,table:r.al,tr:r.g0,th:r.cr,td:r.k3,colGroup:r.lA,col:r.Qf,form:r.Gp,iframe:r.Cs,img:r.xM};function s(e,t,n){var s=e&&o[e]||r.vt;return(0,r.G1)(t,s,n)}},54783:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,P:()=>s});var r=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function o(e,t,n){void 0===n&&(n=r);var o=[],s=function(r){"function"!=typeof t[r]||void 0!==e[r]||n&&-1!==n.indexOf(r)||(o.push(r),e[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[r].apply(t,e)})};for(var i in t)s(i);return o}function s(e,t){t.forEach((function(t){return delete e[t]}))}},79316:(e,t,n)=>{"use strict";function r(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}n.d(t,{D:()=>r})},40248:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(36151),o=function(){var e,t,n=(0,r.z)();return!!(null===(t=null===(e=n)||void 0===e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}},3359:(e,t,n)=>{"use strict";n.d(t,{jg:()=>r.j,ZZ:()=>o.Z,$G:()=>s.$,XI:()=>I.X,KP:()=>k.K,zd:()=>A.z,xS:()=>Ie.xS,rm:()=>j.r,Ph:()=>i.P,g6:()=>a.g,II:()=>l,MO:()=>ie.M,h$:()=>u.h,Y2:()=>te.Y2,cK:()=>d.c,M_:()=>p.M,Nx:()=>ke.Nx,oA:()=>ee.o,Ty:()=>g.Ty,K0:()=>Ie.K0,c8:()=>Ie.c8,t0:()=>ye.t0,$N:()=>f.$,r1:()=>g.r1,x9:()=>w,xb:()=>b,kp:()=>he.kp,Sg:()=>ye.Sg,$f:()=>ye.$f,TJ:()=>ye.TJ,uw:()=>ye.uw,lS:()=>le.lS,ZO:()=>S.Z,lA:()=>ye.lA,Qf:()=>ye.Qf,CR:()=>T.C,jk:()=>ve.j,Kz:()=>g.Kz,J5:()=>ue.J5,KD:()=>Fe.K,AH:()=>_.A,Tx:()=>E.T,mh:()=>Ie.mh,JM:()=>ye.JM,SE:()=>Y.SE,s8:()=>M.s,mB:()=>x.m,fY:()=>Ie.fY,iU:()=>$.i,Xs:()=>he.Xs,I6:()=>g.I6,wI:()=>D.w,SL:()=>g.SL,Hc:()=>Ie.Hc,x2:()=>le.x2,Bq:()=>g.Bq,lo:()=>Y.lo,vO:()=>Y.vO,Gp:()=>ye.Gp,GP:()=>Ae.G,i0:()=>L,JV:()=>le.JV,YE:()=>F.Y,Ep:()=>Y.Ep,j5:()=>Y.j5,oR:()=>Y.oR,nA:()=>Y.nA,OX:()=>J.O,IM:()=>ae.I,Z0:()=>ce.Z,dm:()=>Y.dm,Cm:()=>Y.Cm,_B:()=>Q._,G1:()=>ye.G1,eX:()=>Y.eX,PA:()=>B.P,yv:()=>Y.yv,Nu:()=>Ne,jI:()=>Te.jI,SM:()=>Te.SM,l:()=>W.l,Al:()=>be,XJ:()=>Ie.XJ,cI:()=>U.c,zk:()=>G.z,D1:()=>me.D1,RK:()=>me.RK,Nh:()=>me.Nh,Gj:()=>K.G,DI:()=>X.D,vt:()=>ye.vt,Cs:()=>ye.Cs,Ho:()=>ye.Ho,xM:()=>ye.xM,fi:()=>Z.f,as:()=>ne,QQ:()=>ye.QQ,RF:()=>C.R,nY:()=>ee.n,Z5:()=>Y.Z5,HC:()=>Y.HC,S0:()=>Y.S0,J9:()=>Y.J9,lw:()=>De.l,un:()=>pe.u,cX:()=>ge.c,qQ:()=>N.q,q6:()=>ye.q6,P4:()=>ye.P4,cg:()=>he.cg,Bj:()=>ue.Bj,av:()=>ue.J9,h1:()=>de.h,_A:()=>h._,NG:()=>O.N,A4:()=>P.A,ss:()=>P.s,qe:()=>fe.q,Ke:()=>s.K,p3:()=>ye.p3,cJ:()=>he.cJ,on:()=>V.on,tK:()=>ye.tK,s6:()=>q.s,Pj:()=>le.Pj,BM:()=>H,xR:()=>g.xR,fx:()=>g.fx,Bt:()=>Pe.B,qD:()=>J.q,Tk:()=>ue.Tk,Qk:()=>Ce.Q,vY:()=>_e,Cq:()=>ye.Cq,pf:()=>Se,Fy:()=>te.Fy,xC:()=>ce.x,ET:()=>ue.lw,VR:()=>j.V,DU:()=>Te.DU,v9:()=>Le.v,gs:()=>z.g,K9:()=>Re.K,ab:()=>he.ab,_l:()=>Y._l,I4:()=>Ee.I,al:()=>ye.al,k3:()=>ye.k3,Sh:()=>ye.Sh,cr:()=>ye.cr,D3:()=>g.D3,g0:()=>ye.g0,PP:()=>K.P,mk:()=>R.m,vk:()=>ie.v,zu:()=>he.zu,Fo:()=>ye.Fo,R8:()=>Re.R,Jc:()=>Oe.J,Ac:()=>Pe.A,AW:()=>Me.A,Y8:()=>xe.Y});var r=n(16904),o=n(55584),s=n(57504),i=n(56214),a=n(89709),c=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()},l=function(){function e(){}return e.measure=function(t,n){e._timeoutId&&e.setPeriodicReset();var r=c();n();var o=c(),s=e.summary[t]||{totalDuration:0,count:0,all:[]},i=o-r;s.totalDuration+=i,s.count++,s.all.push({duration:i,timeStamp:o}),e.summary[t]=s},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout((function(){return e.reset()}),18e4)},e.summary={},e}(),u=n(88012),d=n(40245),p=n(51189),f=n(62690),h=n(49699),g=n(56173),m=n(98670),y=n(26166),v="undefined"!=typeof WeakMap?new WeakMap:void 0;function w(e){var t=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={Component:v?v.get(e.load):void 0},n}return(0,m.C6)(n,t),n.prototype.render=function(){var e=this.props,t=e.forwardedRef,n=e.asyncPlaceholder,r=(0,m.Tt)(e,["forwardedRef","asyncPlaceholder"]),o=this.state.Component;return o?y.createElement(o,(0,m.Cl)((0,m.Cl)({},r),{ref:t})):n?y.createElement(n,null):null},n.prototype.componentDidMount=function(){var t=this;this.state.Component||e.load().then((function(n){n&&(v&&v.set(e.load,n),t.setState({Component:n},e.onLoad))})).catch(e.onError)},n}(y.Component);return y.forwardRef((function(e,n){return y.createElement(t,(0,m.Cl)({},e,{forwardedRef:n}))}))}function b(e){throw new Error("Unexpected object: "+e)}var S=n(93462),T=n(71809),C=n(70672),_=n(44395),I=n(14429),k=n(91348),A=n(94857),E=n(16719),R=n(24194),O=n(38281),P=n(22406),M=n(41602),x=n(60552),D=n(88948),N=n(80566);function L(e,t){void 0===t&&(t=!0);var n=[];if(e){for(var r=0;r<e.children.length;r++)n.push(e.children.item(r));t&&(0,N.q)(e)&&n.push.apply(n,e._virtual.children)}return n}var F=n(57622),B=n(93483),W=n(35853),U=n(72148),G=n(36151),V=n(69730),q=n(15846);function H(e){var t=function(e){var t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}("MouseEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}var j=n(7821),z=n(97672),$=n(10759),Y=n(54212),J=n(6105),Q=n(32305),K=n(54783),X=n(79316),Z=n(19328),ee=n(53655),te=n(82914);function ne(e){var t,n=e||(0,G.z)();n&&!0!==(null===(t=n.FabricConfig)||void 0===t?void 0:t.disableFocusRects)&&(n.__hasInitializeFocusRects__||(n.__hasInitializeFocusRects__=!0,n.addEventListener("mousedown",re,!0),n.addEventListener("pointerdown",oe,!0),n.addEventListener("keydown",se,!0)))}function re(e){(0,te.Fy)(!1,e.target)}function oe(e){"mouse"!==e.pointerType&&(0,te.Fy)(!1,e.target)}function se(e){(0,ee.n)(e.which)&&(0,te.Fy)(!0,e.target)}var ie=n(82540),ae=n(48315),ce=n(54727),le=n(20168),ue=n(38044),de=n(58624),pe=n(61738),fe=n(41139),he=n(65977),ge=n(26346),me=n(58652),ye=n(76671),ve=n(77273),we="";function be(e){return we+e}function Se(e){we=e}var Te=n(87018),Ce=n(74577),_e=function(e){var t;return function(n,r){t||(t=new Set,(0,$.i)(e,{componentWillUnmount:function(){t.forEach((function(e){return clearTimeout(e)}))}}));var o=setTimeout((function(){t.delete(o),n()}),r);t.add(o)}},Ie=n(44591),ke=n(79268),Ae=n(15235),Ee=n(20765),Re=n(47897),Oe=n(58473),Pe=n(77856),Me=n(57194),xe=n(7164),De=n(40248);function Ne(e,t){for(var n=(0,m.Cl)({},t),r=0,o=Object.keys(e);r<o.length;r++){var s=o[r];void 0===n[s]&&(n[s]=e[s])}return n}var Le=n(15579),Fe=n(60525);(0,n(30620).v)("@uifabric/utilities","7.38.1")},19328:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(10759);function o(e){(0,r.i)(e,{componentDidMount:s,componentDidUpdate:i,componentWillUnmount:a})}function s(){c(this.props.componentRef,this)}function i(e){e.componentRef!==this.props.componentRef&&(c(e.componentRef,null),c(this.props.componentRef,this))}function a(){c(this.props.componentRef,null)}function c(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}},48315:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,o=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,s=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,i=/\s+/g,a=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function c(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(r,"")).replace(o,"")).replace(i," ")).trim()}(e),a.test(e)||!n&&s.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}},53655:(e,t,n)=>{"use strict";n.d(t,{n:()=>i,o:()=>a});var r,o=n(40245),s=((r={})[o.c.up]=1,r[o.c.down]=1,r[o.c.left]=1,r[o.c.right]=1,r[o.c.home]=1,r[o.c.end]=1,r[o.c.tab]=1,r[o.c.pageUp]=1,r[o.c.pageDown]=1,r);function i(e){return!!s[e]}function a(e){s[e]=1}},54727:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,x:()=>l});var r,o=n(57622),s=n(36151),i=n(15183),a="language";function c(e){if(void 0===e&&(e="localStorage"),void 0===r){var t=(0,o.Y)(),n="localStorage"===e?function(e){var t=null;try{var n=(0,s.z)();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(a):"sessionStorage"===e?i.G(a):void 0;n&&(r=n),void 0===r&&t&&(r=t.documentElement.getAttribute("lang")),void 0===r&&(r="en")}return r}function l(e,t){var n=(0,o.Y)();n&&n.documentElement.setAttribute("lang",e);var c=!0===t?"none":t||"localStorage";"localStorage"===c?function(e,t){try{var n=(0,s.z)();n&&n.localStorage.setItem(e,t)}catch(e){}}(a,e):"sessionStorage"===c&&i.S(a,e),r=e}},20168:(e,t,n)=>{"use strict";function r(e,t){var n=e.left||e.x||0,r=e.top||e.y||0,o=t.left||t.x||0,s=t.top||t.y||0;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-s,2))}function o(e){var t,n=e.contentSize,r=e.boundsSize,o=e.mode,s=void 0===o?"contain":o,i=e.maxScale,a=void 0===i?1:i,c=n.width/n.height,l=r.width/r.height;t=("contain"===s?c>l:c<l)?r.width/n.width:r.height/n.height;var u=Math.min(a,t);return{width:n.width*u,height:n.height*u}}function s(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}function i(e,t,n){void 0===n&&(n=10);var r=Math.pow(n,t);return Math.round(e*r)/r}n.d(t,{JV:()=>r,Pj:()=>i,lS:()=>s,x2:()=>o})},38044:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>d,J5:()=>f,J9:()=>p,Tk:()=>u,lw:()=>l});var r=n(95876),o=!1,s=0,i={empty:!0},a={},c="undefined"==typeof WeakMap?null:WeakMap;function l(e){c=e}function u(){s++}function d(e,t,n){var r=p(n.value&&n.value.bind(null));return{configurable:!0,get:function(){return r}}}function p(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!c)return e;if(!o){var l=r.n.getInstance();l&&l.onReset&&r.n.getInstance().onReset(u),o=!0}var d,p=0,f=s;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var c,l=d;(void 0===d||f!==s||t>0&&p>t)&&(d=h(),p=0,f=s),l=d;for(var u=0;u<r.length;u++){var g=(c=r[u])?"object"==typeof c||"function"==typeof c?c:(a[c]||(a[c]={val:c}),a[c]):i;l.map.has(g)||l.map.set(g,h()),l=l.map.get(g)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),p++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function f(e){if(!c)return e;var t=new c;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function h(){return{map:c?new c:null}}},58624:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,s=t;r<s.length;r++)o(e||{},s[r]);return e}function o(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var s=t[r];if("object"!=typeof s||null===s||Array.isArray(s))e[r]=s;else{var i=n.indexOf(s)>-1;e[r]=i?s:o(e[r]||{},s,n)}}return n.pop(),e}n.d(t,{h:()=>r})},61738:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)}},41139:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(57622);function o(e){for(var t,n=[],o=(0,r.Y)(e)||document;e!==o.body;){for(var s=0,i=e.parentElement.children;s<i.length;s++){var a=i[s];a!==e&&"true"!==(null===(t=a.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(a)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}},65977:(e,t,n)=>{"use strict";function r(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return s.apply(this,[null,e].concat(t))}function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,s=n;o<s.length;o++){var i=s[o];if(i)for(var a in i)!i.hasOwnProperty(a)||e&&!e(a)||(t[a]=i[a])}return t}function i(e,t){return Object.keys(e).map((function(n){if(String(Number(n))!==n)return t(n,e[n])})).filter((function(e){return!!e}))}function a(e){return Object.keys(e).reduce((function(t,n){return t.push(e[n]),t}),[])}function c(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}n.d(t,{Xs:()=>s,ab:()=>r,cJ:()=>c,cg:()=>i,kp:()=>o,zu:()=>a})},26346:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r,o=n(36151);function s(e){if(void 0===r||e){var t=(0,o.z)(),n=t&&t.navigator.userAgent;r=!!n&&-1!==n.indexOf("Macintosh")}return!!r}},58652:(e,t,n)=>{"use strict";function r(e){return e.clientWidth<e.scrollWidth}function o(e){return e.clientHeight<e.scrollHeight}function s(e){return r(e)||o(e)}n.d(t,{D1:()=>r,Nh:()=>o,RK:()=>s})},76671:(e,t,n)=>{"use strict";n.d(t,{$f:()=>o,Cq:()=>m,Cs:()=>I,Fo:()=>l,G1:()=>R,Gp:()=>_,Ho:()=>A,JM:()=>E,P4:()=>d,QQ:()=>h,Qf:()=>C,Sg:()=>c,Sh:()=>g,TJ:()=>s,al:()=>v,cr:()=>b,g0:()=>w,k3:()=>S,lA:()=>T,p3:()=>u,q6:()=>a,t0:()=>p,tK:()=>y,uw:()=>f,vt:()=>i,xM:()=>k});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var s=o[r],i=0,a=Array.isArray(s)?s:Object.keys(s);i<a.length;i++)n[a[i]]=1;return n},o=r(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),s=r(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),i=r(s,o),a=r(i,["form"]),c=r(i,["height","loop","muted","preload","src","width"]),l=r(c,["poster"]),u=r(i,["start"]),d=r(i,["value"]),p=r(i,["download","href","hrefLang","media","rel","target","type"]),f=r(i,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),h=r(f,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),g=r(f,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),m=r(f,["form","multiple","required"]),y=r(i,["selected","value"]),v=r(i,["cellPadding","cellSpacing"]),w=i,b=r(i,["rowSpan","scope"]),S=r(i,["colSpan","headers","rowSpan","scope"]),T=r(i,["span"]),C=r(i,["span"]),_=r(i,["acceptCharset","action","encType","encType","method","noValidate","target"]),I=r(i,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),k=r(i,["alt","crossOrigin","height","src","srcSet","useMap","width"]),A=k,E=i;function R(e,t,n){for(var r,o=Array.isArray(t),s={},i=0,a=Object.keys(e);i<a.length;i++){var c=a[i];!(!o&&t[c]||o&&t.indexOf(c)>=0||0===c.indexOf("data-")||0===c.indexOf("aria-"))||n&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(c))||(s[c]=e[c])}return s}},77273:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(38044),o=(0,r.J5)((function(e){return(0,r.J5)((function(t){var n=(0,r.J5)((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function s(e,t){return o(e)(t)}},87018:(e,t,n)=>{"use strict";n.d(t,{DU:()=>u,SM:()=>d,jI:()=>l});var r,o=n(40245),s=n(57622),i=n(15183),a=n(17060),c="isRTL";function l(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===r){var t=(0,i.G)(c);null!==t&&u(r="1"===t);var n=(0,s.Y)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,a.DU)(r))}return!!r}function u(e,t){void 0===t&&(t=!1);var n=(0,s.Y)();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&(0,i.S)(c,e?"1":"0"),r=e,(0,a.DU)(r)}function d(e,t){return void 0===t&&(t={}),l(t)&&(e===o.c.left?e=o.c.right:e===o.c.right&&(e=o.c.left)),e}},74577:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(10759),o=function(e){var t;return function(n){t||(t=new Set,(0,r.i)(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var o=requestAnimationFrame((function(){t.delete(o),n()}));t.add(o)}}},44591:(e,t,n)=>{"use strict";n.d(t,{Hc:()=>m,K0:()=>d,XJ:()=>g,c8:()=>u,fY:()=>h,mh:()=>f,xS:()=>l});var r,o=n(57622),s=n(16536),i=n(36151),a=0,c=(0,s.Z)({overflow:"hidden !important"}),l="data-is-scrollable",u=function(e,t){if(e){var n=0,r=null;t.on(e,"touchstart",(function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)}),{passive:!1}),t.on(e,"touchmove",(function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),r)){var t=e.targetTouches[0].clientY-n,o=m(e.target);o&&(r=o),0===r.scrollTop&&t>0&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault()}}),{passive:!1}),r=e}},d=function(e,t){e&&t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})},p=function(e){e.preventDefault()};function f(){var e=(0,o.Y)();e&&e.body&&!a&&(e.body.classList.add(c),e.body.addEventListener("touchmove",p,{passive:!1,capture:!1})),a++}function h(){if(a>0){var e=(0,o.Y)();e&&e.body&&1===a&&(e.body.classList.remove(c),e.body.removeEventListener("touchmove",p)),a--}}function g(){if(void 0===r){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return r}function m(e){for(var t=e,n=(0,o.Y)(e);t&&t!==n.body;){if("true"===t.getAttribute(l))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(l)){var r=getComputedStyle(t),s=r?r.getPropertyValue("overflow-y"):"";if(s&&("scroll"===s||"auto"===s))return t}t=t.parentElement}return t&&t!==n.body||(t=(0,i.z)(e)),t}},67139:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(79268),o=n(89709),s=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},o=n.onSelectionChanged,s=n.onItemsChanged,a=n.getKey,c=n.canSelectItem,l=void 0===c?function(){return!0}:c,u=n.items,d=n.selectionMode,p=void 0===d?r.Qc.multiple:d;this.mode=p,this._getKey=a||i,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=o,this._onItemsChanged=s,this._canSelectItem=l,this._keyToIndexMap={},this._isModal=!1,this.setItems(u||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"==typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"==typeof n||n?""+n:""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},s={},i=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var a=!1,c=0;c<e.length;c++)(p=e[c])&&(v=this.getKey(p,c))&&(a||v in this._keyToIndexMap&&this._keyToIndexMap[v]===c||(a=!0),n[v]=c),s[c]=p&&!this.canSelectItem(p),s[c]&&this._unselectableCount++;(t||0===e.length)&&this._setAllSelected(!1,!0);var l={},u=0;for(var d in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(d)){var p,f=Number(d),h=(p=this._items[f])?this.getKey(p,Number(f)):void 0,g=h?n[h]:f;void 0===g?i=!0:(l[g]=!0,u++,i=i||g!==f)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(i=!0),!a)for(var m=0,y=Object.keys(this._keyToIndexMap);m<y.length;m++){var v;if(!((v=y[m])in n)){a=!0;break}}this._exemptedIndices=l,this._exemptedCount=u,this._keyToIndexMap=n,this._unselectableIndices=s,this._items=e,this._selectedItems=null,i&&this._updateCount(),a&&(o.g.raise(this,r.Nx),this._onItemsChanged&&this._onItemsChanged()),i&&this._change(),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.getItemIndex=function(e){var t=this._keyToIndexMap[e];return null!=t?t:-1},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,r=e;r<n;r++)if(!this.isIndexSelected(r))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===r.Qc.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===r.Qc.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var r=this._keyToIndexMap[e];r>=0&&this.setIndexSelected(r,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==r.Qc.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var o=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===r.Qc.single&&this._setAllSelected(!1,!0),o&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!o&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.setRangeSelected=function(e,t,n,o){if(this.mode!==r.Qc.none&&(e=Math.min(Math.max(0,e),this._items.length-1),t=Math.min(Math.max(0,t),this._items.length-e),!(e<0||e>=this._items.length||0===t))){this.setChangeEvents(!1);for(var s=e,i=e+t-1,a=(this._anchoredIndex||0)>=i?s:i;s<=i;s++)this.setIndexSelected(s,n,!!o&&s===a);this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToRange=function(e,t,n){if(this.mode!==r.Qc.none)if(this.mode!==r.Qc.single){var o=this._anchoredIndex||0,s=Math.min(e,o),i=Math.max(e+t-1,o);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);s<=i;s++)this.setIndexSelected(s,!0,!1);this.setChangeEvents(!0)}else 1===t&&this.setIndexSelected(e,!0,!0)},e.prototype.selectToIndex=function(e,t){if(this.mode!==r.Qc.none)if(this.mode!==r.Qc.single){var n=this._anchoredIndex||0,o=Math.min(e,n),s=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);o<=s;o++)this.setIndexSelected(o,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==r.Qc.none){var n=this.isRangeSelected(e,t),o=e+t;if(!(this.mode===r.Qc.single&&t>1)){this.setChangeEvents(!1);for(var s=e;s<o;s++)this.setIndexSelected(s,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===r.Qc.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,o.g.raise(this,r.ij),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function i(e,t){var n=(e||{}).key;return void 0===n?""+t:n}},79268:(e,t,n)=>{"use strict";n.d(t,{Nx:()=>i,Qc:()=>r,SB:()=>o,ij:()=>s});var r,o,s="change",i="items-change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(r||(r={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(o||(o={}))},15183:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,S:()=>s});var r=n(36151);function o(e){var t=null;try{var n=(0,r.z)();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function s(e,t){var n;try{null===(n=(0,r.z)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}},82914:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>i,Y2:()=>o});var r=n(36151),o="ms-Fabric--isFocusVisible",s="ms-Fabric--isFocusHidden";function i(e,t){var n=t?(0,r.z)(t):(0,r.z)();if(n){var i=n.document.body.classList;i.add(e?o:s),i.remove(e?s:o)}}},15235:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=/[\{\}]/g,o=/\{\d+\}/g;function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var s=t;return e.replace(o,(function(e){var t=s[e.replace(r,"")];return null==t&&(t=""),t}))}},20765:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(98670),o=n(26166),s=n(49742),i=n(24194),a=["theme","styles"];function c(e,t,n,c,l){var u=(c=c||{scope:"",fields:void 0}).scope,d=c.fields,p=void 0===d?a:d,f=o.forwardRef((function(a,c){var l=o.useRef(),d=(0,i.m)(p,u),f=d.styles,h=(d.dir,(0,r.Tt)(d,["styles","dir"])),g=n?n(a):void 0,m=l.current&&l.current.__cachedInputs__||[];if(!l.current||f!==m[1]||a.styles!==m[2]){var y=function(e){return(0,s.p)(e,t,f,a.styles)};y.__cachedInputs__=[t,f,a.styles],y.__noStyleOverride__=!f&&!a.styles,l.current=y}return o.createElement(e,(0,r.Cl)({ref:c},h,g,a,{styles:l.current}))}));f.displayName="Styled"+(e.displayName||e.name);var h=l?o.memo(f):f;return f.displayName&&(h.displayName=f.displayName),h}},82540:(e,t,n)=>{"use strict";n.d(t,{M:()=>u,v:()=>l});var r=n(26166),o=n(36151),s=n(53655),i=n(82914),a=new WeakMap;function c(e,t){var n,r=a.get(e);return n=r?r+t:1,a.set(e,n),n}function l(e){r.useEffect((function(){var t,n,r=(0,o.z)(null===(t=e)||void 0===t?void 0:t.current);if(r&&!0!==(null===(n=r.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var s=c(r,1);return s<=1&&(r.addEventListener("mousedown",d,!0),r.addEventListener("pointerdown",p,!0),r.addEventListener("keydown",f,!0)),function(){var e;r&&!0!==(null===(e=r.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(s=c(r,-1))&&(r.removeEventListener("mousedown",d,!0),r.removeEventListener("pointerdown",p,!0),r.removeEventListener("keydown",f,!0))}}}),[e])}var u=function(e){return l(e.rootRef),null};function d(e){(0,i.Fy)(!1,e.target)}function p(e){"mouse"!==e.pointerType&&(0,i.Fy)(!1,e.target)}function f(e){(0,s.n)(e.which)&&(0,i.Fy)(!0,e.target)}},47897:(e,t,n)=>{"use strict";function r(e){console&&console.warn&&console.warn(e)}function o(e){}n.d(t,{K:()=>o,R:()=>r})},58473:(e,t,n)=>{"use strict";function r(e,t,n,r,o){}n.d(t,{J:()=>r})},77856:(e,t,n)=>{"use strict";function r(){}function o(e){}n.d(t,{A:()=>o,B:()=>r})},57194:(e,t,n)=>{"use strict";function r(e,t,n){}n.d(t,{A:()=>r})},7164:(e,t,n)=>{"use strict";function r(e,t,n){}n.d(t,{Y:()=>r})},65618:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=f(this);if(e)return e;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?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=l(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[l(e)]},p.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},p.prototype.set=function(e,t){this.map[l(e)]=u(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function C(e,n){return new Promise((function(r,s){var i=new w(e,n);if(i.signal&&i.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;r(new S(o,n))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",c)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}C.polyfill=!0,e.fetch||(e.fetch=C,e.Headers=p,e.Request=w,e.Response=S),t.Headers=p,t.Request=w,t.Response=S,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},60221:e=>{"use strict";function t(e){if(this._capacity=r(e),this._length=0,this._front=0,n(e)){for(var t=e.length,o=0;o<t;++o)this[o]=e[o];this._length=t}}t.prototype.toArray=function(){for(var e=this._length,t=new Array(e),n=this._front,r=this._capacity,o=0;o<e;++o)t[o]=this[n+o&r-1];return t},t.prototype.push=function(e){var t=arguments.length,n=this._length;if(t>1){var r=this._capacity;if(n+t>r){for(var o=0;o<t;++o)this._checkCapacity(n+1),this[s=this._front+n&this._capacity-1]=arguments[o],n++,this._length=n;return n}var s=this._front;for(o=0;o<t;++o)this[s+n&r-1]=arguments[o],s++;return this._length=n+t,n+t}return 0===t?n:(this._checkCapacity(n+1),this[o=this._front+n&this._capacity-1]=e,this._length=n+1,n+1)},t.prototype.pop=function(){var e=this._length;if(0!==e){var t=this._front+e-1&this._capacity-1,n=this[t];return this[t]=void 0,this._length=e-1,n}},t.prototype.shift=function(){var e=this._length;if(0!==e){var t=this._front,n=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length=e-1,n}},t.prototype.unshift=function(e){var t=this._length,n=arguments.length;if(n>1){if(t+n>(o=this._capacity)){for(var r=n-1;r>=0;r--){this._checkCapacity(t+1);var o=this._capacity;this[i=(this._front-1&o-1^o)-o]=arguments[r],t++,this._length=t,this._front=i}return t}var s=this._front;for(r=n-1;r>=0;r--){var i;this[i=(s-1&o-1^o)-o]=arguments[r],s=i}return this._front=s,this._length=t+n,t+n}return 0===n?t:(this._checkCapacity(t+1),o=this._capacity,this[r=(this._front-1&o-1^o)-o]=e,this._length=t+1,this._front=r,t+1)},t.prototype.peekBack=function(){var e=this._length;if(0!==e)return this[this._front+e-1&this._capacity-1]},t.prototype.peekFront=function(){if(0!==this._length)return this[this._front]},t.prototype.get=function(e){var t=e;if(t===(0|t)){var n=this._length;if(t<0&&(t+=n),!(t<0||t>=n))return this[this._front+t&this._capacity-1]}},t.prototype.isEmpty=function(){return 0===this._length},t.prototype.clear=function(){for(var e=this._length,t=this._front,n=this._capacity,r=0;r<e;++r)this[t+r&n-1]=void 0;this._length=0,this._front=0},t.prototype.toString=function(){return this.toArray().toString()},t.prototype.valueOf=t.prototype.toString,t.prototype.removeFront=t.prototype.shift,t.prototype.removeBack=t.prototype.pop,t.prototype.insertFront=t.prototype.unshift,t.prototype.insertBack=t.prototype.push,t.prototype.enqueue=t.prototype.push,t.prototype.dequeue=t.prototype.shift,t.prototype.toJSON=t.prototype.toArray,Object.defineProperty(t.prototype,"length",{get:function(){return this._length},set:function(){throw new RangeError("")}}),t.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(r(1.5*this._capacity+16))},t.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,r=this._length;n+r>t&&function(e,t,n,r,o){for(var s=0;s<o;++s)n[s+r]=e[s+0],e[s+0]=void 0}(this,0,this,t,n+r&t-1)};var n=Array.isArray;function r(e){if("number"!=typeof e){if(!n(e))return 16;e=e.length}return t=Math.min(Math.max(16,e),1073741824),t>>>=0,t-=1,t|=t>>1,t|=t>>2,t|=t>>4,1+((t|=t>>8)|t>>16);var t}e.exports=t},6731:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new o(r,s||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,o,s,i){var a=n?n+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,s),!0;case 6:return u.fn.call(u.context,t,r,o,s,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},a.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||o&&!a.once||r&&a.context!==r||i(this,s);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||o&&!a[c].once||r&&a[c].context!==r)&&l.push(a[c]);l.length?this._events[s]=1===l.length?l[0]:l:i(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},18156:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var i=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,s,i,l;if(a(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),i=s[t]),void 0===i)i=s[t]=n,++e._eventsCount;else if("function"==typeof i?i=s[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(o=c(e))>0&&i.length>o&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(s){r.once&&e.removeEventListener(t,o),n(s)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,s=this._events;if(void 0!==s)o=o&&void 0===s.error;else if(!o)return!1;if(o){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=s[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return l(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return l(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,s,i;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){i=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(o=s[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92792:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;0!=o--;){var i=s[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},20731:function(e,t,n){!function(e){"use strict";function t(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],s=0;;){var i=t<e.length;if(!i||s>=n-1){var a=r.subarray(0,s);if(o.push(String.fromCharCode.apply(null,a)),!i)return o.join("");e=e.subarray(t),t=0,s=0}var c=e[t++];if(128&c){if(192==(224&c)){var l=63&e[t++];r[s++]=(31&c)<<6|l}else if(224==(240&c)){l=63&e[t++];var u=63&e[t++];r[s++]=(31&c)<<12|l<<6|u}else if(240==(248&c)){var d=(7&c)<<18|(l=63&e[t++])<<12|(u=63&e[t++])<<6|63&e[t++];d>65535&&(d-=65536,r[s++]=d>>>10&1023|55296,d=56320|1023&d),r[s++]=d}}else r[s++]=c}}var n="Failed to ",r=function(e,t,r){if(e)throw new Error("".concat(n).concat(t,": the '").concat(r,"' option is unsupported."))},o="function"==typeof Buffer&&Buffer.from,s=o?function(e){return Buffer.from(e)}:function(e){for(var t=0,n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),s=new Uint8Array(o>>>3<<3);t<n;){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,i=((1023&i)<<10)+(1023&a)+65536)}if(i>=55296&&i<=56319)continue}if(r+4>s.length){o+=8,o=(o*=1+t/e.length*2)>>>3<<3;var c=new Uint8Array(o);c.set(s),s=c}if(4294967168&i){if(4294965248&i)if(4294901760&i){if(4292870144&i)continue;s[r++]=i>>>18&7|240,s[r++]=i>>>12&63|128,s[r++]=i>>>6&63|128}else s[r++]=i>>>12&15|224,s[r++]=i>>>6&63|128;else s[r++]=i>>>6&31|192;s[r++]=63&i|128}else s[r++]=i}return s.slice?s.slice(0,r):s.subarray(0,r)};function i(){this.encoding="utf-8"}i.prototype.encode=function(e,t){return r(t&&t.stream,"encode","stream"),s(e)};var a=!o&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,c=["utf-8","utf8","unicode-1-1-utf-8"],l=t;o?l=function(e,t){return(e instanceof Buffer?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:a&&(l=function(e){try{return function(e){var t;try{var n=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(n);var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(),r.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(n){return t(e)}});var u="construct 'TextDecoder'",d="".concat(n," ").concat(u,": the ");function p(e,t){if(r(t&&t.fatal,u,"fatal"),e=e||"utf-8",!(o?Buffer.isEncoding(e):-1!==c.indexOf(e.toLowerCase())))throw new RangeError("".concat(d," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}p.prototype.decode=function(e,t){var n;return r(t&&t.stream,"decode","stream"),n=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),l(n,this.encoding)},e.TextEncoder=e.TextEncoder||i,e.TextDecoder=e.TextDecoder||p}("undefined"!=typeof window?window:void 0!==n.g?n.g:this)},93710:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(s=new Error(t.replace(/%s/g,(function(){return String(r[i++])})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},73275:(e,t,n)=>{e.exports.Dispatcher=n(98566)},98566:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(93710),o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]||r(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching||r(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||r(!1):(this._callbacks[n]||r(!1),this._invokeCallback(n))}},e.prototype.dispatch=function(e){this._isDispatching&&r(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},e.prototype.isDispatching=function(){return this._isDispatching},e.prototype._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},e.prototype._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},e.prototype._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();e.exports=o},27331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createBrowserHistory:()=>_,createHashHistory:()=>O,createLocation:()=>m,createMemoryHistory:()=>M,createPath:()=>g,locationsAreEqual:()=>y,parsePath:()=>h});var r=n(26443);function o(e){return"/"===e.charAt(0)}function s(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&o(e),c=t&&o(t),l=a||c;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?s(i,p):".."===f?(s(i,p),d++):d&&(s(i,p),d--)}if(!l)for(;d--;d)i.unshift("..");!l||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=a(t),o=a(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var l=n(49481);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var s=t.indexOf("?");return-1!==s&&(n=t.substr(s),t=t.substr(0,s)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function g(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var s;"string"==typeof e?(s=h(e)).state=t:(void 0===(s=(0,r.A)({},e)).pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=i(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function v(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var s="function"==typeof e?e(t,n):e;"string"==typeof s?"function"==typeof r?r(s,o):o(!0):o(!1!==s)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var S="popstate",T="hashchange";function C(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),w||(0,l.A)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,d=i.getUserConfirmation,h=void 0===d?b:d,y=i.keyLength,_=void 0===y?6:y,I=e.basename?f(u(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,o=window.location,s=o.pathname+o.search+o.hash;return I&&(s=p(s,I)),m(s,r,n)}function A(){return Math.random().toString(36).substr(2,_)}var E=v();function R(e){(0,r.A)(G,e),G.length=n.length,E.notifyListeners(G.location,G.action)}function O(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(k(e.state))}function P(){x(k(C()))}var M=!1;function x(e){M?(M=!1,R()):E.confirmTransitionTo(e,"POP",h,(function(t){t?R({action:"POP",location:e}):function(e){var t=G.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(M=!0,F(o))}(e)}))}var D=k(C()),N=[D.key];function L(e){return I+g(e)}function F(e){n.go(e)}var B=0;function W(e){1===(B+=e)&&1===e?(window.addEventListener(S,O),s&&window.addEventListener(T,P)):0===B&&(window.removeEventListener(S,O),s&&window.removeEventListener(T,P))}var U=!1,G={length:n.length,action:"POP",location:D,createHref:L,push:function(e,t){var r="PUSH",s=m(e,t,A(),G.location);E.confirmTransitionTo(s,r,h,(function(e){if(e){var t=L(s),i=s.key,a=s.state;if(o)if(n.pushState({key:i,state:a},null,t),c)window.location.href=t;else{var l=N.indexOf(G.location.key),u=N.slice(0,l+1);u.push(s.key),N=u,R({action:r,location:s})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",s=m(e,t,A(),G.location);E.confirmTransitionTo(s,r,h,(function(e){if(e){var t=L(s),i=s.key,a=s.state;if(o)if(n.replaceState({key:i,state:a},null,t),c)window.location.replace(t);else{var l=N.indexOf(G.location.key);-1!==l&&(N[l]=s.key),R({action:r,location:s})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return U||(W(1),U=!0),function(){return U&&(U=!1,W(-1)),t()}},listen:function(e){var t=E.appendListener(e);return W(1),function(){W(-1),t()}}};return G}var I="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function A(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function E(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function R(e){window.location.replace(A(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),w||(0,l.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,s=void 0===o?b:o,i=n.hashType,a=void 0===i?"slash":i,c=e.basename?f(u(e.basename)):"",d=k[a],h=d.encodePath,y=d.decodePath;function S(){var e=y(E());return c&&(e=p(e,c)),m(e)}var T=v();function C(e){(0,r.A)(U,e),U.length=t.length,T.notifyListeners(U.location,U.action)}var _=!1,O=null;function P(){var e,t,n=E(),r=h(n);if(n!==r)R(r);else{var o=S(),i=U.location;if(!_&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(O===g(o))return;O=null,function(e){if(_)_=!1,C();else{T.confirmTransitionTo(e,"POP",s,(function(t){t?C({action:"POP",location:e}):function(e){var t=U.location,n=N.lastIndexOf(g(t));-1===n&&(n=0);var r=N.lastIndexOf(g(e));-1===r&&(r=0);var o=n-r;o&&(_=!0,L(o))}(e)}))}}(o)}}var M=E(),x=h(M);M!==x&&R(x);var D=S(),N=[g(D)];function L(e){t.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?window.addEventListener(I,P):0===F&&window.removeEventListener(I,P)}var W=!1,U={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=A(window.location.href)),n+"#"+h(c+g(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,U.location);T.confirmTransitionTo(r,n,s,(function(e){if(e){var t=g(r),o=h(c+t);if(E()!==o){O=t,function(e){window.location.hash=e}(o);var s=N.lastIndexOf(g(U.location)),i=N.slice(0,s+1);i.push(t),N=i,C({action:n,location:r})}else C()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,U.location);T.confirmTransitionTo(r,n,s,(function(e){if(e){var t=g(r),o=h(c+t);E()!==o&&(O=t,R(o));var s=N.indexOf(g(U.location));-1!==s&&(N[s]=t),C({action:n,location:r})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return W||(B(1),W=!0),function(){return W&&(W=!1,B(-1)),t()}},listen:function(e){var t=T.appendListener(e);return B(1),function(){B(-1),t()}}};return U}function P(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,s=void 0===o?["/"]:o,i=t.initialIndex,a=void 0===i?0:i,c=t.keyLength,l=void 0===c?6:c,u=v();function d(e){(0,r.A)(b,e),b.length=b.entries.length,u.notifyListeners(b.location,b.action)}function p(){return Math.random().toString(36).substr(2,l)}var f=P(a,0,s.length-1),h=s.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),y=g;function w(e){var t=P(b.index+e,0,b.entries.length-1),r=b.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var b={length:h.length,action:"POP",location:h[f],index:f,entries:h,createHref:y,push:function(e,t){var r="PUSH",o=m(e,t,p(),b.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,p(),b.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(b.entries[b.index]=o,d({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return b}},78535:(e,t,n)=>{"use strict";var r=n(91272),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?i:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var a=c(t),g=c(n),m=0;m<i.length;++m){var y=i[m];if(!(s[y]||r&&r[y]||g&&g[y]||a&&a[y])){var v=p(n,y);try{l(t,y,v)}catch(e){}}}}return t}},76482:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},80665:(e,t,n)=>{n(76442),e.exports=self.fetch.bind(self)},85085:(e,t,n)=>{var r=n(76482);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],s=0;s<t.length;s++)o.push(e(t[s],n,r).source);return d(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return f(s(e,n),t,n)}(t,n,o)},e.exports.parse=s,e.exports.compile=function(e,t){return c(s(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e,t){for(var n,r=[],s=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(c+=e.slice(a,f),a=f+d.length,p)c+=p[1];else{var h=e[a],g=n[2],m=n[3],y=n[4],v=n[5],w=n[6],b=n[7];c&&(r.push(c),c="");var S=null!=g&&null!=h&&h!==g,T="+"===w||"*"===w,C="?"===w||"*"===w,_=g||l,I=y||v,k=g||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:m||s++,prefix:g||"",delimiter:_,optional:C,repeat:T,partial:S,asterisk:!!b,pattern:I?u(I):b?".*":i(_,k)})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function i(e,t){return!t||t.indexOf(e)>-1?"[^"+l(e)+"]+?":l(t)+"|(?:(?!"+l(t)+")[^"+l(e)+"])+?"}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var s="",i=t||{},c=(o||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,p=i[u.name];if(null==p){if(u.optional){u.partial&&(s+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=c(p[f]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");s+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(p),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');s+=u.prefix+d}}else s+=u}return s}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,s=!1!==n.end,i="",a=0;a<e.length;a++){var c=e[a];if("string"==typeof c)i+=l(c);else{var u=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+u+f+")*"),i+=f=c.optional?c.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")"}}var h=l(n.delimiter||"/"),g=i.slice(-h.length)===h;return o||(i=(g?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=s?"$":o&&g?"":"(?="+h+"|$)",d(new RegExp("^"+i,p(n)),t)}},97550:(e,t,n)=>{"use strict";var r=n(51605);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,s,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n,n}},87468:(e,t,n)=>{e.exports=n(97550)()},51605:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},76277:(e,t,n)=>{"use strict";var r=n(26166),o=n(82300);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function g(e,t,n,r,o,s,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var x=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var L,F=Object.assign;function B(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var W=!1;function U(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),s=r.stack.split("\n"),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(1!==i||1!==a)do{if(i--,0>--a||o[i]!==s[a]){var c="\n"+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=i&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function G(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case T:return"Portal";case I:return"Profiler";case _:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function j(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){e._valueTracker||(e._valueTracker=function(e){var t=j(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=j(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(te(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function se(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Ce=null,_e=null;function Ie(e){if(e=bo(e)){if("function"!=typeof Te)throw Error(s(280));var t=e.stateNode;t&&(t=To(t),Te(e.stateNode,e.type,t))}}function ke(e){Ce?_e?_e.push(e):_e=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=_e;if(_e=Ce=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Ee(e,t){return e(t)}function Re(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Ee(e,t,n)}finally{Oe=!1,(null!==Ce||null!==_e)&&(Re(),Ae())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=To(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var xe=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){xe=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){xe=!1}function Ne(e,t,n,r,o,s,i,a,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Le=!1,Fe=null,Be=!1,We=null,Ue={onError:function(e){Le=!0,Fe=e}};function Ge(e,t,n,r,o,s,i,a,c){Le=!1,Fe=null,Ne.apply(Ue,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(s(188))}function je(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return He(o),e;if(i===r)return He(o),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,c=o.child;c;){if(c===n){a=!0,n=o,r=i;break}if(c===r){a=!0,r=o,n=i;break}c=c.sibling}if(!a){for(c=i.child;c;){if(c===n){a=!0,n=i,r=o;break}if(c===r){a=!0,r=i,n=o;break}c=c.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e))?ze(e):null}function ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=ze(e);if(null!==t)return t;e=e.sibling}return null}var $e=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Je=o.unstable_shouldYield,Qe=o.unstable_requestPaint,Ke=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,st=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/ct|0)|0},at=Math.log,ct=Math.LN2,lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=268435455&n;if(0!==i){var a=i&~o;0!==a?r=dt(a):0!=(s&=i)&&(r=dt(s))}else 0!=(i=n&~o)?r=dt(i):0!==s&&(r=dt(s));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(s=t&-t)||16===o&&4194240&s))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var wt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var St,Tt,Ct,_t,It,kt=!1,At=[],Et=null,Rt=null,Ot=null,Pt=new Map,Mt=new Map,xt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Lt(e,t,n,r,o,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},null!==t&&null!==(t=bo(t))&&Tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ft(e){var t=wo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void It(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&Tt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Wt(e,t,n){Bt(e)&&n.delete(t)}function Ut(){kt=!1,null!==Et&&Bt(Et)&&(Et=null),null!==Rt&&Bt(Rt)&&(Rt=null),null!==Ot&&Bt(Ot)&&(Ot=null),Pt.forEach(Wt),Mt.forEach(Wt)}function Gt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function Vt(e){function t(t){return Gt(t,e)}if(0<At.length){Gt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Gt(Et,e),null!==Rt&&Gt(Rt,e),null!==Ot&&Gt(Ot,e),Pt.forEach(t),Mt.forEach(t),n=0;n<xt.length;n++)(r=xt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&null===(n=xt[0]).blockedOn;)Ft(n),null===n.blockedOn&&xt.shift()}var qt=b.ReactCurrentBatchConfig,Ht=!0;function jt(e,t,n,r){var o=wt,s=qt.transition;qt.transition=null;try{wt=1,$t(e,t,n,r)}finally{wt=o,qt.transition=s}}function zt(e,t,n,r){var o=wt,s=qt.transition;qt.transition=null;try{wt=4,$t(e,t,n,r)}finally{wt=o,qt.transition=s}}function $t(e,t,n,r){if(Ht){var o=Jt(e,t,n,r);if(null===o)Hr(e,t,r,Yt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=Lt(Et,e,t,n,r,o),!0;case"dragenter":return Rt=Lt(Rt,e,t,n,r,o),!0;case"mouseover":return Ot=Lt(Ot,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Pt.set(s,Lt(Pt.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Mt.set(s,Lt(Mt.get(s)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var s=bo(o);if(null!==s&&St(s),null===(s=Jt(e,t,n,r))&&Hr(e,t,r,Yt,n),s===o)break;o=s}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Yt=null;function Jt(e,t,n,r){if(Yt=null,null!==(e=wo(e=Se(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,s=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[s-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,s){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,cn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(ln),dn=F({},ln,{view:0,detail:0}),pn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,an=e.screenY-cn.screenY):an=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),hn=on(fn),gn=on(F({},fn,{dataTransfer:0})),mn=on(F({},dn,{relatedTarget:0})),yn=on(F({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=F({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=on(vn),bn=on(F({},ln,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function In(){return _n}var kn=F({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Tn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(kn),En=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),On=on(F({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(Pn),xn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,Nn=null;u&&"documentMode"in document&&(Nn=document.documentMode);var Ln=u&&"TextEvent"in window&&!Nn,Fn=u&&(!Dn||Nn&&8<Nn&&11>=Nn),Bn=String.fromCharCode(32),Wn=!1;function Un(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function jn(e,t,n,r){ke(r),0<(t=zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zn=null,$n=null;function Yn(e){Br(e,0)}function Jn(e){if($(So(e)))return e}function Qn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){zn&&(zn.detachEvent("onpropertychange",nr),$n=zn=null)}function nr(e){if("value"===e.propertyName&&Jn($n)){var t=[];jn(t,$n,e,Se(e)),Pe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn($n)}function sr(e,t){if("click"===e)return Jn(t)}function ir(e,t){if("input"===e||"change"===e)return Jn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=void 0===r.end?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=ur(n,s);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,wr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==mr||mr!==Y(r)||(r="selectionStart"in(r=mr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&cr(vr,r)||(vr=r,0<(r=zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Cr={},_r={};function Ir(e){if(Cr[e])return Cr[e];if(!Tr[e])return e;var t,n=Tr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Cr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),"TransitionEvent"in window||delete Tr.transitionend.transition);var kr=Ir("animationend"),Ar=Ir("animationiteration"),Er=Ir("animationstart"),Rr=Ir("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Or.set(e,t),c(t,[e])}for(var xr=0;xr<Pr.length;xr++){var Dr=Pr[xr];Mr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Mr(kr,"onAnimationEnd"),Mr(Ar,"onAnimationIteration"),Mr(Er,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Rr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,c,l){if(Ge.apply(this,arguments),Le){if(!Le)throw Error(s(198));var u=Fe;Le=!1,Fe=null,Be||(Be=!0,We=u)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],c=a.instance,l=a.currentTarget;if(a=a.listener,c!==s&&o.isPropagationStopped())break e;Fr(o,a,l),s=c}else for(i=0;i<r.length;i++){if(c=(a=r[i]).instance,l=a.currentTarget,a=a.listener,c!==s&&o.isPropagationStopped())break e;Fr(o,a,l),s=c}}}if(Be)throw e=We,Be=!1,We=null,e}function Wr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Gr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Gr]){e[Gr]=!0,i.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Gr]||(t[Gr]=!0,Ur("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Qt(t)){case 1:var o=jt;break;case 4:o=zt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!xe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var s=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&((c=i.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;i=i.return}for(;null!==a;){if(null===(i=wo(a)))return;if(5===(c=i.tag)||6===c){r=s=i;continue e}a=a.parentNode}}r=r.return}Pe((function(){var r=s,o=Se(n),i=[];e:{var a=Or.get(e);if(void 0!==a){var c=un,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=An;break;case"focusin":l="focus",c=mn;break;case"focusout":l="blur",c=mn;break;case"beforeblur":case"afterblur":c=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Rn;break;case kr:case Ar:case Er:c=yn;break;case Rr:c=On;break;case"scroll":c=pn;break;case"wheel":c=Mn;break;case"copy":case"cut":case"paste":c=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=En}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==a?a+"Capture":null:a;u=[];for(var f,h=r;null!==h;){var g=(f=h).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&null!=(g=Me(h,p))&&u.push(jr(h,g,f))),d)break;h=h.return}0<u.length&&(a=new c(a,l,null,n,o),i.push({event:a,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===be||!(l=n.relatedTarget||n.fromElement)||!wo(l)&&!l[go])&&(c||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?wo(l):null)&&(l!==(d=Ve(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=hn,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=En,g="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==c?a:So(c),f=null==l?a:So(l),(a=new u(g,h+"leave",c,n,o)).target=d,a.relatedTarget=f,g=null,wo(o)===r&&((u=new u(p,h+"enter",l,n,o)).target=f,u.relatedTarget=d,g=u),d=g,c&&l)e:{for(p=l,h=0,f=u=c;f;f=$r(f))h++;for(f=0,g=p;g;g=$r(g))f++;for(;0<h-f;)u=$r(u),h--;for(;0<f-h;)p=$r(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=$r(u),p=$r(p)}u=null}else u=null;null!==c&&Yr(i,a,c,u,!1),null!==l&&null!==d&&Yr(i,d,l,u,!0)}if("select"===(c=(a=r?So(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===c&&"file"===a.type)var m=Qn;else if(Hn(a))if(Kn)m=ir;else{m=or;var y=rr}else(c=a.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=sr);switch(m&&(m=m(e,r))?jn(i,m,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?So(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,br(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":br(i,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Vn?Un(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Fn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Vn&&(v=en()):(Xt="value"in(Kt=o)?Kt.value:Kt.textContent,Vn=!0)),0<(y=zr(r,w)).length&&(w=new bn(w,e,null,n,o),i.push({event:w,listeners:y}),(v||null!==(v=Gn(n)))&&(w.data=v))),(v=Ln?function(e,t){switch(e){case"compositionend":return Gn(t);case"keypress":return 32!==t.which?null:(Wn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Wn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Dn&&Un(e,t)?(e=en(),Zt=Xt=Kt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=zr(r,"onBeforeInput")).length&&(o=new bn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v)}Br(i,t)}))}function jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,s=o.stateNode;5===o.tag&&null!==s&&(o=s,null!=(s=Me(e,n))&&r.unshift(jr(e,s,o)),null!=(s=Me(e,t))&&r.push(jr(e,s,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var s=t._reactName,i=[];null!==n&&n!==r;){var a=n,c=a.alternate,l=a.stateNode;if(null!==c&&c===r)break;5===a.tag&&null!==l&&(a=l,o?null!=(c=Me(n,s))&&i.unshift(jr(n,c,a)):o||null!=(c=Me(n,s))&&i.push(jr(n,c,a))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Jr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Qr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(s(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,so="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==so?function(e){return so.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,go="__reactContainer$"+po,mo="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function wo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[fo]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function To(e){return e[ho]||null}var Co=[],_o=-1;function Io(e){return{current:e}}function ko(e){0>_o||(e.current=Co[_o],Co[_o]=null,_o--)}function Ao(e,t){_o++,Co[_o]=e.current,e.current=t}var Eo={},Ro=Io(Eo),Oo=Io(!1),Po=Eo;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,s={};for(o in n)s[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function xo(e){return null!=e.childContextTypes}function Do(){ko(Oo),ko(Ro)}function No(e,t,n){if(Ro.current!==Eo)throw Error(s(168));Ao(Ro,t),Ao(Oo,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(s(108,q(e)||"Unknown",o));return F({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,Po=Ro.current,Ao(Ro,e),Ao(Oo,Oo.current),!0}function Bo(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=Lo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,ko(Oo),ko(Ro),Ao(Ro,e)):ko(Oo),Ao(Oo,n)}var Wo=null,Uo=!1,Go=!1;function Vo(e){null===Wo?Wo=[e]:Wo.push(e)}function qo(){if(!Go&&null!==Wo){Go=!0;var e=0,t=wt;try{var n=Wo;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Wo=null,Uo=!1}catch(t){throw null!==Wo&&(Wo=Wo.slice(e+1)),$e(Ze,qo),t}finally{wt=t,Go=!1}}return null}var Ho=[],jo=0,zo=null,$o=0,Yo=[],Jo=0,Qo=null,Ko=1,Xo="";function Zo(e,t){Ho[jo++]=$o,Ho[jo++]=zo,zo=e,$o=t}function es(e,t,n){Yo[Jo++]=Ko,Yo[Jo++]=Xo,Yo[Jo++]=Qo,Qo=e;var r=Ko;e=Xo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var s=32-it(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ko=1<<32-it(t)+o|n<<o|r,Xo=s+e}else Ko=1<<s|n<<o|r,Xo=e}function ts(e){null!==e.return&&(Zo(e,1),es(e,1,0))}function ns(e){for(;e===zo;)zo=Ho[--jo],Ho[jo]=null,$o=Ho[--jo],Ho[jo]=null;for(;e===Qo;)Qo=Yo[--Jo],Yo[Jo]=null,Xo=Yo[--Jo],Yo[Jo]=null,Ko=Yo[--Jo],Yo[Jo]=null}var rs=null,os=null,ss=!1,is=null;function as(e,t){var n=Ml(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function cs(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,rs=e,os=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,rs=e,os=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Ko,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ml(18,null,null,0)).stateNode=t,n.return=e,e.child=n,rs=e,os=null,!0);default:return!1}}function ls(e){return!(!(1&e.mode)||128&e.flags)}function us(e){if(ss){var t=os;if(t){var n=t;if(!cs(e,t)){if(ls(e))throw Error(s(418));t=lo(n.nextSibling);var r=rs;t&&cs(e,t)?as(r,n):(e.flags=-4097&e.flags|2,ss=!1,rs=e)}}else{if(ls(e))throw Error(s(418));e.flags=-4097&e.flags|2,ss=!1,rs=e}}}function ds(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;rs=e}function ps(e){if(e!==rs)return!1;if(!ss)return ds(e),ss=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=os)){if(ls(e))throw fs(),Error(s(418));for(;t;)as(e,t),t=lo(t.nextSibling)}if(ds(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){os=lo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}os=null}}else os=rs?lo(e.stateNode.nextSibling):null;return!0}function fs(){for(var e=os;e;)e=lo(e.nextSibling)}function hs(){os=rs=null,ss=!1}function gs(e){null===is?is=[e]:is.push(e)}var ms=b.ReactCurrentBatchConfig;function ys(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vs=Io(null),ws=null,bs=null,Ss=null;function Ts(){Ss=bs=ws=null}function Cs(e){var t=vs.current;ko(vs),e._currentValue=t}function _s(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Is(e,t){ws=e,Ss=bs=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ba=!0),e.firstContext=null)}function ks(e){var t=e._currentValue;if(Ss!==e)if(e={context:e,memoizedValue:t,next:null},null===bs){if(null===ws)throw Error(s(308));bs=e,ws.dependencies={lanes:0,firstContext:e}}else bs=bs.next=e;return t}var As=null;function Es(e){null===As?As=[e]:As.push(e)}function Rs(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Es(t)):(n.next=o.next,o.next=n),t.interleaved=n,Os(e,r)}function Os(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ps=!1;function Ms(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ds(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ns(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Os(e,n)}return null===(o=r.interleaved)?(t.next=t,Es(r)):(t.next=o.next,o.next=t),r.interleaved=t,Os(e,n)}function Ls(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Fs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===s?o=s=i:s=s.next=i,n=n.next}while(null!==n);null===s?o=s=t:s=s.next=t}else o=s=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bs(e,t,n,r){var o=e.updateQueue;Ps=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var c=a,l=c.next;c.next=null,null===i?s=l:i.next=l,i=c;var u=e.alternate;null!==u&&(a=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===a?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c)}if(null!==s){var d=o.baseState;for(i=0,u=l=c=null,a=s;;){var p=a.lane,f=a.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,g=a;switch(p=t,f=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=g.payload)?h.call(f,d,p):h))break e;d=F({},d,p);break e;case 2:Ps=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(l=u=f,c=d):u=u.next=f,i|=p;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(p=a).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===s&&(o.shared.lanes=0);Fc|=i,e.lanes=i,e.memoizedState=d}}function Ws(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(s(191,o));o.call(r)}}}var Us=(new r.Component).refs;function Gs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vs={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),o=nl(e),s=Ds(r,o);s.payload=t,null!=n&&(s.callback=n),null!==(t=Ns(e,s,o))&&(rl(t,e,o,r),Ls(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),o=nl(e),s=Ds(r,o);s.tag=1,s.payload=t,null!=n&&(s.callback=n),null!==(t=Ns(e,s,o))&&(rl(t,e,o,r),Ls(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),o=Ds(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ns(e,o,r))&&(rl(t,e,r,n),Ls(t,e,r))}};function qs(e,t,n,r,o,s,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(o,s))}function Hs(e,t,n){var r=!1,o=Eo,s=t.contextType;return"object"==typeof s&&null!==s?s=ks(s):(o=xo(t)?Po:Ro.current,s=(r=null!=(r=t.contextTypes))?Mo(e,o):Eo),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vs,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function js(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function zs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Us,Ms(e);var s=t.contextType;"object"==typeof s&&null!==s?o.context=ks(s):(s=xo(t)?Po:Ro.current,o.context=Mo(e,s)),o.state=e.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(Gs(e,t,s,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Vs.enqueueReplaceState(o,o.state,null),Bs(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function $s(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Us&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Ys(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Js(e){return(0,e._init)(e._payload)}function Qs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Bl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var s=n.type;return s===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===M&&Js(s)===t.type)?((r=o(t,n.props)).ref=$s(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=$s(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,s){return null===t||7!==t.tag?((t=Ll(n,e.mode,r,s)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=$s(e,null,t),n.return=e,n;case T:return(t=Wl(t,e.mode,n)).return=e,t;case M:return p(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Ll(t,e.mode,n,null)).return=e,t;Ys(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?l(e,t,n,r):null;case T:return n.key===o?u(e,t,n,r):null;case M:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||N(n))return null!==o?null:d(e,t,n,r,null);Ys(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||N(r))return d(t,e=e.get(n)||null,r,o,null);Ys(t,r)}return null}function g(o,s,a,c){for(var l=null,u=null,d=s,g=s=0,m=null;null!==d&&g<a.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=f(o,d,a[g],c);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(o,d),s=i(y,s,g),null===u?l=y:u.sibling=y,u=y,d=m}if(g===a.length)return n(o,d),ss&&Zo(o,g),l;if(null===d){for(;g<a.length;g++)null!==(d=p(o,a[g],c))&&(s=i(d,s,g),null===u?l=d:u.sibling=d,u=d);return ss&&Zo(o,g),l}for(d=r(o,d);g<a.length;g++)null!==(m=h(d,o,g,a[g],c))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),s=i(m,s,g),null===u?l=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ss&&Zo(o,g),l}function m(o,a,c,l){var u=N(c);if("function"!=typeof u)throw Error(s(150));if(null==(c=u.call(c)))throw Error(s(151));for(var d=u=null,g=a,m=a=0,y=null,v=c.next();null!==g&&!v.done;m++,v=c.next()){g.index>m?(y=g,g=null):y=g.sibling;var w=f(o,g,v.value,l);if(null===w){null===g&&(g=y);break}e&&g&&null===w.alternate&&t(o,g),a=i(w,a,m),null===d?u=w:d.sibling=w,d=w,g=y}if(v.done)return n(o,g),ss&&Zo(o,m),u;if(null===g){for(;!v.done;m++,v=c.next())null!==(v=p(o,v.value,l))&&(a=i(v,a,m),null===d?u=v:d.sibling=v,d=v);return ss&&Zo(o,m),u}for(g=r(o,g);!v.done;m++,v=c.next())null!==(v=h(g,o,m,v.value,l))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),a=i(v,a,m),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(o,e)})),ss&&Zo(o,m),u}return function e(r,s,i,c){if("object"==typeof i&&null!==i&&i.type===C&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case S:e:{for(var l=i.key,u=s;null!==u;){if(u.key===l){if((l=i.type)===C){if(7===u.tag){n(r,u.sibling),(s=o(u,i.props.children)).return=r,r=s;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===M&&Js(l)===u.type){n(r,u.sibling),(s=o(u,i.props)).ref=$s(r,u,i),s.return=r,r=s;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===C?((s=Ll(i.props.children,r.mode,c,i.key)).return=r,r=s):((c=Nl(i.type,i.key,i.props,null,r.mode,c)).ref=$s(r,s,i),c.return=r,r=c)}return a(r);case T:e:{for(u=i.key;null!==s;){if(s.key===u){if(4===s.tag&&s.stateNode.containerInfo===i.containerInfo&&s.stateNode.implementation===i.implementation){n(r,s.sibling),(s=o(s,i.children||[])).return=r,r=s;break e}n(r,s);break}t(r,s),s=s.sibling}(s=Wl(i,r.mode,c)).return=r,r=s}return a(r);case M:return e(r,s,(u=i._init)(i._payload),c)}if(te(i))return g(r,s,i,c);if(N(i))return m(r,s,i,c);Ys(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==s&&6===s.tag?(n(r,s.sibling),(s=o(s,i)).return=r,r=s):(n(r,s),(s=Bl(i,r.mode,c)).return=r,r=s),a(r)):n(r,s)}}var Ks=Qs(!0),Xs=Qs(!1),Zs={},ei=Io(Zs),ti=Io(Zs),ni=Io(Zs);function ri(e){if(e===Zs)throw Error(s(174));return e}function oi(e,t){switch(Ao(ni,t),Ao(ti,e),Ao(ei,Zs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(ei),Ao(ei,t)}function si(){ko(ei),ko(ti),ko(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ce(t,e.type);t!==n&&(Ao(ti,e),Ao(ei,n))}function ai(e){ti.current===e&&(ko(ei),ko(ti))}var ci=Io(0);function li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=b.ReactCurrentDispatcher,fi=b.ReactCurrentBatchConfig,hi=0,gi=null,mi=null,yi=null,vi=!1,wi=!1,bi=0,Si=0;function Ti(){throw Error(s(321))}function Ci(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function _i(e,t,n,r,o,i){if(hi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?aa:ca,e=n(r,o),wi){i=0;do{if(wi=!1,bi=0,25<=i)throw Error(s(301));i+=1,yi=mi=null,t.updateQueue=null,pi.current=la,e=n(r,o)}while(wi)}if(pi.current=ia,t=null!==mi&&null!==mi.next,hi=0,yi=mi=gi=null,vi=!1,t)throw Error(s(300));return e}function Ii(){var e=0!==bi;return bi=0,e}function ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?gi.memoizedState=yi=e:yi=yi.next=e,yi}function Ai(){if(null===mi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=mi.next;var t=null===yi?gi.memoizedState:yi.next;if(null!==t)yi=t,mi=e;else{if(null===e)throw Error(s(310));e={memoizedState:(mi=e).memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},null===yi?gi.memoizedState=yi=e:yi=yi.next=e}return yi}function Ei(e,t){return"function"==typeof t?t(e):t}function Ri(e){var t=Ai(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=mi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var c=a=null,l=null,u=i;do{var d=u.lane;if((hi&d)===d)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=p,a=r):l=l.next=p,gi.lanes|=d,Fc|=d}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=c,ar(r,t.memoizedState)||(ba=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,gi.lanes|=i,Fc|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oi(e){var t=Ai(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);ar(i,t.memoizedState)||(ba=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Pi(){}function Mi(e,t){var n=gi,r=Ai(),o=t(),i=!ar(r.memoizedState,o);if(i&&(r.memoizedState=o,ba=!0),r=r.queue,Hi(Ni.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(n.flags|=2048,Wi(9,Di.bind(null,n,r,o,t),void 0,null),null===Oc)throw Error(s(349));30&hi||xi(n,t,o)}return o}function xi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Di(e,t,n,r){t.value=n,t.getSnapshot=r,Li(t)&&Fi(e)}function Ni(e,t,n){return n((function(){Li(t)&&Fi(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Fi(e){var t=Os(e,1);null!==t&&rl(t,e,1,-1)}function Bi(e){var t=ki();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gi,e),[t.memoizedState,e]}function Wi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ui(){return Ai().memoizedState}function Gi(e,t,n,r){var o=ki();gi.flags|=e,o.memoizedState=Wi(1|t,n,void 0,void 0===r?null:r)}function Vi(e,t,n,r){var o=Ai();r=void 0===r?null:r;var s=void 0;if(null!==mi){var i=mi.memoizedState;if(s=i.destroy,null!==r&&Ci(r,i.deps))return void(o.memoizedState=Wi(t,n,s,r))}gi.flags|=e,o.memoizedState=Wi(1|t,n,s,r)}function qi(e,t){return Gi(8390656,8,e,t)}function Hi(e,t){return Vi(2048,8,e,t)}function ji(e,t){return Vi(4,2,e,t)}function zi(e,t){return Vi(4,4,e,t)}function $i(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Yi(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4,4,$i.bind(null,t,e),n)}function Ji(){}function Qi(e,t){var n=Ai();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=Ai();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&hi?(ar(n,t)||(n=gt(),gi.lanes|=n,Fc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n)}function Zi(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{wt=n,fi.transition=r}}function ea(){return Ai().memoizedState}function ta(e,t,n){var r=nl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e)?oa(t,n):null!==(n=Rs(e,t,n,r))&&(rl(n,e,r,tl()),sa(n,t,r))}function na(e,t,n){var r=nl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))oa(t,o);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,i)){var c=t.interleaved;return null===c?(o.next=o,Es(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Rs(e,t,o,r))&&(rl(n,e,r,o=tl()),sa(n,t,r))}}function ra(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function oa(e,t){wi=vi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var ia={readContext:ks,useCallback:Ti,useContext:Ti,useEffect:Ti,useImperativeHandle:Ti,useInsertionEffect:Ti,useLayoutEffect:Ti,useMemo:Ti,useReducer:Ti,useRef:Ti,useState:Ti,useDebugValue:Ti,useDeferredValue:Ti,useTransition:Ti,useMutableSource:Ti,useSyncExternalStore:Ti,useId:Ti,unstable_isNewReconciler:!1},aa={readContext:ks,useCallback:function(e,t){return ki().memoizedState=[e,void 0===t?null:t],e},useContext:ks,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gi(4194308,4,$i.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var n=ki();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ki();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ta.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ki().memoizedState=e},useState:Bi,useDebugValue:Ji,useDeferredValue:function(e){return ki().memoizedState=e},useTransition:function(){var e=Bi(!1),t=e[0];return e=Zi.bind(null,e[1]),ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,o=ki();if(ss){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===Oc)throw Error(s(349));30&hi||xi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qi(Ni.bind(null,r,i,e),[e]),r.flags|=2048,Wi(9,Di.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ki(),t=Oc.identifierPrefix;if(ss){var n=Xo;t=":"+t+"R"+(n=(Ko&~(1<<32-it(Ko)-1)).toString(32)+n),0<(n=bi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Si++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ca={readContext:ks,useCallback:Qi,useContext:ks,useEffect:Hi,useImperativeHandle:Yi,useInsertionEffect:ji,useLayoutEffect:zi,useMemo:Ki,useReducer:Ri,useRef:Ui,useState:function(){return Ri(Ei)},useDebugValue:Ji,useDeferredValue:function(e){return Xi(Ai(),mi.memoizedState,e)},useTransition:function(){return[Ri(Ei)[0],Ai().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Mi,useId:ea,unstable_isNewReconciler:!1},la={readContext:ks,useCallback:Qi,useContext:ks,useEffect:Hi,useImperativeHandle:Yi,useInsertionEffect:ji,useLayoutEffect:zi,useMemo:Ki,useReducer:Oi,useRef:Ui,useState:function(){return Oi(Ei)},useDebugValue:Ji,useDeferredValue:function(e){var t=Ai();return null===mi?t.memoizedState=e:Xi(t,mi.memoizedState,e)},useTransition:function(){return[Oi(Ei)[0],Ai().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Mi,useId:ea,unstable_isNewReconciler:!1};function ua(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function da(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fa="function"==typeof WeakMap?WeakMap:Map;function ha(e,t,n){(n=Ds(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jc||(jc=!0,zc=r),pa(0,t)},n}function ga(e,t,n){(n=Ds(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pa(0,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(n.callback=function(){pa(0,t),"function"!=typeof r&&(null===$c?$c=new Set([this]):$c.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fa;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kl.bind(null,e,t,n),t.then(e,e))}function ya(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ds(-1,1)).tag=2,Ns(n,t,1))),n.lanes|=1),e)}var wa=b.ReactCurrentOwner,ba=!1;function Sa(e,t,n,r){t.child=null===e?Xs(t,null,n,r):Ks(t,e.child,n,r)}function Ta(e,t,n,r,o){n=n.render;var s=t.ref;return Is(t,o),r=_i(e,t,n,r,s,o),n=Ii(),null===e||ba?(ss&&n&&ts(t),t.flags|=1,Sa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ja(e,t,o))}function Ca(e,t,n,r,o){if(null===e){var s=n.type;return"function"!=typeof s||xl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,_a(e,t,s,r,o))}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)return ja(e,t,o)}return t.flags|=1,(e=Dl(s,r)).ref=t.ref,e.return=t,t.child=e}function _a(e,t,n,r,o){if(null!==e){var s=e.memoizedProps;if(cr(s,r)&&e.ref===t.ref){if(ba=!1,t.pendingProps=r=s,!(e.lanes&o))return t.lanes=e.lanes,ja(e,t,o);131072&e.flags&&(ba=!0)}}return Aa(e,t,n,r,o)}function Ia(e,t,n){var r=t.pendingProps,o=r.children,s=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Dc,xc),xc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==s?s.baseLanes:n,Ao(Dc,xc),xc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Dc,xc),xc|=n;else null!==s?(r=s.baseLanes|n,t.memoizedState=null):r=n,Ao(Dc,xc),xc|=r;return Sa(e,t,o,n),t.child}function ka(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Aa(e,t,n,r,o){var s=xo(n)?Po:Ro.current;return s=Mo(t,s),Is(t,o),n=_i(e,t,n,r,s,o),r=Ii(),null===e||ba?(ss&&r&&ts(t),t.flags|=1,Sa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ja(e,t,o))}function Ea(e,t,n,r,o){if(xo(n)){var s=!0;Fo(t)}else s=!1;if(Is(t,o),null===t.stateNode)Ha(e,t),Hs(t,n,r),zs(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,a=t.memoizedProps;i.props=a;var c=i.context,l=n.contextType;l="object"==typeof l&&null!==l?ks(l):Mo(t,l=xo(n)?Po:Ro.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==r||c!==l)&&js(t,i,r,l),Ps=!1;var p=t.memoizedState;i.state=p,Bs(t,r,i,o),c=t.memoizedState,a!==r||p!==c||Oo.current||Ps?("function"==typeof u&&(Gs(t,n,u,r),c=t.memoizedState),(a=Ps||qs(t,n,a,r,p,c,l))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=l,r=a):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,xs(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:ys(t.type,a),i.props=l,d=t.pendingProps,p=i.context,c="object"==typeof(c=n.contextType)&&null!==c?ks(c):Mo(t,c=xo(n)?Po:Ro.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||p!==c)&&js(t,i,r,c),Ps=!1,p=t.memoizedState,i.state=p,Bs(t,r,i,o);var h=t.memoizedState;a!==d||p!==h||Oo.current||Ps?("function"==typeof f&&(Gs(t,n,f,r),h=t.memoizedState),(l=Ps||qs(t,n,l,r,p,h,c)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,r=l):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ra(e,t,n,r,s,o)}function Ra(e,t,n,r,o,s){ka(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Bo(t,n,!1),ja(e,t,s);r=t.stateNode,wa.current=t;var a=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ks(t,e.child,null,s),t.child=Ks(t,null,a,s)):Sa(e,t,a,s),t.memoizedState=r.state,o&&Bo(t,n,!0),t.child}function Oa(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),oi(e,t.containerInfo)}function Pa(e,t,n,r,o){return hs(),gs(o),t.flags|=256,Sa(e,t,n,r),t.child}var Ma,xa,Da,Na,La={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ba(e,t,n){var r,o=t.pendingProps,i=ci.current,a=!1,c=!!(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ao(ci,1&i),null===e)return us(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,a?(o=t.mode,a=t.child,c={mode:"hidden",children:c},1&o||null===a?a=Fl(c,o,0,null):(a.childLanes=0,a.pendingProps=c),e=Ll(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fa(n),t.memoizedState=La,e):Wa(t,c));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Ua(e,t,a,r=da(Error(s(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Fl({mode:"visible",children:r.children},o,0,null),(i=Ll(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Ks(t,e.child,null,a),t.child.memoizedState=Fa(a),t.memoizedState=La,i);if(!(1&t.mode))return Ua(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var c=r.dgst;return r=c,Ua(e,t,a,r=da(i=Error(s(419)),r,void 0))}if(c=!!(a&e.childLanes),ba||c){if(null!==(r=Oc)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Os(e,o),rl(r,e,o,-1))}return ml(),Ua(e,t,a,r=da(Error(s(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=El.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,os=lo(o.nextSibling),rs=t,ss=!0,is=null,null!==e&&(Yo[Jo++]=Ko,Yo[Jo++]=Xo,Yo[Jo++]=Qo,Ko=e.id,Xo=e.overflow,Qo=t),(t=Wa(t,r.children)).flags|=4096,t)}(e,t,c,o,r,i,n);if(a){a=o.fallback,c=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&c||t.child===i?(o=Dl(i,l)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?a=Dl(r,a):(a=Ll(a,c,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,c=null===(c=e.child.memoizedState)?Fa(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},a.memoizedState=c,a.childLanes=e.childLanes&~n,t.memoizedState=La,o}return e=(a=e.child).sibling,o=Dl(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Wa(e,t){return(t=Fl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ua(e,t,n,r){return null!==r&&gs(r),Ks(t,e.child,null,n),(e=Wa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ga(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_s(e.return,t,n)}function Va(e,t,n,r,o){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function qa(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Sa(e,t,r.children,n),2&(r=ci.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ga(e,n,t);else if(19===e.tag)Ga(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ci,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===li(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Va(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===li(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Va(t,!0,n,null,s);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ha(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ja(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fc|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function za(e,t){if(!ss)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $a(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ya(e,t,n){var r=t.pendingProps;switch(ns(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $a(t),null;case 1:case 17:return xo(t.type)&&Do(),$a(t),null;case 3:return r=t.stateNode,si(),ko(Oo),ko(Ro),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ps(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==is&&(al(is),is=null))),xa(e,t),$a(t),null;case 5:ai(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Da(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(s(166));return $a(t),null}if(e=ri(ei.current),ps(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[ho]=i,e=!!(1&t.mode),n){case"dialog":Wr("cancel",r),Wr("close",r);break;case"iframe":case"object":case"embed":Wr("load",r);break;case"video":case"audio":for(o=0;o<Nr.length;o++)Wr(Nr[o],r);break;case"source":Wr("error",r);break;case"img":case"image":case"link":Wr("error",r),Wr("load",r);break;case"details":Wr("toggle",r);break;case"input":Q(r,i),Wr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Wr("invalid",r);break;case"textarea":oe(r,i),Wr("invalid",r)}for(var c in ve(n,i),o=null,i)if(i.hasOwnProperty(c)){var l=i[c];"children"===c?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,l,e),o=["children",""+l]):a.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Wr("scroll",r)}switch(n){case"input":z(r),Z(r,i,!0);break;case"textarea":z(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[fo]=t,e[ho]=r,Ma(e,t,!1,!1),t.stateNode=e;e:{switch(c=we(n,r),n){case"dialog":Wr("cancel",e),Wr("close",e),o=r;break;case"iframe":case"object":case"embed":Wr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nr.length;o++)Wr(Nr[o],e);o=r;break;case"source":Wr("error",e),o=r;break;case"img":case"image":case"link":Wr("error",e),Wr("load",e),o=r;break;case"details":Wr("toggle",e),o=r;break;case"input":Q(e,r),o=J(e,r),Wr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=F({},r,{value:void 0}),Wr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Wr("invalid",e)}for(i in ve(n,o),l=o)if(l.hasOwnProperty(i)){var u=l[i];"style"===i?me(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(a.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Wr("scroll",e):null!=u&&w(e,i,u,c))}switch(n){case"input":z(e),Z(e,r,!1);break;case"textarea":z(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $a(t),null;case 6:if(e&&null!=t.stateNode)Na(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(n=ri(ni.current),ri(ei.current),ps(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=rs))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return $a(t),null;case 13:if(ko(ci),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ss&&null!==os&&1&t.mode&&!(128&t.flags))fs(),hs(),t.flags|=98560,i=!1;else if(i=ps(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(s(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(s(317));i[fo]=t}else hs(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$a(t),i=!1}else null!==is&&(al(is),is=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ci.current?0===Nc&&(Nc=3):ml())),null!==t.updateQueue&&(t.flags|=4),$a(t),null);case 4:return si(),xa(e,t),null===e&&Vr(t.stateNode.containerInfo),$a(t),null;case 10:return Cs(t.type._context),$a(t),null;case 19:if(ko(ci),null===(i=t.memoizedState))return $a(t),null;if(r=!!(128&t.flags),null===(c=i.rendering))if(r)za(i,!1);else{if(0!==Nc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=li(e))){for(t.flags|=128,za(i,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(c=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,e=c.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ci,1&ci.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>qc&&(t.flags|=128,r=!0,za(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=li(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),za(i,!0),null===i.tail&&"hidden"===i.tailMode&&!c.alternate&&!ss)return $a(t),null}else 2*Ke()-i.renderingStartTime>qc&&1073741824!==n&&(t.flags|=128,r=!0,za(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=i.last)?n.sibling=c:t.child=c,i.last=c)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=ci.current,Ao(ci,r?1&n|2:1&n),t):($a(t),null);case 22:case 23:return pl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&xc)&&($a(t),6&t.subtreeFlags&&(t.flags|=8192)):$a(t),null;case 24:case 25:return null}throw Error(s(156,t.tag))}function Ja(e,t){switch(ns(t),t.tag){case 1:return xo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return si(),ko(Oo),ko(Ro),di(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ai(t),null;case 13:if(ko(ci),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));hs()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ci),null;case 4:return si(),null;case 10:return Cs(t.type._context),null;case 22:case 23:return pl(),null;default:return null}}Ma=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xa=function(){},Da=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var s,i=null;switch(n){case"input":o=J(e,o),r=J(e,r),i=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(s in c)c.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(i=i||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Wr("scroll",e),i||c===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Na=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qa=!1,Ka=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Za=null;function ec(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Il(e,t,n)}else n.current=null}function tc(e,t,n){try{n()}catch(n){Il(e,t,n)}}var nc=!1;function rc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,void 0!==s&&tc(t,n,s)}o=o.next}while(o!==r)}}function oc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[mo],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(lc(e,t,n),e=e.sibling;null!==e;)lc(e,t,n),e=e.sibling}function uc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(uc(e,t,n),e=e.sibling;null!==e;)uc(e,t,n),e=e.sibling}var dc=null,pc=!1;function fc(e,t,n){for(n=n.child;null!==n;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(st&&"function"==typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ka||ec(n,t);case 6:var r=dc,o=pc;dc=null,fc(e,t,n),pc=o,null!==(dc=r)&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Vt(e)):co(dc,n.stateNode));break;case 4:r=dc,o=pc,dc=n.stateNode.containerInfo,pc=!0,fc(e,t,n),dc=r,pc=o;break;case 0:case 11:case 14:case 15:if(!Ka&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,void 0!==i&&(2&s||4&s)&&tc(n,t,i),o=o.next}while(o!==r)}fc(e,t,n);break;case 1:if(!Ka&&(ec(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Il(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Ka=(r=Ka)||null!==n.memoizedState,fc(e,t,n),Ka=r):fc(e,t,n);break;default:fc(e,t,n)}}function gc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var r=Rl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,c=a;e:for(;null!==c;){switch(c.tag){case 5:dc=c.stateNode,pc=!1;break e;case 3:case 4:dc=c.stateNode.containerInfo,pc=!0;break e}c=c.return}if(null===dc)throw Error(s(160));hc(i,a,o),dc=null,pc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){Il(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mc(t,e),vc(e),4&r){try{rc(3,e,e.return),oc(3,e)}catch(t){Il(e,e.return,t)}try{rc(5,e,e.return)}catch(t){Il(e,e.return,t)}}break;case 1:mc(t,e),vc(e),512&r&&null!==n&&ec(n,n.return);break;case 5:if(mc(t,e),vc(e),512&r&&null!==n&&ec(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Il(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===i.type&&null!=i.name&&K(o,i),we(c,a);var u=we(c,i);for(a=0;a<l.length;a+=2){var d=l[a],p=l[a+1];"style"===d?me(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):w(o,d,p,u)}switch(c){case"input":X(o,i);break;case"textarea":se(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(o,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[ho]=i}catch(t){Il(e,e.return,t)}}break;case 6:if(mc(t,e),vc(e),4&r){if(null===e.stateNode)throw Error(s(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Il(e,e.return,t)}}break;case 3:if(mc(t,e),vc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Il(e,e.return,t)}break;case 4:default:mc(t,e),vc(e);break;case 13:mc(t,e),vc(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vc=Ke())),4&r&&gc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ka=(u=Ka)||d,mc(t,e),Ka=u):mc(t,e),vc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Za=e,d=e.child;null!==d;){for(p=Za=d;null!==Za;){switch(h=(f=Za).child,f.tag){case 0:case 11:case 14:case 15:rc(4,f,f.return);break;case 1:ec(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Il(r,n,e)}}break;case 5:ec(f,f.return);break;case 22:if(null!==f.memoizedState){Tc(p);continue}}null!==h?(h.return=f,Za=h):Tc(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(c=p.stateNode,a=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=ge("display",a))}catch(t){Il(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Il(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:mc(t,e),vc(e),4&r&&gc(e);case 21:}}function vc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ac(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),uc(e,cc(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;lc(e,cc(e),i);break;default:throw Error(s(161))}}catch(t){Il(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function wc(e,t,n){Za=e,bc(e,t,n)}function bc(e,t,n){for(var r=!!(1&e.mode);null!==Za;){var o=Za,s=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Qa;if(!i){var a=o.alternate,c=null!==a&&null!==a.memoizedState||Ka;a=Qa;var l=Ka;if(Qa=i,(Ka=c)&&!l)for(Za=o;null!==Za;)c=(i=Za).child,22===i.tag&&null!==i.memoizedState?Cc(o):null!==c?(c.return=i,Za=c):Cc(o);for(;null!==s;)Za=s,bc(s,t,n),s=s.sibling;Za=o,Qa=a,Ka=l}Sc(e)}else 8772&o.subtreeFlags&&null!==s?(s.return=o,Za=s):Sc(e)}}function Sc(e){for(;null!==Za;){var t=Za;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ka||oc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ka)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ys(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ws(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ws(t,a,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Vt(p)}}}break;default:throw Error(s(163))}Ka||512&t.flags&&sc(t)}catch(e){Il(t,t.return,e)}}if(t===e){Za=null;break}if(null!==(n=t.sibling)){n.return=t.return,Za=n;break}Za=t.return}}function Tc(e){for(;null!==Za;){var t=Za;if(t===e){Za=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Za=n;break}Za=t.return}}function Cc(e){for(;null!==Za;){var t=Za;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{oc(4,t)}catch(e){Il(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Il(t,o,e)}}var s=t.return;try{sc(t)}catch(e){Il(t,s,e)}break;case 5:var i=t.return;try{sc(t)}catch(e){Il(t,i,e)}}}catch(e){Il(t,t.return,e)}if(t===e){Za=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Za=a;break}Za=t.return}}var _c,Ic=Math.ceil,kc=b.ReactCurrentDispatcher,Ac=b.ReactCurrentOwner,Ec=b.ReactCurrentBatchConfig,Rc=0,Oc=null,Pc=null,Mc=0,xc=0,Dc=Io(0),Nc=0,Lc=null,Fc=0,Bc=0,Wc=0,Uc=null,Gc=null,Vc=0,qc=1/0,Hc=null,jc=!1,zc=null,$c=null,Yc=!1,Jc=null,Qc=0,Kc=0,Xc=null,Zc=-1,el=0;function tl(){return 6&Rc?Ke():-1!==Zc?Zc:Zc=Ke()}function nl(e){return 1&e.mode?2&Rc&&0!==Mc?Mc&-Mc:null!==ms.transition?(0===el&&(el=gt()),el):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function rl(e,t,n,r){if(50<Kc)throw Kc=0,Xc=null,Error(s(185));yt(e,n,r),2&Rc&&e===Oc||(e===Oc&&(!(2&Rc)&&(Bc|=n),4===Nc&&cl(e,Mc)),ol(e,r),1===n&&0===Rc&&!(1&t.mode)&&(qc=Ke()+500,Uo&&qo()))}function ol(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-it(s),a=1<<i,c=o[i];-1===c?a&n&&!(a&r)||(o[i]=ft(a,t)):c<=t&&(e.expiredLanes|=a),s&=~a}}(e,t);var r=pt(e,e===Oc?Mc:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Uo=!0,Vo(e)}(ll.bind(null,e)):Vo(ll.bind(null,e)),io((function(){!(6&Rc)&&qo()})),n=null;else{switch(bt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ol(n,sl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sl(e,t){if(Zc=-1,el=0,6&Rc)throw Error(s(327));var n=e.callbackNode;if(Cl()&&e.callbackNode!==n)return null;var r=pt(e,e===Oc?Mc:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var o=Rc;Rc|=2;var i=gl();for(Oc===e&&Mc===t||(Hc=null,qc=Ke()+500,fl(e,t));;)try{wl();break}catch(t){hl(e,t)}Ts(),kc.current=i,Rc=o,null!==Pc?t=0:(Oc=null,Mc=0,t=Nc)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=il(e,o)),1===t)throw n=Lc,fl(e,0),cl(e,r),ol(e,Ke()),n;if(6===t)cl(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!ar(s(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yl(e,r),2===t&&(i=ht(e),0!==i&&(r=i,t=il(e,i))),1!==t)))throw n=Lc,fl(e,0),cl(e,r),ol(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:case 5:Tl(e,Gc,Hc);break;case 3:if(cl(e,r),(130023424&r)===r&&10<(t=Vc+500-Ke())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Tl.bind(null,e,Gc,Hc),t);break}Tl(e,Gc,Hc);break;case 4:if(cl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-it(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ic(r/1960))-r)){e.timeoutHandle=ro(Tl.bind(null,e,Gc,Hc),r);break}Tl(e,Gc,Hc);break;default:throw Error(s(329))}}}return ol(e,Ke()),e.callbackNode===n?sl.bind(null,e):null}function il(e,t){var n=Uc;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=yl(e,t))&&(t=Gc,Gc=n,null!==t&&al(t)),e}function al(e){null===Gc?Gc=e:Gc.push.apply(Gc,e)}function cl(e,t){for(t&=~Wc,t&=~Bc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(6&Rc)throw Error(s(327));Cl();var t=pt(e,0);if(!(1&t))return ol(e,Ke()),null;var n=yl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Lc,fl(e,0),cl(e,t),ol(e,Ke()),n;if(6===n)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e,Gc,Hc),ol(e,Ke()),null}function ul(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{0===(Rc=n)&&(qc=Ke()+500,Uo&&qo())}}function dl(e){null!==Jc&&0===Jc.tag&&!(6&Rc)&&Cl();var t=Rc;Rc|=1;var n=Ec.transition,r=wt;try{if(Ec.transition=null,wt=1,e)return e()}finally{wt=r,Ec.transition=n,!(6&(Rc=t))&&qo()}}function pl(){xc=Dc.current,ko(Dc)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Pc)for(n=Pc.return;null!==n;){var r=n;switch(ns(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:si(),ko(Oo),ko(Ro),di();break;case 5:ai(r);break;case 4:si();break;case 13:case 19:ko(ci);break;case 10:Cs(r.type._context);break;case 22:case 23:pl()}n=n.return}if(Oc=e,Pc=e=Dl(e.current,null),Mc=xc=t,Nc=0,Lc=null,Wc=Bc=Fc=0,Gc=Uc=null,null!==As){for(t=0;t<As.length;t++)if(null!==(r=(n=As[t]).interleaved)){n.interleaved=null;var o=r.next,s=n.pending;if(null!==s){var i=s.next;s.next=o,r.next=i}n.pending=r}As=null}return e}function hl(e,t){for(;;){var n=Pc;try{if(Ts(),pi.current=ia,vi){for(var r=gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vi=!1}if(hi=0,yi=mi=gi=null,wi=!1,bi=0,Ac.current=null,null===n||null===n.return){Nc=1,Lc=t,Pc=null;break}e:{var i=e,a=n.return,c=n,l=t;if(t=Mc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,d=c,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ya(a);if(null!==h){h.flags&=-257,va(h,a,c,0,t),1&h.mode&&ma(i,u,t),l=u;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}if(!(1&t)){ma(i,u,t),ml();break e}l=Error(s(426))}else if(ss&&1&c.mode){var y=ya(a);if(null!==y){!(65536&y.flags)&&(y.flags|=256),va(y,a,c,0,t),gs(ua(l,c));break e}}i=l=ua(l,c),4!==Nc&&(Nc=2),null===Uc?Uc=[i]:Uc.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fs(i,ha(0,l,t));break e;case 1:c=l;var v=i.type,w=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==$c&&$c.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t,Fs(i,ga(i,c,t));break e}}i=i.return}while(null!==i)}Sl(n)}catch(e){t=e,Pc===n&&null!==n&&(Pc=n=n.return);continue}break}}function gl(){var e=kc.current;return kc.current=ia,null===e?ia:e}function ml(){0!==Nc&&3!==Nc&&2!==Nc||(Nc=4),null===Oc||!(268435455&Fc)&&!(268435455&Bc)||cl(Oc,Mc)}function yl(e,t){var n=Rc;Rc|=2;var r=gl();for(Oc===e&&Mc===t||(Hc=null,fl(e,t));;)try{vl();break}catch(t){hl(e,t)}if(Ts(),Rc=n,kc.current=r,null!==Pc)throw Error(s(261));return Oc=null,Mc=0,Nc}function vl(){for(;null!==Pc;)bl(Pc)}function wl(){for(;null!==Pc&&!Je();)bl(Pc)}function bl(e){var t=_c(e.alternate,e,xc);e.memoizedProps=e.pendingProps,null===t?Sl(e):Pc=t,Ac.current=null}function Sl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ja(n,t)))return n.flags&=32767,void(Pc=n);if(null===e)return Nc=6,void(Pc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ya(n,t,xc)))return void(Pc=n);if(null!==(t=t.sibling))return void(Pc=t);Pc=t=e}while(null!==t);0===Nc&&(Nc=5)}function Tl(e,t,n){var r=wt,o=Ec.transition;try{Ec.transition=null,wt=1,function(e,t,n,r){do{Cl()}while(null!==Jc);if(6&Rc)throw Error(s(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}(e,i),e===Oc&&(Pc=Oc=null,Mc=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yc||(Yc=!0,Ol(tt,(function(){return Cl(),null}))),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Ec.transition,Ec.transition=null;var a=wt;wt=1;var c=Rc;Rc|=4,Ac.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,c=-1,l=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(c=a+o),p!==i||0!==r&&3!==p.nodeType||(l=a+r),3===p.nodeType&&(a+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(c=a),f===i&&++d===r&&(l=a),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===c||-1===l?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Za=t;null!==Za;)if(e=(t=Za).child,1028&t.subtreeFlags&&null!==e)e.return=t,Za=e;else for(;null!==Za;){t=Za;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,w=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ys(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(s(163))}}catch(e){Il(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Za=e;break}Za=t.return}g=nc,nc=!1}(e,n),yc(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,wc(n,e,o),Qe(),Rc=c,wt=a,Ec.transition=i}else e.current=n;if(Yc&&(Yc=!1,Jc=e,Qc=o),0===(i=e.pendingLanes)&&($c=null),function(e){if(st&&"function"==typeof st.onCommitFiberRoot)try{st.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ol(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(jc)throw jc=!1,e=zc,zc=null,e;!!(1&Qc)&&0!==e.tag&&Cl(),1&(i=e.pendingLanes)?e===Xc?Kc++:(Kc=0,Xc=e):Kc=0,qo()}(e,t,n,r)}finally{Ec.transition=o,wt=r}return null}function Cl(){if(null!==Jc){var e=bt(Qc),t=Ec.transition,n=wt;try{if(Ec.transition=null,wt=16>e?16:e,null===Jc)var r=!1;else{if(e=Jc,Jc=null,Qc=0,6&Rc)throw Error(s(331));var o=Rc;for(Rc|=4,Za=e.current;null!==Za;){var i=Za,a=i.child;if(16&Za.flags){var c=i.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Za=u;null!==Za;){var d=Za;switch(d.tag){case 0:case 11:case 15:rc(8,d,i)}var p=d.child;if(null!==p)p.return=d,Za=p;else for(;null!==Za;){var f=(d=Za).sibling,h=d.return;if(ic(d),d===u){Za=null;break}if(null!==f){f.return=h,Za=f;break}Za=h}}}var g=i.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Za=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Za=a;else e:for(;null!==Za;){if(2048&(i=Za).flags)switch(i.tag){case 0:case 11:case 15:rc(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Za=v;break e}Za=i.return}}var w=e.current;for(Za=w;null!==Za;){var b=(a=Za).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,Za=b;else e:for(a=w;null!==Za;){if(2048&(c=Za).flags)try{switch(c.tag){case 0:case 11:case 15:oc(9,c)}}catch(e){Il(c,c.return,e)}if(c===a){Za=null;break e}var S=c.sibling;if(null!==S){S.return=c.return,Za=S;break e}Za=c.return}}if(Rc=o,qo(),st&&"function"==typeof st.onPostCommitFiberRoot)try{st.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{wt=n,Ec.transition=t}}return!1}function _l(e,t,n){e=Ns(e,t=ha(0,t=ua(n,t),1),1),t=tl(),null!==e&&(yt(e,1,t),ol(e,t))}function Il(e,t,n){if(3===e.tag)_l(e,e,n);else for(;null!==t;){if(3===t.tag){_l(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$c||!$c.has(r))){t=Ns(t,e=ga(t,e=ua(n,e),1),1),e=tl(),null!==t&&(yt(t,1,e),ol(t,e));break}}t=t.return}}function kl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Oc===e&&(Mc&n)===n&&(4===Nc||3===Nc&&(130023424&Mc)===Mc&&500>Ke()-Vc?fl(e,0):Wc|=n),ol(e,t)}function Al(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=tl();null!==(e=Os(e,t))&&(yt(e,t,n),ol(e,n))}function El(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Al(e,n)}function Rl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}null!==r&&r.delete(t),Al(e,n)}function Ol(e,t){return $e(e,t)}function Pl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ml(e,t,n,r){return new Pl(e,t,n,r)}function xl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Ml(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)xl(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case C:return Ll(n.children,o,i,t);case _:a=8,o|=8;break;case I:return(e=Ml(12,n,t,2|o)).elementType=I,e.lanes=i,e;case R:return(e=Ml(13,n,t,o)).elementType=R,e.lanes=i,e;case O:return(e=Ml(19,n,t,o)).elementType=O,e.lanes=i,e;case x:return Fl(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:a=10;break e;case A:a=9;break e;case E:a=11;break e;case P:a=14;break e;case M:a=16,r=null;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Ml(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ll(e,t,n,r){return(e=Ml(7,e,r,t)).lanes=n,e}function Fl(e,t,n,r){return(e=Ml(22,e,r,t)).elementType=x,e.lanes=n,e.stateNode={isHidden:!1},e}function Bl(e,t,n){return(e=Ml(6,e,null,t)).lanes=n,e}function Wl(e,t,n){return(t=Ml(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ul(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gl(e,t,n,r,o,s,i,a,c){return e=new Ul(e,t,n,a,c),1===t?(t=1,!0===s&&(t|=8)):t=0,s=Ml(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ms(s),e}function Vl(e){if(!e)return Eo;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(s(171))}if(1===e.tag){var n=e.type;if(xo(n))return Lo(e,n,t)}return t}function ql(e,t,n,r,o,s,i,a,c){return(e=Gl(n,r,!0,e,0,s,0,a,c)).context=Vl(null),n=e.current,(s=Ds(r=tl(),o=nl(n))).callback=null!=t?t:null,Ns(n,s,o),e.current.lanes=o,yt(e,o,r),ol(e,r),e}function Hl(e,t,n,r){var o=t.current,s=tl(),i=nl(o);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ds(s,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ns(o,t,i))&&(rl(e,o,i,s),Ls(e,o,i)),i}function jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $l(e,t){zl(e,t),(e=e.alternate)&&zl(e,t)}_c=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)ba=!0;else{if(!(e.lanes&n||128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:Oa(t),hs();break;case 5:ii(t);break;case 1:xo(t.type)&&Fo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(vs,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ci,1&ci.current),t.flags|=128,null):n&t.child.childLanes?Ba(e,t,n):(Ao(ci,1&ci.current),null!==(e=ja(e,t,n))?e.sibling:null);Ao(ci,1&ci.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qa(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ci,ci.current),r)break;return null;case 22:case 23:return t.lanes=0,Ia(e,t,n)}return ja(e,t,n)}(e,t,n);ba=!!(131072&e.flags)}else ba=!1,ss&&1048576&t.flags&&es(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var o=Mo(t,Ro.current);Is(t,n),o=_i(null,t,r,e,o,n);var i=Ii();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xo(r)?(i=!0,Fo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ms(t),o.updater=Vs,t.stateNode=o,o._reactInternals=t,zs(t,r,e,n),t=Ra(null,t,r,!0,i,n)):(t.tag=0,ss&&i&&ts(t),Sa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return xl(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===P)return 14}return 2}(r),e=ys(r,e),o){case 0:t=Aa(null,t,r,e,n);break e;case 1:t=Ea(null,t,r,e,n);break e;case 11:t=Ta(null,t,r,e,n);break e;case 14:t=Ca(null,t,r,ys(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Aa(e,t,r,o=t.elementType===r?o:ys(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ea(e,t,r,o=t.elementType===r?o:ys(r,o),n);case 3:e:{if(Oa(t),null===e)throw Error(s(387));r=t.pendingProps,o=(i=t.memoizedState).element,xs(e,t),Bs(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Pa(e,t,r,n,o=ua(Error(s(423)),t));break e}if(r!==o){t=Pa(e,t,r,n,o=ua(Error(s(424)),t));break e}for(os=lo(t.stateNode.containerInfo.firstChild),rs=t,ss=!0,is=null,n=Xs(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hs(),r===o){t=ja(e,t,n);break e}Sa(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&us(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==i&&no(r,i)&&(t.flags|=32),ka(e,t),Sa(e,t,a,n),t.child;case 6:return null===e&&us(t),null;case 13:return Ba(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ks(t,null,r,n):Sa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ta(e,t,r,o=t.elementType===r?o:ys(r,o),n);case 7:return Sa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Sa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ao(vs,r._currentValue),r._currentValue=a,null!==i)if(ar(i.value,a)){if(i.children===o.children&&!Oo.current){t=ja(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var c=i.dependencies;if(null!==c){a=i.child;for(var l=c.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=Ds(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),_s(i.return,n,t),c.lanes|=n;break}l=l.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(s(341));a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),_s(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Sa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Is(t,n),r=r(o=ks(o)),t.flags|=1,Sa(e,t,r,n),t.child;case 14:return o=ys(r=t.type,t.pendingProps),Ca(e,t,r,o=ys(r.type,o),n);case 15:return _a(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ys(r,o),Ha(e,t),t.tag=1,xo(r)?(e=!0,Fo(t)):e=!1,Is(t,n),Hs(t,r,o),zs(t,r,o,n),Ra(null,t,r,!0,e,n);case 19:return qa(e,t,n);case 22:return Ia(e,t,n)}throw Error(s(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Jl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Kl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function eu(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if("function"==typeof o){var a=o;o=function(){var e=jl(i);a.call(e)}}Hl(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var s=r;r=function(){var e=jl(i);s.call(e)}}var i=ql(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=i,e[go]=i.current,Vr(8===e.nodeType?e.parentNode:e),dl(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=jl(c);a.call(e)}}var c=Gl(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=c,e[go]=c.current,Vr(8===e.nodeType?e.parentNode:e),dl((function(){Hl(t,c,n,r)})),c}(n,t,e,o,r);return jl(i)}Ql.prototype.render=Jl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));Hl(e,t,null,null)},Ql.prototype.unmount=Jl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl((function(){Hl(null,e,null,null)})),t[go]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xt.length&&0!==t&&t<xt[n].priority;n++);xt.splice(n,0,e),0===n&&Ft(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),ol(t,Ke()),!(6&Rc)&&(qc=Ke()+500,qo()))}break;case 13:dl((function(){var t=Os(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}})),$l(e,1)}},Tt=function(e){if(13===e.tag){var t=Os(e,134217728);null!==t&&rl(t,e,134217728,tl()),$l(e,134217728)}},Ct=function(e){if(13===e.tag){var t=nl(e),n=Os(e,t);null!==n&&rl(n,e,t,tl()),$l(e,t)}},_t=function(){return wt},It=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},Te=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=To(r);if(!o)throw Error(s(90));$(r),X(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=ul,Re=dl;var tu={usingClientEntryPoint:!1,Events:[bo,So,To,ke,Ae,ul]},nu={findFiberByHostInstance:wo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),st=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kl(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:T,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kl(e))throw Error(s(299));var n=!1,r="",o=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Gl(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Jl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return null===(e=je(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(s(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kl(e))throw Error(s(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,o,0,i,a),e[go]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ql(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(s(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(s(40));return!!e._reactRootContainer&&(dl((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=ul,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},64787:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(76277)},86969:(e,t,n)=>{"use strict";var r,o=(r=n(26166))&&"object"==typeof r&&"default"in r?r.default:r;function s(e){return s.warnAboutHMRDisabled&&(s.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),o.Children.only(e.children)}s.warnAboutHMRDisabled=!1},41716:(e,t,n)=>{"use strict";n(86969)},65860:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case a:case i:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case g:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=s,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=a,t.StrictMode=i,t.Suspense=p,t.SuspenseList=f,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===s},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===a},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===a||e===i||e===p||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},91272:(e,t,n)=>{"use strict";e.exports=n(65860)},61030:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.r(t),n.d(t,{BrowserRouter:()=>J,HashRouter:()=>Q,Link:()=>ne,MemoryRouter:()=>C,NavLink:()=>se,Prompt:()=>I,Redirect:()=>O,Route:()=>N,Router:()=>T,StaticRouter:()=>G,Switch:()=>V,generatePath:()=>R,matchPath:()=>D,useHistory:()=>j,useLocation:()=>z,useParams:()=>$,useRouteMatch:()=>Y,withRouter:()=>q});var s=n(26166),i=n(87468),a=n.n(i),c=n(27331),l=n(49481),u=n(26443),d=n(85085),p=n.n(d);function f(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n(91272);var h=n(78535),g=n.n(h),m=1073741823,y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},v=s.createContext||function(e,t){var n,r,i,c="__create-react-context-"+((y[i="__global_unique_id__"]=(y[i]||0)+1)+"__"),l=function(e){function n(){for(var t,n,r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return(t=e.call.apply(e,[this].concat(s))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}o(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((s=r)===(i=o)?0!==s||1/s==1/i:s!=s&&i!=i)?n=0:(n="function"==typeof t?t(r,o):m,0!=(n|=0)&&this.emitter.set(e.value,n))}var s,i},r.render=function(){return this.props.children},n}(s.Component);l.childContextTypes=((n={})[c]=a().object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){e.observedBits&n&&e.setState({value:e.getValue()})},e}o(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?m:t},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?m:e},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(s.Component);return u.contextTypes=((r={})[c]=a().object,r),{Provider:l,Consumer:u}},w=function(e){var t=v();return t.displayName=e,t},b=w("Router-History"),S=w("Router"),T=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}o(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return s.createElement(S.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},s.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(s.Component),C=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,c.createMemoryHistory)(t.props),t}return o(t,e),t.prototype.render=function(){return s.createElement(T,{history:this.history,children:this.props.children})},t}(s.Component),_=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(s.Component);function I(e){var t=e.message,n=e.when,r=void 0===n||n;return s.createElement(S.Consumer,null,(function(e){if(e||(0,l.A)(!1),!r||e.staticContext)return null;var n=e.history.block;return s.createElement(_,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var k={},A=1e4,E=0;function R(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(k[e])return k[e];var t=p().compile(e);return E<A&&(k[e]=t,E++),t}(e)(t,{pretty:!0})}function O(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return s.createElement(S.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,i=e.staticContext,a=o?r.push:r.replace,d=(0,c.createLocation)(t?"string"==typeof n?R(n,t.params):(0,u.A)({},n,{pathname:R(n.pathname,t.params)}):n);return i?(a(d),null):s.createElement(_,{onMount:function(){a(d)},onUpdate:function(e,t){var n=(0,c.createLocation)(t.to);(0,c.locationsAreEqual)(n,(0,u.A)({},d,{key:n.key}))||a(d)},to:n})}))}var P={},M=1e4,x=0;function D(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,s=void 0!==o&&o,i=n.strict,a=void 0!==i&&i,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=P[n]||(P[n]={});if(r[e])return r[e];var o=[],s={regexp:p()(e,o,t),keys:o};return x<M&&(r[e]=s,x++),s}(n,{end:s,strict:a,sensitive:l}),o=r.regexp,i=r.keys,c=o.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),f=e===u;return s&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var N=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.createElement(S.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?D(n.pathname,e.props):t.match,o=(0,u.A)({},t,{location:n,match:r}),i=e.props,a=i.children,c=i.component,d=i.render;return Array.isArray(a)&&function(e){return 0===s.Children.count(e)}(a)&&(a=null),s.createElement(S.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?s.createElement(c,o):d?d(o):null:"function"==typeof a?a(o):null)}))},t}(s.Component);function L(e){return"/"===e.charAt(0)?e:"/"+e}function F(e,t){if(!e)return t;var n=L(e);return 0!==t.pathname.indexOf(n)?t:(0,u.A)({},t,{pathname:t.pathname.substr(n.length)})}function B(e){return"string"==typeof e?e:(0,c.createPath)(e)}function W(e){return function(){(0,l.A)(!1)}}function U(){}var G=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return U},t.handleBlock=function(){return U},t}o(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,o=void 0===r?"":r,s=n.context,i=void 0===s?{}:s;i.action=t,i.location=function(e,t){return e?(0,u.A)({},t,{pathname:L(e)+t.pathname}):t}(o,(0,c.createLocation)(e)),i.url=B(i.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,o=void 0===r?{}:r,i=e.location,a=void 0===i?"/":i,l=f(e,["basename","context","location"]),d={createHref:function(e){return L(n+B(e))},action:"POP",location:F(n,(0,c.createLocation)(a)),push:this.handlePush,replace:this.handleReplace,go:W(),goBack:W(),goForward:W(),listen:this.handleListen,block:this.handleBlock};return s.createElement(T,(0,u.A)({},l,{history:d,staticContext:o}))},t}(s.Component),V=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.createElement(S.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,o=e.props.location||t.location;return s.Children.forEach(e.props.children,(function(e){if(null==r&&s.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?D(o.pathname,(0,u.A)({},e.props,{path:i})):t.match}})),r?s.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(s.Component);function q(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=f(t,["wrappedComponentRef"]);return s.createElement(S.Consumer,null,(function(t){return t||(0,l.A)(!1),s.createElement(e,(0,u.A)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,g()(n,e)}var H=s.useContext;function j(){return H(b)}function z(){return H(S).location}function $(){var e=H(S).match;return e?e.params:{}}function Y(e){var t=z(),n=H(S).match;return e?D(t.pathname,e):n}var J=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,c.createBrowserHistory)(t.props),t}return o(t,e),t.prototype.render=function(){return s.createElement(T,{history:this.history,children:this.props.children})},t}(s.Component),Q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,c.createHashHistory)(t.props),t}return o(t,e),t.prototype.render=function(){return s.createElement(T,{history:this.history,children:this.props.children})},t}(s.Component),K=function(e,t){return"function"==typeof e?e(t):e},X=function(e,t){return"string"==typeof e?(0,c.createLocation)(e,null,null,t):e},Z=function(e){return e},ee=s.forwardRef;void 0===ee&&(ee=Z);var te=ee((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=f(e,["innerRef","navigate","onClick"]),a=i.target,c=(0,u.A)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=Z!==ee&&t||n,s.createElement("a",c)})),ne=ee((function(e,t){var n=e.component,r=void 0===n?te:n,o=e.replace,i=e.to,a=e.innerRef,d=f(e,["component","replace","to","innerRef"]);return s.createElement(S.Consumer,null,(function(e){e||(0,l.A)(!1);var n=e.history,p=X(K(i,e.location),e.location),f=p?n.createHref(p):"",h=(0,u.A)({},d,{href:f,navigate:function(){var t=K(i,e.location),r=(0,c.createPath)(e.location)===(0,c.createPath)(X(t));(o||r?n.replace:n.push)(t)}});return Z!==ee?h.ref=t||a:h.innerRef=a,s.createElement(r,h)}))})),re=function(e){return e},oe=s.forwardRef;void 0===oe&&(oe=re);var se=oe((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,a=e.activeStyle,c=e.className,d=e.exact,p=e.isActive,h=e.location,g=e.sensitive,m=e.strict,y=e.style,v=e.to,w=e.innerRef,b=f(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s.createElement(S.Consumer,null,(function(e){e||(0,l.A)(!1);var n=h||e.location,o=X(K(v,n),n),f=o.pathname,S=f&&f.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=S?D(n.pathname,{path:S,exact:d,sensitive:g,strict:m}):null,C=!!(p?p(T,n):T),_="function"==typeof c?c(C):c,I="function"==typeof y?y(C):y;C&&(_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(_,i),I=(0,u.A)({},I,a));var k=(0,u.A)({"aria-current":C&&r||null,className:_,style:I,to:o},b);return re!==oe?k.ref=t||w:k.innerRef=w,s.createElement(ne,k)}))}))},43705:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=w.prototype=new v;b.constructor=w,g(b,y.prototype),b.isPureReactComponent=!0;var S=Array.isArray,T=Object.prototype.hasOwnProperty,C={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var o,s={},i=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)T.call(t,o)&&!_.hasOwnProperty(o)&&(s[o]=t[o]);var c=arguments.length-2;if(1===c)s.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===s[o]&&(s[o]=c[o]);return{$$typeof:n,type:e,key:i,ref:a,props:s,_owner:C.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,s,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return i=i(c=e),e=""===s?"."+E(c,0):s,S(i)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),R(i,t,o,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(A,"$&/")+"/")+e)),t.push(i)),1;if(c=0,s=""===s?".":s+":",S(e))for(var l=0;l<e.length;l++){var u=s+E(a=e[l],l);c+=R(a,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(a=e.next()).done;)c+=R(a=a.value,t,o,u=s+E(a,l++),i);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},x={transition:null},D={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:x,ReactCurrentOwner:C};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=i,t.PureComponent=w,t.StrictMode=s,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),s=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=C.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)T.call(t,l)&&!_.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:s,ref:i,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=x.transition;x.transition={};try{e()}finally{x.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.2.0"},26166:(e,t,n)=>{"use strict";e.exports=n(43705)},84577:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<s(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var a=2*(r+1)-1,c=e[a],l=a+1,u=e[l];if(0>s(c,n))l<o&&0>s(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[a]=n,r=a);else{if(!(l<o&&0>s(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}var l=[],u=[],d=1,p=null,f=3,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function S(e){if(m=!1,b(e),!g)if(null!==r(l))g=!0,x(T);else{var t=r(u);null!==t&&D(S,t.startTime-e)}}function T(e,n){g=!1,m&&(m=!1,v(k),k=-1),h=!0;var s=f;try{for(b(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!R());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var a=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?p.callback=a:p===r(l)&&o(l),b(n)}else o(l);p=r(l)}if(null!==p)var c=!0;else{var d=r(u);null!==d&&D(S,d.startTime-n),c=!1}return c}finally{p=null,f=s,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,_=!1,I=null,k=-1,A=5,E=-1;function R(){return!(t.unstable_now()-E<A)}function O(){if(null!==I){var e=t.unstable_now();E=e;var n=!0;try{n=I(!0,e)}finally{n?C():(_=!1,I=null)}}else _=!1}if("function"==typeof w)C=function(){w(O)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,M=P.port2;P.port1.onmessage=O,C=function(){M.postMessage(null)}}else C=function(){y(O,0)};function x(e){I=e,_||(_=!0,C())}function D(e,n){k=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,x(T))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,s){var i=t.unstable_now();switch(s="object"==typeof s&&null!==s&&"number"==typeof(s=s.delay)&&0<s?i+s:i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>i?(e.sortIndex=s,n(u,e),null===r(l)&&e===r(u)&&(m?(v(k),k=-1):m=!0,D(S,s-i))):(e.sortIndex=a,n(l,e),g||h||(g=!0,x(T))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},82300:(e,t,n)=>{"use strict";e.exports=n(84577)},98670:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cg:()=>a,Cl:()=>s,Tt:()=>i,aN:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,s=arguments.length,i=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,o++)r[o]=s[i];return r}},34840:(e,t,n)=>{var r=n(55671),o=n(50700),s=o;s.v1=r,s.v4=o,e.exports=s},38529:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},92072:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},55671:(e,t,n)=>{var r,o,s=n(92072),i=n(38529),a=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==p){var f=s();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=o=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,m=h-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||h>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,c=g,o=p;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;u[l++]=y>>>24&255,u[l++]=y>>>16&255,u[l++]=y>>>8&255,u[l++]=255&y;var v=h/4294967296*1e4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=p>>>8|128,u[l++]=255&p;for(var w=0;w<6;++w)u[l+w]=d[w];return t||i(u)}},50700:(e,t,n)=>{var r=n(92072),o=n(38529);e.exports=function(e,t,n){var s=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;a<16;++a)t[s+a]=i[a];return t||o(i)}},7547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=p(n(38066)),o=p(n(61832)),s=p(n(58397)),i=p(n(8830)),a=p(n(52892)),c=p(n(44179)),l=p(n(74353)),u=p(n(79418)),d=p(n(88132));function p(e){return e&&e.__esModule?e:{default:e}}},35155:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,s,i){return r((a=r(r(t,e),r(o,i)))<<(c=s)|a>>>32-c,n);var a,c}function s(e,t,n,r,s,i,a){return o(t&n|~t&r,e,t,s,i,a)}function i(e,t,n,r,s,i,a){return o(t&r|n&~r,e,t,s,i,a)}function a(e,t,n,r,s,i,a){return o(t^n^r,e,t,s,i,a)}function c(e,t,n,r,s,i,a){return o(n^(t|~r),e,t,s,i,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,l=-271733879,u=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const n=o,p=l,f=u,h=d;o=s(o,l,u,d,e[t],7,-680876936),d=s(d,o,l,u,e[t+1],12,-389564586),u=s(u,d,o,l,e[t+2],17,606105819),l=s(l,u,d,o,e[t+3],22,-1044525330),o=s(o,l,u,d,e[t+4],7,-176418897),d=s(d,o,l,u,e[t+5],12,1200080426),u=s(u,d,o,l,e[t+6],17,-1473231341),l=s(l,u,d,o,e[t+7],22,-45705983),o=s(o,l,u,d,e[t+8],7,1770035416),d=s(d,o,l,u,e[t+9],12,-1958414417),u=s(u,d,o,l,e[t+10],17,-42063),l=s(l,u,d,o,e[t+11],22,-1990404162),o=s(o,l,u,d,e[t+12],7,1804603682),d=s(d,o,l,u,e[t+13],12,-40341101),u=s(u,d,o,l,e[t+14],17,-1502002290),l=s(l,u,d,o,e[t+15],22,1236535329),o=i(o,l,u,d,e[t+1],5,-165796510),d=i(d,o,l,u,e[t+6],9,-1069501632),u=i(u,d,o,l,e[t+11],14,643717713),l=i(l,u,d,o,e[t],20,-373897302),o=i(o,l,u,d,e[t+5],5,-701558691),d=i(d,o,l,u,e[t+10],9,38016083),u=i(u,d,o,l,e[t+15],14,-660478335),l=i(l,u,d,o,e[t+4],20,-405537848),o=i(o,l,u,d,e[t+9],5,568446438),d=i(d,o,l,u,e[t+14],9,-1019803690),u=i(u,d,o,l,e[t+3],14,-187363961),l=i(l,u,d,o,e[t+8],20,1163531501),o=i(o,l,u,d,e[t+13],5,-1444681467),d=i(d,o,l,u,e[t+2],9,-51403784),u=i(u,d,o,l,e[t+7],14,1735328473),l=i(l,u,d,o,e[t+12],20,-1926607734),o=a(o,l,u,d,e[t+5],4,-378558),d=a(d,o,l,u,e[t+8],11,-2022574463),u=a(u,d,o,l,e[t+11],16,1839030562),l=a(l,u,d,o,e[t+14],23,-35309556),o=a(o,l,u,d,e[t+1],4,-1530992060),d=a(d,o,l,u,e[t+4],11,1272893353),u=a(u,d,o,l,e[t+7],16,-155497632),l=a(l,u,d,o,e[t+10],23,-1094730640),o=a(o,l,u,d,e[t+13],4,681279174),d=a(d,o,l,u,e[t],11,-358537222),u=a(u,d,o,l,e[t+3],16,-722521979),l=a(l,u,d,o,e[t+6],23,76029189),o=a(o,l,u,d,e[t+9],4,-640364487),d=a(d,o,l,u,e[t+12],11,-421815835),u=a(u,d,o,l,e[t+15],16,530742520),l=a(l,u,d,o,e[t+2],23,-995338651),o=c(o,l,u,d,e[t],6,-198630844),d=c(d,o,l,u,e[t+7],10,1126891415),u=c(u,d,o,l,e[t+14],15,-1416354905),l=c(l,u,d,o,e[t+5],21,-57434055),o=c(o,l,u,d,e[t+12],6,1700485571),d=c(d,o,l,u,e[t+3],10,-1894986606),u=c(u,d,o,l,e[t+10],15,-1051523),l=c(l,u,d,o,e[t+1],21,-2054922799),o=c(o,l,u,d,e[t+8],6,1873313359),d=c(d,o,l,u,e[t+15],10,-30611744),u=c(u,d,o,l,e[t+6],15,-1560198380),l=c(l,u,d,o,e[t+13],21,1309151649),o=c(o,l,u,d,e[t+4],6,-145523070),d=c(d,o,l,u,e[t+11],10,-1120210379),u=c(u,d,o,l,e[t+2],15,718787259),l=c(l,u,d,o,e[t+9],21,-343485551),o=r(o,n),l=r(l,p),u=r(u,f),d=r(d,h)}return[o,l,u,d]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},99688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},52892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},88132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(74353))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},48180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},47454:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},73118:(e,t)=>{"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const s=e.length/4+2,i=Math.ceil(s/16),a=new Array(i);for(let t=0;t<i;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];a[t]=n}a[i-1][14]=8*(e.length-1)/Math.pow(2,32),a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const s=new Uint32Array(80);for(let t=0;t<16;++t)s[t]=a[e][t];for(let e=16;e<80;++e)s[e]=r(s[e-3]^s[e-8]^s[e-14]^s[e-16],1);let i=o[0],c=o[1],l=o[2],u=o[3],d=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),a=r(i,5)+n(o,c,l,u)+d+t[o]+s[e]>>>0;d=u,u=l,l=r(c,30)>>>0,c=i,i=a}o[0]=o[0]+i>>>0,o[1]=o[1]+c>>>0,o[2]=o[2]+l>>>0,o[3]=o[3]+u>>>0,o[4]=o[4]+d>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},79418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=i;var r,o=(r=n(74353))&&r.__esModule?r:{default:r};const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function i(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}t.default=function(e,t=0){const n=i(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},38066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(47454))&&r.__esModule?r:{default:r},s=n(79418);let i,a,c=0,l=0;t.default=function(e,t,n){let r=t&&n||0;const u=t||new Array(16);let d=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==p){const t=e.random||(e.rng||o.default)();null==d&&(d=i=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=a=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:l+1;const g=f-c+(h-l)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||f>c)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=f,l=h,a=p,f+=122192928e5;const m=(1e4*(268435455&f)+h)%4294967296;u[r++]=m>>>24&255,u[r++]=m>>>16&255,u[r++]=m>>>8&255,u[r++]=255&m;const y=f/4294967296*1e4&268435455;u[r++]=y>>>8&255,u[r++]=255&y,u[r++]=y>>>24&15|16,u[r++]=y>>>16&255,u[r++]=p>>>8|128,u[r++]=255&p;for(let e=0;e<6;++e)u[r+e]=d[e];return t||(0,s.unsafeStringify)(u)}},61832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(341)),o=s(n(35155));function s(e){return e&&e.__esModule?e:{default:e}}var i=(0,r.default)("v3",48,o.default);t.default=i},341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,i,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,s.default)(r)),16!==(null===(c=r)||void 0===c?void 0:c.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(r),l.set(e,r.length),l=n(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,i){a=a||0;for(let e=0;e<16;++e)i[a+e]=l[e];return i}return(0,o.unsafeStringify)(l)}try{r.name=e}catch(e){}return r.DNS=i,r.URL=a,r};var r,o=n(79418),s=(r=n(88132))&&r.__esModule?r:{default:r};const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=i;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},58397:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(99688)),o=i(n(47454)),s=n(79418);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const i=(e=e||{}).random||(e.rng||o.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return(0,s.unsafeStringify)(i)}},8830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(341)),o=s(n(73118));function s(e){return e&&e.__esModule?e:{default:e}}var i=(0,r.default)("v5",80,o.default);t.default=i},74353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(48180))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},44179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(74353))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},76442:function(){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,s="ArrayBuffer"in e;if(s)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=function(e){return e&&DataView.prototype.isPrototypeOf(e)},c=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[d(e)]},h.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},h.prototype.set=function(e,t){this.map[d(e)]=p(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},w.call(b.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var u=[301,302,303,307,308];T.redirect=function(e,t){if(-1===u.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=b,e.Response=T,e.fetch=function(e,t){return new Promise((function(n,o){var s=new b(e,t),i=new XMLHttpRequest;i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new h,e.split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;n(new T(o,r))},i.onerror=function(){o(new TypeError("Network request failed"))},i.ontimeout=function(){o(new TypeError("Network request failed"))},i.open(s.method,s.url,!0),"include"===s.credentials&&(i.withCredentials=!0),"responseType"in i&&r&&(i.responseType="blob"),s.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),i.send(void 0===s._bodyInit?null:s._bodyInit)}))},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(s&&r&&a(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!s||!ArrayBuffer.prototype.isPrototypeOf(e)&&!c(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=g(this);if(e)return e;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?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=m(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),l.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function S(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function T(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},26443:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},49481:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=!0,o="Invariant failed";function s(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,s=n?"".concat(o,": ").concat(n):o;throw new Error(s)}}},67524:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>D,__assign:()=>s,__asyncDelegator:()=>I,__asyncGenerator:()=>_,__asyncValues:()=>k,__await:()=>C,__awaiter:()=>h,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>x,__classPrivateFieldSet:()=>M,__createBinding:()=>m,__decorate:()=>a,__disposeResources:()=>L,__esDecorate:()=>l,__exportStar:()=>y,__extends:()=>o,__generator:()=>g,__importDefault:()=>O,__importStar:()=>R,__makeTemplateObject:()=>A,__metadata:()=>f,__param:()=>c,__propKey:()=>d,__read:()=>w,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>b,__spreadArray:()=>T,__spreadArrays:()=>S,__values:()=>v,default:()=>F});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,s=arguments.length,i=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,o,s){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=r.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p=!1,f=n.length-1;f>=0;f--){var h={};for(var g in r)h[g]="access"===g?{}:r[g];for(var g in r.access)h.access[g]=r.access[g];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(e||null))};var m=(0,n[f])("accessor"===c?{get:d.get,set:d.set}:d[l],h);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=i(m.get))&&(d.get=a),(a=i(m.set))&&(d.set=a),(a=i(m.init))&&o.unshift(a)}else(a=i(m))&&("field"===c?o.unshift(a):d[l]=a)}u&&Object.defineProperty(u,r.name,d),p=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,o++)r[o]=s[i];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),s=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),r[Symbol.asyncIterator]=function(){return this},r;function i(e,t){o[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=o[e](t)).value instanceof C?Promise.resolve(n.value.v).then(c,l):u(s[0][2],n)}catch(e){u(s[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function I(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:o?o(t):t}:o}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return E(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function x(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(o,(function(e){return t(e),o()}))}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}const F={__extends:o,__assign:s,__rest:i,__decorate:a,__param:c,__metadata:f,__awaiter:h,__generator:g,__createBinding:m,__exportStar:y,__values:v,__read:w,__spread:b,__spreadArrays:S,__spreadArray:T,__await:C,__asyncGenerator:_,__asyncDelegator:I,__asyncValues:k,__makeTemplateObject:A,__importStar:R,__importDefault:O,__classPrivateFieldGet:P,__classPrivateFieldSet:M,__classPrivateFieldIn:x,__addDisposableResource:D,__disposeResources:L}},84639:e=>{"use strict";e.exports={r:"2.35.2080"}}}]);
//# sourceMappingURL=vendor.js.map