res-1.cdn.office.net
Open in
urlscan Pro
2600:140b:1a00:b::17c8:3704
Public Scan
URL:
https://res-1.cdn.office.net/files/odsp-web-prod_2023-10-06.006/spserviceworker.js
Submission: On October 20 via manual from JP — Scanned from JP
Submission: On October 20 via manual from JP — Scanned from JP
Form analysis
0 forms found in the DOMText Content
/*! For license information please see spserviceworker.js.LICENSE.txt */ (()=>{var e=[(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>o,c:()=>s,d:()=>i,e:()=>r,f:()=>l,g:()=>u,h:()=>f,i:()=>d,j:()=>c});const a=self.location.protocol+"//"+self.location.host,i=new URL(self.location.href),r=i.searchParams.get("userId");var o;(function(e){e.NavigationPreload="Service-Worker-Navigation-Preload",e.ApplicationId="X-Service-Worker-Application-Id",e.InPlaceNav="X-Service-Worker-In-Place-Nav",e.NavPrefetch="X-RequestPrefetchLink",e.LkgPrefetch="X-RequestPrefetchData"})(o||(o={}));const s="/_api/sw-loopback/",c={active:!0},d={active:!1},l={active:!0},u={active:!0},f={active:!0}} ,(e,t,n)=>{var a=n(41),i="object"==typeof self&&self&&self.Object===Object&&self,r=a||i||Function("return this")();e.exports=r} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>l,b:()=>d,c:()=>c});var a,i=n(28),r=n(134),o=n(11);(function(e){e.Name="SW.Telemetry",e.StoreName="Telemetry",e.StoreKeyPath="key",e.LastModifiedIndex="lastModified"})(a||(a={}));class s extends o.b{constructor(){super(a.Name,1)}getEvents(){const e=this.store(a.StoreName);return super.getRange(a.LastModifiedIndex,!0,e,IDBKeyRange.bound(Date.now()-6048e5,Date.now()))}logEvent(e){const t=this.store(a.StoreName,o.a.ReadWrite),n={key:`${e.id}-${e.type}`,lastModified:Date.now(),value:e};return super.put(n,t)}remove(e){const t=this.store(a.StoreName,o.a.ReadWrite);return super.deleteMany(e.map(e=>e.key),t)}upgrade(e,t){this.createStore(a.StoreName,a.StoreKeyPath,e).createIndex(a.LastModifiedIndex,a.LastModifiedIndex)}}function c(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}function d(e,t){const n=self._telemetry.startQos({start:e,event:t});return e=>{const a=n.then(t=>t(e));return t&&t.waitUntil(a),a}}class l{constructor(){this._debouncedPostDataToClient=this._getDebouncedPostDataToClient()}startQos(e){let t,n,a=e;e.start&&(a=e.start,n=e.event),t="string"==typeof a?{name:a}:a;const o=i.a.generate(),s={qos:t,type:r.a.start,id:o},c=n&&(n.resultingClientId||n.clientId);return this._logQosEvent({qos:s,clientId:c}).then(()=>e=>{e.extraData=Object.assign(Object.assign({},e.extraData),{name:t.name,id:o});const n={qos:e,type:r.a.end,id:o};return this._logQosEvent({qos:n,clientId:c})})}_getDebouncedPostDataToClient(){let e;return t=>{const n=t.getData;return t.getData=()=>n(),e=e||self._postMessageController.postDataToClient(t),Promise.race([e.then(()=>t.cleanupData()),(a=5e3,new Promise(e=>{self.setTimeout(()=>{e()},a)}))]).then(()=>{e=void 0}).catch(t=>{console.log("postDataToClient error: ",t),e=void 0});var a}}_sendTelemetry(e){let t=[];const n=new s;return n.open().then(()=>{this._debouncedPostDataToClient({clientId:e,getData:()=>n.getEvents().then(e=>(t=e,{qosEvents:e.map(e=>e.value),isQos:!0})),cleanupData:()=>t.length>0?n.remove(t):Promise.resolve()})})}_logQosEvent(e){const{qos:t,clientId:n}=e,a=new s;return a.open().then(()=>{a.logEvent(t).then(()=>{if(n)return this._sendTelemetry(n)})})}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n(0);function i(e){if(!e)return"/";const t=new URL(e.toLocaleLowerCase(),a.a).pathname;return t.endsWith("/")&&t.length>1?t.substring(0,t.length-1):t}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>c,b:()=>d});var a=n(6),i=n(9),r=n(8);function o(e){var t=e||void 0;return(0,i.a)((0,i.a)({error:e&&(e.message||e.name),resultCode:t&&s(t)||e&&e.name||"Unknown"},t?(0,i.a)({},"boolean"==typeof t.isExpected?{resultType:t.isExpected?r.a.ExpectedFailure:r.a.Failure}:{resultType:r.a.Failure}):{resultType:r.a.Success}),{extraData:(0,i.a)({stack:e&&e.stack},t?(0,i.a)((0,i.a)((0,i.a)({},"object"==typeof t.innerError?{innerError:o(t.innerError)}:{}),"string"==typeof t.correlationId?{correlationId:t.correlationId}:{}),"object"==typeof t.extraData?(0,i.a)({},t.extraData):{}):{})})}function s(e){var t=[];return"object"==typeof e.extraData&&e.extraData&&void 0!==e.extraData.status&&t.push("[".concat(e.extraData.status,"]")),"string"==typeof e.code&&t.push("".concat(e.code)),t.join(" ")}function c(e,t,n){e&&!e.ended&&(e((function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(e,t){return(0,i.a)((0,i.a)((0,i.a)((0,i.a)({},e),t),e.extraMetrics||t.extraMetrics?{extraMetrics:(0,i.a)((0,i.a)({},e.extraMetrics||{}),t.extraMetrics||{})}:{}),e.extraData||t.extraData?{extraData:(0,i.a)((0,i.a)({},e.extraData||{}),t.extraData||{})}:{})},e)})(t,{extraData:n})),e.ended=!0)}function d(e,t,n,i,r){c(e,o(t instanceof a.a?t:new a.a({message:(null==t?void 0:t.message)||n||"(Unknown error)",innerError:t,code:n,isExpected:i})),r)}} ,(e,t,n)=>{var a=n(77),i=n(82);e.exports=function(e,t){var n=i(e,t);return a(n)?n:void 0}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n(9),i=function(e){void 0===e&&(e={});var t=new Error(e.message||e.innerError&&e.innerError.message);for(var n in this.message=t.message,this.innerError=e.innerError,this.stack=t.stack,this.name=t.name,this)Object.prototype.hasOwnProperty.call(this,n)&&(t[n]=this[n]);var a=Object.getPrototypeOf(this);if(Error.captureStackTrace&&Error.captureStackTrace(t,a),Object.setPrototypeOf)return Object.setPrototypeOf(t,a),t};Object.setPrototypeOf&&(i.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(i,Error));var r=(function(e){function t(t){var n=e.call(this,t)||this;n.name="ApiError";var i=t.innerError,r=t.wrapErrorCode,o=i||void 0,s=o?(0,a.a)((0,a.a)((0,a.a)((0,a.a)((0,a.a)({},"string"==typeof o.correlationId?{correlationId:o.correlationId}:{}),"boolean"==typeof o.isExpected?{isExpected:o.isExpected}:{}),"string"==typeof o.name?{code:o.name}:{}),"string"==typeof o.code?{code:o.code}:{}),"object"==typeof o.extraData?{extraData:o.extraData}:{}):{},c=t.correlationId,d=void 0===c?s.correlationId:c,l=t.isExpected,u=void 0===l?s.isExpected:l,f=t.extraData;return n.correlationId=d,n.isExpected=!!u,n.code=r&&s.code&&t.code&&"".concat(t.code," (").concat(s.code,")")||t.code||s.code||"",n.extraData=(0,a.a)((0,a.a)({},s.extraData||{}),f||{}),n}return(0,a.c)(t,e),t})(i)} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a,i=n(143);(function(e){e[e.StartDocument=0]="StartDocument",e[e.Head=1]="Head",e[e.Body=2]="Body",e[e.End=3]="End"})(a||(a={}));class r{constructor(e){this.readableStream=new ReadableStream(this),this._position=a.StartDocument,this.nonce=e||Math.random().toString(36).substring(2)}static isRtl(e){return this._rtl.test(e)}static dir(e){return this.isRtl(e)?"rtl":"ltr"}static htmlEncode(e,t){return(e||"").replace(r._specialChars,t?r._jsEncode:r._entityEncode)}get position(){return this._position}get durations(){return this._durations}static _encode(e){return r._encoder.encode(e.join(""))}static _entityEncode(e){return`&#${e.charCodeAt(0)};`}static _jsEncode(e){return`\\x${e.charCodeAt(0).toString(16)}`}start(e){this._controller=e,this._html=[],this._chunksWritten=0,this._startTime=performance.now(),this._durations=[]}send(e){var t;try{null===(t=this._controller)||void 0===t||t.enqueue(e)}catch(e){}}sendString(e){this.send(r._encoder.encode(e))}write(e){this._html.push(`${e}\n`)}flush(){const e=performance.now(),t=Math.round(e-this._startTime);this._html.push(`\x3c!--EOC${this._chunksWritten++}(${t}ms)--\x3e`),this.send(r._encode(this._html)),this._durations.push(t),this._html=[],this._startTime=e}close(){try{this._controller.close()}catch(e){}}startHtml(e){const t=r.dir(e);this._html.push(`<!DOCTYPE html>\n<html lang="${e}" dir="${t}"><head>\n`),this._position=a.Head}endHtml(){this._html.push("</body></html>"),this.flush(),this._position=a.End}title(e){this._html.push(`<title>${r.htmlEncode(e)}</title>\n`)}startBody(){this._html.push('</head><body class="ms-font-m">\n'),this._position=a.Body}meta(e,t){this._html.push(`<meta name="${e}" content="${t}">\n`)}charset(e){this._html.push(`<meta charset="${e||"UTF-8"}">`)}viewport(e){this.meta("viewport",e||"width=device-width,initial-scale=1")}generator(e){this.meta("GENERATOR",e)}manifest(e){this._html.push(`<link rel="manifest" crossOrigin="use-credentials" href="${e}">\n`)}shortcutIcon(e){this._html.push(`<link rel="shortcut icon" href="${e}" type="image/vnd.microsoft.icon" id="favicon">\n`)}preconnect(e){this._html.push(`<link rel="preconnect" href="${e}" crossorigin>`)}preload(e,t,n,a){this._html.push(`<link rel="preload" href="${e}" as="${t||i.a.Script}"`+(a?' integrity="'+a+'"':"")+(n?' type="'+n+'"':"")+" crossorigin>\n")}script(e,t,n){this._html.push(`<script src="${e}" nonce="${this.nonce}"${n?"":" crossorigin"}${t?` onerror="${t}"`:""}><\/script>\n`)}generateScriptBlock(e,t,n,a){let i=`\n var script = document.createElement('script');\n script.src='${e}';\n script.async = false;\n script.setAttribute('nonce', '${this.nonce}');`;return n||(i+="script.setAttribute('crossorigin', '');"),t&&(i+=`script.setAttribute('onerror', "${t}");`),a&&(i+=`script.setAttribute('onload', "${a}");`),i+="document.head.appendChild(script);",i}bundle(e,t){this._html.push(`<script type="webbundle">{"source":"${e}","resources":[${t.map(e=>`"${e}"`).join(",")}]}<\/script>\n`)}script2(e,t,n,a){this._html.push(`<script src="${e}" nonce="${this.nonce}"`),t&&this._html.push(` id="${t}"`),n&&this._html.push(" async"),this._writeAttrs(a),this._html.push(" crossorigin><\/script>\n")}scriptStart(e){this._html.push(`<script nonce="${this.nonce}"`),this._writeAttrs(e),this._html.push(">")}scriptEnd(){this._html.push("<\/script>\n")}xssStringify(e){return JSON.stringify(e||null).replace(r._ltChar,"\\u003c")}inlineScript(e,t){this._html.push(`<script nonce="${this.nonce}">${t?"":"(()=>{"}${e}${t?"":"})()"}<\/script>\n`)}inlineScript2(e,t){this.scriptStart(t),this._html.push(e),this.scriptEnd()}copyStream(e){return new Promise(t=>{const n=e.getReader(),a=()=>{n.read().then(e=>{e.done?t():(this._controller.enqueue(e.value),a())})};a()})}sendResponse(e){return this.copyStream(e.body)}_writeAttrs(e){const t=e&&e.length||0;for(let n=0;n<t;n++){const t=e[n];this._html.push(` ${t[0]}`),"string"==typeof t[1]&&this._html.push(`="${t[1]}"`)}}}r._encoder=new TextEncoder,r._rtl=/^(ar|ara|arc|ae|ave|egy|he|heb|nqo|pal|phn|sam|syc|syr|fa|per|fas|ku|kur|ur|urd)(-[A-Z]{2})?$/,r._specialChars=/[\x26\x0A\<>'"]/g,r._ltChar=/</g} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>M.a});var a={};n.r(a),n.d(a,{optionalDiagnostic:()=>_,requiredDiagnostic:()=>m,requiredService:()=>h});var i=n(9);var r=(function(){function e(e){this._items=[],this._maxSize=e}return Object.defineProperty(e.prototype,"isFull",{get:function(){return this._items.length>=this._maxSize},enumerable:!1,configurable:!0}),e.prototype.getAll=function(){return this._items.slice()},e.prototype.push=function(e){this._items.length>=this._maxSize&&(this._items.length=0),this._items.push(e)},e})(),o=(function(){function e(e){if(e<=0)throw new Error("Size must be positive");this._size=e,this._buffer=new Array(e),this._length=0,this._head=-1}return e.prototype.push=function(e){this._length<this._size&&this._length++,this._head++,this._head===this._size&&(this._head=0),this._buffer[this._head]=e},e.prototype.popOldest=function(){if(0===this._length)return null;var e=(this._head-this._length+1+this._size)%this._size;return this._length--,this._buffer[e]},Object.defineProperty(e.prototype,"isFull",{get:function(){return this._length>=this._size},enumerable:!1,configurable:!0}),e.prototype.getAll=function(){var e=this._head+1;return this._length<this._size?this._buffer.slice(0,e):(0,i.f)((0,i.f)([],this._buffer.slice(e),!0),this._buffer.slice(0,e),!0)},e})(),s=n(135),c=!s.a.isActivated("115330F7-9AB5-4692-80AB-7401BE3808AA","03/17/2022","Events are stored in a Circular Buffer instead of an array");var d=(function(){function e(){this._handlers=[],this._buffer=c?new o(500):new r(500),this._hasBufferOverflown=!1}return Object.defineProperty(e.prototype,"startDate",{get:function(){return window.performance&&window.performance.timing&&window.performance.timing.navigationStart?new Date(window.performance.timing.navigationStart):new Date},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startTime",{get:function(){return this.startDate.getTime()},enumerable:!1,configurable:!0}),e.prototype.getTime=function(){return(new Date).getTime()},e.prototype.cleanString=function(e){return e},e.prototype.addLogHandler=function(e){var t=this._handlers,n=this._buffer;return t.push(e),n.getAll()},e.prototype.removeLogHandler=function(e){for(var t=this._handlers,n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}},e.prototype.logEvent=function(e,t){var n,a,r=this._buffer,o=this._handlers,s=Object.freeze({data:(n=e.data,a=[],"object"!=typeof n?n:(function e(t){var n=null;return t&&(n=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t)),Object.keys(t).forEach(function(i){var r=t[i];if("object"==typeof r){if(-1!==a.indexOf(r))throw new Error("Cannot perform DeepCopy() because a circular reference was encountered, object: ".concat(t,", ")+"property: ".concat(i));a.push(r),n[i]=e(r),a.pop()}else n[i]=r})),n})(n)),context:(0,i.a)({},e.context),id:e.id,critical:e.critical,endTime:e.endTime,eventName:e.eventName,shortEventName:e.shortEventName,parentId:e.parentId,startTime:e.startTime,eventType:t,metadata:e.metadata,vector:e.vector,isEventTypePrefixingDisabled:e.isEventTypePrefixingDisabled}),c=r.isFull;r.push(s),!this._hasBufferOverflown&&c&&(this._hasBufferOverflown=!0,0===o.length&&f(new Error("Logging buffer overflow hit before any logging handler was registered")));for(var d=0;d<o.length;d++)try{o[d](s)}catch(e){f(e)}},e.prototype.isFeatureEnabled=function(e){return!0},e.prototype.addFeatureEnabler=function(e){},e.prototype.removeFeatureEnabler=function(e){},e.prototype.getStack=function(){var e;try{var t=window;t.______ExpectedError______&&t.______ExpectedError______()}catch(t){e=t}return e&&e.stack||void 0},e})();function l(){return new d}var u="undefined"!=typeof window?window.ODSP_TELEMETRY_MANAGER=window.ODSP_TELEMETRY_MANAGER||l():"undefined"!=typeof self?self.ODSP_TELEMETRY_MANAGER=self.ODSP_TELEMETRY_MANAGER||l():l();function f(e){console.error("Telemetry Manager:",e)}var p,m="requiredDiagnostic",_="optionalDiagnostic",h="requiredService",b=a,g=1,v=2,y=4,S=6,D=n(29),I=(function(){function e(e,t){e?(this.root=e.root,this.parent=e.current):this.root=this.parent=D.Empty,this.current=t||D.generate()}return e._getCorrelationVector=function(){var t;return"undefined"!=typeof window?t=window.rootVector:"undefined"!=typeof self&&(t=self.rootVector),t||new e},e.prototype.toString=function(){return"".concat(this.root,"#").concat(this.parent,"#").concat(this.current)},e.RootVector=e._getCorrelationVector(),e})();(function(e){e[e.Single=0]="Single",e[e.Start=1]="Start",e[e.End=2]="End"})(p||(p={}));var x,C=0;function O(e,t,n,a){var r,o;r=e,o=t,(0,i.a)(r,o);var s={};for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)){var d=n[c],l=s[c]="number"==typeof d?{type:d}:d;l.definedInName=t.shortEventName,l.type===v&&(l.isMetric=!0)}e.metadata=a?(0,i.a)((0,i.a)({},a.prototype.metadata),s):s}(function(e){e[e.Consumer=0]="Consumer",e[e.ConsumerAnonymous=1]="ConsumerAnonymous",e[e.Business=2]="Business",e[e.BusinessAnonymous=3]="BusinessAnonymous",e[e.Unknown=4]="Unknown",e[e.ConsumerOnSPO=5]="ConsumerOnSPO"})(x||(x={}));var w=new WeakMap,E=(function(){function e(e,t,n){this.context={},this.data={},this.context=(0,i.a)({},this.addContext({})),this.id=C++,n&&(this.parentId=n.id),this.startTime=e&&e.startTimeOverride||u.getTime(),this.vector=new I(n?n.vector:I.RootVector),e&&this._setData(e),this._logEvent(t)}return e.isTypeOf=function(e){return e.eventName?e.eventName.indexOf(this.prototype.shortEventName+",")>=0:!!e.prototype&&e.prototype.shortEventName===this.prototype.shortEventName},e.withManager=function(e){if(!e||e===u)return this;var t=w.get(e);t||(t=new WeakMap,w.set(e,t));var n=t.get(this);if(n)return n;var a=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.c)(t,e),t})(this);return a.prototype.manager=e,n=a,t.set(this,n),n},e.withData=function(e){if(!e)return this;var t="function"!=typeof e?function(t){return(0,i.a)((0,i.a)({},e),t)}:e,n=(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.c)(n,e),n.prototype.addData=function(n){var a=(0,i.a)((0,i.a)({},n),t(n));return(0,i.a)((0,i.a)({},a),e.prototype.addData.call(this,a))},n})(this);return n},e.withContext=function(e){if(!e)return this;var t="function"!=typeof e?function(t){return(0,i.a)((0,i.a)({},e),t)}:e,n=(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.c)(n,e),n.prototype.addContext=function(n){var a=(0,i.a)((0,i.a)({},n),t(n));return(0,i.a)((0,i.a)({},a),e.prototype.addContext.call(this,a))},n})(this);return n},e.from=function(e){return e?this.withManager(e.prototype.manager).withContext(function(t){return e.prototype.addContext(t)}).withData(function(t){return e.prototype.addData(t)}):this},e.prototype.addContext=function(e){return L(this.manager,e,{})},e.prototype.addData=function(e){return e},e.prototype._setData=function(e){var t=(0,i.a)((0,i.a)({},this.addData(this.data)),e);(function(e,t,n,a){for(var i=0,r=Object.keys(n);i<r.length;i++){var o=r[i];if(o in t)A(e,n,a,o,t[o])}})(this.manager,this.metadata,t,this.data)},e.prototype._logEvent=function(e){this.manager.logEvent(this,e)},e})();function A(e,t,n,a,i){var r=t[a];switch(typeof r){case"string":var o=e.cleanString(r,a,i);return void(void 0!==o&&(n[a]=o));case"undefined":return;case"object":return void(r&&Object.getPrototypeOf(r)===Object.prototype?n[a]=L(e,r,{}):n[a]=r);default:return void(n[a]=r)}}function L(e,t,n){for(var a=0,i=Object.keys(t);a<i.length;a++){A(e,t,n,i[a])}return n}var k=E.prototype;k.eventName="EventBase,",k.shortEventName="EventBase",k.critical=!1,k.manager=u;var M=n(55);function P(e,t){return new this(e,p.Single,t)}function T(e){return new this(null,p.Single,e)}function U(e,t,n){var a=(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.c)(n,e),n.logData=t?P:T,n})(E);return O(a.prototype,e,t||{},n),a}var F=U({eventName:"Trace,",shortEventName:"Trace"},{message:g,privacyClassification:{isPrefixingDisabled:!0,type:g}}).withData({privacyClassification:b.requiredService,privacyDataTypes:["browsingHistory"]}),H=U({eventName:"CaughtError,Trace,",shortEventName:"CaughtError",critical:!0},{stack:g,extraData:y,privacyClassification:{isPrefixingDisabled:!0,type:g}},F).withData({privacyClassification:b.requiredService}),R=U({eventName:"QosError,CaughtError,Trace,",shortEventName:"QosError",critical:!0},{name:{isKey:!0,type:g},resultCode:g,resultType:{typeRef:M.a,type:S}},H).withData({privacyClassification:b.requiredDiagnostic}),N=U({eventName:"Verbose,Trace,",shortEventName:"Verbose"},{name:{isKey:!0,type:g},privacyClassification:{isPrefixingDisabled:!0,type:g}},F).withData({privacyClassification:b.requiredService});function B(e){var t;try{var n=[];t=JSON.stringify(e,function(e,t){return t===window?"[window]":t instanceof HTMLElement?"[HTMLElement]":"function"==typeof t?"[function]":"object"==typeof t?null===t?t:-1===n.indexOf(t)?(n.push(t),t):"[circular]":t})}catch(e){t=JSON.stringify("[object]")}return t}var j="Canceled",V=new o(50);function z(e,t,n){var a;if(!e||(function(e){return e===j||(null==e?void 0:e.name)===j||(null==e?void 0:e.message)===j})(e)||"object"==typeof e&&e.isExpected)try{if("true"===sessionStorage.getItem("suppressErrorHandling"))return}catch(e){}else{for(var i,r=(function(e){var t,n;return e?"object"==typeof e?null!==(n=null!==(t=e.message)&&void 0!==t?t:e.description)&&void 0!==n?n:B(e):e.toString():""})(e),o=null!==(a=null==e?void 0:e.stack)&&void 0!==a?a:"";i=V.popOldest();)N.logData(i);n&&n.eventName?R.logData({name:n.eventName,resultCode:n.resultCode,resultType:n.resultType,extraData:t||{},message:r,stack:o}):H.logData({extraData:t||{},message:r,stack:o})}}var G="GetSchemaException";function K(e,t,n){var a={resultType:e};return t&&(a.resultCode=t),n&&(a.error=n),a}var W=(function(e){function t(t,n){return e.call(this,t,p.Start,n)||this}return(0,i.c)(t,e),t.instrumentPromise=function(e,t,n,a,i,r,o){var s,c=new this(e,o);i&&c.setTimeout(i,r);try{s=t()}catch(e){throw c.end(K(M.a.Failure,"PromiseCreationFailed",e.toString())),e}return s.then(function(e){var t;if(n)try{t=n(e)}catch(e){t=K(M.a.Failure,G,e.toString())}else t=K(M.a.Success);c.end(t)},function(e){var t;if(a)try{t=a(e)}catch(e){t=K(M.a.Failure,G,e.toString())}else if(e){t=K(e instanceof Error&&"Canceled"===e.name?M.a.ExpectedFailure:M.a.Failure,void 0,B(e))}else t=K(M.a.Failure);c.end(t)}),s},t.prototype.setTimeout=function(e,t){var n=this;this._clearTimeout(),t||(t=K(M.a.Failure,"Timeout")),this.timeoutId=window.setTimeout(function(){n.end(t)},e)},t.prototype.verbose=function(e){this.endTime||this._isQosEvent()&&(function(e,t){V.push({name:t,message:e})})(e,this.data.name)},t.prototype.end=function(e){if(!this.endTime){this.endTime=e&&e.endTimeOverride||u.getTime();var t=(0,i.a)({duration:this.endTime-this.startTime},e);if(this._setData(t),this._logEvent(p.End),this._isQosEvent()){var n=this.data;n.error&&(a=n.error,r=n.name,o=n.resultCode,s=n.resultType,z(a,void 0,{eventName:r,resultCode:o,resultType:s}))}this._clearTimeout()}var a,r,o,s},t.prototype._clearTimeout=function(){this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=void 0)},t.prototype._isQosEvent=function(){return this.eventName.indexOf("Qos,")>=0},t})(E);var q,Q,Y,J,X;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,i.c)(t,e),t.prototype.end=function(t){return t&&t.extraData&&this.data.extraData&&(t=(0,i.a)((0,i.a)({},t),{extraData:(0,i.a)((0,i.a)({},this.data.extraData),t.extraData)})),e.prototype.end.call(this,t)}})((q={eventName:"Qos,",shortEventName:"Qos"},Q={name:{isKey:!0,isPrefixingDisabled:!0,type:g},startTimeOverride:{isPrefixingDisabled:!0,type:v},resultCode:{isPrefixingDisabled:!0,type:g},resultType:{typeRef:M.a,isPrefixingDisabled:!0,type:S},error:{isPrefixingDisabled:!0,type:g},extraData:y,extraMetrics:{isPrefixingDisabled:!0,type:y},privacyClassification:{isPrefixingDisabled:!0,type:g},objectType:{isPrefixingDisabled:!0,type:g}},J=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.c)(t,e),t})(W),X=(0,i.a)((0,i.a)({},Q),{duration:{isPrefixingDisabled:!0,type:v}}),O(J.prototype,q,X,Y),J).withData({privacyClassification:b.requiredService,privacyDataTypes:["productAndServicePerformance"]}))} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r,b:()=>s,c:()=>i,d:()=>c,e:()=>o,f:()=>d});var a=function(e,t){return a=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])},a(e,t)};function i(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}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}function s(e,t,n,a){return new(n||(n=Promise))(function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function s(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}c((a=a.apply(e,t||[])).next())})}function c(e,t){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return(function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}})([r,s])}}}Object.create;function d(e,t,n){if(n||2===arguments.length)for(var a,i=0,r=t.length;i<r;i++)!a&&i in t||(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}Object.create} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>c,b:()=>h,c:()=>_,d:()=>b,e:()=>a,f:()=>p,g:()=>m,h:()=>o,i:()=>d,j:()=>f});const a={active:!1};function i(e,t){if(null==t?void 0:t.ok){const n=(e.headers.get("Cache-Control")||"").toLowerCase(),a=t.headers.get("Cache-Control");return(!n||!(n.includes("no-cache")||n.includes("max-age=0")))&&a&&!a.toLowerCase().includes("no-cache")&&(new URL(e.url).hostname!==self.location.hostname||(t.headers.get("Content-Type")||"").includes((e.headers.get("Accept")||"").replaceAll("*","")))}}function r(e,t,n){return a.active?Promise.resolve(i(t.request,n)&&e.put(t.request,n.clone())).then(()=>n):(i(t.request,n)&&t.waitUntil(e.put(t.request,n.clone())),n)}function o(e,t){return fetch(t.request).then(n=>r(e,t,n))}function s(e,t,n){return Promise.resolve(null==n?void 0:n.fetch(t)).catch(()=>{}).then(n=>(null==n?void 0:n.ok)?r(e,t,n):o(e,t))}function c(e){return`${e}-${Date.now().toString(16)}`}function d(e,t){return caches.open(t.l1).then(t=>{const n=[],a=e.length;for(let i=0;i<a;i++)n.push(t.match(e[i]).then(n=>(!n||l(n,e[i]instanceof Request?e[i]:void 0))&&t.add(e[i]).catch(()=>{})));return Promise.all(n).catch(()=>{}).then()})}function l(e,t){if(t&&!i(t,e))return!1;{const e=((null==t?void 0:t.headers.get("Cache-Control"))||"").toLowerCase();if(e&&(e.includes("no-cache")||e.includes("max-age=0")))return!0}const n=(e.headers.get("Cache-Control")||"").toLowerCase().split(","),a=n.length;for(let t=0;t<a;t++){const a=n[t].trim().split("=");if("max-age"===a[0]){const t=Date.parse(e.headers.get("Date"));if(isNaN(t))return!0;const n=parseInt(a[1],10);if(!isNaN(n)){const a=parseInt(e.headers.get("Age"),10);return(Date.now()-t-(isNaN(a)?0:1e3*a))/1e3>n}}}}function u(e,t){return caches.open(t.l1).then(n=>n.match(e).then(a=>a&&[!l(a,e)&&a,n]||(t.l2?caches.open(t.l2).then(t=>t.match(e).then(a=>a&&!l(a,e)?Promise.all([n.put(e,a.clone()),t.delete(e)]).then(()=>[a,n,t]):[void 0,n,t])):[void 0,n])))}function f(e,t){const n={l2:null==e?void 0:e.l1,l1:c(t),l1Created:new Date};return Promise.resolve((null==e?void 0:e.l2)&&caches.delete(e.l2)).then(()=>n)}function p(e,t){return caches.keys().then(n=>{const a=[],i=n&&n.length||0;for(let r=0;r<i;r++){const i=n[r];0!==i.indexOf(e+"-")||t&&(t.l1===i||t.l2===i)||a.push(caches.delete(i))}return Promise.all(a).then()})}function m(){return e=e=>e.includes("-"),caches.keys().then(t=>{const n=[],a=t&&t.length||0;for(let i=0;i<a;i++){const a=t[i];e&&!e(a)||n.push(caches.delete(a))}return Promise.all(n).then()});var e}function _(e,t){return u(e.request,t).then(t=>t[0]||o(t[1],e))}function h(e,t,n){return u(e.request,t).then(t=>t[0]||s(t[1],e,n))}function b(e,t,n){return u(e,t).then(t=>t[0]||n().then(n=>t[1].put(e.clone(),n.clone()).then(()=>n)))}} ,(e,t,n)=>{"use strict";var a,i;n.d(t,{a:()=>a,b:()=>r}),(function(e){e.ReadOnly="readonly",e.ReadWrite="readwrite"})(a||(a={})),(function(e){e.KeyValueKeyPath="key"})(i||(i={}));class r{constructor(e,t){this.name=e,this.version=t}open(){return new Promise((e,t)=>{const n=self.indexedDB.open(this.name,this.version);n.onerror=()=>{t(n.error)},n.onsuccess=()=>{this._db=n.result,e()},n.onupgradeneeded=e=>{this.upgrade(n.result,e)}})}maintain(){}snapshot(){const e=[];for(let t=0;t<this._db.objectStoreNames.length;t++){const n=this._db.objectStoreNames.item(t),i=this.store(n,a.ReadOnly);e.push(this.getAll(i).then(e=>({name:n,data:e})))}return Promise.all(e).then(e=>({name:this.name,stores:e}))}close(){this._db&&(this._db.close(),this._db=null)}get db(){return this._db}get opened(){return!!this._db}createStore(e,t,n){const a=n.createObjectStore(e,{keyPath:t});return a.createIndex(t,t),a}createKeyValueStore(e,t){return this.createStore(e,i.KeyValueKeyPath,t)}store(e,t){return this._db.transaction(e,t||a.ReadOnly).objectStore(e)}deleteStore(e,t){try{t.deleteObjectStore(e)}catch(e){}}count(e){return new Promise((t,n)=>{const a=e.count();a.onerror=e=>{n(e)},a.onsuccess=()=>{t(a.result)}})}byIndex(e,t,n,a){return new Promise((i,r)=>{const o=n.index(e).openCursor(null,t?"prev":"next");o.onerror=e=>{r(e)};let s=0;const c=[];o.onsuccess=()=>{const e=o.result;e&&(void 0===a||s++<a)?(c.push(e.value),e.continue()):i(c)}})}getRange(e,t,n,a,i){return new Promise((r,o)=>{const s=n.index(e).openCursor(a,t?"prev":"next");s.onerror=e=>{o(e)};let c=0;const d=[];s.onsuccess=()=>{const e=s.result;e&&(void 0===i||c++<i)?(d.push(e.value),e.continue()):r(d)}})}getAll(e){const t=e.getAll();return new Promise((e,n)=>{t.onerror=()=>{n(t.error)},t.onsuccess=()=>{e(t.result)}})}get(e,t){const n=t.get(e);return new Promise((e,t)=>{n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e(n.result)}})}getValue(e,t){return this.get(e,t).then(e=>e&&e.value)}getKeyValuesAs(e){return this.getAll(e).then(e=>{const t={},n=e.length;for(let a=0;a<n;a++)t[e[a].key]=e[a].value;return t})}put(e,t){const n=t.put(e);return new Promise((e,t)=>{n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e()}})}putValue(e,t,n){return this.put({key:e,value:t},n)}putMany(e,t){if(!e||!e.length)return Promise.resolve();const n=[];return e.forEach(e=>{n.push(this.put(e,t))}),Promise.all(n).then(void 0)}putKeyValuesFrom(e,t){const n=Object.keys(e),a=n.length,i=[];for(let t=0;t<a;t++)i.push({key:n[t],value:e[n[t]]});return this.putMany(i,t)}delete(e,t){const n=t.delete(e);return new Promise((e,t)=>{n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e()}})}deleteMany(e,t){if(!e||!e.length)return Promise.resolve();const n=[];return e.forEach(e=>{n.push(this.delete(e,t))}),Promise.all(n).then(void 0)}clearStore(e){const t=e.clear();return new Promise((e,n)=>{t.onerror=()=>{n(t.error)},t.onsuccess=()=>{e()}})}trimStore(e,t,n){return new Promise((a,i)=>this.count(e).then(r=>{if(r>n){const o=e.index(t).openCursor(null,"next");o.onerror=e=>{i(e)};let s=0;o.onsuccess=()=>{const e=o.result;e&&e.delete(),++s<r-n?e.continue():a()}}else a()}))}}} ,(e,t,n)=>{var a=n(64);e.exports=function(e,t){return a(e,t)}} ,(e,t,n)=>{var a=n(67),i=n(68),r=n(69),o=n(70),s=n(71);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,e.exports=c} ,(e,t,n)=>{var a=n(39);e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}} ,(e,t,n)=>{var a=n(26),i=n(78),r=n(79),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):r(e)}} ,(e,t,n)=>{var a=n(5)(Object,"create");e.exports=a} ,(e,t,n)=>{var a=n(91);e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}} ,e=>{e.exports=function(e){return null!=e&&"object"==typeof e}} ,(e,t,n)=>{"use strict";var a;function i(){return a||"function"!=typeof BroadcastChannel||(a=new BroadcastChannel("sw_broadcast")),a}n.d(t,{a:()=>o,b:()=>r,c:()=>s,d:()=>i});var r={Sync:"Sync"},o={OfflineNotification:"OfflineNotification",CheckOffline:"CheckOffline",ServiceWorkerRegistered:"ServiceWorkerRegistered",ScriptSynced:"ScriptSynced"},s={ScriptSynced:"SpfxScriptSynced"}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>r});var a=n(28),i=n(38);function r(e){if(e&&self._killSwitches){const t=a.a.normalizeUpper(e,!1);return self._killSwitches[t]||i.a.current.isKillswitchActivated(e)}return!1}const o={reinstall1:"678735B1-EA18-4783-8B7A-03EE43F0321A",reinstall2:"32244981-AEFA-4883-8137-71577A4AC625",reinstall3:"160741BD-8647-402B-9EAA-E85FE95E6F1C",vivaHomeInlineAuth:"29B8D6C2-0806-450D-957C-4965FC5E5057",list2StartsOffline:"A2F8632A-5C7B-491F-A808-57FF30C327AE",list2StartsFromDataHost:"07A96975-7DCE-49BF-89C8-DB1ACEE89123",spHomeWebBundles:"1d5095a1-7716-4036-983d-e6654f10f45b",additionalManifestConsumption:"9b9876ce-843c-4395-ba18-6f8474c177f4",telemetryWithoutPersistentCache:"91121654-1A6B-4DE3-8F62-383D607997D7",writeVHRedirectUrlToWindow:"F7226B81-AB28-4E2C-B9B1-6AF562CF555B",vivaConnectionsV3:"8005167E-6C28-4B1C-8BEA-EE012296324F",swstatsTimeout:"EE37D064-3356-4AFE-AD82-FA7EE92C9FC0",cacheResponseReturnsFast:"FDB10D2D-2C84-4EE7-BFC7-9475431A0AB3",oneShellManifestPrecaching:"572B0230-C9CE-4588-8EF1-3F7FBD32CEA9",handleProgressiveCalls:"04aade1e-2521-47eb-b329-3599ed1c168c",spAppBarHiddenOnPublications:"c99f5bdc-a1ed-4132-8569-966cd81dfcb2",hlsHandlerCleanerJob:"031E571A-978E-41BF-AB5B-163FB8FDAB1A",handleHlsCalls:"1E6780AA-032F-48A3-A88B-78D5CBE059D5",hashedResourcePrecaching:"0E42B2EE-F38D-4DFF-A3DC-C1DACD9211E1",amplifySuiteNav:"E58909BA-9EED-4EDE-9FE7-DFEB7CB2B70B",authenticationPromise:"73944167-DB76-4842-941A-BA0FF7FDC8B6",sitesInlineAuth:"245971B2-8599-4639-8959-F66F8CDE8A10",receiveResponseFast:"9E1FC2FD-1AA8-45A6-826E-017AF6D7F827",inlineRedirectEncoding:"FB40E85F-8FCC-4FD7-836A-BEC98FA9C0D9",minimalStartup:"8F9F5E0C-A02A-4041-BFCE-3C12E7534DA0",routeLookupRace:"6A0125A1-9E48-4A08-AB3F-127CE1830F84",typeError:"2A77AF24-CFF8-44B2-9BF9-D17B774DD272",loopbackMessage:"1D087FEA-C138-48A0-8CC5-AAC8244E521A",bypassFilePickerOnListv2:"183C8554-1EE0-4159-A983-55F9E4773552",vivaHomeSupportsInlineAuthOnBypass:"3DFC9756-179C-4935-A04D-1AB3E600CAF5",deleteCaches:"DC5C5699-D1C8-46BA-B337-92DA2C0BBCF6",ensureStatsInitialized:"875EF2C1-F92B-4C1F-8AB1-C11B52E3D4AD",DisablePagePrefetch:"C7301FFC-525F-4B46-940E-6BF0B6E01BED",noAppBarForEditPages:"1EF9BFCC-165D-49E7-BABB-B1940D6CB4DD",redirecting:"D3FA6E73-F0AD-4EC9-9645-B711C10FA638",baseControllerSync:"65884C6D-54AE-4944-9F50-642669CF76D6"}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>s,b:()=>o,c:()=>i,d:()=>a});var a,i,r=n(0);(function(e){e.MySitePersonalSite="21",e.TeamSite="64",e.CommunicationSite="68"})(a||(a={})),(function(e){e.Version="x-odsp-web-version",e.Language="X-Language",e.SpfxLanguage="X-SPClient-Language",e.SpfxBuildNumber="X-SPClient-BuildNumber",e.StsLanguage="X-STSClient-Language"})(i||(i={}));const o=new URLSearchParams(self.location.search).get("FUIV9Flights"),s="true"===r.d.searchParams.get("authenticateFast")} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>v,b:()=>y,c:()=>g,d:()=>b});var a=n(9),i=n(6),r=n(8),o=n(19),s=n(23),c=n(2),d=n(4),l=n(31),u=n(36),f=n(10),p=n(0),m=n(24),_=n(59),h=n(62);function b(e,t){return fetch(e,Object.assign(Object.assign({credentials:"include"},!t&&{redirect:"manual"}),{headers:Object.assign({Accept:(t?"":"text/html,")+"application/json","Service-Worker-Navigation-Preload":"true"},t&&{"X-Service-Worker-In-Place-Nav":"true"})}))}function g(e){return new FetchEvent("fetch",{request:new Request(e)})}function v(e){const t=new URL(e),n=new URL(`${t.origin}${t.pathname}?sw=bypass`);return t.searchParams.forEach((e,t)=>{"sw"!==t&&n.searchParams.set(t,e)}),n.href}class y{constructor(e,t){this.dataHost=t,this.applications=new Map,this.routeLookupRaceKillswitch=!0,this._clients=new Map,this._bypassQueryString=/[?&]sw=bypass(&|#|$)/,this._navigationsServed=0,this._firstNavigationTicks=0,this._onInstall=e=>{console.log(`[Router] Installing ${self._swBuildNumber}...`);const t=(0,c.b)("Router.install"),n={};let a;e.waitUntil(Promise.all([this._context,!p.g.active&&(0,f.g)()]).then(()=>{var e;return(0,l.a)((p.f.active?[null===(e=this.dataHost)||void 0===e?void 0:e.install()]:[]).concat([this._installControllers(n)]).concat([this._installRoutes()])).then(e=>{(a=(0,l.b)(e))&&(console.error(a),(0,d.b)(t,a,void 0,void 0,n))}).then(()=>self.skipWaiting()).then(()=>{a||(0,d.a)(t,{resultType:r.a.Success},n)})}))},this._onActivate=e=>{var t;const n=(0,c.b)("Router.activate");let a;const i=(0,l.a)([p.f.active?null===(t=this.dataHost)||void 0===t?void 0:t.activate():void 0,this._enableNavigationPreload(),this._registerPeriodicSync(),this._executeLifecycle(e=>e.activate())]).then(e=>{(a=(0,l.b)(e))&&(console.error(a),(0,d.b)(n,a))}).then(()=>{console.log("[Router] Idle."),a||(0,d.a)(n,{resultType:r.a.Success})});e.waitUntil(i.then(()=>self.clients.claim()).then(this._restoreClients.bind(this)))},this._onStateChange=e=>{const t=(0,c.b)("Router.stateChange");(0,d.a)(t,{resultType:r.a.Success},{state:e.target&&e.target.state})},this._onSync=e=>{p.f.active?this._sync(this._tryParse(e.tag),e):this.sync(this._tryParse(e.tag),e)},this._onPeriodicSync=e=>{p.f.active?this._sync(this._tryParse(e.tag),e):this.sync(this._tryParse(e.tag),e)},this._onFetch=e=>{if(this._firstNavigationTime||(this._firstNavigationTime=performance.now(),this._firstNavigationTicks=Date.now()),this.isNavigation(e)){if(this.isNavigationIntercepted(e.request)){const t=this.getNavigationPreloadResponse(e);e.waitUntil(t),e.respondWith(this.navigate(e,t))}}else{const t=this.fetch(e);t&&e.respondWith(t.then(t=>t||fetch(e.request)))}},this._onMessage=e=>{const t=this._tryParse(e.data);if(t){t.name===o.b.Sync?p.f.active?this._sync(t.data,e):this.sync(t.data,e):p.f.active?t.applicationId&&e.waitUntil(this.getApplication(t.applicationId).then(n=>{null==n||n.message(t,e)})):e.waitUntil(this.getControllers(t.applicationIds?t.applicationIds:t.applicationId&&[t.applicationId],!t.dataHost).then(n=>this._executeLifecycle(n=>Promise.resolve(n.message(t,e)),n)))}self._postMessageController.onMessageReceived(e)},this._controllerFactory=e}get idleTime(){return this._idleTime}get idleTimeTicks(){return this._idleTimeTicks}get navigationsServed(){return this._navigationsServed}get firstNavigationTime(){return this._firstNavigationTime}get firstNavigationTicks(){return this._firstNavigationTicks}start(){var e;this._context=(new _.a).initialize(),"activated"===(null===(e=self.serviceWorker)||void 0===e?void 0:e.state)&&(this._restoredClients=this._restoreClients()),self.addEventListener("install",this._onInstall),self.addEventListener("activate",this._onActivate),self.addEventListener("sync",this._onSync),self.addEventListener("periodicsync",this._onPeriodicSync),self.addEventListener("message",this._onMessage),self.addEventListener("fetch",this._onFetch),self.addEventListener("statechange",this._onStateChange),this._idleTime=performance.now(),this._idleTimeTicks=Date.now()}registerApplication(e,t){this.applications.set(e,t||null)}unregisterApplication(e){return this.getApplication(e).then(t=>{null==t||t.deactivate(),this.applications.delete(e)})}get enablePeriodicSync(){return!1}isNavigationIntercepted(e){return"GET"===e.method&&!this._bypassQueryString.test(e.url)}isNavigation(e){return e.request.mode===h.a.Navigate}isInPlaceNavigation(e){return"true"===e.request.headers.get(p.b.InPlaceNav)}isPrefetch(e){return!(!e.request.headers.get(p.b.NavPrefetch)&&!e.request.headers.get(p.b.LkgPrefetch))}readResponseHeader(e,t,n,a){const i=(0,c.b)("Router.readResponseHeader",e),o=e.request.url;return t.then(t=>{if(t.ok){const o=t.headers.get(p.b.ApplicationId);if(o){(0,d.a)(i,{resultType:r.a.Success,resultCode:"Found header"},{App:o});const s=this.navigateTo(o,e,Promise.resolve(t),n,a,void 0,!0);if(s)return s}(0,d.b)(i,void 0,"Missing header",!0)}return t}).catch(e=>this._abandon(e,o,i))}getApplication(e){return Promise.resolve(this.applications.get(e)||Promise.resolve(this._controllerFactory.createApplicationController(e)).then(t=>(t&&this.registerApplication(e,t),t)))}getApplications(e){if(!p.f.active){const t=[];return this.applications.forEach((n,a)=>{e&&-1===e.indexOf(a)||t.push(this.getApplication(a))}),Promise.all(t)}if(!this._applications){const e=[];this.applications.forEach((t,n)=>{e.push(this.getApplication(n))}),this._applications=Promise.all(e)}return this._applications}getControllers(e,t){return Promise.resolve(null!==e&&this.getApplications(e)).then(e=>(e||[]).concat(!t&&this.dataHost?[this.dataHost]:[]))}endQosMonitorOnResponse(e,t,n){e.waitUntil(t.then(e=>{if(!e||e.status>=500)throw new i.a(Object.assign(Object.assign({},(0,s.a)(e)),{isExpected:!1}));(0,d.a)(n,{resultType:r.a.Success})}).catch(e=>{(0,d.b)(n,e)}))}navigateTo(e,t,n,a,i,r,o){return this.routeLookupRaceKillswitch&&o&&t.waitUntil(this._oldSaveRoute(t.request.url,e)),this.getApplication(e).then(o=>{var s;if(o){++this._navigationsServed;const e=i?t.clientId:this._startSession(t,o);return o.navigate(t,n,null===(s=o.dataHost)||void 0===s?void 0:s.fetch(t),e,a)||n}return this._abandonOnJsonResponse(e,n,r)})}saveRoute(e,t,n){return(0,a.b)(this,void 0,void 0,function*(){const a=(0,c.b)("BaseRouter.saveRoute"),i=yield n,o=Promise.resolve(i&&e.config.saveRoute(t.request.url,i).catch(e=>{throw(0,d.b)(a,e),console.error(e),e})).then(e=>{(0,d.a)(a,{resultType:r.a.Success,resultCode:null==e?void 0:e.applicationId})});return t.waitUntil(o),o})}lookupRoute(e,t,n){const a=(0,c.b)("BaseRouter.lookupRoute"),i=e.config.lookupRoute(t.request.url);if(i)return(0,d.a)(a,{resultType:r.a.Success,resultCode:"FromConfig"}),Promise.resolve(i);const o=n.then(e=>e.headers.get(p.b.ApplicationId)),s=this.dataHost?this._raceLookupRoute(t,o,a):o.then(e=>{if(e)return(0,d.a)(a,{resultType:r.a.Success,resultCode:"FromPreloadResponse"}),e}).catch(e=>{(0,d.b)(a,e,"PreloadResponseError")});return this.saveRoute(e,t,s),s}navigate(e,t,n,a){if(!this.routeLookupRaceKillswitch){const i=(0,c.b)("BaseRouter.navigate");return this._context.then(r=>this.lookupRoute(r,e,t).then(r=>r&&this.navigateTo(r,e,t,n,a,i)||t)).then(n=>(this.endQosMonitorOnResponse(e,t,i),n)).catch(t=>this._abandon(t,e.request.url,i))}return this._context.then(i=>{var r;const o=i.config.lookupRoute(e.request.url);return o?this.navigateTo(o,e,t,n,a)||t:Promise.resolve(null===(r=this.dataHost)||void 0===r?void 0:r.lookupRoute(e.request.url)).catch(()=>{}).then(i=>"string"==typeof i?this.navigateTo(i,e,t,n,a,void 0,!0)||t:this.readResponseHeader(e,t,n,a))})}fetch(e){return!this._restoredClients||this._clients.size?this._fetch(e):this._restoredClients.then(()=>(this._restoredClients=void 0,this._fetch(e)))}getNavigationPreloadResponse(e){return u.a.current.firefox&&+((navigator.userAgent.match(/Firefox\/([0-9]+)\./)||[])[1]||0)<107?b(e.request.url):e.preloadResponse||b(e.request.url)}sync(e,t){if(null==e?void 0:e.tag){const n=(0,c.b)("BaseRouter.sync");console.log(`[Router] Running sync (tag: ${e.tag})`),t.waitUntil(this.getControllers(void 0!==e.applicationIds?e.applicationIds:e.applicationId&&[e.applicationId],!e.dataHost).then(t=>this._syncControllers(e,t).then(()=>{(0,d.a)(n,{resultType:r.a.Success,resultCode:e.tag}),console.log("[Router] Sync completed successfully.")}).catch(t=>{(0,d.b)(n,void 0,e.tag,!0),console.error(t)})))}}_raceLookupRoute(e,t,n){var a;let i,o,s;const c=Promise.resolve(null===(a=this.dataHost)||void 0===a?void 0:a.lookupRoute(e.request.url)).then(e=>(e&&(0,d.a)(n,{resultType:r.a.Success,resultCode:"Race.DataHostWins"+(i?".PreloadResponseError":"")}),e||(o=!0)&&t)).catch(()=>(s=!0)&&t);return Promise.race([t.then(e=>{if(e)return(0,d.a)(n,{resultType:r.a.Success,resultCode:"Race.PreloadResponseWins"+(o?".DataHostMiss":s?".DataHostError":"")}),e}).catch(()=>(i=!0)&&c),c]).catch(e=>{(0,d.b)(n,e,"RaceLookupRouteError")})}_startSession(e,t){e.replacesClientId&&this._clients.delete(e.replacesClientId);const n=e.resultingClientId||e.clientId;return n?(this._clients.set(n,t),n):(this._clients.has("")||this._clients.set("",t),"")}_restoreClients(){return Promise.all([self.clients.matchAll(),this._context]).then(e=>{const t=e[0],n=e[1],a=[];for(const e of t){const t=n.config.lookupRoute(e.url);t&&!this._bypassQueryString.test(e.url)&&a.push(this.getApplication(t).then(t=>{t&&this._clients.set(e.id,t)}))}return Promise.all(a).then()})}_oldSaveRoute(e,t){return this._context.then(n=>n.config.saveRoute(e,t).catch(e=>{console.error(e)}))}_abandon(e,t,n){return console.error(e),this.routeLookupRaceKillswitch?(0,d.b)(n,e,"ReadResponseHeaderError"):(0,d.b)(n,e),fetch(v(t),{credentials:"include",headers:{Accept:"text/html"}})}_abandonOnJsonResponse(e,t,n){return t.then(t=>{if((t.headers.get("content-type")||"").includes("application/json")){const a=new i.a({message:`Received a JSON response but the controller (${e}) is unavailable.`,code:"JsonResponseWithNoController"});return n||(n=(0,c.b)("Router.abandonJsonResponseWithNoController")),this._abandon(a,t.url,n)}return t})}_oldExecuteLifecycle(e,t){return[Promise.resolve(t||this.getApplications()).then(t=>{const n=[];return t.forEach(t=>{t&&n.push(e(t))}),Promise.all(n).then()})]}_executeLifecycle(e,t){return(0,a.b)(this,void 0,void 0,function*(){t||(t=p.f.active?yield this.getApplications():yield this.getControllers());const n=t.length;for(let a=0;a<n;a++){const n=t[a];n&&(yield e(n))}})}_installControllers(e){let t;return this._executeLifecycle(n=>{const a=performance.now();return n.install().catch(e=>{t=e}).then(()=>{const i=performance.now()-a;if(e[n.name]=i,t)throw console.error(t),console.warn(`[Router] Installed controller with error: ${n.name} (${(i/1e3).toFixed(2)}s)`),t;console.log(`[Router] Installed controller: ${n.name} (${(i/1e3).toFixed(2)}s)`)})})}_installRoutes(){const e=[];return Promise.all([this.getApplications(),this._context]).then(t=>(t[0].forEach(t=>{const n=null==t?void 0:t.knownPaths();n&&n.forEach(n=>{e.push(Object.assign(Object.assign({},n),{applicationId:t.applicationId,lastRead:new Date}))})}),t[1].config.saveRoutes(e)))}_enableNavigationPreload(){const e=self.registration.navigationPreload,t=p.d.searchParams.get("navigationPreloadHeaderValue")||"true";return null==e?void 0:e.getState().then(n=>Promise.all([!n.enabled&&e.enable().catch(e=>Promise.reject(new i.a({message:"Failed to enable navigation preload.",code:"EnableNavigationPreloadFailed",innerError:e}))),t&&n.headerValue!==t&&(null==e?void 0:e.setHeaderValue(t).catch(e=>Promise.reject(new i.a({message:"Failed to set navigation preload header value.",code:"SetHeaderValueFailed",innerError:e}))))]).then())}_registerPeriodicSync(){if(self.registration.periodicSync&&this.enablePeriodicSync)return navigator.permissions.query({name:"periodic-background-sync"}).catch(()=>{}).then(e=>{if(e){const t=()=>"granted"===e.state&&self.registration.periodicSync.register(m.a.Maintain,{minInterval:864e5,minDelay:6e4}).then().catch(e=>Promise.reject(new i.a({message:"Failed to register periodic sync.",code:"RegisterPeriodicSyncFailed",innerError:e})));if("granted"===e.state)return t();e.onchange=t}})}_syncControllers(e,t){return(0,a.b)(this,void 0,void 0,function*(){yield this._executeLifecycle(t=>Promise.resolve(t.willSync(e)).catch(()=>{}),t),yield this._executeLifecycle(t=>(console.log(`[Router] Syncing controller: ${t.name}...`),t.sync(e)),t)})}_oldSyncApplications(e,t){return(0,a.b)(this,void 0,void 0,function*(){const n=this._oldExecuteLifecycle(t=>Promise.resolve(t.willSync(e)).catch(),t);return Promise.all(n).then(()=>Promise.all(this._oldExecuteLifecycle(t=>Promise.resolve(t.sync(e)).catch(e=>{console.error(e)}),t)))})}_sync(e,t){if(null==e?void 0:e.tag){const n=e.applicationId?[this.applications.get(e.applicationId)]:Array.from(this.applications.values()),a=this._oldSyncApplications(e,n);t.waitUntil(a)}}_tryParse(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}_fetch(e){let t=this._clients.get(e.clientId);if(!t&&(t=this._clients.get(""))&&(this._startSession(e,t),this._clients.delete("")),t)return this.isInPlaceNavigation(e)?this.navigate(e,b(e.request.url,!0),!0,this.isPrefetch(e)):t.fetch(e)}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n(37);function i(e){return{message:"Unacceptable or no response.",code:(0,a.a)(e)?"Redirect":e?e.status.toString():"NoResponse",correlationId:e&&e.headers.get("request-id")}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>a});const a={Precache:"Precache",ReloadConfigs:"ReloadConfigs",Maintain:"Maintain",Prerender:"Prerender",SavePage:"SavePage",DeletePage:"DeletePage",SaveRoute:"SaveRoute"}} ,(e,t,n)=>{var a=n(5)(n(1),"Map");e.exports=a} ,(e,t,n)=>{var a=n(1).Symbol;e.exports=a} ,e=>{var t=Array.isArray;e.exports=t} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>a});const a=n(29)} ,(e,t,n)=>{"use strict";function a(e,t){for(var n="";n.length<e;){var a=16*(null!=t?t:Math.random)();n+=(a|=0).toString(16)}return n}function i(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967296}n.r(t),n.d(t,{Empty:()=>r,_guidRegEx:()=>o,cryptoRandom:()=>i,generate:()=>s,isValidGuid:()=>u,normalizeDashes:()=>l,normalizeLower:()=>c,normalizeUpper:()=>d});var r="00000000-0000-0000-0000-000000000000",o=/^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i;function s(e){var t=[];t.push(a(8,e)),t.push(a(4,e));var n="4"+a(3,e);t.push(n);var i=a(4,e),r=parseInt(i[0],16);return r&=3,i=(r|=8).toString(16)+i.substr(1),t.push(i),t.push(a(12,e)),t.join("-")}function c(e,t){return void 0===t&&(t=!1),e?f(e.toLowerCase(),t):""}function d(e,t){return void 0===t&&(t=!1),e?f(e.toUpperCase(),t):""}function l(e,t){if(void 0===t&&(t=!1),e){var n=e.replace(/[^A-Fa-f0-9]/g,"");if(32===n.length)return f("".concat(n.slice(0,8),"-").concat(n.slice(8,12),"-").concat(n.slice(12,16),"-").concat(n.slice(16,20),"-").concat(n.slice(20)),t)}return""}function u(e){return!(!e||!o.test(c(e)))}function f(e,t){var n=e.match(/^\{(.*)\}$/);return n?t?n[0]:n[1]:t?"{"+e+"}":e}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>a});class a{get loaded(){return this._loaded}install(){return this._install||(this._install=this.sync())}sync(){return Promise.resolve()}willMaintain(){return this._maintain=void 0}maintain(e){if(this._maintain&&!e)return this._maintain;const t=this.createDatabase();return this._maintain=t.open().then(this.maintainDatabase.bind(this,t)).then(t.close.bind(t))}load(e){if(this._load&&!e)return this._load;const t=this.createDatabase();return this._load=t.open().then(this.loadConfig.bind(this,t)).then(()=>{t.close(),this._loaded=!0})}maintainDatabase(e){return e.maintain()}}} ,(e,t,n)=>{"use strict";function a(e,t){if(Promise.allSettled&&!t)return Promise.allSettled(e);const n=[],a=e.length;for(let t=0;t<a;t++)e[t]=Promise.resolve(e[t]).then(e=>{n.push({status:"fulfilled",value:e})}).catch(e=>{n.push({status:"rejected",reason:e})}).then();return Promise.all(e).then(()=>n)}function i(e){for(const t of e)if("rejected"===t.status)return t.reason||new Error(t.status)}n.d(t,{a:()=>a,b:()=>i})} ,(e,t,n)=>{"use strict";function a(e,t,n){return fetch(e,Object.assign(Object.assign({},!n&&{credentials:"include"}),{redirect:"manual",headers:Object.assign({Accept:"application/json","Content-Type":"application/json"},t)}))}n.d(t,{a:()=>a})} ,(e,t,n)=>{e=n.nmd(e);var a=n(1),i=n(116),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>ie,b:()=>se});var a,i,r,o,s,c=n(12),d=n.n(c),l=n(6),u=n(48),f=n(135);function p(e,t){var n,a,i=!!e.Fallback,r=e.ODB;if("boolean"==typeof r)i=r;else if(r>0){if(r>=6e4){var o=r-6e4+2e3+1;n=Math.floor(o/32),a=1<<o%32}else{if(!(r<=2e3))return!1;n=Math.floor(r/32),a=1<<r%32}i=n<t.length&&0!=(t[n]&a)}return i}var m=!1;function _(){var e;a=window.PageContext;var t=window.Flight;i=t&&t.Ramps,r=window.FilesConfig;var n=window.Flighting,c=window._spPageContextInfo;s=null===(e=window.Flight)||void 0===e?void 0:e.ecsRolloutsEnabled,!o&&c&&(!c.ExpFeatures&&n&&n.ExpFeatures&&(c.ExpFeatures=n.ExpFeatures),h.initSPExpFeatures(c.ExpFeatures)),m=!0}var h=(function(){function e(){}return e.initSPExpFeatures=function(e){o=e},e.isFeatureEnabled=function(e){m||_();var t=!!e.Fallback,n=e.ODB,c=e.ODC,d=e.ECS,l=e.OneDrive;return void 0!==n&&o&&(t=p(e,o)),void 0!==c&&r&&("boolean"==typeof c?t=c:(i&&i[c]||r&&r[c])&&(t=!0)),void 0!==d&&s&&s.indexOf(d)>=0&&(t=!0),void 0!==l&&a&&(t=l),t},e.On={Fallback:!0},e.Off={},e})();const b=h;var g,v=f.a.isActivated("26b61085-e68c-4a13-a8de-ae84ba2d96d2","1/16/2023","Validate if window object is present or not"),y="enableFeatures",S="disableFeatures",D={ODB:587,ODC:"AllowFeatureOverrides",Fallback:!1},I={ODB:357,ODC:null,Fallback:!1},x={ODB:342,ODC:null,Fallback:!1},C={ODB:60763,ODC:"AllowFeatureOverrides",Fallback:!1},O="FeatureOverrides",w={},E="".concat(O,"_").concat(y),A="".concat(O,"_").concat(S);function L(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function k(e){var t=[],n=[];for(var a in e)(e[a]?t:n).push(a);try{document.cookie="".concat(E,"=").concat(t.join(","),";path=/;samesite=none;secure;").concat(t.length?"":"expires=Thu, 01 Jan 1970 00:00:01 GMT;"),document.cookie="".concat(A,"=").concat(n.join(","),";path=/;samesite=none;secure;").concat(n.length?"":"expires=Thu, 01 Jan 1970 00:00:01 GMT;")}catch(e){}}function M(e,t,n,a){if(t)for(var i=0,r=t.split(",");i<r.length;i++){e[l=r[i]]=!0}if(n)for(var o=0,s=n.split(",");o<s.length;o++){e[l=s[o]]=!1}if(a)for(var c=0,d=a.split(",");c<d.length;c++){var l;"!"===(l=d[c])[0]?e[l.slice(1)]=!1:e[l]=!0}return e}var P=(function(){function e(){}return Object.defineProperty(e,"Overrides",{get:function(){return w},enumerable:!1,configurable:!0}),e.evaluateCanOverride=function(){v||"undefined"!=typeof window?e.CanOverride=b.isFeatureEnabled(D)||b.isFeatureEnabled(I)||b.isFeatureEnabled(x)||b.isFeatureEnabled(C)||!(!(null===window||void 0===window?void 0:window.Flight)||"dev"!==window.Flight.version&&!window.Flight.devMode):e.CanOverride=!1},e.isFeatureEnabled=function(t,n){var a=e._isFeatureEnabled(t,n);return(function(e,t){g&&g(e,t)})(t,a),a},e._isFeatureEnabled=function(t,n){if(e.CanOverride){if(t.ODB in w)return w[t.ODB];if(t.ODC in w)return w[t.ODC]}return n?p(t,n):b.isFeatureEnabled(t)},e.AllowFeatureOverrides=D,e.SPODebugOnlyCookieRedirect=I,e.ClientDebugFeatureOverrides=C,e})();const T=P;P.evaluateCanOverride(),P.CanOverride&&(function(){w=M({},L(E),L(A),void 0);var e=location.search?location.search.substring(1):"",t=(0,u.a)(e),n=t.enableFeatures,a=t.disableFeatures,i=t.debugFlights;M(w,n,a,i),k(w);try{window.__debugSetFeature=function(e,t){void 0===t&&(t=!0),w[e]=!!t,k(w)}}catch(e){}})();var U;f.b.isActivated("F9624ACA-9230-4329-9616-969638C4D4CB","05/08/2022","Include Personal Site Id in generated Server Url for Freemium lists"),"undefined"!=typeof window&&T.isFeatureEnabled({ODB:1737});(function(e){e[e.FooterEnabled=2]="FooterEnabled",e[e.MegaMenuEnabled=128]="MegaMenuEnabled",e[e.FooterEmphasis0=256]="FooterEmphasis0",e[e.FooterEmphasis1=512]="FooterEmphasis1",e[e.FooterLayout0=1024]="FooterLayout0",e[e.FooterLayout1=2048]="FooterLayout1",e[e.HideTitleInHeader=33554432]="HideTitleInHeader",e[e.HorizontalQuickLaunch=1]="HorizontalQuickLaunch"})(U||(U={}));var F,H,R=n(28),N=n(19),B=n(2),j=n(4),V=n(3),z=n(32);F||(F={}),(function(e){e.SharePoint="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAAOq0lEQVR42u1dCXBUZRL+uRQ0DwTJiy5P0AGHIm6NEs2uuwqruAUBIQiacEhghQUJJNmQmNOck0wOMrkTrkAIoEQC4T4F5BDWo8Rrq7Z2LXcVt7QoFVZd0ABJ/u3/vX9gEiZzJHO85PVX1ZWAmLx/vu7+u/vv/h8hCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAqEm9LKS3nbE+t8hegDpjNR+IANABJDBIENB/EECuIj8z3eD3AXiB3I7SB8rpUB0Q9L9ZGKXx00JSE4vF9KMJ4Rs0+dCzsofhDxzk5Bf3AJfW4TcwiYhy/SDkJr1hRCXfIZEx9aQeQvC4f8dwRVmAFcGVASVoze33CEkOv4FIcu4Xyws/Uk0V1CxqBykjIorS6lQWEKFgmIq5JupkFdEBdNKRXILqZBTQAVjPhWy86iQlnVZiHnlJJkdsYQrg8AVCxVBhVZ/Gxk3zl9MevUVsaDkC7GkiorFlSBAvrk9+SD57RTAmnxjnqIAWSYqZOZSISOHCvEp35CIlwoJMYzmitAXFUEdxDPXPJDEJr8oriw5L5ZWU7EUyC+xJh9kZRkVOrJ+Rn5767cmP8NIhfRs8Agg8UkXyAvhr3CP0J97HYTPrH7ixAeAvINiWXUrCCefW7/ZlvUXK9af14H1M/KzTW0VIN2okJ+WBZJJhdSMViEy6h3y6KNPwjMMwvjAN+T3J1Gxk4Hkr8Xy1VQsW0VtW3+ZYv2Fdqyfkd+R9adbrD9LkVRQgJQMKiSnUyE2/iIJCXmZZxIYG3iR/DtJfGIEEP6zTH45kF9mTT63fnuBX0fWz8jPyrVt/amy9YMCAPnJaVRISmOxwTUyMzwHnuk+VAIvkR+Qkh4LpF8XKyzkc+svsWX9pYr1F9ixfjnwc2T9mW2tP4krQGIqKEFyMwmbU8bjgtuQJs+RP4AkpkSI5WuuiRVr6A3XX9be9VfcCPxcSvss5GdaAr921p/SzvoTQRJAARJSqBCX2EKmzsyDZ5R4hoBwM24jKxJCgPBfZPIrrF1/NbWf9hXbT/uy82xbf9vAr631J3LrZ+QnJFMSn0RJbPw18sykv/CqYh+kzH3oQ+bOHSGWVvxHrFxL21i/p9O+9oFfspXrl8lPYVuAogBxiZRERv9Ahg17ltcKMEV0U3VvoJBfdPAG+RXtAz9HaZ/ZibQv14H1p7e1/oR21s/IX5EAXgBkwcJz8MwP86okosuuPz5hjli1plWstJC/2kHg56G07xbrT1asP66dAsTGUzJxSj48+724FXTV+p96aiiQfL6N6+9M2mdylPblOJf2ObJ+iwIsXn4Rnv8PIHdgath53C6mZiTI5Fdau/5VTgR+nUz70pxI+9qQD7KinfXHxFESvYKSqdNreH0As4JOpn1DxKLSL28J/OykfR0Hfu5I+1JvWn+8Levn5FsUYOES5gXGE+U4Gb2Ai+hH4lNesB34uSPtMzmR9qXbT/tk8hPbun4L+VGxiox7xkiUhhPMCFy0fj/BWLhfcf2O0j4nAj9PpX22XL+1AsyZ9zGsxYAVQtdTP38g+ifbgV8X074sZ9M+FwO/9tbPZOmyJljLZAwGXUNfEpcwxfm0z4l6f06+62lfkgtpny3yLfL4+DSi9CHiNuBszT8g01jeceDXxbQv051pHyPfgQLMCDsIaxqF2YDzCjBQyC044d60z031fntpny3ymcyL+Aes6TFeGcRtwAkFGCzkl/yr47SvXF1pX7QDBfjTIpYOTsB00PkAcCgQ/aPNtM/s67TPicCvvSyRA8FQorSpW9rHUBHsKIAIhDd5rM0rw5V6f4rjwM+RAkRGNcOaXgIZTpThk0E8K+hHcPDEpgIEgOW3uBb4md3X5tWZtA/+jv0e5qmkVRuoVPsalTa9QaXN26hUB183bLkmra69BAr92X0F5qP+6ZkmMvPFJ2Ct95Cb8waYJdxQgFJQAF+2ed1I++wEfvCV/T6pZjPVb99Lddv2UN0bu6hu606qe30H1W1p4ApQT6WNr4MSgFKs3wz/vo6KazdScfWGVsFc9m8x+dVq6G5+lJW+ecGoN24BxRVNNuv9RV1p88pxrc2ro7QvNlFWRka2fsf+zpG/phYUYD0Vq2uoWLWOKfrPQlJ6I7Sa/5Yo84maHTxRqoAFZT+6fbqnU2lfYhvrZz+fkazfedB95Fda1TvYKNvy5WZeN7hDi96ALfhuIPRLr7R5OZv2wVdGmH7XIc+Rb/F44O2EtIy/kaDxE8jNwRNN1QHuEjJMZ7ve5mVyS5sX+2+MXG+Rb1mrmGn6DgZP5vAych8tKYCff3xyjRravJii6Nle72XylS3OzBT5f+S559h0sqiVUnIvuWS6eHF416d7ulbvly2/3ofkW9aXYbxMnp40n9cQNBETMHc3XCwwX/Z22mep98PIl0/c/i3kW9aWknGRPPzwJKKRdnPlPCA546TdwM/k5nq/lfVLQJxqyGfrYmuKWsGaS8YSZSy95x8Jk5cWvez16R7m+uEgSXXk8/WQ8HlreEm5x8cDbIEjgNBvvNnmxb6X930Vks/W4ZeQcoUYDKF8K+jV072AAC1Vhe5t87Kf9rHUU63kW5QYJo+Owmej5+cHPRr9IPDRA7EX3Jb22WnzYt+7tbzrAfJl7xWXdJVI0vPa8QIvLoiHD6jV09M9jAzVky8/ewrEArO3w2fzgFZigeFA1Dudq/c7P90jrd/SLciXn3vpsgvwuTzJM4Ief2jUn13IBMR+76k2L/Z3+oY93YN89swr4FRy7NhF/KygxytAb3mhz4UtAcKvemK6B4ZQuhH5/Gg6NHSLVlJCS3UwAO7iyQDim92S9lm1ebHuo25FPutLmBvxCVHuIdDM1BHTdInMX1QGQV+zO6d7oF2re5HPWtEWLGJxwHitxAEWMG0fQcLDjfCBXe1cm9etTZ5S7dbuRT7rQ1wU+Qt8FlOIxsbOevECyDASMi0GiL3kjuke1sDZrciX5w7lbuOZhN2bqLH2sV58O/CHsmiI39Loc3DVe6sz9X5ZgAxpHTRyNuyjhkOnaNDJ9+njZz+SJfjMOfjze9Rw+DTV7z5Mda9tp+K6OvWRz2RZTCt8BuFaVADrwJANWxhI6MwcYUXCxQ7TvvQcqtu4lQYd+ysNZkS7IEwh2OGQVLNJPeTfVIBZ/DPQ7GyB0kCi9NePI2Gz1wsx8RdvWD9sDWxvDz79AVj3h12T0+doIHgF2Qv4mvybW0CYlj2AtRL0IcrsHbuT5ykyIaQEegm+Czr+Lg1++5xbJejEe3LM4FPylSCQjZxNJ3j3QDtvEBo6yrD70BnZ6j0o+sYDSs+iL8hnErGQDZ1OJDh0alUnSE7WGQ4c/zTo1PvUGxK457DsAbxOPpPwef+ENf+O4Ng5Dwjnzx9mOHDsExa0eVOYEsg9C94kn0nItN2w7jFa6Atw5qzgLsOuw8eCTrxLfSG6+p3eJX9ZDCUjxyQS5WUVmp4llPsHx2zabgw6/g71pbCpYK+QL186sfC/sO5pWk8B5X3/wSzTI4Yjp64EHTtLfSmGwyeVfgVPky+7/+lvwdofIRq/fk7uGDI07D8adPQMVYPoNm3zPPlLo64T/wej0f2D9Y80rnzCcOR0s+HNt6kq5MgpJRbwFPlMpj//EVG6gTSd/snvD3qovnEnKABVk0g1WzxH/pLIqyRgNHsrya+Ixq+iB9cXdk/gvmM/Gg6fomqSwL1vKucR7iafyYTJ7M7Bx4gGpoMcoZ++al2E4dAJqkaRg0F3kz834it+/DsEUz9w//q6+i2BB9+iahSxaq17yV+0+AoJCIglyqvpNF/4YQowSF+/85PAA8epGkXaWO8+8pdEXoO+hyJYcyCWfW9W/u6GIY5vIQagahRd/W73kR8cXE2UqeA7CV4ld0MB/AN3HWoK3HuUqlHYSaFb3L5i+WN5xQ/Jt1KAgMBdh1sC9xyhahTWQdQl8uctuACX5bHX1D+Elt+BAuh3HWxhfXuqFJgw7nSe/3TIIaJ0+txPNNby7YoCiPrt+5rkixzUKA17XS/vsgqfUuQJJsp9QPg2cjsKMPSBrY3fy7P8KhTd5gbnT/WmTT9B/P2jYE3s7uB7udWjy3egAENG1m79Owu21CjSqvWtYNUtcucuE/b9YujhY21crJOHNXOMNCTwI92x/GCnP7l5nTzCQR1goFS5tlG/Yx9Vo4jGAtauFQcyF2Q239NZAyfr4WNtXGM46X78SBeJd1EB+vtnm5azeX41SkBkTC0v3AziJLNI/g5+gnc739+R9C6AfXijdK81XNaxuX41yeZt1+HZFvCavfUbQqwF4QYvMFgqX3NM98ZuqiYR882fEXxlrHe2AbJw+QxdfWMLa8pUhby+ozVgxowCnsPja+K8sA3cI5Wvel+3tZGqQWBI5Dw8UwjRwA1eavECA8isWZN1dQ1N8ny/L6WuvplMmmRE6/e+FxgqZpnWslFuX4oQl3iSF3NwVs/LYCmVXiyuOiexSx58IP75xV/xXF9TL3dQ11ag1/8G3jf8ubSZva7NexJQWnUJfvcyotzY1Q/p8F152I88Of2PcIHDeWkTXPPiBQkorbxEDE+wY9tRvKKHrt/HSjAQLlAcLxaVfizVbaWeFP/cwq/I6NGR8DtHEmzVUpkngAMWMSl1i7Su7ppUCxc+uVPWbmwWouNO8j1/OJKv1iIRu0x56tT5Yl7xp3DTV6t861dXBH6GaMw/T8ZPyIKf/Xse8PVF8tWrBCwgG0zYbZphYVFSTt4HUnVNk3z1mytSVXNdzMj+jEybVsCLPPcTjb7UsbtuCcxFs4OZX4M8K/55qVnIyD4Lr6D5Gm77uiKt3tAsrdvYKsvqDeyl1b/AbR/fDkxK/5BELFhPlIOd8Zx4P7T67ukNenOPwI5l2Y1igbxowyx6BlHu25vF93X2SpZniDKCpePKMwCJ7znK0IcrQ39O7J1cbJ3b9+XKg8T3UGVwJAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBALRw/B/rxUowV9lSa8AAAAASUVORK5CYII="})(H||(H={}));var G=n(143),K=n(131),W=n(49),q=n(7);var Q=n(132),Y=n(35),J=n(0),X=n(21),Z=n(145),$=n(54),ee=n(51),te=n(22),ne=n(58);var ae,ie,re=n(50),oe=n(20);(function(e){e.Title="SharePoint",e.Generator="Microsoft SharePoint (Service worker)",e.Manifest="/_layouts/15/spwebappmanifest.ashx?app=Sites",e.ShortcutIcon="/_layouts/15/images/favicon.ico?rev=43"})(ae||(ae={})),(function(e){e.headStart="headStart",e.preconnectStart="preconnectStart",e.preconnectEnd="preconnectEnd",e.scriptPreloadStart="scriptPreloadStart",e.scriptPreloadEnd="scriptPreloadEnd",e.moduleLoaderScriptStart="moduleLoaderScriptStart",e.moduleLoaderScriptEnd="moduleLoaderScriptEnd",e.headEnd="headEnd",e.bodyStart="bodyStart",e.bodyEnd="bodyEnd",e.executionScriptStart="executionScriptStart",e.executionScriptEnd="executionScriptEnd",e.spModuleLoaderPrestart="spModuleLoaderPrestart",e.spModuleLoaderStart="spModuleLoaderStart",e.suiteNavScriptStart="suiteNavScriptStart",e.suiteNavScriptEnd="suiteNavScriptEnd",e.suiteNavRenderScriptStart="suiteNavRenderScriptStart",e.suiteNavRenderScriptEnd="suiteNavRenderScriptEnd",e.suiteNavScriptAsyncEnd="suiteNavScriptAsyncEnd",e.suiteNavRenderAsyncEnd="suiteNavRenderAsyncEnd",e.postFlush="postFlush",e.spWorkerLoaded="spWorkerLoaded",e.spWorkerInit="spWorkerInit",e.spWorkerStarted="spWorkerStarted",e.appHandlerLoaded="appHandlerLoaded"})(ie||(ie={}));class se extends Q.a{constructor(e,t){super(e,t),this.swstatsTimeoutKillswitch=(0,oe.b)(oe.a.swstatsTimeout),this._authenticationPromiseKillswitch=(0,oe.b)(oe.a.authenticationPromise),this.receiveResponseFastKillswitch=(0,oe.b)(oe.a.receiveResponseFast),this.inlineRedirectEncodingKillswitch=(0,oe.b)(oe.a.inlineRedirectEncoding),this.redirectingKillswitch=(0,oe.b)(oe.a.redirecting)}get title(){return ae.Title}get generator(){return ae.Generator}get manifest(){return ae.Manifest}get shortcutIcon(){return ae.ShortcutIcon}get workloadApp(){return this.url.searchParams.get("app")}get embedded(){return"portals"===this.workloadApp||"true"===this.url.searchParams.get("classhome")}get chromeless(){return void 0===this._chromeless&&(this._chromeless=this.context.userAgent.chromeless||this.embedded||-1!==(this.url.searchParams.get("env")||"").indexOf("WebView")||"true"===this.url.searchParams.get("disableSuiteNav")),this._chromeless}get mobile(){return void 0===this._mobile&&(this._mobile=this.context.userAgent.mobile||"Mobile"===this.url.searchParams.get("env")),this._mobile}get isOAuthRequest(){return this.request.headers.has("access_token")||this.url.searchParams.has("access_token")}get useSecureBroker(){return void 0===this._useSecureBroker&&(this._useSecureBroker="true"===this.url.searchParams.get("useSecureBroker")),this._useSecureBroker}get useTeamsSdk(){return void 0===this._useTeamsSdk&&(this._useTeamsSdk="true"===this.url.searchParams.get("useTeamsAuth")),this._useTeamsSdk}get useTeamsAuthentication(){return this.useSecureBroker||this.useTeamsSdk}get useInlineAuthentication(){return this.useTeamsAuthentication}get isAuthenticating(){return this._isAuthenticating}get didAuthenticate(){return"auth"===this.url.searchParams.get("sw")}get appBarVisible(){return this.state.appBarScriptUrl&&!this.chromeless&&!this.useSecureBroker}get supportsDarkMode(){}get scriptLang(){return this.lang}get scriptVersion(){}get nextScriptVersion(){}get requiresPostRenderScriptSync(){return!this.offlineMode&&this.scriptVersion&&this.nextScriptVersion&&this.nextScriptVersion!==this.scriptVersion}get scriptSyncPending(){return this._scriptSyncPending}get debugMode(){return void 0===this._debugMode&&(this._debugMode=("true"===this.url.searchParams.get("debug")||Y.a)&&"true"!==this.url.searchParams.get("reset")&&(this.isFlightEnabled(re.y)||this.isFlightEnabled(re.c))),this._debugMode}get teamsTheme(){return this.url.searchParams.get("theme")||this.state.teamsTheme}get showSearchBox(){return!1!==this.site.searchBoxEnabled&&this.isFlightEnabled(re.r)}get collapseO365Settings(){}bypassUrl(){return this.useTeamsAuthentication&&!this.supportsInlineAuthenticationOnBypass?(function(e,t){const n=new URL(location.origin+ne.b+"?sw=bypass");return n.searchParams.set("dest",(0,te.a)(e)),t&&n.searchParams.set("useTeamsAuth","true"),n.href})(this.url.href,this.useTeamsSdk):super.bypassUrl()}isFlightEnabled(e){const t=this.url.searchParams.get("debugFlights");if(t){const n=t.split(",");for(const t of n){const n="!"!==t[0];if(parseInt(n?t:t.substring(1),10)===e)return n}}return this.context.config.isFlightEnabled(e,this.state.flights)}getExperimentVariant(e){const t=this.url.searchParams.get("expOverrides");if(t){const n=JSON.parse(t);for(const t of n)if(t[0]===e)return t[1]}return this.context.config.getExperimentVariant(e,this.state.experiments)}canStartRendering(){return super.canStartRendering()&&self._oneShellUrl&&(this.navigationResultFromCache||!this.ensureScriptPreRender())}headersInit(){return Object.assign(Object.assign({},super.headersInit()),this.url.searchParams.get("OOPIF")&&{"Origin-Agent-Cluster":"?1"})}preloads(){return this.chromeless?[]:[self._oneShellUrl,!this.embedded&&this.appBarVisible&&this.state.appBarScriptUrl&&{href:this.state.appBarScriptUrl,integrity:this.state.appBarIntegrity,as:G.a.Script}]}preconnects(){}style(e){return"html,body{margin:0;padding:0;height:100%;}"+(e?"":".SPPageChrome{height:100%;display:flex;flex-direction:column;}\n.spAppAndPropertyPanelContainer,.SPPageChrome-app{height:100%;display:flex;flex-grow:1;}"+(this.appBarVisible?".sp-appBar{z-index:12;width:47px;height:100%;@media print{display:none}}@media(min-width:1025px){.spAppAndPropertyPanelContainer .sp-appBar{max-width:47px;}}.sp-appBar-linkContainer{list-style:none;padding:0;margin:0}@media (max-width:1024px){.sp-appBar{position:fixed;bottom:0;width:100%;max-width:100%;height:47px;border-top:1px solid #eaeaea;@media print{display:none}}.sp-appBar-linkContainer{display:flex;flex-direction:row;justify-content:space-evenly;padding-left:15px;padding-right:15px}.sp-appBar-mobile{max-width:none;@media print{display:none}border-top:1px solid #eaeaea;}.sp-appBar-linkLi{max-width:47px;width:47px;height:47px;display:flex;box-sizing:border-box;margin:2px 0}}":""))}sendErrorToSecureBroker(e,t){e.inlineScript((0,Z.e)(t),!0),e.flush()}onError(e,t){return this.useSecureBroker&&this.sendErrorToSecureBroker(e,t),super.onError(e,t)}createState(){const e=this.spPageContext,t={displayName:e.userDisplayName,userId:e.aadUserId},n=e.killSwitches,a=e.ExpFeatures,i=e.experimentData,r=(function(e){return!(function(e){return!!(e.isAnonymousGuestUser||e.isExternalGuestUser||e.isEmailAuthenticationGuestUser||e.isNativeFederatedUser)})(e)&&e.appBarParams&&!e.appBarParams.isDisabled})(e)&&e.spAppBarManifestScript,o=r&&e.appBarParams,s=r&&e.spAppBarManifestScriptIntegrity;return Object.assign(Object.assign({},super.createState()),{user:t,killswitches2:n,flights:a,experiments:i,appBarScriptUrl:r,appBarParams:o,appBarIntegrity:s,teamsTheme:this.teamsTheme})}createPage(){return Object.assign(Object.assign({},super.createPage()),{sitePath:(0,V.a)(this.spPageContext.webServerRelativeUrl),siteType:this.spPageContext.webTemplate})}createSite(){const e=this.spPageContext,t=3!==e.searchBoxInNavBar&&!e.isAnonymousGuestUser&&(this.isFlightEnabled(re.e)||!e.isExternalGuestUser&&!e.isEmailAuthenticationGuestUser),n=this.isFlightEnabled(re.g)?e.isCurrentSiteAHomeSite:e.companyPortalReference&&R.a.normalizeLower(e.companyPortalReference.SiteId)===R.a.normalizeLower(e.siteId)&&R.a.normalizeLower(e.companyPortalReference.WebId)===R.a.normalizeLower(e.webId);return Object.assign(Object.assign({},super.createSite()),{path:(0,V.a)(e.webServerRelativeUrl),siteType:e.webTemplate,lang:(0,W.a)(e.currentUICultureName),authContext:e.siteAuthContext,isHomeSite:n,searchBoxEnabled:t})}createStats(e){return super.createStats(e).then(e=>Object.assign(Object.assign(Object.assign({},e),(this.didAuthenticate||this._isAuthenticating)&&{didAuthenticate:!0}),this._scriptSyncPending&&{scriptSyncPending:!0}))}hydrateNavigationResult(){const e=this.spPageContext;if(e){const t=this.state;t.flights&&(e.ExpFeatures=t.flights),t.experiments&&(e.experimentData=t.experiments),t.killswitches2&&(e.killSwitches=t.killswitches2),t.appBarScriptUrl&&(e.spAppBarManifestScript=t.appBarScriptUrl),t.appBarParams&&(e.appBarParams=t.appBarParams),t.appBarIntegrity&&(e.spAppBarManifestScriptIntegrity=t.appBarIntegrity)}return Promise.resolve()}renderMark(e,t){this._usesMarks&&e.inlineScript(`__spfxMark('${t}')`,!0)}renderSplash(e){e.write('<div id="splash" style="z-index:99;position:absolute;width:128px;left:calc(50% - 64px);height:128px;top:calc(50% - 64px);">\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><title>SharePoint</title><g filter="url(#s)"><circle cx="54" cy="46" r="26" fill="url(\'#g0\')"/><circle cx="79" cy="68" r="23" fill="url(\'#g1\')"/><circle cx="57" cy="87" r="20" fill="url(\'#g2\')"/></g>\n<defs><filter id="s" x="-42%" y="-42%" width="210%" height="210%"><feOffset result="offOut" in="SourceAlpha" dx=".3" dy=".3"/><feGaussianBlur result="blurOut" in="offOut" stdDeviation="1"/><feBlend in="SourceGraphic" in2="blurOut" mode="normal"/></filter><linearGradient id="g0" gradientTransform="rotate(30)"><stop offset="5%" stop-color="#1A9BA1"/><stop offset="97%" stop-color="#036C70"/></linearGradient><linearGradient id="g1" gradientTransform="rotate(45)"><stop offset="0%" stop-color="#37C6D0"/><stop offset="44%" stop-color="#1A9BA1"/><stop offset="100%" stop-color="#036C70"/></linearGradient><linearGradient id="g2" gradientTransform="rotate(90)"><stop offset="2%" stop-color="#37C6D0"/><stop offset="99%" stop-color="#1A9BA1"/></linearGradient>\n</defs></svg></div>')}renderStats(e){super.renderStats(e),this.swstatsTimeoutKillswitch||e.inlineScript("window.__swstatsResolve&&__swstatsResolve()",!0)}fetchAppData(){const e=new URL(this.url.href);return e.searchParams.append("as","json"),(0,z.a)(e.href,{"x-requestprefetchdata":"1"})}isAppDataValueEqual(e,t,n){return d()(e,t)}renderAppData(e,t,n){const a=[],i=Object.keys(e||{}),r=i.length,o=this.page.lkgData;for(let s=0;s<r;s++){const r=i[s];if(!t&&this.isAppDataValueEqual(e&&e[r],o&&o[r],r))a.push(`window.${r}Loaded&&${r}Loaded();`);else{const i=n.xssStringify(e[r]);a.push(`window.${r}=${i};window.${r}Loaded&&${r}Loaded(${t?"":"false,"}true);`)}}a.push(`window._internalIsLKG=${t};window._internalIsLKGLoaded&&_internalIsLKGLoaded(${t});`),n.inlineScript(a.join(""),!0),t&&this.navigationResultFromConfig||n.flush()}newData(){let e;return Promise.resolve(!this._isAuthenticating&&this.fetchAppData().then(t=>(e=t).json())).then(e=>t=>{e&&(this.renderAppData(e,!1,t),this.page.lkgData=e)}).catch(t=>{const n=(0,B.b)("SPPageHandler.newDataError");(0,j.b)(n,new l.a({message:"Error fetching new app data.",code:"NewDataError",innerError:t,isExpected:!(null==e?void 0:e.ok)}))})}lkgData(e){var t;const n=null===(t=this.page)||void 0===t?void 0:t.lkgData;return Promise.resolve(n&&(!e||Date.now()-this.page.lastRead.getTime()<e)?e=>{this.renderAppData(n,!0,e)}:n?this.page.lkgData=void 0:void 0)}renderMeta(e){e.charset(),e.viewport(),e.generator(this.generator),this.isFlightEnabled(re.q)&&this.site.isHomeSite&&e.manifest(this.manifest),e.shortcutIcon(this.shortcutIcon)}renderStyle(e){e.write(`<style>${this.style()}</style>`)}createSuiteNavTheme(){}renderSuiteNavScript(e){this.renderMark(e,ie.suiteNavRenderScriptStart);const t=this.isFlightEnabled(re.a)&&self.location.host,n=Object.assign({bootHost:`https://${new URL(self._oneShellUrl).host}`,lang:this.lang,user:this.state.user,searchBox:this.showSearchBox,initialSearchText:this.url.searchParams.get("q"),authProviderConfigOptions:t?{appSignOutUrl:`${self.location.protocol}//${t}${"/"===this.site.path?"":this.site.path}/_layouts/15/SignOut.aspx`,launchDestination:"21"===this.site.siteType?"onedrive":"sharepoint",wreplyUrl:`${self.location.protocol}//${t}/_forms/default.aspx`}:void 0,theme:this.createSuiteNavTheme(),supportShyHeaderMode:this.isFlightEnabled(re.s),supportsDarkMode:this.supportsDarkMode},!K.a&&{collapseO365Settings:this.collapseO365Settings});(0,K.d)(e,n);const a=`o365ShellLoadPromise.then(()=>{__spfxMark('${ie.suiteNavScriptAsyncEnd}')});\no365ShellRenderPromise.then(()=>{__spfxMark('${ie.suiteNavRenderAsyncEnd}')});\n__spfxMark('${ie.suiteNavRenderScriptEnd}');__spfxMark('${ie.suiteNavScriptStart}')`;e.inlineScript(a,!0)}renderSuiteNavScriptImport(e){(0,K.c)(e,self._oneShellUrl),this.renderMark(e,ie.suiteNavScriptEnd)}renderAppBar(e){this.appBarVisible&&(function(e,t,n,a,i,r){e.write(`<div id="sp-appBar" class="sp-appBar${i?" sp-appBar-mobile":""}"></div>`);const o=Object.assign(Object.assign({},a),{isMobile:i}),s=`window.__appBar=()=>{spAppBar.addAppBar(${e.xssStringify(o)});}`;e.inlineScript(s,!0);const c=[["onload","__appBar()"],["onerror",`location.href='${q.a.htmlEncode(r,!0)}'`]];n&&c.push(["integrity",n]),e.script2(t,void 0,!0,c)})(e,this.state.appBarScriptUrl,this.state.appBarIntegrity,this.state.appBarParams,this.mobile,this.bypassUrl())}renderAppChromeContent(e){this.renderAppBar(e)}renderAppChrome(e){}renderChrome(e){this.renderMark(e,ie.bodyStart),e.write('<div id="SPPageChrome" class="SPPageChrome isFluent">');const t=this.chromeless;t||(0,K.b)(e),(0,K.e)(e),this.renderAppChrome(e),e.write("</div>"),t||(this.renderSuiteNavScript(e),this.renderSuiteNavScriptImport(e))}renderWorkerScript(e){const t=`(function(global){\ntry{\n__spfxMark('${ie.spWorkerInit}');\nglobal.__spWorker=new Worker('${$.a}',{name:'SP Worker'});\nglobal.__spWorker.addEventListener('message',(ev)=>{\nif(ev.data==='SPWebWorker started.'){\n__spfxMark('${ie.spWorkerStarted}');\nglobal.__spWorkerStarted=true;\n}});\nglobal.__spWorker.onerror=(er)=>{\nif (er.message.includes('Failed to fetch web worker script')||er.message.includes('Failed to eval')){\nglobal.__spWorkerStarted=false;\nglobal.__spWorkerError=er.message;\nglobal.__spWorker.terminate();\ndelete global.__spWorker;\n}};}catch(e){}})(self);`;e.inlineScript(t)}renderHeadScript(e){this._usesMarks=!0;const t=`if(window.PerformanceLongTaskTiming){try{\nconst g=window.__tti={e:[],f:[],o:new PerformanceObserver(l=>{g.e=g.e.concat(l.getEntriesByType('longtask'));\ng.f=g.f.concat(l.getEntriesByType('first-input'));})};g.o.observe({entryTypes:['longtask','first-input']});\nconst h=window.__fci={e:[],o:new PerformanceObserver(l=>{h.e=h.e.concat(l.getEntries())})};\nh.o.observe({entryTypes:['longtask']})}catch(e){}}\nwindow.spfxPerfMarks={};\n${this.swstatsTimeoutKillswitch?"":"window.__swstatsPromise = new Promise((r)=>{window.__swstatsResolve=r});"}\n(window.__spfxMark=(n)=>{window.spfxPerfMarks[n]=performance.now();performance.mark(n)})('${ie.headStart}');\n__spfxMark('${ie.preconnectStart}');\n${(this._usesAuthenticationPromise=this._authenticationPromiseKillswitch?this.startOffline&&!this.alwaysAnonymous:this.useInlineAuthentication&&!this.alwaysAnonymous)?Z.a:""}`;e.inlineScript(t),this.renderWorkerScript(e)}renderHeadContent(e){this.renderMeta(e),e.title(this.title),this.renderHeadScript(e),this.renderPreconnects(e),this.renderPreloads(e),this.renderStyle(e),this.renderMark(e,ie.headEnd)}renderShell(e){e.startHtml(this.lang),this.renderHeadContent(e),e.startBody(),this.renderChrome(e),this.renderSplash(e),this.useTeamsSdk&&e.script(Z.b,this.bypassReloadJs())}shell(){return Promise.resolve(this.renderShell.bind(this))}renderPreconnects(e){const t=this.preconnects(),n=t&&t.length||0;for(let a=0;a<n;a++)e.preconnect(t[a]);this.renderMark(e,ie.preconnectEnd)}renderPreloads(e){this.renderMark(e,ie.scriptPreloadStart);const t=this.preloads(),n=t.length;for(let a=0;a<n;a++){const n=t[a];n&&e.preload.apply(e,"string"==typeof n?[n]:[n.href,n.as,n.type,n.integrity])}this.renderMark(e,ie.scriptPreloadEnd)}precachePostSync(e,t){this.waitUntil(this.controller.precache((n,a)=>t||a===e))}syncScript(e){var t;const n=this.context.applicationConfig,a=this.scriptVersion,i=Array.from(new Set(null===(t=n.scriptSyncState)||void 0===t?void 0:t.langs).add(this.scriptLang));let r;return n.syncManifests(i,!0,this.site).catch(e=>{if(!(e instanceof l.a)||"401"!==e.code&&"403"!==e.code)throw e;this.abandonUnlessRedirected=!0,this.error=r=e}).then(()=>{if(!r){const t=a!==this.scriptVersion;return Promise.resolve(t&&this.swapCaches()).then(this.precachePostSync.bind(this,e,t))}})}ensureScriptPreRender(e){var t;return void 0===this._scriptSync&&(this._scriptSync=(null===(t=this.context.applicationConfig)||void 0===t?void 0:t.requiresScriptSync([e||(e=this.scriptLang)],this.offlineMode))?this.syncScript(e):null),this._scriptSync}loadScriptConfig(){}start(){return Promise.all([this.ensureScriptPreRender(this.lang),this.navigationResultReady]).then(this.loadScriptConfig.bind(this)).then(()=>this.renderStart.bind(this))}renderAuthenticateInline(e,t,n){var a;const i=this.bypassReloadJs(),r=(0,Z.c)(t,n||i,null===(a=this.site)||void 0===a?void 0:a.authContext,this.useTeamsSdk,i);e.inlineScript(r),e.flush(),this._isAuthenticating=!0}renderNotifyAlreadyAuthenticated(e){this._notifiedAuthenticated||(e.inlineScript((0,Z.d)(this.didAuthenticate,this.bypassReloadJs()),!0),e.flush(),this._notifiedAuthenticated=!0)}renderAuthenticateRedirect(e){if(this._isAuthenticating=!0,this.didAuthenticate)return this.abandon(e);const t=new URL(this.url.href);t.searchParams.set("sw","auth");const n=this.useTeamsAuthentication,a=`${J.a}/_layouts/15/${n?"BrokerLogon":"Authenticate"}.aspx?${n?this.useTeamsSdk?"useTeamsAuth=true&dest":"useSecureBroker=true&dest":"Source"}=${encodeURIComponent(decodeURIComponent(t.pathname+t.search))}`;return this.redirect(a,e)}authenticate(e,t){return(!this.receiveResponseFastKillswitch&&X.a?this.preloadResponseReceived:this.preloadResponseReady).then(()=>n=>{this.requiresInlineAuthentication()?this.renderAuthenticateInline(n,e,t):this.requiresAuthentication()?this.renderAuthenticateRedirect(n):this._usesAuthenticationPromise&&this.renderNotifyAlreadyAuthenticated(n)})}get abandonUnlessRedirected(){return this._abandonUnlessRedirected}set abandonUnlessRedirected(e){this._abandonUnlessRedirected=e}abandoning(){return this._abandonUnlessRedirected&&!this.redirected||super.abandoning()}requiresAuthentication(){return(this.redirectingKillswitch||!this.redirecting)&&this.redirected&&!this._isAuthenticating&&!this.alwaysAnonymous}requiresInlineAuthentication(){return this.requiresAuthentication()&&this.useInlineAuthentication}renderPostRender(e){return this.preloadResponseReadyOrOffline.then(()=>{if(!this.offlineMode){if(this.requiresAuthentication())return this.renderAuthenticateRedirect(e);!this._isAuthenticating&&this._usesAuthenticationPromise&&this.renderNotifyAlreadyAuthenticated(e)}return this.renderMark(e,ie.postFlush),super.renderPostRender(e)})}endResponse(e){this.renderMark(e,ie.bodyEnd),e.endHtml(),super.endResponse(e)}showOfflineNotification(){let e,t;return this.offline?(console.warn("SharePoint: Offline"),e="Disconnected from SharePoint",t="You are viewing a previous version of this page. We will let you know when connectivity has been restored."):(console.log("SharePoint: Online"),e="Connected to SharePoint",t="Connectivity has been restored. You can now continue working online."),(function(e,t){return Promise.resolve("granted"!==Notification.permission&&Notification.requestPermission&&Notification.requestPermission()).then(n=>"granted"===(n||Notification.permission)&&self.registration.showNotification(e,t).then(()=>!0).catch(()=>!1))})(e,{body:t,lang:this.lang,icon:H.SharePoint})}sendOfflineUpdateEvent(){const e={name:N.a.OfflineNotification,data:{offline:this.offline}};(0,ee.a)(e)}onOfflineStatusChanged(){return this.sendOfflineUpdateEvent(),this.showOfflineNotification()}postRender(){return this._scriptSyncPending=this.requiresPostRenderScriptSync,super.postRender()}finalize(e){return Promise.all([this._scriptSyncPending&&this.syncScript(this.scriptLang),super.finalize(e),this.isOfflineEnabled&&this.state.offline!==this.state.wasOffline&&this.onOfflineStatusChanged()]).then()}get isOfflineEnabled(){return!1}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>r,c:()=>s});var a=n(0);const i=a.d.searchParams.get("navigationPreloadHeaderValue"),r=i&&JSON.parse(i),o=/[?&]debug=true/.test(self.location.href);self.location.host.endsWith(".mcas.ms");class s{get router(){return this._router}get dataHost(){return this._dataHost}get age(){return Math.round(performance.now()-self._startTime)}start(){self._shouldBypass||(this._parseConfig(),this._config.dataHost&&(this._dataHost=this.createDataHostController(this.config.dataHost)),this._router=this.createRouter(this._dataHost),this._config.applications&&this._config.applications.forEach(this.enableApplication.bind(this)),this.router.start())}createDataHostController(e){}get config(){return this._config}enableApplication(e){this.router.registerApplication(e.id)}_parseConfig(){const e=a.d.searchParams;let t;const n=e.get("applications");if(n)try{t=JSON.parse(n)}catch(e){console.error(e)}this._config={dataHost:e.get("dataHost"),applications:t}}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a=n(49),i=n(0),r=n(136);class o{constructor(e){this._ua=e||self.navigator.userAgent}get mobile(){return o._mobile.test(this._ua)}get inTune(){return-1!==this._ua.indexOf("ManagedBrowser")}get teams(){return o._teamsWebView.test(this._ua)}get webView(){return this.teams||o._iosWebView.test(this._ua)||o._androidWebView.test(this._ua)||o._androidLollipop.test(this._ua)}get chromeless(){return this.webView&&!this.inTune}get firefox(){return o._firefox.test(this._ua)}get windows(){return o._windows.test(this._ua)}get lang(){if(void 0===this._lang){const e=self.navigator.language||"";if(i.j.active){const t=e.split("-"),n=t.length;n>1&&(t[n-1]=t[n-1].toUpperCase(),n>2&&(t[1]=t[1].charAt(0).toUpperCase()+t[1].slice(1))),this._lang=t.join("-")}else this._lang=(0,a.a)(e)}return this._lang}get browser(){return(0,r.c)(this._ua)}get browserVersion(){return(0,r.b)(this.browser)}}o.current=new o,o._mobile=/(Android|iPhone|iPod|iPad)/,o._teamsWebView=/Teams\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+)).* Electron\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+))/,o._iosWebView=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/,o._androidWebView=/(Android ).*; wv/,o._androidLollipop=/(Android ).* Version\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+))/,o._firefox=/Firefox\/([0-9]+)\./,o._windows=/windows nt/i} ,(e,t,n)=>{"use strict";var a;function i(e){return e&&(!e.status||302===e.status||e.type===a.OpaqueRedirect||301===e.status)}n.d(t,{a:()=>i}),(function(e){e.Basic="basic",e.Cors="cors",e.Error="error",e.Opaque="opaque",e.OpaqueRedirect="opaqueredirect"})(a||(a={}))} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>f});var a,i=n(12),r=n.n(i),o=n(3),s=n(0),c=n(30),d=n(61),l=n(130);(function(e){e[e.MaxPages=8]="MaxPages",e[e.MaxSites=5]="MaxSites"})(a||(a={}));class u extends c.a{get state(){return this._state}get stats(){return this._stats}getState(){return Object.assign({},this._state)}getPage(e){return this._getPageOrSite(e,u._pageCache,l.a.prototype.getPage)}savePage(e){return this._savePageOrSite(e,u._pageCache,l.a.prototype.savePage)}deletePage(e){return this._deletePageOrSite(e,u._pageCache,l.a.prototype.deletePage)}getSite(e){return this._getPageOrSite(e,u._siteCache,l.a.prototype.getSite)}getPageAndSite(e){const t=u._pageCache.get(e=(0,o.a)(e));if(t){const e=u._siteCache.get(t.sitePath);if(e)return Promise.resolve([t,e])}const n=new l.a;return n.open().then(()=>Promise.resolve(t||this._getPageOrSite(e,u._pageCache,l.a.prototype.getPage,n)).then(e=>{if(!e||!e.sitePath)return[e,void 0];return this._getPageOrSite(e.sitePath,u._siteCache,l.a.prototype.getSite,n).then(t=>(n.close(),[e,t]))}))}saveSite(e){return this._savePageOrSite(e,u._siteCache,l.a.prototype.saveSite)}deleteSite(e){return this._deletePageOrSite(e,u._siteCache,l.a.prototype.deleteSite)}save(e,t,n){const a=new l.a;return a.open().then(()=>Promise.all([e&&this._saveState(e,a),t&&this._savePageOrSite(t,u._pageCache,l.a.prototype.savePage,a),n&&this._savePageOrSite(n,u._siteCache,l.a.prototype.saveSite,a)]).then(a.close.bind(a)))}deletePageAndSite(e,t){const n=new l.a;return n.open().then(()=>Promise.all([e&&this._deletePageOrSite(e,u._pageCache,l.a.prototype.deletePage,n),t&&this._deletePageOrSite(t,u._siteCache,l.a.prototype.deleteSite,n)]).then(n.close.bind(n)))}saveState(e,t){const n=new l.a;return n.open().then(this._saveState.bind(this,e,n,t)).then(n.close.bind(n))}getStats(){if(this._stats)return Promise.resolve(this._stats);const e=new l.a;return e.open().then(()=>e.getStats().then(t=>(e.close(),this._stats=t)))}createDatabase(){return new l.a}loadConfig(e){return Promise.all([this._loadState(e),s.i.active&&this._loadPages(e),s.i.active&&this._loadSites(e),s.i.active&&this._loadStats(e)]).then()}emitStats(e){const t=new d.a;return Promise.all([e.computeStats(),t.open().then(t.getAllRoutes.bind(t)),navigator.storage.estimate().catch(),indexedDB.databases&&indexedDB.databases(),caches.keys()]).then(n=>{t.close();const a=Object.assign({storage:n[2],databases:n[3]&&n[3].length,caches:n[4].length,routes:n[1].length},n[0]);return s.h.active?Object.assign(this._stats,a):this._stats=Object.assign(this._stats||{},a),e.saveStats(a)})}maintainDatabase(e){return Promise.resolve(super.maintainDatabase(e)).then(this.emitStats.bind(this,e))}getChangedState(e){const t={},n=Object.keys(e);for(const a of n)r()(e[a],this._state[a])||(t[a]=e[a]);return t}_getPageOrSite(e,t,n,a){const i=t.get(e=(0,o.a)(e));if(i)return Promise.resolve(i);let r,s;return a?r=Promise.resolve():(r=(a=new l.a).open(),s=!0),r.then(()=>n.call(a,e).then(n=>(n&&t.set(e,n),s&&a.close(),n)))}_savePageOrSite(e,t,n,a){let i,r;return t.set(e.path,e),a?i=Promise.resolve():(i=(a=new l.a).open(),r=!0),i.then(()=>n.call(a,e).then(()=>{r&&a.close()}))}_deletePageOrSite(e,t,n,a){let i,r;return t.delete(e=(0,o.a)(e)),a?i=Promise.resolve():(i=(a=new l.a).open(),r=!0),i.then(()=>n.call(a,e).then(()=>{r&&a.close()}))}_loadState(e){return e.getState().then(e=>{this._state=e})}_saveState(e,t,n){const a=n?e:this.getChangedState(e);if(a&&Object.keys(a).length)return Object.assign(this._state,a),t.saveState(a)}_loadPages(e){return u._pageCache.clear(),e.getTopPages(a.MaxPages).then(e=>{const t=e.length;for(let n=0;n<t;n++){const t=e[n];u._pageCache.set(t.path,t)}})}_loadSites(e){return u._siteCache.clear(),e.getRecentSites(a.MaxSites).then(e=>{const t=e.length;for(let n=0;n<t;n++){const t=e[n];u._siteCache.set(t.path,t)}})}_loadStats(e){return e.getStats().then(e=>{this._stats=e})}}u._pageCache=new Map,u._siteCache=new Map;class f extends u{static _ctoi(e){const t=e.charCodeAt(0);return t>=65&&t<=90?t-65:t>=97&&t<=122?t-71:t>=48&&t<=57?t+4:43===t?62:63}static get current(){return this._current||(this._current=new f)}isKillswitchActivated(e){return this.state&&this.state.killswitches2&&this.state.killswitches2[e.toUpperCase()]}isFlightEnabled(e,t){if(!t&&!(t=this.state&&this.state.flights))return!1;e>=6e4&&(e-=57999);const n=e>>5;return n<t.length&&0!=(t[n]&1<<(31&e))}getExperimentVariant(e,t){if(t||(t=this.state&&this.state.experiments)){if((e-=9e4)>Math.floor(3*t.length/2)-1)return 0;const n=Math.floor(e/3*2);switch(e%3){case 0:return f._ctoi(t[n])>>2;case 1:return(3&f._ctoi(t[n]))<<2|f._ctoi(t[n+1])>>4;case 2:return 15&f._ctoi(t[n])}}return 0}install(){return Promise.resolve()}}} ,e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}} ,(e,t,n)=>{var a=n(15),i=n(42);e.exports=function(e){if(!i(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}} ,(e,t,n)=>{var a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=a} ,e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}} ,e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}} ,(e,t,n)=>{var a=n(83),i=n(90),r=n(92),o=n(93),s=n(94);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,e.exports=c} ,(e,t,n)=>{var a=n(95),i=n(98),r=n(99);e.exports=function(e,t,n,o,s,c){var d=1&n,l=e.length,u=t.length;if(l!=u&&!(d&&u>l))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var m=-1,_=!0,h=2&n?new a:void 0;for(c.set(e,t),c.set(t,e);++m<l;){var b=e[m],g=t[m];if(o)var v=d?o(g,b,m,t,e,c):o(b,g,m,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(h){if(!i(t,function(e,t){if(!r(h,t)&&(b===e||s(b,e,n,o,c)))return h.push(t)})){_=!1;break}}else if(b!==g&&!s(b,g,n,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}} ,(e,t,n)=>{var a=n(118),i=n(119),r=n(53),o=r&&r.isTypedArray,s=o?i(o):a;e.exports=s} ,e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}} ,(e,t,n)=>{"use strict";function a(e){var t={};if(e)for(var n=e.split("&"),a=0;a<n.length;a++){var i=n[a].split("=");void 0!==i[1]&&(i[1]=i[1].replace(/\+/g," "),t[i[0]]=decodeURIComponent(i[1]))}return t}n.d(t,{a:()=>a})} ,(e,t,n)=>{"use strict";function a(e){const t=(e||"").split("-"),n=t.length;for(let e=0;e<n;e++){let n=t[e];n=e?2===n.length?n.toUpperCase():4===n.length?n[0].toUpperCase()+n.substring(1).toUpperCase():n.toLowerCase():n.toLowerCase(),t[e]=n}return t.join("-")}n.d(t,{a:()=>a})} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>d,b:()=>b,c:()=>i,d:()=>C,e:()=>o,f:()=>g,g:()=>p,h:()=>c,i:()=>_,j:()=>h,k:()=>w,l:()=>S,m:()=>f,n:()=>m,o:()=>D,p:()=>v,q:()=>s,r:()=>r,s:()=>l,t:()=>x,u:()=>I,v:()=>O,w:()=>u,x:()=>y,y:()=>a});const a=205,i=60763,r=1240,o=60242,s=1267,c=60056,d=60222,l=605,u=60668,f=1276,p=60334,m=60844,_=1295,h=90118,b=60687,g=60206,v=1855,y=1421,S=1315,D=90120,I=61233,x=90189,C=61077,O=61239,w=1841} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n(19);function i(e){const t=(0,a.d)();t&&t.postMessage(e)}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>De});var a={};n.r(a),n.d(a,{ACEWebpart:()=>Z,ApplicationBase:()=>c,BrokerLoginAssembly:()=>he,CardLayout:()=>h,CarouselLayout:()=>m,CompanyFeedWebPart:()=>k,ComponentUtilities:()=>y,ConnectorWebPart:()=>T,ContentCenterWebPart:()=>V,CoreLibrary:()=>o,DashboardWebPart:()=>P,DataProviders:()=>l,DebugApplicationCustomizer:()=>S,DocumentEmbedWebPart:()=>F,EventsWebPart:()=>H,FieldsWebPart:()=>R,FlexLayout:()=>_,GridLayout:()=>b,GroupCalendarWebPart:()=>N,HeroLayout:()=>p,HeroWebPart:()=>w,HighlightedContentWebPart:()=>U,ImageGalleryWebPart:()=>j,ImageWebPart:()=>B,IsolatedACEWebpart:()=>$,IsolatedWebPartApplication:()=>ie,IsolatedWebPartAssembly:()=>pe,ListApplication:()=>ae,Loader:()=>i,LoaderAssembly:()=>r,LodashSubset:()=>f,MeeBridgeApplication:()=>de,MeeBridgeAssembly:()=>ge,MicrosoftGraphClient:()=>x,NewsLinkWebPart:()=>K,NewsWebPart:()=>E,NewsfeedWebPart:()=>G,OdspUtilities:()=>u,OfficeFeedWebPart:()=>W,PageTitle:()=>M,PagesCore:()=>g,PagesPreloads:()=>v,PeopleWebPart:()=>L,QuickLinksWebPart:()=>A,React:()=>ve,ReactDom:()=>ye,ReactDomProfiling:()=>Se,RecentDocumentsWebPart:()=>z,SPBrokerLoginApplication:()=>se,SPFlightInspector:()=>D,SPHomeApplication:()=>te,SPHomeAssembly:()=>ue,SPPagesFeedback:()=>O,SPPagesSharing:()=>C,SPStartApplication:()=>ne,SPStartAssembly:()=>fe,SavedForLaterWebPart:()=>q,SecureBrokerApplication:()=>ce,SecureBrokerAssembly:()=>be,SiteActivityWebPart:()=>Q,SiteApplication:()=>ee,SiteAssembly:()=>le,SitesWebPart:()=>Y,Teams:()=>I,Telemetry:()=>s,VivaAmplifyApplication:()=>oe,VivaAmplifyAssembly:()=>_e,VivaHomeApplication:()=>re,VivaHomeAssembly:()=>me,WebPartShared:()=>d,YammerHighlightsWebPart:()=>J,YammerWebPart:()=>X});const i="1c6c9123-7aac-41f3-a376-3caea41ed83f",r="44bae1a2-d2eb-4e10-8c21-a1dbdce1036f",o="7263c7d0-1d6a-45ec-8d85-d4d1d234171b",s="8217e442-8ed3-41fd-957d-b112e841286a",c="4df9bb86-ab0a-4aab-ab5f-48bf167048fb",d="914330ee-2df2-4f6e-a858-30c23a812408",l="1cea229f-b208-4202-8014-22503d92a019",u="cc2cc925-b5be-41bb-880a-f0f8030c6aff",f="73e1dc6c-8441-42cc-ad47-4bd3659f8a3a",p="9586b262-54de-4b27-9eb9-34c671400c33",m="8ac0c53c-e8d0-4e3e-87d0-7449eb0d4027",_="0447e11d-bed9-4898-b600-8dbcd95e9cc2",h="62680648-d047-46ec-81e0-475ee78e482d",b="706e33c8-af37-4e7b-9d22-6e5694d92a6f",g="764afdc3-183e-47f5-8d20-a62aff2b0881",v="1e2cdec9-1360-4295-b73c-98d6f51866d5",y="8494e7d7-6b99-47b2-a741-59873e42f16f",S="d29758ba-0fc0-4eac-bcfd-7fe5a7d0bc32",D="a7f8537f-f742-423f-ad20-ed8feaaf0805",I="9ef3df07-744e-4793-9840-c67d47c41763",x="32b9363b-09ff-4959-929a-cab2663fb223",C="f0359355-1151-4627-8882-2d82975d3d55",O="24b18d90-5b12-4227-8414-5ef7c776350b",w="c4bd7b2f-7b6e-4599-8485-16504575f590",E="8c88f208-6c77-4bdb-86a0-0c47b4316588",A="c70391ea-0b10-4ee9-b2b4-006d3fcad0cd",L="7f718435-ee4d-431c-bdbf-9c4ff326f46e",k="d0a64d22-555c-44e4-b120-aed62c263632",M="cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",P="9cc0f495-db64-4d74-b06b-a3de16231fe1",T="893a257e-9c92-49bc-8a36-2f6bb058da34",U="daf0b71c-6de8-4ef7-b511-faae7c388708",F="b7dd04e1-19ce-4b24-9132-b60a1c2b910d",H="20745d7d-8581-4a6c-bf26-68279bc123fc",R="cf91cf5d-ac23-4a7a-9dbc-cd9ea2a4e859",N="6676088b-e28e-4a90-b9cb-d0d0303cd2eb",B="d1d91016-032f-456d-98a4-721247c305e8",j="af8be689-990e-492a-81f7-ba3e4cd3ed9c",V="f92bf067-bc19-489e-a556-7fe95f508720",z="b519c4f1-5cf7-4586-a678-2f1c62cc175a",G="0ef418ba-5d19-4ade-9db0-b339873291d0",K="c1b5736d-84dd-4fdb-a7be-e7e9037bd3c3",W="2f3b693c-1054-419c-af04-fee2782b414f",q="9ac82c99-6122-45e3-8fc6-b83d3cf1c0a8",Q="eb95c819-ab8f-4689-bd03-0c2d65d47b1f",Y="7cba020c-5ccb-42e8-b6fc-75b3149aba7b",J="31e9537e-f9dc-40a4-8834-0e3b7df418bc",X="cb3bfe97-a47f-47ca-bffb-bb9a5ff83d75",Z="f3bc67ee-015d-4678-a95f-c7e90ea62c1e",$="e6b93447-8007-4f1e-934f-754a0031a769",ee="b6917cb1-93a0-4b97-a84d-7cf49975d4ec",te="1f019ae1-2de1-4f44-b723-00a6ec1d7445",ne="5b072552-f68a-4ac0-9a96-b2aa003f890c",ae="b1ab4aaa-f779-405c-8683-d3a750b5d18d",ie="682c855d-1929-4602-a2fe-59962ccaea1a",re="eb765a5a-9fec-4d59-8cca-6c623b450f0a",oe="42dde860-0f24-4f29-a2c5-69fa26a70c27",se="efd6c8a7-f166-458c-905f-720088538e16",ce="ad084475-d3a1-478e-859b-7d9a31e86828",de="c22967c0-666a-4f03-a8c4-545efb9183e1",le="b5cca424-63d0-4e35-b6c5-794d04f61206",ue="2ea25a0a-eab7-46fb-acb9-8b075dd847d3",fe="466eb367-5c30-414e-b0cc-7a1dfca51401",pe="a4fc0dcf-a8b1-4a93-8d91-35f9eafe12e1",me="d0015b2b-bc92-4183-883f-5742929c3d9d",_e="d832f602-4405-4268-8b75-e91805f4c066",he="33a9cbd2-27af-4acb-a1ea-57ffad59c0f4",be="bf99cad6-b812-4cf5-81ad-a059486e9db9",ge="ea5abc80-0708-4dee-9399-42f0bc383f99",ve="0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",ye="aa0a46ec-1505-43cd-a44a-93f3a5aa460a",Se="d0619256-3350-4eb2-95df-31fbc25c4451",De=a} ,(e,t,n)=>{e=n.nmd(e);var a=n(41),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&a.process,s=(function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}})();e.exports=s} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>d,b:()=>l});var a=n(0),i=n(57),r=n(10),o=n(38),s=n(145);const c="/_layouts/15/spwebworkerproxy.ashx",d=`${a.a}${c}?${self._wwBuildNumber}`;class l extends i.a{constructor(e){super(e)}install(){return super.install().then(()=>o.a.current.install())}getResourceBaseUrl(){const e=new URL(self._cdnBaseUrl),t=e.pathname.split("/").filter(Boolean);return t.pop(),e.pathname=t.join(""),e.href}precacheWithContext(e,t){if(!this.isSecureBroker){const e=[d];return self._oneShellUrl&&e.push(self._oneShellUrl),e.push(s.b),(0,r.i)(e,t)}}isWorkerFetch(e){return e===c}fetchWorker(e){return this.context.then(e=>this.getCacheState(e.config)).then(t=>{const n=new Request(d,e.request);return(0,r.d)(n,t,()=>fetch(n))})}resourceRoutes(){return super.resourceRoutes().concat([{match:this.isWorkerFetch.bind(this),fetch:this.fetchWorker.bind(this)}])}}} ,(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>a}),(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure",e[e.ExpectedFailure=2]="ExpectedFailure"})(a||(a={}))} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>x,b:()=>k,c:()=>E});var a,i=n(12),r=n.n(i),o=n(6),s=n(8),c=n(19),d=n(2),l=n(4),u=n(32),f=n(23),p=n(51),m=n(36),_=n(3),h=n(146),b=n(35),g=n(30),v=n(0),y=n(21),S=n(139),D=n(11);(function(e){e.Name="SPFx.Config",e.MetadataStoreName="Metadata",e.ManifestStoreName="Manifest",e.ManifestKeyPath="id",e.ScriptSyncStateKey="ScriptSyncState",e.Generation1Key="Generation1"})(a||(a={}));class I extends D.b{constructor(){super(a.Name,1)}getScriptSyncState(){const e=this.store(a.MetadataStoreName,D.a.ReadOnly);return this.getValue(a.ScriptSyncStateKey,e)}setScriptSyncState(e){const t=this.store(a.MetadataStoreName,D.a.ReadWrite);return this.putValue(a.ScriptSyncStateKey,e,t)}getGeneration1(){const e=this.store(a.MetadataStoreName,D.a.ReadOnly);return this.getValue(a.Generation1Key,e)}saveGeneration1(e){const t=this.store(a.MetadataStoreName,D.a.ReadWrite);return this.putValue(a.Generation1Key,e,t)}getManifests(e){return new Promise((t,n)=>{const i=this.store(a.ManifestStoreName,D.a.ReadOnly),r=[];let o=0;e.forEach(e=>{const a=i.get(e);++o,a.onerror=()=>{n(a.error)},a.onsuccess=()=>{r.push(a.result),0==--o&&t(r)}})})}getAllManifests(){const e=this.store(a.ManifestStoreName,D.a.ReadOnly);return this.getAll(e)}saveManifests(e,t,n){const i=this.store(a.ManifestStoreName,D.a.ReadWrite);return Promise.resolve(t&&this.clearStore(i)).then(()=>this.putMany(e,i).then(()=>n&&this.setScriptSyncState(n)))}deleteManifests(e){const t=this.store(a.ManifestStoreName,D.a.ReadWrite),n=[],i=e.length;for(let a=0;a<i;a++)n.push(this.delete(e[a],t));return Promise.all(n).then()}upgrade(e,t){this.createKeyValueStore(a.MetadataStoreName,e),this.createStore(a.ManifestStoreName,a.ManifestKeyPath,e)}}var x,C=n(52);function O(e){return!!e.version}function w(e){return!!e.versions}function E(e){return"component"===e.type}(function(e){e[e.WebPart=1]="WebPart",e[e.Application=2]="Application",e[e.Library=3]="Library",e[e.Extension=4]="Extension",e[e.ProviderHostedApp=5]="ProviderHostedApp",e[e.Assembly=6]="Assembly",e[e.AdaptiveCardExtension=7]="AdaptiveCardExtension"})(x||(x={}));const A="default",L="securebroker.sharepointonline.com"===self.location.host;class k extends g.a{constructor(){super(...arguments),this.assemblyMode=!0,this._scriptSyncState=[],this._manifests=[]}static get current(){return this._current||(this._current=new k)}get manifests(){return this._manifests[0]}get scriptSyncState(){return this._scriptSyncState[0]}requiresScriptSync(e,t){const n=this._scriptSyncState[0];if(!n||!n.lastSync||!n.langs||!this._manifestCount||this._manifestCount<n.manifestCount)return!0;if(!t){if(Math.floor(((new Date).getTime()-n.lastSync.getTime())/864e5)>21)return!0}const a=e&&e.length||0;for(let t=0;t<a;t++)if(!n.langs.has(e[t]))return!0;return!1}getComponent(e,t,n){const a=this._manifests[n||0];return a&&this._getComponent(a.get(e),t)}scriptUrl(e,t,n){let a=this._scriptUrlCache.get(t);a||this._scriptUrlCache.set(t,a=new Map);const i=this._cacheKey(e,n);let r=a.get(i);if(!r){const o=this.getComponent(e,n);o&&(r=this._computeScriptUrl(o,t),a.set(i,r))}return r||""}scriptUrls(e,t){const n=e&&e.length||0;if(n){const a=new Set;for(let i=0;i<n;i++){const n=this.scriptUrl(e[i],t);n&&a.add(n)}return Array.from(a)}}loaderAssemblyUrl(e){return this.scriptUrl(C.a.LoaderAssembly,e)}getGeneration(e){var t;const n=e.request.headers.get(y.c.Version);if(n&&n!==this._scriptSyncState[0].version){if(n===(null===(t=this._scriptSyncState[1])||void 0===t?void 0:t.version))return Promise.resolve(1);if(!this._loadedGeneration1){const e=new I;return e.open().then(()=>e.getGeneration1().then(t=>(e.close(),this._loadedGeneration1=!0,t&&(this._scriptSyncState[1]=t.scriptSyncState,this._manifests[1]=t.manifests,n===t.scriptSyncState.version)?1:0)))}}return Promise.resolve(0)}old_getGeneration(e){const t=e.request.headers.get(y.c.Version),n=t&&this._scriptSyncState[1]&&t===this._scriptSyncState[1].version?1:0;return!n&&m.a.current.webView&&this.deleteGeneration(1),n}getComponents(e,t,n){void 0===n&&(n=0),t&&t!==this._lang&&this._scriptSyncState[n]&&this._scriptSyncState[n].langs.has(t)&&this._localizeDefault(this._manifests[n],t);const a=this._getDependencies(e,this._manifests[n]);return Array.from(a)}findComponents(e,t){return this.getGeneration(t).then(n=>{const a=[],i=[],r=e.length;for(let t=0;t<r;t++){const r=e[t],o=this.getComponent(r.id,r.version,n);(null==o?void 0:o.isInternal)?a.push(r):i.push(r)}return this._fetchAndSaveComponents(i,n,t).then(()=>this.getComponents(a.concat(i),void 0,n))})}syncManifests(e,t,n){if(t||this.requiresScriptSync(e)){const a=(0,d.b)("SpfxConfig.syncScript"),i=new I;return i.open().then(()=>this.loaded?this._syncManifests(e,i,n):this.loadConfig(i).catch(e=>{if(!t)throw e}).then(()=>(t||this.requiresScriptSync(e)||!this._manifests[0]||!this._manifests[0].size)&&this._syncManifests(e,i,n))).catch(e=>{throw(0,l.b)(a,e),i.close(),e}).then(()=>{(0,l.a)(a,{resultType:s.a.Success}),i.close()})}}saveManifests(e,t){const n=[],a=e.length;for(let i=0;i<a;i++){const a=e[i],o=this._manifests[t||0].get(a.id);o&&r()(o,a)||(this._unload(a,!0,t),n.push(a))}if(n.length&&!t){const e=new I;return e.open().then(()=>e.saveManifests(n)).then(()=>{e.close()})}}deleteManifests(e){const t=e&&e.length;if(t){for(let n=0;n<t;n++){const t=this._manifests[0].get(e[n]);t&&this._unload(t)}const n=new I;return n.open().then(()=>n.deleteManifests(e)).then(()=>{n.close()})}}sync(){return this.syncManifests(void 0,!0)}deleteGeneration(e){this._scriptSyncState[e]=this._manifests[e]=void 0}createDatabase(){return new I}loadConfig(e,t){return Promise.all([!t&&e.getAllManifests(),e.getScriptSyncState()]).then(e=>{if(t&&(this._scriptSyncState[0]=e[1]),e[1]&&(this._lang=e[1].lang),!t)return this._loadConfig(e[1],e[0])})}_toMap(e){const t=new Map,n=e.length;for(let a=0;a<n;a++){const n=e[a];t.set(n.id,n)}return t}_cacheKey(e,t){return`${e}${t?"_"+t:""}`}_saveGeneration1(e,t){const n=new I;return n.open().then(()=>n.saveGeneration1({scriptSyncState:e,manifests:t})).then(n.close.bind(n))}_loadConfig(e,t){this._manifestCount=t.length,this._dependencies=new Map,this._manifests[0]&&this._scriptSyncState[0]&&e&&this._scriptSyncState[0].version!==e.version&&this._saveGeneration1(this._scriptSyncState[1]=this._scriptSyncState[0],this._manifests[1]=this._manifests[0]),this._scriptSyncState[0]=e,this._manifests[0]=this._toMap(t),this._scriptUrlCache=new Map}_getComponents(e){if(!e||O(e))return[e];const t=[];if(w(e))for(const n in e.versions)e.versions.hasOwnProperty(n)&&t.push(e.versions[n]);return t}_getComponent(e,t){if(!e||O(e))return e;if(w(e)){const n=e.versions;if(n[t])return n[t];const a=Object.keys(n).sort(h.a),i=a.length;if(!t)return n[a[i-1]];for(let e=0;e<i;e++)if((0,h.b)(a[e],t)||e===i-1)return n[a[e]]}}_localizedValue(e,t){return e&&(e[t]||e[t.split("-")[0]])}_copyLocalizedValues(e,t){for(const n in t)n===A||e[n]||(e[n]=t[n])}_mergePaths(e,t){const n=t.loaderConfig,a=n.scriptResources[n.entryModuleId];if(a&&"localizedPath"===a.type&&a.paths){const t=e.loaderConfig.scriptResources[e.loaderConfig.entryModuleId];this._copyLocalizedValues(t.paths||(t.paths={}),a.paths)}}_mergePreconfiguredEntries(e,t){const n=t.preconfiguredEntries;if(n){const t=e.preconfiguredEntries,a=n.length;for(let e=0;e<a;e++){const a=t[e],i=n[e];i.group&&this._copyLocalizedValues(a.group||(a.group={}),i.group),i.title&&this._copyLocalizedValues(a.title||(a.title={}),i.title),i.description&&this._copyLocalizedValues(a.description||(a.description={}),i.description)}}}_mergeManifests(e,t){return e.getAllManifests().then(e=>{const n=this._toMap(e),a=t.length;for(let e=0;e<a;e++){const a=t[e],i=this._getComponents(a),r=n.get(a.id),o=this._getComponents(r);for(let e=0;e<o.length;e++)this._mergePaths(o[e],i[e]),this._mergePreconfiguredEntries(o[e],i[e]);this._manifests[0].has(r.id)&&this._manifests[0].set(r.id,r)}return e})}_localizeDefaultStrings(e){const t=e.preconfiguredEntries,n=t&&t.length||0;for(let e=0;e<n;e++){const n=t[e],a=this._localizedValue(n.group,this._lang);a&&(n.group.default=a);const i=this._localizedValue(n.title,this._lang);i&&(n.title.default=i);const r=this._localizedValue(n.description,this._lang);r&&(n.description.default=r)}}_localizeDefaultPath(e){const t=e.loaderConfig,n=null==t?void 0:t.scriptResources[t.entryModuleId];if(n&&"localizedPath"===n.type){const e=this._localizedValue(n.paths,this._lang);e&&(n.defaultPath=e,n.paths&&(n.paths.default=e))}}_localizeDefault(e,t){this._lang=t;const n=e.entries();let a;for(;!(a=n.next()).done;){const e=this._getComponents(a.value[1]);for(const t of e)this._localizeDefaultStrings(t),this._localizeDefaultPath(t)}}_addDependencyRecursive(e,t,n){if(!e||n.has(e))return;let a;n.add(e);const i=e.loaderConfig&&e.loaderConfig.scriptResources;if(i){const e=Object.keys(i);a=e.length;for(let r=0;r<a;r++){const a=i[e[r]];E(a)&&this._addDependencyRecursive(this._getComponent(t.get(a.id),a.version),t,n)}}const r=e.preloadComponents;a=r&&r.length||0;for(let e=0;e<a;e++){const a=r[e];this._addDependencyRecursive(this._getComponent(t.get(a)),t,n)}}_getDependencies(e,t){const n=new Set,a=e.length;for(let i=0;i<a;i++){let a=e[i];"string"==typeof a&&(a={id:a});const r=this._getComponent(t.get(a.id),a.version);if(r){let e=this._dependencies.get(r);e||(this._dependencies.set(r,e=new Set),this._addDependencyRecursive(r,t,e));const a=e.values();let i;for(;!(i=a.next()).done;)n.add(i.value)}}return n}_addLangs(e){const t=e&&e.length||0;for(let n=0;n<t;n++){const t=e[n];this._scriptSyncState[0].langs.has(t)||(this._scriptSyncState[0].langs.add(t),this._scriptUrlCache&&this._scriptUrlCache.delete(t))}}_saveConfig(e,t,n,a){const i=this._scriptSyncState[0],r=i&&i.version===n&&this._manifestCount>=i.manifestCount,o=r&&i.lang||a[0],s={version:n,lang:o,langs:r&&i.langs||new Set,lastSync:new Date,manifestCount:t.length};return r?this._scriptSyncState[0]=s:(this._localizeDefault(t,o),this._loadConfig(s,t)),this._addLangs(a),Promise.resolve(r&&this._mergeManifests(e,t).then(e=>{t=e})).then(()=>e.saveManifests(t,!1,this._scriptSyncState[0]))}_onScriptSynced(){if(!b.a){const e={name:c.c.ScriptSynced,data:{version:this._scriptSyncState[0].version,projectId:S.a}};(0,p.a)(e)}}_installedLangs(e){return(this.loaded?Promise.resolve():this.loadConfig(e,!0)).then(()=>Array.from(this._scriptSyncState[0]&&this._scriptSyncState[0].langs||[]))}_syncManifests(e,t,n){return Promise.resolve(e||this._installedLangs(t)).then(e=>{const a=!L&&n?(0,_.a)(n.path):"",i=`${v.a}${a}/_layouts/15/SPComponentRegistry.ashx?projects=["spfx"]&languages=${encodeURIComponent("["+(e&&e[0]?'"'+e.join('","')+'"]':"]"))}`;return(0,u.a)(i).then(n=>{if(!n||!n.ok)throw new o.a((0,f.a)(n));const a=n.headers.get("X-SPClient-BuildNumber");return e&&e.length||(e=[n.headers.get("X-SPClient-Language")]),n.json().then(n=>{const i=n.spfx||n;return this._saveConfig(t,i,a,e).then(this._onScriptSynced.bind(this))})})})}_saveComponents(e,t){const n=[],a=e.length;for(let i=0;i<a;i++){const a=e[i],r=this._manifests[t].get(a.id);r?w(r)&&!r.versions[a.version]?(r.versions[a.version]=a,n.push(r)):a.isInternal||n.push(a):n.push(a)}return this.saveManifests(n,t)}_fetchComponents(e,t){const n={components:e,project:C.a.SiteApplication},a=t.request.headers.get("x-requestdigest");return fetch(t.request.url,{credentials:"include",headers:Object.assign(Object.assign({},a&&{"x-requestdigest":a}),{Accept:"application/json","Content-Type":"application/json"}),method:"POST",body:JSON.stringify(n)}).then(e=>e.json())}_fetchAndSaveComponents(e,t,n){return Promise.resolve(e.length&&this._fetchComponents(e,n).then(e=>this._saveComponents(e.value.filter(e=>!(!e||!e.Manifest)).map(e=>JSON.parse(e.Manifest)),t)))}_computeScriptUrl(e,t){const n=e.loaderConfig;let a=n.internalModuleBaseUrls[0];a.endsWith("/")||(a+="/");const i=n.scriptResources[n.entryModuleId],r="localizedPath"===i.type?this._localizedValue(i.paths,t)||i.defaultPath:i.path;return a+("string"==typeof r?r:r.path)}_unload(e,t,n){const a=e.id,i=this._cacheKey(a),r=this._getComponents(e);for(const e of r){const t=this._cacheKey(a,e.version),n=this._scriptUrlCache.values();let r;for(;!(r=n.next()).done;)r.value.delete(t),r.value.delete(i);this._dependencies.delete(e)}t?this._manifests[n||0].set(a,e):this._manifests[n||0].delete(a)}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>p});var a,i=n(2),r=n(4),o=n(3),s=n(31),c=n(0),d=n(24),l=n(22);(function(e){e.Audio="audio",e.AudioWorklet="audioworklet",e.Document="document",e.Embed="embed",e.Font="font",e.Image="image",e.Manifest="manifest",e.Object="object",e.PaintWorklet="paintworklet",e.Report="report",e.Script="script",e.ServiceWorker="serviceworker",e.SharedWorker="sharedworker",e.Style="style",e.Track="track",e.Video="video",e.Worker="worker",e.Xslt="xslt"})(a||(a={}));var u=n(10),f=n(63);class p extends f.a{constructor(e){super(),this.dataHost=e}get name(){return this.applicationId}getCacheState(e){const t=e.state.caches||(e.state.caches={});let n=t[this.deploymentProject];return(null==n?void 0:n.l1)?Promise.resolve(n):(n=t[this.deploymentProject]={l1:(0,u.a)(this.deploymentProject),l1Created:new Date},e.saveState({caches:t},!0).then(()=>n))}install(){return Promise.resolve(this.precache())}precache(e){return this.deploymentProject?this.context.then(t=>this.getCacheState(t.config).then(n=>this.precacheWithContext(t,n,e))):Promise.resolve()}activate(){return this.context.then(e=>Promise.resolve(this.willMaintain(e)).then(this.maintain.bind(this,e)))}deactivate(){}sync(e){var t,n,a,i,r;switch(e.tag){case d.a.Precache:return this.precache();case d.a.Prerender:return this.prerender(null===(t=e.args)||void 0===t?void 0:t.path);case d.a.SavePage:return this.savePage(null===(n=e.args)||void 0===n?void 0:n.page,null===(a=e.args)||void 0===a?void 0:a.overwrite);case d.a.DeletePage:return this.deletePage(null===(i=e.args)||void 0===i?void 0:i.page,null===(r=e.args)||void 0===r?void 0:r.keepRoute);case d.a.SaveRoute:return this.saveRoute(e.args.url,e.args.applicationId).then()}return super.sync(e)}navigate(e,t,n,a,i){return this.context.then(r=>this.createNavigationHandler(r).navigate(e,t,n,a,i))}fetch(e){const t=e.request,n=(0,o.a)(t.url);this._resourceRoutes||(this._resourceRoutes=this.resourceRoutes());const a=this._resourceRoutes.length;for(let o=0;o<a;o++)if(this._resourceRoutes[o].match(n,t)){const a="POST"===t.method?t.clone():t;return this._resourceRoutes[o].fetch(e).catch(t=>{if(t&&!(t instanceof SyntaxError||t instanceof TypeError||"NetworkError"===t.name)){const a=(0,i.b)("BaseApplicationController.fetch",e);(0,r.b)(a,t,void 0,void 0,{App:this.applicationId,name:n.substring(n.lastIndexOf("/")+1)})}return fetch(a)})}}loopbackFilename(e){return e.substring(e.indexOf(c.c)+c.c.length)}isLoopback(e){return 0===e.indexOf(c.c)}fetchLoopback(e){}isCacheable(e,t){switch(t.destination){case a.Script:if(0===t.url.indexOf("https://localhost:")||0===t.url.indexOf("https://odspwebdevdeploy.blob.core.windows.net"))return!1;case a.Font:case a.Style:return 0===t.url.indexOf("https://")}return!1}fetchCacheable(e){return this.context.then(t=>this.getCacheState(t.config).then(t=>this.useDataHostForResources&&this.dataHost?(0,u.b)(e,t,this.dataHost):(0,u.c)(e,t)))}js(e){return new Response(e,{headers:{"Content-Type":"application/javascript","Access-Control-Allow-Origin":"*","Cache-Control":"public, max-age=31536000"}})}precacheWithContext(e,t,n){}willMaintain(e){return Promise.all([e.routeConfig.willMaintain(),e.config.willMaintain()]).then()}maintain(e){return(0,s.a)([e.routeConfig.maintain(),e.config.maintain(),this.deploymentProject?this.getCacheState(e.config).then(e=>(0,u.f)(this.deploymentProject,e)):Promise.resolve()]).then()}prerender(e){const t=`${c.a}${e}`;return this.context.then(e=>{const n=this.createNavigationHandler(e),a=(0,l.d)(t),i=(0,l.c)(t);return n.navigate(i,a,void 0,void 0,!1).then()})}savePage(e,t){return this.context.then(n=>n.config.getPage(e.path).then(a=>n.config.savePage(Object.assign(!t&&a||{},e))))}deletePage(e,t,n){return this.context.then(a=>Promise.all([e&&a.config.deletePageAndSite(e.path,!t&&e.sitePath),e&&!n&&a.routeConfig.deleteRoute(e.path)])).then()}saveRoute(e,t){return this.context.then(n=>n.routeConfig.saveRoute(e,t))}resourceRoutes(){return[{match:this.isLoopback.bind(this),fetch:this.fetchLoopback.bind(this)},{match:this.isCacheable.bind(this),fetch:this.fetchCacheable.bind(this)}]}reloadConfigs(){return super.reloadConfigs().then(()=>this.context.then(e=>e.routeConfig.load(!0)))}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i});const a="BrokerLogon",i="/_layouts/15/brokerlogon.aspx"} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n(60),i=n(137);class r extends i.a{constructor(){super(...arguments),this.config=a.a.current}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a=n(3),i=n(30),r=n(61);class o extends i.a{constructor(){super(),this._exactPaths=new Map,this._regexPaths=new Map,this._loadRoute=e=>{e.regex?this._regexPaths.set(new RegExp(e.path),e.applicationId):this._exactPaths.set(e.path,e.applicationId)}}lookupRoute(e){const t=(0,a.a)(e),n=this._exactPaths.get(t);if(n)return n;const i=this._regexPaths.entries();let r;for(;!(r=i.next()).done;)if(r.value[0].test(t))return r.value[1]}saveRoute(e,t){const n=(0,a.a)(e),i={path:n,applicationId:t,lastRead:new Date};this._exactPaths.set(n,t);const o=new r.a;return o.open().then(()=>o.saveRoute(i).then(()=>(o.close(),i)))}saveRoutes(e){e.forEach(this._loadRoute);const t=new r.a;return t.open().then(()=>t.saveRoutes(e).then(()=>{t.close()}))}deleteRoute(e){this._exactPaths.delete(e=(0,a.a)(e));const t=new r.a;return t.open().then(()=>t.deleteRoute(e).then(()=>{t.close()}))}createDatabase(){return new r.a}loadConfig(e){return e.getAllRoutes().then(e=>{e.forEach(this._loadRoute)})}}o.current=new o} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a,i,r=n(11);(function(e){e.Name="Route.Config",e.RouteStoreName="Route",e.RouteStoreKeyPath="path",e.RouteStoreLastReadIndex="lastRead"})(a||(a={})),(function(e){e[e.MaxRoutes=160]="MaxRoutes"})(i||(i={}));class o extends r.b{constructor(){super(a.Name,1)}getAllRoutes(){const e=this.store(a.RouteStoreName);return super.getAll(e)}saveRoute(e){const t=this.store(a.RouteStoreName,r.a.ReadWrite);return this.put(e,t)}saveRoutes(e){const t=this.store(a.RouteStoreName,r.a.ReadWrite);return this.putMany(e,t)}deleteRoute(e){const t=this.store(a.RouteStoreName,r.a.ReadWrite);return this.delete(e,t)}maintain(){return Promise.all([this.trimStore(this.store(a.RouteStoreName,r.a.ReadWrite),a.RouteStoreLastReadIndex,i.MaxRoutes)]).then(void 0)}upgrade(e){this.createStore(a.RouteStoreName,a.RouteStoreKeyPath,e).createIndex(a.RouteStoreLastReadIndex,a.RouteStoreLastReadIndex)}}} ,(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>a}),(function(e){e.SameOrigin="same-origin",e.NoCors="no-cors",e.Cors="cors",e.Navigate="navigate"})(a||(a={}))} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n(24);class i{get context(){return this._context||(this._context=this.createContext().initialize())}install(){return Promise.resolve()}activate(){return Promise.resolve()}deactivate(){}willSync(e){if(e.tag===a.a.Maintain)return this.context.then(e=>this.willMaintain(e))}sync(e){switch(e.tag){case a.a.Maintain:return this.context.then(e=>this.maintain(e));case a.a.ReloadConfigs:return this.reloadConfigs()}}message(e,t){}willMaintain(e){}maintain(e){}reloadConfigs(){return this.context.then(e=>e.config.load(!0))}}} ,(e,t,n)=>{var a=n(65),i=n(18);e.exports=function e(t,n,r,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:a(t,n,r,o,e,s))}} ,(e,t,n)=>{var a=n(66),i=n(45),r=n(100),o=n(104),s=n(125),c=n(27),d=n(33),l=n(46),u="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,_,h,b){var g=c(e),v=c(t),y=g?f:s(e),S=v?f:s(t),D=(y=y==u?p:y)==p,I=(S=S==u?p:S)==p,x=y==S;if(x&&d(e)){if(!d(t))return!1;g=!0,D=!1}if(x&&!D)return b||(b=new a),g||l(e)?i(e,t,n,_,h,b):r(e,t,y,n,_,h,b);if(!(1&n)){var C=D&&m.call(e,"__wrapped__"),O=I&&m.call(t,"__wrapped__");if(C||O){var w=C?e.value():e,E=O?t.value():t;return b||(b=new a),h(w,E,n,_,b)}}return!!x&&(b||(b=new a),o(e,t,n,_,h,b))}} ,(e,t,n)=>{var a=n(13),i=n(72),r=n(73),o=n(74),s=n(75),c=n(76);function d(e){var t=this.__data__=new a(e);this.size=t.size}d.prototype.clear=i,d.prototype.delete=r,d.prototype.get=o,d.prototype.has=s,d.prototype.set=c,e.exports=d} ,e=>{e.exports=function(){this.__data__=[],this.size=0}} ,(e,t,n)=>{var a=n(14),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}} ,(e,t,n)=>{var a=n(14);e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}} ,(e,t,n)=>{var a=n(14);e.exports=function(e){return a(this.__data__,e)>-1}} ,(e,t,n)=>{var a=n(14);e.exports=function(e,t){var n=this.__data__,i=a(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}} ,(e,t,n)=>{var a=n(13);e.exports=function(){this.__data__=new a,this.size=0}} ,e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}} ,e=>{e.exports=function(e){return this.__data__.get(e)}} ,e=>{e.exports=function(e){return this.__data__.has(e)}} ,(e,t,n)=>{var a=n(13),i=n(25),r=n(44);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(o)}return n.set(e,t),this.size=n.size,this}} ,(e,t,n)=>{var a=n(40),i=n(80),r=n(42),o=n(43),s=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,l=c.toString,u=d.hasOwnProperty,f=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||i(e))&&(a(e)?f:s).test(o(e))}} ,(e,t,n)=>{var a=n(26),i=Object.prototype,r=i.hasOwnProperty,o=i.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(e){}var i=o.call(e);return a&&(t?e[s]=n:delete e[s]),i}} ,e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}} ,(e,t,n)=>{var a,i=n(81),r=(a=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!r&&r in e}} ,(e,t,n)=>{var a=n(1)["__core-js_shared__"];e.exports=a} ,e=>{e.exports=function(e,t){return null==e?void 0:e[t]}} ,(e,t,n)=>{var a=n(84),i=n(13),r=n(25);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(r||i),string:new a}}} ,(e,t,n)=>{var a=n(85),i=n(86),r=n(87),o=n(88),s=n(89);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,e.exports=c} ,(e,t,n)=>{var a=n(16);e.exports=function(){this.__data__=a?a(null):{},this.size=0}} ,e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}} ,(e,t,n)=>{var a=n(16),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}} ,(e,t,n)=>{var a=n(16),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:i.call(t,e)}} ,(e,t,n)=>{var a=n(16);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}} ,(e,t,n)=>{var a=n(17);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}} ,e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}} ,(e,t,n)=>{var a=n(17);e.exports=function(e){return a(this,e).get(e)}} ,(e,t,n)=>{var a=n(17);e.exports=function(e){return a(this,e).has(e)}} ,(e,t,n)=>{var a=n(17);e.exports=function(e,t){var n=a(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}} ,(e,t,n)=>{var a=n(44),i=n(96),r=n(97);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=r,e.exports=o} ,e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}} ,e=>{e.exports=function(e){return this.__data__.has(e)}} ,e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}} ,e=>{e.exports=function(e,t){return e.has(t)}} ,(e,t,n)=>{var a=n(26),i=n(101),r=n(39),o=n(45),s=n(102),c=n(103),d=a?a.prototype:void 0,l=d?d.valueOf:void 0;e.exports=function(e,t,n,a,d,u,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var m=1&a;if(p||(p=c),e.size!=t.size&&!m)return!1;var _=f.get(e);if(_)return _==t;a|=2,f.set(e,t);var h=o(p(e),p(t),a,d,u,f);return f.delete(e),h;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}} ,(e,t,n)=>{var a=n(1).Uint8Array;e.exports=a} ,e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}} ,e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}} ,(e,t,n)=>{var a=n(105),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,o,s){var c=1&n,d=a(e),l=d.length;if(l!=a(t).length&&!c)return!1;for(var u=l;u--;){var f=d[u];if(!(c?f in t:i.call(t,f)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var _=!0;s.set(e,t),s.set(t,e);for(var h=c;++u<l;){var b=e[f=d[u]],g=t[f];if(r)var v=c?r(g,b,f,t,e,s):r(b,g,f,e,t,s);if(!(void 0===v?b===g||o(b,g,n,r,s):v)){_=!1;break}h||(h="constructor"==f)}if(_&&!h){var y=e.constructor,S=t.constructor;y==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof S&&S instanceof S||(_=!1)}return s.delete(e),s.delete(t),_}} ,(e,t,n)=>{var a=n(106),i=n(108),r=n(111);e.exports=function(e){return a(e,r,i)}} ,(e,t,n)=>{var a=n(107),i=n(27);e.exports=function(e,t,n){var r=t(e);return i(e)?r:a(r,n(e))}} ,e=>{e.exports=function(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}} ,(e,t,n)=>{var a=n(109),i=n(110),r=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),a(o(e),function(t){return r.call(e,t)}))}:i;e.exports=s} ,e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,i=0,r=[];++n<a;){var o=e[n];t(o,n,e)&&(r[i++]=o)}return r}} ,e=>{e.exports=function(){return[]}} ,(e,t,n)=>{var a=n(112),i=n(120),r=n(124);e.exports=function(e){return r(e)?a(e):i(e)}} ,(e,t,n)=>{var a=n(113),i=n(114),r=n(27),o=n(33),s=n(117),c=n(46),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),l=!n&&i(e),u=!n&&!l&&o(e),f=!n&&!l&&!u&&c(e),p=n||l||u||f,m=p?a(e.length,String):[],_=m.length;for(var h in e)!t&&!d.call(e,h)||p&&("length"==h||u&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,_))||m.push(h);return m}} ,e=>{e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}} ,(e,t,n)=>{var a=n(115),i=n(18),r=Object.prototype,o=r.hasOwnProperty,s=r.propertyIsEnumerable,c=a((function(){return arguments})())?a:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c} ,(e,t,n)=>{var a=n(15),i=n(18);e.exports=function(e){return i(e)&&"[object Arguments]"==a(e)}} ,e=>{e.exports=function(){return!1}} ,e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var a=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<n}} ,(e,t,n)=>{var a=n(15),i=n(47),r=n(18),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&i(e.length)&&!!o[a(e)]}} ,e=>{e.exports=function(e){return function(t){return e(t)}}} ,(e,t,n)=>{var a=n(121),i=n(122),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return i(e);var t=[];for(var n in Object(e))r.call(e,n)&&"constructor"!=n&&t.push(n);return t}} ,e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}} ,(e,t,n)=>{var a=n(123)(Object.keys,Object);e.exports=a} ,e=>{e.exports=function(e,t){return function(n){return e(t(n))}}} ,(e,t,n)=>{var a=n(40),i=n(47);e.exports=function(e){return null!=e&&i(e.length)&&!a(e)}} ,(e,t,n)=>{var a=n(126),i=n(25),r=n(127),o=n(128),s=n(129),c=n(15),d=n(43),l="[object Map]",u="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",_=d(a),h=d(i),b=d(r),g=d(o),v=d(s),y=c;(a&&y(new a(new ArrayBuffer(1)))!=m||i&&y(new i)!=l||r&&y(r.resolve())!=u||o&&y(new o)!=f||s&&y(new s)!=p)&&(y=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,a=n?d(n):"";if(a)switch(a){case _:return m;case h:return l;case b:return u;case g:return f;case v:return p}return t}),e.exports=y} ,(e,t,n)=>{var a=n(5)(n(1),"DataView");e.exports=a} ,(e,t,n)=>{var a=n(5)(n(1),"Promise");e.exports=a} ,(e,t,n)=>{var a=n(5)(n(1),"Set");e.exports=a} ,(e,t,n)=>{var a=n(5)(n(1),"WeakMap");e.exports=a} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a,i,r=n(11);(function(e){e.Name="Site.Config",e.StateStoreName="State",e.SiteStoreName="Site",e.SiteStoreKeyPath="path",e.SiteStoreLastReadIndex="lastRead",e.PageStoreName="Page",e.PageStoreKeyPath="path",e.PageStoreRankIndex="rank",e.StatsStoreName="Stats"})(a||(a={})),(function(e){e[e.MaxSites=55]="MaxSites",e[e.MaxPages=140]="MaxPages"})(i||(i={}));class o extends r.b{constructor(){super(a.Name,2)}getStateValue(e){const t=this.store(a.StateStoreName);return this.getValue(e,t)}getState(){const e=this.store(a.StateStoreName);return this.getKeyValuesAs(e)}getStats(){const e=this.store(a.StatsStoreName);return this.getKeyValuesAs(e)}getPages(){const e=this.store(a.PageStoreName);return this.getAll(e)}getTopPages(e){const t=this.store(a.PageStoreName);return this.byIndex(a.PageStoreRankIndex,!0,t,e)}getPage(e){const t=this.store(a.PageStoreName);return this.get(e,t)}deletePage(e){const t=this.store(a.PageStoreName,r.a.ReadWrite);return this.delete(e,t)}saveState(e){const t=this.store(a.StateStoreName,r.a.ReadWrite);return this.putKeyValuesFrom(e,t)}saveStats(e){const t=this.store(a.StatsStoreName,r.a.ReadWrite);return this.putKeyValuesFrom(e,t)}computeStats(){return Promise.all([this.count(this.store(a.PageStoreName)),this.count(this.store(a.SiteStoreName)),this.count(this.store(a.StateStoreName))]).then(e=>({pages:e[0],sites:e[1],states:e[2],lastMaintained:new Date}))}savePage(e){const t=this.store(a.PageStoreName,r.a.ReadWrite);return this.put(e,t)}getSites(){const e=this.store(a.SiteStoreName);return this.getAll(e)}getRecentSites(e){const t=this.store(a.SiteStoreName);return this.byIndex(a.SiteStoreLastReadIndex,!0,t,e)}getSite(e){const t=this.store(a.SiteStoreName);return this.get(e,t)}saveSite(e){const t=this.store(a.SiteStoreName,r.a.ReadWrite);return this.put(e,t)}deleteSite(e){const t=this.store(a.SiteStoreName,r.a.ReadWrite);return this.delete(e,t)}maintain(){return Promise.all([this.trimStore(this.store(a.SiteStoreName,r.a.ReadWrite),a.SiteStoreLastReadIndex,i.MaxSites),this.trimStore(this.store(a.PageStoreName,r.a.ReadWrite),a.PageStoreRankIndex,i.MaxPages)]).then(void 0)}upgrade(e,t){t.oldVersion&&t.oldVersion<2&&(this.deleteStore(a.StateStoreName,e),this.deleteStore(a.PageStoreName,e),this.deleteStore(a.SiteStoreName,e),this.deleteStore(a.StatsStoreName,e)),this.createKeyValueStore(a.StateStoreName,e),this.createStore(a.PageStoreName,a.PageStoreKeyPath,e).createIndex(a.PageStoreRankIndex,a.PageStoreRankIndex),this.createStore(a.SiteStoreName,a.SiteStoreKeyPath,e).createIndex(a.SiteStoreLastReadIndex,a.SiteStoreLastReadIndex),this.createKeyValueStore(a.StatsStoreName,e)}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>c,b:()=>o,c:()=>l,d:()=>d,e:()=>s});var a=n(7),i=n(20);const r="SuiteNavPlaceholder";function o(e){e.write(`<div id="${r}" style="min-height:48px;"></div>`)}function s(e){e.write('<div id="SuiteNavWrapper"></div>')}const c=(0,i.b)(i.a.amplifySuiteNav);function d(e,t){const n=t.authProviderConfigOptions,i=`let i,load,render,postRender;try{i=window.parent&&parent!==window}catch(e){i=1}\nif(i){const e=document.getElementById('${r}');return e&&e.remove()}window.o365ShellLoadPromise=new Promise(r=>{load=r;});\nwindow.o365ShellRenderPromise=new Promise(r=>{render=r;});\nwindow.o365ShellPostRenderPromise=new Promise(r=>{postRender=r;});\nwindow.__suiteNav=()=>{load&&load();O365Shell.RenderAsync({top:'${r}',layout:'Mouse',enableSearchUX:!${t.searchBox?"":"!"}0,lazyLoadSearchPackage:!0,initialSearchUXVisibility:!${t.searchBox?"":"!"}0,initialSearchUXSearchText:'${t.initialSearchText?a.a.htmlEncode(t.initialSearchText,!0):""}',enableDelayLoading:!0,collapseO365Settings:!${c||!1!==t.collapseO365Settings?"":"!"}0,disableDelayLoad:!!0,disableShellPlus:!!0,isThinHeader:!0,\nenableLegacyResponsiveBehavior:!!0,expectSearchBoxSettings:!0${n?",shellAuthProviderConfig:"+(function(e){const t=e&&e.launchDestination,n=`'https://www.office.com/login?prompt=select_account&ru=%2Flaunch%2F${t}'`,i=`function(a){var n=a&&a.nextAccount;if(!n){return''}return(!n.type||n.type.toLowerCase()==='aad'?'https://www.office.com/login?ru=%2Flaunch%2F${t}':'https://onedrive.live.com/?gologin=1')+(n.memberName?'&login_hint='+encodeURIComponent(n.memberName):'')}`;return e?`{type:'webAadWithMsaProxy',appSignInUrl:${n},appSignOutUrl:'${a.a.htmlEncode(e.appSignOutUrl,!0)}',appSwitchUrl:${n},appSwitchToUrl:${i},aad:{appId:'00000003-0000-0ff1-ce00-000000000000',wreply:'${a.a.htmlEncode(e.wreplyUrl,!0)}'},msa:{siteId:'250206',wreply:'${a.a.htmlEncode(e.wreplyUrl,!0)}'}}`:null})(n):""},shellDataOverrides:{${n?"AccountSwitchingEnabled:!0,DisableMASTPopup:!0":""}},supportShyHeaderMode:${t.supportShyHeaderMode?"!0,shyHeaderActivationHeight:480":"!!0"}${t.supportsDarkMode?",darkAccent:'#82C7FF'":""},initialRenderData:{AppBrandTheme:${t.theme?JSON.stringify(t.theme):"{Primary:'#0078D4'}"}${t.theme?",DisableTheming:true":""},Culture:'${t.lang}',CurrentMainLinkElementId:'ShellSites',IsConsumer:!!0,UserDisplayName:'${t.user?a.a.htmlEncode(t.user.displayName,!0):""}',UserID:'${t.user&&t.user.userId||"0"}',WorkloadId:'Sharepoint',ShellBootHost:'${t.bootHost}',EnableVanillaSearchBox:!0}},render,postRender,e=>{\nconsole.error(e);\n});};`;e.inlineScript(i)}function l(e,t){e.script2(t,"SuiteNavShellCore",!0,[["onload","window.__suiteNav&&__suiteNav()"]])}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>h});var a=n(8),i=n(6),r=n(2),o=n(4),s=n(31),c=n(3),d=n(37),l=n(23),u=n(22),f=n(10),p=n(32),m=n(7),_=n(0);class h{constructor(e,t){this.swstatsTimeoutKillswitch=!0,this.receiveResponseFastKillswitch=!0,this.qosName="BaseNavigationHandler.navigate",this.controller=e,this.context=t}navigate(e,t,n,a,i){if(this._navigationStart=performance.now()-(e.timeStamp||0),this._request=e.request,this._url=new URL(this._request.url),this._dataHostResponse=n,this._clientId=a,this._qosMonitor=(0,r.b)(this.qosName,a&&e),this._isNavigationPreloaded=t===e.preloadResponse,this._inPlace=i)return this.inPlaceNavigate(e,t,n);const o=new m.a;let s,c;const d=this.startResponse(o);try{s=this.initialize(e,t,n).then(this.appendHeaders.bind(this,d)).then(this.render.bind(this,o)).catch(e=>this.onError(o,c=e)).then(this.endResponse.bind(this,o)).then(()=>this.finalize(!c))}catch(e){s=Promise.all([this.onError(o,e),this.finalize(!1)]).then()}return a&&e.waitUntil(s),Promise.resolve(d)}get navigationStart(){return this._navigationStart}get dataHost(){return this.controller.dataHost}get navigationResultFromDataHost(){return this._navigationResultFromDataHost}get navigationResultFromCache(){return this._navigationResultFromConfig||this._navigationResultFromDataHost}get inPlace(){return this._inPlace}get offlineMode(){return this.startOffline&&(this._offline||this.state.offline)}get appDataEnabled(){return!1}get preloadResponseStart(){return this._preloadResponseStart}get preloadResponseEnd(){return this._preloadResponseEnd}get preloadResponseReceived(){return this._preloadResponseReceived}get preloadResponseReady(){return this._preloadResponseReady}get preloadResponseReadyOrOffline(){return this._preloadResponseReady.catch(e=>this.offlineMode&&this.navigationResultFromCache?void 0:Promise.reject(e))}get navigationResultReady(){return this._navigationResultReady}get navigationResult(){return this._navigationResult}set navigationResult(e){this._navigationResult=e}get navigationResultKey(){}get state(){return this._state}get page(){return this._page}get pageFromConfig(){return this._pageFromConfig}get siteFromConfig(){return this._siteFromConfig}get navigationResultFromConfig(){return this._navigationResultFromConfig}get lkgFromConfig(){return this._lkgFromConfig}get site(){return this._site}get request(){return this._request}get url(){return this._url}get canonicalPath(){return(0,c.a)(this._request.url)}get lang(){return this.site&&this.site.lang||this.context.userAgent.lang}get offline(){return!!this._offline}get preloadResponse(){return this._preloadResponse}get dataHostResponse(){return this._dataHostResponse}get redirected(){return this._redirected}get redirecting(){return this._redirecting}get notFound(){return this._notFound}get error(){return this._error}set error(e){this._error=e}get deleted(){return this._deleted}get endedResponse(){return this._endedResponse}get clientId(){return this._clientId}get client(){return self.clients.get(this._clientId)}get lastRead(){return this._page.lastRead}bypassUrl(e){return(0,u.a)(e||this._url.href)}bypassReloadJs(e){return`location.href='${m.a.htmlEncode(this.bypassUrl(e),!0)}';`}headersInit(){return{"Content-Type":"text/html; charset=utf-8","Transfer-Encoding":"Chunked"}}responseInit(){return{headers:this.headersInit()}}inPlaceNavigate(e,t,n){let a;const i=this.initialize(e,t,n).then(()=>this._preloadResponseReady).catch(t=>(this.failQosMonitor(a=t),this._processResponse(e,(0,p.a)(this._url.href),n))).then(()=>new Response(this.renderJson(),{headers:{"Content-Type":"application/json"}})),r=i.catch(e=>{this.failQosMonitor(a=e)}).then(()=>this.finalize(!a));return e.waitUntil(r),i}onError(e,t){return this.failQosMonitor(this._error=t),console.error(t),this.abandon(e,!this._offline)}loopbackPath(e){return _.c+e}createState(){return{caches:this._state.caches,offline:this._offline,wasOffline:this.state.offline}}createPage(){const e=new Date,t=(this._page&&this._page.reads||0)+1,n={path:this.canonicalPath,applicationId:this.controller.applicationId,lastRead:e,reads:t,rank:this._computeRank(t,e)};return this.startOffline&&(this.navigationResultKey?(n.navigationResults=this._page&&this._page.navigationResults||new Map,n.navigationResults.set(this.navigationResultKey,this.navigationResult)):n.navigationResult=this.navigationResult),this.appDataEnabled&&this._page&&(n.lkgData=this._page.lkgData),n}createSite(){const e=new Date;return Object.assign({lastRead:e},this._site)}updateModels(e,t){(t||(this._navigationResultFromDataHost?!e:e===this._navigationResultFromConfig))&&(this._state=this.createState(),this._site=this.createSite(),this._page=this.createPage())}createStats(e){return Promise.resolve(!_.i.active&&this.context.config.getStats()).then(t=>Object.assign(Object.assign({version:self._swBuildNumber,age:self._serviceWorker.age,navigationsServed:self._serviceWorker.router.navigationsServed,preloadResponseStart:this._preloadResponseStart},!this.receiveResponseFastKillswitch&&{preloadResponseEnd:this._preloadResponseEnd}),{durations:e.durations,navigationPreload:this._isNavigationPreloaded,pageFromConfig:this._pageFromConfig,siteFromConfig:this._siteFromConfig,navigationResultFromConfig:this._navigationResultFromConfig,navigationResultFromDataHost:this._navigationResultFromDataHost,lkgFromConfig:this._lkgFromConfig,offline:this.offline,site:_.i.active?this.context.config.stats:t,firstNavigationTime:self._serviceWorker.router.firstNavigationTime,firstNavigationTicks:self._serviceWorker.router.firstNavigationTicks,startTime:self._startTime,startTicks:self._startTimeTicks,startupDuration:self._serviceWorker.router.idleTime-self._startTime,contextDuration:this.context.initializeDuration}))}get stats(){return this._stats}postRender(){}initializeOfflineMode(e,t){return this._offline=!0,Promise.resolve()}parseNavigationResult(e){const t=e.headers.get("content-type");return this.acceptNonJsonResponse&&t&&!t.includes("application/json")?e.text():e.json()}processNavigationResult(){this.updateModels(!1)}hydrateNavigationResult(){return Promise.resolve()}canStartRendering(){return this._pageFromConfig&&this._siteFromConfig&&this._state&&!!this._state.user}initialize(e,t,n){return this._preloadResponse=t,this._dataHostResponse=n,this._state=this.context.config.getState(),this.context.config.getPageAndSite(this._url.pathname).then(e=>(this._siteFromConfig=!!(this._site=e[1]),this._page=e[0],this._navigationResult=(this._pageFromConfig=!!this._page)&&this.startOffline&&(this.navigationResultKey&&this._page.navigationResults?this._page.navigationResults.get(this.navigationResultKey):this._page.navigationResult),this._lkgFromConfig=this._pageFromConfig&&!!this._page.lkgData,this._navigationResultFromConfig=!!this._navigationResult,this._navigationResultFromConfig&&this.hydrateNavigationResult().then(()=>{this._navigationResultFromConfig=!!this._navigationResult}))).then(this._processResponse.bind(this,e,t,n))}saveConfig(){var e;return this._offline?Promise.resolve(!this.state.wasOffline&&this.context.config.saveState({offline:!0,wasOffline:!0})):Promise.all([!this._deleted&&this.context.config.save(this._state,this._page,this._site),!this._deleted&&!this._error&&this._resolvedPreloadResponse&&this._resolvedPreloadResponse.headers.has("Content-Type")&&-1!==this._resolvedPreloadResponse.headers.get("Content-Type").indexOf("application/json")&&(null===(e=this.dataHost)||void 0===e?void 0:e.update(this._resolvedPreloadResponse,this.controller.applicationId))]).then()}waitUntil(e){(this._outstandingTasks||(this._outstandingTasks=[])).push(e)}finalize(e){return e&&this.endQosMonitor({resultType:a.a.Success}),Promise.all([this.saveConfig(),...this._outstandingTasks||[]]).then()}redirect(e,t){this._redirecting=!0;const n=()=>{t.inlineScript(`location.href='${this.inlineRedirectEncodingKillswitch?e:m.a.htmlEncode(e,!0)}'`,!0),t.flush()};return this.client.then(a=>{if(a instanceof WindowClient&&"nested"!==a.frameType)return t.inlineScript("stop()",!0),t.flush(),a.navigate(e);n()}).catch(n).then()}deletePage(){return this._deleted=!0,Promise.all([this._page&&this.context.config.deletePageAndSite(this._page.path,this._page.sitePath),this.context.routeConfig.deleteRoute(this._url.pathname)]).then()}abandon(e,t){return this._qosMonitor.ended||this.failQosMonitor(this._error),(0,s.a)([t&&this.deletePage(),this.redirect(this.bypassUrl(),e)]).then()}renderStats(e){e.inlineScript(`window.__swstats=${e.xssStringify(this._stats)}`,!0)}abandoning(){return this._notFound}renderPostRender(e){return this.preloadResponseReadyOrOffline.then(()=>this.abandoning()?this.abandon(e,this._notFound):this._updateModelsPostRender().then(()=>{const t=this.postRender();return Promise.resolve(t&&t.then(t=>Promise.resolve(t&&t(e)))).catch(()=>{}).then(()=>this.createStats(e)).then(t=>{this._stats=t,this.renderStats(e)})}))}appendHeaders(e){}render(e){let t;return this.renderPhases().concat([void 0]).reduce((n,a,i,r)=>n.then(t=>Promise.resolve(t&&t(e)).then(()=>a)).catch(e=>{t=e,r.splice(i)})).then(this.renderPostRender.bind(this,e)).then(()=>{if(t&&!this._redirected&&!this._notFound)throw t})}startResponse(e){const t=this.responseInit();return new Response(e.readableStream,t)}endResponse(e){e.close(),this._endedResponse=!0}qosData(){return{app:this.controller.applicationId,stats:this._stats}}endQosMonitor(e){(0,o.a)(this._qosMonitor,e,this.qosData())}failQosMonitor(e,t,n){(0,o.b)(this._qosMonitor,e,t,n)}swapCaches(){return this.controller.getCacheState(this.context.config).then(e=>(0,f.j)(e,this.controller.deploymentProject)).then(e=>{(this._state.caches||(this._state.caches={}))[this.controller.deploymentProject]=e})}renderJson(){return JSON.stringify(this.navigationResult)}_processPreloadResponseError(e,t,n){const a=!t||"NetworkError"===(null==n?void 0:n.name);this._notFound=!(this._redirected=(0,d.a)(t))&&t&&404===t.status;const r=!this._notFound&&!this._redirected&&(!t||t.status>=400||a||this.dataHost&&(!this.receiveResponseFastKillswitch||!e.request.url.startsWith("http://localhost"))),o=!t||this._redirected||this._notFound||r,s=new i.a(Object.assign(Object.assign({},(0,l.a)(t)),{isExpected:o,innerError:n}));if(this.failQosMonitor(s),!this._redirected)return Promise.resolve((this._offline=r)&&this.dataHost&&this.initializeOfflineMode(e,s)).then(()=>{throw s})}_receiveResponse(e,t,n){return e.then(e=>(n||(this._preloadResponseStart=performance.now()-this._navigationStart,this._resolvedPreloadResponse=t?e.clone():e),e))}_parseResponse(e,t,n){if(void 0===this._navigationResultFromDataHost)return this.parseNavigationResult(e).then(e=>{if(n||(this._preloadResponseEnd=performance.now()-this._navigationStart),!(this._navigationResult=e))throw new i.a({message:"Failed to parse the navigation result.",code:"ParseNavigationResultFailed"});return void 0===this._navigationResultFromDataHost&&(this._navigationResultFromDataHost=t&&n),this.processNavigationResult()})}_oldParseResponse(e,t,n){return e.then(e=>{if(n||(this._preloadResponseStart=performance.now()-this._navigationStart,this._resolvedPreloadResponse=t?e.clone():e),void 0===this._navigationResultFromDataHost)return this.parseNavigationResult(e).then(e=>{if(!(this._navigationResult=e))throw new i.a({message:"Failed to parse the navigation result.",code:"ParseNavigationResultFailed"});return void 0===this._navigationResultFromDataHost&&(this._navigationResultFromDataHost=t&&n),this.processNavigationResult()})})}_processResponse(e,t,n){const a=!(!n||!this.startFromDataHost);a&&(this.receiveResponseFastKillswitch?this._dataHostResponseReady=this._oldParseResponse(n,!0,!0):this._dataHostResponseReady=this._receiveResponse(n,!0,!0).then(e=>this._parseResponse(e,!0,!0)));const i=t=>this._processPreloadResponseError(e,this._resolvedPreloadResponse,t);return this.receiveResponseFastKillswitch?this._preloadResponseReady=this._oldParseResponse(t,a,!1).catch(i):(this._preloadResponseReceived=this._receiveResponse(t,a,!1),this._preloadResponseReady=this._preloadResponseReceived.then(e=>this._parseResponse(e,a,!1)).catch(i)),this.receiveResponseFastKillswitch?this._navigationResultReady=(a?Promise.race([this._preloadResponseReady.catch(()=>this._dataHostResponseReady),this._dataHostResponseReady.catch(()=>this._preloadResponseReady)]):this._navigationResult?Promise.resolve():this._preloadResponseReady).catch(i):this._navigationResultReady=a?Promise.race([this._preloadResponseReady.catch(()=>this._dataHostResponseReady),this._dataHostResponseReady.catch(()=>this._preloadResponseReady)]):this._navigationResult?Promise.resolve():this._preloadResponseReady,!this.canStartRendering()&&this._navigationResultReady}_updateModelsPostRender(){return Promise.resolve(this._navigationResultFromDataHost&&this._resolvedPreloadResponse&&this.parseNavigationResult(this._resolvedPreloadResponse.clone()).then(e=>{if(e)return this._navigationResult=e,!0})).catch(()=>{}).then(e=>this.updateModels(!0,e))}_computeRank(e,t){const n=Math.log10(e||1);return Math.round(1e3*(n+1*(t.getTime()-1596092819016)/58e3))/1e3}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n(7),i=n(34);function r(e,t){return`const e=()=>{location.href='${a.a.htmlEncode(t,!0)}';};__spfxMark('${i.a.executionScriptStart}');__spfxMark('${i.a.spModuleLoaderStart}');window.moduleLoaderPromise=spModuleLoader.start(${e},e).catch(e);__spfxMark('${i.a.executionScriptEnd}');`}} ,(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>a}),(function(e){e[e.start=1]="start",e[e.end=2]="end"})(a||(a={}))} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>b,b:()=>b});var a=n(48),i=n(29),r="enableKillSwitches",o="disableKillSwitches",s="KillSwitchOverrides",c="".concat(s,"_").concat(r),d="".concat(s,"_").concat(o);function l(e){try{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}catch(e){return""}}function u(e){var t=[],n=[];for(var a in e)(e[a]?t:n).push(a);try{document.cookie="".concat(c,"=").concat(t.join(","),";path=/;samesite=none;secure;").concat(t.length?"":"expires=Thu, 01 Jan 1970 00:00:01 GMT;"),document.cookie="".concat(d,"=").concat(n.join(","),";path=/;samesite=none;secure;").concat(n.length?"":"expires=Thu, 01 Jan 1970 00:00:01 GMT;")}catch(e){}}function f(e,t,n,a){if(t)for(var r=0,o=t.split(",");r<o.length;r++){var s=o[r];e[i.normalizeUpper(s,!1)]=!0}if(n)for(var c=0,d=n.split(",");c<d.length;c++){s=d[c];e[i.normalizeUpper(s,!1)]=!1}if(a)for(var l=0,u=a.split(",");l<u.length;l++){"!"===(s=u[l])[0]?e[i.normalizeUpper(s.slice(1),!1)]=!1:e[i.normalizeUpper(s,!1)]=!0}return e}var p,m={},_=function(){m=f({},l(c),l(d),void 0);var e=(function(){try{return location.search?location.search.substring(1):""}catch(e){return""}})(),t=(0,a.a)(e);t.enableKillSwitches,t.disableKillSwitches,t.debugKillSwitches;u(m);try{window.__debugSetKillSwitch=function(e,t){void 0===t&&(t=!0),m[i.normalizeUpper(e,!1)]=!!t,u(m)}}catch(e){}_=function(){}};function h(e,t){p&&p(e,t)}var b=(function(){function e(){}return e.initKillSwitches=function(t){e._killSwitch=g({killSwitches:t||{}})},e.isActivated=function(t,n,a){var i;if(_(),e._killSwitch)return e.isActivated=e._killSwitch.isActivated,e._killSwitch.isActivated(t,n,a);try{if(window._spPageContextInfo){var r=g(window._spPageContextInfo);return(null===(i=window._spPageContextInfo)||void 0===i?void 0:i.killSwitches)&&(e.isActivated=r.isActivated),r.isActivated(t,n,a)}if(window.Flight){var o=void 0;if(window.Flight.KillSwitches){o={};for(var s=0,c=Object.keys(window.Flight.KillSwitches);s<c.length;s++){var d=c[s];o[window.Flight.KillSwitches[d]]=!0}}var l=g({killSwitches:o});return o&&(e.isActivated=l.isActivated),l.isActivated(t,n,a)}}catch(e){return h(t,!1),!1}return h(t,!1),!1},e})();function g(e){var t=e&&e.killSwitches;return{isActivated:function(e,n,a){var r=!1;if(e){var o=i.normalizeUpper(e,!1);o in m?r=!!m[o]:t&&(r=!!t[o])}return h(e,r),r}}}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>r,c:()=>i});var a=n(9);function i(e){var t;function n(n){return t=RegExp("".concat(n,"(\\d+)([\\d.]*)")).exec(e)}e=e.toLowerCase();var a=n("msie ")||n("trident.*rv:"),i=t&&"9"===t[1],r=!t&&n("edge/"),o=!t&&n("edg/"),s=!t&&n("fxios|firefox/"),c=!t&&n("(?:chrome|crios)/"),d=!t&&/safari\/(\d+)/.test(e);return d&&n("version/"),{browserName:a?"IE":r?"Edge":o?"EdgeChromium":s?"Firefox":c?"Chrome":d?"Safari":"NA",isChrome:!!c,isEdge:!!r,isEdgeChromium:!!o,isFirefox:!!s,isIE:!!a,isIE9:!!i,isSafari:!!d,matchedBrowser:t}}function r(e){var t=e.matchedBrowser;return{browserMajor:t&&parseInt(t[1],10)||0,browserMinor:t&&t[2]&&t[2].slice(1)||"0"}}var o=function(e){var t="undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0;e||(e=t&&t.navigator&&navigator.userAgent||"");var n=e,o=e.toLowerCase(),s=i(o),c=r(s),d=(function(e){e=e.toLowerCase();var t=/windows phone|wpdesktop/.test(e),n=t||/ipad|iphone|ipod|android/.exec(e),a=n&&n[0],i="android"===a,r="ipad"===a,o=!!a&&!i,s=!n&&e.indexOf("macintosh")>-1,c=!n&&e.indexOf("windows nt")>-1;return{isAndroid:i,isIOS:o,isIPad:r,isMac:s,isWindows:c,isWinPhone:!!t,isMobile:!!n,osName:c?"Windows":t?"Windows Phone":s?"OSX":o?"IOS":i?"Android":"NA"}})(o),l=d.isMobile,u=/electron\/\\d+[\\d.]*/.test(o),f=o.indexOf("winappwipenabled")>-1,p=!("undefined"==typeof window||!window.matchMedia)&&(window.matchMedia("(display-mode: standalone)").matches||window.matchMedia("(display-mode: minimal-ui)").matches),m=/[\s\(](os|os x|windows (?:phone|nt)|android) ([\d._]+)/.exec(o),_=!1,h=!1,b=!1,g=!1;if(t&&t.document){var v=document.createElement("style");v.type="text/css",_=!v.styleSheet,h="addBehavior"in HTMLDivElement.prototype;var y=document.createElement("input");y.type="file";var S=t.File,D=S&&S.prototype;g=!(!D||!(D.slice||D.mozSlice||D.webkitSlice)),b="webkitdirectory"in y&&!u}return(0,a.a)((0,a.a)((0,a.a)((0,a.a)({},s),c),d),{isElectron:u,osVersion:m?m[2]:"NA",isWindows81:!l&&/windows (?:8\.1|nt 6\.3)/.test(o),isWindows10:!l&&o.indexOf("windows nt 10")>-1,isWindows7:!l&&o.indexOf("windows nt 6.1")>-1,isWinAppWipEnabled:f,isPWA:p,areCSS3TransitionsSupported:!s.isIE||c.browserMajor>9,areTouchEventsSupported:!!t&&"ontouchstart"in t,isFolderUploadSupported:b,isHtml5FileUploadSupported:g,isRetinaSupported:!!t&&t.devicePixelRatio>1,isUnlimitedStyleSheetsSupported:_,isWebDavSupported:h,userAgent:n})}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>a});class a{get initializeDuration(){return this._initializeDuration}initialize(){const e=performance.now();return this.loadConfigs().then(()=>(this._initializeDuration=performance.now()-e,this))}loadConfigs(){return this.config.load()}}} ,(e,t,n)=>{"use strict";function a(e,t,n){const a=t.length,i=e.indexOf(t)+a;if(i>=a)return e.substring(i,void 0!==n?e.indexOf(n,i):void 0)}n.d(t,{a:()=>a})} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i});const a="SPFx",i="STS"} ,(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>AceManifests,b:()=>BaseSpfxHandler});var _ms_odsp_utilities_lib_logging_events_Qos_event__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8),_ms_utilities_error__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_substring__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(138),_semver__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(146),_FlightIdValues__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(50),_telemetry_ServiceWorkerTelemetry__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_telemetry_qos__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_HtmlWriter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7),_site_interfaces__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(0),_sp_interfaces__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(21),_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(34),_SpfxInternalId__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(52),_SpfxConfig__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(56),_startSpfxJs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(133),_appData_comparers_spWebPartDataIsEqual__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(144),_appData_comparers_spAsyncCompanyFeedWebPartIsEqual__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(147),_Killswitch__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(20);const InlineFetchNewNavigationPreloadJs=`fetch(location.href,{credentials:'include',headers:{Accept:'application/json','${_site_interfaces__WEBPACK_IMPORTED_MODULE_3__.b.NavigationPreload}':'true','${_site_interfaces__WEBPACK_IMPORTED_MODULE_3__.b.InPlaceNav}':'true'}})`,InlineFetchNewAppDataJs=`const u=new URL(location.href);u.searchParams.set('as','json');fetch(u.href,{credentials:'include',headers:{Accept:'application/json','${_site_interfaces__WEBPACK_IMPORTED_MODULE_3__.b.LkgPrefetch}':'1'}}).then(r=>r.json()).then(data=>{const ks=Object.keys(data||[]);for(const k of ks){window[k]=data[k];window[k+'Loaded']&&window[k+'Loaded'](false,true);}});`,AceManifests=["9593e615-7320-4b8b-be98-09b97112b12f","d5599777-42ec-4755-bcd6-1b3f0f01349e","2425c26d-88d9-4893-b38e-773b33c375de","c9925e96-32e6-4acb-a012-20e913d03410","749d8ca7-0821-4e96-be16-db7b0bcf1a9e","20222d75-541f-4400-8100-1dec7b274cbb","3f2506d3-390c-426e-b272-4b4ec0ee4d2d","8e5d3e4f-66f9-4646-9b69-2edda929f572","31feacc2-1e40-415e-9f98-e17e004645eb","aa239bee-cb0b-46d1-8aed-4c8268f93d02","d49ea271-61d5-4a3f-8e44-f547ca592160","a5aeb63e-26be-424c-90ed-02e4dd627b6c","15882270-4250-46c0-8abc-79e58220d84e"];class BaseSpfxHandler extends _SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.b{constructor(){super(...arguments),this.additionalManifestConsumptionKillswitch=(0,_Killswitch__WEBPACK_IMPORTED_MODULE_9__.b)(_Killswitch__WEBPACK_IMPORTED_MODULE_9__.a.additionalManifestConsumption),this.isSPAppBarHiddenOnPublicationsKSActivated=(0,_Killswitch__WEBPACK_IMPORTED_MODULE_9__.b)(_Killswitch__WEBPACK_IMPORTED_MODULE_9__.a.spAppBarHiddenOnPublications),this.maxWebPartPreloads=4,this.maxComponentPreloads=5,this.acceptNonJsonResponse=!0}get scriptLang(){return this.forcedLocale||this.site&&this.site.scriptLang||this.lang}get supportsWebWorkerData(){return!1}get testMode(){return!!this.url.searchParams.get("buildId")}get debugLoaderUrl(){return this.debugMode&&(this.url.searchParams.get("loader")||this.context.spfxConfig.loaderAssemblyUrl(this.scriptLang))}get forcedLocale(){return this.url.searchParams.get("locale")||this.url.searchParams.get("forceLocale")}get oldScriptSyncPending(){return this._oldScriptSyncPending}get components(){return this._components}loaderUrl(){return this._loaderUrl||(this._loaderUrl=this.debugLoaderUrl||(this.context.spfxConfig.assemblyMode&&this.assemblyId?this.context.spfxConfig.scriptUrl(this.assemblyId,this.scriptLang):this.context.spfxConfig.loaderAssemblyUrl(this.scriptLang)))}initialize(e,t,n){return this.testMode?Promise.reject():super.initialize(e,t,n)}parseNavigationResult(e){return super.parseNavigationResult(e).then(e=>{if("string"==typeof e){this._unexpectedNonJsonResponse=!0;const t=(0,_telemetry_ServiceWorkerTelemetry__WEBPACK_IMPORTED_MODULE_0__.b)("BaseSpfxHandler.parseUnexpectedNonJson");try{const n=this._parseUnexpectedNonJson(e);return(0,_telemetry_qos__WEBPACK_IMPORTED_MODULE_1__.a)(t,{resultType:_ms_odsp_utilities_lib_logging_events_Qos_event__WEBPACK_IMPORTED_MODULE_10__.a.Success}),n}catch(n){throw(0,_telemetry_qos__WEBPACK_IMPORTED_MODULE_1__.b)(t,n,"ParseJsonFailed",!1,{contentLength:e.length}),n}}return e})}renderWorkerScript(e){if(this.isFlightEnabled(_FlightIdValues__WEBPACK_IMPORTED_MODULE_11__.x)&&!1!==this.supportsWebWorkerData){const t=this.url.searchParams.get("WebWorkerPath"),n=t||self._cdnBaseUrl+"spwebworker.js",a=`(function(global){\n let assemblyScriptLoaded = false;\n global.__loadAssembly = function()\n {\n if (assemblyScriptLoaded === false)\n {\n assemblyScriptLoaded = true;\n __spfxMark('${_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.moduleLoaderScriptStart}');\n\n ${e.generateScriptBlock(this.loaderUrl(),this.bypassReloadJs(),this.debugMode,"window.__loadedResolve()")};\n __spfxMark('${_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.moduleLoaderScriptEnd}');\n }\n }\n try{\n let loadedFail;\n window.__assemblyLoadedPromise = new Promise((resolve, fail) => {\n window.__loadedResolve = resolve;\n loadedFail = fail;\n });\n\n __spfxMark('${_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.spWorkerInit}');\n const code = "self._appId = '`+this.assemblyId+"'; self._hostUrl = '"+this.url.href+"';self.postMessage('SPWebWorker Loaded.'); self._cdnBaseUrl = '"+n.substring(0,n.lastIndexOf("/")+1)+"';importScripts('"+n+`');";\n const blob = new Blob([code],{\n type: 'text/javascript'\n });\n const blobObjUrl = URL.createObjectURL(blob);\n global.__spWorker = new Worker(blobObjUrl,{\n name: 'SP Worker'\n });\n setTimeout(window.__loadAssembly, 200);\n global.__spWorker.addEventListener('message',(ev)=>{\n if(ev.data==='SPWebWorker Loaded.'){\n __spfxMark('${_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.spWorkerLoaded}');\n window.__loadAssembly();\n }\n if (ev.data && ev.data.payload==='ApplicationHandler Loaded.'){\n __spfxMark('${_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.appHandlerLoaded}');\n window.__activeAppId=ev.data.handlerId;\n }\n if(ev.data==='SPWebWorker started.'){\n __spfxMark('${_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.spWorkerStarted}');\n global.__spWorkerStarted=true;\n }});\n global.__dataStash = [];\n global.__spWorker.addEventListener('message',(ev)=>{\n if(ev.data && ev.data.handlerId==='${this.assemblyId}'){\n console.log('got data' + ev.data);\n performance.mark('WWData Received');\n if (global.__dataStashCallback)\n {\n global.__dataStashCallback(ev.data);\n }\n else\n {\n global.__dataStash.push(ev.data);\n }\n }});\n global.__authenticated.then((result) => {\n global.__spWorker.postMessage({target:'${this.assemblyId}', operation:1, payload:{authTriggered:result.didAuthenticate}});\n });\n global.__spWorker.onerror=(er)=>{\n if (er.message.includes('Failed to fetch web worker script')||er.message.includes('Failed to eval')){\n global.__spWorkerStarted=false;\n global.__spWorkerError=er.message;\n global.__spWorker.terminate();\n delete global.__spWorker;\n }};\n global.__spWorker.addEventListener()\n }catch(e){}})(self);`;e.inlineScript(a)}else super.renderWorkerScript(e)}get spPageContext(){return this.preloadedData.spPageContextInfo}extensions(){if(!this._extensions){const e=this.preloadedData.manifests,t=e&&e.length||0;this._extensions=new Map;for(let n=0;n<t;n++)e[n].isInternal||this._extensions.set(e[n].id,e[n])}return this._extensions}preloads(){var e,t,n;const a=super.preloads();return this.debugMode?a:a.concat(this.loaderUrl(),(this.context.spfxConfig.scriptUrls((this.spfxPreloads||[]).concat((this._getWebPartIds()||[]).slice(0,this.maxWebPartPreloads),(this.page.dynamicComponents||[]).slice(0,this.maxComponentPreloads),!this.additionalManifestConsumptionKillswitch&&(null===(n=null===(t=null===(e=this.preloadedData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.Content)||void 0===n?void 0:n.AdditionalManifests)||[]),this.scriptLang)||[]).filter(e=>new URL(e).host!==self.location.host))}getComponents(){const e=this.page;return this.context.spfxConfig.getComponents([this.componentId].concat(this._getWebPartIds()||[],e.dynamicComponents||[],e.extensions||[],this.additionalComponents()),this.scriptLang)}oldSyncScript(e){var t;const n=this.context.spfxConfig,a=Array.from(new Set(n.scriptSyncState?n.scriptSyncState.langs:void 0).add(e));let i;const r=null===(t=n.scriptSyncState)||void 0===t?void 0:t.version;return n.syncManifests(a,!0,this.site).catch(e=>{if(!(e instanceof _ms_utilities_error__WEBPACK_IMPORTED_MODULE_12__.a)||"401"!==e.code&&"403"!==e.code)throw e;this.abandonUnlessRedirected=!0,this.error=i=e}).then(()=>{var t;return!i&&Promise.resolve(r!==(null===(t=n.scriptSyncState)||void 0===t?void 0:t.version)&&this.swapCaches()).then(()=>this.controller.precache((t,n)=>n===e))})}oldEnsureScript(e){return void 0===this._oldScriptSync&&(e||(e=this.scriptLang),this._oldScriptSync=this.context.spfxConfig.requiresScriptSync([e],this.offlineMode)?this.oldSyncScript(e):null),this._oldScriptSync}hydrateNavigationResult(){const e=this.context.spfxConfig,t=this.navigationResultFromConfig;return Promise.all([t&&this.oldEnsureScript(),t&&super.hydrateNavigationResult()]).then(()=>{this._version=this.preloadedData.buildNumber,this.preloadedData.manifests=this._components=this.getComponents(),e.scriptSyncState&&(this.preloadedData.buildNumber=e.scriptSyncState.version)})}processNavigationResult(){const e=this.context.spfxConfig,t=this.navigationResultFromConfig;return Promise.all([this._saveExtensions(),!t&&this.oldEnsureScript(this.preloadedData.appScriptLang)]).then(super.processNavigationResult.bind(this)).then(!t&&this.hydrateNavigationResult.bind(this)).then(()=>{this._oldScriptSyncPending=!this._oldScriptSync&&e.scriptSyncState&&e.scriptSyncState.version!==this._version&&!this.inPlace&&!this.offline&&!this.debugMode})}canStartRendering(){return super.canStartRendering()&&(this.navigationResultFromConfig||!this.oldEnsureScript())}saveConfig(){return this.preloadedData&&(this.preloadedData.manifests=void 0),Promise.resolve(this._deletedManifests&&this.context.spfxConfig.deleteManifests(Array.from(this._deletedManifests))).then(super.saveConfig.bind(this))}finalize(e){return Promise.resolve(this._oldScriptSyncPending&&this.oldSyncScript(this.scriptLang)).then(super.finalize.bind(this,e))}renderFluentUIV9FlightsInfo(e){_sp_interfaces__WEBPACK_IMPORTED_MODULE_4__.b&&e.inlineScript(`window.__FUIV9Flights=${_HtmlWriter__WEBPACK_IMPORTED_MODULE_2__.a.htmlEncode(_sp_interfaces__WEBPACK_IMPORTED_MODULE_4__.b,!0)}`,!0)}renderLoaderAssembly(e){this.isFlightEnabled(_FlightIdValues__WEBPACK_IMPORTED_MODULE_11__.x)&&!1!==this.supportsWebWorkerData||(this.renderMark(e,_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.moduleLoaderScriptStart),e.script(this.loaderUrl(),this.bypassReloadJs(),this.debugMode),this.renderMark(e,_SPPageHandler__WEBPACK_IMPORTED_MODULE_5__.a.moduleLoaderScriptEnd))}renderAppChrome(e){e.write('<div class="spAppAndPropertyPanelContainer">\n<div class="SPPageChrome-app" id="spPageChromeAppDiv" data-sp-feature-tag="Page Chrome" data-sp-feature-instance-id="_Page Chrome" data-sp-a11y-navigatebyhierarchy="true">'),this.renderAppChromeContent(e),e.write("</div></div>")}renderShell(e){super.renderShell(e),this.renderFluentUIV9FlightsInfo(e),this.renderLoaderAssembly(e),this.lkgFromConfig||e.flush()}additionalComponents(){var e,t,n;const a=[];return this.context.userAgent.teams&&a.push(_SpfxInternalId__WEBPACK_IMPORTED_MODULE_13__.a.Teams),(this.debugMode||this.isFlightEnabled(_FlightIdValues__WEBPACK_IMPORTED_MODULE_11__.y))&&(a.push(_SpfxInternalId__WEBPACK_IMPORTED_MODULE_13__.a.DebugApplicationCustomizer),a.push(_SpfxInternalId__WEBPACK_IMPORTED_MODULE_13__.a.SPFlightInspector)),!this.additionalManifestConsumptionKillswitch&&(null===(n=null===(t=null===(e=this.preloadedData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.Content)||void 0===n?void 0:n.AdditionalManifests)&&a.push(...this.preloadedData.page.Content.AdditionalManifests),a}renderStart(e){const t=[];this.useSecureBroker&&t.push("try{sessionStorage.setItem('useSecureBroker','true');}catch{}"),this.requiresInlineAuthentication()?(t.push(InlineFetchNewNavigationPreloadJs+`.then(r=>r.json()).then(preloadedData=>{${this._startJs("preloadedData")}});${this.appDataEnabled?InlineFetchNewAppDataJs:""}`),this.renderAuthenticateInline(e,t.join(""))):(t.push(this._startJs(e.xssStringify(this.preloadedData))),e.inlineScript(t.join("")),e.flush())}authenticate(e,t){return e||(e=(this.appDataEnabled?InlineFetchNewAppDataJs:"")+(this.startOffline?InlineFetchNewNavigationPreloadJs+";":"")),super.authenticate(e,t)}renderJson(){return JSON.stringify(this.preloadedData)}createSite(){return Object.assign(Object.assign({},super.createSite()),{scriptLang:this.preloadedData.appScriptLang})}createPage(){const e=new Set(this.extensions().keys()),t=this.preloadedData.customActions,n=t&&t.length||0;for(let a=0;a<n;a++){const n=t[a].clientSideComponentId;if(!e.has(n)){const e=this.context.spfxConfig.getComponent(n);e&&!e.isInternal&&this.deleteManifest(n)}}return Object.assign(Object.assign({},super.createPage()),{extensions:Array.from(e)})}createStats(e){return super.createStats(e).then(e=>Object.assign(Object.assign({},e),{scriptSyncPending:this._oldScriptSyncPending}))}isAppDataValueEqual(e,t,n){switch(n){case"_spWebPartData":return(0,_appData_comparers_spWebPartDataIsEqual__WEBPACK_IMPORTED_MODULE_8__.a)(e,t);case"_spAsyncCompanyFeedWebPart":return(0,_appData_comparers_spAsyncCompanyFeedWebPartIsEqual__WEBPACK_IMPORTED_MODULE_14__.a)(e,t)}return super.isAppDataValueEqual(e,t,n)}deleteManifest(e){this._deletedManifests||(this._deletedManifests=new Set),this._deletedManifests.add(e)}qosData(){return Object.assign(Object.assign({},super.qosData()),this._unexpectedNonJsonResponse&&{unexpectedNonJsonResponse:!0})}_startJs(e){const t=(0,_startSpfxJs__WEBPACK_IMPORTED_MODULE_7__.a)(e,this.bypassUrl());return this.isFlightEnabled(_FlightIdValues__WEBPACK_IMPORTED_MODULE_11__.x)&&!0===this.supportsWebWorkerData?`window.__assemblyLoadedPromise.then(()=>{ delete __loadedResolve; delete __assemblyLoadedPromise; ${t}});`:t}_scanForVersionMismatch(e,t){const n=this.context.spfxConfig.getComponent(t.id,t.version);if(n&&!(0,_semver__WEBPACK_IMPORTED_MODULE_15__.b)(n.version,t.version)){const a=!n.isInternal&&this.extensions().get(t.id);if(!a||!(0,_semver__WEBPACK_IMPORTED_MODULE_15__.b)(a.version,t.version))throw new _ms_utilities_error__WEBPACK_IMPORTED_MODULE_12__.a({message:"Dependency not satisfied.",code:"VersionMismatch",extraData:{component:`${e.id}_${e.version} (${e.alias})`,requestedComponentId:n.id,requestedVersion:t.version,installedVersion:n.version}})}}_validateExtensions(e){const t=e.length;for(let n=0;n<t;n++){const t=e[n],a=t.loaderConfig&&t.loaderConfig.scriptResources;if(a){const e=Object.keys(a),n=e.length;for(let i=0;i<n;i++){const n=a[e[i]];(0,_SpfxConfig__WEBPACK_IMPORTED_MODULE_6__.c)(n)&&this._scanForVersionMismatch(t,n)}}}}_saveExtensions(){const e=Array.from(this.extensions().values()),t=this.context.spfxConfig.scriptSyncState;return t&&t.version!==this.preloadedData.buildNumber&&this._validateExtensions(e),this.context.spfxConfig.saveManifests(e)}_parseUnexpectedNonJson(navigationResult){let s=(0,_substring__WEBPACK_IMPORTED_MODULE_16__.a)(navigationResult,",spClientSidePageContext=JSON.parse('","');\r\n");if(s){const escapedString=`'${s}'`,evaluatedString=eval(escapedString);return JSON.parse(evaluatedString)}if(s=(0,_substring__WEBPACK_IMPORTED_MODULE_16__.a)(navigationResult,",spClientSidePageContext=",";\r\n var startSpfx ="),s)return JSON.parse(s);throw new _ms_utilities_error__WEBPACK_IMPORTED_MODULE_12__.a({message:"Failed to parse unexpected non-JSON response.",code:"ParseUnexpectedNonJsonFailed"})}_getWebPartIds(){if(this._audienceFilteredWebPartIds)return this._audienceFilteredWebPartIds;const e=this.page.webParts,t=this.page.audienceFilteredWebPartComponentIds;return this._audienceFilteredWebPartIds=this.context.config.isFlightEnabled(_FlightIdValues__WEBPACK_IMPORTED_MODULE_11__.w)&&e?e.filter(e=>!t||-1!==t.indexOf(e)):e,this._audienceFilteredWebPartIds}}} ,,,(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>a}),(function(e){e.Audio="audio",e.Video="video",e.Track="track",e.Script="script",e.Style="style",e.Font="font",e.Image="image",e.Fetch="fetch",e.Worker="worker",e.Embed="embed",e.Document="document"})(a||(a={}))} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n(12),i=n.n(a);function r(e,t){return i()(null==e?void 0:e.Items,null==t?void 0:t.Items)}} ,(e,t,n)=>{"use strict";n.d(t,{a:()=>r,b:()=>i,c:()=>d,d:()=>o,e:()=>c});const a="https://securebroker.sharepointonline.com",i="https://res.cdn.office.net/teams-js/2.0.0/js/MicrosoftTeams.min.js",r="window.__authenticated=new Promise((s,e)=>{window.__authenticatedSuccess=s;window.__authenticatedError=e;});";function o(e,t){return`try{__spfxMark("swAuthenticationReceived");__authenticatedSuccess({didAuthenticate:${e}});}catch{${t||""}}`}function s(e,t,n){return`fetch('/_api/SP.OAuth.NativeClient/Authenticate', {\n method: 'POST',\n credentials: 'same-origin',\n headers: {\n 'Authorization': 'Bearer ' + token,\n 'X-FeatureVersion': '2'\n }\n})\n.then(r => {\n if (r.ok) {\n try{sessionStorage.setItem('TeamsLogonSuccess', Date.now());}catch{}\n ${o(!0,t)}\n ${e||""}\n } else {\n if (r.status === 401 && retry++ < 5) {\n const h = r.headers.get('WWW-Authenticate');\n if (h?.includes('claims=')) {\n const dirs = h.split(',');\n for (let i = 0; i < dirs.length; i++) {\n const p = dirs[i].trim().split('=');\n if (p[0] === 'claims') {\n ${n}\n }\n }\n }\n } else {\n\n try{localStorage.setItem('TeamsLogonFailure',\`Inline authentication failed. Response: \${r?.status}. Reloading page, bypassing service worker. Date: \${Date.now()}\`);}catch{}\n __authenticatedError();\n ${t||""}\n }\n }\n});`}function c(e){return`parent.postMessage({action:'error',error:${JSON.stringify(e||null)}},'${a}');`}function d(e,t,n,i,r){return i?(function(e,t,n,a){return`if (typeof microsoftTeams === 'undefined') {\n ${a}\n return;\n}\nmicrosoftTeams.app.initialize().then(() => {\n try{sessionStorage.setItem('TeamsLogonIsAuthRequired',true);}catch{}\n try{sessionStorage.setItem('TeamsLogonAuthTokenRequested',Date.now());}catch{}\n\n let claims=${n?`'${n}'`:"undefined"},tid,identifier=0,retry=0,timeout=550;\n let i=0;\n\n (function authenticate() {\n const scheduleRetry=()=>{\n if(++i<6){timeout+=identifier*550;tid=setTimeout(authenticate,timeout);}\n };\n microsoftTeams.authentication.getAuthToken({\n resources: [location.origin],\n claims\n })\n .then((token) => {\n if (token) {\n clearTimeout(tid);${s(e,t,"claims=p[0];authenticate();")}\n } else {\n scheduleRetry();\n }\n })\n .catch(scheduleRetry);\n scheduleRetry();\n })();\n});\nmicrosoftTeams.app.getContext().then((context) => {\n try{sessionStorage.setItem('TeamsLogonUserClickTime',context.app.userClickTime);}catch{}\n});\n`})(e,t,n,r):(function(e,t,n){return`parent.postMessage({action:'getBrokerWindow'},'${a}');\nlet tid,retry=0;\ntry{sessionStorage.setItem('TeamsLogonIsAuthRequired',true);}catch{}\nlet authHandler = e => {\n clearTimeout(tid);\n if (e.origin === '${a}' && e.data && e.data.action === 'returnToken') {\n removeEventListener('message', authHandler);\n try{ sessionStorage.setItem('TeamsLogonAuthTokenFetched', Date.now()); }catch{}\n const token=e.data.result;${s(e,t,`addEventListener('message', authHandler);\n parent.postMessage({\n action: 'requestToken',\n claims: p[1],\n resource: location.origin,\n identifier: 0\n }, '${a}');\n return;`)}\n }\n};\naddEventListener('message', authHandler);\ntry{sessionStorage.setItem('TeamsLogonAuthTokenRequested',Date.now());}catch{}\nlet identifier=0,timeout=550;\nconst requestToken = () => {\n parent.postMessage({\n action: 'requestToken',\n claims: ${n?`'${n}'`:"undefined"},\n resource: location.origin,\n identifier,\n isRetry: !!identifier\n }, '${a}');\n if(++identifier<7){timeout+=identifier*550;tid=setTimeout(()=>requestToken(),timeout);}\n};\nrequestToken();`})(e,t,n)}} ,(e,t,n)=>{"use strict";function a(e,t){const n=e.split("."),a=t.split(".");for(let e=0;e<n.length;e++){const t=parseInt(n[e],10),i=parseInt(a[e],10);if(t>i)return 1;if(t<i)return-1}return 0}function i(e,t){return-1!==a(e,t)}n.d(t,{a:()=>a,b:()=>i})} ,(e,t,n)=>{"use strict";function a(e){return!!(null==e?void 0:e.feed)}function i(e){var t;if(e){const n=Object.keys(e);for(const i of n){const n=null===(t=e[i])||void 0===t?void 0:t.data;if("string"==typeof n){const e=JSON.parse(n);if(a(e))return e}}}}function r(e,t){var n,a,r,o;const s=i(e),c=i(t);if(!s||!c)return s===c;const d=null===(a=null===(n=null==s?void 0:s.feed)||void 0===n?void 0:n.section)||void 0===a?void 0:a.items,l=null===(o=null===(r=null==c?void 0:c.feed)||void 0===r?void 0:r.section)||void 0===o?void 0:o.items,u=null==d?void 0:d.length;if(u===(null==l?void 0:l.length)){for(let e=0;e<u;e++)if(d[e].itemId!==l[e].itemId)return!1;return!0}}n.d(t,{a:()=>r})} ],t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a](r,r.exports,n),r.loaded=!0,r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=(function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/";var a={};(()=>{"use strict";n.p=self._cdnBaseUrl})(),(()=>{"use strict";n.d(a,{a:()=>ua,b:()=>ca});var e={};n.r(e),n.d(e,{indexedDB:()=>f,localStorage:()=>u,none:()=>p});var t=n(35),i=function(){var e,t;this.promise=new Promise(function(n,a){e=n,t=a}),this.resolve=e,this.reject=t};class r{constructor(){this._serviceWorkerPostMessageReceivers=new Set,this._clients=new Map}onMessageReceived(e){if(e.data.openServiceWorkerChannel){let t=e.source.id;const n={port:e.ports[0],url:e.source.url.toLowerCase(),id:t};if(this._clients.has(t)){this._clients.get(t).resolve(n)}else{const e=new i;e.resolve(n),this._clients.set(t,e)}self.clients.matchAll().then(e=>{const n=e.map(e=>e.id);for(t of Array.from(this._clients.keys()))-1===n.indexOf(t)&&this._clients.delete(t)})}for(const t of Array.from(this._serviceWorkerPostMessageReceivers))t(e)}postDataToClient(e){const{getData:t,clientId:n}=e;return this._waitForChannelOpenForClient({clientId:n}).then(e=>{const{port:a,url:i}=e;return t().then(e=>{a.postMessage({isServiceWorkerPostMessageData:!0,data:e,client:{id:n,url:i}})})})}registerPostMessageReceiver(e,t){const n=n=>{const a=n.data;if(a.isAdhocPost&&a.postId&&a.postData.type===e){const e=n.ports[0];return t(a.postData).then(t=>{const n={isAdhocPost:!0,postId:a.postId,replyData:t};e.postMessage(n)})}return Promise.resolve()};return this._serviceWorkerPostMessageReceivers.add(n),()=>{this._serviceWorkerPostMessageReceivers.delete(n)}}_waitForChannelOpenForClient(e){const{clientId:t}=e;let n;return this._clients.has(t)?n=this._clients.get(t):(n=new i,this._clients.set(t,n)),n.promise}}var o,s=n(2),c=n(28),d=n(134),l=n(9),u=0,f=1,p=2,m=e,_=n(136),h=n(29),b="undefined"==typeof window?self:window,g=n(8);(function(e){e.success="success",e.error="error"})(o||(o={}));var v="app",y="app_lastRead",S="ODSP_DB",D="ODSP_DB_TABLE",I="lastModified",x="lastRead",C="ODSP_DB_METADATA_TABLE",O="database_metadata",w="parentKey",E="reads",A=(new _.a).isFirefox,L="indexedDB is not supported",k=(function(){function e(t){if(!("indexedDB"in b)||!b.indexedDB)throw new Error(L);this._logger=t,e._openDBPromise||(e._openDBPromise=this._openIndexedDB().then(function(t){return e._db=t,t}))}return e.prototype.freeSpace=function(t,n){return(0,l.b)(this,void 0,void 0,function(){var a,i,r,o=this;return(0,l.d)(this,function(s){switch(s.label){case 0:return i=e,(r=e._db)?[3,2]:[4,e._openDBPromise];case 1:r=s.sent(),s.label=2;case 2:return a=i._db=r,[2,new Promise(function(e,i){var r=a.transaction([D],"readwrite").objectStore(D).index(y).openCursor();r.onsuccess=function(a){var i=r.result;i?(i.value.app===t&&n>0&&(n-=i.value.size,i.delete()),n>0?i.continue():e()):e()},r.onerror=function(e){o._errorHandling(e,i)}})]}})})},e.prototype.read=function(e){return(0,l.b)(this,void 0,void 0,function(){return(0,l.d)(this,function(t){return[2,this._readInternal(D,function(t){return t.get(e)})]})})},e.prototype.rangeQuery=function(t){return(0,l.b)(this,void 0,void 0,function(){var n,a,i,r,o,s,c,d,u,f,p,m,_,h=this;return(0,l.d)(this,function(l){switch(l.label){case 0:return n={},i=e,(r=e._db)?[3,2]:[4,e._openDBPromise];case 1:r=l.sent(),l.label=2;case 2:return a=i._db=r,o=a.transaction([D],"readonly"),s=o.objectStore(D),c=[],d=t.index,u=t.range,f=t.direction,p=t.count,m=s.index(d),(_=m.openKeyCursor(u,f)).onerror=function(e){h._errorHandling(e,n.reject)},_.onsuccess=function(e){var t=e.target.result;t?(c.push(t.primaryKey),c.length>=p?n.resolve(c):t.continue()):n.resolve(c)},[2,new Promise(function(e,t){n.resolve=e,n.reject=t})]}})})},e.prototype.write=function(e){return(0,l.b)(this,void 0,void 0,function(){var t;return(0,l.d)(this,function(n){return t=e.key,void 0!==e.data?[2,this._writeInternal({tableName:D,key:t,row:(0,l.a)((0,l.a)({},e),{lastModified:Date.now()})})]:void 0!==e.parentKey?[2,this._deleteDataRows(e.parentKey)]:[2,this._writeInternal({tableName:D,key:t,row:void 0})]})})},e.prototype.statistics=function(){return(0,l.b)(this,void 0,void 0,function(){var e,t;return(0,l.d)(this,function(n){switch(n.label){case 0:return this._dbMetaData?[3,2]:[4,this._readAndSetMetadataDB()];case 1:e=n.sent(),this._dbMetaData=e,n.label=2;case 2:return[4,this._iterate(D,function(e){return e.size})];case 3:return t=n.sent(),[2,{metaData:this._dbMetaData,count:t.length,totalBytes:t.reduce(function(e,t){return e+t},0)}]}})})},e.prototype._openIndexedDB=function(){var t=this;return new Promise(function(n,a){if(e._db)n(e._db);else{var i=A?indexedDB.open(S,{version:4,storage:"temporary"}):indexedDB.open(S,4);i.onerror=function(e){t._errorHandling(e,a)},i.onsuccess=function(t){var a=e._db=i.result;n(a)},i.onupgradeneeded=function(e){var n=e.target.result;n.onerror=function(e){t._errorHandling(e,a)};var r=e.oldVersion;t._handleDBUpgrade(i,n,r)}}})},e.prototype._handleDBUpgrade=function(e,t,n){var a;n<1&&((a=t.createObjectStore(D,{keyPath:"key"})).createIndex(I,I,{unique:!1}),a.createIndex(E,E,{unique:!1}),t.createObjectStore(C,{keyPath:"key"})),n<2&&((a=a||e.transaction.objectStore(D)).createIndex(v,v,{unique:!1}),a.createIndex(x,x,{unique:!1}),a.createIndex(y,[v,x],{unique:!1})),n<3&&((a=a||e.transaction.objectStore(D)).createIndex("app_lastModified",[v,I],{unique:!1}),a.createIndex("app_reads",[v,E],{unique:!1})),n<4&&((a=a||e.transaction.objectStore(D)).createIndex(w,w,{unique:!1}),a.createIndex("parentKey_app",[w,v],{unique:!1}),a.createIndex("parentKey_app_lastModified",[w,v,I],{unique:!1}),a.createIndex("parentKey_app_lastRead",[w,v,x],{unique:!1}),a.createIndex("parentKey_app_reads",[w,v,E],{unique:!1}))},e.prototype._readAndSetMetadataDB=function(){var e=this;return this._readInternal(C,function(e){return e.get(O)}).then(function(t){if(t)return t.data;var n={id:h.generate(),created:Date.now(),cacheType:m.indexedDB};return e._writeInternal({tableName:C,key:O,row:{key:O,data:n}}).then(function(){return n})})},e.prototype._readInternal=function(t,n){return(0,l.b)(this,void 0,void 0,function(){var a,i,r,o=this;return(0,l.d)(this,function(s){switch(s.label){case 0:return i=e,(r=e._db)?[3,2]:[4,e._openDBPromise];case 1:r=s.sent(),s.label=2;case 2:return a=i._db=r,[2,new Promise(function(e,i){var r=o._logger({name:"PersistentCacheIDB.readInternal"}),s=Date.now(),c=a.transaction([t],"readonly").objectStore(t),d=n(c);d.onsuccess=function(t){r({resultType:g.a.Success,extraData:{io:Math.round(Date.now()-s)}}),e(d.result)},d.onerror=function(e){r({resultType:g.a.Failure,extraData:{io:Math.round(Date.now()-s)}}),o._errorHandling(e,i)}})]}})})},e.prototype._iterate=function(t,n){return(0,l.b)(this,void 0,void 0,function(){var a,i,r,o,s=this;return(0,l.d)(this,function(c){switch(c.label){case 0:return i=e,(r=e._db)?[3,2]:[4,e._openDBPromise];case 1:r=c.sent(),c.label=2;case 2:return a=i._db=r,o=[],[2,new Promise(function(e,i){var r=a.transaction([t],"readonly").objectStore(t).openCursor();r.onsuccess=function(t){var a=r.result;a?(o.push(n(a.value)),a.continue()):e(o)},r.onerror=function(e){s._errorHandling(e,i)}})]}})})},e.prototype._writeInternal=function(t){return(0,l.b)(this,void 0,void 0,function(){var n,a,i,r,o,s,c=this;return(0,l.d)(this,function(d){switch(d.label){case 0:return n=t.tableName,a=t.key,i=t.row,o=e,(s=e._db)?[3,2]:[4,e._openDBPromise];case 1:s=d.sent(),d.label=2;case 2:return r=o._db=s,[2,new Promise(function(e,t){try{var o=r.transaction([n],"readwrite"),s=o.objectStore(n);o.oncomplete=function(){},o.onerror=function(e){c._errorHandling(e,t)};var d=i?s.put(i):s.delete(a);d.onsuccess=function(t){e()},d.onerror=function(e){c._errorHandling(e,t)}}catch(e){throw e}})]}})})},e.prototype._deleteDataRows=function(e){return(0,l.b)(this,void 0,void 0,function(){var t,n=this;return(0,l.d)(this,function(a){return t=e.slice(0,e.length-1)+String.fromCharCode(e.charCodeAt(e.length-1)+1),[2,this.rangeQuery({index:w,range:IDBKeyRange.bound(e,t,!1,!0),direction:"next"}).then(function(e){return Promise.all(e.map(function(e){return n._writeInternal({tableName:D,key:e,row:void 0})}))}).then(function(){})]})})},e.prototype._errorHandling=function(e,t){if(e.type===o.error){var n=e.target.error;t({name:n.name,message:n.message,code:n.code})}},e})(),M="PersistentCache",P="PersistentCache_metadata",T="localStorage is not supported",U=(function(){function e(){try{if("localStorage"in b&&b.localStorage&&(this._localStorage=b.localStorage,!this._localStorage.getItem(P))){var e={id:h.generate(),created:Date.now(),cacheType:m.localStorage};this._localStorage.setItem(P,JSON.stringify(e))}}catch(e){}if(!this._localStorage)throw new Error(T)}return e.prototype.freeSpace=function(e,t){throw new Error("Method not implemented.")},e.prototype.read=function(e){return JSON.parse(this._localStorage.getItem(this._cacheKey(e)))},e.prototype.write=function(e){var t=e.key;if(void 0!==e.data){var n=(0,l.a)((0,l.a)({},e),{lastModified:Date.now()});this._localStorage.setItem(this._cacheKey(t),JSON.stringify(n))}else this._localStorage.removeItem(this._cacheKey(t))},e.prototype.statistics=function(){var e=[];for(var t in this._localStorage)if(0===t.indexOf(M)){var n=this._localStorage.getItem(t);e.push(n?n.length:0)}return{metaData:JSON.parse(this._localStorage.getItem(P)),count:e.length,totalBytes:e.reduce(function(e,t){return e+t},0)}},e.prototype.rangeQuery=function(e){return(0,l.b)(this,void 0,void 0,function(){return(0,l.d)(this,function(e){return[2,void 0]})})},e.prototype._cacheKey=function(e){return"".concat(M,"_").concat(e)},e})(),F="wrong secret or signature.",H=0,R=(function(){function e(){this._queue={}}return e.prototype.enqueue=function(e,t){var n=this._queue[e]=this._queue[e]||[],a=!0,i=[];n.length>0&&(n[0].schedule?(i=n.slice(1),this._queue[e]=[n[0]],a=!1):(i=this._queue[e],this._queue[e]=[]));var r=this._createUpateTask(e,t);return i.length>0&&(r.signal=i[0].signal),this._queue[e].push(r),a&&this._scheduleTask(e),r},e.prototype._createUpateTask=function(e,t){var n=this,a={};a.promise=new Promise(function(e,t){a.resolve=e,a.reject=t});var i={execute:function(){return(0,l.b)(n,void 0,void 0,function(){var e;return(0,l.d)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),[4,t()];case 1:return n.sent(),[3,4];case 2:return e=n.sent(),i.error=e,[3,4];case 3:return this._completeTask(i),[7];case 4:return[2]}})})},schedule:0,id:H++,key:e,signal:a};return i},e.prototype._scheduleTask=function(e){var t=this._queue[e];if(t&&t.length>0){var n=t[0];n.schedule=b.setTimeout(n.execute,5)}},e.prototype._completeTask=function(e){var t=e.id,n=e.key,a=this._queue[n],i=a[0],r=a.slice(1);if(i.id!==t)throw new Error("this should not happen, currently running task must be the top of the queue");this._queue[n]=r,this._scheduleTask(n),e.error?e.signal.reject(e.error):e.signal.resolve()},e})();function N(){return b.performance&&performance.now?Math.round(performance.now()):Date.now()}var B=n(55),j="_odspcache_",V="_____",z={cacheType:m.indexedDB},G=(function(){function e(e){var t=e.cacheType,n=void 0===t?z.cacheType:t,a=(0,l.e)(e,["cacheType"]);if(this._config=(0,l.a)((0,l.a)({},a),{cacheType:n}),this._cacheSecret=this._config.secret,this._dataIsEncrypted=!!this._cacheSecret,this._crypto=this._config.crypto,this._dataIsEncrypted&&!this._crypto)throw new Error("When data needs encryption, crypto implementing ICrypto has to be provided when initiating PersistentCache.");this._cacheType=this._config.cacheType,this._app=e.app,this._cacheUpdateTaskManager=new R,this._qos=this._config.telemetry&&this._config.telemetry.qos,this._initLocalStorage(this._cacheType)}return Object.defineProperty(e.prototype,"configuration",{get:function(){return this._config},enumerable:!1,configurable:!0}),e.prototype.read=function(t){return(0,l.b)(this,void 0,void 0,function(){var n,a,i,r,o,s,c,d,u,f,p,m,_,h,b,g,v,y,S,D;return(0,l.d)(this,function(l){switch(l.label){case 0:n=this._logQos({name:"PersistentCache.read"}),o=N(),s=Date.now(),l.label=1;case 1:return l.trys.push([1,12,,13]),d=this._getCacheKey(t),u=!1,f={lastModified:NaN,lastRead:s,reads:1},p=void 0,d?(m=N(),[4,this._storage.read(d)]):[3,11];case 2:return c=l.sent(),r=Math.round(N()-m),c?(_=c.data,f={lastModified:c.lastModified,lastRead:s,reads:c.reads+1},(a=e._buffer[d])&&a.cacheStats.lastModified===c.lastModified?(a.app=c.app||this._app,a.key={original:t,encoded:c.key||d},a.cacheStats.lastRead=s,a.cacheStats.reads++,a.performance={total:Math.round(N()-o)},[3,11]):[3,3]):[3,11];case 3:if(a=void 0,void 0===_)return[3,11];if(!this._dataIsEncrypted)return[3,10];h=_,b=this._cacheSecret,g=b.CurrentKey.Key,v=b.PreviousKey.Key,y=N(),l.label=4;case 4:return l.trys.push([4,6,,9]),[4,this._crypto.decrypt({encryptedData:h,encryptionSecret:g})];case 5:return p=l.sent(),[3,9];case 6:return(S=l.sent())&&S.message&&S.message.indexOf(F)>=0?[4,this._crypto.decrypt({encryptedData:h,encryptionSecret:v})]:[3,8];case 7:p=l.sent(),u=void 0!==p,n({resultType:B.a.ExpectedFailure,error:S.message,extraData:{cacheResult:"hit"}}),l.label=8;case 8:return[3,9];case 9:return i=Math.round(N()-y),[3,11];case 10:p=_,l.label=11;case 11:return a=a||{key:{original:t,encoded:c&&c.key||d},app:c&&c.app||this._app,data:p,cacheStats:f,cacheType:this._cacheType,performance:{crypto:i,io:r,total:Math.round(N()-o)}},e._buffer[d]=a,u&&this.update(t,p),[3,13];case 12:throw D=l.sent(),n({resultType:B.a.Failure,error:D.message?D.message:D.toString(),extraData:{cacheResult:"miss"}}),D;case 13:return n({resultType:B.a.Success,extraData:{cacheResult:"".concat(void 0!==a.data?"hit":"miss")}}),[2,Promise.resolve(a)]}})})},e.prototype.rangeQuery=function(e){return(0,l.b)(this,void 0,void 0,function(){var t,n,a,i,r,o,s,c=this;return(0,l.d)(this,function(d){if(this._cacheType!==m.indexedDB)throw new Error("Only indexedDB supports range query, your storage does not support!");t=this._logQos({name:"PersistentCache.rangeQuery"}),n=0,a=N(),i=Date.now(),o={lastModified:NaN,lastRead:i,reads:1};try{s=N(),r=this._storage.rangeQuery(e).then(function(e){return n=Math.round(N()-s),{key:void 0,app:void 0,data:e.map(function(e){return{original:c._getOriginalKeyFromCacheKey(e),encoded:e}}),cacheStats:o,cacheType:c._cacheType,performance:{io:n,total:Math.round(N()-a)}}})}catch(e){throw t({resultType:B.a.Failure,error:e.message?e.message:e.toString()}),e}return t({resultType:B.a.Success}),[2,r||Promise.resolve({key:void 0,app:void 0,data:[],cacheStats:o,cacheType:this._cacheType,performance:{io:n,total:Math.round(N()-a)}})]})})},e.prototype.update=function(e,t){return(0,l.b)(this,void 0,void 0,function(){var n,a=this;return(0,l.d)(this,function(i){switch(i.label){case 0:return n=this._getCacheKey(e),[4,this._cacheUpdateTaskManager.enqueue(n,function(){return a._doCacheUpdate(e,t)}).signal.promise];case 1:return i.sent(),this._logCacheStats(),[2]}})})},e.prototype.remove=function(e){return(0,l.b)(this,void 0,void 0,function(){return(0,l.d)(this,function(t){return[2,this.update(e,void 0)]})})},e.prototype.freeSpace=function(e,t){return(0,l.b)(this,void 0,void 0,function(){return(0,l.d)(this,function(n){return[2,this._storage.freeSpace(e,t)]})})},e.prototype.readAndUpdate=function(e,t){return(0,l.b)(this,void 0,void 0,function(){var n,a,i,r,o,s,c=this;return(0,l.d)(this,function(d){switch(d.label){case 0:n=N(),a=Date.now(),i=this._logQos({name:"PersistentCache.readAndUpdate"}),r=t().then(function(t){var i={app:c._app,key:{original:e,encoded:c._getCacheKey(e)},data:t,cacheType:m.none,cacheStats:{lastModified:void 0,lastRead:a,reads:1},performance:{total:Math.round(N()-n)}};return c.update(e,t),i}),d.label=1;case 1:d.trys.push([1,8,,9]),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,Promise.race([this.read(e),r])];case 3:return o=d.sent(),[3,5];case 4:return d.sent(),[3,5];case 5:return!o||o.cacheType!==m.none&&void 0===o.data?[4,r]:[3,7];case 6:o=d.sent(),d.label=7;case 7:return[3,9];case 8:throw s=d.sent(),i({resultType:B.a.Failure,error:s.message?s.message:s.toString()}),s;case 9:return i({resultType:B.a.Success}),[2,o]}})})},e.prototype._initLocalStorage=function(e){if(e===m.localStorage)this._storage=new U;else try{this._storage=new k(this._logQos.bind(this))}catch(e){e.message===L&&(this._storage=new U,this._cacheType=m.localStorage)}},e.prototype._getCacheKey=function(e){var t=encodeURIComponent("".concat(e.key).concat(e.user?V+e.user:""));return"".concat(j).concat(this._dataIsEncrypted?btoa(t):t)},e.prototype._getOriginalKeyFromCacheKey=function(e){var t=e.replace(j,""),n=this._dataIsEncrypted?atob(t):t,a=decodeURIComponent(n);if(a.indexOf(V)>=0){var i=a.split(V);return{key:i[0],user:i[1]}}return{key:a}},e.prototype._doCacheUpdate=function(t,n){return(0,l.b)(this,void 0,void 0,function(){var a,i,r,o,s,c,d;return(0,l.d)(this,function(u){switch(u.label){case 0:a=this._logQos({name:"PersistentCache.update"}),u.label=1;case 1:return u.trys.push([1,9,,10]),i=this._getCacheKey(t),void 0===n?[3,6]:((r=e._buffer[i]=(0,l.a)((0,l.a)({},e._buffer[i]),{data:n,cacheType:this._cacheType})).cacheStats||(r.cacheStats={lastModified:NaN,lastRead:N(),reads:1}),o=n,s=NaN,this._dataIsEncrypted?(c=this._cacheSecret.CurrentKey.Key,[4,this._crypto.encrypt({encryptionSecret:c,data:n,doSerialize:this._cacheType===m.localStorage})]):[3,3]);case 2:return o=u.sent(),s=o.cipherText?o.cipherText.byteLength:0,[3,4];case 3:try{s="string"==typeof n?n.length:JSON.stringify(n).length}catch(e){}u.label=4;case 4:return[4,this._storage.write({app:this._app,key:i,data:o,lastRead:r.cacheStats.lastRead,parentKey:t.parentKey,reads:r.cacheStats.reads,size:s})];case 5:return u.sent(),[3,8];case 6:return delete e._buffer[i],[4,this._storage.write({key:i,app:void 0,data:void 0,lastRead:void 0,parentKey:t.parentKey,reads:void 0,size:void 0})];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:throw d=u.sent(),a({resultType:B.a.Failure,error:d.message?d.message:d.toString()}),d;case 10:return a({resultType:B.a.Success}),[2]}})})},e.prototype._logCacheStats=function(){return(0,l.b)(this,void 0,void 0,function(){var e=this;return(0,l.d)(this,function(t){return this._logStatsTimer||(this._logStatsTimer=setTimeout(function(){return(0,l.b)(e,void 0,void 0,function(){return(0,l.d)(this,function(e){switch(e.label){case 0:return[4,this._storage.statistics()];case 1:return e.sent(),[2]}})})},3e4)),[2]})})},e.prototype._logQos=function(e){if(this._qos){var t=this._app;e.extraData||(e.extraData={}),e.extraData.alias=e.extraData.alias||t;var n=new this._qos(e);return function(e){e.extraData||(e.extraData={}),e.extraData.alias=e.extraData.alias||t,n.end(e)}}return function(e){}},e._buffer={},e})();const K=18144e5;class W{constructor(e){const{cacheAppName:t}=e;this._cache=new G({app:t,cacheType:m.indexedDB,telemetry:void 0})}read(e){return this._cache.read({key:e}).then(e=>void 0===e.data?void 0:e)}update(e,t){return this._cache.update({key:e},t)}remove(e){return this._cache.remove({key:e})}keys(){const{app:e}=this._cache.configuration;return this._cache.rangeQuery({index:"app",range:IDBKeyRange.only(e),direction:"next"}).then(e=>e.data.map(e=>e.original.key))}clean(e){const{logQos:t=!0}=e||{},n=t&&(0,s.b)("SPServiceWorker.ListController.indexedDB.cleanup");return this._cleanInternal(e).then(e=>n&&n({resultType:g.a.Success,extraData:{entriesRemoved:e}})).catch(e=>n&&n({resultType:g.a.Failure,error:JSON.stringify(e)}))}rangeQuery(e){return this._cache.rangeQuery(e)}_cleanInternal(e){const{expirationInMilliseconds:t=K,additionalItemsToClean:n=[]}=e||{},{app:a}=this._cache.configuration,i=Date.now()-t;return this._cache.rangeQuery({index:"app_lastModified",range:IDBKeyRange.bound([a,0],[a,i]),direction:"next"}).then(e=>{const t=[];return new Set([...e.data,...n]).forEach(e=>{const{original:n}=e;t.push(this._cache.remove(n))}),Promise.all(t).then(e=>e?e.length:0)})}}const q="serviceworker-telemetry-event-cache",Q=6048e5,Y={active:!0};class J{constructor(){this._cache=new W({cacheAppName:q}),this._debouncedPostDataToClient=this._getDebouncedPostDataToClient()}startQos(e){let t,n,a=e;e.start&&(a=e.start,n=e.event),t="string"==typeof a?{name:a}:a;const i=c.a.generate(),r={qos:t,type:d.a.start,id:i},o=n&&(n.resultingClientId||n.clientId);return this._logQosEvent({qos:r,clientId:o}).then(()=>e=>{e.extraData=Object.assign(Object.assign({},e.extraData),{name:t.name,id:i});const n={qos:e,type:d.a.end,id:i};return this._logQosEvent({qos:n,clientId:o})})}_getDebouncedPostDataToClient(){let e;return t=>{const n=t.getData;return t.getData=()=>n(),e=e||self._postMessageController.postDataToClient(t),Promise.race([e.then(()=>t.cleanupData()),(a=5e3,new Promise(e=>{self.setTimeout(()=>{e()},a)}))]).then(()=>{e=void 0}).catch(t=>{console.log("postDataToClient error: ",t),e=void 0});var a}}_sendTelemetry(e){let t=[];return this._debouncedPostDataToClient({clientId:e,getData:()=>this._cache.rangeQuery({index:"app_lastModified",range:IDBKeyRange.bound([q,Date.now()-Q],[q,Date.now()]),direction:"prev",count:1/0}).then(e=>{t=e.data;const n=[];for(const t of e.data){const{original:e}=t;n.push(this._cache.read(e.key))}return Promise.all(n).then(e=>({qosEvents:e.filter(Boolean).map(e=>e.data),isQos:!0}))}),cleanupData:()=>t.length>0?this._cache.clean({expirationInMilliseconds:Q,additionalItemsToClean:t,logQos:!1}):Promise.resolve()})}_logQosEvent(e){const{qos:t,clientId:n}=e;return this._cache.update(`${t.id}-${t.type}`,t).then(()=>{if(n)return this._sendTelemetry(n)})}}var X=n(22),Z=n(57),$=n(36),ee=n(60),te=n(137);class ne extends te.a{constructor(){super(...arguments),this.userAgent=$.a.current,this.routeConfig=ee.a.current}}var ae=n(38);class ie extends ne{constructor(){super(...arguments),this.config=ae.a.current}loadConfigs(){var e;return Promise.resolve(null===(e=this.applicationConfig)||void 0===e?void 0:e.load()).then(super.loadConfigs.bind(this))}}var re=n(138),oe=n(34);class se extends oe.b{constructor(e,t){super(e,t),this.acceptNonJsonResponse=!0}trimEndHtml(e){return e.replace(se._endHtml,"")}parseHtml(e){return{html:this.trimEndHtml(e)}}parseNavigationResult(e){return e.text().then(e=>(this._spPageContext=JSON.parse((0,re.a)(e,"var _spPageContextInfo=",";_spPageContextInfo.")),this.parseHtml(e)))}get spPageContext(){return this._spPageContext}createPage(){return Object.assign(Object.assign({},super.createPage()),this.navigationResult)}renderStart(e){e.write(this.navigationResult.html),e.flush()}renderPhases(){return[this.start()]}}se._endHtml=/<\/(body|html)>/g;class ce extends se{constructor(e,t){super(e,t),this.startOffline=!0}updateModels(e){e===this._navigationResultFromConfig&&(this._page=this.createPage())}initialize(e,t,n){return super.initialize(e,t,n)}parseNavigationResult(e){return e.text().then(e=>({html:e}))}renderHtml(e){e.write(this._renderResponse),e.endHtml(),e.close()}html(){return this.preloadResponse.then(()=>(this._renderResponse=this.navigationResult.html,this.renderHtml.bind(this))).catch(e=>this.navigationResult&&this.url.search.toLocaleLowerCase().includes("vivaconnections=true")?(this._renderResponse=this.navigationResult.html.replace("isAuthRequired = true","isAuthRequired = false"),this.renderHtml.bind(this)):this._redirectToBypass.bind(this))}get spPageContext(){return{}}get title(){return"Loading..."}get navigationResultKey(){return this.url.pathname+this.url.search}_redirectToBypass(e){return this.redirect(this.bypassUrl(),e)}}const de="TeamsLogon";class le extends Z.a{constructor(){super(),this.applicationId=de}knownPaths(){return[{path:"/_layouts/15/teamslogon.aspx"}]}createContext(){return new ie}createNavigationHandler(e){return new ce(this,e)}}var ue=n(20),fe=n(10),pe=n(0);class me extends X.b{constructor(e,t){super(e,t),this.routeLookupRaceKillswitch=(0,ue.b)(ue.a.routeLookupRace),this._interceptiblePostUrl=/_layouts\/15\/(FilePicker|FileBrowser)\.aspx/i,this._bypassFilePickerOnListv2Killswitch=(0,ue.b)(ue.a.bypassFilePickerOnListv2),this._bypassRequestUrl=/\/teamslogon\.aspx/,fe.e.active=(0,ue.b)(ue.a.cacheResponseReturnsFast),pe.j.active=(0,ue.b)(ue.a.typeError),pe.i.active=(0,ue.b)(ue.a.minimalStartup),pe.f.active=(0,ue.b)(ue.a.baseControllerSync),pe.g.active=(0,ue.b)(ue.a.deleteCaches),pe.h.active=(0,ue.b)(ue.a.ensureStatsInitialized)}get enablePeriodicSync(){return!0}isNavigationIntercepted(e){return!(!this.applications.has(de)&&this._bypassRequestUrl.test(e.url))&&(super.isNavigationIntercepted(e)||"POST"===e.method&&this._interceptiblePostUrl.test(e.url)&&(this._bypassFilePickerOnListv2Killswitch||!ua))}getNavigationPreloadResponse(e){const{request:t}=e;return"POST"===t.method?fetch(t,{headers:Object.assign(Object.assign({},(0,s.c)(t.headers)),{"x-override-origin":t.headers.get("origin")})}):super.getNavigationPreloadResponse(e)}}const _e="Registration";var he=n(19),be=n(132);class ge extends be.a{constructor(e,t){super(e,t),this.startOffline=!0,this.acceptNonJsonResponse=!0}createSite(){return Object.assign(Object.assign({},super.createSite()),{path:"/"})}renderRegistration(e){e.startHtml(this.lang),e.charset(),e.title("");const t=this.url.searchParams.get("_host"),n=new URL(this.url.href);n.searchParams.forEach((e,t)=>{"_"===t[0]&&n.searchParams.delete(t)});const a=`navigator.serviceWorker.register('/_layouts/15/odspserviceworkerproxy.aspx${n.search}',{scope:'/',updateViaCache:'all'}).then(()=>{parent.postMessage({name:'${he.a.ServiceWorkerRegistered}',origin:location.origin},'${t||"*"}');});`;e.inlineScript(a),e.startBody(),e.endHtml(),e.flush()}registration(){return Promise.resolve(this.renderRegistration.bind(this))}renderPhases(){return[this.registration()]}}class ve extends Z.a{constructor(e){super(e),this.applicationId=_e}knownPaths(){return[{path:"/_layouts/15/registerserviceworker.ashx"}]}createContext(){return new ie}createNavigationHandler(e){return new ge(this,e)}}var ye=n(58);const Se="STS";var De,Ie=n(24),xe=n(54),Ce=n(56);(function(e){e.Script="Script"})(De||(De={}));class Oe extends xe.b{constructor(e){super(e),this.deploymentProject="SPClient"}install(){return Ce.b.current.install().then(()=>super.install())}sync(e){switch(e.tag){case De.Script:return this.context.then(t=>t.spfxConfig.syncManifests(e.langs,e.force));case Ie.a.ReloadConfigs:return this.context.then(t=>Promise.all([super.sync(e),t.spfxConfig.load(!0)]).then())}return super.sync(e)}message(e,t){}precacheWithContext(e,t,n){const a=this.precachedComponents(e),i=new Set;if(a&&e.spfxConfig.scriptSyncState&&e.spfxConfig.scriptSyncState.langs){const t=a.length,r=e.spfxConfig.scriptSyncState.langs.values();let o;for(;!(o=r.next()).done;)for(let r=0;r<t;r++){const t=e.spfxConfig.scriptUrl(a[r],o.value);n&&!n(t,o.value)||i.add(t)}}return Promise.all([super.precacheWithContext(e,t),(0,fe.i)(Array.from(i),t)]).then()}willMaintain(e){return super.willMaintain(e).then(()=>e.spfxConfig.willMaintain())}maintain(e){return Promise.all([e.spfxConfig.maintain(),super.maintain(e)]).then()}isComponentFetch(e){return e.endsWith("/_api/web/getclientsidecomponents")}fetchComponents(e){return Promise.all([e.request.clone().json(),this.context]).then(t=>{const n=t[0].components;return t[1].spfxConfig.findComponents(n,e).then(e=>{const t=e.map(e=>({ComponentType:this._toComponentType(e.componentType),Id:e.id,Manifest:JSON.stringify(e),ManifestType:1,Name:e.id,Status:0}));return new Response(JSON.stringify({value:t}),{headers:{"Content-Type":"application/json"}})})})}isWebPartFetch(e){return e.endsWith("/_api/web/getclientsidewebparts")}fetchWebParts(e){return this._fetchComponents(e,[Ce.a.WebPart])}isComponentFetchByType(e){return e.includes("/_api/web/getclientsidecomponentsbycomponenttype(")}fetchComponentsByType(e){const t=((0,re.a)(e.request.url,"componentTypesString='","'")||"").split(",").map(e=>parseInt(e,10));return this._fetchComponents(e,t)}isAppDataFetch(e,t){return"1"===t.headers.get(pe.b.LkgPrefetch)}fetchAppData(e){return Promise.all([fetch(e.request),this.context]).then(t=>Promise.all([t[0].clone().json(),t[1].config.getPage(e.request.url)]).then(n=>{const a=n[1];return a&&(a.lkgData=n[0],e.waitUntil(t[1].config.savePage(a))),t[0]}))}resourceRoutes(){return super.resourceRoutes().concat([{match:this.isComponentFetch.bind(this),fetch:this.fetchComponents.bind(this)},{match:this.isComponentFetchByType.bind(this),fetch:this.fetchComponentsByType.bind(this)},{match:this.isWebPartFetch.bind(this),fetch:this.fetchWebParts.bind(this)},{match:this.isAppDataFetch.bind(this),fetch:this.fetchAppData.bind(this)}])}_fetchComponents(e,t){return Promise.all([fetch(e.request,{credentials:"include"}).then(e=>e.json()),this.context]).then(n=>n[1].spfxConfig.getGeneration(e).then(e=>{const a=n[0].value.filter(e=>-1!==t.indexOf(e.ComponentType)).map(t=>{const a=n[1].spfxConfig.getComponent(t.Id,void 0,e);return(null==a?void 0:a.isInternal)&&(t.Manifest=JSON.stringify(a)),t});return new Response(JSON.stringify({value:a}),{headers:{"Content-Type":"application/json"}})}))}_toComponentType(e){switch(e){case"Library":return 3;case"WebPart":return 1;case"Application":return 2;case"Extension":return 4;case"AdaptiveCardExtension":return 7;case"ProviderHostedApp":return 5;case"Assembly":return 6}}}class we extends ie{constructor(){super(...arguments),this.spfxConfig=Ce.b.current}loadConfigs(){return this.spfxConfig.load().then(super.loadConfigs.bind(this))}}var Ee=n(52),Ae=n(7),Le=n(140);class ke extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.SPBrokerLoginApplication,this.assemblyId=Ee.a.BrokerLoginAssembly,this.startOffline=!0}get preloadedData(){return this.navigationResult}get isUserAuthenticated(){var e,t,n;return null===(n=null===(t=null===(e=this.preloadedData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.Content)||void 0===n?void 0:n.isUserAuthenticated}get homeSiteUrl(){var e,t,n,a;return(null===(n=null===(t=null===(e=this.preloadedData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.Content)||void 0===n?void 0:n.homeSiteUrl)||(null===(a=this.page)||void 0===a?void 0:a.homeSiteUrl)}renderPhases(){return[this.shell(),this.start(),this._redirectToDest()]}renderSplash(e){}get abandonUnlessRedirected(){return!1}requiresAuthentication(){return!1}createPage(){return Object.assign(Object.assign({},super.createPage()),{homeSiteUrl:this.homeSiteUrl})}saveConfig(){return this.isUserAuthenticated&&(this.preloadedData.page.Content.isUserAuthenticated=!1),super.saveConfig()}_renderRedirectToDest(e){let t=this.url.searchParams.get("dest");const n=this.isUserAuthenticated,a=!t&&"true"===this.url.searchParams.get("vivahome"),i=!a&&"true"===this.url.searchParams.get("vivaconnections");if(i||a){const a=this.homeSiteUrl;if(a&&(t=i?a:("/"===a[a.length-1]?a.substring(0,a.length-1):a)+"/_layouts/15/VivaHome.aspx",!n))return e.inlineScript(`window.__vivaDest='${Ae.a.htmlEncode(t,!0)}'`,!0),void e.flush()}if(t&&n)return this.redirect(t,e)}_redirectToDest(){return this.preloadResponseReady.then(()=>this._renderRedirectToDest.bind(this))}}class Me extends Oe{constructor(){super(),this.applicationId=ye.a}knownPaths(){return[{path:ye.b}]}precachedComponents(e){return[Ee.a.BrokerLoginAssembly,Ee.a.SPBrokerLoginApplication]}createContext(){return new we}createNavigationHandler(e){return new ke(this,e)}}var Pe=n(3),Te=n(130),Ue=n(139),Fe=n(6),He=n(4),Re=n(32),Ne=n(23),Be=n(51),je=n(49),Ve=n(30),ze=n(21);class Ge extends Ve.a{constructor(e){super(),this.projectId=e,this._manifests=new Map}get manifestCount(){return this._manifestCount}get lang(){return this._lang}set lang(e){this._lang=e}get manifests(){return this._manifests}get scriptSyncState(){return this._scriptSyncState}requiresScriptSync(e,t){const n=this._scriptSyncState;if(!n||!n.lastSync||!n.langs||!this._manifestCount||this._manifestCount<n.manifestCount)return!0;if(!t){if(Math.floor(((new Date).getTime()-n.lastSync.getTime())/864e5)>21)return!0}const a=e&&e.length||0;for(let t=0;t<a;t++)if(!n.langs.has(e[t]))return!0;return!1}syncManifests(e,t,n){if(t||this.requiresScriptSync(e)){const a=(0,s.b)("SPApplicationConfig.syncManifests"),i=this.createDatabase();return i.open().then(()=>this.loaded?this._syncManifests(e,i,n):this.loadConfig(i).catch(e=>{if(!t)throw e}).then(()=>{var a;return(t||this.requiresScriptSync(e)||!(null===(a=this._manifests)||void 0===a?void 0:a.size))&&this._syncManifests(e,i,n)})).catch(e=>{throw(0,He.b)(a,e),i.close(),e}).then(()=>{(0,He.a)(a,{resultType:g.a.Success}),i.close()})}}sync(){return this.syncManifests(void 0,!0)}preloadManifests(e){return e.getAllManifests()}setState(e,t,n){this._scriptSyncState=e,this._manifests=this._toMap(t,n),this._manifestCount=t.length}loadConfig(e,t){return Promise.all([!t&&this.preloadManifests(e),e.getScriptSyncState()]).then(n=>{if(t&&(this._scriptSyncState=n[1]),n[1]&&(this._lang=n[1].lang),!t)return this._manifestCount=n[0].length,this.setState(n[1],n[0],e)})}getManifestEntries(e){return e[this.projectId.toLowerCase()]}saveConfig(e,t){const n=this.getManifestEntries(t);return this.setState({manifestCount:n.length,lang:pe.j.active?t.lang||this._scriptSyncState.lang||t.langs[0]:t.lang?(0,je.a)(t.lang):this._scriptSyncState.lang||t.langs[0],langs:new Set(t.langs),lastSync:new Date},n,e),this._addLangs([t.lang].concat(t.langs||[])),e.saveManifests(n,!0,this._scriptSyncState)}createSyncCompletedMessage(){return{name:he.a.ScriptSynced,data:{projectId:this.projectId}}}onSyncCompleted(){const e=this.createSyncCompletedMessage();(0,Be.a)(e)}_toMap(e,t){const n=new Map,a=e.length;for(let i=0;i<a;i++){const a=e[i];n.set(a[t.manifestKeyPath],a)}return n}_getInstalledLangs(e){return(this.loaded?Promise.resolve():this.loadConfig(e,!0)).then(()=>{var e;return Array.from((null===(e=this._scriptSyncState)||void 0===e?void 0:e.langs)||[])})}_addLangs(e){const t=e&&e.length||0;for(let n=0;n<t;n++){const t=e[n];t&&this._scriptSyncState.langs.add((0,je.a)(t))}}_fetchComponents(e,t,n){const a=`${pe.a}${n||""}/_layouts/15/SPComponentRegistry.ashx?projects=[${encodeURIComponent(t&&t[0]?'"'+t.join('","')+'"':"]")}]&languages=${encodeURIComponent("["+(e&&e[0]?'"'+e.join('","')+'"]':"]"))}`;return(0,Re.a)(a).then(t=>{if(!(null==t?void 0:t.ok))throw new Fe.a((0,Ne.a)(t));return t.json().then(n=>[Object.assign(Object.assign({},n),{lang:t.headers.get(ze.c.Language),langs:e}),t])})}_syncManifests(e,t,n){return Promise.resolve(e||this._getInstalledLangs(t)).then(e=>this._fetchComponents(e,[this.projectId],null==n?void 0:n.path).then(e=>this.saveConfig(t,e[0])).then(this.onSyncCompleted.bind(this)))}}var Ke,We,qe=n(11);(function(e){e.MetadataStoreName="Metadata",e.ManifestStoreName="Manifest",e.ScriptSyncStateKey="ScriptSyncState"})(Ke||(Ke={}));class Qe extends qe.b{metadataStore(e){return this.store(Ke.MetadataStoreName,e||qe.a.ReadOnly)}manifestStore(e){return this.store(Ke.ManifestStoreName,e||qe.a.ReadOnly)}getScriptSyncState(){const e=this.metadataStore();return this.getValue(Ke.ScriptSyncStateKey,e)}setScriptSyncState(e){const t=this.metadataStore(qe.a.ReadWrite);return this.putValue(Ke.ScriptSyncStateKey,e,t)}getManifest(e){const t=this.manifestStore();return this.get(e,t)}getAllManifests(){const e=this.manifestStore();return this.getAll(e)}saveManifests(e,t,n){const a=this.manifestStore(qe.a.ReadWrite);return Promise.resolve(t&&this.clearStore(a)).then(()=>this.putMany(e,a).then(()=>n&&this.setScriptSyncState(n)))}deleteManifests(e){const t=this.manifestStore(qe.a.ReadWrite),n=[],a=e.length;for(let i=0;i<a;i++)n.push(this.delete(e[i],t));return Promise.all(n).then()}constructor(e,t){super(e,t)}upgrade(e,t){this.createKeyValueStore(Ke.MetadataStoreName,e),this.createStore(Ke.ManifestStoreName,this.manifestKeyPath,e)}}(function(e){e.Name="List.Config",e.ManifestKeyPath="lang"})(We||(We={}));class Ye extends Qe{constructor(){super(We.Name,1),this.manifestKeyPath=We.ManifestKeyPath}getScenario(e,t){return this.getManifest(t).then(t=>null==t?void 0:t.manifests[e])}}class Je extends Ge{constructor(){super(Ue.b)}static get current(){return this._current||(this._current=new Je)}requiresScriptSync(e,t){if(super.requiresScriptSync(e,t))return!0;if(e)for(const t of e)if(!this.manifests.has(t))return!0;return!1}loadScenario(e,t){const n=new Ye;return n.open().then(()=>n.getScenario(e,t)).then(e=>Promise.resolve(e&&(this.scriptSyncState.langs.has(t)?void 0:n.setScriptSyncState(this.scriptSyncState).then(()=>{this.scriptSyncState.langs.add(t)}))).then(()=>(n.close(),e)))}getScenario(e,t){let n=this.manifests.get(t);return Promise.resolve(n&&n.manifests[e]||this.loadScenario(e,t).then(a=>(a&&(n||this.manifests.set(t,n={lang:t,manifests:{}}),n.manifests[e]=a),a||this.syncManifests(void 0,!0).then(()=>{var n;return null===(n=this.manifests.get(t))||void 0===n?void 0:n.manifests[e]}))))}createDatabase(){return new Ye}preloadManifests(e){return e.getAllManifests().then(e=>{for(const t of e)t.manifests={};return e})}getManifestEntries(e){const t=[],n=Object.keys(e.sts);for(const a of n)t.push({lang:a,manifests:e.sts[a]});return t}}class Xe extends ie{constructor(){super(...arguments),this.applicationConfig=Je.current,this.spfxConfig=Ce.b.current}loadSpfxConfig(){return this.spfxConfig.load().then(()=>this.spfxConfig)}}var Ze=/\{(\d+)\}/g;function $e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(Ze,function(e,n){var a=t[Number(n)];return null===a?"":"".concat(a)})}const et='<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="a" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="16"><path d="M0 4l4-4h11.2a.8.8 0 01.8.8V12l-4 4H.8a.8.8 0 01-.8-.8V4z" fill="#40E6E8"/></mask><g mask="url(#a)"><path d="M12 16l4-4H0v3.238c0 .42.341.762.762.762H12z" fill="#974B8B"/><path d="M0 12h4v4H.762A.762.762 0 010 15.238V12z" fill="#773C6E"/><g filter="url(#filter0_d)"><path fill="#D83B01" d="M0 8v4h16V8z"/></g><path fill="#BF3207" d="M0 8h4v4H0z"/><g filter="url(#filter1_d)"><path fill="#F18C0A" d="M0 4v4h16V4z"/></g><path fill="#E25A01" d="M0 4h4v4H0z"/><g filter="url(#filter2_d)"><path d="M4 0L0 4h16V.762A.762.762 0 0015.238 0H4z" fill="#FED912"/></g></g><defs><filter id="filter0_d" x="-5" y="4" width="26" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="2.5"/><feColorMatrix type="matrix" values="0 0 0 0 0.521569 0 0 0 0 0.290196 0 0 0 0 0.505882 0 0 0 0.8 0"/><feBlend mode="multiply" in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter><filter id="filter1_d" x="-5" y="0" width="26" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="2.5"/><feColorMatrix type="matrix" values="0 0 0 0 0.74902 0 0 0 0 0.196078 0 0 0 0 0.027451 0 0 0 1 0"/><feBlend mode="multiply" in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter><filter id="filter2_d" x="-6" y="-5" width="28" height="16" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="3"/><feColorMatrix type="matrix" values="0 0 0 0 0.964706 0 0 0 0 0.619608 0 0 0 0 0.0745098 0 0 0 1 0"/><feBlend mode="multiply" in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>',tt='<svg viewBox="0 0 100 65" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M55.544 40.121c-4.872-4.839-9.358-9.173-13.457-13.004a606.642 606.642 0 00-5.293-4.738 106.685 106.685 0 00-4.99-4.183c-1.545-1.244-2.906-2.235-4.082-2.974-1.21-.773-2.117-1.16-2.722-1.16h-.302a31.006 31.006 0 014.94-5.745 28.642 28.642 0 016.148-4.436 30.377 30.377 0 017.157-2.873A30.388 30.388 0 0150.806 0c3.63 0 7.09.588 10.384 1.764 3.293 1.176 6.266 2.823 8.92 4.94a30.699 30.699 0 016.805 7.46 31.014 31.014 0 014.133 9.324 4.653 4.653 0 00-.655-.05h-.706c-.37 0-.99.252-1.864.756a50.06 50.06 0 00-3.125 1.864 92.506 92.506 0 00-3.932 2.672 335.95 335.95 0 00-4.234 3.074 610.21 610.21 0 00-10.988 8.317z" fill="#0364B8"/><path d="M59.123 30.343l-16.23 24.244-38.407-1.26a24.554 24.554 0 01-3.276-6.654C.403 44.254 0 41.717 0 39.063c0-3.428.655-6.637 1.966-9.628 1.277-3.024 3.04-5.662 5.292-7.913 2.218-2.285 4.822-4.082 7.813-5.393 2.99-1.31 6.2-2 9.627-2.067 2.52 0 4.905.32 7.157.958a24.806 24.806 0 016.25 2.772l21.018 12.55z" fill="#0078D4"/><path d="M81.048 23.488c2.655.168 5.141.823 7.46 1.966a20.466 20.466 0 015.998 4.385c1.714 1.814 3.058 3.914 4.032 6.3.975 2.386 1.462 4.923 1.462 7.611 0 1.747-.202 3.427-.605 5.04a21.746 21.746 0 01-1.814 4.587l-31.603 1.865-6.855-24.9 12.5-5.241a24.802 24.802 0 013.881-1.21 19.004 19.004 0 014.183-.453h.706c.202 0 .42.016.655.05z" fill="#1490DF"/><path d="M97.58 53.378a21.149 21.149 0 01-3.175 4.335 20.896 20.896 0 01-4.133 3.377 21.503 21.503 0 01-4.99 2.218c-1.814.504-3.68.756-5.594.756H25c-2.117 0-4.167-.252-6.15-.756a24.464 24.464 0 01-5.594-2.167 25.485 25.485 0 01-4.839-3.377 27.328 27.328 0 01-3.931-4.436l54.637-22.934 20.716 12.35L97.58 53.377z" fill="#28A8EA"/></svg>',nt='<svg width="93" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M88.538 16.286a2.417 2.417 0 01-1.842-.656 2.81 2.81 0 01-.615-1.977V9.408h-2.895v6.676H81.22V9.41h-1.38V7.814h1.38V6.662a2.875 2.875 0 01.848-2.136 2.98 2.98 0 012.172-.83c.21-.001.418.01.626.035.164.02.326.058.482.11v1.681a1.785 1.785 0 00-.337-.136 1.762 1.762 0 00-.554-.08 1.178 1.178 0 00-.94.384 1.697 1.697 0 00-.33 1.13v.995h2.895v-1.86l1.951-.595v2.455H90v1.593h-1.968v3.87c-.037.38.06.761.275 1.078a1.109 1.109 0 00.871.314 1.32 1.32 0 00.406-.08c.144-.05.283-.114.413-.193v1.608c-.194.094-.401.16-.614.194-.278.057-.561.087-.845.087zm-13.208 0a4.131 4.131 0 01-3.048-1.13 4.192 4.192 0 01-1.128-3.085 4.505 4.505 0 011.156-3.25 4.27 4.27 0 013.212-1.2 3.972 3.972 0 013.021 1.154 4.392 4.392 0 011.089 3.118 4.418 4.418 0 01-1.157 3.201 4.201 4.201 0 01-3.145 1.192zm.096-7.024a2.041 2.041 0 00-1.659.715 3.119 3.119 0 00-.59 2.032c-.047.708.161 1.41.586 1.978a2.1 2.1 0 001.679.683 1.963 1.963 0 001.614-.683c.409-.594.604-1.309.554-2.028a3.072 3.072 0 00-.574-2.015 2.002 2.002 0 00-1.61-.682zm-8.422 7.024a5.775 5.775 0 01-1.137-.125 4.965 4.965 0 01-1.056-.318V13.93a4.78 4.78 0 001.14.588c.355.135.73.21 1.109.22.334.022.668-.042.971-.185a.663.663 0 00.316-.623.865.865 0 00-.33-.68 4.793 4.793 0 00-1.233-.64 3.831 3.831 0 01-1.525-1.014 2.232 2.232 0 01-.45-1.432 2.272 2.272 0 01.89-1.838 3.55 3.55 0 012.3-.72c.327.005.652.037.972.097.308.05.61.134.9.25v1.85a4.177 4.177 0 00-.9-.443 3.006 3.006 0 00-1.02-.185 1.492 1.492 0 00-.863.22.692.692 0 00-.308.595.839.839 0 00.264.656c.36.255.755.456 1.173.599.623.21 1.184.57 1.633 1.05.317.401.483.901.47 1.412a2.282 2.282 0 01-.895 1.875 3.815 3.815 0 01-2.421.705zm-7.42 0a4.132 4.132 0 01-3.048-1.13 4.19 4.19 0 01-1.129-3.086 4.505 4.505 0 011.157-3.25 4.272 4.272 0 013.213-1.2 3.972 3.972 0 013.021 1.155 4.38 4.38 0 011.088 3.117 4.418 4.418 0 01-1.154 3.202 4.2 4.2 0 01-3.148 1.192zm.097-7.024a2.042 2.042 0 00-1.659.715 3.118 3.118 0 00-.59 2.032c-.047.708.16 1.41.586 1.978a2.097 2.097 0 001.678.683 1.964 1.964 0 001.614-.683c.41-.594.605-1.31.554-2.03a3.072 3.072 0 00-.574-2.015 2 2 0 00-1.61-.68zm-12.994 7.024a3.932 3.932 0 01-4.105-4.103 4.744 4.744 0 011.164-3.287 4.23 4.23 0 013.3-1.291 4.53 4.53 0 011.105.14c.308.071.606.18.887.326V9.94a4.05 4.05 0 00-.92-.51 2.67 2.67 0 00-.96-.181 2.441 2.441 0 00-1.854.748 2.834 2.834 0 00-.707 2.02c-.04.715.204 1.417.68 1.952a2.456 2.456 0 001.843.7c.329-.009.653-.077.956-.202.344-.132.668-.31.964-.53v1.81c-.33.184-.687.32-1.056.402-.426.095-.86.141-1.297.138zm-19.892-.2h-1.847V4.548h2.866l3.31 8.551h.047l3.493-8.552h2.747v11.536h-2V7.042h-.032l-3.573 9.042H30.48L26.82 7.042h-.024v9.043zm25.65 0H50.5v-8.27h1.944v1.301h.032a2.29 2.29 0 01.803-1.058c.38-.26.833-.395 1.293-.384.14-.002.28.01.418.032.107.017.212.044.314.08v1.97a1.73 1.73 0 00-.446-.212 2.21 2.21 0 00-.71-.1 1.514 1.514 0 00-1.21.604c-.37.545-.544 1.2-.494 1.858v4.178zm-11.219 0h-1.94v-8.27h1.943v8.268l-.003.001zm-.963-9.543a1.173 1.173 0 01-1.094-.686 1.06 1.06 0 01-.087-.432 1.066 1.066 0 01.35-.81c.223-.212.522-.329.83-.325a1.165 1.165 0 011.104.7c.058.137.087.285.086.435a1.05 1.05 0 01-.346.796c-.228.214-.53.33-.843.322z" fill="#7B7B7A"/><path d="M0 9.618h9.339V.28H0v9.34z" fill="#E95A0C"/><path d="M10.07 9.618h9.339V.28h-9.34v9.34z" fill="#94C01F"/><path d="M0 19.708h9.339V10.37H0v9.34z" fill="#009EE2"/><path d="M10.07 19.708h9.339V10.37h-9.34v9.34z" fill="#FCC200"/></svg>';var at=n(131);var it=n(133),rt=n(50);class ot extends oe.b{constructor(e,t){super(e,t),this.startOffline=!(0,ue.b)(ue.a.list2StartsOffline),this.startFromDataHost=!(0,ue.b)(ue.a.list2StartsFromDataHost),this.requireJsTemplateString='{paths:{0},bundles:{1},shim:{2},deps:{3},baseUrl:"{4}",waitSeconds:{5}{6},enforceDefine:{7}}',this.requireJsConfigScriptBlockFormat="window.performance && performance.mark('EUPL.RequireConfigStart');require.config({paths:{0},bundles:{1},shim:{2},deps:{3},baseUrl:\"{4}\",waitSeconds:{5}{6},enforceDefine:{7}});"}get shortcutIcon(){switch(this.page.moduleLink.manifestName){case"ODBLightSpeedWebPack":return"/_layouts/15/images/odbfavicon.ico?rev=47";case"SPListsHomeWebPack":case"ListsEnterprise":case"ListsConsumer":case"SpartanList":return"/_layouts/15/images/listshomefavicon.ico?rev=47";default:return"/_layouts/15/images/favicon.ico?rev=47"}}get preloadedData(){return this.navigationResult.spClientSidePageContext}get supportsDarkMode(){var e;return"ODBLIGHTSPEEDWEBPACK"===(null===(e=this.page)||void 0===e?void 0:e.moduleLink.manifestName.toUpperCase())}get appBarVisible(){switch(this.page.moduleLink.manifestName){case"ListsEnterprise":case"SpartanList":case"ListsConsumer":case"SPListsHomeWebPack":return!1}return super.appBarVisible}get spPageContext(){return this.navigationResult._spPageContextInfo}get moduleLink(){return this.navigationResult.spModuleLink}get scriptVersion(){var e;return null===(e=this._manifest)||void 0===e?void 0:e.buildNumber}get nextScriptVersion(){var e;return null===(e=this.navigationResult)||void 0===e?void 0:e.appVersion}get requiresPostRenderScriptSync(){return this.navigationResult&&this._manifest&&super.requiresPostRenderScriptSync}loadScriptConfig(){return this.context.applicationConfig.getScenario(this.page.moduleLink.manifestName.toUpperCase(),this.scriptLang).then(e=>{this._manifest=e})}createPage(){const e=this.moduleLink;return Object.assign({moduleLink:e},super.createPage())}createState(){const e=ca&&"ListsHomeFileBrowserWebPack"===this.moduleLink.manifestName,t=this.state.isPwaInstalled||e;return Object.assign(Object.assign({},super.createState()),{isPwaInstalled:t,isPwaPrecached:this.state.isPwaPrecached})}createSuiteNavTheme(){const e=this.page.moduleLink.manifestName;return"WebViewList"===this.url.searchParams.get("env")||"SPListsHomeWebPack"===e||"ListsEnterprise"===e?{Primary:"#87447D"}:this.site.siteType===ze.d.MySitePersonalSite&&this.canonicalPath.endsWith("/_layouts/15/onedrive.aspx")?{Primary:"transparent",AppName:"#424242",DefaultText:"#424242",DefaultBackground:"transparent",HoverText:"#0F6CBD",HoverBackground:"#EBEBEB",SelectedText:"#0F6CBD",SelectedBackground:"#E0E0E0",PressedText:"#115EA3",PressedBackground:"#D6D6D6",SearchBoxBackgroundActive:"#FFFFFF",SearchBoxBackgroundInactive:"#FFFFFF"}:void 0}renderSplash(e){switch(this.page.moduleLink.manifestName){case"ODBLightSpeedWebPack":break;case"SPListsHomeWebPack":e.write(`<div id="splash"><div style="z-index:99;position:absolute;width:100px;left:calc(50% - 50px);height:100px;top:50%;filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.4));">${et}</div><div style="z-index:99;position:absolute;width:92px;left:calc(50% - 46px);height:20px;bottom:24px;">${nt}</div></div>`)}}renderStart(e){this.spPageContext&&this.renderSpPageContext(e),this.navigationResult.shouldLoadSPFramework&&(this.renderLoaderAssembly(e),e.inlineScript((0,it.a)(e.xssStringify(this.preloadedData),this.bypassUrl()))),"SPLISTSHOMEWEBPACK"===this.navigationResult.manifestName.toUpperCase()&&this.writeListsHomeJavascript(e);const t=this._manifest;e.scriptStart([["id","requireConfig"]]),t.integrityJSONString&&e.write(`window['__odspSriHashes'] = ${t.integrityJSONString}`),e.write(`var _spModuleLink=${e.xssStringify(this.moduleLink)}`),this.writeRequireConfig(e,t),e.scriptEnd(),e.flush()}start(){return super.start().then(e=>Promise.resolve(this.navigationResult.shouldLoadSPFramework&&this.context.loadSpfxConfig()).then(()=>e))}get chromeless(){const e=super.chromeless,t=-1!==(this.url.searchParams.get("env")||"").indexOf("WebViewList");return e&&!t}renderPhases(){return[this.shell(),this.preApp(),this.start()]}preApp(){return Promise.resolve(this.renderPreApp.bind(this))}renderChrome(e){this.renderMark(e,oe.a.bodyStart);const t=this.chromeless;t||(0,at.b)(e),(0,at.e)(e),this.renderAppChrome(e),t||(this.renderSuiteNavScript(e),this.renderSuiteNavScriptImport(e))}renderPostRender(e){return e.inlineScript(`window.__pageFromServiceWorker=true;window.__serviceWorkerBaseUrl='${self._cdnBaseUrl}'`,!0),super.renderPostRender(e)}finalize(e){const t=this.state.isPwaInstalled&&!this.state.isPwaPrecached;return Promise.all([super.finalize(e),t&&Promise.resolve(this.controller.precache(e=>e.includes("listshomefilebrowser"))).then(()=>this.context.config.saveState({isPwaPrecached:!0}))]).then()}writeListsHomeJavascript(e){e.write('<script type="text/javascript">var ListsHomeAjaxRequest = /** @class */ (function () {\n /** restUrl parameter is required. All other parameters are optional. */\n function ListsHomeAjaxRequest(restUrl, method, requestBody, requestDigest, headers) {\n if (!method) {\n method = "GET";\n }\n this.restUrl = restUrl;\n this.method = method;\n this.requestBody = requestBody;\n this.requestDigest = requestDigest;\n this.headers = headers;\n this.pendingCallbacks = [];\n }\n ListsHomeAjaxRequest.prototype.addCallback = function (callback) {\n var _this = this;\n if (this.completedXhr) {\n window.setTimeout(function () { return callback(_this.completedXhr); }, 0);\n }\n else {\n this.pendingCallbacks.push(callback);\n }\n };\n ListsHomeAjaxRequest.prototype.invokePendingCallbacks = function () {\n for (var i = 0; i < this.pendingCallbacks.length; i++) {\n this.pendingCallbacks[i](this.completedXhr);\n }\n this.pendingCallbacks = [];\n };\n ListsHomeAjaxRequest.prototype.sendRequest = function (requestName) {\n var _this = this;\n this.startTimeMillis = Date.now();\n var xhr = new XMLHttpRequest();\n xhr.open(this.method, this.restUrl, true);\n xhr.setRequestHeader("Content-type", "application/json;odata=verbose");\n xhr.setRequestHeader("accept", "application/json; odata=verbose");\n if (this.requestDigest) {\n xhr.setRequestHeader("x-requestdigest", this.requestDigest);\n }\n if (this.headers) {\n for (var key in this.headers) {\n if (this.headers[key]) {\n xhr.setRequestHeader(key, this.headers[key]);\n }\n }\n }\n xhr.onreadystatechange = function () {\n if (xhr.readyState == 4 /*DONE*/) {\n window.performance && performance.mark(requestName + ".end");\n _this.completedXhr = xhr;\n _this.endTimeMillis = Date.now();\n _this.invokePendingCallbacks();\n }\n };\n window.performance && window.performance.mark(requestName + ".start");\n xhr.send(this.requestBody);\n };\n ListsHomeAjaxRequest.prototype.getElapsedTimeMillis = function () {\n if (typeof this.startTimeMillis === \'number\' && typeof this.endTimeMillis === \'number\') {\n return this.endTimeMillis - this.startTimeMillis;\n }\n return -1;\n };\n return ListsHomeAjaxRequest;\n}());\nvar g_recentListsRequest = new ListsHomeAjaxRequest("../../_api/sp.RecentListCollection.GetRecentLists");\ng_recentListsRequest.sendRequest("ListHome.GetRecentLists");\nvar g_favoriteListsRequest = new ListsHomeAjaxRequest("../../_api/SP.FavoriteLists.GetListsBy");\ng_favoriteListsRequest.sendRequest("ListHome.GetFavoriteLists");<\/script>')}writeRequireConfig(e,t){const{scriptPathData:n,bundleData:a,shimData:i,depsData:r,baseUrl:o,waitSeconds:s,onNodeCreatedOverride:c,enforceDefine:d,odspCdnConfig:l,doCdnTest:u,integrityJSONString:f,defaultBackupUrl:p}=t;let m=!1;if(this.isFlightEnabled(rt.b))e.write(`window.__odsp_cdnConfig = ${e.xssStringify(l)}`),e.write(`window.__odsp_requireConfig = ${$e(this.requireJsTemplateString,e.xssStringify(n),e.xssStringify(a),e.xssStringify(i),e.xssStringify(r),o,s,c,d)};(function () {\n var baseUrls = window.__odsp_cdnConfig.baseUrls;\n function getOrigin(url) {\n var match = url.match(/^https:\\/\\/[^\\/]+\\//);\n return match && match[0];\n }\n var origins = baseUrls.map(getOrigin);\n function getUrl(index, origin) {\n return origin\n ? origins[index]\n : baseUrls[index];\n }\n\n var failOverState2 = (window.__cdnFailOverState2 = {\n cdnStates: origins.map(function () { return { failedModules: [], failed: false }; }),\n cdnIndex: 0,\n triggerPathFallback: function (id, config) {\n var pathConfig = require.getOwn(config.paths, id);\n if (pathConfig && Array.isArray(pathConfig) && pathConfig.length > 1) {\n pathConfig.shift();\n }\n },\n onModuleFail: function (moduleName, url) {\n var srcOrigin = getOrigin(url);\n var failedIndex = origins.indexOf(srcOrigin);\n const failedCdn = failOverState2.cdnStates[failedIndex];\n if (failedCdn.failedModules.indexOf(moduleName) === -1 ){\n failedCdn.failedModules.push(moduleName);\n }\n if (!failedCdn.failed && failedCdn.failedModules.length >= 2) {\n failedCdn.failed = true;\n if (failedIndex === failOverState2.cdnIndex) {\n failOverState2.cdnIndex++;\n require.config({ baseUrl: baseUrls[failOverState2.cdnIndex] });\n }\n }\n },\n replaceWithBackupUrl: function (path, index) {\n return path.replace(/^(https:\\/\\/[^\\/]+\\/)?/, getUrl.bind(0, index));\n }\n });\n function processConfigToSupportFailOver(config) {\n var paths = config.paths,\n bundles = config.bundles;\n for (var id in paths) {\n var path = paths[id];\n var backup;\n paths[id] = [];\n for (var _b = 0; _b < origins.length; _b++) {\n backup = failOverState2.replaceWithBackupUrl(path, _b);\n paths[id].push(backup);\n }\n }\n for (var id in bundles) {\n var path = paths[id];\n if (path) {\n for (var _a = bundles[id], i = _a.length - 1; i >= 0; i--) {\n paths[_a[i]] = path;\n }\n }\n }\n config.onNodeCreated = function (node, config, moduleName, url) {\n node.addEventListener('error', function (evt) {\n failOverState2.onModuleFail(moduleName, url);\n })\n };\n return config;\n }\n var config = window.__odsp_requireConfig;\n var newConfig = processConfigToSupportFailOver(config);\n window.performance && performance.mark('EUPL.RequireConfigStart');\n require.config(newConfig);\n})();`),m=!0;else if(p||u){const t=$e(this.requireJsTemplateString,e.xssStringify(n),e.xssStringify(a),e.xssStringify(i),e.xssStringify(r),o,s,c,d);f?(e.write(`window.__odsp_cdnConfig = ${e.xssStringify(l)};(function () {\n var baseUrls = window.__odsp_cdnConfig.baseUrls;\n function getOrigin(url) {\n var match = url.match(/^https:\\/\\/[^\\/]+\\//);\n return match && match[0];\n }\n var origins = baseUrls.map(getOrigin);\n window.__backupBaseUrl = baseUrls[1];\n var backupBaseUrl = baseUrls[1];\n var failOverState = (window.__cdnFailOverState = {\n baseUrlFailedOver: false,\n modulesFalledBack: [],\n onPathFallback: function (moduleId, paths) {\n var failedModules = failOverState.modulesFalledBack;\n failedModules.push(moduleId);\n if (!failOverState.baseUrlFailedOver && failedModules.length >= 2) {\n for (var id in paths) {\n var items = paths[id];\n if (Array.isArray(items) && items.length > 1) {\n items.shift();\n require.undef(id);\n require(null, {\n skipMap: true\n })([id]);\n }\n }\n require.config({\n baseUrl: backupBaseUrl,\n });\n failOverState.baseUrlFailedOver = true;\n }\n },\n });\n function processConfigToSupportFailOver(config) {\n var paths = config.paths,\n bundles = config.bundles;\n function getUrl(origin, index) {\n return origin\n ? origins[index]\n : baseUrls[index];\n }\n for (var id in paths) {\n var path = paths[id];\n var backup;\n paths[id] = [];\n for (var _b = 0; _b < origins.length; _b++) {\n backup = path.replace(/^(https:\\/\\/[^\\/]+\\/)?/, function (match) {\n return getUrl(match, _b);\n });\n paths[id].push(backup);\n }\n }\n for (var id in bundles) {\n var path = paths[id];\n if (path) {\n for (var _a = bundles[id], i = _a.length - 1; i >= 0; i--) {\n paths[_a[i]] = path;\n }\n }\n }\n config.onPathFallback = function (opts) {\n var id = opts.moduleId,\n config = opts.config,\n deps = config && config.deps;\n if (id && deps && deps.indexOf(id) >= 0) {\n failOverState.onPathFallback(id, paths);\n }\n };\n return config;\n }var config = ${t};`),e.write("var newConfig = processConfigToSupportFailOver(config);"),e.write("window.performance && performance.mark('EUPL.RequireConfigStart');"),e.write("require.config(newConfig);})();"),m=!0):(e.write(`!function(){var backupBaseUrl = "${p}";var match = backupBaseUrl.match(/https:\\/\\/.*?\\//);\nvar backupBaseUrlDomain = match && match[0];\nwindow.__backupBaseUrl = backupBaseUrl;\nvar failOverState = window.__cdnFailOverState = {\n baseUrlFailedOver: false,\n modulesFalledBack: []\n};\nfunction processConfigToSupportFailOver(config) {\n var paths = {};\n for (var bundleId in config.bundles) {\n var bundlePath = config.paths[bundleId];\n var backupPath = backupBaseUrl + bundlePath;\n if (/https:\\/\\//.test(bundlePath) && backupBaseUrlDomain) {\n backupPath = bundlePath.replace(/https:\\/\\/.*?\\//, backupBaseUrlDomain);\n }\n var fallbackPaths = [bundlePath, backupPath];\n for (var _i = 0, _a = config.bundles[bundleId]; _i < _a.length; _i++) {\n var moduleName = _a[_i];\n paths[moduleName] = fallbackPaths;\n }\n }\n return {\n paths: paths,\n shim: config.shim,\n deps: config.deps,\n baseUrl: config.baseUrl,\n waitSeconds: config.waitSeconds,\n onNodeCreated: config.onNodeCreated,\n enforceDefine: config.enforceDefine,\n onPathFallback: function (options) {\n var moduleId = options.moduleId;\n var config = options.config;\n if (moduleId && config && config.deps && config.deps.indexOf(moduleId) >= 0) {\n var failedModules = failOverState.modulesFalledBack;\n failedModules.push(moduleId);\n if (!failOverState.baseUrlFailedOver && failedModules.length >= 2) {\n require.config({\n baseUrl: backupBaseUrl\n });\n failOverState.baseUrlFailedOver = true;\n }\n }\n }\n };\n}var config = ${t};`),e.write("var newConfig = processConfigToSupportFailOver(config);"),e.write("window.performance && performance.mark('EUPL.RequireConfigStart');"),e.write("require.config(newConfig)}();"),m=!0)}m||e.write($e(this.requireJsConfigScriptBlockFormat,e.xssStringify(n),e.xssStringify(a),e.xssStringify(i),e.xssStringify(r),o,s,c,d))}renderPreApp(e){this.renderPreconnects(e),this.renderPerformanceScript(e),this.renderRequireJS(e),e.flush()}renderPerformanceScript(e){e.inlineScript2("!function(){if('PerformanceLongTaskTiming' in window){var g=window.__tti={e:[]};g.o=new PerformanceObserver(function(l){g.e=g.e.concat(l.getEntries())});g.o.observe({entryTypes:['longtask']})}}();")}renderRequireJS(e){e.inlineScript2('!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["es6-symbol"]=t():(e["es6-symbol"]=t(),e.Symbol=e.Symbol||e["es6-symbol"])}(window,function(){return n={},i.m=r=[function(e,t,r){"use strict";var n=r(16)();e.exports=function(e){return e!==n&&null!==e}},function(e,t,r){"use strict";e.exports=function(e){return null!=e}},function(e,t,r){"use strict";e.exports=r(3)()?Symbol:r(4)},function(e,t,r){"use strict";var n={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!n[typeof Symbol.iterator]&&!!n[typeof Symbol.toPrimitive]&&!!n[typeof Symbol.toStringTag]}},function(e,t,r){"use strict";var n,i,o,s,a=r(5),u=r(22),c=Object.create,f=Object.defineProperties,l=Object.defineProperty,p=Object.prototype,d=c(null);if("function"==typeof Symbol){n=Symbol;try{String(n()),s=!0}catch(e){}}var h,m=(h=c(null),function(e){for(var t,r,n=0;h[e+(n||"")];)++n;return h[e+=n||""]=!0,l(p,t="@@"+e,a.gs(null,function(e){r||(r=!0,l(this,t,a(e)),r=!1)})),t});o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return s?n(t):(r=c(o.prototype),t=void 0===t?"":String(t),f(r,{__description__:a("",t),__name__:a("",m(t))}))},f(i,{for:a(function(e){return d[e]?d[e]:d[e]=i(String(e))}),keyFor:a(function(e){var t;for(t in u(e),d)if(d[t]===e)return t}),hasInstance:a("",n&&n.hasInstance||i("hasInstance")),isConcatSpreadable:a("",n&&n.isConcatSpreadable||i("isConcatSpreadable")),iterator:a("",n&&n.iterator||i("iterator")),match:a("",n&&n.match||i("match")),replace:a("",n&&n.replace||i("replace")),search:a("",n&&n.search||i("search")),species:a("",n&&n.species||i("species")),split:a("",n&&n.split||i("split")),toPrimitive:a("",n&&n.toPrimitive||i("toPrimitive")),toStringTag:a("",n&&n.toStringTag||i("toStringTag")),unscopables:a("",n&&n.unscopables||i("unscopables"))}),f(o.prototype,{constructor:a(i),toString:a("",function(){return this.__name__})}),f(i.prototype,{toString:a(function(){return"Symbol ("+u(this).__description__+")"}),valueOf:a(function(){return u(this)})}),l(i.prototype,i.toPrimitive,a("",function(){var e=u(this);return"symbol"==typeof e?e:e.toString()})),l(i.prototype,i.toStringTag,a("c","Symbol")),l(o.prototype,i.toStringTag,a("c",i.prototype[i.toStringTag])),l(o.prototype,i.toPrimitive,a("c",i.prototype[i.toPrimitive]))},function(e,t,r){"use strict";var a=r(1),u=r(6),c=r(10),f=r(18),l=r(19);(e.exports=function(e,t){var r,n,i,o,s;return arguments.length<2||"string"!=typeof e?(o=t,t=e,e=null):o=arguments[2],a(e)?(r=l.call(e,"c"),n=l.call(e,"e"),i=l.call(e,"w")):(r=i=!0,n=!1),s={value:t,configurable:r,enumerable:n,writable:i},o?c(f(o),s):s}).gs=function(e,t,r){var n,i,o,s;return"string"!=typeof e?(o=r,r=t,t=e,e=null):o=arguments[3],a(t)?u(t)?a(r)?u(r)||(o=r,r=void 0):r=void 0:(o=t,t=r=void 0):t=void 0,i=a(e)?(n=l.call(e,"c"),l.call(e,"e")):!(n=!0),s={get:t,set:r,configurable:n,enumerable:i},o?c(f(o),s):s}},function(e,t,r){"use strict";var n=r(7),i=/^\\s*class[\\s{\\/}]/,o=Function.prototype.toString;e.exports=function(e){return!!n(e)&&!i.test(o.call(e))}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!n(e)}},function(e,t,r){"use strict";var n=r(9);e.exports=function(e){if(!n(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},function(e,t,r){"use strict";var n=r(1),i={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!n(e)&&hasOwnProperty.call(i,typeof e)}},function(e,t,r){"use strict";e.exports=r(11)()?Object.assign:r(12)},function(e,t,r){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,r){"use strict";var s=r(13),a=r(17),u=Math.max;e.exports=function(t,r){var n,e,i,o=u(arguments.length,2);for(t=Object(a(t)),i=function(e){try{t[e]=r[e]}catch(e){n=n||e}},e=1;e<o;++e)s(r=arguments[e]).forEach(i);if(void 0!==n)throw n;return t}},function(e,t,r){"use strict";e.exports=r(14)()?Object.keys:r(15)},function(e,t,r){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,r){"use strict";var n=r(0),i=Object.keys;e.exports=function(e){return i(n(e)?Object(e):e)}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,r){"use strict";var n=r(0),i=Array.prototype.forEach,o=Object.create;e.exports=function(e){var t=o(null);return i.call(arguments,function(e){n(e)&&function(e,t){var r;for(r in e)t[r]=e[r]}(Object(e),t)}),t}},function(e,t,r){"use strict";e.exports=r(20)()?String.prototype.contains:r(21)},function(e,t,r){"use strict";var n="razdwatrzy";e.exports=function(){return"function"==typeof n.contains&&!0===n.contains("dwa")&&!1===n.contains("foo")}},function(e,t,r){"use strict";var n=String.prototype.indexOf;e.exports=function(e){return-1<n.call(this,e,arguments[1])}},function(e,t,r){"use strict";var n=r(23);e.exports=function(e){if(!n(e))throw new TypeError(e+" is not a symbol");return e}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}}],i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=2);function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r,n});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ES6Promise=t()}(this,function(){"use strict";function c(e){return"function"==typeof e}function t(){var e=setTimeout;return function(){return e(r,1)}}function r(){for(var e=0;e<S;e+=2){(0,T[e])(T[e+1]),T[e]=void 0,T[e+1]=void 0}S=0}function s(e,t){var r=this,n=new this.constructor(u);void 0===n[C]&&b(n);var i=r._state;if(i){var o=arguments[i-1];q(function(){return v(i,n,o,r._result)})}else m(r,n,e,t);return n}function a(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(u);return p(t,e),t}function u(){}function f(e){try{return e.then}catch(e){return B.error=e,B}}function o(e,n,i){q(function(t){var r=!1,e=function(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}(i,n,function(e){r||(r=!0,(n!==e?p:d)(t,e))},function(e){r||(r=!0,h(t,e))},t._label);!r&&e&&(r=!0,h(t,e))},e)}function l(e,t,r){t.constructor===e.constructor&&r===s&&t.constructor.resolve===a?(n=e,(i=t)._state===D?d(n,i._result):i._state===N?h(n,i._result):m(i,void 0,function(e){return p(n,e)},function(e){return h(n,e)})):r===B?(h(e,B.error),B.error=null):void 0===r?d(e,t):c(r)?o(e,t,r):d(e,t);var n,i}function p(e,t){e===t?h(e,new TypeError("You cannot resolve a promise with itself")):(n=typeof(r=t),null===r||"object"!=n&&"function"!=n?d(e,t):l(e,t,f(t)));var r,n}function n(e){e._onerror&&e._onerror(e._result),g(e)}function d(e,t){e._state===R&&(e._result=t,e._state=D,0!==e._subscribers.length&&q(g,e))}function h(e,t){e._state===R&&(e._state=N,e._result=t,q(n,e))}function m(e,t,r,n){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+D]=r,i[o+N]=n,0===o&&e._state&&q(g,e)}function g(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)n=t[s],i=t[s+r],n?v(r,n,i,o):i(o);e._subscribers.length=0}}function v(e,t,r,n){var i=c(r),o=void 0,s=void 0,a=void 0,u=void 0;if(i){if((o=function(e,t){try{return e(t)}catch(e){return B.error=e,B}}(r,n))===B?(u=!0,s=o.error,o.error=null):a=!0,t===o)return void h(t,new TypeError("A promises callback cannot return that same promise."))}else o=n,a=!0;t._state!==R||(i&&a?p(t,o):u?h(t,s):e===D?d(t,o):e===N&&h(t,o))}function b(e){e[C]=F++,e._state=void 0,e._result=void 0,e._subscribers=[]}var e,i,y,x,w=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},S=0,_=void 0,E=void 0,q=function(e,t){T[S]=e,T[S+1]=t,2===(S+=2)&&(E?E(r):A())},O="undefined"!=typeof window?window:void 0,j=O||{},M=j.MutationObserver||j.WebKitMutationObserver,k="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),P="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,T=new Array(1e3),A=void 0;A=k?function(){return process.nextTick(r)}:M?(i=0,y=new M(r),x=document.createTextNode(""),y.observe(x,{characterData:!0}),function(){x.data=i=++i%2}):P?((e=new MessageChannel).port1.onmessage=r,function(){return e.port2.postMessage(0)}):(void 0===O&&"function"==typeof require?function(){try{var e=Function("return this")().require("vertx");return void 0!==(_=e.runOnLoop||e.runOnContext)?function(){_(r)}:t()}catch(e){return t()}}:t)();var C=Math.random().toString(36).substring(2),R=void 0,D=1,N=2,B={error:null},F=0,z=(I.prototype._enumerate=function(e){for(var t=0;this._state===R&&t<e.length;t++)this._eachEntry(e[t],t)},I.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===a){var i=f(t);if(i===s&&t._state!==R)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(r===L){var o=new r(u);l(o,t,i),this._willSettleAt(o,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},I.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===R&&(this._remaining--,e===N?h(n,r):this._result[t]=r),0===this._remaining&&d(n,this._result)},I.prototype._willSettleAt=function(e,t){var r=this;m(e,void 0,function(e){return r._settledAt(D,t,e)},function(e){return r._settledAt(N,t,e)})},I),L=(U.prototype.catch=function(e){return this.then(null,e)},U.prototype.finally=function(t){var r=this.constructor;return this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})})},U);function U(e){this[C]=F++,this._result=this._state=void 0,this._subscribers=[],u!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof U?function(t,e){try{e(function(e){p(t,e)},function(e){h(t,e)})}catch(e){h(t,e)}}(this,e):function(){throw new TypeError("Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.")}())}function I(e,t){this._instanceConstructor=e,this.promise=new e(u),this.promise[C]||b(this.promise),w(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?d(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&d(this.promise,this._result))):h(this.promise,new Error("Array Methods must be provided an Array"))}return L.prototype.then=s,L.all=function(e){return new z(this,e).promise},L.race=function(i){var o=this;return new o(w(i)?function(e,t){for(var r=i.length,n=0;n<r;n++)o.resolve(i[n]).then(e,t)}:function(e,t){return t(new TypeError("You must pass an array to race."))})},L.resolve=a,L.reject=function(e){var t=new this(u);return h(t,e),t},L._setScheduler=function(e){E=e},L._setAsap=function(e){q=e},L._asap=q,L.polyfill=function(){var e=void 0;if("undefined"!=typeof global)e=global;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=L},(L.Promise=L).polyfill(),L});var requirejs,require,define;!function(global){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.2.0",commentRegExp=/(\\/\\*([\\s\\S]*?)\\*\\/|([^:]|^)\\/\\/(.*)$)/gm,cjsRequireRegExp=/[^.]\\s*require\\s*\\(\\s*["\']([^\'"\\s]+)["\']\\s*\\)/g,jsSuffixRegExp=/\\.js$/,currDirRegExp=/^\\.\\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;function commentReplace(e,t,r,n){return n||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var r;for(r=0;r<e.length&&(!e[r]||!t(e[r],r,e));r+=1);}}function eachReverse(e,t){if(e){var r;for(r=e.length-1;-1<r&&(!e[r]||!t(e[r],r,e));--r);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var r;for(r in e)if(hasProp(e,r)&&t(e[r],r))break}function mixin(r,e,n,i){e&&eachProp(e,function(e,t){if(n||!hasProp(r,t))if(!i||"object"!=typeof e||!e||isArray(e)||isFunction(e)||e instanceof RegExp)r[t]=e;else{r[t]||(r[t]={});mixin(r[t],e,n,i)}});return r}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;each(e.split("."),function(e){t=t[e]});return t}function makeError(e,t,r,n){var i=new Error(t+"\\nhttp://requirejs.org/docs/errors.html#"+e);i.requireType=e;i.requireModules=n;r&&(i.originalError=r);return i}if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs;requirejs=void 0}if(void 0!==require&&!isFunction(require)){cfg=require;require=void 0}req=requirejs=function(e,t,r,n){var i,o,s=defContextName;if(!isArray(e)&&"string"!=typeof e){o=e;if(isArray(t)){e=t;t=r;r=n}else e=[]}o&&o.context&&(s=o.context);i=(i=getOwn(contexts,s))||(contexts[s]=req.s.newContext(s));o&&i.configure(o);return i.require(e,t,r)};req.config=function(e){return req(e)};req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()};require=require||req;req.version=version;req.jsExtRegExp=/^\\/|:|\\?|\\.js$/;req.isBrowser=isBrowser;s=req.s={contexts:contexts,newContext:newContext};req({});each(["toUrl","undef","defined","specified"],function(t){req[t]=function(){var e=contexts[defContextName];return e.require[t].apply(e,arguments)}});if(isBrowser){head=s.head=document.getElementsByTagName("head")[0];baseElement=document.getElementsByTagName("base")[0];baseElement&&(head=s.head=baseElement.parentNode)}req.onError=defaultOnError;req.createNode=function(e,t,r){var n=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");n.type=e.scriptType||"text/javascript";n.charset="utf-8";n.async=!0;return n};req.load=function(t,r,n){var e,i=t&&t.config||{};if(isBrowser){(e=req.createNode(i,r,n)).setAttribute("data-requirecontext",t.contextName);e.setAttribute("data-requiremodule",r);if(!e.attachEvent||e.attachEvent.toString&&e.attachEvent.toString().indexOf("[native code")<0||isOpera){e.addEventListener("load",t.onScriptLoad,!1);e.addEventListener("error",t.onScriptError,!1)}else{useInteractive=!0;e.attachEvent("onreadystatechange",t.onScriptLoad)}e.src=n;i.onNodeCreated&&i.onNodeCreated(e,i,r,n);currentlyAddingScript=e;baseElement?head.insertBefore(e,baseElement):head.appendChild(e);currentlyAddingScript=null;return e}if(isWebWorker)try{setTimeout(function(){},0);importScripts(n);t.completeLoad(r)}catch(e){t.onError(makeError("importscripts","importScripts failed for "+r+" at "+n,e,[r]))}};isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){head=head||e.parentNode;if(dataMain=e.getAttribute("data-main")){mainScript=dataMain;if(!cfg.baseUrl&&-1===mainScript.indexOf("!")){mainScript=(src=mainScript.split("/")).pop();subPath=src.length?src.join("/")+"/":"./";cfg.baseUrl=subPath}mainScript=mainScript.replace(jsSuffixRegExp,"");req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain);cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript];return!0}});define=function(e,r,t){var n,i;if("string"!=typeof e){t=r;r=e;e=null}if(!isArray(r)){t=r;r=null}if(!r&&isFunction(t)){r=[];if(t.length){t.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,t){r.push(t)});r=(1===t.length?["require"]:["require","exports","module"]).concat(r)}}if(useInteractive&&(n=currentlyAddingScript||getInteractiveScript())){e=e||n.getAttribute("data-requiremodule");i=contexts[n.getAttribute("data-requirecontext")]}if(i){i.defQueue.push([e,r,t]);i.defQueueMap[e]=!0}else globalDefQueue.push([e,r,t])};define.amd={jQuery:!0};req.exec=function(text){return eval(text)};req(cfg)}function newContext(u){var r,e,d,c,f,g={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},l={},p={},n={},h=[],m={},i={},v={},b=1,y=1;function x(e,t,r){var n,i,o,s,a,u,c,f,l,p,d=t&&t.split("/"),h=g.map,m=h&&h["*"];if(e){u=(e=e.split("/")).length-1;g.nodeIdCompat&&jsSuffixRegExp.test(e[u])&&(e[u]=e[u].replace(jsSuffixRegExp,""));"."===e[0].charAt(0)&&d&&(e=d.slice(0,d.length-1).concat(e));!function(e){var t,r;for(t=0;t<e.length;t++)if("."===(r=e[t])){e.splice(t,1);--t}else if(".."===r){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;if(0<t){e.splice(t-1,2);t-=2}}}(e);e=e.join("/")}if(r&&h&&(d||m)){e:for(o=(i=e.split("/")).length;0<o;--o){a=i.slice(0,o).join("/");if(d)for(s=d.length;0<s;--s)if(n=(n=getOwn(h,d.slice(0,s).join("/")))&&getOwn(n,a)){c=n;f=o;break e}if(!l&&m&&getOwn(m,a)){l=getOwn(m,a);p=o}}if(!c&&l){c=l;f=p}if(c){i.splice(0,f,c);e=i.join("/")}}return getOwn(g.pkgs,e)||e}function w(t){isBrowser&&each(scripts(),function(e){if(e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===d.contextName){e.parentNode.removeChild(e);return!0}})}function S(e){var t=getOwn(g.paths,e);if(t&&isArray(t)&&1<t.length){t.shift();d.require.undef(e);d.makeRequire(null,{skipMap:!0})([e]);g.onPathFallback&&g.onPathFallback({moduleId:e,config:g});return 1}}function _(e){var t,r=e?e.indexOf("!"):-1;if(-1<r){t=e.substring(0,r);e=e.substring(r+1,e.length)}return[t,e]}function E(e,t,r,n){var i,o,s,a,u=null,c=t?t.name:null,f=e,l=!0,p="";if(!e){l=!1;e="_@r"+(b+=1)}u=(a=_(e))[0];e=a[1];if(u){u=x(u,c,n);o=getOwn(m,u)}if(e)if(u)p=o&&o.normalize?o.normalize(e,function(e){return x(e,c,n)}):-1===e.indexOf("!")?x(e,c,n):e;else{u=(a=_(p=x(e,c,n)))[0];p=a[1];r=!0;i=d.nameToUrl(p)}return{prefix:u,name:p,parentMap:t,unnormalized:!!(s=!u||o||r?"":"_unnormalized"+(y+=1)),url:i,originalName:f,isDefine:l,id:(u?u+"!"+p:p)+s}}function q(e){var t=e.id,r=getOwn(l,t);return r=r||(l[t]=new d.Module(e))}function O(e,t,r){var n=e.id,i=getOwn(l,n);!hasProp(m,n)||i&&!i.defineEmitComplete?(i=q(e)).error&&"error"===t?r(i.error):i.on(t,r):"defined"===t&&r(m[n])}function j(r,e){var t=r.requireModules,n=!1;if(e)e(r);else{each(t,function(e){var t=getOwn(l,e);if(t){t.error=r;if(t.events.error){n=!0;t.emit("error",r)}}});n||req.onError(r)}}function M(){if(globalDefQueue.length){each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(d.defQueueMap[t]=!0);h.push(e)});globalDefQueue=[]}}c={require:function(e){return e.require?e.require:e.require=d.makeRequire(e.map)},exports:function(e){e.usingExports=!0;if(e.map.isDefine)return e.exports?m[e.map.id]=e.exports:e.exports=m[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(g.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}};function k(e){delete l[e];delete p[e]}function P(){var e,n,t=1e3*g.waitSeconds,i=t&&d.startTime+t<(new Date).getTime(),o=[],s=[],a=!1,u=!0;if(!r){r=!0;eachProp(p,function(e){var t=e.map,r=t.id;if(e.enabled){t.isDefine||s.push(e);if(!e.error)if(!e.inited&&i)if(S(r))a=n=!0;else{o.push(r);w(r)}else if(!e.inited&&e.fetched&&t.isDefine){a=!0;if(!t.prefix)return u=!1}}});if(i&&o.length){(e=makeError("timeout","Load timeout for modules: "+o,null,o)).contextName=d.contextName;return j(e)}u&&each(s,function(e){!function i(o,s,a){var e=o.map.id;if(o.error)o.emit("error",o.error);else{s[e]=!0;each(o.depMaps,function(e,t){var r=e.id,n=getOwn(l,r);if(n&&!o.depMatched[t]&&!a[r])if(getOwn(s,r)){o.defineDep(t,m[r]);o.check()}else i(n,s,a)});a[e]=!0}}(e,{},{})});i&&!n||!a||!isBrowser&&!isWebWorker||f||(f=setTimeout(function(){f=0;P()},50));r=!1}}(e=function(e){this.events=getOwn(n,e.id)||{};this.map=e;this.shim=getOwn(g.shim,e.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0}).prototype={init:function(e,t,r,n){n=n||{};if(!this.inited){this.factory=t;r?this.on("error",r):this.events.error&&(r=bind(this,function(e){this.emit("error",e)}));this.depMaps=e&&e.slice(0);this.errback=r;this.inited=!0;this.ignore=n.ignore;n.enabled||this.enabled?this.enable():this.check()}},defineDep:function(e,t){if(!this.depMatched[e]){this.depMatched[e]=!0;--this.depCount;this.depExports[e]=t}},fetch:function(){if(!this.fetched){this.fetched=!0;d.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();d.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;if(!i[e]){i[e]=!0;d.load(this.map.id,e)}},check:function(){if(this.enabled&&!this.enabling){var t,e,r=this.map.id,n=this.depExports,i=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=d.execCb(r,o,n,i)}catch(e){t=e}else i=d.execCb(r,o,n,i);this.map.isDefine&&void 0===i&&((e=this.module)?i=e.exports:this.usingExports&&(i=this.exports));if(t){t.requireMap=this.map;t.requireModules=this.map.isDefine?[this.map.id]:null;t.requireType=this.map.isDefine?"define":"require";return j(this.error=t)}}else i=o;this.exports=i;if(this.map.isDefine&&!this.ignore){m[r]=i;if(req.onResourceLoad){var s=[];each(this.depMaps,function(e){s.push(e.normalizedMap||e)});req.onResourceLoad(d,this.map,s)}}k(r);this.defined=!0}this.defining=!1;if(this.defined&&!this.defineEmitted){this.defineEmitted=!0;this.emit("defined",this.exports);this.defineEmitComplete=!0}}}else hasProp(d.defQueueMap,r)||this.fetch()}},callPlugin:function(){var u=this.map,c=u.id,e=E(u.prefix);this.depMaps.push(e);O(e,"defined",bind(this,function(e){var o,t,r,n=getOwn(v,this.map.id),i=this.map.name,s=this.map.parentMap?this.map.parentMap.name:null,a=d.makeRequire(u.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){e.normalize&&(i=e.normalize(i,function(e){return x(e,s,!0)})||"");O(t=E(u.prefix+"!"+i,this.map.parentMap),"defined",bind(this,function(e){this.map.normalizedMap=t;this.init([],function(){return e},null,{enabled:!0,ignore:!0})}));if(r=getOwn(l,t.id)){this.depMaps.push(t);this.events.error&&r.on("error",bind(this,function(e){this.emit("error",e)}));r.enable()}}else if(n){this.map.url=d.nameToUrl(n);this.load()}else{(o=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})})).error=bind(this,function(e){this.inited=!0;(this.error=e).requireModules=[c];eachProp(l,function(e){0===e.map.id.indexOf(c+"_unnormalized")&&k(e.map.id)});j(e)});o.fromText=bind(this,function(e,t){var r=u.name,n=E(r),i=useInteractive;t&&(e=t);i&&(useInteractive=!1);q(n);hasProp(g.config,c)&&(g.config[r]=g.config[c]);try{req.exec(e)}catch(e){return j(makeError("fromtexteval","fromText eval for "+c+" failed: "+e,e,[c]))}i&&(useInteractive=!0);this.depMaps.push(n);d.completeLoad(r);a([r],o)});e.load(u.name,a,o,g)}}));d.enable(e,this);this.pluginMaps[e.id]=e},enable:function(){(p[this.map.id]=this).enabled=!0;this.enabling=!0;each(this.depMaps,bind(this,function(e,t){var r,n,i;if("string"==typeof e){e=E(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[t]=e;if(i=getOwn(c,e.id)){this.depExports[t]=i(this);return}this.depCount+=1;O(e,"defined",bind(this,function(e){if(!this.undefed){this.defineDep(t,e);this.check()}}));this.errback?O(e,"error",bind(this,this.errback)):this.events.error&&O(e,"error",bind(this,function(e){this.emit("error",e)}))}r=e.id;n=l[r];hasProp(c,r)||!n||n.enabled||d.enable(e,this)}));eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(l,e.id);t&&!t.enabled&&d.enable(e,this)}));this.enabling=!1;this.check()},on:function(e,t){var r=this.events[e];(r=r||(this.events[e]=[])).push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)});"error"===e&&delete this.events[e]}};function s(e){hasProp(m,e[0])||q(E(e[0],null,!0)).init(e[1],e[2])}function o(e,t,r,n){e.detachEvent&&!isOpera?n&&e.detachEvent(n,t):e.removeEventListener(r,t,!1)}function a(e){var t=e.currentTarget||e.srcElement;o(t,d.onScriptLoad,"load","onreadystatechange");o(t,d.onScriptError,"error");return{node:t,id:t&&t.getAttribute("data-requiremodule")}}function T(){var e;M();for(;h.length;){if(null===(e=h.shift())[0])return j(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));s(e)}d.defQueueMap={}}(d={config:g,contextName:u,registry:l,defined:m,urlFetched:i,defQueue:h,defQueueMap:{},Module:e,makeModuleMap:E,nextTick:req.nextTick,onError:j,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");if("string"==typeof e.urlArgs){var r=e.urlArgs;e.urlArgs=function(e,t){return(-1===t.indexOf("?")?"?":"&")+r}}var n=g.shim,i={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){if(i[t]){g[t]||(g[t]={});mixin(g[t],e,!0,!0)}else g[t]=e});e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(v[e]=t)})});if(e.shim){eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e});!e.exports&&!e.init||e.exportsFn||(e.exportsFn=d.makeShimExports(e));n[t]=e});g.shim=n}e.packages&&each(e.packages,function(e){var t;t=(e="string"==typeof e?{name:e}:e).name;e.location&&(g.paths[t]=e.location);g.pkgs[t]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")});eachProp(l,function(e,t){e.inited||e.map.unnormalized||(e.map=E(t,null,!0))});(e.deps||e.callback)&&d.require(e.deps||[],e.callback)},makeShimExports:function(t){return function(){var e;t.init&&(e=t.init.apply(global,arguments));return e||t.exports&&getGlobal(t.exports)}},makeRequire:function(o,s){s=s||{};function a(e,t,r){var n,i;s.enableBuildCallback&&t&&isFunction(t)&&(t.__requireJsBuild=!0);if("string"==typeof e){if(isFunction(t))return j(makeError("requireargs","Invalid require call"),r);if(o&&hasProp(c,e))return c[e](l[o.id]);if(req.get)return req.get(d,e,o,a);n=E(e,o,!1,!0).id;return hasProp(m,n)?m[n]:j(makeError("notloaded",\'Module name "\'+n+\'" has not been loaded yet for context: \'+u+(o?"":". Use require([])")))}T();d.nextTick(function(){T();(i=q(E(null,o))).skipMap=s.skipMap;i.init(e,t,r,{enabled:!0});P()});return a}mixin(a,{isBrowser:isBrowser,toUrl:function(e){var t,r=e.lastIndexOf("."),n=e.split("/")[0];if(-1!==r&&(!("."===n||".."===n)||1<r)){t=e.substring(r,e.length);e=e.substring(0,r)}return d.nameToUrl(x(e,o&&o.id,!0),t,!0)},defined:function(e){return hasProp(m,E(e,o,!1,!0).id)},specified:function(e){e=E(e,o,!1,!0).id;return hasProp(m,e)||hasProp(l,e)}});o||(a.undef=function(r){M();var e=E(r,o,!0),t=getOwn(l,r);t.undefed=!0;w(r);delete m[r];delete i[e.url];delete n[r];eachReverse(h,function(e,t){e[0]===r&&h.splice(t,1)});delete d.defQueueMap[r];if(t){t.events.defined&&(n[r]=t.events);k(r)}});return a},enable:function(e){getOwn(l,e.id)&&q(e).enable()},completeLoad:function(e){var t,r,n,i=getOwn(g.shim,e)||{},o=i.exports;M();for(;h.length;){if(null===(r=h.shift())[0]){r[0]=e;if(t)break;t=!0}else r[0]===e&&(t=!0);s(r)}d.defQueueMap={};n=getOwn(l,e);if(!t&&!hasProp(m,e)&&n&&!n.inited){if(!(!g.enforceDefine||o&&getGlobal(o)))return S(e)?void 0:j(makeError("nodefine","No define call for "+e,null,[e]));s([e,i.deps||[],i.exportsFn])}P()},nameToUrl:function(e,t,r){var n,i,o,s,a,u,c=getOwn(g.pkgs,e);c&&(e=c);if(u=getOwn(v,e))return d.nameToUrl(u,t,r);if(req.jsExtRegExp.test(e))s=e+(t||"");else{n=g.paths;for(o=(i=e.split("/")).length;0<o;--o)if(a=getOwn(n,i.slice(0,o).join("/"))){isArray(a)&&(a=a[0]);i.splice(0,o,a);break}s=i.join("/");s=("/"===(s+=t||(/^data\\:|^blob\\:|\\?/.test(s)||r?"":".js")).charAt(0)||s.match(/^[\\w\\+\\.\\-]+:/)?"":g.baseUrl)+s}return g.urlArgs&&!/^blob\\:/.test(s)?s+g.urlArgs(e,s):s},load:function(e,t){req.load(d,e,t)},execCb:function(e,t,r,n){return t.apply(n,r)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=a(e);d.completeLoad(t.id)}},onScriptError:function(e){var r=a(e);if(!S(r.id)){var n=[];eachProp(l,function(e,t){0!==t.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===r.id){n.push(t);return!0}})});return j(makeError("scripterror",\'Script error for "\'+r.id+(n.length?\'", needed by: \'+n.join(", "):\'"\'),e,[r.id]))}}}).require=d.makeRequire();return d}function getInteractiveScript(){if(interactiveScript&&"interactive"===interactiveScript.readyState)return interactiveScript;eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e});return interactiveScript}}(this);',[["data-import-link","https://spoprod-a.akamaihd.net/files/odsp-common-library-prod_2019-02-15_20190219.002/require.js"],["id","requireJsString"]])}renderLoaderAssembly(e){this.renderMark(e,oe.a.moduleLoaderScriptStart),e.script(this.context.spfxConfig.loaderAssemblyUrl(this.scriptLang),this.bypassReloadJs(),this.debugMode),this.renderMark(e,oe.a.moduleLoaderScriptEnd)}preconnects(){return["https://res-2-sdf.cdn.office.net"]}renderSpPageContext(e){e.inlineScript2(`var _spPageContextInfo=${e.xssStringify(this.spPageContext)};_spPageContextInfo.updateFormDigestPageLoaded = new Date();\n_spPageContextInfo.clientServerTimeDelta = new Date(_spPageContextInfo.serverTime) - new Date();\nif (typeof (define) == 'function') {\n define('SPPageContextInfo', [], function() {\n return _spPageContextInfo;\n });\n};`,[["id","_spPageContextInfo"]])}}const st="/transform/videotranscode";class ct{constructor(){this._clientStates=new Map,this._progressiveHandlerKillswitch=(0,ue.b)(ue.a.hlsHandlerCleanerJob),this._listenToSync(),this._startCleanerJob()}static create(){return $.a.current.windows?void 0:new ct}static isEnabled(e){return e.config.isFlightEnabled(rt.u)||e.config.getExperimentVariant(rt.t)>0}shouldProcessRequest(e){return e.includes(st)||e.includes("/transform/videomanifest")}processFetch(e){return(0,l.b)(this,void 0,void 0,function*(){const t=yield fetch(e.request),{status:n}=t;if(!(n>=100&&n<400))return t;const a=new URL(t.url),i=e.clientId,r=this._getRequestContext(i,a);if(void 0!==r.manifestFormat)return this._onManifestCalled(r),t;if(!r.isMediaSegment)return t;const o=this._clientStates.get(i);return o?(this._postSegmentInfo(e.clientId,a,o,t).catch(e=>console.log(e)),t):t})}_postSegmentInfo(e,t,n,a){return(0,l.b)(this,void 0,void 0,function*(){const i=yield this._getSegmentInfo(t,a);n.hasClientRequestedSync?self.clients.get(e).then(e=>e.postMessage(i)):n.earlyFetchedSegments.push(i)})}_listenToSync(){self.addEventListener("message",e=>(0,l.b)(this,void 0,void 0,function*(){console.log("HlsHandler: message received",e);const t=e.data,n=e.source.id;if("metersync"===t){let e=this._clientStates.get(n);e||(console.log(`HlsHandler: recovering unknown client ${n} who sent metersync`),e=this._startForClient(n)),yield this._syncEarlyCalls(n,e),console.log("HlsHandler: metersync finished")}}))}_syncEarlyCalls(e,t){return(0,l.b)(this,void 0,void 0,function*(){const n=yield self.clients.get(e);n.postMessage("metersync-ack"),t.earlyFetchedSegments.forEach(e=>{e.isEarlyCall=!0,n.postMessage(e)}),t.hasClientRequestedSync=!0,t.earlyFetchedSegments=[]})}_getSegmentInfo(e,t){return(0,l.b)(this,void 0,void 0,function*(){const n=t.clone(),a=yield n.arrayBuffer();return{trackType:"audio"===e.searchParams.get("track")?"Audio":"Video",segmentTime:e.searchParams.get("segmentTime"),sizeInBytes:a.byteLength}})}_getRequestContext(e,t){const n=t.searchParams.get("format");return{clientId:e,manifestFormat:this._getManifestFormat(n),psi:t.searchParams.get("psi"),isMediaSegment:t.pathname.includes(st)&&"mediasegment"===t.searchParams.get("part")}}_onManifestCalled(e){console.log(`HlsHandler: manifest called by client: ${JSON.stringify(e)}`),"dash"===e.manifestFormat?(console.log("HlsHandler: clearing client states because DASH is requested"),this._stopForClient(e.clientId)):"hls"===e.manifestFormat&&this._startForClient(e.clientId,e.psi)}_startForClient(e,t){const n=this._clientStates.get(e);if(void 0!==t&&(null==n?void 0:n.psi)===t)return n;console.log("HlsHandler: starting to track client states for HLS");const a={hasClientRequestedSync:!1,earlyFetchedSegments:[],psi:t};return this._clientStates.set(e,a),a}_stopForClient(e){this._clientStates.delete(e),console.log(`HlsHandler: stopped client ${e}. Remaining clients: ${JSON.stringify(Array.from(this._clientStates.keys()))}.`)}_startCleanerJob(){this._progressiveHandlerKillswitch||setInterval(()=>(0,l.b)(this,void 0,void 0,function*(){if(0===this._clientStates.size)return;console.log("HlsHandler: starting cleaner job");const e=yield self.clients.matchAll(),t=new Set(e.map(e=>e.id));for(const e of Array.from(this._clientStates.keys()))t.has(e)||(console.log(`HlsHandler: cleanup client state ${e}`),this._clientStates.delete(e));console.log(`HlsHandler: cleaner job finished. Remaining clients: ${JSON.stringify(Array.from(this._clientStates.keys()))}.`)}),3e5)}_getManifestFormat(e){if(e)return"hls-vnext"===e?"hls":"dash"===e?e:void 0}}const dt="STS",lt=`${pe.c}availablelists`;class ut extends xe.b{constructor(e){super(e),this.applicationId=dt,this.deploymentProject=Se,this.useDataHostForResources=/[?&]listv2UseDataHostForResources=true/.test(self.location.search),this._loopbackMessageKillswitch=(0,ue.b)(ue.a.loopbackMessage),this._oneShellManifestPrecachingKillswitch=(0,ue.b)(ue.a.oneShellManifestPrecaching),this.handleHlsCallsKillSwitch=(0,ue.b)(ue.a.handleHlsCalls),this.hlsHandler=this.handleHlsCallsKillSwitch?null:ct.create()}knownPaths(){const e=new URL("https://lists.microsoft.com/").toString()===new URL(pe.a).toString();return[{path:"/_layouts/15/createlist.aspx"},{path:"/_layouts/15/lists.aspx"},{path:"/_layouts/15/onedrive.aspx"},{path:lt},{path:"/_layouts/15/(createlist|listallitems|lists|onedrive|filepicker|filebrowser|modernframe|listsview).aspx$",regex:!0},...e?[{path:"/"}]:[]]}install(){return Promise.all([caches.delete("STSRESOURCECACHE"),Je.current.install(),Ce.b.current.install()]).then(()=>super.install())}navigate(e,t,n,a,i){return(0,Pe.a)(e.request.url).includes(lt)?this._availableLists():super.navigate(e,t,n,a,i)}createContext(){return new Xe}createNavigationHandler(e){return new ot(this,e)}precacheWithContext(e,t,n){n||(n=t=>e.config.state.isPwaInstalled||!t.includes("listshomefilebrowser"));const a=[];if((0,ue.b)(ue.a.hashedResourcePrecaching)||!self._precacheData){if(self._resourcesToPrefetch&&self._prefetchBaseUrls){const i=Object.keys(self._resourcesToPrefetch),r=i.length;for(let e=0;e<r;e++){const r=i[e],o=self._prefetchBaseUrls[r];if(o){const e=Array.from(self._resourcesToPrefetch[r]).map(e=>`${o}${e}`).filter(e=>n(e));a.push((0,fe.i)(e,t))}}return Promise.all(a.concat(this._oneShellManifestPrecachingKillswitch?[]:[this._getOneShellManifestUrl(e).then(e=>(0,fe.i)([e],t))])).then()}}else{const e=self._precacheData,n=this.getResourceBaseUrl();if(e){const i=e.hashedPaths.map(t=>n+e.hashedPrefix+t).concat(e.versionedPaths.map(t=>n+e.versionedPrefix+t));a.push((0,fe.i)(i,t))}}return Promise.all(a.concat(this._oneShellManifestPrecachingKillswitch?[]:[this._getOneShellManifestUrl(e).then(e=>(0,fe.i)([e],t))])).then()}shouldProcessHlsHandler(e){return!this.handleHlsCallsKillSwitch&&this.hlsHandler.shouldProcessRequest(e)}processHlsCall(e){return(0,l.b)(this,void 0,void 0,function*(){return this.context.then(t=>ct.isEnabled(t)?this.hlsHandler.processFetch(e):fetch(e.request))})}resourceRoutes(){const e=[{match:this._isOneShellBootstrapperOrManifest.bind(this),fetch:this._fetchOneShellBootstrapperOrManifest.bind(this)},...super.resourceRoutes()];return this.hlsHandler&&e.push({match:this.shouldProcessHlsHandler.bind(this),fetch:this.processHlsCall.bind(this)}),e}_getOneShellLanguage(e){return Promise.resolve(e.userAgent.lang)}_getOneShellManifestUrl(e){return this._getOneShellLanguage(e).then(e=>{const t=new URL(self._oneShellUrl);return t.pathname=`/shellux/api/ShellBootInfo/business/OneShell/${e.toLowerCase()}`,t.href})}_isOneShellBootstrapperOrManifest(e){return!this._oneShellManifestPrecachingKillswitch&&(e.startsWith("/shellux/api/shellbootinfo/business/oneshell/")||e.startsWith("/api/shellbootstrapper/business/oneshell"))}_fetchOneShellBootstrapperOrManifest(e){return this.context.then(e=>this.getCacheState(e.config)).then(t=>caches.open(t.l1).then(t=>(0,fe.h)(t,e).catch(()=>t.match(e.request,{ignoreSearch:!0}))))}_getListPages(){const e=new Te.a;let t;return e.open().then(e.getPages.bind(e)).then(e=>{t=e.filter(e=>e.applicationId===dt)}).then(()=>(e.close(),t))}_availableLists(){var e;return(0,l.b)(this,void 0,void 0,function*(){const t=new Ae.a;t.startHtml("en"),t.startBody();const n=!this._loopbackMessageKillswitch&&!!(yield null===(e=this.dataHost)||void 0===e?void 0:e.isConnected()),a=yield this._getListPages(),i=[],r=new TextEncoder;yield Promise.all(a.map(e=>crypto.subtle.digest("SHA-256",r.encode(e.path)).then(e=>{const t=Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("");i.push(t)})));const o=this._loopbackMessageKillswitch?i:{hashes:i,isDataHostConnected:n};return t.inlineScript("window.parent.postMessage('"+t.xssStringify(o)+'\', "*");',!0),t.endHtml(),t.close(),Promise.resolve(new Response(t.readableStream,{headers:{"Content-Type":"text/html"}}))})}}var ft=n(48);function pt(e,t,n=!1){const a=n?e.toLowerCase():e,i=n?t.toLowerCase():t;return-1!==a.indexOf(i,a.length-i.length)}function mt(e){const{url:t,handleQueryString:n,keepCasing:a}=e;let i;if(n)i=n(t);else{const e=new URL(a?t:t.toLowerCase());i=new URL(e.pathname,e).toString()}return i}const _t=new RegExp("<script([^\\n]*\\n+)+?[^\\n]*?<\/script>","mg");var ht,bt,gt;function vt(e,t,n){var a,i,r;const o=new URL(e);let s=new URL(o.pathname,o.href);const c=s.href,d=pt(c,"/_layouts/15/onedrive.aspx",!0),l=pt(c,"/_layouts/15/filepicker.aspx",!0),u=pt(c,"/_layouts/15/listallitems.aspx",!0),f=pt(c,"/_layouts/15/filebrowser.aspx",!0),{search:p}=o,m=(0,ft.a)(p.startsWith("?")?p.substr(1):p),_=(function(e,t=!1){let n=e[gt.queryTypeParamKey];return!n&&t&&(n=e[gt.parentQueryTypeParamKey]),n?Number(n):bt.Files})(m);let h={};if(l&&"POST"===t&&(s=new URL("/_layouts/15/filepicker.aspx",s.origin)),u||f||l){const e={};o.searchParams.forEach((t,n)=>{const a=n.toLowerCase();e[a]=t});const{app:s,listurl:c,lc:d,locale:u,csplookuphint:p}=e;if(h=f||l?Object.assign(Object.assign({},s?{app:s}:{}),u?{locale:u}:{}):Object.assign(Object.assign(Object.assign(Object.assign({},s?{app:s}:{}),c?{listurl:c}:{}),d?{lc:d}:{}),u?{locale:u}:{}),f&&e.filebrowser)try{const t=JSON.parse(e.filebrowser);(null===(r=null===(i=null===(a=null==t?void 0:t.entry)||void 0===a?void 0:a.sharePoint)||void 0===i?void 0:i.byPath)||void 0===r?void 0:r.list)&&(h=Object.assign(Object.assign({},h),{listurl:t.entry.sharePoint.byPath.list}))}catch(e){}if(n&&f&&("POST"===t||"ListsHome"===s)&&"true"!==e.prewarmfb){const e=p||n.get("origin");h=Object.assign(Object.assign({},h),e?{origin:e}:{})}}else{void 0===_||_===bt.Files||d||(h[gt.queryTypeParamKey]=m[gt.queryTypeParamKey]),!d&&m[gt.isPowerAppView]&&(h[gt.isPowerAppView]=m[gt.isPowerAppView]);const e=m[gt.idParamKey],t=m[gt.parentIdParamKey];e&&t&&(h[gt.idParamKey]=e,h[gt.parentIdParamKey]=t);const n=m[gt.envParamKey];n&&(h[gt.envParamKey]=n);const a=m[gt.pageParamKey];if(a)switch(Number(a)){case ht.FilePicker:case ht.TextFileEditor:case ht.Share:case ht.Embed:case ht.Restore:case ht.Settings:h[gt.pageParamKey]=a}}const b=s;for(const e of Object.keys(h))b.searchParams.set(e,h[e]);return b.toString().toLowerCase()}(function(e){e[e.Loading=0]="Loading",e[e.Files=1]="Files",e[e.FilePicker=2]="FilePicker",e[e.FolderPicker=3]="FolderPicker",e[e.Photos=4]="Photos",e[e.TextFileEditor=5]="TextFileEditor",e[e.AccountChooser=6]="AccountChooser",e[e.StorageInfo=7]="StorageInfo",e[e.StorageOptions=8]="StorageOptions",e[e.AppData=9]="AppData",e[e.Error=10]="Error",e[e.SyncOnboarding=11]="SyncOnboarding",e[e.Share=12]="Share",e[e.OneUp=14]="OneUp",e[e.PhotoPreferences=15]="PhotoPreferences",e[e.Embed=16]="Embed",e[e.SyncPlaceholders=17]="SyncPlaceholders",e[e.Restore=18]="Restore",e[e.ValidatePermission=20]="ValidatePermission",e[e.RansomwareDetection=21]="RansomwareDetection",e[e.Settings=22]="Settings",e[e.Unlock=23]="Unlock",e[e.MobileAppUpsell=24]="MobileAppUpsell",e[e.FileRequest=26]="FileRequest",e[e.CreateList=27]="CreateList",e[e.ManageVault=28]="ManageVault",e[e.RequestAccess=29]="RequestAccess",e[e.TagPreferences=32]="TagPreferences",e[e.PhotoStream=33]="PhotoStream",e[e.Convergence=34]="Convergence",e[e.DocumentOptions=35]="DocumentOptions",e[e.DeviceBackups=37]="DeviceBackups",e[e.Search=38]="Search",e[e.NotificationOptions=39]="NotificationOptions",e[e.SharingSettings=301]="SharingSettings",e[e.SyncSettings=302]="SyncSettings",e[e.StorageSettings=303]="StorageSettings",e[e.AccessPolicySettings=304]="AccessPolicySettings",e[e.ComplianceSettings=305]="ComplianceSettings",e[e.NotificationSettings=306]="NotificationSettings",e[e.GeoLocations=307]="GeoLocations"})(ht||(ht={})),(function(e){e[e.Files=0]="Files",e[e.Recent=1]="Recent",e[e.DocumentLibraries=2]="DocumentLibraries",e[e.SharedWithMe=3]="SharedWithMe",e[e.DocsInCommon=4]="DocsInCommon",e[e.RecycleBin=5]="RecycleBin",e[e.Photos=6]="Photos",e[e.Search=7]="Search",e[e.AllMyPhotos=8]="AllMyPhotos",e[e.AccountChooserPicker=9]="AccountChooserPicker",e[e.AccountChooserMobileSDK=10]="AccountChooserMobileSDK",e[e.Popular=11]="Popular",e[e.RecentUnpopular=12]="RecentUnpopular",e[e.SecondStageRecycleBin=13]="SecondStageRecycleBin",e[e.Apps=14]="Apps",e[e.Subsites=15]="Subsites",e[e.Discover=16]="Discover",e[e.RecentActivity=18]="RecentActivity",e[e.ExternallyShared=19]="ExternallyShared",e[e.SharedByMe=20]="SharedByMe",e[e.Favorites=21]="Favorites",e[e.DetailsPane=22]="DetailsPane"})(bt||(bt={})),(function(e){e.idParamKey="id",e.parentIdParamKey="parent",e.queryTypeParamKey="view",e.pageParamKey="p",e.parentQueryTypeParamKey="parentview",e.windowNameJsonKey="ODBParams",e.queryParamKey="q",e.conversationIdParamKey="cvid",e.uniqueParamKey="u",e.dateFilterKey="dateFilter",e.typeFiltersKey="typeFilters",e.userFiltersKey="userFilters",e.viewIdKey="viewid",e.viewPathKey="viewpath",e.isPowerAppView="isPowerAppView",e.listIdKey="listid",e.listUrlKey="listurl",e.sortFieldKey="sortField",e.isAscendingKey="isAscending",e.policyTipKey="policyTipForListItemId",e.sharingKey="sharingDialogForListItemId",e.managePermissionsKey="managePermissionsForListItemId",e.pseudoPolicyTipKey="showpolicytips",e.groupByKey="groupBy",e.envParamKey="env",e.useFiltersInViewXmlKey="useFiltersInViewXml",e.needsAttentionViewKey="needsAttentionView",e.requiredColumnsKey="required",e.pickerLinkTypeKey="link_type",e.pickerAADClientIdKey="aad_client_id",e.pickerMSAClientIdKey="msa_client_id",e.pickerSelectionModeKey="selection_mode",e.pickerViewTypeKey="view_type",e.pickerAccessLevelKey="access",e.pickerReturnUrlKey="ru",e.remoteItem="remoteItem",e.stateParamKey="state",e.listItemIdKey="ID",e.rootFolderParamKey="RootFolder",e.sourceKey="Source",e.isDialogKey="IsDlg",e.contentTypeId="ContentTypeId",e.newTargetListUrlKey="newTargetListUrl",e.shareLinkId="slrid",e.settingKey="setting",e.userExpirationPanelKey="userExpiration",e.sharedLibraryCreated="sharedLibraryCreated",e.expandPageRowLimitKey="rowLimit"})(gt||(gt={}));var yt=n(37),St=n(59);class Dt{constructor(){this._offline=!1,this._setupCache(),this._context=(new St.a).initialize()}cleanupCache(){return this._cache.clean()}_getResponseFromCache(e){const{key:t,qosName:n,fetchEvent:a}=e,i=n&&this._getLogQos(`SPServiceWorker.ListController.${n}.getResponseFromCache`,a);return this._cache.read(t).then(e=>{if(void 0!==e){if(this._checkIsExpired(e,t)&&navigator.onLine)return void(i&&i({resultType:g.a.Failure,resultCode:"cache expired",extraData:{url:t}}));const n=this._generateResponse(e);return i&&i({resultType:g.a.Success,extraData:{url:t}}),n}i&&i({resultType:g.a.Failure,resultCode:"cache miss",extraData:{url:t}})}).catch(e=>{i&&i({resultType:g.a.Failure,error:e&&e.toString(),resultCode:"cache error",extraData:{url:t}})})}_doNetworkFetch(e){const{request:t}=e;return Promise.resolve(e.preloadResponse).then(e=>e||fetch(t)).catch(()=>fetch(t))}_cacheResponse(e){const{clonedResponse:t,key:n,qosName:a,fetchEvent:i,isNavigate:r}=e,o=a&&this._getLogQos(`SPServiceWorker.ListController.${a}.cacheResponse`,i);if(t&&200===t.status&&["basic","cors"].indexOf(t.type)>=0){const e=t;return this._processResponse(e,n).then(e=>{if(e)return this._saveInCache({key:n,content:e.cacheValue}).then(()=>{if(e.additionalKeys&&e.additionalKeys.length){const t=e.additionalKeys.filter(e=>e!==n);Promise.all(t.map(t=>{const n=vt(t,i.request.method,i.request.headers);return this._saveRoute(t),this._saveInCache({key:n,content:e.cacheValue})})).then(()=>{o&&o({resultType:g.a.Success,extraData:{isAdditionalKey:!0}})}).catch(e=>{o({resultType:g.a.ExpectedFailure,error:JSON.stringify(e),resultCode:"cache error on additional key"})})}else o&&o({resultType:g.a.Success})}).then(()=>{r&&this._serviceSucceeded()}).catch(e=>{o&&o({resultType:g.a.Failure,error:JSON.stringify(e),resultCode:"cache error"})});o&&o({resultType:g.a.Success});return"true"===new URL(i.request.url).searchParams.get("noCacheClear")?Promise.resolve():this._cache.remove(n)})}return r&&t&&404!==t.status&&!(0,yt.a)(t)&&this._serviceError(),o&&o({resultType:g.a.Failure,resultCode:`code:${t.status},type:${t.type}`}),Promise.resolve()}_getLogQos(e,t){return n=>{if(e){const a=self._telemetry.startQos({start:e,event:t}).then(e=>e(n));return t&&t.waitUntil(a),a}return Promise.resolve()}}_serviceError(){const e=this._offline;this._offline=!0,e!==this._offline&&this._sendOfflineUpdateEvent()}_serviceSucceeded(){const e=this._offline;this._offline=!1,e!==this._offline&&this._sendOfflineUpdateEvent()}_sendOfflineUpdateEvent(){const e={name:he.a.OfflineNotification,data:{offline:this._offline}};(0,Be.a)(e)}_saveInCache(e){const{key:t,content:n}=e;return this._cache.update(t,n)}_saveRoute(e){return this._context.then(t=>t.config.saveRoute(e,dt).catch(e=>{console.error(e)}))}}var It=0,xt=1,Ct=2;function Ot(e,t){const{url:n,pageContext:a,type:i}=e;if(i===It){const e=vt(n);return e&&a?t.read(e).then(e=>(function(e,t){const n=JSON.parse(t),a=/(var\s?_spPageContextInfo\s?=\s?)([^;]*?)(;\s?_spPageContextInfo.)/m,i=n.content.replace(a,(t,n,a,i)=>{const r=JSON.parse(a),o=Object.assign(Object.assign({},r),e);return`${n}${JSON.stringify(o)}${i}`});n.content=i;return JSON.stringify(n)})(a,e.data)).then(n=>t.update(e,n)).then(()=>!0).catch(e=>!1):Promise.resolve(!0)}return Promise.resolve(void 0)}function wt(e){const{response:t,fetchEvent:n}=e,a=t.clone();return 200===t.status&&"basic"===t.type?a.text().then(e=>{if(e){const t=(function(e){const t=/var\s?g_payload\s?=\s?(.*?);\s?var\s?g_listData\s?=\s?(([^\n]*\n+)+?[^\n]*?);if\s?\(typeof\s?DeferredListDataComplete/m,n=e.match(_t);if(n)for(const e of n){const n=e.match(t);if(n){const e=n[1],t=n[2];return{listData:JSON.parse(t),payload:JSON.parse(e)}}}return})(e);if(t)return performance.mark("EUPL.flushedListDataReceivedInServiceWorker"),self._postMessageController.postDataToClient({clientId:n.resultingClientId||n.clientId,getData:()=>Promise.resolve({isSWPrefetchListData:!0,prefetchedListData:t})})}}):Promise.resolve()}var Et=n(31);class At{constructor(){this._openCache()}read(e){return this._openCache().then(t=>t.match(e))}update(e,t){return this._openCache().then(n=>n.put(e,t))}remove(e){return this._openCache().then(t=>t.delete(e)).then(()=>{})}clean(){const e=(0,s.b)("SPServiceWorker.ListController.caches.cleanup");return this._cleanInternal().then(t=>t.needsClean&&!t.cleaned?e({resultType:g.a.Failure,extraData:Object.assign({},t)}):e({resultType:g.a.Success,extraData:Object.assign({},t)})).catch(t=>e({resultType:g.a.Failure,error:JSON.stringify(t)}))}_openCache(){return this._cache?Promise.resolve(this._cache):self.caches.open("STSRESOURCECACHE").then(e=>(this._cache=e,e))}_cleanInternal(){const e={needsClean:!1,cleaned:!1,size:0,count:0};return this._openCache().then(e=>e.matchAll()).then(t=>(e.count=t.length,e.size=t.reduce((e,t)=>e+Number(t.headers.get("content-length")),0),e.needsClean=e.count>5e3||e.size>805306368,!!e.needsClean&&this._clearPreviousBuildScripts())).then(t=>(e.cleaned=t,e))}_clearPreviousBuildScripts(){return this._openCache().then(e=>e.keys().then(t=>(0,Et.a)(t.map(t=>{for(const e in self._resourcesToPrefetch)if(self._resourcesToPrefetch.hasOwnProperty(e)){const n=self._prefetchBaseUrls[e];if(t.url.includes(n))return}return e.delete(t)})).then(()=>!0)))}}class Lt extends Dt{constructor(){super()}_setupCache(){this._cache=new At}_processResponse(e,t){return(0,l.b)(this,void 0,void 0,function*(){if("font/woff"===e.headers.get("content-type")||"application/font-woff"===e.headers.get("content-type"))return{cacheValue:e};const t=yield e.text(),n=(0,s.c)(e.headers);n["content-encoding"]&&delete n["content-encoding"],n.date||(n.date=(new Date).toUTCString()),n["content-length"]=t.length.toString();return{cacheValue:new Response(t,{headers:n,status:200,statusText:"OK"})}})}_generateResponse(e){return e}}const kt=self.location.search.includes("&defaultBrotli=true");class Mt extends Lt{constructor(){super()}prefetch(e){return(0,l.b)(this,void 0,void 0,function*(){const t=(0,s.b)("SPServiceWorker.ListController.resources.prefetch");this._setListPrefetchCompleted(!1),this._prefetchAndCache(this._getListResourcesToPrefetch(e)).then(()=>this._setListPrefetchCompleted(!0)).then(()=>t({resultType:g.a.Success})).catch(e=>t({resultType:g.a.Failure,error:e.toString(),resultCode:"resources prefetch error"}))})}prefetchIfNotCompleted(){return new W({cacheAppName:"sts-user-settings"}).read("isPrefetchComplete").then(e=>e&&e.data?Promise.resolve():this.prefetch())}handleFetchRequest(e){return Promise.resolve({})}shouldHandleFetchRequest(e){return!1}_setupCache(){this._cache=new At}_checkIsExpired(e,t){return!1}_setListPrefetchCompleted(e){new W({cacheAppName:"sts-user-settings"}).update("isPrefetchComplete",e).then().catch()}_getListResourcesToPrefetch(e){return(0,l.b)(this,void 0,void 0,function*(){const t=[],n=yield this._readIsListsPWAInstalled();if(self._resourcesToPrefetch&&self._prefetchBaseUrls)for(const a in self._resourcesToPrefetch)if(self._resourcesToPrefetch.hasOwnProperty(a)){const i=self._prefetchBaseUrls[a];i&&self._resourcesToPrefetch[a].forEach(a=>{if(a.includes("listshomefilebrowser")&&!n)return;if(e&&!e(a))return;const r=mt(kt?{url:new URL(a,i).toString(),keepCasing:!0}:{url:new URL(a,new URL("brotli/",i)).toString(),keepCasing:!0});t.push(r)})}return t})}_prefetchAndCache(e){return(0,l.b)(this,void 0,void 0,function*(){const t=yield e,n=yield Promise.all(this._fetchResources(t));return this._cacheResources(n)})}_fetchResources(e){return e.map(e=>fetch(e).then(t=>({response:t.clone(),key:e.toLowerCase()})))}_cacheResources(e){return e.reduce((t,n,a)=>t.then(()=>{const t=[],{response:i,key:r,saved:o}=n;if(o)return Promise.resolve();if(n.saved=!0,t.push(this._cacheResponse({key:r,isNavigate:!1,clonedResponse:i})),a<e.length-1){const n=e[a+1];n.saved=!0;const{response:i,key:r}=n;t.push(this._cacheResponse({key:r,isNavigate:!1,clonedResponse:i}))}return Promise.all(t).then(()=>{})}),Promise.resolve())}_readIsListsPWAInstalled(){return new W({cacheAppName:"sts-user-settings"}).read("listsPWAInstalled").then(e=>!!e&&e.data)}}const Pt="https://lists.microsoft.com/";function Tt(e){const t=`window\\[\\"_spModuleLink\\"\\].*\\"manifestName\\":\\"(${e.join("|")})\\".*\\"scenarioName\\":\\"(\\w+)\\"`;return new RegExp(t)}const Ut=Tt(["SPList","SPListForItemsScope","SPListWebPack","SpartanList","ListsEnterprise","CreateListWebPack","ListAllItemsWebPack","SPListsHomeWebPack","ODBOneDrive","ODBLightSpeed","ODBLightSpeedWebPack","WebTemplatesGalleryWebPack","SPAppBarWebPack","SPOFilePickerWebPack","ListsHomeFileBrowserWebPack","FreemiumListsHomeWebPack","SPTeamSiteFileBrowserWebPack","TeamsSPFileBrowserWebPack","ModernFrame","TeamsODBFileBrowserWebPack","TeamsODBFileBrowserV2","ODBFileBrowserWebPack","MetaOSTeamSiteFileBrowser","MetaOSODBFileBrowser","MetaOSODBFileBrowserV2"]),Ft="sts-page-response-cache";class Ht extends Dt{constructor(){super(),self._postMessageController.registerPostMessageReceiver(It,e=>Ot(e,this._cache)),self._postMessageController.registerPostMessageReceiver(Ct,e=>(function(e,t){const{url:n,type:a}=e;if(a===Ct){const e=vt(n);if(e){const n=(0,s.b)("SPServiceWorker.ListController.invalidateCacheByFBAAuthError");return t.read(e).then(n=>{if(n)return t.remove(e)}).then(()=>(n({resultType:g.a.Success}),!0)).catch(e=>(n({resultType:g.a.Failure}),!1))}return Promise.resolve(!0)}return Promise.resolve(!1)})(e,this._cache));(0,he.d)().addEventListener("message",e=>{const t=e.data;t&&t.name===he.a.CheckOffline&&t.data.lastKnownOffline!==this._offline&&this._sendOfflineUpdateEvent()})}static extractNonce(e){const t=e.match(/nonce=['"]([a-zA-Z0-9\-]+)['"]/);if(t[1])return t[1]}handleFetchRequest(e,t){const n=vt(e.request.url,e.request.method,e.request.headers),a="unsafe-url"===e.request.referrerPolicy,i=!a&&this._getLogQos("SPServiceWorker.ListController.page.handleFetchRequest",e);return this._getResponseFromCache({key:n,qosName:!a&&"page",fetchEvent:e}).then(r=>{if(r){const{response:o,manifest:s}=r;return console.log(`pageResponse served from serviceworker cache, key: ${n}, time: ${Date.now()}`),e.waitUntil(this._doNetworkAndCacheRefresh({event:e,preloadResponse:t,key:n,qosName:!a&&"page",onResponseReceived:t=>this._onNavigationPreloadResponse({fetchEvent:e,key:n,response:t,manifest:s})})),i&&i({resultType:g.a.Success,extraData:{source:"cache"}}),o}return this._doNetworkAndCacheRefresh({event:e,preloadResponse:t,key:n,qosName:"page"}).then(e=>(i&&i({resultType:g.a.Success,extraData:{source:"network"}}),e))}).catch(e=>{throw i&&i({resultType:g.a.Failure,error:JSON.stringify(e)}),e})}shouldHandleFetchRequest(e){const t=mt({url:e.url});return!self._shouldBypass&&(pt(t,".aspx",!0)?!(t.indexOf("/_layouts/")>=0)||(pt(t,"createlist.aspx",!0)||pt(t,"listallitems.aspx",!0)||pt(t,"lists.aspx",!0)||pt(t,"onedrive.aspx",!0)||pt(t,"spappbar.aspx",!0)||pt(t,"webtemplatesgallery.aspx",!0)||pt(t,"filepicker.aspx",!0)||pt(t,"filebrowser.aspx",!0)||pt(t,"modernframe.aspx",!0)||pt(t,"listsview.aspx",!0)):!!t.includes("/lists/")||t===Pt)}_setupCache(){this._cache=new W({cacheAppName:Ft})}_processResponse(e,t){return Rt(e,t)}_checkIsExpired(e,t){const{cacheStats:{lastModified:n}}=e;return!isNaN(n)&&Date.now()-n>K}_generateResponse(e){const{data:t}=e,n=JSON.parse(t),{content:a,manifest:i,headers:r}=n;return{response:new Response(this._addOfflineInformation(a),{headers:r}),manifest:i}}_addOfflineInformation(e){const t=new Ae.a(Ht.extractNonce(e));return t.write(e),t.inlineScript(`window.__swstats={offline:${this._offline},prefetched:${this._lastKnownPrefetched}};`,!0),this._refreshPrefetched(),t.flush(),t.close(),t.readableStream}_onNavigationPreloadResponse(e){const{key:t,response:n,fetchEvent:a}=e;let i=Promise.resolve();return a.waitUntil(wt({response:n,fetchEvent:a})),mt({url:a.request.url})===Pt&&200===n.status&&"basic"===n.type?i=i.then(()=>this._handleLMCAuth({key:t,fetchEvent:a,response:n})):"opaqueredirect"!==n.type||n.ok||(i=i.then(()=>this._handleAuthRedirect({key:t,fetchEvent:a}))),i}_handleLMCAuth(e){const{response:t}=e,n=(0,l.e)(e,["response"]);return t.clone().text().then(e=>{const t=Tt(["ListsHost"]),a=e.match(t);if(a){if("ListsHostWelcome"===a[2])return this._handleAuthRedirect(n)}})}_handleAuthRedirect(e){const{key:t,fetchEvent:n}=e,a=this._getLogQos("SPServiceWorker.ListController.page.handleAuthRedirect",n);return this._cache.remove(t).then(()=>(a({resultType:g.a.Success,extraData:{url:t}}),self._postMessageController.postDataToClient({clientId:n.resultingClientId||n.clientId,getData:()=>Promise.resolve({shouldRefresh:!0})}))).catch(e=>{a({resultType:g.a.Failure,error:JSON.stringify(e),extraData:{url:t}})})}_doNetworkAndCacheRefresh(e){const{event:t,preloadResponse:n,key:a,qosName:i,onResponseReceived:r}=e;return n.then(e=>{if(e&&(e.headers.get("content-type")||"").includes("application/json")){const t=new URL(e.url);return t.searchParams.set("sw","bypass"),new Response(null,{status:302,headers:{Location:t.href}})}const n=e.clone();let o=Promise.resolve();return r&&(o=r(e)),t.waitUntil(o.then(()=>this._cacheResponse({key:a,clonedResponse:n,qosName:i,isNavigate:!0,fetchEvent:t}))),e}).catch(e=>{throw this._serviceError(),e})}_refreshPrefetched(){new W({cacheAppName:"sts-user-settings"}).read("isPrefetchComplete").then(e=>{this._lastKnownPrefetched=e&&e.data})}}function Rt(e,t){return e.text().then(n=>{if((function(e,t){if("true"===e.headers.get("service-worker-skip-caching"))return!1;const n=new URL(e.url),a=e.headers.get("content-security-policy");if(n.pathname.toLowerCase().indexOf("/filebrowser.aspx")>-1){if("none"===n.searchParams.get("auth"))return!0;const e=new URL(t);if(null===a||-1===a.indexOf(e.searchParams.get("origin")))return!1}return!0})(e,t)){const a=(function(e,t){const n=e.match(Ut);if(n){const a=n[1],i=n[2];let r;const o=new RegExp("<html([^\\n]*\\n+)+[^\\n]*</html>","m"),s=e.match(o);if(s){const o=s[0];if(n.index>=s.index&&n.index<=s.index+o.length){let n=(function(e){const t=e.match(/<script\stype=\"text\/javascript\"(\snonce=\"([\w-]+)\")?>/);if(t){const n=`${t[0]}window.__pageFromServiceWorker=true;window.__serviceWorkerBaseUrl='${self._cdnBaseUrl}';<\/script>`;return e.replace("</html>",`${n}</html>`)}return e})(e.substring(0,s.index+o.length));"SPListsHomeWebPack"===a?n=jt(n,et):"ODBLightSpeedWebPack"===a&&(n=jt(n,tt,65)),"ListsHomeFileBrowserWebPack"===a&&self.setTimeout(Nt,5e3);const c=e.substring(s.index+o.length);let d=c||"";const l=c.match(_t);if(l)for(const e of l){const t=Bt(e);d=d.replace(e,t)}return"SPListWebPack"===a&&(r=(function(e,t){const n=e.match(/"DefaultView"\:(true|false)/),a=e.match(/"serverRedirectedUrl"\:"(.+?)"/);try{if(n&&"true"===n[1]&&a&&a[1])return[a[1].toLocaleLowerCase()]}catch(e){return}try{if(n&&"true"===n[1]){const e=new URL(t),n=e.pathname.slice(0,e.pathname.lastIndexOf("/"));return[e.origin+n+e.search]}}catch(e){return}})(e,t)),"SpartanListEmbedded"===i&&(n=n.replace(/(var\s?_spPageContextInfo\s?=\s?)([^;]*?)(;\s?_spPageContextInfo.)/m,(e,t,n,a)=>{try{const e=JSON.parse(n);return`${t}${JSON.stringify({isSiteListsHost:!!e.isSiteListsHost,ExpFeatures:e.ExpFeatures,killSwitches:e.killSwitches})}${a}`}catch(e){return""}})),{content:`${n}\n${d}`,manifest:a,additionalKeys:r}}}}return})(n,t);if(a){const t=(0,s.c)(e.headers),n={content:a.content,manifest:a.manifest,headers:t};return{cacheValue:JSON.stringify(n),additionalKeys:a.additionalKeys}}}})}function Nt(){const e=new W({cacheAppName:"sts-user-settings"});e.read("listsPWAInstalled").then(t=>{if(!t||!t.data)return e.update("listsPWAInstalled",!0).then(()=>(new Mt).prefetch(e=>e.includes("listshomefilebrowserwebpack")))}).then().catch()}function Bt(e){let t=e;return e.indexOf("var g_payload =")>=0&&e.indexOf("var g_listData =")>=0&&(t=""),t=t.replace("var g_needFetchTeamsToken = true;",""),t=t.replace(/var\sg_filePickerBrowserClaim\s=\s'[^']+';/,""),t}function jt(e,t,n=100,a=100){const i=`<div id="splash">\n<style>#splash{display:none;} @media(display-mode:standalone),(display-mode: minimal-ui){#splash{display:block;}}</style>\n<div style="z-index:99;position:absolute;width:${a}px;left:calc(50% - ${a/2}px);height:${n}px;top:50%;filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.4));">\n${t}\n</div>\n<div style="z-index:99;position:absolute;width:92px;left:calc(50% - 46px);height:20px;bottom:24px;">\n${nt}\n</div>\n</div>`;return e.replace("</html>",`${i}</html>`)}const Vt="/_api/SP.Directory.DirectorySession/me?$select=mySite";class zt extends Lt{constructor(){super()}handleFetchRequest(e){const t=e.request.url,n=mt({url:t});let a=n;return this._isMysiteRequest(e.request)&&(a=new URL(Vt,n).toString()),this._isFaviconRequest(n)&&(a=n+new URL(t).search),this._getResponseFromCache({key:a,fetchEvent:e}).then(t=>t?this._isShellRequest(n)?(this._doNetworkAndCacheUpdateInBackground({event:e,key:a}),t):t:this._doNetworkAndCacheUpdate({event:e,key:a})).catch(t=>this._doNetworkAndCacheUpdate({event:e,key:a}))}shouldHandleFetchRequest(e){const t=mt({url:e.url});return this._cdnCachable(t)||this._isMysiteRequest(e)||this._isFaviconRequest(t)}_setupCache(){this._cache=new At}_checkIsExpired(e,t){if(!navigator.onLine)return!1;if(this._isShellRequest(mt({url:t}))){if(+new Date(e.headers.get("date"))<+new Date-6048e5)return!0}return!1}_cdnCachable(e){return(pt(e,".js",!0)||pt(e,".woff",!0)||pt(e,".svg",!0))&&(this._checkCDNBaseUrl(e)||this._checkPrefetchBaseUrl(e))||this._isShellRequest(e)}_isMysiteRequest(e){return e.url.endsWith(Vt)}_isFaviconRequest(e){return e.endsWith("listshomefavicon.ico")}_isShellRequest(e){return 0===e.indexOf("https://shell.cdn.office.net")||0===e.indexOf(" https://webshell.suite.office.com")}_checkPrefetchBaseUrl(e){if(!self._prefetchBaseUrls)return!1;const t=new URL(e);return Object.keys(self._prefetchBaseUrls).some(e=>new URL(self._prefetchBaseUrls[e]).origin===t.origin)}_checkCDNBaseUrl(e){const t=new URL(e),n=new URL(self._cdnBaseUrl);return"dev"!==self._swBuildNumber&&!self._swBuildNumber.startsWith("dev-")&&!(t.origin!==n.origin&&"dev"!==self._swBuildNumber&&!self._swBuildNumber.startsWith("dev-"))}_doNetworkAndCacheUpdate(e){const{event:t,key:n}=e;return this._doNetworkFetch(t).then(e=>{const a=e.clone();return t.waitUntil(this._cacheResponse({key:n,clonedResponse:a,isNavigate:!1,fetchEvent:t})),e})}_doNetworkAndCacheUpdateInBackground(e){const{event:t,key:n}=e;return this._doNetworkFetch(t).then(e=>{const a=e.clone();return this._cacheResponse({key:n,clonedResponse:a,isNavigate:!1,fetchEvent:t})})}}class Gt extends Dt{constructor(){super(),self._postMessageController.registerPostMessageReceiver(xt,e=>(function(e,t,n){const{url:a,type:i}=e;if(i===xt&&self._needPagePreload){const e=vt(a);return e?t.read(e).then(e=>{if(!e)return n({pageUrl:a,qosName:"SPServiceWorker.ListController.page.preloadWhenInstallSW"})}).then(()=>(self._needPagePreload=!1,!0)).catch(e=>!1):Promise.resolve(!0)}return Promise.resolve(void 0)})(e,this._cache,this.prefetchSinglePage.bind(this)))}prefetch(){return(0,ue.b)(ue.a.DisablePagePrefetch)?this._getUrlsWithMostReads({count:15}).then(e=>{const t=e.map(e=>e.includes("filebrowser.aspx")?Promise.resolve():this.prefetchSinglePage({pageUrl:e,qosName:"SPServiceWorker.ListController.page.prefetch"}));return Promise.all(t)}).then(()=>{}):Promise.resolve()}prefetchSinglePage(e){const{pageUrl:t,qosName:n}=e,a=this._isTeamsFilebrowserPage(t)?t:mt({url:t});console.log("page to prefetch: ",a);const i=(0,s.b)(n),r=new URL(a);r.searchParams.set("skipSignal","true");const o=r.toString();return fetch(o).then(e=>{if(200!==e.status)return i({resultType:g.a.Failure,resultCode:`${e.status}`,extraData:{url:a}});const n=e.clone();return this._cacheResponse({key:this._isTeamsFilebrowserPage(t)?vt(a):a,clonedResponse:n,isNavigate:!1,qosName:"page-prefetch"}).then(()=>i({resultType:g.a.Success}))}).catch(e=>i({resultType:g.a.Failure,resultCode:`${JSON.stringify(e)}`,extraData:{url:a}}))}prefetchFilebrowserPage(e){this.prefetchSinglePage({pageUrl:e,qosName:"SPServiceWorker.ListController.page.prefetch"})}handleFetchRequest(e){return Promise.resolve({})}shouldHandleFetchRequest(e){return!1}_setupCache(){this._cache=new W({cacheAppName:"sts-page-response-cache"})}_processResponse(e,t){return Rt(e,t)}_checkIsExpired(e,t){return!1}_generateResponse(e){}_getUrlsWithMostReads(e){const{count:t}=e;return this._cache.rangeQuery({index:"app_reads",range:IDBKeyRange.bound([Ft,0],[Ft,1/0]),direction:"prev",count:t}).then(e=>e.data.map(e=>e.original.key))}_isTeamsFilebrowserPage(e){let t=!1;if(self.location.search.includes("prefetchFilebrowserPageInTeams=true")&&-1!==(null==e?void 0:e.indexOf("/_layouts/15/filebrowser.aspx"))){const n=new URL(e.toLowerCase());t=n.searchParams.has("app")&&"teamsfile"===n.searchParams.get("app").toLocaleLowerCase()}return t}}const Kt=`${pe.c}availablelists`;class Wt{constructor(){this.applicationId=dt,this.deploymentProject=Se,this._onMessage=e=>{self._postMessageController.onMessageReceived(e)},this._pageRequestHandler=new Ht,this._resouceRequestHandler=new zt,this._pagePrefetchHandler=new Gt,this._resourcePrefetchHandler=new Mt}get name(){return this.applicationId}knownPaths(){const e=new URL(Pt).toString()===new URL(pe.a).toString();return[{path:"/_layouts/15/createlist.aspx"},{path:"/_layouts/15/lists.aspx"},{path:"/_layouts/15/onedrive.aspx"},{path:Kt},{path:"/_layouts/15/(createlist|listallitems|lists|onedrive|filepicker|filebrowser|modernframe|listsview).aspx$",regex:!0},...e?[{path:"/"}]:[]]}install(){console.log(`${Math.round(performance.now())} installing STS service worker @ ${self._swBuildNumber}`);const e=(0,s.b)("SPServiceWorker.ListController.install");return self.skipWaiting().then(()=>this._prefetch()).then(()=>Promise.all([this._pageRequestHandler.cleanupCache(),this._resouceRequestHandler.cleanupCache()])).then(()=>(self._needPagePreload=!0,e({resultType:g.a.Success}))).catch(t=>e({resultType:g.a.Failure,error:t}))}getCacheState(e){}precache(){}activate(){self.addEventListener("message",this._onMessage),console.log(`${Math.round(performance.now())} activating STS service worker @ ${self._swBuildNumber}`);const e=(0,s.b)("SPServiceWorker.ListController.activate");return self.clients.claim().then(()=>{const e=self.registration.navigationPreload;return e&&e.getState().then(e=>e.enabled?Promise.resolve():Promise.reject())}).then(()=>e({resultType:g.a.Success})).catch(t=>e({resultType:g.a.Failure,error:t}))}deactivate(){self.removeEventListener("message",this._onMessage)}willSync(e){}sync(e){var t;if("RefreshPageCache"===e.tag)this._pagePrefetchHandler.prefetchFilebrowserPage(null===(t=e.args)||void 0===t?void 0:t.path)}message(e,t){}navigate(e,t){const n=e.request;if(mt({url:n.url}).indexOf(Kt)>-1)return class{static getResponse(){return(0,l.b)(this,void 0,void 0,function*(){const e=new Ae.a;e.startHtml("en"),e.startBody();const t=new W({cacheAppName:"sts-user-settings"}),n=yield t.read("isPrefetchComplete").then(e=>!!e&&e.data),a=new W({cacheAppName:"sts-page-response-cache"}),i=n?yield a.keys():[],r=[],o=new TextEncoder;return yield Promise.all(i.map(e=>crypto.subtle.digest("SHA-256",o.encode(e)).then(e=>{const t=Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("");r.push(t)}))),e.inlineScript("window.parent.postMessage('"+JSON.stringify(r)+'\', "*");',!0),e.endHtml(),e.close(),Promise.resolve(new Response(e.readableStream,{headers:{"Content-Type":"text/html"}}))})}}.getResponse();return this._pageRequestHandler.shouldHandleFetchRequest(n)?(e.waitUntil(t.then(this._onPreloadCompleted.bind(this)).catch(()=>{})),this._pageRequestHandler.handleFetchRequest(e,t)):void 0}fetch(e){if(this._resouceRequestHandler.shouldHandleFetchRequest(e.request))return this._resouceRequestHandler.handleFetchRequest(e)}_prefetch(){const e=this._prefetchPage(),t=this._prefetchResources();return Promise.all([e,t]).then(()=>{})}_onPreloadCompleted(){return this._resourcePrefetchHandler.prefetchIfNotCompleted().catch(()=>{})}_prefetchPage(){return self.setTimeout(()=>this._pagePrefetchHandler.prefetch(),3e4),Promise.resolve()}_prefetchResources(){return this._resourcePrefetchHandler.prefetch()}}var qt,Qt,Yt;(function(e){e.Home="Home",e.Article="Article",e.CampaignCommunication="7a15b862-c3a3-43de-8a12-84f860edefd9"})(qt||(qt={})),(function(e){e[e.Metadata=0]="Metadata",e[e.WebPartZone=3]="WebPartZone",e[e.RTE=4]="RTE",e[e.TwoColumns=5]="TwoColumns",e[e.ThreeColumns=6]="ThreeColumns",e[e.OneThirdColumnRight=7]="OneThirdColumnRight",e[e.OneThirdColumnLeft=8]="OneThirdColumnLeft",e[e.FullWidth=9]="FullWidth",e[e.OneColumn=10]="OneColumn"})(Qt||(Qt={})),(function(e){e[e.NotPromoted=0]="NotPromoted",e[e.PromoteOnPublish=1]="PromoteOnPublish",e[e.Promoted=2]="Promoted"})(Yt||(Yt={}));class Jt extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.SiteApplication,this.assemblyId=Ee.a.SiteAssembly,this._inlineAuthKillswitch=(0,ue.b)(ue.a.sitesInlineAuth)}get title(){return this.page.title}get appBarVisible(){return super.appBarVisible&&(this.isSPAppBarHiddenOnPublicationsKSActivated||this.page.pageLayoutType!==qt.CampaignCommunication)&&((0,ue.b)(ue.a.noAppBarForEditPages)||!this.isFlightEnabled(rt.v)||"Edit"!==this.url.searchParams.get("Mode"))}get useInlineAuthentication(){return!this._inlineAuthKillswitch&&super.useInlineAuthentication}get preloadedData(){return this.navigationResult}get isOfflineEnabled(){return this.isFlightEnabled(rt.h)||this._isTeamsClassHome}get startOffline(){var e;return this.isOfflineEnabled&&!!(null===(e=this.page)||void 0===e?void 0:e.reads)}get appDataEnabled(){return!0}get showSearchBox(){return!this._isCampaignPage&&super.showSearchBox}get collapseO365Settings(){return!this._isCampaignPage&&super.collapseO365Settings}renderPhases(){var e;const t=null===(e=this.page)||void 0===e?void 0:e.lkgEnabled;return[this.shell(),Promise.resolve(t&&this.lkgData()),this.start(),Promise.resolve(t&&this.newData())]}renderSplash(e){this.canonicalPath!==Zt.Preload&&super.renderSplash(e)}createPage(){const e=this.preloadedData;if(!e.page)return super.createPage();const t=Object.assign({},e.item,e.page.Content),n=t.PageLayoutType,a=new Set,i=new Set;return this._scanWebPartData(t.LayoutWebpartsContent,a,i),this._scanCanvasContent(t.CanvasContent1,a,i),this._scanForUpdates(t),Jt._guid.test(n)&&i.add(n),Object.assign({version:t.Version,pageLayoutType:n,title:t.Title,lkgEnabled:this._lkgEnabled(a),webParts:Array.from(a),dynamicComponents:Array.from(i),audienceFilteredWebPartComponentIds:t.CanvasContent1?e.page.PreloadWebPartComponentIds:void 0},super.createPage())}postRender(){return Promise.resolve(this.startOffline&&this.navigationResultFromConfig&&this._requiresUpdate&&this._renderUpdateContent.bind(this))}additionalComponents(){const e=super.additionalComponents();return this.additionalManifestConsumptionKillswitch&&e.push(...Le.a),e}_getNewComponentsAfterUpdate(){const e=new Set,t=this.components;let n=t.length;for(let a=0;a<n;a++)e.add(t[a].id);const a=this.getComponents(),i=[];n=a.length;for(let t=0;t<n;t++)e.has(a[t].id)||i.push(a[t]);return i.length&&i}_renderUpdateContent(e){const t=Object.assign({},this.page.navigationResult.item,this.page.navigationResult.page.Content),n=[],a=this._hasContentChanged&&this._getNewComponentsAfterUpdate();a&&n.push(`spModuleLoader._bundledComponents['${Ee.a.Loader}'].SPComponentLoader.registerManifests(${e.xssStringify(a)});\n`);const i=e.xssStringify(t);n.push(`spModuleLoader._bundledComponents['${Ee.a.SiteApplication}'].PageManager._actions.coreActions.setFieldsFromListItem(${i})`),e.inlineScript(n.join(""),!0),e.flush()}_scanForUpdates(e){var t;const n=null===(t=this.page)||void 0===t?void 0:t.navigationResult;if(n){const t=Object.assign({},n.item,n.page.Content);this._requiresUpdate=(this._hasContentChanged=e.CanvasContent1!==t.CanvasContent1||e.LayoutWebpartsContent!==t.LayoutWebpartsContent)||e.PromotedState!==t.PromotedState}}_getDependencies(e,t){const n=this.context.spfxConfig.getComponents([e.id],this.scriptLang),a=n.length;for(let e=0;e<a;e++)switch(n[e].id){case Ee.a.WebPartShared:case Ee.a.DataProviders:t.add(n[e].id)}const i=e.serverProcessedContent&&e.serverProcessedContent.componentDependencies;if(i){const e=Object.keys(i);for(let n=0;n<e.length;n++)t.add(i[e[n]])}}_getAllDependencies(e,t,n){const a=e.length||0;for(let i=0;i<a;i++){const a=e[i];if(a&&this._isNotAudienceFiltered(a.id)){t.add(a.id);const e=this.context.spfxConfig.getComponent(a.id);e&&(e.isInternal||this.extensions().has(a.id))?this._getDependencies(a,n):this.deleteManifest(a.id)}}}_defaultContent(e,t){switch(this.spPageContext.webTemplate){case ze.d.CommunicationSite:e.add(Ee.a.HeroWebPart).add(Ee.a.NewsWebPart).add(Ee.a.EventsWebPart).add(Ee.a.HighlightedContentWebPart).add(Ee.a.QuickLinksWebPart).add(Ee.a.PeopleWebPart),t.add(Ee.a.HeroLayout).add(Ee.a.FlexLayout).add(Ee.a.CarouselLayout);break;case ze.d.TeamSite:e.add(Ee.a.NewsWebPart).add(Ee.a.SiteActivityWebPart).add(Ee.a.QuickLinksWebPart).add(Ee.a.HighlightedContentWebPart),t.add(Ee.a.GridLayout)}}_scanCanvasContent(e,t,n){if(e){const a=JSON.parse(e),i=a.length||0,r=[];for(let e=0;e<i;e++){const n=a[e];n&&n.controlType===Qt.WebPartZone&&(n.webPartData?r.push(n.webPartData):n.webPartId&&this._isNotAudienceFiltered(n.webPartId)&&t.add(n.webPartId))}this._getAllDependencies(r,t,n)}else this._defaultContent(t,n)}_scanWebPartData(e,t,n){if(e){const a=JSON.parse(e);this._getAllDependencies(a,t,n)}}_lkgEnabled(e){const t=Jt.lkgEnabledWebParts.entries();let n;for(;!(n=t.next()).done;)if(e.has(n.value[1]))return!0;const a=e.values();let i;for(;!(i=a.next()).done;){const e=this.context.spfxConfig.getComponent(i.value);if(e&&"AdaptiveCardExtension"===e.componentType)return!0}}_isNotAudienceFiltered(e){const t=this.preloadedData.page;return!(this.isFlightEnabled(rt.w)&&t&&t.PreloadWebPartComponentIds)||-1!==t.PreloadWebPartComponentIds.indexOf(e)}get _isTeamsClassHome(){return"true"===this.url.searchParams.get("classhome")}get _isCampaignPage(){return this.isFlightEnabled(rt.k)&&this.page.pageLayoutType===qt.CampaignCommunication}}Jt.lkgEnabledWebParts=[Ee.a.ConnectorWebPart,Ee.a.DashboardWebPart,Ee.a.HighlightedContentWebPart,Ee.a.EventsWebPart,Ee.a.FieldsWebPart,Ee.a.GroupCalendarWebPart,Ee.a.ImageGalleryWebPart,Ee.a.ContentCenterWebPart,Ee.a.RecentDocumentsWebPart,Ee.a.NewsWebPart,Ee.a.NewsfeedWebPart,Ee.a.CompanyFeedWebPart,Ee.a.OfficeFeedWebPart,Ee.a.SavedForLaterWebPart,Ee.a.SiteActivityWebPart,Ee.a.SitesWebPart,Ee.a.YammerHighlightsWebPart,Ee.a.YammerWebPart],Jt._guid=/^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i;const Xt="SitePages";var Zt;(function(e){e.Preload="/_layouts/15/preload.aspx"})(Zt||(Zt={}));class $t extends Oe{constructor(){super(...arguments),this.applicationId=Xt}knownPaths(){return[{path:Zt.Preload}]}fetch(e){if(!this.isSavePage(e.request))return super.fetch(e);this.fetchSavePage(e)}createContext(){return new we}precachedComponents(){return[Ee.a.SiteAssembly,Ee.a.SiteApplication,Ee.a.WebPartShared,Ee.a.DataProviders,Ee.a.CompanyFeedWebPart,Ee.a.DocumentEmbedWebPart,Ee.a.EventsWebPart,Ee.a.HeroWebPart,Ee.a.HighlightedContentWebPart,Ee.a.ImageWebPart,Ee.a.ImageGalleryWebPart,Ee.a.NewsfeedWebPart,Ee.a.NewsLinkWebPart,Ee.a.NewsWebPart,Ee.a.OfficeFeedWebPart,Ee.a.PageTitle,Ee.a.PeopleWebPart,Ee.a.QuickLinksWebPart,Ee.a.RecentDocumentsWebPart,Ee.a.SavedForLaterWebPart,Ee.a.SitesWebPart,Ee.a.SiteActivityWebPart,Ee.a.YammerWebPart]}createNavigationHandler(e){return new Jt(this,e)}isSavePage(e){return"POST"===e.method&&$t._editMode.test(e.referrer)&&$t._savePage.test(e.url)}fetchSavePage(e){e.waitUntil(this.context.then(t=>{const n=e.request.clone();return n.json().then(e=>t.config.getPage(n.referrer).then(n=>{if(n&&n.navigationResult&&n.navigationResult.page&&n.navigationResult.item)return n.navigationResult.page.Content.CanvasContent1=e.CanvasContent1,n.navigationResult.item.Title=e.Title,t.config.savePage(n)}))}))}}$t._editMode=/[?&]Mode=Edit/,$t._savePage=/_api\/sitepages\/pages\(\d+\)\/SavePage/;class en extends Le.b{constructor(e,t){super(e,t),this.spfxPreloads=[Ee.a.ComponentUtilities],this.componentId=Ee.a.SPHomeApplication,this.assemblyId=Ee.a.SPHomeAssembly,this.startOffline=!0}get preloadedData(){return this.navigationResult.spfxContext}createStats(e){return super.createStats(e).then(e=>Object.assign(Object.assign({},e),{fromWebBundle:this._fromWebBundle}))}createPage(){const e=super.createPage();return this._transformAppContext(e),e}renderPhases(){return[this.shell(),this.start()]}renderHeadScript(e){if(nn&&this.context.config.state.webBundleManifest){const t=this.context.config.state.webBundleManifest,n=this.loaderUrl(),a=n.substring(n.lastIndexOf("/")+1);t.resources.indexOf(a)>=0&&(this._fromWebBundle=!0,e.bundle(t.bundle,t.resources))}super.renderHeadScript(e)}renderStart(e){const t=this.navigationResult,n=`window._spHomePageContext=${e.xssStringify(t.appContext._spHomePageContext)};\nwindow._spHomePageDataCache=${e.xssStringify(t.appContext._spHomePageDataCache)};\nwindow._spHomeCompanyPortalHeaderContext=${e.xssStringify(t.appContext._spHomeCompanyPortalHeaderContext)};`;e.inlineScript(n,!0),super.renderStart(e)}postRender(){return this._fetchServiceContext().catch(()=>{}).then(e=>t=>{e&&this._renderServiceContext(e,t)})}_microserviceFailed({cacheValue:e}){return!e||e.includes('"Items":[]')||e.includes('"Activities":[]')}_transformAppContext(e){const t=e.navigationResult.appContext,n=t&&t._spHomePageDataCache,a=n&&n.length||0;if(t){const e=t._spHomePageContext&&t._spHomePageContext.isGraphEnabled;if(t._spHomeCompanyPortalHeaderContext&&0===Object.keys(t._spHomeCompanyPortalHeaderContext).length&&(t._spHomeCompanyPortalHeaderContext=this.page.navigationResult.appContext._spHomeCompanyPortalHeaderContext),t._spHomePageContext&&0===Object.keys(t._spHomePageContext).length&&(t._spHomePageContext=this.page.navigationResult.appContext._spHomePageContext),e){if(this.page&&n){const e=this.page.navigationResult.appContext._spHomePageDataCache,a=Object.assign({},e);for(const{Key:e,Value:t}of n)t&&!this._microserviceFailed(t)&&(a[e]=t);return void(t._spHomePageDataCache=a)}if(!n)return void(t._spHomePageDataCache=this.page.navigationResult.appContext._spHomePageDataCache)}}const i={};for(let e=0;e<a;e++){const t=n[e];i[t.Key]=t.Value}t._spHomePageDataCache=i}_renderServiceContext(e,t){const n=`window._spHomeServiceContext=${t.xssStringify(e)};`;t.inlineScript(n,!0),t.flush()}_fetchServiceContext(){const e=new URL("/_api/sphomeservice/context?$expand=Token,Payload",this.url.origin);return(0,Re.a)(e.href,{ACCEPT:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","SPHome-ClientType":"Web"}).then(e=>e.json())}}const tn="SPHome",nn=!(0,ue.b)(ue.a.spHomeWebBundles)&&/[?&]spHomeWebBundle=true/.test(self.location.search)&&!t.a;class an extends Oe{constructor(){super(...arguments),this.applicationId=tn}knownPaths(){return[{path:"/_layouts/15/sharepoint.aspx"}]}message(e,t){const{name:n,data:a}=e;"spStartOptIn"===n&&this.context.then(e=>{const{url:n}=a,i=(0,Pe.a)(n);return Promise.all([e.config.deletePageAndSite(i,i.substring(0,i.lastIndexOf("/_layouts/15/sharepoint.aspx"))),e.routeConfig.deleteRoute(i)]).then(()=>{const{source:e}=t;if(e instanceof WindowClient&&"nested"!==e.frameType)return e.navigate(n)}).then()})}createContext(){return new we}precacheWithContext(e,t){if(nn){const n=e.spfxConfig.scriptSyncState.lang.toLowerCase(),a=e.spfxConfig.scriptSyncState.version,i=new URL(self._cdnBaseUrl).hostname,r=`https://${i}/files/${a}/wbn/sp-home_${n}_wbn.json`;return Promise.all([super.precacheWithContext(e,t),caches.open(t.l1).then(n=>{n.add(r).then(()=>{n.match(r).then(e=>e.json()).then(n=>(n.bundle=`https://${i}/files/sp-client/${n.bundle}`,Promise.all([e.config.saveState({webBundleManifest:n},!0),(0,fe.i)([n.bundle],t)])))})})]).then()}return super.precacheWithContext(e,t)}precachedComponents(e){return[Ee.a.SPHomeAssembly,Ee.a.SPHomeApplication,Ee.a.PagesPreloads]}createNavigationHandler(e){return new en(this,e)}}class rn extends se{constructor(e,t){super(e,t),this.startOffline=!1}headersInit(){const e="readwrite"!==this.url.searchParams.get("auth")||this.isOAuthRequest;return Object.assign(Object.assign({},super.headersInit()),!e&&{"Content-Security-Policy":this.canonicalPath.endsWith("/_layouts/15/stream.aspx")?"frame-ancestors none":"frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;"})}}class on{sendDataToOnePlayer(e){return(0,l.b)(this,void 0,void 0,function*(){return fetch(e.request).then(t=>(0,l.b)(this,void 0,void 0,function*(){const{status:n,headers:a}=t,i=n>=100&&n<400,r=a.get("Content-Type"),o=r.includes("video")||r.includes("audio");if(i&&o)return t;if(r.includes("text"))try{const i=yield this._getSpoErrorInfo(a,n,t);(yield self.clients.get(e.clientId)).postMessage(i)}catch(e){console.log(e)}return t}))})}_getSpoErrorInfo(e,t,n){return(0,l.b)(this,void 0,void 0,function*(){const a=e.get("Sprequestguid");let i="";const r=e.get("x-ms-diagnostics");r&&(i=r);const o=e.get("Content-Type"),s=yield n.text();if(o.includes("html")){const e=this._getErrorFromSharepointPage(s);i+=e||s}else i+=s;return{spRequestGuid:a,errorStatus:t,errorMessage:i}})}_getErrorFromSharepointPage(e){if(e.includes('<div id="ms-error">')){let t="";const n=/(?:\<span id="ctl00_PlaceHolderMain_LabelMessage"\>)(.*?)(?:\<\/span\>)/,a=e.match(n);return a&&(t=a[1]),t}return null}}const sn="Embed",cn=self.location.search.includes("&defaultBrotli=true");class dn extends xe.b{constructor(){super(...arguments),this.applicationId=sn,this.deploymentProject=Se,this.progressiveHandlerKillswitch=(0,ue.b)(ue.a.handleProgressiveCalls),this.handleHlsCallsKillSwitch=(0,ue.b)(ue.a.handleHlsCalls),this.progressiveHandler=this.progressiveHandlerKillswitch?null:new on,this.hlsHandler=this.handleHlsCallsKillSwitch?null:ct.create()}knownPaths(){return[{path:"/_layouts/15/(embed|stream|streamembed).aspx$",regex:!0}]}createContext(){return new ie}createNavigationHandler(e){return new rn(this,e)}isProgressive(e,t){return!this.progressiveHandlerKillswitch&&e.includes("download.aspx")&&t.url.includes("client=streamvideoplayer")}sendDataIfProgressive(e){return(0,l.b)(this,void 0,void 0,function*(){return this.context.then(t=>t.config.isFlightEnabled(rt.l)||t.config.getExperimentVariant(rt.o)>0?this.progressiveHandler.sendDataToOnePlayer(e):fetch(e.request))})}shouldProcessHlsHandler(e){return!this.handleHlsCallsKillSwitch&&this.hlsHandler.shouldProcessRequest(e)}processHlsCall(e){return(0,l.b)(this,void 0,void 0,function*(){return this.context.then(t=>!this.handleHlsCallsKillSwitch&&ct.isEnabled(t)?this.hlsHandler.processFetch(e):fetch(e.request))})}resourceRoutes(){const e=[{match:this.isProgressive.bind(this),fetch:this.sendDataIfProgressive.bind(this)}];return this.hlsHandler&&e.push({match:this.shouldProcessHlsHandler.bind(this),fetch:this.processHlsCall.bind(this)}),super.resourceRoutes().concat(e)}precacheWithContext(e,t){const n=`${self._cdnBaseUrl}${cn?"":"brotli/"}@ms/stream-bundle/chunks/`,a=[`${n}onePlayer.js`,`${n}streamWebApp.js`,`${n}onePlayer~streamWebApp.js`,`${n}onePlayer~streamWebApp~webRecorderLoader.js`,`${n}vendors~onePlayer~streamWebApp.js`,`${n}vendors~onePlayer~streamWebApp~webRecorderLoader.js`,`${n}vendors~onePlayer~streamWebApp~web_recorder_v2.js`,`${n}defThinRes.js`,`${n}uiManager.js`,`${n}navigationPanel.js`];return e.config.isFlightEnabled(rt.i)||e.config.getExperimentVariant(rt.j)>0?(a.push(`${n}shakaengine.js`),a.push(`${n}vendors~shakaengine.js`),a.push(`${n}nextGenEngine.js`)):(a.push(`${n}aRes11.js`),a.push(`${n}vendors~azuremediaplayer.js`),a.push(`${n}pskin.js`)),e.config.isFlightEnabled(rt.m)&&(a.push(`${n}fluentMtc.js`),a.push(`${n}vendors~fluentMtc.js`),a.push(`${n}vendors~flipcameraltst~fluentMtc.js`)),e.config.isFlightEnabled(rt.n)&&a.push(`${n}mediaSettingsEditEmptyState.js`),(0,fe.i)(a,t)}}class ln extends se{constructor(e,t){super(e,t),this.startOffline=!0}}const un="CreateGroup";class fn extends xe.b{constructor(){super(...arguments),this.applicationId=un}knownPaths(){return[{path:"/_layouts/15/creategroup.aspx"}]}createContext(){return new ie}createNavigationHandler(e){return new ln(this,e)}}const pn="componentId";class mn extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.IsolatedWebPartApplication,this.assemblyId=Ee.a.IsolatedWebPartAssembly,this.startOffline=!0}get preloadedData(){return this.navigationResult}preloads(){return[this.loaderUrl(),...this.context.spfxConfig.scriptUrls(this.webpartComponentIds,this.scriptLang)]}additionalComponents(){return super.additionalComponents().concat(this.webpartComponentIds)}get webpartComponentIds(){const e=this.url.searchParams.get(pn);return e?e.split(","):[]}renderChrome(e){}renderSplash(e){}renderPhases(){return[this.shell(),this.start()]}get navigationResultKey(){if(void 0===this._key){const e=this.url.searchParams,t=e.get("webPartInstanceId")||e.get("newWebPartInstanceId"),n=e.get("listId");this._key=n?`${n}/${e.get("id")}/${e.get(pn)}/${t}`:`${e.get(pn)}/${t}`}return this._key}}const _n="SingleWebPart";class hn extends Oe{constructor(){super(...arguments),this.applicationId=_n}knownPaths(){return[{path:"/_layouts/15/webpart.aspx"}]}precachedComponents(e){return[]}createContext(){return new we}createNavigationHandler(e){return new mn(this,e)}}const bn="disableredirect",gn="/_layouts/15/vivahome.aspx",vn="/_layouts/15/vivahomefeed.aspx",yn=[gn,vn];class Sn extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.VivaHomeApplication,this.assemblyId=Ee.a.VivaHomeAssembly,this.startOffline=!0,this.supportsInlineAuthenticationOnBypass=!(0,ue.b)(ue.a.vivaHomeSupportsInlineAuthOnBypass),this._inlineAuthKillswitch=(0,ue.b)(ue.a.vivaHomeInlineAuth),this._isRedirectionEvaluated=!1,this._isRedirectingToVivaHome=!1,this._isRedirectingToSpPages=!1,this._isRedirectingToCachedUrl=!1}get useInlineAuthentication(){return!this._inlineAuthKillswitch&&super.useInlineAuthentication}get preloadedData(){return this.navigationResult}get redirectUrl(){var e,t,n;return null===(n=null===(t=null===(e=this.preloadedData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.Content)||void 0===n?void 0:n.redirectUrl}get optOutFlag(){var e,t,n;return null===(n=null===(t=null===(e=this.preloadedData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.Content)||void 0===n?void 0:n.isVivaHomeOptedOut}get supportsWebWorkerData(){return this.isFlightEnabled(rt.x)}get chromeless(){return!0}get appDataEnabled(){return!0}renderPhases(){return this.redirectUrl&&this._allowRedirect&&!this._isRedirectUrlCacheExpired?[this._redirectToCachedDest()]:[this.shell(),this.lkgData(6048e5),this.start(),this.authenticate(),this.newData(),this._redirectToUpdatedDest()]}renderStart(e){e.inlineScript("window.__vivaHomeHandlerRedirect = true;",!0),super.renderStart(e)}renderSplash(e){}get navigationResultKey(){return this._isOptOutDisabled?"disableOptOut":"default"}qosData(){return Object.assign(Object.assign({},super.qosData()),{evaluatedRedirection:this._isRedirectionEvaluated,redirectingToVivaHome:this._isRedirectingToVivaHome,redirectingToSpPages:this._isRedirectingToSpPages,redirectingToCachedUrl:this._isRedirectingToCachedUrl})}additionalComponents(){const e=super.additionalComponents();return this.additionalManifestConsumptionKillswitch&&e.push(...Le.a),e}redirect(e,t){if(!this.redirectingKillswitch){const t=(0,s.b)("VivaHomeHandler.redirect");e.toLowerCase().includes("/_layouts/15/brokerlogon.aspx")?(0,He.b)(t,new Fe.a({message:"Unexpected broker logon redirect.",code:"UnexpectedBrokerLogonRedirect",extraData:{dest:e,queryString:this.url.search}})):(0,He.a)(t,{resultType:g.a.Success})}return super.redirect(e,t)}get _isNonVivaHomeRedirect(){return(0,ue.b)(ue.a.vivaConnectionsV3)?this.redirectUrl&&-1===this.redirectUrl.toLowerCase().indexOf(gn):this.redirectUrl&&!yn.some(e=>-1!==this.redirectUrl.toLowerCase().indexOf(e))}_renderRedirectToDest(e,t){if((t||this.redirectUrl)&&this._allowRedirect){const n=new URL(t||this.redirectUrl);this.useSecureBroker&&n.searchParams.set("useSecureBroker","true"),this.url.searchParams.forEach((e,t)=>{n.searchParams.set(t,e)});const a=n.origin;if(this._isNonVivaHomeRedirect&&a!==this.url.origin)if((0,ue.b)(ue.a.vivaConnectionsV3))n.pathname=`${n.pathname}${n.pathname.endsWith("/")?"":"/"}${gn}`;else{let e=gn;yn.forEach(t=>{-1!==n.pathname.toLowerCase().indexOf(t)&&(e=t)}),n.pathname=`${n.pathname}${n.pathname.endsWith("/")?"":"/"}${e}`}return this._isRedirectingToSpPages=this._isNonVivaHomeRedirect,this._isRedirectingToVivaHome=!this._isNonVivaHomeRedirect,this.redirect(n.href,e)}}get _allowRedirect(){return"true"!==new URL(this.url.toString().toLowerCase()).searchParams.get(bn)}get _isOptOutDisabled(){return"true"===new URL(this.url.toString().toLowerCase()).searchParams.get("disableoptout")}get _isRedirectUrlCacheExpired(){return this.lastRead&&Date.now()-this.lastRead.getTime()>6048e5}_redirectToCachedDest(){return this._isRedirectingToCachedUrl=!0,this._isRedirectionEvaluated=!0,Promise.resolve(this._renderRedirectToDest.bind(this))}_redirectToUpdatedDest(){return this._isRedirectionEvaluated=!0,this.preloadResponseReady.then(()=>e=>{if(this.redirectUrl){(0,ue.b)(ue.a.writeVHRedirectUrlToWindow)||e.inlineScript(`window.__vivaHomeRedirectUrl = '${Ae.a.htmlEncode(this.redirectUrl,!0)}';`,!0);const t=new URL(this.redirectUrl.toLowerCase());t.searchParams.set(bn,"true"),this._renderRedirectToDest(e,t.toString())}})}}const Dn="VivaHome";class In extends Oe{constructor(){super(...arguments),this.applicationId=Dn}knownPaths(){return[{path:gn},{path:vn}]}createContext(){return new we}precachedComponents(e){return[Ee.a.VivaHomeAssembly,Ee.a.VivaHomeApplication,Ee.a.DashboardWebPart,Ee.a.ACEWebpart,Ee.a.IsolatedACEWebpart,Ee.a.CompanyFeedWebPart]}createNavigationHandler(e){return new Sn(this,e)}}class xn extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.VivaAmplifyApplication,this.assemblyId=Ee.a.VivaAmplifyAssembly,this.pageTitle="Amplify",this.startOffline=!0}get appDataEnabled(){return!0}get appBarVisible(){return!1}get preloadedData(){return this.navigationResult}renderSplash(e){}get shortcutIcon(){return"/_layouts/15/images/VivaAmplifyFavicon.ico?rev=47"}get title(){return this.pageTitle}get showSearchBox(){return!this.isFlightEnabled(rt.k)}get collapseO365Settings(){return!this.isFlightEnabled(rt.k)}parseNavigationResult(e){return e.text().then(e=>{const t=e.search(/\<\/body>\r\n\<\/html>/g);if(-1!==t)return JSON.parse(e.substring(0,t))})}renderPhases(){return[this.shell(),this.start(),this.lkgData(),this.authenticate(),this.newData()]}}const Cn="VivaAmplify";class On extends Oe{constructor(){super(...arguments),this.applicationId=Cn}knownPaths(){return[{path:"/_layouts/15/viva-amplify.aspx"}]}createContext(){return new we}precachedComponents(e){return[Ee.a.VivaAmplifyAssembly,Ee.a.VivaAmplifyApplication]}createNavigationHandler(e){return new xn(this,e)}}var wn;(function(e){e.Name="Clipchamp.Cache",e.AssetStoreName="assets",e.AssetStoreKeyPath="permanentUrl"})(wn||(wn={}));class En extends qe.b{constructor(){super(wn.Name,1)}getAssetObject(e){const t=this.store(wn.AssetStoreName);return this.get(e,t)}deleteAssetObject(e){const t=this.store(wn.AssetStoreName,qe.a.ReadWrite);return this.delete(e,t)}upgrade(e,t){t.oldVersion<1&&this.createStore(wn.AssetStoreName,wn.AssetStoreKeyPath,e)}}class An{constructor(){this.memoryCache=new Map}delete(e){this.memoryCache.delete(e)}get(e){const t=this.memoryCache.get(e);if(t&&t.size>0)return t;this.delete(e)}}class Ln extends An{cache(e,t){const n=t instanceof File?new Blob([t],{type:t.type}):t;this.memoryCache.set(e,n)}}class kn{sendHydrationMessage(e){return(0,l.b)(this,void 0,void 0,function*(){const t=yield this._sendMessage(e.clientId,{operation:"lookup",request:{permanentUrl:e.request.url,skipManualRehydration:this._shouldSkipManualRehydration(e.request.headers),requestHeaders:this._getRequestRangeHeader(e.request.headers)}});if(t&&this._isLookupResponse(t.response))return t.response;throw new Error("Failed to re-hydrate resource")})}_shouldSkipManualRehydration(e){return e.has("X-Clipchamp-SkipManualRehydration")}_getRequestRangeHeader(e){return e.has("Range")?new Map([["Range",e.get("Range")]]):new Map}_isObject(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}_isLookupResponse(e){return this._isObject(e)&&"number"==typeof e.statusCode&&(void 0===e.statusText||"string"==typeof e.statusText)&&(void 0===e.responseHeaders||e.responseHeaders instanceof Map)&&(null===e.responseContent||e.responseContent instanceof Blob)}_sendMessage(e,t){return(0,l.b)(this,void 0,void 0,function*(){const n=yield self.clients.get(e),a=new MessageChannel;return new Promise(e=>{a.port1.onmessage=n=>{n.data&&n.data.operation===t.operation&&e(n.data)},n&&n.postMessage(t,[a.port2])})})}}const Mn=/^bytes=(?<fromByte>[\d]+)\-(?<toByte>[\d]+)?$/,Pn="public, immutable, max-age=31536000";function Tn(e,t,n,a){return new self.Response(e,{status:206,headers:{"Cache-Control":Pn,"Accept-Ranges":"bytes","Content-Range":`bytes ${t}-${n}/${a}`}})}function Un(e,t){const n=e.request.headers.get("Range");if(n){const e=(function(e){var t,n;const a=Mn.exec(e);return a.length>=3?{fromByte:parseInt(null!==(t=a[1])&&void 0!==t?t:"",0),toByte:parseInt(null!==(n=a[2])&&void 0!==n?n:"",0)}:null})(n);if(e)return(function(e,t,n){if(Number.isNaN(n)&&(n=e.size-1),t>0||n<e.size-1){if(t<e.size){const a=e.slice(t,n+1,e.type||"application/octet-stream");return Tn(a,t,t+a.size-1,e.size)}return new self.Response(null,{status:416})}return Tn(new Blob([e],{type:e.type}),0,e.size-1,e.size)})(t,e.fromByte,e.toByte)}return new self.Response(new Blob([t],{type:t.type}),{status:200,headers:{"Cache-Control":Pn,"Accept-Ranges":"bytes"}})}class Fn{constructor(e){this.database=e,this.memoryCache=new Ln,this.messageChannelClient=new kn}routeRequestMethod(e){switch(e.request.method){case"GET":return this._serveAssetGetRequest(e);case"DELETE":return this._serveAssetDeleteRequest(e);default:return Promise.resolve(new self.Response(null,{status:405,statusText:"invalid method"}))}}_serveAssetGetRequest(e){return(0,l.b)(this,void 0,void 0,function*(){try{const t=yield this._retrieveAssetObject(e.request.url);return Un(e,t.blob)}catch(a){try{return yield this._serveFrontendRequest(e)}catch(a){return t=e.request.url,n=a,console.warn(`Permanently failed to serve resource ${t}`,n),new self.Response(null,{status:410,statusText:"failed to rehydrate"})}}var t,n})}_retrieveAssetObject(e){return(0,l.b)(this,void 0,void 0,function*(){const t=this.memoryCache.get(e);if(t)return{permanentUrl:e,blob:t};yield this.database.open();const n=yield this.database.getAssetObject(e);return this.database.close(),this.memoryCache.cache(e,n.blob),n})}_serveFrontendRequest(e){var t;return(0,l.b)(this,void 0,void 0,function*(){const n=yield this.messageChannelClient.sendHydrationMessage(e);return 202===n.statusCode?(console.log("Manual re-hydration succeeded (HTTP/202), we still need to satisfy the actual request"),this._serveAssetGetRequest(e)):new self.Response(n.responseContent,{status:n.statusCode,headers:Array.from(null!==(t=n.responseHeaders)&&void 0!==t?t:new Map)})})}_serveAssetDeleteRequest(e){return(0,l.b)(this,void 0,void 0,function*(){try{return yield this._deleteAssetObject(e.request.url),new self.Response(null,{status:200})}catch(e){const t=this._toErrorObject(e,"Delete request failed");return new self.Response(null,{status:503,statusText:t.message})}})}_deleteAssetObject(e){return(0,l.b)(this,void 0,void 0,function*(){this.memoryCache.delete(e),yield this.database.open(),this.database.deleteAssetObject(e),this.database.close()})}_toErrorObject(e,t){return e instanceof Error?e:new Error(t)}}class Hn extends se{constructor(e,t){super(e,t),this.qosName="ClipchampHandler.navigate",this.startOffline=!1}style(){return"<style>#SuiteNavPlaceholder {display: none}</style>"}renderStart(e){const t=Object.create(null,{renderStart:{get:()=>super.renderStart}});return(0,l.b)(this,void 0,void 0,function*(){if(this.isFlightEnabled(rt.d)&&(this.context.userAgent.mobile||!this._isClipchampSupportedBrowser())){const t=this.navigationResult.html.replace("<head>",`<head>\n ${this.style()}`);e.write(t),e.flush()}t.renderStart.call(this,e)})}_isClipchampSupportedBrowser(){const{browser:e,browserVersion:t}=this.context.userAgent;return(e.isChrome||e.isEdgeChromium)&&t.browserMajor>=85}}const Rn="Clipchamp";class Nn extends xe.b{constructor(){super(),this.applicationId=Rn,this.deploymentProject=Se,this.database=new En,this.assetCacheRequestHandler=new Fn(this.database)}knownPaths(){return[{path:"/_layouts/15/videoeditor(embed)?.aspx$",regex:!0}]}isFetchFromLocalCache(e){return e.includes("/local-cache/")}fetchFromLocalCache(e){return this.assetCacheRequestHandler.routeRequestMethod(e)}resourceRoutes(){return super.resourceRoutes().concat([{match:this.isFetchFromLocalCache.bind(this),fetch:this.fetchFromLocalCache.bind(this)}])}createContext(){return new ie}createNavigationHandler(e){return new Hn(this,e)}}class Bn extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.MeeBridgeApplication,this.assemblyId=Ee.a.MeeBridgeAssembly}get startOffline(){return this.context.config.isFlightEnabled(rt.f)}get preloadedData(){return this.navigationResult}get chromeless(){return!0}renderAppChrome(e){}renderChrome(e){}renderSplash(e){}renderPhases(){return[this.shell(),this.start()]}renderStart(e){super.renderStart(e)}}const jn="MeeBridge";class Vn extends Oe{constructor(){super(...arguments),this.applicationId=jn}knownPaths(){return[{path:"/_layouts/15/meebridge.aspx$",regex:!0}]}createContext(){return new we}precachedComponents(e){return[Ee.a.MeeBridgeApplication,Ee.a.MeeBridgeAssembly]}createNavigationHandler(e){return new Bn(this,e)}}class zn extends Le.b{constructor(e,t){super(e,t),this.componentId=Ee.a.SPStartApplication,this.assemblyId=Ee.a.SPStartAssembly,this.startOffline=!0}get preloadedData(){return this.navigationResult}get appDataEnabled(){return!0}renderPhases(){return[this.shell(),this.lkgData(),this.start(),this.newData()]}}const Gn="SPStart";class Kn extends Oe{constructor(){super(...arguments),this.applicationId=Gn}knownPaths(){return[{path:"/_layouts/15/sharepoint.aspx"},{path:"/_layouts/15/begin.aspx"}]}message(e,t){const{name:n,data:a}=e;"spStartOptIn"===n&&this.context.then(e=>{const{url:n}=a,i=(0,Pe.a)(n);return Promise.all([e.config.deletePageAndSite(i,i.substring(0,i.lastIndexOf("/_layouts/15/sharepoint.aspx"))),e.routeConfig.deleteRoute(i)]).then(()=>{const{source:e}=t;if(e instanceof WindowClient&&"nested"!==e.frameType)return e.navigate(n)}).then()})}createContext(){return new we}precachedComponents(e){return[Ee.a.SPStartAssembly,Ee.a.SPStartApplication,Ee.a.SPPagesSharing,Ee.a.SPPagesFeedback]}createNavigationHandler(e){return new zn(this,e)}}var Wn=n(63);class qn extends Wn.a{}var Qn,Yn="nucleusDb",Jn="settings",Xn="nucleus.syncedLists",Zn="nucleus.endpoint",$n="nucleus.firstContact",ea="nucleus.settings";function ta(e,t){return"".concat(e,".").concat(t)}(function(e){e.Name="nucleusDb"})(Qn||(Qn={}));class na extends qe.b{constructor(){super(Yn,1)}getFirstContact(){const e=this.store(Jn);return this.get(ta($n,pe.e),e).catch(()=>{})}getEndpoint(){const e=this.store(Jn);return this.get(ta(Zn,pe.e),e).catch(()=>{})}getSyncedLists(){const e=this.store(Jn);return this.get(ta(Xn,pe.e),e).catch(()=>{})}getSettings(){const e=this.store(Jn);return this.get(ta(ea,pe.e),e).catch(()=>{})}upgrade(e,t){0===t.oldVersion&&e.createObjectStore(Jn)}}class aa extends Ve.a{static get current(){return this._current||(this._current=new aa)}sync(){return Promise.resolve()}get endpoint(){return this._endpoint}get syncedLists(){return this._syncedLists}get settings(){return this._settings}get firstContact(){return this._firstContact}createDatabase(){return new na}loadConfig(e){return(0,l.b)(this,void 0,void 0,function*(){this._firstContact=yield e.getFirstContact(),this._settings=yield e.getSettings(),this._syncedLists=yield e.getSyncedLists(),this._endpoint=yield e.getEndpoint()})}}class ia extends te.a{constructor(){super(...arguments),this.config=aa.current}}var ra=n(62);const oa="Nucleus";class sa extends qn{constructor(){super(...arguments),this.name=oa}lookupRoute(e){return this.context.then(t=>{if(t.config.firstContact){const t=new URL(e),n=`/Sync/Apps/LookupByRoute(${encodeURIComponent(t.origin+t.pathname)})`;return this._callNucleus(n).then(e=>e.json()).then(e=>{var t,n;return null===(n=null===(t=e.d)||void 0===t?void 0:t.results)||void 0===n?void 0:n.ServiceWorkerAppId})}}).catch(()=>{})}fetch(e){if(e.request.mode===ra.a.Navigate)return this.context.then(t=>{if(t.config.firstContact){const t=`/SharePoint${new URL(e.request.url).pathname}`;return this._callNucleus(t)}}).catch(()=>{})}update(e,t){return this.context.then(n=>{if(n.config.firstContact)return e.text().then(n=>{const a=`/SharePoint${new URL(e.url).pathname}`;return this._callNucleus(a,{method:"POST",body:n,headers:{"X-Service-Worker-Application-Id":t}}).then()})}).catch(()=>{})}isConnected(){return this._refreshConfig().then(e=>e.config.firstContact).catch(()=>!1)}createContext(){return new ia}_callNucleus(e,t){return this.context.then(n=>{const a=n.config.endpoint;if(a){const n=`${a.url}${e}`;return fetch(n,Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},null==t?void 0:t.headers),{Authorization:a.authToken,Accept:"application/json","Content-Type":"application/json"})}))}}).catch(()=>{})}_refreshConfig(){return this.context.then(e=>e.config.load(!0).then(()=>e))}}const ca=self.location.host.includes("-my.sharepoint"),da=!ca&&/microsoft-app[0-f]{32}.sharepoint.com/.test(self.location.host),la=!ca&&!da,ua=self.location.search.includes("&list=v2")||t.b&&t.b.supportsFeatures&&-1!==t.b.supportsFeatures.indexOf(rt.p);class fa extends t.c{constructor(){super()}createApplicationController(e){if(la)switch(e){case tn:return new an;case Dn:return new In;case Cn:return new On;case Gn:return new Kn}if(la||ca)switch(e){case dt:return ua?new ut(this.dataHost):new Wt;case Xt:return new $t;case sn:return new dn;case un:return new fn;case de:return new le;case ye.a:return new Me;case Rn:return new Nn;case jn:return new Vn}return(la||da)&&e===_n?new hn:e===_e?new ve:void 0}createDataHostController(e){if(e===oa)return new sa}createRouter(e){return new me(this,e)}}var pa;Y.active=(0,ue.b)(ue.a.telemetryWithoutPersistentCache),pa=fa,self._postMessageController=new r,Y.active?self._telemetry=new J:self._telemetry=new s.a,self._serviceWorker=new pa,self._serviceWorker.start()})()})();