1 line
513 KiB
JavaScript
1 line
513 KiB
JavaScript
define("50f380a6-e5b2-4257-afa1-6d3a1c0ca358_0.0.1",["@microsoft/sp-property-pane","ReactNewsWebpartStrings","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-webpart-base","react","react-dom","@microsoft/sp-http","PropertyControlStrings"],function(e,t,n,o,r,i,a,s,l){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="GlSv")}({"/A2d":function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),n("eP0N");var i=function(){function e(){this.events=[],this.timeout=null,this.tracking=!0}return e.getInstance=function(){return void 0===window.pnpTelemetry&&(window.pnpTelemetry=new e),window.pnpTelemetry},e.prototype.optOut=function(){this.tracking=!1},e.prototype.trackEvent=function(e,t){this.tracking&&(this.events.push({name:e,properties:t}),this.debounceTracking())},e.prototype.debounceTracking=function(){return o(this,void 0,void 0,function(){var e=this;return r(this,function(t){return this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){return o(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,fetch("https://pnptelemetryproxy.azurewebsites.net/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(this.events)})];case 1:return e.sent(),this.events=[],[2]}})})},1e3),[2]})})},e}();t.default=i},"26ea":function(t,n){t.exports=e},"2m/F":function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return P}),n.d(t,"o",function(){return _}),n.d(t,"p",function(){return S}),n.d(t,"a",function(){return C}),n.d(t,"b",function(){return N}),n.d(t,"g",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"l",function(){return d}),n.d(t,"q",function(){return p}),n.d(t,"k",function(){return h}),n.d(t,"f",function(){return f}),n.d(t,"m",function(){return m}),n.d(t,"r",function(){return g}),n.d(t,"n",function(){return y}),n.d(t,"j",function(){return v}),n.d(t,"i",function(){return b});var o=n("cYg2"),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function s(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return function(){t.apply(e,n)}}function l(e,t,n){var o=new Date(e);switch(t.toLowerCase()){case"year":o.setFullYear(o.getFullYear()+n);break;case"quarter":o.setMonth(o.getMonth()+3*n);break;case"month":o.setMonth(o.getMonth()+n);break;case"week":o.setDate(o.getDate()+7*n);break;case"day":o.setDate(o.getDate()+n);break;case"hour":o.setTime(o.getTime()+36e5*n);break;case"minute":o.setTime(o.getTime()+6e4*n);break;case"second":o.setTime(o.getTime()+1e3*n);break;default:o=void 0}return o}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!g(e)}).map(function(e){return e.replace(/^[\\|\/]/,"").replace(/[\\|\/]$/,"")}).join("/").replace(/\\/g,"/")}function c(){var e=Date.now();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}function d(e){return"function"==typeof e}function p(e){return null!=e}function h(e){return Array.isArray?Array.isArray(e):e&&"number"==typeof e.length&&e.constructor===Array}function f(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=function(){return!0}),!p(t))return e;var r=n?function(e,t){return!(t in e)}:function(){return!0};return Object.getOwnPropertyNames(t).filter(function(t){return r(e,t)&&o(t)}).reduce(function(e,n){return e[n]=t[n],e},e)}function m(e){return/^https?:\/\/|^\/\//i.test(e)}function g(e){return null==e||e.length<1}function y(e){return JSON.stringify(e)}function v(e,t){return Object.hasOwnProperty.call(e,t)}function b(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function _(e,t){null!=t&&new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}function S(e,t){if(p(t)){var n=f(e.headers||{},t.headers);(e=f(e,t)).headers=n}}var C=function(){function e(){}return e.prototype.fetch=function(e,t){return a.fetch(e,t)},e}(),w=function(e){function t(t){var n=e.call(this)||this;return n._token=t,n}return i(t,e),Object.defineProperty(t.prototype,"token",{get:function(){return this._token||""},set:function(e){this._token=e},enumerable:!0,configurable:!0}),t.prototype.fetch=function(t,n){void 0===n&&(n={});var o=new Headers;return _(o,n.headers),o.set("Authorization","Bearer "+this._token),n.headers=o,e.prototype.fetch.call(this,t,n)},t}(C);function T(e){var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.hostname}!function(e){function t(t,n,o){var r=e.call(this,null)||this;return r.clientId=t,r.tenant=n,r.redirectUri=o,r._displayCallback=null,r._loginPromise=null,r}i(t,e),t.fromSPFxContext=function(e){return new I(e)},t.prototype.fetch=function(t,n){var o=this;if(!m(t))throw Error("You must supply absolute urls to AdalClient.fetch.");return this.getToken(T(t)).then(function(r){return o.token=r,e.prototype.fetch.call(o,t,n)})},t.prototype.getToken=function(e){var n=this;return new Promise(function(o,r){n.ensureAuthContext().then(function(e){return n.login()}).then(function(n){t._authContext.acquireToken(e,function(e,t){if(e)return r(Error(e));o(t)})}).catch(r)})},t.prototype.ensureAuthContext=function(){var e=this;return new Promise(function(n){null===t._authContext&&(t._authContext=Object(o.inject)({clientId:e.clientId,displayCall:function(t){e._displayCallback&&e._displayCallback(t)},navigateToLoginRequestUrl:!1,redirectUri:e.redirectUri,tenant:e.tenant})),n()})},t.prototype.login=function(){var e=this;return this._loginPromise||(this._loginPromise=new Promise(function(n,o){if(t._authContext.getCachedUser())return n();e._displayCallback=function(r){var i=window.open(r,"login","width=483, height=600");if(!i)return o(Error("Could not open pop-up window for auth. Likely pop-ups are blocked by the browser."));i&&i.focus&&i.focus();var a=window.setInterval(function(){i&&!i.closed&&void 0!==i.closed||window.clearInterval(a);try{-1!==i.document.URL.indexOf(e.redirectUri)&&(window.clearInterval(a),t._authContext.handleWindowCallback(i.location.hash),i.close(),n())}catch(e){o(e)}},30)},e.ensureAuthContext().then(function(n){t._authContext._loginInProgress=!1,t._authContext.login(),e._displayCallback=null})})),this._loginPromise},t._authContext=null}(w);var I=function(e){function t(t){var n=e.call(this,null)||this;return n.context=t,n}return i(t,e),t.prototype.fetch=function(t,n){var o=this;return this.getToken(T(t)).then(function(r){return o.token=r,e.prototype.fetch.call(o,t,n)})},t.prototype.getToken=function(e){return this.context.aadTokenProviderFactory.getTokenProvider().then(function(t){return t.getToken(e)})},t}(w),E=d(Object.entries)?Object.entries:function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},x=["defaultCachingStore","defaultCachingTimeoutSeconds","globalCacheDisable","enableCacheExpiration","cacheExpirationIntervalMilliseconds","spfxContext"],P=new(function(){function e(e){void 0===e&&(e=new Map),this._v=e,this._v.set(x[0],"session"),this._v.set(x[1],60),this._v.set(x[2],!1),this._v.set(x[3],!1),this._v.set(x[4],750),this._v.set(x[5],null)}return e.prototype.extend=function(e){var t;this._v=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0;o<t.length;o++)t[o].forEach(function(t,n){e.set(n,t)});return e}(this._v,null!=(t=e)?new Map(E(t)):new Map)},e.prototype.get=function(e){return this._v.get(e)},Object.defineProperty(e.prototype,"defaultCachingStore",{get:function(){return this.get(x[0])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCachingTimeoutSeconds",{get:function(){return this.get(x[1])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalCacheDisable",{get:function(){return this.get(x[2])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableCacheExpiration",{get:function(){return this.get(x[3])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheExpirationIntervalMilliseconds",{get:function(){return this.get(x[4])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spfxContext",{get:function(){return this.get(x[5])},enumerable:!0,configurable:!0}),e}()),k=function(){function e(e,t){void 0===t&&(t=-1),this.store=e,this.defaultTimeoutMinutes=t,this.enabled=this.test(),P.enableCacheExpiration&&this.cacheExpirationHandler()}return e.prototype.get=function(e){if(!this.enabled)return null;var t=this.store.getItem(e);if(!p(t))return null;var n=JSON.parse(t);return new Date(n.expiration)<=new Date?(this.delete(e),null):n.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){var o=this;if(!this.enabled)return t();var r=this.get(e);return null===r?t().then(function(t){return o.put(e,t,n),t}):Promise.resolve(r)},e.prototype.deleteExpired=function(){var e=this;return new Promise(function(t,n){e.enabled||t();try{for(var o=0;o<e.store.length;o++){var r=e.store.key(o);null!==r&&/["|']?pnp["|']? ?: ?1/i.test(e.store.getItem(r))&&e.get(r)}t()}catch(e){n(e)}})},e.prototype.test=function(){try{return this.store.setItem("t","t"),this.store.removeItem("t"),!0}catch(e){return!1}},e.prototype.createPersistable=function(e,t){if(void 0===t){var n=P.defaultCachingTimeoutSeconds;this.defaultTimeoutMinutes>0&&(n=60*this.defaultTimeoutMinutes),t=l(new Date,"second",n)}return y({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;this.deleteExpired().then(function(t){setTimeout(s(e,e.cacheExpirationHandler),P.cacheExpirationIntervalMilliseconds)}).catch(function(e){console.error(e)})},e}(),O=function(){function e(e){void 0===e&&(e=new Map),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return Array.from(this._store)[e][0]},e.prototype.removeItem=function(e){this._store.delete(e)},e.prototype.setItem=function(e,t){this._store.set(e,t)},e}(),N=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local=this.getStore("local")),this._local},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session=this.getStore("session")),this._session},enumerable:!0,configurable:!0}),e.prototype.getStore=function(e){return new k("local"===e?"undefined"==typeof localStorage?new O:localStorage:"undefined"==typeof sessionStorage?new O:sessionStorage)},e}()}).call(this,n("yLpj"))},"4Qvb":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={};function r(e,t){if("undefined"!=typeof window){var n=window.__packages__=window.__packages__||{};n[e]&&o[e]||(o[e]=t,(n[e]=n[e]||[]).push(t))}}},"5AgF":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var o,r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},i="undefined"==typeof window?e:window,a=i&&i.CSPSettings&&i.CSPSettings.nonce,s=((o=i.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(o=r(r({},o),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),o.registeredThemableStyles||(o=r(r({},o),{registeredThemableStyles:[]})),i.__themeState__=o,o);function l(e){s.theme=e,function(){if(s.theme){for(var e=[],t=0,n=s.registeredThemableStyles;t<n.length;t++){var o=n[t];e.push(o.themableStyle)}e.length>0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(u(s.registeredStyles),s.registeredStyles=[]),3!==i&&1!==i||(u(s.registeredThemableStyles),s.registeredThemableStyles=[]),r=[].concat.apply([],e),s.loadStyles?s.loadStyles(c(r).styleString,r):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),o=c(e),r=o.styleString,i=o.themable;n.setAttribute("data-load-themed-styles","true"),a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode(r)),s.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var u={styleElement:n,themableStyle:e};i?s.registeredThemableStyles.push(u):s.registeredStyles.push(u)}}(r))}var r,i}()}function u(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function c(e){var t=s.theme,n=!1;return{styleString:(e||[]).map(function(e){var o=e.theme;if(o){n=!0;var r=t?t[o]:void 0,i=e.defaultValue||"inherit";return t&&!r&&console,r||i}return e.rawString}).join(""),themable:n}}}).call(this,n("yLpj"))},"5UI3":function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return Xt}),n.d(t,"b",function(){return Ct}),n.d(t,"a",function(){return bt});var o=n("2m/F"),r=n("uQ29"),i=n("AAI4"),a=n("5UI3"),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})}function d(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e){if(Object(o.r)(e))return"";var t=e.indexOf("_api/");return t<0&&(t=e.indexOf("_vti_bin/")),t>-1?e.substr(0,t):e}function h(e){var t=[],n=["odata.type","odata.editLink","__metadata","odata.metadata"];return Object(o.j)(e,n[0])&&"SP.Web"===e[n[0]]?Object(o.j)(e,n[1])?t.push(e[n[1]]):Object(o.j)(e,n[2])&&t.push(e.__metadata.uri):Object(o.j)(e,n[3])&&Object(o.j)(e,n[1])?t.push(p(e[n[3]]),"_api",e[n[1]]):Object(o.j)(e,n[1])?t.push("_api",e[n[1]]):Object(o.j)(e,n[2])&&t.push(e.__metadata.uri),t.length<1?(r.a.write("No uri information found in ODataEntity parsing, chaining will fail for this object.",2),""):o.d.apply(void 0,t)}var f=function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)},n}return l(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)})},t}(i.g);!function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){return e.map(function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)})},n}l(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){return e.map(function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)})})}}(i.g);var m=new(function(){function e(){}return Object.defineProperty(e.prototype,"headers",{get:function(){var e=o.c.get("sp");return void 0!==e&&void 0!==e.headers?e.headers:{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){var e=o.c.get("sp");return void 0!==e&&void 0!==e.baseUrl?e.baseUrl:void 0!==o.c.spfxContext&&null!==o.c.spfxContext?o.c.spfxContext.pageContext.web.absoluteUrl:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchClientFactory",{get:function(){var e=o.c.get("sp");return void 0!==e&&void 0!==e.fetchClientFactory?e.fetchClientFactory:function(){return new o.a}},enumerable:!0,configurable:!0}),e}()),g=function(){},y=new Map,v=function(){function e(e,t){void 0===t&&(t=y),this._httpClient=e,this._digests=t}return e.prototype.getDigest=function(e){var t=this,n=this._digests.get(e);if(void 0!==n&&new Date<n.expiration)return Promise.resolve(n.value);var r=Object(o.d)(e,"/_api/contextinfo");return this._httpClient.fetchRaw(r,{cache:"no-cache",credentials:"same-origin",headers:Object(o.f)({Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose;charset=utf-8"},m.headers,!0),method:"POST"}).then(function(e){return(new i.f).parse(e).then(function(e){return e.GetContextWebInformation})}).then(function(n){var o=new g;o.value=n.FormDigestValue;var r=n.FormDigestTimeoutSeconds,i=new Date;return i.setTime(i.getTime()+1e3*r),o.expiration=i,t._digests.set(e,o),o.value})},e.prototype.clear=function(){this._digests.clear()},e}(),b=function(){function e(e){void 0===e&&(e=m.fetchClientFactory()),this._impl=e,this._digestCache=new v(this)}return e.prototype.fetch=function(e,t){var n=this;void 0===t&&(t={});var r=Object(o.f)(t,{cache:"no-cache",credentials:"same-origin"},!0),i=new Headers;return Object(o.o)(i,m.headers),Object(o.o)(i,t.headers),i.has("Accept")||i.append("Accept","application/json"),i.has("Content-Type")||i.append("Content-Type","application/json;odata=verbose;charset=utf-8"),i.has("X-ClientService-ClientTag")||i.append("X-ClientService-ClientTag","PnPCoreJS:@pnp-1.3.11"),i.has("User-Agent")||i.append("User-Agent","NONISV|SharePointPnP|PnPCoreJS/1.3.11"),!(r=Object(o.f)(r,{headers:i})).method||"GET"===r.method.toUpperCase()||i.has("X-RequestDigest")||i.has("Authorization")?this.fetchRaw(e,r):this._digestCache.getDigest(p(e)).then(function(t){return i.append("X-RequestDigest",t),n.fetchRaw(e,r)})},e.prototype.fetchRaw=function(e,t){var n=this;void 0===t&&(t={});var r=new Headers;Object(o.o)(r,t.headers),t=Object(o.f)(t,{headers:r});var i=function(r){var a=function(e){var t;e.headers.has("Retry-After")?t=parseInt(e.headers.get("Retry-After"),10):(t=r.delay,r.delay*=2),r.attempts++,r.retryCount<=r.attempts?r.reject(Error("Retry count exceeded ("+r.retryCount+") for request. Response status: ["+e.status+"] "+e.statusText)):setTimeout(Object(o.g)(n,i,r),t)};n._impl.fetch(e,t).then(function(e){429===e.status?a(e):r.resolve(e)}).catch(function(e){503===e.status||504===e.status?a(e):r.reject(e)})};return new Promise(function(e,t){var o={attempts:0,delay:100,reject:t,resolve:e,retryCount:7};i.call(n,o)})},e.prototype.get=function(e,t){void 0===t&&(t={});var n=Object(o.f)(t,{method:"GET"});return this.fetch(e,n)},e.prototype.post=function(e,t){void 0===t&&(t={});var n=Object(o.f)(t,{method:"POST"});return this.fetch(e,n)},e.prototype.patch=function(e,t){void 0===t&&(t={});var n=Object(o.f)(t,{method:"PATCH"});return this.fetch(e,n)},e.prototype.delete=function(e,t){void 0===t&&(t={});var n=Object(o.f)(t,{method:"DELETE"});return this.fetch(e,n)},e}(),_=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function S(e){return new Promise(function(t){if(Object(o.m)(e))return t(e);if(null!==m.baseUrl)return t(Object(o.d)(m.baseUrl,e));if(void 0!==_._spPageContextInfo){if(Object(o.j)(_._spPageContextInfo,"webAbsoluteUrl"))return t(Object(o.d)(_._spPageContextInfo.webAbsoluteUrl,e));if(Object(o.j)(_._spPageContextInfo,"webServerRelativeUrl"))return t(Object(o.d)(_._spPageContextInfo.webServerRelativeUrl,e))}if(void 0!==_.location){var n=_.location.toString().toLowerCase();["/_layouts/","/siteassets/"].forEach(function(r){var i=n.indexOf(r);if(i>0)return t(Object(o.d)(n.substr(0,i),e))})}return t(e)})}function C(e){return{__metadata:{type:e}}}var w=function(e){function t(t,n){var r=e.call(this)||this;if(r._forceCaching=!1,"string"==typeof t)if(Object(o.m)(t)||t.lastIndexOf("/")<0)r._parentUrl=t,r._url=Object(o.d)(t,n);else if(t.lastIndexOf("/")>t.lastIndexOf("(")){var i=t.lastIndexOf("/");r._parentUrl=t.slice(0,i),n=Object(o.d)(t.slice(i),n),r._url=Object(o.d)(r._parentUrl,n)}else i=t.lastIndexOf("("),r._parentUrl=t.slice(0,i),r._url=Object(o.d)(t,n);else{r.extend(t,n);var a=t.query.get("@target");void 0!==a&&r.query.set("@target",a)}return r}return l(t,e),t.prototype.as=function(e){var t=new e(this._url,null);return Object(o.f)(t,this,!0)},t.prototype.toUrlAndQuery=function(){var e=new Map(this.query),t=this.toUrl().replace(/'!(@.*?)::(.*?)'/gi,function(t,n,o){return r.a.write("Rewriting aliased parameter from match "+t+" to label: "+n+" value: "+o,0),e.set(n,"'"+o+"'"),n});if(e.size>0){var n=t.indexOf("?")>-1?"&":"?";t+=""+n+Array.from(e).map(function(e){return e[0]+"="+e[1]}).join("&")}return t},t.prototype.select=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length>0&&this.query.set("$select",e.join(",")),this},t.prototype.expand=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length>0&&this.query.set("$expand",e.join(",")),this},t.prototype.getParent=function(e,t,n,o){void 0===t&&(t=this.parentUrl);var r=new e(t,n).configureFrom(this),i="@target";return this.query.has(i)&&r.query.set(i,this.query.get(i)),void 0!==o&&(r=r.inBatch(o)),r},t.prototype.clone=function(t,n,o){void 0===o&&(o=!0);var r=e.prototype._clone.call(this,new t(this,n),{includeBatch:o}),i="@target";return this.query.has(i)&&r.query.set(i,this.query.get(i)),r},t.prototype.toRequestContext=function(e,t,n,r){var i=this;void 0===t&&(t={});var a=this.hasBatch?this._batchDependency:function(){};return S(this.toUrlAndQuery()).then(function(s){return Object(o.p)(t,i._options),{batch:i.batch,batchDependency:a,cachingOptions:i._cachingOptions,clientFactory:function(){return new b},isBatched:i.hasBatch,isCached:i._forceCaching||i._useCaching&&/^get$/i.test(e),options:t,parser:n,pipeline:r,requestAbsoluteUrl:s,requestId:Object(o.h)(),verb:e}})},t}(i.h),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.filter=function(e){return this.query.set("$filter",e),this},t.prototype.orderBy=function(e,t){void 0===t&&(t=!0);var n="$orderby",o=this.query.has(n)?this.query.get(n).split(","):[];return o.push(e+" "+(t?"asc":"desc")),this.query.set(n,o.join(",")),this},t.prototype.skip=function(e){return this.query.set("$skip",e.toString()),this},t.prototype.top=function(e){return this.query.set("$top",e.toString()),this},t}(w),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._update=function(e,t){var n=this;return function(r){return n.postCore({body:Object(o.n)(Object(o.f)(C(e),r)),headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return t(e,r)})}},t.prototype._delete=function(){return this.postCore({headers:{"X-HTTP-Method":"DELETE"}})},t.prototype._deleteWithETag=function(e){return void 0===e&&(e="*"),this.postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t}(w);function E(e){return function(t){return function(t){function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t.call(this,n[0],n.length>1&&void 0!==n[1]?n[1]:e)||this}return l(n,t),n}(t)}}var x,P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){return new O(this,"getById("+e+")")},t.prototype.getByEmail=function(e){return new O(this,"getByEmail('"+e+"')")},t.prototype.getByLoginName=function(e){var t=new O(this);return t.concat("('!@v::"+encodeURIComponent(e)+"')"),t},t.prototype.removeById=function(e){return this.clone(n,"removeById("+e+")").postCore()},t.prototype.removeByLoginName=function(e){var t=this.clone(n,"removeByLoginName(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.postCore()},t.prototype.add=function(e){var t=this;return this.clone(n,null).postCore({body:Object(o.n)(Object(o.f)(C("SP.User"),{LoginName:e}))}).then(function(){return t.getByLoginName(e)})},n=u([E("siteusers")],t)}(T),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return new $(this,"groups")},enumerable:!0,configurable:!0}),t}(I),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.User",function(e){return{data:e,user:t}}),t.delete=t._delete,t}return l(t,e),t}(k),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("currentuser")],t)}(k);!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.DistributionList=2]="DistributionList",e[e.SecurityGroup=4]="SecurityGroup",e[e.SharePointGroup=8]="SharePointGroup",e[e.All=15]="All"}(x||(x={}));var R,D,M,F,L,A,B,j,U,W,H,G,z,K,q,V,Q,X,Y,J,Z,$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new ee(this);return t.concat("("+e+")"),t},t.prototype.add=function(e){var t=this,n=Object(o.n)(Object(o.f)(C("SP.Group"),e));return this.postCore({body:n}).then(function(e){return{data:e,group:t.getById(e.Id)}})},t.prototype.getByName=function(e){return new ee(this,"getByName('"+e+"')")},t.prototype.removeById=function(e){return this.clone(n,"removeById('"+e+"')").postCore()},t.prototype.removeByLoginName=function(e){return this.clone(n,"removeByLoginName('"+e+"')").postCore()},n=u([E("sitegroups")],t)}(T),ee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.update=n._update("SP.Group",function(e,r){var i=n;return Object(o.j)(r,"Title")&&(i=n.getParent(t,n.parentUrl,"getByName('"+r.Title+"')")),{data:e,group:i}}),n}return l(t,e),Object.defineProperty(t.prototype,"users",{get:function(){return new P(this,"users")},enumerable:!0,configurable:!0}),t.prototype.setUserAsOwner=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){return[2,this.clone(t,"SetUserAsOwner("+e+")").postCore()]})})},t}(I),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new ne(this);return t.concat("("+e+")"),t},t.prototype.add=function(e,t){return this.clone(n,"addroleassignment(principalid="+e+", roledefid="+t+")").postCore()},t.prototype.remove=function(e,t){return this.clone(n,"removeroleassignment(principalid="+e+", roledefid="+t+")").postCore()},n=u([E("roleassignments")],t)}(T),ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._delete,t}return l(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return new $(this,"groups")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return new ie(this)},enumerable:!0,configurable:!0}),t}(I),oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){return new re(this,"getById("+e+")")},t.prototype.getByName=function(e){return new re(this,"getbyname('"+e+"')")},t.prototype.getByType=function(e){return new re(this,"getbytype("+e+")")},t.prototype.add=function(e,t,n,r){var i=this,a=Object(o.n)({BasePermissions:{High:r.High.toString(),Low:r.Low.toString()},Description:t,Name:e,Order:n,__metadata:{type:"SP.RoleDefinition"}});return this.postCore({body:a}).then(function(e){return{data:e,definition:i.getById(e.Id)}})},u([E("roledefinitions")],t)}(T),re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._delete,t}return l(t,e),t.prototype.update=function(e){var t=this;void 0!==Object(o.j)(e,"BasePermissions")&&(e.BasePermissions=Object(o.f)({__metadata:{type:"SP.BasePermissions"}},{High:e.BasePermissions.High.toString(),Low:e.BasePermissions.Low.toString()}));var n=Object(o.n)(Object(o.f)(C("SP.RoleDefinition"),e));return this.postCore({body:n,headers:{"X-HTTP-Method":"MERGE"}}).then(function(n){var r=t;return Object(o.j)(e,"Name")&&(r=t.getParent(oe,t.parentUrl,"").getByName(e.Name)),{data:n,definition:r}})},t}(I),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("roledefinitionbindings")],t)}(T);!function(e){e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(R||(R={})),function(e){e[e.Invalid=0]="Invalid",e[e.Integer=1]="Integer",e[e.Text=2]="Text",e[e.Note=3]="Note",e[e.DateTime=4]="DateTime",e[e.Counter=5]="Counter",e[e.Choice=6]="Choice",e[e.Lookup=7]="Lookup",e[e.Boolean=8]="Boolean",e[e.Number=9]="Number",e[e.Currency=10]="Currency",e[e.URL=11]="URL",e[e.Computed=12]="Computed",e[e.Threading=13]="Threading",e[e.Guid=14]="Guid",e[e.MultiChoice=15]="MultiChoice",e[e.GridChoice=16]="GridChoice",e[e.Calculated=17]="Calculated",e[e.File=18]="File",e[e.Attachments=19]="Attachments",e[e.User=20]="User",e[e.Recurrence=21]="Recurrence",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.ModStat=23]="ModStat",e[e.Error=24]="Error",e[e.ContentTypeId=25]="ContentTypeId",e[e.PageSeparator=26]="PageSeparator",e[e.ThreadIndex=27]="ThreadIndex",e[e.WorkflowStatus=28]="WorkflowStatus",e[e.AllDayEvent=29]="AllDayEvent",e[e.WorkflowEventType=30]="WorkflowEventType"}(D||(D={})),function(e){e[e.DateOnly=0]="DateOnly",e[e.DateTime=1]="DateTime"}(M||(M={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Disabled=1]="Disabled",e[e.Relative=2]="Relative"}(F||(F={})),function(e){e[e.DefaultValue=0]="DefaultValue",e[e.AddToDefaultContentType=1]="AddToDefaultContentType",e[e.AddToNoContentType=2]="AddToNoContentType",e[e.AddToAllContentTypes=4]="AddToAllContentTypes",e[e.AddFieldInternalNameHint=8]="AddFieldInternalNameHint",e[e.AddFieldToDefaultView=16]="AddFieldToDefaultView",e[e.AddFieldCheckDisplayName=32]="AddFieldCheckDisplayName"}(L||(L={})),function(e){e[e.Gregorian=1]="Gregorian",e[e.Japan=3]="Japan",e[e.Taiwan=4]="Taiwan",e[e.Korea=5]="Korea",e[e.Hijri=6]="Hijri",e[e.Thai=7]="Thai",e[e.Hebrew=8]="Hebrew",e[e.GregorianMEFrench=9]="GregorianMEFrench",e[e.GregorianArabic=10]="GregorianArabic",e[e.GregorianXLITEnglish=11]="GregorianXLITEnglish",e[e.GregorianXLITFrench=12]="GregorianXLITFrench",e[e.KoreaJapanLunar=14]="KoreaJapanLunar",e[e.ChineseLunar=15]="ChineseLunar",e[e.SakaEra=16]="SakaEra",e[e.UmAlQura=23]="UmAlQura"}(A||(A={})),function(e){e[e.Hyperlink=0]="Hyperlink",e[e.Image=1]="Image"}(B||(B={})),function(e){e[e.EmptyMask=0]="EmptyMask",e[e.ViewListItems=1]="ViewListItems",e[e.AddListItems=2]="AddListItems",e[e.EditListItems=3]="EditListItems",e[e.DeleteListItems=4]="DeleteListItems",e[e.ApproveItems=5]="ApproveItems",e[e.OpenItems=6]="OpenItems",e[e.ViewVersions=7]="ViewVersions",e[e.DeleteVersions=8]="DeleteVersions",e[e.CancelCheckout=9]="CancelCheckout",e[e.ManagePersonalViews=10]="ManagePersonalViews",e[e.ManageLists=12]="ManageLists",e[e.ViewFormPages=13]="ViewFormPages",e[e.AnonymousSearchAccessList=14]="AnonymousSearchAccessList",e[e.Open=17]="Open",e[e.ViewPages=18]="ViewPages",e[e.AddAndCustomizePages=19]="AddAndCustomizePages",e[e.ApplyThemeAndBorder=20]="ApplyThemeAndBorder",e[e.ApplyStyleSheets=21]="ApplyStyleSheets",e[e.ViewUsageData=22]="ViewUsageData",e[e.CreateSSCSite=23]="CreateSSCSite",e[e.ManageSubwebs=24]="ManageSubwebs",e[e.CreateGroups=25]="CreateGroups",e[e.ManagePermissions=26]="ManagePermissions",e[e.BrowseDirectories=27]="BrowseDirectories",e[e.BrowseUserInfo=28]="BrowseUserInfo",e[e.AddDelPrivateWebParts=29]="AddDelPrivateWebParts",e[e.UpdatePersonalWebParts=30]="UpdatePersonalWebParts",e[e.ManageWeb=31]="ManageWeb",e[e.AnonymousSearchAccessWebLists=32]="AnonymousSearchAccessWebLists",e[e.UseClientIntegration=37]="UseClientIntegration",e[e.UseRemoteAPIs=38]="UseRemoteAPIs",e[e.ManageAlerts=39]="ManageAlerts",e[e.CreateAlerts=40]="CreateAlerts",e[e.EditMyUserInfo=41]="EditMyUserInfo",e[e.EnumeratePermissions=63]="EnumeratePermissions",e[e.FullMask=65]="FullMask"}(j||(j={})),function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.DistributionList=2]="DistributionList",e[e.SecurityGroup=4]="SecurityGroup",e[e.SharePointGroup=8]="SharePointGroup",e[e.All=15]="All"}(U||(U={})),function(e){e[e.None=0]="None",e[e.UserInfoList=1]="UserInfoList",e[e.Windows=2]="Windows",e[e.MembershipProvider=4]="MembershipProvider",e[e.RoleProvider=8]="RoleProvider",e[e.All=15]="All"}(W||(W={})),function(e){e[e.None=0]="None",e[e.Guest=1]="Guest",e[e.Reader=2]="Reader",e[e.Contributor=3]="Contributor",e[e.WebDesigner=4]="WebDesigner",e[e.Administrator=5]="Administrator"}(H||(H={})),function(e){e[e.Invalid=-1]="Invalid",e[e.DefaultView=0]="DefaultView",e[e.NormalView=1]="NormalView",e[e.DialogView=2]="DialogView",e[e.View=3]="View",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.SolutionForm=10]="SolutionForm",e[e.PAGE_MAXITEMS=11]="PAGE_MAXITEMS"}(G||(G={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Direct=1]="Direct",e[e.OrganizationView=2]="OrganizationView",e[e.OrganizationEdit=3]="OrganizationEdit",e[e.AnonymousView=4]="AnonymousView",e[e.AnonymousEdit=5]="AnonymousEdit",e[e.Flexible=6]="Flexible"}(z||(z={})),function(e){e[e.None=0]="None",e[e.View=1]="View",e[e.Edit=2]="Edit",e[e.Owner=3]="Owner"}(K||(K={})),function(e){e[e.CompletedSuccessfully=0]="CompletedSuccessfully",e[e.AccessRequestsQueued=1]="AccessRequestsQueued",e[e.NoResolvedUsers=-1]="NoResolvedUsers",e[e.AccessDenied=-2]="AccessDenied",e[e.CrossSiteRequestNotSupported=-3]="CrossSiteRequestNotSupported",e[e.UnknowError=-4]="UnknowError",e[e.EmailBodyTooLong=-5]="EmailBodyTooLong",e[e.ListUniqueScopesExceeded=-6]="ListUniqueScopesExceeded",e[e.CapabilityDisabled=-7]="CapabilityDisabled",e[e.ObjectNotSupported=-8]="ObjectNotSupported",e[e.NestedGroupsNotSupported=-9]="NestedGroupsNotSupported"}(q||(q={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Folder=2]="Folder",e[e.Item=3]="Item",e[e.List=4]="List",e[e.Web=5]="Web",e[e.Max=6]="Max"}(V||(V={})),function(e){e[e.None=0]="None",e[e.AllowList=1]="AllowList",e[e.BlockList=2]="BlockList"}(Q||(Q={})),function(e){e[e.None=0]="None",e[e.ContextInfo=1]="ContextInfo",e[e.ListData=2]="ListData",e[e.ListSchema=4]="ListSchema",e[e.MenuView=8]="MenuView",e[e.ListContentType=16]="ListContentType",e[e.FileSystemItemId=32]="FileSystemItemId",e[e.ClientFormSchema=64]="ClientFormSchema",e[e.QuickLaunch=128]="QuickLaunch",e[e.Spotlight=256]="Spotlight",e[e.Visualization=512]="Visualization",e[e.ViewMetadata=1024]="ViewMetadata",e[e.DisableAutoHyperlink=2048]="DisableAutoHyperlink",e[e.EnableMediaTAUrls=4096]="EnableMediaTAUrls",e[e.ParentInfo=8192]="ParentInfo",e[e.PageContextInfo=16384]="PageContextInfo",e[e.ClientSideComponentManifest=32768]="ClientSideComponentManifest"}(X||(X={})),function(e){e[e.PeopleAndGroups=1]="PeopleAndGroups",e[e.PeopleOnly=0]="PeopleOnly"}(Y||(Y={})),function(e){e[e.Dropdown=0]="Dropdown",e[e.RadioButtons=1]="RadioButtons"}(J||(J={})),function(e){e[e.DefaultZone=0]="DefaultZone",e[e.Intranet=1]="Intranet",e[e.Internet=2]="Internet",e[e.Custom=3]="Custom",e[e.Extranet=4]="Extranet"}(Z||(Z={}));var ae,se,le,ue,ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"roleAssignments",{get:function(){return new te(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstUniqueAncestorSecurableObject",{get:function(){return new I(this,"FirstUniqueAncestorSecurableObject")},enumerable:!0,configurable:!0}),t.prototype.getUserEffectivePermissions=function(e){var t=this.clone(w,"getUserEffectivePermissions(@user)");return t.query.set("@user","'"+encodeURIComponent(e)+"'"),t.get().then(function(e){return Object(o.j)(e,"GetUserEffectivePermissions")?e.GetUserEffectivePermissions:e})},t.prototype.getCurrentUserEffectivePermissions=function(){return this.clone(w,"EffectiveBasePermissions").get().then(function(e){return Object(o.j)(e,"EffectiveBasePermissions")?e.EffectiveBasePermissions:e})},t.prototype.breakRoleInheritance=function(e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),this.clone(t,"breakroleinheritance(copyroleassignments="+e+", clearsubscopes="+n+")").postCore()},t.prototype.resetRoleInheritance=function(){return this.clone(t,"resetroleinheritance").postCore()},t.prototype.userHasPermissions=function(e,t){var n=this;return this.getUserEffectivePermissions(e).then(function(e){return n.hasPermissions(e,t)})},t.prototype.currentUserHasPermissions=function(e){var t=this;return this.getCurrentUserEffectivePermissions().then(function(n){return t.hasPermissions(n,e)})},t.prototype.hasPermissions=function(e,t){if(!t)return!0;if(t===j.FullMask)return 32767==(32767&e.High)&&65535===e.Low;var n=1;return(t-=1)>=0&&t<32?(n<<=t,0!=(e.Low&n)):t>=32&&t<64&&(n<<=t-32,0!=(e.High&n))},t}(I),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getShareLink=function(e,n){void 0===n&&(n=null);var r=null!==n?n.toISOString():null;return this.clone(t,"shareLink").postCore({body:Object(o.n)({request:{createLink:!0,emailData:null,settings:{expiration:r,linkKind:e}}})})},t.prototype.shareWith=function(e,n,r,i,a){var s=this;void 0===r&&(r=!1),void 0===i&&(i=!1),Array.isArray(e)||(e=[e]);var l=Object(o.n)(e.map(function(e){return{Key:e}})),u=n===K.Edit?H.Contributor:H.Reader;return new T("_api/web","roledefinitions").select("Id").filter("RoleTypeKind eq "+u).get().then(function(e){if(!Array.isArray(e)||e.length<1)throw Error("Could not locate a role defintion with RoleTypeKind "+u);var n={includeAnonymousLinkInEmail:r,peoplePickerInput:l,propagateAcl:i,roleValue:"role:"+e[0].Id,useSimplifiedRoles:!0};return void 0!==a&&(n=Object(o.f)(n,{emailBody:a.body,emailSubject:void 0!==a.subject?a.subject:"",sendEmail:!0})),s.clone(t,"shareObject").postCore({body:Object(o.n)(n)})})},t.prototype.shareObject=function(e,t){var n=this;return void 0===t&&(t=!1),t?this.sendShareObjectRequest(e):(e=Object(o.f)(e,{group:null,includeAnonymousLinkInEmail:!1,propagateAcl:!1,useSimplifiedRoles:!0},!0),this.getRoleValue(e.role,e.group).then(function(t){Array.isArray(e.loginNames)||(e.loginNames=[e.loginNames]);var r={peoplePickerInput:Object(o.n)(e.loginNames.map(function(e){return{Key:e}})),roleValue:t,url:e.url};return void 0!==e.emailData&&null!==e.emailData&&(r=Object(o.f)(r,{emailBody:e.emailData.body,emailSubject:void 0!==e.emailData.subject?e.emailData.subject:"Shared with you.",sendEmail:!0})),n.sendShareObjectRequest(r)}))},t.prototype.unshareObjectWeb=function(e){return this.clone(t,"unshareObject").postCore({body:Object(o.n)({url:e})})},t.prototype.checkPermissions=function(e){return this.clone(t,"checkPermissions").postCore({body:Object(o.n)({recipients:e})})},t.prototype.getSharingInformation=function(e,n){void 0===e&&(e=null);var r=this.clone(t,"getSharingInformation");return r.expand.apply(r,n).postCore({body:Object(o.n)({request:e})})},t.prototype.getObjectSharingSettings=function(e){return void 0===e&&(e=!0),this.clone(t,"getObjectSharingSettings").postCore({body:Object(o.n)({useSimplifiedRoles:e})})},t.prototype.unshareObject=function(){return this.clone(t,"unshareObject").postCore()},t.prototype.deleteLinkByKind=function(e){return this.clone(t,"deleteLinkByKind").postCore({body:Object(o.n)({linkKind:e})})},t.prototype.unshareLink=function(e,n){return void 0===n&&(n="00000000-0000-0000-0000-000000000000"),this.clone(t,"unshareLink").postCore({body:Object(o.n)({linkKind:e,shareId:n})})},t.prototype.getRoleValue=function(e,t){if(null==t){var n=e===K.Edit?H.Contributor:H.Reader;return new T("_api/web","roledefinitions").select("Id").top(1).filter("RoleTypeKind eq "+n).get().then(function(e){if(e.length<1)throw Error("Could not locate associated role definition for supplied role. Edit and View are supported");return"role: "+e[0].Id})}switch(t){case H.Contributor:return new I("_api/web","associatedmembergroup").select("Id").get().then(function(e){return"group: "+e.Id});case H.Reader:case H.Guest:return new I("_api/web","associatedvisitorgroup").select("Id").get().then(function(e){return"group: "+e.Id});default:throw Error("Could not determine role value for supplied value. Contributor, Reader, and Guest are supported")}},t.prototype.getShareObjectWeb=function(e){return Promise.resolve(new I(p(e),"/_api/SP.Web.ShareObject"))},t.prototype.sendShareObjectRequest=function(e){return this.getShareObjectWeb(this.toUrl()).then(function(n){return n.expand("UsersWithAccessRequests","GroupsSharedWith").as(t).postCore({body:Object(o.n)(e)})})},t}(w),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.shareWith=function(e,t,n){var r=this;void 0===t&&(t=K.View);var i=this.addBatchDependency();return new I(p(this.toUrl()),"/_api/web/url").get().then(function(a){return i(),r.shareObject(Object(o.d)(a,"/_layouts/15/aclinv.aspx?forSharing=1&mbypass=1"),e,t,n)})},t.prototype.shareObject=function(e,t,n,o,r,i,a,s){return void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===s&&(s=!0),this.clone(de,null).shareObject({emailData:o,group:r,includeAnonymousLinkInEmail:a,loginNames:t,propagateAcl:i,role:n,url:e,useSimplifiedRoles:s})},t.prototype.shareObjectRaw=function(e){return this.clone(de,null).shareObject(e,!0)},t.prototype.unshareObject=function(e){return this.clone(de,null).unshareObjectWeb(e)},t}(ce),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getShareLink=function(e,t){return void 0===e&&(e=z.OrganizationView),void 0===t&&(t=null),this.clone(de,null).getShareLink(e,t)},t.prototype.shareWith=function(e,t,n,o){return void 0===t&&(t=K.View),void 0===n&&(n=!1),this.clone(de,null).shareWith(e,t,n,!1,o)},t.prototype.checkSharingPermissions=function(e){return this.clone(de,null).checkPermissions(e)},t.prototype.getSharingInformation=function(e,t){return void 0===e&&(e=null),this.clone(de,null).getSharingInformation(e,t)},t.prototype.getObjectSharingSettings=function(e){return void 0===e&&(e=!0),this.clone(de,null).getObjectSharingSettings(e)},t.prototype.unshare=function(){return this.clone(de,null).unshareObject()},t.prototype.deleteSharingLinkByKind=function(e){return this.clone(de,null).deleteLinkByKind(e)},t.prototype.unshareLink=function(e,t){return this.clone(de,null).unshareLink(e,t)},t}(ce),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getShareLink=function(e,t){void 0===e&&(e=z.OrganizationView),void 0===t&&(t=null);var n=this.addBatchDependency();return this.getShareable().then(function(o){return n(),o.getShareLink(e,t)})},t.prototype.checkSharingPermissions=function(e){var t=this.addBatchDependency();return this.getShareable().then(function(n){return t(),n.checkPermissions(e)})},t.prototype.getSharingInformation=function(e,t){void 0===e&&(e=null);var n=this.addBatchDependency();return this.getShareable().then(function(o){return n(),o.getSharingInformation(e,t)})},t.prototype.getObjectSharingSettings=function(e){void 0===e&&(e=!0);var t=this.addBatchDependency();return this.getShareable().then(function(n){return t(),n.getObjectSharingSettings(e)})},t.prototype.unshare=function(){var e=this.addBatchDependency();return this.getShareable().then(function(t){return e(),t.unshareObject()})},t.prototype.deleteSharingLinkByKind=function(e){var t=this.addBatchDependency();return this.getShareable().then(function(n){return t(),n.deleteLinkByKind(e)})},t.prototype.unshareLink=function(e,t){var n=this.addBatchDependency();return this.getShareable().then(function(o){return n(),o.unshareLink(e,t)})},t.prototype.getShareable=function(){var e=this;return this.clone(me,"listItemAllFields",!1).select("odata.id").get().then(function(t){var n=new de(h(t));return e.hasBatch&&(n=n.inBatch(e.batch)),n})},t}(I),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.shareWith=function(e,t,n,o){void 0===t&&(t=K.View),void 0===n&&(n=!1);var r=this.addBatchDependency();return this.getShareable().then(function(i){return r(),i.shareWith(e,t,n,!1,o)})},t}(fe),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.shareWith=function(e,t,n,o,r){void 0===t&&(t=K.View),void 0===n&&(n=!1),void 0===o&&(o=!1);var i=this.addBatchDependency();return this.getShareable().then(function(a){return i(),a.shareWith(e,t,n,o,r)})},t}(fe),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"webparts",{get:function(){return new ve(this,"webparts")},enumerable:!0,configurable:!0}),t.prototype.export=function(e){return this.clone(t,"ExportWebPart").postCore({body:Object(o.n)({webPartId:e})})},t.prototype.import=function(e){return this.clone(t,"ImportWebPart").postCore({body:Object(o.n)({webPartXml:e})})},t}(w),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){return new be(this,"getbyid('"+e+"')")},t.prototype.getByControlId=function(e){return new be(this,"getByControlId('"+e+"')")},t}(T),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"webpart",{get:function(){return new _e(this)},enumerable:!0,configurable:!0}),t.prototype.saveChanges=function(){return this.clone(t,"SaveWebPartChanges").postCore()},t.prototype.moveTo=function(e,n){return this.clone(t,"MoveWebPartTo(zoneID='"+e+"', zoneIndex="+n+")").postCore()},t.prototype.close=function(){return this.clone(t,"CloseWebPart").postCore()},t.prototype.open=function(){return this.clone(t,"OpenWebPart").postCore()},t.prototype.delete=function(){return this.clone(t,"DeleteWebPart").postCore()},t}(I),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("webpart")],t)}(I),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getByName=function(e){var t=new Ce(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e){var t=this;return this.clone(n,"add('"+e+"')").postCore().then(function(n){return{data:n,folder:t.getByName(e)}})},t.prototype.addUsingPath=function(e,t){var o=this;return void 0===t&&(t=!1),this.clone(n,"addUsingPath(DecodedUrl='"+e+"',overwrite="+t+")").postCore().then(function(t){return{data:t,folder:new Ce(p(o.toUrl()),"_api/web/getFolderByServerRelativePath(decodedUrl='"+e+"')")}})},n=u([E("folders")],t)}(T),Ce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.Folder",function(e){return{data:e,folder:t}}),t}return l(t,e),Object.defineProperty(t.prototype,"contentTypeOrder",{get:function(){return new T(this,"contentTypeOrder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"files",{get:function(){return new Ze(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"folders",{get:function(){return new Se(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listItemAllFields",{get:function(){return new I(this,"listItemAllFields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentFolder",{get:function(){return new t(this,"parentFolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return new I(this,"properties")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serverRelativeUrl",{get:function(){return new w(this,"serverRelativeUrl")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uniqueContentTypeOrder",{get:function(){return new T(this,"uniqueContentTypeOrder")},enumerable:!0,configurable:!0}),t.prototype.delete=function(e){return void 0===e&&(e="*"),this.clone(t,null).postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore()},t.prototype.getItem=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.listItemAllFields;return n.select.apply(n,e).get().then(function(e){return Object(o.f)(new qe(h(e)),e)})},t.prototype.moveTo=function(e){return this.select("ServerRelativeUrl").get().then(function(n){var r=n.ServerRelativeUrl,i=p(n["odata.id"]),a=i.replace("://","___").split("/")[0].replace("___","://");return new t(i,"/_api/SP.MoveCopyUtil.MoveFolder()").postCore({body:Object(o.n)({destUrl:Object(o.m)(e)?e:""+a+e,srcUrl:""+a+r})})})},t.prototype.copyTo=function(e){return this.select("ServerRelativeUrl").get().then(function(n){var r=n.ServerRelativeUrl,i=p(n["odata.id"]),a=i.replace("://","___").split("/")[0].replace("___","://");return new t(i,"/_api/SP.MoveCopyUtil.CopyFolder()").postCore({body:Object(o.n)({destUrl:Object(o.m)(e)?e:""+a+e,srcUrl:""+a+r})})})},t}(ge),we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.addAvailableContentType=function(e){var t=this,r=Object(o.n)({contentTypeId:e});return this.clone(n,"addAvailableContentType").postCore({body:r}).then(function(e){return{contentType:t.getById(e.id),data:e}})},t.prototype.getById=function(e){var t=new Te(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t,n,r,i){var a=this;void 0===n&&(n=""),void 0===r&&(r="Custom Content Types"),void 0===i&&(i={});var s=Object(o.n)(Object.assign(C("SP.ContentType"),{Description:n,Group:r,Id:{StringValue:e},Name:t},i));return this.postCore({body:s}).then(function(e){return{contentType:a.getById(e.id),data:e}})},n=u([E("contenttypes")],t)}(T),Te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._delete,t}return l(t,e),Object.defineProperty(t.prototype,"fieldLinks",{get:function(){return new Ie(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return new T(this,"fields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new t(this,"parent")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workflowAssociations",{get:function(){return new T(this,"workflowAssociations")},enumerable:!0,configurable:!0}),t}(I),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new Ee(this);return t.concat("(guid'"+e+"')"),t},u([E("fieldlinks")],t)}(T),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(I),xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getByName=function(e){var t=new Pe(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t){var o=this;return this.clone(n,"add(FileName='"+e+"')",!1).postCore({body:t}).then(function(t){return{data:t,file:o.getByName(e)}})},t.prototype.addMultiple=function(e){var t=this;return e.reduce(function(e,o){return e.then(function(){return t.clone(n,"add(FileName='"+o.name+"')",!1).postCore({body:o.content})})},Promise.resolve())},t.prototype.deleteMultiple=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(function(t,n){return t.then(function(){return e.getByName(n).delete()})},Promise.resolve())},t.prototype.recycleMultiple=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(function(t,n){return t.then(function(){return e.getByName(n).recycle()})},Promise.resolve())},n=u([E("AttachmentFiles")],t)}(T),Pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._deleteWithETag,t}return l(t,e),t.prototype.getText=function(){return this.getParsed(new i.i)},t.prototype.getBlob=function(){return this.getParsed(new i.a)},t.prototype.getBuffer=function(){return this.getParsed(new i.b)},t.prototype.getJSON=function(){return this.getParsed(new i.d)},t.prototype.setContent=function(e){var n=this;return this.clone(t,"$value",!1).postCore({body:e,headers:{"X-HTTP-Method":"PUT"}}).then(function(e){return new t(n)})},t.prototype.recycle=function(e){return void 0===e&&(e="*"),this.clone(t,"recycleObject").postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t.prototype.getParsed=function(e){return this.clone(t,"$value",!1).get(e)},t}(I),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new Oe(this);return t.concat("('"+e+"')"),t},t.prototype.getByTitle=function(e){return new Oe(this,"getByTitle('"+e+"')")},t.prototype.add=function(e,t,r){var i=this;void 0===t&&(t=!1),void 0===r&&(r={});var a=Object(o.n)(Object.assign(C("SP.View"),{PersonalView:t,Title:e},r));return this.clone(n,null).postCore({body:a}).then(function(e){return{data:e,view:i.getById(e.Id)}})},n=u([E("views")],t)}(T),Oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.View",function(e){return{data:e,view:t}}),t.delete=t._delete,t}return l(t,e),Object.defineProperty(t.prototype,"fields",{get:function(){return new Ne(this)},enumerable:!0,configurable:!0}),t.prototype.renderAsHtml=function(){return this.clone(w,"renderashtml").get()},t.prototype.setViewXml=function(e){return this.clone(t,"SetViewXml").postCore({body:Object(o.n)({viewXml:e})})},t}(I),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getSchemaXml=function(){return this.clone(w,"schemaxml").get()},t.prototype.add=function(e){return this.clone(n,"addviewfield('"+e+"')").postCore()},t.prototype.move=function(e,t){return this.clone(n,"moveviewfieldto").postCore({body:Object(o.n)({field:e,index:t})})},t.prototype.removeAll=function(){return this.clone(n,"removeallviewfields").postCore()},t.prototype.remove=function(e){return this.clone(n,"removeviewfield('"+e+"')").postCore()},n=u([E("viewfields")],t)}(T),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new De(this);return t.concat("('"+e+"')"),t},t.prototype.getByTitle=function(e){return new De(this,"getByTitle('"+e+"')")},t.prototype.getByInternalNameOrTitle=function(e){return new De(this,"getByInternalNameOrTitle('"+e+"')")},t.prototype.createFieldAsXml=function(e){var t,r=this;t="string"==typeof e?{SchemaXml:e}:e;var i=Object(o.n)({parameters:Object(o.f)(C("SP.XmlSchemaFieldCreationInformation"),t)});return this.clone(n,"createfieldasxml").postCore({body:i}).then(function(e){return{data:e,field:r.getById(e.Id)}})},t.prototype.add=function(e,t,r){var i=this,a=Object(o.n)(Object.assign(C(t),{Title:e},r));return this.clone(n,null).postCore({body:a}).then(function(e){return{data:e,field:i.getById(e.Id)}})},t.prototype.addText=function(e,t,n){void 0===t&&(t=255);var r={FieldTypeKind:2,MaxLength:t};return this.add(e,"SP.FieldText",Object(o.f)(r,n))},t.prototype.addCalculated=function(e,t,n,r,i){void 0===r&&(r=D.Text);var a={DateFormat:n,FieldTypeKind:17,Formula:t,OutputType:r};return this.add(e,"SP.FieldCalculated",Object(o.f)(a,i))},t.prototype.addDateTime=function(e,t,n,r,i){void 0===t&&(t=M.DateOnly),void 0===n&&(n=A.Gregorian),void 0===r&&(r=F.Unspecified);var a={DateTimeCalendarType:n,DisplayFormat:t,FieldTypeKind:4,FriendlyDisplayFormat:r};return this.add(e,"SP.FieldDateTime",Object(o.f)(a,i))},t.prototype.addNumber=function(e,t,n,r){var i={FieldTypeKind:9};return void 0!==t&&(i=Object(o.f)({MinimumValue:t},i)),void 0!==n&&(i=Object(o.f)({MaximumValue:n},i)),this.add(e,"SP.FieldNumber",Object(o.f)(i,r))},t.prototype.addCurrency=function(e,t,n,r,i){void 0===r&&(r=1033);var a={CurrencyLocaleId:r,FieldTypeKind:10};return void 0!==t&&(a=Object(o.f)({MinimumValue:t},a)),void 0!==n&&(a=Object(o.f)({MaximumValue:n},a)),this.add(e,"SP.FieldCurrency",Object(o.f)(a,i))},t.prototype.addMultilineText=function(e,t,n,r,i,a,s){void 0===t&&(t=6),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===a&&(a=!0);var l={AllowHyperlink:a,AppendOnly:i,FieldTypeKind:3,NumberOfLines:t,RestrictedMode:r,RichText:n};return this.add(e,"SP.FieldMultiLineText",Object(o.f)(l,s))},t.prototype.addUrl=function(e,t,n){void 0===t&&(t=B.Hyperlink);var r={DisplayFormat:t,FieldTypeKind:11};return this.add(e,"SP.FieldUrl",Object(o.f)(r,n))},t.prototype.addUser=function(e,t,n){var r={FieldTypeKind:20,SelectionMode:t};return this.add(e,"SP.FieldUser",Object(o.f)(r,n))},t.prototype.addLookup=function(e,t,r,i){var a=this,s=Object(o.f)({FieldTypeKind:7,LookupFieldName:r,LookupListId:t,Title:e},i),l=Object(o.n)({parameters:Object(o.f)(C("SP.FieldCreationInformation"),s)});return this.clone(n,"addfield").postCore({body:l}).then(function(e){return{data:e,field:a.getById(e.Id)}})},t.prototype.addChoice=function(e,t,n,r,i){void 0===n&&(n=J.Dropdown);var a={Choices:{results:t},EditFormat:n,FieldTypeKind:6,FillInChoice:r};return this.add(e,"SP.FieldChoice",Object(o.f)(a,i))},t.prototype.addMultiChoice=function(e,t,n,r){var i={Choices:{results:t},FieldTypeKind:15,FillInChoice:n};return this.add(e,"SP.FieldMultiChoice",Object(o.f)(i,r))},t.prototype.addBoolean=function(e,t){return this.add(e,"SP.Field",Object(o.f)({FieldTypeKind:8},t))},t.prototype.addDependentLookupField=function(e,t,o){var r=this;return this.clone(n,"adddependentlookupfield(displayName='"+e+"', primarylookupfieldid='"+t+"', showfield='"+o+"')").postCore().then(function(e){return{data:e,field:r.getById(e.Id)}})},t.prototype.addLocation=function(e,t){return this.add(e,"SP.FieldLocation",Object(o.f)({FieldTypeKind:33},t))},n=u([E("fields")],t)}(T),De=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._delete,t}return l(t,e),t.prototype.update=function(e,t){var n=this;void 0===t&&(t="SP.Field");var r=Object(o.n)(Object(o.f)(C(t),e));return this.postCore({body:r,headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return{data:e,field:n}})},t.prototype.setShowInDisplayForm=function(e){return this.clone(t,"setshowindisplayform("+e+")").postCore()},t.prototype.setShowInEditForm=function(e){return this.clone(t,"setshowineditform("+e+")").postCore()},t.prototype.setShowInNewForm=function(e){return this.clone(t,"setshowinnewform("+e+")").postCore()},t}(I),Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new Fe(this);return t.concat("('"+e+"')"),t},u([E("forms")],t)}(T),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(I),Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new Ae(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t,n){var r=this,i={expirationDateTime:t,notificationUrl:e,resource:this.toUrl()};return n&&(i.clientState=n),this.postCore({body:Object(o.n)(i),headers:{"Content-Type":"application/json"}}).then(function(e){return{data:e,subscription:r.getById(e.id)}})},u([E("subscriptions")],t)}(T),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.update=function(e,t,n){var r=this,i={};return e&&(i.expirationDateTime=e),t&&(i.notificationUrl=t),n&&(i.clientState=n),this.patchCore({body:Object(o.n)(i),headers:{"Content-Type":"application/json"}}).then(function(e){return{data:e,subscription:r}})},t.prototype.delete=function(){return e.prototype.deleteCore.call(this)},t}(I),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new je(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e){var t=this,n=Object(o.n)(Object(o.f)({__metadata:{type:"SP.UserCustomAction"}},e));return this.postCore({body:n}).then(function(e){return{action:t.getById(e.Id),data:e}})},t.prototype.clear=function(){return this.clone(n,"clear").postCore()},n=u([E("usercustomactions")],t)}(T),je=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.UserCustomAction",function(e){return{data:e,action:t}}),t}return l(t,e),t.prototype.delete=function(){return e.prototype.deleteCore.call(this)},t}(I),Ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new We(this);return t.concat("('"+e+"')"),t},t.prototype.getByTitle=function(e){return new We(this,"getByTitle('"+e+"')")},t.prototype.add=function(e,t,n,r,i){var a=this;void 0===t&&(t=""),void 0===n&&(n=100),void 0===r&&(r=!1),void 0===i&&(i={});var s=Object(o.f)({AllowContentTypes:r,BaseTemplate:n,ContentTypesEnabled:r,Description:t,Title:e,__metadata:{type:"SP.List"}},i);return this.postCore({body:Object(o.n)(s)}).then(function(e){return{data:e,list:a.getByTitle(s.Title)}})},t.prototype.ensure=function(e,t,n,r,i){var a=this;if(void 0===t&&(t=""),void 0===n&&(n=100),void 0===r&&(r=!1),void 0===i&&(i={}),this.hasBatch)throw Error("The ensure list method is not supported for use in a batch.");return new Promise(function(s,l){var u=Object(o.f)(i,{Title:e,Description:t,ContentTypesEnabled:r},!0),c=a.getByTitle(u.Title);c.get().then(function(e){c.update(u).then(function(e){s({created:!1,data:e,list:a.getByTitle(u.Title)})}).catch(function(e){return l(e)})}).catch(function(o){a.add(e,t,n,r,u).then(function(e){s({created:!0,data:e.data,list:a.getByTitle(u.Title)})}).catch(function(e){return l(e)})})})},t.prototype.ensureSiteAssetsLibrary=function(){return this.clone(n,"ensuresiteassetslibrary").postCore().then(function(e){return new We(h(e))})},t.prototype.ensureSitePagesLibrary=function(){return this.clone(n,"ensuresitepageslibrary").postCore().then(function(e){return new We(h(e))})},n=u([E("lists")],t)}(T),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"contentTypes",{get:function(){return new we(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return new Ke(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"views",{get:function(){return new ke(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return new Re(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forms",{get:function(){return new Me(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultView",{get:function(){return new Oe(this,"DefaultView")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userCustomActions",{get:function(){return new Be(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissions",{get:function(){return new w(this,"EffectiveBasePermissions")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eventReceivers",{get:function(){return new T(this,"EventReceivers")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relatedFields",{get:function(){return new w(this,"getRelatedFields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"informationRightsManagementSettings",{get:function(){return new w(this,"InformationRightsManagementSettings")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subscriptions",{get:function(){return new Le(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootFolder",{get:function(){return new Ce(this,"rootFolder")},enumerable:!0,configurable:!0}),t.prototype.getView=function(e){return new Oe(this,"getView('"+e+"')")},t.prototype.update=function(e,n){var r=this;void 0===n&&(n="*");var i=Object(o.n)(Object(o.f)({__metadata:{type:"SP.List"}},e));return this.postCore({body:i,headers:{"IF-Match":n,"X-HTTP-Method":"MERGE"}}).then(function(n){var i=r;return Object(o.j)(e,"Title")&&(i=r.getParent(t,r.parentUrl,"getByTitle('"+e.Title+"')")),{data:n,list:i}})},t.prototype.delete=function(e){return void 0===e&&(e="*"),this.postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t.prototype.getChanges=function(e){return this.clone(t,"getchanges").postCore({body:Object(o.n)({query:Object(o.f)(C("SP.ChangeQuery"),e)})})},t.prototype.getItemsByCAMLQuery=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.clone(t,"getitems");return i.expand.apply(i,n).postCore({body:Object(o.n)({query:Object(o.f)({__metadata:{type:"SP.CamlQuery"}},e)})})},t.prototype.getListItemChangesSinceToken=function(e){return this.clone(t,"getlistitemchangessincetoken").postCore({body:Object(o.n)({query:Object(o.f)({__metadata:{type:"SP.ChangeLogItemQuery"}},e)})},{parse:function(e){return e.text()}})},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore().then(function(e){return Object(o.j)(e,"Recycle")?e.Recycle:e})},t.prototype.renderListData=function(e){var n=this.clone(t,"renderlistdata(@viewXml)");return n.query.set("@viewXml","'"+e+"'"),n.postCore().then(function(e){return JSON.parse(Object(o.j)(e,"RenderListData")?e.RenderListData:e)})},t.prototype.renderListDataAsStream=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=new Map),Object(o.j)(e,"RenderOptions")&&Object(o.k)(e.RenderOptions)&&(e.RenderOptions=e.RenderOptions.reduce(function(e,t){return e+t}));var i={overrideParameters:Object(o.f)(C("SP.RenderListDataOverrideParameters"),n),parameters:Object(o.f)(C("SP.RenderListDataParameters"),e)},a=this.clone(t,"RenderListDataAsStream",!0);return r&&r.size>0&&r.forEach(function(e,t){return a.query.set(t,e)}),a.postCore({body:Object(o.n)(i)})},t.prototype.renderListFormData=function(e,n,r){return this.clone(t,"renderlistformdata(itemid="+e+", formid='"+n+"', mode='"+r+"')").postCore().then(function(e){return JSON.parse(Object(o.j)(e,"RenderListFormData")?e.RenderListFormData:e)})},t.prototype.reserveListItemId=function(){return this.clone(t,"reservelistitemid").postCore().then(function(e){return Object(o.j)(e,"ReserveListItemId")?e.ReserveListItemId:e})},t.prototype.getListItemEntityTypeFullName=function(){return this.clone(t,null,!1).select("ListItemEntityTypeFullName").get().then(function(e){return e.ListItemEntityTypeFullName})},t.prototype.addValidateUpdateItemUsingPath=function(e,n,r,i){return void 0===r&&(r=!1),this.clone(t,"AddValidateUpdateItemUsingPath()").postCore({body:Object(o.n)({bNewDocumentUpdate:r,checkInComment:i,formValues:e,listItemCreateInfo:{FolderPath:{DecodedUrl:n,__metadata:{type:"SP.ResourcePath"}},__metadata:{type:"SP.ListItemCreationInformationUsingPath"}}})}).then(function(e){return void 0!==e.AddValidateUpdateItemUsingPath?e.AddValidateUpdateItemUsingPath.results:e})},t.prototype.getSiteScript=function(){return c(this,void 0,void 0,function(){var e;return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t).rootFolder.select("ServerRelativeUrl").get()];case 1:return[4,S(n.sent().ServerRelativeUrl)];case 2:return e=n.sent(),[2,new a.a(this,"").getSiteScriptFromList(e)]}})})},t}(ce),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e){var t=this;"string"==typeof e&&(e={text:e});var r=Object(o.n)(Object(o.f)(C("Microsoft.SharePoint.Comments.comment"),e));return this.clone(n,null).postCore({body:r}).then(function(e){return Object(o.f)(t.getById(e.id),e)})},t.prototype.getById=function(e){var t=new Ge(this);return t.concat("("+e+")"),t},t.prototype.clear=function(){return this.clone(n,"DeleteAll").postCore()},n=u([E("comments")],t)}(T),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"replies",{get:function(){return new ze(this)},enumerable:!0,configurable:!0}),t.prototype.like=function(){return this.clone(t,"Like").postCore()},t.prototype.unlike=function(){return this.clone(t,"Unlike").postCore()},t.prototype.delete=function(){return this.deleteCore()},t}(I),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e){"string"==typeof e&&(e={text:e});var t=Object(o.n)(Object(o.f)(C("Microsoft.SharePoint.Comments.comment"),e));return this.clone(n,null).postCore({body:t}).then(function(e){return Object(o.f)(new Ge(h(e)),e)})},n=u([E("replies")],t)}(T),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new qe(this);return t.concat("("+e+")"),t},t.prototype.getItemByStringId=function(e){return new qe(this.parentUrl,"getItemByStringId('"+e+"')")},t.prototype.skip=function(e,t){return void 0===t&&(t=!1),t?this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&PagedPrev=TRUE&p_ID="+e)):this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&p_ID="+e)),this},t.prototype.getPaged=function(e){return void 0===e&&(e=new i.f),this.get(new Ye(this,e))},t.prototype.getAll=function(e,t){void 0===e&&(e=2e3),void 0===t&&(t="application/json;odata=nometadata"),r.a.write("Calling items.getAll should be done sparingly. Ensure this is the correct choice. If you are unsure, it is not.",2);var o=new n(this,"").top(e).configure({headers:{Accept:t}});return this.query.forEach(function(e,t){/^\$select|filter|top|expand$/i.test(t)&&o.query.set(t,e)}),new Promise(function(e,t){var n=[],r=function(o){[].push.apply(n,o.results),o.hasNext?o.getNext().then(r).catch(t):e(n)};o.getPaged().then(r).catch(t)})},t.prototype.add=function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=null);var i=this.addBatchDependency();return this.ensureListItemEntityTypeName(t).then(function(t){var a=Object(o.n)(Object(o.f)(C(t),e)),s=r.clone(n,"").postCore({body:a}).then(function(e){return{data:e,item:r.getById(e.Id)}});return i(),s})},t.prototype.ensureListItemEntityTypeName=function(e){return e?Promise.resolve(e):this.getParent(We).getListItemEntityTypeFullName()},n=u([E("items")],t)}(T),qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._deleteWithETag,t}return l(t,e),Object.defineProperty(t.prototype,"attachmentFiles",{get:function(){return new xe(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentType",{get:function(){return new Te(this,"ContentType")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"comments",{get:function(){return new He(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissions",{get:function(){return new w(this,"EffectiveBasePermissions")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissionsForUI",{get:function(){return new w(this,"EffectiveBasePermissionsForUI")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsHTML",{get:function(){return new I(this,"FieldValuesAsHTML")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsText",{get:function(){return new I(this,"FieldValuesAsText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesForEdit",{get:function(){return new I(this,"FieldValuesForEdit")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"folder",{get:function(){return new Ce(this,"folder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"file",{get:function(){return new $e(this,"file")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return new Ve(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return this.getParent(We,this.parentUrl.substr(0,this.parentUrl.lastIndexOf("/")))},enumerable:!0,configurable:!0}),t.prototype.update=function(e,t,n){var r=this;return void 0===t&&(t="*"),void 0===n&&(n=null),new Promise(function(i,a){var s=r.addBatchDependency();return r.ensureListItemEntityTypeName(n).then(function(n){var a=Object(o.n)(Object(o.f)(C(n),e));return s(),r.postCore({body:a,headers:{"IF-Match":t,"X-HTTP-Method":"MERGE"}},new Je).then(function(e){i({data:e,item:r})})}).catch(function(e){return a(e)})})},t.prototype.getLikedBy=function(){return this.clone(t,"likedBy").postCore()},t.prototype.like=function(){return this.clone(t,"like").postCore()},t.prototype.unlike=function(){return this.clone(t,"unlike").postCore()},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore()},t.prototype.getWopiFrameUrl=function(e){void 0===e&&(e=0);var n=this.clone(t,"getWOPIFrameUrl(@action)");return n.query.set("@action",e),n.postCore().then(function(e){return Object(o.j)(e,"GetWOPIFrameUrl")?e.GetWOPIFrameUrl:e})},t.prototype.validateUpdateListItem=function(e,n){return void 0===n&&(n=!1),this.clone(t,"validateupdatelistitem").postCore({body:Object(o.n)({formValues:e,bNewDocumentUpdate:n})})},t.prototype.getLikedByInformation=function(){return this.clone(t,"likedByInformation").expand("likedby").getCore()},t.prototype.ensureListItemEntityTypeName=function(e){return e?Promise.resolve(e):this.list.getListItemEntityTypeFullName()},t}(he),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new Qe(this);return t.concat("("+e+")"),t},u([E("versions")],t)}(T),Qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._deleteWithETag,t}return l(t,e),t}(I),Xe=function(){function e(e,t,n,o){this.parent=e,this.nextUrl=t,this.results=n,this.innerParser=o}return Object.defineProperty(e.prototype,"hasNext",{get:function(){return"string"==typeof this.nextUrl&&this.nextUrl.length>0},enumerable:!0,configurable:!0}),e.prototype.getNext=function(){return this.hasNext?new Ke(this.nextUrl,null).configureFrom(this.parent).getPaged(this.innerParser):new Promise(function(e){return e(null)})},e}(),Ye=function(e){function t(t,n){var o=e.call(this)||this;return o._parent=t,o.innerParser=n,o}return l(t,e),t.prototype.parse=function(e){var t=this;return this.innerParser.parse(e).then(function(e){return c(t,void 0,void 0,function(){var t,n;return d(this,function(r){return t=this.innerParser.rawJson,n=Object(o.j)(t,"d")&&Object(o.j)(t.d,"__next")?t.d.__next:t["odata.nextLink"],[2,new Xe(this._parent,n,e,this.innerParser)]})})})},t}(i.g),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parse=function(e){return c(this,void 0,void 0,function(){var t=this;return d(this,function(n){return[2,new Promise(function(n,o){t.handleError(e,o)&&n({"odata.etag":e.headers.get("etag")})})]})})},t}(i.g),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getByName=function(e){var t=new $e(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t,o){var r=this;return void 0===o&&(o=!0),new n(this,"add(overwrite="+o+",url='"+e+"')").postCore({body:t}).then(function(t){return{data:t,file:r.getByName(e)}})},t.prototype.addUsingPath=function(e,t,r){var i=this;void 0===r&&(r={Overwrite:!1});var a=["AddUsingPath(decodedurl='"+e+"'"];return r&&(r.Overwrite&&a.push(",Overwrite=true"),r.AutoCheckoutOnInvalidData&&a.push(",AutoCheckoutOnInvalidData=true"),Object(o.r)(r.XorHash)||a.push(",XorHash="+r.XorHash)),a.push(")"),new n(this,a.join("")).postCore({body:t}).then(function(t){return{data:t,file:i.getByName(e)}})},t.prototype.addChunked=function(e,t,o,r,i){var a=this;return void 0===r&&(r=!0),void 0===i&&(i=10485760),this.clone(n,"add(overwrite = "+r+", url = '"+e+"')",!1).postCore().then(function(){return a.getByName(e)}).then(function(e){return e.setContentChunked(t,o,i)})},t.prototype.addTemplateFile=function(e,t){var o=this;return this.clone(n,"addTemplateFile(urloffile = '"+e+"', templatefiletype = "+t+")",!1).postCore().then(function(t){return{data:t,file:o.getByName(e)}})},n=u([E("files")],t)}(T),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"listItemAllFields",{get:function(){return new I(this,"listItemAllFields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return new et(this)},enumerable:!0,configurable:!0}),t.prototype.approve=function(e){return void 0===e&&(e=""),this.clone(t,"approve(comment = '"+e+"')").postCore()},t.prototype.cancelUpload=function(e){return this.clone(t,"cancelUpload(uploadId = guid'"+e+"')",!1).postCore()},t.prototype.checkin=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=ae.Major),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"checkin(comment = '"+e+"', checkintype = "+n+")").postCore()},t.prototype.checkout=function(){return this.clone(t,"checkout").postCore()},t.prototype.copyTo=function(e,n){return void 0===n&&(n=!0),this.clone(t,"copyTo(strnewurl = '"+e+"', boverwrite = "+n+")").postCore()},t.prototype.delete=function(e){return void 0===e&&(e="*"),this.clone(t,null).postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t.prototype.deny=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"deny(comment = '"+e+"')").postCore()},t.prototype.getLimitedWebPartManager=function(e){return void 0===e&&(e=se.Shared),new ye(this,"getLimitedWebPartManager(scope = "+e+")")},t.prototype.moveTo=function(e,n){return void 0===n&&(n=le.Overwrite),this.clone(t,"moveTo(newurl = '"+e+"', flags = "+n+")").postCore()},t.prototype.publish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"publish(comment = '"+e+"')").postCore()},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore()},t.prototype.undoCheckout=function(){return this.clone(t,"undoCheckout").postCore()},t.prototype.unpublish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"unpublish(comment = '"+e+"')").postCore()},t.prototype.getText=function(){return this.clone(t,"$value",!1).get(new i.i,{headers:{binaryStringResponseBody:"true"}})},t.prototype.getBlob=function(){return this.clone(t,"$value",!1).get(new i.a,{headers:{binaryStringResponseBody:"true"}})},t.prototype.getBuffer=function(){return this.clone(t,"$value",!1).get(new i.b,{headers:{binaryStringResponseBody:"true"}})},t.prototype.getJSON=function(){return this.clone(t,"$value",!1).get(new i.d,{headers:{binaryStringResponseBody:"true"}})},t.prototype.setContent=function(e){var n=this;return this.clone(t,"$value",!1).postCore({body:e,headers:{"X-HTTP-Method":"PUT"}}).then(function(e){return new t(n)})},t.prototype.getItem=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.listItemAllFields;return r.select.apply(r,t).get().then(function(t){return Object(o.f)(new qe(h(t)).configureFrom(e),t)})},t.prototype.setContentChunked=function(e,t,n){var r=this;void 0===n&&(n=10485760),void 0===t&&(t=function(){return null});var i=e.size,a=parseInt((e.size/n).toString(),10)+(e.size%n==0?1:0),s=Object(o.h)();t({uploadId:s,blockNumber:1,chunkSize:n,currentPointer:0,fileSize:i,stage:"starting",totalBlocks:a});for(var l=this.startUpload(s,e.slice(0,n)),u=function(o){l=l.then(function(l){return t({uploadId:s,blockNumber:o,chunkSize:n,currentPointer:l,fileSize:i,stage:"continue",totalBlocks:a}),r.continueUpload(s,l,e.slice(l,l+n))})},c=2;c<a;c++)u(c);return l.then(function(o){return t({uploadId:s,blockNumber:a,chunkSize:n,currentPointer:o,fileSize:i,stage:"finishing",totalBlocks:a}),r.finishUpload(s,o,e.slice(o))})},t.prototype.startUpload=function(e,n){return this.clone(t,"startUpload(uploadId = guid'"+e+"')",!1).postCore({body:n}).then(function(e){return"object"==typeof e&&(e=e.StartUpload),parseFloat(e)})},t.prototype.continueUpload=function(e,n,o){return this.clone(t,"continueUpload(uploadId = guid'"+e+"', fileOffset = "+n+")",!1).postCore({body:o}).then(function(e){return"object"==typeof e&&(e=e.ContinueUpload),parseFloat(e)})},t.prototype.finishUpload=function(e,n,o){return this.clone(t,"finishUpload(uploadId = guid'"+e+"', fileOffset = "+n+")",!1).postCore({body:o}).then(function(e){return{data:e,file:new t(h(e))}})},t}(me),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new tt(this);return t.concat("("+e+")"),t},t.prototype.deleteAll=function(){return new n(this,"deleteAll").postCore()},t.prototype.deleteById=function(e){return this.clone(n,"deleteById(vid = "+e+")").postCore()},t.prototype.recycleByID=function(e){return this.clone(n,"recycleByID(vid = "+e+")").postCore()},t.prototype.deleteByLabel=function(e){return this.clone(n,"deleteByLabel(versionlabel = '"+e+"')").postCore()},t.prototype.recycleByLabel=function(e){return this.clone(n,"recycleByLabel(versionlabel = '"+e+"')").postCore()},t.prototype.restoreByLabel=function(e){return this.clone(n,"restoreByLabel(versionlabel = '"+e+"')").postCore()},n=u([E("versions")],t)}(T),tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._deleteWithETag,t}return l(t,e),t}(I);!function(e){e[e.Minor=0]="Minor",e[e.Major=1]="Major",e[e.Overwrite=2]="Overwrite"}(ae||(ae={})),function(e){e[e.User=0]="User",e[e.Shared=1]="Shared"}(se||(se={})),function(e){e[e.Overwrite=1]="Overwrite",e[e.AllowBrokenThickets=8]="AllowBrokenThickets"}(le||(le={})),function(e){e[e.StandardPage=0]="StandardPage",e[e.WikiPage=1]="WikiPage",e[e.FormPage=2]="FormPage",e[e.ClientSidePage=3]="ClientSidePage"}(ue||(ue={}));var nt,ot=function(e){function t(t,n){return void 0===n&&(n="_api/web/tenantappcatalog/AvailableApps"),e.call(this,p("string"==typeof t?t:t.toUrl()),n)||this}return l(t,e),t.prototype.getAppById=function(e){return new rt(this,"getById('"+e+"')")},t.prototype.add=function(e,n,o){void 0===o&&(o=!0);var r=this.toUrl().indexOf("tenantappcatalog")>0?"tenantappcatalog":"sitecollectionappcatalog";return new t(p(this.toUrl()),"_api/web/"+r+"/add(overwrite="+o+",url='"+e+"')").postCore({body:n}).then(function(e){return{data:e,file:new $e(h(e))}})},t}(T),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.deploy=function(e){return void 0===e&&(e=!1),this.clone(t,"Deploy("+e+")").postCore()},t.prototype.retract=function(){return this.clone(t,"Retract").postCore()},t.prototype.install=function(){return this.clone(t,"Install").postCore()},t.prototype.uninstall=function(){return this.clone(t,"Uninstall").postCore()},t.prototype.upgrade=function(){return this.clone(t,"Upgrade").postCore()},t.prototype.remove=function(){return this.clone(t,"Remove").postCore()},t}(I),it=function(e){function t(t){var n=e.call(this)||this;return n.baseUrl=t,n}return l(t,e),t.ParseResponse=function(e){return new Promise(function(t,n){for(var o,r,i=[],a=new RegExp("^HTTP/[0-9.]+ +([0-9]+) +(.*)","i"),s=e.split("\n"),l="batch",u=0;u<s.length;++u){var c=s[u];switch(l){case"batch":if("--batchresponse_"===c.substr(0,"--batchresponse_".length))l="batchHeaders";else if(""!==c.trim())throw Error("Invalid response, line "+u);break;case"batchHeaders":""===c.trim()&&(l="status");break;case"status":var d=a.exec(c);if(3!==d.length)throw Error("Invalid status, line "+u);o=parseInt(d[1],10),r=d[2],l="statusHeaders";break;case"statusHeaders":""===c.trim()&&(l="body");break;case"body":i.push(204===o?new Response:new Response(c,{status:o,statusText:r})),l="batch"}}"status"!==l&&n(Error("Unexpected end of input")),t(i)})},t.prototype.executeImpl=function(){var e=this;if(r.a.write("["+this.batchId+"] ("+(new Date).getTime()+") Executing batch with "+this.requests.length+" requests.",1),this.requests.length<1)return r.a.write("Resolving empty batch.",1),Promise.resolve();var n=new b;return S(this.baseUrl).then(function(i){for(var a=[],s="",l=0;l<e.requests.length;l++){var u=e.requests[l];"GET"===u.method?(s.length>0&&(a.push("--changeset_"+s+"--\n\n"),s=""),a.push("--batch_"+e.batchId+"\n")):(s.length<1&&(s=Object(o.h)(),a.push("--batch_"+e.batchId+"\n"),a.push('Content-Type: multipart/mixed; boundary="changeset_'+s+'"\n\n')),a.push("--changeset_"+s+"\n")),a.push("Content-Type: application/http\n"),a.push("Content-Transfer-Encoding: binary\n\n");var c=new Headers,d=Object(o.m)(u.url)?u.url:Object(o.d)(i,u.url);if(r.a.write("["+e.batchId+"] ("+(new Date).getTime()+") Adding request "+u.method+" "+d+" to batch.",0),"GET"!==u.method){var p=u.method,h=u.options.headers;Object(o.j)(u,"options")&&Object(o.j)(u.options,"headers")&&void 0!==h["X-HTTP-Method"]&&(p=h["X-HTTP-Method"],delete h["X-HTTP-Method"]),a.push(p+" "+d+" HTTP/1.1\n"),c.set("Content-Type","application/json;odata=verbose;charset=utf-8")}else a.push(u.method+" "+d+" HTTP/1.1\n");Object(o.o)(c,m.headers),u.options&&Object(o.o)(c,u.options.headers),c.has("Accept")||c.append("Accept","application/json"),c.has("Content-Type")||c.append("Content-Type","application/json;odata=verbose;charset=utf-8"),c.has("X-ClientService-ClientTag")||c.append("X-ClientService-ClientTag","PnPCoreJS:@pnp-1.3.11"),c.forEach(function(e,t){a.push(t+": "+e+"\n")}),a.push("\n"),u.options.body&&a.push(u.options.body+"\n\n")}s.length>0&&(a.push("--changeset_"+s+"--\n\n"),s=""),a.push("--batch_"+e.batchId+"--\n");var f={body:a.join(""),headers:{"Content-Type":"multipart/mixed; boundary=batch_"+e.batchId},method:"POST"};return r.a.write("["+e.batchId+"] ("+(new Date).getTime()+") Sending batch request.",1),n.fetch(Object(o.d)(i,"/_api/$batch"),f).then(function(e){return e.text()}).then(t.ParseResponse).then(function(t){if(t.length!==e.requests.length)throw Error("Could not properly parse responses to match requests in batch.");return r.a.write("["+e.batchId+"] ("+(new Date).getTime()+") Resolving batched requests.",1),t.reduce(function(t,n,o){var i=e.requests[o];return r.a.write("["+i.id+"] ("+(new Date).getTime()+") Resolving request in batch "+e.batchId+".",1),t.then(function(e){return i.parser.parse(n).then(i.resolve).catch(i.reject)})},Promise.resolve())})})},t}(i.e),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e,t){var r=this;return void 0===t&&(t=!1),this.clone(n,"add").postCore({body:Object(o.n)({featdefScope:0,featureId:e,force:t})}).then(function(t){return{data:t,feature:r.getById(e)}})},t.prototype.getById=function(e){var t=new st(this);return t.concat("('"+e+"')"),t},t.prototype.remove=function(e,t){return void 0===t&&(t=!1),this.clone(n,"remove").postCore({body:Object(o.n)({featureId:e,force:t})})},n=u([E("features")],t)}(T),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.deactivate=function(e){var n=this;void 0===e&&(e=!1);var o=this.addBatchDependency();return new t(this).select("DefinitionId").get().then(function(t){var r=n.getParent(at,n.parentUrl,"",n.batch).remove(t.DefinitionId,e);return o(),r})},t}(I),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,Object.defineProperty(t.prototype,"rootWeb",{get:function(){return new Ct(this,"rootweb")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"features",{get:function(){return new at(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userCustomActions",{get:function(){return new Be(this)},enumerable:!0,configurable:!0}),t.prototype.getRootWeb=function(){return this.rootWeb.select("Url").get().then(function(e){return new Ct(e.Url)})},t.prototype.getContextInfo=function(){return new n(this.parentUrl,"_api/contextinfo").postCore().then(function(e){if(Object(o.j)(e,"GetContextWebInformation")){var t=e.GetContextWebInformation;return t.SupportedSchemaVersions=t.SupportedSchemaVersions.results,t}return e})},t.prototype.getDocumentLibraries=function(e){var t=new w("","_api/sp.web.getdocumentlibraries(@v)");return t.query.set("@v","'"+e+"'"),t.get().then(function(e){return Object(o.j)(e,"GetDocumentLibraries")?e.GetDocumentLibraries:e})},t.prototype.getWebUrlFromPageUrl=function(e){var t=new w("","_api/sp.web.getweburlfrompageurl(@v)");return t.query.set("@v","'"+e+"'"),t.get().then(function(e){return Object(o.j)(e,"GetWebUrlFromPageUrl")?e.GetWebUrlFromPageUrl:e})},t.prototype.getChanges=function(e){var t=Object(o.n)({query:Object(o.f)({__metadata:{type:"SP.ChangeQuery"}},e)});return this.clone(n,"getchanges").postCore({body:t})},t.prototype.delete=function(){return c(this,void 0,void 0,function(){var e;return d(this,function(t){switch(t.label){case 0:return[4,this.clone(n,"").select("Id").get()];case 1:return e=t.sent(),[4,new n(this.parentUrl,"_api/SPSiteManager/Delete").postCore({body:Object(o.n)({siteId:e.Id})})];case 2:return t.sent(),[2]}})})},t.prototype.createBatch=function(){return new it(this.parentUrl)},t.prototype.openWebById=function(e){return this.clone(n,"openWebById('"+e+"')").postCore().then(function(e){return{data:e,web:Ct.fromUrl(e["odata.id"]||e.__metadata.uri)}})},t.prototype.joinHubSite=function(e){return this.clone(n,"joinHubSite('"+e+"')").postCore()},t.prototype.registerHubSite=function(){return this.clone(n,"registerHubSite").postCore()},t.prototype.unRegisterHubSite=function(){return this.clone(n,"unRegisterHubSite").postCore()},t.prototype.createCommunicationSite=function(e,t,n,r,i,a,s,l,u){var p=this;void 0===t&&(t=1033),void 0===n&&(n=!1),void 0===i&&(i=""),void 0===a&&(a=""),void 0===s&&(s="00000000-0000-0000-0000-000000000000"),void 0===l&&(l="00000000-0000-0000-0000-000000000000");var h={Classification:a,Description:i,HubSiteId:l,Lcid:t,Owner:u,ShareByEmailEnabled:n,SiteDesignId:s,Title:e,Url:r,WebTemplate:"SITEPAGEPUBLISHING#0",WebTemplateExtensionId:"00000000-0000-0000-0000-000000000000"},f=Object(o.n)({request:Object(o.f)({__metadata:{type:"Microsoft.SharePoint.Portal.SPSiteCreationRequest"}},h)});return this.getRootWeb().then(function(e){return c(p,void 0,void 0,function(){var t,n;return d(this,function(r){return t=new b,n=e.parentUrl+"/_api/SPSiteManager/Create",[2,t.post(n,{body:f,headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose;charset=utf-8"}}).then(function(e){return e.json()}).then(function(e){if(Object(o.j)(e,"error"))throw e;return Object(o.j)(e,"d")&&Object(o.j)(e.d,"Create")?e.d.Create:e})]})})})},t.prototype.createModernTeamSite=function(e,t,n,r,i,a,s,l,u){var p=this;void 0===n&&(n=!0),void 0===r&&(r=1033),void 0===i&&(i=""),void 0===a&&(a=""),void 0===l&&(l="00000000-0000-0000-0000-000000000000");var h={alias:t,displayName:e,isPublic:n,optionalParams:{Classification:a,CreationOptions:{results:["SPSiteLanguage:"+r,"HubSiteId:"+l]},Description:i,Owners:{results:s||[]}}};return u&&h.optionalParams.CreationOptions.results.push("implicit_formula_292aa8a00786498a87a5ca52d9f4214a_"+u),this.getRootWeb().then(function(e){return c(p,void 0,void 0,function(){var t,n;return d(this,function(r){return t=new b,n=e.parentUrl+"/_api/GroupSiteManager/CreateGroupEx",[2,t.post(n,{body:Object(o.n)(h),headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose;charset=utf-8"}}).then(function(e){return e.json()})]})})})},n=u([E("_api/site")],t)}(I),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new ct(this);return t.concat("("+e+")"),t},t.prototype.add=function(e,n,r){var i=this;void 0===r&&(r=!0);var a=Object(o.n)(Object(o.f)(C("SP.NavigationNode"),{IsVisible:r,Title:e,Url:n}));return this.clone(t,null).postCore({body:a}).then(function(e){return{data:e,node:i.getById(e.Id)}})},t.prototype.moveAfter=function(e,n){var r=Object(o.n)({nodeId:e,previousNodeId:n});return this.clone(t,"MoveAfter").postCore({body:r})},t}(T),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return new ut(this,"Children")},enumerable:!0,configurable:!0}),t.prototype.delete=function(){return e.prototype.deleteCore.call(this)},t.prototype.update=function(e){var t=this,n=Object(o.n)(Object(o.f)({__metadata:{type:"SP.NavigationNode"}},e));return this.postCore({body:n,headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return{data:e,node:t}})},t}(I),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"quicklaunch",{get:function(){return new ut(this,"quicklaunch")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topNavigationBar",{get:function(){return new ut(this,"topnavigationbar")},enumerable:!0,configurable:!0}),u([E("navigation")],t)}(w),pt=function(e){function t(t,n){return void 0===n&&(n=null),e.call(this,t,n)||this}return l(t,e),t.prototype.getMenuState=function(e,n,r,i){return void 0===e&&(e=null),void 0===n&&(n=10),void 0===r&&(r=null),void 0===i&&(i=null),new t(this,"_api/navigation/MenuState").postCore({body:Object(o.n)({customProperties:i,depth:n,mapProviderName:r,menuNodeKey:e})})},t.prototype.getMenuNodeKey=function(e,n){return void 0===n&&(n=null),new t(this,"_api/navigation/MenuNodeKey").postCore({body:Object(o.n)({currentUrl:e,mapProviderName:n})})},t}(w),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.FromUrl=function(e){if(null===e)return new n("");var t=e.indexOf("_api/");return new n(t>-1?e.substr(0,t):e)},t.prototype.getRelatedItems=function(e,t){var r=this.clone(n,null);return r.concat(".GetRelatedItems"),r.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e})})},t.prototype.getPageOneRelatedItems=function(e,t){var r=this.clone(n,null);return r.concat(".GetPageOneRelatedItems"),r.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e})})},t.prototype.addSingleLink=function(e,t,r,i,a,s,l){void 0===l&&(l=!1);var u=this.clone(n,null);return u.concat(".AddSingleLink"),u.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e,SourceWebUrl:r,TargetItemID:a,TargetListName:i,TargetWebUrl:s,TryAddReverseLink:l})})},t.prototype.addSingleLinkToUrl=function(e,t,r,i){void 0===i&&(i=!1);var a=this.clone(n,null);return a.concat(".AddSingleLinkToUrl"),a.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e,TargetItemUrl:r,TryAddReverseLink:i})})},t.prototype.addSingleLinkFromUrl=function(e,t,r,i){void 0===i&&(i=!1);var a=this.clone(n,null);return a.concat(".AddSingleLinkFromUrl"),a.postCore({body:Object(o.n)({SourceItemUrl:e,TargetItemID:r,TargetListName:t,TryAddReverseLink:i})})},t.prototype.deleteSingleLink=function(e,t,r,i,a,s,l){void 0===l&&(l=!1);var u=this.clone(n,null);return u.concat(".DeleteSingleLink"),u.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e,SourceWebUrl:r,TargetItemID:a,TargetListName:i,TargetWebUrl:s,TryDeleteReverseLink:l})})},n=u([E("_api/SP.RelatedItemManager")],t)}(w),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"installedLanguages",{get:function(){return new mt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"globalInstalledLanguages",{get:function(){return new mt(this,"globalinstalledlanguages")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeZone",{get:function(){return new gt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeZones",{get:function(){return new yt(this)},enumerable:!0,configurable:!0}),u([E("regionalsettings")],t)}(I),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("installedlanguages")],t)}(T),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.utcToLocalTime=function(e){var t;return t="string"==typeof e?e:e.toISOString(),this.clone(n,"utctolocaltime('"+t+"')").postCore().then(function(e){return Object(o.j)(e,"UTCToLocalTime")?e.UTCToLocalTime:e})},t.prototype.localTimeToUTC=function(e){var t;return t="string"==typeof e?e:Object(o.e)(e,"minute",-1*e.getTimezoneOffset()).toISOString(),this.clone(n,"localtimetoutc('"+t+"')").postCore().then(function(e){return Object(o.j)(e,"LocalTimeToUTC")?e.LocalTimeToUTC:e})},n=u([E("timezone")],t)}(I),yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){return this.clone(n,"GetById("+e+")").postCore({},new f(gt))},n=u([E("timezones")],t)}(T),vt=function(e){function t(n,o){return e.call(this,t.getBaseUrl(n),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+o)||this}return l(t,e),t.getBaseUrl=function(e){if("string"==typeof e)return e;var t=e.toUrl(),n=t.indexOf("_api/");return n<0?t:t.substr(0,n)},t.prototype.execute=function(e){return this.postCore({body:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8"}})},t.prototype.createSiteDesign=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"CreateSiteDesign").execute({info:e})];case 1:return[2,n.sent()]}})})},t.prototype.applySiteDesign=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"ApplySiteDesign").execute({siteDesignId:e,webUrl:n})];case 1:return[2,o.sent()]}})})},t.prototype.getSiteDesigns=function(){return c(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,this.clone(t,"GetSiteDesigns").execute({})];case 1:return[2,e.sent()]}})})},t.prototype.getSiteDesignMetadata=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteDesignMetadata").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.updateSiteDesign=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"UpdateSiteDesign").execute({updateInfo:e})];case 1:return[2,n.sent()]}})})},t.prototype.deleteSiteDesign=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"DeleteSiteDesign").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.getSiteDesignRights=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteDesignRights").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.grantSiteDesignRights=function(e,n,o){return void 0===o&&(o=1),c(this,void 0,void 0,function(){return d(this,function(r){switch(r.label){case 0:return[4,this.clone(t,"GrantSiteDesignRights").execute({grantedRights:o.toString(),id:e,principalNames:n})];case 1:return[2,r.sent()]}})})},t.prototype.revokeSiteDesignRights=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"RevokeSiteDesignRights").execute({id:e,principalNames:n})];case 1:return[2,o.sent()]}})})},t.prototype.addSiteDesignTask=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"AddSiteDesignTask").execute({webUrl:e,siteDesignId:n})];case 1:return[2,o.sent()]}})})},t.prototype.addSiteDesignTaskToCurrentWeb=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"AddSiteDesignTaskToCurrentWeb").execute({siteDesignId:e})];case 1:return[2,n.sent()]}})})},t.prototype.getSiteDesignTask=function(e){return c(this,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return[4,this.clone(t,"GetSiteDesignTask").execute({taskId:e})];case 1:return n=r.sent(),[2,Object(o.j)(n,"ID")?n:null]}})})},t.prototype.getSiteDesignRun=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"GetSiteDesignRun").execute({webUrl:e,siteDesignId:n})];case 1:return[2,o.sent()]}})})},t.prototype.getSiteDesignRunStatus=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"GetSiteDesignRunStatus").execute({webUrl:e,runId:n})];case 1:return[2,o.sent()]}})})},t}(w),bt=function(e){function t(n,o){return e.call(this,t.getBaseUrl(n),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+o)||this}return l(t,e),t.getBaseUrl=function(e){if("string"==typeof e)return e;var t=e.toUrl(),n=t.indexOf("_api/");return n<0?t:t.substr(0,n)},t.prototype.execute=function(e){return this.postCore({body:JSON.stringify(e)})},t.prototype.getSiteScripts=function(){return this.clone(t,"GetSiteScripts",!0).execute({})},t.prototype.createSiteScript=function(e,n,o){return c(this,void 0,void 0,function(){return d(this,function(r){switch(r.label){case 0:return[4,this.clone(t,"CreateSiteScript(Title=@title,Description=@desc)?@title='"+encodeURIComponent(e)+"'&@desc='"+encodeURIComponent(n)+"'").execute(o)];case 1:return[2,r.sent()]}})})},t.prototype.getSiteScriptMetadata=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteScriptMetadata").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.deleteSiteScript=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"DeleteSiteScript").execute({id:e})];case 1:return n.sent(),[2]}})})},t.prototype.updateSiteScript=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return n&&(e.Content=JSON.stringify(n)),[4,this.clone(t,"UpdateSiteScript").execute({updateInfo:e})];case 1:return[2,o.sent()]}})})},t.prototype.getSiteScriptFromList=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteScriptFromList").execute({listUrl:e})];case 1:return[2,n.sent()]}})})},t.prototype.getSiteScriptFromWeb=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"getSiteScriptFromWeb").execute({webUrl:e,info:n})];case 1:return[2,o.sent()]}})})},t}(w),_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e,t,r,i,a,s){void 0===r&&(r=""),void 0===i&&(i="STS"),void 0===a&&(a=1033),void 0===s&&(s=!0);var l={Description:r,Language:a,Title:e,Url:t,UseSamePermissionsAsParentSite:s,WebTemplate:i},u=Object(o.n)({parameters:Object(o.f)({__metadata:{type:"SP.WebCreationInformation"}},l)});return this.clone(n,"add").postCore({body:u}).then(function(e){return{data:e,web:new Ct(h(e).replace(/_api\/web\/?/i,""))}})},n=u([E("webs")],t)}(T),St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("webinfos")],t)}(T),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.fromUrl=function(e,t){return new n(p(e),t)},Object.defineProperty(t.prototype,"webs",{get:function(){return new _t(this)},enumerable:!0,configurable:!0}),t.prototype.getParentWeb=function(){var e=this;return this.select("ParentWeb/Id").expand("ParentWeb").get().then(function(t){var n=t.ParentWeb;return n?new lt(e.parentUrl).openWebById(n.Id):null})},t.prototype.getSubwebsFilteredForCurrentUser=function(e,t){return void 0===e&&(e=-1),void 0===t&&(t=-1),this.clone(_t,"getSubwebsFilteredForCurrentUser(nWebTemplateFilter="+e+",nConfigurationFilter="+t+")")},Object.defineProperty(t.prototype,"allProperties",{get:function(){return this.clone(I,"allproperties")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"webinfos",{get:function(){return new St(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentTypes",{get:function(){return new we(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lists",{get:function(){return new Ue(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return new Re(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"features",{get:function(){return new at(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availablefields",{get:function(){return new Re(this,"availablefields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigation",{get:function(){return new dt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"siteUsers",{get:function(){return new P(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"siteGroups",{get:function(){return new $(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"siteUserInfoList",{get:function(){return new We(this,"siteuserinfolist")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"regionalSettings",{get:function(){return new ft(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentUser",{get:function(){return new N(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"folders",{get:function(){return new Se(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userCustomActions",{get:function(){return new Be(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"roleDefinitions",{get:function(){return new oe(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relatedItems",{get:function(){return ht.FromUrl(this.toUrl())},enumerable:!0,configurable:!0}),t.prototype.createBatch=function(){return new it(this.parentUrl)},Object.defineProperty(t.prototype,"rootFolder",{get:function(){return new Ce(this,"rootFolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"associatedOwnerGroup",{get:function(){return new ee(this,"associatedownergroup")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"associatedMemberGroup",{get:function(){return new ee(this,"associatedmembergroup")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"associatedVisitorGroup",{get:function(){return new ee(this,"associatedvisitorgroup")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultDocumentLibrary",{get:function(){return new We(this,"DefaultDocumentLibrary")},enumerable:!0,configurable:!0}),t.prototype.getFolderById=function(e){return new Ce(this,"getFolderById('"+e+"')")},t.prototype.getFolderByServerRelativeUrl=function(e){return new Ce(this,"getFolderByServerRelativeUrl('"+e+"')")},t.prototype.getFolderByServerRelativePath=function(e){return new Ce(this,"getFolderByServerRelativePath(decodedUrl='"+e+"')")},t.prototype.getFileById=function(e){return new $e(this,"getFileById('"+e+"')")},t.prototype.getFileByServerRelativeUrl=function(e){return new $e(this,"getFileByServerRelativeUrl('"+e+"')")},t.prototype.getFileByServerRelativePath=function(e){return new $e(this,"getFileByServerRelativePath(decodedUrl='"+e+"')")},t.prototype.getList=function(e){return new We(this,"getList('"+e+"')")},t.prototype.update=function(e){var t=this,n=Object(o.n)(Object(o.f)({__metadata:{type:"SP.Web"}},e));return this.postCore({body:n,headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return{data:e,web:t}})},t.prototype.delete=function(){return e.prototype.deleteCore.call(this)},t.prototype.applyTheme=function(e,t,r,i){var a=Object(o.n)({backgroundImageUrl:r,colorPaletteUrl:e,fontSchemeUrl:t,shareGenerated:i});return this.clone(n,"applytheme").postCore({body:a})},t.prototype.applyWebTemplate=function(e){var t=this.clone(n,"applywebtemplate");return t.concat("(@t)"),t.query.set("@t",e),t.postCore()},t.prototype.ensureUser=function(e){var t=Object(o.n)({logonName:e});return this.clone(n,"ensureuser").postCore({body:t}).then(function(e){return{data:e,user:new O(h(e))}})},t.prototype.availableWebTemplates=function(e,t){return void 0===e&&(e=1033),void 0===t&&(t=!0),new T(this,"getavailablewebtemplates(lcid="+e+", doincludecrosslanguage="+t+")")},t.prototype.getCatalog=function(e){return this.clone(n,"getcatalog("+e+")").select("Id").get().then(function(e){return new We(h(e))})},t.prototype.getChanges=function(e){var t=Object(o.n)({query:Object(o.f)({__metadata:{type:"SP.ChangeQuery"}},e)});return this.clone(n,"getchanges").postCore({body:t})},Object.defineProperty(t.prototype,"customListTemplate",{get:function(){return new T(this,"getcustomlisttemplates")},enumerable:!0,configurable:!0}),t.prototype.getUserById=function(e){return new O(this,"getUserById("+e+")")},t.prototype.mapToIcon=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=""),this.clone(n,"maptoicon(filename='"+e+"', progid='"+o+"', size="+t+")").get()},t.prototype.getStorageEntity=function(e){return this.clone(n,"getStorageEntity('"+e+"')").get()},t.prototype.setStorageEntity=function(e,t,r,i){return void 0===r&&(r=""),void 0===i&&(i=""),this.clone(n,"setStorageEntity").postCore({body:Object(o.n)({comments:i,description:r,key:e,value:t})})},t.prototype.removeStorageEntity=function(e){return this.clone(n,"removeStorageEntity('"+e+"')").postCore()},t.prototype.getAppCatalog=function(e){return new ot(e||this)},t.prototype.getSiteCollectionAppCatalog=function(e){return new ot(e||this,"_api/web/sitecollectionappcatalog/AvailableApps")},t.prototype.getClientSideWebParts=function(){return this.clone(T,"GetClientSideWebParts").get()},t.prototype.addClientSidePage=function(e,t){return void 0===t&&(t=e.replace(/\.[^/.]+$/,"")),It.create(this,e,t)},t.prototype.addClientSidePageByPath=function(e,t){return void 0===t&&(t=e.replace(/\.[^/.]+$/,"")),It.create(this,e,t)},t.prototype.createDefaultAssociatedGroups=function(e,t,o){var r=this.clone(n,"createDefaultAssociatedGroups(userLogin=@u,userLogin2=@v,groupNameSeed=@s)");return r.query.set("@u","'"+encodeURIComponent(e||"")+"'"),r.query.set("@v","'"+encodeURIComponent(t||"")+"'"),r.query.set("@s","'"+encodeURIComponent(o||"")+"'"),r.postCore()},t.prototype.hubSiteData=function(e){return void 0===e&&(e=!1),c(this,void 0,void 0,function(){return d(this,function(t){return[2,this.clone(n,"hubSiteData("+e+")").get().then(function(e){return JSON.parse(e)})]})})},t.prototype.syncHubSiteTheme=function(){return this.clone(n,"syncHubSiteTheme").postCore()},t.prototype.getSiteDesignRuns=function(e){return new vt(this,"").getSiteDesignRun(void 0,e)},t.prototype.getSiteScript=function(e){return new bt(this,"").getSiteScriptFromWeb(void 0,e)},t.prototype.addSiteDesignTask=function(e){return new vt(this,"").addSiteDesignTaskToCurrentWeb(e)},t.prototype.getSiteDesignRunStatus=function(e){return new vt(this,"").getSiteDesignRunStatus(void 0,e)},n=u([E("_api/web")],t)}(pe);function wt(e){return e.length<1?1:Math.max.apply(null,e.map(function(e){return e.order}))+1}function Tt(e){for(var t=0;t<e.length;t++)e[t].order=t+1,Object(o.j)(e[t],"columns")?Tt(e[t].columns):Object(o.j)(e[t],"controls")&&Tt(e[t].controls)}!function(e){e[e.NotPromoted=0]="NotPromoted",e[e.PromoteOnPublish=1]="PromoteOnPublish",e[e.Promoted=2]="Promoted"}(nt||(nt={}));var It=function(e){function t(n,r,i,a,s,l){void 0===a&&(a=!1),void 0===s&&(s=[]),void 0===l&&(l=!1);var u=e.call(this,n,r)||this;return u.json=i,u.sections=s,u.commentsDisabled=l,u._bannerImageDirty=!1,"string"==typeof n?(u._parentUrl="",u._url=Object(o.d)(p(n),r)):u.extend(t.initFrom(n,null),r),u._pageSettings={controlType:0,pageSettingsSlice:{isDefaultDescription:!0,isDefaultThumbnail:!0}},u._layoutPart=t.getDefaultLayoutPart(),void 0===i||a||u.fromJSON(i),u}return l(t,e),t.create=function(e,n,r,i,a){return void 0===i&&(i="Article"),void 0===a&&(a=0),c(this,void 0,void 0,function(){var s,l;return d(this,function(u){switch(u.label){case 0:return n=n.replace(/\.aspx$/i,""),[4,t.initFrom(e,"_api/sitepages/pages").postCore({body:Object(o.n)(Object.assign(C("SP.Publishing.SitePage"),{PageLayoutType:i,PromotedState:a}))})];case 1:return s=u.sent(),(l=new t(e,"",s)).title=n,[4,l.save(!1)];case 2:return u.sent(),l.title=r,[2,l]}})})},t.fromFile=function(e){return e.getItem().then(function(n){return new t(p(e.toUrl()),"",{Id:n.Id},!0).configureFrom(e).load()})},t.getDefaultLayoutPart=function(){return{dataVersion:"1.4",description:"Title Region Description",id:"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",instanceId:"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",properties:{authors:[],layoutType:"FullWidthImage",showPublishDate:!1,showTopicHeader:!1,textAlignment:"Left",title:"",topicHeader:""},serverProcessedContent:{htmlStrings:{},searchablePlainTexts:{},imageSources:{},links:{}},title:"Title area"}},t.initFrom=function(e,n){return new t(p(e.toUrl()),n).configureFrom(e)},Object.defineProperty(t.prototype,"pageLayout",{get:function(){return this.json.PageLayoutType},set:function(e){this.json.PageLayoutType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bannerImageUrl",{get:function(){return this.json.BannerImageUrl},set:function(e){this.json.BannerImageUrl=e,this._bannerImageDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bannerImageSourceType",{get:function(){return this._layoutPart.properties.imageSourceType},set:function(e){this._layoutPart.properties.imageSourceType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topicHeader",{get:function(){return Object(o.q)(this.json.TopicHeader)?this.json.TopicHeader:""},set:function(e){this.json.TopicHeader=e,this._layoutPart.properties.topicHeader=e,Object(o.r)(e)&&(this.showTopicHeader=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._layoutPart.properties.title},set:function(e){this.json.Title=e,this._layoutPart.properties.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutType",{get:function(){return this._layoutPart.properties.layoutType},set:function(e){this._layoutPart.properties.layoutType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerTextAlignment",{get:function(){return this._layoutPart.properties.textAlignment},set:function(e){this._layoutPart.properties.textAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTopicHeader",{get:function(){return this._layoutPart.properties.showTopicHeader},set:function(e){this._layoutPart.properties.showTopicHeader=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPublishDate",{get:function(){return this._layoutPart.properties.showPublishDate},set:function(e){this._layoutPart.properties.showPublishDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasVerticalSection",{get:function(){return this.sections.findIndex(function(e){return 2===e.layoutIndex})>-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalSection",{get:function(){return this.hasVerticalSection?this.addVerticalSection():null},enumerable:!0,configurable:!0}),t.prototype.addSection=function(){var e=new Et(this,wt(this.sections),1);return this.sections.push(e),e},t.prototype.addVerticalSection=function(){var e=this.sections.findIndex(function(e){return 2===e.layoutIndex});if(e>-1)return this.sections[e];var t=new Et(this,wt(this.sections),2);return this.sections.push(t),t},t.prototype.fromJSON=function(e){this.json=e;var t=JSON.parse(e.CanvasContent1),n=JSON.parse(e.LayoutWebpartsContent);return n&&n.length>0&&(this._layoutPart=n[0]),this.setControls(t),this},t.prototype.load=function(){var e=this;return this.getItem("Id","CommentsDisabled").then(function(t){return new w(e,"_api/sitepages/pages("+t.Id+")").get().then(function(n){return e.commentsDisabled=t.CommentsDisabled,e.fromJSON(n)})})},t.prototype.save=function(e){var n=this;if(void 0===e&&(e=!0),null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");var r=Promise.resolve({});return this._bannerImageDirty&&(r=r.then(function(e){return new Promise(function(e,t){var r=n.json.BannerImageUrl;Object(o.m)(r)&&(r=r.replace(/^https?:\/\/[a-z0-9\.]*?\.[a-z]{2,3}\//i,"/"));var i=new lt(p(n.toUrl())),a=new Ct(p(n.toUrl())),s=a.getFileByServerRelativePath(r),l="",u="",c="",d="",h="";Promise.all([i.select("Id","Url").get().then(function(e){return l=e.Id}),a.select("Id","Url").get().then(function(e){u=e.Id,h=e.Url}),s.listItemAllFields.select("UniqueId","ParentList/Id").expand("ParentList").get().then(function(e){c=e.UniqueId,d=e.ParentList.Id})]).then(function(){var t=new w(h,"_layouts/15/getpreview.ashx");t.query.set("guidSite",""+l),t.query.set("guidWeb",""+u),t.query.set("guidFile",""+c),n.bannerImageUrl=t.toUrlAndQuery(),Object(o.q)(n._layoutPart.serverProcessedContent)||(n._layoutPart.serverProcessedContent={}),n._layoutPart.serverProcessedContent.imageSources={imageSource:r},Object(o.q)(n._layoutPart.serverProcessedContent.customMetadata)||(n._layoutPart.serverProcessedContent.customMetadata={}),n._layoutPart.serverProcessedContent.customMetadata.imageSource={listId:d,siteId:l,uniqueId:c,webId:u},n._layoutPart.properties.webId=u,n._layoutPart.properties.siteId=l,n._layoutPart.properties.listId=d,n._layoutPart.properties.uniqueId=c,e()}).catch(t)})})),this.json.IsPageCheckedOutToCurrentUser||(r=r.then(function(e){return t.initFrom(n,"_api/sitepages/pages("+n.json.Id+")/checkoutpage").postCore()})),r=r.then(function(e){var r=Object.assign(C("SP.Publishing.SitePage"),{AuthorByline:n.json.AuthorByline||[],BannerImageUrl:n.bannerImageUrl,CanvasContent1:n.getCanvasContent1(),LayoutWebpartsContent:n.getLayoutWebpartsContent(),Title:n.title,TopicHeader:n.topicHeader}),i=t.initFrom(n,"_api/sitepages/pages("+n.json.Id+")/savepage");return i.configure({headers:{"if-match":"*"}}),i.postCore({body:Object(o.n)(r)})}),e&&(r=r.then(function(e){return t.initFrom(n,"_api/sitepages/pages("+n.json.Id+")/publish").postCore()}).then(function(e){e&&(n.json.IsPageCheckedOutToCurrentUser=!1)})),r.then(function(e){n._bannerImageDirty=!1})},t.prototype.discardPageCheckout=function(){return c(this,void 0,void 0,function(){var e;return d(this,function(n){switch(n.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return[4,t.initFrom(this,"_api/sitepages/pages("+this.json.Id+")/discardPage").postCore({body:Object(o.n)(C("SP.Publishing.SitePage"))})];case 1:return e=n.sent(),this.fromJSON(e),[2]}})})},t.prototype.promoteToNews=function(){return c(this,void 0,void 0,function(){return d(this,function(e){return[2,this.promoteNewsImpl("promoteToNews")]})})},t.prototype.enableComments=function(){var e=this;return this.setCommentsOn(!0).then(function(t){return e.commentsDisabled=!1,t})},t.prototype.disableComments=function(){var e=this;return this.setCommentsOn(!1).then(function(t){return e.commentsDisabled=!0,t})},t.prototype.findControlById=function(e){return this.findControl(function(t){return t.id===e})},t.prototype.findControl=function(e){for(var t=0;t<this.sections.length;t++)for(var n=0;n<this.sections[t].columns.length;n++)for(var o=0;o<this.sections[t].columns[n].controls.length;o++)if(e(this.sections[t].columns[n].controls[o]))return this.sections[t].columns[n].controls[o];return null},t.prototype.like=function(){return this.getItem().then(function(e){return e.like()})},t.prototype.unlike=function(){return this.getItem().then(function(e){return e.unlike()})},t.prototype.getLikedByInformation=function(){return this.getItem().then(function(e){return e.getLikedByInformation()})},t.prototype.copyPage=function(e,n,o,r,i){return void 0===r&&(r=!0),void 0===i&&(i=0),c(this,void 0,void 0,function(){var a;return d(this,function(s){switch(s.label){case 0:return[4,t.create(e,n,o,this.pageLayout,i)];case 1:return(a=s.sent()).setControls(this.getControls()),[4,a.save(r)];case 2:return s.sent(),[2,a]}})})},t.prototype.setBannerImage=function(e,t){this.bannerImageUrl=e,this.bannerImageSourceType=2,Object(o.q)(t)&&(Object(o.j)(t,"translateX")&&(this._layoutPart.properties.translateX=t.translateX),Object(o.j)(t,"translateY")&&(this._layoutPart.properties.translateY=t.translateY),Object(o.j)(t,"imageSourceType")&&(this.bannerImageSourceType=t.imageSourceType),Object(o.j)(t,"altText")&&(this._layoutPart.properties.altText=t.altText))},t.prototype.getCanvasContent1=function(){return JSON.stringify(this.getControls())},t.prototype.getLayoutWebpartsContent=function(){return this._layoutPart?JSON.stringify([this._layoutPart]):JSON.stringify(null)},t.prototype.setControls=function(e){if(e&&e.length){for(var t=0;t<e.length;t++)switch(Object(o.j)(e[t],"controlType")?e[t].controlType:0){case 0:Object(o.j)(e[t],"pageSettingsSlice")?this._pageSettings=e[t]:this.mergeColumnToTree(new xt(e[t]));break;case 3:var n=new Ot(e[t]);this.mergePartToTree(n,n.data.position);break;case 4:var r=e[t],i=new kt(r.innerHTML,r);this.mergePartToTree(i,i.data.position)}Tt(this.sections)}},t.prototype.getControls=function(){var e=this;Tt(this.sections);var t=[];return this.sections.forEach(function(n){n.columns.forEach(function(o){o.controls.length<1?t.push({displayMode:o.data.displayMode,emphasis:e.getEmphasisObj(n.emphasis),position:o.data.position}):o.controls.forEach(function(o){o.data.emphasis=e.getEmphasisObj(n.emphasis),t.push(o.data)})})}),t.push(this._pageSettings),t},t.prototype.getEmphasisObj=function(e){return e<1||e>3?{}:{zoneEmphasis:e}},t.prototype.setCommentsOn=function(e){return this.getItem().then(function(t){return new qe(t,"SetCommentsDisabled("+!e+")").update({})})},t.prototype.promoteNewsImpl=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return Object(o.r)(this.json.VersionInfo.LastVersionCreatedBy)&&new Date(this.json.VersionInfo.LastVersionCreated).getFullYear()<2e3?[4,this.save(!0)]:[3,2];case 1:n.sent(),n.label=2;case 2:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return[4,t.initFrom(this,"_api/sitepages/pages("+this.json.Id+")/"+e).postCore({body:Object(o.n)(C("SP.Publishing.SitePage"))})];case 3:return[2,n.sent()]}})})},t.prototype.mergePartToTree=function(e,t){var n=null,r=12,i=0,a=0,s=1;t&&(Object(o.j)(t,"zoneIndex")&&(a=t.zoneIndex),Object(o.j)(t,"sectionIndex")&&(i=t.sectionIndex),Object(o.j)(t,"sectionFactor")&&(r=t.sectionFactor),Object(o.j)(t,"layoutIndex")&&(s=t.layoutIndex));var l=e.data&&e.data.emphasis&&e.data.emphasis.zoneEmphasis?e.data.emphasis.zoneEmphasis:0,u=this.getOrCreateSection(a,s,l),c=u.columns.filter(function(e){return e.order===i});n=c.length<1?u.addColumn(r,s):c[0],e.column=n,n.addControl(e)},t.prototype.mergeColumnToTree=function(e){var t=Object(o.j)(e.data,"position")&&Object(o.j)(e.data.position,"zoneIndex")?e.data.position.zoneIndex:0,n=Object(o.j)(e.data,"position")&&Object(o.j)(e.data.position,"layoutIndex")?e.data.position.layoutIndex:1,r=this.getOrCreateSection(t,n,e.data.emphasis.zoneEmphasis||0);e.section=r,r.columns.push(e)},t.prototype.getOrCreateSection=function(e,t,n){var o=null,r=this.sections.filter(function(n){return n.order===e&&n.layoutIndex===t});return r.length<1?((o=2===t?this.addVerticalSection():this.addSection()).order=e,o.emphasis=n):o=r[0],o},t.prototype.getItem=function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.initFrom(this,"/_api/lists/EnsureClientRenderedSitePagesLibrary").select("EnableModeration","EnableMinorVersions","Id");return i.postCore().then(function(t){var r=new We(t["odata.id"]).configureFrom(e).items.getById(e.json.Id);return r.select.apply(r,n).get().then(function(t){return Object(o.f)(new qe(h(t)).configureFrom(e),t)})})},t}(w),Et=function(){function e(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=0),this.page=e,this.columns=r,this._emphasis=i,this._memId=Object(o.h)(),this._order=t,this._layoutIndex=n}return Object.defineProperty(e.prototype,"order",{get:function(){return this._order},set:function(e){this._order=e;for(var t=0;t<this.columns.length;t++)this.columns[t].data.position.zoneIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutIndex",{get:function(){return this._layoutIndex},set:function(e){this._layoutIndex=e;for(var t=0;t<this.columns.length;t++)this.columns[t].data.position.layoutIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultColumn",{get:function(){return this.columns.length<1&&this.addColumn(12),this.columns[0]},enumerable:!0,configurable:!0}),e.prototype.addColumn=function(e,t){void 0===t&&(t=1);var n=new xt;return n.section=this,n.data.position.zoneIndex=this.order,n.data.position.layoutIndex=t,n.data.position.sectionFactor=e,n.order=wt(this.columns),this.columns.push(n),n},e.prototype.addControl=function(e){return this.defaultColumn.addControl(e),this},Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._emphasis},set:function(e){this._emphasis=e},enumerable:!0,configurable:!0}),e.prototype.remove=function(){var e=this;this.page.sections=this.page.sections.filter(function(t){return t._memId!==e._memId}),Tt(this.page.sections)},e}(),xt=function(){function e(t,n){void 0===t&&(t=JSON.parse(JSON.stringify(e.Default))),void 0===n&&(n=[]),this.json=t,this.controls=n,this._section=null,this._memId=Object(o.h)()}return Object.defineProperty(e.prototype,"data",{get:function(){return this.json},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"section",{get:function(){return this._section},set:function(e){this._section=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"order",{get:function(){return this.data.position.sectionIndex},set:function(e){this.data.position.sectionIndex=e;for(var t=0;t<this.controls.length;t++)this.controls[t].data.position.zoneIndex=this.data.position.zoneIndex,this.controls[t].data.position.layoutIndex=this.data.position.layoutIndex,this.controls[t].data.position.sectionIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"factor",{get:function(){return this.data.position.sectionFactor},set:function(e){this.data.position.sectionFactor=e},enumerable:!0,configurable:!0}),e.prototype.addControl=function(e){return e.column=this,this.controls.push(e),this},e.prototype.getControl=function(e){return this.controls[e]},e.prototype.remove=function(){var e=this;this.section.columns=this.section.columns.filter(function(t){return t._memId!==e._memId}),Tt(this.section.columns)},e.Default={controlType:0,displayMode:2,emphasis:{},position:{layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1}},e}(),Pt=function(){function e(e){this.json=e}return Object.defineProperty(e.prototype,"id",{get:function(){return this.json.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.json},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.onColumnChange(this._column)},enumerable:!0,configurable:!0}),e.prototype.remove=function(){var e=this;this.column.controls=this.column.controls.filter(function(t){return t.id!==e.id}),Tt(this.column.controls)},e.prototype.setData=function(e){this.json=e},e}(),kt=function(e){function t(n,r){void 0===r&&(r=JSON.parse(JSON.stringify(t.Default)));var i=this;return Object(o.r)(r.id)&&(r.id=Object(o.h)(),r.anchorComponentId=r.id),(i=e.call(this,r)||this).text=n,i}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.data.innerHTML},set:function(e){e.startsWith("<p>")||(e="<p>"+e+"</p>"),this.data.innerHTML=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"order",{get:function(){return this.data.position.controlIndex},set:function(e){this.data.position.controlIndex=e},enumerable:!0,configurable:!0}),t.prototype.onColumnChange=function(e){this.data.position.sectionFactor=e.factor,this.data.position.controlIndex=wt(e.controls),this.data.position.zoneIndex=e.data.position.zoneIndex,this.data.position.sectionIndex=e.order,this.data.position.layoutIndex=e.data.position.layoutIndex},t.Default={addedFromPersistedData:!1,anchorComponentId:"",controlType:4,displayMode:2,editorType:"CKEditor",emphasis:{},id:"",innerHTML:"",position:{controlIndex:1,layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1}},t}(Pt),Ot=function(e){function t(n){return void 0===n&&(n=JSON.parse(JSON.stringify(t.Default))),e.call(this,n)||this}return l(t,e),t.fromComponentDef=function(e){var n=new t;return n.import(e),n},Object.defineProperty(t.prototype,"title",{get:function(){return this.data.webPartData.title},set:function(e){this.data.webPartData.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.data.webPartData.description},set:function(e){this.data.webPartData.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"order",{get:function(){return this.data.position.controlIndex},set:function(e){this.data.position.controlIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.data.reservedHeight},set:function(e){this.data.reservedHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.data.reservedWidth},set:function(e){this.data.reservedWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataVersion",{get:function(){return this.data.webPartData.dataVersion},set:function(e){this.data.webPartData.dataVersion=e},enumerable:!0,configurable:!0}),t.prototype.setProperties=function(e){return this.data.webPartData.properties=Object(o.f)(this.data.webPartData.properties,e),this},t.prototype.getProperties=function(){return this.data.webPartData.properties},t.prototype.onColumnChange=function(e){this.data.position={controlIndex:wt(e.controls),layoutIndex:e.data.position.layoutIndex,sectionFactor:e.factor,sectionIndex:e.data.position.sectionIndex,zoneIndex:e.data.position.zoneIndex}},t.prototype.import=function(e){var t=Object(o.h)(),n=e.Id.replace(/^\{|\}$/g,"").toLowerCase(),r=JSON.parse(e.Manifest).preconfiguredEntries[0];this.setData(Object.assign({},this.data,{id:t,webPartData:{dataVersion:"1.0",description:r.description.default,id:n,instanceId:t,properties:r.properties,title:r.title.default},webPartId:n}))},t.Default={addedFromPersistedData:!1,controlType:3,displayMode:2,emphasis:{},id:null,position:{controlIndex:1,layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1},reservedHeight:500,reservedWidth:500,webPartData:null,webPartId:null},t}(Pt);new Map([["text","Querytext"],["template","QueryTemplate"],["sourceId","SourceId"],["trimDuplicatesIncludeId",""],["startRow",""],["rowLimit",""],["rankingModelId",""],["rowsPerPage",""],["selectProperties",""],["culture",""],["timeZoneId",""],["refinementFilters",""],["refiners",""],["hiddenConstraints",""],["sortList",""],["timeout",""],["hithighlightedProperties",""],["clientType",""],["personalizationData",""],["resultsURL",""],["queryTag",""],["properties",""],["queryTemplatePropertiesUrl",""],["reorderingRules",""],["hitHighlightedMultivaluePropertyLimit",""],["collapseSpecification",""],["uiLanguage",""],["desiredSnippetLength",""],["maxSnippetLength",""],["summaryLength",""]]),new Map([]);var Nt,Rt,Dt,Mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.execute=function(e){var t=this,n=this.parseQuery(e),r=Object(o.n)({request:Object(o.f)(C("Microsoft.Office.Server.Search.REST.SearchRequest"),Object.assign({},n,{HitHighlightedProperties:this.fixArrProp(n.HitHighlightedProperties),Properties:this.fixArrProp(n.Properties),RefinementFilters:this.fixArrProp(n.RefinementFilters),ReorderingRules:this.fixArrProp(n.ReorderingRules),SelectProperties:this.fixArrProp(n.SelectProperties),SortList:this.fixArrProp(n.SortList)}))});if(this._useCaching){this._forceCaching=!0;var a="PnPjs.SearchWithCaching("+Object(o.i)(r)+")";Object(o.q)(this._cachingOptions)?/\/_api\/search\/postquery$/i.test(this._cachingOptions.key)&&(this._cachingOptions.key=a):this._cachingOptions=new i.c(a)}return this.postCore({body:r}).then(function(e){return new Ft(e,t.toUrl(),n)})},t.prototype.fixArrProp=function(e){return void 0===e?{results:[]}:(e=Object(o.k)(e)?e:[e],Object(o.j)(e,"results")?e:{results:e})},t.prototype.parseQuery=function(e){return"string"==typeof e?{Querytext:e}:e.toSearchQuery?e.toSearchQuery():e},u([E("_api/search/postquery")],t)}(I),Ft=function(){function e(e,t,n,o,r){void 0===o&&(o=null),void 0===r&&(r=null),this._url=t,this._query=n,this._raw=o,this._primary=r,this._raw=e.postquery?e.postquery:e}return Object.defineProperty(e.prototype,"ElapsedTime",{get:function(){return this.RawSearchResults.ElapsedTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"RowCount",{get:function(){return this.RawSearchResults.PrimaryQueryResult.RelevantResults.RowCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"TotalRows",{get:function(){return this.RawSearchResults.PrimaryQueryResult.RelevantResults.TotalRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"TotalRowsIncludingDuplicates",{get:function(){return this.RawSearchResults.PrimaryQueryResult.RelevantResults.TotalRowsIncludingDuplicates},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"RawSearchResults",{get:function(){return this._raw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PrimarySearchResults",{get:function(){return null===this._primary&&(this._primary=this.formatSearchResults(this._raw.PrimaryQueryResult.RelevantResults.Table.Rows)),this._primary},enumerable:!0,configurable:!0}),e.prototype.getPage=function(e,t){if(this.TotalRows<this.RowCount)return Promise.resolve(null);var n=void 0!==t?t:Object(o.j)(this._query,"RowLimit")?this._query.RowLimit:10,r=Object(o.f)(this._query,{RowLimit:n,StartRow:n*(e-1)});return r.StartRow>this.TotalRows?Promise.resolve(null):new Mt(this._url,null).execute(r)},e.prototype.formatSearchResults=function(e){for(var t=new Array,n=0,o=e.results?e.results:e;n<o.length;n++){var r=o[n],i=r.Cells.results?r.Cells.results:r.Cells;t.push(i.reduce(function(e,t){return Object.defineProperty(e,t.Key,{configurable:!1,enumerable:!0,value:t.Value,writable:!1}),e},{}))}return t},e}();!function(e){e[e.Ascending=0]="Ascending",e[e.Descending=1]="Descending",e[e.FQLFormula=2]="FQLFormula"}(Nt||(Nt={})),function(e){e[e.ResultContainsKeyword=0]="ResultContainsKeyword",e[e.TitleContainsKeyword=1]="TitleContainsKeyword",e[e.TitleMatchesKeyword=2]="TitleMatchesKeyword",e[e.UrlStartsWith=3]="UrlStartsWith",e[e.UrlExactlyMatches=4]="UrlExactlyMatches",e[e.ContentTypeIs=5]="ContentTypeIs",e[e.FileExtensionMatches=6]="FileExtensionMatches",e[e.ResultHasTag=7]="ResultHasTag",e[e.ManualCondition=8]="ManualCondition"}(Rt||(Rt={})),function(e){e[e.None=0]="None",e[e.StringType=1]="StringType",e[e.Int32Type=2]="Int32Type",e[e.BooleanType=3]="BooleanType",e[e.StringArrayType=4]="StringArrayType",e[e.UnSupportedType=5]="UnSupportedType"}(Dt||(Dt={})),function(){function e(){}e.Documents="e7ec8cee-ded8-43c9-beb5-436b54b31e84",e.ItemsMatchingContentType="5dc9f503-801e-4ced-8a2c-5d1237132419",e.ItemsMatchingTag="e1327b9c-2b8c-4b23-99c9-3730cb29c3f7",e.ItemsRelatedToCurrentUser="48fec42e-4a92-48ce-8363-c2703a40e67d",e.ItemsWithSameKeywordAsThisItem="5c069288-1d17-454a-8ac6-9c642a065f48",e.LocalPeopleResults="b09a7990-05ea-4af9-81ef-edfab16c4e31",e.LocalReportsAndDataResults="203fba36-2763-4060-9931-911ac8c0583b",e.LocalSharePointResults="8413cd39-2156-4e00-b54d-11efd9abdb89",e.LocalVideoResults="78b793ce-7956-4669-aa3b-451fc5defebf",e.Pages="5e34578e-4d08-4edc-8bf3-002acf3cdbcc",e.Pictures="38403c8c-3975-41a8-826e-717f2d41568a",e.Popular="97c71db1-58ce-4891-8b64-585bc2326c12",e.RecentlyChangedItems="ba63bbae-fa9c-42c0-b027-9a878f16557c",e.RecommendedItems="ec675252-14fa-4fbe-84dd-8d098ed74181",e.Wiki="9479bf85-e257-4318-b5a8-81a180f5faa1"}();var Lt,At,Bt,jt,Ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.execute=function(e){return this.mapQueryToQueryString(e),this.get().then(function(e){var t=Object(o.j)(e,"suggest")?function(t){return e.suggest[t].results}:function(t){return e[t]};return{PeopleNames:t("PeopleNames"),PersonalResults:t("PersonalResults"),Queries:t("Queries")}})},t.prototype.mapQueryToQueryString=function(e){var t=this;this.query.set("querytext","'"+e.querytext+"'");var n,r=(n=e,function(e){return function(r){Object(o.j)(n,e)&&t.query.set(r,n[e].toString())}});r("count")("inumberofquerysuggestions"),r("personalCount")("inumberofresultsuggestions"),r("preQuery")("fprequerysuggestions"),r("hitHighlighting")("fhithighlighting"),r("capitalize")("fcapitalizefirstletters"),r("culture")("culture"),r("stemming")("enablestemming"),r("includePeople")("showpeoplenamesuggestions"),r("queryRules")("enablequeryrules"),r("prefixMatch")("fprefixmatchallterms")},u([E("_api/search/suggest")],t)}(I),Wt=function(e){function t(t,n){void 0===n&&(n="_api/sp.userprofiles.peoplemanager");var o=e.call(this,t,n)||this;return o.clientPeoplePickerQuery=new Gt(t).configureFrom(o),o.profileLoader=new Ht(t).configureFrom(o),o}return l(t,e),Object.defineProperty(t.prototype,"editProfileLink",{get:function(){return this.clone(t,"EditProfileLink").get()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMyPeopleListPublic",{get:function(){return this.clone(t,"IsMyPeopleListPublic").get()},enumerable:!0,configurable:!0}),t.prototype.amIFollowedBy=function(e){var n=this.clone(t,"amifollowedby(@v)");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},t.prototype.amIFollowing=function(e){var n=this.clone(t,"amifollowing(@v)");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},t.prototype.getFollowedTags=function(e){return void 0===e&&(e=20),this.clone(t,"getfollowedtags("+e+")").get()},t.prototype.getFollowersFor=function(e){var n=this.clone(t,"getfollowersfor(@v)");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},Object.defineProperty(t.prototype,"myFollowers",{get:function(){return new T(this,"getmyfollowers")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"myProperties",{get:function(){return new t(this,"getmyproperties")},enumerable:!0,configurable:!0}),t.prototype.getPeopleFollowedBy=function(e){var n=this.clone(t,"getpeoplefollowedby(@v)");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},t.prototype.getPropertiesFor=function(e){var n=this.clone(t,"getpropertiesfor(@v)");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},Object.defineProperty(t.prototype,"trendingTags",{get:function(){var e=this.clone(t,null);return e.concat(".gettrendingtags"),e.get()},enumerable:!0,configurable:!0}),t.prototype.getUserProfilePropertyFor=function(e,n){var o=this.clone(t,"getuserprofilepropertyfor(accountname=@v, propertyname='"+n+"')");return o.query.set("@v","'"+encodeURIComponent(e)+"'"),o.get()},t.prototype.hideSuggestion=function(e){var n=this.clone(t,"hidesuggestion(@v)");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.postCore()},t.prototype.isFollowing=function(e,n){var o=this.clone(t,null);return o.concat(".isfollowing(possiblefolloweraccountname=@v, possiblefolloweeaccountname=@y)"),o.query.set("@v","'"+encodeURIComponent(e)+"'"),o.query.set("@y","'"+encodeURIComponent(n)+"'"),o.get()},t.prototype.setMyProfilePic=function(e){var n=this;return new Promise(function(o,r){var i=null,a=new FileReader;a.onload=function(e){return i=e.target.result},a.readAsArrayBuffer(e),new t(n,"setmyprofilepicture").postCore({body:String.fromCharCode.apply(null,new Uint16Array(i))}).then(function(e){return o()}).catch(function(e){return r(e)})})},t.prototype.setSingleValueProfileProperty=function(e,n,r){var i=Object(o.n)({accountName:e,propertyName:n,propertyValue:r});return this.clone(t,"SetSingleValueProfileProperty").postCore({body:i})},t.prototype.setMultiValuedProfileProperty=function(e,n,r){var i=Object(o.n)({accountName:e,propertyName:n,propertyValues:r});return this.clone(t,"SetMultiValuedProfileProperty").postCore({body:i})},t.prototype.createPersonalSiteEnqueueBulk=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.profileLoader.createPersonalSiteEnqueueBulk(e)},Object.defineProperty(t.prototype,"ownerUserProfile",{get:function(){return this.profileLoader.ownerUserProfile},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userProfile",{get:function(){return this.profileLoader.userProfile},enumerable:!0,configurable:!0}),t.prototype.createPersonalSite=function(e){return void 0===e&&(e=!1),this.profileLoader.createPersonalSite(e)},t.prototype.shareAllSocialData=function(e){return this.profileLoader.shareAllSocialData(e)},t.prototype.clientPeoplePickerResolveUser=function(e){return this.clientPeoplePickerQuery.clientPeoplePickerResolveUser(e)},t.prototype.clientPeoplePickerSearchUser=function(e){return this.clientPeoplePickerQuery.clientPeoplePickerSearchUser(e)},t}(I),Ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.createPersonalSiteEnqueueBulk=function(e){return this.clone(n,"createpersonalsiteenqueuebulk",!1).postCore({body:Object(o.n)({emailIDs:e})})},Object.defineProperty(t.prototype,"ownerUserProfile",{get:function(){var e=this.getParent(n,this.parentUrl,"_api/sp.userprofiles.profileloader.getowneruserprofile");return this.hasBatch&&(e=e.inBatch(this.batch)),e.postCore()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userProfile",{get:function(){return this.clone(n,"getuserprofile").postCore()},enumerable:!0,configurable:!0}),t.prototype.createPersonalSite=function(e){return void 0===e&&(e=!1),this.clone(n,"getuserprofile/createpersonalsiteenque("+e+")").postCore()},t.prototype.shareAllSocialData=function(e){return this.clone(n,"getuserprofile/shareallsocialdata("+e+")").postCore()},n=u([E("_api/sp.userprofiles.profileloader.getprofileloader")],t)}(w),Gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.clientPeoplePickerResolveUser=function(e){var t=this.clone(n,null);return t.concat(".clientpeoplepickerresolveuser"),t.postCore({body:this.createClientPeoplePickerQueryParametersRequestBody(e)}).then(function(e){return"object"==typeof e?e.ClientPeoplePickerResolveUser:e}).then(JSON.parse)},t.prototype.clientPeoplePickerSearchUser=function(e){var t=this.clone(n,null);return t.concat(".clientpeoplepickersearchuser"),t.postCore({body:this.createClientPeoplePickerQueryParametersRequestBody(e)}).then(function(e){return"object"==typeof e?e.ClientPeoplePickerSearchUser:e}).then(JSON.parse)},t.prototype.createClientPeoplePickerQueryParametersRequestBody=function(e){return Object(o.n)({queryParams:Object(o.f)(C("SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters"),e)})},n=u([E("_api/sp.ui.applicationpages.clientpeoplepickerwebserviceinterface")],t)}(w),zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,Object.defineProperty(t.prototype,"my",{get:function(){return new Kt(this)},enumerable:!0,configurable:!0}),t.prototype.getFollowedSitesUri=function(){return this.clone(n,"FollowedSitesUri").get().then(function(e){return e.FollowedSitesUri||e})},t.prototype.getFollowedDocumentsUri=function(){return this.clone(n,"FollowedDocumentsUri").get().then(function(e){return e.FollowedDocumentsUri||e})},t.prototype.follow=function(e){return this.clone(n,"follow").postCore({body:this.createSocialActorInfoRequestBody(e)})},t.prototype.isFollowed=function(e){return this.clone(n,"isfollowed").postCore({body:this.createSocialActorInfoRequestBody(e)})},t.prototype.stopFollowing=function(e){return this.clone(n,"stopfollowing").postCore({body:this.createSocialActorInfoRequestBody(e)})},t.prototype.createSocialActorInfoRequestBody=function(e){return Object(o.n)({actor:Object.assign(C("SP.Social.SocialActorInfo"),{Id:null},e)})},n=u([E("_api/social.following")],t)}(I),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.followed=function(e){return this.clone(n,"followed(types="+e+")").get().then(function(e){return Object(o.j)(e,"Followed")?e.Followed.results:e})},t.prototype.followedCount=function(e){return this.clone(n,"followedcount(types="+e+")").get().then(function(e){return e.FollowedCount||e})},t.prototype.followers=function(){return this.clone(n,"followers").get().then(function(e){return Object(o.j)(e,"Followers")?e.Followers.results:e})},t.prototype.suggestions=function(){return this.clone(n,"suggestions").get().then(function(e){return Object(o.j)(e,"Suggestions")?e.Suggestions.results:e})},n=u([E("my")],t)}(I);!function(e){e[e.User=0]="User",e[e.Document=1]="Document",e[e.Site=2]="Site",e[e.Tag=3]="Tag"}(Lt||(Lt={})),function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.Document=2]="Document",e[e.Site=4]="Site",e[e.Tag=8]="Tag",e[e.ExcludeContentWithoutFeeds=268435456]="ExcludeContentWithoutFeeds",e[e.IncludeGroupsSites=536870912]="IncludeGroupsSites",e[e.WithinLast24Hours=1073741824]="WithinLast24Hours"}(At||(At={})),function(e){e[e.Ok=0]="Ok",e[e.AlreadyFollowing=1]="AlreadyFollowing",e[e.LimitReached=2]="LimitReached",e[e.InternalError=3]="InternalError"}(Bt||(Bt={})),function(e){e[e.OK=0]="OK",e[e.InvalidRequest=1]="InvalidRequest",e[e.AccessDenied=2]="AccessDenied",e[e.ItemNotFound=3]="ItemNotFound",e[e.InvalidOperation=4]="InvalidOperation",e[e.ItemNotModified=5]="ItemNotModified",e[e.InternalError=6]="InternalError",e[e.CacheReadError=7]="CacheReadError",e[e.CacheUpdateError=8]="CacheUpdateError",e[e.PersonalSiteNotFound=9]="PersonalSiteNotFound",e[e.FailedToCreatePersonalSite=10]="FailedToCreatePersonalSite",e[e.NotAuthorizedToCreatePersonalSite=11]="NotAuthorizedToCreatePersonalSite",e[e.CannotCreatePersonalSite=12]="CannotCreatePersonalSite",e[e.LimitReached=13]="LimitReached",e[e.AttachmentError=14]="AttachmentError",e[e.PartialData=15]="PartialData",e[e.FeatureDisabled=16]="FeatureDisabled",e[e.StorageQuotaExceeded=17]="StorageQuotaExceeded",e[e.DatabaseError=18]="DatabaseError"}(jt||(jt={}));var qt=function(e){function t(n,o){return e.call(this,t.getBaseUrl(n),"_api/SP.Utilities.Utility."+o)||this}return l(t,e),t.getBaseUrl=function(e){if("string"==typeof e)return e;var t=e.toUrl(),n=t.indexOf("_api/");return n<0?t:t.substr(0,n)},t.prototype.excute=function(e){return this.postCore({body:Object(o.n)(e)})},t.prototype.sendEmail=function(e){var n={properties:Object(o.f)(C("SP.Utilities.EmailProperties"),{Body:e.Body,From:e.From,Subject:e.Subject})};return e.To&&e.To.length>0&&(n.properties=Object(o.f)(n.properties,{To:{results:e.To}})),e.CC&&e.CC.length>0&&(n.properties=Object(o.f)(n.properties,{CC:{results:e.CC}})),e.BCC&&e.BCC.length>0&&(n.properties=Object(o.f)(n.properties,{BCC:{results:e.BCC}})),e.AdditionalHeaders&&(n.properties=Object(o.f)(n.properties,{AdditionalHeaders:e.AdditionalHeaders})),this.clone(t,"SendEmail",!0).excute(n)},t.prototype.getCurrentUserEmailAddresses=function(){return this.clone(t,"GetCurrentUserEmailAddresses",!0).excute({}).then(function(e){return Object(o.j)(e,"GetCurrentUserEmailAddresses")?e.GetCurrentUserEmailAddresses:e})},t.prototype.resolvePrincipal=function(e,n,r,i,a,s){void 0===s&&(s=!1);var l={addToUserInfoList:a,input:e,inputIsEmailOnly:i,matchUserInfoList:s,scopes:n,sources:r};return this.clone(t,"ResolvePrincipalInCurrentContext",!0).excute(l).then(function(e){return Object(o.j)(e,"ResolvePrincipalInCurrentContext")?e.ResolvePrincipalInCurrentContext:e})},t.prototype.searchPrincipals=function(e,n,r,i,a){var s={groupName:i,input:e,maxCount:a,scopes:n,sources:r};return this.clone(t,"SearchPrincipalsUsingContextWeb",!0).excute(s).then(function(e){return Object(o.j)(e,"SearchPrincipalsUsingContextWeb")?e.SearchPrincipalsUsingContextWeb:e})},t.prototype.createEmailBodyForInvitation=function(e){var n={pageAddress:e};return this.clone(t,"CreateEmailBodyForInvitation",!0).excute(n).then(function(e){return Object(o.j)(e,"CreateEmailBodyForInvitation")?e.CreateEmailBodyForInvitation:e})},t.prototype.expandGroupsToPrincipals=function(e,n){void 0===n&&(n=30);var r={inputs:e,maxCount:n};return this.clone(t,"ExpandGroupsToPrincipals",!0).excute(r).then(function(e){return Object(o.j)(e,"ExpandGroupsToPrincipals")?e.ExpandGroupsToPrincipals:e})},t.prototype.createWikiPage=function(e){return this.clone(t,"CreateWikiPageInContextWeb",!0).excute({parameters:e}).then(function(e){return{data:Object(o.j)(e,"CreateWikiPageInContextWeb")?e.CreateWikiPageInContextWeb:e,file:new $e(h(e))}})},t.prototype.containsInvalidFileFolderChars=function(e,n){return void 0===n&&(n=!1),n?(t.InvalidFileFolderNameCharsOnPremiseRegex.lastIndex=0,t.InvalidFileFolderNameCharsOnPremiseRegex.test(e)):(t.InvalidFileFolderNameCharsOnlineRegex.lastIndex=0,t.InvalidFileFolderNameCharsOnlineRegex.test(e))},t.prototype.stripInvalidFileFolderChars=function(e,n,o){return void 0===n&&(n=""),void 0===o&&(o=!1),o?e.replace(t.InvalidFileFolderNameCharsOnPremiseRegex,n):e.replace(t.InvalidFileFolderNameCharsOnlineRegex,n)},t.InvalidFileFolderNameCharsOnlineRegex=/["*:<>?/\\|\x00-\x1f\x7f-\x9f]/g,t.InvalidFileFolderNameCharsOnPremiseRegex=/["#%*:<>?/\\|\x00-\x1f\x7f-\x9f]/g,t}(w),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){return new Qt(this,"GetById?hubSiteId='"+e+"'")},u([E("_api/hubsites")],t)}(T),Qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(I),Xt=new(function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=""),this._options=e,this._baseUrl=t}return e.prototype.configure=function(t,n){return void 0===n&&(n=""),new e(t,n)},e.prototype.setup=function(e){!function(e){o.c.extend(e)}(e)},e.prototype.searchSuggest=function(e){var t;return t="string"==typeof e?{querytext:e}:e,this.create(Ut).execute(t)},e.prototype.search=function(e){return this.create(Mt).execute(e)},e.prototype.searchWithCaching=function(e,t){return this.create(Mt).usingCaching(t).execute(e)},Object.defineProperty(e.prototype,"site",{get:function(){return this.create(lt)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"web",{get:function(){return this.create(Ct)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"profiles",{get:function(){return this.create(Wt)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"social",{get:function(){return this.create(zt)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigation",{get:function(){return this.create(pt)},enumerable:!0,configurable:!0}),e.prototype.createBatch=function(){return this.web.createBatch()},Object.defineProperty(e.prototype,"utility",{get:function(){return this.create(qt,"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteScripts",{get:function(){return this.create(bt,"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteDesigns",{get:function(){return this.create(vt,"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hubSites",{get:function(){return this.create(Vt)},enumerable:!0,configurable:!0}),e.prototype.getTenantAppCatalogWeb=function(){var e=this;return this.create(Ct,"_api/SP_TenantSettings_Current").get().then(function(t){return new Ct(t.CorporateCatalogUrl).configure(e._options)})},e.prototype.create=function(e,t){return new e(this._baseUrl,t).configure(this._options)},e}())}).call(this,n("yLpj"))},AAI4:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"g",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"i",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"h",function(){return S}),n.d(t,"e",function(){return C});var o=n("2m/F"),r=n("uQ29"),i=function(){function e(e){this.key=e,this.expiration=Object(o.e)(new Date,"second",o.c.defaultCachingTimeoutSeconds),this.storeName=o.c.defaultCachingStore}return Object.defineProperty(e.prototype,"store",{get:function(){return"local"===this.storeName?e.storage.local:e.storage.session},enumerable:!0,configurable:!0}),e.storage=new o.b,e}(),a=function(){function e(e,t){this.parser=e,this.cacheOptions=t}return e.prototype.parse=function(e){var t=this;return this.parser.parse(e).then(function(e){return t.cacheData(e)})},e.prototype.cacheData=function(e){return null!==this.cacheOptions.store&&this.cacheOptions.store.put(this.cacheOptions.key,e,this.cacheOptions.expiration),e},e}(),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var c=function(e){function t(t,n,o,r){void 0===o&&(o=n.status),void 0===r&&(r=n.statusText);var i=e.call(this,t)||this;return i.response=n,i.status=o,i.statusText=r,i.isHttpRequestError=!0,i}return l(t,e),t.init=function(e){return e.clone().text().then(function(n){return new t("Error making HttpClient request in queryable ["+e.status+"] "+e.statusText+" ::> "+n,e.clone())})},t}(Error),d=function(){function e(){this.rawJson={}}return e.prototype.parse=function(e){var t=this;return new Promise(function(n,o){t.handleError(e,o)&&t.parseImpl(e,n,o)})},e.prototype.parseImpl=function(e,t,n){var o=this;e.headers.has("Content-Length")&&0===parseFloat(e.headers.get("Content-Length"))||204===e.status?t({}):e.text().then(function(e){return e.replace(/\s/gi,"").length>0?JSON.parse(e):{}}).then(function(e){return t(o.parseODataJSON(e))}).catch(function(e){return n(e)})},e.prototype.handleError=function(e,t){return e.ok||c.init(e).then(t),e.ok},e.prototype.parseODataJSON=function(e){this.rawJson=e;var t=e;return Object(o.j)(e,"d")?t=Object(o.j)(e.d,"results")?e.d.results:e.d:Object(o.j)(e,"value")&&(t=e.value),t},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){e.text().then(t)},t}(d),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){e.blob().then(t)},t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){e.json().then(t)},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){Object(o.l)(e.arrayBuffer)?e.arrayBuffer().then(t):e.buffer().then(t)},t}(d);function y(e,t){return new Promise(function(n){e.result=t,e.hasResult=!0,n(e)})}function v(e){return e.pipeline.length>0?e.pipeline.shift()(e):Promise.resolve(e)}function b(e){return void 0===e&&(e=!1),function(t,n,i){var a=i.value;i.value=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return!e&&i.length>0&&Object(o.j)(i[0],"hasResult")&&i[0].hasResult?(r.a.write("["+i[0].requestId+"] ("+(new Date).getTime()+") Skipping request pipeline method "+n+", existing result in pipeline.",0),Promise.resolve(i[0])):(r.a.write("["+i[0].requestId+"] ("+(new Date).getTime()+") Calling request pipeline method "+n+".",0),a.apply(t,i).then(function(e){return v(e)}))}}}!function(e){function t(t){var n=e.call(this)||this;return n.parser=t,n}l(t,e),t.prototype.parseImpl=function(e,t){this.parser(e).then(t)}}(d);var _=function(){function e(){}return e.logStart=function(e){return new Promise(function(t){r.a.log({data:1===r.a.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Beginning "+e.verb+" request ("+e.requestAbsoluteUrl+")"}),t(e)})},e.caching=function(e){return new Promise(function(t){if(e.isCached){r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Caching is enabled for request, checking cache...",1);var n=new i(e.requestAbsoluteUrl.toLowerCase());if(void 0!==e.cachingOptions&&(n=Object(o.f)(n,e.cachingOptions)),null!==n.store){var s=n.store.get(n.key);if(null!==s)return r.a.log({data:1===r.a.activeLogLevel?{}:s,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Value returned from cache."}),Object(o.l)(e.batchDependency)&&e.batchDependency(),Object(o.j)(e.parser,"hydrate")&&(s=e.parser.hydrate(s)),y(e,s).then(function(e){return t(e)})}r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Value not found in cache.",1),e.parser=new a(e.parser,n)}return t(e)})},e.send=function(e){return new Promise(function(t,n){if(e.isBatched){var i=e.batch.add(e.requestAbsoluteUrl,e.verb,e.options,e.parser,e.requestId);Object(o.l)(e.batchDependency)&&e.batchDependency(),r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Batching request in batch "+e.batch.batchId+".",1),t(y(e,i))}else{r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Sending request.",1);var a=e.clientFactory(),s=Object(o.f)(e.options||{},{method:e.verb});a.fetch(e.requestAbsoluteUrl,s).then(function(t){return e.parser.parse(t)}).then(function(t){return y(e,t)}).then(function(e){return t(e)}).catch(function(e){return n(e)})}})},e.logEnd=function(e){return new Promise(function(t){e.isBatched?r.a.log({data:1===r.a.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") "+e.verb+" request will complete in batch "+e.batch.batchId+"."}):r.a.log({data:1===r.a.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Completing "+e.verb+" request."}),t(e)})},u([b(!0)],e,"logStart",null),u([b()],e,"caching",null),u([b()],e,"send",null),u([b(!0)],e,"logEnd",null),e}(),S=function(e){function t(){var t=e.call(this)||this;return t._batch=null,t._batchDependency=null,t}return l(t,e),t.prototype.inBatch=function(e){if(null!==this.batch)throw Error("This query is already part of a batch.");return Object(o.q)(e)&&(this._batch=e),this},t.prototype.toUrl=function(){return this._url},t.prototype.get=function(e,t){return void 0===e&&(e=new p),void 0===t&&(t={}),this.getCore(e,t)},t.prototype.getCore=function(t,n){return void 0===t&&(t=new p),void 0===n&&(n={}),e.prototype.getCore.call(this,t,n)},t.prototype.postCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.postCore.call(this,t,n)},t.prototype.patchCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.patchCore.call(this,t,n)},t.prototype.deleteCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.deleteCore.call(this,t,n)},t.prototype.putCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.putCore.call(this,t,n)},t.prototype.reqImpl=function(t,n,o){return void 0===n&&(n={}),this.hasBatch&&(this._batchDependency=this.addBatchDependency()),e.prototype.reqImpl.call(this,t,n,o)},t.prototype.addBatchDependency=function(){return null!==this._batch?this._batch.addDependency():function(){return null}},Object.defineProperty(t.prototype,"hasBatch",{get:function(){return Object(o.q)(this._batch)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"batch",{get:function(){return this.hasBatch?this._batch:null},enumerable:!0,configurable:!0}),t.prototype._clone=function(t,n){return t=e.prototype._clone.call(this,t,n),n.includeBatch&&(t=t.inBatch(this._batch)),t},t}(function(){function e(){this._query=new Map,this._options={},this._url="",this._parentUrl="",this._useCaching=!1,this._cachingOptions=null,this._cloneParentWasCaching=!1,this._cloneParentCacheOptions=null,this._requestPipeline=null}return e.prototype.toUrl=function(){return this._url},e.prototype.concat=function(e){return this._url+=e,this},Object.defineProperty(e.prototype,"query",{get:function(){return this._query},enumerable:!0,configurable:!0}),e.prototype.configure=function(e){return Object(o.p)(this._options,e),this},e.prototype.configureFrom=function(e){return Object(o.p)(this._options,e._options),this},e.prototype.usingCaching=function(e){return o.c.globalCacheDisable||(this._useCaching=!0,void 0!==e&&(this._cachingOptions=e)),this},e.prototype.withPipeline=function(e){return this._requestPipeline=e.slice(0),this},e.prototype.getCore=function(e,t){return void 0===e&&(e=new m),void 0===t&&(t={}),this._cloneParentWasCaching&&this.usingCaching(this._cloneParentCacheOptions),this.reqImpl("GET",t,e)},e.prototype.postCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("POST",e,t)},e.prototype.patchCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("PATCH",e,t)},e.prototype.deleteCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("DELETE",e,t)},e.prototype.putCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("PUT",e,t)},e.prototype.reqImpl=function(e,t,n){var o=this;return void 0===t&&(t={}),this.getRequestPipeline(e,t,n).then(function(r){return o.toRequestContext(e,t,n,r)}).then(function(e){return function(e){e.pipeline.length<1&&r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Request pipeline contains no methods!",2);var t=v(e).then(function(e){return function(e){return r.a.log({data:0===r.a.activeLogLevel?e.result:{},level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Returning result from pipeline. Set logging to verbose to see data."}),Promise.resolve(e.result)}(e)}).catch(function(e){throw r.a.error(e),e});return e.isBatched&&e.batch.addResolveBatchDependency(t),t}(e)})},e.prototype.append=function(e){this._url=Object(o.d)(this._url,e)},Object.defineProperty(e.prototype,"parentUrl",{get:function(){return this._parentUrl},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this._parentUrl=e._url,this._url=Object(o.d)(this._parentUrl,t||""),this.configureFrom(e)},e.prototype._clone=function(e,t){return e.configureFrom(this),this._useCaching&&(e._cloneParentWasCaching=!0,e._cloneParentCacheOptions=this._cachingOptions),e},e.prototype.getRequestPipeline=function(e,t,n){var r=this;return void 0===t&&(t={}),new Promise(function(e){Object(o.q)(r._requestPipeline)&&Object(o.k)(r._requestPipeline)?e(r._requestPipeline):e([_.logStart,_.caching,_.send,_.logEnd].slice(0))})},e}()),C=function(){function e(e){void 0===e&&(e=Object(o.h)()),this._batchId=e,this._reqs=[],this._deps=[],this._rDeps=[]}return Object.defineProperty(e.prototype,"batchId",{get:function(){return this._batchId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._reqs},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t,n,o,r){var i={id:r,method:t.toUpperCase(),options:n,parser:o,reject:null,resolve:null,url:e},a=new Promise(function(e,t){i.resolve=e,i.reject=t});return this._reqs.push(i),a},e.prototype.addDependency=function(){var e=function(){};return this._deps.push(new Promise(function(t){e=t})),e},e.prototype.addResolveBatchDependency=function(e){this._rDeps.push(e)},e.prototype.execute=function(){var e=this;return Promise.all(this._deps).then(function(){return Promise.all(e._deps)}).then(function(){return e.executeImpl()}).then(function(){return Promise.all(e._rDeps)}).then(function(){})},e}()},CQME:function(e,n){e.exports=t},FQkj:function(e,t,n){var o=n("WdKl"),r=n("ruv1");"string"==typeof o&&(o=[[e.i,o]]);for(var i=0;i<o.length;i++)r.loadStyles(o[i][1],!0);o.locals&&(e.exports=o.locals)},GlSv:function(e,t,n){"use strict";n.r(t);var o=n("cDcd"),r=n("faye"),i=n("UWqr"),a=n("26ea"),s=n("br4S"),l=n("CQME"),u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function c(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var d=function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function p(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function h(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function f(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},o={},r=0,i=e;r<i.length;r++){var a=i[r];if(a)for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var l=a.subComponentStyles;for(var u in l)l.hasOwnProperty(u)&&(o.hasOwnProperty(u)?o[u].push(l[u]):o[u]=[l[u]]);continue}var c=n[s],d=a[s];n[s]=void 0===c?d:(Array.isArray(c)?c:[c]).concat(Array.isArray(d)?d:[d])}}if(Object.keys(o).length>0){n.subComponentStyles={};var p=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];p[e]=function(e){return m.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var u in o)h(u)}return n}var g=void 0;try{g=window}catch(e){}function y(e){if(void 0!==g){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:g}}var v=0,b=function(){function e(){}return e.getValue=function(e,t){var n=_();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=_(),o=n.__callbacks__,r=n[e];if(t!==r){n[e]=t;var i={oldValue:r,value:t,key:e};for(var a in o)o.hasOwnProperty(a)&&o[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=S();t||(t=e.__id__=String(v++)),n[t]=e},e.removeChangeListener=function(e){delete S()[e.__id__]},e}();function _(){var e,t=y()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function S(){return _().__callbacks__}var C,w={settings:{},scopedSettings:{},inCustomizerContext:!1},T=b.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),I=[],E=function(){function e(){}return e.reset=function(){T.settings={},T.scopedSettings={}},e.applySettings=function(t){T.settings=d({},T.settings,t),e._raiseChange()},e.applyScopedSettings=function(t,n){T.scopedSettings[t]=d({},T.scopedSettings[t],n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=w);for(var o={},r=t&&n.scopedSettings[t]||{},i=t&&T.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];o[l]=r[l]||n.settings[l]||i[l]||T.settings[l]}return o},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){I.push(e)},e.unobserve=function(e){I=I.filter(function(t){return t!==e})},e._raiseChange=function(){e._suppressUpdates||I.forEach(function(e){return e()})},e}(),x=o.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}}),P=["theme","styles"];function k(e,t,n,r,i){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,l=void 0===s?P:s;return function(r){function i(){var t=null!==r&&r.apply(this,arguments)||this;return t._inCustomizerContext=!1,t._renderContent=function(r){t._inCustomizerContext=!!r.customizations.inCustomizerContext;var i=E.getSettings(l,a,r.customizations),s=i.styles,u=(i.dir,p(i,["styles","dir"])),c=n?n(t.props):void 0;return t._updateStyles(s),o.createElement(e,d({},u,c,t.props,{styles:t._styles}))},t._onSettingsChanged=function(){return t.forceUpdate()},t}return c(i,r),i.prototype.render=function(){return o.createElement(x.Consumer,null,this._renderContent)},i.prototype.componentDidMount=function(){this._inCustomizerContext||E.observe(this._onSettingsChanged)},i.prototype.componentWillUnmount=function(){this._inCustomizerContext||E.unobserve(this._onSettingsChanged)},i.prototype._updateStyles=function(e){var n=this;this._styles&&e===this._styles.__cachedInputs__[1]&&!this.props.styles||(this._styles=function(o){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],r=0,i=t;r<i.length;r++){var a=i[r];a&&o.push("function"==typeof a?a(e):a)}return 1===o.length?o[0]:o.length?m.apply(void 0,o):{}}(o,t,e,n.props.styles)},this._styles.__cachedInputs__=[t,e,this.props.styles])},i.displayName="Styled"+(e.displayName||e.name),i}(i?o.PureComponent:o.Component)}!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(C||(C={}));var O,N={};try{N=window}catch(ui){}var R=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=d({injectionMode:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(O=N.__stylesheet__)||O._lastStyleElement&&O._lastStyleElement.ownerDocument!==document){var t=N&&N.FabricConfig||{};O=N.__stylesheet__=new e(t.mergeStyles)}return O},e.prototype.setConfig=function(e){this._config=d({},this._config,e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:o}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=0!==this._config.injectionMode?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case 1:var o=n.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case 2:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var e=document.createElement("style");e.setAttribute("data-merge-styles","true"),e.type="text/css";var t=this._config.cspSettings;return t&&t.nonce&&e.setAttribute("nonce",t.nonce),this._lastStyleElement&&this._lastStyleElement.nextElementSibling?document.head.insertBefore(e,this._lastStyleElement.nextElementSibling):document.head.appendChild(e),this._lastStyleElement=e,e},e}();function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],r=R.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=r.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&o.push(s)}}return i(e),{classes:n,objects:o}}var M,F={MozOsxFontSmoothing:"-moz-osx-font-smoothing",MsHighContrastAdjust:"-ms-high-contrast-adjust",WebkitFontSmoothing:"-webkit-font-smoothing",WebkitOverflowScrolling:"-webkit-overflow-scrolling",WebkitTapHighlightColor:"-webkit-tap-highlight-color",alignContent:"align-content",alignItems:"align-items",alignSelf:"align-self",animation:"animation",animationDelay:"animation-delay",animationDirection:"animation-direction",animationDuration:"animation-duration",animationFillMode:"animation-fill-mode",animationIterationCount:"animation-iteration-count",animationName:"animation-name",animationTimingFunction:"animation-timing-function",background:"background",backgroundClip:"background-clip",backgroundColor:"background-color",backgroundImage:"background-image",backgroundPosition:"background-position",border:"border",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomStyle:"border-bottom-style",borderBottomWidth:"border-bottom-width",borderCollapse:"border-collapse",borderColor:"border-color",borderLeft:"border-left",borderRadius:"border-radius",borderRight:"border-right",borderStyle:"border-style",borderTop:"border-top",borderTopColor:"border-top-color",borderTopLeftRadius:"border-top-left-radius",borderTopRightRadius:"border-top-right-radius",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderWidth:"border-width",bordercolor:"bordercolor",bottom:"bottom",boxShadow:"box-shadow",boxSizing:"box-sizing",clear:"clear",color:"color",content:"content",cursor:"cursor",display:"display",fill:"fill",flex:"flex",flexBasis:"flex-basis",flexDirection:"flex-direction",flexGrow:"flex-grow",flexShrink:"flex-shrink",flexWrap:"flex-wrap",float:"float",font:"font",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",height:"height",justifyContent:"justify-content",left:"left",lineHeight:"line-height",listStyle:"list-style",listStyleType:"list-style-type",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",maxHeight:"max-height",maxWidth:"max-width",minHeight:"min-height",minWidth:"min-width",mozOsxFontSmoothing:"moz-osx-font-smoothing",objectFit:"object-fit",opacity:"opacity",order:"order",outline:"outline",outlineColor:"outline-color",outlineOffset:"outline-offset",overflow:"overflow",overflowWrap:"overflow-wrap",overflowX:"overflow-x",overflowY:"overflow-y",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",perspective:"perspective",pointerEvents:"pointer-events",position:"position",resize:"resize",right:"right",speak:"speak",src:"src",tableLayout:"table-layout",textAlign:"text-align",textDecoration:"text-decoration",textOverflow:"text-overflow",textTransform:"text-transform",top:"top",transform:"transform",transformOrigin:"transform-origin",transition:"transition",transitionDelay:"transition-delay",transitionDuration:"transition-duration",transitionProperty:"transition-property",transitionTimingFunction:"transition-timing-function",userSelect:"user-select",verticalAlign:"vertical-align",visibility:"visibility",webkitFontSmoothing:"webkit-font-smoothing",whiteSpace:"white-space",width:"width",wordBreak:"word-break",wordWrap:"word-wrap",zIndex:"z-index"},L={"user-select":1};function A(e,t){var n=function(){if(!M){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;M=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return M}(),o=e[t];if(L[o]){var r=e[t+1];L[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var B=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function j(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===B.indexOf(n)?"px":"";e[t+1]=""+o+r}}var U,W="left",H="right",G=((U={})[W]=H,U[H]=W,U),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},K=q();function q(){return void 0===K&&(K="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),K}function V(e,t){if(q()){var n=e[t];if(!n)return;var o=e[t+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)e[t+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(W)>=0)e[t]=n.replace(W,H);else if(n.indexOf(H)>=0)e[t]=n.replace(H,W);else if(String(o).indexOf(W)>=0)e[t+1]=o.replace(W,H);else if(String(o).indexOf(H)>=0)e[t+1]=o.replace(H,W);else if(G[n])e[t]=G[n];else if(z[o])e[t+1]=z[o];else switch(n){case"margin":case"padding":e[t+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":e[t+1]=function(e,t){var n=e.split(" "),o=parseInt(n[0],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(o)}}}function Q(e){var t=e&&e["&"];return t?t.displayName:void 0}var X=/\:global\((.+?)\)/g;function Y(e){if(!X.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)},e)}function J(e,t){return e.indexOf(":global(")>=0?e.replace(X,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Z(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o=R.getInstance(),r=t[n];r||(r={},t[n]=r,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"==typeof s){var l=o.argsFromClassName(s);l&&Z(l,t,n)}else if(Array.isArray(s))Z(s,t,n);else for(var u in s)if("selectors"===u){var c=s.selectors;for(var d in c)if(c.hasOwnProperty(d)){var p=c[d];0===d.indexOf("@")?Z([p],t,d=d+"{"+n):d.indexOf(",")>-1?Z([p],t,Y(d).split(/,/g).map(function(e){return e.trim()}).map(function(e){return J(e,n)}).join(", ")):Z([p],t,J(d,n))}}else void 0!==s[u]&&("margin"===u||"padding"===u?$(r,u,s[u]):r[u]=s[u])}return t}function $(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function ee(e){for(var t=[],n=!1,o=0,r=e.__order;o<r.length;o++){var i=r[o];t.push(i);var a=e[i];for(var s in a)a.hasOwnProperty(s)&&void 0!==a[s]&&(n=!0,t.push(s,a[s]))}return n?t.join(""):void 0}function te(e){if(!e)return"";var t,n,o,r=[];for(var i in e)e.hasOwnProperty(i)&&"displayName"!==i&&void 0!==e[i]&&r.push(i,e[i]);for(var a=0;a<r.length;a+=2)o=void 0,o=(t=r)[n=a],t[n]=F[o]=F[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase(),j(r,a),V(r,a),A(r,a);for(a=1;a<r.length;a+=4)r.splice(a,1,":",r[a],";");return r.join("")}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Z(e),o=ee(n);if(o){var r=R.getInstance(),i={className:r.classNameFromKey(o),key:o,args:e};if(!i.className){i.className=r.getClassName(Q(n));for(var a=[],s=0,l=n.__order;s<l.length;s++){var u=l[s];a.push(u,te(n[u]))}i.rulesToInsert=a}return i}}function oe(e,t){var n=R.getInstance(),o=e.className,r=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/(&)|\$([\w-]+)\b/g,function(n,o,r){return o?"."+e.className:r?"."+(t&&t[r]||r):""}))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(o,r,i,a)}}function re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ne.apply(void 0,e);return n?(oe(n),n.className):""}var ie=0,ae=R.getInstance();function se(e){void 0===e&&(e={});var t=new Map,n=0,o=ie;return function(r,i){void 0===i&&(i={});var a=t,s=e.disableCaching;return o!==ie&&(o=ie,t=new Map,n=0),e.disableCaching||(a=ue(t,r),a=ue(a,i)),!s&&a.__retval__||(a.__retval__=void 0===r?{}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={subComponentStyles:{}},o={},r=e[0];if(!r&&e.length<=1)return{subComponentStyles:{}};var i=r;i=m.apply(void 0,e);var a=[];for(var s in i)if(i.hasOwnProperty(s)){if("subComponentStyles"===s){n.subComponentStyles=i.subComponentStyles||{};continue}var l=i[s],u=D(l),c=u.classes,d=u.objects,p=ne({displayName:s},d);a.push(p),p&&(o[s]=p.className,n[s]=c.concat([p.className]).join(" "))}for(var h=0,f=a;h<f.length;h++)(p=f[h])&&oe(p,o);return n}("function"==typeof r?r(i):r),s||n++),n>50&&(t.clear(),n=0,e.disableCaching=!0),a.__retval__}}function le(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function ue(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n<o.length;n++)e=le(e,o[n]);else if("object"==typeof t)for(var r in t)t.hasOwnProperty(r)&&(e=le(e,t[r]));return e}ae&&ae.onReset&&ae.onReset(function(){return ie++});var ce=y()||{};void 0===ce.__currentId__&&(ce.__currentId__=0);var de=R.getInstance();de&&de.onReset&&de.onReset(function(e){void 0===e&&(e=0),ce.__currentId__=e});var pe,he,fe,me=["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","role","style","tabIndex","title","translate","spellCheck","name"].concat(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),ge=(me.concat(["form"]),me.concat(["height","loop","muted","preload","src","width"]).concat(["poster"]),me.concat(["start"]),me.concat(["value"]),me.concat(["download","href","hrefLang","media","rel","target","type"]),me.concat(["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),ye=(ge.concat(["accept","alt","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),ge.concat(["cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),ge.concat(["form","multiple","required"]),me.concat(["selected","value"]),me.concat(["cellPadding","cellSpacing"]),me.concat(["rowSpan","scope"]),me.concat(["colSpan","headers","rowSpan","scope"]),me.concat(["span"]),me.concat(["span"]),me.concat(["acceptCharset","action","encType","encType","method","noValidate","target"]),me.concat(["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),me.concat(["alt","crossOrigin","height","src","srcSet","useMap","width"]));function ve(e,t,n){return function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];t=t||{};for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}(function(e){return(!n||n.indexOf(e)<0)&&(0===e.indexOf("data-")||0===e.indexOf("aria-")||t.indexOf(e)>=0)},{},e)}!function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(pe||(pe={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(he||(he={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(fe||(fe={}));var be=se(),_e=function(e){function t(t){var n=e.call(this,t)||this;return n._coverStyle=he.portrait,n._imageElement=o.createRef(),n._frameElement=o.createRef(),n._onImageLoaded=function(e){var t=n.props,o=t.src,r=t.onLoad;r&&r(e),n._computeCoverStyle(n.props),o&&n.setState({loadState:fe.loaded})},n._onImageError=function(e){n.props.onError&&n.props.onError(e),n.setState({loadState:fe.error})},n.state={loadState:fe.notLoaded},n}return c(t,e),t.prototype.componentWillReceiveProps=function(e){e.src!==this.props.src?this.setState({loadState:fe.notLoaded}):this.state.loadState===fe.loaded&&this._computeCoverStyle(e)},t.prototype.componentDidUpdate=function(e,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},t.prototype.render=function(){var e=ve(this.props,ye,["width","height"]),t=this.props,n=t.src,r=t.alt,i=t.width,a=t.height,s=t.shouldFadeIn,l=t.shouldStartVisible,u=t.className,c=t.imageFit,p=t.role,h=t.maximizeFrame,f=t.styles,m=t.theme,g=this.state.loadState,y=void 0!==this.props.coverStyle?this.props.coverStyle:this._coverStyle,v=be(f,{theme:m,className:u,width:i,height:a,maximizeFrame:h,shouldFadeIn:s,shouldStartVisible:l,isLoaded:g===fe.loaded||g===fe.notLoaded&&this.props.shouldStartVisible,isLandscape:y===he.landscape,isCenter:c===pe.center,isCenterContain:c===pe.centerContain,isCenterCover:c===pe.centerCover,isContain:c===pe.contain,isCover:c===pe.cover,isNone:c===pe.none,isError:g===fe.error,isNotImageFit:void 0===c});return o.createElement("div",{className:v.root,style:{width:i,height:a},ref:this._frameElement},o.createElement("img",d({},e,{onLoad:this._onImageLoaded,onError:this._onImageError,key:"fabricImage"+this.props.src||"",className:v.image,ref:this._imageElement,src:n,alt:r,role:p})))},t.prototype._checkImageLoaded=function(){var e=this.props.src;this.state.loadState===fe.notLoaded&&this._imageElement.current&&(e&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:fe.loaded}))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,o=e.height;if((t===pe.cover||t===pe.contain||t===pe.centerContain||t===pe.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var r;r=n&&o&&t!==pe.centerContain&&t!==pe.centerCover?n/o:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>r?he.landscape:he.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(o.Component);function Se(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=D(e),o=n.classes,r=n.objects;return r.length&&o.push(re(r)),o.join(" ")}function Ce(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=Se(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}function we(e){R.getInstance().insertRule("@font-face{"+te(e)+"}",!0)}var Te=b.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),Ie=R.getInstance();function Ee(e){var t=R.getInstance(),n=t.getClassName(),o=[];for(var r in e)e.hasOwnProperty(r)&&o.push(r,"{",te(e[r]),"}");var i=o.join("");return t.insertRule("@keyframes "+n+"{"+i+"}",!0),t.cacheClassName(n,i,[],["keyframes",i]),n}Ie&&Ie.onReset&&Ie.onReset(function(){for(var e in Te)Te.hasOwnProperty(e)&&Te[e].subset&&(Te[e].subset.className=void 0)});var xe="cubic-bezier(.1,.9,.2,1)",Pe="cubic-bezier(.1,.25,.75,.9)",ke=Ee({from:{opacity:0},to:{opacity:1}}),Oe=Ee({from:{opacity:1},to:{opacity:0}}),Ne=ut(-10),Re=ut(-20),De=ut(-40),Me=ut(-400),Fe=ut(10),Le=ut(20),Ae=ut(40),Be=ut(400),je=ct(10),Ue=ct(20),We=ct(-10),He=ct(-20),Ge=dt(10),ze=dt(20),Ke=dt(40),qe=dt(400),Ve=dt(-10),Qe=dt(-20),Xe=dt(-40),Ye=dt(-400),Je=pt(-10),Ze=pt(-20),$e=pt(10),et=pt(20),tt=Ee({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),nt=Ee({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),ot=Ee({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),rt=Ee({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),it=Ee({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),at=Ee({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),st={slideRightIn10:lt(ke+","+Ne,"0.367s",xe),slideRightIn20:lt(ke+","+Re,"0.367s",xe),slideRightIn40:lt(ke+","+De,"0.367s",xe),slideRightIn400:lt(ke+","+Me,"0.367s",xe),slideLeftIn10:lt(ke+","+Fe,"0.367s",xe),slideLeftIn20:lt(ke+","+Le,"0.367s",xe),slideLeftIn40:lt(ke+","+Ae,"0.367s",xe),slideLeftIn400:lt(ke+","+Be,"0.367s",xe),slideUpIn10:lt(ke+","+je,"0.367s",xe),slideUpIn20:lt(ke+","+Ue,"0.367s",xe),slideDownIn10:lt(ke+","+We,"0.367s",xe),slideDownIn20:lt(ke+","+He,"0.367s",xe),slideRightOut10:lt(Oe+","+Ge,"0.367s",xe),slideRightOut20:lt(Oe+","+ze,"0.367s",xe),slideRightOut40:lt(Oe+","+Ke,"0.367s",xe),slideRightOut400:lt(Oe+","+qe,"0.367s",xe),slideLeftOut10:lt(Oe+","+Ve,"0.367s",xe),slideLeftOut20:lt(Oe+","+Qe,"0.367s",xe),slideLeftOut40:lt(Oe+","+Xe,"0.367s",xe),slideLeftOut400:lt(Oe+","+Ye,"0.367s",xe),slideUpOut10:lt(Oe+","+Je,"0.367s",xe),slideUpOut20:lt(Oe+","+Ze,"0.367s",xe),slideDownOut10:lt(Oe+","+$e,"0.367s",xe),slideDownOut20:lt(Oe+","+et,"0.367s",xe),scaleUpIn100:lt(ke+","+tt,"0.367s",xe),scaleDownIn100:lt(ke+","+ot,"0.367s",xe),scaleUpOut103:lt(Oe+","+rt,"0.167s",Pe),scaleDownOut98:lt(Oe+","+nt,"0.167s",Pe),fadeIn100:lt(ke,"0.167s",Pe),fadeIn200:lt(ke,"0.267s",Pe),fadeIn400:lt(ke,"0.367s",Pe),fadeIn500:lt(ke,"0.467s",Pe),fadeOut100:lt(Oe,"0.167s",Pe),fadeOut200:lt(Oe,"0.267s",Pe),fadeOut400:lt(Oe,"0.367s",Pe),fadeOut500:lt(Oe,"0.467s",Pe),rotate90deg:lt(it,"0.1s",Pe),rotateN90deg:lt(at,"0.1s",Pe)};function lt(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function ut(e){return Ee({from:{transform:"translate3d("+e+"px,0,0)"},to:{transform:"translate3d(0,0,0)"}})}function ct(e){return Ee({from:{transform:"translate3d(0,"+e+"px,0)"},to:{transform:"translate3d(0,0,0)"}})}function dt(e){return Ee({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function pt(e){return Ee({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var ht,ft,mt={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#212121",neutralPrimary:"#333333",neutralPrimaryAlt:"#3c3c3c",neutralSecondary:"#666666",neutralSecondaryAlt:"#767676",neutralTertiary:"#a6a6a6",neutralTertiaryAlt:"#c8c8c8",neutralQuaternary:"#d0d0d0",neutralQuaternaryAlt:"#dadada",neutralLight:"#eaeaea",neutralLighter:"#f4f4f4",neutralLighterAlt:"#f8f8f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a80000",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web"}(ht||(ht={})),function(e){e.Arabic="'"+ht.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+ht.Cyrillic+"'",e.EastEuropean="'"+ht.EastEuropean+"'",e.Greek="'"+ht.Greek+"'",e.Hebrew="'"+ht.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+ht.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+ht.Vietnamese+"'",e.WestEuropean="'"+ht.WestEuropean+"'"}(ft||(ft={}));var gt,yt,vt,bt,_t="'Segoe UI', '"+ht.WestEuropean+"'",St={ar:ft.Arabic,bg:ft.Cyrillic,cs:ft.EastEuropean,el:ft.Greek,et:ft.EastEuropean,he:ft.Hebrew,hi:ft.Hindi,hr:ft.EastEuropean,hu:ft.EastEuropean,ja:ft.Japanese,kk:ft.EastEuropean,ko:ft.Korean,lt:ft.EastEuropean,lv:ft.EastEuropean,pl:ft.EastEuropean,ru:ft.Cyrillic,sk:ft.EastEuropean,"sr-latn":ft.EastEuropean,th:ft.Thai,tr:ft.EastEuropean,uk:ft.Cyrillic,vi:ft.Vietnamese,"zh-hans":ft.ChineseSimplified,"zh-hant":ft.ChineseTraditional};function Ct(e){return e+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"}function wt(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}!function(e){e.mini="10px",e.xSmall="11px",e.small="12px",e.smallPlus="13px",e.medium="14px",e.mediumPlus="15px",e.icon="16px",e.large="17px",e.xLarge="21px",e.xLargePlus="21px",e.xxLarge="28px",e.xxLargePlus="28px",e.superLarge="42px",e.mega="72px"}(gt||(gt={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(yt||(yt={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(vt||(vt={}));var Tt,It,Et,xt,Pt,kt,Ot,Nt=(Et=It=Ct(Tt=function(e){for(var t in St)if(St.hasOwnProperty(t)&&e&&0===t.indexOf(e))return St[t];return _t}(function(){if(void 0===bt){var e=function(e){if("undefined"!=typeof document){return document}}(),t=function(e){var t=null;try{var n=y();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}();null!==t&&(bt=t),void 0===bt&&e&&(bt=e.documentElement.getAttribute("lang")),void 0===bt&&(bt="en")}return bt}())),Tt===_t&&(Et=Ct(ft.WestEuropean)),{tiny:wt(gt.mini,yt.semibold,It),xSmall:wt(gt.xSmall,yt.regular,It),small:wt(gt.small,yt.regular,It),smallPlus:wt(gt.smallPlus,yt.regular,It),medium:wt(gt.medium,yt.regular,It),mediumPlus:wt(gt.mediumPlus,yt.regular,It),large:wt(gt.large,yt.semilight,Et),xLarge:wt(gt.xLarge,yt.light,It),xLargePlus:wt(gt.xLargePlus,yt.light,It),xxLarge:wt(gt.xxLarge,yt.light,It),xxLargePlus:wt(gt.xxLargePlus,yt.light,It),superLarge:wt(gt.superLarge,yt.light,It),mega:wt(gt.mega,yt.light,It)});function Rt(e,t,n,o){we({fontFamily:e="'"+e+"'",src:(void 0!==o?"local('"+o+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal"})}function Dt(e,t,n,o,r){void 0===o&&(o="segoeui");var i=e+"/"+n+"/"+o;Rt(t,i+"-light",yt.light,r&&r+" Light"),Rt(t,i+"-semilight",yt.semilight,r&&r+" SemiLight"),Rt(t,i+"-regular",yt.regular,r),Rt(t,i+"-semibold",yt.semibold,r&&r+" SemiBold")}!function(e){if(e){var t=e+"/fonts";Dt(t,ht.Thai,"leelawadeeui-thai","leelawadeeui"),Dt(t,ht.Arabic,"segoeui-arabic"),Dt(t,ht.Cyrillic,"segoeui-cyrillic"),Dt(t,ht.EastEuropean,"segoeui-easteuropean"),Dt(t,ht.Greek,"segoeui-greek"),Dt(t,ht.Hebrew,"segoeui-hebrew"),Dt(t,ht.Vietnamese,"segoeui-vietnamese"),Dt(t,ht.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Dt(t,ft.Selawik,"selawik","selawik"),Rt("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",yt.light),Rt("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",yt.semibold)}}((xt=y(),Pt=xt?xt.FabricConfig:void 0,Pt&&void 0!==Pt.fontBaseUrl?Pt.fontBaseUrl:"https://static2.sharepointonline.com/files/fabric/assets")),(kt={})[38]=1,kt[40]=1,kt[37]=1,kt[39]=1,kt[36]=1,kt[35]=1,kt[9]=1,kt[33]=1,kt[34]=1,function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Ot||(Ot={}));var Mt=R.getInstance();Mt&&Mt.onReset&&R.getInstance().onReset(function(){Ft++});var Ft=0,Lt={empty:!0},At={},Bt="undefined"==typeof WeakMap?null:WeakMap;function jt(e){return e?"object"==typeof e||"function"==typeof e?e:(At[e]||(At[e]={val:e}),At[e]):Lt}function Ut(){return{map:Bt?new Bt:null}}var Wt=function(e,t){if(void 0===t&&(t=100),!Bt)return e;var n,o=0,r=Ft;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=n;(void 0===n||r!==Ft||t>0&&o>t)&&(n=Ut(),o=0,r=Ft),s=n;for(var l=0;l<i.length;l++){var u=jt(i[l]);s.map.has(u)||s.map.set(u,Ut()),s=s.map.get(u)}return s.hasOwnProperty("value")||(s.value=e.apply(void 0,i),o++),s.value}}(function(e,t){var n=R.getInstance();return t?Object.keys(e).reduce(function(t,o){return t[o]=n.getClassName(e[o]),t},{}):e});function Ht(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++){var i=r[o];Gt(e||{},i)}return e}function Gt(e,t,n){for(var o in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(o)){var r=t[o];if("object"==typeof r){var i=n.indexOf(r)>-1;e[o]=i?r:Gt(e[o]||{},r,n)}else e[o]=r}return n.pop(),e}var zt,Kt={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},qt=(n("5AgF"),{elevation4:"0 0 5px 0 rgba(0,0,0,.4)",elevation8:"0 0 5px 0 rgba(0,0,0,.4)",elevation16:"0 0 5px 0 rgba(0,0,0,.4)",elevation64:"0 0 5px 0 rgba(0,0,0,.4)",roundedCorner2:"0px"}),Vt=Xt({palette:mt,semanticColors:Yt(mt,!1,!1),fonts:Nt,isInverted:!1,disableGlobalClassNames:!1});if(!E.getSettings(["theme"]).theme){var Qt=y();Qt&&Qt.FabricConfig&&Qt.FabricConfig.theme&&(Vt=Xt(Qt.FabricConfig.theme)),E.applySettings(((zt={}).theme=Vt,zt))}function Xt(e,t){void 0===t&&(t=!1);var n=d({},mt,e.palette);e.palette&&e.palette.accent||(n.accent=n.themePrimary);var o=d({},Yt(n,!!e.isInverted,t),e.semanticColors),r=d({},Nt);if(e.defaultFontStyle)for(var i=0,a=Object.keys(r);i<a.length;i++)r[u=a[i]]=Ht({},r[u],e.defaultFontStyle);if(e.fonts)for(var s=0,l=Object.keys(e.fonts);s<l.length;s++){var u;r[u=l[s]]=Ht({},r[u],e.fonts[u])}return{palette:n,fonts:d({},r),semanticColors:o,isInverted:!!e.isInverted,disableGlobalClassNames:!!e.disableGlobalClassNames,spacing:d({},Kt,e.spacing),effects:d({},qt,e.effects)}}function Yt(e,t,n){return function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e}({bodyBackground:e.white,bodyStandoutBackground:e.neutralLighterAlt,bodyFrameBackground:e.white,bodyFrameDivider:e.neutralLight,bodyText:e.neutralPrimary,bodyTextChecked:e.black,bodySubtext:e.neutralSecondary,bodyDivider:e.neutralLight,disabledBackground:e.neutralLighter,disabledText:e.neutralTertiary,disabledBodyText:e.neutralTertiary,disabledSubtext:e.neutralQuaternary,disabledBodySubtext:e.neutralTertiaryAlt,focusBorder:e.neutralSecondary,variantBorder:e.neutralLight,variantBorderHovered:e.neutralTertiary,defaultStateBackground:e.neutralLighterAlt,errorText:t?"#ff5f5f":e.redDark,warningText:t?"#ffffff":"#333333",successText:t?"#92c353":"#107C10",errorBackground:t?"rgba(232, 17, 35, .5)":"rgba(232, 17, 35, .2)",blockingBackground:t?"rgba(234, 67, 0, .5)":"rgba(234, 67, 0, .2)",warningBackground:t?"rgba(255, 251, 0, .6)":"rgba(255, 185, 0, .2)",warningHighlight:t?"#fff100":"#ffb900",successBackground:t?"rgba(186, 216, 10, .4)":"rgba(186, 216, 10, .2)",inputBorder:e.neutralTertiary,inputBorderHovered:e.neutralPrimary,inputBackground:e.white,inputBackgroundChecked:e.themePrimary,inputBackgroundCheckedHovered:e.themeDarkAlt,inputForegroundChecked:e.white,inputFocusBorderAlt:e.themePrimary,smallInputBorder:e.neutralSecondary,inputText:e.neutralPrimary,inputTextHovered:e.neutralDark,inputPlaceholderText:e.neutralSecondary,buttonBackground:e.neutralLighter,buttonBackgroundChecked:e.neutralTertiaryAlt,buttonBackgroundHovered:e.neutralLight,buttonBackgroundCheckedHovered:e.neutralLight,buttonBackgroundPressed:e.neutralLight,buttonBackgroundDisabled:e.neutralLighter,buttonBorder:"transparent",buttonText:e.neutralPrimary,buttonTextHovered:e.neutralDark,buttonTextChecked:e.neutralDark,buttonTextCheckedHovered:e.black,buttonTextPressed:e.neutralDark,buttonTextDisabled:e.neutralTertiary,buttonBorderDisabled:"transparent",primaryButtonBackground:e.themePrimary,primaryButtonBackgroundHovered:e.themeDarkAlt,primaryButtonBackgroundPressed:e.themeDark,primaryButtonBackgroundDisabled:e.neutralLighter,primaryButtonBorder:"transparent",primaryButtonText:e.white,primaryButtonTextHovered:e.white,primaryButtonTextPressed:e.white,primaryButtonTextDisabled:e.neutralQuaternary,accentButtonBackground:e.accent,accentButtonText:e.white,menuBackground:e.white,menuDivider:e.neutralTertiaryAlt,menuIcon:e.themePrimary,menuHeader:e.themePrimary,menuItemBackgroundHovered:e.neutralLighter,menuItemBackgroundPressed:e.neutralLight,menuItemText:e.neutralPrimary,menuItemTextHovered:e.neutralDark,listBackground:e.white,listText:e.neutralPrimary,listItemBackgroundHovered:e.neutralLighter,listItemBackgroundChecked:e.neutralLight,listItemBackgroundCheckedHovered:e.neutralQuaternaryAlt,listHeaderBackgroundHovered:e.neutralLighter,listHeaderBackgroundPressed:e.neutralLight,actionLink:e.neutralPrimary,actionLinkHovered:e.neutralDark,link:e.themePrimary,linkHovered:e.themeDarker,listTextColor:"",menuItemBackgroundChecked:e.neutralLight},n)}var Jt=Ce(st),Zt=(Ce(Nt),{});for(var $t in mt)mt.hasOwnProperty($t)&&(en(Zt,$t,"",!1,"color"),en(Zt,$t,"Hover",!0,"color"),en(Zt,$t,"Background",!1,"background"),en(Zt,$t,"BackgroundHover",!0,"background"),en(Zt,$t,"Border",!1,"borderColor"),en(Zt,$t,"BorderHover",!0,"borderColor"));function en(e,t,n,o,r){Object.defineProperty(e,t+n,{get:function(){var e,n,i=((n={})[r]=(void 0===e&&(e=!1),!0===e&&(Vt=Xt({},e)),Vt).palette[t],n);return Se(o?{selectors:{":hover":i}}:i).toString()},enumerable:!0,configurable:!0})}var tn=n("4Qvb");Object(tn.a)("@uifabric/styling","6.50.6");var nn={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},on=k(_e,function(e){var t=e.className,n=e.width,o=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,f=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,b=function(e,t,n){return Wt(e,t.disableGlobalClassNames)}(nn,v),_={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},S=y(),C=void 0!==S&&void 0===S.navigator.msMaxTouchPoints,w=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[b.root,v.fonts.medium,{overflow:"hidden"},r&&[b.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&Jt.fadeIn400,(u||c||d||p||h)&&{position:"relative"},t],image:[b.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[b.imageCenter,_],c&&[b.imageContain,C&&{width:"100%",height:"100%",objectFit:"contain"},!C&&w,_],d&&[b.imageCover,C&&{width:"100%",height:"100%",objectFit:"cover"},!C&&w,_],p&&[b.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},_],h&&[b.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},_],f&&[b.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!o&&{height:"auto",width:"100%"},!n&&!!o&&{height:"100%",width:"auto"},!!n&&!!o&&{height:"100%",width:"100%"}],l&&b.imageLandscape,!l&&b.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}},void 0,{scope:"Image"},!0),rn=se(),an=k(function(e){function t(t){var n=e.call(this,t)||this;return n.onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===fe.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.ariaLabel,n=e.className,r=e.styles,i=e.iconName,a=e.imageErrorAs,s=e.theme,l="string"==typeof i&&0===i.length,u=this.props.iconType===C.image||this.props.iconType===C.Image,c=this._getIconContent(i),p=c.iconClassName,h=c.children,f=rn(r,{theme:s,className:n,iconClassName:p,isImage:u,isPlaceholder:l}),m=t?{"aria-label":t}:{role:"presentation"},g=u?"div":"i",y=ve(this.props,me),v=this.state.imageLoadError,b=d({},this.props.imageProps,{onLoadingStateChange:this.onImageLoadingStateChange}),_=v&&a||on;return o.createElement(g,d({"data-icon-name":i},y,m,{className:f.root}),u?o.createElement(_,d({},b)):h)},t.prototype._getIconContent=function(e){var t=function(e){var t,n=void 0,o=Te.__options;if(e=e?function(e){return e.toLowerCase()}(e):"",e=Te.__remapped[e]||e)if(n=Te[e]){var r=n.subset;r&&r.fontFace&&(r.isRegistered||(we(r.fontFace),r.isRegistered=!0),r.className||(r.className=Se(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!o.disableWarnings&&o.warnOnMissingIcons&&(t='The icon "'+e+'" was used but not registered. See http://aka.ms/fabric-icon-usage for more information.',console&&console.warn&&console.warn(t));return n}(e)||{subset:{className:void 0},code:void 0};return{children:t.code,iconClassName:t.subset.className}},t}(o.Component),function(e){var t=e.className,n=e.iconClassName,o=e.isPlaceholder,r=e.isImage,i=e.styles;return{root:[r&&"ms-Icon-imageContainer",o&&"ms-Icon-placeHolder",{display:"inline-block"},o&&{width:"1em"},r&&{overflow:"hidden"},n,t,i&&i.root,i&&i.imageContainer]}},void 0,{scope:"Icon"},!0);n("FQkj");var sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ln=Se({fontSize:15,height:15,width:15}),un=function(e){function t(t){var n=e.call(this,t)||this;return n.state={News:[],RenderedNews:[],UpdateCount:0,Next:3,Count:1,Reload:!0},n}return sn(t,e),t.prototype.Next=function(e){var t=[],n=0,o=this.state.Next,r=o+4;e.map(function(e){(n+=1)>o&&n<r&&t.push(e)});var i=this.state.Next+3;this.setState({RenderedNews:t,Next:i,Count:this.state.Count+1})},t.prototype.Back=function(e){var t,n,o=[];n=this.state.Next-6,t=this.state.Next-2;var r=0;e.map(function(e){(r+=1)>n&&r<t&&o.push(e)});var i=this.state.Next-3;this.setState({RenderedNews:o,Next:i,Count:this.state.Count-1})},t.prototype.componentDidMount=function(){var e=[],t=0;this.props.News.map(function(n){(t+=1)>0&&t<4&&e.push(n)}),this.setState({RenderedNews:e,Next:3,Count:1,UpdateCount:0})},t.prototype.componentDidUpdate=function(e){var t=[],n=0;return e.News!==this.props.News?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:0}),!0):this.props.News.length>0&&this.props.News.length>this.state.RenderedNews.length&&this.state.UpdateCount<4?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:this.state.UpdateCount+1}),!0):void 0},t.prototype.render=function(){var e,t=this;switch(this.state.RenderedNews.length){case 1:e="246px";break;case 2:e="435px";break;case 3:e="624px"}return o.createElement("div",{className:"SingleStyle_d4a3edcf"},o.createElement("div",{className:"SingleStyleContainer_d4a3edcf",style:{height:e}},o.createElement("div",null,this.state.RenderedNews.map(function(e){return o.createElement("div",{className:"NewsContainer_d4a3edcf",style:{boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px, rgb(0 0 0 / 10%) 0px 0px 1px"}},o.createElement("div",{className:"ImgContainer_d4a3edcf"},o.createElement("img",{src:e.Thumbnail,className:"Image_d4a3edcf"})),o.createElement("div",{className:"NewsBody_d4a3edcf"},o.createElement("div",{className:"TitleContainer_d4a3edcf"},o.createElement("a",{className:"TitleStyling_d4a3edcf",href:e.Url},e.Title)),o.createElement("div",{className:"DescriptionContainer_d4a3edcf"},e.Description),o.createElement("div",{className:"IconContainer_d4a3edcf"},o.createElement(an,{className:ln,iconName:"Like"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},e.Likes),o.createElement(an,{style:{marginLeft:"10px"},className:ln,iconName:"Comment"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},e.Comments)),o.createElement("div",{className:"AuthorContainer_d4a3edcf"},t.props.AuthorToggle?o.createElement(o.Fragment,null):e.Author," Created ",e.Created)))})),o.createElement("div",{className:"NavigationContainer_d4a3edcf"},o.createElement("button",{disabled:3===this.state.Next,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationLeftButtonStyling_d4a3edcf",onClick:function(){return t.Back(t.props.News)}},"Back"),o.createElement("button",{disabled:this.state.Next>=this.props.News.length,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationRightButtonStyling_d4a3edcf",onClick:function(){return t.Next(t.props.News)}},"Next"),o.createElement("div",{className:"NavigationPageNumStyling_d4a3edcf"},this.state.Count," out of ",Math.ceil(this.props.News.length/3)))))},t}(o.Component),cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dn=Se({fontSize:15,height:15,width:15}),pn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={News:[],RenderedNews:[],UpdateCount:0,Next:3,Count:1,Reload:!0},n}return cn(t,e),t.prototype.Next=function(e){var t=[],n=0,o=this.state.Next,r=o+4;e.map(function(e){(n+=1)>o&&n<r&&t.push(e)});var i=this.state.Next+3;this.setState({RenderedNews:t,Next:i,Count:this.state.Count+1})},t.prototype.Back=function(e){var t,n,o=[];n=this.state.Next-6,t=this.state.Next-2;var r=0;e.map(function(e){(r+=1)>n&&r<t&&o.push(e)});var i=this.state.Next-3;this.setState({RenderedNews:o,Next:i,Count:this.state.Count-1})},t.prototype.componentDidMount=function(){var e=[],t=0;this.props.News.map(function(n){(t+=1)>0&&t<4&&e.push(n)}),this.setState({RenderedNews:e,Next:3,Count:1,UpdateCount:0})},t.prototype.componentDidUpdate=function(e){var t=[],n=0;return e.News!==this.props.News?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:0}),!0):this.props.News.length>0&&this.props.News.length>this.state.RenderedNews.length&&this.state.UpdateCount<4?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:this.state.UpdateCount+1}),!0):void 0},t.prototype.render=function(){var e=this,t=0;return o.createElement("div",{className:"StackStyle_d4a3edcf"},o.createElement("div",{className:"StackStyleContainer_d4a3edcf"},o.createElement("div",null,this.state.RenderedNews.map(function(n){return t+=1,o.createElement("div",{className:"NewsContainer_d4a3edcf",style:{boxShadow:"rgb(0 0 0 / 13%) 0px 1.6px 3.6px 0px, rgb(0 0 0 / 11%) 0px 0.3px 0.9px 0px",marginRight:3===t?"0px":"7px"}},o.createElement("div",{className:"ImgContainer_d4a3edcf"},o.createElement("img",{src:n.Thumbnail,className:"Image_d4a3edcf"})),o.createElement("div",{className:"NewsBody_d4a3edcf"},o.createElement("div",{className:"TitleContainer_d4a3edcf"},o.createElement("a",{className:"TitleStyling_d4a3edcf",href:n.Url},n.Title)),o.createElement("div",{className:"DescriptionContainer_d4a3edcf"},n.Description?n.Description.substring(0,182)+"…":"…"),o.createElement("div",{className:"AuthorContainer_d4a3edcf"},e.props.AuthorToggle?o.createElement(o.Fragment,null):o.createElement("div",null," ",n.Author," ",o.createElement("br",null)," ")," ",n.Created),o.createElement("div",{className:"IconContainer_d4a3edcf"},o.createElement(an,{className:dn,iconName:"Like"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},n.Likes),o.createElement(an,{style:{marginLeft:"10px"},className:dn,iconName:"Comment"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},n.Comments))))})),o.createElement("br",null),o.createElement("div",{className:"NavigationContainer_d4a3edcf"},o.createElement("button",{disabled:3===this.state.Next,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationLeftButtonStyling_d4a3edcf",onClick:function(){return e.Back(e.props.News)}},"Back"),o.createElement("button",{disabled:this.state.Next>=this.props.News.length,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationRightButtonStyling_d4a3edcf",onClick:function(){return e.Next(e.props.News)}},"Next"),o.createElement("div",{className:"NavigationPageNumStyling_d4a3edcf"},this.state.Count," out of ",Math.ceil(this.props.News.length/3)))))},t}(o.Component),hn=n("5UI3"),fn=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})},mn=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},gn=function(){function e(e){this.context=e,hn.c.setup({spfxContext:this.context}),this.onInit()}return e.prototype.onInit=function(){return fn(this,void 0,void 0,function(){return mn(this,function(e){return[2]})})},e.prototype.getInfo=function(e){return fn(this,void 0,void 0,function(){var t,n,o;return mn(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,new hn.b(e).lists.getByTitle("Site%20Pages").items.select("id,Title,Description,BannerImageUrl,Created,Author/ID,Author/FirstName,Author/LastName,Author/Title,FileRef").filter("PromotedState eq 2").expand("Author/ID").get()];case 1:return t=r.sent(),n=[],t.map(function(t){var o=e.split("/sites/")[0]+t.FileRef,r=t.Created.split("T")[0];n.push({Author:t.Author.Title,Title:t.Title,Description:t.Description,Id:t.Id,Created:r,BannerImageUrl:t.BannerImageUrl.Url,Url:o})}),[2,n];case 2:return o=r.sent(),[2,Promise.reject(o)];case 3:return[2]}})})},e.prototype.getComments=function(e,t){return fn(this,void 0,void 0,function(){var n,o,r;return mn(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,new hn.b(e).lists.getByTitle("Site%20Pages").items.getById(t).comments.get()];case 1:return n=i.sent(),o=n.length,n.map(function(e){o+=e.replyCount}),[2,o];case 2:return r=i.sent(),[2,Promise.reject(r)];case 3:return[2]}})})},e.prototype.getLikes=function(e,t){return fn(this,void 0,void 0,function(){var n;return mn(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,new hn.b(e).lists.getByTitle("Site%20Pages").items.getById(t).getLikedByInformation()];case 1:return[2,o.sent().likeCount];case 2:return n=o.sent(),[2,Promise.reject(n)];case 3:return[2]}})})},e}(),yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vn=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})},bn=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},_n=function(e){function t(t,n){var o=e.call(this,t)||this;return o.state={SPGuid:"",News:[],Reload:!1},o._spservices=new gn(o.props.context),o}return yn(t,e),t.prototype.componentDidMount=function(){return vn(this,void 0,void 0,function(){return bn(this,function(e){return this.Get("Default"),[2]})})},t.prototype.componentDidUpdate=function(e){e.Site!==this.props.Site&&(this.props.onChangeProperty("Sites"),this.props.Site.length>0?this.Get("Update"):this.Get("Default"),this.setState({Reload:!this.state.Reload}))},t.prototype.Get=function(e){return vn(this,void 0,void 0,function(){var t,n,o=this;return bn(this,function(r){switch(r.label){case 0:return t=[],void 0===this.props.Site||this.props.Site.length<1||"Default"===e&&this.props.Site.length<1?(n=this.props.context.pageContext.web.absoluteUrl,[4,this._spservices.getInfo(n)]):[3,2];case 1:return r.sent().map(function(e){return vn(o,void 0,void 0,function(){var o,r;return bn(this,function(i){switch(i.label){case 0:return[4,this._spservices.getComments(n,e.Id)];case 1:return o=i.sent(),[4,this._spservices.getLikes(n,e.Id)];case 2:return r=i.sent(),t.push({Author:e.Author,Title:e.Title,Description:e.Description,Id:e.Id,Created:e.Created,Thumbnail:e.BannerImageUrl,Url:e.Url,Comments:o,Likes:r}),!0===this.state.Reload?this.setState({News:t,Reload:!1}):this.setState({News:t}),[2]}})})}),[3,3];case 2:this.props.Site.map(function(e){return vn(o,void 0,void 0,function(){var o=this;return bn(this,function(r){switch(r.label){case 0:return n=e.url,[4,this._spservices.getInfo(n)];case 1:return r.sent().map(function(n){return vn(o,void 0,void 0,function(){var o,r;return bn(this,function(i){switch(i.label){case 0:return[4,this._spservices.getComments(e.url,n.Id)];case 1:return o=i.sent(),[4,this._spservices.getLikes(e.url,n.Id)];case 2:return r=i.sent(),t.push({Author:n.Author,Title:n.Title,Description:n.Description,Id:n.Id,Created:n.Created,Thumbnail:n.BannerImageUrl,Url:n.Url,Comments:o,Likes:r}),!0===this.state.Reload?this.setState({News:t,Reload:!1}):this.setState({News:t}),[2]}})})}),[2]}})})}),r.label=3;case 3:return this.setState({News:t}),[2]}})})},t.prototype.render=function(){return o.createElement("div",{style:{height:"100%",width:"100%"}},this.props.StyleToggle?o.createElement(pn,{News:this.state.News,AuthorToggle:this.props.AuthorToggle,Reload:this.state.Reload}):o.createElement(un,{News:this.state.News,AuthorToggle:this.props.AuthorToggle,Reload:this.state.Reload}))},t}(o.Component),Sn=n("vlQI"),Cn=function(){function e(){}return e.searchPeople=function(t,n){return new Promise(function(t){t(e._results)})},e._results=[],e}(),wn=function(){function e(){}return e.prototype.searchSites=function(e,t){if(i.Environment.type===i.EnvironmentType.Local)return this.searchSitesFromMock(e,t);var n=e.pageContext.web.absoluteUrl;"/"!==e.pageContext.web.serverRelativeUrl&&(n=e.pageContext.web.absoluteUrl.replace(e.pageContext.web.serverRelativeUrl,""));var o=e.pageContext.web.absoluteUrl+"/_api/search/query?querytext='contentclass:STS_Site contentclass:STS_Web Title:"+t+"* Path:"+n+"*'&selectproperties='SiteId,SiteID,WebId,Title,Path'&rowlimit=5";return e.spHttpClient.get(o,Sn.SPHttpClient.configurations.v1).then(function(e){return e.json().then(function(e){return e.PrimaryQueryResult.RelevantResults.Table.Rows.map(function(e){var t={};return e.Cells.forEach(function(e){switch(e.Key){case"Title":t.title=e.Value;break;case"Path":t.url=e.Value;break;case"SiteId":case"SiteID":t.id=e.Value;break;case"WebId":t.webId=e.Value}}),t})})})},e.prototype.searchSitesFromMock=function(e,t){return Cn.searchPeople(e.pageContext.web.absoluteUrl).then(function(){return[{title:"Contoso Site",id:"611453e1-5b5d-45ec-94aa-a180a02df897",url:e.pageContext.web.absoluteUrl}]})},e}();n("Mmr5");function Tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},o={},r=0,i=e;r<i.length;r++){var a=i[r];if(a)for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var l=a.subComponentStyles;for(var u in l)l.hasOwnProperty(u)&&(o.hasOwnProperty(u)?o[u].push(l[u]):o[u]=[l[u]]);continue}var c=n[s],d=a[s];n[s]=void 0===c?d:f(Array.isArray(c)?c:[c],Array.isArray(d)?d:[d])}}if(Object.keys(o).length>0){n.subComponentStyles={};var p=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];p[e]=function(e){return Tn.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var u in o)h(u)}return n}function In(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],r=0,i=t;r<i.length;r++){var a=i[r];a&&o.push("function"==typeof a?a(e):a)}return 1===o.length?o[0]:o.length?Tn.apply(void 0,o):{}}var En=void 0;try{En=window}catch(e){}function xn(e){if(void 0!==En){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:En}}var Pn=0,kn=function(){function e(){}return e.getValue=function(e,t){var n=On();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=On(),o=n.__callbacks__,r=n[e];if(t!==r){n[e]=t;var i={oldValue:r,value:t,key:e};for(var a in o)o.hasOwnProperty(a)&&o[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=Nn();t||(t=e.__id__=String(Pn++)),n[t]=e},e.removeChangeListener=function(e){delete Nn()[e.__id__]},e}();function On(){var e,t=xn()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function Nn(){return On().__callbacks__}var Rn,Dn={settings:{},scopedSettings:{},inCustomizerContext:!1},Mn=kn.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),Fn=[],Ln=function(){function e(){}return e.reset=function(){Mn.settings={},Mn.scopedSettings={}},e.applySettings=function(t){Mn.settings=d(d({},Mn.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){Mn.scopedSettings[t]=d(d({},Mn.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=Dn);for(var o={},r=t&&n.scopedSettings[t]||{},i=t&&Mn.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];o[l]=r[l]||n.settings[l]||i[l]||Mn.settings[l]}return o},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){Fn.push(e)},e.unobserve=function(e){Fn=Fn.filter(function(t){return t!==e})},e._raiseChange=function(){e._suppressUpdates||Fn.forEach(function(e){return e()})},e}(),An=o.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}}),Bn=["theme","styles"];function jn(e,t,n,r,i){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,l=void 0===s?Bn:s,u=o.forwardRef(function(r,i){var s,u,c,h,f,m,g=o.useRef(),y=(s=l,u=a,c=o.useState(0)[1],h=function(){return c(function(e){return++e})},f=o.useContext(An).customizations,m=f.inCustomizerContext,o.useEffect(function(){return m||Ln.observe(h),function(){m||Ln.unobserve(h)}},[m]),Ln.getSettings(s,u,f)),v=y.styles,b=(y.dir,p(y,["styles","dir"])),_=n?n(r):void 0,S=g.current&&g.current.__cachedInputs__||[];if(!g.current||v!==S[1]||r.styles!==S[2]){var C=function(e){return In(e,t,v,r.styles)};C.__cachedInputs__=[t,v,r.styles],C.__noStyleOverride__=!v&&!r.styles,g.current=C}return o.createElement(e,d({ref:i},b,_,r,{styles:g.current}))});u.displayName="Styled"+(e.displayName||e.name);var c=i?o.memo(u):u;return u.displayName&&(c.displayName=u.displayName),c}!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(Rn||(Rn={}));var Un,Wn="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),Hn={};try{Hn=window}catch(ui){}var Gn,zn=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=d({injectionMode:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(Un=Hn.__stylesheet__)||Un._lastStyleElement&&Un._lastStyleElement.ownerDocument!==document){var n=(null===(t=Hn)||void 0===t?void 0:t.FabricConfig)||{};Un=Hn.__stylesheet__=new e(n.mergeStyles)}return Un},e.prototype.setConfig=function(e){this._config=d(d({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:o}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=0!==this._config.injectionMode?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case 1:var o=n.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case 2:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),Wn||window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var o=this._findPlaceholderStyleTag();o?e.insertBefore(t,o.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function Kn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],r=zn.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=r.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&o.push(s)}}return i(e),{classes:n,objects:o}}function qn(e){Gn!==e&&(Gn=e)}function Vn(){return void 0===Gn&&(Gn="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),Gn}function Qn(){return{rtl:Vn()}}Gn=Vn();var Xn,Yn={},Jn={"user-select":1};function Zn(e,t){var n=function(){if(!Xn){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;Xn=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Xn}(),o=e[t];if(Jn[o]){var r=e[t+1];Jn[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var $n,eo=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function to(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=eo.indexOf(n)>-1,i=n.indexOf("--")>-1,a=r||i?"":"px";e[t+1]=""+o+a}}var no=(($n={}).left="right",$n.right="left",$n),oo={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function ro(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf("@noflip")>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf("left")>=0)t[n]=o.replace("left","right");else if(o.indexOf("right")>=0)t[n]=o.replace("right","left");else if(String(r).indexOf("left")>=0)t[n+1]=r.replace("left","right");else if(String(r).indexOf("right")>=0)t[n+1]=r.replace("right","left");else if(no[o])t[n]=no[o];else if(oo[r])t[n+1]=oo[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[0],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r)}}}function io(e){var t=e&&e["&"];return t?t.displayName:void 0}var ao,so=/\:global\((.+?)\)/g;function lo(e,t){return e.indexOf(":global(")>=0?e.replace(so,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function uo(e,t,n,o){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?co([o],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!so.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)},e)}(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return co([o],t,lo(n,e))}):co([o],t,lo(n,e))}function co(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o=zn.getInstance(),r=t[n];r||(r={},t[n]=r,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"==typeof s){var l=o.argsFromClassName(s);l&&co(l,t,n)}else if(Array.isArray(s))co(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&uo(n,t,p,d[p])}else"object"==typeof c?null!==c&&uo(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?po(r,u,c):r[u]=c)}}return t}function po(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function ho(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;r<i.length;r++){var a=i[r];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(o=!0,n.push(l,s[l]))}return o?n.join(""):void 0}function fo(e,t){return t<=0?"":1===t?e:e+fo(e,t-1)}function mo(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s<i.length;s+=2)r=void 0,"-"!==(r=(n=i)[o=s]).charAt(0)&&(n[o]=Yn[r]=Yn[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),to(i,s),ro(e,i,s),Zn(i,s);for(s=1;s<i.length;s+=4)i.splice(s,1,":",i[s],";");return i.join("")}function go(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=co(t),r=ho(e,o);if(r){var i=zn.getInstance(),a={className:i.classNameFromKey(r),key:r,args:t};if(!a.className){a.className=i.getClassName(io(o));for(var s=[],l=0,u=o.__order;l<u.length;l++){var c=u[l];s.push(c,mo(e,o[c]))}a.rulesToInsert=s}return a}}function yo(e,t){void 0===t&&(t=1);var n=zn.getInstance(),o=e.className,r=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,fo("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(o,r,i,a)}}function vo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bo(e,Qn())}function bo(e,t){var n,o,r={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var i=Tn.apply(void 0,e),a=[];for(var s in i)if(i.hasOwnProperty(s)){if("subComponentStyles"===s){r.subComponentStyles=i.subComponentStyles||{};continue}var l=Kn(i[s]),u=l.classes,c=l.objects;(null===(n=c)||void 0===n?void 0:n.length)?(h=go(t||{},{displayName:s},c))&&(a.push(h),r[s]=u.concat([h.className]).join(" ")):r[s]=u.join(" ")}for(var d=0,p=a;d<p.length;d++){var h;(h=p[d])&&yo(h,null===(o=t)||void 0===o?void 0:o.specificityMultiplier)}return r}function _o(e){if("undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function So(e){var t=null;try{var n=xn();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function Co(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===ao){var t=So("isRTL");null!==t&&function(e,t){void 0===t&&(t=!1);var n=_o();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=xn())||void 0===n||n.sessionStorage.setItem("isRTL",t)}catch(e){}}(0,e?"1":"0"),qn(ao=e)}(ao="1"===t);var n=_o();void 0===ao&&n&&qn(ao="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!ao}var wo=0,To=zn.getInstance();function Io(e){void 0===e&&(e={});var t=new Map,n=0,o=0,r=wo;return function(i,a){var s,l;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof i&&i.__noStyleOverride__)return i(a);o++;var u=t,c=a.theme,d=c&&void 0!==c.rtl?c.rtl:Co(),p=e.disableCaching;return r!==wo&&(r=wo,t=new Map,n=0),e.disableCaching||(u=xo(t,i),u=xo(u,a)),!p&&u.__retval__||(u.__retval__=void 0===i?{}:bo(["function"==typeof i?i(a):i],{rtl:!!d,specificityMultiplier:e.useStaticStyles?5:void 0}),p||n++),n>(e.cacheSize||50)&&((null===(l=null===(s=xn())||void 0===s?void 0:s.FabricConfig)||void 0===l?void 0:l.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+o+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0),u.__retval__}}function Eo(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function xo(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n<o.length;n++)e=Eo(e,o[n]);else e=Eo(e,t);else if("object"==typeof t)for(var r in t)t.hasOwnProperty(r)&&(e=Eo(e,t[r]));return e}To&&To.onReset&&To.onReset(function(){return wo++});var Po,ko,Oo,No=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},o=0,r=e;o<r.length;o++)for(var i=r[o],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},Ro=No(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Do=No(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Mo=No(Do,Ro),Fo=(No(Mo,["form"]),No(Mo,["height","loop","muted","preload","src","width"])),Lo=(No(Fo,["poster"]),No(Mo,["start"]),No(Mo,["value"]),No(Mo,["download","href","hrefLang","media","rel","target","type"])),Ao=No(Mo,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Bo=No(Ao,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),jo=(No(Ao,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),No(Ao,["form","multiple","required"]),No(Mo,["selected","value"]),No(Mo,["cellPadding","cellSpacing"]),No(Mo,["rowSpan","scope"]),No(Mo,["colSpan","headers","rowSpan","scope"]),No(Mo,["span"]),No(Mo,["span"]),No(Mo,["acceptCharset","action","encType","encType","method","noValidate","target"]),No(Mo,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),No(Mo,["alt","crossOrigin","height","src","srcSet","useMap","width"])),Uo=Mo;function Wo(e,t,n){for(var o,r=Array.isArray(t),i={},a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];!(!r&&t[l]||r&&t.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||n&&-1!==(null===(o=n)||void 0===o?void 0:o.indexOf(l))||(i[l]=e[l])}return i}!function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(Po||(Po={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(ko||(ko={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(Oo||(Oo={}));var Ho=Io(),Go=function(e){function t(t){var n=e.call(this,t)||this;return n._coverStyle=ko.portrait,n._imageElement=o.createRef(),n._frameElement=o.createRef(),n._onImageLoaded=function(e){var t=n.props,o=t.src,r=t.onLoad;r&&r(e),n._computeCoverStyle(n.props),o&&n.setState({loadState:Oo.loaded})},n._onImageError=function(e){n.props.onError&&n.props.onError(e),n.setState({loadState:Oo.error})},n.state={loadState:Oo.notLoaded},n}return c(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.src!==this.props.src?this.setState({loadState:Oo.notLoaded}):this.state.loadState===Oo.loaded&&this._computeCoverStyle(e)},t.prototype.componentDidUpdate=function(e,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},t.prototype.render=function(){var e=Wo(this.props,jo,["width","height"]),t=this.props,n=t.src,r=t.alt,i=t.width,a=t.height,s=t.shouldFadeIn,l=t.shouldStartVisible,u=t.className,c=t.imageFit,p=t.role,h=t.maximizeFrame,f=t.styles,m=t.theme,g=this.state.loadState,y=void 0!==this.props.coverStyle?this.props.coverStyle:this._coverStyle,v=Ho(f,{theme:m,className:u,width:i,height:a,maximizeFrame:h,shouldFadeIn:s,shouldStartVisible:l,isLoaded:g===Oo.loaded||g===Oo.notLoaded&&this.props.shouldStartVisible,isLandscape:y===ko.landscape,isCenter:c===Po.center,isCenterContain:c===Po.centerContain,isCenterCover:c===Po.centerCover,isContain:c===Po.contain,isCover:c===Po.cover,isNone:c===Po.none,isError:g===Oo.error,isNotImageFit:void 0===c});return o.createElement("div",{className:v.root,style:{width:i,height:a},ref:this._frameElement},o.createElement("img",d({},e,{onLoad:this._onImageLoaded,onError:this._onImageError,key:"fabricImage"+this.props.src||"",className:v.image,ref:this._imageElement,src:n,alt:r,role:p})))},t.prototype._checkImageLoaded=function(){var e=this.props.src;this.state.loadState===Oo.notLoaded&&this._imageElement.current&&(e&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:Oo.loaded}))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,o=e.height;if((t===Po.cover||t===Po.contain||t===Po.centerContain||t===Po.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var r;r="number"==typeof n&&"number"==typeof o&&t!==Po.centerContain&&t!==Po.centerCover?n/o:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>r?ko.landscape:ko.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(o.Component);function zo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ko(e,Qn())}function Ko(e,t){var n=Kn(e instanceof Array?e:[e]),o=n.classes,r=n.objects;return r.length&&o.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=go.apply(void 0,f([e],t));return o?(yo(o,e.specificityMultiplier),o.className):""}(t||{},r)),o.join(" ")}function qo(e){var t=zn.getInstance(),n=t.getClassName(),o=[];for(var r in e)e.hasOwnProperty(r)&&o.push(r,"{",mo(Qn(),e[r]),"}");var i=o.join("");return t.insertRule("@keyframes "+n+"{"+i+"}",!0),t.cacheClassName(n,i,[],["keyframes",i]),n}var Vo=qo({from:{opacity:0},to:{opacity:1}}),Qo=qo({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Xo=Er(-10),Yo=Er(-20),Jo=Er(-40),Zo=Er(-400),$o=Er(10),er=Er(20),tr=Er(40),nr=Er(400),or=xr(10),rr=xr(20),ir=xr(-10),ar=xr(-20),sr=Pr(10),lr=Pr(20),ur=Pr(40),cr=Pr(400),dr=Pr(-10),pr=Pr(-20),hr=Pr(-40),fr=Pr(-400),mr=kr(-10),gr=kr(-20),yr=kr(10),vr=kr(20),br=qo({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),_r=qo({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),Sr=qo({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Cr=qo({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),wr=qo({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tr=qo({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Ir(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Er(e){return qo({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function xr(e){return qo({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Pr(e){return qo({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function kr(e){return qo({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var Or,Nr,Rr,Dr,Mr,Fr=function(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=zo(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}({slideRightIn10:Ir(Vo+","+Xo,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightIn20:Ir(Vo+","+Yo,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightIn40:Ir(Vo+","+Jo,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightIn400:Ir(Vo+","+Zo,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftIn10:Ir(Vo+","+$o,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftIn20:Ir(Vo+","+er,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftIn40:Ir(Vo+","+tr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftIn400:Ir(Vo+","+nr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideUpIn10:Ir(Vo+","+or,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideUpIn20:Ir(Vo+","+rr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideDownIn10:Ir(Vo+","+ir,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideDownIn20:Ir(Vo+","+ar,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightOut10:Ir(Qo+","+sr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightOut20:Ir(Qo+","+lr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightOut40:Ir(Qo+","+ur,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideRightOut400:Ir(Qo+","+cr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftOut10:Ir(Qo+","+dr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftOut20:Ir(Qo+","+pr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftOut40:Ir(Qo+","+hr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideLeftOut400:Ir(Qo+","+fr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideUpOut10:Ir(Qo+","+mr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideUpOut20:Ir(Qo+","+gr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideDownOut10:Ir(Qo+","+yr,"0.367s","cubic-bezier(.1,.9,.2,1)"),slideDownOut20:Ir(Qo+","+vr,"0.367s","cubic-bezier(.1,.9,.2,1)"),scaleUpIn100:Ir(Vo+","+br,"0.367s","cubic-bezier(.1,.9,.2,1)"),scaleDownIn100:Ir(Vo+","+Sr,"0.367s","cubic-bezier(.1,.9,.2,1)"),scaleUpOut103:Ir(Qo+","+Cr,"0.167s","cubic-bezier(.1,.25,.75,.9)"),scaleDownOut98:Ir(Qo+","+_r,"0.167s","cubic-bezier(.1,.25,.75,.9)"),fadeIn100:Ir(Vo,"0.167s","cubic-bezier(.1,.25,.75,.9)"),fadeIn200:Ir(Vo,"0.267s","cubic-bezier(.1,.25,.75,.9)"),fadeIn400:Ir(Vo,"0.367s","cubic-bezier(.1,.25,.75,.9)"),fadeIn500:Ir(Vo,"0.467s","cubic-bezier(.1,.25,.75,.9)"),fadeOut100:Ir(Qo,"0.167s","cubic-bezier(.1,.25,.75,.9)"),fadeOut200:Ir(Qo,"0.267s","cubic-bezier(.1,.25,.75,.9)"),fadeOut400:Ir(Qo,"0.367s","cubic-bezier(.1,.25,.75,.9)"),fadeOut500:Ir(Qo,"0.467s","cubic-bezier(.1,.25,.75,.9)"),rotate90deg:Ir(wr,"0.1s","cubic-bezier(.1,.25,.75,.9)"),rotateN90deg:Ir(Tr,"0.1s","cubic-bezier(.1,.25,.75,.9)")});!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(Or||(Or={})),function(e){e.Arabic="'"+Or.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+Or.Cyrillic+"'",e.EastEuropean="'"+Or.EastEuropean+"'",e.Greek="'"+Or.Greek+"'",e.Hebrew="'"+Or.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+Or.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+Or.Vietnamese+"'",e.WestEuropean="'"+Or.WestEuropean+"'",e.Armenian="'"+Or.Armenian+"'",e.Georgian="'"+Or.Georgian+"'"}(Nr||(Nr={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Rr||(Rr={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Dr||(Dr={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Mr||(Mr={}));var Lr,Ar="@media screen and (-ms-high-contrast: active), (forced-colors: active)";function Br(e,t){return"@media only screen"+("number"==typeof e?" and (min-width: "+e+"px)":"")+("number"==typeof t?" and (max-width: "+t+"px)":"")}function jr(){var e;return(e={})["@media screen and (forced-colors: active)"]={forcedColorAdjust:"none"},e}function Ur(e,t){var n=t?xn(t):xn();if(n){var o=n.document.body.classList;o.add(e?"ms-Fabric--isFocusVisible":"ms-Fabric--isFocusHidden"),o.remove(e?"ms-Fabric--isFocusHidden":"ms-Fabric--isFocusVisible")}}function Wr(e,t,n,o,r,i,a){return function(e,t){var n,o;void 0===t&&(t={});var r=t.inset,i=void 0===r?0:r,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,p=void 0===d?e.palette.white:d,h=t.outlineColor,f=void 0===h?e.palette.neutralSecondary:h,m=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===m||m?":focus":"")+":after"]={content:'""',position:"absolute",left:i+1,top:i+1,bottom:i+1,right:i+1,border:s+"px solid "+p,outline:s+"px solid "+f,zIndex:Lr.FocusStyle,selectors:(o={},o[Ar]=c,o)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:o,borderColor:r,outlineColor:i,isFocusedOnly:a})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Lr||(Lr={}));var Hr=function(e,t,n,o){var r,i,a;void 0===n&&(n="border"),void 0===o&&(o=-1);var s="borderBottom"===n;return{borderColor:e,selectors:{":after":(r={pointerEvents:"none",content:"''",position:"absolute",left:s?0:o,top:o,bottom:o,right:s?0:o},r[n]="2px solid "+e,r.borderRadius=t,r.width="borderBottom"===n?"100%":void 0,r.selectors=(i={},i[Ar]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),r)}}},Gr={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"},zr=!1,Kr=0,qr={empty:!0},Vr={},Qr="undefined"==typeof WeakMap?null:WeakMap;function Xr(){Kr++}function Yr(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Qr)return e;if(!zr){var o=zn.getInstance();o&&o.onReset&&zn.getInstance().onReset(Xr),zr=!0}var r,i=0,a=Kr;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=r;(void 0===r||a!==Kr||t>0&&i>t)&&(r=Zr(),i=0,a=Kr),l=r;for(var u=0;u<o.length;u++){var c=Jr(o[u]);l.map.has(c)||l.map.set(c,Zr()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,o),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,o)),l.value}}function Jr(e){return e?"object"==typeof e||"function"==typeof e?e:(Vr[e]||(Vr[e]={val:e}),Vr[e]):qr}function Zr(){return{map:Qr?new Qr:null}}var $r=Yr(function(e,t){var n=zn.getInstance();return t?Object.keys(e).reduce(function(t,o){return t[o]=n.getClassName(e[o]),t},{}):e});function ei(e,t,n){return $r(e,void 0!==n?n:t.disableGlobalClassNames)}var ti,ni={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(ti||(ti={}));var oi={elevation4:ti.depth4,elevation8:ti.depth8,elevation16:ti.depth16,elevation64:ti.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function ri(e){zn.getInstance().insertRule("@font-face{"+mo(Qn(),e)+"}",!0)}var ii,ai="'Segoe UI', '"+Or.WestEuropean+"'",si={ar:Nr.Arabic,bg:Nr.Cyrillic,cs:Nr.EastEuropean,el:Nr.Greek,et:Nr.EastEuropean,he:Nr.Hebrew,hi:Nr.Hindi,hr:Nr.EastEuropean,hu:Nr.EastEuropean,ja:Nr.Japanese,kk:Nr.EastEuropean,ko:Nr.Korean,lt:Nr.EastEuropean,lv:Nr.EastEuropean,pl:Nr.EastEuropean,ru:Nr.Cyrillic,sk:Nr.EastEuropean,"sr-latn":Nr.EastEuropean,th:Nr.Thai,tr:Nr.EastEuropean,uk:Nr.Cyrillic,vi:Nr.Vietnamese,"zh-hans":Nr.ChineseSimplified,"zh-hant":Nr.ChineseTraditional,hy:Nr.Armenian,ka:Nr.Georgian};function li(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var ui,ci,di,pi=function(e){var t=function(e){for(var t in si)if(si.hasOwnProperty(t)&&e&&0===t.indexOf(e))return si[t];return ai}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:li(Rr.mini,Dr.regular,t),xSmall:li(Rr.xSmall,Dr.regular,t),small:li(Rr.small,Dr.regular,t),smallPlus:li(Rr.smallPlus,Dr.regular,t),medium:li(Rr.medium,Dr.regular,t),mediumPlus:li(Rr.mediumPlus,Dr.regular,t),large:li(Rr.large,Dr.regular,t),xLarge:li(Rr.xLarge,Dr.semibold,t),xLargePlus:li(Rr.xLargePlus,Dr.semibold,t),xxLarge:li(Rr.xxLarge,Dr.semibold,t),xxLargePlus:li(Rr.xxLargePlus,Dr.semibold,t),superLarge:li(Rr.superLarge,Dr.semibold,t),mega:li(Rr.mega,Dr.semibold,t)}}(function(e){if(void 0===e&&(e="localStorage"),void 0===ii){var t=_o(),n="localStorage"===e?function(e){var t=null;try{var n=xn();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?So("language"):void 0;n&&(ii=n),void 0===ii&&t&&(ii=t.documentElement.getAttribute("lang")),void 0===ii&&(ii="en")}return ii}("sessionStorage"));function hi(e,t,n,o){ri({fontFamily:e="'"+e+"'",src:(void 0!==o?"local('"+o+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function fi(e,t,n,o,r){void 0===o&&(o="segoeui");var i=e+"/"+n+"/"+o;hi(t,i+"-light",Dr.light,r&&r+" Light"),hi(t,i+"-semilight",Dr.semilight,r&&r+" SemiLight"),hi(t,i+"-regular",Dr.regular,r),hi(t,i+"-semibold",Dr.semibold,r&&r+" SemiBold"),hi(t,i+"-bold",Dr.bold,r&&r+" Bold")}function mi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++){var i=r[o];gi(e||{},i)}return e}function gi(e,t,n){for(var o in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(o)&&"__proto__"!==o&&"constructor"!==o&&"prototype"!==o){var r=t[o];if("object"!=typeof r||null===r||Array.isArray(r))e[o]=r;else{var i=n.indexOf(r)>-1;e[o]=i?r:gi(e[o]||{},r,n)}}return n.pop(),e}function yi(e,t,n,o,r){return void 0===r&&(r=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(vi(e,t,d({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},n),o),r)}function vi(e,t,n,o,r){var i,a,s;void 0===r&&(r=!1);var l={},u=e||{},c=u.white,p=u.black,h=u.themePrimary,f=u.themeDark,m=u.themeDarker,g=u.themeDarkAlt,y=u.themeLighter,v=u.neutralLight,b=u.neutralLighter,_=u.neutralDark,S=u.neutralQuaternary,C=u.neutralQuaternaryAlt,w=u.neutralPrimary,T=u.neutralSecondary,I=u.neutralSecondaryAlt,E=u.neutralTertiary,x=u.neutralTertiaryAlt,P=u.neutralLighterAlt,k=u.accent;return c&&(l.bodyBackground=c,l.bodyFrameBackground=c,l.accentButtonText=c,l.buttonBackground=c,l.primaryButtonText=c,l.primaryButtonTextHovered=c,l.primaryButtonTextPressed=c,l.inputBackground=c,l.inputForegroundChecked=c,l.listBackground=c,l.menuBackground=c,l.cardStandoutBackground=c),p&&(l.bodyTextChecked=p,l.buttonTextCheckedHovered=p),h&&(l.link=h,l.primaryButtonBackground=h,l.inputBackgroundChecked=h,l.inputIcon=h,l.inputFocusBorderAlt=h,l.menuIcon=h,l.menuHeader=h,l.accentButtonBackground=h),f&&(l.primaryButtonBackgroundPressed=f,l.inputBackgroundCheckedHovered=f,l.inputIconHovered=f),m&&(l.linkHovered=m),g&&(l.primaryButtonBackgroundHovered=g),y&&(l.inputPlaceholderBackgroundChecked=y),v&&(l.bodyBackgroundChecked=v,l.bodyFrameDivider=v,l.bodyDivider=v,l.variantBorder=v,l.buttonBackgroundCheckedHovered=v,l.buttonBackgroundPressed=v,l.listItemBackgroundChecked=v,l.listHeaderBackgroundPressed=v,l.menuItemBackgroundPressed=v,l.menuItemBackgroundChecked=v),b&&(l.bodyBackgroundHovered=b,l.buttonBackgroundHovered=b,l.buttonBackgroundDisabled=b,l.buttonBorderDisabled=b,l.primaryButtonBackgroundDisabled=b,l.disabledBackground=b,l.listItemBackgroundHovered=b,l.listHeaderBackgroundHovered=b,l.menuItemBackgroundHovered=b),S&&(l.primaryButtonTextDisabled=S,l.disabledSubtext=S),C&&(l.listItemBackgroundCheckedHovered=C),E&&(l.disabledBodyText=E,l.variantBorderHovered=(null===(i=n)||void 0===i?void 0:i.variantBorderHovered)||E,l.buttonTextDisabled=E,l.inputIconDisabled=E,l.disabledText=E),w&&(l.bodyText=w,l.actionLink=w,l.buttonText=w,l.inputBorderHovered=w,l.inputText=w,l.listText=w,l.menuItemText=w),P&&(l.bodyStandoutBackground=P,l.defaultStateBackground=P),_&&(l.actionLinkHovered=_,l.buttonTextHovered=_,l.buttonTextChecked=_,l.buttonTextPressed=_,l.inputTextHovered=_,l.menuItemTextHovered=_),T&&(l.bodySubtext=T,l.focusBorder=T,l.inputBorder=T,l.smallInputBorder=T,l.inputPlaceholderText=T),I&&(l.buttonBorder=I),x&&(l.disabledBodySubtext=x,l.disabledBorder=x,l.buttonBackgroundChecked=x,l.menuDivider=x),k&&(l.accentButtonBackground=k),(null===(a=t)||void 0===a?void 0:a.elevation4)&&(l.cardShadow=t.elevation4),!o&&(null===(s=t)||void 0===s?void 0:s.elevation8)?l.cardShadowHovered=t.elevation8:l.variantBorderHovered&&(l.cardShadowHovered="0 0 1px "+l.variantBorderHovered),d(d({},l),n)}!function(e){if(e){var t=e+"/fonts";fi(t,Or.Thai,"leelawadeeui-thai","leelawadeeui"),fi(t,Or.Arabic,"segoeui-arabic"),fi(t,Or.Cyrillic,"segoeui-cyrillic"),fi(t,Or.EastEuropean,"segoeui-easteuropean"),fi(t,Or.Greek,"segoeui-greek"),fi(t,Or.Hebrew,"segoeui-hebrew"),fi(t,Or.Vietnamese,"segoeui-vietnamese"),fi(t,Or.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),fi(t,Nr.Selawik,"selawik","selawik"),fi(t,Or.Armenian,"segoeui-armenian"),fi(t,Or.Georgian,"segoeui-georgian"),hi("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Dr.light),hi("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Dr.semibold)}}(null!=(di=null===(ci=null===(ui=xn())||void 0===ui?void 0:ui.FabricConfig)||void 0===ci?void 0:ci.fontBaseUrl)?di:"https://static2.sharepointonline.com/files/fabric/assets");var bi={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function _i(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,o,r,i;void 0===t&&(t={});var a=mi({},e,t,{semanticColors:vi(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(o=t.palette)||void 0===o?void 0:o.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var u=l[s];a.fonts[u]=mi(a.fonts[u],t.defaultFontStyle,null===(i=null===(r=t)||void 0===r?void 0:r.fonts)||void 0===i?void 0:i[u])}return t.stylesheets&&(a.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),a}({palette:ni,effects:oi,fonts:pi,spacing:bi,isInverted:n,disableGlobalClassNames:!1,semanticColors:yi(ni,oi,void 0,n,t),rtl:void 0},e)}var Si=_i({});function Ci(){var e,t,n;if(!Ln.getSettings(["theme"]).theme){var o=xn();(null===(n=null===(t=o)||void 0===t?void 0:t.FabricConfig)||void 0===n?void 0:n.theme)&&(Si=_i(o.FabricConfig.theme)),Ln.applySettings(((e={}).theme=Si,e))}}Ci();var wi={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"};function Ti(e){console&&console.warn&&console.warn(e)}var Ii=kn.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),Ei=zn.getInstance();Ei&&Ei.onReset&&Ei.onReset(function(){for(var e in Ii)Ii.hasOwnProperty(e)&&Ii[e].subset&&(Ii[e].subset.className=void 0)});var xi=function(e){return e.toLowerCase()};function Pi(e,t){var n=d(d({},e),{isRegistered:!1,className:void 0}),o=e.icons;for(var r in t=t?d(d({},Ii.__options),t):Ii.__options,o)if(o.hasOwnProperty(r)){var i=o[r],a=xi(r);Ii[a]?Ri(r):Ii[a]={code:i,subset:n}}}function ki(e,t){Ii.__remapped[xi(e)]=xi(t)}var Oi=[],Ni=void 0;function Ri(e){Ii.__options.disableWarnings||(Oi.push(e),void 0===Ni&&(Ni=setTimeout(function(){Ti("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+Oi.slice(0,10).join(", ")+(Oi.length>10?" (+ "+(Oi.length-10)+" more)":"")),Ni=void 0,Oi=[]},2e3)))}var Di=n("S/Ex");Object(Di.a)("@uifabric/styling","7.18.1"),Ci();var Mi={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Fi=jn(Go,function(e){var t=e.className,n=e.width,o=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,f=e.isNone,m=e.isError,g=e.isNotImageFit,y=e.theme,v=ei(Mi,y),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},_=xn(),S=void 0!==_&&void 0===_.navigator.msMaxTouchPoints,C=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[v.root,y.fonts.medium,{overflow:"hidden"},r&&[v.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&Fr.fadeIn400,(u||c||d||p||h)&&{position:"relative"},t],image:[v.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[v.imageCenter,b],c&&[v.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&C,b],d&&[v.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&C,b],p&&[v.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],h&&[v.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],f&&[v.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!o&&{height:"auto",width:"100%"},!n&&!!o&&{height:"100%",width:"auto"},!!n&&!!o&&{height:"100%",width:"100%"}],l&&v.imageLandscape,!l&&v.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}},void 0,{scope:"Image"},!0),Li=vo({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]});function Ai(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],o=0,r=e;o<r.length;o++){var i=r[o];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}var Bi=Yr(function(e){var t=function(e){var t=void 0,n=Ii.__options;if(e=e?xi(e):"",e=Ii.__remapped[e]||e)if(t=Ii[e]){var o=t.subset;o&&o.fontFace&&(o.isRegistered||(ri(o.fontFace),o.isRegistered=!0),o.className||(o.className=zo(o.style,{fontFamily:o.fontFace.fontFamily,fontWeight:o.fontFace.fontWeight||"normal",fontStyle:o.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&Ti('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return t}(e)||{subset:{},code:void 0},n=t.code,o=t.subset;return n?{children:n,iconClassName:o.className,fontFamily:o.fontFace&&o.fontFace.fontFamily}:null},void 0,!0),ji=function(e){var t=e.iconName,n=e.className,r=e.style,i=void 0===r?{}:r,a=Bi(t)||{},s=a.iconClassName,l=a.children,u=a.fontFamily,c=Wo(e,Mo),p=e["aria-label"]?{}:{role:"presentation","aria-hidden":!0};return o.createElement("i",d({"data-icon-name":t},p,c,{className:Ai("ms-Icon",Li.root,s,!t&&Li.placeholder,n),style:d({fontFamily:u},i)}),l)},Ui=(Yr(function(e,t,n){return ji({iconName:e,className:t,"aria-label":n})}),Io({cacheSize:100})),Wi=jn(function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===Oo.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.styles,i=e.iconName,a=e.imageErrorAs,s=e.theme,l="string"==typeof i&&0===i.length,u=!!this.props.imageProps||this.props.iconType===Rn.image||this.props.iconType===Rn.Image,c=Bi(i)||{},p=c.iconClassName,h=c.children,f=Ui(r,{theme:s,className:n,iconClassName:p,isImage:u,isPlaceholder:l}),m=u?"span":"i",g=Wo(this.props,Mo,["aria-label"]),y=this.state.imageLoadError,v=d(d({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=y&&a||Fi,_=this.props["aria-label"]||this.props.ariaLabel,S=_?{"aria-label":_}:{"aria-hidden":!this.props["aria-labelledby"]&&!v["aria-labelledby"]};return o.createElement(m,d({"data-icon-name":i},S,g,{className:f.root}),u?o.createElement(b,d({},v)):t||h)},t}(o.Component),function(e){var t=e.className,n=e.iconClassName,o=e.isPlaceholder,r=e.isImage,i=e.styles;return{root:[o&&Li.placeholder,Li.root,r&&Li.image,n,t,i&&i.root,i&&i.imageContainer]}},void 0,{scope:"Icon"},!0);Wi.displayName="Icon";var Hi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hi(t,e),t.prototype.render=function(){return"undefined"!==this.props.errorMessage&&null!==this.props.errorMessage&&""!==this.props.errorMessage?o.createElement("div",{"aria-live":"assertive"},o.createElement("p",{className:"ms-TextField-errorMessage errorMessage_67aeb894"},o.createElement(Wi,{iconName:"Error",className:"errorIcon_67aeb894"}),o.createElement("span",{"data-automation-id":"error-message"},this.props.errorMessage))):null},t}(o.Component),zi=n("/A2d"),Ki=n.n(zi),qi=function(){return(qi=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Vi=Io({cacheSize:100}),Qi=jn(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,i=e.className,a=e.disabled,s=e.styles,l=e.required,u=e.theme,c=Vi(s,{className:i,disabled:a,required:l,theme:u});return o.createElement(n,d({},Wo(this.props,Uo),{className:c.root}),r)},t}(o.Component),function(e){var t,n=e.theme,o=e.className,r=e.disabled,i=e.required,a=n.semanticColors,s=Dr.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},r&&{color:u,selectors:d((t={},t[Ar]={color:"GrayText"},t),jr())},i&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},o]}},void 0,{scope:"Label"});function Xi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t.forEach(function(t){return t&&t.apply(e,n)})}}function Yi(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Xi(e,e[n],t[n]))}(e,{componentDidMount:Ji,componentDidUpdate:Zi,componentWillUnmount:$i})}function Ji(){ea(this.props.componentRef,this)}function Zi(e){e.componentRef!==this.props.componentRef&&(ea(e.componentRef,null),ea(this.props.componentRef,this))}function $i(){ea(this.props.componentRef,null)}function ea(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var ta=xn()||{};void 0===ta.__currentId__&&(ta.__currentId__=0);var na=!1;function oa(e){if(!na){var t=zn.getInstance();t&&t.onReset&&t.onReset(ra),na=!0}return(void 0===e?"id__":e)+ta.__currentId__++}function ra(e){void 0===e&&(e=0),ta.__currentId__=e}function ia(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function aa(e,t){return e&&e!==document.body?t(e)?e:aa(ia(e),t):null}function sa(e,t){var n=aa(e,function(e){return t===e||e.hasAttribute("data-portal-element")});return null!==n&&n.hasAttribute("data-portal-element")}var la=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],e.apply(n._parent)}catch(e){n._onErrorHandler&&n._onErrorHandler(e)}},t),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,o=0,r=xn(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),o=r.setTimeout(function(){try{n._immediateIds&&delete n._immediateIds[o],e.apply(n._parent)}catch(e){n._logError(e)}},0),this._immediateIds[o]=!0),o},e.prototype.clearImmediate=function(e,t){var n=xn(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{e.apply(n._parent)}catch(e){n._logError(e)}},t),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var o=this;if(this._isDisposed)return this._noop;var r,i,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),p=n-u,h=s?a-p:a;return p>=a&&(!t||s)?(u=n,c&&(o.clearTimeout(c),c=null),r=e.apply(o._parent,i)):null===c&&l&&(c=o.setTimeout(d,h)),r};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var o=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var i,a,s=t||0,l=!1,u=!0,c=null,d=0,p=Date.now(),h=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){h&&(o.clearTimeout(h),h=null),p=e},m=function(t){f(t),i=e.apply(o._parent,a)},g=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var r=t-d,a=s-r,f=t-p,y=!1;return null!==c&&(f>=c&&h?y=!0:a=Math.min(a,c-f)),r>=s||y||n?m(t):null!==h&&e||!u||(h=o.setTimeout(g,a)),i},y=function(){return!!h},v=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return v.cancel=function(){y()&&f(Date.now())},v.flush=function(){return y()&&m(Date.now()),i},v.pending=y,v},e.prototype.requestAnimationFrame=function(e,t){var n=this,o=0,r=xn(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[o],e.apply(n._parent)}catch(e){n._logError(e)}};o=r.requestAnimationFrame?r.requestAnimationFrame(i):r.setTimeout(i,0),this._animationFrameIds[o]=!0}return o},e.prototype.cancelAnimationFrame=function(e,t){var n=xn(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function ua(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return da.apply(this,[null,e].concat(t))}function da(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];t=t||{};for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var pa,ha=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,o,r){var i;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,r||!1,!0),ca(a,o),i=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(o);t.fireEvent("on"+n,s)}}else for(;t&&!1!==i;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],p=0;!1!==i&&p<d.length;p++){var h=d[p];h.objectCallback&&(i=h.objectCallback.call(h.parent,o))}t=r?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var o in t)t.hasOwnProperty(o)&&this.on(e,o,t[o],n)},e.prototype.on=function(t,n,o,r){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],o,r);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:o,options:r};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=o.apply(l,e))&&e[0]){var r=e[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,r):t.attachEvent&&t.attachEvent("on"+n,c)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return o.apply(l,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,o){for(var r=0;r<this._eventRecords.length;r++){var i=this._eventRecords[r];if(!(e&&e!==i.target||t&&t!==i.eventName||n&&n!==i.callback||"boolean"==typeof o&&o!==i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(r--,1)}}},e.prototype.raise=function(t,n,o){return e.raise(this._parent,t,n,o)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();function fa(e,t,n){var o=e[n],r=t[n];(o||r)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r&&(e=r.apply(this,t)),o!==r&&(e=o.apply(this,t)),e})}function ma(){return null}!function(e){function t(n,o){var r=e.call(this,n,o)||this;return function(e,t,n){for(var o=0,r=n.length;o<r;o++)fa(e,t,n[o])}(r,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),r}c(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new la(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new ha(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))}}(o.Component);var ga=((pa={})[38]=1,pa[40]=1,pa[37]=1,pa[39]=1,pa[36]=1,pa[35]=1,pa[9]=1,pa[33]=1,pa[34]=1,pa),ya=new WeakMap;function va(e,t){var n,o=ya.get(e);return n=o?o+t:1,ya.set(e,n),n}var ba=function(e){var t;return t=e.rootRef,o.useEffect(function(){var e,n,o=xn(null===(e=t)||void 0===e?void 0:e.current);if(o&&!0!==(null===(n=o.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var r=va(o,1);return r<=1&&(o.addEventListener("mousedown",_a,!0),o.addEventListener("pointerdown",Sa,!0),o.addEventListener("keydown",Ca,!0)),function(){var e;o&&!0!==(null===(e=o.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=va(o,-1))&&(o.removeEventListener("mousedown",_a,!0),o.removeEventListener("pointerdown",Sa,!0),o.removeEventListener("keydown",Ca,!0))}}},[t]),null};function _a(e){Ur(!1,e.target)}function Sa(e){"mouse"!==e.pointerType&&Ur(!1,e.target)}function Ca(e){var t;t=e.which,ga[t]&&Ur(!0,e.target)}function wa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(function(e){return e}).join(" ").trim();return""===n?void 0:n}function Ta(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Ia,Ea,xa=function(e){return function(t){for(var n=0,o=e.refs;n<o.length;n++){var r=o[n];"function"==typeof r?r(t):r&&(r.current=t)}}},Pa=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&Ta(t.refs,e)||(t.resolver=xa(t)),t.refs=e,t.resolver}},ka=function(e){var t=e.className,n=e.imageProps,r=Wo(e,Mo),i=e["aria-label"]?{}:{role:"presentation","aria-hidden":!n.alt&&!n["aria-labelledby"]};return o.createElement("div",d({},i,r,{className:Ai("ms-Icon",Li.root,Li.image,t)}),o.createElement(Fi,d({},n)))};function Oa(e,t,n){void 0===n&&(n=!0);var o=!1;if(e&&t)if(n)if(e===t)o=!0;else for(o=!1;t;){var r=ia(t);if(r===e){o=!0;break}t=r}else e.contains&&(o=e.contains(t));return o}function Na(e,t,n,o,r,i,a,s){if(!t||!a&&t===e)return null;var l=Da(t);if(r&&l&&(i||!Fa(t)&&!La(t))){var u=Na(e,t.lastElementChild,!0,!0,!0,i,a,s);if(u){if(s&&Ma(u,!0)||!s)return u;var c=Na(e,u.previousElementSibling,!0,!0,!0,i,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var p=Na(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}return n&&l&&Ma(t,s)?t:Na(e,t.previousElementSibling,!0,!0,!0,i,a,s)||(o?null:Na(e,t.parentElement,!0,!1,!1,i,a,s))}function Ra(e,t,n,o,r,i,a,s){if(!t||t===e&&r&&!a)return null;var l=Da(t);if(n&&l&&Ma(t,s))return t;if(!r&&l&&(i||!Fa(t)&&!La(t))){var u=Ra(e,t.firstElementChild,!0,!0,!1,i,a,s);if(u)return u}return t===e?null:Ra(e,t.nextElementSibling,!0,!0,!1,i,a,s)||(o?null:Ra(e,t.parentElement,!1,!1,!0,i,a,s))}function Da(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Ma(e,t){if(!e||e.disabled)return!1;var n=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(n=parseInt(o,10));var r=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==o&&n>=0,a=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||i);return t?-1!==n&&a:a}function Fa(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function La(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Aa(e,t){return"true"!==function(e,t){var n=aa(e,function(e){return e.hasAttribute(t)});return n&&n.getAttribute(t)}(e,t)}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(Ia||(Ia={})),function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Ea||(Ea={}));var Ba,ja,Ua=void 0;function Wa(e){var t=function(e){var t;return"function"==typeof Event?t=new Event("MouseEvents"):(t=document.createEvent("Event")).initEvent("MouseEvents",!0,!0),t}();t.initEvent("click",!0,!0),e.dispatchEvent(t)}function Ha(){if(void 0===Ba){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Ba=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ba}zo({overflow:"hidden !important"});var Ga,za={},Ka=new Set,qa=["text","number","password","email","tel","url","search"],Va=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._mergedRef=Pa(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,o=n.props,r=o.onActiveElementChanged,i=o.doNotAllowFocusEventToPropagate,a=o.stopFocusPropagation,s=o.onFocusNotification,l=o.onFocus,u=o.shouldFocusInnerElementWhenReceivedFocus,c=o.defaultTabbableElement,d=n._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var p=e.target;p&&p!==n._root.current;){if(Ma(p)&&n._isImmediateDescendantOfZone(p)){t=p;break}p=ia(p,!1)}if(u&&e.target===n._root.current){var h=c&&"function"==typeof c&&c(n._root.current);h&&Ma(h)?(t=h,h.focus()):(n.focus(!0),n._activeElement&&(t=null))}var f=!n._activeElement;t&&t!==n._activeElement&&((d||f)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,f&&n._updateTabIndexes()),r&&r(n._activeElement,e),(a||i)&&e.stopPropagation(),l?l(e):s&&s()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,o=[];t&&t!==n._root.current;)o.push(t),t=ia(t,!1);for(;o.length&&((t=o.pop())&&Ma(t)&&n._setActiveElement(t,!0),!Fa(t)););}},n._onKeyDown=function(e,t){if(!n._portalContainsElement(e.target)){var o=n.props,r=o.direction,i=o.disabled,a=o.isInnerZoneKeystroke,s=o.pagingSupportDisabled,l=o.shouldEnterInnerZone;if(!(i||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((l&&l(e)||a&&a(e))&&n._isImmediateDescendantOfZone(e.target)){var u=n._getFirstInnerZone();if(u){if(!u.focus(!0))return}else{if(!La(e.target))return;if(!n.focusElement(Ra(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(n._tryInvokeClickForFocusable(e.target))break;return;case 37:if(r!==Ea.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusLeft(t)))break;return;case 39:if(r!==Ea.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusRight(t)))break;return;case 38:if(r!==Ea.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusUp()))break;return;case 40:if(r!==Ea.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusDown()))break;return;case 34:if(!s&&n._moveFocusPaging(!0))break;return;case 33:if(!s&&n._moveFocusPaging(!1))break;return;case 9:if(n.props.allowTabKey||1===n.props.handleTabKey||2===n.props.handleTabKey&&n._isElementInput(e.target)){var c;if(n._processingTabKey=!0,c=r!==Ea.vertical&&n._shouldWrapFocus(n._activeElement,"data-no-horizontal-wrap")?(Co(t)?!e.shiftKey:e.shiftKey)?n._moveFocusLeft(t):n._moveFocusRight(t):e.shiftKey?n._moveFocusUp():n._moveFocusDown(),n._processingTabKey=!1,c)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case 36:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var d=n._root.current&&n._root.current.firstChild;if(n._root.current&&d&&n.focusElement(Ra(n._root.current,d,!0)))break;return;case 35:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var p=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(Na(n._root.current,p,!0,!0,!0)))break;return;case 13:if(n._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,o){var r=n._focusAlignment.left||n._focusAlignment.x||0,i=Math.floor(o.top),a=Math.floor(t.bottom),s=Math.floor(o.bottom),l=Math.floor(t.top);return e&&i>a||!e&&s<l?r>=o.left&&r<=o.left+o.width?0:Math.abs(o.left+o.width/2-r):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},Yi(n),n._id=oa("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1,n}return c(t,e),t.getOuterZones=function(){return Ka.size},t._onKeyDownCapture=function(e){9===e.which&&Ka.forEach(function(e){return e._updateTabIndexes()})},t.prototype.componentDidMount=function(){var e=this._root.current;if(za[this._id]=this,e){this._windowElement=xn(e);for(var n=ia(e,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Fa(n)){this._isInnerZone=!0;break}n=ia(n,!1)}this._isInnerZone||(Ka.add(this),this._windowElement&&1===Ka.size&&this._windowElement.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=function(e,t){for(var n=e,o=0,r=t;o<r.length;o++){var i=r[o],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return Ma(n)&&Da(n)?n:Ra(e,n,!0)||Na(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete za[this._id],this._isInnerZone||(Ka.delete(this),this._windowElement&&0===Ka.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,i=t.rootProps,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,u=Wo(this.props,Mo),c=n||r||"div";this._evaluateFocusBeforeRender();var p,h=(void 0===p&&(p=!1),!0===p&&(Si=_i({},p)),Si);return o.createElement(c,d({"aria-labelledby":s,"aria-describedby":a},u,i,{className:Ai((ja||(ja=zo({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ja),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute("data-is-focusable")&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=za[t.getAttribute("data-focuszone-id")];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Oa(this._root.current,this._activeElement)&&Ma(this._activeElement))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Ra(this._root.current,o,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Na(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,o=n.onBeforeFocus,r=n.shouldReceiveFocus;return!(r&&!r(e)||o&&!o(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var o=Oa(e,n,!1);this._lastIndexPath=o?function(e,t){for(var n=[];t&&e&&t!==e;){var o=ia(t,!0);if(null===o)return[];n.unshift(Array.prototype.indexOf.call(o.children,t)),t=o}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(Fa(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e){if(e===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if("BUTTON"===e.tagName||"A"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName)return!1;if(this._isImmediateDescendantOfZone(e)&&"true"===e.getAttribute("data-is-focusable")&&"true"!==e.getAttribute("data-disable-click-on-enter"))return Wa(e),!0;e=ia(e,!1)}while(e!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(Fa(e))return za[e.getAttribute("data-focuszone-id")];for(var t=e.firstElementChild;t;){if(Fa(t))return za[t.getAttribute("data-focuszone-id")];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,o){void 0===o&&(o=!0);var r=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Ea.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,e))return!1;var u=l?r.getBoundingClientRect():null;do{if(r=e?Ra(this._root.current,r):Na(this._root.current,r),!l){a=r;break}if(r){var c=t(u,r.getBoundingClientRect());if(-1===c&&-1===i){a=r;break}if(c>-1&&(-1===i||c<i)&&(i=c,a=r),i>=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&o)return e?this.focusElement(Ra(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Na(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,function(o,r){var i=-1,a=Math.floor(r.top),s=Math.floor(o.bottom);return a<s?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a>=s||a===t)&&(t=a,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,function(o,r){var i=-1,a=Math.floor(r.bottom),s=Math.floor(r.top),l=Math.floor(o.top);return a>l?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=l||s===t)&&(t=s,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Co(e),function(o,r){var i=-1;return(Co(e)?parseFloat(r.top.toFixed(3))<parseFloat(o.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)))&&r.right<=o.right&&t.props.direction!==Ea.vertical?i=o.right-r.right:n||(i=-999999999),i},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Co(e),function(o,r){var i=-1;return(Co(e)?parseFloat(r.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(o.bottom.toFixed(3)))&&r.left>=o.left&&t.props.direction!==Ea.vertical?i=r.left-o.left:n||(i=-999999999),i},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var o=function(e){for(var t=e,n=_o(e);t&&t!==n.body;){if("true"===t.getAttribute("data-is-scrollable"))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute("data-is-scrollable")){var o=getComputedStyle(t),r=o?o.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return t}t=t.parentElement}return t&&t!==n.body||(t=xn(e)),t}(n);if(!o)return!1;var r=-1,i=void 0,a=-1,s=-1,l=o.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Ra(this._root.current,n):Na(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),p=Math.floor(u.bottom),h=Math.floor(c.bottom),f=Math.floor(u.top),m=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>p+l||!e&&h<f-l)break;m>-1&&(e&&d>a?(a=d,r=m,i=n):!e&&h<s?(s=h,r=m,i=n):(-1===r||m<=r)&&(r=m,i=n))}}while(n);var g=!1;if(i&&i!==this._activeElement)g=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Ra(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Na(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===Ea.bidirectional&&(!this._focusAlignment||t||n)){var o=e.getBoundingClientRect(),r=o.left+o.width/2,i=o.top+o.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:i}),t&&(this._focusAlignment.left=r),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=ia(e,!1);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Fa(t))return t;t=ia(t,!1)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Oa(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Ma(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var o=t[n];Fa(o)?"true"===o.getAttribute("data-is-focusable")&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==o?"-1"!==o.getAttribute("tabindex")&&o.setAttribute("tabindex","-1"):(this._defaultFocusElement=o,"0"!==o.getAttribute("tabindex")&&o.setAttribute("tabindex","0"))):(o.getAttribute&&"false"===o.getAttribute("data-is-focusable")&&o.setAttribute("tabindex","-1"),Ma(o)?this.props.disabled?o.setAttribute("tabindex","-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==o?"-1"!==o.getAttribute("tabindex")&&o.setAttribute("tabindex","-1"):(this._defaultFocusElement=o,"0"!==o.getAttribute("tabindex")&&o.setAttribute("tabindex","0")):"svg"===o.tagName&&"false"!==o.getAttribute("focusable")&&o.setAttribute("focusable","false")),this._updateTabIndexes(o)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&qa.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,o=n!==e.selectionEnd,r=e.value,i=e.readOnly;if(o||n>0&&!t&&!i||n!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Aa(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&sa(e,this._root.current)},t.prototype._getDocument=function(){return _o(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Ea.bidirectional,shouldRaiseClicks:!0},t}(o.Component);function Qa(e){if(void 0===Ga||e){var t=xn(),n=t&&t.navigator.userAgent;Ga=!!n&&-1!==n.indexOf("Macintosh")}return!!Ga}var Xa=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function Ya(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Ja(e){return!(!e.subMenuProps&&!e.items)}function Za(e){return!(!e.isDisabled&&!e.disabled)}function $a(e){return null!==Ya(e)?"menuitemcheckbox":"menuitem"}var es=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"],ts=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return c(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=es);var o=[],r=function(r){"function"!=typeof t[r]||void 0!==e[r]||n&&-1!==n.indexOf(r)||(o.push(r),e[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[r].apply(t,e)})};for(var i in t)r(i);return o}(this,e):this._hoisted&&(t=this,this._hoisted.forEach(function(e){return delete t[e]}))},t}(o.Component);function ns(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var os,rs=o.createContext({window:"object"==typeof window?window:void 0});!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(os||(os={}));var is,as,ss,ls=[479,639,1023,1365,1919,99999999];function us(){return is||os.large}function cs(e){var t,n=((t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=function(e){var t=os.small;if(!e)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");try{for(;e.innerWidth>ls[t];)t++}catch(e){t=us()}return is=t,t}(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new ha(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:us()},n}return c(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===os.unknown?null:o.createElement(e,d({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(ts)).contextType=rs,t);return ns(e,n)}function ds(e,t,n,o){return e.addEventListener(t,n,o),function(){return e.removeEventListener(t,n,o)}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(as||(as={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(ss||(ss={}));var ps,hs=function(){function e(e,t,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),this.top=n,this.bottom=o,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function fs(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ms=((ps={})[0]=fs(as.top,as.left),ps[1]=fs(as.top),ps[2]=fs(as.top,as.right),ps[3]=fs(as.top,void 0,!0),ps[4]=fs(as.bottom,as.left),ps[5]=fs(as.bottom),ps[6]=fs(as.bottom,as.right),ps[7]=fs(as.bottom,void 0,!0),ps[8]=fs(as.left,as.top),ps[9]=fs(as.left),ps[10]=fs(as.left,as.bottom),ps[11]=fs(as.right,as.top),ps[12]=fs(as.right),ps[13]=fs(as.right,as.bottom),ps);function gs(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function ys(e,t){var n=[];return e.top<t.top&&n.push(as.top),e.bottom>t.bottom&&n.push(as.bottom),e.left<t.left&&n.push(as.left),e.right>t.right&&n.push(as.right),n}function vs(e,t){return e[as[t]]}function bs(e,t,n){return e[as[t]]=n,e}function _s(e,t){var n=Os(t);return(vs(e,n.positiveEdge)+vs(e,n.negativeEdge))/2}function Ss(e,t){return e>0?t:-1*t}function Cs(e,t){return Ss(e,vs(t,e))}function ws(e,t,n){return Ss(n,vs(e,n)-vs(t,n))}function Ts(e,t,n){var o=vs(e,t)-n;return e=bs(e,t,n),bs(e,-1*t,vs(e,-1*t)-o)}function Is(e,t,n,o){return void 0===o&&(o=0),Ts(e,n,vs(t,n)+Ss(n,o))}function Es(e,t,n){return Cs(n,e)>Cs(n,t)}function xs(e,t,n){for(var o=0,r=e;o<r.length;o++){var i=r[o];t.elementRectangle=Is(t.elementRectangle,n,i)}return t}function Ps(e,t,n){var o=Os(t).positiveEdge;return Ts(e,o,n-(_s(e,t)-vs(e,o)))}function ks(e,t,n,o,r){var i;void 0===o&&(o=0);var a=n.alignmentEdge,s=n.targetEdge,l=r?s:-1*s;return i=r?Is(e,t,s,o):function(e,t,n,o){void 0===o&&(o=0);var r=Ss(-1*n,o);return Ts(e,-1*n,vs(t,n)+r)}(e,t,s,o),a?Is(i,t,a):Ps(i,l,_s(t,s))}function Os(e){return e===as.top||e===as.bottom?{positiveEdge:as.left,negativeEdge:as.right}:{positiveEdge:as.top,negativeEdge:as.bottom}}function Ns(e,t,n){return n&&Math.abs(ws(e,n,t))>Math.abs(ws(e,n,-1*t))?-1*t:t}function Rs(e,t,n){var o=_s(t,e),r=_s(n,e),i=Os(e),a=i.positiveEdge,s=i.negativeEdge;return o<=r?a:s}function Ds(e){var t=e.getBoundingClientRect();return new hs(t.left,t.right,t.top,t.bottom)}function Ms(e){return new hs(e.left,e.right,e.top,e.bottom)}function Fs(e,t,n,o){var r=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var o=t;n=new hs(o.clientX,o.clientX,o.clientY,o.clientY)}else if(t.getBoundingClientRect)n=Ds(t);else{var r=t,i=r.left||r.x,a=r.top||r.y;n=new hs(i,i,a,a)}if(!gs(n,e))for(var s=0,l=ys(n,e);s<l.length;s++){var u=l[s];n[as[u]]=e[as[u]]}}else n=new hs(0,0,0,0);return n}(n,e.target),a=function(e,t,n,o,r){return e.isAuto&&(e.alignmentEdge=Rs(e.targetEdge,t,n)),e.alignTargetEdge=r,e}(function(e,t,n){if(void 0===e&&(e=7),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var o=d({},ms[e]);return Co()?(o.alignmentEdge&&o.alignmentEdge%2==0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==t?ms[t]:o):o}(e.directionalHint,e.directionalHintForRTL,o),i,n,e.coverTarget,e.alignTargetEdge),s=function(e,t,n,o,r,i,a){var s=ks(e,t,o,r,a);return gs(s,n)?{elementRectangle:s,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}:function(e,t,n,o,r,i,a){void 0===r&&(r=0);var s=o.alignmentEdge,l=o.alignTargetEdge,u={elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:s};i||a||(u=function(e,t,n,o,r){void 0===r&&(r=0);var i=[as.left,as.right,as.bottom,as.top];Co()&&(i[0]*=-1,i[1]*=-1);for(var a=e,s=o.targetEdge,l=o.alignmentEdge,u=0;u<4;u++){if(Es(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:l};i.splice(i.indexOf(s),1),i.length>0&&(i.indexOf(-1*s)>-1?s*=-1:(l=s,s=i.slice(-1)[0]),a=ks(e,t,{targetEdge:s,alignmentEdge:l},r))}return{elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}}(e,t,n,o,r));var c=ys(e,n);if(l){if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,o){var r=e.alignmentEdge,i=e.targetEdge,a=-1*r;return{elementRectangle:ks(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,o),targetEdge:i,alignmentEdge:a}}(u,t,r,a);if(gs(d.elementRectangle,n))return d;u=xs(ys(d.elementRectangle,n),u,n)}}else u=xs(c,u,n);return u}(e,t,n,o,r,i,a)}(Ds(t),i,n,a,r,e.directionalHintFixed,e.coverTarget);return d(d({},s),{targetRectangle:i})}function Ls(e,t,n,o,r){var i=e.isBeakVisible&&e.beakWidth||0,a=function(e){return Math.sqrt(e*e*2)}(i)/2+(e.gapSpace?e.gapSpace:0),s=e;s.gapSpace=a;var l=e.bounds?Ms(e.bounds):new hs(0,window.innerWidth-Ha(),0,window.innerHeight),u=Fs(s,n,l,o),c=function(e,t,n){var o=-1*e.targetEdge,r=new hs(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Ns(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Os(o).positiveEdge,n);return i[as[o]]=vs(t,o),i[as[a]]=ws(t,r,a),{elementPosition:d({},i),closestEdge:Rs(e.targetEdge,t,r),targetEdge:o}}(u,function(e,t){var n=t.targetRectangle,o=Os(t.targetEdge),r=o.positiveEdge,i=o.negativeEdge,a=_s(n,t.targetEdge),s=new hs(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new hs(0,e,0,e);return Es(l=Ps(l=Ts(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Cs(r,t.elementRectangle)),s,r)?Es(l,s,i)||(l=Is(l,s,i)):l=Is(l,s,r),l}(i,u),l);return d(d({},function(e,t,n,o,r){return{elementPosition:function(e,t,n,o,r,i,a){var s={},l=Ds(t),u=i?n:-1*n,c=as[u],d=r||Os(n).positiveEdge;return a||(d=Ns(e,d,o)),s[c]=ws(e,l,u),s[as[d]]=ws(e,l,d),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,o,r),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(u,t,l,e.coverTarget,r)),{beakPosition:c})}var As,Bs=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case 27:n.props.onDismiss&&(n.props.onDismiss(e),e.preventDefault(),e.stopPropagation())}},n._onFocus=function(){n._containsFocus=!0},n._onBlur=function(e){n._root.current&&e.relatedTarget&&!Oa(n._root.current,e.relatedTarget)&&(n._containsFocus=!1)},n._async=new la(n),n.state={needsVerticalScrollBar:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=_o().activeElement},t.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(ds(this._root.current,"focus",this._onFocus,!0),ds(this._root.current,"blur",this._onBlur,!0));var e=xn(this._root.current);e&&this._disposables.push(ds(e,"keydown",this._onKeyDown)),function(e){var t=_o(e),n=t&&t.activeElement;return!(!n||!Oa(e,n))}(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},t.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},t.prototype.componentWillUnmount=function(){var e;if(this._disposables.forEach(function(e){return e()}),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus;(void 0===t?js:t)({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:(null===(e=_o())||void 0===e?void 0:e.hasFocus())||!1})}delete this._originalFocusedElement},t.prototype.render=function(){var e=this.props,t=e.role,n=e.className,r=e.ariaLabel,i=e.ariaLabelledBy,a=e.ariaDescribedBy,s=e.style;return o.createElement("div",d({ref:this._root},Wo(this.props,Uo),{className:n,role:t,"aria-label":r,"aria-labelledby":i,"aria-describedby":a,onKeyDown:this._onKeyDown,style:d({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},s)}),this.props.children)},t.prototype._updateScrollBarAsync=function(){var e=this;this._async.requestAnimationFrame(function(){e._getScrollBar()})},t.prototype._getScrollBar=function(){if(!this.props.style||!this.props.style.overflowY){var e=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,n=this._root.current.firstElementChild.clientHeight;t>0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(o.Component);function js(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}var Us=((As={})[as.top]=Fr.slideUpIn10,As[as.bottom]=Fr.slideDownIn10,As[as.left]=Fr.slideLeftIn10,As[as.right]=Fr.slideRightIn10,As),Ws=Io({disableCaching:!0}),Hs={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Gs=["role","aria-roledescription"],zs=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=o.createRef(),n._calloutElement=o.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnScroll;n.state.positions&&(o&&!o(e)||!o&&!r)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnResize;(o&&!o(e)||!o&&!r)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnLostFocus;(o&&!o(e)||!o&&!r)&&n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame(function(){return!!(t=Ra(e=n._calloutElement.current,e,!0,!1,!1,!0))&&(function(e){if(e){if(Ua)return void(Ua=e);Ua=e;var t=xn(e);t&&t.requestAnimationFrame(function(){var e=Ua;Ua=void 0,e&&(e.getAttribute&&"true"===e.getAttribute("data-is-focusable")&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())})}}(t),!0);var e,t},n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!o||o(e))&&(o||r)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new la(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return c(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden||ua(this.props,e)&&ua(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(e){return e()})},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,r=t.style,i=t.ariaLabel,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,u=t.isBeakVisible,c=t.children,p=t.beakWidth,h=t.calloutWidth,f=t.calloutMaxWidth,m=t.finalHeight,g=t.hideOverflow,y=void 0===g?!!m:g,v=t.backgroundColor,b=t.calloutMaxHeight,_=t.onScroll,S=t.shouldRestoreFocus,C=void 0===S||S;e=this._getTarget();var w=this.state.positions,T=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,I=b&&T&&b<T?b:T,E=y,x=u&&!!e;this._classNames=Ws(n,{theme:this.props.theme,className:l,overflowYHidden:E,calloutWidth:h,positions:w,beakWidth:p,backgroundColor:v,calloutMaxWidth:f});var P=d(d(d({},r),{maxHeight:I}),E&&{overflowY:"hidden"}),k=this.props.hidden?{visibility:"hidden"}:void 0;return o.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:k},o.createElement("div",d({},Wo(this.props,Uo,Gs),{className:Ai(this._classNames.root,w&&w.targetEdge&&Us[w.targetEdge]),style:w?w.elementPosition:Hs,tabIndex:-1,ref:this._calloutElement}),x&&o.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),x&&o.createElement("div",{className:this._classNames.beakCurtain}),o.createElement(Bs,d({},Wo(this.props,Gs),{ariaLabel:i,onRestoreFocus:this.props.onRestoreFocus,ariaDescribedBy:a,ariaLabelledBy:s,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:_,shouldRestoreFocus:C,style:P,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup}),c)))},t.prototype._dismissOnClickOrScroll=function(e){var t=e.target,n=this._hostElement.current&&!Oa(this._hostElement.current,t);n&&this._isMouseDownOnPopup?this._isMouseDownOnPopup=!1:(!this._target&&n||e.target!==this._targetWindow&&n&&(this._target.stopPropagation||!this._target||this.props.dismissOnTargetClick||t!==this._target&&!Oa(this._target,t)))&&this.dismiss(e)},t.prototype._addListeners=function(){var e=this;this._async.setTimeout(function(){e._disposables.push(ds(e._targetWindow,"scroll",e._dismissOnScroll,!0),ds(e._targetWindow,"resize",e._dismissOnResize,!0),ds(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),ds(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0),ds(e._targetWindow,"blur",e._dismissOnTargetWindowBlur,!0)),e._hasListeners=!0},0)},t.prototype._removeListeners=function(){this._disposables.forEach(function(e){return e()}),this._disposables=[],this._hasListeners=!1},t.prototype._updateAsyncPosition=function(){var e=this;this._async.requestAnimationFrame(function(){return e._updatePosition()},this._calloutElement.current)},t.prototype._getBeakPosition=function(){var e=this.state.positions,t=d({},e&&e.beakPosition?e.beakPosition.elementPosition:null);return t.top||t.bottom||t.left||t.right||(t.left=0,t.top=0),t},t.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var e=this.state.positions,t=this._hostElement.current,n=this._calloutElement.current,o=!!this.props.target;if(t&&n&&(!o||this._target)){var r=d({},this.props);r.bounds=this._getBounds(),r.target=this._target;var i=this.props.finalHeight?function(e,t,n,o){return function(e,t,n,o){return Ls(e,t,n,o,!0)}(e,t,n,o)}(r,t,n,e):function(e,t,n,o){return Ls(e,t,n,o)}(r,t,n,e);!e&&i||e&&i&&!this._arePositionsEqual(e,i)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:i})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var o=0,r=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();o=(i.left+i.right)/2,r=(i.top+i.bottom)/2}else null!==e&&(o=e.left||e.x,r=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];o&&u.left<=o&&u.right>=o&&r&&u.top<=r&&u.bottom>=r&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(this._target,this._targetWindow)).top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame(function(){e._target&&(e._maxHeight=function(e,t,n,o,r){void 0===n&&(n=0);var i=e,a=e,s=e,l=o?Ms(o):new hs(0,window.innerWidth-Ha(),0,window.innerHeight),u=s.left||s.x,c=s.top||s.y;return function(e,t,n,o,r){var i,a=ms[t],s=r?-1*a.targetEdge:a.targetEdge;return(i=s===as.top?vs(e,a.targetEdge)-o.top-n:s===as.bottom?o.bottom-vs(e,a.targetEdge)-n:o.bottom-e.top-n)>0?i:o.height}(i.stopPropagation?new hs(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==u&&void 0!==c?new hs(u,u,c,c):Ds(a),t,n,l,r)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())},this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],r=t[n];if(void 0===o||void 0===r)return!1;if(o.toFixed(2)!==r.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=_o(t);this._target=n?n.querySelector(e):null,this._targetWindow=xn(t)}else if(e.stopPropagation)this._targetWindow=xn(e.target),this._target=e;else if(e.getBoundingClientRect){var o=e;this._targetWindow=xn(o),this._target=o}else void 0!==e.current?(this._target=e.current,this._targetWindow=xn(this._target)):(this._targetWindow=xn(t),this._target=e);else this._targetWindow=xn(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight<e.props.finalHeight?e._setHeightOffsetEveryFrame():e._async.cancelAnimationFrame(e._setHeightOffsetTimer,e._calloutElement.current)}},this._calloutElement.current))},t.prototype._didPositionPropsChange=function(e,t){return!e.hidden&&e.hidden!==t.hidden||e.directionalHint!==t.directionalHint},t.prototype._getTarget=function(e){return void 0===e&&(e=this.props),e.target},t.defaultProps={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},t}(o.Component);function Ks(e){return{height:e,width:e}}var qs={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Vs=jn(zs,function(e){var t,n=e.theme,o=e.className,r=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=ei(qs,n),c=n.semanticColors,d=n.effects;return{container:[u.container,{position:"relative"}],root:[u.root,n.fonts.medium,{position:"absolute",boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(t={},t[Ar]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},o,!!i&&{width:i},!!l&&{maxWidth:l}],beak:[u.beak,{position:"absolute",backgroundColor:c.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Ks(a),s&&{backgroundColor:s}],beakCurtain:[u.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:c.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[u.calloutMain,{backgroundColor:c.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},void 0,{scope:"CalloutContent"});function Qs(e,t){return void 0===e&&(e={}),(Xs(t)?t:(void 0===(n=t)&&(n={}),function(e){var t=d({},e);for(var o in n)n.hasOwnProperty(o)&&(t[o]=d(d({},e[o]),n[o]));return t}))(e);var n}function Xs(e){return"function"==typeof e}var Ys=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return c(t,e),t.prototype.componentDidMount=function(){Ln.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){Ln.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return o.createElement(An.Consumer,null,function(n){var r=function(e,t){var n,o,r=(t||{}).customizations,i=void 0===r?{settings:{},scopedSettings:{}}:r;return{customizations:{settings:(n=i.settings,o=e.settings,void 0===n&&(n={}),(Xs(o)?o:function(e){return function(t){return e?d(d({},t),e):t}}(o))(n)),scopedSettings:Qs(i.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),o.createElement(An.Provider,{value:r},e.props.children)})},t}(o.Component),Js=Io(),Zs=Yr(function(e,t){return _i(d(d({},e),{rtl:t}))}),$s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._rootElement=o.createRef(),t._removeClassNameFromBody=void 0,t}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"div":t,r=e.theme,i=e.dir,a=this._getClassNames(),s=Wo(this.props,Uo,["dir"]),l=function(e,t){var n=Co(e)?"rtl":"ltr",o=Co()?"rtl":"ltr",r=t||n;return{rootDir:r!==n||r!==o?r:t,needsTheme:r!==n}}(r,i),u=l.rootDir,c=l.needsTheme,p=o.createElement(n,d({dir:u},s,{className:a.root,ref:this._rootElement}));return c&&(p=o.createElement(Ys,{settings:{theme:Zs(r,"rtl"===i)}},p)),o.createElement(o.Fragment,null,p,o.createElement(ba,{rootRef:this._rootElement}))},t.prototype.componentDidMount=function(){this._addClassNameToBody()},t.prototype.componentWillUnmount=function(){this._removeClassNameFromBody&&this._removeClassNameFromBody()},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.theme,o=e.applyTheme,r=e.styles;return Js(r,{theme:n,applyTheme:o,className:t})},t.prototype._addClassNameToBody=function(){if(this.props.applyThemeToBody){var e=this._getClassNames(),t=_o(this._rootElement.current);t&&(t.body.classList.add(e.bodyThemed),this._removeClassNameFromBody=function(){t.body.classList.remove(e.bodyThemed)})}},t}(o.Component),el={fontFamily:"inherit"},tl={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},nl=jn($s,function(e){var t=e.theme,n=e.className,o=e.applyTheme;return{root:[ei(tl,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":el,"& input":el,"& textarea":el}},o&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}},void 0,{scope:"Fabric"});function ol(e,t){var n=e,o=t;n._virtual||(n._virtual={children:[]});var r=n._virtual.parent;if(r&&r!==t){var i=r._virtual.children.indexOf(n);i>-1&&r._virtual.children.splice(i,1)}n._virtual.parent=o||void 0,o&&(o._virtual||(o._virtual={children:[]}),o._virtual.children.push(n))}function rl(e,t,n){return function(r){var i,a=((i=function(i){function a(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return c(a,i),a.prototype.componentDidMount=function(){Ln.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){Ln.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return o.createElement(An.Consumer,null,function(a){var s=Ln.getSettings(t,e,a.customizations),l=i.props;if(s.styles&&"function"==typeof s.styles&&(s.styles=s.styles(d(d({},s),l))),n&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==l.styles){var u=Tn(s.styles,l.styles);i._styleCache.default=s.styles,i._styleCache.component=l.styles,i._styleCache.merged=u}return o.createElement(r,d({},s,l,{styles:i._styleCache.merged}))}return o.createElement(r,d({},s,l))})},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(o.Component)).displayName="Customized"+e,i);return ns(r,a)}}var il,al,sl={},ll=Io(),ul=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=o.createRef(),n._createLayerElement=function(){var e=n.props.hostId,t=_o(n._rootRef.current),o=n._getHost();if(t&&o){n._removeLayerElement();var r=t.createElement("div"),i=n._getClassNames();r.className=i.root,r.setAttribute("data-portal-element","true"),ol(r,n._rootRef.current),n.props.insertFirst?o.insertBefore(r,o.firstChild):o.appendChild(r),n.setState({hostId:e,layerElement:r},function(){var e=n.props,t=e.onLayerDidMount,o=e.onLayerMounted;o&&o(),t&&t()})}},n.state={},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){sl[e]||(sl[e]=[]),sl[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return o.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&r.createPortal(o.createElement(nl,d({},!n&&(il||(il={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return il[e]=cl})),il),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(sl[e]){var n=sl[e].indexOf(t);n>=0&&(sl[e].splice(n,1),0===sl[e].length&&delete sl[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&ol(t,null),e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,o=e.theme;return ll(n,{theme:o,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=_o(this._rootRef.current);if(t)return e?t.getElementById(e):t.body},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},h([rl("Layer",["theme","hostId"])],t)}(o.Component),cl=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},dl={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},pl=jn(ul,function(e){var t=e.className,n=e.isNotHost,o=e.theme,r=ei(dl,o);return{root:[r.root,o.fonts.medium,n&&[r.rootNoHost,{position:"fixed",zIndex:Lr.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[r.content,{visibility:"visible"}]}},void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=p(e,["layerProps"]),r=o.createElement(Vs,d({},n));return this.props.doNotLayer?r:o.createElement(pl,d({},t),r)},t}(o.Component),fl=function(e){var t=e.item,n=e.hasIcons,r=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):o.createElement(Wi,d({},i,{className:r.icon})):null},ml=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Ya(n);return t?o.createElement(Wi,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}}):null},gl=function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null},yl=function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null},vl=function(e){var t=e.item,n=e.classNames,r=e.theme;return Ja(t)?o.createElement(Wi,d({iconName:Co(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},bl=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,o=e.openSubMenu,r=e.getSubmenuTarget;if(r){var i=r();Ja(t)&&o&&i&&o(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,o=e.dismissSubMenu;Ja(t)&&o&&o()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Yi(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:ml,renderItemIcon:fl,renderItemName:gl,renderSecondaryText:yl,renderSubMenuIcon:vl}))},t.prototype._renderLayout=function(e,t){return o.createElement(o.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(o.Component),_l=Yr(function(e){return vo({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),Sl=Br(0,639),Cl=Yr(function(){var e;return{selectors:(e={},e[Ar]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)}}),wl=Yr(function(e){var t,n,o,r,i,a,s,l=e.semanticColors,u=e.fonts,c=e.palette,p=l.menuItemBackgroundHovered,h=l.menuItemTextHovered,f=l.menuItemBackgroundPressed,m=l.bodyDivider;return Tn({item:[u.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:m,position:"relative"},root:[Wr(e),u.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:d((t={},t[Ar]={color:"GrayText",opacity:1},t),jr())},rootHovered:d({backgroundColor:p,color:h,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},Cl()),rootFocused:d({backgroundColor:c.white},Cl()),rootChecked:d({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},Cl()),rootPressed:d({backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},Cl()),rootExpanded:d({backgroundColor:f,color:l.bodyTextChecked},Cl()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:36,fontSize:Mr.medium,width:Mr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[Sl]={fontSize:Mr.large,width:Mr.large},n)},iconColor:{color:l.menuIcon,selectors:(o={},o[Ar]={color:"inherit"},o["$root:hover &"]={selectors:(r={},r[Ar]={color:"HighlightText"},r)},o["$root:focus &"]={selectors:(i={},i[Ar]={color:"HighlightText"},i)},o)},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext,selectors:(a={},a[Ar]={color:"HighlightText"},a)},subMenuIcon:{height:36,lineHeight:36,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Mr.small,selectors:(s={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}},s[Sl]={fontSize:Mr.medium},s[Ar]={color:"HighlightText"},s)},splitButtonFlexContainer:[Wr(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})}),Tl=Br(0,639),Il=Yr(function(e){var t;return vo(_l(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Tl]={right:32},t)},divider:{height:16,width:1}})}),El={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},xl=Yr(function(e,t,n,o,r,i,a,s,l,u,c,d){var p,h,f,m,g=wl(e),y=ei(El,e);return vo({item:[y.item,g.item,a],divider:[y.divider,g.divider,s],root:[y.root,g.root,o&&[y.isChecked,g.rootChecked],r&&g.anchorLink,n&&[y.isExpanded,g.rootExpanded],t&&[y.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,p[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},o&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!o&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ ."+y.splitMenu]=g.rootHovered,h[":active"]=g.rootPressed,h[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,h[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},h)}]],splitMenu:[y.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(f={":hover":g.rootHovered,":active":g.rootPressed},f[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,f[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},f)}]],anchorLink:g.anchorLink,linkContent:[y.linkContent,g.linkContent],linkContentMenu:[y.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[y.icon,i&&g.iconColor,g.icon,l,t&&[y.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[y.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[y.subMenuIcon,g.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[y.label,g.label],secondaryText:[y.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!o&&[{selectors:(m={},m[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,m)}]],screenReaderText:[y.screenReaderText,g.screenReaderText,Gr,{visibility:"hidden"}]})}),Pl=function(e){var t=e.theme,n=e.disabled,o=e.expanded,r=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return xl(t,n,o,r,i,a,s,l,u,c,d,p)},kl=jn(bl,Pl,void 0,{scope:"ContextualMenuItem"}),Ol=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(o,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,o=t.item,r=t.onItemClickBase;r&&r(o,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,o=t.item,r=t.onItemMouseLeave;r&&r(o,e)},n._onItemKeyDown=function(e){var t=n.props,o=t.item,r=t.onItemKeyDown;r&&r(o,e)},n._onItemMouseMove=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(o,e,e.currentTarget)},n._getSubMenuId=function(e){var t=n.props.getSubMenuId;if(t)return t(e)},n._getSubmenuTarget=function(){},Yi(n),n}return c(t,e),t.prototype.shouldComponentUpdate=function(e){return!ua(e,this.props)},t}(o.Component);!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(al||(al={}));var Nl=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(t?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=t?al.PERSISTED_KEYTIP_ADDED:al.KEYTIP_ADDED;ha.raise(this,r,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),o=this._getUniqueKtp(n,t),r=this.keytips[t];r&&(o.keytip.visible=r.keytip.visible,this.keytips[t]=o,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||ha.raise(this,al.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var o=n?al.PERSISTED_KEYTIP_REMOVED:al.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||ha.raise(this,o,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){ha.raise(this,al.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){ha.raise(this,al.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map(function(t){return e.keytips[t].keytip})},e.prototype.addParentOverflow=function(e){var t=f(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return d(d({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){ha.raise(this,al.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=oa()),{keytip:d({},e),uniqueID:t}},e._instance=new e,e}();function Rl(e){return e.reduce(function(e,t){return e+"-"+t.split("").join("-")},"ktp")}var Dl=function(e){var t,n=e.children,r=function(e){var t,n,r,i,a=o.useRef(),s=e.keytipProps?d({disabled:e.disabled},e.keytipProps):void 0,l=(r=Nl.getInstance(),void 0===(i=o.useRef()).current&&(i.current={value:"function"==typeof r?r():r}),i.current.value);o.useEffect(function(){return s&&(a.current=l.register(s)),function(){s&&l.unregister(s,a.current)}},[]);var u=function(e){var t=Object(o.useRef)();return Object(o.useEffect)(function(){t.current=e}),t.current}(e);a.current&&s&&((null===(t=u)||void 0===t?void 0:t.keytipProps)!==e.keytipProps||(null===(n=u)||void 0===n?void 0:n.disabled)!==e.disabled)&&l.update(s,a.current);var c={ariaDescribedBy:void 0,keytipId:void 0};return s&&(c=function(e,t,n){var o=e.addParentOverflow(t),r=wa(n,function(e){return e.length?" ktp-layer-id "+Rl(e):" ktp-layer-id"}(o.keySequences)),i=f(o.keySequences);return o.overflowSetSequence&&(i=function(e,t){var n,o,r;return n=t.length-1,o=f(t).pop(),(r=f(e).slice()).splice(n,0,o),r}(i,o.overflowSetSequence)),{ariaDescribedBy:r,keytipId:Rl(i)}}(l,s,e.ariaDescribedBy)),c}(p(e,["children"])),i=r.keytipId,a=r.ariaDescribedBy;return n(((t={})["data-ktp-target"]=i,t["data-ktp-execute-target"]=i,t["aria-describedby"]=a,t))},Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=o.createRef(),t._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,o=n.item,r=n.onItemClick;r&&r(o,e)},t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,u=t.hasIcons,c=t.contextualMenuItemAs,p=void 0===c?kl:c,h=t.expandedMenuItemKey,f=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,y=t.dismissMenu,v=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var b=this._getSubMenuId(n),_=Ja(n),S=Wo(n,Lo),C=Za(n),w=n.itemProps,T=n.ariaDescription,I=n.keytipProps;return I&&_&&(I=this._getMemoizedMenuButtonKeytipProps(I)),T&&(this._ariaDescriptionId=oa()),o.createElement("div",null,o.createElement(Dl,{keytipProps:n.keytipProps,ariaDescribedBy:S["aria-describedby"],disabled:C},function(t){return o.createElement("a",d({},S,t,{ref:e._anchor,href:n.href,target:n.target,rel:v,className:r.root,role:"menuitem","aria-owns":n.key===h?b:void 0,"aria-haspopup":_||void 0,"aria-expanded":_?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":Za(n),"aria-describedby":wa(T?e._ariaDescriptionId:void 0,t?t["aria-describedby"]:void 0),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:_?e._onItemKeyDown:void 0}),o.createElement(p,d({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&f?f:void 0,hasIcons:u,openSubMenu:m,dismissSubMenu:g,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},w)),e._renderAriaDescription(T,r.screenReaderText))}))},t}(Ol),Fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=o.createRef(),t._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,u=t.hasIcons,c=t.contextualMenuItemAs,p=void 0===c?kl:c,h=t.expandedMenuItemKey,f=t.onItemMouseDown,m=t.onItemClick,g=t.openSubMenu,y=t.dismissSubMenu,v=t.dismissMenu,b=this._getSubMenuId(n),_=Ya(n),S=null!==_,C=$a(n),w=Ja(n),T=n.itemProps,I=n.ariaLabel,E=n.ariaDescription,x=Wo(n,Ao);delete x.disabled;var P=n.role||C;E&&(this._ariaDescriptionId=oa());var k=E?this._ariaDescriptionId:void 0,O={className:r.root,onClick:this._onItemClick,onKeyDown:w?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return f?f(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":I,"aria-describedby":k,"aria-haspopup":w||void 0,"aria-owns":n.key===h?b:void 0,"aria-expanded":w?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":Za(n),"aria-checked":"menuitemcheckbox"!==P&&"menuitemradio"!==P||!S?void 0:!!_,"aria-selected":"menuitem"===P&&S?!!_:void 0,role:P,style:n.style},N=n.keytipProps;return N&&w&&(N=this._getMemoizedMenuButtonKeytipProps(N)),o.createElement(Dl,{keytipProps:N,ariaDescribedBy:x["aria-describedby"],disabled:Za(n)},function(t){return o.createElement("button",d({ref:e._btn},x,O,t,{"aria-describedby":wa(O["aria-describedby"],t?t["aria-describedby"]:void 0)}),o.createElement(p,d({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&m?m:void 0,hasIcons:u,openSubMenu:g,dismissSubMenu:y,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},T)),e._renderAriaDescription(E,r.screenReaderText))})},t}(Ol),Ll=Io(),Al=function(e){var t=e.styles,n=e.theme,r=e.getClassNames,i=e.className,a=Ll(t,{theme:n,getClassNames:r,className:i});return o.createElement("span",{className:a.wrapper},o.createElement("span",{className:a.divider}))};Al.displayName="VerticalDividerBase";var Bl=jn(Al,function(e){var t=e.theme,n=e.getClassNames,o=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var r=n(t);return{wrapper:[r.wrapper],divider:[r.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},o],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},void 0,{scope:"VerticalDivider"}),jl=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),n._renderAriaDescription=function(e,t){return e?o.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemKeyDown=function(e){var t=n.props,o=t.item,r=t.onItemKeyDown;13===e.which?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):r&&r(o,e)},n._getSubmenuTarget=function(){return n._splitButton},n._onItemMouseEnterPrimary=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(d(d({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(o,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(d(d({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(o,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,o=t.item,r=t.onItemClickBase;r&&r(o,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,o=t.item,r=t.executeItemClick,i=t.onItemClick;if(!o.disabled&&!o.isDisabled)return n._processingTouch&&i?i(o,e):void(r&&r(o,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new la(n),n._events=new ha(n),n}return c(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,u=t.hasIcons,c=t.onItemMouseLeave,p=t.expandedMenuItemKey,h=Ja(n),f=n.keytipProps;f&&(f=this._getMemoizedMenuButtonKeytipProps(f));var m=n.ariaDescription;return m&&(this._ariaDescriptionId=oa()),o.createElement(Dl,{keytipProps:f,disabled:Za(n)},function(t){return o.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:$a(n),"aria-label":n.ariaLabel,className:r.splitContainer,"aria-disabled":Za(n),"aria-expanded":h?n.key===p:void 0,"aria-haspopup":!0,"aria-describedby":wa(m?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,d(d({},n),{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,r,i,l,u),e._renderSplitDivider(n),e._renderSplitIconButton(n,r,i,t),e._renderAriaDescription(m,r.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?kl:s,u=a.onItemClick,c={key:e.key,disabled:Za(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},p=e.itemProps;return o.createElement("button",d({},Wo(c,Ao)),o.createElement(l,d({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:r&&u?u:void 0,hasIcons:i},p)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Il;return o.createElement(Bl,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?kl:a,l=i.onItemMouseLeave,u=i.onItemMouseDown,c=i.openSubMenu,p=i.dismissSubMenu,h=i.dismissMenu,f={onClick:this._onIconItemClick,disabled:Za(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},m=d(d({},Wo(f,Ao)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,e):void 0,onMouseDown:function(t){return u?u(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return o.createElement("button",d({},m),o.createElement(s,d({componentRef:e.componentRef,item:f,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:p,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},500)},t}(Ol),Ul=Io(),Wl=Io();function Hl(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Gl=Yr(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return In.apply(void 0,f([t,Pl],e))}}),zl=function(e){function t(t){var n=e.call(this,t)||this;return n._mounted=!1,n.dismiss=function(e,t){var o=n.props.onDismiss;o&&o(e,t)},n._tryFocusPreviousActiveElement=function(e){n.props.onRestoreFocus?n.props.onRestoreFocus(e):e&&e.containsFocus&&n._previousActiveElement&&n._previousActiveElement.focus&&n._previousActiveElement.focus()},n._onRenderMenuList=function(e,t){var r=0,i=e.items,a=e.totalItemCount,s=e.hasCheckmarks,l=e.hasIcons,u=e.role;return o.createElement("ul",{className:n._classNames.list,onKeyDown:n._onKeyDown,onKeyUp:n._onKeyUp,role:null!=u?u:"menu"},i.map(function(e,t){var o=n._renderMenuItem(e,t,r,a,s,l);if(e.itemType!==Ia.Divider&&e.itemType!==Ia.Header){var i=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=i}return o}))},n._renderMenuItem=function(e,t,r,i,a,s){var l,u,c=[],d=e.iconProps||{iconName:"None"},p=e.getItemClassNames,h=e.itemProps,f=h?h.styles:void 0,m=e.itemType===Ia.Divider?e.className:void 0,g=e.submenuIconProps?e.submenuIconProps.className:"";if(p)u=p(n.props.theme,Za(e),n.state.expandedMenuItemKey===e.key,!!Ya(e),!!e.href,"None"!==d.iconName,e.className,m,d.className,g,e.primaryDisabled);else{var y={theme:n.props.theme,disabled:Za(e),expanded:n.state.expandedMenuItemKey===e.key,checked:!!Ya(e),isAnchorLink:!!e.href,knownIcon:"None"!==d.iconName,itemClassName:e.className,dividerClassName:m,iconClassName:d.className,subMenuClassName:g,primaryDisabled:e.primaryDisabled};u=Wl(Gl(null===(l=n._classNames.subComponentStyles)||void 0===l?void 0:l.menuItem,f),y)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=Ia.Divider),e.itemType){case Ia.Divider:c.push(n._renderSeparator(t,u));break;case Ia.Header:c.push(n._renderSeparator(t,u));var v=n._renderHeaderMenuItem(e,u,t,a,s);c.push(n._renderListItem(v,e.key||t,u,e.title));break;case Ia.Section:c.push(n._renderSectionItem(e,u,t,a,s));break;default:var b=n._renderNormalItem(e,u,t,r,i,a,s);c.push(n._renderListItem(b,e.key||t,u,e.title))}return o.createElement(o.Fragment,{key:e.key},c)},n._defaultMenuItemRenderer=function(e){var t=e.index,o=e.focusableElementIndex,r=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return n._renderMenuItem(e,t,o,r,i,a)},n._onKeyDown=function(e){n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var t=27===e.which&&(Qa()||Xa());return n._keyHandler(e,n._shouldHandleKeyDown,t)},n._shouldHandleKeyDown=function(e){return 27===e.which||n._shouldCloseSubMenu(e)||38===e.which&&(e.altKey||e.metaKey)},n._onMenuFocusCapture=function(e){n.props.delayUpdateFocusOnHover&&(n._shouldUpdateFocusOnMouseEvent=!0)},n._onKeyUp=function(e){return n._keyHandler(e,n._shouldHandleKeyUp,!0)},n._shouldHandleKeyUp=function(e){var t=n._lastKeyDownWasAltOrMeta&&n._isAltOrMeta(e);return n._lastKeyDownWasAltOrMeta=!1,!!t&&!(Xa()||Qa())},n._keyHandler=function(e,t,o){var r=!1;return t(e)&&(n._focusingPreviousElement=!0,n.dismiss(e,o),e.preventDefault(),e.stopPropagation(),r=!0),r},n._shouldCloseSubMenu=function(e){var t=Co(n.props.theme)?39:37;return!(e.which!==t||!n.props.isSubMenu||n._adjustedFocusZoneProps.direction!==Ea.vertical&&(!n._adjustedFocusZoneProps.checkForNoWrap||Aa(e.target,"data-no-horizontal-wrap")))},n._onMenuKeyDown=function(e){if(!n._onKeyDown(e)&&n._host){var t=!(!e.altKey&&!e.metaKey),o=38===e.which,r=40===e.which;if(!t&&(o||r)){var i=o?Na(n._host,n._host.lastChild,!0,!1,!0,!0):function(e,t,n){return Ra(e,t,!0,!1,!1,!0)}(n._host,n._host.firstChild);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=n._async.setTimeout(function(){n._isScrollIdle=!0},250)},n._onItemMouseEnterBase=function(e,t,o){n._shouldIgnoreMouseEvent()||n._updateFocusOnMouseEvent(e,t,o)},n._onItemMouseMoveBase=function(e,t,o){var r=t.currentTarget;n._shouldUpdateFocusOnMouseEvent&&(n._gotMouseMove=!0,n._isScrollIdle&&void 0===n._enterTimerId&&r!==n._targetWindow.document.activeElement&&n._updateFocusOnMouseEvent(e,t,o))},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&(void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0),void 0===n.state.expandedMenuItemKey))if(n._host.setActive)try{n._host.setActive()}catch(e){}else n._host.focus()},n._onItemMouseDown=function(e,t){e.onMouseDown&&e.onMouseDown(e,t)},n._onItemClick=function(e,t){n._onItemClickBase(e,t,t.currentTarget)},n._onItemClickBase=function(e,t,o){var r=Hl(e);n._cancelSubMenuTimer(),Ja(e)||r&&r.length?e.key!==n.state.expandedMenuItemKey&&(n.setState({expandedByMouseClick:0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType}),n._onItemSubMenuExpand(e,o)):n._executeItemClick(e,t),t.stopPropagation(),t.preventDefault()},n._onAnchorClick=function(e,t){n._executeItemClick(e,t),t.stopPropagation()},n._executeItemClick=function(e,t){if(!e.disabled&&!e.isDisabled){var o=!1;e.onClick?o=!!e.onClick(t,e):n.props.onItemClick&&(o=!!n.props.onItemClick(t,e)),!o&&t.defaultPrevented||(n.dismiss(t,!0),n._focusingPreviousElement=!0)}},n._onItemKeyDown=function(e,t){var o=Co(n.props.theme)?37:39;e.disabled||t.which!==o&&13!==t.which&&(40!==t.which||!t.altKey&&!t.metaKey)||(n.setState({expandedByMouseClick:!1}),n._onItemSubMenuExpand(e,t.currentTarget),t.preventDefault())},n._cancelSubMenuTimer=function(){void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0)},n._onItemSubMenuExpand=function(e,t){n.state.expandedMenuItemKey!==e.key&&(n.state.expandedMenuItemKey&&n._onSubMenuDismiss(),t.focus(),n.setState({expandedMenuItemKey:e.key,submenuTarget:t}))},n._onSubMenuDismiss=function(e,t){t?n.dismiss(e,t):n._mounted&&n.setState({dismissedMenuItemKey:n.state.expandedMenuItemKey,expandedMenuItemKey:void 0,submenuTarget:void 0})},n._getSubMenuId=function(e){var t=n.state.subMenuId;return e.subMenuProps&&e.subMenuProps.id&&(t=e.subMenuProps.id),t},n._onPointerAndTouchEvent=function(e){n._cancelSubMenuTimer()},n._async=new la(n),n._events=new ha(n),Yi(n),n.state={contextualMenuItems:void 0,subMenuId:oa("ContextualMenu")},n._id=t.id||oa("ContextualMenu"),n._focusingPreviousElement=!1,n._isScrollIdle=!0,n._shouldUpdateFocusOnMouseEvent=!n.props.delayUpdateFocusOnHover,n._gotMouseMove=!1,n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden||ua(this.props,e)&&ua(this.state,t))},t.prototype.UNSAFE_componentWillUpdate=function(e){if(e.target!==this.props.target){var t=e.target;this._setTargetWindowAndElement(t)}this._isHidden(e)!==this._isHidden(this.props)&&(this._isHidden(e)?this._onMenuClosed():(this._onMenuOpened(),this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:void 0)),e.delayUpdateFocusOnHover!==this.props.delayUpdateFocusOnHover&&(this._shouldUpdateFocusOnMouseEvent=!e.delayUpdateFocusOnHover,this._gotMouseMove=this._shouldUpdateFocusOnMouseEvent&&this._gotMouseMove)},t.prototype.UNSAFE_componentWillMount=function(){var e=this.props.target;this._setTargetWindowAndElement(e),this.props.hidden||(this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:void 0)},t.prototype.componentDidMount=function(){this.props.hidden||this._onMenuOpened(),this._mounted=!0},t.prototype.componentWillUnmount=function(){this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},t.prototype.render=function(){var e=this,t=this.props.isBeakVisible,n=this.props,r=n.items,i=n.labelElementId,a=n.id,s=n.className,l=n.beakWidth,u=n.directionalHint,c=n.directionalHintForRTL,p=n.alignTargetEdge,h=n.gapSpace,f=n.coverTarget,m=n.ariaLabel,g=n.doNotLayer,y=n.target,v=n.bounds,b=n.useTargetWidth,_=n.useTargetAsMinWidth,S=n.directionalHintFixed,C=n.shouldFocusOnMount,w=n.shouldFocusOnContainer,T=n.title,I=n.styles,E=n.theme,x=n.calloutProps,P=n.onRenderSubMenu,k=void 0===P?this._onRenderSubMenu:P,O=n.onRenderMenuList,N=void 0===O?this._onRenderMenuList:O,R=n.focusZoneProps,D=n.getMenuClassNames;this._classNames=D?D(E,s):Ul(I,{theme:E,className:s});var M=function e(t){for(var n=0,o=t;n<o.length;n++){var r=o[n];if(r.iconProps)return!0;if(r.itemType===Ia.Section&&r.sectionProps&&e(r.sectionProps.items))return!0}return!1}(r);this._adjustedFocusZoneProps=d(d({},R),{direction:this._getFocusZoneDirection()});var F,L=function(e){return e.some(function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some(function(e){return!0===e.canCheck}))})}(r),A=this.state.expandedMenuItemKey&&!0!==this.props.hidden?this._getSubmenuProps():null;t=void 0===t?this.props.responsiveMode<=os.medium:t;var B=this._target;if((b||_)&&B&&B.offsetWidth){var j=B.getBoundingClientRect().width-2;b?F={width:j}:_&&(F={minWidth:j})}if(r&&r.length>0){for(var U=0,W=0,H=r;W<H.length;W++){var G=H[W];G.itemType!==Ia.Divider&&G.itemType!==Ia.Header&&(U+=G.customOnRenderListLength?G.customOnRenderListLength:1)}var z=this._classNames.subComponentStyles?this._classNames.subComponentStyles.callout:void 0;return o.createElement(hl,d({styles:z,onRestoreFocus:this._tryFocusPreviousActiveElement},x,{target:y,isBeakVisible:t,beakWidth:l,directionalHint:u,directionalHintForRTL:c,gapSpace:h,coverTarget:f,doNotLayer:g,className:Ai("ms-ContextualMenu-Callout",x&&x.className),setInitialFocus:C,onDismiss:this.props.onDismiss,onScroll:this._onScroll,bounds:v,directionalHintFixed:S,alignTargetEdge:p,hidden:this.props.hidden}),o.createElement("div",{"aria-label":m,"aria-labelledby":i,style:F,ref:function(t){return e._host=t},id:a,className:this._classNames.container,tabIndex:w?0:-1,onKeyDown:this._onMenuKeyDown,onKeyUp:this._onKeyUp,onFocusCapture:this._onMenuFocusCapture},T&&o.createElement("div",{className:this._classNames.title}," ",T," "),r&&r.length?o.createElement(Va,d({className:this._classNames.root,isCircularNavigation:!0,handleTabKey:1},this._adjustedFocusZoneProps),N({items:r,totalItemCount:U,hasCheckmarks:L,hasIcons:M,defaultMenuItemRenderer:this._defaultMenuItemRenderer},this._onRenderMenuList)):null,A&&k(A,this._onRenderSubMenu)))}return null},t.prototype._isHidden=function(e){return!!e.hidden},t.prototype._onMenuOpened=function(){this._events.on(this._targetWindow,"resize",this.dismiss),this._shouldUpdateFocusOnMouseEvent=!this.props.delayUpdateFocusOnHover,this._gotMouseMove=!1,this.props.onMenuOpened&&this.props.onMenuOpened(this.props)},t.prototype._onMenuClosed=function(){this._events.off(this._targetWindow,"resize",this.dismiss),this._tryFocusPreviousActiveElement({containsFocus:this._focusingPreviousElement,documentContainsFocus:this._targetWindow.document.hasFocus(),originalElement:this._previousActiveElement}),this._focusingPreviousElement=!1,this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._shouldUpdateFocusOnMouseEvent=!this.props.delayUpdateFocusOnHover,this.setState({expandedByMouseClick:void 0,dismissedMenuItemKey:void 0,expandedMenuItemKey:void 0,submenuTarget:void 0})},t.prototype._getFocusZoneDirection=function(){var e=this.props.focusZoneProps;return e&&void 0!==e.direction?e.direction:Ea.vertical},t.prototype._onRenderSubMenu=function(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")},t.prototype._renderSectionItem=function(e,t,n,r,i){var a,s=this,l=e.sectionProps;if(l){var u,c;if(l.title){var p=void 0,h="";if("string"==typeof l.title){var f=this._id+l.title.replace(/\s/g,"");p={key:"section-"+l.title+"-title",itemType:Ia.Header,text:l.title,id:f},h=f}else p=l.title,h=this._id+(null===(a=l.title.text)||void 0===a?void 0:a.replace(/\s/g,""));p&&(c={role:"group","aria-labelledby":h},u=this._renderHeaderMenuItem(p,t,n,r,i))}return l.items&&l.items.length>0?o.createElement("li",{role:"presentation",key:l.key||e.key||"section-"+n},o.createElement("div",d({},c),o.createElement("ul",{className:this._classNames.list},l.topDivider&&this._renderSeparator(n,t,!0,!0),u&&this._renderListItem(u,e.key||n,t,e.title),l.items.map(function(e,t){return s._renderMenuItem(e,t,t,l.items.length,r,i)}),l.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,o,r,i,a){return e.onRender?e.onRender(d({"aria-posinset":o+1,"aria-setsize":r},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,o,r,i,a):e.split&&Ja(e)?this._renderSplitButton(e,t,n,o,r,i,a):this._renderButtonItem(e,t,n,o,r,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,r,i){var a=this.props.contextualMenuItemAs,s=void 0===a?kl:a,l=e.itemProps,u=e.id,c=l&&Wo(l,Uo);return o.createElement("div",d({id:u,className:this._classNames.header},c,{style:e.style}),o.createElement(s,d({item:e,classNames:t,index:n,onCheckmarkClick:r?this._onItemClick:void 0,hasIcons:i},l)))},t.prototype._renderAnchorMenuItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Ml,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Fl,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(jl,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:u,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return 18===e.which||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var o=this,r=n||t.currentTarget,i=this.props.subMenuHoverDelay,a=void 0===i?250:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&r.focus(),Ja(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){r.focus(),o.setState({expandedByMouseClick:!0}),o._onItemSubMenuExpand(e,r),o._enterTimerId=void 0},a)):this._enterTimerId=this._async.setTimeout(function(){o._onSubMenuDismiss(t),r.focus(),o._enterTimerId=void 0},a))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,o=this._findItemByKey(n),r=null;return o&&(r={items:Hl(o),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Co(this.props.theme)?8:11,className:this.props.className,gapSpace:0,isBeakVisible:!1},o.subMenuProps&&ca(r,o.subMenuProps)),r},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,o=t;n<o.length;n++){var r=o[n];if(r.itemType===Ia.Section&&r.sectionProps){var i=this._findItemByKeyFromItems(e,r.sectionProps.items);if(i)return i}else if(r.key&&r.key===e)return r}},t.prototype._setTargetWindowAndElement=function(e){var t=this._host;if(e)if("string"==typeof e){var n=_o(t);this._target=n?n.querySelector(e):null,this._targetWindow=xn(t)}else if(e.stopPropagation)this._targetWindow=xn(e.target),this._target=e;else if(void 0===e.left&&void 0===e.x||void 0===e.top&&void 0===e.y)if(void 0!==e.current)this._target=e.current,this._targetWindow=xn(this._target);else{var o=e;this._targetWindow=xn(o),this._target=e}else this._targetWindow=xn(t),this._target=e;else this._targetWindow=xn(t)},t.defaultProps={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:7,beakWidth:16},h([cs],t)}(o.Component),Kl={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function ql(e){return o.createElement(Xl,d({},e))}var Vl,Ql,Xl=jn(zl,function(e){var t=e.className,n=e.theme,o=ei(Kl,n),r=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,o.root,o.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[o.container,{selectors:{":focus":{outline:0}}}],list:[o.list,o.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[o.header,r.small,{fontWeight:Dr.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[o.title,{fontSize:r.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}},function(){return{onRenderSubMenu:ql}},{scope:"ContextualMenu"}),Yl=Xl,Jl={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},Zl=Yr(function(e,t,n,o,r,i,a,s,l,u,c){var d,p,h=ei(Jl,e||{}),f=u&&!c;return vo({root:[h.msButton,t.root,o,l&&["is-checked",t.rootChecked],f&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover ."+h.msButtonIcon]=t.iconExpandedHovered,d[":hover ."+h.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[Jl.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!f&&!l&&{selectors:(p={":hover":t.rootHovered},p[":hover ."+h.msButtonLabel]=t.labelHovered,p[":hover ."+h.msButtonIcon]=t.iconHovered,p[":hover ."+h.msButtonDescription]=t.descriptionHovered,p[":hover ."+h.msButtonMenuIcon]=t.menuIconHovered,p[":focus"]=t.rootFocused,p[":active"]=t.rootPressed,p[":active ."+h.msButtonIcon]=t.iconPressed,p[":active ."+h.msButtonDescription]=t.descriptionPressed,p[":active ."+h.msButtonMenuIcon]=t.menuIconPressed,p)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,r,t.icon,f&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!c&&t.menuIconDisabled,!a&&!f&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},f&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})}),$l=Yr(function(e,t,n,o,r){return{root:zo(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],o&&!t&&[e.splitButtonMenuButtonChecked]),splitButtonContainer:zo(e.splitButtonContainer,!t&&o&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!o&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:zo(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&r&&e.splitButtonMenuIcon),flexContainer:zo(e.splitButtonFlexContainer),divider:zo(e.splitButtonDivider,(r||t)&&e.splitButtonDividerDisabled)}}),eu=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=o.createRef(),n._splitButtonContainer=o.createRef(),n._mergedRef=Pa(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),n._onRenderIcon=function(e,t){var r=n.props.iconProps;if(r&&(void 0!==r.iconName||r.imageProps)){var i=r.className,a=r.imageProps,s=p(r,["className","imageProps"]);if(r.styles)return o.createElement(Wi,d({className:Ai(n._classNames.icon,i),imageProps:a},s));if(r.iconName)return o.createElement(ji,d({className:Ai(n._classNames.icon,i)},s));if(a)return o.createElement(ka,d({className:Ai(n._classNames.icon,i),imageProps:a},s))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,i=e.secondaryText,a=void 0===i?n.props.description:i,s=e.onRenderText,l=void 0===s?n._onRenderText:s,u=e.onRenderDescription,c=void 0===u?n._onRenderDescription:u;return t||"string"==typeof r||a?o.createElement("span",{className:n._classNames.textContainer},l(n.props,n._onRenderText),c(n.props,n._onRenderDescription)):[l(n.props,n._onRenderText),c(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return void 0===e&&"string"==typeof t&&(e=t),n._hasText()?o.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"==typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?o.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?o.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return o.createElement(ji,d({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.persistMenu,r=n.state.menuHidden,i=n.props.menuAs||Yl;return e.ariaLabel||e.labelElementId||!n._hasText()||(e=d(d({},e),{labelElementId:n._labelId})),o.createElement(i,d({id:n._labelId+"-menu",directionalHint:4},e,{shouldFocusOnContainer:n._menuShouldFocusOnContainer,shouldFocusOnMount:n._menuShouldFocusOnMount,hidden:t?r:void 0,className:Ai("ms-BaseButton-menuhost",e.className),target:n._isSplitButton?n._splitButtonContainer.current:n._buttonElement.current,onDismiss:n._onDismissMenu}))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&sa(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu(),!n._processingTouch&&n.props.onClick?n.props.onClick(e):n._processingTouch&&n._onMenuClick(e)},n._onKeyDown=function(e){!n.props.disabled||13!==e.which&&32!==e.which?n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){13===e.which||32===e.which?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var t=38===e.which,o=40===e.which;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var r=n.props.onMenuClick;r&&r(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}e.altKey||e.metaKey||!t&&!o||!n.state.menuHidden&&n.props.menuProps&&((void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate()))}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props.onMenuClick;if(t&&t(e,n.props),!e.defaultPrevented){var o=0!==e.nativeEvent.detail||"mouse"===e.nativeEvent.pointerType;n._onToggleMenu(o),e.preventDefault(),e.stopPropagation()}},Yi(n),n._async=new la(n),n._events=new ha(n),n.props.split,n._labelId=oa(),n._descriptionId=oa(),n._ariaDescriptionId=oa(),n.state={menuHidden:!0},n}return c(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,o=t.ariaLabel,r=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,u=t.secondaryText,c=void 0===u?this.props.description:u,d=t.href,p=t.iconProps,h=t.menuIconProps,f=t.styles,m=t.checked,g=t.variantClassName,y=t.theme,v=t.toggle,b=t.getClassNames,_=t.role,S=this.state.menuHidden,C=a||l;this._classNames=b?b(y,i,g,p&&p.className,h&&h.className,C,m,!S,!!this.props.menuProps,this.props.split,!!s):Zl(y,f,i,g,p&&p.className,h&&h.className,C,!!this.props.menuProps,m,!S,this.props.split);var w=this._ariaDescriptionId,T=this._labelId,I=this._descriptionId,E=!C&&!!d,x=E?"a":"button",P=Wo(ca(E?{}:{type:"button"},this.props.rootProps,this.props),E?Lo:Ao,["disabled"]),k=o||P["aria-label"],O=void 0;n?O=w:c&&this.props.onRenderDescription!==ma?O=I:P["aria-describedby"]&&(O=P["aria-describedby"]);var N=void 0;k||(P["aria-labelledby"]?N=P["aria-labelledby"]:O&&(N=this._hasText()?T:void 0));var R=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),D="menuitemcheckbox"===_||"checkbox"===_,M=D||!0===v?!!m:void 0,F=ca(P,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:C&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":k,"aria-labelledby":N,"aria-describedby":O,"aria-disabled":C,"data-is-focusable":R})[D?"aria-checked":"aria-pressed"]=M,e));return r&&(F["aria-hidden"]=!0),this._isSplitButton?this._onRenderSplitButtonContent(x,F):(this.props.menuProps&&ca(F,{"aria-expanded":!S,"aria-owns":S?null:this._labelId+"-menu","aria-haspopup":!0}),this._onRenderContent(x,F))},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?this._splitButtonContainer.current.focus():this._buttonElement.current&&this._buttonElement.current.focus()},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,r=this.props,i=e,a=r.menuIconProps,s=r.menuProps,l=r.onRenderIcon,u=void 0===l?this._onRenderIcon:l,c=r.onRenderAriaDescription,p=void 0===c?this._onRenderAriaDescription:c,h=r.onRenderChildren,f=void 0===h?this._onRenderChildren:h,m=r.onRenderMenu,g=void 0===m?this._onRenderMenu:m,y=r.onRenderMenuIcon,v=void 0===y?this._onRenderMenuIcon:y,b=r.disabled,_=r.keytipProps;_&&s&&(_=this._getMemoizedMenuButtonKeytipProps(_));var S=function(e){return o.createElement(i,d({},t,e),o.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},u(r,n._onRenderIcon),n._onRenderTextContents(),p(r,n._onRenderAriaDescription),f(r,n._onRenderChildren),!n._isSplitButton&&(s||a||n.props.onRenderMenuIcon)&&v(n.props,n._onRenderMenuIcon),s&&!s.doNotLayer&&n._shouldRenderMenu()&&g(s,n._onRenderMenu)))},C=_?o.createElement(Dl,{keytipProps:this._isSplitButton?void 0:_,ariaDescribedBy:t["aria-describedby"],disabled:b},function(e){return S(e)}):S();return s&&s.doNotLayer?o.createElement("span",{style:{display:"inline-block"}},C,this._shouldRenderMenu()&&g(s,this._onRenderMenu)):o.createElement(o.Fragment,null,C,o.createElement(ba,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,o=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!o)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"==typeof this.props.children)},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,r=this.props,i=r.styles,a=void 0===i?{}:i,s=r.disabled,l=r.allowDisabledFocus,u=r.checked,c=r.getSplitButtonClassNames,p=r.primaryDisabled,h=r.menuProps,f=r.toggle,m=r.role,g=r.primaryActionButtonProps,y=this.props.keytipProps,v=this.state.menuHidden,b=c?c(!!s,!v,!!u,!!l):a&&$l(a,!!s,!v,!!u,!!p);ca(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),y&&h&&(y=this._getMemoizedMenuButtonKeytipProps(y));var _=Wo(t,[],["disabled"]);g&&ca(t,g);var S=function(r){return o.createElement("div",d({},_,{"data-ktp-target":r?r["data-ktp-target"]:void 0,role:m||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!v,"aria-pressed":f?!!u:void 0,"aria-describedby":wa(t["aria-describedby"],r?r["aria-describedby"]:void 0),className:b&&b.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:s||p?void 0:n._onSplitButtonPrimaryClick,tabIndex:!s||l?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),o.createElement("span",{style:{display:"flex"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(b,r),n._onRenderSplitButtonDivider(b)))};return y?o.createElement(Dl,{keytipProps:y,disabled:s},function(e){return S(e)}):S()},t.prototype._onRenderSplitButtonDivider=function(e){return e&&e.divider?o.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}}):null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var r=this.props,i=r.allowDisabledFocus,a=r.checked,s=r.disabled,l=r.splitButtonMenuProps,u=r.splitButtonAriaLabel,c=this.state.menuHidden,p=this.props.menuIconProps;void 0===p&&(p={iconName:"ChevronDown"});var h=d(d({},l),{styles:e,checked:a,disabled:s,allowDisabledFocus:i,onClick:this._onMenuClick,menuProps:void 0,iconProps:d(d({},p),{className:this._classNames.menuIcon}),ariaLabel:u,"aria-haspopup":!0,"aria-expanded":!c,"data-is-focusable":!1});return o.createElement(t,d({},h,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.focus()},500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&40===e.which&&(e.altKey||e.metaKey)},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t}(o.Component),tu={outline:0},nu=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},ou=Yr(function(e){var t,n,o=e.semanticColors,r=e.effects,i=e.fonts,a=o.buttonBorder,s=o.disabledBackground,l=o.disabledText,u={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Wr(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+a,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:r.roundedCorner2,selectors:{":active > *":{position:"relative",left:0,top:0}}}],rootDisabled:[Wr(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",pointerEvents:"none",selectors:{":hover":tu,":focus":tu}}],iconDisabled:{color:l,selectors:(t={},t[Ar]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[Ar]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:nu(i.mediumPlus.fontSize),menuIcon:nu(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Gr}}),ru=Yr(function(e,t){var n,o,r,i,a,s,l,u,c,p,h,f,m=e.effects,g=e.palette,y=e.semanticColors,v={position:"absolute",width:1,right:31,top:8,bottom:8};return Tn({splitButtonContainer:[Wr(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[Ar]={color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0",MsHighContrastAdjust:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(o={},o[Ar]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(r={},r[Ar]={color:"Window",backgroundColor:"Highlight"},r)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(i={},i[Ar]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[Ar]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[Ar]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:m.roundedCorner2,borderBottomRightRadius:m.roundedCorner2,border:"1px solid "+g.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},splitButtonDivider:d(d({},v),{selectors:(l={},l[Ar]={backgroundColor:"WindowText"},l)}),splitButtonDividerDisabled:d(d({},v),{selectors:(u={},u[Ar]={backgroundColor:"GrayText"},u)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(c={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(p={},p[Ar]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},p)},".ms-Button-menuIcon":{selectors:(h={},h[Ar]={color:"GrayText"},h)}},c[Ar]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},c)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:d((f={},f[Ar]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f),jr())}},t)}),iu=Yr(function(e,t){var n,o=ou(e),r=ru(e),i=e.palette;return Tn(o,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Ar]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},r,t)}),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(eu,d({},this.props,{variantClassName:"ms-Button--icon",styles:iu(n,t),onRenderText:ma,onRenderDescription:ma}))},h([rl("IconButton",["theme","styles"],!0)],t)}(o.Component),su=Io(),lu=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=o.createRef(),n._inputElement=o.createRef(),n._onClickFocus=function(){var e=n._inputElement.current;e&&(n.focus(),e.selectionStart=e.selectionEnd=0)},n._onFocusCapture=function(e){n.setState({hasFocus:!0}),n.props.onFocus&&n.props.onFocus(e)},n._onClearClick=function(e){var t=n.props.clearButtonProps;t&&t.onClick&&t.onClick(e),e.defaultPrevented||n._onClear(e)},n._onKeyDown=function(e){switch(e.which){case 27:n.props.onEscape&&n.props.onEscape(e),n.state.value&&!e.defaultPrevented&&n._onClear(e);break;case 13:n.props.onSearch&&(n.props.onSearch(n.state.value),e.preventDefault(),e.stopPropagation());break;default:n.props.onKeyDown&&n.props.onKeyDown(e),e.defaultPrevented&&e.stopPropagation()}},n._onBlur=function(e){n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e)},n._onInputChange=function(e){var t=e.target.value;t!==n._latestValue&&(n._latestValue=t,n.setState({value:t}),n._callOnChange(e,t))},Yi(n),n._latestValue=t.value||"",n._fallbackId=oa("SearchBox"),n.state={value:n._latestValue,hasFocus:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){void 0!==e.value&&(this._latestValue=e.value,this.setState({value:e.value||""}))},t.prototype.render=function(){var e=this.props,t=e.ariaLabel,n=e.placeholder,r=e.className,i=e.disabled,a=e.underlined,s=e.styles,l=e.labelText,u=e.theme,c=e.clearButtonProps,p=e.disableAnimation,h=e.iconProps,f=e.role,m=e.id,g=void 0===m?this._fallbackId:m,y=this.state,v=y.value,b=y.hasFocus,_=void 0!==n?n:l,S=su(s,{theme:u,className:r,underlined:a,hasFocus:b,disabled:i,hasInput:v.length>0,disableAnimation:p}),C=Wo(this.props,Bo,["className","placeholder","onFocus","onBlur","value","role"]);return o.createElement("div",{role:f,ref:this._rootElement,className:S.root,onFocusCapture:this._onFocusCapture},o.createElement("div",{className:S.iconContainer,onClick:this._onClickFocus,"aria-hidden":!0},o.createElement(Wi,d({iconName:"Search"},h,{className:S.icon}))),o.createElement("input",d({},C,{id:g,className:S.field,placeholder:_,onChange:this._onInputChange,onInput:this._onInputChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown,value:v,disabled:i,role:"searchbox","aria-label":t,ref:this._inputElement})),v.length>0&&o.createElement("div",{className:S.clearButton},o.createElement(au,d({onBlur:this._onBlur,styles:{root:{height:"auto"},icon:{fontSize:"12px"}},iconProps:{iconName:"Clear"}},c,{onClick:this._onClearClick}))))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.hasFocus=function(){return!!this.state.hasFocus},t.prototype._onClear=function(e){this.props.onClear&&this.props.onClear(e),e.defaultPrevented||(this._latestValue="",this.setState({value:""}),this._callOnChange(void 0,""),e.stopPropagation(),e.preventDefault(),this.focus())},t.prototype._callOnChange=function(e,t){var n=this.props,o=n.onChange,r=n.onChanged;r&&r(t),o&&o(e,t)},t.defaultProps={disableAnimation:!1,clearButtonProps:{ariaLabel:"Clear text"}},t}(o.Component),uu={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"},cu=jn(lu,function(e){var t,n,o,r,i,a=e.theme,s=e.underlined,l=e.disabled,u=e.hasFocus,c=e.className,d=e.hasInput,p=e.disableAnimation,h=a.palette,f=a.fonts,m=a.semanticColors,g=a.effects,y=ei(uu,a),v={color:m.inputPlaceholderText,opacity:1},b=h.neutralSecondary,_=h.neutralPrimary,S=h.neutralLighter,C=h.neutralLighter,w=h.neutralLighter;return{root:[y.root,f.medium,wi,{color:m.inputText,backgroundColor:m.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:g.roundedCorner2,border:"1px solid "+m.inputBorder,height:32,selectors:(t={},t[Ar]={borderColor:"WindowText"},t[":hover"]={borderColor:m.inputBorderHovered,selectors:(n={},n[Ar]={borderColor:"Highlight"},n)},t[":hover ."+y.iconContainer]={color:m.inputIconHovered},t)},!u&&d&&{selectors:(o={},o[":hover ."+y.iconContainer]={width:4},o[":hover ."+y.icon]={opacity:0},o)},u&&["is-active",{position:"relative"},Hr(m.inputFocusBorderAlt,s?0:g.roundedCorner2,s?"borderBottom":"border")],l&&["is-disabled",{borderColor:S,backgroundColor:w,pointerEvents:"none",cursor:"default",selectors:(r={},r[Ar]={borderColor:"GrayText"},r)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",c],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:m.inputIcon,cursor:"text"},u&&{width:4},l&&{color:m.inputIconDisabled},!p&&{transition:"width 0.167s"}],icon:[y.icon,{opacity:1},u&&{opacity:0},!p&&{transition:"opacity 0.167s 0s"}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:C},"&:hover .ms-Button-icon":{color:_},".ms-Button":{borderRadius:Co(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:b}}}],field:[y.field,wi,(i=v,{selectors:{"::placeholder":i,":-ms-input-placeholder":i,"::-ms-input-placeholder":i}}),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:m.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:m.disabledText}]}},void 0,{scope:"SearchBox"}),du=n("zwa+");!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Vl||(Vl={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Ql||(Ql={}));var pu=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){e.setState({isRendered:!0})},t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component),hu=Io(),fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,l=e.theme,u=e.className,c=e.labelPosition,p=r,h=Wo(this.props,Uo,["size"]),f=n;void 0===f&&void 0!==t&&(f=t===Ql.large?Vl.large:Vl.medium);var m=hu(a,{theme:l,size:f,className:u,labelPosition:c});return o.createElement("div",d({},h,{className:m.root}),o.createElement("div",{className:m.circle}),s&&o.createElement("div",{className:m.label},s),p&&o.createElement("div",{role:"status","aria-live":i},o.createElement(pu,null,o.createElement("div",{className:m.screenReaderText},p))))},t.defaultProps={size:Vl.medium,ariaLive:"polite",labelPosition:"bottom"},t}(o.Component),mu={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},gu=Yr(function(){return qo({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),yu=jn(fu,function(e){var t,n=e.theme,o=e.size,r=e.className,i=e.labelPosition,a=n.palette,s=ei(mu,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},r],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:gu(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:d((t={},t[Ar]={borderTopColor:"Highlight"},t),jr())},o===Vl.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===Vl.small&&["ms-Spinner--small",{width:16,height:16}],o===Vl.medium&&["ms-Spinner--medium",{width:20,height:20}],o===Vl.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:Gr}},void 0,{scope:"Spinner"}),vu=Io(),bu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._checkBox=o.createRef(),r._renderContent=function(e,t,n){void 0===n&&(n={});var i=r.props,a=i.disabled,s=i.inputProps,l=i.name,u=i.ariaLabel,c=i.ariaLabelledBy,p=i.ariaDescribedBy,h=i.onRenderLabel,f=void 0===h?r._onRenderLabel:h,m=i.checkmarkIconProps,g=i.ariaPositionInSet,y=i.ariaSetSize,v=i.title,b=i.label;return o.createElement("div",{className:r._classNames.root,title:v},o.createElement(ba,null),o.createElement("input",d({type:"checkbox"},s,{"data-ktp-execute-target":n["data-ktp-execute-target"],checked:e,disabled:a,className:r._classNames.input,ref:r._checkBox,name:l,id:r._id,title:v,onChange:r._onChange,onFocus:r._onFocus,onBlur:r._onBlur,"aria-disabled":a,"aria-label":u||b,"aria-labelledby":c,"aria-describedby":wa(p,n["aria-describedby"]),"aria-posinset":g,"aria-setsize":y,"aria-checked":t?"mixed":e?"true":"false"})),o.createElement("label",{className:r._classNames.label,htmlFor:r._id},o.createElement("div",{className:r._classNames.checkbox,"data-ktp-target":n["data-ktp-target"]},o.createElement(Wi,d({iconName:"CheckMark"},m,{className:r._classNames.checkmark}))),f(r.props,r._onRenderLabel)))},r._onFocus=function(e){var t=r.props.inputProps;t&&t.onFocus&&t.onFocus(e)},r._onBlur=function(e){var t=r.props.inputProps;t&&t.onBlur&&t.onBlur(e)},r._onChange=function(e){var t=r.props.onChange,n=r.state,o=n.isChecked;n.isIndeterminate?(t&&t(e,o),void 0===r.props.indeterminate&&r.setState({isIndeterminate:!1})):(t&&t(e,!o),void 0===r.props.checked&&r.setState({isChecked:!o}))},r._onRenderLabel=function(e){var t=e.label,n=e.title;return t?o.createElement("span",{"aria-hidden":"true",className:r._classNames.text,title:n},t):null},Yi(r),r._id=r.props.id||oa("checkbox-"),r.state={isChecked:!!(void 0!==t.checked?t.checked:t.defaultChecked),isIndeterminate:!!(void 0!==t.indeterminate?t.indeterminate:t.defaultIndeterminate)},r}return c(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return void 0!==e.indeterminate&&(n.isIndeterminate=!!e.indeterminate),void 0!==e.checked&&(n.isChecked=!!e.checked),Object.keys(n).length?n:null},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.disabled,i=t.boxSide,a=t.theme,s=t.styles,l=t.onRenderLabel,u=void 0===l?this._onRenderLabel:l,c=t.keytipProps,d=this.state,p=d.isChecked,h=d.isIndeterminate;return this._classNames=vu(s,{theme:a,className:n,disabled:r,indeterminate:h,checked:p,reversed:"start"!==i,isUsingCustomLabelRender:u!==this._onRenderLabel}),c?o.createElement(Dl,{keytipProps:c,disabled:r},function(t){return e._renderContent(p,h,t)}):this._renderContent(p,h)},Object.defineProperty(t.prototype,"indeterminate",{get:function(){return!!this.state.isIndeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return!!this.state.isChecked},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._checkBox.current&&this._checkBox.current.focus()},t.defaultProps={boxSide:"start"},t}(o.Component),_u={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Su=jn(bu,function(e){var t,n,o,r,i,a,s,l,u,c,p,h,f,m,g,y,v,b,_=e.className,S=e.theme,C=e.reversed,w=e.checked,T=e.disabled,I=e.isUsingCustomLabelRender,E=e.indeterminate,x=S.semanticColors,P=S.effects,k=S.palette,O=S.fonts,N=ei(_u,S),R=x.inputForegroundChecked,D=k.neutralSecondary,M=k.neutralPrimary,F=x.inputBackgroundChecked,L=x.inputBackgroundChecked,A=x.disabledBodySubtext,B=x.inputBorderHovered,j=x.inputBackgroundCheckedHovered,U=x.inputBackgroundChecked,W=x.inputBackgroundCheckedHovered,H=x.inputBackgroundCheckedHovered,G=x.inputTextHovered,z=x.disabledBodySubtext,K=x.bodyText,q=x.disabledText,V=[(t={content:'""',borderRadius:P.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:T?A:F,transitionProperty:"border-width, border, border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)"},t[Ar]={borderColor:"WindowText"},t)];return{root:[N.root,{position:"relative",display:"flex"},C&&"reversed",w&&"is-checked",!T&&"is-enabled",T&&"is-disabled",!T&&[!w&&(n={},n[":hover ."+N.checkbox]=(o={borderColor:B},o[Ar]={borderColor:"Highlight"},o),n[":focus ."+N.checkbox]={borderColor:B},n[":hover ."+N.checkmark]=(r={color:D,opacity:"1"},r[Ar]={color:"Highlight"},r),n),w&&!E&&(i={},i[":hover ."+N.checkbox]={background:W,borderColor:H},i[":focus ."+N.checkbox]={background:W,borderColor:H},i[Ar]=(a={},a[":hover ."+N.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+N.checkbox]={background:"Highlight"},a[":focus:hover ."+N.checkbox]={background:"Highlight"},a[":focus:hover ."+N.checkmark]={color:"Window"},a[":hover ."+N.checkmark]={color:"Window"},a),i),E&&(s={},s[":hover ."+N.checkbox+", :hover ."+N.checkbox+":after"]=(l={borderColor:j},l[Ar]={borderColor:"WindowText"},l),s[":focus ."+N.checkbox]={borderColor:j},s[":hover ."+N.checkmark]={opacity:"0"},s),(u={},u[":hover ."+N.text+", :focus ."+N.text]=(c={color:G},c[Ar]={color:T?"GrayText":"WindowText"},c),u)],_],input:(p={position:"absolute",background:"none",opacity:0},p[".ms-Fabric--isFocusVisible &:focus + label::before"]=(h={outline:"1px solid "+S.palette.neutralSecondary,outlineOffset:"2px"},h[Ar]={outline:"1px solid ActiveBorder"},h),p),label:[N.label,S.fonts.medium,{display:"flex",alignItems:I?"center":"flex-start",cursor:T?"default":"pointer",position:"relative",userSelect:"none"},C&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[N.checkbox,d((f={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:"20px",width:"20px",border:"1px solid "+M,borderRadius:P.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",overflow:"hidden",":after":E?V:null},f[Ar]={borderColor:"WindowText"},f),jr()),E&&{borderColor:F},C?{marginLeft:4}:{marginRight:4},!T&&!E&&w&&(m={background:U,borderColor:L},m[Ar]={background:"Highlight",borderColor:"Highlight"},m),T&&(g={borderColor:A},g[Ar]={borderColor:"GrayText"},g),w&&T&&(y={background:z,borderColor:A},y[Ar]={background:"Window"},y)],checkmark:[N.checkmark,(v={opacity:w?"1":"0",color:R},v[Ar]={color:T?"GrayText":"Window",MsHighContrastAdjust:"none"},v)],text:[N.text,d((b={color:T?q:K,fontSize:O.medium.fontSize,lineHeight:"20px"},b[Ar]={color:T?"GrayText":"WindowText"},b),jr()),C?{marginRight:4}:{marginLeft:4}]}},void 0,{scope:"Checkbox"});n("m08b");var Cu={name:"",numberFormat:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!0,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"¤",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},dateTimeFormat:{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!0},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",LongDatePattern:"dddd, dd MMMM yyyy",LongTimePattern:"HH:mm:ss",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"MM/dd/yyyy",ShortTimePattern:"HH:mm",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"yyyy MMMM",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!0,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],eras:[1,"A.D.",null,0]}};String.prototype.parseNumberInvariant=function(){return this._parseNumber(window.Sys&&window.Sys.CultureInfo&&window.Sys.CultureInfo.InvariantCulture||Cu)},String.prototype._parseNumber=function(e){var t=""+this;if((t=t.trim()).match(/^[+-]?infinity$/i))return parseFloat(t);if(t.match(/^0x[a-f0-9]+$/i))return parseInt(t);var n,o,r=e.numberFormat,i=t._parseNumberNegativePattern(r,r.NumberNegativePattern),a=i[0],s=i[1];""===a&&1!==r.NumberNegativePattern&&(a=(i=t._parseNumberNegativePattern(r,1))[0],s=i[1]),""===a&&(a="+");var l,u,c=s.indexOf("e");c<0&&(c=s.indexOf("E")),c<0?(o=s,n=null):(o=s.substr(0,c),n=s.substr(c+1));var d=o.indexOf(r.NumberDecimalSeparator);d<0?(l=o,u=null):(l=o.substr(0,d),u=o.substr(d+r.NumberDecimalSeparator.length)),l=l.split(r.NumberGroupSeparator).join("");var p=r.NumberGroupSeparator.replace(/\u00A0/g," ");r.NumberGroupSeparator!==p&&(l=l.split(p).join(""));var h=a+l;if(null!==u&&(h+="."+u),null!==n){var f=n._parseNumberNegativePattern(r,1);""===f[0]&&(f[0]="+"),h+="e"+f[0]+f[1]}return h.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?parseFloat(h):Number.NaN},String.prototype._parseNumberNegativePattern=function(e,t){var n=e.NegativeSign,o=e.PositiveSign;switch(t){case 4:n=" "+n,o=" "+o;break;case 3:if(this.endsWith(n))return["-",this.substr(0,this.length-n.length)];if(this.endsWith(o))return["+",this.substr(0,this.length-o.length)];break;case 2:n+=" ",o+=" ";break;case 1:if(this.startsWith(n))return["-",this.substr(n.length)];if(this.startsWith(o))return["+",this.substr(o.length)];break;case 0:if(this.startsWith("(")&&this.endsWith(")"))return["-",this.substr(1,this.length-2)]}return["",this]},n("Pk8u"),function(){function e(){}e.trimSlash=function(e){return e.lastIndexOf("/")===e.length-1?e.slice(0,-1):e},e.encodeText=function(e){return e?e.replace(/[<>&'"\\]/g,this._getEncodedChar):""},e.getRelativeDateTimeString=function(e){var t=e.split("|"),n=null,o=null;if("0"===t[0])return e.substring(2);var r="1"===t[1],i=t[2],a=t.length>=4?t[3]:null,s=t.length>=5?t[4]:null;switch(i){case"1":n=r?du.DateTime.L_RelativeDateTime_AFewSecondsFuture:du.DateTime.L_RelativeDateTime_AFewSeconds;break;case"2":n=r?du.DateTime.L_RelativeDateTime_AboutAMinuteFuture:du.DateTime.L_RelativeDateTime_AboutAMinute;break;case"3":o=this.getLocalizedCountValue(r?du.DateTime.L_RelativeDateTime_XMinutesFuture:du.DateTime.L_RelativeDateTime_XMinutes,r?du.DateTime.L_RelativeDateTime_XMinutesFutureIntervals:du.DateTime.L_RelativeDateTime_XMinutesIntervals,Number(a));break;case"4":n=r?du.DateTime.L_RelativeDateTime_AboutAnHourFuture:du.DateTime.L_RelativeDateTime_AboutAnHour;break;case"5":null===a?n=r?du.DateTime.L_RelativeDateTime_Tomorrow:du.DateTime.L_RelativeDateTime_Yesterday:o=r?du.DateTime.L_RelativeDateTime_TomorrowAndTime:du.DateTime.L_RelativeDateTime_YesterdayAndTime;break;case"6":o=this.getLocalizedCountValue(r?du.DateTime.L_RelativeDateTime_XHoursFuture:du.DateTime.L_RelativeDateTime_XHours,r?du.DateTime.L_RelativeDateTime_XHoursFutureIntervals:du.DateTime.L_RelativeDateTime_XHoursIntervals,Number(a));break;case"7":null===s?n=a:o=du.DateTime.L_RelativeDateTime_DayAndTime;break;case"8":o=this.getLocalizedCountValue(r?du.DateTime.L_RelativeDateTime_XDaysFuture:du.DateTime.L_RelativeDateTime_XDays,r?du.DateTime.L_RelativeDateTime_XDaysFutureIntervals:du.DateTime.L_RelativeDateTime_XDaysIntervals,Number(a));break;case"9":n=du.DateTime.L_RelativeDateTime_Today}return null!==o&&(n=o.replace("{0}",a),null!==s&&(n=n.replace("{1}",s))),n},e.getLocalizedCountValue=function(e,t,n){if(void 0===e||void 0===t||void 0===n)return null;for(var o="",r=-1,i=t.split("||"),a=0,s=i.length;a<s;a++){var l=i[a];if(null!==l&&""!==l){for(var u=l.split(","),c=0,d=u.length;c<d;c++){var p=u[c];if(null!==p&&""!==p)if(isNaN(p.parseNumberInvariant())){var h=p.split("-");if(null===h||2!==h.length)continue;var f=void 0;if(""===h[0])f=0;else{if(isNaN(h[0].parseNumberInvariant()))continue;f=parseInt(h[0])}if(n>=f){if(""===h[1]){r=a;break}if(isNaN(h[1].parseNumberInvariant()))continue;if(n<=parseInt(h[1])){r=a;break}}}else if(n===parseInt(p)){r=a;break}}if(-1!==r)break}}if(-1!==r){var m=e.split("||");null!==m&&null!==m[r]&&""!==m[r]&&(o=m[r])}return o},e.getTextFromHTML=function(e){var t=e,n="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",o=new RegExp("<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+n+">[\\s\\S]*?</script\\s*|style\\b"+n+">[\\s\\S]*?</style\\s*|/?[a-z]"+n+")>","gi");do{t=t.replace(o,"")}while(t!=t);return t},e.isDefined=function(e){return null!=e},e.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")},e.getAbsoluteDomainUrl=function(e){if(void 0!==e){var t=new URL(e.toLowerCase());return t.protocol+"//"+t.host}},e.getFileFromBlob=function(e,t){var n=null;try{n=new File([e],t)}catch(o){(n=e).fileName=t}return n},e.formatBytes=function(e,t){if(0===e)return du.EmptyFileSize;var n=t<=0?0:t||2,o=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,o)).toFixed(n))+" "+du.SizeUnit[o]},e.getFileNameWithoutExtension=function(t){return e.getFileNameFromUrl(t).split(".")[0]},e.getFileNameFromUrl=function(e){var t=e.split("?")[0].split("/");return t[t.length-1]},e.isImage=function(t){var n=".gif,.jpg,.jpeg,.bmp,.dib,.tif,.tiff,.ico,.png,.jxr,.svg".split(","),o=e.getFileExtension(t);return n.indexOf(o)>-1},e.getFileExtension=function(e){var t=e.toLowerCase().split(".").pop();if(-1!==t.indexOf("?")){var n=t.split("?");t=n[0]}return"."+t},e._getEncodedChar=function(e){return{"<":"<",">":">","&":"&",'"':""","'":"'","\\":"\"}[e]}}();var wu=function(e){var t,n=e.site,r=e.checked;return o.createElement("li",{className:"siteListItem_0979a690",key:n.url},o.createElement(Su,{className:"checkbox_0979a690",checked:r,onChange:function(t,o){return e.handleCheckboxChange(n,o)}}),o.createElement("div",{className:"content_0979a690"},o.createElement("span",{className:"title_0979a690",title:n.title},n.title),o.createElement("span",{className:"url_0979a690",title:n.url},(t=n.url)?t.replace(/^(?:\/\/|[^/]+)*\//,"/"):"")))};n("VSd+");function Tu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}},t)}function Iu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}},t)}function Eu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}},t)}function xu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}},t)}function Pu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}},t)}function ku(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}},t)}function Ou(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}},t)}function Nu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}},t)}function Ru(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}},t)}function Du(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}},t)}function Mu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}},t)}function Fu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}},t)}function Lu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}},t)}function Au(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}},t)}function Bu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}},t)}function ju(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}},t)}function Uu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}},t)}function Wu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}},t)}function Hu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}},t)}Object(Di.a)("@uifabric/icons","7.5.16");var Gu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return r.onSearchFieldChange=function(e){return t=r,void 0,o=function(){var t,n;return function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(o){switch(o.label){case 0:if(!(e&&e.length>2))return[3,6];this.setState({isLoading:!0}),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,this.searchService.searchSites(this.props.context,e)];case 2:return t=o.sent(),this.setState({siteSearchResults:t}),[3,5];case 3:return n=o.sent(),this.setState({errorMessage:n}),[3,5];case 4:return this.setState({isLoading:!1}),[7];case 5:return[3,7];case 6:this.setState({siteSearchResults:[]}),o.label=7;case 7:return[2]}})},new((n=void 0)||(n=Promise))(function(e,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o.throw(e))}catch(e){r(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof n?o:new n(function(e){e(o)})).then(i,a)}s((o=o.apply(t,[])).next())});var t,n,o},r.handleCheckboxChange=function(e,t){var n=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}(r.state.selectedSites);t?r.props.multiSelect?n.push(e):n=[e]:r.props.multiSelect?n.splice(n.indexOf(e),1):n=[],r.props.onPropertyChange(r.props.targetProperty,r.state.selectedSites,n),void 0!==r.props.onChange&&null!==r.props.onChange&&r.props.onChange(r.props.targetProperty,n),r.setState({selectedSites:n})},void 0===n&&(n="https://spoprod-a.akamaihd.net/files/fabric/assets/icons/"),[Tu,Iu,Eu,xu,Pu,ku,Ou,Nu,Ru,Du,Mu,Fu,Lu,Au,Bu,ju,Uu,Wu,Hu].forEach(function(e){return e(n,void 0)}),ki("trash","delete"),ki("onedrive","onedrivelogo"),ki("alertsolid12","eventdatemissed12"),ki("sixpointstar","6pointstar"),ki("twelvepointstar","12pointstar"),ki("toggleon","toggleleft"),ki("toggleoff","toggleright"),void 0===(o={disabled:t.disabled})&&(o={}),Ki.a.getInstance().trackEvent("PropertyFieldSitePicker",qi({version:"3.2.0",controlType:"property",debug:"false",environment:i.EnvironmentType[i.Environment.type]},o)),r.state={isLoading:!1,selectedSites:t.initialSites||[],siteSearchResults:[],errorMessage:null},r.async=new la(r),r.searchService=new wn,r}return Gu(t,e),t.prototype.render=function(){var e=this,t=this.state,n=t.isLoading,r=t.siteSearchResults,i=t.selectedSites;return o.createElement("div",null,this.props.label&&o.createElement(Qi,null,this.props.label),o.createElement(cu,{placeholder:du.SitePickerSearchBoxPlaceholder,onChanged:this.async.debounce(this.onSearchFieldChange,this.props.deferredValidationTime)}),n&&o.createElement(yu,{size:Vl.medium}),!n&&r&&o.createElement("div",null,r.length>0&&o.createElement("ul",{className:"siteList_fe3404bf"},r.map(function(t){return o.createElement(wu,{key:t.url,checked:i.filter(function(e){return e.url===t.url}).length>0,handleCheckboxChange:e.handleCheckboxChange,site:t})})),0===r.length&&o.createElement(Qi,null,du.SitePickerNoResults)),i&&i.length>0&&o.createElement("div",null,o.createElement(Qi,{className:"bold_fe3404bf"},i.length," ",du.SitePickerSitesChosen),o.createElement("ul",{className:"siteList_fe3404bf"},i.map(function(t){return o.createElement(wu,{key:t.url,checked:i.filter(function(e){return e.url===t.url}).length>0,handleCheckboxChange:e.handleCheckboxChange,site:t})}))),o.createElement(Gi,{errorMessage:this.state.errorMessage}))},t}(o.Component),Ku=function(){return(Ku=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},qu=function(){function e(e,t){this.type=a.PropertyPaneFieldType.Custom,this.disabled=!1,this.multiSelect=!1,this.deferredValidationTime=200,this.render=this.render.bind(this),this.label=t.label,this.targetProperty=t.targetProperty,this.properties=t,this.properties.onDispose=this.dispose,this.properties.onRender=this.render,this.onPropertyChange=t.onPropertyChange,this.context=t.context,this.initialSites=t.initialSites,this.customProperties=t.properties,this.key=t.key,this.onGetErrorMessage=t.onGetErrorMessage,void 0!==t.disabled&&(this.disabled=t.disabled),t.deferredValidationTime&&(this.deferredValidationTime=t.deferredValidationTime),void 0!==t.multiSelect&&(this.multiSelect=t.multiSelect)}return e.prototype.render=function(e,t,n){var i=o.createElement(zu,{label:this.label,disabled:this.disabled,targetProperty:this.targetProperty,initialSites:this.initialSites,multiSelect:this.multiSelect,onDispose:this.dispose,onRender:this.render,onChange:n,onPropertyChange:this.onPropertyChange,context:this.context,properties:this.customProperties,key:this.key,onGetErrorMessage:this.onGetErrorMessage,deferredValidationTime:this.deferredValidationTime});r.render(i,e)},e.prototype.dispose=function(e){},e}(),Vu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qu=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})},Xu=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChangeProperty=function(e,n,o){t.getSelectedListFields()},t}return Vu(t,e),t.prototype.render=function(){var e=o.createElement(_n,{description:this.properties.description,StyleToggle:this.properties.StyleToggle,sites:this.properties.sites,context:this.context,AuthorToggle:this.properties.AuthorToggle,Site:this.properties.Site,onChangeProperty:this.onChangeProperty});r.render(e,this.domElement)},t.prototype.onDispose=function(){r.unmountComponentAtNode(this.domElement)},t.prototype.onInit=function(){return Qu(this,void 0,void 0,function(){return Xu(this,function(e){return[2,Promise.resolve()]})})},t.prototype.onPropertyPaneFieldChanged=function(e,t,n){return Qu(this,void 0,void 0,function(){var t;return Xu(this,function(o){return"sites"===e?(t=n)&&!t.length?(this.properties.Site=[],this.context.propertyPane.refresh(),[2]):(this.properties.Site=n,this.context.propertyPane.refresh(),[2]):[2]})})},Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!0,configurable:!0}),t.prototype.getSelectedListFields=function(){return Qu(this,void 0,void 0,function(){return Xu(this,function(e){return this.properties.Site&&this.context.propertyPane.refresh(),[2]})})},t.prototype.getPropertyPaneConfiguration=function(){return{pages:[{header:{description:l.PropertyPaneDescription},groups:[{groupFields:[Object(a.PropertyPaneToggle)("StyleToggle",{onText:"Stack",offText:"Single",label:"Style"}),Object(a.PropertyPaneToggle)("AuthorToggle",{onText:"Hidden",offText:"Shown",label:"Author"}),(e={label:"Select sites",initialSites:this.properties.sites,context:this.context,deferredValidationTime:200,multiSelect:!0,onPropertyChange:this.onPropertyPaneFieldChanged,properties:this.properties,key:"sitesFieldId"},new qu("sites",Ku(Ku({},e),{targetProperty:"sites",onDispose:null,onRender:null})))]}]}]};var e},t}(s.BaseClientSideWebPart);t.default=Yu},Itfc:function(e,t,n){(e.exports=n("JPst")(!1)).push([e.i,".siteListItem_0979a690{display:-ms-flexbox;display:flex;white-space:nowrap;-ms-flex-align:center;align-items:center}.siteListItem_0979a690 .checkbox_0979a690{display:inline-block!important;margin-right:4px}.siteListItem_0979a690 .content_0979a690{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;padding:4px 0}.siteListItem_0979a690 .title_0979a690{line-height:18px;overflow:hidden;text-overflow:ellipsis}.siteListItem_0979a690 .url_0979a690{font-size:12px;line-height:14px;font-weight:300;overflow:hidden;text-overflow:ellipsis}",""])},JPst:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n,o,r,i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var s=(n=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(r," */")),l=a.sources.map(function(e){return"/*# sourceURL=".concat(a.sourceRoot).concat(e," */")});return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];null!=i&&(o[i]=!0)}for(var a=0;a<e.length;a++){var s=e[a];null!=s[0]&&o[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},MKqn:function(e,t,n){(e.exports=n("JPst")(!1)).push([e.i,".errorMessage_67aeb894{font-size:12px;font-weight:400;color:#a80000;margin:0;padding-top:5px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.errorIcon_67aeb894{font-size:14px;margin-right:5px}",""])},Mmr5:function(e,t,n){var o=n("MKqn"),r=n("ruv1");"string"==typeof o&&(o=[[e.i,o]]);for(var i=0;i<o.length;i++)r.loadStyles(o[i][1],!0);o.locals&&(e.exports=o.locals)},Pk8u:function(e,t){e.exports=n},"S/Ex":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var o={},r=void 0;try{r=window}catch(e){}function i(e,t){if(void 0!==r){var n=r.__packages__=r.__packages__||{};n[e]&&o[e]||(o[e]=t,(n[e]=n[e]||[]).push(t))}}i("@uifabric/set-version","6.0.0")},UWqr:function(e,t){e.exports=o},"VSd+":function(e,t,n){var o=n("nsUS"),r=n("ruv1");"string"==typeof o&&(o=[[e.i,o]]);for(var i=0;i<o.length;i++)r.loadStyles(o[i][1],!0);o.locals&&(e.exports=o.locals)},WdKl:function(e,t,n){(e.exports=n("JPst")(!1)).push([e.i,'.reactNewsWebpart_d4a3edcf .container_d4a3edcf{max-width:700px;margin:0 auto;box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1)}.reactNewsWebpart_d4a3edcf .row_d4a3edcf{margin:0 -8px;box-sizing:border-box;color:#fff;background-color:#005a9e;padding:20px}.reactNewsWebpart_d4a3edcf .row_d4a3edcf:after,.reactNewsWebpart_d4a3edcf .row_d4a3edcf:before{display:table;content:"";line-height:0}.reactNewsWebpart_d4a3edcf .row_d4a3edcf:after{clear:both}.reactNewsWebpart_d4a3edcf .column_d4a3edcf{position:relative;min-height:1px;padding-left:8px;padding-right:8px;box-sizing:border-box}[dir=ltr] .reactNewsWebpart_d4a3edcf .column_d4a3edcf{float:left}[dir=rtl] .reactNewsWebpart_d4a3edcf .column_d4a3edcf{float:right}.reactNewsWebpart_d4a3edcf .column_d4a3edcf .ms-Grid_d4a3edcf{padding:0}@media (min-width:640px){.reactNewsWebpart_d4a3edcf .column_d4a3edcf{width:83.33333333333334%}}@media (min-width:1024px){.reactNewsWebpart_d4a3edcf .column_d4a3edcf{width:66.66666666666666%}}@media (min-width:1024px){[dir=ltr] .reactNewsWebpart_d4a3edcf .column_d4a3edcf{left:16.66667%}[dir=rtl] .reactNewsWebpart_d4a3edcf .column_d4a3edcf{right:16.66667%}}@media (min-width:640px){[dir=ltr] .reactNewsWebpart_d4a3edcf .column_d4a3edcf{left:8.33333%}[dir=rtl] .reactNewsWebpart_d4a3edcf .column_d4a3edcf{right:8.33333%}}.reactNewsWebpart_d4a3edcf .title_d4a3edcf{font-size:21px;font-weight:100;color:#fff}.reactNewsWebpart_d4a3edcf .description_d4a3edcf,.reactNewsWebpart_d4a3edcf .subTitle_d4a3edcf{font-size:17px;font-weight:300;color:#fff}.reactNewsWebpart_d4a3edcf .button_d4a3edcf{text-decoration:none;height:32px;min-width:80px;background-color:#0078d4;border-color:#0078d4;color:#fff;outline:transparent;position:relative;font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;font-weight:400;border-width:0;text-align:center;cursor:pointer;display:inline-block;padding:0 16px}.reactNewsWebpart_d4a3edcf .button_d4a3edcf .label_d4a3edcf{font-weight:600;font-size:14px;height:32px;line-height:32px;margin:0 4px;vertical-align:top;display:inline-block}.SingleStyle_d4a3edcf .SingleStyleContainer_d4a3edcf{width:100%}.SingleStyle_d4a3edcf .NewsContainer_d4a3edcf{height:173px;margin-bottom:15px}.SingleStyle_d4a3edcf .ImgContainer_d4a3edcf{width:276px;height:173px;float:left;overflow:hidden}.SingleStyle_d4a3edcf .Image_d4a3edcf{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.SingleStyle_d4a3edcf .NewsBody_d4a3edcf{float:left;margin-left:20px}.SingleStyle_d4a3edcf .TitleContainer_d4a3edcf{font-weight:600;font-size:20px;padding:8px 0}.SingleStyle_d4a3edcf .TitleStyling_d4a3edcf{text-decoration:none}.SingleStyle_d4a3edcf .DescriptionContainer_d4a3edcf{height:72px;overflow:hidden;width:418px;padding:7px 0}.SingleStyle_d4a3edcf .IconContainer_d4a3edcf{float:right;margin-top:4px;padding:9px}.SingleStyle_d4a3edcf .IconLabelStyling_d4a3edcf{margin-left:2px}.SingleStyle_d4a3edcf .AuthorContainer_d4a3edcf{float:left;margin-top:11px;font-size:12px}.SingleStyle_d4a3edcf .NavigationContainer_d4a3edcf{width:100%;float:left;height:30px;padding-bottom:7px}.SingleStyle_d4a3edcf .NavigationLeftButtonStyling_d4a3edcf{float:left;padding:20px;border:none;cursor:pointer}.SingleStyle_d4a3edcf .NavigationRightButtonStyling_d4a3edcf{float:right;padding:20px;border:none;cursor:pointer}.SingleStyle_d4a3edcf .NavigationPageNumStyling_d4a3edcf{text-align:center;padding:20px}.StackStyle_d4a3edcf .StackStyleContainer_d4a3edcf{width:100%;min-height:420px}.StackStyle_d4a3edcf .NewsContainer_d4a3edcf{height:352px;width:32.4%;float:left;border:1px solid #eaeaea;border-radius:"2px"}.StackStyle_d4a3edcf .ImgContainer_d4a3edcf{height:144px;overflow:hidden}.StackStyle_d4a3edcf .Image_d4a3edcf{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;margin-left:.5px;margin-right:.5px}.StackStyle_d4a3edcf .NewsBody_d4a3edcf{float:left;height:308px;width:100%}.StackStyle_d4a3edcf .TitleContainer_d4a3edcf{font-weight:600;font-size:20px;padding:8px 12px;overflow:hidden;height:27px}.StackStyle_d4a3edcf .TitleStyling_d4a3edcf{text-decoration:none}.StackStyle_d4a3edcf .DescriptionContainer_d4a3edcf{height:85px;overflow:hidden;padding:9px}.StackStyle_d4a3edcf .IconContainer_d4a3edcf{float:right;margin-top:20px;padding:9px;font-size:12px}.StackStyle_d4a3edcf .IconLabelStyling_d4a3edcf{margin-left:2px}.StackStyle_d4a3edcf .AuthorContainer_d4a3edcf{float:left;margin-top:15px;font-size:12px;padding:9x;margin-left:9px}.StackStyle_d4a3edcf .NavigationContainer_d4a3edcf{width:100%;float:left;height:30px;padding-top:9px;padding-bottom:7px}.StackStyle_d4a3edcf .NavigationLeftButtonStyling_d4a3edcf{float:left;padding:20px;border:none;cursor:pointer}.StackStyle_d4a3edcf .NavigationRightButtonStyling_d4a3edcf{float:right;padding:20px;border:none;cursor:pointer}.StackStyle_d4a3edcf .NavigationPageNumStyling_d4a3edcf{text-align:center;padding:20px}',""])},br4S:function(e,t){e.exports=r},cDcd:function(e,t){e.exports=i},cYg2:function(e,t,n){var o=function(){"use strict";return o=function(e){if(this.REQUEST_TYPE={LOGIN:"LOGIN",RENEW_TOKEN:"RENEW_TOKEN",UNKNOWN:"UNKNOWN"},this.RESPONSE_TYPE={ID_TOKEN_TOKEN:"id_token token",TOKEN:"token"},this.CONSTANTS={ACCESS_TOKEN:"access_token",EXPIRES_IN:"expires_in",ID_TOKEN:"id_token",ERROR_DESCRIPTION:"error_description",SESSION_STATE:"session_state",ERROR:"error",STORAGE:{TOKEN_KEYS:"adal.token.keys",ACCESS_TOKEN_KEY:"adal.access.token.key",EXPIRATION_KEY:"adal.expiration.key",STATE_LOGIN:"adal.state.login",STATE_RENEW:"adal.state.renew",NONCE_IDTOKEN:"adal.nonce.idtoken",SESSION_STATE:"adal.session.state",USERNAME:"adal.username",IDTOKEN:"adal.idtoken",ERROR:"adal.error",ERROR_DESCRIPTION:"adal.error.description",LOGIN_REQUEST:"adal.login.request",LOGIN_ERROR:"adal.login.error",RENEW_STATUS:"adal.token.renew.status",ANGULAR_LOGIN_REQUEST:"adal.angular.login.request"},RESOURCE_DELIMETER:"|",CACHE_DELIMETER:"||",LOADFRAME_TIMEOUT:6e3,TOKEN_RENEW_STATUS_CANCELED:"Canceled",TOKEN_RENEW_STATUS_COMPLETED:"Completed",TOKEN_RENEW_STATUS_IN_PROGRESS:"In Progress",LOGGING_LEVEL:{ERROR:0,WARN:1,INFO:2,VERBOSE:3},LEVEL_STRING_MAP:{0:"ERROR:",1:"WARNING:",2:"INFO:",3:"VERBOSE:"},POPUP_WIDTH:483,POPUP_HEIGHT:600},o.prototype._singletonInstance)return o.prototype._singletonInstance;if(o.prototype._singletonInstance=this,this.instance="https://login.microsoftonline.com/",this.config={},this.callback=null,this.popUp=!1,this.isAngular=!1,this._user=null,this._activeRenewals={},this._loginInProgress=!1,this._acquireTokenInProgress=!1,this._renewStates=[],this._callBackMappedToRenewStates={},this._callBacksMappedToRenewStates={},this._openedWindows=[],this._requestType=this.REQUEST_TYPE.LOGIN,window._adalInstance=this,e.displayCall&&"function"!=typeof e.displayCall)throw new Error("displayCall is not a function");if(!e.clientId)throw new Error("clientId is required");this.config=this._cloneConfig(e),void 0===this.config.navigateToLoginRequestUrl&&(this.config.navigateToLoginRequestUrl=!0),this.config.popUp&&(this.popUp=!0),this.config.callback&&"function"==typeof this.config.callback&&(this.callback=this.config.callback),this.config.instance&&(this.instance=this.config.instance),this.config.loginResource||(this.config.loginResource=this.config.clientId),this.config.redirectUri||(this.config.redirectUri=window.location.href.split("?")[0].split("#")[0]),this.config.postLogoutRedirectUri||(this.config.postLogoutRedirectUri=window.location.href.split("?")[0].split("#")[0]),this.config.anonymousEndpoints||(this.config.anonymousEndpoints=[]),this.config.isAngular&&(this.isAngular=this.config.isAngular),this.config.loadFrameTimeout&&(this.CONSTANTS.LOADFRAME_TIMEOUT=this.config.loadFrameTimeout)},"undefined"!=typeof window&&(window.Logging={piiLoggingEnabled:!1,level:0,log:function(e){}}),o.prototype.login=function(){if(this._loginInProgress)this.info("Login in progress");else{this._loginInProgress=!0;var e=this._guid();this.config.state=e,this._idTokenNonce=this._guid();var t=this._getItem(this.CONSTANTS.STORAGE.ANGULAR_LOGIN_REQUEST);t&&""!==t?this._saveItem(this.CONSTANTS.STORAGE.ANGULAR_LOGIN_REQUEST,""):t=window.location.href,this.verbose("Expected state: "+e+" startPage:"+t),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,t),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,e,!0),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce,!0),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var n=this._getNavigateUrl("id_token",null)+"&nonce="+encodeURIComponent(this._idTokenNonce);this.config.displayCall?this.config.displayCall(n):this.popUp?(this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,""),this._renewStates.push(e),this.registerCallback(e,this.config.clientId,this.callback),this._loginPopup(n)):this.promptUser(n)}},o.prototype._openPopup=function(e,t,n,o){try{var r=window.screenLeft?window.screenLeft:window.screenX,i=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,l=a/2-n/2+r,u=s/2-o/2+i,c=window.open(e,t,"width="+n+", height="+o+", top="+u+", left="+l);return c.focus&&c.focus(),c}catch(e){return this.warn("Error opening popup, "+e.message),this._loginInProgress=!1,this._acquireTokenInProgress=!1,null}},o.prototype._handlePopupError=function(e,t,n,o,r){this.warn(o),this._saveItem(this.CONSTANTS.STORAGE.ERROR,n),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,o),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,r),t&&this._activeRenewals[t]&&(this._activeRenewals[t]=null),this._loginInProgress=!1,this._acquireTokenInProgress=!1,e&&e(o,null,n)},o.prototype._loginPopup=function(e,t,n){var o=this._openPopup(e,"login",this.CONSTANTS.POPUP_WIDTH,this.CONSTANTS.POPUP_HEIGHT),r=n||this.callback;if(null!=o){if(this._openedWindows.push(o),-1!=this.config.redirectUri.indexOf("#"))var i=this.config.redirectUri.split("#")[0];else i=this.config.redirectUri;var a=this,s=window.setInterval(function(){if(!o||o.closed||void 0===o.closed){var e="Popup Window closed",n="Popup Window closed by UI action/ Popup Window handle destroyed due to cross zone navigation in IE/Edge";return a.isAngular&&a._broadcast("adal:popUpClosed",n+a.CONSTANTS.RESOURCE_DELIMETER+e),a._handlePopupError(r,t,e,n,n),void window.clearInterval(s)}try{var l=o.location;if(-1!=encodeURI(l.href).indexOf(encodeURI(i)))return a.isAngular?a._broadcast("adal:popUpHashChanged",l.hash):a.handleWindowCallback(l.hash),window.clearInterval(s),a._loginInProgress=!1,a._acquireTokenInProgress=!1,a.info("Closing popup window"),a._openedWindows=[],void o.close()}catch(e){}},1)}else{var l="Popup Window is null. This can happen if you are using IE";this._handlePopupError(r,t,"Error opening popup",l,l)}},o.prototype._broadcast=function(e,t){!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}if("function"==typeof window.CustomEvent)return!1;e.prototype=window.Event.prototype,window.CustomEvent=e}();var n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)},o.prototype.loginInProgress=function(){return this._loginInProgress},o.prototype._hasResource=function(e){var t=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);return t&&!this._isEmpty(t)&&t.indexOf(e+this.CONSTANTS.RESOURCE_DELIMETER)>-1},o.prototype.getCachedToken=function(e){if(!this._hasResource(e))return null;var t=this._getItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e),n=this._getItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e),o=this.config.expireOffsetSeconds||300;return n&&n>this._now()+o?t:(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e,0),null)},o.prototype.getCachedUser=function(){if(this._user)return this._user;var e=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);return this._user=this._createUser(e),this._user},o.prototype.registerCallback=function(e,t,n){this._activeRenewals[t]=e,this._callBacksMappedToRenewStates[e]||(this._callBacksMappedToRenewStates[e]=[]);var o=this;this._callBacksMappedToRenewStates[e].push(n),this._callBackMappedToRenewStates[e]||(this._callBackMappedToRenewStates[e]=function(n,r,i,a){o._activeRenewals[t]=null;for(var s=0;s<o._callBacksMappedToRenewStates[e].length;++s)try{o._callBacksMappedToRenewStates[e][s](n,r,i,a)}catch(i){o.warn(i)}o._callBacksMappedToRenewStates[e]=null,o._callBackMappedToRenewStates[e]=null})},o.prototype._renewToken=function(e,t,n){this.info("renewToken is called for resource:"+e);var o=this._addAdalFrame("adalRenewFrame"+e),r=this._guid()+"|"+e;this.config.state=r,this._renewStates.push(r),this.verbose("Renew token Expected state: "+r),n=n||"token";var i=this._urlRemoveQueryStringParameter(this._getNavigateUrl(n,e),"prompt");n===this.RESPONSE_TYPE.ID_TOKEN_TOKEN&&(this._idTokenNonce=this._guid(),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce,!0),i+="&nonce="+encodeURIComponent(this._idTokenNonce)),i+="&prompt=none",i=this._addHintParameters(i),this.registerCallback(r,e,t),this.verbosePii("Navigate to:"+i),o.src="about:blank",this._loadFrameTimeout(i,"adalRenewFrame"+e,e)},o.prototype._renewIdToken=function(e,t){this.info("renewIdToken is called");var n=this._addAdalFrame("adalIdTokenFrame"),o=this._guid()+"|"+this.config.clientId;this._idTokenNonce=this._guid(),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce,!0),this.config.state=o,this._renewStates.push(o),this.verbose("Renew Idtoken Expected state: "+o);var r=null==t?null:this.config.clientId,i=(t=t||"id_token",this._urlRemoveQueryStringParameter(this._getNavigateUrl(t,r),"prompt"));i+="&prompt=none",i=this._addHintParameters(i),i+="&nonce="+encodeURIComponent(this._idTokenNonce),this.registerCallback(o,this.config.clientId,e),this.verbosePii("Navigate to:"+i),n.src="about:blank",this._loadFrameTimeout(i,"adalIdTokenFrame",this.config.clientId)},o.prototype._urlContainsQueryStringParameter=function(e,t){return new RegExp("[\\?&]"+e+"=").test(t)},o.prototype._urlRemoveQueryStringParameter=function(e,t){var n=new RegExp("(\\&"+t+"=)[^&]+");return e=e.replace(n,""),n=new RegExp("("+t+"=)[^&]+&"),e=e.replace(n,""),n=new RegExp("("+t+"=)[^&]+"),e.replace(n,"")},o.prototype._loadFrameTimeout=function(e,t,n){this.verbose("Set loading state to pending for: "+n),this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+n,this.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS),this._loadFrame(e,t);var o=this;setTimeout(function(){if(o._getItem(o.CONSTANTS.STORAGE.RENEW_STATUS+n)===o.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS){o.verbose("Loading frame has timed out after: "+o.CONSTANTS.LOADFRAME_TIMEOUT/1e3+" seconds for resource "+n);var e=o._activeRenewals[n];e&&o._callBackMappedToRenewStates[e]&&o._callBackMappedToRenewStates[e]("Token renewal operation failed due to timeout",null,"Token Renewal Failed"),o._saveItem(o.CONSTANTS.STORAGE.RENEW_STATUS+n,o.CONSTANTS.TOKEN_RENEW_STATUS_CANCELED)}},o.CONSTANTS.LOADFRAME_TIMEOUT)},o.prototype._loadFrame=function(e,t){var n=this;n.info("LoadFrame: "+t);var o=t;setTimeout(function(){var t=n._addAdalFrame(o);""!==t.src&&"about:blank"!==t.src||(t.src=e,n._loadFrame(e,o))},500)},o.prototype.acquireToken=function(e,t){if(this._isEmpty(e))return this.warn("resource is required"),void t("resource is required",null,"resource is required");var n=this.getCachedToken(e);return n?(this.info("Token is already in cache for resource:"+e),void t(null,n,null)):this._user||this.config.extraQueryParameter&&-1!==this.config.extraQueryParameter.indexOf("login_hint")?void(this._activeRenewals[e]?this.registerCallback(this._activeRenewals[e],e,t):(this._requestType=this.REQUEST_TYPE.RENEW_TOKEN,e===this.config.clientId?this._user?(this.verbose("renewing idtoken"),this._renewIdToken(t)):(this.verbose("renewing idtoken and access_token"),this._renewIdToken(t,this.RESPONSE_TYPE.ID_TOKEN_TOKEN)):this._user?(this.verbose("renewing access_token"),this._renewToken(e,t)):(this.verbose("renewing idtoken and access_token"),this._renewToken(e,t,this.RESPONSE_TYPE.ID_TOKEN_TOKEN)))):(this.warn("User login is required"),void t("User login is required",null,"login required"))},o.prototype.acquireTokenPopup=function(e,t,n,o){if(this._isEmpty(e))return this.warn("resource is required"),void o("resource is required",null,"resource is required");if(!this._user)return this.warn("User login is required"),void o("User login is required",null,"login required");if(this._acquireTokenInProgress)return this.warn("Acquire token interactive is already in progress"),void o("Acquire token interactive is already in progress",null,"Acquire token interactive is already in progress");var r=this._guid()+"|"+e;this.config.state=r,this._renewStates.push(r),this._requestType=this.REQUEST_TYPE.RENEW_TOKEN,this.verbose("Renew token Expected state: "+r);var i=this._urlRemoveQueryStringParameter(this._getNavigateUrl("token",e),"prompt");if(i+="&prompt=select_account",t&&(i+=t),n&&-1===i.indexOf("&claims"))i+="&claims="+encodeURIComponent(n);else if(n&&-1!==i.indexOf("&claims"))throw new Error("Claims cannot be passed as an extraQueryParameter");i=this._addHintParameters(i),this._acquireTokenInProgress=!0,this.info("acquireToken interactive is called for the resource "+e),this.registerCallback(r,e,o),this._loginPopup(i,e,o)},o.prototype.acquireTokenRedirect=function(e,t,n){if(this._isEmpty(e))return this.warn("resource is required"),void o("resource is required",null,"resource is required");var o=this.callback;if(!this._user)return this.warn("User login is required"),void o("User login is required",null,"login required");if(this._acquireTokenInProgress)return this.warn("Acquire token interactive is already in progress"),void o("Acquire token interactive is already in progress",null,"Acquire token interactive is already in progress");var r=this._guid()+"|"+e;this.config.state=r,this.verbose("Renew token Expected state: "+r);var i=this._urlRemoveQueryStringParameter(this._getNavigateUrl("token",e),"prompt");if(i+="&prompt=select_account",t&&(i+=t),n&&-1===i.indexOf("&claims"))i+="&claims="+encodeURIComponent(n);else if(n&&-1!==i.indexOf("&claims"))throw new Error("Claims cannot be passed as an extraQueryParameter");i=this._addHintParameters(i),this._acquireTokenInProgress=!0,this.info("acquireToken interactive is called for the resource "+e),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,window.location.href),this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,r,!0),this.promptUser(i)},o.prototype.promptUser=function(e){e?(this.infoPii("Navigate to:"+e),window.location.replace(e)):this.info("Navigate url is empty")},o.prototype.clearCache=function(){this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,""),this._saveItem(this.CONSTANTS.STORAGE.ANGULAR_LOGIN_REQUEST,""),this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,""),this._renewStates=[],this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,""),this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,""),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"");var e=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);if(!this._isEmpty(e)){e=e.split(this.CONSTANTS.RESOURCE_DELIMETER);for(var t=0;t<e.length&&""!==e[t];t++)this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e[t],""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e[t],0)}this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,"")},o.prototype.clearCacheForResource=function(e){this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,""),this._hasResource(e)&&(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e,0))},o.prototype.logOut=function(){var e;if(this.clearCache(),this._user=null,this.config.logOutUri)e=this.config.logOutUri;else{var t="common",n="";this.config.tenant&&(t=this.config.tenant),this.config.postLogoutRedirectUri&&(n="post_logout_redirect_uri="+encodeURIComponent(this.config.postLogoutRedirectUri)),e=this.instance+t+"/oauth2/logout?"+n}this.infoPii("Logout navigate to: "+e),this.promptUser(e)},o.prototype._isEmpty=function(e){return void 0===e||!e||0===e.length},o.prototype.getUser=function(e){if("function"!=typeof e)throw new Error("callback is not a function");if(this._user)e(null,this._user);else{var t=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);this._isEmpty(t)?(this.warn("User information is not available"),e("User information is not available",null)):(this.info("User exists in cache: "),this._user=this._createUser(t),e(null,this._user))}},o.prototype._addHintParameters=function(e){if(this._user&&this._user.profile)if(this._user.profile.sid&&-1!==e.indexOf("&prompt=none"))this._urlContainsQueryStringParameter("sid",e)||(e+="&sid="+encodeURIComponent(this._user.profile.sid));else if(this._user.profile.upn&&(this._urlContainsQueryStringParameter("login_hint",e)||(e+="&login_hint="+encodeURIComponent(this._user.profile.upn)),!this._urlContainsQueryStringParameter("domain_hint",e)&&this._user.profile.upn.indexOf("@")>-1)){var t=this._user.profile.upn.split("@");e+="&domain_hint="+encodeURIComponent(t[t.length-1])}return e},o.prototype._createUser=function(e){var t=null,n=this._extractIdToken(e);return n&&n.hasOwnProperty("aud")&&(n.aud.toLowerCase()===this.config.clientId.toLowerCase()?(t={userName:"",profile:n},n.hasOwnProperty("upn")?t.userName=n.upn:n.hasOwnProperty("email")&&(t.userName=n.email)):this.warn("IdToken has invalid aud field")),t},o.prototype._getHash=function(e){return e.indexOf("#/")>-1?e=e.substring(e.indexOf("#/")+2):e.indexOf("#")>-1&&(e=e.substring(1)),e},o.prototype.isCallback=function(e){e=this._getHash(e);var t=this._deserialize(e);return t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN)},o.prototype.getLoginError=function(){return this._getItem(this.CONSTANTS.STORAGE.LOGIN_ERROR)},o.prototype.getRequestInfo=function(e){e=this._getHash(e);var t=this._deserialize(e),n={valid:!1,parameters:{},stateMatch:!1,stateResponse:"",requestType:this.REQUEST_TYPE.UNKNOWN};if(t&&(n.parameters=t,t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN))){var o;if(n.valid=!0,!t.hasOwnProperty("state"))return this.warn("No state returned"),n;if(this.verbose("State: "+t.state),o=t.state,n.stateResponse=o,this._matchState(n))return n;if(!n.stateMatch&&window.parent){n.requestType=this._requestType;for(var r=this._renewStates,i=0;i<r.length;i++)if(r[i]===n.stateResponse){n.stateMatch=!0;break}}}return n},o.prototype._matchNonce=function(e){var t=this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN);if(t){t=t.split(this.CONSTANTS.CACHE_DELIMETER);for(var n=0;n<t.length;n++)if(t[n]===e.profile.nonce)return!0}return!1},o.prototype._matchState=function(e){var t=this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN);if(t){t=t.split(this.CONSTANTS.CACHE_DELIMETER);for(var n=0;n<t.length;n++)if(t[n]===e.stateResponse)return e.requestType=this.REQUEST_TYPE.LOGIN,e.stateMatch=!0,!0}var o=this._getItem(this.CONSTANTS.STORAGE.STATE_RENEW);if(o)for(o=o.split(this.CONSTANTS.CACHE_DELIMETER),n=0;n<o.length;n++)if(o[n]===e.stateResponse)return e.requestType=this.REQUEST_TYPE.RENEW_TOKEN,e.stateMatch=!0,!0;return!1},o.prototype._getResourceFromState=function(e){if(e){var t=e.indexOf("|");if(t>-1&&t+1<e.length)return e.substring(t+1)}return""},o.prototype.saveTokenFromHash=function(e){this.info("State status:"+e.stateMatch+"; Request type:"+e.requestType),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var t=this._getResourceFromState(e.stateResponse);if(e.parameters.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION))this.infoPii("Error :"+e.parameters.error+"; Error description:"+e.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),this._saveItem(this.CONSTANTS.STORAGE.ERROR,e.parameters.error),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,e.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),e.requestType===this.REQUEST_TYPE.LOGIN&&(this._loginInProgress=!1,this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,e.parameters.error_description));else if(e.stateMatch){var n;this.info("State is right"),e.parameters.hasOwnProperty(this.CONSTANTS.SESSION_STATE)&&this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,e.parameters[this.CONSTANTS.SESSION_STATE]),e.parameters.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)&&(this.info("Fragment has access token"),this._hasResource(t)||(n=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,n+t+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+t,e.parameters[this.CONSTANTS.ACCESS_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+t,this._expiresIn(e.parameters[this.CONSTANTS.EXPIRES_IN]))),e.parameters.hasOwnProperty(this.CONSTANTS.ID_TOKEN)&&(this.info("Fragment has id token"),this._loginInProgress=!1,this._user=this._createUser(e.parameters[this.CONSTANTS.ID_TOKEN]),this._user&&this._user.profile?this._matchNonce(this._user)?(this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,e.parameters[this.CONSTANTS.ID_TOKEN]),t=this.config.loginResource?this.config.loginResource:this.config.clientId,this._hasResource(t)||(n=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,n+t+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+t,e.parameters[this.CONSTANTS.ID_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+t,this._user.profile.exp)):(this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"Nonce received: "+this._user.profile.nonce+" is not same as requested: "+this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN)),this._user=null):(e.parameters.error="invalid id_token",e.parameters.error_description="Invalid id_token. id_token: "+e.parameters[this.CONSTANTS.ID_TOKEN],this._saveItem(this.CONSTANTS.STORAGE.ERROR,"invalid id_token"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid id_token. id_token: "+e.parameters[this.CONSTANTS.ID_TOKEN])))}else e.parameters.error="Invalid_state",e.parameters.error_description="Invalid_state. state: "+e.stateResponse,this._saveItem(this.CONSTANTS.STORAGE.ERROR,"Invalid_state"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid_state. state: "+e.stateResponse);this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+t,this.CONSTANTS.TOKEN_RENEW_STATUS_COMPLETED)},o.prototype.getResourceForEndpoint=function(e){if(this.config&&this.config.anonymousEndpoints)for(var t=0;t<this.config.anonymousEndpoints.length;t++)if(e.indexOf(this.config.anonymousEndpoints[t])>-1)return null;if(this.config&&this.config.endpoints)for(var n in this.config.endpoints)if(e.indexOf(n)>-1)return this.config.endpoints[n];return e.indexOf("http://")>-1||e.indexOf("https://")>-1?this._getHostFromUri(e)===this._getHostFromUri(this.config.redirectUri)?this.config.loginResource:null:this.config.loginResource},o.prototype._getHostFromUri=function(e){return String(e).replace(/^(https?:)\/\//,"").split("/")[0]},o.prototype.handleWindowCallback=function(e){if(null==e&&(e=window.location.hash),this.isCallback(e)){var t=null,n=!1;this._openedWindows.length>0&&this._openedWindows[this._openedWindows.length-1].opener&&this._openedWindows[this._openedWindows.length-1].opener._adalInstance?(t=this._openedWindows[this._openedWindows.length-1].opener._adalInstance,n=!0):window.parent&&window.parent._adalInstance&&(t=window.parent._adalInstance);var o,r,i=t.getRequestInfo(e),a=null;r=n||window.parent!==window?t._callBackMappedToRenewStates[i.stateResponse]:t.callback,t.info("Returned from redirect url"),t.saveTokenFromHash(i),i.requestType===this.REQUEST_TYPE.RENEW_TOKEN&&window.parent?(window.parent!==window?t.verbose("Window is in iframe, acquiring token silently"):t.verbose("acquiring token interactive in progress"),o=i.parameters[t.CONSTANTS.ACCESS_TOKEN]||i.parameters[t.CONSTANTS.ID_TOKEN],a=t.CONSTANTS.ACCESS_TOKEN):i.requestType===this.REQUEST_TYPE.LOGIN&&(o=i.parameters[t.CONSTANTS.ID_TOKEN],a=t.CONSTANTS.ID_TOKEN);var s=i.parameters[t.CONSTANTS.ERROR_DESCRIPTION],l=i.parameters[t.CONSTANTS.ERROR];try{r&&r(s,o,l,a)}catch(e){t.error("Error occurred in user defined callback function: "+e)}window.parent!==window||n||(t.config.navigateToLoginRequestUrl?window.location.href=t._getItem(t.CONSTANTS.STORAGE.LOGIN_REQUEST):window.location.hash="")}},o.prototype._getNavigateUrl=function(e,t){var n="common";this.config.tenant&&(n=this.config.tenant);var o=this.instance+n+"/oauth2/authorize"+this._serialize(e,this.config,t)+this._addLibMetadata();return this.info("Navigate url:"+o),o},o.prototype._extractIdToken=function(e){var t=this._decodeJwt(e);if(!t)return null;try{var n=t.JWSPayload,o=this._base64DecodeStringUrlSafe(n);return o?JSON.parse(o):(this.info("The returned id_token could not be base64 url safe decoded."),null)}catch(e){this.error("The returned id_token could not be decoded",e)}return null},o.prototype._base64DecodeStringUrlSafe=function(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),window.atob?decodeURIComponent(escape(window.atob(e))):decodeURIComponent(escape(this._decode(e)))},o.prototype._decode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=(e=String(e).replace(/=+$/,"")).length;if(n%4==1)throw new Error("The token to be decoded is not correctly encoded.");for(var o,r,i,a,s,l,u,c,d="",p=0;p<n;p+=4){if(o=t.indexOf(e.charAt(p)),r=t.indexOf(e.charAt(p+1)),i=t.indexOf(e.charAt(p+2)),a=t.indexOf(e.charAt(p+3)),p+2===n-1){l=(s=o<<18|r<<12|i<<6)>>16&255,u=s>>8&255,d+=String.fromCharCode(l,u);break}if(p+1===n-1){l=(s=o<<18|r<<12)>>16&255,d+=String.fromCharCode(l);break}l=(s=o<<18|r<<12|i<<6|a)>>16&255,u=s>>8&255,c=255&s,d+=String.fromCharCode(l,u,c)}return d},o.prototype._decodeJwt=function(e){if(this._isEmpty(e))return null;var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);return!t||t.length<4?(this.warn("The returned id_token is not parseable."),null):{header:t[1],JWSPayload:t[2],JWSSig:t[3]}},o.prototype._convertUrlSafeToRegularBase64EncodedString=function(e){return e.replace("-","+").replace("_","/")},o.prototype._serialize=function(e,t,n){var o=[];if(null!==t){o.push("?response_type="+e),o.push("client_id="+encodeURIComponent(t.clientId)),n&&o.push("resource="+encodeURIComponent(n)),o.push("redirect_uri="+encodeURIComponent(t.redirectUri)),o.push("state="+encodeURIComponent(t.state)),t.hasOwnProperty("slice")&&o.push("slice="+encodeURIComponent(t.slice)),t.hasOwnProperty("extraQueryParameter")&&o.push(t.extraQueryParameter);var r=t.correlationId?t.correlationId:this._guid();o.push("client-request-id="+encodeURIComponent(r))}return o.join("&")},o.prototype._deserialize=function(e){var t,n=/\+/g,o=/([^&=]+)=([^&]*)/g,r=function(e){return decodeURIComponent(e.replace(n," "))},i={};for(t=o.exec(e);t;)i[r(t[1])]=r(t[2]),t=o.exec(e);return i},o.prototype._decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},o.prototype._guid=function(){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues){var t=new Uint8Array(16);return e.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,this._decimalToHex(t[0])+this._decimalToHex(t[1])+this._decimalToHex(t[2])+this._decimalToHex(t[3])+"-"+this._decimalToHex(t[4])+this._decimalToHex(t[5])+"-"+this._decimalToHex(t[6])+this._decimalToHex(t[7])+"-"+this._decimalToHex(t[8])+this._decimalToHex(t[9])+"-"+this._decimalToHex(t[10])+this._decimalToHex(t[11])+this._decimalToHex(t[12])+this._decimalToHex(t[13])+this._decimalToHex(t[14])+this._decimalToHex(t[15])}for(var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="0123456789abcdef",r=0,i="",a=0;a<36;a++)"-"!==n[a]&&"4"!==n[a]&&(r=16*Math.random()|0),"x"===n[a]?i+=o[r]:"y"===n[a]?(r&=3,i+=o[r|=8]):i+=n[a];return i},o.prototype._expiresIn=function(e){return e||(e=3599),this._now()+parseInt(e,10)},o.prototype._now=function(){return Math.round((new Date).getTime()/1e3)},o.prototype._addAdalFrame=function(e){if(void 0!==e){this.info("Add adal frame to document:"+e);var t=document.getElementById(e);if(!t){if(document.createElement&&document.documentElement&&(window.opera||-1===window.navigator.userAgent.indexOf("MSIE 5.0"))){var n=document.createElement("iframe");n.setAttribute("id",e),n.setAttribute("aria-hidden","true"),n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height=n.borderWidth="0px",t=document.getElementsByTagName("body")[0].appendChild(n)}else document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeEnd",'<iframe name="'+e+'" id="'+e+'" style="display:none"></iframe>');window.frames&&window.frames[e]&&(t=window.frames[e])}return t}},o.prototype._saveItem=function(e,t,n){if(this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation){if(!this._supportsLocalStorage())return this.info("Local storage is not supported"),!1;if(n){var o=this._getItem(e)||"";localStorage.setItem(e,o+t+this.CONSTANTS.CACHE_DELIMETER)}else localStorage.setItem(e,t);return!0}return this._supportsSessionStorage()?(sessionStorage.setItem(e,t),!0):(this.info("Session storage is not supported"),!1)},o.prototype._getItem=function(e){return this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation?this._supportsLocalStorage()?localStorage.getItem(e):(this.info("Local storage is not supported"),null):this._supportsSessionStorage()?sessionStorage.getItem(e):(this.info("Session storage is not supported"),null)},o.prototype._supportsLocalStorage=function(){try{return!!window.localStorage&&(window.localStorage.setItem("storageTest","A"),"A"==window.localStorage.getItem("storageTest")&&(window.localStorage.removeItem("storageTest"),!window.localStorage.getItem("storageTest")))}catch(e){return!1}},o.prototype._supportsSessionStorage=function(){try{return!!window.sessionStorage&&(window.sessionStorage.setItem("storageTest","A"),"A"==window.sessionStorage.getItem("storageTest")&&(window.sessionStorage.removeItem("storageTest"),!window.sessionStorage.getItem("storageTest")))}catch(e){return!1}},o.prototype._cloneConfig=function(e){if(null===e||"object"!=typeof e)return e;var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},o.prototype._addLibMetadata=function(){return"&x-client-SKU=Js&x-client-Ver="+this._libVersion()},o.prototype.log=function(e,t,n,o){if(e<=Logging.level){if(!Logging.piiLoggingEnabled&&o)return;var r=(new Date).toUTCString(),i="";i=this.config.correlationId?r+":"+this.config.correlationId+"-"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[e]+" "+t:r+":"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[e]+" "+t,n&&(i+="\nstack:\n"+n.stack),Logging.log(i)}},o.prototype.error=function(e,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,e,t)},o.prototype.warn=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,e,null)},o.prototype.info=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,e,null)},o.prototype.verbose=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,e,null)},o.prototype.errorPii=function(e,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,e,t,!0)},o.prototype.warnPii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,e,null,!0)},o.prototype.infoPii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,e,null,!0)},o.prototype.verbosePii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,e,null,!0)},o.prototype._libVersion=function(){return"1.0.17"},e.exports&&(e.exports=o,e.exports.inject=function(e){return new o(e)}),o}()},eP0N:function(e,t){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),r="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+","+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),h(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),h(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];C.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=_,e.Response=C,e.fetch=function(e,t){return new Promise(function(n,r){var i=new _(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,o={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();t.append(o,r)}}),t)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;n(new C(r,o))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(o&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&o&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var n,o,r=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(o=(n=t.method||this.method||"GET").toUpperCase(),u.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function S(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}}),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},faye:function(e,t){e.exports=a},m08b:function(e,t,n){var o=n("Itfc"),r=n("ruv1");"string"==typeof o&&(o=[[e.i,o]]);for(var i=0;i<o.length;i++)r.loadStyles(o[i][1],!0);o.locals&&(e.exports=o.locals)},nsUS:function(e,t,n){(e.exports=n("JPst")(!1)).push([e.i,".siteList_fe3404bf{list-style:none;padding-left:5px}.bold_fe3404bf{font-weight:700}",""])},ruv1:function(e,t,n){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.splitStyles=t.detokenize=t.clearStyles=t.loadTheme=t.flush=t.configureRunMode=t.configureLoadStyles=t.loadStyles=void 0;var o,r="undefined"==typeof window?e:window,i=r&&r.CSPSettings&&r.CSPSettings.nonce,a=((o=r.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(o=n(n({},o),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),o.registeredThemableStyles||(o=n(n({},o),{registeredThemableStyles:[]})),r.__themeState__=o,o),s=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,l=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()};function u(e){var t=l();e();var n=l();a.perf.duration+=n-t}function c(){u(function(){var e=a.runState.buffer.slice();a.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&d(t)})}function d(e,t){a.loadStyles?a.loadStyles(f(e).styleString,e):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),o=f(e),r=o.styleString,s=o.themable;n.setAttribute("data-load-themed-styles","true"),i&&n.setAttribute("nonce",i),n.appendChild(document.createTextNode(r)),a.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var u={styleElement:n,themableStyle:e};s?a.registeredThemableStyles.push(u):a.registeredStyles.push(u)}}(e)}function p(e){void 0===e&&(e=3),3!==e&&2!==e||(h(a.registeredStyles),a.registeredStyles=[]),3!==e&&1!==e||(h(a.registeredThemableStyles),a.registeredThemableStyles=[])}function h(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function f(e){var t=a.theme,n=!1;return{styleString:(e||[]).map(function(e){var o=e.theme;if(o){n=!0;var r=t?t[o]:void 0,i=e.defaultValue||"inherit";return t&&!r&&console,r||i}return e.rawString}).join(""),themable:n}}function m(e){var t=[];if(e){for(var n=0,o=void 0;o=s.exec(e);){var r=o.index;r>n&&t.push({rawString:e.substring(n,r)}),t.push({theme:o[1],defaultValue:o[2]}),n=s.lastIndex}t.push({rawString:e.substring(n)})}return t}t.loadStyles=function(e,t){void 0===t&&(t=!1),u(function(){var n=Array.isArray(e)?e:m(e),o=a.runState,r=o.mode,i=o.buffer,s=o.flushTimer;t||1===r?(i.push(n),s||(a.runState.flushTimer=setTimeout(function(){a.runState.flushTimer=0,c()},0))):d(n)})},t.configureLoadStyles=function(e){a.loadStyles=e},t.configureRunMode=function(e){a.runState.mode=e},t.flush=c,t.loadTheme=function(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t<n.length;t++){var o=n[t];e.push(o.themableStyle)}e.length>0&&(p(1),d([].concat.apply([],e)))}}()},t.clearStyles=p,t.detokenize=function(e){return e&&(e=f(m(e)).styleString),e},t.splitStyles=m}).call(this,n("yLpj"))},uQ29:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o,r=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(t){e.instance.activeLogLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new i),e._instance},enumerable:!0,configurable:!0}),e.subscribe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map(function(t){return e.instance.subscribe(t)})},e.clearSubscribers=function(){return e.instance.clearSubscribers()},Object.defineProperty(e,"count",{get:function(){return e.instance.count},enumerable:!0,configurable:!0}),e.write=function(t,n){void 0===n&&(n=1),e.instance.log({level:n,message:t})},e.writeJSON=function(e,t){void 0===t&&(t=1),this.write(JSON.stringify(e),t)},e.log=function(t){e.instance.log(t)},e.error=function(t){e.instance.log({data:t,level:3,message:t.message})},e}(),i=function(){function e(e,t){void 0===e&&(e=2),void 0===t&&(t=[]),this.activeLogLevel=e,this.subscribers=t}return e.prototype.subscribe=function(e){this.subscribers.push(e)},e.prototype.clearSubscribers=function(){var e=this.subscribers.slice(0);return this.subscribers.length=0,e},Object.defineProperty(e.prototype,"count",{get:function(){return this.subscribers.length},enumerable:!0,configurable:!0}),e.prototype.write=function(e,t){void 0===t&&(t=1),this.log({level:t,message:e})},e.prototype.log=function(e){void 0!==e&&this.activeLogLevel<=e.level&&this.subscribers.map(function(t){return t.log(e)})},e}();!function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Off=99]="Off"}(o||(o={})),function(){function e(){}e.prototype.log=function(e){var t=this.format(e);switch(e.level){case 0:case 1:console.log(t);break;case 2:console.warn(t);break;case 3:console.error(t)}},e.prototype.format=function(e){var t=[];if(t.push("Message: "+e.message),void 0!==e.data)try{t.push(" Data: "+JSON.stringify(e.data))}catch(e){t.push(" Data: Error in stringify of supplied data "+e)}return t.join("")}}()},vlQI:function(e,t){e.exports=s},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"zwa+":function(e,t){e.exports=l}})}); |